@ckeditor/ckeditor5-template 38.0.1 → 38.1.1

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,110 +1,110 @@
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 template/ui/templateformview
7
- */
8
- import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
9
- import { View, ListView, type ViewCollection } from 'ckeditor5/src/ui';
10
- import TemplateFormInfoView from './templateforminfoview';
11
- import TemplateFormSearchFieldView from './templateformsearchfieldview';
12
- import { type TemplateDefinition } from '../template';
13
- /**
14
- * A class representing the panel with a list of available templates.
15
- *
16
- * @extends module:ui/view~View
17
- */
18
- export default class TemplateFormView extends View {
19
- /**
20
- * Tracks information about the DOM focus in the form.
21
- *
22
- * @readonly
23
- */
24
- focusTracker: FocusTracker;
25
- /**
26
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
27
- *
28
- * @readonly
29
- */
30
- keystrokes: KeystrokeHandler;
31
- /**
32
- * The definition of the template that the button will apply when executed.
33
- *
34
- * @readonly
35
- */
36
- templatesDefinitions: Array<TemplateDefinition>;
37
- /**
38
- * The templates list view.
39
- */
40
- templateListView: TemplateListView;
41
- /**
42
- * A search text field allowing to filter the {@link #templateListView list of templates}.
43
- */
44
- searchFieldView: TemplateFormSearchFieldView;
45
- /**
46
- * A view displaying information text when the feature is not configured or no templates were
47
- * found for the particular phrase.
48
- */
49
- infoView: TemplateFormInfoView;
50
- /**
51
- * The collection of the child views inside of the list item {@link #element}.
52
- *
53
- * @readonly
54
- */
55
- children: ViewCollection;
56
- /**
57
- * Creates an instance of the {@link module:template/ui/templateformview~TemplateFormView} class.
58
- *
59
- * @param locale The localization services instance.
60
- * @param templatesDefinitions Definitions of the templates.
61
- */
62
- constructor(locale: Locale, templatesDefinitions: Array<TemplateDefinition>);
63
- /**
64
- * @inheritDoc
65
- */
66
- render(): void;
67
- /**
68
- * Focuses the {@link #searchFieldView} if some templates were configured.
69
- */
70
- focus(): void;
71
- /**
72
- * Resets the form to its initial state (no search query, all available templates are listed).
73
- */
74
- reset(): void;
75
- }
76
- /**
77
- * The template list view class with filtering and sorting.
78
- *
79
- * @private
80
- */
81
- declare class TemplateListView extends ListView {
82
- /**
83
- * Filters the list of templates according to a specified regular expression. The filtered list is sorted so that items that
84
- * match the regular expression in their titles are displayed first.
85
- *
86
- * Matching items highlight the regular expression (query) in their titles and/or descriptions.
87
- *
88
- * See {@link #unfilter}.
89
- *
90
- * **Note**: The `Collection` (also `ViewCollection`) class does not provide sorting functionality. Thus, the functionality
91
- * implemented in this method is **extremely inefficient** because it clones the entire collection, sorts it as an array,
92
- * then purges the original collection and sets it from scratch with the sorted array. Purging and resetting the
93
- * collection triggers an avalanche of `add` and `remove` events synchronously handled by the `Template` (UI bindings)
94
- * and **rendered in the DOM**. As long as sorting takes shorter than rendering of the DOM this should not be noticeable
95
- * but the moment it does not, the UI will start glitching. A proper `Collection#sort` is needed to work around
96
- * this overhead (see https://github.com/ckeditor/ckeditor5/issues/2065).
97
- *
98
- * @param regExp A regular expression used to match the list title and description.
99
- * @returns True if some list items matched the regular expression. False otherwise.
100
- */
101
- filter(regExp: RegExp): boolean;
102
- /**
103
- * Resets the filtering of the list of templates. Removes highlighting in titles and descriptions
104
- * of list items and restores the default order of the list (as in editor configuration).
105
- *
106
- * See {@link #filter}.
107
- */
108
- unfilter(): void;
109
- }
110
- 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 template/ui/templateformview
7
+ */
8
+ import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
9
+ import { View, ListView, type ViewCollection } from 'ckeditor5/src/ui';
10
+ import TemplateFormInfoView from './templateforminfoview';
11
+ import TemplateFormSearchFieldView from './templateformsearchfieldview';
12
+ import { type TemplateDefinition } from '../template';
13
+ /**
14
+ * A class representing the panel with a list of available templates.
15
+ *
16
+ * @extends module:ui/view~View
17
+ */
18
+ export default class TemplateFormView extends View {
19
+ /**
20
+ * Tracks information about the DOM focus in the form.
21
+ *
22
+ * @readonly
23
+ */
24
+ focusTracker: FocusTracker;
25
+ /**
26
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
27
+ *
28
+ * @readonly
29
+ */
30
+ keystrokes: KeystrokeHandler;
31
+ /**
32
+ * The definition of the template that the button will apply when executed.
33
+ *
34
+ * @readonly
35
+ */
36
+ templatesDefinitions: Array<TemplateDefinition>;
37
+ /**
38
+ * The templates list view.
39
+ */
40
+ templateListView: TemplateListView;
41
+ /**
42
+ * A search text field allowing to filter the {@link #templateListView list of templates}.
43
+ */
44
+ searchFieldView: TemplateFormSearchFieldView;
45
+ /**
46
+ * A view displaying information text when the feature is not configured or no templates were
47
+ * found for the particular phrase.
48
+ */
49
+ infoView: TemplateFormInfoView;
50
+ /**
51
+ * The collection of the child views inside of the list item {@link #element}.
52
+ *
53
+ * @readonly
54
+ */
55
+ children: ViewCollection;
56
+ /**
57
+ * Creates an instance of the {@link module:template/ui/templateformview~TemplateFormView} class.
58
+ *
59
+ * @param locale The localization services instance.
60
+ * @param templatesDefinitions Definitions of the templates.
61
+ */
62
+ constructor(locale: Locale, templatesDefinitions: Array<TemplateDefinition>);
63
+ /**
64
+ * @inheritDoc
65
+ */
66
+ render(): void;
67
+ /**
68
+ * Focuses the {@link #searchFieldView} if some templates were configured.
69
+ */
70
+ focus(): void;
71
+ /**
72
+ * Resets the form to its initial state (no search query, all available templates are listed).
73
+ */
74
+ reset(): void;
75
+ }
76
+ /**
77
+ * The template list view class with filtering and sorting.
78
+ *
79
+ * @private
80
+ */
81
+ declare class TemplateListView extends ListView {
82
+ /**
83
+ * Filters the list of templates according to a specified regular expression. The filtered list is sorted so that items that
84
+ * match the regular expression in their titles are displayed first.
85
+ *
86
+ * Matching items highlight the regular expression (query) in their titles and/or descriptions.
87
+ *
88
+ * See {@link #unfilter}.
89
+ *
90
+ * **Note**: The `Collection` (also `ViewCollection`) class does not provide sorting functionality. Thus, the functionality
91
+ * implemented in this method is **extremely inefficient** because it clones the entire collection, sorts it as an array,
92
+ * then purges the original collection and sets it from scratch with the sorted array. Purging and resetting the
93
+ * collection triggers an avalanche of `add` and `remove` events synchronously handled by the `Template` (UI bindings)
94
+ * and **rendered in the DOM**. As long as sorting takes shorter than rendering of the DOM this should not be noticeable
95
+ * but the moment it does not, the UI will start glitching. A proper `Collection#sort` is needed to work around
96
+ * this overhead (see https://github.com/ckeditor/ckeditor5/issues/2065).
97
+ *
98
+ * @param regExp A regular expression used to match the list title and description.
99
+ * @returns True if some list items matched the regular expression. False otherwise.
100
+ */
101
+ filter(regExp: RegExp): boolean;
102
+ /**
103
+ * Resets the filtering of the list of templates. Removes highlighting in titles and descriptions
104
+ * of list items and restores the default order of the list (as in editor configuration).
105
+ *
106
+ * See {@link #filter}.
107
+ */
108
+ unfilter(): void;
109
+ }
110
+ export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a7a=['focusTracker','length','shift\x20+\x20tab','input','setNoTemplatesAvailableText','highlightText','arrowup','element','title','map','first','arrowright','children','addMany','setTemplate','originalIndex','items','add','filter','sort','extendTemplate','searchFieldView','ck-template-form','includes','focus','fieldView','render','_focusCycler','unfilter','clear','keystrokes','tab','templatesDefinitions','reset','_filterTemplates','size','arrowdown','value','infoView','templateDefinition','isVisible','setNoTemplatesFoundText','templateListView','arrowleft','toLowerCase','set','buttonView','listenTo','_createTemplateListView','ck-template-list','get'];(function(_0x446add,_0x2a7ae6){const _0x88d62f=function(_0x2e700b){while(--_0x2e700b){_0x446add['push'](_0x446add['shift']());}};_0x88d62f(++_0x2a7ae6);}(_0x2a7a,0x183));const _0x88d6=function(_0x446add,_0x2a7ae6){_0x446add=_0x446add-0x0;let _0x88d62f=_0x2a7a[_0x446add];return _0x88d62f;};import{FocusTracker as _0x4c5cad,KeystrokeHandler as _0x2431b1}from'ckeditor5/src/utils';import{View as _0x1315ae,ListView as _0x410b6b,createLabeledInputText as _0x21b547,FocusCycler as _0x4d0d1d,injectCssTransitionDisabler as _0xd91683}from'ckeditor5/src/ui';import _0x4c7b1c from'./templatelistbuttonview';import _0x4db552 from'./templateforminfoview';import _0x5c7c10 from'./templateformsearchfieldview';import{escapeRegExp as _0x112b8f}from'lodash-es';import _0x52df25 from'./templatelistitemview';export default class f extends _0x1315ae{constructor(_0x4d00bc,_0x4f411a){super(_0x4d00bc),this[_0x88d6('0x15')]=new _0x4c5cad(),this[_0x88d6('0x0')]=new _0x2431b1(),this['templatesDefinitions']=_0x4f411a,this[_0x88d6('0xc')]=this[_0x88d6('0x12')](_0x4d00bc,_0x4f411a),this[_0x88d6('0x2a')]=this['_createSearchFieldView'](_0x4d00bc),this[_0x88d6('0x8')]=new _0x4db552(_0x4d00bc),_0x4f411a[_0x88d6('0x16')]||(this[_0x88d6('0x8')][_0x88d6('0xa')]=!0x0,this[_0x88d6('0x8')][_0x88d6('0x19')]()),this[_0x88d6('0x21')]=this['createCollection'](_0x4f411a[_0x88d6('0x16')]?[this[_0x88d6('0x2a')],this[_0x88d6('0x8')],this[_0x88d6('0xc')]]:[this['infoView']]),this[_0x88d6('0x30')]=new _0x4d0d1d({'focusables':this[_0x88d6('0x21')],'focusTracker':this[_0x88d6('0x15')],'keystrokeHandler':this[_0x88d6('0x0')],'actions':{'focusPrevious':_0x88d6('0x17'),'focusNext':_0x88d6('0x1')}}),this[_0x88d6('0x23')]({'tag':'div','attributes':{'class':['ck',_0x88d6('0x2b')],'tabindex':'-1'},'children':this[_0x88d6('0x21')]}),_0xd91683(this);}[_0x88d6('0x2f')](){if(super[_0x88d6('0x2f')](),!this[_0x88d6('0x2')]['length'])return;const _0x298a67=_0xd1cb23=>_0xd1cb23['stopPropagation']();this[_0x88d6('0x15')][_0x88d6('0x26')](this[_0x88d6('0x2a')][_0x88d6('0x1c')]),this[_0x88d6('0x15')][_0x88d6('0x26')](this[_0x88d6('0xc')][_0x88d6('0x1c')]),this[_0x88d6('0x0')][_0x88d6('0x11')](this[_0x88d6('0x1c')]),this[_0x88d6('0x0')][_0x88d6('0xf')](_0x88d6('0x20'),_0x298a67),this[_0x88d6('0x0')][_0x88d6('0xf')](_0x88d6('0xd'),_0x298a67),this[_0x88d6('0x0')][_0x88d6('0xf')](_0x88d6('0x1b'),_0x298a67),this[_0x88d6('0x0')]['set'](_0x88d6('0x6'),_0x298a67);}[_0x88d6('0x2d')](){this['templatesDefinitions'][_0x88d6('0x16')]&&this[_0x88d6('0x2a')][_0x88d6('0x2d')]();}[_0x88d6('0x3')](){this[_0x88d6('0x2')][_0x88d6('0x16')]&&(this[_0x88d6('0x2a')][_0x88d6('0x3')](),this[_0x88d6('0x4')]());}['_filterTemplates'](_0x1254ef){if(!this[_0x88d6('0x2')][_0x88d6('0x16')])return;let _0x3899f1=!0x1;if(_0x1254ef)for(const _0xfa9741 of this['templateListView'][_0x88d6('0x25')]){_0xfa9741[_0x88d6('0x21')][_0x88d6('0x1f')][_0x88d6('0x9')]['title'][_0x88d6('0xe')]()[_0x88d6('0x2c')](_0x1254ef[_0x88d6('0xe')]())?_0xfa9741[_0x88d6('0xa')]=!0x0:_0xfa9741[_0x88d6('0xa')]=!0x1;const _0x1d0fbd=new RegExp(_0x112b8f(_0x1254ef),'ig');_0x3899f1=this[_0x88d6('0xc')]['filter'](_0x1d0fbd);}else this[_0x88d6('0xc')][_0x88d6('0x31')](),_0x3899f1=!0x0;this['infoView'][_0x88d6('0xa')]=!_0x3899f1,_0x3899f1||this[_0x88d6('0x8')][_0x88d6('0xb')](_0x1254ef);}[_0x88d6('0x12')](_0x3a578d,_0x3f4f14){const _0x37ed60=new L(_0x3a578d);return _0x37ed60[_0x88d6('0x29')]({'attributes':{'class':[_0x88d6('0x13')]}}),_0x37ed60['items']['addMany'](_0x3f4f14[_0x88d6('0x1e')]((_0x2958ba,_0x296ad6)=>{const _0x432173=new _0x52df25(_0x3a578d,_0x296ad6),_0x5cbcde=new _0x4c7b1c(_0x3a578d,_0x2958ba);return _0x432173[_0x88d6('0x10')]=_0x5cbcde,_0x432173['children'][_0x88d6('0x26')](_0x5cbcde),_0x432173[_0x88d6('0x21')]['delegate']('execute')['to'](this),_0x432173;})),_0x37ed60;}['_createSearchFieldView'](_0x1d27dc){const _0x370e10=new _0x5c7c10(_0x1d27dc,_0x21b547);return this[_0x88d6('0x11')](_0x370e10[_0x88d6('0x2e')],_0x88d6('0x18'),()=>{this[_0x88d6('0x4')](_0x370e10[_0x88d6('0x2e')][_0x88d6('0x1c')][_0x88d6('0x7')]);}),_0x370e10['on'](_0x88d6('0x3'),()=>{this[_0x88d6('0x3')]();}),_0x370e10;}}class L extends _0x410b6b{[_0x88d6('0x27')](_0x4c639e){const _0x58057c=new Map(),_0x137d27=this[_0x88d6('0x25')][_0x88d6('0x1e')](_0x5815e7=>{const _0x2d0e3b=_0x5815e7[_0x88d6('0x10')]['isMatching'](_0x4c639e);return _0x5815e7[_0x88d6('0xa')]=!!_0x2d0e3b,_0x5815e7[_0x88d6('0x10')]['highlightText'](_0x2d0e3b?_0x4c639e:null),_0x2d0e3b&&_0x58057c[_0x88d6('0xf')](_0x5815e7,_0x2d0e3b),_0x5815e7;})['sort'](M)[_0x88d6('0x28')]((_0x19c186,_0x17be4d)=>{const _0x57faf5=_0x58057c[_0x88d6('0x14')](_0x19c186),_0x5f08a4=_0x58057c[_0x88d6('0x14')](_0x17be4d);return _0x57faf5&&!_0x5f08a4?-0x1:_0x5f08a4&&!_0x57faf5?0x1:_0x57faf5||_0x5f08a4?_0x57faf5[_0x88d6('0x1d')]&&!_0x5f08a4[_0x88d6('0x1d')]?-0x1:!_0x57faf5[_0x88d6('0x1d')]&&_0x5f08a4['title']?0x1:0x0:0x0;});return this[_0x88d6('0x25')][_0x88d6('0x32')](),this[_0x88d6('0x25')][_0x88d6('0x22')](_0x137d27),!!_0x58057c[_0x88d6('0x5')];}['unfilter'](){const _0x575917=this[_0x88d6('0x25')][_0x88d6('0x1e')](_0x1e0d31=>_0x1e0d31)[_0x88d6('0x28')](M);_0x575917['forEach'](_0x200c4f=>{_0x200c4f[_0x88d6('0xa')]=!0x0,_0x200c4f[_0x88d6('0x10')][_0x88d6('0x1a')](null);}),this[_0x88d6('0x25')][_0x88d6('0x32')](),this[_0x88d6('0x25')][_0x88d6('0x22')](_0x575917);}}function M(_0x50ce12,_0x24f847){return _0x50ce12[_0x88d6('0x24')]-_0x24f847[_0x88d6('0x24')];}
23
+ const _0x1dd3=['children','map','title','get','keystrokes','_filterTemplates','listenTo','templateDefinition','arrowdown','_createTemplateListView','set','render','templateListView','_focusCycler','tab','add','createCollection','stopPropagation','isVisible','arrowup','fieldView','unfilter','originalIndex','ck-template-list','reset','forEach','filter','searchFieldView','addMany','isMatching','clear','arrowright','focus','templatesDefinitions','buttonView','highlightText','toLowerCase','infoView','setNoTemplatesFoundText','ck-template-form','_createSearchFieldView','includes','focusTracker','items','length','element','input','delegate','sort','setTemplate'];(function(_0x4bdd87,_0x1dd337){const _0x5cd6a2=function(_0x3a6ba7){while(--_0x3a6ba7){_0x4bdd87['push'](_0x4bdd87['shift']());}};_0x5cd6a2(++_0x1dd337);}(_0x1dd3,0x1a2));const _0x5cd6=function(_0x4bdd87,_0x1dd337){_0x4bdd87=_0x4bdd87-0x0;let _0x5cd6a2=_0x1dd3[_0x4bdd87];return _0x5cd6a2;};import{FocusTracker as _0x4e877f,KeystrokeHandler as _0x40d25d}from'ckeditor5/src/utils';import{View as _0x51d449,ListView as _0x153623,createLabeledInputText as _0xd3e282,FocusCycler as _0x4efb1c,injectCssTransitionDisabler as _0x3cc58a}from'ckeditor5/src/ui';import _0x4560cd from'./templatelistbuttonview';import _0x445a0a from'./templateforminfoview';import _0x58a9bc from'./templateformsearchfieldview';import{escapeRegExp as _0x4d87e3}from'lodash-es';import _0x27c1dd from'./templatelistitemview';export default class f extends _0x51d449{constructor(_0x27a259,_0x4adabd){super(_0x27a259),this[_0x5cd6('0x18')]=new _0x4e877f(),this[_0x5cd6('0x24')]=new _0x40d25d(),this['templatesDefinitions']=_0x4adabd,this[_0x5cd6('0x2c')]=this['_createTemplateListView'](_0x27a259,_0x4adabd),this[_0x5cd6('0x9')]=this[_0x5cd6('0x16')](_0x27a259),this[_0x5cd6('0x13')]=new _0x445a0a(_0x27a259),_0x4adabd[_0x5cd6('0x1a')]||(this['infoView'][_0x5cd6('0x0')]=!0x0,this[_0x5cd6('0x13')]['setNoTemplatesAvailableText']()),this['children']=this[_0x5cd6('0x30')](_0x4adabd[_0x5cd6('0x1a')]?[this[_0x5cd6('0x9')],this['infoView'],this[_0x5cd6('0x2c')]]:[this[_0x5cd6('0x13')]]),this[_0x5cd6('0x2d')]=new _0x4efb1c({'focusables':this[_0x5cd6('0x20')],'focusTracker':this[_0x5cd6('0x18')],'keystrokeHandler':this[_0x5cd6('0x24')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x5cd6('0x2e')}}),this[_0x5cd6('0x1f')]({'tag':'div','attributes':{'class':['ck',_0x5cd6('0x15')],'tabindex':'-1'},'children':this[_0x5cd6('0x20')]}),_0x3cc58a(this);}[_0x5cd6('0x2b')](){if(super[_0x5cd6('0x2b')](),!this['templatesDefinitions'][_0x5cd6('0x1a')])return;const _0xc6c0b=_0x120c9b=>_0x120c9b[_0x5cd6('0x31')]();this['focusTracker'][_0x5cd6('0x2f')](this[_0x5cd6('0x9')][_0x5cd6('0x1b')]),this[_0x5cd6('0x18')][_0x5cd6('0x2f')](this[_0x5cd6('0x2c')][_0x5cd6('0x1b')]),this[_0x5cd6('0x24')][_0x5cd6('0x26')](this['element']),this[_0x5cd6('0x24')][_0x5cd6('0x2a')](_0x5cd6('0xd'),_0xc6c0b),this[_0x5cd6('0x24')][_0x5cd6('0x2a')]('arrowleft',_0xc6c0b),this[_0x5cd6('0x24')]['set'](_0x5cd6('0x1'),_0xc6c0b),this[_0x5cd6('0x24')][_0x5cd6('0x2a')](_0x5cd6('0x28'),_0xc6c0b);}[_0x5cd6('0xe')](){this['templatesDefinitions'][_0x5cd6('0x1a')]&&this[_0x5cd6('0x9')][_0x5cd6('0xe')]();}[_0x5cd6('0x6')](){this[_0x5cd6('0xf')]['length']&&(this[_0x5cd6('0x9')][_0x5cd6('0x6')](),this[_0x5cd6('0x25')]());}[_0x5cd6('0x25')](_0x5a53d8){if(!this[_0x5cd6('0xf')][_0x5cd6('0x1a')])return;let _0x40be81=!0x1;if(_0x5a53d8)for(const _0x190c56 of this['templateListView'][_0x5cd6('0x19')]){_0x190c56[_0x5cd6('0x20')]['first'][_0x5cd6('0x27')][_0x5cd6('0x22')][_0x5cd6('0x12')]()[_0x5cd6('0x17')](_0x5a53d8['toLowerCase']())?_0x190c56[_0x5cd6('0x0')]=!0x0:_0x190c56[_0x5cd6('0x0')]=!0x1;const _0x47b5d2=new RegExp(_0x4d87e3(_0x5a53d8),'ig');_0x40be81=this[_0x5cd6('0x2c')][_0x5cd6('0x8')](_0x47b5d2);}else this[_0x5cd6('0x2c')][_0x5cd6('0x3')](),_0x40be81=!0x0;this[_0x5cd6('0x13')][_0x5cd6('0x0')]=!_0x40be81,_0x40be81||this['infoView'][_0x5cd6('0x14')](_0x5a53d8);}[_0x5cd6('0x29')](_0x2a323d,_0x40e846){const _0x51dbd5=new L(_0x2a323d);return _0x51dbd5['extendTemplate']({'attributes':{'class':[_0x5cd6('0x5')]}}),_0x51dbd5['items'][_0x5cd6('0xa')](_0x40e846['map']((_0x5cdafd,_0x31cde5)=>{const _0x3c58f6=new _0x27c1dd(_0x2a323d,_0x31cde5),_0xcaa051=new _0x4560cd(_0x2a323d,_0x5cdafd);return _0x3c58f6[_0x5cd6('0x10')]=_0xcaa051,_0x3c58f6['children'][_0x5cd6('0x2f')](_0xcaa051),_0x3c58f6[_0x5cd6('0x20')][_0x5cd6('0x1d')]('execute')['to'](this),_0x3c58f6;})),_0x51dbd5;}[_0x5cd6('0x16')](_0x577c21){const _0x3e28ff=new _0x58a9bc(_0x577c21,_0xd3e282);return this[_0x5cd6('0x26')](_0x3e28ff[_0x5cd6('0x2')],_0x5cd6('0x1c'),()=>{this['_filterTemplates'](_0x3e28ff[_0x5cd6('0x2')][_0x5cd6('0x1b')]['value']);}),_0x3e28ff['on']('reset',()=>{this['reset']();}),_0x3e28ff;}}class L extends _0x153623{[_0x5cd6('0x8')](_0x2d1ee1){const _0x266383=new Map(),_0x219619=this[_0x5cd6('0x19')][_0x5cd6('0x21')](_0x2f3f3d=>{const _0x2c4fd9=_0x2f3f3d['buttonView'][_0x5cd6('0xb')](_0x2d1ee1);return _0x2f3f3d[_0x5cd6('0x0')]=!!_0x2c4fd9,_0x2f3f3d[_0x5cd6('0x10')]['highlightText'](_0x2c4fd9?_0x2d1ee1:null),_0x2c4fd9&&_0x266383[_0x5cd6('0x2a')](_0x2f3f3d,_0x2c4fd9),_0x2f3f3d;})[_0x5cd6('0x1e')](M)['sort']((_0x5f1537,_0x37ed7f)=>{const _0x4bc0ad=_0x266383[_0x5cd6('0x23')](_0x5f1537),_0x5be6d4=_0x266383[_0x5cd6('0x23')](_0x37ed7f);return _0x4bc0ad&&!_0x5be6d4?-0x1:_0x5be6d4&&!_0x4bc0ad?0x1:_0x4bc0ad||_0x5be6d4?_0x4bc0ad[_0x5cd6('0x22')]&&!_0x5be6d4[_0x5cd6('0x22')]?-0x1:!_0x4bc0ad[_0x5cd6('0x22')]&&_0x5be6d4[_0x5cd6('0x22')]?0x1:0x0:0x0;});return this[_0x5cd6('0x19')][_0x5cd6('0xc')](),this['items'][_0x5cd6('0xa')](_0x219619),!!_0x266383['size'];}[_0x5cd6('0x3')](){const _0x1529cd=this[_0x5cd6('0x19')][_0x5cd6('0x21')](_0x108c79=>_0x108c79)[_0x5cd6('0x1e')](M);_0x1529cd[_0x5cd6('0x7')](_0x39de7d=>{_0x39de7d[_0x5cd6('0x0')]=!0x0,_0x39de7d[_0x5cd6('0x10')][_0x5cd6('0x11')](null);}),this[_0x5cd6('0x19')][_0x5cd6('0xc')](),this[_0x5cd6('0x19')][_0x5cd6('0xa')](_0x1529cd);}}function M(_0x567d56,_0x229c7b){return _0x567d56[_0x5cd6('0x4')]-_0x229c7b[_0x5cd6('0x4')];}
@@ -1,104 +1,104 @@
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 template/ui/templatelistbuttonview
7
- */
8
- import type { Locale } from 'ckeditor5/src/utils';
9
- import { ButtonView, View } from 'ckeditor5/src/ui';
10
- import type { TemplateDefinition } from '../template';
11
- /**
12
- * A class representing an individual button (template) in the list. Renders a rich preview of the template option.
13
- *
14
- * @protected
15
- */
16
- export default class TemplateListButtonView extends ButtonView {
17
- /**
18
- * The definition of the template that the button will apply when executed.
19
- *
20
- * @readonly
21
- */
22
- templateDefinition: TemplateDefinition;
23
- /**
24
- * The view rendering the text part of the template definition.
25
- *
26
- * @protected
27
- * @readonly
28
- */
29
- textPartView: TextPartView | null;
30
- /**
31
- * Creates an instance of the {@link module:template/ui/templatelistbuttonview~TemplateListButtonView} class.
32
- *
33
- * @param locale The localization services instance.
34
- * @param templateDefinition The definition of the template.
35
- */
36
- constructor(locale: Locale, templateDefinition: TemplateDefinition);
37
- /**
38
- * @inheritDoc
39
- */
40
- render(): void;
41
- destroy(): void;
42
- /**
43
- * Tells whether the `title` or `description` of the {@link #templateDefinition} match against the provided regular expression.
44
- *
45
- * @param regExp A regular expression to match the definition against.
46
- * @returns When the match is positive, an object with the `title` and `description` keys is returned that describes
47
- * the match. Otherwise, this method returns `null`.
48
- */
49
- isMatching(regExp: RegExp): object | null;
50
- /**
51
- * Highlights a subset of the {@link #textPartView} text according to a specified regular expression. When `null` is passed,
52
- * the highlighting is turned off.
53
- *
54
- * @param regExp A regular expression used to highlight the matching text in the {@link #textPartView}.
55
- */
56
- highlightText(regExp: RegExp | null): void;
57
- }
58
- /**
59
- * A view representing the title and the description of the template.
60
- *
61
- * @protected
62
- */
63
- export declare class TextPartView extends View {
64
- /**
65
- * The title text of the template.
66
- *
67
- * @readonly
68
- */
69
- title: string;
70
- /**
71
- * The description text of the template.
72
- *
73
- * @readonly
74
- */
75
- description: string | undefined;
76
- /**
77
- * A regular expression used to highlight the matching text in the {@link #titleView} and {@link #descriptionView}.
78
- *
79
- * **Note**: When set to `null`, no text gets highlighted.
80
- */
81
- highlightRegExp: RegExp | null;
82
- /**
83
- * Renders the title text of a template.
84
- *
85
- * **Note**: It acts as a label of the entire button in the context of accessibility.
86
- *
87
- * @readonly
88
- */
89
- titleView: View;
90
- /**
91
- * Renders the description text of a template.
92
- *
93
- * @readonly
94
- */
95
- descriptionView: View;
96
- /**
97
- * Creates an instance of the text part view.
98
- *
99
- * @param locale The {@link module:core/editor/editor~Editor#locale} instance.
100
- * @param templateDefinition The definition of the template.
101
- * @param labelId A unique ID that connects the entire button with the {@link #titleView} in the context of accessibility.
102
- */
103
- constructor(locale: Locale, templateDefinition: TemplateDefinition, labelId: string);
104
- }
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 template/ui/templatelistbuttonview
7
+ */
8
+ import type { Locale } from 'ckeditor5/src/utils';
9
+ import { ButtonView, View } from 'ckeditor5/src/ui';
10
+ import type { TemplateDefinition } from '../template';
11
+ /**
12
+ * A class representing an individual button (template) in the list. Renders a rich preview of the template option.
13
+ *
14
+ * @protected
15
+ */
16
+ export default class TemplateListButtonView extends ButtonView {
17
+ /**
18
+ * The definition of the template that the button will apply when executed.
19
+ *
20
+ * @readonly
21
+ */
22
+ templateDefinition: TemplateDefinition;
23
+ /**
24
+ * The view rendering the text part of the template definition.
25
+ *
26
+ * @protected
27
+ * @readonly
28
+ */
29
+ textPartView: TextPartView | null;
30
+ /**
31
+ * Creates an instance of the {@link module:template/ui/templatelistbuttonview~TemplateListButtonView} class.
32
+ *
33
+ * @param locale The localization services instance.
34
+ * @param templateDefinition The definition of the template.
35
+ */
36
+ constructor(locale: Locale, templateDefinition: TemplateDefinition);
37
+ /**
38
+ * @inheritDoc
39
+ */
40
+ render(): void;
41
+ destroy(): void;
42
+ /**
43
+ * Tells whether the `title` or `description` of the {@link #templateDefinition} match against the provided regular expression.
44
+ *
45
+ * @param regExp A regular expression to match the definition against.
46
+ * @returns When the match is positive, an object with the `title` and `description` keys is returned that describes
47
+ * the match. Otherwise, this method returns `null`.
48
+ */
49
+ isMatching(regExp: RegExp): object | null;
50
+ /**
51
+ * Highlights a subset of the {@link #textPartView} text according to a specified regular expression. When `null` is passed,
52
+ * the highlighting is turned off.
53
+ *
54
+ * @param regExp A regular expression used to highlight the matching text in the {@link #textPartView}.
55
+ */
56
+ highlightText(regExp: RegExp | null): void;
57
+ }
58
+ /**
59
+ * A view representing the title and the description of the template.
60
+ *
61
+ * @protected
62
+ */
63
+ export declare class TextPartView extends View {
64
+ /**
65
+ * The title text of the template.
66
+ *
67
+ * @readonly
68
+ */
69
+ title: string;
70
+ /**
71
+ * The description text of the template.
72
+ *
73
+ * @readonly
74
+ */
75
+ description: string | undefined;
76
+ /**
77
+ * A regular expression used to highlight the matching text in the {@link #titleView} and {@link #descriptionView}.
78
+ *
79
+ * **Note**: When set to `null`, no text gets highlighted.
80
+ */
81
+ highlightRegExp: RegExp | null;
82
+ /**
83
+ * Renders the title text of a template.
84
+ *
85
+ * **Note**: It acts as a label of the entire button in the context of accessibility.
86
+ *
87
+ * @readonly
88
+ */
89
+ titleView: View;
90
+ /**
91
+ * Renders the description text of a template.
92
+ *
93
+ * @readonly
94
+ */
95
+ descriptionView: View;
96
+ /**
97
+ * Creates an instance of the text part view.
98
+ *
99
+ * @param locale The {@link module:core/editor/editor~Editor#locale} instance.
100
+ * @param templateDefinition The definition of the template.
101
+ * @param labelId A unique ID that connects the entire button with the {@link #titleView} in the context of accessibility.
102
+ */
103
+ constructor(locale: Locale, templateDefinition: TemplateDefinition, labelId: string);
104
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x231c=['titleView','title','_setupTextContentRendering','descriptionView','render','isColorInherited','ck-button__label','isMatching','<mark>','element','highlightText','set','extendTemplate','join','span','textPartView','innerHTML','destroy','text','ck-template-form__text-part','option','description','templateDefinition','index','match','add','change:highlightRegExp','children','map','labelView','lastIndex','</mark>','exec','setTemplate','highlightRegExp','length','div','substring','push'];(function(_0x425499,_0x231c7e){const _0x144c0a=function(_0x257e16){while(--_0x257e16){_0x425499['push'](_0x425499['shift']());}};_0x144c0a(++_0x231c7e);}(_0x231c,0x17a));const _0x144c=function(_0x425499,_0x231c7e){_0x425499=_0x425499-0x0;let _0x144c0a=_0x231c[_0x425499];return _0x144c0a;};import{ButtonView as _0x2c0fd6,View as _0x3c25c3}from'ckeditor5/src/ui';import{escape as _0x34e08a}from'lodash-es';import _0x1c949c from'../../theme/icons/template-generic.svg';export default class E extends _0x2c0fd6{constructor(_0x2cc353,_0x364ce3){super(_0x2cc353),this[_0x144c('0x22')]=_0x364ce3,this[_0x144c('0x1b')]=null;const {icon:_0x374248=_0x1c949c}=_0x364ce3;this[_0x144c('0x17')]({'withText':!0x0,'icon':_0x374248}),this[_0x144c('0x18')]({'attributes':{'role':_0x144c('0x20')}}),this['iconView'][_0x144c('0x11')]=!0x1;}['render'](){super[_0x144c('0x10')](),this[_0x144c('0x1b')]=new TextPartView(this['locale'],this[_0x144c('0x22')],this[_0x144c('0x2')][_0x144c('0x15')]['id']),this[_0x144c('0x0')]['remove'](this['labelView']),this['children'][_0x144c('0x25')](this[_0x144c('0x1b')]);}[_0x144c('0x1d')](){super[_0x144c('0x1d')](),this[_0x144c('0x2')]['destroy']();}[_0x144c('0x13')](_0x585b61){const {title:_0x4ffaf9,description:_0x29ba0e}=this[_0x144c('0x22')],_0x2ade11=!!_0x4ffaf9[_0x144c('0x24')](_0x585b61),_0x34f1f7=!(!_0x29ba0e||!_0x29ba0e[_0x144c('0x24')](_0x585b61));return _0x2ade11||_0x34f1f7?{'title':_0x2ade11,'description':_0x34f1f7}:null;}[_0x144c('0x16')](_0x3daefd){this[_0x144c('0x1b')][_0x144c('0x7')]=_0x3daefd;}}export class TextPartView extends _0x3c25c3{constructor(_0x19d0cd,_0x369d9f,_0x55be40){super(_0x19d0cd),this[_0x144c('0xd')]=_0x369d9f['title'],this[_0x144c('0x21')]=_0x369d9f[_0x144c('0x21')],this['set'](_0x144c('0x7'),null),this['titleView']=new _0x3c25c3(_0x19d0cd),this['titleView'][_0x144c('0x6')]({'tag':_0x144c('0x1a'),'attributes':{'class':['ck',_0x144c('0x12')],'id':_0x55be40}});const _0x163a69=[this[_0x144c('0xc')]];this['description']&&(this[_0x144c('0xf')]=new _0x3c25c3(_0x19d0cd),this[_0x144c('0xf')][_0x144c('0x6')]({'tag':'p','attributes':{'class':['ck','ck-template-form__description']}}),_0x163a69[_0x144c('0xb')](this[_0x144c('0xf')])),this[_0x144c('0x6')]({'tag':_0x144c('0x9'),'attributes':{'class':['ck',_0x144c('0x1f')]},'children':_0x163a69}),this[_0x144c('0xe')]();}[_0x144c('0xe')](){const {title:_0xcd9426,description:_0x52457c,titleView:_0x27f85c,descriptionView:_0x4ded32}=this,_0xf176c3=()=>{_0x27f85c[_0x144c('0x15')][_0x144c('0x1c')]=C(_0xcd9426,this[_0x144c('0x7')]),_0x52457c&&(_0x4ded32['element'][_0x144c('0x1c')]=C(_0x52457c,this[_0x144c('0x7')]));};this['on'](_0x144c('0x10'),()=>{_0xf176c3(),this['on'](_0x144c('0x26'),_0xf176c3);});}}function C(_0x2f9822,_0x19247a){if(!_0x19247a)return _0x34e08a(_0x2f9822);const _0x269587=[];let _0x4f190f,_0xde995a=0x0;for(;null!==(_0x4f190f=_0x19247a[_0x144c('0x5')](_0x2f9822));){const _0x4979f8=_0x4f190f[_0x144c('0x23')];_0x4979f8!==_0xde995a&&_0x269587[_0x144c('0xb')]({'text':_0x2f9822['substring'](_0xde995a,_0x4979f8),'isMatch':!0x1}),_0x269587[_0x144c('0xb')]({'text':_0x4f190f[0x0],'isMatch':!0x0}),_0xde995a=_0x19247a[_0x144c('0x3')];}return _0xde995a!==_0x2f9822[_0x144c('0x8')]&&_0x269587[_0x144c('0xb')]({'text':_0x2f9822[_0x144c('0xa')](_0xde995a),'isMatch':!0x1}),_0x269587[_0x144c('0x1')](_0x4770f0=>(_0x4770f0['text']=_0x34e08a(_0x4770f0['text']),_0x4770f0))[_0x144c('0x1')](_0x37b862=>_0x37b862['isMatch']?_0x144c('0x14')+_0x37b862[_0x144c('0x1e')]+_0x144c('0x4'):_0x37b862[_0x144c('0x1e')])[_0x144c('0x19')]('');}
23
+ const _0x43d9=['</mark>','title','innerHTML','ck-template-form__text-part','descriptionView','highlightRegExp','labelView','_setupTextContentRendering','option','element','setTemplate','map','destroy','children','render','add','change:highlightRegExp','iconView','isColorInherited','join','exec','textPartView','<mark>','set','push','description','index','text','extendTemplate','match','locale','templateDefinition','ck-button__label','titleView','length'];(function(_0x6a3541,_0x43d9e4){const _0x1532cf=function(_0x17a301){while(--_0x17a301){_0x6a3541['push'](_0x6a3541['shift']());}};_0x1532cf(++_0x43d9e4);}(_0x43d9,0x7f));const _0x1532=function(_0x6a3541,_0x43d9e4){_0x6a3541=_0x6a3541-0x0;let _0x1532cf=_0x43d9[_0x6a3541];return _0x1532cf;};import{ButtonView as _0x2893df,View as _0x4ab27a}from'ckeditor5/src/ui';import{escape as _0x14190b}from'lodash-es';import _0x44a3dd from'../../theme/icons/template-generic.svg';export default class E extends _0x2893df{constructor(_0x403c40,_0x4dfe29){super(_0x403c40),this['templateDefinition']=_0x4dfe29,this[_0x1532('0x22')]=null;const {icon:_0x26bd16=_0x44a3dd}=_0x4dfe29;this[_0x1532('0x1')]({'withText':!0x0,'icon':_0x26bd16}),this[_0x1532('0x6')]({'attributes':{'role':_0x1532('0x15')}}),this[_0x1532('0x1e')][_0x1532('0x1f')]=!0x1;}['render'](){super[_0x1532('0x1b')](),this[_0x1532('0x22')]=new TextPartView(this[_0x1532('0x8')],this['templateDefinition'],this[_0x1532('0x13')][_0x1532('0x16')]['id']),this['children']['remove'](this['labelView']),this[_0x1532('0x1a')][_0x1532('0x1c')](this[_0x1532('0x22')]);}[_0x1532('0x19')](){super[_0x1532('0x19')](),this['labelView'][_0x1532('0x19')]();}['isMatching'](_0x3c4816){const {title:_0x5ac350,description:_0xf02c43}=this[_0x1532('0x9')],_0x238ece=!!_0x5ac350[_0x1532('0x7')](_0x3c4816),_0x3f8a11=!(!_0xf02c43||!_0xf02c43['match'](_0x3c4816));return _0x238ece||_0x3f8a11?{'title':_0x238ece,'description':_0x3f8a11}:null;}['highlightText'](_0x27e356){this[_0x1532('0x22')][_0x1532('0x12')]=_0x27e356;}}export class TextPartView extends _0x4ab27a{constructor(_0x2e76fa,_0x40bc66,_0x3e10e1){super(_0x2e76fa),this[_0x1532('0xe')]=_0x40bc66[_0x1532('0xe')],this[_0x1532('0x3')]=_0x40bc66['description'],this[_0x1532('0x1')](_0x1532('0x12'),null),this[_0x1532('0xb')]=new _0x4ab27a(_0x2e76fa),this[_0x1532('0xb')][_0x1532('0x17')]({'tag':'span','attributes':{'class':['ck',_0x1532('0xa')],'id':_0x3e10e1}});const _0x30ea5f=[this[_0x1532('0xb')]];this['description']&&(this['descriptionView']=new _0x4ab27a(_0x2e76fa),this['descriptionView']['setTemplate']({'tag':'p','attributes':{'class':['ck','ck-template-form__description']}}),_0x30ea5f[_0x1532('0x2')](this[_0x1532('0x11')])),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x1532('0x10')]},'children':_0x30ea5f}),this[_0x1532('0x14')]();}[_0x1532('0x14')](){const {title:_0xbb791f,description:_0x215386,titleView:_0xf4ee84,descriptionView:_0x48a1c5}=this,_0x14c323=()=>{_0xf4ee84[_0x1532('0x16')][_0x1532('0xf')]=C(_0xbb791f,this['highlightRegExp']),_0x215386&&(_0x48a1c5[_0x1532('0x16')][_0x1532('0xf')]=C(_0x215386,this[_0x1532('0x12')]));};this['on'](_0x1532('0x1b'),()=>{_0x14c323(),this['on'](_0x1532('0x1d'),_0x14c323);});}}function C(_0x5888c2,_0x4591ac){if(!_0x4591ac)return _0x14190b(_0x5888c2);const _0x4b2c63=[];let _0x1545aa,_0x37ad6d=0x0;for(;null!==(_0x1545aa=_0x4591ac[_0x1532('0x21')](_0x5888c2));){const _0x47309e=_0x1545aa[_0x1532('0x4')];_0x47309e!==_0x37ad6d&&_0x4b2c63[_0x1532('0x2')]({'text':_0x5888c2['substring'](_0x37ad6d,_0x47309e),'isMatch':!0x1}),_0x4b2c63[_0x1532('0x2')]({'text':_0x1545aa[0x0],'isMatch':!0x0}),_0x37ad6d=_0x4591ac['lastIndex'];}return _0x37ad6d!==_0x5888c2[_0x1532('0xc')]&&_0x4b2c63['push']({'text':_0x5888c2['substring'](_0x37ad6d),'isMatch':!0x1}),_0x4b2c63[_0x1532('0x18')](_0x340589=>(_0x340589[_0x1532('0x5')]=_0x14190b(_0x340589['text']),_0x340589))[_0x1532('0x18')](_0x54c368=>_0x54c368['isMatch']?_0x1532('0x0')+_0x54c368[_0x1532('0x5')]+_0x1532('0xd'):_0x54c368[_0x1532('0x5')])[_0x1532('0x20')]('');}
@@ -1,34 +1,34 @@
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 template/ui/templatelistitemview
7
- */
8
- import { type Locale } from 'ckeditor5/src/utils';
9
- import { ListItemView } from 'ckeditor5/src/ui';
10
- import type TemplateListButtonView from './templatelistbuttonview';
11
- /**
12
- * A view representing an item in the list of tempaltes.
13
- *
14
- * @protected
15
- */
16
- export default class TemplateListItemView extends ListItemView {
17
- /**
18
- * The initial index of the item in the list of templates.
19
- * Useful while searching and sorting to reverse the list to the same order.
20
- */
21
- readonly originalIndex: number;
22
- /**
23
- * The instance of the template button view containing the title,
24
- * icon, and description of the template.
25
- */
26
- buttonView: TemplateListButtonView | null;
27
- /**
28
- * Creates an instance of the {@link module:template/ui/templatelistitemview~TemplateListItemView} class.
29
- *
30
- * @param locale The localization services instance.
31
- * @param originalIndex The initial index of the item in the list of templates.
32
- */
33
- constructor(locale: Locale, originalIndex: number);
34
- }
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 template/ui/templatelistitemview
7
+ */
8
+ import { type Locale } from 'ckeditor5/src/utils';
9
+ import { ListItemView } from 'ckeditor5/src/ui';
10
+ import type TemplateListButtonView from './templatelistbuttonview';
11
+ /**
12
+ * A view representing an item in the list of tempaltes.
13
+ *
14
+ * @protected
15
+ */
16
+ export default class TemplateListItemView extends ListItemView {
17
+ /**
18
+ * The initial index of the item in the list of templates.
19
+ * Useful while searching and sorting to reverse the list to the same order.
20
+ */
21
+ readonly originalIndex: number;
22
+ /**
23
+ * The instance of the template button view containing the title,
24
+ * icon, and description of the template.
25
+ */
26
+ buttonView: TemplateListButtonView | null;
27
+ /**
28
+ * Creates an instance of the {@link module:template/ui/templatelistitemview~TemplateListItemView} class.
29
+ *
30
+ * @param locale The localization services instance.
31
+ * @param originalIndex The initial index of the item in the list of templates.
32
+ */
33
+ constructor(locale: Locale, originalIndex: number);
34
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2960=['buttonView'];(function(_0x466b01,_0x296091){var _0x2bf699=function(_0x12a94d){while(--_0x12a94d){_0x466b01['push'](_0x466b01['shift']());}};_0x2bf699(++_0x296091);}(_0x2960,0x18c));var _0x2bf6=function(_0x466b01,_0x296091){_0x466b01=_0x466b01-0x0;var _0x2bf699=_0x2960[_0x466b01];return _0x2bf699;};import{ListItemView as _0x475ed7}from'ckeditor5/src/ui';export default class H extends _0x475ed7{constructor(_0x1afe13,_0x4aba32){super(_0x1afe13),this['originalIndex']=_0x4aba32,this[_0x2bf6('0x0')]=null;}}
23
+ var _0x3e47=['originalIndex','buttonView'];(function(_0x26e6af,_0x3e47d5){var _0x2ac821=function(_0x5d17ba){while(--_0x5d17ba){_0x26e6af['push'](_0x26e6af['shift']());}};_0x2ac821(++_0x3e47d5);}(_0x3e47,0x107));var _0x2ac8=function(_0x26e6af,_0x3e47d5){_0x26e6af=_0x26e6af-0x0;var _0x2ac821=_0x3e47[_0x26e6af];return _0x2ac821;};import{ListItemView as _0x4bcc68}from'ckeditor5/src/ui';export default class H extends _0x4bcc68{constructor(_0x6907eb,_0x285a83){super(_0x6907eb),this[_0x2ac8('0x1')]=_0x285a83,this[_0x2ac8('0x0')]=null;}}