@ckeditor/ckeditor5-template 0.0.0-nightly-next-20260109.0 → 0.0.0-nightly-next-20260110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 _0x529dbc,Plugin as _0x5d9ae4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconTemplateGeneric as _0x1f9723,IconTemplate as _0x2c726a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ListView as _0x204da2,ListItemView as _0x386963,ButtonView as _0x41a710,View as _0xf4a675,HighlightedTextView as _0x38154f,createDropdown as _0x5bf905,SearchTextView as _0x4387ae,MenuBarMenuView as _0x1f427f,MenuBarMenuListView as _0x532560,MenuBarMenuListItemView as _0x455c89,MenuBarMenuListItemButtonView as _0xffb7ef}from'@ckeditor/ckeditor5-ui/dist/index.js';import{uid as _0x372765}from'@ckeditor/ckeditor5-utils/dist/index.js';class g extends _0x529dbc{['execute'](_0x1f293f){const {model:_0xfe64a8}=this['editor'];let _0x491836;switch(typeof _0x1f293f){case'string':_0x491836=_0x1f293f;break;case'function':_0x491836=_0x1f293f();}'string'==typeof _0x491836&&_0xfe64a8['change'](()=>{const _0x567678=this['editor']['data']['htmlProcessor']['toView'](_0x491836),_0x39a826=this['editor']['data']['toModel'](_0x567678);_0xfe64a8['insertContent'](_0x39a826);});}}class y extends _0x5d9ae4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5f855e}=this;_0x5f855e['commands']['add']('insertTemplate',new g(_0x5f855e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a2f16=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x51c05a;for(const _0x4e1777 in _0x4a2f16){const _0x5ecd94=_0x4e1777,_0x4640=_0x4a2f16[_0x5ecd94];if('templateLicenseKeyValid'==_0x4640||'templateLicenseKeyInvalid'==_0x4640||'templateLicenseKeyExpired'==_0x4640||'templateLicenseKeyDomainLimit'==_0x4640||'templateLicenseKeyNotAllowed'==_0x4640||'templateLicenseKeyEvaluationLimit'==_0x4640||'templateLicenseKeyUsageLimit'==_0x4640){delete _0x4a2f16[_0x5ecd94],_0x51c05a=_0x4640,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x51c05a&&_0x4a2f16['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x51c05a&&_0x4a2f16['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x51c05a&&_0x4a2f16['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x51c05a&&_0x4a2f16['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x51c05a&&_0x4a2f16['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x51c05a&&_0x4a2f16['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class x extends _0x204da2{['filter'](_0x136419){if(!_0x136419)return this['_resetFiltering']();const _0x316f52=new Map(),_0xc04eea=this['items']['map'](_0x383b57=>{const _0x2e935f=_0x383b57['buttonView']['isMatching'](_0x136419);return _0x383b57['isVisible']=!!_0x2e935f,_0x383b57['buttonView']['highlightText'](_0x2e935f?_0x136419:null),_0x2e935f&&_0x316f52['set'](_0x383b57,_0x2e935f),_0x383b57;})['sort'](b)['sort'](function(_0x26ae37){return function(_0x4c813d,_0x1fbe83){const _0x1fbb30=_0x26ae37['get'](_0x4c813d),_0x146d98=_0x26ae37['get'](_0x1fbe83);return _0x1fbb30&&!_0x146d98?-0x1:_0x146d98&&!_0x1fbb30?0x1:_0x1fbb30||_0x146d98?_0x1fbb30['title']&&!_0x146d98['title']?-0x1:!_0x1fbb30['title']&&_0x146d98['title']?0x1:0x0:0x0;};}(_0x316f52));return this['items']['clear'](),this['items']['addMany'](_0xc04eea),{'resultsCount':_0x316f52['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x4f86c7=this['items']['map'](_0x386949=>_0x386949)['sort'](b);return _0x4f86c7['forEach'](_0x530d26=>{_0x530d26['isVisible']=!0x0,_0x530d26['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x4f86c7),{'resultsCount':_0x4f86c7['length'],'totalItemsCount':_0x4f86c7['length']};}}function b(_0x1ac44b,_0x3daf53){return _0x1ac44b['originalIndex']-_0x3daf53['originalIndex'];}class L extends _0x386963{['originalIndex'];['buttonView'];constructor(_0x3f9ae2,_0x3e427b){super(_0x3f9ae2),this['originalIndex']=_0x3e427b,this['buttonView']=null;}}class k extends _0x41a710{['templateDefinition'];['textPartView'];constructor(_0x3d4f71,_0x3a653b){super(_0x3d4f71),this['templateDefinition']=_0x3a653b,this['textPartView']=null;const {icon:_0x3d5813=_0x1f9723}=_0x3a653b;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x3d5813}),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'](_0x4b52f6){const {title:_0x1f8074,description:_0x4423d3}=this['templateDefinition'],_0x2a5580=!!_0x1f8074['match'](_0x4b52f6),_0x2fc484=!(!_0x4423d3||!_0x4423d3['match'](_0x4b52f6));return _0x2a5580||_0x2fc484?{'title':_0x2a5580,'description':_0x2fc484}:null;}['highlightText'](_0x14f85f){this['textPartView']['highlightText'](_0x14f85f);}}class T extends _0xf4a675{constructor(_0x475d11,_0x21f8cb,_0x2781c7){super(_0x475d11),this['title']=_0x21f8cb['title'],this['description']=_0x21f8cb['description'],this['titleView']=new _0x38154f(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x2781c7}});const _0x3d5596=[this['titleView']];this['description']&&(this['descriptionView']=new _0x38154f(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x3d5596['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x3d5596});}['highlightText'](_0x257851){this['titleView']['highlightText'](_0x257851),this['description']&&this['descriptionView']['highlightText'](_0x257851);}}function v(_0xc9902d,_0x545851,..._0x3c4677){const t=_0xc9902d['t'];switch(_0x545851){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x3c4677);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',..._0x3c4677);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x545851;}}class K extends _0x5d9ae4{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2000b5}=this,_0x1b8b95=_0x2000b5['config']['get']('template.definitions')||[];_0x2000b5['ui']['componentFactory']['add']('insertTemplate',_0x13c66f=>{const _0x232ec8=_0x5bf905(_0x13c66f),_0x507714=this['_createTemplateListView'](_0x13c66f,_0x1b8b95),_0x169271=new _0x4387ae(_0x13c66f,{'filteredView':_0x507714,'queryView':{'label':v(_0x13c66f,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x72d02f=>v(_0x13c66f,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x72d02f),'secondary':v(_0x13c66f,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':v(_0x13c66f,'No\x20templates\x20available.')}}}}),_0x1d13e4=_0x2000b5['commands']['get']('insertTemplate');return _0x169271['on']('search',(_0x391e56,_0x4af0cf)=>{_0x4af0cf['query']&&_0x4af0cf['query']['length']&&_0x2000b5['ui']['ariaLiveAnnouncer']['announce'](v(_0x13c66f,'%0\x20templates\x20found',_0x4af0cf['resultsCount']));}),_0x232ec8['bind']('isEnabled')['to'](_0x1d13e4),_0x232ec8['panelView']['children']['add'](_0x169271),_0x232ec8['buttonView']['set']({'label':v(_0x13c66f,'Insert\x20template'),'icon':_0x2c726a,'tooltip':!0x0}),_0x232ec8['on']('change:isOpen',(_0x49fddf,_0x1a44d6,_0x2bc3c6)=>{_0x2bc3c6||_0x169271['reset']();}),_0x232ec8;}),_0x2000b5['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x15cd18=>{const _0x4168f6=_0x2000b5['commands']['get']('insertTemplate'),_0x3d185f=new _0x1f427f(_0x15cd18);_0x3d185f['buttonView']['set']({'label':v(_0x15cd18,'Template'),'icon':_0x2c726a});const _0x422bb4=new _0x532560(_0x15cd18);if(!_0x1b8b95||!_0x1b8b95['length']){const _0x30ce94=new _0x455c89(_0x15cd18,_0x3d185f),_0x4f3796=new _0xffb7ef(_0x15cd18);_0x4f3796['set']({'label':v(_0x15cd18,'No\x20templates\x20available.')}),_0x4f3796['delegate']('execute')['to'](_0x3d185f),_0x4f3796['on']('execute',()=>{_0x2000b5['editing']['view']['focus']();}),_0x30ce94['children']['add'](_0x4f3796),_0x422bb4['items']['add'](_0x30ce94);}for(const _0x1f9361 of _0x1b8b95){const _0xc51e00=new _0x455c89(_0x15cd18,_0x3d185f),_0x5d9aae=new _0xffb7ef(_0x15cd18);_0x5d9aae['set']({'class':'ck-template-button','label':_0x1f9361['title'],'icon':_0x1f9361['icon']||_0x1f9723}),_0x5d9aae['delegate']('execute')['to'](_0x3d185f),_0x5d9aae['on']('execute',()=>{_0x2000b5['execute']('insertTemplate',_0x1f9361['data']),_0x2000b5['editing']['view']['focus']();}),_0xc51e00['children']['add'](_0x5d9aae),_0x422bb4['items']['add'](_0xc51e00);}return _0x3d185f['panelView']['children']['add'](_0x422bb4),_0x3d185f['bind']('isEnabled')['to'](_0x4168f6,'isEnabled'),_0x3d185f;});}['afterInit'](){!async function(_0x2ef0c0){const _0x1f4ea6=_0x57c55c([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]),_0x3e6754=0x6b0f5e6f,_0x4723c7=0x6b08203f^_0x3e6754,_0x56c6ec=window[_0x57c55c([0x44,0x61,0x74,0x65])][_0x57c55c([0x6e,0x6f,0x77])](),_0x1da7ee=_0x2ef0c0[_0x57c55c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x493eab=new window[(_0x57c55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x257ac7=>{_0x1da7ee[_0x57c55c([0x6f,0x6e,0x63,0x65])](_0x57c55c([0x72,0x65,0x61,0x64,0x79]),_0x257ac7);}),_0x15595d={[_0x57c55c([0x6b,0x74,0x79])]:_0x57c55c([0x45,0x43]),[_0x57c55c([0x75,0x73,0x65])]:_0x57c55c([0x73,0x69,0x67]),[_0x57c55c([0x63,0x72,0x76])]:_0x57c55c([0x50,0x2d,0x32,0x35,0x36]),[_0x57c55c([0x78])]:_0x57c55c([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]),[_0x57c55c([0x79])]:_0x57c55c([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]),[_0x57c55c([0x61,0x6c,0x67])]:_0x57c55c([0x45,0x53,0x32,0x35,0x36])},_0x1e3068=_0x1da7ee[_0x57c55c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x57c55c([0x67,0x65,0x74])](_0x57c55c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x53a012(){let _0xf07139,_0x435b54=null,_0x1ca3b2=null;try{if(_0x1e3068==_0x57c55c([0x47,0x50,0x4c]))return _0x57c55c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf07139=_0x37fb14(),!_0xf07139)return _0x57c55c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf07139[_0x57c55c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ca3b2=_0x4293ff(_0xf07139[_0x57c55c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf07139[_0x57c55c([0x6a,0x74,0x69])])),await _0x43da43()?_0x1026f0()?_0x488bef()?_0x57c55c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29820d()?(_0xf07139[_0x57c55c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57c55c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x435b54=_0x21b4e0(_0x57c55c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xdddb35()):_0x57c55c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x57c55c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x57c55c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x57c55c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x488bef(){const _0x295753=[_0x57c55c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x57c55c([0x74,0x72,0x69,0x61,0x6c])][_0x57c55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf07139[_0x57c55c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56c6ec/0x3e8:0xe10*_0x4723c7;return _0xf07139[_0x57c55c([0x65,0x78,0x70])]<_0x295753;}function _0x1026f0(){const _0x492bb5=_0xf07139[_0x57c55c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x492bb5&&(!!_0x492bb5[_0x57c55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57c55c([0x2a]))||(!!_0x492bb5[_0x57c55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57c55c([0x54,0x50,0x4c]))||(!!_0x492bb5[_0x57c55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57c55c([0x50,0x50]))||(!(!_0x492bb5[_0x57c55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57c55c([0x44,0x52,0x55,0x50]))||!_0x11b378())||!(!_0x492bb5[_0x57c55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57c55c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x1ade73())))));}function _0x29820d(){const _0x25de32=_0xf07139[_0x57c55c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x25de32||0x0==_0x25de32[_0x57c55c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a8501}=new URL(window[_0x57c55c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x25de32[_0x57c55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a8501))return!0x0;const _0x596e77=_0x3a8501[_0x57c55c([0x73,0x70,0x6c,0x69,0x74])](_0x57c55c([0x2e]));return _0x25de32[_0x57c55c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x162b4e=>_0x162b4e[_0x57c55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57c55c([0x2a])))[_0x57c55c([0x6d,0x61,0x70])](_0x1b0e14=>_0x1b0e14[_0x57c55c([0x73,0x70,0x6c,0x69,0x74])](_0x57c55c([0x2e])))[_0x57c55c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2abc38=>_0x2abc38[_0x57c55c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x596e77[_0x57c55c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57c55c([0x6d,0x61,0x70])](_0x363136=>Array(_0x596e77[_0x57c55c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x363136[_0x57c55c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57c55c([0x66,0x69,0x6c,0x6c])](_0x363136[0x0]===_0x57c55c([0x2a])?_0x57c55c([0x2a]):'')[_0x57c55c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x363136))[_0x57c55c([0x73,0x6f,0x6d,0x65])](_0x5bb352=>_0x596e77[_0x57c55c([0x65,0x76,0x65,0x72,0x79])]((_0x439670,_0x8ff5d0)=>_0x5bb352[_0x8ff5d0]===_0x439670||_0x5bb352[_0x8ff5d0]===_0x57c55c([0x2a])));}function _0xdddb35(){return _0x435b54&&_0x1ca3b2?new window[(_0x57c55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43f433,_0x22f74f)=>{_0x435b54[_0x57c55c([0x74,0x68,0x65,0x6e])](_0x43f433,_0x22f74f),_0x1ca3b2[_0x57c55c([0x74,0x68,0x65,0x6e])](_0x5a7632=>{_0x5a7632!=_0x57c55c([0x56,0x61,0x6c,0x69,0x64])&&_0x43f433(_0x5a7632);},_0x22f74f);}):_0x435b54||_0x1ca3b2||_0x57c55c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4293ff(_0xe1073b,_0x3a9fed){return new window[(_0x57c55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x722325=>{if(_0x46f5e8())return _0x722325(_0x57c55c([0x56,0x61,0x6c,0x69,0x64]));_0x127151(),_0x1da7ee[_0x57c55c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x57c55c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x45184f=!0x1;const _0x4aaf9c=_0x372765();function _0x38d085(_0x504cca){return!!_0x504cca&&(typeof _0x504cca===_0x57c55c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x504cca===_0x57c55c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x504cca[_0x57c55c([0x74,0x68,0x65,0x6e])]===_0x57c55c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x504cca[_0x57c55c([0x63,0x61,0x74,0x63,0x68])]===_0x57c55c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5673f4(_0x4ed953){_0x193659(_0x4ed953)[_0x57c55c([0x74,0x68,0x65,0x6e])](_0x4a050e=>{if(!_0x4a050e||_0x4a050e[_0x57c55c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x57c55c([0x6f,0x6b]))return _0x57c55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4aa31e(_0xfc271(_0x4aaf9c+_0x3a9fed))!=_0x4a050e[_0x57c55c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x57c55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x57c55c([0x56,0x61,0x6c,0x69,0x64]);})[_0x57c55c([0x74,0x68,0x65,0x6e])](_0x2275c3=>(_0x1c9cb4(),_0x2275c3),()=>{const _0x18fe64=_0x26a2a8();return null==_0x18fe64?(_0x1c9cb4(),_0x57c55c([0x56,0x61,0x6c,0x69,0x64])):_0x57c55c(_0x56c6ec-_0x18fe64>(0x4f03da6f^_0x3e6754)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x57c55c([0x74,0x68,0x65,0x6e])](_0x722325)[_0x57c55c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x722325(_0x57c55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c8fe4=0x6b39b0ef^_0x3e6754;function _0x1c9cb4(){const _0x3f8184=_0x57c55c([0x6c,0x6c,0x63,0x74,0x2d])+_0x4aa31e(_0xfc271(_0xe1073b)),_0x11ac6b=_0x1fa136(_0x4aa31e(window[_0x57c55c([0x4d,0x61,0x74,0x68])][_0x57c55c([0x63,0x65,0x69,0x6c])](_0x56c6ec/_0x2c8fe4)));window[_0x57c55c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57c55c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f8184,_0x11ac6b);}function _0x26a2a8(){const _0x5cb685=_0x57c55c([0x6c,0x6c,0x63,0x74,0x2d])+_0x4aa31e(_0xfc271(_0xe1073b)),_0x3e2d16=window[_0x57c55c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57c55c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cb685);return _0x3e2d16?window[_0x57c55c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fa136(_0x3e2d16),0x10)*_0x2c8fe4:null;}function _0x193659(_0x4b5d1f){return new window[(_0x57c55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57be67,_0x56180e)=>{_0x4b5d1f[_0x57c55c([0x74,0x68,0x65,0x6e])](_0x57be67,_0x56180e),window[_0x57c55c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56180e,0x6b0e8aaf^_0x3e6754);});}}_0x1da7ee[_0x57c55c([0x6f,0x6e])](_0x57c55c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x129e30,_0x483c22)=>{if(_0x483c22[0x0]!=_0xe1073b)return _0x722325(_0x57c55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x483c22[0x1]={..._0x483c22[0x1],[_0x57c55c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4aaf9c};},{[_0x57c55c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57c55c([0x68,0x69,0x67,0x68])}),_0x1da7ee[_0x57c55c([0x6f,0x6e])](_0x57c55c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a043d=>{_0x38d085(_0x5a043d[_0x57c55c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x45184f=!0x0,_0x5673f4(_0x5a043d[_0x57c55c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x57c55c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57c55c([0x6c,0x6f,0x77])}),_0x493eab[_0x57c55c([0x74,0x68,0x65,0x6e])](()=>{_0x45184f||_0x722325(_0x57c55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x46f5e8(){return _0x1da7ee[_0x57c55c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57c55c([0x76,0x69,0x65,0x77])][_0x57c55c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x57c55c([0x61,0x75,0x74,0x6f]);}function _0x127151(){_0x1da7ee[_0x57c55c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57c55c([0x76,0x69,0x65,0x77])][_0x57c55c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57c55c([0x61,0x75,0x74,0x6f]);}}function _0x21b4e0(_0x525d93){const _0x12db16=[new window[(_0x57c55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d605f=>setTimeout(_0x1d605f,0x6b0660a3^_0x3e6754)),_0x493eab[_0x57c55c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x57c55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bc8fd=>{let _0x591f1a=0x0;_0x1da7ee[_0x57c55c([0x6d,0x6f,0x64,0x65,0x6c])][_0x57c55c([0x6f,0x6e])](_0x57c55c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x329512,_0x2143b8)=>{_0x2143b8[0x0][_0x57c55c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x591f1a++,_0x591f1a==(0x6b0f5b87^_0x3e6754)&&(_0x2bc8fd(),_0x329512[_0x57c55c([0x6f,0x66,0x66])]());});}))];return window[_0x57c55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57c55c([0x72,0x61,0x63,0x65])](_0x12db16)[_0x57c55c([0x74,0x68,0x65,0x6e])](()=>_0x525d93);}async function _0x1a4cf2(){await _0x493eab,_0x1da7ee[_0x57c55c([0x6d,0x6f,0x64,0x65,0x6c])][_0x57c55c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c7640,_0x1da7ee[_0x57c55c([0x6d,0x6f,0x64,0x65,0x6c])][_0x57c55c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c7640,_0x1da7ee[_0x57c55c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x57c55c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x11b378(){return window[_0x57c55c([0x44,0x72,0x75,0x70,0x61,0x6c])];}function _0x1ade73(){return window[_0x57c55c([0x67,0x6c,0x6f,0x62])]&&window[_0x57c55c([0x67,0x6c,0x6f,0x62])][_0x57c55c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0xe311a0(_0x57b4cb){const _0x2214a2=_0x37bb66();_0x1da7ee[_0x2214a2]=_0x57c55c([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x57b4cb,_0x57b4cb!=_0x57c55c([0x56,0x61,0x6c,0x69,0x64])&&_0x1a4cf2();}function _0x37bb66(){const _0x5b138f=window[_0x57c55c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x57c55c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x57c55c([0x6e,0x6f,0x77])]())[_0x57c55c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x57c55c([0x2e]),'');let _0x5f1808=_0x57c55c([0x67]);for(let _0x38cbb9=0x0;_0x38cbb9<_0x5b138f[_0x57c55c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38cbb9+=0x2){let _0x5d54f5=window[_0x57c55c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b138f[_0x57c55c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38cbb9,_0x38cbb9+0x2));_0x5d54f5>=_0x1f4ea6[_0x57c55c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d54f5-=_0x1f4ea6[_0x57c55c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f1808+=_0x1f4ea6[_0x5d54f5];}return _0x5f1808;}function _0x37fb14(){const _0x2e0fb2=_0x1e3068[_0x57c55c([0x73,0x70,0x6c,0x69,0x74])](_0x57c55c([0x2e]));if(0x3!=_0x2e0fb2[_0x57c55c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa134fc(_0x2e0fb2[0x1]);function _0xa134fc(_0x38fbcf){const _0x2316a4=_0x38c997(_0x38fbcf);return _0x2316a4&&_0x5b4509()?_0x2316a4:null;function _0x5b4509(){const _0x2406cd=_0x2316a4[_0x57c55c([0x6a,0x74,0x69])],_0x4384e4=window[_0x57c55c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2406cd[_0x57c55c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2406cd[_0x57c55c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4bb268={..._0x2316a4,[_0x57c55c([0x6a,0x74,0x69])]:_0x2406cd[_0x57c55c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2406cd[_0x57c55c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4bb268[_0x57c55c([0x76,0x63])],_0xfc271(_0x4bb268)==_0x4384e4;}}}async function _0x43da43(){let _0x54e4e7=!0x0;try{const _0x243234=_0x1e3068[_0x57c55c([0x73,0x70,0x6c,0x69,0x74])](_0x57c55c([0x2e])),[_0x16605b,_0x3a38a9,_0x1affdd]=_0x243234;return _0x16762e(_0x16605b),await _0x5454f2(_0x16605b,_0x3a38a9,_0x1affdd),_0x54e4e7;}catch{return!0x1;}function _0x16762e(_0x3b2298){const _0x35f64a=_0x38c997(_0x3b2298);_0x35f64a&&_0x35f64a[_0x57c55c([0x61,0x6c,0x67])]==_0x57c55c([0x45,0x53,0x32,0x35,0x36])||(_0x54e4e7=!0x1);}async function _0x5454f2(_0x197e6f,_0x1c88dd,_0x58560c){const _0x5f1159=window[_0x57c55c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x57c55c([0x66,0x72,0x6f,0x6d])](_0x2deec9(_0x58560c),_0x451c26=>_0x451c26[_0x57c55c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2edbe3=new window[(_0x57c55c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x57c55c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x197e6f+_0x57c55c([0x2e])+_0x1c88dd),_0x466c15=window[_0x57c55c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x57c55c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x466c15)return;const _0x582b5c=await _0x466c15[_0x57c55c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x57c55c([0x6a,0x77,0x6b]),_0x15595d,{[_0x57c55c([0x6e,0x61,0x6d,0x65])]:_0x57c55c([0x45,0x43,0x44,0x53,0x41]),[_0x57c55c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x57c55c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x57c55c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x466c15[_0x57c55c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x57c55c([0x6e,0x61,0x6d,0x65])]:_0x57c55c([0x45,0x43,0x44,0x53,0x41]),[_0x57c55c([0x68,0x61,0x73,0x68])]:{[_0x57c55c([0x6e,0x61,0x6d,0x65])]:_0x57c55c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x582b5c,_0x5f1159,_0x2edbe3)||(_0x54e4e7=!0x1);}}function _0x38c997(_0x4db387){return _0x4db387[_0x57c55c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x57c55c([0x65,0x79]))?JSON[_0x57c55c([0x70,0x61,0x72,0x73,0x65])](_0x2deec9(_0x4db387)):null;}function _0x2deec9(_0x7c7f92){return window[_0x57c55c([0x61,0x74,0x6f,0x62])](_0x7c7f92[_0x57c55c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x57c55c([0x2b]))[_0x57c55c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x57c55c([0x2f])));}function _0xfc271(_0x2041a7){let _0x277af2=0x1505;function _0x5a2190(_0x483475){for(let _0x3f28fb=0x0;_0x3f28fb<_0x483475[_0x57c55c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f28fb++){const _0x10ea92=_0x483475[_0x57c55c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f28fb);_0x277af2=(_0x277af2<<0x5)+_0x277af2+_0x10ea92,_0x277af2&=_0x277af2;}}function _0x14cbce(_0x41f035){Array[_0x57c55c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41f035)?_0x41f035[_0x57c55c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14cbce):_0x41f035&&typeof _0x41f035==_0x57c55c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x57c55c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41f035)[_0x57c55c([0x73,0x6f,0x72,0x74])]()[_0x57c55c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5578bb,_0x31cfc7])=>{_0x5a2190(_0x5578bb),_0x14cbce(_0x31cfc7);}):_0x5a2190(window[_0x57c55c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41f035));}return _0x14cbce(_0x2041a7),_0x277af2>>>0x0;}function _0x4aa31e(_0x96b844){return _0x96b844[_0x57c55c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x57c55c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x57c55c([0x30]));}function _0x1fa136(_0x467e9c){return _0x467e9c[_0x57c55c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x57c55c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x57c55c([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c7640(){}function _0x57c55c(_0x1405b0){return _0x1405b0['map'](_0x4109db=>String['fromCharCode'](_0x4109db))['join']('');}_0xe311a0(await _0x53a012());}(this);}['_createTemplateListView'](_0x1f017e,_0x47d964){const {editor:_0x4f5dea}=this,_0x50f15a=new x(_0x1f017e);return _0x50f15a['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x50f15a['items']['addMany'](_0x47d964['map']((_0x2ad2ae,_0xa43962)=>{const _0x754e08=new L(_0x1f017e,_0xa43962),_0x56f4d1=new k(_0x1f017e,_0x2ad2ae);return _0x754e08['buttonView']=_0x56f4d1,_0x754e08['children']['add'](_0x56f4d1),_0x754e08['buttonView']['on']('execute',_0x3c24d2=>{_0x4f5dea['execute']('insertTemplate',_0x3c24d2['source']['templateDefinition']['data']),_0x4f5dea['editing']['view']['focus']();}),_0x754e08;})),_0x50f15a;}}class I extends _0x5d9ae4{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 _0x4dc578,Plugin as _0x2de76e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconTemplateGeneric as _0x37223b,IconTemplate as _0x2e4f53}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ListView as _0x1bc83d,ListItemView as _0x4e605e,ButtonView as _0x3239f8,View as _0x9c8604,HighlightedTextView as _0x16bda5,createDropdown as _0x12c4f9,SearchTextView as _0x749ef1,MenuBarMenuView as _0x453963,MenuBarMenuListView as _0x3b184c,MenuBarMenuListItemView as _0xa5d435,MenuBarMenuListItemButtonView as _0x3995b8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{uid as _0x2f2494}from'@ckeditor/ckeditor5-utils/dist/index.js';class g extends _0x4dc578{['execute'](_0x178516){const {model:_0x3bfc1c}=this['editor'];let _0x208b9f;switch(typeof _0x178516){case'string':_0x208b9f=_0x178516;break;case'function':_0x208b9f=_0x178516();}'string'==typeof _0x208b9f&&_0x3bfc1c['change'](()=>{const _0x5f2b3f=this['editor']['data']['htmlProcessor']['toView'](_0x208b9f),_0x78106f=this['editor']['data']['toModel'](_0x5f2b3f);_0x3bfc1c['insertContent'](_0x78106f);});}}class y extends _0x2de76e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2f6643}=this;_0x2f6643['commands']['add']('insertTemplate',new g(_0x2f6643)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4adaa2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1bc996;for(const _0x32cb7e in _0x4adaa2){const _0xc5c44c=_0x32cb7e,_0x1453b2=_0x4adaa2[_0xc5c44c];if('templateLicenseKeyValid'==_0x1453b2||'templateLicenseKeyInvalid'==_0x1453b2||'templateLicenseKeyExpired'==_0x1453b2||'templateLicenseKeyDomainLimit'==_0x1453b2||'templateLicenseKeyNotAllowed'==_0x1453b2||'templateLicenseKeyEvaluationLimit'==_0x1453b2||'templateLicenseKeyUsageLimit'==_0x1453b2){delete _0x4adaa2[_0xc5c44c],_0x1bc996=_0x1453b2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x1bc996&&_0x4adaa2['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x1bc996&&_0x4adaa2['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x1bc996&&_0x4adaa2['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x1bc996&&_0x4adaa2['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x1bc996&&_0x4adaa2['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x1bc996&&_0x4adaa2['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class x extends _0x1bc83d{['filter'](_0x594aba){if(!_0x594aba)return this['_resetFiltering']();const _0x2f382f=new Map(),_0x443a61=this['items']['map'](_0x97ab93=>{const _0x49242e=_0x97ab93['buttonView']['isMatching'](_0x594aba);return _0x97ab93['isVisible']=!!_0x49242e,_0x97ab93['buttonView']['highlightText'](_0x49242e?_0x594aba:null),_0x49242e&&_0x2f382f['set'](_0x97ab93,_0x49242e),_0x97ab93;})['sort'](b)['sort'](function(_0x5dd55c){return function(_0x3f39c3,_0x53db08){const _0x499edb=_0x5dd55c['get'](_0x3f39c3),_0x136f73=_0x5dd55c['get'](_0x53db08);return _0x499edb&&!_0x136f73?-0x1:_0x136f73&&!_0x499edb?0x1:_0x499edb||_0x136f73?_0x499edb['title']&&!_0x136f73['title']?-0x1:!_0x499edb['title']&&_0x136f73['title']?0x1:0x0:0x0;};}(_0x2f382f));return this['items']['clear'](),this['items']['addMany'](_0x443a61),{'resultsCount':_0x2f382f['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x404473=this['items']['map'](_0x312a94=>_0x312a94)['sort'](b);return _0x404473['forEach'](_0xb56b0=>{_0xb56b0['isVisible']=!0x0,_0xb56b0['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x404473),{'resultsCount':_0x404473['length'],'totalItemsCount':_0x404473['length']};}}function b(_0x254c55,_0x2578c4){return _0x254c55['originalIndex']-_0x2578c4['originalIndex'];}class L extends _0x4e605e{['originalIndex'];['buttonView'];constructor(_0x360935,_0x5cee2e){super(_0x360935),this['originalIndex']=_0x5cee2e,this['buttonView']=null;}}class k extends _0x3239f8{['templateDefinition'];['textPartView'];constructor(_0x533f91,_0x2b61fd){super(_0x533f91),this['templateDefinition']=_0x2b61fd,this['textPartView']=null;const {icon:_0x1fe4c1=_0x37223b}=_0x2b61fd;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x1fe4c1}),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'](_0x33bf27){const {title:_0x20a068,description:_0x15355b}=this['templateDefinition'],_0x3c473b=!!_0x20a068['match'](_0x33bf27),_0x3f6b11=!(!_0x15355b||!_0x15355b['match'](_0x33bf27));return _0x3c473b||_0x3f6b11?{'title':_0x3c473b,'description':_0x3f6b11}:null;}['highlightText'](_0xed94ae){this['textPartView']['highlightText'](_0xed94ae);}}class T extends _0x9c8604{constructor(_0x461c4a,_0x18a1a8,_0x66330c){super(_0x461c4a),this['title']=_0x18a1a8['title'],this['description']=_0x18a1a8['description'],this['titleView']=new _0x16bda5(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x66330c}});const _0x14c40c=[this['titleView']];this['description']&&(this['descriptionView']=new _0x16bda5(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x14c40c['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x14c40c});}['highlightText'](_0x39142b){this['titleView']['highlightText'](_0x39142b),this['description']&&this['descriptionView']['highlightText'](_0x39142b);}}function v(_0x4a9ca5,_0x3a380f,..._0x4ad4d4){const t=_0x4a9ca5['t'];switch(_0x3a380f){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x4ad4d4);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',..._0x4ad4d4);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x3a380f;}}class K extends _0x2de76e{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4008c3}=this,_0x4c3179=_0x4008c3['config']['get']('template.definitions')||[];_0x4008c3['ui']['componentFactory']['add']('insertTemplate',_0x4ac8ca=>{const _0x2f0741=_0x12c4f9(_0x4ac8ca),_0x4e32a7=this['_createTemplateListView'](_0x4ac8ca,_0x4c3179),_0x1307c9=new _0x749ef1(_0x4ac8ca,{'filteredView':_0x4e32a7,'queryView':{'label':v(_0x4ac8ca,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x3011dd=>v(_0x4ac8ca,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x3011dd),'secondary':v(_0x4ac8ca,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':v(_0x4ac8ca,'No\x20templates\x20available.')}}}}),_0x5a1762=_0x4008c3['commands']['get']('insertTemplate');return _0x1307c9['on']('search',(_0x512de8,_0x645292)=>{_0x645292['query']&&_0x645292['query']['length']&&_0x4008c3['ui']['ariaLiveAnnouncer']['announce'](v(_0x4ac8ca,'%0\x20templates\x20found',_0x645292['resultsCount']));}),_0x2f0741['bind']('isEnabled')['to'](_0x5a1762),_0x2f0741['panelView']['children']['add'](_0x1307c9),_0x2f0741['buttonView']['set']({'label':v(_0x4ac8ca,'Insert\x20template'),'icon':_0x2e4f53,'tooltip':!0x0}),_0x2f0741['on']('change:isOpen',(_0x5e60d2,_0x19c779,_0x4b31f1)=>{_0x4b31f1||_0x1307c9['reset']();}),_0x2f0741;}),_0x4008c3['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x5935dd=>{const _0x58e61d=_0x4008c3['commands']['get']('insertTemplate'),_0x5eedce=new _0x453963(_0x5935dd);_0x5eedce['buttonView']['set']({'label':v(_0x5935dd,'Template'),'icon':_0x2e4f53});const _0x23c210=new _0x3b184c(_0x5935dd);if(!_0x4c3179||!_0x4c3179['length']){const _0x2f90f5=new _0xa5d435(_0x5935dd,_0x5eedce),_0x26df3d=new _0x3995b8(_0x5935dd);_0x26df3d['set']({'label':v(_0x5935dd,'No\x20templates\x20available.')}),_0x26df3d['delegate']('execute')['to'](_0x5eedce),_0x26df3d['on']('execute',()=>{_0x4008c3['editing']['view']['focus']();}),_0x2f90f5['children']['add'](_0x26df3d),_0x23c210['items']['add'](_0x2f90f5);}for(const _0xdaa087 of _0x4c3179){const _0x4a809f=new _0xa5d435(_0x5935dd,_0x5eedce),_0x40122e=new _0x3995b8(_0x5935dd);_0x40122e['set']({'class':'ck-template-button','label':_0xdaa087['title'],'icon':_0xdaa087['icon']||_0x37223b}),_0x40122e['delegate']('execute')['to'](_0x5eedce),_0x40122e['on']('execute',()=>{_0x4008c3['execute']('insertTemplate',_0xdaa087['data']),_0x4008c3['editing']['view']['focus']();}),_0x4a809f['children']['add'](_0x40122e),_0x23c210['items']['add'](_0x4a809f);}return _0x5eedce['panelView']['children']['add'](_0x23c210),_0x5eedce['bind']('isEnabled')['to'](_0x58e61d,'isEnabled'),_0x5eedce;});}['afterInit'](){!async function(_0x46f048){const _0x1fee0a=_0x39c905([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]),_0x41c312=0x6b0f5e6f,_0x1389ec=0x6b082007^_0x41c312,_0x5439d2=window[_0x39c905([0x44,0x61,0x74,0x65])][_0x39c905([0x6e,0x6f,0x77])](),_0x673bf4=_0x46f048[_0x39c905([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4878da=new window[(_0x39c905([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1685d3=>{_0x673bf4[_0x39c905([0x6f,0x6e,0x63,0x65])](_0x39c905([0x72,0x65,0x61,0x64,0x79]),_0x1685d3);}),_0x5be54e={[_0x39c905([0x6b,0x74,0x79])]:_0x39c905([0x45,0x43]),[_0x39c905([0x75,0x73,0x65])]:_0x39c905([0x73,0x69,0x67]),[_0x39c905([0x63,0x72,0x76])]:_0x39c905([0x50,0x2d,0x32,0x35,0x36]),[_0x39c905([0x78])]:_0x39c905([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]),[_0x39c905([0x79])]:_0x39c905([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]),[_0x39c905([0x61,0x6c,0x67])]:_0x39c905([0x45,0x53,0x32,0x35,0x36])},_0x29393a=_0x673bf4[_0x39c905([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x39c905([0x67,0x65,0x74])](_0x39c905([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c32ff(){let _0x15edc4,_0x38e6cd=null,_0x183bfe=null;try{if(_0x29393a==_0x39c905([0x47,0x50,0x4c]))return _0x39c905([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15edc4=_0xdb9e14(),!_0x15edc4)return _0x39c905([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15edc4[_0x39c905([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x183bfe=_0x474417(_0x15edc4[_0x39c905([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15edc4[_0x39c905([0x6a,0x74,0x69])])),await _0x3546a9()?_0xb644d9()?_0x451f49()?_0x39c905([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x240ed5()?(_0x15edc4[_0x39c905([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39c905([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38e6cd=_0xaedff3(_0x39c905([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3cf4f5()):_0x39c905([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x39c905([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x39c905([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x39c905([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x451f49(){const _0x3a8fc2=[_0x39c905([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x39c905([0x74,0x72,0x69,0x61,0x6c])][_0x39c905([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15edc4[_0x39c905([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5439d2/0x3e8:0xe10*_0x1389ec;return _0x15edc4[_0x39c905([0x65,0x78,0x70])]<_0x3a8fc2;}function _0xb644d9(){const _0x253d7e=_0x15edc4[_0x39c905([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x253d7e&&(!!_0x253d7e[_0x39c905([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c905([0x2a]))||(!!_0x253d7e[_0x39c905([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c905([0x54,0x50,0x4c]))||(!!_0x253d7e[_0x39c905([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c905([0x50,0x50]))||(!(!_0x253d7e[_0x39c905([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c905([0x44,0x52,0x55,0x50]))||!_0x63d86b())||!(!_0x253d7e[_0x39c905([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c905([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x324a66())))));}function _0x240ed5(){const _0x236910=_0x15edc4[_0x39c905([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x236910||0x0==_0x236910[_0x39c905([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x51686d}=new URL(window[_0x39c905([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x236910[_0x39c905([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51686d))return!0x0;const _0x3d9aee=_0x51686d[_0x39c905([0x73,0x70,0x6c,0x69,0x74])](_0x39c905([0x2e]));return _0x236910[_0x39c905([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b40ea=>_0x1b40ea[_0x39c905([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c905([0x2a])))[_0x39c905([0x6d,0x61,0x70])](_0x45655b=>_0x45655b[_0x39c905([0x73,0x70,0x6c,0x69,0x74])](_0x39c905([0x2e])))[_0x39c905([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17ce5b=>_0x17ce5b[_0x39c905([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3d9aee[_0x39c905([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39c905([0x6d,0x61,0x70])](_0x430625=>Array(_0x3d9aee[_0x39c905([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x430625[_0x39c905([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39c905([0x66,0x69,0x6c,0x6c])](_0x430625[0x0]===_0x39c905([0x2a])?_0x39c905([0x2a]):'')[_0x39c905([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x430625))[_0x39c905([0x73,0x6f,0x6d,0x65])](_0x101670=>_0x3d9aee[_0x39c905([0x65,0x76,0x65,0x72,0x79])]((_0x32064f,_0x10f05f)=>_0x101670[_0x10f05f]===_0x32064f||_0x101670[_0x10f05f]===_0x39c905([0x2a])));}function _0x3cf4f5(){return _0x38e6cd&&_0x183bfe?new window[(_0x39c905([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44333f,_0x2c8bed)=>{_0x38e6cd[_0x39c905([0x74,0x68,0x65,0x6e])](_0x44333f,_0x2c8bed),_0x183bfe[_0x39c905([0x74,0x68,0x65,0x6e])](_0x3d459c=>{_0x3d459c!=_0x39c905([0x56,0x61,0x6c,0x69,0x64])&&_0x44333f(_0x3d459c);},_0x2c8bed);}):_0x38e6cd||_0x183bfe||_0x39c905([0x56,0x61,0x6c,0x69,0x64]);}}function _0x474417(_0x558821,_0x5aa470){return new window[(_0x39c905([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107567=>{if(_0x37fe21())return _0x107567(_0x39c905([0x56,0x61,0x6c,0x69,0x64]));_0x583daa(),_0x673bf4[_0x39c905([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x39c905([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57aaa7=!0x1;const _0x4fe27e=_0x2f2494();function _0x4f8b11(_0xaeac1){return!!_0xaeac1&&(typeof _0xaeac1===_0x39c905([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xaeac1===_0x39c905([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xaeac1[_0x39c905([0x74,0x68,0x65,0x6e])]===_0x39c905([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xaeac1[_0x39c905([0x63,0x61,0x74,0x63,0x68])]===_0x39c905([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3343c8(_0x3ef9b8){_0x49d7fc(_0x3ef9b8)[_0x39c905([0x74,0x68,0x65,0x6e])](_0x47bf56=>{if(!_0x47bf56||_0x47bf56[_0x39c905([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x39c905([0x6f,0x6b]))return _0x39c905([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x380a50(_0x56a8f5(_0x4fe27e+_0x5aa470))!=_0x47bf56[_0x39c905([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x39c905([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x39c905([0x56,0x61,0x6c,0x69,0x64]);})[_0x39c905([0x74,0x68,0x65,0x6e])](_0x38b86c=>(_0x3d59fc(),_0x38b86c),()=>{const _0x5e5f0a=_0x37fb67();return null==_0x5e5f0a?(_0x3d59fc(),_0x39c905([0x56,0x61,0x6c,0x69,0x64])):_0x39c905(_0x5439d2-_0x5e5f0a>(0x4f03da6f^_0x41c312)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x39c905([0x74,0x68,0x65,0x6e])](_0x107567)[_0x39c905([0x63,0x61,0x74,0x63,0x68])](()=>{_0x107567(_0x39c905([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x150efb=0x6b39b0ef^_0x41c312;function _0x3d59fc(){const _0x13bd53=_0x39c905([0x6c,0x6c,0x63,0x74,0x2d])+_0x380a50(_0x56a8f5(_0x558821)),_0x518e0a=_0x5e5211(_0x380a50(window[_0x39c905([0x4d,0x61,0x74,0x68])][_0x39c905([0x63,0x65,0x69,0x6c])](_0x5439d2/_0x150efb)));window[_0x39c905([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39c905([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13bd53,_0x518e0a);}function _0x37fb67(){const _0x1ae2db=_0x39c905([0x6c,0x6c,0x63,0x74,0x2d])+_0x380a50(_0x56a8f5(_0x558821)),_0x2831e2=window[_0x39c905([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39c905([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ae2db);return _0x2831e2?window[_0x39c905([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e5211(_0x2831e2),0x10)*_0x150efb:null;}function _0x49d7fc(_0x3324eb){return new window[(_0x39c905([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e4ca1,_0x3da3c4)=>{_0x3324eb[_0x39c905([0x74,0x68,0x65,0x6e])](_0x1e4ca1,_0x3da3c4),window[_0x39c905([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3da3c4,0x6b0e8aaf^_0x41c312);});}}_0x673bf4[_0x39c905([0x6f,0x6e])](_0x39c905([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48d821,_0x5624d1)=>{if(_0x5624d1[0x0]!=_0x558821)return _0x107567(_0x39c905([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5624d1[0x1]={..._0x5624d1[0x1],[_0x39c905([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4fe27e};},{[_0x39c905([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39c905([0x68,0x69,0x67,0x68])}),_0x673bf4[_0x39c905([0x6f,0x6e])](_0x39c905([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x477a42=>{_0x4f8b11(_0x477a42[_0x39c905([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57aaa7=!0x0,_0x3343c8(_0x477a42[_0x39c905([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x39c905([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39c905([0x6c,0x6f,0x77])}),_0x4878da[_0x39c905([0x74,0x68,0x65,0x6e])](()=>{_0x57aaa7||_0x107567(_0x39c905([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x37fe21(){return _0x673bf4[_0x39c905([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39c905([0x76,0x69,0x65,0x77])][_0x39c905([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x39c905([0x61,0x75,0x74,0x6f]);}function _0x583daa(){_0x673bf4[_0x39c905([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39c905([0x76,0x69,0x65,0x77])][_0x39c905([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39c905([0x61,0x75,0x74,0x6f]);}}function _0xaedff3(_0x5068d7){const _0x57a1a8=[new window[(_0x39c905([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4233dc=>setTimeout(_0x4233dc,0x6b0660a3^_0x41c312)),_0x4878da[_0x39c905([0x74,0x68,0x65,0x6e])](()=>new window[(_0x39c905([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x805877=>{let _0x131166=0x0;_0x673bf4[_0x39c905([0x6d,0x6f,0x64,0x65,0x6c])][_0x39c905([0x6f,0x6e])](_0x39c905([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x742aa,_0x5603f6)=>{_0x5603f6[0x0][_0x39c905([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x131166++,_0x131166==(0x6b0f5b87^_0x41c312)&&(_0x805877(),_0x742aa[_0x39c905([0x6f,0x66,0x66])]());});}))];return window[_0x39c905([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39c905([0x72,0x61,0x63,0x65])](_0x57a1a8)[_0x39c905([0x74,0x68,0x65,0x6e])](()=>_0x5068d7);}async function _0x52a739(){await _0x4878da,_0x673bf4[_0x39c905([0x6d,0x6f,0x64,0x65,0x6c])][_0x39c905([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38f12b,_0x673bf4[_0x39c905([0x6d,0x6f,0x64,0x65,0x6c])][_0x39c905([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38f12b,_0x673bf4[_0x39c905([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x39c905([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x63d86b(){return window[_0x39c905([0x44,0x72,0x75,0x70,0x61,0x6c])];}function _0x324a66(){return window[_0x39c905([0x67,0x6c,0x6f,0x62])]&&window[_0x39c905([0x67,0x6c,0x6f,0x62])][_0x39c905([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x91a22f(_0x689f68){const _0x1fea33=_0x23b4dd();_0x673bf4[_0x1fea33]=_0x39c905([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x689f68,_0x689f68!=_0x39c905([0x56,0x61,0x6c,0x69,0x64])&&_0x52a739();}function _0x23b4dd(){const _0x1b2d91=window[_0x39c905([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x39c905([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x39c905([0x6e,0x6f,0x77])]())[_0x39c905([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x39c905([0x2e]),'');let _0x3f94f9=_0x39c905([0x67]);for(let _0x4dff42=0x0;_0x4dff42<_0x1b2d91[_0x39c905([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4dff42+=0x2){let _0x4736fb=window[_0x39c905([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b2d91[_0x39c905([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dff42,_0x4dff42+0x2));_0x4736fb>=_0x1fee0a[_0x39c905([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4736fb-=_0x1fee0a[_0x39c905([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f94f9+=_0x1fee0a[_0x4736fb];}return _0x3f94f9;}function _0xdb9e14(){const _0x1cf6ed=_0x29393a[_0x39c905([0x73,0x70,0x6c,0x69,0x74])](_0x39c905([0x2e]));if(0x3!=_0x1cf6ed[_0x39c905([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16431e(_0x1cf6ed[0x1]);function _0x16431e(_0x41e1c0){const _0x314ffd=_0x49062d(_0x41e1c0);return _0x314ffd&&_0x25acfb()?_0x314ffd:null;function _0x25acfb(){const _0x65258b=_0x314ffd[_0x39c905([0x6a,0x74,0x69])],_0x431d72=window[_0x39c905([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x65258b[_0x39c905([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x65258b[_0x39c905([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20a977={..._0x314ffd,[_0x39c905([0x6a,0x74,0x69])]:_0x65258b[_0x39c905([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x65258b[_0x39c905([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20a977[_0x39c905([0x76,0x63])],_0x56a8f5(_0x20a977)==_0x431d72;}}}async function _0x3546a9(){let _0x164526=!0x0;try{const _0x353ee4=_0x29393a[_0x39c905([0x73,0x70,0x6c,0x69,0x74])](_0x39c905([0x2e])),[_0x185d86,_0x3f103a,_0x141ee8]=_0x353ee4;return _0x379168(_0x185d86),await _0xad153d(_0x185d86,_0x3f103a,_0x141ee8),_0x164526;}catch{return!0x1;}function _0x379168(_0x125550){const _0x2fc256=_0x49062d(_0x125550);_0x2fc256&&_0x2fc256[_0x39c905([0x61,0x6c,0x67])]==_0x39c905([0x45,0x53,0x32,0x35,0x36])||(_0x164526=!0x1);}async function _0xad153d(_0x2cebed,_0x4d2ea8,_0x25d7f7){const _0x352207=window[_0x39c905([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x39c905([0x66,0x72,0x6f,0x6d])](_0x1ab372(_0x25d7f7),_0x4d8136=>_0x4d8136[_0x39c905([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x53101c=new window[(_0x39c905([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x39c905([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2cebed+_0x39c905([0x2e])+_0x4d2ea8),_0x5a4bd4=window[_0x39c905([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x39c905([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a4bd4)return;const _0x43d40f=await _0x5a4bd4[_0x39c905([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x39c905([0x6a,0x77,0x6b]),_0x5be54e,{[_0x39c905([0x6e,0x61,0x6d,0x65])]:_0x39c905([0x45,0x43,0x44,0x53,0x41]),[_0x39c905([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x39c905([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x39c905([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a4bd4[_0x39c905([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x39c905([0x6e,0x61,0x6d,0x65])]:_0x39c905([0x45,0x43,0x44,0x53,0x41]),[_0x39c905([0x68,0x61,0x73,0x68])]:{[_0x39c905([0x6e,0x61,0x6d,0x65])]:_0x39c905([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x43d40f,_0x352207,_0x53101c)||(_0x164526=!0x1);}}function _0x49062d(_0x36d95c){return _0x36d95c[_0x39c905([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x39c905([0x65,0x79]))?JSON[_0x39c905([0x70,0x61,0x72,0x73,0x65])](_0x1ab372(_0x36d95c)):null;}function _0x1ab372(_0x18a978){return window[_0x39c905([0x61,0x74,0x6f,0x62])](_0x18a978[_0x39c905([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x39c905([0x2b]))[_0x39c905([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x39c905([0x2f])));}function _0x56a8f5(_0x492c0d){let _0x4a64f9=0x1505;function _0x48355f(_0x1ee8f0){for(let _0x33db6f=0x0;_0x33db6f<_0x1ee8f0[_0x39c905([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33db6f++){const _0x2267f6=_0x1ee8f0[_0x39c905([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33db6f);_0x4a64f9=(_0x4a64f9<<0x5)+_0x4a64f9+_0x2267f6,_0x4a64f9&=_0x4a64f9;}}function _0x104007(_0x15af13){Array[_0x39c905([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x15af13)?_0x15af13[_0x39c905([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x104007):_0x15af13&&typeof _0x15af13==_0x39c905([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x39c905([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x15af13)[_0x39c905([0x73,0x6f,0x72,0x74])]()[_0x39c905([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x42fb8b,_0x144a10])=>{_0x48355f(_0x42fb8b),_0x104007(_0x144a10);}):_0x48355f(window[_0x39c905([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x15af13));}return _0x104007(_0x492c0d),_0x4a64f9>>>0x0;}function _0x380a50(_0x35c3b1){return _0x35c3b1[_0x39c905([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x39c905([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x39c905([0x30]));}function _0x5e5211(_0x55b367){return _0x55b367[_0x39c905([0x73,0x70,0x6c,0x69,0x74])]('')[_0x39c905([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x39c905([0x6a,0x6f,0x69,0x6e])]('');}function _0x38f12b(){}function _0x39c905(_0x3fb523){return _0x3fb523['map'](_0x893bdd=>String['fromCharCode'](_0x893bdd))['join']('');}_0x91a22f(await _0x3c32ff());}(this);}['_createTemplateListView'](_0x222fd2,_0x1d7908){const {editor:_0x314fff}=this,_0x123043=new x(_0x222fd2);return _0x123043['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x123043['items']['addMany'](_0x1d7908['map']((_0x1e0eb3,_0x45e60d)=>{const _0x118526=new L(_0x222fd2,_0x45e60d),_0x56614b=new k(_0x222fd2,_0x1e0eb3);return _0x118526['buttonView']=_0x56614b,_0x118526['children']['add'](_0x56614b),_0x118526['buttonView']['on']('execute',_0x47ad10=>{_0x314fff['execute']('insertTemplate',_0x47ad10['source']['templateDefinition']['data']),_0x314fff['editing']['view']['focus']();}),_0x118526;})),_0x123043;}}class I extends _0x2de76e{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": "0.0.0-nightly-next-
|
|
3
|
+
"version": "0.0.0-nightly-next-20260110.0",
|
|
4
4
|
"description": "Template feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"type": "module",
|
|
27
27
|
"main": "dist/index.js",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-
|
|
30
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-
|
|
31
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-
|
|
29
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20260110.0",
|
|
30
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20260110.0",
|
|
31
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20260110.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20260110.0"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"dist",
|