@ckeditor/ckeditor5-template 48.1.0-alpha.4 → 48.1.0-alpha.5
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.
- package/dist/index.js +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x1654a3,Plugin as _0x35a3b6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconTemplateGeneric as _0xf16123,IconTemplate as _0x1ee5be}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ListView as _0x43c336,ListItemView as _0x3ca7b2,ButtonView as _0x25ab85,View as _0x14dae7,HighlightedTextView as _0x1058f7,createDropdown as _0x5d7330,SearchTextView as _0x2f0d49,MenuBarMenuView as _0x29dc17,MenuBarMenuListView as _0x2baecc,MenuBarMenuListItemView as _0x4bcef1,MenuBarMenuListItemButtonView as _0x23ef86}from'@ckeditor/ckeditor5-ui/dist/index.js';import{uid as _0x547603}from'@ckeditor/ckeditor5-utils/dist/index.js';class g extends _0x1654a3{['execute'](_0xff4a50){const {model:_0x1730e7}=this['editor'];let _0x120503;switch(typeof _0xff4a50){case'string':_0x120503=_0xff4a50;break;case'function':_0x120503=_0xff4a50();}'string'==typeof _0x120503&&_0x1730e7['change'](()=>{const _0x5c3f89=this['editor']['data']['htmlProcessor']['toView'](_0x120503),_0x10bfa4=this['editor']['data']['toModel'](_0x5c3f89);_0x1730e7['insertContent'](_0x10bfa4);});}}class y extends _0x35a3b6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xebecaa}=this;_0xebecaa['commands']['add']('insertTemplate',new g(_0xebecaa)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4e418b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x96f7de;for(const _0x20782c in _0x4e418b){const _0x524134=_0x20782c,_0x4181c3=_0x4e418b[_0x524134];if('templateLicenseKeyValid'==_0x4181c3||'templateLicenseKeyInvalid'==_0x4181c3||'templateLicenseKeyExpired'==_0x4181c3||'templateLicenseKeyDomainLimit'==_0x4181c3||'templateLicenseKeyNotAllowed'==_0x4181c3||'templateLicenseKeyEvaluationLimit'==_0x4181c3||'templateLicenseKeyUsageLimit'==_0x4181c3){delete _0x4e418b[_0x524134],_0x96f7de=_0x4181c3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x96f7de&&_0x4e418b['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x96f7de&&_0x4e418b['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x96f7de&&_0x4e418b['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x96f7de&&_0x4e418b['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x96f7de&&_0x4e418b['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x96f7de&&_0x4e418b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class x extends _0x43c336{['filter'](_0x17f8cf){if(!_0x17f8cf)return this['_resetFiltering']();const _0x4372d9=new Map(),_0x3abffa=this['items']['map'](_0x4e9d79=>{const _0x48a4bc=_0x4e9d79['buttonView']['isMatching'](_0x17f8cf);return _0x4e9d79['isVisible']=!!_0x48a4bc,_0x4e9d79['buttonView']['highlightText'](_0x48a4bc?_0x17f8cf:null),_0x48a4bc&&_0x4372d9['set'](_0x4e9d79,_0x48a4bc),_0x4e9d79;})['sort'](b)['sort'](function(_0x25adf3){return function(_0x406423,_0x2a7018){const _0x1312f9=_0x25adf3['get'](_0x406423),_0x10a9d4=_0x25adf3['get'](_0x2a7018);return _0x1312f9&&!_0x10a9d4?-0x1:_0x10a9d4&&!_0x1312f9?0x1:_0x1312f9||_0x10a9d4?_0x1312f9['title']&&!_0x10a9d4['title']?-0x1:!_0x1312f9['title']&&_0x10a9d4['title']?0x1:0x0:0x0;};}(_0x4372d9));return this['items']['clear'](),this['items']['addMany'](_0x3abffa),{'resultsCount':_0x4372d9['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x56517d=this['items']['map'](_0x248530=>_0x248530)['sort'](b);return _0x56517d['forEach'](_0x53680b=>{_0x53680b['isVisible']=!0x0,_0x53680b['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x56517d),{'resultsCount':_0x56517d['length'],'totalItemsCount':_0x56517d['length']};}}function b(_0x7a9334,_0x9deaff){return _0x7a9334['originalIndex']-_0x9deaff['originalIndex'];}class L extends _0x3ca7b2{['originalIndex'];['buttonView'];constructor(_0x305bc2,_0x4d954a){super(_0x305bc2),this['originalIndex']=_0x4d954a,this['buttonView']=null;}}class k extends _0x25ab85{['templateDefinition'];['textPartView'];constructor(_0x2d8fee,_0x8374c1){super(_0x2d8fee),this['templateDefinition']=_0x8374c1,this['textPartView']=null;const {icon:_0x5ee98c=_0xf16123}=_0x8374c1;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x5ee98c}),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'](_0x1e5085){const {title:_0x50682d,description:_0x4c35eb}=this['templateDefinition'],_0x296062=!!_0x50682d['match'](_0x1e5085),_0x343fb1=!(!_0x4c35eb||!_0x4c35eb['match'](_0x1e5085));return _0x296062||_0x343fb1?{'title':_0x296062,'description':_0x343fb1}:null;}['highlightText'](_0x28d8d7){this['textPartView']['highlightText'](_0x28d8d7);}}class T extends _0x14dae7{constructor(_0x520a4c,_0x95627,_0x405c59){super(_0x520a4c),this['title']=_0x95627['title'],this['description']=_0x95627['description'],this['titleView']=new _0x1058f7(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x405c59}});const _0x2948a5=[this['titleView']];this['description']&&(this['descriptionView']=new _0x1058f7(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x2948a5['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x2948a5});}['highlightText'](_0x45d5c8){this['titleView']['highlightText'](_0x45d5c8),this['description']&&this['descriptionView']['highlightText'](_0x45d5c8);}}function v(_0x2c0b48,_0x370956,..._0x1b7fa7){const t=_0x2c0b48['t'];switch(_0x370956){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x1b7fa7);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',..._0x1b7fa7);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x370956;}}class K extends _0x35a3b6{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4804dd}=this,_0x3bda5a=_0x4804dd['config']['get']('template.definitions')||[];_0x4804dd['ui']['componentFactory']['add']('insertTemplate',_0x493fd0=>{const _0x4aea1e=_0x5d7330(_0x493fd0),_0x112aca=this['_createTemplateListView'](_0x493fd0,_0x3bda5a),_0x25889d=new _0x2f0d49(_0x493fd0,{'filteredView':_0x112aca,'queryView':{'label':v(_0x493fd0,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x2ff161=>v(_0x493fd0,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x2ff161),'secondary':v(_0x493fd0,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':v(_0x493fd0,'No\x20templates\x20available.')}}}}),_0x24cea2=_0x4804dd['commands']['get']('insertTemplate');return _0x25889d['on']('search',(_0x25e9c6,_0x36a650)=>{_0x36a650['query']&&_0x36a650['query']['length']&&_0x4804dd['ui']['ariaLiveAnnouncer']['announce'](v(_0x493fd0,'%0\x20templates\x20found',_0x36a650['resultsCount']));}),_0x4aea1e['bind']('isEnabled')['to'](_0x24cea2),_0x4aea1e['panelView']['children']['add'](_0x25889d),_0x4aea1e['buttonView']['set']({'label':v(_0x493fd0,'Insert\x20template'),'icon':_0x1ee5be,'tooltip':!0x0}),_0x4aea1e['on']('change:isOpen',(_0x2b027e,_0x1f5112,_0x124a43)=>{_0x124a43||_0x25889d['reset']();}),_0x4aea1e;}),_0x4804dd['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x1f7feb=>{const _0x4e8532=_0x4804dd['commands']['get']('insertTemplate'),_0x49ea63=new _0x29dc17(_0x1f7feb);_0x49ea63['buttonView']['set']({'label':v(_0x1f7feb,'Template'),'icon':_0x1ee5be});const _0x3c9f6e=new _0x2baecc(_0x1f7feb);if(!_0x3bda5a||!_0x3bda5a['length']){const _0x101fff=new _0x4bcef1(_0x1f7feb,_0x49ea63),_0xb892d7=new _0x23ef86(_0x1f7feb);_0xb892d7['set']({'label':v(_0x1f7feb,'No\x20templates\x20available.')}),_0xb892d7['delegate']('execute')['to'](_0x49ea63),_0xb892d7['on']('execute',()=>{_0x4804dd['editing']['view']['focus']();}),_0x101fff['children']['add'](_0xb892d7),_0x3c9f6e['items']['add'](_0x101fff);}for(const _0x852df8 of _0x3bda5a){const _0x246e29=new _0x4bcef1(_0x1f7feb,_0x49ea63),_0x693ab1=new _0x23ef86(_0x1f7feb);_0x693ab1['set']({'class':'ck-template-button','label':_0x852df8['title'],'icon':_0x852df8['icon']||_0xf16123}),_0x693ab1['delegate']('execute')['to'](_0x49ea63),_0x693ab1['on']('execute',()=>{_0x4804dd['execute']('insertTemplate',_0x852df8['data']),_0x4804dd['editing']['view']['focus']();}),_0x246e29['children']['add'](_0x693ab1),_0x3c9f6e['items']['add'](_0x246e29);}return _0x49ea63['panelView']['children']['add'](_0x3c9f6e),_0x49ea63['bind']('isEnabled')['to'](_0x4e8532,'isEnabled'),_0x49ea63;});}['afterInit'](){!async function(_0x18ba95){const _0x2fa65d=_0xcfcc36([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]),_0x5a6b34=0x6b0f5e6f,_0x4e9e0f=0x6b08d7c7^_0x5a6b34,_0x1ad94f=window[_0xcfcc36([0x44,0x61,0x74,0x65])][_0xcfcc36([0x6e,0x6f,0x77])](),_0x18a511=_0x18ba95[_0xcfcc36([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15fca2=new window[(_0xcfcc36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42a00a=>{_0x18a511[_0xcfcc36([0x6f,0x6e,0x63,0x65])](_0xcfcc36([0x72,0x65,0x61,0x64,0x79]),_0x42a00a);}),_0x141861={[_0xcfcc36([0x6b,0x74,0x79])]:_0xcfcc36([0x45,0x43]),[_0xcfcc36([0x75,0x73,0x65])]:_0xcfcc36([0x73,0x69,0x67]),[_0xcfcc36([0x63,0x72,0x76])]:_0xcfcc36([0x50,0x2d,0x32,0x35,0x36]),[_0xcfcc36([0x78])]:_0xcfcc36([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]),[_0xcfcc36([0x79])]:_0xcfcc36([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]),[_0xcfcc36([0x61,0x6c,0x67])]:_0xcfcc36([0x45,0x53,0x32,0x35,0x36])},_0x31fb85=_0x18a511[_0xcfcc36([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xcfcc36([0x67,0x65,0x74])](_0xcfcc36([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5efeff(){let _0x1b0d1d,_0x389a73=null,_0x12abff=null;try{if(_0x31fb85==_0xcfcc36([0x47,0x50,0x4c]))return _0xcfcc36([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b0d1d=_0x3fbb4a(),!_0x1b0d1d)return _0xcfcc36([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b0d1d[_0xcfcc36([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12abff=_0x3a1442(_0x1b0d1d[_0xcfcc36([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b0d1d[_0xcfcc36([0x6a,0x74,0x69])])),await _0x114c2f()?_0x3d2db7()?_0x5e49c9()?_0xcfcc36([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa4a582()?(_0x1b0d1d[_0xcfcc36([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xcfcc36([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x389a73=_0x3ff4c5(_0xcfcc36([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x488c79()):_0xcfcc36([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xcfcc36([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xcfcc36([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xcfcc36([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e49c9(){const _0xb1e7e6=[_0xcfcc36([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xcfcc36([0x74,0x72,0x69,0x61,0x6c])][_0xcfcc36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b0d1d[_0xcfcc36([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ad94f/0x3e8:0xe10*_0x4e9e0f;return _0x1b0d1d[_0xcfcc36([0x65,0x78,0x70])]<_0xb1e7e6;}function _0x3d2db7(){const _0x808d1d=_0x1b0d1d[_0xcfcc36([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x808d1d&&(!!_0x808d1d[_0xcfcc36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcfcc36([0x2a]))||(!!_0x808d1d[_0xcfcc36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcfcc36([0x54,0x50,0x4c]))||(!!_0x808d1d[_0xcfcc36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcfcc36([0x50,0x50]))||(!(!_0x808d1d[_0xcfcc36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcfcc36([0x44,0x52,0x55,0x50]))||!_0xafa08b())||!(!_0x808d1d[_0xcfcc36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcfcc36([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x382ba2())))));}function _0xa4a582(){const _0x21c532=_0x1b0d1d[_0xcfcc36([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21c532||0x0==_0x21c532[_0xcfcc36([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b8abb}=new URL(window[_0xcfcc36([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x21c532[_0xcfcc36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b8abb))return!0x0;const _0x50c198=_0x5b8abb[_0xcfcc36([0x73,0x70,0x6c,0x69,0x74])](_0xcfcc36([0x2e]));return _0x21c532[_0xcfcc36([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x231575=>_0x231575[_0xcfcc36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcfcc36([0x2a])))[_0xcfcc36([0x6d,0x61,0x70])](_0x95323c=>_0x95323c[_0xcfcc36([0x73,0x70,0x6c,0x69,0x74])](_0xcfcc36([0x2e])))[_0xcfcc36([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2bdee9=>_0x2bdee9[_0xcfcc36([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x50c198[_0xcfcc36([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xcfcc36([0x6d,0x61,0x70])](_0x4a186e=>Array(_0x50c198[_0xcfcc36([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4a186e[_0xcfcc36([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xcfcc36([0x66,0x69,0x6c,0x6c])](_0x4a186e[0x0]===_0xcfcc36([0x2a])?_0xcfcc36([0x2a]):'')[_0xcfcc36([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4a186e))[_0xcfcc36([0x73,0x6f,0x6d,0x65])](_0x30ede8=>_0x50c198[_0xcfcc36([0x65,0x76,0x65,0x72,0x79])]((_0xc58ae7,_0x2c529d)=>_0x30ede8[_0x2c529d]===_0xc58ae7||_0x30ede8[_0x2c529d]===_0xcfcc36([0x2a])));}function _0x488c79(){return _0x389a73&&_0x12abff?new window[(_0xcfcc36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25ac32,_0x3bb760)=>{_0x389a73[_0xcfcc36([0x74,0x68,0x65,0x6e])](_0x25ac32,_0x3bb760),_0x12abff[_0xcfcc36([0x74,0x68,0x65,0x6e])](_0x3cc26d=>{_0x3cc26d!=_0xcfcc36([0x56,0x61,0x6c,0x69,0x64])&&_0x25ac32(_0x3cc26d);},_0x3bb760);}):_0x389a73||_0x12abff||_0xcfcc36([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a1442(_0x219cdb,_0x3af74){return new window[(_0xcfcc36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x852819=>{if(_0x291589())return _0x852819(_0xcfcc36([0x56,0x61,0x6c,0x69,0x64]));_0x15be01(),_0x18a511[_0xcfcc36([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xcfcc36([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd2e55e=!0x1;const _0x2dd85f=_0x547603();function _0x5a0a17(_0x502422){return!!_0x502422&&(typeof _0x502422===_0xcfcc36([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x502422===_0xcfcc36([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x502422[_0xcfcc36([0x74,0x68,0x65,0x6e])]===_0xcfcc36([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x502422[_0xcfcc36([0x63,0x61,0x74,0x63,0x68])]===_0xcfcc36([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x368a08(_0x5a02bb){_0x1975d4(_0x5a02bb)[_0xcfcc36([0x74,0x68,0x65,0x6e])](_0x17d693=>{if(!_0x17d693||_0x17d693[_0xcfcc36([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xcfcc36([0x6f,0x6b]))return _0xcfcc36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb2692b(_0xf70008(_0x2dd85f+_0x3af74))!=_0x17d693[_0xcfcc36([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xcfcc36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xcfcc36([0x56,0x61,0x6c,0x69,0x64]);})[_0xcfcc36([0x74,0x68,0x65,0x6e])](_0x852a22=>(_0x1b8517(),_0x852a22),()=>{const _0x4379b3=_0x463ba9();return null==_0x4379b3?(_0x1b8517(),_0xcfcc36([0x56,0x61,0x6c,0x69,0x64])):_0xcfcc36(_0x1ad94f-_0x4379b3>(0x4f03da6f^_0x5a6b34)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xcfcc36([0x74,0x68,0x65,0x6e])](_0x852819)[_0xcfcc36([0x63,0x61,0x74,0x63,0x68])](()=>{_0x852819(_0xcfcc36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31c631=0x6b39b0ef^_0x5a6b34;function _0x1b8517(){const _0xc22aef=_0xcfcc36([0x6c,0x6c,0x63,0x74,0x2d])+_0xb2692b(_0xf70008(_0x219cdb)),_0x3e685b=_0x11a46a(_0xb2692b(window[_0xcfcc36([0x4d,0x61,0x74,0x68])][_0xcfcc36([0x63,0x65,0x69,0x6c])](_0x1ad94f/_0x31c631)));window[_0xcfcc36([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xcfcc36([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc22aef,_0x3e685b);}function _0x463ba9(){const _0x2a1737=_0xcfcc36([0x6c,0x6c,0x63,0x74,0x2d])+_0xb2692b(_0xf70008(_0x219cdb)),_0x4e900f=window[_0xcfcc36([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xcfcc36([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a1737);return _0x4e900f?window[_0xcfcc36([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11a46a(_0x4e900f),0x10)*_0x31c631:null;}function _0x1975d4(_0x533da8){return new window[(_0xcfcc36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x447371,_0x214491)=>{_0x533da8[_0xcfcc36([0x74,0x68,0x65,0x6e])](_0x447371,_0x214491),window[_0xcfcc36([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x214491,0x6b0e8aaf^_0x5a6b34);});}}_0x18a511[_0xcfcc36([0x6f,0x6e])](_0xcfcc36([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x58714c,_0xac6485)=>{if(_0xac6485[0x0]!=_0x219cdb)return _0x852819(_0xcfcc36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xac6485[0x1]={..._0xac6485[0x1],[_0xcfcc36([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2dd85f};},{[_0xcfcc36([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xcfcc36([0x68,0x69,0x67,0x68])}),_0x18a511[_0xcfcc36([0x6f,0x6e])](_0xcfcc36([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x52318b=>{_0x5a0a17(_0x52318b[_0xcfcc36([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd2e55e=!0x0,_0x368a08(_0x52318b[_0xcfcc36([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xcfcc36([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xcfcc36([0x6c,0x6f,0x77])}),_0x15fca2[_0xcfcc36([0x74,0x68,0x65,0x6e])](()=>{_0xd2e55e||_0x852819(_0xcfcc36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x291589(){return _0x18a511[_0xcfcc36([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xcfcc36([0x76,0x69,0x65,0x77])][_0xcfcc36([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xcfcc36([0x61,0x75,0x74,0x6f]);}function _0x15be01(){_0x18a511[_0xcfcc36([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xcfcc36([0x76,0x69,0x65,0x77])][_0xcfcc36([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xcfcc36([0x61,0x75,0x74,0x6f]);}}function _0x3ff4c5(_0x2a3353){const _0x431aa1=[new window[(_0xcfcc36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c9425=>setTimeout(_0x4c9425,0x6b0660a3^_0x5a6b34)),_0x15fca2[_0xcfcc36([0x74,0x68,0x65,0x6e])](()=>new window[(_0xcfcc36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2598c2=>{let _0x5154d9=0x0;_0x18a511[_0xcfcc36([0x6d,0x6f,0x64,0x65,0x6c])][_0xcfcc36([0x6f,0x6e])](_0xcfcc36([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x39ab28,_0x4020a8)=>{_0x4020a8[0x0][_0xcfcc36([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5154d9++,_0x5154d9==(0x6b0f5b87^_0x5a6b34)&&(_0x2598c2(),_0x39ab28[_0xcfcc36([0x6f,0x66,0x66])]());});}))];return window[_0xcfcc36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xcfcc36([0x72,0x61,0x63,0x65])](_0x431aa1)[_0xcfcc36([0x74,0x68,0x65,0x6e])](()=>_0x2a3353);}async function _0x381006(){await _0x15fca2,_0x18a511[_0xcfcc36([0x6d,0x6f,0x64,0x65,0x6c])][_0xcfcc36([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39c578,_0x18a511[_0xcfcc36([0x6d,0x6f,0x64,0x65,0x6c])][_0xcfcc36([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39c578,_0x18a511[_0xcfcc36([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xcfcc36([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xafa08b(){return window[_0xcfcc36([0x44,0x72,0x75,0x70,0x61,0x6c])];}function _0x382ba2(){return window[_0xcfcc36([0x67,0x6c,0x6f,0x62])]&&window[_0xcfcc36([0x67,0x6c,0x6f,0x62])][_0xcfcc36([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1ce942(_0x6efed2){const _0x2a8ae7=_0x20ac0f();_0x18a511[_0x2a8ae7]=_0xcfcc36([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6efed2,_0x6efed2!=_0xcfcc36([0x56,0x61,0x6c,0x69,0x64])&&_0x381006();}function _0x20ac0f(){const _0x40dfb0=window[_0xcfcc36([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xcfcc36([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xcfcc36([0x6e,0x6f,0x77])]())[_0xcfcc36([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xcfcc36([0x2e]),'');let _0x498574=_0xcfcc36([0x67]);for(let _0x4c3272=0x0;_0x4c3272<_0x40dfb0[_0xcfcc36([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c3272+=0x2){let _0x2ff806=window[_0xcfcc36([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40dfb0[_0xcfcc36([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c3272,_0x4c3272+0x2));_0x2ff806>=_0x2fa65d[_0xcfcc36([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ff806-=_0x2fa65d[_0xcfcc36([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x498574+=_0x2fa65d[_0x2ff806];}return _0x498574;}function _0x3fbb4a(){const _0x1ca604=_0x31fb85[_0xcfcc36([0x73,0x70,0x6c,0x69,0x74])](_0xcfcc36([0x2e]));if(0x3!=_0x1ca604[_0xcfcc36([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x101961(_0x1ca604[0x1]);function _0x101961(_0x2658f9){const _0x337ed2=_0x17d4a6(_0x2658f9);return _0x337ed2&&_0x352dc2()?_0x337ed2:null;function _0x352dc2(){const _0x4dd033=_0x337ed2[_0xcfcc36([0x6a,0x74,0x69])],_0x1ec02d=window[_0xcfcc36([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dd033[_0xcfcc36([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dd033[_0xcfcc36([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3dadd7={..._0x337ed2,[_0xcfcc36([0x6a,0x74,0x69])]:_0x4dd033[_0xcfcc36([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4dd033[_0xcfcc36([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3dadd7[_0xcfcc36([0x76,0x63])],_0xf70008(_0x3dadd7)==_0x1ec02d;}}}async function _0x114c2f(){let _0x277cf9=!0x0;try{const _0x3f2d9b=_0x31fb85[_0xcfcc36([0x73,0x70,0x6c,0x69,0x74])](_0xcfcc36([0x2e])),[_0x2cbc5c,_0x48af34,_0x4177b4]=_0x3f2d9b;return _0x16e0d5(_0x2cbc5c),await _0x20deea(_0x2cbc5c,_0x48af34,_0x4177b4),_0x277cf9;}catch{return!0x1;}function _0x16e0d5(_0x45e7f2){const _0xba693e=_0x17d4a6(_0x45e7f2);_0xba693e&&_0xba693e[_0xcfcc36([0x61,0x6c,0x67])]==_0xcfcc36([0x45,0x53,0x32,0x35,0x36])||(_0x277cf9=!0x1);}async function _0x20deea(_0x45c8da,_0x2f7865,_0x3a84b1){const _0x38edcb=window[_0xcfcc36([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xcfcc36([0x66,0x72,0x6f,0x6d])](_0xc5e74f(_0x3a84b1),_0x3fd46a=>_0x3fd46a[_0xcfcc36([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x23e44a=new window[(_0xcfcc36([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xcfcc36([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45c8da+_0xcfcc36([0x2e])+_0x2f7865),_0x1316a3=window[_0xcfcc36([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xcfcc36([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1316a3)return;const _0x16a415=await _0x1316a3[_0xcfcc36([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xcfcc36([0x6a,0x77,0x6b]),_0x141861,{[_0xcfcc36([0x6e,0x61,0x6d,0x65])]:_0xcfcc36([0x45,0x43,0x44,0x53,0x41]),[_0xcfcc36([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xcfcc36([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xcfcc36([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1316a3[_0xcfcc36([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xcfcc36([0x6e,0x61,0x6d,0x65])]:_0xcfcc36([0x45,0x43,0x44,0x53,0x41]),[_0xcfcc36([0x68,0x61,0x73,0x68])]:{[_0xcfcc36([0x6e,0x61,0x6d,0x65])]:_0xcfcc36([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x16a415,_0x38edcb,_0x23e44a)||(_0x277cf9=!0x1);}}function _0x17d4a6(_0x3ddbc7){return _0x3ddbc7[_0xcfcc36([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xcfcc36([0x65,0x79]))?JSON[_0xcfcc36([0x70,0x61,0x72,0x73,0x65])](_0xc5e74f(_0x3ddbc7)):null;}function _0xc5e74f(_0x365cf9){return window[_0xcfcc36([0x61,0x74,0x6f,0x62])](_0x365cf9[_0xcfcc36([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xcfcc36([0x2b]))[_0xcfcc36([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xcfcc36([0x2f])));}function _0xf70008(_0x59d31e){let _0x3faf62=0x1505;function _0x24c35b(_0x40bce1){for(let _0x5f2de0=0x0;_0x5f2de0<_0x40bce1[_0xcfcc36([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f2de0++){const _0x3765c3=_0x40bce1[_0xcfcc36([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5f2de0);_0x3faf62=(_0x3faf62<<0x5)+_0x3faf62+_0x3765c3,_0x3faf62&=_0x3faf62;}}function _0x505595(_0x184521){Array[_0xcfcc36([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x184521)?_0x184521[_0xcfcc36([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x505595):_0x184521&&typeof _0x184521==_0xcfcc36([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xcfcc36([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x184521)[_0xcfcc36([0x73,0x6f,0x72,0x74])]()[_0xcfcc36([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a5bad,_0x15e8ab])=>{_0x24c35b(_0x4a5bad),_0x505595(_0x15e8ab);}):_0x24c35b(window[_0xcfcc36([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x184521));}return _0x505595(_0x59d31e),_0x3faf62>>>0x0;}function _0xb2692b(_0x2b3ce9){return _0x2b3ce9[_0xcfcc36([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xcfcc36([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xcfcc36([0x30]));}function _0x11a46a(_0x51708c){return _0x51708c[_0xcfcc36([0x73,0x70,0x6c,0x69,0x74])]('')[_0xcfcc36([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xcfcc36([0x6a,0x6f,0x69,0x6e])]('');}function _0x39c578(){}function _0xcfcc36(_0x2653bb){return _0x2653bb['map'](_0x13f0a7=>String['fromCharCode'](_0x13f0a7))['join']('');}_0x1ce942(await _0x5efeff());}(this);}['_createTemplateListView'](_0x59030d,_0x37dbfc){const {editor:_0x4fd35e}=this,_0xeba878=new x(_0x59030d);return _0xeba878['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0xeba878['items']['addMany'](_0x37dbfc['map']((_0x27d3fe,_0x228549)=>{const _0x22d238=new L(_0x59030d,_0x228549),_0x479115=new k(_0x59030d,_0x27d3fe);return _0x22d238['buttonView']=_0x479115,_0x22d238['children']['add'](_0x479115),_0x22d238['buttonView']['on']('execute',_0xec0e4a=>{_0x4fd35e['execute']('insertTemplate',_0xec0e4a['source']['templateDefinition']['data']),_0x4fd35e['editing']['view']['focus']();}),_0x22d238;})),_0xeba878;}}class I extends _0x35a3b6{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 _0x43415b,Plugin as _0x45f770}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconTemplateGeneric as _0x28fe45,IconTemplate as _0x3bd87a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ListView as _0x1446eb,ListItemView as _0x590b0b,ButtonView as _0x5d77fb,View as _0x38d097,HighlightedTextView as _0x233d49,createDropdown as _0x414be6,SearchTextView as _0x15c70b,MenuBarMenuView as _0x32e09e,MenuBarMenuListView as _0x336304,MenuBarMenuListItemView as _0x9a5137,MenuBarMenuListItemButtonView as _0x471b3a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{uid as _0x63b164}from'@ckeditor/ckeditor5-utils/dist/index.js';class g extends _0x43415b{['execute'](_0x30486b){const {model:_0x53c8a3}=this['editor'];let _0x1d364f;switch(typeof _0x30486b){case'string':_0x1d364f=_0x30486b;break;case'function':_0x1d364f=_0x30486b();}'string'==typeof _0x1d364f&&_0x53c8a3['change'](()=>{const _0x2b70e9=this['editor']['data']['htmlProcessor']['toView'](_0x1d364f),_0x57b178=this['editor']['data']['toModel'](_0x2b70e9);_0x53c8a3['insertContent'](_0x57b178);});}}class y extends _0x45f770{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x11b32c}=this;_0x11b32c['commands']['add']('insertTemplate',new g(_0x11b32c)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3fec5f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ccfdc;for(const _0x41312f in _0x3fec5f){const _0x3ad684=_0x41312f,_0x5a4eb3=_0x3fec5f[_0x3ad684];if('templateLicenseKeyValid'==_0x5a4eb3||'templateLicenseKeyInvalid'==_0x5a4eb3||'templateLicenseKeyExpired'==_0x5a4eb3||'templateLicenseKeyDomainLimit'==_0x5a4eb3||'templateLicenseKeyNotAllowed'==_0x5a4eb3||'templateLicenseKeyEvaluationLimit'==_0x5a4eb3||'templateLicenseKeyUsageLimit'==_0x5a4eb3){delete _0x3fec5f[_0x3ad684],_0x4ccfdc=_0x5a4eb3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x4ccfdc&&_0x3fec5f['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x4ccfdc&&_0x3fec5f['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x4ccfdc&&_0x3fec5f['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x4ccfdc&&_0x3fec5f['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x4ccfdc&&_0x3fec5f['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x4ccfdc&&_0x3fec5f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class x extends _0x1446eb{['filter'](_0x26b743){if(!_0x26b743)return this['_resetFiltering']();const _0x3dc171=new Map(),_0x2e4a78=this['items']['map'](_0x103f10=>{const _0x157412=_0x103f10['buttonView']['isMatching'](_0x26b743);return _0x103f10['isVisible']=!!_0x157412,_0x103f10['buttonView']['highlightText'](_0x157412?_0x26b743:null),_0x157412&&_0x3dc171['set'](_0x103f10,_0x157412),_0x103f10;})['sort'](b)['sort'](function(_0x2a6e60){return function(_0x200075,_0x4071ba){const _0x503f35=_0x2a6e60['get'](_0x200075),_0x424f1e=_0x2a6e60['get'](_0x4071ba);return _0x503f35&&!_0x424f1e?-0x1:_0x424f1e&&!_0x503f35?0x1:_0x503f35||_0x424f1e?_0x503f35['title']&&!_0x424f1e['title']?-0x1:!_0x503f35['title']&&_0x424f1e['title']?0x1:0x0:0x0;};}(_0x3dc171));return this['items']['clear'](),this['items']['addMany'](_0x2e4a78),{'resultsCount':_0x3dc171['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0xcc9e0b=this['items']['map'](_0x47b734=>_0x47b734)['sort'](b);return _0xcc9e0b['forEach'](_0x1c77e4=>{_0x1c77e4['isVisible']=!0x0,_0x1c77e4['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0xcc9e0b),{'resultsCount':_0xcc9e0b['length'],'totalItemsCount':_0xcc9e0b['length']};}}function b(_0xc623b9,_0x356489){return _0xc623b9['originalIndex']-_0x356489['originalIndex'];}class L extends _0x590b0b{['originalIndex'];['buttonView'];constructor(_0x11342f,_0x32cac4){super(_0x11342f),this['originalIndex']=_0x32cac4,this['buttonView']=null;}}class k extends _0x5d77fb{['templateDefinition'];['textPartView'];constructor(_0x26c689,_0x3fbbe2){super(_0x26c689),this['templateDefinition']=_0x3fbbe2,this['textPartView']=null;const {icon:_0xb37c32=_0x28fe45}=_0x3fbbe2;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0xb37c32}),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'](_0x2e588d){const {title:_0x4ca6a2,description:_0xcc37be}=this['templateDefinition'],_0x11a56c=!!_0x4ca6a2['match'](_0x2e588d),_0x1b4ab6=!(!_0xcc37be||!_0xcc37be['match'](_0x2e588d));return _0x11a56c||_0x1b4ab6?{'title':_0x11a56c,'description':_0x1b4ab6}:null;}['highlightText'](_0x3926f3){this['textPartView']['highlightText'](_0x3926f3);}}class T extends _0x38d097{constructor(_0x5c7559,_0x432f52,_0x14e563){super(_0x5c7559),this['title']=_0x432f52['title'],this['description']=_0x432f52['description'],this['titleView']=new _0x233d49(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x14e563}});const _0x42743b=[this['titleView']];this['description']&&(this['descriptionView']=new _0x233d49(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x42743b['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x42743b});}['highlightText'](_0x33b848){this['titleView']['highlightText'](_0x33b848),this['description']&&this['descriptionView']['highlightText'](_0x33b848);}}function v(_0x34c92a,_0x262b74,..._0x262640){const t=_0x34c92a['t'];switch(_0x262b74){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x262640);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',..._0x262640);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x262b74;}}class K extends _0x45f770{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4858af}=this,_0x15d700=_0x4858af['config']['get']('template.definitions')||[];_0x4858af['ui']['componentFactory']['add']('insertTemplate',_0x151a56=>{const _0x8f073a=_0x414be6(_0x151a56),_0x5e4873=this['_createTemplateListView'](_0x151a56,_0x15d700),_0x2c3786=new _0x15c70b(_0x151a56,{'filteredView':_0x5e4873,'queryView':{'label':v(_0x151a56,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x372cde=>v(_0x151a56,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x372cde),'secondary':v(_0x151a56,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':v(_0x151a56,'No\x20templates\x20available.')}}}}),_0x4759fa=_0x4858af['commands']['get']('insertTemplate');return _0x2c3786['on']('search',(_0xd3fc3,_0x4271c1)=>{_0x4271c1['query']&&_0x4271c1['query']['length']&&_0x4858af['ui']['ariaLiveAnnouncer']['announce'](v(_0x151a56,'%0\x20templates\x20found',_0x4271c1['resultsCount']));}),_0x8f073a['bind']('isEnabled')['to'](_0x4759fa),_0x8f073a['panelView']['children']['add'](_0x2c3786),_0x8f073a['buttonView']['set']({'label':v(_0x151a56,'Insert\x20template'),'icon':_0x3bd87a,'tooltip':!0x0}),_0x8f073a['on']('change:isOpen',(_0x4343df,_0x329ce1,_0x37d76f)=>{_0x37d76f||_0x2c3786['reset']();}),_0x8f073a;}),_0x4858af['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x51d82d=>{const _0x144124=_0x4858af['commands']['get']('insertTemplate'),_0x16ea95=new _0x32e09e(_0x51d82d);_0x16ea95['buttonView']['set']({'label':v(_0x51d82d,'Template'),'icon':_0x3bd87a});const _0x4353a4=new _0x336304(_0x51d82d);if(!_0x15d700||!_0x15d700['length']){const _0x5b7cf7=new _0x9a5137(_0x51d82d,_0x16ea95),_0x556741=new _0x471b3a(_0x51d82d);_0x556741['set']({'label':v(_0x51d82d,'No\x20templates\x20available.')}),_0x556741['delegate']('execute')['to'](_0x16ea95),_0x556741['on']('execute',()=>{_0x4858af['editing']['view']['focus']();}),_0x5b7cf7['children']['add'](_0x556741),_0x4353a4['items']['add'](_0x5b7cf7);}for(const _0x405535 of _0x15d700){const _0xc108b1=new _0x9a5137(_0x51d82d,_0x16ea95),_0x637f07=new _0x471b3a(_0x51d82d);_0x637f07['set']({'class':'ck-template-button','label':_0x405535['title'],'icon':_0x405535['icon']||_0x28fe45}),_0x637f07['delegate']('execute')['to'](_0x16ea95),_0x637f07['on']('execute',()=>{_0x4858af['execute']('insertTemplate',_0x405535['data']),_0x4858af['editing']['view']['focus']();}),_0xc108b1['children']['add'](_0x637f07),_0x4353a4['items']['add'](_0xc108b1);}return _0x16ea95['panelView']['children']['add'](_0x4353a4),_0x16ea95['bind']('isEnabled')['to'](_0x144124,'isEnabled'),_0x16ea95;});}['afterInit'](){!async function(_0x1335be){const _0x133bc4=_0x10b39c([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]),_0x569b21=0x6b0f5e6f,_0x234029=0x6b08d7af^_0x569b21,_0x45d926=window[_0x10b39c([0x44,0x61,0x74,0x65])][_0x10b39c([0x6e,0x6f,0x77])](),_0x17c3c6=_0x1335be[_0x10b39c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19f73f=new window[(_0x10b39c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44603d=>{_0x17c3c6[_0x10b39c([0x6f,0x6e,0x63,0x65])](_0x10b39c([0x72,0x65,0x61,0x64,0x79]),_0x44603d);}),_0x1ae954={[_0x10b39c([0x6b,0x74,0x79])]:_0x10b39c([0x45,0x43]),[_0x10b39c([0x75,0x73,0x65])]:_0x10b39c([0x73,0x69,0x67]),[_0x10b39c([0x63,0x72,0x76])]:_0x10b39c([0x50,0x2d,0x32,0x35,0x36]),[_0x10b39c([0x78])]:_0x10b39c([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]),[_0x10b39c([0x79])]:_0x10b39c([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]),[_0x10b39c([0x61,0x6c,0x67])]:_0x10b39c([0x45,0x53,0x32,0x35,0x36])},_0x31a654=_0x17c3c6[_0x10b39c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x10b39c([0x67,0x65,0x74])](_0x10b39c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ee4d5(){let _0x163219,_0x4a525e=null,_0x3625a4=null;try{if(_0x31a654==_0x10b39c([0x47,0x50,0x4c]))return _0x10b39c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x163219=_0x5da51e(),!_0x163219)return _0x10b39c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x163219[_0x10b39c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3625a4=_0xbca749(_0x163219[_0x10b39c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x163219[_0x10b39c([0x6a,0x74,0x69])])),await _0x413680()?_0x1b75d9()?_0x4a8d9b()?_0x10b39c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e7130()?(_0x163219[_0x10b39c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10b39c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4a525e=_0x3fb399(_0x10b39c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45fff1()):_0x10b39c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x10b39c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x10b39c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x10b39c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a8d9b(){const _0x3892a2=[_0x10b39c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x10b39c([0x74,0x72,0x69,0x61,0x6c])][_0x10b39c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163219[_0x10b39c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45d926/0x3e8:0xe10*_0x234029;return _0x163219[_0x10b39c([0x65,0x78,0x70])]<_0x3892a2;}function _0x1b75d9(){const _0x483cc9=_0x163219[_0x10b39c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x483cc9&&(!!_0x483cc9[_0x10b39c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10b39c([0x2a]))||(!!_0x483cc9[_0x10b39c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10b39c([0x54,0x50,0x4c]))||(!!_0x483cc9[_0x10b39c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10b39c([0x50,0x50]))||(!(!_0x483cc9[_0x10b39c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10b39c([0x44,0x52,0x55,0x50]))||!_0x10ee44())||!(!_0x483cc9[_0x10b39c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10b39c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4595dc())))));}function _0x2e7130(){const _0x3b1a33=_0x163219[_0x10b39c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b1a33||0x0==_0x3b1a33[_0x10b39c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x201c86}=new URL(window[_0x10b39c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b1a33[_0x10b39c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x201c86))return!0x0;const _0x417e02=_0x201c86[_0x10b39c([0x73,0x70,0x6c,0x69,0x74])](_0x10b39c([0x2e]));return _0x3b1a33[_0x10b39c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x266991=>_0x266991[_0x10b39c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10b39c([0x2a])))[_0x10b39c([0x6d,0x61,0x70])](_0x297220=>_0x297220[_0x10b39c([0x73,0x70,0x6c,0x69,0x74])](_0x10b39c([0x2e])))[_0x10b39c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b8288=>_0x5b8288[_0x10b39c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x417e02[_0x10b39c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10b39c([0x6d,0x61,0x70])](_0x3ad70b=>Array(_0x417e02[_0x10b39c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3ad70b[_0x10b39c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10b39c([0x66,0x69,0x6c,0x6c])](_0x3ad70b[0x0]===_0x10b39c([0x2a])?_0x10b39c([0x2a]):'')[_0x10b39c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3ad70b))[_0x10b39c([0x73,0x6f,0x6d,0x65])](_0xddb932=>_0x417e02[_0x10b39c([0x65,0x76,0x65,0x72,0x79])]((_0x5e66d0,_0x361f9f)=>_0xddb932[_0x361f9f]===_0x5e66d0||_0xddb932[_0x361f9f]===_0x10b39c([0x2a])));}function _0x45fff1(){return _0x4a525e&&_0x3625a4?new window[(_0x10b39c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ac0cb,_0xcfd180)=>{_0x4a525e[_0x10b39c([0x74,0x68,0x65,0x6e])](_0x3ac0cb,_0xcfd180),_0x3625a4[_0x10b39c([0x74,0x68,0x65,0x6e])](_0x126459=>{_0x126459!=_0x10b39c([0x56,0x61,0x6c,0x69,0x64])&&_0x3ac0cb(_0x126459);},_0xcfd180);}):_0x4a525e||_0x3625a4||_0x10b39c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xbca749(_0x310740,_0x2b20ce){return new window[(_0x10b39c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x423104=>{if(_0x4d5e1b())return _0x423104(_0x10b39c([0x56,0x61,0x6c,0x69,0x64]));_0xb84b84(),_0x17c3c6[_0x10b39c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x10b39c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x244501=!0x1;const _0x5572ca=_0x63b164();function _0x177e1d(_0x8335f5){return!!_0x8335f5&&(typeof _0x8335f5===_0x10b39c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x8335f5===_0x10b39c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x8335f5[_0x10b39c([0x74,0x68,0x65,0x6e])]===_0x10b39c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x8335f5[_0x10b39c([0x63,0x61,0x74,0x63,0x68])]===_0x10b39c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x302467(_0x3d8007){_0x2da486(_0x3d8007)[_0x10b39c([0x74,0x68,0x65,0x6e])](_0x18982d=>{if(!_0x18982d||_0x18982d[_0x10b39c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x10b39c([0x6f,0x6b]))return _0x10b39c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc5f261(_0x4fd8eb(_0x5572ca+_0x2b20ce))!=_0x18982d[_0x10b39c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x10b39c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x10b39c([0x56,0x61,0x6c,0x69,0x64]);})[_0x10b39c([0x74,0x68,0x65,0x6e])](_0x54ecd8=>(_0xa24507(),_0x54ecd8),()=>{const _0x4ffad5=_0x2fc530();return null==_0x4ffad5?(_0xa24507(),_0x10b39c([0x56,0x61,0x6c,0x69,0x64])):_0x10b39c(_0x45d926-_0x4ffad5>(0x4f03da6f^_0x569b21)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x10b39c([0x74,0x68,0x65,0x6e])](_0x423104)[_0x10b39c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x423104(_0x10b39c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d654a=0x6b39b0ef^_0x569b21;function _0xa24507(){const _0x2bcfca=_0x10b39c([0x6c,0x6c,0x63,0x74,0x2d])+_0xc5f261(_0x4fd8eb(_0x310740)),_0x4fd2e3=_0x3663c1(_0xc5f261(window[_0x10b39c([0x4d,0x61,0x74,0x68])][_0x10b39c([0x63,0x65,0x69,0x6c])](_0x45d926/_0x1d654a)));window[_0x10b39c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10b39c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2bcfca,_0x4fd2e3);}function _0x2fc530(){const _0x5b9a55=_0x10b39c([0x6c,0x6c,0x63,0x74,0x2d])+_0xc5f261(_0x4fd8eb(_0x310740)),_0x338048=window[_0x10b39c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10b39c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b9a55);return _0x338048?window[_0x10b39c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3663c1(_0x338048),0x10)*_0x1d654a:null;}function _0x2da486(_0x12decc){return new window[(_0x10b39c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x542a98,_0x196b3f)=>{_0x12decc[_0x10b39c([0x74,0x68,0x65,0x6e])](_0x542a98,_0x196b3f),window[_0x10b39c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x196b3f,0x6b0e8aaf^_0x569b21);});}}_0x17c3c6[_0x10b39c([0x6f,0x6e])](_0x10b39c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5886d,_0x22784c)=>{if(_0x22784c[0x0]!=_0x310740)return _0x423104(_0x10b39c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22784c[0x1]={..._0x22784c[0x1],[_0x10b39c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5572ca};},{[_0x10b39c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10b39c([0x68,0x69,0x67,0x68])}),_0x17c3c6[_0x10b39c([0x6f,0x6e])](_0x10b39c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe9599c=>{_0x177e1d(_0xe9599c[_0x10b39c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x244501=!0x0,_0x302467(_0xe9599c[_0x10b39c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x10b39c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10b39c([0x6c,0x6f,0x77])}),_0x19f73f[_0x10b39c([0x74,0x68,0x65,0x6e])](()=>{_0x244501||_0x423104(_0x10b39c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d5e1b(){return _0x17c3c6[_0x10b39c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10b39c([0x76,0x69,0x65,0x77])][_0x10b39c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x10b39c([0x61,0x75,0x74,0x6f]);}function _0xb84b84(){_0x17c3c6[_0x10b39c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10b39c([0x76,0x69,0x65,0x77])][_0x10b39c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10b39c([0x61,0x75,0x74,0x6f]);}}function _0x3fb399(_0x4ea749){const _0x3d9806=[new window[(_0x10b39c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x63fb3c=>setTimeout(_0x63fb3c,0x6b0660a3^_0x569b21)),_0x19f73f[_0x10b39c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x10b39c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f5445=>{let _0x5c0e6f=0x0;_0x17c3c6[_0x10b39c([0x6d,0x6f,0x64,0x65,0x6c])][_0x10b39c([0x6f,0x6e])](_0x10b39c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f2d06,_0x2f8d11)=>{_0x2f8d11[0x0][_0x10b39c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c0e6f++,_0x5c0e6f==(0x6b0f5b87^_0x569b21)&&(_0x4f5445(),_0x1f2d06[_0x10b39c([0x6f,0x66,0x66])]());});}))];return window[_0x10b39c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10b39c([0x72,0x61,0x63,0x65])](_0x3d9806)[_0x10b39c([0x74,0x68,0x65,0x6e])](()=>_0x4ea749);}async function _0x384b65(){await _0x19f73f,_0x17c3c6[_0x10b39c([0x6d,0x6f,0x64,0x65,0x6c])][_0x10b39c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35343b,_0x17c3c6[_0x10b39c([0x6d,0x6f,0x64,0x65,0x6c])][_0x10b39c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35343b,_0x17c3c6[_0x10b39c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x10b39c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10ee44(){return window[_0x10b39c([0x44,0x72,0x75,0x70,0x61,0x6c])];}function _0x4595dc(){return window[_0x10b39c([0x67,0x6c,0x6f,0x62])]&&window[_0x10b39c([0x67,0x6c,0x6f,0x62])][_0x10b39c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x41f0a8(_0x533a79){const _0x131105=_0x1f0af1();_0x17c3c6[_0x131105]=_0x10b39c([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x533a79,_0x533a79!=_0x10b39c([0x56,0x61,0x6c,0x69,0x64])&&_0x384b65();}function _0x1f0af1(){const _0x11f8f4=window[_0x10b39c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x10b39c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x10b39c([0x6e,0x6f,0x77])]())[_0x10b39c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x10b39c([0x2e]),'');let _0x4c56c0=_0x10b39c([0x67]);for(let _0x399d7c=0x0;_0x399d7c<_0x11f8f4[_0x10b39c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x399d7c+=0x2){let _0x27c7f8=window[_0x10b39c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11f8f4[_0x10b39c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x399d7c,_0x399d7c+0x2));_0x27c7f8>=_0x133bc4[_0x10b39c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27c7f8-=_0x133bc4[_0x10b39c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c56c0+=_0x133bc4[_0x27c7f8];}return _0x4c56c0;}function _0x5da51e(){const _0x581454=_0x31a654[_0x10b39c([0x73,0x70,0x6c,0x69,0x74])](_0x10b39c([0x2e]));if(0x3!=_0x581454[_0x10b39c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x471670(_0x581454[0x1]);function _0x471670(_0x19bf46){const _0xc234d=_0x5e2303(_0x19bf46);return _0xc234d&&_0x2e37c3()?_0xc234d:null;function _0x2e37c3(){const _0x1595dd=_0xc234d[_0x10b39c([0x6a,0x74,0x69])],_0x2a1632=window[_0x10b39c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1595dd[_0x10b39c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1595dd[_0x10b39c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6e0226={..._0xc234d,[_0x10b39c([0x6a,0x74,0x69])]:_0x1595dd[_0x10b39c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1595dd[_0x10b39c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6e0226[_0x10b39c([0x76,0x63])],_0x4fd8eb(_0x6e0226)==_0x2a1632;}}}async function _0x413680(){let _0x284107=!0x0;try{const _0x56132d=_0x31a654[_0x10b39c([0x73,0x70,0x6c,0x69,0x74])](_0x10b39c([0x2e])),[_0x3aba97,_0x566d2d,_0x1a8c50]=_0x56132d;return _0x3a1d52(_0x3aba97),await _0x2c0f25(_0x3aba97,_0x566d2d,_0x1a8c50),_0x284107;}catch{return!0x1;}function _0x3a1d52(_0x1dd482){const _0x3df918=_0x5e2303(_0x1dd482);_0x3df918&&_0x3df918[_0x10b39c([0x61,0x6c,0x67])]==_0x10b39c([0x45,0x53,0x32,0x35,0x36])||(_0x284107=!0x1);}async function _0x2c0f25(_0x1c0b99,_0x2fa0d5,_0x3b2928){const _0x45771b=window[_0x10b39c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x10b39c([0x66,0x72,0x6f,0x6d])](_0x2f6006(_0x3b2928),_0x48b67a=>_0x48b67a[_0x10b39c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4a451d=new window[(_0x10b39c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x10b39c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c0b99+_0x10b39c([0x2e])+_0x2fa0d5),_0x287ea8=window[_0x10b39c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x10b39c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x287ea8)return;const _0x1b4aa0=await _0x287ea8[_0x10b39c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x10b39c([0x6a,0x77,0x6b]),_0x1ae954,{[_0x10b39c([0x6e,0x61,0x6d,0x65])]:_0x10b39c([0x45,0x43,0x44,0x53,0x41]),[_0x10b39c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x10b39c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x10b39c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x287ea8[_0x10b39c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x10b39c([0x6e,0x61,0x6d,0x65])]:_0x10b39c([0x45,0x43,0x44,0x53,0x41]),[_0x10b39c([0x68,0x61,0x73,0x68])]:{[_0x10b39c([0x6e,0x61,0x6d,0x65])]:_0x10b39c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b4aa0,_0x45771b,_0x4a451d)||(_0x284107=!0x1);}}function _0x5e2303(_0x30ac27){return _0x30ac27[_0x10b39c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x10b39c([0x65,0x79]))?JSON[_0x10b39c([0x70,0x61,0x72,0x73,0x65])](_0x2f6006(_0x30ac27)):null;}function _0x2f6006(_0x11dbf1){return window[_0x10b39c([0x61,0x74,0x6f,0x62])](_0x11dbf1[_0x10b39c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x10b39c([0x2b]))[_0x10b39c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x10b39c([0x2f])));}function _0x4fd8eb(_0x116e11){let _0x6b381d=0x1505;function _0xea2422(_0x3bf4ab){for(let _0x170091=0x0;_0x170091<_0x3bf4ab[_0x10b39c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x170091++){const _0x1dc79d=_0x3bf4ab[_0x10b39c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x170091);_0x6b381d=(_0x6b381d<<0x5)+_0x6b381d+_0x1dc79d,_0x6b381d&=_0x6b381d;}}function _0x49e76f(_0x58389f){Array[_0x10b39c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58389f)?_0x58389f[_0x10b39c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x49e76f):_0x58389f&&typeof _0x58389f==_0x10b39c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x10b39c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58389f)[_0x10b39c([0x73,0x6f,0x72,0x74])]()[_0x10b39c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5639d0,_0x787fcf])=>{_0xea2422(_0x5639d0),_0x49e76f(_0x787fcf);}):_0xea2422(window[_0x10b39c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58389f));}return _0x49e76f(_0x116e11),_0x6b381d>>>0x0;}function _0xc5f261(_0x3e79b9){return _0x3e79b9[_0x10b39c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x10b39c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x10b39c([0x30]));}function _0x3663c1(_0x70ac46){return _0x70ac46[_0x10b39c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x10b39c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x10b39c([0x6a,0x6f,0x69,0x6e])]('');}function _0x35343b(){}function _0x10b39c(_0x293423){return _0x293423['map'](_0x16b601=>String['fromCharCode'](_0x16b601))['join']('');}_0x41f0a8(await _0x3ee4d5());}(this);}['_createTemplateListView'](_0x2003ed,_0x353607){const {editor:_0x10a96a}=this,_0x3a612c=new x(_0x2003ed);return _0x3a612c['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x3a612c['items']['addMany'](_0x353607['map']((_0x43a135,_0x24e40b)=>{const _0x54c45e=new L(_0x2003ed,_0x24e40b),_0x2bb126=new k(_0x2003ed,_0x43a135);return _0x54c45e['buttonView']=_0x2bb126,_0x54c45e['children']['add'](_0x2bb126),_0x54c45e['buttonView']['on']('execute',_0x2ffba5=>{_0x10a96a['execute']('insertTemplate',_0x2ffba5['source']['templateDefinition']['data']),_0x10a96a['editing']['view']['focus']();}),_0x54c45e;})),_0x3a612c;}}class I extends _0x45f770{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.
|
|
3
|
+
"version": "48.1.0-alpha.5",
|
|
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.
|
|
35
|
-
"@ckeditor/ckeditor5-icons": "48.1.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-ui": "48.1.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-core": "48.1.0-alpha.5",
|
|
35
|
+
"@ckeditor/ckeditor5-icons": "48.1.0-alpha.5",
|
|
36
|
+
"@ckeditor/ckeditor5-ui": "48.1.0-alpha.5",
|
|
37
|
+
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.5"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
40
40
|
"dist",
|