@ckeditor/ckeditor5-template 48.2.0 → 48.3.0-alpha.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.
Files changed (159) hide show
  1. package/dist/augmentation.d.ts +21 -21
  2. package/dist/index.d.ts +11 -11
  3. package/dist/index.js +1 -1
  4. package/dist/legacyerrors.d.ts +0 -4
  5. package/dist/template.d.ts +112 -112
  6. package/dist/templatecommand.d.ts +18 -18
  7. package/dist/templateediting.d.ts +25 -25
  8. package/dist/templateui.d.ts +32 -32
  9. package/dist/translations/af.js +1 -1
  10. package/dist/translations/af.umd.js +1 -1
  11. package/dist/translations/ar.js +1 -1
  12. package/dist/translations/ar.umd.js +1 -1
  13. package/dist/translations/ast.js +1 -1
  14. package/dist/translations/ast.umd.js +1 -1
  15. package/dist/translations/az.js +1 -1
  16. package/dist/translations/az.umd.js +1 -1
  17. package/dist/translations/be.js +1 -1
  18. package/dist/translations/be.umd.js +1 -1
  19. package/dist/translations/bg.js +1 -1
  20. package/dist/translations/bg.umd.js +1 -1
  21. package/dist/translations/bn.js +1 -1
  22. package/dist/translations/bn.umd.js +1 -1
  23. package/dist/translations/bs.js +1 -1
  24. package/dist/translations/bs.umd.js +1 -1
  25. package/dist/translations/ca.js +1 -1
  26. package/dist/translations/ca.umd.js +1 -1
  27. package/dist/translations/cs.js +1 -1
  28. package/dist/translations/cs.umd.js +1 -1
  29. package/dist/translations/da.js +1 -1
  30. package/dist/translations/da.umd.js +1 -1
  31. package/dist/translations/de-ch.js +1 -1
  32. package/dist/translations/de-ch.umd.js +1 -1
  33. package/dist/translations/de.js +1 -1
  34. package/dist/translations/de.umd.js +1 -1
  35. package/dist/translations/el.js +1 -1
  36. package/dist/translations/el.umd.js +1 -1
  37. package/dist/translations/en-au.js +1 -1
  38. package/dist/translations/en-au.umd.js +1 -1
  39. package/dist/translations/en-gb.js +1 -1
  40. package/dist/translations/en-gb.umd.js +1 -1
  41. package/dist/translations/en.js +1 -1
  42. package/dist/translations/en.umd.js +1 -1
  43. package/dist/translations/eo.js +1 -1
  44. package/dist/translations/eo.umd.js +1 -1
  45. package/dist/translations/es-co.js +1 -1
  46. package/dist/translations/es-co.umd.js +1 -1
  47. package/dist/translations/es.js +1 -1
  48. package/dist/translations/es.umd.js +1 -1
  49. package/dist/translations/et.js +1 -1
  50. package/dist/translations/et.umd.js +1 -1
  51. package/dist/translations/eu.js +1 -1
  52. package/dist/translations/eu.umd.js +1 -1
  53. package/dist/translations/fa.js +1 -1
  54. package/dist/translations/fa.umd.js +1 -1
  55. package/dist/translations/fi.js +1 -1
  56. package/dist/translations/fi.umd.js +1 -1
  57. package/dist/translations/fr.js +1 -1
  58. package/dist/translations/fr.umd.js +1 -1
  59. package/dist/translations/gl.js +1 -1
  60. package/dist/translations/gl.umd.js +1 -1
  61. package/dist/translations/gu.js +1 -1
  62. package/dist/translations/gu.umd.js +1 -1
  63. package/dist/translations/he.js +1 -1
  64. package/dist/translations/he.umd.js +1 -1
  65. package/dist/translations/hi.js +1 -1
  66. package/dist/translations/hi.umd.js +1 -1
  67. package/dist/translations/hr.js +1 -1
  68. package/dist/translations/hr.umd.js +1 -1
  69. package/dist/translations/hu.js +1 -1
  70. package/dist/translations/hu.umd.js +1 -1
  71. package/dist/translations/hy.js +1 -1
  72. package/dist/translations/hy.umd.js +1 -1
  73. package/dist/translations/id.js +1 -1
  74. package/dist/translations/id.umd.js +1 -1
  75. package/dist/translations/it.js +1 -1
  76. package/dist/translations/it.umd.js +1 -1
  77. package/dist/translations/ja.js +1 -1
  78. package/dist/translations/ja.umd.js +1 -1
  79. package/dist/translations/jv.js +1 -1
  80. package/dist/translations/jv.umd.js +1 -1
  81. package/dist/translations/kk.js +1 -1
  82. package/dist/translations/kk.umd.js +1 -1
  83. package/dist/translations/km.js +1 -1
  84. package/dist/translations/km.umd.js +1 -1
  85. package/dist/translations/kn.js +1 -1
  86. package/dist/translations/kn.umd.js +1 -1
  87. package/dist/translations/ko.js +1 -1
  88. package/dist/translations/ko.umd.js +1 -1
  89. package/dist/translations/ku.js +1 -1
  90. package/dist/translations/ku.umd.js +1 -1
  91. package/dist/translations/lt.js +1 -1
  92. package/dist/translations/lt.umd.js +1 -1
  93. package/dist/translations/lv.js +1 -1
  94. package/dist/translations/lv.umd.js +1 -1
  95. package/dist/translations/ms.js +1 -1
  96. package/dist/translations/ms.umd.js +1 -1
  97. package/dist/translations/nb.js +1 -1
  98. package/dist/translations/nb.umd.js +1 -1
  99. package/dist/translations/ne.js +1 -1
  100. package/dist/translations/ne.umd.js +1 -1
  101. package/dist/translations/nl.js +1 -1
  102. package/dist/translations/nl.umd.js +1 -1
  103. package/dist/translations/no.js +1 -1
  104. package/dist/translations/no.umd.js +1 -1
  105. package/dist/translations/oc.js +1 -1
  106. package/dist/translations/oc.umd.js +1 -1
  107. package/dist/translations/pl.js +1 -1
  108. package/dist/translations/pl.umd.js +1 -1
  109. package/dist/translations/pt-br.js +1 -1
  110. package/dist/translations/pt-br.umd.js +1 -1
  111. package/dist/translations/pt.js +1 -1
  112. package/dist/translations/pt.umd.js +1 -1
  113. package/dist/translations/ro.js +1 -1
  114. package/dist/translations/ro.umd.js +1 -1
  115. package/dist/translations/ru.js +1 -1
  116. package/dist/translations/ru.umd.js +1 -1
  117. package/dist/translations/si.js +1 -1
  118. package/dist/translations/si.umd.js +1 -1
  119. package/dist/translations/sk.js +1 -1
  120. package/dist/translations/sk.umd.js +1 -1
  121. package/dist/translations/sl.js +1 -1
  122. package/dist/translations/sl.umd.js +1 -1
  123. package/dist/translations/sq.js +1 -1
  124. package/dist/translations/sq.umd.js +1 -1
  125. package/dist/translations/sr-latn.js +1 -1
  126. package/dist/translations/sr-latn.umd.js +1 -1
  127. package/dist/translations/sr.js +1 -1
  128. package/dist/translations/sr.umd.js +1 -1
  129. package/dist/translations/sv.js +1 -1
  130. package/dist/translations/sv.umd.js +1 -1
  131. package/dist/translations/th.js +1 -1
  132. package/dist/translations/th.umd.js +1 -1
  133. package/dist/translations/ti.js +1 -1
  134. package/dist/translations/ti.umd.js +1 -1
  135. package/dist/translations/tk.js +1 -1
  136. package/dist/translations/tk.umd.js +1 -1
  137. package/dist/translations/tr.js +1 -1
  138. package/dist/translations/tr.umd.js +1 -1
  139. package/dist/translations/tt.js +1 -1
  140. package/dist/translations/tt.umd.js +1 -1
  141. package/dist/translations/ug.js +1 -1
  142. package/dist/translations/ug.umd.js +1 -1
  143. package/dist/translations/uk.js +1 -1
  144. package/dist/translations/uk.umd.js +1 -1
  145. package/dist/translations/ur.js +1 -1
  146. package/dist/translations/ur.umd.js +1 -1
  147. package/dist/translations/uz.js +1 -1
  148. package/dist/translations/uz.umd.js +1 -1
  149. package/dist/translations/vi.js +1 -1
  150. package/dist/translations/vi.umd.js +1 -1
  151. package/dist/translations/zh-cn.js +1 -1
  152. package/dist/translations/zh-cn.umd.js +1 -1
  153. package/dist/translations/zh.js +1 -1
  154. package/dist/translations/zh.umd.js +1 -1
  155. package/dist/ui/templatelistbuttonview.d.ts +94 -94
  156. package/dist/ui/templatelistitemview.d.ts +29 -29
  157. package/dist/ui/templatelistview.d.ts +33 -33
  158. package/dist/utils/common-translations.d.ts +6 -6
  159. package/package.json +6 -6
