@ckeditor/ckeditor5-template 48.4.0-alpha.3 → 48.4.0-alpha.4

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 _0x50d333,Plugin as _0x52044c}from'@ckeditor/ckeditor5-core';import{IconTemplate as _0xe4a28f,IconTemplateGeneric as _0x2731d7}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x33a237,HighlightedTextView as _0x2cec36,ListItemView as _0x3c24db,ListView as _0x35493c,MenuBarMenuListItemButtonView as _0x3b6091,MenuBarMenuListItemView as _0x2071ad,MenuBarMenuListView as _0x545bd7,MenuBarMenuView as _0x473d04,SearchTextView as _0x2c3a77,View as _0x16148c,createDropdown as _0x27ea28}from'@ckeditor/ckeditor5-ui';import{uid as _0x14d0ba}from'@ckeditor/ckeditor5-utils';var g=class extends _0x50d333{execute(_0x595725){const {model:_0x16b78f}=this['editor'];let _0x1117e3;switch(typeof _0x595725){case'string':_0x1117e3=_0x595725;break;case'function':_0x1117e3=_0x595725();}'string'==typeof _0x1117e3&&_0x16b78f['change'](()=>{const _0x1da7a2=this['editor']['data']['htmlProcessor']['toView'](_0x1117e3),_0x227bfd=_0x16b78f['document']['selection']['getFirstPosition']()['root'],_0x16db1e=this['editor']['data']['toModel'](_0x1da7a2,_0x227bfd);_0x16b78f['insertContent'](_0x16db1e);});}},y=class extends _0x52044c{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x506d75}=this;_0x506d75['commands']['add']('insertTemplate',new g(_0x506d75)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f92a6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ea3c9;for(const _0x3454ed in _0x1f92a6){const _0xc9b9bb=_0x3454ed,_0x5ded40=_0x1f92a6[_0xc9b9bb];if('templateLicenseKeyValid'==_0x5ded40||'templateLicenseKeyInvalid'==_0x5ded40||'templateLicenseKeyExpired'==_0x5ded40||'templateLicenseKeyDomainLimit'==_0x5ded40||'templateLicenseKeyNotAllowed'==_0x5ded40||'templateLicenseKeyEvaluationLimit'==_0x5ded40||'templateLicenseKeyUsageLimit'==_0x5ded40){delete _0x1f92a6[_0xc9b9bb],_0x4ea3c9=_0x5ded40,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x4ea3c9&&_0x1f92a6['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x4ea3c9&&_0x1f92a6['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x4ea3c9&&_0x1f92a6['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x4ea3c9&&_0x1f92a6['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x4ea3c9&&_0x1f92a6['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x4ea3c9&&_0x1f92a6['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},L=class extends _0x35493c{filter(_0x531cbe){if(!_0x531cbe)return this['_resetFiltering']();const _0x55b4b6=new Map(),_0x5b73d0=this['items']['map'](_0xd379d2=>{const _0x6e966b=_0xd379d2['buttonView']['isMatching'](_0x531cbe);return _0xd379d2['isVisible']=!!_0x6e966b,_0xd379d2['buttonView']['highlightText'](_0x6e966b?_0x531cbe:null),_0x6e966b&&_0x55b4b6['set'](_0xd379d2,_0x6e966b),_0xd379d2;})['sort'](v)['sort'](function(_0x490828){return function(_0x53e759,_0x583100){const _0x2bbeec=_0x490828['get'](_0x53e759),_0x1a61c4=_0x490828['get'](_0x583100);return _0x2bbeec&&!_0x1a61c4?-0x1:_0x1a61c4&&!_0x2bbeec?0x1:_0x2bbeec||_0x1a61c4?_0x2bbeec['title']&&!_0x1a61c4['title']?-0x1:!_0x2bbeec['title']&&_0x1a61c4['title']?0x1:0x0:0x0;};}(_0x55b4b6));return this['items']['clear'](),this['items']['addMany'](_0x5b73d0),{'resultsCount':_0x55b4b6['size'],'totalItemsCount':this['items']['length']};}_resetFiltering(){const _0xc96fc1=this['items']['map'](_0x1bafdd=>_0x1bafdd)['sort'](v);return _0xc96fc1['forEach'](_0x56c706=>{_0x56c706['isVisible']=!0x0,_0x56c706['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0xc96fc1),{'resultsCount':_0xc96fc1['length'],'totalItemsCount':_0xc96fc1['length']};}};function v(_0x2e3f93,_0xfa9b2a){return _0x2e3f93['originalIndex']-_0xfa9b2a['originalIndex'];}var x=class extends _0x3c24db{['originalIndex'];buttonView;constructor(_0x51c6fe,_0x550395){super(_0x51c6fe),this['originalIndex']=_0x550395,this['buttonView']=null;}},b=class extends _0x33a237{templateDefinition;textPartView;constructor(_0x480905,_0x424987){super(_0x480905),this['templateDefinition']=_0x424987,this['textPartView']=null;const {icon:_0x455492=_0x2731d7}=_0x424987;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x455492}),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(_0x56ad61){const {title:_0x3af04e,description:_0x5497fb}=this['templateDefinition'],_0x3c8e0e=!!_0x3af04e['match'](_0x56ad61),_0x2877a8=!(!_0x5497fb||!_0x5497fb['match'](_0x56ad61));return _0x3c8e0e||_0x2877a8?{'title':_0x3c8e0e,'description':_0x2877a8}:null;}highlightText(_0x4c7513){this['textPartView']['highlightText'](_0x4c7513);}},k=class extends _0x16148c{constructor(_0x482c65,_0x393104,_0x47cee1){super(_0x482c65),this['title']=_0x393104['title'],this['description']=_0x393104['description'],this['titleView']=new _0x2cec36(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x47cee1}});const _0x11ba28=[this['titleView']];this['description']&&(this['descriptionView']=new _0x2cec36(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x11ba28['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x11ba28});}highlightText(_0x256b16){this['titleView']['highlightText'](_0x256b16),this['description']&&this['descriptionView']['highlightText'](_0x256b16);}};function I(_0xd42529,_0x79b454,..._0x322bda){const t=_0xd42529['t'];switch(_0x79b454){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x322bda);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',..._0x322bda);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x79b454;}}var T=class extends _0x52044c{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x2f46b6}=this,_0xe02e01=_0x2f46b6['config']['get']('template.definitions')||[];_0x2f46b6['ui']['componentFactory']['add']('insertTemplate',_0x3da0fe=>{const _0x3712b9=_0x27ea28(_0x3da0fe),_0x3ac137=new _0x2c3a77(_0x3da0fe,{'filteredView':this['_createTemplateListView'](_0x3da0fe,_0xe02e01),'queryView':{'label':I(_0x3da0fe,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x4c5965=>I(_0x3da0fe,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x4c5965),'secondary':I(_0x3da0fe,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':I(_0x3da0fe,'No\x20templates\x20available.')}}}}),_0x40b12e=_0x2f46b6['commands']['get']('insertTemplate');return _0x3ac137['on']('search',(_0x3654db,_0x5b5860)=>{_0x5b5860['query']&&_0x5b5860['query']['length']&&_0x2f46b6['ui']['ariaLiveAnnouncer']['announce'](I(_0x3da0fe,'%0\x20templates\x20found',_0x5b5860['resultsCount']));}),_0x3712b9['bind']('isEnabled')['to'](_0x40b12e),_0x3712b9['panelView']['children']['add'](_0x3ac137),_0x3712b9['buttonView']['set']({'label':I(_0x3da0fe,'Insert\x20template'),'icon':_0xe4a28f,'tooltip':!0x0}),_0x3712b9['on']('change:isOpen',(_0x4ac20b,_0x47be72,_0x37d93c)=>{_0x37d93c||_0x3ac137['reset']();}),_0x3712b9;}),_0x2f46b6['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x3c1010=>{const _0x59f4e1=_0x2f46b6['commands']['get']('insertTemplate'),_0x48ce64=new _0x473d04(_0x3c1010);_0x48ce64['buttonView']['set']({'label':I(_0x3c1010,'Template'),'icon':_0xe4a28f});const _0xd05918=new _0x545bd7(_0x3c1010);if(!_0xe02e01||!_0xe02e01['length']){const _0x5bd886=new _0x2071ad(_0x3c1010,_0x48ce64),_0x5414fd=new _0x3b6091(_0x3c1010);_0x5414fd['set']({'label':I(_0x3c1010,'No\x20templates\x20available.')}),_0x5414fd['delegate']('execute')['to'](_0x48ce64),_0x5414fd['on']('execute',()=>{_0x2f46b6['editing']['view']['focus']();}),_0x5bd886['children']['add'](_0x5414fd),_0xd05918['items']['add'](_0x5bd886);}for(const _0x4d499d of _0xe02e01){const _0x22a335=new _0x2071ad(_0x3c1010,_0x48ce64),_0x46f2fc=new _0x3b6091(_0x3c1010);_0x46f2fc['set']({'class':'ck-template-button','label':_0x4d499d['title'],'icon':_0x4d499d['icon']||_0x2731d7}),_0x46f2fc['delegate']('execute')['to'](_0x48ce64),_0x46f2fc['on']('execute',()=>{_0x2f46b6['execute']('insertTemplate',_0x4d499d['data']),_0x2f46b6['editing']['view']['focus']();}),_0x22a335['children']['add'](_0x46f2fc),_0xd05918['items']['add'](_0x22a335);}return _0x48ce64['panelView']['children']['add'](_0xd05918),_0x48ce64['bind']('isEnabled')['to'](_0x59f4e1,'isEnabled'),_0x48ce64;});}afterInit(){!async function(_0xdc707a){const _0x33af89='5goNZRxHzmBfrl0Fq6Cks1ahDGS2LUEWiby3wKvu4IVPdeT8jn9MOQJtcAY7Xp',_0x448636=0x79188,_0x39ff69=window['Date']['now'](),_0x1614d3=_0xdc707a['editor'],_0x26e7ac=new window['Promise'](_0x58b7ad=>{_0x1614d3['once']('ready',_0x58b7ad);}),_0x7e9741={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x418bf9=_0x1614d3['config']['get']('licenseKey');async function _0x4c04f1(){let _0x3b9a1c,_0xfd9918=null,_0x487673=null;try{return'GPL'==_0x418bf9?'NotAllowed':(_0x3b9a1c=_0x2d1dbd(),_0x3b9a1c?(_0x3b9a1c['usageEndpoint']&&(_0x487673=_0x35af46(_0x3b9a1c['usageEndpoint'],_0x3b9a1c['jti'])),await _0x2102d6()?_0x1b379a()?_0x36322f()?'Expired':_0x2ad8d5()?('evaluation'==_0x3b9a1c['licenseType']&&(_0xfd9918=_0x2a4613('EvaluationLimit')),await _0x3408be()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x36322f(){const _0x34b592=['evaluation','trial']['includes'](_0x3b9a1c['licenseType'])?_0x39ff69/0x3e8:0xe10*_0x448636;return _0x3b9a1c['exp']<_0x34b592;}function _0x1b379a(){const _0x179cb8=_0x3b9a1c['features'];return!!_0x179cb8&&(!!_0x179cb8['includes']('*')||(!!_0x179cb8['includes']('TPL')||(!!_0x179cb8['includes']('PP')||(!(!_0x179cb8['includes']('DRUP')||!_0x3a93a4())||!(!_0x179cb8['includes']('TRILIUM')||!_0x37b163())))));}function _0x2ad8d5(){const _0x2599bd=_0x3b9a1c['licensedHosts'];if(!_0x2599bd||0x0==_0x2599bd['length'])return!0x0;const {hostname:_0x4e2c95}=new URL(window['location']['href']);if(_0x2599bd['includes'](_0x4e2c95))return!0x0;const _0x17d386=_0x4e2c95['split']('.');return _0x2599bd['filter'](_0x2a1191=>_0x2a1191['includes']('*'))['map'](_0x40fb16=>_0x40fb16['split']('.'))['filter'](_0x104dc8=>_0x104dc8['length']<=_0x17d386['length'])['map'](_0x341184=>Array(_0x17d386['length']-_0x341184['length'])['fill']('*'===_0x341184[0x0]?'*':'')['concat'](_0x341184))['some'](_0x212fd1=>_0x17d386['every']((_0x1b9dbf,_0x4f13f0)=>_0x212fd1[_0x4f13f0]===_0x1b9dbf||'*'===_0x212fd1[_0x4f13f0]));}function _0x3408be(){return _0xfd9918&&_0x487673?new window['Promise']((_0xd3354d,_0x252d49)=>{_0xfd9918['then'](_0xd3354d,_0x252d49),_0x487673['then'](_0xe0f950=>{'Valid'!=_0xe0f950&&_0xd3354d(_0xe0f950);},_0x252d49);}):_0xfd9918||_0x487673||'Valid';}}function _0x35af46(_0x4b1b1d,_0x26b631){return new window['Promise'](_0x27415a=>{if(_0x1e8ef5())return _0x27415a('Valid');_0x19f70(),_0x1614d3['decorate']('_sendUsageRequest');let _0x58cbff=!0x1;const _0x59c19d=_0x14d0ba();function _0x1ecdba(_0x14f163){return!!_0x14f163&&('object'==typeof _0x14f163||'function'==typeof _0x14f163)&&'function'==typeof _0x14f163['then']&&'function'==typeof _0x14f163['catch'];}function _0x417da2(_0x26abf2){_0x391e7c(_0x26abf2)['then'](_0x2ba6ac=>_0x2ba6ac&&'ok'==_0x2ba6ac['status']?_0x348bd0(_0x183397(_0x59c19d+_0x26b631))!=_0x2ba6ac['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4a24eb=>(_0x2281ef(),_0x4a24eb),()=>{const _0x239888=_0x28c18d();return null==_0x239888?(_0x2281ef(),'Valid'):_0x39ff69-_0x239888>0x240c8400?'UsageLimit':'Valid';})['then'](_0x27415a)['catch'](()=>{_0x27415a('UsageLimit');});const _0x589175=0x36ee80;function _0x2281ef(){const _0x4bc2f4='llct-'+_0x348bd0(_0x183397(_0x4b1b1d)),_0x69c525=_0x38585e(_0x348bd0(window['Math']['ceil'](_0x39ff69/_0x589175)));window['localStorage']['setItem'](_0x4bc2f4,_0x69c525);}function _0x28c18d(){const _0x1f3e1c='llct-'+_0x348bd0(_0x183397(_0x4b1b1d)),_0x1798ca=window['localStorage']['getItem'](_0x1f3e1c);return _0x1798ca?window['parseInt'](_0x38585e(_0x1798ca),0x10)*_0x589175:null;}function _0x391e7c(_0x404eac){return new window['Promise']((_0x12a585,_0x19789f)=>{_0x404eac['then'](_0x12a585,_0x19789f),window['setTimeout'](_0x19789f,0x1d4c0);});}}_0x1614d3['on']('_sendUsageRequest',(_0xb91f5b,_0x3bd5e6)=>{if(_0x3bd5e6[0x0]!=_0x4b1b1d)return _0x27415a('UsageLimit');_0x3bd5e6[0x1]={..._0x3bd5e6[0x1],'requestId':_0x59c19d};},{'priority':'high'}),_0x1614d3['on']('_sendUsageRequest',_0x5e954d=>{_0x1ecdba(_0x5e954d['return'])&&(_0x58cbff=!0x0,_0x417da2(_0x5e954d['return']));},{'priority':'low'}),_0x26e7ac['then'](()=>{_0x58cbff||_0x27415a('UsageLimit');});});function _0x1e8ef5(){return'auto'==_0x1614d3['editing']['view']['_overlayModeHint'];}function _0x19f70(){_0x1614d3['editing']['view']['_overlayModeHint']='auto';}}function _0x2a4613(_0x2c08bd){const _0x12bad8=[new window['Promise'](_0x5280cd=>setTimeout(_0x5280cd,0x93ecc)),_0x26e7ac['then'](()=>new window['Promise'](_0x3c6f70=>{let _0x4a0a46=0x0;_0x1614d3['model']['on']('applyOperation',(_0x3641ba,_0x2ac353)=>{_0x2ac353[0x0]['isDocumentOperation']&&_0x4a0a46++,0x5e8==_0x4a0a46&&(_0x3c6f70(),_0x3641ba['off']());});}))];return window['Promise']['race'](_0x12bad8)['then'](()=>_0x2c08bd);}async function _0x5e14bf(){await _0x26e7ac,_0x1614d3['model']['change']=_0x368549,_0x1614d3['model']['enqueueChange']=_0x368549,_0x1614d3['enableReadOnlyMode']('model');}function _0x3a93a4(){return window['Drupal'];}function _0x37b163(){return window['glob']&&window['glob']['triliumVersion'];}function _0x4efdc5(_0x57e682){const _0x58a4c8=_0x7842cf();_0x1614d3[_0x58a4c8]='templateLicenseKey'+_0x57e682,'Valid'!=_0x57e682&&_0x5e14bf();}function _0x7842cf(){const _0xb76e2f=window['String'](window['performance']['now']())['replace']('.','');let _0x3facb8='g';for(let _0x5d37f2=0x0;_0x5d37f2<_0xb76e2f['length'];_0x5d37f2+=0x2){let _0x4c11f9=window['parseInt'](_0xb76e2f['substring'](_0x5d37f2,_0x5d37f2+0x2));_0x4c11f9>=0x3e&&(_0x4c11f9-=0x3e),_0x3facb8+=_0x33af89[_0x4c11f9];}return _0x3facb8;}function _0x2d1dbd(){const _0x48ca03=_0x418bf9['split']('.');if(0x3!=_0x48ca03['length'])return null;return _0x38bf43(_0x48ca03[0x1]);function _0x38bf43(_0x10adf1){const _0x530a83=_0x25266a(_0x10adf1);return _0x530a83&&_0x49efed()?_0x530a83:null;function _0x49efed(){const _0x5426cf=_0x530a83['jti'],_0x2856b3=window['parseInt'](_0x5426cf['substring'](_0x5426cf['length']-0x8),0x10),_0x3ff519={..._0x530a83,'jti':_0x5426cf['substring'](0x0,_0x5426cf['length']-0x8)};return delete _0x3ff519['vc'],_0x183397(_0x3ff519)==_0x2856b3;}}}async function _0x2102d6(){let _0x2b50a5=!0x0;try{const [_0x3e2292,_0x4b1269,_0x7168e1]=_0x418bf9['split']('.');return _0x3ddbc6(_0x3e2292),await _0x464cfa(_0x3e2292,_0x4b1269,_0x7168e1),_0x2b50a5;}catch{return!0x1;}function _0x3ddbc6(_0x2077af){const _0x379a72=_0x25266a(_0x2077af);_0x379a72&&'ES256'==_0x379a72['alg']||(_0x2b50a5=!0x1);}async function _0x464cfa(_0x1dd901,_0x3af83f,_0x5ddd5e){const _0x40872d=window['Uint8Array']['from'](_0x597343(_0x5ddd5e),_0x2de8d0=>_0x2de8d0['charCodeAt'](0x0)),_0x5bbd5b=new window['TextEncoder']()['encode'](_0x1dd901+'.'+_0x3af83f),_0x803431=window['crypto']['subtle'];if(!_0x803431)return;const _0x4d71d7=await _0x803431['importKey']('jwk',_0x7e9741,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x803431['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4d71d7,_0x40872d,_0x5bbd5b)||(_0x2b50a5=!0x1);}}function _0x25266a(_0x220820){return _0x220820['startsWith']('ey')?JSON['parse'](_0x597343(_0x220820)):null;}function _0x597343(_0x12c590){return window['atob'](_0x12c590['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x183397(_0x2525c2){let _0x3aebf7=0x1505;function _0x5ea531(_0x5a1a60){for(let _0x4a02cf=0x0;_0x4a02cf<_0x5a1a60['length'];_0x4a02cf++){const _0x4a28d1=_0x5a1a60['charCodeAt'](_0x4a02cf);_0x3aebf7=(_0x3aebf7<<0x5)+_0x3aebf7+_0x4a28d1,_0x3aebf7&=_0x3aebf7;}}function _0x40e41f(_0x5f89a3){Array['isArray'](_0x5f89a3)?_0x5f89a3['forEach'](_0x40e41f):_0x5f89a3&&'object'==typeof _0x5f89a3?Object['entries'](_0x5f89a3)['sort']()['forEach'](([_0x12f838,_0x436ab7])=>{_0x5ea531(_0x12f838),_0x40e41f(_0x436ab7);}):_0x5ea531(window['String'](_0x5f89a3));}return _0x40e41f(_0x2525c2),_0x3aebf7>>>0x0;}function _0x348bd0(_0x4e1ff8){return _0x4e1ff8['toString'](0x10)['padStart'](0x8,'0');}function _0x38585e(_0x14660e){return _0x14660e['split']('')['reverse']()['join']('');}function _0x368549(){}_0x4efdc5(await _0x4c04f1());}(this);}_createTemplateListView(_0xe1dbb1,_0x55ec00){const {editor:_0x2fc969}=this,_0x348197=new L(_0xe1dbb1);return _0x348197['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x348197['items']['addMany'](_0x55ec00['map']((_0x4a25a1,_0x46ea9a)=>{const _0x514dbf=new x(_0xe1dbb1,_0x46ea9a),_0x34dc3e=new b(_0xe1dbb1,_0x4a25a1);return _0x514dbf['buttonView']=_0x34dc3e,_0x514dbf['children']['add'](_0x34dc3e),_0x514dbf['buttonView']['on']('execute',_0x550c93=>{_0x2fc969['execute']('insertTemplate',_0x550c93['source']['templateDefinition']['data']),_0x2fc969['editing']['view']['focus']();}),_0x514dbf;})),_0x348197;}},K=class extends _0x52044c{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.4",
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.4",
35
+ "@ckeditor/ckeditor5-engine": "48.4.0-alpha.4",
36
+ "@ckeditor/ckeditor5-icons": "48.4.0-alpha.4",
37
+ "@ckeditor/ckeditor5-ui": "48.4.0-alpha.4",
38
+ "@ckeditor/ckeditor5-utils": "48.4.0-alpha.4"
39
39
  },
40
40
  "files": [
41
41
  "dist",