@ckeditor/ckeditor5-template 48.5.0-alpha.4 → 48.5.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x31dcaa,Plugin as _0x5b325d}from'@ckeditor/ckeditor5-core';import{IconTemplate as _0x5c8fc3,IconTemplateGeneric as _0x36c358}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x89e2b1,HighlightedTextView as _0x576e14,ListItemView as _0x8db3fc,ListView as _0x5bdd9b,MenuBarMenuListItemButtonView as _0x403a16,MenuBarMenuListItemView as _0x366b35,MenuBarMenuListView as _0x58290a,MenuBarMenuView as _0x57e2b5,SearchTextView as _0xb3996d,View as _0x423851,createDropdown as _0x31c12c}from'@ckeditor/ckeditor5-ui';import{uid as _0x295db6}from'@ckeditor/ckeditor5-utils';var g=class extends _0x31dcaa{execute(_0x3a2708){const {model:_0x3c8718}=this['editor'];let _0x1bb8fa;switch(typeof _0x3a2708){case'string':_0x1bb8fa=_0x3a2708;break;case'function':_0x1bb8fa=_0x3a2708();}'string'==typeof _0x1bb8fa&&_0x3c8718['change'](()=>{const _0x51ea7a=this['editor']['data']['htmlProcessor']['toView'](_0x1bb8fa),_0x3e48c3=_0x3c8718['document']['selection']['getFirstPosition']()['root'],_0x5db577=this['editor']['data']['toModel'](_0x51ea7a,_0x3e48c3);_0x3c8718['insertContent'](_0x5db577);});}},y=class extends _0x5b325d{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x3de1d0}=this;_0x3de1d0['commands']['add']('insertTemplate',new g(_0x3de1d0)),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x160522=[this['editor']];for(const _0x354daf of _0x160522){let _0x3889ce;for(const _0x37b86c in _0x354daf){const _0x2543a4=_0x37b86c,_0x48f782=_0x354daf[_0x2543a4];if('templateLicenseKeyValid'==_0x48f782||'templateLicenseKeyInvalid'==_0x48f782||'templateLicenseKeyExpired'==_0x48f782||'templateLicenseKeyDomainLimit'==_0x48f782||'templateLicenseKeyNotAllowed'==_0x48f782||'templateLicenseKeyEvaluationLimit'==_0x48f782||'templateLicenseKeyUsageLimit'==_0x48f782){delete _0x354daf[_0x2543a4],_0x3889ce=_0x48f782,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x3889ce&&_0x354daf['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x3889ce&&_0x354daf['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x3889ce&&_0x354daf['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x3889ce&&_0x354daf['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x3889ce&&_0x354daf['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x3889ce&&_0x354daf['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},L=class extends _0x5bdd9b{filter(_0x295c14){if(!_0x295c14)return this['_resetFiltering']();const _0x112023=new Map(),_0x5b5f50=this['items']['map'](_0x2bbf0c=>{const _0x3d1187=_0x2bbf0c['buttonView']['isMatching'](_0x295c14);return _0x2bbf0c['isVisible']=!!_0x3d1187,_0x2bbf0c['buttonView']['highlightText'](_0x3d1187?_0x295c14:null),_0x3d1187&&_0x112023['set'](_0x2bbf0c,_0x3d1187),_0x2bbf0c;})['sort'](v)['sort'](function(_0x4a57c3){return function(_0xd760cf,_0x3f6e74){const _0x2ffb6a=_0x4a57c3['get'](_0xd760cf),_0x5bba55=_0x4a57c3['get'](_0x3f6e74);return _0x2ffb6a&&!_0x5bba55?-0x1:_0x5bba55&&!_0x2ffb6a?0x1:_0x2ffb6a||_0x5bba55?_0x2ffb6a['title']&&!_0x5bba55['title']?-0x1:!_0x2ffb6a['title']&&_0x5bba55['title']?0x1:0x0:0x0;};}(_0x112023));return this['items']['clear'](),this['items']['addMany'](_0x5b5f50),{'resultsCount':_0x112023['size'],'totalItemsCount':this['items']['length']};}_resetFiltering(){const _0x18d835=this['items']['map'](_0x10b924=>_0x10b924)['sort'](v);return _0x18d835['forEach'](_0x249e62=>{_0x249e62['isVisible']=!0x0,_0x249e62['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x18d835),{'resultsCount':_0x18d835['length'],'totalItemsCount':_0x18d835['length']};}};function v(_0x4dce80,_0x564e7e){return _0x4dce80['originalIndex']-_0x564e7e['originalIndex'];}var x=class extends _0x8db3fc{['originalIndex'];buttonView;constructor(_0x220d4b,_0x606a7c){super(_0x220d4b),this['originalIndex']=_0x606a7c,this['buttonView']=null;}},b=class extends _0x89e2b1{templateDefinition;textPartView;constructor(_0x2798df,_0x40bfa3){super(_0x2798df),this['templateDefinition']=_0x40bfa3,this['textPartView']=null;const {icon:_0x50d83b=_0x36c358}=_0x40bfa3;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x50d83b}),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(_0x447e4d){const {title:_0x2e7c31,description:_0x32e3fa}=this['templateDefinition'],_0xd46a10=!!_0x2e7c31['match'](_0x447e4d),_0x424bdb=!(!_0x32e3fa||!_0x32e3fa['match'](_0x447e4d));return _0xd46a10||_0x424bdb?{'title':_0xd46a10,'description':_0x424bdb}:null;}highlightText(_0x59fc89){this['textPartView']['highlightText'](_0x59fc89);}},k=class extends _0x423851{constructor(_0x396607,_0x2f9cc4,_0x3ea692){super(_0x396607),this['title']=_0x2f9cc4['title'],this['description']=_0x2f9cc4['description'],this['titleView']=new _0x576e14(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x3ea692}});const _0x3f5aed=[this['titleView']];this['description']&&(this['descriptionView']=new _0x576e14(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x3f5aed['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x3f5aed});}highlightText(_0x4a75ad){this['titleView']['highlightText'](_0x4a75ad),this['description']&&this['descriptionView']['highlightText'](_0x4a75ad);}};function I(_0x318b91,_0x1c0870,..._0x68451f){const t=_0x318b91['t'];switch(_0x1c0870){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x68451f);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',..._0x68451f);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x1c0870;}}var T=class extends _0x5b325d{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0xbd33f7}=this,_0x54ed96=_0xbd33f7['config']['get']('template.definitions')||[];_0xbd33f7['ui']['componentFactory']['add']('insertTemplate',_0x4342ee=>{const _0x342677=_0x31c12c(_0x4342ee),_0x2b2653=this['_createTemplateListView'](_0x4342ee,_0x54ed96),_0x2316f1=new _0xb3996d(_0x4342ee,{'filteredView':_0x2b2653,'queryView':{'label':I(_0x4342ee,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x42e9dd=>I(_0x4342ee,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x42e9dd),'secondary':I(_0x4342ee,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':I(_0x4342ee,'No\x20templates\x20available.')}}}}),_0x38d5a1=_0xbd33f7['commands']['get']('insertTemplate');return _0x2316f1['on']('search',(_0x4492ef,_0x1becc0)=>{_0x1becc0['query']&&_0x1becc0['query']['length']&&_0xbd33f7['ui']['ariaLiveAnnouncer']['announce'](I(_0x4342ee,'%0\x20templates\x20found',_0x1becc0['resultsCount']));}),_0x342677['bind']('isEnabled')['to'](_0x38d5a1),_0x342677['panelView']['children']['add'](_0x2316f1),_0x342677['buttonView']['set']({'label':I(_0x4342ee,'Insert\x20template'),'icon':_0x5c8fc3,'tooltip':!0x0}),_0x342677['on']('change:isOpen',(_0x5548e1,_0x145cde,_0x386610)=>{_0x386610||_0x2316f1['reset']();}),_0x342677;}),_0xbd33f7['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x561940=>{const _0x4dce35=_0xbd33f7['commands']['get']('insertTemplate'),_0x3e4897=new _0x57e2b5(_0x561940);_0x3e4897['buttonView']['set']({'label':I(_0x561940,'Template'),'icon':_0x5c8fc3});const _0x157a36=new _0x58290a(_0x561940);if(!_0x54ed96||!_0x54ed96['length']){const _0x3e61f4=new _0x366b35(_0x561940,_0x3e4897),_0x8d0fac=new _0x403a16(_0x561940);_0x8d0fac['set']({'label':I(_0x561940,'No\x20templates\x20available.')}),_0x8d0fac['delegate']('execute')['to'](_0x3e4897),_0x8d0fac['on']('execute',()=>{_0xbd33f7['editing']['view']['focus']();}),_0x3e61f4['children']['add'](_0x8d0fac),_0x157a36['items']['add'](_0x3e61f4);}for(const _0xdc8825 of _0x54ed96){const _0x19c369=new _0x366b35(_0x561940,_0x3e4897),_0x47a132=new _0x403a16(_0x561940);_0x47a132['set']({'class':'ck-template-button','label':_0xdc8825['title'],'icon':_0xdc8825['icon']||_0x36c358}),_0x47a132['delegate']('execute')['to'](_0x3e4897),_0x47a132['on']('execute',()=>{_0xbd33f7['execute']('insertTemplate',_0xdc8825['data']),_0xbd33f7['editing']['view']['focus']();}),_0x19c369['children']['add'](_0x47a132),_0x157a36['items']['add'](_0x19c369);}return _0x3e4897['panelView']['children']['add'](_0x157a36),_0x3e4897['bind']('isEnabled')['to'](_0x4dce35,'isEnabled'),_0x3e4897;});}afterInit(){!async function(_0x219227){const _0x48b52c='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x301361=0x79428,_0x2c22ef={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x1cef80(_0x24198b){const _0x3280d4=new window['Promise'](_0x2d4921=>{_0x24198b['once']('ready',_0x2d4921);}),_0x2a8336=window['Date']['now'](),_0x741560=_0x24198b['config']['get']('licenseKey');async function _0x4930fa(){let _0x27d70c,_0x5229bf=null,_0x15be7f=null;try{return'GPL'==_0x741560?'NotAllowed':(_0x27d70c=_0x34f470(),_0x27d70c?(_0x27d70c['usageEndpoint']&&(_0x15be7f=_0x1438d0(_0x27d70c['usageEndpoint'],_0x27d70c['jti'])),await _0x4dd389()?_0x1383b0()?_0x20dcf8()?'Expired':_0x466cb2()?('evaluation'==_0x27d70c['licenseType']&&(_0x5229bf=_0x5c95a6('EvaluationLimit')),await _0x55a5f5()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x20dcf8(){const _0x47c355=['evaluation','trial']['includes'](_0x27d70c['licenseType'])?_0x2a8336/0x3e8:0xe10*_0x301361;return _0x27d70c['exp']<_0x47c355;}function _0x1383b0(){const _0x4dae03=_0x27d70c['features'];return!!_0x4dae03&&(!!_0x4dae03['includes']('*')||(!!_0x4dae03['includes']('TPL')||(!!_0x4dae03['includes']('PP')||(!(!_0x4dae03['includes']('DRUP')||!_0x32f07b())||!(!_0x4dae03['includes']('TRILIUM')||!_0x2a68ef())))));}function _0x466cb2(){const _0x410802=_0x27d70c['licensedHosts'];if(!_0x410802||0x0==_0x410802['length'])return!0x0;const {hostname:_0x5cd5ab}=new URL(window['location']['href']);if(_0x410802['includes'](_0x5cd5ab))return!0x0;const _0x425d0f=_0x5cd5ab['split']('.');return _0x410802['filter'](_0x4ccd69=>_0x4ccd69['includes']('*'))['map'](_0x133183=>_0x133183['split']('.'))['filter'](_0x4f616f=>_0x4f616f['length']<=_0x425d0f['length'])['map'](_0x186f25=>Array(_0x425d0f['length']-_0x186f25['length'])['fill']('*'===_0x186f25[0x0]?'*':'')['concat'](_0x186f25))['some'](_0xa01e69=>_0x425d0f['every']((_0x56ae18,_0x359f2e)=>_0xa01e69[_0x359f2e]===_0x56ae18||'*'===_0xa01e69[_0x359f2e]));}function _0x55a5f5(){return _0x5229bf&&_0x15be7f?new window['Promise']((_0x4749d7,_0x43049c)=>{_0x5229bf['then'](_0x4749d7,_0x43049c),_0x15be7f['then'](_0x5512d2=>{'Valid'!=_0x5512d2&&_0x4749d7(_0x5512d2);},_0x43049c);}):_0x5229bf||_0x15be7f||'Valid';}}function _0x1438d0(_0x23f519,_0x2e14a){return new window['Promise'](_0x7bbcf2=>{if(_0x59a4f5())return _0x7bbcf2('Valid');_0x372703(),_0x24198b['decorate']('_sendUsageRequest');let _0x3a2997=!0x1;const _0x1c1621=_0x295db6();function _0x5e3d55(_0x122570){return!!_0x122570&&('object'==typeof _0x122570||'function'==typeof _0x122570)&&'function'==typeof _0x122570['then']&&'function'==typeof _0x122570['catch'];}function _0x346e46(_0x2b520d){_0x48ac6b(_0x2b520d)['then'](_0x554730=>_0x554730&&'ok'==_0x554730['status']?_0x5ff5d9(_0xa5c754(_0x1c1621+_0x2e14a))!=_0x554730['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2c7cf1=>(_0x18b037(),_0x2c7cf1),()=>{const _0x47f84b=_0x22fa94();return null==_0x47f84b?(_0x18b037(),'Valid'):_0x2a8336-_0x47f84b>0x240c8400?'UsageLimit':'Valid';})['then'](_0x7bbcf2)['catch'](()=>{_0x7bbcf2('UsageLimit');});const _0x55a3db=0x36ee80;function _0x18b037(){const _0x1b45ce='llct-'+_0x5ff5d9(_0xa5c754(_0x23f519)),_0x3b9948=_0x13acc1(_0x5ff5d9(window['Math']['ceil'](_0x2a8336/_0x55a3db)));window['localStorage']['setItem'](_0x1b45ce,_0x3b9948);}function _0x22fa94(){const _0x180360='llct-'+_0x5ff5d9(_0xa5c754(_0x23f519)),_0x3f2956=window['localStorage']['getItem'](_0x180360);return _0x3f2956?window['parseInt'](_0x13acc1(_0x3f2956),0x10)*_0x55a3db:null;}function _0x48ac6b(_0x1feff0){return new window['Promise']((_0x24cb12,_0x5b4583)=>{_0x1feff0['then'](_0x24cb12,_0x5b4583),window['setTimeout'](_0x5b4583,0x1d4c0);});}}_0x24198b['on']('_sendUsageRequest',(_0x46f802,_0x3fb09e)=>{if(_0x3fb09e[0x0]!=_0x23f519)return _0x7bbcf2('UsageLimit');_0x3fb09e[0x1]={..._0x3fb09e[0x1],'requestId':_0x1c1621};},{'priority':'high'}),_0x24198b['on']('_sendUsageRequest',_0x2b489f=>{_0x5e3d55(_0x2b489f['return'])&&(_0x3a2997=!0x0,_0x346e46(_0x2b489f['return']));},{'priority':'low'}),_0x3280d4['then'](()=>{_0x3a2997||_0x7bbcf2('UsageLimit');});});function _0x59a4f5(){return'auto'==_0x24198b['editing']['view']['_overlayModeHint'];}function _0x372703(){_0x24198b['editing']['view']['_overlayModeHint']='auto';}}function _0x5c95a6(_0x4760e6){const _0x11b660=[new window['Promise'](_0x282894=>setTimeout(_0x282894,0x93ecc)),_0x3280d4['then'](()=>new window['Promise'](_0x355407=>{let _0x4dae71=0x0;_0x24198b['model']['on']('applyOperation',(_0x54244f,_0x341a90)=>{_0x341a90[0x0]['isDocumentOperation']&&_0x4dae71++,0x5e8==_0x4dae71&&(_0x355407(),_0x54244f['off']());});}))];return window['Promise']['race'](_0x11b660)['then'](()=>_0x4760e6);}async function _0x5ae498(){await _0x3280d4,_0x24198b['model']['change']=_0x2f6cd4,_0x24198b['model']['enqueueChange']=_0x2f6cd4,_0x24198b['enableReadOnlyMode']('model');}function _0x32f07b(){return window['Drupal'];}function _0x2a68ef(){return window['glob']&&window['glob']['triliumVersion'];}function _0x30c196(_0x1938d3){const _0x170e66=_0x18194c();_0x24198b[_0x170e66]='templateLicenseKey'+_0x1938d3,'Valid'!=_0x1938d3&&_0x5ae498();}function _0x18194c(){const _0x5998fb=window['String'](window['performance']['now']())['replace']('.','');let _0x4a1c3e='h';for(let _0x821830=0x0;_0x821830<_0x5998fb['length'];_0x821830+=0x2){let _0x127adf=window['parseInt'](_0x5998fb['substring'](_0x821830,_0x821830+0x2));_0x127adf>=0x3e&&(_0x127adf-=0x3e),_0x4a1c3e+=_0x48b52c[_0x127adf];}return _0x4a1c3e;}function _0x34f470(){const _0x1e2f7f=_0x741560['split']('.');if(0x3!=_0x1e2f7f['length'])return null;return _0x14400f(_0x1e2f7f[0x1]);function _0x14400f(_0x425347){const _0x1392d6=_0x505073(_0x425347);return _0x1392d6&&_0x4cbc7()?_0x1392d6:null;function _0x4cbc7(){const _0x189ba8=_0x1392d6['jti'],_0x52fd33=window['parseInt'](_0x189ba8['substring'](_0x189ba8['length']-0x8),0x10),_0x541b26={..._0x1392d6,'jti':_0x189ba8['substring'](0x0,_0x189ba8['length']-0x8)};return delete _0x541b26['vc'],_0xa5c754(_0x541b26)==_0x52fd33;}}}async function _0x4dd389(){let _0x2e8b54=!0x0;try{const [_0x4d0a0a,_0xd945d2,_0x47cbe4]=_0x741560['split']('.');return _0xa99675(_0x4d0a0a),await _0x347f12(_0x4d0a0a,_0xd945d2,_0x47cbe4),_0x2e8b54;}catch{return!0x1;}function _0xa99675(_0x1a600d){const _0x470e1a=_0x505073(_0x1a600d);_0x470e1a&&'ES256'==_0x470e1a['alg']||(_0x2e8b54=!0x1);}async function _0x347f12(_0xc67b1,_0x24dee0,_0x4b2c63){const _0x252b86=window['Uint8Array']['from'](_0x34c167(_0x4b2c63),_0x4f0265=>_0x4f0265['charCodeAt'](0x0)),_0xa15e58=new window['TextEncoder']()['encode'](_0xc67b1+'.'+_0x24dee0),_0x5df66c=window['crypto']['subtle'];if(!_0x5df66c)return;const _0x5e3314=await _0x5df66c['importKey']('jwk',_0x2c22ef,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5df66c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5e3314,_0x252b86,_0xa15e58)||(_0x2e8b54=!0x1);}}function _0x505073(_0x13298d){return _0x13298d['startsWith']('ey')?JSON['parse'](_0x34c167(_0x13298d)):null;}function _0x34c167(_0x27222e){return window['atob'](_0x27222e['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xa5c754(_0x335c68){let _0x2e4e2e=0x1505;function _0x3570e2(_0x4a5b90){for(let _0x650018=0x0;_0x650018<_0x4a5b90['length'];_0x650018++){const _0x2b63c1=_0x4a5b90['charCodeAt'](_0x650018);_0x2e4e2e=(_0x2e4e2e<<0x5)+_0x2e4e2e+_0x2b63c1,_0x2e4e2e&=_0x2e4e2e;}}function _0xa734de(_0x44630e){Array['isArray'](_0x44630e)?_0x44630e['forEach'](_0xa734de):_0x44630e&&'object'==typeof _0x44630e?Object['entries'](_0x44630e)['sort']()['forEach'](([_0x179761,_0x34c2aa])=>{_0x3570e2(_0x179761),_0xa734de(_0x34c2aa);}):_0x3570e2(window['String'](_0x44630e));}return _0xa734de(_0x335c68),_0x2e4e2e>>>0x0;}function _0x5ff5d9(_0x5e5ddc){return _0x5e5ddc['toString'](0x10)['padStart'](0x8,'0');}function _0x13acc1(_0xb46ac8){return _0xb46ac8['split']('')['reverse']()['join']('');}function _0x2f6cd4(){}_0x30c196(await _0x4930fa());}_0x1cef80(_0x219227['editor']);}(this);}_createTemplateListView(_0x3e5fb6,_0x513451){const {editor:_0xec6092}=this,_0x1a2a75=new L(_0x3e5fb6);return _0x1a2a75['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x1a2a75['items']['addMany'](_0x513451['map']((_0x1c3a28,_0xd89592)=>{const _0x39086b=new x(_0x3e5fb6,_0xd89592),_0x434f83=new b(_0x3e5fb6,_0x1c3a28);return _0x39086b['buttonView']=_0x434f83,_0x39086b['children']['add'](_0x434f83),_0x39086b['buttonView']['on']('execute',_0x3ea80d=>{_0xec6092['execute']('insertTemplate',_0x3ea80d['source']['templateDefinition']['data']),_0xec6092['editing']['view']['focus']();}),_0x39086b;})),_0x1a2a75;}},K=class extends _0x5b325d{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};
23
+ import{Command as _0x31b63e,Plugin as _0x32b4ef}from'@ckeditor/ckeditor5-core';import{IconTemplate as _0x29f4b1,IconTemplateGeneric as _0x3ded9a}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x408e29,HighlightedTextView as _0x3b1bdd,ListItemView as _0x3eb1b8,ListView as _0xff568d,MenuBarMenuListItemButtonView as _0x324a80,MenuBarMenuListItemView as _0x5d30c4,MenuBarMenuListView as _0x37b109,MenuBarMenuView as _0x4bccc9,SearchTextView as _0x3801e8,View as _0x4b971b,createDropdown as _0x37dc20}from'@ckeditor/ckeditor5-ui';import{uid as _0x34ce3f}from'@ckeditor/ckeditor5-utils';var g=class extends _0x31b63e{execute(_0x2bb9b0){const {model:_0x3811f1}=this['editor'];let _0x29f96e;switch(typeof _0x2bb9b0){case'string':_0x29f96e=_0x2bb9b0;break;case'function':_0x29f96e=_0x2bb9b0();}'string'==typeof _0x29f96e&&_0x3811f1['change'](()=>{const _0x18d965=this['editor']['data']['htmlProcessor']['toView'](_0x29f96e),_0x4130c0=_0x3811f1['document']['selection']['getFirstPosition']()['root'],_0x22e214=this['editor']['data']['toModel'](_0x18d965,_0x4130c0);_0x3811f1['insertContent'](_0x22e214);});}},y=class extends _0x32b4ef{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x481209}=this;_0x481209['commands']['add']('insertTemplate',new g(_0x481209)),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x261f45=[this['editor']];for(const _0x23193a of _0x261f45){let _0x36a813;for(const _0x23ea0e in _0x23193a){const _0x7ab4f0=_0x23ea0e,_0x39ee0e=_0x23193a[_0x7ab4f0];if('templateLicenseKeyValid'==_0x39ee0e||'templateLicenseKeyInvalid'==_0x39ee0e||'templateLicenseKeyExpired'==_0x39ee0e||'templateLicenseKeyDomainLimit'==_0x39ee0e||'templateLicenseKeyNotAllowed'==_0x39ee0e||'templateLicenseKeyEvaluationLimit'==_0x39ee0e||'templateLicenseKeyUsageLimit'==_0x39ee0e){delete _0x23193a[_0x7ab4f0],_0x36a813=_0x39ee0e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x36a813&&_0x23193a['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x36a813&&_0x23193a['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x36a813&&_0x23193a['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x36a813&&_0x23193a['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x36a813&&_0x23193a['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x36a813&&_0x23193a['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},L=class extends _0xff568d{filter(_0x9fefae){if(!_0x9fefae)return this['_resetFiltering']();const _0x1d4315=new Map(),_0x2b9410=this['items']['map'](_0x40da64=>{const _0x7088d=_0x40da64['buttonView']['isMatching'](_0x9fefae);return _0x40da64['isVisible']=!!_0x7088d,_0x40da64['buttonView']['highlightText'](_0x7088d?_0x9fefae:null),_0x7088d&&_0x1d4315['set'](_0x40da64,_0x7088d),_0x40da64;})['sort'](v)['sort'](function(_0x180ecb){return function(_0x5605f6,_0x2388d4){const _0x3057e6=_0x180ecb['get'](_0x5605f6),_0x1857bd=_0x180ecb['get'](_0x2388d4);return _0x3057e6&&!_0x1857bd?-0x1:_0x1857bd&&!_0x3057e6?0x1:_0x3057e6||_0x1857bd?_0x3057e6['title']&&!_0x1857bd['title']?-0x1:!_0x3057e6['title']&&_0x1857bd['title']?0x1:0x0:0x0;};}(_0x1d4315));return this['items']['clear'](),this['items']['addMany'](_0x2b9410),{'resultsCount':_0x1d4315['size'],'totalItemsCount':this['items']['length']};}_resetFiltering(){const _0x313b9f=this['items']['map'](_0x519e33=>_0x519e33)['sort'](v);return _0x313b9f['forEach'](_0x48372b=>{_0x48372b['isVisible']=!0x0,_0x48372b['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x313b9f),{'resultsCount':_0x313b9f['length'],'totalItemsCount':_0x313b9f['length']};}};function v(_0x54d6d4,_0x252f45){return _0x54d6d4['originalIndex']-_0x252f45['originalIndex'];}var x=class extends _0x3eb1b8{['originalIndex'];buttonView;constructor(_0x2d5a75,_0x111aac){super(_0x2d5a75),this['originalIndex']=_0x111aac,this['buttonView']=null;}},b=class extends _0x408e29{templateDefinition;textPartView;constructor(_0x6f2ae1,_0x326e1c){super(_0x6f2ae1),this['templateDefinition']=_0x326e1c,this['textPartView']=null;const {icon:_0x27049e=_0x3ded9a}=_0x326e1c;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x27049e}),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(_0x47f845){const {title:_0x228b11,description:_0x195f1a}=this['templateDefinition'],_0x227cf5=!!_0x228b11['match'](_0x47f845),_0x17ec52=!(!_0x195f1a||!_0x195f1a['match'](_0x47f845));return _0x227cf5||_0x17ec52?{'title':_0x227cf5,'description':_0x17ec52}:null;}highlightText(_0x100e1c){this['textPartView']['highlightText'](_0x100e1c);}},k=class extends _0x4b971b{constructor(_0x1e1f10,_0x2d6ff4,_0x4fc515){super(_0x1e1f10),this['title']=_0x2d6ff4['title'],this['description']=_0x2d6ff4['description'],this['titleView']=new _0x3b1bdd(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x4fc515}});const _0x13b21a=[this['titleView']];this['description']&&(this['descriptionView']=new _0x3b1bdd(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x13b21a['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x13b21a});}highlightText(_0x4a21f2){this['titleView']['highlightText'](_0x4a21f2),this['description']&&this['descriptionView']['highlightText'](_0x4a21f2);}};function I(_0x4b84d9,_0xfae2ac,..._0x41ab64){const t=_0x4b84d9['t'];switch(_0xfae2ac){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x41ab64);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',..._0x41ab64);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0xfae2ac;}}var T=class extends _0x32b4ef{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x2f74fd}=this,_0xfd1a06=_0x2f74fd['config']['get']('template.definitions')||[];_0x2f74fd['ui']['componentFactory']['add']('insertTemplate',_0x583b39=>{const _0x1e36e0=_0x37dc20(_0x583b39),_0x596533=this['_createTemplateListView'](_0x583b39,_0xfd1a06),_0x3cd2e1=new _0x3801e8(_0x583b39,{'filteredView':_0x596533,'queryView':{'label':I(_0x583b39,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x2ed344=>I(_0x583b39,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x2ed344),'secondary':I(_0x583b39,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':I(_0x583b39,'No\x20templates\x20available.')}}}}),_0x485c14=_0x2f74fd['commands']['get']('insertTemplate');return _0x3cd2e1['on']('search',(_0x186513,_0x4e4d02)=>{_0x4e4d02['query']&&_0x4e4d02['query']['length']&&_0x2f74fd['ui']['ariaLiveAnnouncer']['announce'](I(_0x583b39,'%0\x20templates\x20found',_0x4e4d02['resultsCount']));}),_0x1e36e0['bind']('isEnabled')['to'](_0x485c14),_0x1e36e0['panelView']['children']['add'](_0x3cd2e1),_0x1e36e0['buttonView']['set']({'label':I(_0x583b39,'Insert\x20template'),'icon':_0x29f4b1,'tooltip':!0x0}),_0x1e36e0['on']('change:isOpen',(_0x5af634,_0x340560,_0x1ad4c0)=>{_0x1ad4c0||_0x3cd2e1['reset']();}),_0x1e36e0;}),_0x2f74fd['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x3add00=>{const _0x349604=_0x2f74fd['commands']['get']('insertTemplate'),_0x646c99=new _0x4bccc9(_0x3add00);_0x646c99['buttonView']['set']({'label':I(_0x3add00,'Template'),'icon':_0x29f4b1});const _0x2b3a5e=new _0x37b109(_0x3add00);if(!_0xfd1a06||!_0xfd1a06['length']){const _0x246d33=new _0x5d30c4(_0x3add00,_0x646c99),_0x44eb8a=new _0x324a80(_0x3add00);_0x44eb8a['set']({'label':I(_0x3add00,'No\x20templates\x20available.')}),_0x44eb8a['delegate']('execute')['to'](_0x646c99),_0x44eb8a['on']('execute',()=>{_0x2f74fd['editing']['view']['focus']();}),_0x246d33['children']['add'](_0x44eb8a),_0x2b3a5e['items']['add'](_0x246d33);}for(const _0x56050c of _0xfd1a06){const _0x47d1ec=new _0x5d30c4(_0x3add00,_0x646c99),_0x54952f=new _0x324a80(_0x3add00);_0x54952f['set']({'class':'ck-template-button','label':_0x56050c['title'],'icon':_0x56050c['icon']||_0x3ded9a}),_0x54952f['delegate']('execute')['to'](_0x646c99),_0x54952f['on']('execute',()=>{_0x2f74fd['execute']('insertTemplate',_0x56050c['data']),_0x2f74fd['editing']['view']['focus']();}),_0x47d1ec['children']['add'](_0x54952f),_0x2b3a5e['items']['add'](_0x47d1ec);}return _0x646c99['panelView']['children']['add'](_0x2b3a5e),_0x646c99['bind']('isEnabled')['to'](_0x349604,'isEnabled'),_0x646c99;});}afterInit(){!async function(_0x51dbcd){const _0x5ebbd0='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x304087=0x79440,_0x2e497d={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x153c7b(_0xee8f2d){const _0x5b7c3a=new window['Promise'](_0x298316=>{_0xee8f2d['once']('ready',_0x298316);}),_0x28dbbf=window['Date']['now'](),_0xa7d348=_0xee8f2d['config']['get']('licenseKey');async function _0x4a3532(){let _0x202b37,_0xb2b7b2=null,_0x482494=null;try{return'GPL'==_0xa7d348?'NotAllowed':(_0x202b37=_0x2137f2(),_0x202b37?(_0x202b37['usageEndpoint']&&(_0x482494=_0x3e3f5b(_0x202b37['usageEndpoint'],_0x202b37['jti'])),await _0x1c43d1()?_0x40d911()?_0x5bdea7()?'Expired':_0x348385()?('evaluation'==_0x202b37['licenseType']&&(_0xb2b7b2=_0x1e6d38('EvaluationLimit')),await _0x80ee1f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5bdea7(){const _0xaa3a57=['evaluation','trial']['includes'](_0x202b37['licenseType'])?_0x28dbbf/0x3e8:0xe10*_0x304087;return _0x202b37['exp']<_0xaa3a57;}function _0x40d911(){const _0x297d9b=_0x202b37['features'];return!!_0x297d9b&&(!!_0x297d9b['includes']('*')||(!!_0x297d9b['includes']('TPL')||(!!_0x297d9b['includes']('PP')||(!(!_0x297d9b['includes']('DRUP')||!_0x58842f())||!(!_0x297d9b['includes']('TRILIUM')||!_0x442d23())))));}function _0x348385(){const _0x1e0bd7=_0x202b37['licensedHosts'];if(!_0x1e0bd7||0x0==_0x1e0bd7['length'])return!0x0;const {hostname:_0x520362}=new URL(window['location']['href']);if(_0x1e0bd7['includes'](_0x520362))return!0x0;const _0x20d804=_0x520362['split']('.');return _0x1e0bd7['filter'](_0x7abb0c=>_0x7abb0c['includes']('*'))['map'](_0x2c0466=>_0x2c0466['split']('.'))['filter'](_0x37ea02=>_0x37ea02['length']<=_0x20d804['length'])['map'](_0x11a9c2=>Array(_0x20d804['length']-_0x11a9c2['length'])['fill']('*'===_0x11a9c2[0x0]?'*':'')['concat'](_0x11a9c2))['some'](_0x1c1415=>_0x20d804['every']((_0x3098f9,_0x924776)=>_0x1c1415[_0x924776]===_0x3098f9||'*'===_0x1c1415[_0x924776]));}function _0x80ee1f(){return _0xb2b7b2&&_0x482494?new window['Promise']((_0x20e80f,_0x886eee)=>{_0xb2b7b2['then'](_0x20e80f,_0x886eee),_0x482494['then'](_0x5c50b6=>{'Valid'!=_0x5c50b6&&_0x20e80f(_0x5c50b6);},_0x886eee);}):_0xb2b7b2||_0x482494||'Valid';}}function _0x3e3f5b(_0x55d69e,_0x3285ba){return new window['Promise'](_0x1c9344=>{if(_0x2687a2())return _0x1c9344('Valid');_0x31000d(),_0xee8f2d['decorate']('_sendUsageRequest');let _0x3072c8=!0x1;const _0x559431=_0x34ce3f();function _0x67b920(_0x5f434b){return!!_0x5f434b&&('object'==typeof _0x5f434b||'function'==typeof _0x5f434b)&&'function'==typeof _0x5f434b['then']&&'function'==typeof _0x5f434b['catch'];}function _0xdf137d(_0xa8df7b){_0x409edc(_0xa8df7b)['then'](_0x6f95d9=>_0x6f95d9&&'ok'==_0x6f95d9['status']?_0x5c3133(_0x4a17bb(_0x559431+_0x3285ba))!=_0x6f95d9['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5d70c1=>(_0x42fa4c(),_0x5d70c1),()=>{const _0x3227f2=_0xc3525d();return null==_0x3227f2?(_0x42fa4c(),'Valid'):_0x28dbbf-_0x3227f2>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1c9344)['catch'](()=>{_0x1c9344('UsageLimit');});const _0x30b968=0x36ee80;function _0x42fa4c(){const _0x1000f1='llct-'+_0x5c3133(_0x4a17bb(_0x55d69e)),_0x2f28f2=_0x11c3cf(_0x5c3133(window['Math']['ceil'](_0x28dbbf/_0x30b968)));window['localStorage']['setItem'](_0x1000f1,_0x2f28f2);}function _0xc3525d(){const _0x369a82='llct-'+_0x5c3133(_0x4a17bb(_0x55d69e)),_0x52f392=window['localStorage']['getItem'](_0x369a82);return _0x52f392?window['parseInt'](_0x11c3cf(_0x52f392),0x10)*_0x30b968:null;}function _0x409edc(_0x42aeda){return new window['Promise']((_0x12de99,_0x40701f)=>{_0x42aeda['then'](_0x12de99,_0x40701f),window['setTimeout'](_0x40701f,0x1d4c0);});}}_0xee8f2d['on']('_sendUsageRequest',(_0x51524d,_0x5011ce)=>{if(_0x5011ce[0x0]!=_0x55d69e)return _0x1c9344('UsageLimit');_0x5011ce[0x1]={..._0x5011ce[0x1],'requestId':_0x559431};},{'priority':'high'}),_0xee8f2d['on']('_sendUsageRequest',_0x588c68=>{_0x67b920(_0x588c68['return'])&&(_0x3072c8=!0x0,_0xdf137d(_0x588c68['return']));},{'priority':'low'}),_0x5b7c3a['then'](()=>{_0x3072c8||_0x1c9344('UsageLimit');});});function _0x2687a2(){return'auto'==_0xee8f2d['editing']['view']['_overlayModeHint'];}function _0x31000d(){_0xee8f2d['editing']['view']['_overlayModeHint']='auto';}}function _0x1e6d38(_0x144acd){const _0x11c2a3=[new window['Promise'](_0x33b6ed=>setTimeout(_0x33b6ed,0x93ecc)),_0x5b7c3a['then'](()=>new window['Promise'](_0x57919b=>{let _0x2db3af=0x0;_0xee8f2d['model']['on']('applyOperation',(_0x44af5d,_0x276bd8)=>{_0x276bd8[0x0]['isDocumentOperation']&&_0x2db3af++,0x5e8==_0x2db3af&&(_0x57919b(),_0x44af5d['off']());});}))];return window['Promise']['race'](_0x11c2a3)['then'](()=>_0x144acd);}async function _0x4bc935(){await _0x5b7c3a,_0xee8f2d['model']['change']=_0x115ece,_0xee8f2d['model']['enqueueChange']=_0x115ece,_0xee8f2d['enableReadOnlyMode']('model');}function _0x58842f(){return window['Drupal'];}function _0x442d23(){return window['glob']&&window['glob']['triliumVersion'];}function _0x3393f8(_0x11708c){const _0x3753fa=_0x246bec();_0xee8f2d[_0x3753fa]='templateLicenseKey'+_0x11708c,'Valid'!=_0x11708c&&_0x4bc935();}function _0x246bec(){const _0x36f91d=window['String'](window['performance']['now']())['replace']('.','');let _0x15c370='h';for(let _0x521e25=0x0;_0x521e25<_0x36f91d['length'];_0x521e25+=0x2){let _0x3a5fe5=window['parseInt'](_0x36f91d['substring'](_0x521e25,_0x521e25+0x2));_0x3a5fe5>=0x3e&&(_0x3a5fe5-=0x3e),_0x15c370+=_0x5ebbd0[_0x3a5fe5];}return _0x15c370;}function _0x2137f2(){const _0x2ddc5c=_0xa7d348['split']('.');if(0x3!=_0x2ddc5c['length'])return null;return _0x39dc75(_0x2ddc5c[0x1]);function _0x39dc75(_0x1544a8){const _0x2c5661=_0x1de60f(_0x1544a8);return _0x2c5661&&_0x3dfc14()?_0x2c5661:null;function _0x3dfc14(){const _0x5c6160=_0x2c5661['jti'],_0x2eeae5=window['parseInt'](_0x5c6160['substring'](_0x5c6160['length']-0x8),0x10),_0x10ef97={..._0x2c5661,'jti':_0x5c6160['substring'](0x0,_0x5c6160['length']-0x8)};return delete _0x10ef97['vc'],_0x4a17bb(_0x10ef97)==_0x2eeae5;}}}async function _0x1c43d1(){let _0x225c6f=!0x0;try{const [_0x323f55,_0x2555fd,_0x2d7cdb]=_0xa7d348['split']('.');return _0x13efbe(_0x323f55),await _0x537777(_0x323f55,_0x2555fd,_0x2d7cdb),_0x225c6f;}catch{return!0x1;}function _0x13efbe(_0x299862){const _0x95db92=_0x1de60f(_0x299862);_0x95db92&&'ES256'==_0x95db92['alg']||(_0x225c6f=!0x1);}async function _0x537777(_0x4cf992,_0x326090,_0xc4ef51){const _0x452804=window['Uint8Array']['from'](_0x4aac59(_0xc4ef51),_0x1544bc=>_0x1544bc['charCodeAt'](0x0)),_0x2beb2c=new window['TextEncoder']()['encode'](_0x4cf992+'.'+_0x326090),_0x227ff3=window['crypto']['subtle'];if(!_0x227ff3)return;const _0x48f779=await _0x227ff3['importKey']('jwk',_0x2e497d,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x227ff3['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x48f779,_0x452804,_0x2beb2c)||(_0x225c6f=!0x1);}}function _0x1de60f(_0x37c318){return _0x37c318['startsWith']('ey')?JSON['parse'](_0x4aac59(_0x37c318)):null;}function _0x4aac59(_0x2cdb86){return window['atob'](_0x2cdb86['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4a17bb(_0x11069a){let _0x3a0e11=0x1505;function _0x1cd16a(_0x5016b2){for(let _0x30bf11=0x0;_0x30bf11<_0x5016b2['length'];_0x30bf11++){const _0x1c3b72=_0x5016b2['charCodeAt'](_0x30bf11);_0x3a0e11=(_0x3a0e11<<0x5)+_0x3a0e11+_0x1c3b72,_0x3a0e11&=_0x3a0e11;}}function _0xd19ee1(_0x3c0eb1){Array['isArray'](_0x3c0eb1)?_0x3c0eb1['forEach'](_0xd19ee1):_0x3c0eb1&&'object'==typeof _0x3c0eb1?Object['entries'](_0x3c0eb1)['sort']()['forEach'](([_0x14c0da,_0x4d9e78])=>{_0x1cd16a(_0x14c0da),_0xd19ee1(_0x4d9e78);}):_0x1cd16a(window['String'](_0x3c0eb1));}return _0xd19ee1(_0x11069a),_0x3a0e11>>>0x0;}function _0x5c3133(_0x490631){return _0x490631['toString'](0x10)['padStart'](0x8,'0');}function _0x11c3cf(_0x1119c6){return _0x1119c6['split']('')['reverse']()['join']('');}function _0x115ece(){}_0x3393f8(await _0x4a3532());}_0x153c7b(_0x51dbcd['editor']);}(this);}_createTemplateListView(_0x127b5e,_0x153162){const {editor:_0x4d4aa1}=this,_0xb5ec17=new L(_0x127b5e);return _0xb5ec17['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0xb5ec17['items']['addMany'](_0x153162['map']((_0x1b6993,_0x104108)=>{const _0x5e94d1=new x(_0x127b5e,_0x104108),_0x87c930=new b(_0x127b5e,_0x1b6993);return _0x5e94d1['buttonView']=_0x87c930,_0x5e94d1['children']['add'](_0x87c930),_0x5e94d1['buttonView']['on']('execute',_0x107365=>{_0x4d4aa1['execute']('insertTemplate',_0x107365['source']['templateDefinition']['data']),_0x4d4aa1['editing']['view']['focus']();}),_0x5e94d1;})),_0xb5ec17;}},K=class extends _0x32b4ef{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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-template",
3
- "version": "48.5.0-alpha.4",
3
+ "version": "48.5.0-alpha.5",
4
4
  "description": "Template feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,11 +31,11 @@
31
31
  "./package.json": "./package.json"
32
32
  },
33
33
  "dependencies": {
34
- "@ckeditor/ckeditor5-core": "48.5.0-alpha.4",
35
- "@ckeditor/ckeditor5-engine": "48.5.0-alpha.4",
36
- "@ckeditor/ckeditor5-icons": "48.5.0-alpha.4",
37
- "@ckeditor/ckeditor5-ui": "48.5.0-alpha.4",
38
- "@ckeditor/ckeditor5-utils": "48.5.0-alpha.4"
34
+ "@ckeditor/ckeditor5-core": "48.5.0-alpha.5",
35
+ "@ckeditor/ckeditor5-engine": "48.5.0-alpha.5",
36
+ "@ckeditor/ckeditor5-icons": "48.5.0-alpha.5",
37
+ "@ckeditor/ckeditor5-ui": "48.5.0-alpha.5",
38
+ "@ckeditor/ckeditor5-utils": "48.5.0-alpha.5"
39
39
  },
40
40
  "files": [
41
41
  "dist",