@ckeditor/ckeditor5-template
Version:
Template feature for CKEditor 5.
23 lines • 20 kB
JavaScript
/*
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
import{Command as _0x1a4fa5,Plugin as _0x54456c}from'@ckeditor/ckeditor5-core';import{IconTemplate as _0x375e44,IconTemplateGeneric as _0x5020f4}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x509452,HighlightedTextView as _0x4dfd00,ListItemView as _0x2d1074,ListView as _0x4ceac9,MenuBarMenuListItemButtonView as _0x24393a,MenuBarMenuListItemView as _0x39cbbf,MenuBarMenuListView as _0x83abf2,MenuBarMenuView as _0x2e6edb,SearchTextView as _0x4caf8b,View as _0x5d1867,createDropdown as _0x2125fe}from'@ckeditor/ckeditor5-ui';import{uid as _0x29d3ba}from'@ckeditor/ckeditor5-utils';var g=class extends _0x1a4fa5{['execute'](_0x4a6686){const {model:_0x5594e8}=this['editor'];let _0x252a3d;switch(typeof _0x4a6686){case'string':_0x252a3d=_0x4a6686;break;case'function':_0x252a3d=_0x4a6686();}'string'==typeof _0x252a3d&&_0x5594e8['change'](()=>{const _0x157246=this['editor']['data']['htmlProcessor']['toView'](_0x252a3d),_0x2fca2a=_0x5594e8['document']['selection']['getFirstPosition']()['root'],_0x53a7ce=this['editor']['data']['toModel'](_0x157246,_0x2fca2a);_0x5594e8['insertContent'](_0x53a7ce);});}},y=class extends _0x54456c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5d46c2}=this;_0x5d46c2['commands']['add']('insertTemplate',new g(_0x5d46c2)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48fcb1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x262c4e;for(const _0x4e3dab in _0x48fcb1){const _0x4fa660=_0x4e3dab,_0x3502d5=_0x48fcb1[_0x4fa660];if('templateLicenseKeyValid'==_0x3502d5||'templateLicenseKeyInvalid'==_0x3502d5||'templateLicenseKeyExpired'==_0x3502d5||'templateLicenseKeyDomainLimit'==_0x3502d5||'templateLicenseKeyNotAllowed'==_0x3502d5||'templateLicenseKeyEvaluationLimit'==_0x3502d5||'templateLicenseKeyUsageLimit'==_0x3502d5){delete _0x48fcb1[_0x4fa660],_0x262c4e=_0x3502d5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x262c4e&&_0x48fcb1['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x262c4e&&_0x48fcb1['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x262c4e&&_0x48fcb1['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x262c4e&&_0x48fcb1['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x262c4e&&_0x48fcb1['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x262c4e&&_0x48fcb1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},L=class extends _0x4ceac9{['filter'](_0x4b770b){if(!_0x4b770b)return this['_resetFiltering']();const _0xdd4846=new Map(),_0x1b86f0=this['items']['map'](_0x486815=>{const _0x3240e7=_0x486815['buttonView']['isMatching'](_0x4b770b);return _0x486815['isVisible']=!!_0x3240e7,_0x486815['buttonView']['highlightText'](_0x3240e7?_0x4b770b:null),_0x3240e7&&_0xdd4846['set'](_0x486815,_0x3240e7),_0x486815;})['sort'](v)['sort'](function(_0x251bc3){return function(_0x176aad,_0x14932c){const _0x586b90=_0x251bc3['get'](_0x176aad),_0x19aebc=_0x251bc3['get'](_0x14932c);return _0x586b90&&!_0x19aebc?-0x1:_0x19aebc&&!_0x586b90?0x1:_0x586b90||_0x19aebc?_0x586b90['title']&&!_0x19aebc['title']?-0x1:!_0x586b90['title']&&_0x19aebc['title']?0x1:0x0:0x0;};}(_0xdd4846));return this['items']['clear'](),this['items']['addMany'](_0x1b86f0),{'resultsCount':_0xdd4846['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x49d1b6=this['items']['map'](_0xfc51e6=>_0xfc51e6)['sort'](v);return _0x49d1b6['forEach'](_0x32e31b=>{_0x32e31b['isVisible']=!0x0,_0x32e31b['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x49d1b6),{'resultsCount':_0x49d1b6['length'],'totalItemsCount':_0x49d1b6['length']};}};function v(_0x29cfd3,_0x577853){return _0x29cfd3['originalIndex']-_0x577853['originalIndex'];}var x=class extends _0x2d1074{['originalIndex'];['buttonView'];constructor(_0x4779f3,_0x4c1098){super(_0x4779f3),this['originalIndex']=_0x4c1098,this['buttonView']=null;}},b=class extends _0x509452{['templateDefinition'];['textPartView'];constructor(_0x219b40,_0x2a9f50){super(_0x219b40),this['templateDefinition']=_0x2a9f50,this['textPartView']=null;const {icon:_0x164550=_0x5020f4}=_0x2a9f50;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x164550}),this['iconView']['isColorInherited']=!0x1;}['render'](){super['render'](),this['textPartView']=new k(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'](_0x593dda){const {title:_0x5715cf,description:_0x3164e5}=this['templateDefinition'],_0x458ae6=!!_0x5715cf['match'](_0x593dda),_0x35cc65=!(!_0x3164e5||!_0x3164e5['match'](_0x593dda));return _0x458ae6||_0x35cc65?{'title':_0x458ae6,'description':_0x35cc65}:null;}['highlightText'](_0x28c678){this['textPartView']['highlightText'](_0x28c678);}},k=class extends _0x5d1867{constructor(_0x115192,_0x596568,_0x35632b){super(_0x115192),this['title']=_0x596568['title'],this['description']=_0x596568['description'],this['titleView']=new _0x4dfd00(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x35632b}});const _0x5de9a0=[this['titleView']];this['description']&&(this['descriptionView']=new _0x4dfd00(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x5de9a0['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x5de9a0});}['highlightText'](_0x1e89b3){this['titleView']['highlightText'](_0x1e89b3),this['description']&&this['descriptionView']['highlightText'](_0x1e89b3);}};function I(_0x57a244,_0x19b586,..._0x3c3738){const t=_0x57a244['t'];switch(_0x19b586){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x3c3738);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',..._0x3c3738);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x19b586;}}var T=class extends _0x54456c{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x53a899}=this,_0x33a73d=_0x53a899['config']['get']('template.definitions')||[];_0x53a899['ui']['componentFactory']['add']('insertTemplate',_0x5139f0=>{const _0x3864b0=_0x2125fe(_0x5139f0),_0x2e1576=new _0x4caf8b(_0x5139f0,{'filteredView':this['_createTemplateListView'](_0x5139f0,_0x33a73d),'queryView':{'label':I(_0x5139f0,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0xd75e68=>I(_0x5139f0,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0xd75e68),'secondary':I(_0x5139f0,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':I(_0x5139f0,'No\x20templates\x20available.')}}}}),_0x5292db=_0x53a899['commands']['get']('insertTemplate');return _0x2e1576['on']('search',(_0x172ece,_0xdafc52)=>{_0xdafc52['query']&&_0xdafc52['query']['length']&&_0x53a899['ui']['ariaLiveAnnouncer']['announce'](I(_0x5139f0,'%0\x20templates\x20found',_0xdafc52['resultsCount']));}),_0x3864b0['bind']('isEnabled')['to'](_0x5292db),_0x3864b0['panelView']['children']['add'](_0x2e1576),_0x3864b0['buttonView']['set']({'label':I(_0x5139f0,'Insert\x20template'),'icon':_0x375e44,'tooltip':!0x0}),_0x3864b0['on']('change:isOpen',(_0x18a0e8,_0xa7a21b,_0x55e921)=>{_0x55e921||_0x2e1576['reset']();}),_0x3864b0;}),_0x53a899['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x263906=>{const _0x1ba8c9=_0x53a899['commands']['get']('insertTemplate'),_0x4737dc=new _0x2e6edb(_0x263906);_0x4737dc['buttonView']['set']({'label':I(_0x263906,'Template'),'icon':_0x375e44});const _0x1be587=new _0x83abf2(_0x263906);if(!_0x33a73d||!_0x33a73d['length']){const _0x4b4f89=new _0x39cbbf(_0x263906,_0x4737dc),_0xc958a9=new _0x24393a(_0x263906);_0xc958a9['set']({'label':I(_0x263906,'No\x20templates\x20available.')}),_0xc958a9['delegate']('execute')['to'](_0x4737dc),_0xc958a9['on']('execute',()=>{_0x53a899['editing']['view']['focus']();}),_0x4b4f89['children']['add'](_0xc958a9),_0x1be587['items']['add'](_0x4b4f89);}for(const _0x1bc750 of _0x33a73d){const _0x33efa7=new _0x39cbbf(_0x263906,_0x4737dc),_0x1a1542=new _0x24393a(_0x263906);_0x1a1542['set']({'class':'ck-template-button','label':_0x1bc750['title'],'icon':_0x1bc750['icon']||_0x5020f4}),_0x1a1542['delegate']('execute')['to'](_0x4737dc),_0x1a1542['on']('execute',()=>{_0x53a899['execute']('insertTemplate',_0x1bc750['data']),_0x53a899['editing']['view']['focus']();}),_0x33efa7['children']['add'](_0x1a1542),_0x1be587['items']['add'](_0x33efa7);}return _0x4737dc['panelView']['children']['add'](_0x1be587),_0x4737dc['bind']('isEnabled')['to'](_0x1ba8c9,'isEnabled'),_0x4737dc;});}['afterInit'](){!async function(_0x547da2){const _0x1b0610='5goNZRxHzmBfrl0Fq6Cks1ahDGS2LUEWiby3wKvu4IVPdeT8jn9MOQJtcAY7Xp',_0x45905c=0x78e88,_0x444356=window['Date']['now'](),_0xce287d=_0x547da2['editor'],_0x539d49=new window['Promise'](_0x471451=>{_0xce287d['once']('ready',_0x471451);}),_0x54bac7={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2c7254=_0xce287d['config']['get']('licenseKey');async function _0x427323(){let _0x386a66,_0x98588f=null,_0x2dfa68=null;try{return'GPL'==_0x2c7254?'NotAllowed':(_0x386a66=_0x15cd2e(),_0x386a66?(_0x386a66['usageEndpoint']&&(_0x2dfa68=_0x20a2aa(_0x386a66['usageEndpoint'],_0x386a66['jti'])),await _0x33f128()?_0x59bf21()?_0x2b183c()?'Expired':_0x545bf9()?('evaluation'==_0x386a66['licenseType']&&(_0x98588f=_0x5369dd('EvaluationLimit')),await _0x50ab47()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2b183c(){const _0x109abb=['evaluation','trial']['includes'](_0x386a66['licenseType'])?_0x444356/0x3e8:0xe10*_0x45905c;return _0x386a66['exp']<_0x109abb;}function _0x59bf21(){const _0x5131fc=_0x386a66['features'];return!!_0x5131fc&&(!!_0x5131fc['includes']('*')||(!!_0x5131fc['includes']('TPL')||(!!_0x5131fc['includes']('PP')||(!(!_0x5131fc['includes']('DRUP')||!_0x54db6e())||!(!_0x5131fc['includes']('TRILIUM')||!_0x3190d0())))));}function _0x545bf9(){const _0x42b41d=_0x386a66['licensedHosts'];if(!_0x42b41d||0x0==_0x42b41d['length'])return!0x0;const {hostname:_0x5c8eaa}=new URL(window['location']['href']);if(_0x42b41d['includes'](_0x5c8eaa))return!0x0;const _0x26b2e9=_0x5c8eaa['split']('.');return _0x42b41d['filter'](_0x316e26=>_0x316e26['includes']('*'))['map'](_0x1569db=>_0x1569db['split']('.'))['filter'](_0x549293=>_0x549293['length']<=_0x26b2e9['length'])['map'](_0x33d7cc=>Array(_0x26b2e9['length']-_0x33d7cc['length'])['fill']('*'===_0x33d7cc[0x0]?'*':'')['concat'](_0x33d7cc))['some'](_0x18d6a6=>_0x26b2e9['every']((_0x3cb9ec,_0x38450a)=>_0x18d6a6[_0x38450a]===_0x3cb9ec||'*'===_0x18d6a6[_0x38450a]));}function _0x50ab47(){return _0x98588f&&_0x2dfa68?new window['Promise']((_0x83e275,_0xe80c27)=>{_0x98588f['then'](_0x83e275,_0xe80c27),_0x2dfa68['then'](_0x28928a=>{'Valid'!=_0x28928a&&_0x83e275(_0x28928a);},_0xe80c27);}):_0x98588f||_0x2dfa68||'Valid';}}function _0x20a2aa(_0x42bc73,_0x2b4269){return new window['Promise'](_0x5c1de1=>{if(_0x3a9ccd())return _0x5c1de1('Valid');_0x1ce6a3(),_0xce287d['decorate']('_sendUsageRequest');let _0x3e3d0c=!0x1;const _0x32f545=_0x29d3ba();function _0x4ff841(_0x3a9ea4){return!!_0x3a9ea4&&('object'==typeof _0x3a9ea4||'function'==typeof _0x3a9ea4)&&'function'==typeof _0x3a9ea4['then']&&'function'==typeof _0x3a9ea4['catch'];}function _0x36b2c1(_0x37a88c){_0x46976b(_0x37a88c)['then'](_0x4add86=>_0x4add86&&'ok'==_0x4add86['status']?_0x201f2b(_0x2244fa(_0x32f545+_0x2b4269))!=_0x4add86['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x115d56=>(_0x530ae2(),_0x115d56),()=>{const _0x2ab090=_0x46beac();return null==_0x2ab090?(_0x530ae2(),'Valid'):_0x444356-_0x2ab090>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5c1de1)['catch'](()=>{_0x5c1de1('UsageLimit');});const _0x3489e1=0x36ee80;function _0x530ae2(){const _0x39f03a='llct-'+_0x201f2b(_0x2244fa(_0x42bc73)),_0x1155ae=_0xca0841(_0x201f2b(window['Math']['ceil'](_0x444356/_0x3489e1)));window['localStorage']['setItem'](_0x39f03a,_0x1155ae);}function _0x46beac(){const _0x2a8604='llct-'+_0x201f2b(_0x2244fa(_0x42bc73)),_0x20ceed=window['localStorage']['getItem'](_0x2a8604);return _0x20ceed?window['parseInt'](_0xca0841(_0x20ceed),0x10)*_0x3489e1:null;}function _0x46976b(_0x13bdab){return new window['Promise']((_0x478cd5,_0x1511c4)=>{_0x13bdab['then'](_0x478cd5,_0x1511c4),window['setTimeout'](_0x1511c4,0x1d4c0);});}}_0xce287d['on']('_sendUsageRequest',(_0x273e4e,_0x2cbff6)=>{if(_0x2cbff6[0x0]!=_0x42bc73)return _0x5c1de1('UsageLimit');_0x2cbff6[0x1]={..._0x2cbff6[0x1],'requestId':_0x32f545};},{'priority':'high'}),_0xce287d['on']('_sendUsageRequest',_0xade9cf=>{_0x4ff841(_0xade9cf['return'])&&(_0x3e3d0c=!0x0,_0x36b2c1(_0xade9cf['return']));},{'priority':'low'}),_0x539d49['then'](()=>{_0x3e3d0c||_0x5c1de1('UsageLimit');});});function _0x3a9ccd(){return'auto'==_0xce287d['editing']['view']['_overlayModeHint'];}function _0x1ce6a3(){_0xce287d['editing']['view']['_overlayModeHint']='auto';}}function _0x5369dd(_0x1e5110){const _0x4e2789=[new window['Promise'](_0x2d26ab=>setTimeout(_0x2d26ab,0x93ecc)),_0x539d49['then'](()=>new window['Promise'](_0x282fb4=>{let _0x53da58=0x0;_0xce287d['model']['on']('applyOperation',(_0x4adcb1,_0x301a74)=>{_0x301a74[0x0]['isDocumentOperation']&&_0x53da58++,0x5e8==_0x53da58&&(_0x282fb4(),_0x4adcb1['off']());});}))];return window['Promise']['race'](_0x4e2789)['then'](()=>_0x1e5110);}async function _0x30964a(){await _0x539d49,_0xce287d['model']['change']=_0x3399ab,_0xce287d['model']['enqueueChange']=_0x3399ab,_0xce287d['enableReadOnlyMode']('model');}function _0x54db6e(){return window['Drupal'];}function _0x3190d0(){return window['glob']&&window['glob']['triliumVersion'];}function _0x274311(_0x42fabf){const _0x20a098=_0x5d5459();_0xce287d[_0x20a098]='templateLicenseKey'+_0x42fabf,'Valid'!=_0x42fabf&&_0x30964a();}function _0x5d5459(){const _0x435c59=window['String'](window['performance']['now']())['replace']('.','');let _0x4e6891='g';for(let _0xc964df=0x0;_0xc964df<_0x435c59['length'];_0xc964df+=0x2){let _0x4c2388=window['parseInt'](_0x435c59['substring'](_0xc964df,_0xc964df+0x2));_0x4c2388>=0x3e&&(_0x4c2388-=0x3e),_0x4e6891+=_0x1b0610[_0x4c2388];}return _0x4e6891;}function _0x15cd2e(){const _0x32c003=_0x2c7254['split']('.');if(0x3!=_0x32c003['length'])return null;return _0x486723(_0x32c003[0x1]);function _0x486723(_0x12e02d){const _0x559e69=_0x3164e8(_0x12e02d);return _0x559e69&&_0x24de78()?_0x559e69:null;function _0x24de78(){const _0x497b7d=_0x559e69['jti'],_0x22057a=window['parseInt'](_0x497b7d['substring'](_0x497b7d['length']-0x8),0x10),_0x6a0101={..._0x559e69,'jti':_0x497b7d['substring'](0x0,_0x497b7d['length']-0x8)};return delete _0x6a0101['vc'],_0x2244fa(_0x6a0101)==_0x22057a;}}}async function _0x33f128(){let _0x45f9dd=!0x0;try{const [_0x1abe49,_0xedf658,_0x1e5e6f]=_0x2c7254['split']('.');return _0x2e8538(_0x1abe49),await _0x38e634(_0x1abe49,_0xedf658,_0x1e5e6f),_0x45f9dd;}catch{return!0x1;}function _0x2e8538(_0x3fadf2){const _0x18e701=_0x3164e8(_0x3fadf2);_0x18e701&&'ES256'==_0x18e701['alg']||(_0x45f9dd=!0x1);}async function _0x38e634(_0x1ec48a,_0x1a489a,_0x2b9eb9){const _0x1efc1d=window['Uint8Array']['from'](_0x5221c6(_0x2b9eb9),_0x2ed524=>_0x2ed524['charCodeAt'](0x0)),_0x1101ce=new window['TextEncoder']()['encode'](_0x1ec48a+'.'+_0x1a489a),_0x5c753e=window['crypto']['subtle'];if(!_0x5c753e)return;const _0x211e3b=await _0x5c753e['importKey']('jwk',_0x54bac7,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5c753e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x211e3b,_0x1efc1d,_0x1101ce)||(_0x45f9dd=!0x1);}}function _0x3164e8(_0x18b23f){return _0x18b23f['startsWith']('ey')?JSON['parse'](_0x5221c6(_0x18b23f)):null;}function _0x5221c6(_0x16a271){return window['atob'](_0x16a271['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x2244fa(_0x5e83d6){let _0x25b6fc=0x1505;function _0xe9ac95(_0x57ce83){for(let _0x5e2924=0x0;_0x5e2924<_0x57ce83['length'];_0x5e2924++){const _0x2846e2=_0x57ce83['charCodeAt'](_0x5e2924);_0x25b6fc=(_0x25b6fc<<0x5)+_0x25b6fc+_0x2846e2,_0x25b6fc&=_0x25b6fc;}}function _0x3d5e2a(_0x4644f4){Array['isArray'](_0x4644f4)?_0x4644f4['forEach'](_0x3d5e2a):_0x4644f4&&'object'==typeof _0x4644f4?Object['entries'](_0x4644f4)['sort']()['forEach'](([_0xae26cd,_0x18e4dc])=>{_0xe9ac95(_0xae26cd),_0x3d5e2a(_0x18e4dc);}):_0xe9ac95(window['String'](_0x4644f4));}return _0x3d5e2a(_0x5e83d6),_0x25b6fc>>>0x0;}function _0x201f2b(_0x264753){return _0x264753['toString'](0x10)['padStart'](0x8,'0');}function _0xca0841(_0x425511){return _0x425511['split']('')['reverse']()['join']('');}function _0x3399ab(){}_0x274311(await _0x427323());}(this);}['_createTemplateListView'](_0x1fb777,_0x55f3d8){const {editor:_0x133425}=this,_0x529d72=new L(_0x1fb777);return _0x529d72['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x529d72['items']['addMany'](_0x55f3d8['map']((_0x146f01,_0x43e0ac)=>{const _0x3c3c96=new x(_0x1fb777,_0x43e0ac),_0x4bd224=new b(_0x1fb777,_0x146f01);return _0x3c3c96['buttonView']=_0x4bd224,_0x3c3c96['children']['add'](_0x4bd224),_0x3c3c96['buttonView']['on']('execute',_0x52cb01=>{_0x133425['execute']('insertTemplate',_0x52cb01['source']['templateDefinition']['data']),_0x133425['editing']['view']['focus']();}),_0x3c3c96;})),_0x529d72;}},K=class extends _0x54456c{static get['requires'](){return[y,T];}static get['pluginName'](){return'Template';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{K as Template,g as TemplateCommand,y as TemplateEditing,T as TemplateUI};