@ckeditor/ckeditor5-template 48.1.0-alpha.7 → 48.1.0-alpha.8

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 (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x3c7672,Plugin as _0x5110fb}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconTemplateGeneric as _0x2d9a6c,IconTemplate as _0x3428e5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ListView as _0x262202,ListItemView as _0x4e2877,ButtonView as _0x4bb6a8,View as _0x361d87,HighlightedTextView as _0x229d53,createDropdown as _0x4035cf,SearchTextView as _0x3f95a6,MenuBarMenuView as _0x347225,MenuBarMenuListView as _0x5483e3,MenuBarMenuListItemView as _0x31dfb2,MenuBarMenuListItemButtonView as _0x531b35}from'@ckeditor/ckeditor5-ui/dist/index.js';import{uid as _0x3c8f99}from'@ckeditor/ckeditor5-utils/dist/index.js';class g extends _0x3c7672{['execute'](_0x53d1e5){const {model:_0x32c1b5}=this['editor'];let _0xa18a8c;switch(typeof _0x53d1e5){case'string':_0xa18a8c=_0x53d1e5;break;case'function':_0xa18a8c=_0x53d1e5();}'string'==typeof _0xa18a8c&&_0x32c1b5['change'](()=>{const _0x5aa449=this['editor']['data']['htmlProcessor']['toView'](_0xa18a8c),_0x32f3f4=this['editor']['data']['toModel'](_0x5aa449);_0x32c1b5['insertContent'](_0x32f3f4);});}}class y extends _0x5110fb{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xa7f325}=this;_0xa7f325['commands']['add']('insertTemplate',new g(_0xa7f325)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x46479b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb75556;for(const _0x81a4e4 in _0x46479b){const _0x3e69fe=_0x81a4e4,_0x357145=_0x46479b[_0x3e69fe];if('templateLicenseKeyValid'==_0x357145||'templateLicenseKeyInvalid'==_0x357145||'templateLicenseKeyExpired'==_0x357145||'templateLicenseKeyDomainLimit'==_0x357145||'templateLicenseKeyNotAllowed'==_0x357145||'templateLicenseKeyEvaluationLimit'==_0x357145||'templateLicenseKeyUsageLimit'==_0x357145){delete _0x46479b[_0x3e69fe],_0xb75556=_0x357145,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0xb75556&&_0x46479b['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0xb75556&&_0x46479b['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0xb75556&&_0x46479b['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0xb75556&&_0x46479b['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0xb75556&&_0x46479b['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0xb75556&&_0x46479b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class x extends _0x262202{['filter'](_0x163299){if(!_0x163299)return this['_resetFiltering']();const _0x37dc6a=new Map(),_0x22237a=this['items']['map'](_0x2b1b3b=>{const _0x159e27=_0x2b1b3b['buttonView']['isMatching'](_0x163299);return _0x2b1b3b['isVisible']=!!_0x159e27,_0x2b1b3b['buttonView']['highlightText'](_0x159e27?_0x163299:null),_0x159e27&&_0x37dc6a['set'](_0x2b1b3b,_0x159e27),_0x2b1b3b;})['sort'](b)['sort'](function(_0x165fc0){return function(_0x30b0b2,_0x467517){const _0x1881b1=_0x165fc0['get'](_0x30b0b2),_0x189579=_0x165fc0['get'](_0x467517);return _0x1881b1&&!_0x189579?-0x1:_0x189579&&!_0x1881b1?0x1:_0x1881b1||_0x189579?_0x1881b1['title']&&!_0x189579['title']?-0x1:!_0x1881b1['title']&&_0x189579['title']?0x1:0x0:0x0;};}(_0x37dc6a));return this['items']['clear'](),this['items']['addMany'](_0x22237a),{'resultsCount':_0x37dc6a['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x18bee0=this['items']['map'](_0x2ed1df=>_0x2ed1df)['sort'](b);return _0x18bee0['forEach'](_0x27ed3c=>{_0x27ed3c['isVisible']=!0x0,_0x27ed3c['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x18bee0),{'resultsCount':_0x18bee0['length'],'totalItemsCount':_0x18bee0['length']};}}function b(_0x546489,_0x37d98c){return _0x546489['originalIndex']-_0x37d98c['originalIndex'];}class L extends _0x4e2877{['originalIndex'];['buttonView'];constructor(_0x59b874,_0x5eefb9){super(_0x59b874),this['originalIndex']=_0x5eefb9,this['buttonView']=null;}}class k extends _0x4bb6a8{['templateDefinition'];['textPartView'];constructor(_0x5cd083,_0x1bfc25){super(_0x5cd083),this['templateDefinition']=_0x1bfc25,this['textPartView']=null;const {icon:_0x1a1f14=_0x2d9a6c}=_0x1bfc25;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x1a1f14}),this['iconView']['isColorInherited']=!0x1;}['render'](){super['render'](),this['textPartView']=new T(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'](_0x3fc7ae){const {title:_0x58eb6a,description:_0x171578}=this['templateDefinition'],_0x36b116=!!_0x58eb6a['match'](_0x3fc7ae),_0x179a83=!(!_0x171578||!_0x171578['match'](_0x3fc7ae));return _0x36b116||_0x179a83?{'title':_0x36b116,'description':_0x179a83}:null;}['highlightText'](_0x4c7922){this['textPartView']['highlightText'](_0x4c7922);}}class T extends _0x361d87{constructor(_0x4d044c,_0x6f600d,_0x23992a){super(_0x4d044c),this['title']=_0x6f600d['title'],this['description']=_0x6f600d['description'],this['titleView']=new _0x229d53(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x23992a}});const _0x433868=[this['titleView']];this['description']&&(this['descriptionView']=new _0x229d53(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x433868['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x433868});}['highlightText'](_0x37bb34){this['titleView']['highlightText'](_0x37bb34),this['description']&&this['descriptionView']['highlightText'](_0x37bb34);}}function v(_0x474d2b,_0x2046c2,..._0x257cfd){const t=_0x474d2b['t'];switch(_0x2046c2){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x257cfd);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',..._0x257cfd);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x2046c2;}}class K extends _0x5110fb{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x52066d}=this,_0x14e96a=_0x52066d['config']['get']('template.definitions')||[];_0x52066d['ui']['componentFactory']['add']('insertTemplate',_0x555499=>{const _0x2e487a=_0x4035cf(_0x555499),_0x2889ef=this['_createTemplateListView'](_0x555499,_0x14e96a),_0x4d82a5=new _0x3f95a6(_0x555499,{'filteredView':_0x2889ef,'queryView':{'label':v(_0x555499,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x3da3e6=>v(_0x555499,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x3da3e6),'secondary':v(_0x555499,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':v(_0x555499,'No\x20templates\x20available.')}}}}),_0x41a482=_0x52066d['commands']['get']('insertTemplate');return _0x4d82a5['on']('search',(_0x4fdc12,_0x3f707e)=>{_0x3f707e['query']&&_0x3f707e['query']['length']&&_0x52066d['ui']['ariaLiveAnnouncer']['announce'](v(_0x555499,'%0\x20templates\x20found',_0x3f707e['resultsCount']));}),_0x2e487a['bind']('isEnabled')['to'](_0x41a482),_0x2e487a['panelView']['children']['add'](_0x4d82a5),_0x2e487a['buttonView']['set']({'label':v(_0x555499,'Insert\x20template'),'icon':_0x3428e5,'tooltip':!0x0}),_0x2e487a['on']('change:isOpen',(_0x5f1488,_0x33ee0b,_0xc7f346)=>{_0xc7f346||_0x4d82a5['reset']();}),_0x2e487a;}),_0x52066d['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x596768=>{const _0x383677=_0x52066d['commands']['get']('insertTemplate'),_0x21dea6=new _0x347225(_0x596768);_0x21dea6['buttonView']['set']({'label':v(_0x596768,'Template'),'icon':_0x3428e5});const _0x16da87=new _0x5483e3(_0x596768);if(!_0x14e96a||!_0x14e96a['length']){const _0x3b3f4e=new _0x31dfb2(_0x596768,_0x21dea6),_0x270320=new _0x531b35(_0x596768);_0x270320['set']({'label':v(_0x596768,'No\x20templates\x20available.')}),_0x270320['delegate']('execute')['to'](_0x21dea6),_0x270320['on']('execute',()=>{_0x52066d['editing']['view']['focus']();}),_0x3b3f4e['children']['add'](_0x270320),_0x16da87['items']['add'](_0x3b3f4e);}for(const _0x4287f7 of _0x14e96a){const _0x5e1ff0=new _0x31dfb2(_0x596768,_0x21dea6),_0x28de46=new _0x531b35(_0x596768);_0x28de46['set']({'class':'ck-template-button','label':_0x4287f7['title'],'icon':_0x4287f7['icon']||_0x2d9a6c}),_0x28de46['delegate']('execute')['to'](_0x21dea6),_0x28de46['on']('execute',()=>{_0x52066d['execute']('insertTemplate',_0x4287f7['data']),_0x52066d['editing']['view']['focus']();}),_0x5e1ff0['children']['add'](_0x28de46),_0x16da87['items']['add'](_0x5e1ff0);}return _0x21dea6['panelView']['children']['add'](_0x16da87),_0x21dea6['bind']('isEnabled')['to'](_0x383677,'isEnabled'),_0x21dea6;});}['afterInit'](){!async function(_0x4b9f98){const _0x1196fe=_0x1ac3a0([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]),_0x474899=0x6b0f5e6f,_0x13d12b=0x6b08d7b7^_0x474899,_0x37c42c=window[_0x1ac3a0([0x44,0x61,0x74,0x65])][_0x1ac3a0([0x6e,0x6f,0x77])](),_0x208b01=_0x4b9f98[_0x1ac3a0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xdd311d=new window[(_0x1ac3a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x519b48=>{_0x208b01[_0x1ac3a0([0x6f,0x6e,0x63,0x65])](_0x1ac3a0([0x72,0x65,0x61,0x64,0x79]),_0x519b48);}),_0x1acc73={[_0x1ac3a0([0x6b,0x74,0x79])]:_0x1ac3a0([0x45,0x43]),[_0x1ac3a0([0x75,0x73,0x65])]:_0x1ac3a0([0x73,0x69,0x67]),[_0x1ac3a0([0x63,0x72,0x76])]:_0x1ac3a0([0x50,0x2d,0x32,0x35,0x36]),[_0x1ac3a0([0x78])]:_0x1ac3a0([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]),[_0x1ac3a0([0x79])]:_0x1ac3a0([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]),[_0x1ac3a0([0x61,0x6c,0x67])]:_0x1ac3a0([0x45,0x53,0x32,0x35,0x36])},_0x520dd9=_0x208b01[_0x1ac3a0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ac3a0([0x67,0x65,0x74])](_0x1ac3a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7363d(){let _0x55aa7f,_0x2e68a7=null,_0xb9046a=null;try{if(_0x520dd9==_0x1ac3a0([0x47,0x50,0x4c]))return _0x1ac3a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55aa7f=_0x3b02f5(),!_0x55aa7f)return _0x1ac3a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55aa7f[_0x1ac3a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xb9046a=_0x1d3529(_0x55aa7f[_0x1ac3a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55aa7f[_0x1ac3a0([0x6a,0x74,0x69])])),await _0x3458a8()?_0x21846a()?_0x51199d()?_0x1ac3a0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13e658()?(_0x55aa7f[_0x1ac3a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ac3a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e68a7=_0x231a3d(_0x1ac3a0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5407d4()):_0x1ac3a0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ac3a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ac3a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1ac3a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x51199d(){const _0x2ca838=[_0x1ac3a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ac3a0([0x74,0x72,0x69,0x61,0x6c])][_0x1ac3a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55aa7f[_0x1ac3a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x37c42c/0x3e8:0xe10*_0x13d12b;return _0x55aa7f[_0x1ac3a0([0x65,0x78,0x70])]<_0x2ca838;}function _0x21846a(){const _0x419a99=_0x55aa7f[_0x1ac3a0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x419a99&&(!!_0x419a99[_0x1ac3a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ac3a0([0x2a]))||(!!_0x419a99[_0x1ac3a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ac3a0([0x54,0x50,0x4c]))||(!!_0x419a99[_0x1ac3a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ac3a0([0x50,0x50]))||(!(!_0x419a99[_0x1ac3a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ac3a0([0x44,0x52,0x55,0x50]))||!_0x356d20())||!(!_0x419a99[_0x1ac3a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ac3a0([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x1370f6())))));}function _0x13e658(){const _0x2a4a48=_0x55aa7f[_0x1ac3a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2a4a48||0x0==_0x2a4a48[_0x1ac3a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ade91}=new URL(window[_0x1ac3a0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2a4a48[_0x1ac3a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ade91))return!0x0;const _0x27ff8d=_0x1ade91[_0x1ac3a0([0x73,0x70,0x6c,0x69,0x74])](_0x1ac3a0([0x2e]));return _0x2a4a48[_0x1ac3a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x330b09=>_0x330b09[_0x1ac3a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ac3a0([0x2a])))[_0x1ac3a0([0x6d,0x61,0x70])](_0x4a11c0=>_0x4a11c0[_0x1ac3a0([0x73,0x70,0x6c,0x69,0x74])](_0x1ac3a0([0x2e])))[_0x1ac3a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3afacf=>_0x3afacf[_0x1ac3a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x27ff8d[_0x1ac3a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1ac3a0([0x6d,0x61,0x70])](_0x3c6fb1=>Array(_0x27ff8d[_0x1ac3a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c6fb1[_0x1ac3a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1ac3a0([0x66,0x69,0x6c,0x6c])](_0x3c6fb1[0x0]===_0x1ac3a0([0x2a])?_0x1ac3a0([0x2a]):'')[_0x1ac3a0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c6fb1))[_0x1ac3a0([0x73,0x6f,0x6d,0x65])](_0x1507a3=>_0x27ff8d[_0x1ac3a0([0x65,0x76,0x65,0x72,0x79])]((_0x55079c,_0x1f92ba)=>_0x1507a3[_0x1f92ba]===_0x55079c||_0x1507a3[_0x1f92ba]===_0x1ac3a0([0x2a])));}function _0x5407d4(){return _0x2e68a7&&_0xb9046a?new window[(_0x1ac3a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3da1e0,_0x546562)=>{_0x2e68a7[_0x1ac3a0([0x74,0x68,0x65,0x6e])](_0x3da1e0,_0x546562),_0xb9046a[_0x1ac3a0([0x74,0x68,0x65,0x6e])](_0xc09b51=>{_0xc09b51!=_0x1ac3a0([0x56,0x61,0x6c,0x69,0x64])&&_0x3da1e0(_0xc09b51);},_0x546562);}):_0x2e68a7||_0xb9046a||_0x1ac3a0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d3529(_0xc06a9a,_0x8a1be6){return new window[(_0x1ac3a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10b271=>{if(_0x4bd908())return _0x10b271(_0x1ac3a0([0x56,0x61,0x6c,0x69,0x64]));_0x2c7fd3(),_0x208b01[_0x1ac3a0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ac3a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22b515=!0x1;const _0x4e48bc=_0x3c8f99();function _0x208bd7(_0x26c780){return!!_0x26c780&&(typeof _0x26c780===_0x1ac3a0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x26c780===_0x1ac3a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x26c780[_0x1ac3a0([0x74,0x68,0x65,0x6e])]===_0x1ac3a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x26c780[_0x1ac3a0([0x63,0x61,0x74,0x63,0x68])]===_0x1ac3a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x257833(_0x4ed198){_0x7f7f55(_0x4ed198)[_0x1ac3a0([0x74,0x68,0x65,0x6e])](_0xfde503=>{if(!_0xfde503||_0xfde503[_0x1ac3a0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ac3a0([0x6f,0x6b]))return _0x1ac3a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x466e4c(_0x191f45(_0x4e48bc+_0x8a1be6))!=_0xfde503[_0x1ac3a0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ac3a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ac3a0([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ac3a0([0x74,0x68,0x65,0x6e])](_0x30c69a=>(_0x22dfd7(),_0x30c69a),()=>{const _0x3f138f=_0x34cfa6();return null==_0x3f138f?(_0x22dfd7(),_0x1ac3a0([0x56,0x61,0x6c,0x69,0x64])):_0x1ac3a0(_0x37c42c-_0x3f138f>(0x4f03da6f^_0x474899)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ac3a0([0x74,0x68,0x65,0x6e])](_0x10b271)[_0x1ac3a0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10b271(_0x1ac3a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5be793=0x6b39b0ef^_0x474899;function _0x22dfd7(){const _0x5731dc=_0x1ac3a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x466e4c(_0x191f45(_0xc06a9a)),_0x1e2078=_0x34bc87(_0x466e4c(window[_0x1ac3a0([0x4d,0x61,0x74,0x68])][_0x1ac3a0([0x63,0x65,0x69,0x6c])](_0x37c42c/_0x5be793)));window[_0x1ac3a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ac3a0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5731dc,_0x1e2078);}function _0x34cfa6(){const _0x53c040=_0x1ac3a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x466e4c(_0x191f45(_0xc06a9a)),_0x7d9b9b=window[_0x1ac3a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ac3a0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53c040);return _0x7d9b9b?window[_0x1ac3a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34bc87(_0x7d9b9b),0x10)*_0x5be793:null;}function _0x7f7f55(_0x3833a8){return new window[(_0x1ac3a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23ab81,_0x3bf17c)=>{_0x3833a8[_0x1ac3a0([0x74,0x68,0x65,0x6e])](_0x23ab81,_0x3bf17c),window[_0x1ac3a0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3bf17c,0x6b0e8aaf^_0x474899);});}}_0x208b01[_0x1ac3a0([0x6f,0x6e])](_0x1ac3a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x314345,_0x4a5a5e)=>{if(_0x4a5a5e[0x0]!=_0xc06a9a)return _0x10b271(_0x1ac3a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a5a5e[0x1]={..._0x4a5a5e[0x1],[_0x1ac3a0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e48bc};},{[_0x1ac3a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ac3a0([0x68,0x69,0x67,0x68])}),_0x208b01[_0x1ac3a0([0x6f,0x6e])](_0x1ac3a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ee825=>{_0x208bd7(_0x5ee825[_0x1ac3a0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22b515=!0x0,_0x257833(_0x5ee825[_0x1ac3a0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ac3a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ac3a0([0x6c,0x6f,0x77])}),_0xdd311d[_0x1ac3a0([0x74,0x68,0x65,0x6e])](()=>{_0x22b515||_0x10b271(_0x1ac3a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4bd908(){return _0x208b01[_0x1ac3a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ac3a0([0x76,0x69,0x65,0x77])][_0x1ac3a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ac3a0([0x61,0x75,0x74,0x6f]);}function _0x2c7fd3(){_0x208b01[_0x1ac3a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ac3a0([0x76,0x69,0x65,0x77])][_0x1ac3a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ac3a0([0x61,0x75,0x74,0x6f]);}}function _0x231a3d(_0x2415f4){const _0x1b8b05=[new window[(_0x1ac3a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5059b1=>setTimeout(_0x5059b1,0x6b0660a3^_0x474899)),_0xdd311d[_0x1ac3a0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ac3a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2be043=>{let _0x18a620=0x0;_0x208b01[_0x1ac3a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ac3a0([0x6f,0x6e])](_0x1ac3a0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x577f19,_0x40c958)=>{_0x40c958[0x0][_0x1ac3a0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x18a620++,_0x18a620==(0x6b0f5b87^_0x474899)&&(_0x2be043(),_0x577f19[_0x1ac3a0([0x6f,0x66,0x66])]());});}))];return window[_0x1ac3a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ac3a0([0x72,0x61,0x63,0x65])](_0x1b8b05)[_0x1ac3a0([0x74,0x68,0x65,0x6e])](()=>_0x2415f4);}async function _0x4f8e44(){await _0xdd311d,_0x208b01[_0x1ac3a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ac3a0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a5d8f,_0x208b01[_0x1ac3a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ac3a0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a5d8f,_0x208b01[_0x1ac3a0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ac3a0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x356d20(){return window[_0x1ac3a0([0x44,0x72,0x75,0x70,0x61,0x6c])];}function _0x1370f6(){return window[_0x1ac3a0([0x67,0x6c,0x6f,0x62])]&&window[_0x1ac3a0([0x67,0x6c,0x6f,0x62])][_0x1ac3a0([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x55d13e(_0x248430){const _0x436c54=_0x49fa8c();_0x208b01[_0x436c54]=_0x1ac3a0([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x248430,_0x248430!=_0x1ac3a0([0x56,0x61,0x6c,0x69,0x64])&&_0x4f8e44();}function _0x49fa8c(){const _0xc6fd15=window[_0x1ac3a0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ac3a0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ac3a0([0x6e,0x6f,0x77])]())[_0x1ac3a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ac3a0([0x2e]),'');let _0x15be1f=_0x1ac3a0([0x67]);for(let _0x455498=0x0;_0x455498<_0xc6fd15[_0x1ac3a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x455498+=0x2){let _0x46a4fe=window[_0x1ac3a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc6fd15[_0x1ac3a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x455498,_0x455498+0x2));_0x46a4fe>=_0x1196fe[_0x1ac3a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46a4fe-=_0x1196fe[_0x1ac3a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x15be1f+=_0x1196fe[_0x46a4fe];}return _0x15be1f;}function _0x3b02f5(){const _0x53ce70=_0x520dd9[_0x1ac3a0([0x73,0x70,0x6c,0x69,0x74])](_0x1ac3a0([0x2e]));if(0x3!=_0x53ce70[_0x1ac3a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x510717(_0x53ce70[0x1]);function _0x510717(_0x54cc52){const _0x58476a=_0x22563c(_0x54cc52);return _0x58476a&&_0x3a4d75()?_0x58476a:null;function _0x3a4d75(){const _0x148737=_0x58476a[_0x1ac3a0([0x6a,0x74,0x69])],_0x87f3ef=window[_0x1ac3a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x148737[_0x1ac3a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x148737[_0x1ac3a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x8a1d23={..._0x58476a,[_0x1ac3a0([0x6a,0x74,0x69])]:_0x148737[_0x1ac3a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x148737[_0x1ac3a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x8a1d23[_0x1ac3a0([0x76,0x63])],_0x191f45(_0x8a1d23)==_0x87f3ef;}}}async function _0x3458a8(){let _0x5c829f=!0x0;try{const _0x442144=_0x520dd9[_0x1ac3a0([0x73,0x70,0x6c,0x69,0x74])](_0x1ac3a0([0x2e])),[_0x113900,_0x1d801d,_0x40fe59]=_0x442144;return _0x5807ac(_0x113900),await _0x40c4ff(_0x113900,_0x1d801d,_0x40fe59),_0x5c829f;}catch{return!0x1;}function _0x5807ac(_0x10cc41){const _0x41748e=_0x22563c(_0x10cc41);_0x41748e&&_0x41748e[_0x1ac3a0([0x61,0x6c,0x67])]==_0x1ac3a0([0x45,0x53,0x32,0x35,0x36])||(_0x5c829f=!0x1);}async function _0x40c4ff(_0x4ba44c,_0x270ba0,_0x5c5579){const _0x2a6d44=window[_0x1ac3a0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ac3a0([0x66,0x72,0x6f,0x6d])](_0x112a3e(_0x5c5579),_0x596f95=>_0x596f95[_0x1ac3a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x571d02=new window[(_0x1ac3a0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ac3a0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ba44c+_0x1ac3a0([0x2e])+_0x270ba0),_0x32c9ee=window[_0x1ac3a0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ac3a0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x32c9ee)return;const _0x54dbd1=await _0x32c9ee[_0x1ac3a0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ac3a0([0x6a,0x77,0x6b]),_0x1acc73,{[_0x1ac3a0([0x6e,0x61,0x6d,0x65])]:_0x1ac3a0([0x45,0x43,0x44,0x53,0x41]),[_0x1ac3a0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ac3a0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ac3a0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x32c9ee[_0x1ac3a0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ac3a0([0x6e,0x61,0x6d,0x65])]:_0x1ac3a0([0x45,0x43,0x44,0x53,0x41]),[_0x1ac3a0([0x68,0x61,0x73,0x68])]:{[_0x1ac3a0([0x6e,0x61,0x6d,0x65])]:_0x1ac3a0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54dbd1,_0x2a6d44,_0x571d02)||(_0x5c829f=!0x1);}}function _0x22563c(_0x4447a2){return _0x4447a2[_0x1ac3a0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ac3a0([0x65,0x79]))?JSON[_0x1ac3a0([0x70,0x61,0x72,0x73,0x65])](_0x112a3e(_0x4447a2)):null;}function _0x112a3e(_0x2c07a7){return window[_0x1ac3a0([0x61,0x74,0x6f,0x62])](_0x2c07a7[_0x1ac3a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ac3a0([0x2b]))[_0x1ac3a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ac3a0([0x2f])));}function _0x191f45(_0x65240d){let _0x313ddf=0x1505;function _0x29024f(_0x1dcc86){for(let _0x26f34d=0x0;_0x26f34d<_0x1dcc86[_0x1ac3a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26f34d++){const _0xfa70c4=_0x1dcc86[_0x1ac3a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26f34d);_0x313ddf=(_0x313ddf<<0x5)+_0x313ddf+_0xfa70c4,_0x313ddf&=_0x313ddf;}}function _0xe8e98f(_0x47307f){Array[_0x1ac3a0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47307f)?_0x47307f[_0x1ac3a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xe8e98f):_0x47307f&&typeof _0x47307f==_0x1ac3a0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ac3a0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47307f)[_0x1ac3a0([0x73,0x6f,0x72,0x74])]()[_0x1ac3a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4afbb2,_0x11ac55])=>{_0x29024f(_0x4afbb2),_0xe8e98f(_0x11ac55);}):_0x29024f(window[_0x1ac3a0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47307f));}return _0xe8e98f(_0x65240d),_0x313ddf>>>0x0;}function _0x466e4c(_0x53718a){return _0x53718a[_0x1ac3a0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ac3a0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ac3a0([0x30]));}function _0x34bc87(_0x5d0a41){return _0x5d0a41[_0x1ac3a0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ac3a0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ac3a0([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a5d8f(){}function _0x1ac3a0(_0x30135b){return _0x30135b['map'](_0x5a9733=>String['fromCharCode'](_0x5a9733))['join']('');}_0x55d13e(await _0x7363d());}(this);}['_createTemplateListView'](_0x336f68,_0x1e40a8){const {editor:_0x21d46c}=this,_0x20b122=new x(_0x336f68);return _0x20b122['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x20b122['items']['addMany'](_0x1e40a8['map']((_0x2688c0,_0x8e0dc9)=>{const _0x12386e=new L(_0x336f68,_0x8e0dc9),_0x4b375e=new k(_0x336f68,_0x2688c0);return _0x12386e['buttonView']=_0x4b375e,_0x12386e['children']['add'](_0x4b375e),_0x12386e['buttonView']['on']('execute',_0x5e5628=>{_0x21d46c['execute']('insertTemplate',_0x5e5628['source']['templateDefinition']['data']),_0x21d46c['editing']['view']['focus']();}),_0x12386e;})),_0x20b122;}}class I extends _0x5110fb{static get['requires'](){return[y,K];}static get['pluginName'](){return'Template';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{I as Template,g as TemplateCommand,y as TemplateEditing,K as TemplateUI};
23
+ import{Command as _0x57878e,Plugin as _0x26e47f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconTemplateGeneric as _0x43a0a2,IconTemplate as _0x4fc0ef}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ListView as _0x1fb9f7,ListItemView as _0x33bcc2,ButtonView as _0x254f5f,View as _0x455c3a,HighlightedTextView as _0xae4cef,createDropdown as _0x5a4de0,SearchTextView as _0x4db44c,MenuBarMenuView as _0x31e377,MenuBarMenuListView as _0x1583eb,MenuBarMenuListItemView as _0x2764be,MenuBarMenuListItemButtonView as _0x1d5a7d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{uid as _0x1f0f57}from'@ckeditor/ckeditor5-utils/dist/index.js';class g extends _0x57878e{['execute'](_0x1bf434){const {model:_0x19c98c}=this['editor'];let _0x1af9f3;switch(typeof _0x1bf434){case'string':_0x1af9f3=_0x1bf434;break;case'function':_0x1af9f3=_0x1bf434();}'string'==typeof _0x1af9f3&&_0x19c98c['change'](()=>{const _0x55e912=this['editor']['data']['htmlProcessor']['toView'](_0x1af9f3),_0x260fb2=this['editor']['data']['toModel'](_0x55e912);_0x19c98c['insertContent'](_0x260fb2);});}}class y extends _0x26e47f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1dee0f}=this;_0x1dee0f['commands']['add']('insertTemplate',new g(_0x1dee0f)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x21b167=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x12a9d1;for(const _0x5e8070 in _0x21b167){const _0x3644a7=_0x5e8070,_0x22b96=_0x21b167[_0x3644a7];if('templateLicenseKeyValid'==_0x22b96||'templateLicenseKeyInvalid'==_0x22b96||'templateLicenseKeyExpired'==_0x22b96||'templateLicenseKeyDomainLimit'==_0x22b96||'templateLicenseKeyNotAllowed'==_0x22b96||'templateLicenseKeyEvaluationLimit'==_0x22b96||'templateLicenseKeyUsageLimit'==_0x22b96){delete _0x21b167[_0x3644a7],_0x12a9d1=_0x22b96,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x12a9d1&&_0x21b167['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x12a9d1&&_0x21b167['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x12a9d1&&_0x21b167['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x12a9d1&&_0x21b167['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x12a9d1&&_0x21b167['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x12a9d1&&_0x21b167['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class x extends _0x1fb9f7{['filter'](_0x2d551f){if(!_0x2d551f)return this['_resetFiltering']();const _0x2700ec=new Map(),_0x2db7c8=this['items']['map'](_0x461a86=>{const _0x43a087=_0x461a86['buttonView']['isMatching'](_0x2d551f);return _0x461a86['isVisible']=!!_0x43a087,_0x461a86['buttonView']['highlightText'](_0x43a087?_0x2d551f:null),_0x43a087&&_0x2700ec['set'](_0x461a86,_0x43a087),_0x461a86;})['sort'](b)['sort'](function(_0x2d5495){return function(_0x98b4d0,_0x4f5dae){const _0x134116=_0x2d5495['get'](_0x98b4d0),_0x5a8297=_0x2d5495['get'](_0x4f5dae);return _0x134116&&!_0x5a8297?-0x1:_0x5a8297&&!_0x134116?0x1:_0x134116||_0x5a8297?_0x134116['title']&&!_0x5a8297['title']?-0x1:!_0x134116['title']&&_0x5a8297['title']?0x1:0x0:0x0;};}(_0x2700ec));return this['items']['clear'](),this['items']['addMany'](_0x2db7c8),{'resultsCount':_0x2700ec['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0xb162a8=this['items']['map'](_0x55253d=>_0x55253d)['sort'](b);return _0xb162a8['forEach'](_0x120fee=>{_0x120fee['isVisible']=!0x0,_0x120fee['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0xb162a8),{'resultsCount':_0xb162a8['length'],'totalItemsCount':_0xb162a8['length']};}}function b(_0x24a937,_0x43bc6e){return _0x24a937['originalIndex']-_0x43bc6e['originalIndex'];}class L extends _0x33bcc2{['originalIndex'];['buttonView'];constructor(_0x4c8657,_0x56aaa6){super(_0x4c8657),this['originalIndex']=_0x56aaa6,this['buttonView']=null;}}class k extends _0x254f5f{['templateDefinition'];['textPartView'];constructor(_0x487822,_0x3a0321){super(_0x487822),this['templateDefinition']=_0x3a0321,this['textPartView']=null;const {icon:_0x413eb6=_0x43a0a2}=_0x3a0321;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x413eb6}),this['iconView']['isColorInherited']=!0x1;}['render'](){super['render'](),this['textPartView']=new T(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'](_0x27384e){const {title:_0x1e4e62,description:_0x3ed352}=this['templateDefinition'],_0x49a808=!!_0x1e4e62['match'](_0x27384e),_0x56f5b5=!(!_0x3ed352||!_0x3ed352['match'](_0x27384e));return _0x49a808||_0x56f5b5?{'title':_0x49a808,'description':_0x56f5b5}:null;}['highlightText'](_0x51d8d6){this['textPartView']['highlightText'](_0x51d8d6);}}class T extends _0x455c3a{constructor(_0x106508,_0x365adf,_0xa8b7da){super(_0x106508),this['title']=_0x365adf['title'],this['description']=_0x365adf['description'],this['titleView']=new _0xae4cef(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0xa8b7da}});const _0x43a877=[this['titleView']];this['description']&&(this['descriptionView']=new _0xae4cef(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x43a877['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x43a877});}['highlightText'](_0xe168a5){this['titleView']['highlightText'](_0xe168a5),this['description']&&this['descriptionView']['highlightText'](_0xe168a5);}}function v(_0x2e3521,_0x5e24af,..._0x64e417){const t=_0x2e3521['t'];switch(_0x5e24af){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x64e417);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',..._0x64e417);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x5e24af;}}class K extends _0x26e47f{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3c05d1}=this,_0x2bb0a7=_0x3c05d1['config']['get']('template.definitions')||[];_0x3c05d1['ui']['componentFactory']['add']('insertTemplate',_0x15ec16=>{const _0x5c3484=_0x5a4de0(_0x15ec16),_0x425aaa=this['_createTemplateListView'](_0x15ec16,_0x2bb0a7),_0x1da284=new _0x4db44c(_0x15ec16,{'filteredView':_0x425aaa,'queryView':{'label':v(_0x15ec16,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x21275d=>v(_0x15ec16,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x21275d),'secondary':v(_0x15ec16,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':v(_0x15ec16,'No\x20templates\x20available.')}}}}),_0x17e976=_0x3c05d1['commands']['get']('insertTemplate');return _0x1da284['on']('search',(_0x4c7806,_0x58283e)=>{_0x58283e['query']&&_0x58283e['query']['length']&&_0x3c05d1['ui']['ariaLiveAnnouncer']['announce'](v(_0x15ec16,'%0\x20templates\x20found',_0x58283e['resultsCount']));}),_0x5c3484['bind']('isEnabled')['to'](_0x17e976),_0x5c3484['panelView']['children']['add'](_0x1da284),_0x5c3484['buttonView']['set']({'label':v(_0x15ec16,'Insert\x20template'),'icon':_0x4fc0ef,'tooltip':!0x0}),_0x5c3484['on']('change:isOpen',(_0x5d488e,_0x3e357e,_0x941ee7)=>{_0x941ee7||_0x1da284['reset']();}),_0x5c3484;}),_0x3c05d1['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x5ef929=>{const _0x398ab7=_0x3c05d1['commands']['get']('insertTemplate'),_0x1465c4=new _0x31e377(_0x5ef929);_0x1465c4['buttonView']['set']({'label':v(_0x5ef929,'Template'),'icon':_0x4fc0ef});const _0x5a2ebe=new _0x1583eb(_0x5ef929);if(!_0x2bb0a7||!_0x2bb0a7['length']){const _0x933406=new _0x2764be(_0x5ef929,_0x1465c4),_0x31f282=new _0x1d5a7d(_0x5ef929);_0x31f282['set']({'label':v(_0x5ef929,'No\x20templates\x20available.')}),_0x31f282['delegate']('execute')['to'](_0x1465c4),_0x31f282['on']('execute',()=>{_0x3c05d1['editing']['view']['focus']();}),_0x933406['children']['add'](_0x31f282),_0x5a2ebe['items']['add'](_0x933406);}for(const _0x5f0f70 of _0x2bb0a7){const _0x119d1b=new _0x2764be(_0x5ef929,_0x1465c4),_0x9fb2fb=new _0x1d5a7d(_0x5ef929);_0x9fb2fb['set']({'class':'ck-template-button','label':_0x5f0f70['title'],'icon':_0x5f0f70['icon']||_0x43a0a2}),_0x9fb2fb['delegate']('execute')['to'](_0x1465c4),_0x9fb2fb['on']('execute',()=>{_0x3c05d1['execute']('insertTemplate',_0x5f0f70['data']),_0x3c05d1['editing']['view']['focus']();}),_0x119d1b['children']['add'](_0x9fb2fb),_0x5a2ebe['items']['add'](_0x119d1b);}return _0x1465c4['panelView']['children']['add'](_0x5a2ebe),_0x1465c4['bind']('isEnabled')['to'](_0x398ab7,'isEnabled'),_0x1465c4;});}['afterInit'](){!async function(_0x2f298d){const _0x534291=_0x394cc1([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]),_0x423d81=0x6b0f5e6f,_0x9958d3=0x6b08d79f^_0x423d81,_0xb9ce38=window[_0x394cc1([0x44,0x61,0x74,0x65])][_0x394cc1([0x6e,0x6f,0x77])](),_0x126bc5=_0x2f298d[_0x394cc1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ce349=new window[(_0x394cc1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bfad9=>{_0x126bc5[_0x394cc1([0x6f,0x6e,0x63,0x65])](_0x394cc1([0x72,0x65,0x61,0x64,0x79]),_0x2bfad9);}),_0x21428b={[_0x394cc1([0x6b,0x74,0x79])]:_0x394cc1([0x45,0x43]),[_0x394cc1([0x75,0x73,0x65])]:_0x394cc1([0x73,0x69,0x67]),[_0x394cc1([0x63,0x72,0x76])]:_0x394cc1([0x50,0x2d,0x32,0x35,0x36]),[_0x394cc1([0x78])]:_0x394cc1([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]),[_0x394cc1([0x79])]:_0x394cc1([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]),[_0x394cc1([0x61,0x6c,0x67])]:_0x394cc1([0x45,0x53,0x32,0x35,0x36])},_0x447abe=_0x126bc5[_0x394cc1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x394cc1([0x67,0x65,0x74])](_0x394cc1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54781a(){let _0x172ebc,_0x250277=null,_0x2165d2=null;try{if(_0x447abe==_0x394cc1([0x47,0x50,0x4c]))return _0x394cc1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x172ebc=_0x3fb8d6(),!_0x172ebc)return _0x394cc1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x172ebc[_0x394cc1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2165d2=_0x152712(_0x172ebc[_0x394cc1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x172ebc[_0x394cc1([0x6a,0x74,0x69])])),await _0x34a657()?_0x36f343()?_0xd18d7c()?_0x394cc1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39c5d6()?(_0x172ebc[_0x394cc1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x394cc1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x250277=_0x5db484(_0x394cc1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4555bc()):_0x394cc1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x394cc1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x394cc1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x394cc1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd18d7c(){const _0x4b88eb=[_0x394cc1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x394cc1([0x74,0x72,0x69,0x61,0x6c])][_0x394cc1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x172ebc[_0x394cc1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb9ce38/0x3e8:0xe10*_0x9958d3;return _0x172ebc[_0x394cc1([0x65,0x78,0x70])]<_0x4b88eb;}function _0x36f343(){const _0x5610b7=_0x172ebc[_0x394cc1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5610b7&&(!!_0x5610b7[_0x394cc1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x394cc1([0x2a]))||(!!_0x5610b7[_0x394cc1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x394cc1([0x54,0x50,0x4c]))||(!!_0x5610b7[_0x394cc1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x394cc1([0x50,0x50]))||(!(!_0x5610b7[_0x394cc1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x394cc1([0x44,0x52,0x55,0x50]))||!_0xee8db9())||!(!_0x5610b7[_0x394cc1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x394cc1([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x3e4dc2())))));}function _0x39c5d6(){const _0x339282=_0x172ebc[_0x394cc1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x339282||0x0==_0x339282[_0x394cc1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x39444b}=new URL(window[_0x394cc1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x339282[_0x394cc1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39444b))return!0x0;const _0x2fb459=_0x39444b[_0x394cc1([0x73,0x70,0x6c,0x69,0x74])](_0x394cc1([0x2e]));return _0x339282[_0x394cc1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c024f=>_0x5c024f[_0x394cc1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x394cc1([0x2a])))[_0x394cc1([0x6d,0x61,0x70])](_0x5e0274=>_0x5e0274[_0x394cc1([0x73,0x70,0x6c,0x69,0x74])](_0x394cc1([0x2e])))[_0x394cc1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c9a8f=>_0x5c9a8f[_0x394cc1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2fb459[_0x394cc1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x394cc1([0x6d,0x61,0x70])](_0x153299=>Array(_0x2fb459[_0x394cc1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x153299[_0x394cc1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x394cc1([0x66,0x69,0x6c,0x6c])](_0x153299[0x0]===_0x394cc1([0x2a])?_0x394cc1([0x2a]):'')[_0x394cc1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x153299))[_0x394cc1([0x73,0x6f,0x6d,0x65])](_0x255ddb=>_0x2fb459[_0x394cc1([0x65,0x76,0x65,0x72,0x79])]((_0x8917e8,_0x2411e6)=>_0x255ddb[_0x2411e6]===_0x8917e8||_0x255ddb[_0x2411e6]===_0x394cc1([0x2a])));}function _0x4555bc(){return _0x250277&&_0x2165d2?new window[(_0x394cc1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c4d3e,_0x5bbb8b)=>{_0x250277[_0x394cc1([0x74,0x68,0x65,0x6e])](_0x3c4d3e,_0x5bbb8b),_0x2165d2[_0x394cc1([0x74,0x68,0x65,0x6e])](_0x4195e2=>{_0x4195e2!=_0x394cc1([0x56,0x61,0x6c,0x69,0x64])&&_0x3c4d3e(_0x4195e2);},_0x5bbb8b);}):_0x250277||_0x2165d2||_0x394cc1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x152712(_0x274818,_0x200229){return new window[(_0x394cc1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ecb8d=>{if(_0x56ac60())return _0x3ecb8d(_0x394cc1([0x56,0x61,0x6c,0x69,0x64]));_0x3ff003(),_0x126bc5[_0x394cc1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x394cc1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56c31e=!0x1;const _0x188c93=_0x1f0f57();function _0x510c38(_0x4b39ea){return!!_0x4b39ea&&(typeof _0x4b39ea===_0x394cc1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b39ea===_0x394cc1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b39ea[_0x394cc1([0x74,0x68,0x65,0x6e])]===_0x394cc1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b39ea[_0x394cc1([0x63,0x61,0x74,0x63,0x68])]===_0x394cc1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ab00b(_0x44e7a){_0x43ff00(_0x44e7a)[_0x394cc1([0x74,0x68,0x65,0x6e])](_0x508efe=>{if(!_0x508efe||_0x508efe[_0x394cc1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x394cc1([0x6f,0x6b]))return _0x394cc1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x23082d(_0x2eacd8(_0x188c93+_0x200229))!=_0x508efe[_0x394cc1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x394cc1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x394cc1([0x56,0x61,0x6c,0x69,0x64]);})[_0x394cc1([0x74,0x68,0x65,0x6e])](_0x465862=>(_0x850758(),_0x465862),()=>{const _0x2a69dd=_0x566dbf();return null==_0x2a69dd?(_0x850758(),_0x394cc1([0x56,0x61,0x6c,0x69,0x64])):_0x394cc1(_0xb9ce38-_0x2a69dd>(0x4f03da6f^_0x423d81)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x394cc1([0x74,0x68,0x65,0x6e])](_0x3ecb8d)[_0x394cc1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ecb8d(_0x394cc1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x108a14=0x6b39b0ef^_0x423d81;function _0x850758(){const _0x182c4d=_0x394cc1([0x6c,0x6c,0x63,0x74,0x2d])+_0x23082d(_0x2eacd8(_0x274818)),_0x3eb111=_0x4d0710(_0x23082d(window[_0x394cc1([0x4d,0x61,0x74,0x68])][_0x394cc1([0x63,0x65,0x69,0x6c])](_0xb9ce38/_0x108a14)));window[_0x394cc1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x394cc1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x182c4d,_0x3eb111);}function _0x566dbf(){const _0x15a27a=_0x394cc1([0x6c,0x6c,0x63,0x74,0x2d])+_0x23082d(_0x2eacd8(_0x274818)),_0x114946=window[_0x394cc1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x394cc1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15a27a);return _0x114946?window[_0x394cc1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d0710(_0x114946),0x10)*_0x108a14:null;}function _0x43ff00(_0x1b9817){return new window[(_0x394cc1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f3e3a,_0x357186)=>{_0x1b9817[_0x394cc1([0x74,0x68,0x65,0x6e])](_0x1f3e3a,_0x357186),window[_0x394cc1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x357186,0x6b0e8aaf^_0x423d81);});}}_0x126bc5[_0x394cc1([0x6f,0x6e])](_0x394cc1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x25ad1f,_0x14c0e5)=>{if(_0x14c0e5[0x0]!=_0x274818)return _0x3ecb8d(_0x394cc1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14c0e5[0x1]={..._0x14c0e5[0x1],[_0x394cc1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x188c93};},{[_0x394cc1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x394cc1([0x68,0x69,0x67,0x68])}),_0x126bc5[_0x394cc1([0x6f,0x6e])](_0x394cc1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45860c=>{_0x510c38(_0x45860c[_0x394cc1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56c31e=!0x0,_0x3ab00b(_0x45860c[_0x394cc1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x394cc1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x394cc1([0x6c,0x6f,0x77])}),_0x4ce349[_0x394cc1([0x74,0x68,0x65,0x6e])](()=>{_0x56c31e||_0x3ecb8d(_0x394cc1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x56ac60(){return _0x126bc5[_0x394cc1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x394cc1([0x76,0x69,0x65,0x77])][_0x394cc1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x394cc1([0x61,0x75,0x74,0x6f]);}function _0x3ff003(){_0x126bc5[_0x394cc1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x394cc1([0x76,0x69,0x65,0x77])][_0x394cc1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x394cc1([0x61,0x75,0x74,0x6f]);}}function _0x5db484(_0x51c42e){const _0x4f4f64=[new window[(_0x394cc1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x135995=>setTimeout(_0x135995,0x6b0660a3^_0x423d81)),_0x4ce349[_0x394cc1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x394cc1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x235eb3=>{let _0x1995a4=0x0;_0x126bc5[_0x394cc1([0x6d,0x6f,0x64,0x65,0x6c])][_0x394cc1([0x6f,0x6e])](_0x394cc1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2868f7,_0xf31c6)=>{_0xf31c6[0x0][_0x394cc1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1995a4++,_0x1995a4==(0x6b0f5b87^_0x423d81)&&(_0x235eb3(),_0x2868f7[_0x394cc1([0x6f,0x66,0x66])]());});}))];return window[_0x394cc1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x394cc1([0x72,0x61,0x63,0x65])](_0x4f4f64)[_0x394cc1([0x74,0x68,0x65,0x6e])](()=>_0x51c42e);}async function _0x48aab7(){await _0x4ce349,_0x126bc5[_0x394cc1([0x6d,0x6f,0x64,0x65,0x6c])][_0x394cc1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1d13d3,_0x126bc5[_0x394cc1([0x6d,0x6f,0x64,0x65,0x6c])][_0x394cc1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1d13d3,_0x126bc5[_0x394cc1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x394cc1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xee8db9(){return window[_0x394cc1([0x44,0x72,0x75,0x70,0x61,0x6c])];}function _0x3e4dc2(){return window[_0x394cc1([0x67,0x6c,0x6f,0x62])]&&window[_0x394cc1([0x67,0x6c,0x6f,0x62])][_0x394cc1([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x32eef5(_0x5bc9ae){const _0x588bc1=_0x311c5f();_0x126bc5[_0x588bc1]=_0x394cc1([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5bc9ae,_0x5bc9ae!=_0x394cc1([0x56,0x61,0x6c,0x69,0x64])&&_0x48aab7();}function _0x311c5f(){const _0x2c4420=window[_0x394cc1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x394cc1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x394cc1([0x6e,0x6f,0x77])]())[_0x394cc1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x394cc1([0x2e]),'');let _0x2dd334=_0x394cc1([0x67]);for(let _0xa1f72c=0x0;_0xa1f72c<_0x2c4420[_0x394cc1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa1f72c+=0x2){let _0x1aa6bc=window[_0x394cc1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c4420[_0x394cc1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa1f72c,_0xa1f72c+0x2));_0x1aa6bc>=_0x534291[_0x394cc1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1aa6bc-=_0x534291[_0x394cc1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2dd334+=_0x534291[_0x1aa6bc];}return _0x2dd334;}function _0x3fb8d6(){const _0x10908e=_0x447abe[_0x394cc1([0x73,0x70,0x6c,0x69,0x74])](_0x394cc1([0x2e]));if(0x3!=_0x10908e[_0x394cc1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3b2b48(_0x10908e[0x1]);function _0x3b2b48(_0x335516){const _0x5dabfa=_0x3ab727(_0x335516);return _0x5dabfa&&_0x2e5daf()?_0x5dabfa:null;function _0x2e5daf(){const _0x4a2167=_0x5dabfa[_0x394cc1([0x6a,0x74,0x69])],_0x3652a2=window[_0x394cc1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a2167[_0x394cc1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a2167[_0x394cc1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2fe1f8={..._0x5dabfa,[_0x394cc1([0x6a,0x74,0x69])]:_0x4a2167[_0x394cc1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a2167[_0x394cc1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2fe1f8[_0x394cc1([0x76,0x63])],_0x2eacd8(_0x2fe1f8)==_0x3652a2;}}}async function _0x34a657(){let _0x4769da=!0x0;try{const _0x2f1f22=_0x447abe[_0x394cc1([0x73,0x70,0x6c,0x69,0x74])](_0x394cc1([0x2e])),[_0x264793,_0x724083,_0x2c3323]=_0x2f1f22;return _0x242cce(_0x264793),await _0x4f0a50(_0x264793,_0x724083,_0x2c3323),_0x4769da;}catch{return!0x1;}function _0x242cce(_0x4eafc0){const _0x5177d1=_0x3ab727(_0x4eafc0);_0x5177d1&&_0x5177d1[_0x394cc1([0x61,0x6c,0x67])]==_0x394cc1([0x45,0x53,0x32,0x35,0x36])||(_0x4769da=!0x1);}async function _0x4f0a50(_0x1c83a0,_0x516bf6,_0x3e0997){const _0x3726d0=window[_0x394cc1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x394cc1([0x66,0x72,0x6f,0x6d])](_0x99758(_0x3e0997),_0x572710=>_0x572710[_0x394cc1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1fe87f=new window[(_0x394cc1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x394cc1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c83a0+_0x394cc1([0x2e])+_0x516bf6),_0x2a539b=window[_0x394cc1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x394cc1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a539b)return;const _0x5d182f=await _0x2a539b[_0x394cc1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x394cc1([0x6a,0x77,0x6b]),_0x21428b,{[_0x394cc1([0x6e,0x61,0x6d,0x65])]:_0x394cc1([0x45,0x43,0x44,0x53,0x41]),[_0x394cc1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x394cc1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x394cc1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a539b[_0x394cc1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x394cc1([0x6e,0x61,0x6d,0x65])]:_0x394cc1([0x45,0x43,0x44,0x53,0x41]),[_0x394cc1([0x68,0x61,0x73,0x68])]:{[_0x394cc1([0x6e,0x61,0x6d,0x65])]:_0x394cc1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d182f,_0x3726d0,_0x1fe87f)||(_0x4769da=!0x1);}}function _0x3ab727(_0x2b88e7){return _0x2b88e7[_0x394cc1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x394cc1([0x65,0x79]))?JSON[_0x394cc1([0x70,0x61,0x72,0x73,0x65])](_0x99758(_0x2b88e7)):null;}function _0x99758(_0x419b17){return window[_0x394cc1([0x61,0x74,0x6f,0x62])](_0x419b17[_0x394cc1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x394cc1([0x2b]))[_0x394cc1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x394cc1([0x2f])));}function _0x2eacd8(_0x13537c){let _0x30dc5f=0x1505;function _0x9bd4cc(_0x52f441){for(let _0x38e987=0x0;_0x38e987<_0x52f441[_0x394cc1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38e987++){const _0x3a59a1=_0x52f441[_0x394cc1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x38e987);_0x30dc5f=(_0x30dc5f<<0x5)+_0x30dc5f+_0x3a59a1,_0x30dc5f&=_0x30dc5f;}}function _0x183696(_0x41b24f){Array[_0x394cc1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41b24f)?_0x41b24f[_0x394cc1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x183696):_0x41b24f&&typeof _0x41b24f==_0x394cc1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x394cc1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41b24f)[_0x394cc1([0x73,0x6f,0x72,0x74])]()[_0x394cc1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x234ecb,_0x43f128])=>{_0x9bd4cc(_0x234ecb),_0x183696(_0x43f128);}):_0x9bd4cc(window[_0x394cc1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41b24f));}return _0x183696(_0x13537c),_0x30dc5f>>>0x0;}function _0x23082d(_0x480dc5){return _0x480dc5[_0x394cc1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x394cc1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x394cc1([0x30]));}function _0x4d0710(_0x38dd78){return _0x38dd78[_0x394cc1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x394cc1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x394cc1([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d13d3(){}function _0x394cc1(_0x167ecd){return _0x167ecd['map'](_0x2b782b=>String['fromCharCode'](_0x2b782b))['join']('');}_0x32eef5(await _0x54781a());}(this);}['_createTemplateListView'](_0x2b4e2d,_0x267076){const {editor:_0x42a775}=this,_0x2a5878=new x(_0x2b4e2d);return _0x2a5878['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x2a5878['items']['addMany'](_0x267076['map']((_0x3670bb,_0x15b692)=>{const _0x569b99=new L(_0x2b4e2d,_0x15b692),_0x4a2b29=new k(_0x2b4e2d,_0x3670bb);return _0x569b99['buttonView']=_0x4a2b29,_0x569b99['children']['add'](_0x4a2b29),_0x569b99['buttonView']['on']('execute',_0x1622e0=>{_0x42a775['execute']('insertTemplate',_0x1622e0['source']['templateDefinition']['data']),_0x42a775['editing']['view']['focus']();}),_0x569b99;})),_0x2a5878;}}class I extends _0x26e47f{static get['requires'](){return[y,K];}static get['pluginName'](){return'Template';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{I as Template,g as TemplateCommand,y as TemplateEditing,K as TemplateUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-template",
3
- "version": "48.1.0-alpha.7",
3
+ "version": "48.1.0-alpha.8",
4
4
  "description": "Template feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,10 +31,10 @@
31
31
  "./package.json": "./package.json"
32
32
  },
33
33
  "dependencies": {
34
- "@ckeditor/ckeditor5-core": "48.1.0-alpha.7",
35
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.7",
36
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.7",
37
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.7"
34
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.8",
35
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.8",
36
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.8",
37
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.8"
38
38
  },
39
39
  "files": [
40
40
  "dist",