@ckeditor/ckeditor5-template 48.0.0-alpha.2 → 48.0.0-alpha.3
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 _0x169f1f,Plugin as _0x3c07c8}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconTemplateGeneric as _0x379600,IconTemplate as _0x4d681e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ListView as _0x55da04,ListItemView as _0x5151e2,ButtonView as _0x44fd13,View as _0x2a5d10,HighlightedTextView as _0x2ca875,createDropdown as _0xa9fd20,SearchTextView as _0x343193,MenuBarMenuView as _0x4ea25e,MenuBarMenuListView as _0x311c41,MenuBarMenuListItemView as _0x2bd07c,MenuBarMenuListItemButtonView as _0x403170}from'@ckeditor/ckeditor5-ui/dist/index.js';import{uid as _0x341a20}from'@ckeditor/ckeditor5-utils/dist/index.js';class g extends _0x169f1f{['execute'](_0x3a76d0){const {model:_0x1b6697}=this['editor'];let _0xdd2a9;switch(typeof _0x3a76d0){case'string':_0xdd2a9=_0x3a76d0;break;case'function':_0xdd2a9=_0x3a76d0();}'string'==typeof _0xdd2a9&&_0x1b6697['change'](()=>{const _0xbb2b56=this['editor']['data']['htmlProcessor']['toView'](_0xdd2a9),_0x2888df=this['editor']['data']['toModel'](_0xbb2b56);_0x1b6697['insertContent'](_0x2888df);});}}class y extends _0x3c07c8{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x385d64}=this;_0x385d64['commands']['add']('insertTemplate',new g(_0x385d64)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x27ca3d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10a726;for(const _0x202ac7 in _0x27ca3d){const _0x817d5f=_0x202ac7,_0x5f767=_0x27ca3d[_0x817d5f];if('templateLicenseKeyValid'==_0x5f767||'templateLicenseKeyInvalid'==_0x5f767||'templateLicenseKeyExpired'==_0x5f767||'templateLicenseKeyDomainLimit'==_0x5f767||'templateLicenseKeyNotAllowed'==_0x5f767||'templateLicenseKeyEvaluationLimit'==_0x5f767||'templateLicenseKeyUsageLimit'==_0x5f767){delete _0x27ca3d[_0x817d5f],_0x10a726=_0x5f767,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x10a726&&_0x27ca3d['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x10a726&&_0x27ca3d['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x10a726&&_0x27ca3d['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x10a726&&_0x27ca3d['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x10a726&&_0x27ca3d['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x10a726&&_0x27ca3d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class x extends _0x55da04{['filter'](_0x17b2fb){if(!_0x17b2fb)return this['_resetFiltering']();const _0x2159b1=new Map(),_0x4c0440=this['items']['map'](_0x357937=>{const _0x2b817a=_0x357937['buttonView']['isMatching'](_0x17b2fb);return _0x357937['isVisible']=!!_0x2b817a,_0x357937['buttonView']['highlightText'](_0x2b817a?_0x17b2fb:null),_0x2b817a&&_0x2159b1['set'](_0x357937,_0x2b817a),_0x357937;})['sort'](b)['sort'](function(_0x476774){return function(_0x146ff2,_0xaa1848){const _0x21301b=_0x476774['get'](_0x146ff2),_0x47a763=_0x476774['get'](_0xaa1848);return _0x21301b&&!_0x47a763?-0x1:_0x47a763&&!_0x21301b?0x1:_0x21301b||_0x47a763?_0x21301b['title']&&!_0x47a763['title']?-0x1:!_0x21301b['title']&&_0x47a763['title']?0x1:0x0:0x0;};}(_0x2159b1));return this['items']['clear'](),this['items']['addMany'](_0x4c0440),{'resultsCount':_0x2159b1['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0xe257da=this['items']['map'](_0x962aa5=>_0x962aa5)['sort'](b);return _0xe257da['forEach'](_0x40b61d=>{_0x40b61d['isVisible']=!0x0,_0x40b61d['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0xe257da),{'resultsCount':_0xe257da['length'],'totalItemsCount':_0xe257da['length']};}}function b(_0x10c613,_0x4580e5){return _0x10c613['originalIndex']-_0x4580e5['originalIndex'];}class L extends _0x5151e2{['originalIndex'];['buttonView'];constructor(_0x38fdc9,_0x1726fb){super(_0x38fdc9),this['originalIndex']=_0x1726fb,this['buttonView']=null;}}class k extends _0x44fd13{['templateDefinition'];['textPartView'];constructor(_0x10f98d,_0x524e38){super(_0x10f98d),this['templateDefinition']=_0x524e38,this['textPartView']=null;const {icon:_0x34b736=_0x379600}=_0x524e38;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x34b736}),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'](_0x31da4f){const {title:_0x1d124e,description:_0x25f8f4}=this['templateDefinition'],_0x4c692d=!!_0x1d124e['match'](_0x31da4f),_0x4db072=!(!_0x25f8f4||!_0x25f8f4['match'](_0x31da4f));return _0x4c692d||_0x4db072?{'title':_0x4c692d,'description':_0x4db072}:null;}['highlightText'](_0x36c75a){this['textPartView']['highlightText'](_0x36c75a);}}class T extends _0x2a5d10{constructor(_0x183ac5,_0x1d353b,_0x3d56ee){super(_0x183ac5),this['title']=_0x1d353b['title'],this['description']=_0x1d353b['description'],this['titleView']=new _0x2ca875(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x3d56ee}});const _0x2bd415=[this['titleView']];this['description']&&(this['descriptionView']=new _0x2ca875(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x2bd415['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x2bd415});}['highlightText'](_0x36f7cb){this['titleView']['highlightText'](_0x36f7cb),this['description']&&this['descriptionView']['highlightText'](_0x36f7cb);}}function v(_0x678af4,_0x366994,..._0x503d6d){const t=_0x678af4['t'];switch(_0x366994){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x503d6d);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',..._0x503d6d);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x366994;}}class K extends _0x3c07c8{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1c81ca}=this,_0x59c149=_0x1c81ca['config']['get']('template.definitions')||[];_0x1c81ca['ui']['componentFactory']['add']('insertTemplate',_0x2a076c=>{const _0x304e5d=_0xa9fd20(_0x2a076c),_0x1fe3d0=this['_createTemplateListView'](_0x2a076c,_0x59c149),_0x45fee7=new _0x343193(_0x2a076c,{'filteredView':_0x1fe3d0,'queryView':{'label':v(_0x2a076c,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x44a9f0=>v(_0x2a076c,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x44a9f0),'secondary':v(_0x2a076c,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':v(_0x2a076c,'No\x20templates\x20available.')}}}}),_0x7fcac9=_0x1c81ca['commands']['get']('insertTemplate');return _0x45fee7['on']('search',(_0x5c86e1,_0x3a7da9)=>{_0x3a7da9['query']&&_0x3a7da9['query']['length']&&_0x1c81ca['ui']['ariaLiveAnnouncer']['announce'](v(_0x2a076c,'%0\x20templates\x20found',_0x3a7da9['resultsCount']));}),_0x304e5d['bind']('isEnabled')['to'](_0x7fcac9),_0x304e5d['panelView']['children']['add'](_0x45fee7),_0x304e5d['buttonView']['set']({'label':v(_0x2a076c,'Insert\x20template'),'icon':_0x4d681e,'tooltip':!0x0}),_0x304e5d['on']('change:isOpen',(_0x38ebf5,_0x40e8c2,_0x2f5185)=>{_0x2f5185||_0x45fee7['reset']();}),_0x304e5d;}),_0x1c81ca['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x18c6c0=>{const _0x175431=_0x1c81ca['commands']['get']('insertTemplate'),_0x207f4=new _0x4ea25e(_0x18c6c0);_0x207f4['buttonView']['set']({'label':v(_0x18c6c0,'Template'),'icon':_0x4d681e});const _0x57c88b=new _0x311c41(_0x18c6c0);if(!_0x59c149||!_0x59c149['length']){const _0x5b4dac=new _0x2bd07c(_0x18c6c0,_0x207f4),_0x3ac572=new _0x403170(_0x18c6c0);_0x3ac572['set']({'label':v(_0x18c6c0,'No\x20templates\x20available.')}),_0x3ac572['delegate']('execute')['to'](_0x207f4),_0x3ac572['on']('execute',()=>{_0x1c81ca['editing']['view']['focus']();}),_0x5b4dac['children']['add'](_0x3ac572),_0x57c88b['items']['add'](_0x5b4dac);}for(const _0x3052be of _0x59c149){const _0x2a16b0=new _0x2bd07c(_0x18c6c0,_0x207f4),_0x21d79a=new _0x403170(_0x18c6c0);_0x21d79a['set']({'class':'ck-template-button','label':_0x3052be['title'],'icon':_0x3052be['icon']||_0x379600}),_0x21d79a['delegate']('execute')['to'](_0x207f4),_0x21d79a['on']('execute',()=>{_0x1c81ca['execute']('insertTemplate',_0x3052be['data']),_0x1c81ca['editing']['view']['focus']();}),_0x2a16b0['children']['add'](_0x21d79a),_0x57c88b['items']['add'](_0x2a16b0);}return _0x207f4['panelView']['children']['add'](_0x57c88b),_0x207f4['bind']('isEnabled')['to'](_0x175431,'isEnabled'),_0x207f4;});}['afterInit'](){!async function(_0x354215){const _0x2f478e=_0x2cc7a2([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]),_0x156d0a=0x6b0f5e6f,_0x106a09=0x6b08db7f^_0x156d0a,_0x924608=window[_0x2cc7a2([0x44,0x61,0x74,0x65])][_0x2cc7a2([0x6e,0x6f,0x77])](),_0x47d04b=_0x354215[_0x2cc7a2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1369f1=new window[(_0x2cc7a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34e5a7=>{_0x47d04b[_0x2cc7a2([0x6f,0x6e,0x63,0x65])](_0x2cc7a2([0x72,0x65,0x61,0x64,0x79]),_0x34e5a7);}),_0x35b296={[_0x2cc7a2([0x6b,0x74,0x79])]:_0x2cc7a2([0x45,0x43]),[_0x2cc7a2([0x75,0x73,0x65])]:_0x2cc7a2([0x73,0x69,0x67]),[_0x2cc7a2([0x63,0x72,0x76])]:_0x2cc7a2([0x50,0x2d,0x32,0x35,0x36]),[_0x2cc7a2([0x78])]:_0x2cc7a2([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]),[_0x2cc7a2([0x79])]:_0x2cc7a2([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]),[_0x2cc7a2([0x61,0x6c,0x67])]:_0x2cc7a2([0x45,0x53,0x32,0x35,0x36])},_0x3c16f9=_0x47d04b[_0x2cc7a2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cc7a2([0x67,0x65,0x74])](_0x2cc7a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d1343(){let _0x1d9a59,_0x4b4df6=null,_0x434be1=null;try{if(_0x3c16f9==_0x2cc7a2([0x47,0x50,0x4c]))return _0x2cc7a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d9a59=_0x9c85ed(),!_0x1d9a59)return _0x2cc7a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d9a59[_0x2cc7a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x434be1=_0x40eed5(_0x1d9a59[_0x2cc7a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d9a59[_0x2cc7a2([0x6a,0x74,0x69])])),await _0x3daf6d()?_0x52e01a()?_0x5ba299()?_0x2cc7a2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x21fcad()?(_0x1d9a59[_0x2cc7a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cc7a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b4df6=_0x4f6ae3(_0x2cc7a2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d6868()):_0x2cc7a2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cc7a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cc7a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2cc7a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ba299(){const _0x304484=[_0x2cc7a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cc7a2([0x74,0x72,0x69,0x61,0x6c])][_0x2cc7a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d9a59[_0x2cc7a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x924608/0x3e8:0xe10*_0x106a09;return _0x1d9a59[_0x2cc7a2([0x65,0x78,0x70])]<_0x304484;}function _0x52e01a(){const _0x19e842=_0x1d9a59[_0x2cc7a2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x19e842&&(!!_0x19e842[_0x2cc7a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cc7a2([0x2a]))||(!!_0x19e842[_0x2cc7a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cc7a2([0x54,0x50,0x4c]))||(!!_0x19e842[_0x2cc7a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cc7a2([0x50,0x50]))||(!(!_0x19e842[_0x2cc7a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cc7a2([0x44,0x52,0x55,0x50]))||!_0x3bf4fa())||!(!_0x19e842[_0x2cc7a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cc7a2([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4163af())))));}function _0x21fcad(){const _0x4109f1=_0x1d9a59[_0x2cc7a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4109f1||0x0==_0x4109f1[_0x2cc7a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d5ceb}=new URL(window[_0x2cc7a2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4109f1[_0x2cc7a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d5ceb))return!0x0;const _0x207c9e=_0x3d5ceb[_0x2cc7a2([0x73,0x70,0x6c,0x69,0x74])](_0x2cc7a2([0x2e]));return _0x4109f1[_0x2cc7a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x128d36=>_0x128d36[_0x2cc7a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cc7a2([0x2a])))[_0x2cc7a2([0x6d,0x61,0x70])](_0x3278fc=>_0x3278fc[_0x2cc7a2([0x73,0x70,0x6c,0x69,0x74])](_0x2cc7a2([0x2e])))[_0x2cc7a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x425b70=>_0x425b70[_0x2cc7a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x207c9e[_0x2cc7a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cc7a2([0x6d,0x61,0x70])](_0xd1886e=>Array(_0x207c9e[_0x2cc7a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd1886e[_0x2cc7a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cc7a2([0x66,0x69,0x6c,0x6c])](_0xd1886e[0x0]===_0x2cc7a2([0x2a])?_0x2cc7a2([0x2a]):'')[_0x2cc7a2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd1886e))[_0x2cc7a2([0x73,0x6f,0x6d,0x65])](_0x28ab4d=>_0x207c9e[_0x2cc7a2([0x65,0x76,0x65,0x72,0x79])]((_0x13ecc8,_0x190e6b)=>_0x28ab4d[_0x190e6b]===_0x13ecc8||_0x28ab4d[_0x190e6b]===_0x2cc7a2([0x2a])));}function _0x3d6868(){return _0x4b4df6&&_0x434be1?new window[(_0x2cc7a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c1397,_0x23c0e3)=>{_0x4b4df6[_0x2cc7a2([0x74,0x68,0x65,0x6e])](_0x1c1397,_0x23c0e3),_0x434be1[_0x2cc7a2([0x74,0x68,0x65,0x6e])](_0x4a5e4f=>{_0x4a5e4f!=_0x2cc7a2([0x56,0x61,0x6c,0x69,0x64])&&_0x1c1397(_0x4a5e4f);},_0x23c0e3);}):_0x4b4df6||_0x434be1||_0x2cc7a2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40eed5(_0x22fb84,_0x4e2318){return new window[(_0x2cc7a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x398b43=>{if(_0x5d3640())return _0x398b43(_0x2cc7a2([0x56,0x61,0x6c,0x69,0x64]));_0x55e55d(),_0x47d04b[_0x2cc7a2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cc7a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17f307=!0x1;const _0x2b2029=_0x341a20();function _0x3a49ce(_0x2b7c29){return!!_0x2b7c29&&(typeof _0x2b7c29===_0x2cc7a2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b7c29===_0x2cc7a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b7c29[_0x2cc7a2([0x74,0x68,0x65,0x6e])]===_0x2cc7a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b7c29[_0x2cc7a2([0x63,0x61,0x74,0x63,0x68])]===_0x2cc7a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5f0184(_0x17f705){_0xcf9f73(_0x17f705)[_0x2cc7a2([0x74,0x68,0x65,0x6e])](_0x1a60a8=>{if(!_0x1a60a8||_0x1a60a8[_0x2cc7a2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cc7a2([0x6f,0x6b]))return _0x2cc7a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x23bbee(_0x4bd2be(_0x2b2029+_0x4e2318))!=_0x1a60a8[_0x2cc7a2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cc7a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cc7a2([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cc7a2([0x74,0x68,0x65,0x6e])](_0x4aea96=>(_0x65902c(),_0x4aea96),()=>{const _0x480574=_0x4bd616();return null==_0x480574?(_0x65902c(),_0x2cc7a2([0x56,0x61,0x6c,0x69,0x64])):_0x2cc7a2(_0x924608-_0x480574>(0x4f03da6f^_0x156d0a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cc7a2([0x74,0x68,0x65,0x6e])](_0x398b43)[_0x2cc7a2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x398b43(_0x2cc7a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x170632=0x6b39b0ef^_0x156d0a;function _0x65902c(){const _0x2ab4ff=_0x2cc7a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x23bbee(_0x4bd2be(_0x22fb84)),_0x1c1ad8=_0x4ff6b9(_0x23bbee(window[_0x2cc7a2([0x4d,0x61,0x74,0x68])][_0x2cc7a2([0x63,0x65,0x69,0x6c])](_0x924608/_0x170632)));window[_0x2cc7a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cc7a2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ab4ff,_0x1c1ad8);}function _0x4bd616(){const _0xbb2b59=_0x2cc7a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x23bbee(_0x4bd2be(_0x22fb84)),_0x44415f=window[_0x2cc7a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cc7a2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbb2b59);return _0x44415f?window[_0x2cc7a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ff6b9(_0x44415f),0x10)*_0x170632:null;}function _0xcf9f73(_0x5d2167){return new window[(_0x2cc7a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42572b,_0x5f103e)=>{_0x5d2167[_0x2cc7a2([0x74,0x68,0x65,0x6e])](_0x42572b,_0x5f103e),window[_0x2cc7a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f103e,0x6b0e8aaf^_0x156d0a);});}}_0x47d04b[_0x2cc7a2([0x6f,0x6e])](_0x2cc7a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26bd44,_0x4ea9f0)=>{if(_0x4ea9f0[0x0]!=_0x22fb84)return _0x398b43(_0x2cc7a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ea9f0[0x1]={..._0x4ea9f0[0x1],[_0x2cc7a2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b2029};},{[_0x2cc7a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cc7a2([0x68,0x69,0x67,0x68])}),_0x47d04b[_0x2cc7a2([0x6f,0x6e])](_0x2cc7a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4624c1=>{_0x3a49ce(_0x4624c1[_0x2cc7a2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17f307=!0x0,_0x5f0184(_0x4624c1[_0x2cc7a2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cc7a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cc7a2([0x6c,0x6f,0x77])}),_0x1369f1[_0x2cc7a2([0x74,0x68,0x65,0x6e])](()=>{_0x17f307||_0x398b43(_0x2cc7a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d3640(){return _0x47d04b[_0x2cc7a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cc7a2([0x76,0x69,0x65,0x77])][_0x2cc7a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cc7a2([0x61,0x75,0x74,0x6f]);}function _0x55e55d(){_0x47d04b[_0x2cc7a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cc7a2([0x76,0x69,0x65,0x77])][_0x2cc7a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cc7a2([0x61,0x75,0x74,0x6f]);}}function _0x4f6ae3(_0x1a21e2){const _0x293dff=[new window[(_0x2cc7a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39d589=>setTimeout(_0x39d589,0x6b0660a3^_0x156d0a)),_0x1369f1[_0x2cc7a2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cc7a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ccb7e=>{let _0x3c07e0=0x0;_0x47d04b[_0x2cc7a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cc7a2([0x6f,0x6e])](_0x2cc7a2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f912e,_0x333f06)=>{_0x333f06[0x0][_0x2cc7a2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c07e0++,_0x3c07e0==(0x6b0f5b87^_0x156d0a)&&(_0x1ccb7e(),_0x3f912e[_0x2cc7a2([0x6f,0x66,0x66])]());});}))];return window[_0x2cc7a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cc7a2([0x72,0x61,0x63,0x65])](_0x293dff)[_0x2cc7a2([0x74,0x68,0x65,0x6e])](()=>_0x1a21e2);}async function _0x2082c9(){await _0x1369f1,_0x47d04b[_0x2cc7a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cc7a2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51e858,_0x47d04b[_0x2cc7a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cc7a2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51e858,_0x47d04b[_0x2cc7a2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cc7a2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3bf4fa(){return window[_0x2cc7a2([0x44,0x72,0x75,0x70,0x61,0x6c])];}function _0x4163af(){return window[_0x2cc7a2([0x67,0x6c,0x6f,0x62])]&&window[_0x2cc7a2([0x67,0x6c,0x6f,0x62])][_0x2cc7a2([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1c6071(_0x4b7ffd){const _0x5daf44=_0x546c9c();_0x47d04b[_0x5daf44]=_0x2cc7a2([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b7ffd,_0x4b7ffd!=_0x2cc7a2([0x56,0x61,0x6c,0x69,0x64])&&_0x2082c9();}function _0x546c9c(){const _0x256f03=window[_0x2cc7a2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cc7a2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cc7a2([0x6e,0x6f,0x77])]())[_0x2cc7a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cc7a2([0x2e]),'');let _0x1f3cb0=_0x2cc7a2([0x67]);for(let _0x258ce6=0x0;_0x258ce6<_0x256f03[_0x2cc7a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x258ce6+=0x2){let _0x135215=window[_0x2cc7a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x256f03[_0x2cc7a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x258ce6,_0x258ce6+0x2));_0x135215>=_0x2f478e[_0x2cc7a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x135215-=_0x2f478e[_0x2cc7a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f3cb0+=_0x2f478e[_0x135215];}return _0x1f3cb0;}function _0x9c85ed(){const _0xd74a2c=_0x3c16f9[_0x2cc7a2([0x73,0x70,0x6c,0x69,0x74])](_0x2cc7a2([0x2e]));if(0x3!=_0xd74a2c[_0x2cc7a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35ca23(_0xd74a2c[0x1]);function _0x35ca23(_0x4a4a44){const _0x2176fc=_0x6cc7a2(_0x4a4a44);return _0x2176fc&&_0xe80a5()?_0x2176fc:null;function _0xe80a5(){const _0x51a004=_0x2176fc[_0x2cc7a2([0x6a,0x74,0x69])],_0x2cb796=window[_0x2cc7a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51a004[_0x2cc7a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51a004[_0x2cc7a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50e7fa={..._0x2176fc,[_0x2cc7a2([0x6a,0x74,0x69])]:_0x51a004[_0x2cc7a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51a004[_0x2cc7a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50e7fa[_0x2cc7a2([0x76,0x63])],_0x4bd2be(_0x50e7fa)==_0x2cb796;}}}async function _0x3daf6d(){let _0x33ec06=!0x0;try{const _0x1abb95=_0x3c16f9[_0x2cc7a2([0x73,0x70,0x6c,0x69,0x74])](_0x2cc7a2([0x2e])),[_0x227f72,_0x3b81fd,_0x3e15b0]=_0x1abb95;return _0x3a1b0b(_0x227f72),await _0x3275af(_0x227f72,_0x3b81fd,_0x3e15b0),_0x33ec06;}catch{return!0x1;}function _0x3a1b0b(_0x32d9f8){const _0x5c7140=_0x6cc7a2(_0x32d9f8);_0x5c7140&&_0x5c7140[_0x2cc7a2([0x61,0x6c,0x67])]==_0x2cc7a2([0x45,0x53,0x32,0x35,0x36])||(_0x33ec06=!0x1);}async function _0x3275af(_0x56ed48,_0x1abb8d,_0x394f3a){const _0x20a2f0=window[_0x2cc7a2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cc7a2([0x66,0x72,0x6f,0x6d])](_0x5d70ea(_0x394f3a),_0x5d862c=>_0x5d862c[_0x2cc7a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e0727=new window[(_0x2cc7a2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cc7a2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x56ed48+_0x2cc7a2([0x2e])+_0x1abb8d),_0x4122fc=window[_0x2cc7a2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cc7a2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4122fc)return;const _0x563f2d=await _0x4122fc[_0x2cc7a2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cc7a2([0x6a,0x77,0x6b]),_0x35b296,{[_0x2cc7a2([0x6e,0x61,0x6d,0x65])]:_0x2cc7a2([0x45,0x43,0x44,0x53,0x41]),[_0x2cc7a2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cc7a2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cc7a2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4122fc[_0x2cc7a2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cc7a2([0x6e,0x61,0x6d,0x65])]:_0x2cc7a2([0x45,0x43,0x44,0x53,0x41]),[_0x2cc7a2([0x68,0x61,0x73,0x68])]:{[_0x2cc7a2([0x6e,0x61,0x6d,0x65])]:_0x2cc7a2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x563f2d,_0x20a2f0,_0x4e0727)||(_0x33ec06=!0x1);}}function _0x6cc7a2(_0x282841){return _0x282841[_0x2cc7a2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cc7a2([0x65,0x79]))?JSON[_0x2cc7a2([0x70,0x61,0x72,0x73,0x65])](_0x5d70ea(_0x282841)):null;}function _0x5d70ea(_0x585d02){return window[_0x2cc7a2([0x61,0x74,0x6f,0x62])](_0x585d02[_0x2cc7a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cc7a2([0x2b]))[_0x2cc7a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cc7a2([0x2f])));}function _0x4bd2be(_0x3d14b6){let _0x422da5=0x1505;function _0x35674f(_0x16f705){for(let _0x1157a6=0x0;_0x1157a6<_0x16f705[_0x2cc7a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1157a6++){const _0x1bedba=_0x16f705[_0x2cc7a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1157a6);_0x422da5=(_0x422da5<<0x5)+_0x422da5+_0x1bedba,_0x422da5&=_0x422da5;}}function _0x2d0600(_0x50417d){Array[_0x2cc7a2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x50417d)?_0x50417d[_0x2cc7a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d0600):_0x50417d&&typeof _0x50417d==_0x2cc7a2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cc7a2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x50417d)[_0x2cc7a2([0x73,0x6f,0x72,0x74])]()[_0x2cc7a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f60d1,_0x1984bd])=>{_0x35674f(_0x2f60d1),_0x2d0600(_0x1984bd);}):_0x35674f(window[_0x2cc7a2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x50417d));}return _0x2d0600(_0x3d14b6),_0x422da5>>>0x0;}function _0x23bbee(_0x313340){return _0x313340[_0x2cc7a2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cc7a2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cc7a2([0x30]));}function _0x4ff6b9(_0x30d194){return _0x30d194[_0x2cc7a2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cc7a2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cc7a2([0x6a,0x6f,0x69,0x6e])]('');}function _0x51e858(){}function _0x2cc7a2(_0x19112a){return _0x19112a['map'](_0x691509=>String['fromCharCode'](_0x691509))['join']('');}_0x1c6071(await _0x5d1343());}(this);}['_createTemplateListView'](_0x4aa17f,_0x25a229){const {editor:_0x1f23b8}=this,_0x5e0c0f=new x(_0x4aa17f);return _0x5e0c0f['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x5e0c0f['items']['addMany'](_0x25a229['map']((_0x5cb62f,_0xeb2cc8)=>{const _0x1bf064=new L(_0x4aa17f,_0xeb2cc8),_0x4763b3=new k(_0x4aa17f,_0x5cb62f);return _0x1bf064['buttonView']=_0x4763b3,_0x1bf064['children']['add'](_0x4763b3),_0x1bf064['buttonView']['on']('execute',_0x2a7f9d=>{_0x1f23b8['execute']('insertTemplate',_0x2a7f9d['source']['templateDefinition']['data']),_0x1f23b8['editing']['view']['focus']();}),_0x1bf064;})),_0x5e0c0f;}}class I extends _0x3c07c8{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.3",
|
|
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.3",
|
|
35
|
+
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.3",
|
|
36
|
+
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.3",
|
|
37
|
+
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.3"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
40
40
|
"dist",
|