@ckeditor/ckeditor5-template 48.4.0-alpha.3 → 48.4.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 _0x51aefd,Plugin as _0x51cb56}from'@ckeditor/ckeditor5-core';import{IconTemplate as _0x4fad6c,IconTemplateGeneric as _0x44bcfc}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x4f7bb4,HighlightedTextView as _0x2c2acc,ListItemView as _0x5875e0,ListView as _0xe2a863,MenuBarMenuListItemButtonView as _0x4056b6,MenuBarMenuListItemView as _0x2309ea,MenuBarMenuListView as _0xa7f78b,MenuBarMenuView as _0x5550d3,SearchTextView as _0x27a666,View as _0x2fb266,createDropdown as _0x5ead28}from'@ckeditor/ckeditor5-ui';import{uid as _0x559bde}from'@ckeditor/ckeditor5-utils';var g=class extends _0x51aefd{execute(_0x1f2472){const {model:_0x4575ee}=this['editor'];let _0x24b147;switch(typeof _0x1f2472){case'string':_0x24b147=_0x1f2472;break;case'function':_0x24b147=_0x1f2472();}'string'==typeof _0x24b147&&_0x4575ee['change'](()=>{const _0xad13db=this['editor']['data']['htmlProcessor']['toView'](_0x24b147),_0x3ab449=_0x4575ee['document']['selection']['getFirstPosition']()['root'],_0x4c60b4=this['editor']['data']['toModel'](_0xad13db,_0x3ab449);_0x4575ee['insertContent'](_0x4c60b4);});}},y=class extends _0x51cb56{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x2f9cd1}=this;_0x2f9cd1['commands']['add']('insertTemplate',new g(_0x2f9cd1)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x52b1e1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2369cb;for(const _0x3bb212 in _0x52b1e1){const _0x5d7934=_0x3bb212,_0x50f8fa=_0x52b1e1[_0x5d7934];if('templateLicenseKeyValid'==_0x50f8fa||'templateLicenseKeyInvalid'==_0x50f8fa||'templateLicenseKeyExpired'==_0x50f8fa||'templateLicenseKeyDomainLimit'==_0x50f8fa||'templateLicenseKeyNotAllowed'==_0x50f8fa||'templateLicenseKeyEvaluationLimit'==_0x50f8fa||'templateLicenseKeyUsageLimit'==_0x50f8fa){delete _0x52b1e1[_0x5d7934],_0x2369cb=_0x50f8fa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x2369cb&&_0x52b1e1['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x2369cb&&_0x52b1e1['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x2369cb&&_0x52b1e1['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x2369cb&&_0x52b1e1['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x2369cb&&_0x52b1e1['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x2369cb&&_0x52b1e1['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},L=class extends _0xe2a863{filter(_0x50f1d9){if(!_0x50f1d9)return this['_resetFiltering']();const _0x504aae=new Map(),_0x1ffc43=this['items']['map'](_0x1b659c=>{const _0x4984ad=_0x1b659c['buttonView']['isMatching'](_0x50f1d9);return _0x1b659c['isVisible']=!!_0x4984ad,_0x1b659c['buttonView']['highlightText'](_0x4984ad?_0x50f1d9:null),_0x4984ad&&_0x504aae['set'](_0x1b659c,_0x4984ad),_0x1b659c;})['sort'](v)['sort'](function(_0x4d5029){return function(_0x4010f0,_0x41ed97){const _0x48b814=_0x4d5029['get'](_0x4010f0),_0x1bd10c=_0x4d5029['get'](_0x41ed97);return _0x48b814&&!_0x1bd10c?-0x1:_0x1bd10c&&!_0x48b814?0x1:_0x48b814||_0x1bd10c?_0x48b814['title']&&!_0x1bd10c['title']?-0x1:!_0x48b814['title']&&_0x1bd10c['title']?0x1:0x0:0x0;};}(_0x504aae));return this['items']['clear'](),this['items']['addMany'](_0x1ffc43),{'resultsCount':_0x504aae['size'],'totalItemsCount':this['items']['length']};}_resetFiltering(){const _0xef8312=this['items']['map'](_0x101276=>_0x101276)['sort'](v);return _0xef8312['forEach'](_0x986f19=>{_0x986f19['isVisible']=!0x0,_0x986f19['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0xef8312),{'resultsCount':_0xef8312['length'],'totalItemsCount':_0xef8312['length']};}};function v(_0x41e01e,_0x163acb){return _0x41e01e['originalIndex']-_0x163acb['originalIndex'];}var x=class extends _0x5875e0{['originalIndex'];buttonView;constructor(_0xacfc1d,_0x11a23e){super(_0xacfc1d),this['originalIndex']=_0x11a23e,this['buttonView']=null;}},b=class extends _0x4f7bb4{templateDefinition;textPartView;constructor(_0x2948be,_0x299ead){super(_0x2948be),this['templateDefinition']=_0x299ead,this['textPartView']=null;const {icon:_0x25fd4f=_0x44bcfc}=_0x299ead;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x25fd4f}),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(_0x3ab78d){const {title:_0x20cca6,description:_0xb23e86}=this['templateDefinition'],_0x3ff280=!!_0x20cca6['match'](_0x3ab78d),_0x2be253=!(!_0xb23e86||!_0xb23e86['match'](_0x3ab78d));return _0x3ff280||_0x2be253?{'title':_0x3ff280,'description':_0x2be253}:null;}highlightText(_0x175975){this['textPartView']['highlightText'](_0x175975);}},k=class extends _0x2fb266{constructor(_0xa62041,_0xbf3c53,_0x1c6d90){super(_0xa62041),this['title']=_0xbf3c53['title'],this['description']=_0xbf3c53['description'],this['titleView']=new _0x2c2acc(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x1c6d90}});const _0x5e9474=[this['titleView']];this['description']&&(this['descriptionView']=new _0x2c2acc(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x5e9474['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x5e9474});}highlightText(_0x3d0acc){this['titleView']['highlightText'](_0x3d0acc),this['description']&&this['descriptionView']['highlightText'](_0x3d0acc);}};function I(_0xd2dd76,_0x823838,..._0x1d50e2){const t=_0xd2dd76['t'];switch(_0x823838){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x1d50e2);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',..._0x1d50e2);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x823838;}}var T=class extends _0x51cb56{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x368d53}=this,_0x47971b=_0x368d53['config']['get']('template.definitions')||[];_0x368d53['ui']['componentFactory']['add']('insertTemplate',_0x3c19f9=>{const _0x127858=_0x5ead28(_0x3c19f9),_0x5c356b=new _0x27a666(_0x3c19f9,{'filteredView':this['_createTemplateListView'](_0x3c19f9,_0x47971b),'queryView':{'label':I(_0x3c19f9,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x396c5c=>I(_0x3c19f9,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x396c5c),'secondary':I(_0x3c19f9,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':I(_0x3c19f9,'No\x20templates\x20available.')}}}}),_0x20f2f0=_0x368d53['commands']['get']('insertTemplate');return _0x5c356b['on']('search',(_0x5bc5c1,_0xe041f)=>{_0xe041f['query']&&_0xe041f['query']['length']&&_0x368d53['ui']['ariaLiveAnnouncer']['announce'](I(_0x3c19f9,'%0\x20templates\x20found',_0xe041f['resultsCount']));}),_0x127858['bind']('isEnabled')['to'](_0x20f2f0),_0x127858['panelView']['children']['add'](_0x5c356b),_0x127858['buttonView']['set']({'label':I(_0x3c19f9,'Insert\x20template'),'icon':_0x4fad6c,'tooltip':!0x0}),_0x127858['on']('change:isOpen',(_0x27bf03,_0x2cee16,_0x42f59a)=>{_0x42f59a||_0x5c356b['reset']();}),_0x127858;}),_0x368d53['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x4f8aaf=>{const _0x13a5dd=_0x368d53['commands']['get']('insertTemplate'),_0x56ba04=new _0x5550d3(_0x4f8aaf);_0x56ba04['buttonView']['set']({'label':I(_0x4f8aaf,'Template'),'icon':_0x4fad6c});const _0x340d8c=new _0xa7f78b(_0x4f8aaf);if(!_0x47971b||!_0x47971b['length']){const _0x10ba3b=new _0x2309ea(_0x4f8aaf,_0x56ba04),_0xd901c9=new _0x4056b6(_0x4f8aaf);_0xd901c9['set']({'label':I(_0x4f8aaf,'No\x20templates\x20available.')}),_0xd901c9['delegate']('execute')['to'](_0x56ba04),_0xd901c9['on']('execute',()=>{_0x368d53['editing']['view']['focus']();}),_0x10ba3b['children']['add'](_0xd901c9),_0x340d8c['items']['add'](_0x10ba3b);}for(const _0x533849 of _0x47971b){const _0x478359=new _0x2309ea(_0x4f8aaf,_0x56ba04),_0x4ef494=new _0x4056b6(_0x4f8aaf);_0x4ef494['set']({'class':'ck-template-button','label':_0x533849['title'],'icon':_0x533849['icon']||_0x44bcfc}),_0x4ef494['delegate']('execute')['to'](_0x56ba04),_0x4ef494['on']('execute',()=>{_0x368d53['execute']('insertTemplate',_0x533849['data']),_0x368d53['editing']['view']['focus']();}),_0x478359['children']['add'](_0x4ef494),_0x340d8c['items']['add'](_0x478359);}return _0x56ba04['panelView']['children']['add'](_0x340d8c),_0x56ba04['bind']('isEnabled')['to'](_0x13a5dd,'isEnabled'),_0x56ba04;});}afterInit(){!async function(_0x548571){const _0x5bc9c9='5goNZRxHzmBfrl0Fq6Cks1ahDGS2LUEWiby3wKvu4IVPdeT8jn9MOQJtcAY7Xp',_0x2e992f=0x79170,_0x961624=window['Date']['now'](),_0x32cf8f=_0x548571['editor'],_0x28cdf3=new window['Promise'](_0x163244=>{_0x32cf8f['once']('ready',_0x163244);}),_0x55b1f0={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x30e743=_0x32cf8f['config']['get']('licenseKey');async function _0x7ed25e(){let _0x5a4151,_0x1a8b32=null,_0x3ae2f0=null;try{return'GPL'==_0x30e743?'NotAllowed':(_0x5a4151=_0x2196e8(),_0x5a4151?(_0x5a4151['usageEndpoint']&&(_0x3ae2f0=_0x24ddad(_0x5a4151['usageEndpoint'],_0x5a4151['jti'])),await _0x45748d()?_0x3e6e3f()?_0x196b2f()?'Expired':_0x1181bc()?('evaluation'==_0x5a4151['licenseType']&&(_0x1a8b32=_0x56ebcb('EvaluationLimit')),await _0x2fed7f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x196b2f(){const _0x2b20f6=['evaluation','trial']['includes'](_0x5a4151['licenseType'])?_0x961624/0x3e8:0xe10*_0x2e992f;return _0x5a4151['exp']<_0x2b20f6;}function _0x3e6e3f(){const _0x1e513b=_0x5a4151['features'];return!!_0x1e513b&&(!!_0x1e513b['includes']('*')||(!!_0x1e513b['includes']('TPL')||(!!_0x1e513b['includes']('PP')||(!(!_0x1e513b['includes']('DRUP')||!_0x2110ea())||!(!_0x1e513b['includes']('TRILIUM')||!_0x2b060f())))));}function _0x1181bc(){const _0x3922c1=_0x5a4151['licensedHosts'];if(!_0x3922c1||0x0==_0x3922c1['length'])return!0x0;const {hostname:_0x2c884b}=new URL(window['location']['href']);if(_0x3922c1['includes'](_0x2c884b))return!0x0;const _0x1eba6b=_0x2c884b['split']('.');return _0x3922c1['filter'](_0x4771a5=>_0x4771a5['includes']('*'))['map'](_0x3aacc3=>_0x3aacc3['split']('.'))['filter'](_0x54dcb0=>_0x54dcb0['length']<=_0x1eba6b['length'])['map'](_0x301126=>Array(_0x1eba6b['length']-_0x301126['length'])['fill']('*'===_0x301126[0x0]?'*':'')['concat'](_0x301126))['some'](_0x46a20f=>_0x1eba6b['every']((_0x4e4bb8,_0x30586a)=>_0x46a20f[_0x30586a]===_0x4e4bb8||'*'===_0x46a20f[_0x30586a]));}function _0x2fed7f(){return _0x1a8b32&&_0x3ae2f0?new window['Promise']((_0x484642,_0x29c050)=>{_0x1a8b32['then'](_0x484642,_0x29c050),_0x3ae2f0['then'](_0x173db5=>{'Valid'!=_0x173db5&&_0x484642(_0x173db5);},_0x29c050);}):_0x1a8b32||_0x3ae2f0||'Valid';}}function _0x24ddad(_0x40340d,_0x1c8cbc){return new window['Promise'](_0x3c779a=>{if(_0x4d2d11())return _0x3c779a('Valid');_0x59ea67(),_0x32cf8f['decorate']('_sendUsageRequest');let _0x468d7a=!0x1;const _0x496951=_0x559bde();function _0xd00a51(_0x38c614){return!!_0x38c614&&('object'==typeof _0x38c614||'function'==typeof _0x38c614)&&'function'==typeof _0x38c614['then']&&'function'==typeof _0x38c614['catch'];}function _0x493392(_0x2e45f0){_0x48284c(_0x2e45f0)['then'](_0x2c247d=>_0x2c247d&&'ok'==_0x2c247d['status']?_0xb4552f(_0x1617b4(_0x496951+_0x1c8cbc))!=_0x2c247d['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x29d1ec=>(_0x5019e0(),_0x29d1ec),()=>{const _0x42ee12=_0x1ca085();return null==_0x42ee12?(_0x5019e0(),'Valid'):_0x961624-_0x42ee12>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3c779a)['catch'](()=>{_0x3c779a('UsageLimit');});const _0x1152d3=0x36ee80;function _0x5019e0(){const _0x4babc3='llct-'+_0xb4552f(_0x1617b4(_0x40340d)),_0x127c0e=_0x5ab523(_0xb4552f(window['Math']['ceil'](_0x961624/_0x1152d3)));window['localStorage']['setItem'](_0x4babc3,_0x127c0e);}function _0x1ca085(){const _0x284fb9='llct-'+_0xb4552f(_0x1617b4(_0x40340d)),_0x8fb6a4=window['localStorage']['getItem'](_0x284fb9);return _0x8fb6a4?window['parseInt'](_0x5ab523(_0x8fb6a4),0x10)*_0x1152d3:null;}function _0x48284c(_0x2f4da3){return new window['Promise']((_0x489d2f,_0x10bd44)=>{_0x2f4da3['then'](_0x489d2f,_0x10bd44),window['setTimeout'](_0x10bd44,0x1d4c0);});}}_0x32cf8f['on']('_sendUsageRequest',(_0x2d6400,_0x48d8e6)=>{if(_0x48d8e6[0x0]!=_0x40340d)return _0x3c779a('UsageLimit');_0x48d8e6[0x1]={..._0x48d8e6[0x1],'requestId':_0x496951};},{'priority':'high'}),_0x32cf8f['on']('_sendUsageRequest',_0x51f0f1=>{_0xd00a51(_0x51f0f1['return'])&&(_0x468d7a=!0x0,_0x493392(_0x51f0f1['return']));},{'priority':'low'}),_0x28cdf3['then'](()=>{_0x468d7a||_0x3c779a('UsageLimit');});});function _0x4d2d11(){return'auto'==_0x32cf8f['editing']['view']['_overlayModeHint'];}function _0x59ea67(){_0x32cf8f['editing']['view']['_overlayModeHint']='auto';}}function _0x56ebcb(_0x3968e1){const _0x412e11=[new window['Promise'](_0x28fe7d=>setTimeout(_0x28fe7d,0x93ecc)),_0x28cdf3['then'](()=>new window['Promise'](_0x2d0b4c=>{let _0x3dc36d=0x0;_0x32cf8f['model']['on']('applyOperation',(_0x40eea0,_0x1a5daf)=>{_0x1a5daf[0x0]['isDocumentOperation']&&_0x3dc36d++,0x5e8==_0x3dc36d&&(_0x2d0b4c(),_0x40eea0['off']());});}))];return window['Promise']['race'](_0x412e11)['then'](()=>_0x3968e1);}async function _0x304e51(){await _0x28cdf3,_0x32cf8f['model']['change']=_0x3f86df,_0x32cf8f['model']['enqueueChange']=_0x3f86df,_0x32cf8f['enableReadOnlyMode']('model');}function _0x2110ea(){return window['Drupal'];}function _0x2b060f(){return window['glob']&&window['glob']['triliumVersion'];}function _0x41856e(_0x276af3){const _0x4b2eaa=_0xaa132b();_0x32cf8f[_0x4b2eaa]='templateLicenseKey'+_0x276af3,'Valid'!=_0x276af3&&_0x304e51();}function _0xaa132b(){const _0x16878e=window['String'](window['performance']['now']())['replace']('.','');let _0x461a4b='g';for(let _0x84ccec=0x0;_0x84ccec<_0x16878e['length'];_0x84ccec+=0x2){let _0x2a2826=window['parseInt'](_0x16878e['substring'](_0x84ccec,_0x84ccec+0x2));_0x2a2826>=0x3e&&(_0x2a2826-=0x3e),_0x461a4b+=_0x5bc9c9[_0x2a2826];}return _0x461a4b;}function _0x2196e8(){const _0x5c1b0b=_0x30e743['split']('.');if(0x3!=_0x5c1b0b['length'])return null;return _0x1fe09(_0x5c1b0b[0x1]);function _0x1fe09(_0x333aee){const _0x1cfd50=_0x14e70c(_0x333aee);return _0x1cfd50&&_0x37bb41()?_0x1cfd50:null;function _0x37bb41(){const _0x47f047=_0x1cfd50['jti'],_0x13ad58=window['parseInt'](_0x47f047['substring'](_0x47f047['length']-0x8),0x10),_0x310137={..._0x1cfd50,'jti':_0x47f047['substring'](0x0,_0x47f047['length']-0x8)};return delete _0x310137['vc'],_0x1617b4(_0x310137)==_0x13ad58;}}}async function _0x45748d(){let _0x2dc17d=!0x0;try{const [_0x51d7d1,_0x16f002,_0xfe0400]=_0x30e743['split']('.');return _0x310565(_0x51d7d1),await _0xbc575e(_0x51d7d1,_0x16f002,_0xfe0400),_0x2dc17d;}catch{return!0x1;}function _0x310565(_0x28acb1){const _0x106a2b=_0x14e70c(_0x28acb1);_0x106a2b&&'ES256'==_0x106a2b['alg']||(_0x2dc17d=!0x1);}async function _0xbc575e(_0x4de3ec,_0x584f4a,_0x5162d9){const _0x227618=window['Uint8Array']['from'](_0x1ee139(_0x5162d9),_0x26ade8=>_0x26ade8['charCodeAt'](0x0)),_0x1fe903=new window['TextEncoder']()['encode'](_0x4de3ec+'.'+_0x584f4a),_0x16aa1e=window['crypto']['subtle'];if(!_0x16aa1e)return;const _0x21a28e=await _0x16aa1e['importKey']('jwk',_0x55b1f0,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x16aa1e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x21a28e,_0x227618,_0x1fe903)||(_0x2dc17d=!0x1);}}function _0x14e70c(_0x3ac3be){return _0x3ac3be['startsWith']('ey')?JSON['parse'](_0x1ee139(_0x3ac3be)):null;}function _0x1ee139(_0x526eaf){return window['atob'](_0x526eaf['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1617b4(_0x3da889){let _0x31f52d=0x1505;function _0x235d0a(_0x125e44){for(let _0x160fd0=0x0;_0x160fd0<_0x125e44['length'];_0x160fd0++){const _0xa31ccd=_0x125e44['charCodeAt'](_0x160fd0);_0x31f52d=(_0x31f52d<<0x5)+_0x31f52d+_0xa31ccd,_0x31f52d&=_0x31f52d;}}function _0x20a64a(_0x14c73c){Array['isArray'](_0x14c73c)?_0x14c73c['forEach'](_0x20a64a):_0x14c73c&&'object'==typeof _0x14c73c?Object['entries'](_0x14c73c)['sort']()['forEach'](([_0x2cfe39,_0x1d5e1d])=>{_0x235d0a(_0x2cfe39),_0x20a64a(_0x1d5e1d);}):_0x235d0a(window['String'](_0x14c73c));}return _0x20a64a(_0x3da889),_0x31f52d>>>0x0;}function _0xb4552f(_0x42c5ae){return _0x42c5ae['toString'](0x10)['padStart'](0x8,'0');}function _0x5ab523(_0x4f5711){return _0x4f5711['split']('')['reverse']()['join']('');}function _0x3f86df(){}_0x41856e(await _0x7ed25e());}(this);}_createTemplateListView(_0x5a81cc,_0x1af414){const {editor:_0x2eb106}=this,_0x3d000f=new L(_0x5a81cc);return _0x3d000f['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x3d000f['items']['addMany'](_0x1af414['map']((_0x55e31d,_0x493b13)=>{const _0x179518=new x(_0x5a81cc,_0x493b13),_0x5aa4b8=new b(_0x5a81cc,_0x55e31d);return _0x179518['buttonView']=_0x5aa4b8,_0x179518['children']['add'](_0x5aa4b8),_0x179518['buttonView']['on']('execute',_0x305324=>{_0x2eb106['execute']('insertTemplate',_0x305324['source']['templateDefinition']['data']),_0x2eb106['editing']['view']['focus']();}),_0x179518;})),_0x3d000f;}},K=class extends _0x51cb56{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 _0x335517,Plugin as _0x5b2c51}from'@ckeditor/ckeditor5-core';import{IconTemplate as _0x594409,IconTemplateGeneric as _0xcd55d1}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0xe003bf,HighlightedTextView as _0x1c33f3,ListItemView as _0xfde076,ListView as _0x28f2a1,MenuBarMenuListItemButtonView as _0x171dd6,MenuBarMenuListItemView as _0xeede10,MenuBarMenuListView as _0x2eac98,MenuBarMenuView as _0x10ec8f,SearchTextView as _0x15a52b,View as _0x2c90eb,createDropdown as _0x4b0cb4}from'@ckeditor/ckeditor5-ui';import{uid as _0x7a386d}from'@ckeditor/ckeditor5-utils';var g=class extends _0x335517{execute(_0x28d91e){const {model:_0x50c929}=this['editor'];let _0x5c877e;switch(typeof _0x28d91e){case'string':_0x5c877e=_0x28d91e;break;case'function':_0x5c877e=_0x28d91e();}'string'==typeof _0x5c877e&&_0x50c929['change'](()=>{const _0x16c7f7=this['editor']['data']['htmlProcessor']['toView'](_0x5c877e),_0xa85655=_0x50c929['document']['selection']['getFirstPosition']()['root'],_0x4c6f88=this['editor']['data']['toModel'](_0x16c7f7,_0xa85655);_0x50c929['insertContent'](_0x4c6f88);});}},y=class extends _0x5b2c51{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x137fee}=this;_0x137fee['commands']['add']('insertTemplate',new g(_0x137fee)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5339ab=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x19e978;for(const _0x1be8d1 in _0x5339ab){const _0x47cf0a=_0x1be8d1,_0x413176=_0x5339ab[_0x47cf0a];if('templateLicenseKeyValid'==_0x413176||'templateLicenseKeyInvalid'==_0x413176||'templateLicenseKeyExpired'==_0x413176||'templateLicenseKeyDomainLimit'==_0x413176||'templateLicenseKeyNotAllowed'==_0x413176||'templateLicenseKeyEvaluationLimit'==_0x413176||'templateLicenseKeyUsageLimit'==_0x413176){delete _0x5339ab[_0x47cf0a],_0x19e978=_0x413176,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x19e978&&_0x5339ab['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x19e978&&_0x5339ab['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x19e978&&_0x5339ab['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x19e978&&_0x5339ab['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x19e978&&_0x5339ab['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x19e978&&_0x5339ab['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},L=class extends _0x28f2a1{filter(_0x20b8ef){if(!_0x20b8ef)return this['_resetFiltering']();const _0x51d9e4=new Map(),_0x3efeba=this['items']['map'](_0x334c2e=>{const _0x21821b=_0x334c2e['buttonView']['isMatching'](_0x20b8ef);return _0x334c2e['isVisible']=!!_0x21821b,_0x334c2e['buttonView']['highlightText'](_0x21821b?_0x20b8ef:null),_0x21821b&&_0x51d9e4['set'](_0x334c2e,_0x21821b),_0x334c2e;})['sort'](v)['sort'](function(_0x33c0f2){return function(_0x372c67,_0x5d99aa){const _0x45b5b4=_0x33c0f2['get'](_0x372c67),_0x5231de=_0x33c0f2['get'](_0x5d99aa);return _0x45b5b4&&!_0x5231de?-0x1:_0x5231de&&!_0x45b5b4?0x1:_0x45b5b4||_0x5231de?_0x45b5b4['title']&&!_0x5231de['title']?-0x1:!_0x45b5b4['title']&&_0x5231de['title']?0x1:0x0:0x0;};}(_0x51d9e4));return this['items']['clear'](),this['items']['addMany'](_0x3efeba),{'resultsCount':_0x51d9e4['size'],'totalItemsCount':this['items']['length']};}_resetFiltering(){const _0x24984d=this['items']['map'](_0x1405a9=>_0x1405a9)['sort'](v);return _0x24984d['forEach'](_0x4d90ff=>{_0x4d90ff['isVisible']=!0x0,_0x4d90ff['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x24984d),{'resultsCount':_0x24984d['length'],'totalItemsCount':_0x24984d['length']};}};function v(_0x55bfe8,_0x4d9b56){return _0x55bfe8['originalIndex']-_0x4d9b56['originalIndex'];}var x=class extends _0xfde076{['originalIndex'];buttonView;constructor(_0x2e2d83,_0xf40548){super(_0x2e2d83),this['originalIndex']=_0xf40548,this['buttonView']=null;}},b=class extends _0xe003bf{templateDefinition;textPartView;constructor(_0x950c93,_0x14cc12){super(_0x950c93),this['templateDefinition']=_0x14cc12,this['textPartView']=null;const {icon:_0x1cbc4d=_0xcd55d1}=_0x14cc12;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x1cbc4d}),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(_0x646f83){const {title:_0x304c1e,description:_0x5370aa}=this['templateDefinition'],_0x44a14a=!!_0x304c1e['match'](_0x646f83),_0x2f9856=!(!_0x5370aa||!_0x5370aa['match'](_0x646f83));return _0x44a14a||_0x2f9856?{'title':_0x44a14a,'description':_0x2f9856}:null;}highlightText(_0x3809f1){this['textPartView']['highlightText'](_0x3809f1);}},k=class extends _0x2c90eb{constructor(_0x4d0ff9,_0x298087,_0xc33d99){super(_0x4d0ff9),this['title']=_0x298087['title'],this['description']=_0x298087['description'],this['titleView']=new _0x1c33f3(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0xc33d99}});const _0xfb4ad8=[this['titleView']];this['description']&&(this['descriptionView']=new _0x1c33f3(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0xfb4ad8['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0xfb4ad8});}highlightText(_0x27a2ef){this['titleView']['highlightText'](_0x27a2ef),this['description']&&this['descriptionView']['highlightText'](_0x27a2ef);}};function I(_0x11d601,_0x4132ed,..._0x3f1597){const t=_0x11d601['t'];switch(_0x4132ed){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x3f1597);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',..._0x3f1597);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x4132ed;}}var T=class extends _0x5b2c51{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x258fd4}=this,_0x219248=_0x258fd4['config']['get']('template.definitions')||[];_0x258fd4['ui']['componentFactory']['add']('insertTemplate',_0x2b89de=>{const _0x40ad37=_0x4b0cb4(_0x2b89de),_0x175e4d=new _0x15a52b(_0x2b89de,{'filteredView':this['_createTemplateListView'](_0x2b89de,_0x219248),'queryView':{'label':I(_0x2b89de,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x27a52e=>I(_0x2b89de,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x27a52e),'secondary':I(_0x2b89de,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':I(_0x2b89de,'No\x20templates\x20available.')}}}}),_0x4e32b8=_0x258fd4['commands']['get']('insertTemplate');return _0x175e4d['on']('search',(_0x5556a2,_0x1e76b4)=>{_0x1e76b4['query']&&_0x1e76b4['query']['length']&&_0x258fd4['ui']['ariaLiveAnnouncer']['announce'](I(_0x2b89de,'%0\x20templates\x20found',_0x1e76b4['resultsCount']));}),_0x40ad37['bind']('isEnabled')['to'](_0x4e32b8),_0x40ad37['panelView']['children']['add'](_0x175e4d),_0x40ad37['buttonView']['set']({'label':I(_0x2b89de,'Insert\x20template'),'icon':_0x594409,'tooltip':!0x0}),_0x40ad37['on']('change:isOpen',(_0x58db43,_0x9c36c4,_0x22cf13)=>{_0x22cf13||_0x175e4d['reset']();}),_0x40ad37;}),_0x258fd4['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x142741=>{const _0x1a5ebd=_0x258fd4['commands']['get']('insertTemplate'),_0x137b1e=new _0x10ec8f(_0x142741);_0x137b1e['buttonView']['set']({'label':I(_0x142741,'Template'),'icon':_0x594409});const _0x8e0323=new _0x2eac98(_0x142741);if(!_0x219248||!_0x219248['length']){const _0x93a45f=new _0xeede10(_0x142741,_0x137b1e),_0x404422=new _0x171dd6(_0x142741);_0x404422['set']({'label':I(_0x142741,'No\x20templates\x20available.')}),_0x404422['delegate']('execute')['to'](_0x137b1e),_0x404422['on']('execute',()=>{_0x258fd4['editing']['view']['focus']();}),_0x93a45f['children']['add'](_0x404422),_0x8e0323['items']['add'](_0x93a45f);}for(const _0x44dad6 of _0x219248){const _0x4e136d=new _0xeede10(_0x142741,_0x137b1e),_0x3aaeed=new _0x171dd6(_0x142741);_0x3aaeed['set']({'class':'ck-template-button','label':_0x44dad6['title'],'icon':_0x44dad6['icon']||_0xcd55d1}),_0x3aaeed['delegate']('execute')['to'](_0x137b1e),_0x3aaeed['on']('execute',()=>{_0x258fd4['execute']('insertTemplate',_0x44dad6['data']),_0x258fd4['editing']['view']['focus']();}),_0x4e136d['children']['add'](_0x3aaeed),_0x8e0323['items']['add'](_0x4e136d);}return _0x137b1e['panelView']['children']['add'](_0x8e0323),_0x137b1e['bind']('isEnabled')['to'](_0x1a5ebd,'isEnabled'),_0x137b1e;});}afterInit(){!async function(_0x1d2153){const _0x2ed9b0='5goNZRxHzmBfrl0Fq6Cks1ahDGS2LUEWiby3wKvu4IVPdeT8jn9MOQJtcAY7Xp',_0x2a670a=0x791a0,_0x54d33c=window['Date']['now'](),_0x41369c=_0x1d2153['editor'],_0xb74704=new window['Promise'](_0x40b80e=>{_0x41369c['once']('ready',_0x40b80e);}),_0x276c70={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x46e122=_0x41369c['config']['get']('licenseKey');async function _0x28cfa1(){let _0x44cb9b,_0x412e5f=null,_0x58d36b=null;try{return'GPL'==_0x46e122?'NotAllowed':(_0x44cb9b=_0x101305(),_0x44cb9b?(_0x44cb9b['usageEndpoint']&&(_0x58d36b=_0x4fb6aa(_0x44cb9b['usageEndpoint'],_0x44cb9b['jti'])),await _0x4561eb()?_0x26c890()?_0x498229()?'Expired':_0x270336()?('evaluation'==_0x44cb9b['licenseType']&&(_0x412e5f=_0x2e9f98('EvaluationLimit')),await _0x48a604()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x498229(){const _0x4a2feb=['evaluation','trial']['includes'](_0x44cb9b['licenseType'])?_0x54d33c/0x3e8:0xe10*_0x2a670a;return _0x44cb9b['exp']<_0x4a2feb;}function _0x26c890(){const _0x286fea=_0x44cb9b['features'];return!!_0x286fea&&(!!_0x286fea['includes']('*')||(!!_0x286fea['includes']('TPL')||(!!_0x286fea['includes']('PP')||(!(!_0x286fea['includes']('DRUP')||!_0x14427c())||!(!_0x286fea['includes']('TRILIUM')||!_0x4b934b())))));}function _0x270336(){const _0xed5387=_0x44cb9b['licensedHosts'];if(!_0xed5387||0x0==_0xed5387['length'])return!0x0;const {hostname:_0x18f84f}=new URL(window['location']['href']);if(_0xed5387['includes'](_0x18f84f))return!0x0;const _0x3ef60a=_0x18f84f['split']('.');return _0xed5387['filter'](_0x10295d=>_0x10295d['includes']('*'))['map'](_0x585d3e=>_0x585d3e['split']('.'))['filter'](_0x503a59=>_0x503a59['length']<=_0x3ef60a['length'])['map'](_0x19c725=>Array(_0x3ef60a['length']-_0x19c725['length'])['fill']('*'===_0x19c725[0x0]?'*':'')['concat'](_0x19c725))['some'](_0x5ee2e6=>_0x3ef60a['every']((_0x4ff45d,_0x2e7b63)=>_0x5ee2e6[_0x2e7b63]===_0x4ff45d||'*'===_0x5ee2e6[_0x2e7b63]));}function _0x48a604(){return _0x412e5f&&_0x58d36b?new window['Promise']((_0xb404e8,_0x47d6c4)=>{_0x412e5f['then'](_0xb404e8,_0x47d6c4),_0x58d36b['then'](_0x3851ad=>{'Valid'!=_0x3851ad&&_0xb404e8(_0x3851ad);},_0x47d6c4);}):_0x412e5f||_0x58d36b||'Valid';}}function _0x4fb6aa(_0x313ceb,_0x2a6009){return new window['Promise'](_0x27e45d=>{if(_0x4b785d())return _0x27e45d('Valid');_0x1eea65(),_0x41369c['decorate']('_sendUsageRequest');let _0xdc84b6=!0x1;const _0x51ea68=_0x7a386d();function _0x3c0254(_0x478066){return!!_0x478066&&('object'==typeof _0x478066||'function'==typeof _0x478066)&&'function'==typeof _0x478066['then']&&'function'==typeof _0x478066['catch'];}function _0x4ee95e(_0x2eeef5){_0x5aaf7a(_0x2eeef5)['then'](_0x3f2173=>_0x3f2173&&'ok'==_0x3f2173['status']?_0x24d018(_0x4b8ba8(_0x51ea68+_0x2a6009))!=_0x3f2173['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x51ce60=>(_0x356683(),_0x51ce60),()=>{const _0xc7b51a=_0x49f52f();return null==_0xc7b51a?(_0x356683(),'Valid'):_0x54d33c-_0xc7b51a>0x240c8400?'UsageLimit':'Valid';})['then'](_0x27e45d)['catch'](()=>{_0x27e45d('UsageLimit');});const _0x2af5ed=0x36ee80;function _0x356683(){const _0x25ef56='llct-'+_0x24d018(_0x4b8ba8(_0x313ceb)),_0x55131d=_0x55806e(_0x24d018(window['Math']['ceil'](_0x54d33c/_0x2af5ed)));window['localStorage']['setItem'](_0x25ef56,_0x55131d);}function _0x49f52f(){const _0x1a46f5='llct-'+_0x24d018(_0x4b8ba8(_0x313ceb)),_0x4e2f20=window['localStorage']['getItem'](_0x1a46f5);return _0x4e2f20?window['parseInt'](_0x55806e(_0x4e2f20),0x10)*_0x2af5ed:null;}function _0x5aaf7a(_0x52bb0f){return new window['Promise']((_0x255344,_0x58bb35)=>{_0x52bb0f['then'](_0x255344,_0x58bb35),window['setTimeout'](_0x58bb35,0x1d4c0);});}}_0x41369c['on']('_sendUsageRequest',(_0x457b14,_0x49ca32)=>{if(_0x49ca32[0x0]!=_0x313ceb)return _0x27e45d('UsageLimit');_0x49ca32[0x1]={..._0x49ca32[0x1],'requestId':_0x51ea68};},{'priority':'high'}),_0x41369c['on']('_sendUsageRequest',_0x46a45f=>{_0x3c0254(_0x46a45f['return'])&&(_0xdc84b6=!0x0,_0x4ee95e(_0x46a45f['return']));},{'priority':'low'}),_0xb74704['then'](()=>{_0xdc84b6||_0x27e45d('UsageLimit');});});function _0x4b785d(){return'auto'==_0x41369c['editing']['view']['_overlayModeHint'];}function _0x1eea65(){_0x41369c['editing']['view']['_overlayModeHint']='auto';}}function _0x2e9f98(_0x49a319){const _0x4d209a=[new window['Promise'](_0x447761=>setTimeout(_0x447761,0x93ecc)),_0xb74704['then'](()=>new window['Promise'](_0x589a32=>{let _0x188c01=0x0;_0x41369c['model']['on']('applyOperation',(_0x1e145f,_0x586a69)=>{_0x586a69[0x0]['isDocumentOperation']&&_0x188c01++,0x5e8==_0x188c01&&(_0x589a32(),_0x1e145f['off']());});}))];return window['Promise']['race'](_0x4d209a)['then'](()=>_0x49a319);}async function _0x1fa119(){await _0xb74704,_0x41369c['model']['change']=_0x368b6b,_0x41369c['model']['enqueueChange']=_0x368b6b,_0x41369c['enableReadOnlyMode']('model');}function _0x14427c(){return window['Drupal'];}function _0x4b934b(){return window['glob']&&window['glob']['triliumVersion'];}function _0x32c85c(_0x59f3d3){const _0xa274b4=_0x447fb7();_0x41369c[_0xa274b4]='templateLicenseKey'+_0x59f3d3,'Valid'!=_0x59f3d3&&_0x1fa119();}function _0x447fb7(){const _0x535249=window['String'](window['performance']['now']())['replace']('.','');let _0x2c8f9e='g';for(let _0x2712b7=0x0;_0x2712b7<_0x535249['length'];_0x2712b7+=0x2){let _0x49b370=window['parseInt'](_0x535249['substring'](_0x2712b7,_0x2712b7+0x2));_0x49b370>=0x3e&&(_0x49b370-=0x3e),_0x2c8f9e+=_0x2ed9b0[_0x49b370];}return _0x2c8f9e;}function _0x101305(){const _0x71420c=_0x46e122['split']('.');if(0x3!=_0x71420c['length'])return null;return _0x338ede(_0x71420c[0x1]);function _0x338ede(_0x49187b){const _0x53fa59=_0x18202b(_0x49187b);return _0x53fa59&&_0x157f8f()?_0x53fa59:null;function _0x157f8f(){const _0x5845bf=_0x53fa59['jti'],_0x43a934=window['parseInt'](_0x5845bf['substring'](_0x5845bf['length']-0x8),0x10),_0x16078f={..._0x53fa59,'jti':_0x5845bf['substring'](0x0,_0x5845bf['length']-0x8)};return delete _0x16078f['vc'],_0x4b8ba8(_0x16078f)==_0x43a934;}}}async function _0x4561eb(){let _0x45915a=!0x0;try{const [_0x4452e4,_0x22dbd6,_0x2bb182]=_0x46e122['split']('.');return _0x56a4a9(_0x4452e4),await _0x35ad68(_0x4452e4,_0x22dbd6,_0x2bb182),_0x45915a;}catch{return!0x1;}function _0x56a4a9(_0x3a522b){const _0xe4652b=_0x18202b(_0x3a522b);_0xe4652b&&'ES256'==_0xe4652b['alg']||(_0x45915a=!0x1);}async function _0x35ad68(_0x494d02,_0x492b31,_0x2b2700){const _0x18ff01=window['Uint8Array']['from'](_0x4ac3bc(_0x2b2700),_0xbae8f0=>_0xbae8f0['charCodeAt'](0x0)),_0x1a97ac=new window['TextEncoder']()['encode'](_0x494d02+'.'+_0x492b31),_0x1b9df2=window['crypto']['subtle'];if(!_0x1b9df2)return;const _0x324459=await _0x1b9df2['importKey']('jwk',_0x276c70,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1b9df2['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x324459,_0x18ff01,_0x1a97ac)||(_0x45915a=!0x1);}}function _0x18202b(_0x1669bf){return _0x1669bf['startsWith']('ey')?JSON['parse'](_0x4ac3bc(_0x1669bf)):null;}function _0x4ac3bc(_0x6a7ac9){return window['atob'](_0x6a7ac9['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4b8ba8(_0x27ac8e){let _0x10d495=0x1505;function _0x27feb5(_0x19288c){for(let _0x41f737=0x0;_0x41f737<_0x19288c['length'];_0x41f737++){const _0x3967f5=_0x19288c['charCodeAt'](_0x41f737);_0x10d495=(_0x10d495<<0x5)+_0x10d495+_0x3967f5,_0x10d495&=_0x10d495;}}function _0x3853f6(_0x467bdc){Array['isArray'](_0x467bdc)?_0x467bdc['forEach'](_0x3853f6):_0x467bdc&&'object'==typeof _0x467bdc?Object['entries'](_0x467bdc)['sort']()['forEach'](([_0xd2753b,_0x1d63b5])=>{_0x27feb5(_0xd2753b),_0x3853f6(_0x1d63b5);}):_0x27feb5(window['String'](_0x467bdc));}return _0x3853f6(_0x27ac8e),_0x10d495>>>0x0;}function _0x24d018(_0x280ff3){return _0x280ff3['toString'](0x10)['padStart'](0x8,'0');}function _0x55806e(_0x35ff22){return _0x35ff22['split']('')['reverse']()['join']('');}function _0x368b6b(){}_0x32c85c(await _0x28cfa1());}(this);}_createTemplateListView(_0x42e6eb,_0xec0483){const {editor:_0x49f7e0}=this,_0xe14914=new L(_0x42e6eb);return _0xe14914['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0xe14914['items']['addMany'](_0xec0483['map']((_0x1afa2e,_0xcbfd46)=>{const _0x4fb989=new x(_0x42e6eb,_0xcbfd46),_0x27f90b=new b(_0x42e6eb,_0x1afa2e);return _0x4fb989['buttonView']=_0x27f90b,_0x4fb989['children']['add'](_0x27f90b),_0x4fb989['buttonView']['on']('execute',_0x53f6f1=>{_0x49f7e0['execute']('insertTemplate',_0x53f6f1['source']['templateDefinition']['data']),_0x49f7e0['editing']['view']['focus']();}),_0x4fb989;})),_0xe14914;}},K=class extends _0x5b2c51{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.4.0-alpha.3",
3
+ "version": "48.4.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.4.0-alpha.3",
35
- "@ckeditor/ckeditor5-engine": "48.4.0-alpha.3",
36
- "@ckeditor/ckeditor5-icons": "48.4.0-alpha.3",
37
- "@ckeditor/ckeditor5-ui": "48.4.0-alpha.3",
38
- "@ckeditor/ckeditor5-utils": "48.4.0-alpha.3"
34
+ "@ckeditor/ckeditor5-core": "48.4.0-alpha.5",
35
+ "@ckeditor/ckeditor5-engine": "48.4.0-alpha.5",
36
+ "@ckeditor/ckeditor5-icons": "48.4.0-alpha.5",
37
+ "@ckeditor/ckeditor5-ui": "48.4.0-alpha.5",
38
+ "@ckeditor/ckeditor5-utils": "48.4.0-alpha.5"
39
39
  },
40
40
  "files": [
41
41
  "dist",