@ckeditor/ckeditor5-template 48.2.0 → 48.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 _0x1f4b67,Plugin as _0x1ac961}from'@ckeditor/ckeditor5-core';import{IconTemplate as _0x3d5950,IconTemplateGeneric as _0xe3cb7a}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x2c427d,HighlightedTextView as _0x43cf95,ListItemView as _0x4497c5,ListView as _0x2929d1,MenuBarMenuListItemButtonView as _0x2c4f85,MenuBarMenuListItemView as _0xf2850d,MenuBarMenuListView as _0x87e371,MenuBarMenuView as _0x317086,SearchTextView as _0x438d5c,View as _0x105415,createDropdown as _0x369be9}from'@ckeditor/ckeditor5-ui';import{uid as _0x484e09}from'@ckeditor/ckeditor5-utils';var g=class extends _0x1f4b67{['execute'](_0x1df254){const {model:_0x559ffc}=this['editor'];let _0x1452da;switch(typeof _0x1df254){case'string':_0x1452da=_0x1df254;break;case'function':_0x1452da=_0x1df254();}'string'==typeof _0x1452da&&_0x559ffc['change'](()=>{const _0x4c7982=this['editor']['data']['htmlProcessor']['toView'](_0x1452da),_0x2f638e=_0x559ffc['document']['selection']['getFirstPosition']()['root'],_0x7c7575=this['editor']['data']['toModel'](_0x4c7982,_0x2f638e);_0x559ffc['insertContent'](_0x7c7575);});}},y=class extends _0x1ac961{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x553433}=this;_0x553433['commands']['add']('insertTemplate',new g(_0x553433)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x404d15=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15852c;for(const _0x5b45a4 in _0x404d15){const _0x5b0a4d=_0x5b45a4,_0x28e669=_0x404d15[_0x5b0a4d];if('templateLicenseKeyValid'==_0x28e669||'templateLicenseKeyInvalid'==_0x28e669||'templateLicenseKeyExpired'==_0x28e669||'templateLicenseKeyDomainLimit'==_0x28e669||'templateLicenseKeyNotAllowed'==_0x28e669||'templateLicenseKeyEvaluationLimit'==_0x28e669||'templateLicenseKeyUsageLimit'==_0x28e669){delete _0x404d15[_0x5b0a4d],_0x15852c=_0x28e669,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x15852c&&_0x404d15['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x15852c&&_0x404d15['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x15852c&&_0x404d15['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x15852c&&_0x404d15['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x15852c&&_0x404d15['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x15852c&&_0x404d15['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},L=class extends _0x2929d1{['filter'](_0x132800){if(!_0x132800)return this['_resetFiltering']();const _0x2aec1f=new Map(),_0x28efe0=this['items']['map'](_0x1f36c2=>{const _0x1e044c=_0x1f36c2['buttonView']['isMatching'](_0x132800);return _0x1f36c2['isVisible']=!!_0x1e044c,_0x1f36c2['buttonView']['highlightText'](_0x1e044c?_0x132800:null),_0x1e044c&&_0x2aec1f['set'](_0x1f36c2,_0x1e044c),_0x1f36c2;})['sort'](v)['sort'](function(_0x1694c7){return function(_0x4306a9,_0x44abed){const _0x4f81ff=_0x1694c7['get'](_0x4306a9),_0xb45568=_0x1694c7['get'](_0x44abed);return _0x4f81ff&&!_0xb45568?-0x1:_0xb45568&&!_0x4f81ff?0x1:_0x4f81ff||_0xb45568?_0x4f81ff['title']&&!_0xb45568['title']?-0x1:!_0x4f81ff['title']&&_0xb45568['title']?0x1:0x0:0x0;};}(_0x2aec1f));return this['items']['clear'](),this['items']['addMany'](_0x28efe0),{'resultsCount':_0x2aec1f['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x5ebe82=this['items']['map'](_0x3c4228=>_0x3c4228)['sort'](v);return _0x5ebe82['forEach'](_0x4ed757=>{_0x4ed757['isVisible']=!0x0,_0x4ed757['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x5ebe82),{'resultsCount':_0x5ebe82['length'],'totalItemsCount':_0x5ebe82['length']};}};function v(_0x4123c4,_0x523447){return _0x4123c4['originalIndex']-_0x523447['originalIndex'];}var x=class extends _0x4497c5{['originalIndex'];['buttonView'];constructor(_0x49d644,_0x2b1a94){super(_0x49d644),this['originalIndex']=_0x2b1a94,this['buttonView']=null;}},b=class extends _0x2c427d{['templateDefinition'];['textPartView'];constructor(_0x48b720,_0x3faf68){super(_0x48b720),this['templateDefinition']=_0x3faf68,this['textPartView']=null;const {icon:_0x2fd7dc=_0xe3cb7a}=_0x3faf68;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x2fd7dc}),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'](_0x1dafbe){const {title:_0x12842e,description:_0x361a5d}=this['templateDefinition'],_0x4e765e=!!_0x12842e['match'](_0x1dafbe),_0xf4dd29=!(!_0x361a5d||!_0x361a5d['match'](_0x1dafbe));return _0x4e765e||_0xf4dd29?{'title':_0x4e765e,'description':_0xf4dd29}:null;}['highlightText'](_0x364d87){this['textPartView']['highlightText'](_0x364d87);}},k=class extends _0x105415{constructor(_0x1e2632,_0x19695f,_0x26fb27){super(_0x1e2632),this['title']=_0x19695f['title'],this['description']=_0x19695f['description'],this['titleView']=new _0x43cf95(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x26fb27}});const _0xb20bbf=[this['titleView']];this['description']&&(this['descriptionView']=new _0x43cf95(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0xb20bbf['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0xb20bbf});}['highlightText'](_0x3721d4){this['titleView']['highlightText'](_0x3721d4),this['description']&&this['descriptionView']['highlightText'](_0x3721d4);}};function I(_0x85667a,_0x1ab913,..._0xbf443d){const t=_0x85667a['t'];switch(_0x1ab913){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0xbf443d);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',..._0xbf443d);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x1ab913;}}var T=class extends _0x1ac961{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x10993c}=this,_0x47eaf7=_0x10993c['config']['get']('template.definitions')||[];_0x10993c['ui']['componentFactory']['add']('insertTemplate',_0x93fb5=>{const _0x19b361=_0x369be9(_0x93fb5),_0x337ae4=new _0x438d5c(_0x93fb5,{'filteredView':this['_createTemplateListView'](_0x93fb5,_0x47eaf7),'queryView':{'label':I(_0x93fb5,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x25b757=>I(_0x93fb5,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x25b757),'secondary':I(_0x93fb5,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':I(_0x93fb5,'No\x20templates\x20available.')}}}}),_0x1cd848=_0x10993c['commands']['get']('insertTemplate');return _0x337ae4['on']('search',(_0x4e4fc2,_0x59c1ba)=>{_0x59c1ba['query']&&_0x59c1ba['query']['length']&&_0x10993c['ui']['ariaLiveAnnouncer']['announce'](I(_0x93fb5,'%0\x20templates\x20found',_0x59c1ba['resultsCount']));}),_0x19b361['bind']('isEnabled')['to'](_0x1cd848),_0x19b361['panelView']['children']['add'](_0x337ae4),_0x19b361['buttonView']['set']({'label':I(_0x93fb5,'Insert\x20template'),'icon':_0x3d5950,'tooltip':!0x0}),_0x19b361['on']('change:isOpen',(_0xe3bac2,_0x387e1d,_0x143959)=>{_0x143959||_0x337ae4['reset']();}),_0x19b361;}),_0x10993c['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x1d4c93=>{const _0x388338=_0x10993c['commands']['get']('insertTemplate'),_0x1154d7=new _0x317086(_0x1d4c93);_0x1154d7['buttonView']['set']({'label':I(_0x1d4c93,'Template'),'icon':_0x3d5950});const _0x3215a7=new _0x87e371(_0x1d4c93);if(!_0x47eaf7||!_0x47eaf7['length']){const _0x41d160=new _0xf2850d(_0x1d4c93,_0x1154d7),_0x5916a9=new _0x2c4f85(_0x1d4c93);_0x5916a9['set']({'label':I(_0x1d4c93,'No\x20templates\x20available.')}),_0x5916a9['delegate']('execute')['to'](_0x1154d7),_0x5916a9['on']('execute',()=>{_0x10993c['editing']['view']['focus']();}),_0x41d160['children']['add'](_0x5916a9),_0x3215a7['items']['add'](_0x41d160);}for(const _0x4710f4 of _0x47eaf7){const _0x270c04=new _0xf2850d(_0x1d4c93,_0x1154d7),_0x573888=new _0x2c4f85(_0x1d4c93);_0x573888['set']({'class':'ck-template-button','label':_0x4710f4['title'],'icon':_0x4710f4['icon']||_0xe3cb7a}),_0x573888['delegate']('execute')['to'](_0x1154d7),_0x573888['on']('execute',()=>{_0x10993c['execute']('insertTemplate',_0x4710f4['data']),_0x10993c['editing']['view']['focus']();}),_0x270c04['children']['add'](_0x573888),_0x3215a7['items']['add'](_0x270c04);}return _0x1154d7['panelView']['children']['add'](_0x3215a7),_0x1154d7['bind']('isEnabled')['to'](_0x388338,'isEnabled'),_0x1154d7;});}['afterInit'](){!async function(_0x4b27fa){const _0x36f9e1='5goNZRxHzmBfrl0Fq6Cks1ahDGS2LUEWiby3wKvu4IVPdeT8jn9MOQJtcAY7Xp',_0x3ce5ee=0x78de0,_0x291bb0=window['Date']['now'](),_0x3d0edd=_0x4b27fa['editor'],_0xe87386=new window['Promise'](_0x3d7994=>{_0x3d0edd['once']('ready',_0x3d7994);}),_0x4dfff8={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x40f5df=_0x3d0edd['config']['get']('licenseKey');async function _0x2da6f7(){let _0x9c7042,_0x3064eb=null,_0x88f0eb=null;try{return'GPL'==_0x40f5df?'NotAllowed':(_0x9c7042=_0x44a365(),_0x9c7042?(_0x9c7042['usageEndpoint']&&(_0x88f0eb=_0x46afa6(_0x9c7042['usageEndpoint'],_0x9c7042['jti'])),await _0x89e540()?_0x52bd06()?_0x4bd23a()?'Expired':_0x1c2307()?('evaluation'==_0x9c7042['licenseType']&&(_0x3064eb=_0x5dbc1a('EvaluationLimit')),await _0x4a833a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4bd23a(){const _0x52ed6b=['evaluation','trial']['includes'](_0x9c7042['licenseType'])?_0x291bb0/0x3e8:0xe10*_0x3ce5ee;return _0x9c7042['exp']<_0x52ed6b;}function _0x52bd06(){const _0x3d6f41=_0x9c7042['features'];return!!_0x3d6f41&&(!!_0x3d6f41['includes']('*')||(!!_0x3d6f41['includes']('TPL')||(!!_0x3d6f41['includes']('PP')||(!(!_0x3d6f41['includes']('DRUP')||!_0x23f414())||!(!_0x3d6f41['includes']('TRILIUM')||!_0x38221b())))));}function _0x1c2307(){const _0x3929b8=_0x9c7042['licensedHosts'];if(!_0x3929b8||0x0==_0x3929b8['length'])return!0x0;const {hostname:_0x114f1f}=new URL(window['location']['href']);if(_0x3929b8['includes'](_0x114f1f))return!0x0;const _0x3c1fa4=_0x114f1f['split']('.');return _0x3929b8['filter'](_0x320485=>_0x320485['includes']('*'))['map'](_0x35cf50=>_0x35cf50['split']('.'))['filter'](_0x2e2c58=>_0x2e2c58['length']<=_0x3c1fa4['length'])['map'](_0x2e10d0=>Array(_0x3c1fa4['length']-_0x2e10d0['length'])['fill']('*'===_0x2e10d0[0x0]?'*':'')['concat'](_0x2e10d0))['some'](_0x54b12c=>_0x3c1fa4['every']((_0x5d7729,_0x373a29)=>_0x54b12c[_0x373a29]===_0x5d7729||'*'===_0x54b12c[_0x373a29]));}function _0x4a833a(){return _0x3064eb&&_0x88f0eb?new window['Promise']((_0x3b0bbb,_0xa6c502)=>{_0x3064eb['then'](_0x3b0bbb,_0xa6c502),_0x88f0eb['then'](_0x74f9af=>{'Valid'!=_0x74f9af&&_0x3b0bbb(_0x74f9af);},_0xa6c502);}):_0x3064eb||_0x88f0eb||'Valid';}}function _0x46afa6(_0x44f5db,_0x34fffc){return new window['Promise'](_0x21b59d=>{if(_0x3ccf8a())return _0x21b59d('Valid');_0x11aab9(),_0x3d0edd['decorate']('_sendUsageRequest');let _0x3b808b=!0x1;const _0x552fc2=_0x484e09();function _0x13942a(_0x20045e){return!!_0x20045e&&('object'==typeof _0x20045e||'function'==typeof _0x20045e)&&'function'==typeof _0x20045e['then']&&'function'==typeof _0x20045e['catch'];}function _0x36fc1(_0x3f7d39){_0x3897dc(_0x3f7d39)['then'](_0xe27d86=>_0xe27d86&&'ok'==_0xe27d86['status']?_0x3e61ec(_0x315cf0(_0x552fc2+_0x34fffc))!=_0xe27d86['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0xf91c06=>(_0x162d85(),_0xf91c06),()=>{const _0x2dd48f=_0x1ac18a();return null==_0x2dd48f?(_0x162d85(),'Valid'):_0x291bb0-_0x2dd48f>0x240c8400?'UsageLimit':'Valid';})['then'](_0x21b59d)['catch'](()=>{_0x21b59d('UsageLimit');});const _0x47f7b9=0x36ee80;function _0x162d85(){const _0x5ca74a='llct-'+_0x3e61ec(_0x315cf0(_0x44f5db)),_0x3a42a7=_0x57ac6b(_0x3e61ec(window['Math']['ceil'](_0x291bb0/_0x47f7b9)));window['localStorage']['setItem'](_0x5ca74a,_0x3a42a7);}function _0x1ac18a(){const _0x2a7259='llct-'+_0x3e61ec(_0x315cf0(_0x44f5db)),_0x218666=window['localStorage']['getItem'](_0x2a7259);return _0x218666?window['parseInt'](_0x57ac6b(_0x218666),0x10)*_0x47f7b9:null;}function _0x3897dc(_0x5c77d8){return new window['Promise']((_0x2bfef8,_0x6bfc18)=>{_0x5c77d8['then'](_0x2bfef8,_0x6bfc18),window['setTimeout'](_0x6bfc18,0x1d4c0);});}}_0x3d0edd['on']('_sendUsageRequest',(_0x555e61,_0x818106)=>{if(_0x818106[0x0]!=_0x44f5db)return _0x21b59d('UsageLimit');_0x818106[0x1]={..._0x818106[0x1],'requestId':_0x552fc2};},{'priority':'high'}),_0x3d0edd['on']('_sendUsageRequest',_0x4ef65b=>{_0x13942a(_0x4ef65b['return'])&&(_0x3b808b=!0x0,_0x36fc1(_0x4ef65b['return']));},{'priority':'low'}),_0xe87386['then'](()=>{_0x3b808b||_0x21b59d('UsageLimit');});});function _0x3ccf8a(){return'auto'==_0x3d0edd['editing']['view']['_overlayModeHint'];}function _0x11aab9(){_0x3d0edd['editing']['view']['_overlayModeHint']='auto';}}function _0x5dbc1a(_0x1f085d){const _0x57761f=[new window['Promise'](_0x9f232e=>setTimeout(_0x9f232e,0x93ecc)),_0xe87386['then'](()=>new window['Promise'](_0x43f98d=>{let _0x5aa196=0x0;_0x3d0edd['model']['on']('applyOperation',(_0x46629d,_0x26e542)=>{_0x26e542[0x0]['isDocumentOperation']&&_0x5aa196++,0x5e8==_0x5aa196&&(_0x43f98d(),_0x46629d['off']());});}))];return window['Promise']['race'](_0x57761f)['then'](()=>_0x1f085d);}async function _0x2046a3(){await _0xe87386,_0x3d0edd['model']['change']=_0x58dd8d,_0x3d0edd['model']['enqueueChange']=_0x58dd8d,_0x3d0edd['enableReadOnlyMode']('model');}function _0x23f414(){return window['Drupal'];}function _0x38221b(){return window['glob']&&window['glob']['triliumVersion'];}function _0x3d6fd9(_0x5189b6){const _0x7483aa=_0x4a09d6();_0x3d0edd[_0x7483aa]='templateLicenseKey'+_0x5189b6,'Valid'!=_0x5189b6&&_0x2046a3();}function _0x4a09d6(){const _0x3c9078=window['String'](window['performance']['now']())['replace']('.','');let _0x5e4a0c='g';for(let _0x3e27f7=0x0;_0x3e27f7<_0x3c9078['length'];_0x3e27f7+=0x2){let _0x1b364f=window['parseInt'](_0x3c9078['substring'](_0x3e27f7,_0x3e27f7+0x2));_0x1b364f>=0x3e&&(_0x1b364f-=0x3e),_0x5e4a0c+=_0x36f9e1[_0x1b364f];}return _0x5e4a0c;}function _0x44a365(){const _0x2e0f4d=_0x40f5df['split']('.');if(0x3!=_0x2e0f4d['length'])return null;return _0x122c66(_0x2e0f4d[0x1]);function _0x122c66(_0x36d0fb){const _0x1a5c44=_0x5dedca(_0x36d0fb);return _0x1a5c44&&_0x50eab8()?_0x1a5c44:null;function _0x50eab8(){const _0x241b2f=_0x1a5c44['jti'],_0x5d0aae=window['parseInt'](_0x241b2f['substring'](_0x241b2f['length']-0x8),0x10),_0x519e51={..._0x1a5c44,'jti':_0x241b2f['substring'](0x0,_0x241b2f['length']-0x8)};return delete _0x519e51['vc'],_0x315cf0(_0x519e51)==_0x5d0aae;}}}async function _0x89e540(){let _0x4b51fa=!0x0;try{const [_0x5a9b6d,_0x48e4f,_0x72ee53]=_0x40f5df['split']('.');return _0x4f65c9(_0x5a9b6d),await _0x15387c(_0x5a9b6d,_0x48e4f,_0x72ee53),_0x4b51fa;}catch{return!0x1;}function _0x4f65c9(_0x2ebfcf){const _0x227a97=_0x5dedca(_0x2ebfcf);_0x227a97&&'ES256'==_0x227a97['alg']||(_0x4b51fa=!0x1);}async function _0x15387c(_0x2547c4,_0x5d7957,_0x39218f){const _0x16fcd6=window['Uint8Array']['from'](_0xf57908(_0x39218f),_0x19d628=>_0x19d628['charCodeAt'](0x0)),_0x3dd5df=new window['TextEncoder']()['encode'](_0x2547c4+'.'+_0x5d7957),_0x4e7560=window['crypto']['subtle'];if(!_0x4e7560)return;const _0x5df673=await _0x4e7560['importKey']('jwk',_0x4dfff8,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4e7560['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5df673,_0x16fcd6,_0x3dd5df)||(_0x4b51fa=!0x1);}}function _0x5dedca(_0x442271){return _0x442271['startsWith']('ey')?JSON['parse'](_0xf57908(_0x442271)):null;}function _0xf57908(_0x203d26){return window['atob'](_0x203d26['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x315cf0(_0x38f02a){let _0x1b78b2=0x1505;function _0x135eb0(_0x127a1d){for(let _0x157d91=0x0;_0x157d91<_0x127a1d['length'];_0x157d91++){const _0x432a19=_0x127a1d['charCodeAt'](_0x157d91);_0x1b78b2=(_0x1b78b2<<0x5)+_0x1b78b2+_0x432a19,_0x1b78b2&=_0x1b78b2;}}function _0x27d2ee(_0x17ac93){Array['isArray'](_0x17ac93)?_0x17ac93['forEach'](_0x27d2ee):_0x17ac93&&'object'==typeof _0x17ac93?Object['entries'](_0x17ac93)['sort']()['forEach'](([_0x3e8265,_0x5e1716])=>{_0x135eb0(_0x3e8265),_0x27d2ee(_0x5e1716);}):_0x135eb0(window['String'](_0x17ac93));}return _0x27d2ee(_0x38f02a),_0x1b78b2>>>0x0;}function _0x3e61ec(_0x134201){return _0x134201['toString'](0x10)['padStart'](0x8,'0');}function _0x57ac6b(_0x2e7f62){return _0x2e7f62['split']('')['reverse']()['join']('');}function _0x58dd8d(){}_0x3d6fd9(await _0x2da6f7());}(this);}['_createTemplateListView'](_0x1ec2b8,_0x42996a){const {editor:_0x6a0697}=this,_0x50c693=new L(_0x1ec2b8);return _0x50c693['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x50c693['items']['addMany'](_0x42996a['map']((_0x254968,_0x193414)=>{const _0x1e6c2b=new x(_0x1ec2b8,_0x193414),_0x23ea7a=new b(_0x1ec2b8,_0x254968);return _0x1e6c2b['buttonView']=_0x23ea7a,_0x1e6c2b['children']['add'](_0x23ea7a),_0x1e6c2b['buttonView']['on']('execute',_0x2ef1be=>{_0x6a0697['execute']('insertTemplate',_0x2ef1be['source']['templateDefinition']['data']),_0x6a0697['editing']['view']['focus']();}),_0x1e6c2b;})),_0x50c693;}},K=class extends _0x1ac961{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}};