@@ -1,23 +1,23 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- import type { Template, TemplateCommand, TemplateEditing, TemplateUI, TemplateConfig } from './index.js';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface PluginsMap {
8
- [Template.pluginName]: Template;
9
- [TemplateEditing.pluginName]: TemplateEditing;
10
- [TemplateUI.pluginName]: TemplateUI;
11
- }
12
- interface CommandsMap {
13
- insertTemplate: TemplateCommand;
14
- }
15
- interface EditorConfig {
16
- /**
17
- * The configuration of the {@link module:template/template~Template} feature.
18
- *
19
- * Read more in {@link module:template/template~TemplateConfig}.
20
- */
21
- template?: TemplateConfig;
22
- }
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import type { Template, TemplateCommand, TemplateEditing, TemplateUI, TemplateConfig } from "./index.js";
6
+ declare module "@ckeditor/ckeditor5-core" {
7
+ interface PluginsMap {
8
+ [Template.pluginName]: Template;
9
+ [TemplateEditing.pluginName]: TemplateEditing;
10
+ [TemplateUI.pluginName]: TemplateUI;
11
+ }
12
+ interface CommandsMap {
13
+ insertTemplate: TemplateCommand;
14
+ }
15
+ interface EditorConfig {
16
+ /**
17
+ * The configuration of the {@link module:template/template~Template} feature.
18
+ *
19
+ * Read more in {@link module:template/template~TemplateConfig}.
20
+ */
21
+ template?: TemplateConfig;
22
+ }
23
23
  }
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module template
7
- */
8
- export { Template } from './template.js';
9
- export { TemplateCommand } from './templatecommand.js';
10
- export { TemplateEditing } from './templateediting.js';
11
- export { TemplateUI } from './templateui.js';
12
- export type { TemplateConfig, TemplateDefinition } from './template.js';
13
- import './augmentation.js';
6
+ * @module template
7
+ */
8
+ export { Template } from "./template.js";
9
+ export { TemplateCommand } from "./templatecommand.js";
10
+ export { TemplateEditing } from "./templateediting.js";
11
+ export { TemplateUI } from "./templateui.js";
12
+ export type { TemplateConfig, TemplateDefinition } from "./template.js";
13
+ import "./augmentation.js";
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x1992ed,Plugin as _0x1d7678}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconTemplateGeneric as _0x48b0a7,IconTemplate as _0x892574}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ListView as _0x4e4dfe,ListItemView as _0xd0dc3e,ButtonView as _0x280305,View as _0x505257,HighlightedTextView as _0x4d551b,createDropdown as _0x347e99,SearchTextView as _0x30df3e,MenuBarMenuView as _0x5a10d8,MenuBarMenuListView as _0x30e8e4,MenuBarMenuListItemView as _0x62d83f,MenuBarMenuListItemButtonView as _0x2e3268}from'@ckeditor/ckeditor5-ui/dist/index.js';import{uid as _0x1a8bf3}from'@ckeditor/ckeditor5-utils/dist/index.js';class TemplateCommand extends _0x1992ed{['execute'](_0x9b6acf){const {model:_0x2d457c}=this['editor'];let _0x4e7402;switch(typeof _0x9b6acf){case'string':_0x4e7402=_0x9b6acf;break;case'function':_0x4e7402=_0x9b6acf();}'string'==typeof _0x4e7402&&_0x2d457c['change'](()=>{const _0xc8b23b=this['editor']['data']['htmlProcessor']['toView'](_0x4e7402),_0x481959=_0x2d457c['document']['selection']['getFirstPosition']()['root'],_0x2f1f6d=this['editor']['data']['toModel'](_0xc8b23b,_0x481959);_0x2d457c['insertContent'](_0x2f1f6d);});}}class TemplateEditing extends _0x1d7678{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x44138d}=this;_0x44138d['commands']['add']('insertTemplate',new TemplateCommand(_0x44138d)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x363dcb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x42d33c;for(const _0x41c912 in _0x363dcb){const _0x11f68f=_0x41c912,_0x2bc4a1=_0x363dcb[_0x11f68f];if('templateLicenseKeyValid'==_0x2bc4a1||'templateLicenseKeyInvalid'==_0x2bc4a1||'templateLicenseKeyExpired'==_0x2bc4a1||'templateLicenseKeyDomainLimit'==_0x2bc4a1||'templateLicenseKeyNotAllowed'==_0x2bc4a1||'templateLicenseKeyEvaluationLimit'==_0x2bc4a1||'templateLicenseKeyUsageLimit'==_0x2bc4a1){delete _0x363dcb[_0x11f68f],_0x42d33c=_0x2bc4a1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x42d33c&&_0x363dcb['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x42d33c&&_0x363dcb['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x42d33c&&_0x363dcb['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x42d33c&&_0x363dcb['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x42d33c&&_0x363dcb['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x42d33c&&_0x363dcb['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TemplateListView extends _0x4e4dfe{['filter'](_0x1c610c){if(!_0x1c610c)return this['_resetFiltering']();const _0x298ee5=new Map(),_0x57f953=this['items']['map'](_0x581a0c=>{const _0x1930d0=_0x581a0c['buttonView']['isMatching'](_0x1c610c);return _0x581a0c['isVisible']=!!_0x1930d0,_0x581a0c['buttonView']['highlightText'](_0x1930d0?_0x1c610c:null),_0x1930d0&&_0x298ee5['set'](_0x581a0c,_0x1930d0),_0x581a0c;})['sort'](g)['sort'](function(_0x1f4023){return function(_0x3a3b81,_0x227887){const _0x3de11d=_0x1f4023['get'](_0x3a3b81),_0x269f2b=_0x1f4023['get'](_0x227887);return _0x3de11d&&!_0x269f2b?-0x1:_0x269f2b&&!_0x3de11d?0x1:_0x3de11d||_0x269f2b?_0x3de11d['title']&&!_0x269f2b['title']?-0x1:!_0x3de11d['title']&&_0x269f2b['title']?0x1:0x0:0x0;};}(_0x298ee5));return this['items']['clear'](),this['items']['addMany'](_0x57f953),{'resultsCount':_0x298ee5['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x748e44=this['items']['map'](_0x4eda23=>_0x4eda23)['sort'](g);return _0x748e44['forEach'](_0x2f6c0f=>{_0x2f6c0f['isVisible']=!0x0,_0x2f6c0f['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x748e44),{'resultsCount':_0x748e44['length'],'totalItemsCount':_0x748e44['length']};}}function g(_0x1dfe2e,_0xd4cc30){return _0x1dfe2e['originalIndex']-_0xd4cc30['originalIndex'];}class TemplateListItemView extends _0xd0dc3e{['originalIndex'];['buttonView'];constructor(_0x291a60,_0x136bd1){super(_0x291a60),this['originalIndex']=_0x136bd1,this['buttonView']=null;}}class TemplateListButtonView extends _0x280305{['templateDefinition'];['textPartView'];constructor(_0x207ca9,_0x2224b9){super(_0x207ca9),this['templateDefinition']=_0x2224b9,this['textPartView']=null;const {icon:_0x5f090a=_0x48b0a7}=_0x2224b9;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x5f090a}),this['iconView']['isColorInherited']=!0x1;}['render'](){super['render'](),this['textPartView']=new TextPartView(this['locale'],this['templateDefinition'],this['labelView']['element']['id']),this['children']['remove'](this['labelView']),this['children']['add'](this['textPartView']);}['destroy'](){super['destroy'](),this['labelView']['destroy']();}['isMatching'](_0x1b4e42){const {title:_0x260c04,description:_0x57263e}=this['templateDefinition'],_0x596923=!!_0x260c04['match'](_0x1b4e42),_0x5da12b=!(!_0x57263e||!_0x57263e['match'](_0x1b4e42));return _0x596923||_0x5da12b?{'title':_0x596923,'description':_0x5da12b}:null;}['highlightText'](_0xf78d47){this['textPartView']['highlightText'](_0xf78d47);}}class TextPartView extends _0x505257{constructor(_0x5b970b,_0x5a8fb6,_0x4b9011){super(_0x5b970b),this['title']=_0x5a8fb6['title'],this['description']=_0x5a8fb6['description'],this['titleView']=new _0x4d551b(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x4b9011}});const _0x2f2590=[this['titleView']];this['description']&&(this['descriptionView']=new _0x4d551b(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x2f2590['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x2f2590});}['highlightText'](_0xc842c9){this['titleView']['highlightText'](_0xc842c9),this['description']&&this['descriptionView']['highlightText'](_0xc842c9);}}function y(_0x520aa9,_0x3eda20,..._0x4adc87){const t=_0x520aa9['t'];switch(_0x3eda20){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x4adc87);case'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':return t('Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.');case'No\x20templates\x20available.':return t('No\x20templates\x20available.');case'%0\x20templates\x20found':return t('%0\x20templates\x20found',..._0x4adc87);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x3eda20;}}class TemplateUI extends _0x1d7678{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1f6aa0}=this,_0x5c31fd=_0x1f6aa0['config']['get']('template.definitions')||[];_0x1f6aa0['ui']['componentFactory']['add']('insertTemplate',_0x54ff92=>{const _0x28f232=_0x347e99(_0x54ff92),_0x1cf0e1=this['_createTemplateListView'](_0x54ff92,_0x5c31fd),_0x3e8aab=new _0x30df3e(_0x54ff92,{'filteredView':_0x1cf0e1,'queryView':{'label':y(_0x54ff92,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x2fdbb5=>y(_0x54ff92,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x2fdbb5),'secondary':y(_0x54ff92,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':y(_0x54ff92,'No\x20templates\x20available.')}}}}),_0x442e40=_0x1f6aa0['commands']['get']('insertTemplate');return _0x3e8aab['on']('search',(_0x352472,_0x42e27e)=>{_0x42e27e['query']&&_0x42e27e['query']['length']&&_0x1f6aa0['ui']['ariaLiveAnnouncer']['announce'](y(_0x54ff92,'%0\x20templates\x20found',_0x42e27e['resultsCount']));}),_0x28f232['bind']('isEnabled')['to'](_0x442e40),_0x28f232['panelView']['children']['add'](_0x3e8aab),_0x28f232['buttonView']['set']({'label':y(_0x54ff92,'Insert\x20template'),'icon':_0x892574,'tooltip':!0x0}),_0x28f232['on']('change:isOpen',(_0x462ac1,_0x25b453,_0x58f4b4)=>{_0x58f4b4||_0x3e8aab['reset']();}),_0x28f232;}),_0x1f6aa0['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x39d92b=>{const _0x5ac923=_0x1f6aa0['commands']['get']('insertTemplate'),_0x239134=new _0x5a10d8(_0x39d92b);_0x239134['buttonView']['set']({'label':y(_0x39d92b,'Template'),'icon':_0x892574});const _0x527c01=new _0x30e8e4(_0x39d92b);if(!_0x5c31fd||!_0x5c31fd['length']){const _0x198765=new _0x62d83f(_0x39d92b,_0x239134),_0x552d43=new _0x2e3268(_0x39d92b);_0x552d43['set']({'label':y(_0x39d92b,'No\x20templates\x20available.')}),_0x552d43['delegate']('execute')['to'](_0x239134),_0x552d43['on']('execute',()=>{_0x1f6aa0['editing']['view']['focus']();}),_0x198765['children']['add'](_0x552d43),_0x527c01['items']['add'](_0x198765);}for(const _0x1674dd of _0x5c31fd){const _0x5e4c77=new _0x62d83f(_0x39d92b,_0x239134),_0x4e1825=new _0x2e3268(_0x39d92b);_0x4e1825['set']({'class':'ck-template-button','label':_0x1674dd['title'],'icon':_0x1674dd['icon']||_0x48b0a7}),_0x4e1825['delegate']('execute')['to'](_0x239134),_0x4e1825['on']('execute',()=>{_0x1f6aa0['execute']('insertTemplate',_0x1674dd['data']),_0x1f6aa0['editing']['view']['focus']();}),_0x5e4c77['children']['add'](_0x4e1825),_0x527c01['items']['add'](_0x5e4c77);}return _0x239134['panelView']['children']['add'](_0x527c01),_0x239134['bind']('isEnabled')['to'](_0x5ac923,'isEnabled'),_0x239134;});}['afterInit'](){!async function(_0xaced08){const _0x1d6ea5=_0x57cd59([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0xbb6190=0x6b0f5e6f,_0x18bcab=0x6b08d5bf^_0xbb6190,_0x5e9c59=window[_0x57cd59([0x44,0x61,0x74,0x65])][_0x57cd59([0x6e,0x6f,0x77])](),_0x35ad9c=_0xaced08[_0x57cd59([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6f314=new window[(_0x57cd59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a52b2=>{_0x35ad9c[_0x57cd59([0x6f,0x6e,0x63,0x65])](_0x57cd59([0x72,0x65,0x61,0x64,0x79]),_0x4a52b2);}),_0x1bd55b={[_0x57cd59([0x6b,0x74,0x79])]:_0x57cd59([0x45,0x43]),[_0x57cd59([0x75,0x73,0x65])]:_0x57cd59([0x73,0x69,0x67]),[_0x57cd59([0x63,0x72,0x76])]:_0x57cd59([0x50,0x2d,0x32,0x35,0x36]),[_0x57cd59([0x78])]:_0x57cd59([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x57cd59([0x79])]:_0x57cd59([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x57cd59([0x61,0x6c,0x67])]:_0x57cd59([0x45,0x53,0x32,0x35,0x36])},_0x50c87a=_0x35ad9c[_0x57cd59([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x57cd59([0x67,0x65,0x74])](_0x57cd59([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c36fa(){let _0x55d86e,_0x2bb8d5=null,_0x4d5005=null;try{if(_0x50c87a==_0x57cd59([0x47,0x50,0x4c]))return _0x57cd59([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55d86e=_0x29dd78(),!_0x55d86e)return _0x57cd59([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55d86e[_0x57cd59([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d5005=_0x3320fb(_0x55d86e[_0x57cd59([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55d86e[_0x57cd59([0x6a,0x74,0x69])])),await _0x592af4()?_0x131709()?_0x112246()?_0x57cd59([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x49f69d()?(_0x55d86e[_0x57cd59([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57cd59([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2bb8d5=_0x276f2b(_0x57cd59([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12df3e()):_0x57cd59([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x57cd59([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x57cd59([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x57cd59([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x112246(){const _0x10922f=[_0x57cd59([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x57cd59([0x74,0x72,0x69,0x61,0x6c])][_0x57cd59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55d86e[_0x57cd59([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5e9c59/0x3e8:0xe10*_0x18bcab;return _0x55d86e[_0x57cd59([0x65,0x78,0x70])]<_0x10922f;}function _0x131709(){const _0x12262f=_0x55d86e[_0x57cd59([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x12262f&&(!!_0x12262f[_0x57cd59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cd59([0x2a]))||(!!_0x12262f[_0x57cd59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cd59([0x54,0x50,0x4c]))||(!!_0x12262f[_0x57cd59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cd59([0x50,0x50]))||(!(!_0x12262f[_0x57cd59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cd59([0x44,0x52,0x55,0x50]))||!_0x33aced())||!(!_0x12262f[_0x57cd59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cd59([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4f0a8b())))));}function _0x49f69d(){const _0x50a0da=_0x55d86e[_0x57cd59([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50a0da||0x0==_0x50a0da[_0x57cd59([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1467ca}=new URL(window[_0x57cd59([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50a0da[_0x57cd59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1467ca))return!0x0;const _0x90fd52=_0x1467ca[_0x57cd59([0x73,0x70,0x6c,0x69,0x74])](_0x57cd59([0x2e]));return _0x50a0da[_0x57cd59([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x565a72=>_0x565a72[_0x57cd59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cd59([0x2a])))[_0x57cd59([0x6d,0x61,0x70])](_0x2134a8=>_0x2134a8[_0x57cd59([0x73,0x70,0x6c,0x69,0x74])](_0x57cd59([0x2e])))[_0x57cd59([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c8471=>_0x4c8471[_0x57cd59([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x90fd52[_0x57cd59([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57cd59([0x6d,0x61,0x70])](_0x5556a0=>Array(_0x90fd52[_0x57cd59([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5556a0[_0x57cd59([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57cd59([0x66,0x69,0x6c,0x6c])](_0x5556a0[0x0]===_0x57cd59([0x2a])?_0x57cd59([0x2a]):'')[_0x57cd59([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5556a0))[_0x57cd59([0x73,0x6f,0x6d,0x65])](_0x11d8f4=>_0x90fd52[_0x57cd59([0x65,0x76,0x65,0x72,0x79])]((_0xd4047b,_0x6b1e05)=>_0x11d8f4[_0x6b1e05]===_0xd4047b||_0x11d8f4[_0x6b1e05]===_0x57cd59([0x2a])));}function _0x12df3e(){return _0x2bb8d5&&_0x4d5005?new window[(_0x57cd59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18d103,_0x2fab19)=>{_0x2bb8d5[_0x57cd59([0x74,0x68,0x65,0x6e])](_0x18d103,_0x2fab19),_0x4d5005[_0x57cd59([0x74,0x68,0x65,0x6e])](_0x235225=>{_0x235225!=_0x57cd59([0x56,0x61,0x6c,0x69,0x64])&&_0x18d103(_0x235225);},_0x2fab19);}):_0x2bb8d5||_0x4d5005||_0x57cd59([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3320fb(_0xd8b524,_0x4d8a39){return new window[(_0x57cd59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9437a9=>{if(_0x2ecbe8())return _0x9437a9(_0x57cd59([0x56,0x61,0x6c,0x69,0x64]));_0x2211e9(),_0x35ad9c[_0x57cd59([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x57cd59([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d15bf=!0x1;const _0x8da423=_0x1a8bf3();function _0x438a2f(_0xcda9e5){return!!_0xcda9e5&&(typeof _0xcda9e5===_0x57cd59([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xcda9e5===_0x57cd59([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xcda9e5[_0x57cd59([0x74,0x68,0x65,0x6e])]===_0x57cd59([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xcda9e5[_0x57cd59([0x63,0x61,0x74,0x63,0x68])]===_0x57cd59([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x58c755(_0x35b106){_0x9c1aff(_0x35b106)[_0x57cd59([0x74,0x68,0x65,0x6e])](_0x328ba7=>{if(!_0x328ba7||_0x328ba7[_0x57cd59([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x57cd59([0x6f,0x6b]))return _0x57cd59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17fa43(_0xea8248(_0x8da423+_0x4d8a39))!=_0x328ba7[_0x57cd59([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x57cd59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x57cd59([0x56,0x61,0x6c,0x69,0x64]);})[_0x57cd59([0x74,0x68,0x65,0x6e])](_0x2ff855=>(_0xbbd82b(),_0x2ff855),()=>{const _0x22b29b=_0x219bb5();return null==_0x22b29b?(_0xbbd82b(),_0x57cd59([0x56,0x61,0x6c,0x69,0x64])):_0x57cd59(_0x5e9c59-_0x22b29b>(0x4f03da6f^_0xbb6190)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x57cd59([0x74,0x68,0x65,0x6e])](_0x9437a9)[_0x57cd59([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9437a9(_0x57cd59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x408648=0x6b39b0ef^_0xbb6190;function _0xbbd82b(){const _0x2df544=_0x57cd59([0x6c,0x6c,0x63,0x74,0x2d])+_0x17fa43(_0xea8248(_0xd8b524)),_0xa46d43=_0x25d95d(_0x17fa43(window[_0x57cd59([0x4d,0x61,0x74,0x68])][_0x57cd59([0x63,0x65,0x69,0x6c])](_0x5e9c59/_0x408648)));window[_0x57cd59([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57cd59([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2df544,_0xa46d43);}function _0x219bb5(){const _0x4edd40=_0x57cd59([0x6c,0x6c,0x63,0x74,0x2d])+_0x17fa43(_0xea8248(_0xd8b524)),_0x4bc97c=window[_0x57cd59([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57cd59([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4edd40);return _0x4bc97c?window[_0x57cd59([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25d95d(_0x4bc97c),0x10)*_0x408648:null;}function _0x9c1aff(_0xe1ea6){return new window[(_0x57cd59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x197e29,_0x48f5c2)=>{_0xe1ea6[_0x57cd59([0x74,0x68,0x65,0x6e])](_0x197e29,_0x48f5c2),window[_0x57cd59([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48f5c2,0x6b0e8aaf^_0xbb6190);});}}_0x35ad9c[_0x57cd59([0x6f,0x6e])](_0x57cd59([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3d5675,_0x1937ce)=>{if(_0x1937ce[0x0]!=_0xd8b524)return _0x9437a9(_0x57cd59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1937ce[0x1]={..._0x1937ce[0x1],[_0x57cd59([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8da423};},{[_0x57cd59([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57cd59([0x68,0x69,0x67,0x68])}),_0x35ad9c[_0x57cd59([0x6f,0x6e])](_0x57cd59([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3fd767=>{_0x438a2f(_0x3fd767[_0x57cd59([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d15bf=!0x0,_0x58c755(_0x3fd767[_0x57cd59([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x57cd59([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57cd59([0x6c,0x6f,0x77])}),_0x6f314[_0x57cd59([0x74,0x68,0x65,0x6e])](()=>{_0x5d15bf||_0x9437a9(_0x57cd59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ecbe8(){return _0x35ad9c[_0x57cd59([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57cd59([0x76,0x69,0x65,0x77])][_0x57cd59([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x57cd59([0x61,0x75,0x74,0x6f]);}function _0x2211e9(){_0x35ad9c[_0x57cd59([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57cd59([0x76,0x69,0x65,0x77])][_0x57cd59([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57cd59([0x61,0x75,0x74,0x6f]);}}function _0x276f2b(_0x3c310d){const _0x359184=[new window[(_0x57cd59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x135ca=>setTimeout(_0x135ca,0x6b0660a3^_0xbb6190)),_0x6f314[_0x57cd59([0x74,0x68,0x65,0x6e])](()=>new window[(_0x57cd59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54aded=>{let _0x564dce=0x0;_0x35ad9c[_0x57cd59([0x6d,0x6f,0x64,0x65,0x6c])][_0x57cd59([0x6f,0x6e])](_0x57cd59([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x37e4ad,_0x486ad5)=>{_0x486ad5[0x0][_0x57cd59([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x564dce++,_0x564dce==(0x6b0f5b87^_0xbb6190)&&(_0x54aded(),_0x37e4ad[_0x57cd59([0x6f,0x66,0x66])]());});}))];return window[_0x57cd59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57cd59([0x72,0x61,0x63,0x65])](_0x359184)[_0x57cd59([0x74,0x68,0x65,0x6e])](()=>_0x3c310d);}async function _0x4a168a(){await _0x6f314,_0x35ad9c[_0x57cd59([0x6d,0x6f,0x64,0x65,0x6c])][_0x57cd59([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1440ef,_0x35ad9c[_0x57cd59([0x6d,0x6f,0x64,0x65,0x6c])][_0x57cd59([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1440ef,_0x35ad9c[_0x57cd59([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x57cd59([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x33aced(){return window[_0x57cd59([0x44,0x72,0x75,0x70,0x61,0x6c])];}function _0x4f0a8b(){return window[_0x57cd59([0x67,0x6c,0x6f,0x62])]&&window[_0x57cd59([0x67,0x6c,0x6f,0x62])][_0x57cd59([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x139bbc(_0x184d58){const _0x424c3d=_0x13c5f8();_0x35ad9c[_0x424c3d]=_0x57cd59([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x184d58,_0x184d58!=_0x57cd59([0x56,0x61,0x6c,0x69,0x64])&&_0x4a168a();}function _0x13c5f8(){const _0xe2f60d=window[_0x57cd59([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x57cd59([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x57cd59([0x6e,0x6f,0x77])]())[_0x57cd59([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x57cd59([0x2e]),'');let _0x2f384d=_0x57cd59([0x67]);for(let _0x34907a=0x0;_0x34907a<_0xe2f60d[_0x57cd59([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34907a+=0x2){let _0x308222=window[_0x57cd59([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe2f60d[_0x57cd59([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34907a,_0x34907a+0x2));_0x308222>=_0x1d6ea5[_0x57cd59([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x308222-=_0x1d6ea5[_0x57cd59([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f384d+=_0x1d6ea5[_0x308222];}return _0x2f384d;}function _0x29dd78(){const _0xff776b=_0x50c87a[_0x57cd59([0x73,0x70,0x6c,0x69,0x74])](_0x57cd59([0x2e]));if(0x3!=_0xff776b[_0x57cd59([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x10fd27(_0xff776b[0x1]);function _0x10fd27(_0x55eec4){const _0x24c44f=_0x6fdb75(_0x55eec4);return _0x24c44f&&_0x5b9907()?_0x24c44f:null;function _0x5b9907(){const _0x5d8500=_0x24c44f[_0x57cd59([0x6a,0x74,0x69])],_0x565699=window[_0x57cd59([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d8500[_0x57cd59([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d8500[_0x57cd59([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x52fff8={..._0x24c44f,[_0x57cd59([0x6a,0x74,0x69])]:_0x5d8500[_0x57cd59([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d8500[_0x57cd59([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x52fff8[_0x57cd59([0x76,0x63])],_0xea8248(_0x52fff8)==_0x565699;}}}async function _0x592af4(){let _0xe874a=!0x0;try{const _0x23c2e9=_0x50c87a[_0x57cd59([0x73,0x70,0x6c,0x69,0x74])](_0x57cd59([0x2e])),[_0x54e22d,_0x3149fa,_0x47aff1]=_0x23c2e9;return _0x2cecf1(_0x54e22d),await _0x1dabae(_0x54e22d,_0x3149fa,_0x47aff1),_0xe874a;}catch{return!0x1;}function _0x2cecf1(_0x161141){const _0x307e09=_0x6fdb75(_0x161141);_0x307e09&&_0x307e09[_0x57cd59([0x61,0x6c,0x67])]==_0x57cd59([0x45,0x53,0x32,0x35,0x36])||(_0xe874a=!0x1);}async function _0x1dabae(_0x4cbd47,_0x1b6c36,_0x3811a1){const _0x53499c=window[_0x57cd59([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x57cd59([0x66,0x72,0x6f,0x6d])](_0x522bde(_0x3811a1),_0x21bf9c=>_0x21bf9c[_0x57cd59([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x130e44=new window[(_0x57cd59([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x57cd59([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4cbd47+_0x57cd59([0x2e])+_0x1b6c36),_0x212c95=window[_0x57cd59([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x57cd59([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x212c95)return;const _0x276e5a=await _0x212c95[_0x57cd59([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x57cd59([0x6a,0x77,0x6b]),_0x1bd55b,{[_0x57cd59([0x6e,0x61,0x6d,0x65])]:_0x57cd59([0x45,0x43,0x44,0x53,0x41]),[_0x57cd59([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x57cd59([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x57cd59([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x212c95[_0x57cd59([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x57cd59([0x6e,0x61,0x6d,0x65])]:_0x57cd59([0x45,0x43,0x44,0x53,0x41]),[_0x57cd59([0x68,0x61,0x73,0x68])]:{[_0x57cd59([0x6e,0x61,0x6d,0x65])]:_0x57cd59([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x276e5a,_0x53499c,_0x130e44)||(_0xe874a=!0x1);}}function _0x6fdb75(_0x49aa59){return _0x49aa59[_0x57cd59([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x57cd59([0x65,0x79]))?JSON[_0x57cd59([0x70,0x61,0x72,0x73,0x65])](_0x522bde(_0x49aa59)):null;}function _0x522bde(_0x2a6a4a){return window[_0x57cd59([0x61,0x74,0x6f,0x62])](_0x2a6a4a[_0x57cd59([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x57cd59([0x2b]))[_0x57cd59([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x57cd59([0x2f])));}function _0xea8248(_0x762f49){let _0x12c330=0x1505;function _0x339891(_0xa360ce){for(let _0x342b09=0x0;_0x342b09<_0xa360ce[_0x57cd59([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x342b09++){const _0x5ba3d5=_0xa360ce[_0x57cd59([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x342b09);_0x12c330=(_0x12c330<<0x5)+_0x12c330+_0x5ba3d5,_0x12c330&=_0x12c330;}}function _0x4bdb0a(_0x569a8c){Array[_0x57cd59([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x569a8c)?_0x569a8c[_0x57cd59([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bdb0a):_0x569a8c&&typeof _0x569a8c==_0x57cd59([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x57cd59([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x569a8c)[_0x57cd59([0x73,0x6f,0x72,0x74])]()[_0x57cd59([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x147fd7,_0x38a37e])=>{_0x339891(_0x147fd7),_0x4bdb0a(_0x38a37e);}):_0x339891(window[_0x57cd59([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x569a8c));}return _0x4bdb0a(_0x762f49),_0x12c330>>>0x0;}function _0x17fa43(_0x5028b4){return _0x5028b4[_0x57cd59([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x57cd59([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x57cd59([0x30]));}function _0x25d95d(_0x2d2737){return _0x2d2737[_0x57cd59([0x73,0x70,0x6c,0x69,0x74])]('')[_0x57cd59([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x57cd59([0x6a,0x6f,0x69,0x6e])]('');}function _0x1440ef(){}function _0x57cd59(_0x50d357){return _0x50d357['map'](_0x4d39a3=>String['fromCharCode'](_0x4d39a3))['join']('');}_0x139bbc(await _0x3c36fa());}(this);}['_createTemplateListView'](_0x284527,_0x268327){const {editor:_0x33f189}=this,_0x216b55=new TemplateListView(_0x284527);return _0x216b55['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x216b55['items']['addMany'](_0x268327['map']((_0x47b375,_0x2f4321)=>{const _0x454655=new TemplateListItemView(_0x284527,_0x2f4321),_0x233e1=new TemplateListButtonView(_0x284527,_0x47b375);return _0x454655['buttonView']=_0x233e1,_0x454655['children']['add'](_0x233e1),_0x454655['buttonView']['on']('execute',_0x2b97d2=>{_0x33f189['execute']('insertTemplate',_0x2b97d2['source']['templateDefinition']['data']),_0x33f189['editing']['view']['focus']();}),_0x454655;})),_0x216b55;}}class Template extends _0x1d7678{static get['requires'](){return[TemplateEditing,TemplateUI];}static get['pluginName'](){return'Template';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Template,TemplateCommand,TemplateEditing,TemplateUI};
23
+ import{Command as _0x46012c,Plugin as _0x595992}from'@ckeditor/ckeditor5-core';import{IconTemplate as _0x10ddad,IconTemplateGeneric as _0x43559f}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x3083b8,HighlightedTextView as _0xf1c779,ListItemView as _0x364320,ListView as _0x19ac51,MenuBarMenuListItemButtonView as _0x6c4021,MenuBarMenuListItemView as _0x13f2cc,MenuBarMenuListView as _0x3762ad,MenuBarMenuView as _0x17b06a,SearchTextView as _0x3bb6ca,View as _0x2b5d97,createDropdown as _0xa35401}from'@ckeditor/ckeditor5-ui';import{uid as _0x1e259a}from'@ckeditor/ckeditor5-utils';var g=class extends _0x46012c{['execute'](_0x2a4bd5){const {model:_0x36cac8}=this['editor'];let _0x5465ea;switch(typeof _0x2a4bd5){case'string':_0x5465ea=_0x2a4bd5;break;case'function':_0x5465ea=_0x2a4bd5();}'string'==typeof _0x5465ea&&_0x36cac8['change'](()=>{const _0x4b95bb=this['editor']['data']['htmlProcessor']['toView'](_0x5465ea),_0x4ef58a=_0x36cac8['document']['selection']['getFirstPosition']()['root'],_0x1fc3b4=this['editor']['data']['toModel'](_0x4b95bb,_0x4ef58a);_0x36cac8['insertContent'](_0x1fc3b4);});}},y=class extends _0x595992{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xff1e96}=this;_0xff1e96['commands']['add']('insertTemplate',new g(_0xff1e96)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ec732=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x332dff;for(const _0x21e593 in _0x4ec732){const _0x28ed63=_0x21e593,_0x37d1ce=_0x4ec732[_0x28ed63];if('templateLicenseKeyValid'==_0x37d1ce||'templateLicenseKeyInvalid'==_0x37d1ce||'templateLicenseKeyExpired'==_0x37d1ce||'templateLicenseKeyDomainLimit'==_0x37d1ce||'templateLicenseKeyNotAllowed'==_0x37d1ce||'templateLicenseKeyEvaluationLimit'==_0x37d1ce||'templateLicenseKeyUsageLimit'==_0x37d1ce){delete _0x4ec732[_0x28ed63],_0x332dff=_0x37d1ce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x332dff&&_0x4ec732['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x332dff&&_0x4ec732['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x332dff&&_0x4ec732['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x332dff&&_0x4ec732['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x332dff&&_0x4ec732['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x332dff&&_0x4ec732['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},L=class extends _0x19ac51{['filter'](_0x3d3f06){if(!_0x3d3f06)return this['_resetFiltering']();const _0x377392=new Map(),_0x58d95f=this['items']['map'](_0x979957=>{const _0x30357b=_0x979957['buttonView']['isMatching'](_0x3d3f06);return _0x979957['isVisible']=!!_0x30357b,_0x979957['buttonView']['highlightText'](_0x30357b?_0x3d3f06:null),_0x30357b&&_0x377392['set'](_0x979957,_0x30357b),_0x979957;})['sort'](v)['sort'](function(_0x385555){return function(_0x4b276a,_0x3553cb){const _0x4742a0=_0x385555['get'](_0x4b276a),_0x5a0638=_0x385555['get'](_0x3553cb);return _0x4742a0&&!_0x5a0638?-0x1:_0x5a0638&&!_0x4742a0?0x1:_0x4742a0||_0x5a0638?_0x4742a0['title']&&!_0x5a0638['title']?-0x1:!_0x4742a0['title']&&_0x5a0638['title']?0x1:0x0:0x0;};}(_0x377392));return this['items']['clear'](),this['items']['addMany'](_0x58d95f),{'resultsCount':_0x377392['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x4f4743=this['items']['map'](_0xa21bd3=>_0xa21bd3)['sort'](v);return _0x4f4743['forEach'](_0x20a294=>{_0x20a294['isVisible']=!0x0,_0x20a294['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x4f4743),{'resultsCount':_0x4f4743['length'],'totalItemsCount':_0x4f4743['length']};}};function v(_0x3aea0c,_0x4d394b){return _0x3aea0c['originalIndex']-_0x4d394b['originalIndex'];}var x=class extends _0x364320{['originalIndex'];['buttonView'];constructor(_0xd20d0c,_0x46d327){super(_0xd20d0c),this['originalIndex']=_0x46d327,this['buttonView']=null;}},b=class extends _0x3083b8{['templateDefinition'];['textPartView'];constructor(_0x36e953,_0x4610b8){super(_0x36e953),this['templateDefinition']=_0x4610b8,this['textPartView']=null;const {icon:_0x1ce638=_0x43559f}=_0x4610b8;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x1ce638}),this['iconView']['isColorInherited']=!0x1;}['render'](){super['render'](),this['textPartView']=new k(this['locale'],this['templateDefinition'],this['labelView']['element']['id']),this['children']['remove'](this['labelView']),this['children']['add'](this['textPartView']);}['destroy'](){super['destroy'](),this['labelView']['destroy']();}['isMatching'](_0x57d970){const {title:_0x425c59,description:_0x32f045}=this['templateDefinition'],_0x494dde=!!_0x425c59['match'](_0x57d970),_0x5baf2a=!(!_0x32f045||!_0x32f045['match'](_0x57d970));return _0x494dde||_0x5baf2a?{'title':_0x494dde,'description':_0x5baf2a}:null;}['highlightText'](_0x530a06){this['textPartView']['highlightText'](_0x530a06);}},k=class extends _0x2b5d97{constructor(_0x2cbbbc,_0x393be3,_0x4af13e){super(_0x2cbbbc),this['title']=_0x393be3['title'],this['description']=_0x393be3['description'],this['titleView']=new _0xf1c779(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x4af13e}});const _0x40e74d=[this['titleView']];this['description']&&(this['descriptionView']=new _0xf1c779(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x40e74d['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x40e74d});}['highlightText'](_0x1b712f){this['titleView']['highlightText'](_0x1b712f),this['description']&&this['descriptionView']['highlightText'](_0x1b712f);}};function I(_0x4ef4b7,_0x2a6e0d,..._0x5a8550){const t=_0x4ef4b7['t'];switch(_0x2a6e0d){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x5a8550);case'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':return t('Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.');case'No\x20templates\x20available.':return t('No\x20templates\x20available.');case'%0\x20templates\x20found':return t('%0\x20templates\x20found',..._0x5a8550);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x2a6e0d;}}var T=class extends _0x595992{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1c5670}=this,_0x4a4fe9=_0x1c5670['config']['get']('template.definitions')||[];_0x1c5670['ui']['componentFactory']['add']('insertTemplate',_0x1a200e=>{const _0x10f618=_0xa35401(_0x1a200e),_0x2bb159=new _0x3bb6ca(_0x1a200e,{'filteredView':this['_createTemplateListView'](_0x1a200e,_0x4a4fe9),'queryView':{'label':I(_0x1a200e,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x4e39e4=>I(_0x1a200e,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x4e39e4),'secondary':I(_0x1a200e,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':I(_0x1a200e,'No\x20templates\x20available.')}}}}),_0x3119db=_0x1c5670['commands']['get']('insertTemplate');return _0x2bb159['on']('search',(_0x2f608f,_0x2a249c)=>{_0x2a249c['query']&&_0x2a249c['query']['length']&&_0x1c5670['ui']['ariaLiveAnnouncer']['announce'](I(_0x1a200e,'%0\x20templates\x20found',_0x2a249c['resultsCount']));}),_0x10f618['bind']('isEnabled')['to'](_0x3119db),_0x10f618['panelView']['children']['add'](_0x2bb159),_0x10f618['buttonView']['set']({'label':I(_0x1a200e,'Insert\x20template'),'icon':_0x10ddad,'tooltip':!0x0}),_0x10f618['on']('change:isOpen',(_0x49798d,_0x1890b3,_0x4a8d16)=>{_0x4a8d16||_0x2bb159['reset']();}),_0x10f618;}),_0x1c5670['ui']['componentFactory']['add']('menuBar:insertTemplate',_0xe7e4b4=>{const _0x39f25f=_0x1c5670['commands']['get']('insertTemplate'),_0x5b1999=new _0x17b06a(_0xe7e4b4);_0x5b1999['buttonView']['set']({'label':I(_0xe7e4b4,'Template'),'icon':_0x10ddad});const _0x4884de=new _0x3762ad(_0xe7e4b4);if(!_0x4a4fe9||!_0x4a4fe9['length']){const _0x55ef08=new _0x13f2cc(_0xe7e4b4,_0x5b1999),_0x737b6b=new _0x6c4021(_0xe7e4b4);_0x737b6b['set']({'label':I(_0xe7e4b4,'No\x20templates\x20available.')}),_0x737b6b['delegate']('execute')['to'](_0x5b1999),_0x737b6b['on']('execute',()=>{_0x1c5670['editing']['view']['focus']();}),_0x55ef08['children']['add'](_0x737b6b),_0x4884de['items']['add'](_0x55ef08);}for(const _0x561316 of _0x4a4fe9){const _0x227eaf=new _0x13f2cc(_0xe7e4b4,_0x5b1999),_0x1d7f42=new _0x6c4021(_0xe7e4b4);_0x1d7f42['set']({'class':'ck-template-button','label':_0x561316['title'],'icon':_0x561316['icon']||_0x43559f}),_0x1d7f42['delegate']('execute')['to'](_0x5b1999),_0x1d7f42['on']('execute',()=>{_0x1c5670['execute']('insertTemplate',_0x561316['data']),_0x1c5670['editing']['view']['focus']();}),_0x227eaf['children']['add'](_0x1d7f42),_0x4884de['items']['add'](_0x227eaf);}return _0x5b1999['panelView']['children']['add'](_0x4884de),_0x5b1999['bind']('isEnabled')['to'](_0x39f25f,'isEnabled'),_0x5b1999;});}['afterInit'](){!async function(_0x645a6c){const _0x19dfba='5goNZRxHzmBfrl0Fq6Cks1ahDGS2LUEWiby3wKvu4IVPdeT8jn9MOQJtcAY7Xp',_0x4d6d1e=0x78df8,_0x6ca7e7=window['Date']['now'](),_0x12e365=_0x645a6c['editor'],_0x2d94d3=new window['Promise'](_0x45a835=>{_0x12e365['once']('ready',_0x45a835);}),_0x1b6ac6={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x38e355=_0x12e365['config']['get']('licenseKey');async function _0x2f3a3b(){let _0x2b047f,_0x20f681=null,_0x4e6a6a=null;try{return'GPL'==_0x38e355?'NotAllowed':(_0x2b047f=_0x31c7bb(),_0x2b047f?(_0x2b047f['usageEndpoint']&&(_0x4e6a6a=_0x194036(_0x2b047f['usageEndpoint'],_0x2b047f['jti'])),await _0x4f26f3()?_0x26b67e()?_0x2339c1()?'Expired':_0x1f9690()?('evaluation'==_0x2b047f['licenseType']&&(_0x20f681=_0x127f8c('EvaluationLimit')),await _0x369051()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2339c1(){const _0x19719c=['evaluation','trial']['includes'](_0x2b047f['licenseType'])?_0x6ca7e7/0x3e8:0xe10*_0x4d6d1e;return _0x2b047f['exp']<_0x19719c;}function _0x26b67e(){const _0x33fd61=_0x2b047f['features'];return!!_0x33fd61&&(!!_0x33fd61['includes']('*')||(!!_0x33fd61['includes']('TPL')||(!!_0x33fd61['includes']('PP')||(!(!_0x33fd61['includes']('DRUP')||!_0x200c1b())||!(!_0x33fd61['includes']('TRILIUM')||!_0x30d1aa())))));}function _0x1f9690(){const _0x1ce107=_0x2b047f['licensedHosts'];if(!_0x1ce107||0x0==_0x1ce107['length'])return!0x0;const {hostname:_0x99ca6e}=new URL(window['location']['href']);if(_0x1ce107['includes'](_0x99ca6e))return!0x0;const _0x10d0c0=_0x99ca6e['split']('.');return _0x1ce107['filter'](_0x4b20cc=>_0x4b20cc['includes']('*'))['map'](_0xfe5b16=>_0xfe5b16['split']('.'))['filter'](_0x243e93=>_0x243e93['length']<=_0x10d0c0['length'])['map'](_0x581136=>Array(_0x10d0c0['length']-_0x581136['length'])['fill']('*'===_0x581136[0x0]?'*':'')['concat'](_0x581136))['some'](_0x2bbdf5=>_0x10d0c0['every']((_0xabe642,_0x2d2c6c)=>_0x2bbdf5[_0x2d2c6c]===_0xabe642||'*'===_0x2bbdf5[_0x2d2c6c]));}function _0x369051(){return _0x20f681&&_0x4e6a6a?new window['Promise']((_0x539c31,_0xb3dc54)=>{_0x20f681['then'](_0x539c31,_0xb3dc54),_0x4e6a6a['then'](_0x3fe7c5=>{'Valid'!=_0x3fe7c5&&_0x539c31(_0x3fe7c5);},_0xb3dc54);}):_0x20f681||_0x4e6a6a||'Valid';}}function _0x194036(_0x45d733,_0x53c547){return new window['Promise'](_0x841e48=>{if(_0x185734())return _0x841e48('Valid');_0x4bdd25(),_0x12e365['decorate']('_sendUsageRequest');let _0xb00135=!0x1;const _0x1f6e5c=_0x1e259a();function _0x274dc5(_0x423770){return!!_0x423770&&('object'==typeof _0x423770||'function'==typeof _0x423770)&&'function'==typeof _0x423770['then']&&'function'==typeof _0x423770['catch'];}function _0x5cd8bc(_0x4c638a){_0x5f0f69(_0x4c638a)['then'](_0x646ef6=>_0x646ef6&&'ok'==_0x646ef6['status']?_0x47c518(_0x1d9b8f(_0x1f6e5c+_0x53c547))!=_0x646ef6['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x52f2de=>(_0x2dab77(),_0x52f2de),()=>{const _0x1d1ede=_0x1f7404();return null==_0x1d1ede?(_0x2dab77(),'Valid'):_0x6ca7e7-_0x1d1ede>0x240c8400?'UsageLimit':'Valid';})['then'](_0x841e48)['catch'](()=>{_0x841e48('UsageLimit');});const _0x441f4a=0x36ee80;function _0x2dab77(){const _0xf8e529='llct-'+_0x47c518(_0x1d9b8f(_0x45d733)),_0x333ad0=_0x375918(_0x47c518(window['Math']['ceil'](_0x6ca7e7/_0x441f4a)));window['localStorage']['setItem'](_0xf8e529,_0x333ad0);}function _0x1f7404(){const _0x2789f9='llct-'+_0x47c518(_0x1d9b8f(_0x45d733)),_0x2aa528=window['localStorage']['getItem'](_0x2789f9);return _0x2aa528?window['parseInt'](_0x375918(_0x2aa528),0x10)*_0x441f4a:null;}function _0x5f0f69(_0x3602f2){return new window['Promise']((_0x359d65,_0x3b06ed)=>{_0x3602f2['then'](_0x359d65,_0x3b06ed),window['setTimeout'](_0x3b06ed,0x1d4c0);});}}_0x12e365['on']('_sendUsageRequest',(_0x32c643,_0x32a5d9)=>{if(_0x32a5d9[0x0]!=_0x45d733)return _0x841e48('UsageLimit');_0x32a5d9[0x1]={..._0x32a5d9[0x1],'requestId':_0x1f6e5c};},{'priority':'high'}),_0x12e365['on']('_sendUsageRequest',_0x4289e9=>{_0x274dc5(_0x4289e9['return'])&&(_0xb00135=!0x0,_0x5cd8bc(_0x4289e9['return']));},{'priority':'low'}),_0x2d94d3['then'](()=>{_0xb00135||_0x841e48('UsageLimit');});});function _0x185734(){return'auto'==_0x12e365['editing']['view']['_overlayModeHint'];}function _0x4bdd25(){_0x12e365['editing']['view']['_overlayModeHint']='auto';}}function _0x127f8c(_0x5d75cb){const _0x48c826=[new window['Promise'](_0x3b0825=>setTimeout(_0x3b0825,0x93ecc)),_0x2d94d3['then'](()=>new window['Promise'](_0x514a4f=>{let _0x366702=0x0;_0x12e365['model']['on']('applyOperation',(_0x383e14,_0x4084a5)=>{_0x4084a5[0x0]['isDocumentOperation']&&_0x366702++,0x5e8==_0x366702&&(_0x514a4f(),_0x383e14['off']());});}))];return window['Promise']['race'](_0x48c826)['then'](()=>_0x5d75cb);}async function _0x99d2e2(){await _0x2d94d3,_0x12e365['model']['change']=_0xf76772,_0x12e365['model']['enqueueChange']=_0xf76772,_0x12e365['enableReadOnlyMode']('model');}function _0x200c1b(){return window['Drupal'];}function _0x30d1aa(){return window['glob']&&window['glob']['triliumVersion'];}function _0x5ca403(_0x253cbd){const _0x4221b2=_0x502510();_0x12e365[_0x4221b2]='templateLicenseKey'+_0x253cbd,'Valid'!=_0x253cbd&&_0x99d2e2();}function _0x502510(){const _0x2531a9=window['String'](window['performance']['now']())['replace']('.','');let _0xa89e9c='g';for(let _0x12f4a9=0x0;_0x12f4a9<_0x2531a9['length'];_0x12f4a9+=0x2){let _0x34f6b3=window['parseInt'](_0x2531a9['substring'](_0x12f4a9,_0x12f4a9+0x2));_0x34f6b3>=0x3e&&(_0x34f6b3-=0x3e),_0xa89e9c+=_0x19dfba[_0x34f6b3];}return _0xa89e9c;}function _0x31c7bb(){const _0x4c8abc=_0x38e355['split']('.');if(0x3!=_0x4c8abc['length'])return null;return _0x142065(_0x4c8abc[0x1]);function _0x142065(_0xecbd57){const _0x257d06=_0x1d120(_0xecbd57);return _0x257d06&&_0x30d858()?_0x257d06:null;function _0x30d858(){const _0x1e7f31=_0x257d06['jti'],_0xa8b7da=window['parseInt'](_0x1e7f31['substring'](_0x1e7f31['length']-0x8),0x10),_0x596f64={..._0x257d06,'jti':_0x1e7f31['substring'](0x0,_0x1e7f31['length']-0x8)};return delete _0x596f64['vc'],_0x1d9b8f(_0x596f64)==_0xa8b7da;}}}async function _0x4f26f3(){let _0x5aed49=!0x0;try{const [_0x5a5da7,_0x487314,_0x4b5595]=_0x38e355['split']('.');return _0x5896db(_0x5a5da7),await _0x3839e7(_0x5a5da7,_0x487314,_0x4b5595),_0x5aed49;}catch{return!0x1;}function _0x5896db(_0x4434e9){const _0x57aefd=_0x1d120(_0x4434e9);_0x57aefd&&'ES256'==_0x57aefd['alg']||(_0x5aed49=!0x1);}async function _0x3839e7(_0x331de3,_0xa27ff2,_0x21eded){const _0x128908=window['Uint8Array']['from'](_0x1c3499(_0x21eded),_0x47d11a=>_0x47d11a['charCodeAt'](0x0)),_0x31c28b=new window['TextEncoder']()['encode'](_0x331de3+'.'+_0xa27ff2),_0x52d047=window['crypto']['subtle'];if(!_0x52d047)return;const _0x2a56b0=await _0x52d047['importKey']('jwk',_0x1b6ac6,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x52d047['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2a56b0,_0x128908,_0x31c28b)||(_0x5aed49=!0x1);}}function _0x1d120(_0x2ab404){return _0x2ab404['startsWith']('ey')?JSON['parse'](_0x1c3499(_0x2ab404)):null;}function _0x1c3499(_0x2dddc8){return window['atob'](_0x2dddc8['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1d9b8f(_0x1b6924){let _0x52d07d=0x1505;function _0x42a338(_0x3c4580){for(let _0x34e9d6=0x0;_0x34e9d6<_0x3c4580['length'];_0x34e9d6++){const _0x548882=_0x3c4580['charCodeAt'](_0x34e9d6);_0x52d07d=(_0x52d07d<<0x5)+_0x52d07d+_0x548882,_0x52d07d&=_0x52d07d;}}function _0x1e2c4c(_0x8c3a59){Array['isArray'](_0x8c3a59)?_0x8c3a59['forEach'](_0x1e2c4c):_0x8c3a59&&'object'==typeof _0x8c3a59?Object['entries'](_0x8c3a59)['sort']()['forEach'](([_0x28fefc,_0x2660c8])=>{_0x42a338(_0x28fefc),_0x1e2c4c(_0x2660c8);}):_0x42a338(window['String'](_0x8c3a59));}return _0x1e2c4c(_0x1b6924),_0x52d07d>>>0x0;}function _0x47c518(_0x30ecf5){return _0x30ecf5['toString'](0x10)['padStart'](0x8,'0');}function _0x375918(_0x38c551){return _0x38c551['split']('')['reverse']()['join']('');}function _0xf76772(){}_0x5ca403(await _0x2f3a3b());}(this);}['_createTemplateListView'](_0xb4a465,_0x4bf46b){const {editor:_0x4e2eb0}=this,_0x364f10=new L(_0xb4a465);return _0x364f10['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x364f10['items']['addMany'](_0x4bf46b['map']((_0xd17267,_0x1bfa00)=>{const _0x500b44=new x(_0xb4a465,_0x1bfa00),_0x39a2a3=new b(_0xb4a465,_0xd17267);return _0x500b44['buttonView']=_0x39a2a3,_0x500b44['children']['add'](_0x39a2a3),_0x500b44['buttonView']['on']('execute',_0x158755=>{_0x4e2eb0['execute']('insertTemplate',_0x158755['source']['templateDefinition']['data']),_0x4e2eb0['editing']['view']['focus']();}),_0x500b44;})),_0x364f10;}},K=class extends _0x595992{static get['requires'](){return[y,T];}static get['pluginName'](){return'Template';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{K as Template,g as TemplateCommand,y as TemplateEditing,T as TemplateUI};
@@ -1,5 +1 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  export {};
@@ -1,123 +1,123 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module template/template
7
- * @publicApi
8
- */
9
- import { Plugin } from '@ckeditor/ckeditor5-core';
10
- import { TemplateEditing } from './templateediting.js';
11
- import { TemplateUI } from './templateui.js';
6
+ * @module template/template
7
+ * @publicApi
8
+ */
9
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
10
+ import { TemplateEditing } from "./templateediting.js";
11
+ import { TemplateUI } from "./templateui.js";
12
12
  /**
13
- * The template feature.
14
- *
15
- * For a detailed overview, check the {@glink features/template Content templates} feature guide.
16
- */
13
+ * The template feature.
14
+ *
15
+ * For a detailed overview, check the {@glink features/template Content templates} feature guide.
16
+ */
17
17
  export declare class Template extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get requires(): readonly [typeof TemplateEditing, typeof TemplateUI];
22
- /**
23
- * @inheritDoc
24
- */
25
- static get pluginName(): "Template";
26
- /**
27
- * @inheritDoc
28
- */
29
- static get isOfficialPlugin(): true;
30
- /**
31
- * @inheritDoc
32
- */
33
- static get isPremiumPlugin(): true;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get requires(): PluginDependenciesOf<[TemplateEditing, TemplateUI]>;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName(): "Template";
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static override get isOfficialPlugin(): true;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ static override get isPremiumPlugin(): true;
34
34
  }
35
35
  /**
36
- * The configuration of the template feature.
37
- *
38
- * ```ts
39
- * ClassicEditor
40
- * .create( {
41
- * template: ... // Template feature configuration.
42
- * } )
43
- * .then( ... )
44
- * .catch( ... );
45
- *```
46
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
47
- */
36
+ * The configuration of the template feature.
37
+ *
38
+ * ```ts
39
+ * ClassicEditor
40
+ * .create( {
41
+ * template: ... // Template feature configuration.
42
+ * } )
43
+ * .then( ... )
44
+ * .catch( ... );
45
+ *```
46
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
47
+ */
48
48
  export interface TemplateConfig {
49
- /**
50
- * A list of all template definitions to be displayed in the `'insertTemplate'` UI dropdown.
51
- *
52
- * An example configuration:
53
- *
54
- * ```json
55
- * {
56
- * template: {
57
- * definitions: [
58
- * {
59
- * title: 'Issue acknowledgement (plain text)',
60
- * data: 'Dear customer, thank you for your report! The issue is currently being worked on by our development team.'
61
- * },
62
- * {
63
- * title: 'Signature (multi-line)',
64
- * data: '<p><b>Jane Doe</b></p><p>Marketing Specialist at <a href="https://example.com>Example.com</a></p>',
65
- * description: 'Author signature with the link to the website.'
66
- * },
67
- * {
68
- * title: 'Example table',
69
- * data: '<table><tr><td>Cell #1</td><td></td></tr><tr><td></td><td>Cell #2</td></tr></table>',
70
- * icon: '<svg viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg">...</svg>',
71
- * description: 'This template inserts a table.'
72
- * },
73
- * {
74
- * title: 'Insert userAgent data',
75
- * data: navigator.userAgent
76
- * },
77
- * {
78
- * title: 'Insert translate to English link (function)',
79
- * data: () => '<a href="' + location.href + '/en" title="Translate to English">Translate to English</a>'
80
- * },
81
- * // ...
82
- * ]
83
- * }
84
- * }
85
- * ```
86
- */
87
- definitions?: Array<TemplateDefinition>;
49
+ /**
50
+ * A list of all template definitions to be displayed in the `'insertTemplate'` UI dropdown.
51
+ *
52
+ * An example configuration:
53
+ *
54
+ * ```json
55
+ * {
56
+ * template: {
57
+ * definitions: [
58
+ * {
59
+ * title: 'Issue acknowledgement (plain text)',
60
+ * data: 'Dear customer, thank you for your report! The issue is currently being worked on by our development team.'
61
+ * },
62
+ * {
63
+ * title: 'Signature (multi-line)',
64
+ * data: '<p><b>Jane Doe</b></p><p>Marketing Specialist at <a href="https://example.com>Example.com</a></p>',
65
+ * description: 'Author signature with the link to the website.'
66
+ * },
67
+ * {
68
+ * title: 'Example table',
69
+ * data: '<table><tr><td>Cell #1</td><td></td></tr><tr><td></td><td>Cell #2</td></tr></table>',
70
+ * icon: '<svg viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg">...</svg>',
71
+ * description: 'This template inserts a table.'
72
+ * },
73
+ * {
74
+ * title: 'Insert userAgent data',
75
+ * data: navigator.userAgent
76
+ * },
77
+ * {
78
+ * title: 'Insert translate to English link (function)',
79
+ * data: () => '<a href="' + location.href + '/en" title="Translate to English">Translate to English</a>'
80
+ * },
81
+ * // ...
82
+ * ]
83
+ * }
84
+ * }
85
+ * ```
86
+ */
87
+ definitions?: Array<TemplateDefinition>;
88
88
  }
89
89
  /**
90
- * An object describing a single template definition.
91
- *
92
- * ```json
93
- * {
94
- * // Mandatory fields:
95
- * title: 'Example template',
96
- * data: '<table><tr><td>Cell #1</td><td></td></tr><tr><td></td><td>Cell #2</td></tr></table>',
97
- *
98
- * // Optional configuration:
99
- * icon: '<svg viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg">...</svg>',
100
- * description: 'This template inserts a table.'
101
- * }
102
- * ```
103
- */
90
+ * An object describing a single template definition.
91
+ *
92
+ * ```json
93
+ * {
94
+ * // Mandatory fields:
95
+ * title: 'Example template',
96
+ * data: '<table><tr><td>Cell #1</td><td></td></tr><tr><td></td><td>Cell #2</td></tr></table>',
97
+ *
98
+ * // Optional configuration:
99
+ * icon: '<svg viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg">...</svg>',
100
+ * description: 'This template inserts a table.'
101
+ * }
102
+ * ```
103
+ */
104
104
  export type TemplateDefinition = {
105
- /**
106
- * The title of the template.
107
- */
108
- title: string;
109
- /**
110
- * An HTML string to be inserted into the document or a callback function that returns an HTML string
111
- * to be inserted into the document when the template is selected.
112
- */
113
- data: (() => string) | string;
114
- /**
115
- * An optional SVG string representing the icon of the template. The default size of the icon is 45x45 pixels.
116
- * Be sure to set the correct `viewBox` attribute in the icon source. If not provided, a generic icon will be used instead.
117
- */
118
- icon?: string;
119
- /**
120
- * An optional long description of the template presented to the users.
121
- */
122
- description?: string;
105
+ /**
106
+ * The title of the template.
107
+ */
108
+ title: string;
109
+ /**
110
+ * An HTML string to be inserted into the document or a callback function that returns an HTML string
111
+ * to be inserted into the document when the template is selected.
112
+ */
113
+ data: (() => string) | string;
114
+ /**
115
+ * An optional SVG string representing the icon of the template. The default size of the icon is 45x45 pixels.
116
+ * Be sure to set the correct `viewBox` attribute in the icon source. If not provided, a generic icon will be used instead.
117
+ */
118
+ icon?: string;
119
+ /**
120
+ * An optional long description of the template presented to the users.
121
+ */
122
+ description?: string;
123
123
  };
@@ -1,23 +1,23 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module template/templatecommand
7
- * @publicApi
8
- */
9
- import { Command } from '@ckeditor/ckeditor5-core';
6
+ * @module template/templatecommand
7
+ * @publicApi
8
+ */
9
+ import { Command } from "@ckeditor/ckeditor5-core";
10
10
  /**
11
- * The template command.
12
- *
13
- * Inserts a template into the editor content.
14
- */
11
+ * The template command.
12
+ *
13
+ * Inserts a template into the editor content.
14
+ */
15
15
  export declare class TemplateCommand extends Command {
16
- /**
17
- * Inserts the template data at the position of the selection.
18
- *
19
- * @fires execute
20
- * @param templateData Template data should be a raw HTML string or a function that returns one.
21
- */
22
- execute(templateData: string | Function): void;
16
+ /**
17
+ * Inserts the template data at the position of the selection.
18
+ *
19
+ * @fires execute
20
+ * @param templateData Template data should be a raw HTML string or a function that returns one.
21
+ */
22
+ override execute(templateData: string | Function): void;
23
23
  }
@@ -1,30 +1,30 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module template/templateediting
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
6
+ * @module template/templateediting
7
+ */
8
+ import { Plugin } from "@ckeditor/ckeditor5-core";
9
9
  /**
10
- * The template editing plugin.
11
- */
10
+ * The template editing plugin.
11
+ */
12
12
  export declare class TemplateEditing extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- static get pluginName(): "TemplateEditing";
17
- /**
18
- * @inheritDoc
19
- */
20
- static get isOfficialPlugin(): true;
21
- /**
22
- * @inheritDoc
23
- */
24
- static get isPremiumPlugin(): true;
25
- init(): void;
26
- /**
27
- * @inheritDoc
28
- */
29
- destroy(): void;
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ static get pluginName(): "TemplateEditing";
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static override get isOfficialPlugin(): true;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static override get isPremiumPlugin(): true;
25
+ init(): void;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ override destroy(): void;
30
30
  }
@@ -1,37 +1,37 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module template/templateui
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import '../theme/template.css';
6
+ * @module template/templateui
7
+ */
8
+ import { Plugin } from "@ckeditor/ckeditor5-core";
9
+ import "../theme/template.css";
10
10
  /**
11
- * The UI plugin of the template feature.
12
- *
13
- * It registers the `'insertTemplate'` UI dropdown in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
14
- * that displays a list of templates and allows to insert them into the editor content.
15
- */
11
+ * The UI plugin of the template feature.
12
+ *
13
+ * It registers the `'insertTemplate'` UI dropdown in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
14
+ * that displays a list of templates and allows to insert them into the editor content.
15
+ */
16
16
  export declare class TemplateUI extends Plugin {
17
- /**
18
- * @inheritDoc
19
- */
20
- static get pluginName(): "TemplateUI";
21
- /**
22
- * @inheritDoc
23
- */
24
- static get isOfficialPlugin(): true;
25
- /**
26
- * @inheritDoc
27
- */
28
- static get isPremiumPlugin(): true;
29
- /**
30
- * @inheritDoc
31
- */
32
- init(): void;
33
- /**
34
- * @inheritDoc
35
- */
36
- afterInit(): void;
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName(): "TemplateUI";
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static override get isOfficialPlugin(): true;
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static override get isPremiumPlugin(): true;
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ init(): void;
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ afterInit(): void;
37
37
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'af':{'dictionary':{'Template':'','Insert\x20template':'','No\x20templates\x20available.':'','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'','Search\x20template':'','%0\x20templates\x20found':''},'getPluralForm':_0x1cc860=>0x1!=_0x1cc860}};
23
+ export default{'af':{'dictionary':{'Template':'','Insert\x20template':'','No\x20templates\x20available.':'','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'','Search\x20template':'','%0\x20templates\x20found':''},'getPluralForm':_0x21473a=>0x1!=_0x21473a}};