@ckeditor/ckeditor5-template 48.3.1-alpha.0 → 48.3.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x268dc6,Plugin as _0x5193cb}from'@ckeditor/ckeditor5-core';import{IconTemplate as _0x2cc889,IconTemplateGeneric as _0xfb4905}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x15d0eb,HighlightedTextView as _0x3a381e,ListItemView as _0x470a08,ListView as _0x1052a2,MenuBarMenuListItemButtonView as _0x47e191,MenuBarMenuListItemView as _0x36184d,MenuBarMenuListView as _0x163947,MenuBarMenuView as _0x57eb89,SearchTextView as _0x294d26,View as _0x30c572,createDropdown as _0x2d49de}from'@ckeditor/ckeditor5-ui';import{uid as _0x4e9b13}from'@ckeditor/ckeditor5-utils';var g=class extends _0x268dc6{['execute'](_0x30bb21){const {model:_0x3c74f9}=this['editor'];let _0x4cc72e;switch(typeof _0x30bb21){case'string':_0x4cc72e=_0x30bb21;break;case'function':_0x4cc72e=_0x30bb21();}'string'==typeof _0x4cc72e&&_0x3c74f9['change'](()=>{const _0x15bd0a=this['editor']['data']['htmlProcessor']['toView'](_0x4cc72e),_0x737474=_0x3c74f9['document']['selection']['getFirstPosition']()['root'],_0x384087=this['editor']['data']['toModel'](_0x15bd0a,_0x737474);_0x3c74f9['insertContent'](_0x384087);});}},y=class extends _0x5193cb{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2d2b88}=this;_0x2d2b88['commands']['add']('insertTemplate',new g(_0x2d2b88)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2cba9f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c8c27;for(const _0x5d9030 in _0x2cba9f){const _0x90b716=_0x5d9030,_0x2c6a52=_0x2cba9f[_0x90b716];if('templateLicenseKeyValid'==_0x2c6a52||'templateLicenseKeyInvalid'==_0x2c6a52||'templateLicenseKeyExpired'==_0x2c6a52||'templateLicenseKeyDomainLimit'==_0x2c6a52||'templateLicenseKeyNotAllowed'==_0x2c6a52||'templateLicenseKeyEvaluationLimit'==_0x2c6a52||'templateLicenseKeyUsageLimit'==_0x2c6a52){delete _0x2cba9f[_0x90b716],_0x1c8c27=_0x2c6a52,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x1c8c27&&_0x2cba9f['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x1c8c27&&_0x2cba9f['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x1c8c27&&_0x2cba9f['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x1c8c27&&_0x2cba9f['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x1c8c27&&_0x2cba9f['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x1c8c27&&_0x2cba9f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},L=class extends _0x1052a2{['filter'](_0x266ccf){if(!_0x266ccf)return this['_resetFiltering']();const _0xb73710=new Map(),_0x1731fa=this['items']['map'](_0x16ddc7=>{const _0x49de8c=_0x16ddc7['buttonView']['isMatching'](_0x266ccf);return _0x16ddc7['isVisible']=!!_0x49de8c,_0x16ddc7['buttonView']['highlightText'](_0x49de8c?_0x266ccf:null),_0x49de8c&&_0xb73710['set'](_0x16ddc7,_0x49de8c),_0x16ddc7;})['sort'](v)['sort'](function(_0x42589d){return function(_0x357c33,_0x122bc8){const _0xbdfa4=_0x42589d['get'](_0x357c33),_0x5b626e=_0x42589d['get'](_0x122bc8);return _0xbdfa4&&!_0x5b626e?-0x1:_0x5b626e&&!_0xbdfa4?0x1:_0xbdfa4||_0x5b626e?_0xbdfa4['title']&&!_0x5b626e['title']?-0x1:!_0xbdfa4['title']&&_0x5b626e['title']?0x1:0x0:0x0;};}(_0xb73710));return this['items']['clear'](),this['items']['addMany'](_0x1731fa),{'resultsCount':_0xb73710['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x1cc6f2=this['items']['map'](_0x58b1ea=>_0x58b1ea)['sort'](v);return _0x1cc6f2['forEach'](_0x2ecf4d=>{_0x2ecf4d['isVisible']=!0x0,_0x2ecf4d['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x1cc6f2),{'resultsCount':_0x1cc6f2['length'],'totalItemsCount':_0x1cc6f2['length']};}};function v(_0x53b39b,_0x575a06){return _0x53b39b['originalIndex']-_0x575a06['originalIndex'];}var x=class extends _0x470a08{['originalIndex'];['buttonView'];constructor(_0x33d917,_0x400a01){super(_0x33d917),this['originalIndex']=_0x400a01,this['buttonView']=null;}},b=class extends _0x15d0eb{['templateDefinition'];['textPartView'];constructor(_0x371823,_0x42872b){super(_0x371823),this['templateDefinition']=_0x42872b,this['textPartView']=null;const {icon:_0x474f27=_0xfb4905}=_0x42872b;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x474f27}),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'](_0x25859a){const {title:_0x5b9bcd,description:_0x39f6b7}=this['templateDefinition'],_0x51d97a=!!_0x5b9bcd['match'](_0x25859a),_0xb7cba4=!(!_0x39f6b7||!_0x39f6b7['match'](_0x25859a));return _0x51d97a||_0xb7cba4?{'title':_0x51d97a,'description':_0xb7cba4}:null;}['highlightText'](_0x3e5ed8){this['textPartView']['highlightText'](_0x3e5ed8);}},k=class extends _0x30c572{constructor(_0x31ffb3,_0x3fa112,_0x512cbb){super(_0x31ffb3),this['title']=_0x3fa112['title'],this['description']=_0x3fa112['description'],this['titleView']=new _0x3a381e(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x512cbb}});const _0x394a04=[this['titleView']];this['description']&&(this['descriptionView']=new _0x3a381e(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x394a04['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x394a04});}['highlightText'](_0x20525e){this['titleView']['highlightText'](_0x20525e),this['description']&&this['descriptionView']['highlightText'](_0x20525e);}};function I(_0x5799c3,_0x457dd4,..._0x3bb39b){const t=_0x5799c3['t'];switch(_0x457dd4){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x3bb39b);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',..._0x3bb39b);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x457dd4;}}var T=class extends _0x5193cb{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x481f8f}=this,_0x53aa56=_0x481f8f['config']['get']('template.definitions')||[];_0x481f8f['ui']['componentFactory']['add']('insertTemplate',_0x450fba=>{const _0x199513=_0x2d49de(_0x450fba),_0x5ec883=new _0x294d26(_0x450fba,{'filteredView':this['_createTemplateListView'](_0x450fba,_0x53aa56),'queryView':{'label':I(_0x450fba,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x22ac76=>I(_0x450fba,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x22ac76),'secondary':I(_0x450fba,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':I(_0x450fba,'No\x20templates\x20available.')}}}}),_0x26daed=_0x481f8f['commands']['get']('insertTemplate');return _0x5ec883['on']('search',(_0x514890,_0x4b1379)=>{_0x4b1379['query']&&_0x4b1379['query']['length']&&_0x481f8f['ui']['ariaLiveAnnouncer']['announce'](I(_0x450fba,'%0\x20templates\x20found',_0x4b1379['resultsCount']));}),_0x199513['bind']('isEnabled')['to'](_0x26daed),_0x199513['panelView']['children']['add'](_0x5ec883),_0x199513['buttonView']['set']({'label':I(_0x450fba,'Insert\x20template'),'icon':_0x2cc889,'tooltip':!0x0}),_0x199513['on']('change:isOpen',(_0x25a101,_0x3b8421,_0x276d3a)=>{_0x276d3a||_0x5ec883['reset']();}),_0x199513;}),_0x481f8f['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x40dc2a=>{const _0x1440e3=_0x481f8f['commands']['get']('insertTemplate'),_0x56095=new _0x57eb89(_0x40dc2a);_0x56095['buttonView']['set']({'label':I(_0x40dc2a,'Template'),'icon':_0x2cc889});const _0x2ec4eb=new _0x163947(_0x40dc2a);if(!_0x53aa56||!_0x53aa56['length']){const _0x3ac44f=new _0x36184d(_0x40dc2a,_0x56095),_0x8db86e=new _0x47e191(_0x40dc2a);_0x8db86e['set']({'label':I(_0x40dc2a,'No\x20templates\x20available.')}),_0x8db86e['delegate']('execute')['to'](_0x56095),_0x8db86e['on']('execute',()=>{_0x481f8f['editing']['view']['focus']();}),_0x3ac44f['children']['add'](_0x8db86e),_0x2ec4eb['items']['add'](_0x3ac44f);}for(const _0x14ae6c of _0x53aa56){const _0x4dbabc=new _0x36184d(_0x40dc2a,_0x56095),_0x5cf5c7=new _0x47e191(_0x40dc2a);_0x5cf5c7['set']({'class':'ck-template-button','label':_0x14ae6c['title'],'icon':_0x14ae6c['icon']||_0xfb4905}),_0x5cf5c7['delegate']('execute')['to'](_0x56095),_0x5cf5c7['on']('execute',()=>{_0x481f8f['execute']('insertTemplate',_0x14ae6c['data']),_0x481f8f['editing']['view']['focus']();}),_0x4dbabc['children']['add'](_0x5cf5c7),_0x2ec4eb['items']['add'](_0x4dbabc);}return _0x56095['panelView']['children']['add'](_0x2ec4eb),_0x56095['bind']('isEnabled')['to'](_0x1440e3,'isEnabled'),_0x56095;});}['afterInit'](){!async function(_0x1d1748){const _0x55d610='5goNZRxHzmBfrl0Fq6Cks1ahDGS2LUEWiby3wKvu4IVPdeT8jn9MOQJtcAY7Xp',_0x535fbf=0x78fa8,_0x4f48aa=window['Date']['now'](),_0x1e3a60=_0x1d1748['editor'],_0x3b08e3=new window['Promise'](_0x29be6e=>{_0x1e3a60['once']('ready',_0x29be6e);}),_0x5368a3={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xc4b462=_0x1e3a60['config']['get']('licenseKey');async function _0x162c4a(){let _0x3108a3,_0x1fef94=null,_0x2f4630=null;try{return'GPL'==_0xc4b462?'NotAllowed':(_0x3108a3=_0x2c6202(),_0x3108a3?(_0x3108a3['usageEndpoint']&&(_0x2f4630=_0x247573(_0x3108a3['usageEndpoint'],_0x3108a3['jti'])),await _0x6ba04b()?_0x10edca()?_0x2a3b36()?'Expired':_0x47c117()?('evaluation'==_0x3108a3['licenseType']&&(_0x1fef94=_0x5c2388('EvaluationLimit')),await _0x1272c4()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2a3b36(){const _0x336b1e=['evaluation','trial']['includes'](_0x3108a3['licenseType'])?_0x4f48aa/0x3e8:0xe10*_0x535fbf;return _0x3108a3['exp']<_0x336b1e;}function _0x10edca(){const _0xc7a9b4=_0x3108a3['features'];return!!_0xc7a9b4&&(!!_0xc7a9b4['includes']('*')||(!!_0xc7a9b4['includes']('TPL')||(!!_0xc7a9b4['includes']('PP')||(!(!_0xc7a9b4['includes']('DRUP')||!_0xbb51fb())||!(!_0xc7a9b4['includes']('TRILIUM')||!_0x145d7a())))));}function _0x47c117(){const _0x11f4c1=_0x3108a3['licensedHosts'];if(!_0x11f4c1||0x0==_0x11f4c1['length'])return!0x0;const {hostname:_0x441fb6}=new URL(window['location']['href']);if(_0x11f4c1['includes'](_0x441fb6))return!0x0;const _0x84b1f3=_0x441fb6['split']('.');return _0x11f4c1['filter'](_0xb8f41e=>_0xb8f41e['includes']('*'))['map'](_0x425d5b=>_0x425d5b['split']('.'))['filter'](_0x1e1d06=>_0x1e1d06['length']<=_0x84b1f3['length'])['map'](_0x4e42d0=>Array(_0x84b1f3['length']-_0x4e42d0['length'])['fill']('*'===_0x4e42d0[0x0]?'*':'')['concat'](_0x4e42d0))['some'](_0x14cc4d=>_0x84b1f3['every']((_0x1759b3,_0x432516)=>_0x14cc4d[_0x432516]===_0x1759b3||'*'===_0x14cc4d[_0x432516]));}function _0x1272c4(){return _0x1fef94&&_0x2f4630?new window['Promise']((_0x336c89,_0x2ba4b8)=>{_0x1fef94['then'](_0x336c89,_0x2ba4b8),_0x2f4630['then'](_0x14e8f5=>{'Valid'!=_0x14e8f5&&_0x336c89(_0x14e8f5);},_0x2ba4b8);}):_0x1fef94||_0x2f4630||'Valid';}}function _0x247573(_0x247a0c,_0x3b3653){return new window['Promise'](_0x1db6de=>{if(_0xfeaa43())return _0x1db6de('Valid');_0x143332(),_0x1e3a60['decorate']('_sendUsageRequest');let _0x2a76d2=!0x1;const _0x422cb9=_0x4e9b13();function _0x266fe3(_0x2f2ffb){return!!_0x2f2ffb&&('object'==typeof _0x2f2ffb||'function'==typeof _0x2f2ffb)&&'function'==typeof _0x2f2ffb['then']&&'function'==typeof _0x2f2ffb['catch'];}function _0x1a2ee5(_0x394dcf){_0x217aaa(_0x394dcf)['then'](_0x5e3cb9=>_0x5e3cb9&&'ok'==_0x5e3cb9['status']?_0x16af0d(_0xecf344(_0x422cb9+_0x3b3653))!=_0x5e3cb9['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1d8f59=>(_0x48425e(),_0x1d8f59),()=>{const _0x2894d3=_0x3e68e8();return null==_0x2894d3?(_0x48425e(),'Valid'):_0x4f48aa-_0x2894d3>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1db6de)['catch'](()=>{_0x1db6de('UsageLimit');});const _0x5d9a3e=0x36ee80;function _0x48425e(){const _0x1d6fb4='llct-'+_0x16af0d(_0xecf344(_0x247a0c)),_0x25f8df=_0x27200f(_0x16af0d(window['Math']['ceil'](_0x4f48aa/_0x5d9a3e)));window['localStorage']['setItem'](_0x1d6fb4,_0x25f8df);}function _0x3e68e8(){const _0x5dc9f='llct-'+_0x16af0d(_0xecf344(_0x247a0c)),_0x28a357=window['localStorage']['getItem'](_0x5dc9f);return _0x28a357?window['parseInt'](_0x27200f(_0x28a357),0x10)*_0x5d9a3e:null;}function _0x217aaa(_0x332c7b){return new window['Promise']((_0xfd39a,_0x5f1225)=>{_0x332c7b['then'](_0xfd39a,_0x5f1225),window['setTimeout'](_0x5f1225,0x1d4c0);});}}_0x1e3a60['on']('_sendUsageRequest',(_0x2001b7,_0x4804da)=>{if(_0x4804da[0x0]!=_0x247a0c)return _0x1db6de('UsageLimit');_0x4804da[0x1]={..._0x4804da[0x1],'requestId':_0x422cb9};},{'priority':'high'}),_0x1e3a60['on']('_sendUsageRequest',_0x44211f=>{_0x266fe3(_0x44211f['return'])&&(_0x2a76d2=!0x0,_0x1a2ee5(_0x44211f['return']));},{'priority':'low'}),_0x3b08e3['then'](()=>{_0x2a76d2||_0x1db6de('UsageLimit');});});function _0xfeaa43(){return'auto'==_0x1e3a60['editing']['view']['_overlayModeHint'];}function _0x143332(){_0x1e3a60['editing']['view']['_overlayModeHint']='auto';}}function _0x5c2388(_0x526606){const _0x3a8082=[new window['Promise'](_0x526259=>setTimeout(_0x526259,0x93ecc)),_0x3b08e3['then'](()=>new window['Promise'](_0x2b9956=>{let _0x8937f3=0x0;_0x1e3a60['model']['on']('applyOperation',(_0x183ac1,_0x3d0308)=>{_0x3d0308[0x0]['isDocumentOperation']&&_0x8937f3++,0x5e8==_0x8937f3&&(_0x2b9956(),_0x183ac1['off']());});}))];return window['Promise']['race'](_0x3a8082)['then'](()=>_0x526606);}async function _0xf747b0(){await _0x3b08e3,_0x1e3a60['model']['change']=_0x80d631,_0x1e3a60['model']['enqueueChange']=_0x80d631,_0x1e3a60['enableReadOnlyMode']('model');}function _0xbb51fb(){return window['Drupal'];}function _0x145d7a(){return window['glob']&&window['glob']['triliumVersion'];}function _0x203ffd(_0x5b5f12){const _0x3c538a=_0x3cd991();_0x1e3a60[_0x3c538a]='templateLicenseKey'+_0x5b5f12,'Valid'!=_0x5b5f12&&_0xf747b0();}function _0x3cd991(){const _0x3daf37=window['String'](window['performance']['now']())['replace']('.','');let _0x1215f5='g';for(let _0x974892=0x0;_0x974892<_0x3daf37['length'];_0x974892+=0x2){let _0x3ed9b6=window['parseInt'](_0x3daf37['substring'](_0x974892,_0x974892+0x2));_0x3ed9b6>=0x3e&&(_0x3ed9b6-=0x3e),_0x1215f5+=_0x55d610[_0x3ed9b6];}return _0x1215f5;}function _0x2c6202(){const _0x3b45ad=_0xc4b462['split']('.');if(0x3!=_0x3b45ad['length'])return null;return _0x18fe3e(_0x3b45ad[0x1]);function _0x18fe3e(_0x144206){const _0x36e667=_0xa2de8f(_0x144206);return _0x36e667&&_0x498406()?_0x36e667:null;function _0x498406(){const _0x4192f8=_0x36e667['jti'],_0x2ba38d=window['parseInt'](_0x4192f8['substring'](_0x4192f8['length']-0x8),0x10),_0xcb06cf={..._0x36e667,'jti':_0x4192f8['substring'](0x0,_0x4192f8['length']-0x8)};return delete _0xcb06cf['vc'],_0xecf344(_0xcb06cf)==_0x2ba38d;}}}async function _0x6ba04b(){let _0x6c3645=!0x0;try{const [_0x58e370,_0x12610c,_0x782cd3]=_0xc4b462['split']('.');return _0x459a51(_0x58e370),await _0x279698(_0x58e370,_0x12610c,_0x782cd3),_0x6c3645;}catch{return!0x1;}function _0x459a51(_0x353ab2){const _0x2eaafc=_0xa2de8f(_0x353ab2);_0x2eaafc&&'ES256'==_0x2eaafc['alg']||(_0x6c3645=!0x1);}async function _0x279698(_0x599539,_0x5f1c90,_0x1ae651){const _0x5c6b4a=window['Uint8Array']['from'](_0x3838d3(_0x1ae651),_0x38c2bc=>_0x38c2bc['charCodeAt'](0x0)),_0x12f153=new window['TextEncoder']()['encode'](_0x599539+'.'+_0x5f1c90),_0x1d872e=window['crypto']['subtle'];if(!_0x1d872e)return;const _0x2abb9e=await _0x1d872e['importKey']('jwk',_0x5368a3,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1d872e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2abb9e,_0x5c6b4a,_0x12f153)||(_0x6c3645=!0x1);}}function _0xa2de8f(_0x1c8ccc){return _0x1c8ccc['startsWith']('ey')?JSON['parse'](_0x3838d3(_0x1c8ccc)):null;}function _0x3838d3(_0x40972d){return window['atob'](_0x40972d['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xecf344(_0x4e8f2a){let _0x2069da=0x1505;function _0x3b50b8(_0x51e197){for(let _0x235bf8=0x0;_0x235bf8<_0x51e197['length'];_0x235bf8++){const _0x3b3c02=_0x51e197['charCodeAt'](_0x235bf8);_0x2069da=(_0x2069da<<0x5)+_0x2069da+_0x3b3c02,_0x2069da&=_0x2069da;}}function _0x57958f(_0x4037ed){Array['isArray'](_0x4037ed)?_0x4037ed['forEach'](_0x57958f):_0x4037ed&&'object'==typeof _0x4037ed?Object['entries'](_0x4037ed)['sort']()['forEach'](([_0x471d23,_0x310ff7])=>{_0x3b50b8(_0x471d23),_0x57958f(_0x310ff7);}):_0x3b50b8(window['String'](_0x4037ed));}return _0x57958f(_0x4e8f2a),_0x2069da>>>0x0;}function _0x16af0d(_0x26d7b6){return _0x26d7b6['toString'](0x10)['padStart'](0x8,'0');}function _0x27200f(_0x1db47f){return _0x1db47f['split']('')['reverse']()['join']('');}function _0x80d631(){}_0x203ffd(await _0x162c4a());}(this);}['_createTemplateListView'](_0x39592d,_0x5a8228){const {editor:_0x3d9b53}=this,_0x2e26b3=new L(_0x39592d);return _0x2e26b3['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x2e26b3['items']['addMany'](_0x5a8228['map']((_0x25d6bb,_0x4a00ef)=>{const _0x49ee80=new x(_0x39592d,_0x4a00ef),_0x437ca3=new b(_0x39592d,_0x25d6bb);return _0x49ee80['buttonView']=_0x437ca3,_0x49ee80['children']['add'](_0x437ca3),_0x49ee80['buttonView']['on']('execute',_0xbd492f=>{_0x3d9b53['execute']('insertTemplate',_0xbd492f['source']['templateDefinition']['data']),_0x3d9b53['editing']['view']['focus']();}),_0x49ee80;})),_0x2e26b3;}},K=class extends _0x5193cb{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 _0x46a921,Plugin as _0x1299d1}from'@ckeditor/ckeditor5-core';import{IconTemplate as _0x3385d6,IconTemplateGeneric as _0x4231b9}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x427f0d,HighlightedTextView as _0x1124c8,ListItemView as _0x5e84e7,ListView as _0x47d9a7,MenuBarMenuListItemButtonView as _0x33932d,MenuBarMenuListItemView as _0x581e46,MenuBarMenuListView as _0x3b1926,MenuBarMenuView as _0x3df73b,SearchTextView as _0x8a4fca,View as _0x578ad3,createDropdown as _0x852f2e}from'@ckeditor/ckeditor5-ui';import{uid as _0x56822c}from'@ckeditor/ckeditor5-utils';var g=class extends _0x46a921{['execute'](_0x2aa641){const {model:_0x5c8e4a}=this['editor'];let _0xcecf45;switch(typeof _0x2aa641){case'string':_0xcecf45=_0x2aa641;break;case'function':_0xcecf45=_0x2aa641();}'string'==typeof _0xcecf45&&_0x5c8e4a['change'](()=>{const _0x5a92ee=this['editor']['data']['htmlProcessor']['toView'](_0xcecf45),_0x23108f=_0x5c8e4a['document']['selection']['getFirstPosition']()['root'],_0xcf3f15=this['editor']['data']['toModel'](_0x5a92ee,_0x23108f);_0x5c8e4a['insertContent'](_0xcf3f15);});}},y=class extends _0x1299d1{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x17c410}=this;_0x17c410['commands']['add']('insertTemplate',new g(_0x17c410)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x15ca68=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40e834;for(const _0x3d9acc in _0x15ca68){const _0x52e406=_0x3d9acc,_0x54270f=_0x15ca68[_0x52e406];if('templateLicenseKeyValid'==_0x54270f||'templateLicenseKeyInvalid'==_0x54270f||'templateLicenseKeyExpired'==_0x54270f||'templateLicenseKeyDomainLimit'==_0x54270f||'templateLicenseKeyNotAllowed'==_0x54270f||'templateLicenseKeyEvaluationLimit'==_0x54270f||'templateLicenseKeyUsageLimit'==_0x54270f){delete _0x15ca68[_0x52e406],_0x40e834=_0x54270f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x40e834&&_0x15ca68['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x40e834&&_0x15ca68['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x40e834&&_0x15ca68['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x40e834&&_0x15ca68['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x40e834&&_0x15ca68['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x40e834&&_0x15ca68['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},L=class extends _0x47d9a7{['filter'](_0x33264a){if(!_0x33264a)return this['_resetFiltering']();const _0x2c09bd=new Map(),_0x181ae6=this['items']['map'](_0x471508=>{const _0x45b21a=_0x471508['buttonView']['isMatching'](_0x33264a);return _0x471508['isVisible']=!!_0x45b21a,_0x471508['buttonView']['highlightText'](_0x45b21a?_0x33264a:null),_0x45b21a&&_0x2c09bd['set'](_0x471508,_0x45b21a),_0x471508;})['sort'](v)['sort'](function(_0x5bd02e){return function(_0x5dcfcd,_0x350455){const _0x558c3a=_0x5bd02e['get'](_0x5dcfcd),_0x58fb9d=_0x5bd02e['get'](_0x350455);return _0x558c3a&&!_0x58fb9d?-0x1:_0x58fb9d&&!_0x558c3a?0x1:_0x558c3a||_0x58fb9d?_0x558c3a['title']&&!_0x58fb9d['title']?-0x1:!_0x558c3a['title']&&_0x58fb9d['title']?0x1:0x0:0x0;};}(_0x2c09bd));return this['items']['clear'](),this['items']['addMany'](_0x181ae6),{'resultsCount':_0x2c09bd['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x5879de=this['items']['map'](_0x325c98=>_0x325c98)['sort'](v);return _0x5879de['forEach'](_0x461e26=>{_0x461e26['isVisible']=!0x0,_0x461e26['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x5879de),{'resultsCount':_0x5879de['length'],'totalItemsCount':_0x5879de['length']};}};function v(_0x1498a8,_0x45d8df){return _0x1498a8['originalIndex']-_0x45d8df['originalIndex'];}var x=class extends _0x5e84e7{['originalIndex'];['buttonView'];constructor(_0x4cb746,_0x4fc59b){super(_0x4cb746),this['originalIndex']=_0x4fc59b,this['buttonView']=null;}},b=class extends _0x427f0d{['templateDefinition'];['textPartView'];constructor(_0x153b45,_0x504298){super(_0x153b45),this['templateDefinition']=_0x504298,this['textPartView']=null;const {icon:_0x7c20c=_0x4231b9}=_0x504298;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x7c20c}),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'](_0x3ae6a6){const {title:_0x5bacf3,description:_0x13ecef}=this['templateDefinition'],_0x33fdf1=!!_0x5bacf3['match'](_0x3ae6a6),_0x21d0df=!(!_0x13ecef||!_0x13ecef['match'](_0x3ae6a6));return _0x33fdf1||_0x21d0df?{'title':_0x33fdf1,'description':_0x21d0df}:null;}['highlightText'](_0x27d829){this['textPartView']['highlightText'](_0x27d829);}},k=class extends _0x578ad3{constructor(_0x41303c,_0x5aa130,_0x1616bb){super(_0x41303c),this['title']=_0x5aa130['title'],this['description']=_0x5aa130['description'],this['titleView']=new _0x1124c8(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x1616bb}});const _0xb5300b=[this['titleView']];this['description']&&(this['descriptionView']=new _0x1124c8(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0xb5300b['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0xb5300b});}['highlightText'](_0x4bb2a9){this['titleView']['highlightText'](_0x4bb2a9),this['description']&&this['descriptionView']['highlightText'](_0x4bb2a9);}};function I(_0x31f060,_0x47ebc2,..._0x6368c9){const t=_0x31f060['t'];switch(_0x47ebc2){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x6368c9);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',..._0x6368c9);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x47ebc2;}}var T=class extends _0x1299d1{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4a159f}=this,_0x507090=_0x4a159f['config']['get']('template.definitions')||[];_0x4a159f['ui']['componentFactory']['add']('insertTemplate',_0x2bbfe4=>{const _0x9f7662=_0x852f2e(_0x2bbfe4),_0x4a5a78=new _0x8a4fca(_0x2bbfe4,{'filteredView':this['_createTemplateListView'](_0x2bbfe4,_0x507090),'queryView':{'label':I(_0x2bbfe4,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x597a9a=>I(_0x2bbfe4,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x597a9a),'secondary':I(_0x2bbfe4,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':I(_0x2bbfe4,'No\x20templates\x20available.')}}}}),_0x34ab43=_0x4a159f['commands']['get']('insertTemplate');return _0x4a5a78['on']('search',(_0x1a3593,_0x39dc4f)=>{_0x39dc4f['query']&&_0x39dc4f['query']['length']&&_0x4a159f['ui']['ariaLiveAnnouncer']['announce'](I(_0x2bbfe4,'%0\x20templates\x20found',_0x39dc4f['resultsCount']));}),_0x9f7662['bind']('isEnabled')['to'](_0x34ab43),_0x9f7662['panelView']['children']['add'](_0x4a5a78),_0x9f7662['buttonView']['set']({'label':I(_0x2bbfe4,'Insert\x20template'),'icon':_0x3385d6,'tooltip':!0x0}),_0x9f7662['on']('change:isOpen',(_0x18063a,_0x8d9066,_0x28c0ff)=>{_0x28c0ff||_0x4a5a78['reset']();}),_0x9f7662;}),_0x4a159f['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x3187c7=>{const _0x4ef961=_0x4a159f['commands']['get']('insertTemplate'),_0x3c19c5=new _0x3df73b(_0x3187c7);_0x3c19c5['buttonView']['set']({'label':I(_0x3187c7,'Template'),'icon':_0x3385d6});const _0xe303b0=new _0x3b1926(_0x3187c7);if(!_0x507090||!_0x507090['length']){const _0x2600ab=new _0x581e46(_0x3187c7,_0x3c19c5),_0x2c3675=new _0x33932d(_0x3187c7);_0x2c3675['set']({'label':I(_0x3187c7,'No\x20templates\x20available.')}),_0x2c3675['delegate']('execute')['to'](_0x3c19c5),_0x2c3675['on']('execute',()=>{_0x4a159f['editing']['view']['focus']();}),_0x2600ab['children']['add'](_0x2c3675),_0xe303b0['items']['add'](_0x2600ab);}for(const _0x2dcb4a of _0x507090){const _0x26e005=new _0x581e46(_0x3187c7,_0x3c19c5),_0x14ac73=new _0x33932d(_0x3187c7);_0x14ac73['set']({'class':'ck-template-button','label':_0x2dcb4a['title'],'icon':_0x2dcb4a['icon']||_0x4231b9}),_0x14ac73['delegate']('execute')['to'](_0x3c19c5),_0x14ac73['on']('execute',()=>{_0x4a159f['execute']('insertTemplate',_0x2dcb4a['data']),_0x4a159f['editing']['view']['focus']();}),_0x26e005['children']['add'](_0x14ac73),_0xe303b0['items']['add'](_0x26e005);}return _0x3c19c5['panelView']['children']['add'](_0xe303b0),_0x3c19c5['bind']('isEnabled')['to'](_0x4ef961,'isEnabled'),_0x3c19c5;});}['afterInit'](){!async function(_0x307397){const _0x1e57d5='5goNZRxHzmBfrl0Fq6Cks1ahDGS2LUEWiby3wKvu4IVPdeT8jn9MOQJtcAY7Xp',_0x3000c2=0x78fc0,_0x4f7953=window['Date']['now'](),_0x2edd20=_0x307397['editor'],_0x46bace=new window['Promise'](_0x2dc15e=>{_0x2edd20['once']('ready',_0x2dc15e);}),_0x55826f={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x574ca3=_0x2edd20['config']['get']('licenseKey');async function _0x53bc03(){let _0x1144fd,_0x5e81a8=null,_0x2a6c88=null;try{return'GPL'==_0x574ca3?'NotAllowed':(_0x1144fd=_0x17d771(),_0x1144fd?(_0x1144fd['usageEndpoint']&&(_0x2a6c88=_0x546ff7(_0x1144fd['usageEndpoint'],_0x1144fd['jti'])),await _0x134398()?_0x515777()?_0x5618b1()?'Expired':_0x2e87cc()?('evaluation'==_0x1144fd['licenseType']&&(_0x5e81a8=_0x22ddf5('EvaluationLimit')),await _0xc473ef()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5618b1(){const _0x33a1ad=['evaluation','trial']['includes'](_0x1144fd['licenseType'])?_0x4f7953/0x3e8:0xe10*_0x3000c2;return _0x1144fd['exp']<_0x33a1ad;}function _0x515777(){const _0x55647c=_0x1144fd['features'];return!!_0x55647c&&(!!_0x55647c['includes']('*')||(!!_0x55647c['includes']('TPL')||(!!_0x55647c['includes']('PP')||(!(!_0x55647c['includes']('DRUP')||!_0x1f4c2b())||!(!_0x55647c['includes']('TRILIUM')||!_0xb7468())))));}function _0x2e87cc(){const _0x4ff8a6=_0x1144fd['licensedHosts'];if(!_0x4ff8a6||0x0==_0x4ff8a6['length'])return!0x0;const {hostname:_0xc90db8}=new URL(window['location']['href']);if(_0x4ff8a6['includes'](_0xc90db8))return!0x0;const _0x22a99d=_0xc90db8['split']('.');return _0x4ff8a6['filter'](_0x509c08=>_0x509c08['includes']('*'))['map'](_0x44c58c=>_0x44c58c['split']('.'))['filter'](_0x2af639=>_0x2af639['length']<=_0x22a99d['length'])['map'](_0x96664b=>Array(_0x22a99d['length']-_0x96664b['length'])['fill']('*'===_0x96664b[0x0]?'*':'')['concat'](_0x96664b))['some'](_0x23ca36=>_0x22a99d['every']((_0x2e929a,_0x4b8a6b)=>_0x23ca36[_0x4b8a6b]===_0x2e929a||'*'===_0x23ca36[_0x4b8a6b]));}function _0xc473ef(){return _0x5e81a8&&_0x2a6c88?new window['Promise']((_0x27d779,_0x51b122)=>{_0x5e81a8['then'](_0x27d779,_0x51b122),_0x2a6c88['then'](_0x1f9cd0=>{'Valid'!=_0x1f9cd0&&_0x27d779(_0x1f9cd0);},_0x51b122);}):_0x5e81a8||_0x2a6c88||'Valid';}}function _0x546ff7(_0x27002b,_0x4e6dee){return new window['Promise'](_0x101d66=>{if(_0x12c32b())return _0x101d66('Valid');_0x417f49(),_0x2edd20['decorate']('_sendUsageRequest');let _0x4dd13a=!0x1;const _0xa309ac=_0x56822c();function _0x4c6d75(_0x3337ee){return!!_0x3337ee&&('object'==typeof _0x3337ee||'function'==typeof _0x3337ee)&&'function'==typeof _0x3337ee['then']&&'function'==typeof _0x3337ee['catch'];}function _0x5c4c8f(_0x5b5beb){_0xddb3af(_0x5b5beb)['then'](_0x1e4db1=>_0x1e4db1&&'ok'==_0x1e4db1['status']?_0x33ab92(_0x25c653(_0xa309ac+_0x4e6dee))!=_0x1e4db1['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1a3a17=>(_0xd26249(),_0x1a3a17),()=>{const _0x2f5118=_0x5b69f2();return null==_0x2f5118?(_0xd26249(),'Valid'):_0x4f7953-_0x2f5118>0x240c8400?'UsageLimit':'Valid';})['then'](_0x101d66)['catch'](()=>{_0x101d66('UsageLimit');});const _0x1428a1=0x36ee80;function _0xd26249(){const _0x126c77='llct-'+_0x33ab92(_0x25c653(_0x27002b)),_0x5e44a8=_0x4e95fd(_0x33ab92(window['Math']['ceil'](_0x4f7953/_0x1428a1)));window['localStorage']['setItem'](_0x126c77,_0x5e44a8);}function _0x5b69f2(){const _0x5ce3ef='llct-'+_0x33ab92(_0x25c653(_0x27002b)),_0x1a3c5c=window['localStorage']['getItem'](_0x5ce3ef);return _0x1a3c5c?window['parseInt'](_0x4e95fd(_0x1a3c5c),0x10)*_0x1428a1:null;}function _0xddb3af(_0x15ba81){return new window['Promise']((_0x7d8497,_0x44e086)=>{_0x15ba81['then'](_0x7d8497,_0x44e086),window['setTimeout'](_0x44e086,0x1d4c0);});}}_0x2edd20['on']('_sendUsageRequest',(_0x1f86be,_0x21f6ab)=>{if(_0x21f6ab[0x0]!=_0x27002b)return _0x101d66('UsageLimit');_0x21f6ab[0x1]={..._0x21f6ab[0x1],'requestId':_0xa309ac};},{'priority':'high'}),_0x2edd20['on']('_sendUsageRequest',_0x11cae7=>{_0x4c6d75(_0x11cae7['return'])&&(_0x4dd13a=!0x0,_0x5c4c8f(_0x11cae7['return']));},{'priority':'low'}),_0x46bace['then'](()=>{_0x4dd13a||_0x101d66('UsageLimit');});});function _0x12c32b(){return'auto'==_0x2edd20['editing']['view']['_overlayModeHint'];}function _0x417f49(){_0x2edd20['editing']['view']['_overlayModeHint']='auto';}}function _0x22ddf5(_0x424e37){const _0x13352a=[new window['Promise'](_0x101b8d=>setTimeout(_0x101b8d,0x93ecc)),_0x46bace['then'](()=>new window['Promise'](_0x1c0fe6=>{let _0x440afd=0x0;_0x2edd20['model']['on']('applyOperation',(_0x8b0220,_0x4275a0)=>{_0x4275a0[0x0]['isDocumentOperation']&&_0x440afd++,0x5e8==_0x440afd&&(_0x1c0fe6(),_0x8b0220['off']());});}))];return window['Promise']['race'](_0x13352a)['then'](()=>_0x424e37);}async function _0x24e71e(){await _0x46bace,_0x2edd20['model']['change']=_0x41bde5,_0x2edd20['model']['enqueueChange']=_0x41bde5,_0x2edd20['enableReadOnlyMode']('model');}function _0x1f4c2b(){return window['Drupal'];}function _0xb7468(){return window['glob']&&window['glob']['triliumVersion'];}function _0x571a91(_0x4f7cba){const _0x3a366c=_0x3bd47f();_0x2edd20[_0x3a366c]='templateLicenseKey'+_0x4f7cba,'Valid'!=_0x4f7cba&&_0x24e71e();}function _0x3bd47f(){const _0x20449d=window['String'](window['performance']['now']())['replace']('.','');let _0xd07b27='g';for(let _0x4cf002=0x0;_0x4cf002<_0x20449d['length'];_0x4cf002+=0x2){let _0x99e34c=window['parseInt'](_0x20449d['substring'](_0x4cf002,_0x4cf002+0x2));_0x99e34c>=0x3e&&(_0x99e34c-=0x3e),_0xd07b27+=_0x1e57d5[_0x99e34c];}return _0xd07b27;}function _0x17d771(){const _0x4707b8=_0x574ca3['split']('.');if(0x3!=_0x4707b8['length'])return null;return _0xcd88b(_0x4707b8[0x1]);function _0xcd88b(_0x123916){const _0x3f5b9b=_0x202374(_0x123916);return _0x3f5b9b&&_0xb4527e()?_0x3f5b9b:null;function _0xb4527e(){const _0x132cb4=_0x3f5b9b['jti'],_0x427ffb=window['parseInt'](_0x132cb4['substring'](_0x132cb4['length']-0x8),0x10),_0x16d187={..._0x3f5b9b,'jti':_0x132cb4['substring'](0x0,_0x132cb4['length']-0x8)};return delete _0x16d187['vc'],_0x25c653(_0x16d187)==_0x427ffb;}}}async function _0x134398(){let _0x90881e=!0x0;try{const [_0x19e2bf,_0x4c4d52,_0x16cd1c]=_0x574ca3['split']('.');return _0x40a86f(_0x19e2bf),await _0x5881c5(_0x19e2bf,_0x4c4d52,_0x16cd1c),_0x90881e;}catch{return!0x1;}function _0x40a86f(_0x580bb2){const _0x123237=_0x202374(_0x580bb2);_0x123237&&'ES256'==_0x123237['alg']||(_0x90881e=!0x1);}async function _0x5881c5(_0x379dc6,_0x4790d2,_0x3ab833){const _0x55156a=window['Uint8Array']['from'](_0x18ec76(_0x3ab833),_0x526b79=>_0x526b79['charCodeAt'](0x0)),_0x29b0f1=new window['TextEncoder']()['encode'](_0x379dc6+'.'+_0x4790d2),_0x429429=window['crypto']['subtle'];if(!_0x429429)return;const _0x47c940=await _0x429429['importKey']('jwk',_0x55826f,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x429429['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x47c940,_0x55156a,_0x29b0f1)||(_0x90881e=!0x1);}}function _0x202374(_0x45dd9d){return _0x45dd9d['startsWith']('ey')?JSON['parse'](_0x18ec76(_0x45dd9d)):null;}function _0x18ec76(_0x59fdfe){return window['atob'](_0x59fdfe['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x25c653(_0x3c5044){let _0x53aee9=0x1505;function _0x4530de(_0x53bdcf){for(let _0x9279d2=0x0;_0x9279d2<_0x53bdcf['length'];_0x9279d2++){const _0x13359b=_0x53bdcf['charCodeAt'](_0x9279d2);_0x53aee9=(_0x53aee9<<0x5)+_0x53aee9+_0x13359b,_0x53aee9&=_0x53aee9;}}function _0x477ffc(_0x48e5a6){Array['isArray'](_0x48e5a6)?_0x48e5a6['forEach'](_0x477ffc):_0x48e5a6&&'object'==typeof _0x48e5a6?Object['entries'](_0x48e5a6)['sort']()['forEach'](([_0x13bfed,_0x54ee9a])=>{_0x4530de(_0x13bfed),_0x477ffc(_0x54ee9a);}):_0x4530de(window['String'](_0x48e5a6));}return _0x477ffc(_0x3c5044),_0x53aee9>>>0x0;}function _0x33ab92(_0x113cfd){return _0x113cfd['toString'](0x10)['padStart'](0x8,'0');}function _0x4e95fd(_0x534ca4){return _0x534ca4['split']('')['reverse']()['join']('');}function _0x41bde5(){}_0x571a91(await _0x53bc03());}(this);}['_createTemplateListView'](_0x1ee439,_0x239dfd){const {editor:_0x3b302e}=this,_0x5ce62d=new L(_0x1ee439);return _0x5ce62d['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x5ce62d['items']['addMany'](_0x239dfd['map']((_0x341dcd,_0x203a6a)=>{const _0x2c2f4b=new x(_0x1ee439,_0x203a6a),_0x347eaf=new b(_0x1ee439,_0x341dcd);return _0x2c2f4b['buttonView']=_0x347eaf,_0x2c2f4b['children']['add'](_0x347eaf),_0x2c2f4b['buttonView']['on']('execute',_0x3f46e3=>{_0x3b302e['execute']('insertTemplate',_0x3f46e3['source']['templateDefinition']['data']),_0x3b302e['editing']['view']['focus']();}),_0x2c2f4b;})),_0x5ce62d;}},K=class extends _0x1299d1{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.3.1-alpha.
|
|
3
|
+
"version": "48.3.1-alpha.1",
|
|
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.3.1-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-engine": "48.3.1-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-icons": "48.3.1-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-ui": "48.3.1-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.3.1-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-core": "48.3.1-alpha.1",
|
|
35
|
+
"@ckeditor/ckeditor5-engine": "48.3.1-alpha.1",
|
|
36
|
+
"@ckeditor/ckeditor5-icons": "48.3.1-alpha.1",
|
|
37
|
+
"@ckeditor/ckeditor5-ui": "48.3.1-alpha.1",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.3.1-alpha.1"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|