@ckeditor/ckeditor5-template 48.0.0-alpha.2 → 48.0.0-alpha.4
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 _0x237ef7,Plugin as _0x2ef904}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconTemplateGeneric as _0x371d25,IconTemplate as _0xf6c073}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ListView as _0x56ad08,ListItemView as _0x6288e2,ButtonView as _0x435a41,View as _0x1c0ecb,HighlightedTextView as _0x4a7f68,createDropdown as _0x3d21c2,SearchTextView as _0x55d2b9,MenuBarMenuView as _0xd3ebde,MenuBarMenuListView as _0x27d1be,MenuBarMenuListItemView as _0x181add,MenuBarMenuListItemButtonView as _0x2428e5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{uid as _0x21144f}from'@ckeditor/ckeditor5-utils/dist/index.js';class g extends _0x237ef7{['execute'](_0x28dcd6){const {model:_0x284171}=this['editor'];let _0x562ff7;switch(typeof _0x28dcd6){case'string':_0x562ff7=_0x28dcd6;break;case'function':_0x562ff7=_0x28dcd6();}'string'==typeof _0x562ff7&&_0x284171['change'](()=>{const _0xd19ae4=this['editor']['data']['htmlProcessor']['toView'](_0x562ff7),_0x3a20b6=this['editor']['data']['toModel'](_0xd19ae4);_0x284171['insertContent'](_0x3a20b6);});}}class y extends _0x2ef904{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x46ad68}=this;_0x46ad68['commands']['add']('insertTemplate',new g(_0x46ad68)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1d8179=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47d7f1;for(const _0x15b6b8 in _0x1d8179){const _0x54d294=_0x15b6b8,_0x420f4c=_0x1d8179[_0x54d294];if('templateLicenseKeyValid'==_0x420f4c||'templateLicenseKeyInvalid'==_0x420f4c||'templateLicenseKeyExpired'==_0x420f4c||'templateLicenseKeyDomainLimit'==_0x420f4c||'templateLicenseKeyNotAllowed'==_0x420f4c||'templateLicenseKeyEvaluationLimit'==_0x420f4c||'templateLicenseKeyUsageLimit'==_0x420f4c){delete _0x1d8179[_0x54d294],_0x47d7f1=_0x420f4c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x47d7f1&&_0x1d8179['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x47d7f1&&_0x1d8179['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x47d7f1&&_0x1d8179['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x47d7f1&&_0x1d8179['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x47d7f1&&_0x1d8179['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x47d7f1&&_0x1d8179['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class x extends _0x56ad08{['filter'](_0x54491e){if(!_0x54491e)return this['_resetFiltering']();const _0x29f947=new Map(),_0x7ed9c5=this['items']['map'](_0xf49d8e=>{const _0x34312a=_0xf49d8e['buttonView']['isMatching'](_0x54491e);return _0xf49d8e['isVisible']=!!_0x34312a,_0xf49d8e['buttonView']['highlightText'](_0x34312a?_0x54491e:null),_0x34312a&&_0x29f947['set'](_0xf49d8e,_0x34312a),_0xf49d8e;})['sort'](b)['sort'](function(_0x3b9c2d){return function(_0x10d364,_0x3b9786){const _0x12b387=_0x3b9c2d['get'](_0x10d364),_0x1a7329=_0x3b9c2d['get'](_0x3b9786);return _0x12b387&&!_0x1a7329?-0x1:_0x1a7329&&!_0x12b387?0x1:_0x12b387||_0x1a7329?_0x12b387['title']&&!_0x1a7329['title']?-0x1:!_0x12b387['title']&&_0x1a7329['title']?0x1:0x0:0x0;};}(_0x29f947));return this['items']['clear'](),this['items']['addMany'](_0x7ed9c5),{'resultsCount':_0x29f947['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0xa612c=this['items']['map'](_0x19f130=>_0x19f130)['sort'](b);return _0xa612c['forEach'](_0x2f7ef8=>{_0x2f7ef8['isVisible']=!0x0,_0x2f7ef8['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0xa612c),{'resultsCount':_0xa612c['length'],'totalItemsCount':_0xa612c['length']};}}function b(_0x116e59,_0x43bb28){return _0x116e59['originalIndex']-_0x43bb28['originalIndex'];}class L extends _0x6288e2{['originalIndex'];['buttonView'];constructor(_0x310d14,_0xbbd808){super(_0x310d14),this['originalIndex']=_0xbbd808,this['buttonView']=null;}}class k extends _0x435a41{['templateDefinition'];['textPartView'];constructor(_0x397855,_0xbfa322){super(_0x397855),this['templateDefinition']=_0xbfa322,this['textPartView']=null;const {icon:_0x10efd8=_0x371d25}=_0xbfa322;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x10efd8}),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'](_0x4b8e00){const {title:_0x184000,description:_0x29d1b5}=this['templateDefinition'],_0x3a4465=!!_0x184000['match'](_0x4b8e00),_0x149b99=!(!_0x29d1b5||!_0x29d1b5['match'](_0x4b8e00));return _0x3a4465||_0x149b99?{'title':_0x3a4465,'description':_0x149b99}:null;}['highlightText'](_0x393ef7){this['textPartView']['highlightText'](_0x393ef7);}}class T extends _0x1c0ecb{constructor(_0xacd2a6,_0x5ba911,_0x22c9eb){super(_0xacd2a6),this['title']=_0x5ba911['title'],this['description']=_0x5ba911['description'],this['titleView']=new _0x4a7f68(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x22c9eb}});const _0x2a0835=[this['titleView']];this['description']&&(this['descriptionView']=new _0x4a7f68(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x2a0835['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x2a0835});}['highlightText'](_0x2ab834){this['titleView']['highlightText'](_0x2ab834),this['description']&&this['descriptionView']['highlightText'](_0x2ab834);}}function v(_0x1247af,_0x588ec6,..._0x19b03c){const t=_0x1247af['t'];switch(_0x588ec6){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x19b03c);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',..._0x19b03c);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x588ec6;}}class K extends _0x2ef904{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3981c1}=this,_0xae735b=_0x3981c1['config']['get']('template.definitions')||[];_0x3981c1['ui']['componentFactory']['add']('insertTemplate',_0x5299e6=>{const _0x4824da=_0x3d21c2(_0x5299e6),_0x583924=this['_createTemplateListView'](_0x5299e6,_0xae735b),_0x8aafa3=new _0x55d2b9(_0x5299e6,{'filteredView':_0x583924,'queryView':{'label':v(_0x5299e6,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x25de85=>v(_0x5299e6,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x25de85),'secondary':v(_0x5299e6,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':v(_0x5299e6,'No\x20templates\x20available.')}}}}),_0x43b31e=_0x3981c1['commands']['get']('insertTemplate');return _0x8aafa3['on']('search',(_0x3af9a7,_0x39574c)=>{_0x39574c['query']&&_0x39574c['query']['length']&&_0x3981c1['ui']['ariaLiveAnnouncer']['announce'](v(_0x5299e6,'%0\x20templates\x20found',_0x39574c['resultsCount']));}),_0x4824da['bind']('isEnabled')['to'](_0x43b31e),_0x4824da['panelView']['children']['add'](_0x8aafa3),_0x4824da['buttonView']['set']({'label':v(_0x5299e6,'Insert\x20template'),'icon':_0xf6c073,'tooltip':!0x0}),_0x4824da['on']('change:isOpen',(_0x4522cf,_0x51b53c,_0x28e301)=>{_0x28e301||_0x8aafa3['reset']();}),_0x4824da;}),_0x3981c1['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x3ef71f=>{const _0x10952d=_0x3981c1['commands']['get']('insertTemplate'),_0x24d793=new _0xd3ebde(_0x3ef71f);_0x24d793['buttonView']['set']({'label':v(_0x3ef71f,'Template'),'icon':_0xf6c073});const _0x43d59a=new _0x27d1be(_0x3ef71f);if(!_0xae735b||!_0xae735b['length']){const _0x3da5a1=new _0x181add(_0x3ef71f,_0x24d793),_0x5b3e87=new _0x2428e5(_0x3ef71f);_0x5b3e87['set']({'label':v(_0x3ef71f,'No\x20templates\x20available.')}),_0x5b3e87['delegate']('execute')['to'](_0x24d793),_0x5b3e87['on']('execute',()=>{_0x3981c1['editing']['view']['focus']();}),_0x3da5a1['children']['add'](_0x5b3e87),_0x43d59a['items']['add'](_0x3da5a1);}for(const _0x1065d1 of _0xae735b){const _0x5117aa=new _0x181add(_0x3ef71f,_0x24d793),_0x55b512=new _0x2428e5(_0x3ef71f);_0x55b512['set']({'class':'ck-template-button','label':_0x1065d1['title'],'icon':_0x1065d1['icon']||_0x371d25}),_0x55b512['delegate']('execute')['to'](_0x24d793),_0x55b512['on']('execute',()=>{_0x3981c1['execute']('insertTemplate',_0x1065d1['data']),_0x3981c1['editing']['view']['focus']();}),_0x5117aa['children']['add'](_0x55b512),_0x43d59a['items']['add'](_0x5117aa);}return _0x24d793['panelView']['children']['add'](_0x43d59a),_0x24d793['bind']('isEnabled')['to'](_0x10952d,'isEnabled'),_0x24d793;});}['afterInit'](){!async function(_0x4a46d1){const _0x4b0c58=_0x468ac1([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]),_0x521775=0x6b0f5e6f,_0xf08a91=0x6b08da97^_0x521775,_0x2406db=window[_0x468ac1([0x44,0x61,0x74,0x65])][_0x468ac1([0x6e,0x6f,0x77])](),_0x21c1a7=_0x4a46d1[_0x468ac1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e27ab=new window[(_0x468ac1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2636a7=>{_0x21c1a7[_0x468ac1([0x6f,0x6e,0x63,0x65])](_0x468ac1([0x72,0x65,0x61,0x64,0x79]),_0x2636a7);}),_0x53083e={[_0x468ac1([0x6b,0x74,0x79])]:_0x468ac1([0x45,0x43]),[_0x468ac1([0x75,0x73,0x65])]:_0x468ac1([0x73,0x69,0x67]),[_0x468ac1([0x63,0x72,0x76])]:_0x468ac1([0x50,0x2d,0x32,0x35,0x36]),[_0x468ac1([0x78])]:_0x468ac1([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]),[_0x468ac1([0x79])]:_0x468ac1([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]),[_0x468ac1([0x61,0x6c,0x67])]:_0x468ac1([0x45,0x53,0x32,0x35,0x36])},_0xa539fb=_0x21c1a7[_0x468ac1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x468ac1([0x67,0x65,0x74])](_0x468ac1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ff589(){let _0x413df7,_0x361bf6=null,_0x14031d=null;try{if(_0xa539fb==_0x468ac1([0x47,0x50,0x4c]))return _0x468ac1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x413df7=_0x4ef8e4(),!_0x413df7)return _0x468ac1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x413df7[_0x468ac1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14031d=_0x51042b(_0x413df7[_0x468ac1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x413df7[_0x468ac1([0x6a,0x74,0x69])])),await _0x49eb2b()?_0x2a4d72()?_0x3b8add()?_0x468ac1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e205e()?(_0x413df7[_0x468ac1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x468ac1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x361bf6=_0x5bc4a7(_0x468ac1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f36c3()):_0x468ac1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x468ac1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x468ac1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x468ac1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b8add(){const _0x3ca3c0=[_0x468ac1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x468ac1([0x74,0x72,0x69,0x61,0x6c])][_0x468ac1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x413df7[_0x468ac1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2406db/0x3e8:0xe10*_0xf08a91;return _0x413df7[_0x468ac1([0x65,0x78,0x70])]<_0x3ca3c0;}function _0x2a4d72(){const _0x4c40d9=_0x413df7[_0x468ac1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4c40d9&&(!!_0x4c40d9[_0x468ac1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468ac1([0x2a]))||(!!_0x4c40d9[_0x468ac1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468ac1([0x54,0x50,0x4c]))||(!!_0x4c40d9[_0x468ac1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468ac1([0x50,0x50]))||(!(!_0x4c40d9[_0x468ac1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468ac1([0x44,0x52,0x55,0x50]))||!_0x1b83af())||!(!_0x4c40d9[_0x468ac1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468ac1([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x27f46e())))));}function _0x5e205e(){const _0x5eb50b=_0x413df7[_0x468ac1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5eb50b||0x0==_0x5eb50b[_0x468ac1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x959959}=new URL(window[_0x468ac1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5eb50b[_0x468ac1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x959959))return!0x0;const _0x2bddb5=_0x959959[_0x468ac1([0x73,0x70,0x6c,0x69,0x74])](_0x468ac1([0x2e]));return _0x5eb50b[_0x468ac1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d3491=>_0x3d3491[_0x468ac1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468ac1([0x2a])))[_0x468ac1([0x6d,0x61,0x70])](_0x3ec519=>_0x3ec519[_0x468ac1([0x73,0x70,0x6c,0x69,0x74])](_0x468ac1([0x2e])))[_0x468ac1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17d932=>_0x17d932[_0x468ac1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2bddb5[_0x468ac1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x468ac1([0x6d,0x61,0x70])](_0x2fd14a=>Array(_0x2bddb5[_0x468ac1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2fd14a[_0x468ac1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x468ac1([0x66,0x69,0x6c,0x6c])](_0x2fd14a[0x0]===_0x468ac1([0x2a])?_0x468ac1([0x2a]):'')[_0x468ac1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2fd14a))[_0x468ac1([0x73,0x6f,0x6d,0x65])](_0x307c0e=>_0x2bddb5[_0x468ac1([0x65,0x76,0x65,0x72,0x79])]((_0x3c9803,_0x532cd4)=>_0x307c0e[_0x532cd4]===_0x3c9803||_0x307c0e[_0x532cd4]===_0x468ac1([0x2a])));}function _0x2f36c3(){return _0x361bf6&&_0x14031d?new window[(_0x468ac1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d78e4,_0x504666)=>{_0x361bf6[_0x468ac1([0x74,0x68,0x65,0x6e])](_0x3d78e4,_0x504666),_0x14031d[_0x468ac1([0x74,0x68,0x65,0x6e])](_0x2a1f58=>{_0x2a1f58!=_0x468ac1([0x56,0x61,0x6c,0x69,0x64])&&_0x3d78e4(_0x2a1f58);},_0x504666);}):_0x361bf6||_0x14031d||_0x468ac1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51042b(_0x384be3,_0xd4afdb){return new window[(_0x468ac1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47785e=>{if(_0x5d1c3a())return _0x47785e(_0x468ac1([0x56,0x61,0x6c,0x69,0x64]));_0x5e8d4a(),_0x21c1a7[_0x468ac1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x468ac1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c1ca8=!0x1;const _0x586a4f=_0x21144f();function _0x3eb73c(_0x201494){return!!_0x201494&&(typeof _0x201494===_0x468ac1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x201494===_0x468ac1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x201494[_0x468ac1([0x74,0x68,0x65,0x6e])]===_0x468ac1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x201494[_0x468ac1([0x63,0x61,0x74,0x63,0x68])]===_0x468ac1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x19a7e5(_0xda3d77){_0x29a6a4(_0xda3d77)[_0x468ac1([0x74,0x68,0x65,0x6e])](_0x4552f5=>{if(!_0x4552f5||_0x4552f5[_0x468ac1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x468ac1([0x6f,0x6b]))return _0x468ac1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x218d62(_0xf34670(_0x586a4f+_0xd4afdb))!=_0x4552f5[_0x468ac1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x468ac1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x468ac1([0x56,0x61,0x6c,0x69,0x64]);})[_0x468ac1([0x74,0x68,0x65,0x6e])](_0x51dbde=>(_0x119374(),_0x51dbde),()=>{const _0x3a0f9d=_0x137d66();return null==_0x3a0f9d?(_0x119374(),_0x468ac1([0x56,0x61,0x6c,0x69,0x64])):_0x468ac1(_0x2406db-_0x3a0f9d>(0x4f03da6f^_0x521775)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x468ac1([0x74,0x68,0x65,0x6e])](_0x47785e)[_0x468ac1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x47785e(_0x468ac1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x180a15=0x6b39b0ef^_0x521775;function _0x119374(){const _0x573ed4=_0x468ac1([0x6c,0x6c,0x63,0x74,0x2d])+_0x218d62(_0xf34670(_0x384be3)),_0x2ad929=_0x57631d(_0x218d62(window[_0x468ac1([0x4d,0x61,0x74,0x68])][_0x468ac1([0x63,0x65,0x69,0x6c])](_0x2406db/_0x180a15)));window[_0x468ac1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x468ac1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x573ed4,_0x2ad929);}function _0x137d66(){const _0x223212=_0x468ac1([0x6c,0x6c,0x63,0x74,0x2d])+_0x218d62(_0xf34670(_0x384be3)),_0x55b2d7=window[_0x468ac1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x468ac1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x223212);return _0x55b2d7?window[_0x468ac1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57631d(_0x55b2d7),0x10)*_0x180a15:null;}function _0x29a6a4(_0x3539c0){return new window[(_0x468ac1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c9284,_0x1ca367)=>{_0x3539c0[_0x468ac1([0x74,0x68,0x65,0x6e])](_0x1c9284,_0x1ca367),window[_0x468ac1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ca367,0x6b0e8aaf^_0x521775);});}}_0x21c1a7[_0x468ac1([0x6f,0x6e])](_0x468ac1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x37aaf7,_0x4c1756)=>{if(_0x4c1756[0x0]!=_0x384be3)return _0x47785e(_0x468ac1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c1756[0x1]={..._0x4c1756[0x1],[_0x468ac1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x586a4f};},{[_0x468ac1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x468ac1([0x68,0x69,0x67,0x68])}),_0x21c1a7[_0x468ac1([0x6f,0x6e])](_0x468ac1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x59f277=>{_0x3eb73c(_0x59f277[_0x468ac1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c1ca8=!0x0,_0x19a7e5(_0x59f277[_0x468ac1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x468ac1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x468ac1([0x6c,0x6f,0x77])}),_0x2e27ab[_0x468ac1([0x74,0x68,0x65,0x6e])](()=>{_0x4c1ca8||_0x47785e(_0x468ac1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d1c3a(){return _0x21c1a7[_0x468ac1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x468ac1([0x76,0x69,0x65,0x77])][_0x468ac1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x468ac1([0x61,0x75,0x74,0x6f]);}function _0x5e8d4a(){_0x21c1a7[_0x468ac1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x468ac1([0x76,0x69,0x65,0x77])][_0x468ac1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x468ac1([0x61,0x75,0x74,0x6f]);}}function _0x5bc4a7(_0x426ec9){const _0x208594=[new window[(_0x468ac1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x445c1d=>setTimeout(_0x445c1d,0x6b0660a3^_0x521775)),_0x2e27ab[_0x468ac1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x468ac1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d0c9c=>{let _0x13e945=0x0;_0x21c1a7[_0x468ac1([0x6d,0x6f,0x64,0x65,0x6c])][_0x468ac1([0x6f,0x6e])](_0x468ac1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x49312d,_0x1e6912)=>{_0x1e6912[0x0][_0x468ac1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x13e945++,_0x13e945==(0x6b0f5b87^_0x521775)&&(_0x4d0c9c(),_0x49312d[_0x468ac1([0x6f,0x66,0x66])]());});}))];return window[_0x468ac1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x468ac1([0x72,0x61,0x63,0x65])](_0x208594)[_0x468ac1([0x74,0x68,0x65,0x6e])](()=>_0x426ec9);}async function _0x137395(){await _0x2e27ab,_0x21c1a7[_0x468ac1([0x6d,0x6f,0x64,0x65,0x6c])][_0x468ac1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45f0cd,_0x21c1a7[_0x468ac1([0x6d,0x6f,0x64,0x65,0x6c])][_0x468ac1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45f0cd,_0x21c1a7[_0x468ac1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x468ac1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b83af(){return window[_0x468ac1([0x44,0x72,0x75,0x70,0x61,0x6c])];}function _0x27f46e(){return window[_0x468ac1([0x67,0x6c,0x6f,0x62])]&&window[_0x468ac1([0x67,0x6c,0x6f,0x62])][_0x468ac1([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x388825(_0x6ad24f){const _0xfb8d69=_0x5a0d8c();_0x21c1a7[_0xfb8d69]=_0x468ac1([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6ad24f,_0x6ad24f!=_0x468ac1([0x56,0x61,0x6c,0x69,0x64])&&_0x137395();}function _0x5a0d8c(){const _0x1d9c4c=window[_0x468ac1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x468ac1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x468ac1([0x6e,0x6f,0x77])]())[_0x468ac1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x468ac1([0x2e]),'');let _0x26b9a5=_0x468ac1([0x67]);for(let _0x30031d=0x0;_0x30031d<_0x1d9c4c[_0x468ac1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30031d+=0x2){let _0x3231f3=window[_0x468ac1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d9c4c[_0x468ac1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30031d,_0x30031d+0x2));_0x3231f3>=_0x4b0c58[_0x468ac1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3231f3-=_0x4b0c58[_0x468ac1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26b9a5+=_0x4b0c58[_0x3231f3];}return _0x26b9a5;}function _0x4ef8e4(){const _0x1388f4=_0xa539fb[_0x468ac1([0x73,0x70,0x6c,0x69,0x74])](_0x468ac1([0x2e]));if(0x3!=_0x1388f4[_0x468ac1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x574a43(_0x1388f4[0x1]);function _0x574a43(_0x5a418b){const _0x151a5b=_0x4e61d3(_0x5a418b);return _0x151a5b&&_0xd439f7()?_0x151a5b:null;function _0xd439f7(){const _0x3c6331=_0x151a5b[_0x468ac1([0x6a,0x74,0x69])],_0x1804a4=window[_0x468ac1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c6331[_0x468ac1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c6331[_0x468ac1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x339ab2={..._0x151a5b,[_0x468ac1([0x6a,0x74,0x69])]:_0x3c6331[_0x468ac1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c6331[_0x468ac1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x339ab2[_0x468ac1([0x76,0x63])],_0xf34670(_0x339ab2)==_0x1804a4;}}}async function _0x49eb2b(){let _0x241730=!0x0;try{const _0x39506f=_0xa539fb[_0x468ac1([0x73,0x70,0x6c,0x69,0x74])](_0x468ac1([0x2e])),[_0x3412f8,_0x45a0d4,_0x5a7208]=_0x39506f;return _0x2bc7fa(_0x3412f8),await _0x29acb3(_0x3412f8,_0x45a0d4,_0x5a7208),_0x241730;}catch{return!0x1;}function _0x2bc7fa(_0x6078b6){const _0x253f09=_0x4e61d3(_0x6078b6);_0x253f09&&_0x253f09[_0x468ac1([0x61,0x6c,0x67])]==_0x468ac1([0x45,0x53,0x32,0x35,0x36])||(_0x241730=!0x1);}async function _0x29acb3(_0x4f63ad,_0x22a119,_0x5b8a41){const _0x47b6df=window[_0x468ac1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x468ac1([0x66,0x72,0x6f,0x6d])](_0x569057(_0x5b8a41),_0x9fe434=>_0x9fe434[_0x468ac1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ed0aa=new window[(_0x468ac1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x468ac1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f63ad+_0x468ac1([0x2e])+_0x22a119),_0x4f6870=window[_0x468ac1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x468ac1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f6870)return;const _0x352cca=await _0x4f6870[_0x468ac1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x468ac1([0x6a,0x77,0x6b]),_0x53083e,{[_0x468ac1([0x6e,0x61,0x6d,0x65])]:_0x468ac1([0x45,0x43,0x44,0x53,0x41]),[_0x468ac1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x468ac1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x468ac1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f6870[_0x468ac1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x468ac1([0x6e,0x61,0x6d,0x65])]:_0x468ac1([0x45,0x43,0x44,0x53,0x41]),[_0x468ac1([0x68,0x61,0x73,0x68])]:{[_0x468ac1([0x6e,0x61,0x6d,0x65])]:_0x468ac1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x352cca,_0x47b6df,_0x5ed0aa)||(_0x241730=!0x1);}}function _0x4e61d3(_0x17ecff){return _0x17ecff[_0x468ac1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x468ac1([0x65,0x79]))?JSON[_0x468ac1([0x70,0x61,0x72,0x73,0x65])](_0x569057(_0x17ecff)):null;}function _0x569057(_0x322b7b){return window[_0x468ac1([0x61,0x74,0x6f,0x62])](_0x322b7b[_0x468ac1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x468ac1([0x2b]))[_0x468ac1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x468ac1([0x2f])));}function _0xf34670(_0x532d6c){let _0xa9a35a=0x1505;function _0x1bd22b(_0x4a2155){for(let _0xce583d=0x0;_0xce583d<_0x4a2155[_0x468ac1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xce583d++){const _0x10d297=_0x4a2155[_0x468ac1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xce583d);_0xa9a35a=(_0xa9a35a<<0x5)+_0xa9a35a+_0x10d297,_0xa9a35a&=_0xa9a35a;}}function _0x3792c6(_0x2f5ab0){Array[_0x468ac1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f5ab0)?_0x2f5ab0[_0x468ac1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3792c6):_0x2f5ab0&&typeof _0x2f5ab0==_0x468ac1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x468ac1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f5ab0)[_0x468ac1([0x73,0x6f,0x72,0x74])]()[_0x468ac1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47142d,_0x5d62d5])=>{_0x1bd22b(_0x47142d),_0x3792c6(_0x5d62d5);}):_0x1bd22b(window[_0x468ac1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f5ab0));}return _0x3792c6(_0x532d6c),_0xa9a35a>>>0x0;}function _0x218d62(_0x21d65d){return _0x21d65d[_0x468ac1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x468ac1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x468ac1([0x30]));}function _0x57631d(_0x24c1b1){return _0x24c1b1[_0x468ac1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x468ac1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x468ac1([0x6a,0x6f,0x69,0x6e])]('');}function _0x45f0cd(){}function _0x468ac1(_0x149ea9){return _0x149ea9['map'](_0x45eb33=>String['fromCharCode'](_0x45eb33))['join']('');}_0x388825(await _0x1ff589());}(this);}['_createTemplateListView'](_0x19f985,_0x5321de){const {editor:_0x22be03}=this,_0x6d27a4=new x(_0x19f985);return _0x6d27a4['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x6d27a4['items']['addMany'](_0x5321de['map']((_0x8a5ea1,_0x356ad8)=>{const _0x436427=new L(_0x19f985,_0x356ad8),_0xee58d=new k(_0x19f985,_0x8a5ea1);return _0x436427['buttonView']=_0xee58d,_0x436427['children']['add'](_0xee58d),_0x436427['buttonView']['on']('execute',_0x4604ed=>{_0x22be03['execute']('insertTemplate',_0x4604ed['source']['templateDefinition']['data']),_0x22be03['editing']['view']['focus']();}),_0x436427;})),_0x6d27a4;}}class I extends _0x2ef904{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 _0x59c1ec,Plugin as _0x3fe53b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconTemplateGeneric as _0x3de780,IconTemplate as _0x385af4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ListView as _0x8a0901,ListItemView as _0x16537e,ButtonView as _0x485053,View as _0x1d1223,HighlightedTextView as _0x28ffd7,createDropdown as _0x352618,SearchTextView as _0x4244e3,MenuBarMenuView as _0x573fe2,MenuBarMenuListView as _0x3d42c9,MenuBarMenuListItemView as _0x55e755,MenuBarMenuListItemButtonView as _0x405852}from'@ckeditor/ckeditor5-ui/dist/index.js';import{uid as _0x39a8aa}from'@ckeditor/ckeditor5-utils/dist/index.js';class g extends _0x59c1ec{['execute'](_0x3fb12e){const {model:_0x5b16ed}=this['editor'];let _0xcf2303;switch(typeof _0x3fb12e){case'string':_0xcf2303=_0x3fb12e;break;case'function':_0xcf2303=_0x3fb12e();}'string'==typeof _0xcf2303&&_0x5b16ed['change'](()=>{const _0x38b3de=this['editor']['data']['htmlProcessor']['toView'](_0xcf2303),_0x35f48c=this['editor']['data']['toModel'](_0x38b3de);_0x5b16ed['insertContent'](_0x35f48c);});}}class y extends _0x3fe53b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x34742c}=this;_0x34742c['commands']['add']('insertTemplate',new g(_0x34742c)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ae96f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2ad458;for(const _0x2fa85f in _0x3ae96f){const _0x5cf39e=_0x2fa85f,_0x5be6d0=_0x3ae96f[_0x5cf39e];if('templateLicenseKeyValid'==_0x5be6d0||'templateLicenseKeyInvalid'==_0x5be6d0||'templateLicenseKeyExpired'==_0x5be6d0||'templateLicenseKeyDomainLimit'==_0x5be6d0||'templateLicenseKeyNotAllowed'==_0x5be6d0||'templateLicenseKeyEvaluationLimit'==_0x5be6d0||'templateLicenseKeyUsageLimit'==_0x5be6d0){delete _0x3ae96f[_0x5cf39e],_0x2ad458=_0x5be6d0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x2ad458&&_0x3ae96f['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x2ad458&&_0x3ae96f['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x2ad458&&_0x3ae96f['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x2ad458&&_0x3ae96f['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x2ad458&&_0x3ae96f['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x2ad458&&_0x3ae96f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class x extends _0x8a0901{['filter'](_0x311647){if(!_0x311647)return this['_resetFiltering']();const _0x2f79f7=new Map(),_0x54c37d=this['items']['map'](_0x193d07=>{const _0x115e7b=_0x193d07['buttonView']['isMatching'](_0x311647);return _0x193d07['isVisible']=!!_0x115e7b,_0x193d07['buttonView']['highlightText'](_0x115e7b?_0x311647:null),_0x115e7b&&_0x2f79f7['set'](_0x193d07,_0x115e7b),_0x193d07;})['sort'](b)['sort'](function(_0x3173a6){return function(_0x2d368a,_0x10b744){const _0x487553=_0x3173a6['get'](_0x2d368a),_0x39e6dd=_0x3173a6['get'](_0x10b744);return _0x487553&&!_0x39e6dd?-0x1:_0x39e6dd&&!_0x487553?0x1:_0x487553||_0x39e6dd?_0x487553['title']&&!_0x39e6dd['title']?-0x1:!_0x487553['title']&&_0x39e6dd['title']?0x1:0x0:0x0;};}(_0x2f79f7));return this['items']['clear'](),this['items']['addMany'](_0x54c37d),{'resultsCount':_0x2f79f7['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x3d39ab=this['items']['map'](_0x86f6ef=>_0x86f6ef)['sort'](b);return _0x3d39ab['forEach'](_0x45f00e=>{_0x45f00e['isVisible']=!0x0,_0x45f00e['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x3d39ab),{'resultsCount':_0x3d39ab['length'],'totalItemsCount':_0x3d39ab['length']};}}function b(_0x395277,_0xbcffc5){return _0x395277['originalIndex']-_0xbcffc5['originalIndex'];}class L extends _0x16537e{['originalIndex'];['buttonView'];constructor(_0x1b03eb,_0x405a01){super(_0x1b03eb),this['originalIndex']=_0x405a01,this['buttonView']=null;}}class k extends _0x485053{['templateDefinition'];['textPartView'];constructor(_0x234af0,_0x20b714){super(_0x234af0),this['templateDefinition']=_0x20b714,this['textPartView']=null;const {icon:_0x5abaf3=_0x3de780}=_0x20b714;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x5abaf3}),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'](_0x47f26a){const {title:_0x3cdd0b,description:_0x17db36}=this['templateDefinition'],_0x48298f=!!_0x3cdd0b['match'](_0x47f26a),_0x2aca73=!(!_0x17db36||!_0x17db36['match'](_0x47f26a));return _0x48298f||_0x2aca73?{'title':_0x48298f,'description':_0x2aca73}:null;}['highlightText'](_0x4fcdfa){this['textPartView']['highlightText'](_0x4fcdfa);}}class T extends _0x1d1223{constructor(_0x32c646,_0x266d55,_0x16a4c7){super(_0x32c646),this['title']=_0x266d55['title'],this['description']=_0x266d55['description'],this['titleView']=new _0x28ffd7(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x16a4c7}});const _0x2a9c1f=[this['titleView']];this['description']&&(this['descriptionView']=new _0x28ffd7(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x2a9c1f['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x2a9c1f});}['highlightText'](_0x5f311c){this['titleView']['highlightText'](_0x5f311c),this['description']&&this['descriptionView']['highlightText'](_0x5f311c);}}function v(_0x267a95,_0x40b628,..._0x4b48be){const t=_0x267a95['t'];switch(_0x40b628){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x4b48be);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',..._0x4b48be);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x40b628;}}class K extends _0x3fe53b{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4f363}=this,_0x420858=_0x4f363['config']['get']('template.definitions')||[];_0x4f363['ui']['componentFactory']['add']('insertTemplate',_0x219e4d=>{const _0x32949a=_0x352618(_0x219e4d),_0x5e6359=this['_createTemplateListView'](_0x219e4d,_0x420858),_0x12a992=new _0x4244e3(_0x219e4d,{'filteredView':_0x5e6359,'queryView':{'label':v(_0x219e4d,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x1486c9=>v(_0x219e4d,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x1486c9),'secondary':v(_0x219e4d,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':v(_0x219e4d,'No\x20templates\x20available.')}}}}),_0x1a82e1=_0x4f363['commands']['get']('insertTemplate');return _0x12a992['on']('search',(_0x71eba8,_0x127a52)=>{_0x127a52['query']&&_0x127a52['query']['length']&&_0x4f363['ui']['ariaLiveAnnouncer']['announce'](v(_0x219e4d,'%0\x20templates\x20found',_0x127a52['resultsCount']));}),_0x32949a['bind']('isEnabled')['to'](_0x1a82e1),_0x32949a['panelView']['children']['add'](_0x12a992),_0x32949a['buttonView']['set']({'label':v(_0x219e4d,'Insert\x20template'),'icon':_0x385af4,'tooltip':!0x0}),_0x32949a['on']('change:isOpen',(_0x4f4361,_0x2c5636,_0x4a8c4f)=>{_0x4a8c4f||_0x12a992['reset']();}),_0x32949a;}),_0x4f363['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x4f7263=>{const _0x3ac7f3=_0x4f363['commands']['get']('insertTemplate'),_0x2a9429=new _0x573fe2(_0x4f7263);_0x2a9429['buttonView']['set']({'label':v(_0x4f7263,'Template'),'icon':_0x385af4});const _0x545236=new _0x3d42c9(_0x4f7263);if(!_0x420858||!_0x420858['length']){const _0x48dfaf=new _0x55e755(_0x4f7263,_0x2a9429),_0xb2072=new _0x405852(_0x4f7263);_0xb2072['set']({'label':v(_0x4f7263,'No\x20templates\x20available.')}),_0xb2072['delegate']('execute')['to'](_0x2a9429),_0xb2072['on']('execute',()=>{_0x4f363['editing']['view']['focus']();}),_0x48dfaf['children']['add'](_0xb2072),_0x545236['items']['add'](_0x48dfaf);}for(const _0x3f9341 of _0x420858){const _0x303e73=new _0x55e755(_0x4f7263,_0x2a9429),_0x1f3d6=new _0x405852(_0x4f7263);_0x1f3d6['set']({'class':'ck-template-button','label':_0x3f9341['title'],'icon':_0x3f9341['icon']||_0x3de780}),_0x1f3d6['delegate']('execute')['to'](_0x2a9429),_0x1f3d6['on']('execute',()=>{_0x4f363['execute']('insertTemplate',_0x3f9341['data']),_0x4f363['editing']['view']['focus']();}),_0x303e73['children']['add'](_0x1f3d6),_0x545236['items']['add'](_0x303e73);}return _0x2a9429['panelView']['children']['add'](_0x545236),_0x2a9429['bind']('isEnabled')['to'](_0x3ac7f3,'isEnabled'),_0x2a9429;});}['afterInit'](){!async function(_0x577bac){const _0x1fa126=_0x56dff0([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]),_0xcc4649=0x6b0f5e6f,_0x54bfe5=0x6b08db47^_0xcc4649,_0x270530=window[_0x56dff0([0x44,0x61,0x74,0x65])][_0x56dff0([0x6e,0x6f,0x77])](),_0x1a5f70=_0x577bac[_0x56dff0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53d024=new window[(_0x56dff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10648c=>{_0x1a5f70[_0x56dff0([0x6f,0x6e,0x63,0x65])](_0x56dff0([0x72,0x65,0x61,0x64,0x79]),_0x10648c);}),_0x491bf4={[_0x56dff0([0x6b,0x74,0x79])]:_0x56dff0([0x45,0x43]),[_0x56dff0([0x75,0x73,0x65])]:_0x56dff0([0x73,0x69,0x67]),[_0x56dff0([0x63,0x72,0x76])]:_0x56dff0([0x50,0x2d,0x32,0x35,0x36]),[_0x56dff0([0x78])]:_0x56dff0([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]),[_0x56dff0([0x79])]:_0x56dff0([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]),[_0x56dff0([0x61,0x6c,0x67])]:_0x56dff0([0x45,0x53,0x32,0x35,0x36])},_0x294460=_0x1a5f70[_0x56dff0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x56dff0([0x67,0x65,0x74])](_0x56dff0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x25f84d(){let _0x522000,_0x1adf18=null,_0x3d8a9d=null;try{if(_0x294460==_0x56dff0([0x47,0x50,0x4c]))return _0x56dff0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x522000=_0x43598a(),!_0x522000)return _0x56dff0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x522000[_0x56dff0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d8a9d=_0x4bd4b4(_0x522000[_0x56dff0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x522000[_0x56dff0([0x6a,0x74,0x69])])),await _0x37a3b0()?_0x16937c()?_0x7c36b4()?_0x56dff0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ba45a()?(_0x522000[_0x56dff0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56dff0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1adf18=_0x1bb552(_0x56dff0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e66b9()):_0x56dff0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x56dff0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x56dff0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x56dff0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x7c36b4(){const _0x54d875=[_0x56dff0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x56dff0([0x74,0x72,0x69,0x61,0x6c])][_0x56dff0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x522000[_0x56dff0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x270530/0x3e8:0xe10*_0x54bfe5;return _0x522000[_0x56dff0([0x65,0x78,0x70])]<_0x54d875;}function _0x16937c(){const _0x1c886f=_0x522000[_0x56dff0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c886f&&(!!_0x1c886f[_0x56dff0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56dff0([0x2a]))||(!!_0x1c886f[_0x56dff0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56dff0([0x54,0x50,0x4c]))||(!!_0x1c886f[_0x56dff0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56dff0([0x50,0x50]))||(!(!_0x1c886f[_0x56dff0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56dff0([0x44,0x52,0x55,0x50]))||!_0x36e38e())||!(!_0x1c886f[_0x56dff0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56dff0([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x20a558())))));}function _0x2ba45a(){const _0x534521=_0x522000[_0x56dff0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x534521||0x0==_0x534521[_0x56dff0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a5d00}=new URL(window[_0x56dff0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x534521[_0x56dff0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a5d00))return!0x0;const _0x696734=_0x2a5d00[_0x56dff0([0x73,0x70,0x6c,0x69,0x74])](_0x56dff0([0x2e]));return _0x534521[_0x56dff0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x107e8a=>_0x107e8a[_0x56dff0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56dff0([0x2a])))[_0x56dff0([0x6d,0x61,0x70])](_0x4bd96c=>_0x4bd96c[_0x56dff0([0x73,0x70,0x6c,0x69,0x74])](_0x56dff0([0x2e])))[_0x56dff0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37ee6c=>_0x37ee6c[_0x56dff0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x696734[_0x56dff0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56dff0([0x6d,0x61,0x70])](_0x5b5e09=>Array(_0x696734[_0x56dff0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5b5e09[_0x56dff0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56dff0([0x66,0x69,0x6c,0x6c])](_0x5b5e09[0x0]===_0x56dff0([0x2a])?_0x56dff0([0x2a]):'')[_0x56dff0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5b5e09))[_0x56dff0([0x73,0x6f,0x6d,0x65])](_0x4e6d3e=>_0x696734[_0x56dff0([0x65,0x76,0x65,0x72,0x79])]((_0xd5bed5,_0x14d9ce)=>_0x4e6d3e[_0x14d9ce]===_0xd5bed5||_0x4e6d3e[_0x14d9ce]===_0x56dff0([0x2a])));}function _0x4e66b9(){return _0x1adf18&&_0x3d8a9d?new window[(_0x56dff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e192a,_0x340722)=>{_0x1adf18[_0x56dff0([0x74,0x68,0x65,0x6e])](_0x5e192a,_0x340722),_0x3d8a9d[_0x56dff0([0x74,0x68,0x65,0x6e])](_0x220328=>{_0x220328!=_0x56dff0([0x56,0x61,0x6c,0x69,0x64])&&_0x5e192a(_0x220328);},_0x340722);}):_0x1adf18||_0x3d8a9d||_0x56dff0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4bd4b4(_0x36346d,_0x166bf1){return new window[(_0x56dff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dc60f=>{if(_0xb9db8())return _0x5dc60f(_0x56dff0([0x56,0x61,0x6c,0x69,0x64]));_0x1869e0(),_0x1a5f70[_0x56dff0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x56dff0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ce413=!0x1;const _0x32ac49=_0x39a8aa();function _0x210dda(_0x3c7bd7){return!!_0x3c7bd7&&(typeof _0x3c7bd7===_0x56dff0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c7bd7===_0x56dff0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c7bd7[_0x56dff0([0x74,0x68,0x65,0x6e])]===_0x56dff0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c7bd7[_0x56dff0([0x63,0x61,0x74,0x63,0x68])]===_0x56dff0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x8f8dba(_0xfa5b49){_0x2c5f69(_0xfa5b49)[_0x56dff0([0x74,0x68,0x65,0x6e])](_0x1a1874=>{if(!_0x1a1874||_0x1a1874[_0x56dff0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x56dff0([0x6f,0x6b]))return _0x56dff0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34dac9(_0x567e97(_0x32ac49+_0x166bf1))!=_0x1a1874[_0x56dff0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x56dff0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x56dff0([0x56,0x61,0x6c,0x69,0x64]);})[_0x56dff0([0x74,0x68,0x65,0x6e])](_0x44b4c1=>(_0x36e422(),_0x44b4c1),()=>{const _0x24b4e6=_0x1fe1d2();return null==_0x24b4e6?(_0x36e422(),_0x56dff0([0x56,0x61,0x6c,0x69,0x64])):_0x56dff0(_0x270530-_0x24b4e6>(0x4f03da6f^_0xcc4649)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x56dff0([0x74,0x68,0x65,0x6e])](_0x5dc60f)[_0x56dff0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5dc60f(_0x56dff0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d8e3f=0x6b39b0ef^_0xcc4649;function _0x36e422(){const _0x16d8d6=_0x56dff0([0x6c,0x6c,0x63,0x74,0x2d])+_0x34dac9(_0x567e97(_0x36346d)),_0x1acf8a=_0x4a3c85(_0x34dac9(window[_0x56dff0([0x4d,0x61,0x74,0x68])][_0x56dff0([0x63,0x65,0x69,0x6c])](_0x270530/_0x3d8e3f)));window[_0x56dff0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56dff0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16d8d6,_0x1acf8a);}function _0x1fe1d2(){const _0x1390d6=_0x56dff0([0x6c,0x6c,0x63,0x74,0x2d])+_0x34dac9(_0x567e97(_0x36346d)),_0x49fdc9=window[_0x56dff0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56dff0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1390d6);return _0x49fdc9?window[_0x56dff0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a3c85(_0x49fdc9),0x10)*_0x3d8e3f:null;}function _0x2c5f69(_0x531fec){return new window[(_0x56dff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c1a06,_0x179dd3)=>{_0x531fec[_0x56dff0([0x74,0x68,0x65,0x6e])](_0x1c1a06,_0x179dd3),window[_0x56dff0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x179dd3,0x6b0e8aaf^_0xcc4649);});}}_0x1a5f70[_0x56dff0([0x6f,0x6e])](_0x56dff0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c8eb5,_0x4ff835)=>{if(_0x4ff835[0x0]!=_0x36346d)return _0x5dc60f(_0x56dff0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ff835[0x1]={..._0x4ff835[0x1],[_0x56dff0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32ac49};},{[_0x56dff0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56dff0([0x68,0x69,0x67,0x68])}),_0x1a5f70[_0x56dff0([0x6f,0x6e])](_0x56dff0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbfb7fc=>{_0x210dda(_0xbfb7fc[_0x56dff0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ce413=!0x0,_0x8f8dba(_0xbfb7fc[_0x56dff0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x56dff0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56dff0([0x6c,0x6f,0x77])}),_0x53d024[_0x56dff0([0x74,0x68,0x65,0x6e])](()=>{_0x5ce413||_0x5dc60f(_0x56dff0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb9db8(){return _0x1a5f70[_0x56dff0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56dff0([0x76,0x69,0x65,0x77])][_0x56dff0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x56dff0([0x61,0x75,0x74,0x6f]);}function _0x1869e0(){_0x1a5f70[_0x56dff0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56dff0([0x76,0x69,0x65,0x77])][_0x56dff0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56dff0([0x61,0x75,0x74,0x6f]);}}function _0x1bb552(_0x5b7e76){const _0x1b4687=[new window[(_0x56dff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1641e1=>setTimeout(_0x1641e1,0x6b0660a3^_0xcc4649)),_0x53d024[_0x56dff0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x56dff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37e500=>{let _0x56a46a=0x0;_0x1a5f70[_0x56dff0([0x6d,0x6f,0x64,0x65,0x6c])][_0x56dff0([0x6f,0x6e])](_0x56dff0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x10d8bf,_0x28ba81)=>{_0x28ba81[0x0][_0x56dff0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x56a46a++,_0x56a46a==(0x6b0f5b87^_0xcc4649)&&(_0x37e500(),_0x10d8bf[_0x56dff0([0x6f,0x66,0x66])]());});}))];return window[_0x56dff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56dff0([0x72,0x61,0x63,0x65])](_0x1b4687)[_0x56dff0([0x74,0x68,0x65,0x6e])](()=>_0x5b7e76);}async function _0x5819fe(){await _0x53d024,_0x1a5f70[_0x56dff0([0x6d,0x6f,0x64,0x65,0x6c])][_0x56dff0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26adda,_0x1a5f70[_0x56dff0([0x6d,0x6f,0x64,0x65,0x6c])][_0x56dff0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26adda,_0x1a5f70[_0x56dff0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x56dff0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x36e38e(){return window[_0x56dff0([0x44,0x72,0x75,0x70,0x61,0x6c])];}function _0x20a558(){return window[_0x56dff0([0x67,0x6c,0x6f,0x62])]&&window[_0x56dff0([0x67,0x6c,0x6f,0x62])][_0x56dff0([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x2caea3(_0xf634db){const _0x112c01=_0x5e0a0c();_0x1a5f70[_0x112c01]=_0x56dff0([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf634db,_0xf634db!=_0x56dff0([0x56,0x61,0x6c,0x69,0x64])&&_0x5819fe();}function _0x5e0a0c(){const _0x3a45c6=window[_0x56dff0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x56dff0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x56dff0([0x6e,0x6f,0x77])]())[_0x56dff0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x56dff0([0x2e]),'');let _0x46abf8=_0x56dff0([0x67]);for(let _0xe4b848=0x0;_0xe4b848<_0x3a45c6[_0x56dff0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe4b848+=0x2){let _0xd3b10a=window[_0x56dff0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a45c6[_0x56dff0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe4b848,_0xe4b848+0x2));_0xd3b10a>=_0x1fa126[_0x56dff0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xd3b10a-=_0x1fa126[_0x56dff0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x46abf8+=_0x1fa126[_0xd3b10a];}return _0x46abf8;}function _0x43598a(){const _0x131a12=_0x294460[_0x56dff0([0x73,0x70,0x6c,0x69,0x74])](_0x56dff0([0x2e]));if(0x3!=_0x131a12[_0x56dff0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24015e(_0x131a12[0x1]);function _0x24015e(_0x3f893a){const _0x51ba2e=_0x414032(_0x3f893a);return _0x51ba2e&&_0x3695ed()?_0x51ba2e:null;function _0x3695ed(){const _0x361c66=_0x51ba2e[_0x56dff0([0x6a,0x74,0x69])],_0x294cfd=window[_0x56dff0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x361c66[_0x56dff0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x361c66[_0x56dff0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x209972={..._0x51ba2e,[_0x56dff0([0x6a,0x74,0x69])]:_0x361c66[_0x56dff0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x361c66[_0x56dff0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x209972[_0x56dff0([0x76,0x63])],_0x567e97(_0x209972)==_0x294cfd;}}}async function _0x37a3b0(){let _0x21657e=!0x0;try{const _0x145ce8=_0x294460[_0x56dff0([0x73,0x70,0x6c,0x69,0x74])](_0x56dff0([0x2e])),[_0x2de6e2,_0x479a10,_0x5afe4c]=_0x145ce8;return _0x36eda(_0x2de6e2),await _0xe595e2(_0x2de6e2,_0x479a10,_0x5afe4c),_0x21657e;}catch{return!0x1;}function _0x36eda(_0x192e9a){const _0x2e156c=_0x414032(_0x192e9a);_0x2e156c&&_0x2e156c[_0x56dff0([0x61,0x6c,0x67])]==_0x56dff0([0x45,0x53,0x32,0x35,0x36])||(_0x21657e=!0x1);}async function _0xe595e2(_0x5a4b96,_0x59e757,_0x7d825){const _0xba244d=window[_0x56dff0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x56dff0([0x66,0x72,0x6f,0x6d])](_0x5a57a(_0x7d825),_0x3d3326=>_0x3d3326[_0x56dff0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c944e=new window[(_0x56dff0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x56dff0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a4b96+_0x56dff0([0x2e])+_0x59e757),_0x5efbae=window[_0x56dff0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x56dff0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5efbae)return;const _0x54d0ba=await _0x5efbae[_0x56dff0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x56dff0([0x6a,0x77,0x6b]),_0x491bf4,{[_0x56dff0([0x6e,0x61,0x6d,0x65])]:_0x56dff0([0x45,0x43,0x44,0x53,0x41]),[_0x56dff0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x56dff0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x56dff0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5efbae[_0x56dff0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x56dff0([0x6e,0x61,0x6d,0x65])]:_0x56dff0([0x45,0x43,0x44,0x53,0x41]),[_0x56dff0([0x68,0x61,0x73,0x68])]:{[_0x56dff0([0x6e,0x61,0x6d,0x65])]:_0x56dff0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54d0ba,_0xba244d,_0x4c944e)||(_0x21657e=!0x1);}}function _0x414032(_0x4b0cff){return _0x4b0cff[_0x56dff0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x56dff0([0x65,0x79]))?JSON[_0x56dff0([0x70,0x61,0x72,0x73,0x65])](_0x5a57a(_0x4b0cff)):null;}function _0x5a57a(_0x2a35b1){return window[_0x56dff0([0x61,0x74,0x6f,0x62])](_0x2a35b1[_0x56dff0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x56dff0([0x2b]))[_0x56dff0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x56dff0([0x2f])));}function _0x567e97(_0x101149){let _0x1e9bc5=0x1505;function _0x386bcf(_0x49e94f){for(let _0x34a1f9=0x0;_0x34a1f9<_0x49e94f[_0x56dff0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34a1f9++){const _0x543d2e=_0x49e94f[_0x56dff0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34a1f9);_0x1e9bc5=(_0x1e9bc5<<0x5)+_0x1e9bc5+_0x543d2e,_0x1e9bc5&=_0x1e9bc5;}}function _0x622925(_0x2cb179){Array[_0x56dff0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2cb179)?_0x2cb179[_0x56dff0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x622925):_0x2cb179&&typeof _0x2cb179==_0x56dff0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x56dff0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2cb179)[_0x56dff0([0x73,0x6f,0x72,0x74])]()[_0x56dff0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xa82ee1,_0x1972ab])=>{_0x386bcf(_0xa82ee1),_0x622925(_0x1972ab);}):_0x386bcf(window[_0x56dff0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2cb179));}return _0x622925(_0x101149),_0x1e9bc5>>>0x0;}function _0x34dac9(_0x467c0b){return _0x467c0b[_0x56dff0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x56dff0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x56dff0([0x30]));}function _0x4a3c85(_0x4c6223){return _0x4c6223[_0x56dff0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x56dff0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x56dff0([0x6a,0x6f,0x69,0x6e])]('');}function _0x26adda(){}function _0x56dff0(_0x5be275){return _0x5be275['map'](_0x16611f=>String['fromCharCode'](_0x16611f))['join']('');}_0x2caea3(await _0x25f84d());}(this);}['_createTemplateListView'](_0x5dcfa7,_0x360ab2){const {editor:_0x44ff9b}=this,_0x38cebc=new x(_0x5dcfa7);return _0x38cebc['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x38cebc['items']['addMany'](_0x360ab2['map']((_0x3c0529,_0x1c6fa7)=>{const _0x2e8563=new L(_0x5dcfa7,_0x1c6fa7),_0x44e5bf=new k(_0x5dcfa7,_0x3c0529);return _0x2e8563['buttonView']=_0x44e5bf,_0x2e8563['children']['add'](_0x44e5bf),_0x2e8563['buttonView']['on']('execute',_0x1ada58=>{_0x44ff9b['execute']('insertTemplate',_0x1ada58['source']['templateDefinition']['data']),_0x44ff9b['editing']['view']['focus']();}),_0x2e8563;})),_0x38cebc;}}class I extends _0x3fe53b{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.0.0-alpha.
|
|
3
|
+
"version": "48.0.0-alpha.4",
|
|
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.0.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-core": "48.0.0-alpha.4",
|
|
35
|
+
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.4",
|
|
36
|
+
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.4",
|
|
37
|
+
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.4"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
40
40
|
"dist",
|