@ckeditor/ckeditor5-list-multi-level 48.5.0-alpha.4 → 48.5.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x51ce2f,Plugin as _0x5179f8}from'@ckeditor/ckeditor5-core';import{Matcher as _0x47f645,ViewUpcastWriter as _0x3fa10a}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x8bb264,_isFirstBlockOfListItem as _0x421e16}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0xe78b31,KeystrokeHandler as _0xb71ab3,createElement as _0x40e1b8,first as _0x3e4649,global as _0x1041a3,uid as _0x1e0f55}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x242572}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x159c99,CollapsibleView as _0x562bbd,FocusCycler as _0x42e6ea,LabeledFieldView as _0x90f0d6,MenuBarMenuListItemButtonView as _0x4153ce,SplitButtonView as _0x132bff,View as _0x4bf489,ViewCollection as _0x4b8764,addKeyboardHandlingForGrid as _0x10a0cc,createDropdown as _0x1d30b9,createLabeledInputNumber as _0x163582}from'@ckeditor/ckeditor5-ui';var S=class extends _0x51ce2f{defaultListMarkerStyle;_listDefinitions;_listUtils;constructor(_0x3c9c5a,_0x5b239c,_0x424826){super(_0x3c9c5a),this['defaultListMarkerStyle']=_0x5b239c,this['_listDefinitions']=_0x424826,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}execute(_0xe4587e={}){const _0x5abae3=this['editor']['model'],_0x11d536=_0xe4587e['listMarkerStyle']||this['defaultListMarkerStyle'];_0x5abae3['change'](()=>{const _0x47a1a5=this['_getListTypeFromListMarkerStyle'](_0x11d536);if(!_0x47a1a5)return;const _0x1b0450=_0x47a1a5+'List';this['editor']['execute'](_0x1b0450,{'additionalAttributes':{'listMarkerStyle':_0x11d536}});});}_getValue(){const _0x229e63=_0x3e4649(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x229e63)?_0x229e63['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x530d39=this['editor'],_0x183f7a=_0x530d39['commands']['get']('customNumberedList'),_0x2b8b6e=_0x530d39['commands']['get']('customBulletedList');return _0x183f7a['isEnabled']||_0x2b8b6e['isEnabled'];}_getListTypeFromListMarkerStyle(_0x2ce8d3){const _0x2e91de=this['_listDefinitions']['find'](_0x581bab=>_0x581bab['listMarkerStyle']==_0x2ce8d3);return _0x2e91de?_0x2e91de['listType']:null;}},x=class extends _0x5179f8{_listDefinitions;static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x8bb264];}constructor(_0x3303e2){super(_0x3303e2);const _0x35907e=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x6a593c=>_0x6a593c+'.'}]},..._0x35907e];}init(){const _0x3cd056=this['editor'],_0x58d75b=_0x3cd056['model'],_0x223ab1=_0x3cd056['editing']['view'],_0x8f76dd=_0x3cd056['plugins']['get'](_0x8bb264);_0x3cd056['commands']['add']('multiLevelList',new S(_0x3cd056,'legal',this['_listDefinitions'])),_0x58d75b['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x58d75b['schema']['addAttributeCheck']((_0x45a2fa,_0x348b0e)=>{const _0x131019=_0x45a2fa['last'];if('listMarker'==_0x348b0e||'listMarkerStyle'==_0x348b0e)return!(!_0x131019['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x158c49=>_0x158c49['listType']==_0x131019['getAttribute']('listType')))&&void 0x0;});for(const _0x41c5dc of this['_listDefinitions'])_0x3cd056['conversion']['for']('upcast')['add'](_0x4fdc22=>{_0x4fdc22['on']('element:'+('customNumbered'==_0x41c5dc['listType']?'ol':'ul'),_(_0x41c5dc,_0x58d75b['schema']),{'priority':'low'});}),_0x8f76dd['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x5d1fe9,_0x4062eb,_0x4685c2){_0x4062eb==_0x41c5dc['listMarkerStyle']?(_0x5d1fe9['addClass'](['multi-level-list',_0x41c5dc['className']],_0x4685c2),_0x5d1fe9['setStyle']('list-style-type','none',_0x4685c2)):(_0x5d1fe9['removeClass'](['multi-level-list',_0x41c5dc['className']],_0x4685c2),_0x5d1fe9['removeStyle']('list-style-type',_0x4685c2));}}),_0x8f76dd['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x562de6,_0x4a167a,{dataPipeline:_0x37c1e0}){if(!_0x4a167a['hasAttribute']('listMarker'))return null;if(_0x4a167a['getAttribute']('listType')!=_0x41c5dc['listType']||_0x4a167a['getAttribute']('listMarkerStyle')!=_0x41c5dc['listMarkerStyle'])return null;const _0x5c8d53=String(_0x4a167a['getAttribute']('listMarker')),_0x5d9dfc=this['canInjectMarkerIntoElement'](_0x4a167a);return _0x562de6['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x37c1e0&&{'contenteditable':'false','data-multi-level-list-marker':_0x5c8d53}},function(_0x3c5d5f){const _0x4354fe=this['toDomElement'](_0x3c5d5f);return _0x5d9dfc?(_0x4354fe['appendChild'](_0x40e1b8(_0x3c5d5f,'span',{},_0x37c1e0?_0x3c5d5f['createTextNode'](_0x5c8d53):[])),_0x4354fe['appendChild'](_0x3c5d5f['createTextNode']('\u00a0'))):_0x37c1e0&&_0x4354fe['appendChild'](_0x3c5d5f['createTextNode'](_0x5c8d53)),_0x4354fe;});},'canInjectMarkerIntoElement':_0x1fbefa=>_0x58d75b['schema']['checkChild'](_0x1fbefa,'$text')&&_0x58d75b['schema']['checkChild'](_0x1fbefa,'$inlineObject')&&!_0x58d75b['schema']['isLimit'](_0x1fbefa)&&_0x1fbefa['getAttribute']('listType')==_0x41c5dc['listType']&&_0x1fbefa['getAttribute']('listMarkerStyle')==_0x41c5dc['listMarkerStyle']});_0x3cd056['conversion']['for']('upcast')['add'](_0xc5e54d=>{_0xc5e54d['on']('element:span',function(_0x7cbd3d){return(_0x3922a9,_0x17d7de,{writer:_0x29dc10,consumable:_0x249754})=>{const _0xa832d8=_0x17d7de['modelCursor'],_0x39609d=_0xa832d8['parent'],_0x119011=_0x17d7de['viewItem'];if(_0x249754['consume'](_0x119011,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0xa832d8['isAtStart']&&_0x39609d['hasAttribute']('listType')&&_0x119011['childCount']>0x0){const _0x3383fa=_0x7cbd3d['createRangeIn'](_0x119011);let _0x38c63b='';for(const _0x5c471c of _0x3383fa['getItems']())_0x5c471c['is']('$textProxy')?(_0x38c63b+=_0x5c471c['data']['trim'](),_0x249754['consume'](_0x5c471c['textNode'])):_0x249754['consume'](_0x5c471c,{'name':!0x0});_0x29dc10['setAttribute']('listMarker',_0x38c63b['trim'](),_0x39609d);}};}(_0x223ab1));}),_0x8f76dd['on']('postFixer',(_0x23ef9d,{listNodes:_0xca851b,writer:_0x19c317})=>{const _0x57f47f=[];for(const {node:_0x3ac174,previousNodeInList:_0x3c9bb5}of _0xca851b){const _0x4ecb71=_0x3ac174['getAttribute']('listType'),_0xd2f9b3=_0x3ac174['getAttribute']('listMarkerStyle')||('customNumbered'==_0x4ecb71?'legal':void 0x0),_0x204b6d=this['_listDefinitions']['find'](_0x2609a0=>_0x2609a0['listType']==_0x4ecb71&&_0x2609a0['listMarkerStyle']==_0xd2f9b3);if('customNumbered'!=_0x4ecb71&&'customBulleted'!=_0x4ecb71&&(_0x3ac174['hasAttribute']('listMarker')&&(_0x19c317['removeAttribute']('listMarker',_0x3ac174),_0x23ef9d['return']=!0x0),_0x3ac174['hasAttribute']('listMarkerStyle')&&(_0x19c317['removeAttribute']('listMarkerStyle',_0x3ac174),_0x23ef9d['return']=!0x0)),!_0x204b6d){'customBulleted'!=_0x4ecb71||_0xd2f9b3||(_0x19c317['setAttribute']('listType','bulleted',_0x3ac174),_0x23ef9d['return']=!0x0);continue;}_0x3ac174['hasAttribute']('listMarkerStyle')||(_0x19c317['setAttribute']('listMarkerStyle',_0xd2f9b3,_0x3ac174),_0x23ef9d['return']=!0x0);const _0x4dc7d1=_0x3ac174['getAttribute']('listIndent');if(_0x3c9bb5&&_0x3c9bb5['getAttribute']('listItemId')==_0x3ac174['getAttribute']('listItemId'))continue;if(_0x57f47f['length']=_0x4dc7d1+0x1,_0x3cd056['config']['get']('list.enableSkipLevelLists')){for(let _0x3080c3=0x0;_0x3080c3<_0x4dc7d1;_0x3080c3++)void 0x0===_0x57f47f[_0x3080c3]&&(_0x57f47f[_0x3080c3]=0x1);}_0x3c9bb5||_0x57f47f[_0x4dc7d1]?_0x3c9bb5&&_0x3c9bb5['getAttribute']('listType')!=_0x204b6d['listType']?_0x57f47f[_0x4dc7d1]=0x1:_0x57f47f[_0x4dc7d1]++:_0x57f47f[_0x4dc7d1]=_0x3ac174['getAttribute']('listStart')||0x1;const _0x2886ef=E(_0x4dc7d1,_0x204b6d,_0x57f47f);_0x3ac174['getAttribute']('listMarker')!=_0x2886ef&&(_0x19c317['setAttribute']('listMarker',_0x2886ef,_0x3ac174),_0x23ef9d['return']=!0x0);}}),_0x8f76dd['on']('checkElement',(_0x10e7d3,{modelElement:_0x582e50,viewElement:_0x1c8693})=>{const _0x2cbaba=_0x582e50['getAttribute']('listType');if('customNumbered'!=_0x2cbaba&&'customBulleted'!=_0x2cbaba)return;if(_0x58d75b['schema']['checkChild'](_0x582e50,'$text'))return;const _0x4845eb=_0x421e16(_0x582e50);let _0x573926=!0x1;const _0xd1eafd=_0x223ab1['createPositionBefore'](_0x1c8693)['getWalker']({'direction':'backward'});for(const {item:_0x107bd4}of _0xd1eafd)if(_0x107bd4['is']('element')){if(_0x3cd056['editing']['mapper']['toModelElement'](_0x107bd4))break;if(_0x107bd4['getCustomProperty']('listItemMarker')){_0x573926=!0x0;break;}}_0x573926!=_0x4845eb&&(_0x10e7d3['return']=!0x0,_0x10e7d3['stop']());});const _0x339ed6=_0x3cd056['editing']['view']['document'];this['listenTo'](_0x339ed6,'clipboardOutput',(_0x6a6c9f,_0x283b66)=>{const _0x3495d3=new _0x47f645({'name':'span','classes':'multi-level-list__marker'}),_0x5a7af4=new _0x47f645({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x37aede=new _0x3fa10a(_0x283b66['content']['document']),_0x395b5f=[];for(const _0x2461c3 of _0x37aede['createRangeIn'](_0x283b66['content'])['getItems']())_0x2461c3['is']('element')&&_0x3495d3['match'](_0x2461c3)&&_0x395b5f['push'](_0x2461c3),_0x2461c3['is']('element')&&_0x5a7af4['match'](_0x2461c3)&&_0x37aede['removeStyle']('list-style-type',_0x2461c3);for(const _0x4347aa of _0x395b5f)_0x37aede['remove'](_0x4347aa);});}afterInit(){!async function(_0x16a59c){const _0x128ab7='I9sCmg3DJiG5LFMuQjwhT0XBYyxSqvdPO46NZAcVzb71RWkfe8oKptnrUEal2H',_0x5d7743=0x79428,_0x46604e={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x249350(_0x914bd9){const _0xcb28dd=new window['Promise'](_0x503023=>{_0x914bd9['once']('ready',_0x503023);}),_0x125386=window['Date']['now'](),_0xab4c7c=_0x914bd9['config']['get']('licenseKey');async function _0x145e08(){let _0x1d12de,_0x52f9b1=null,_0x6c54c5=null;try{return'GPL'==_0xab4c7c?'NotAllowed':(_0x1d12de=_0x2486a4(),_0x1d12de?(_0x1d12de['usageEndpoint']&&(_0x6c54c5=_0x4f19cf(_0x1d12de['usageEndpoint'],_0x1d12de['jti'])),await _0x4977aa()?_0x338b58()?_0x5f4fc0()?'Expired':_0x446b1a()?('evaluation'==_0x1d12de['licenseType']&&(_0x52f9b1=_0x4331df('EvaluationLimit')),await _0x4d1dbd()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5f4fc0(){const _0x4d3f09=['evaluation','trial']['includes'](_0x1d12de['licenseType'])?_0x125386/0x3e8:0xe10*_0x5d7743;return _0x1d12de['exp']<_0x4d3f09;}function _0x338b58(){const _0x1fe6e0=_0x1d12de['features'];return!!_0x1fe6e0&&(!!_0x1fe6e0['includes']('*')||!!_0x1fe6e0['includes']('MLL'));}function _0x446b1a(){const _0x987b76=_0x1d12de['licensedHosts'];if(!_0x987b76||0x0==_0x987b76['length'])return!0x0;const {hostname:_0xd5028e}=new URL(window['location']['href']);if(_0x987b76['includes'](_0xd5028e))return!0x0;const _0x5a51ac=_0xd5028e['split']('.');return _0x987b76['filter'](_0x5c7d85=>_0x5c7d85['includes']('*'))['map'](_0x546c54=>_0x546c54['split']('.'))['filter'](_0x262d7d=>_0x262d7d['length']<=_0x5a51ac['length'])['map'](_0x4c383c=>Array(_0x5a51ac['length']-_0x4c383c['length'])['fill']('*'===_0x4c383c[0x0]?'*':'')['concat'](_0x4c383c))['some'](_0x3a43d8=>_0x5a51ac['every']((_0x1e66f6,_0x2a8fe0)=>_0x3a43d8[_0x2a8fe0]===_0x1e66f6||'*'===_0x3a43d8[_0x2a8fe0]));}function _0x4d1dbd(){return _0x52f9b1&&_0x6c54c5?new window['Promise']((_0x2ea8e7,_0x480792)=>{_0x52f9b1['then'](_0x2ea8e7,_0x480792),_0x6c54c5['then'](_0x18383c=>{'Valid'!=_0x18383c&&_0x2ea8e7(_0x18383c);},_0x480792);}):_0x52f9b1||_0x6c54c5||'Valid';}}function _0x4f19cf(_0x563856,_0x54c474){return new window['Promise'](_0x2d3c7b=>{if(_0x2d46ff())return _0x2d3c7b('Valid');_0x261202(),_0x914bd9['decorate']('_sendUsageRequest');let _0x3f445c=!0x1;const _0x2de172=_0x1e0f55();function _0x57d2c1(_0x3a3ab3){return!!_0x3a3ab3&&('object'==typeof _0x3a3ab3||'function'==typeof _0x3a3ab3)&&'function'==typeof _0x3a3ab3['then']&&'function'==typeof _0x3a3ab3['catch'];}function _0x45f282(_0x39c17f){_0x1a05b2(_0x39c17f)['then'](_0x4e91b6=>_0x4e91b6&&'ok'==_0x4e91b6['status']?_0x4faf67(_0x1690eb(_0x2de172+_0x54c474))!=_0x4e91b6['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2d4452=>(_0x45b0d1(),_0x2d4452),()=>{const _0x394740=_0x1404e0();return null==_0x394740?(_0x45b0d1(),'Valid'):_0x125386-_0x394740>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2d3c7b)['catch'](()=>{_0x2d3c7b('UsageLimit');});const _0x109a41=0x36ee80;function _0x45b0d1(){const _0x4cceec='llct-'+_0x4faf67(_0x1690eb(_0x563856)),_0x307836=_0xc9a34b(_0x4faf67(window['Math']['ceil'](_0x125386/_0x109a41)));window['localStorage']['setItem'](_0x4cceec,_0x307836);}function _0x1404e0(){const _0x53e9d7='llct-'+_0x4faf67(_0x1690eb(_0x563856)),_0x347e52=window['localStorage']['getItem'](_0x53e9d7);return _0x347e52?window['parseInt'](_0xc9a34b(_0x347e52),0x10)*_0x109a41:null;}function _0x1a05b2(_0x44dd47){return new window['Promise']((_0x50a456,_0x292359)=>{_0x44dd47['then'](_0x50a456,_0x292359),window['setTimeout'](_0x292359,0x1d4c0);});}}_0x914bd9['on']('_sendUsageRequest',(_0x314392,_0x1fad28)=>{if(_0x1fad28[0x0]!=_0x563856)return _0x2d3c7b('UsageLimit');_0x1fad28[0x1]={..._0x1fad28[0x1],'requestId':_0x2de172};},{'priority':'high'}),_0x914bd9['on']('_sendUsageRequest',_0x2d1978=>{_0x57d2c1(_0x2d1978['return'])&&(_0x3f445c=!0x0,_0x45f282(_0x2d1978['return']));},{'priority':'low'}),_0xcb28dd['then'](()=>{_0x3f445c||_0x2d3c7b('UsageLimit');});});function _0x2d46ff(){return'auto'==_0x914bd9['editing']['view']['_overlayModeHint'];}function _0x261202(){_0x914bd9['editing']['view']['_overlayModeHint']='auto';}}function _0x4331df(_0x681565){const _0x59bcbf=[new window['Promise'](_0x105c15=>setTimeout(_0x105c15,0x93ecc)),_0xcb28dd['then'](()=>new window['Promise'](_0x551c28=>{let _0x4c30b4=0x0;_0x914bd9['model']['on']('applyOperation',(_0x36d680,_0x472d38)=>{_0x472d38[0x0]['isDocumentOperation']&&_0x4c30b4++,0x5e8==_0x4c30b4&&(_0x551c28(),_0x36d680['off']());});}))];return window['Promise']['race'](_0x59bcbf)['then'](()=>_0x681565);}async function _0x2dd61d(){await _0xcb28dd,_0x914bd9['model']['change']=_0x58c36a,_0x914bd9['model']['enqueueChange']=_0x58c36a,_0x914bd9['enableReadOnlyMode']('model');}function _0x254c03(_0x37bc5a){const _0x593efb=_0x440750();_0x914bd9[_0x593efb]='multiLevelListLicenseKey'+_0x37bc5a,'Valid'!=_0x37bc5a&&_0x2dd61d();}function _0x440750(){const _0x14c9af=window['String'](window['performance']['now']())['replace']('.','');let _0x30556e='I';for(let _0x4b4986=0x0;_0x4b4986<_0x14c9af['length'];_0x4b4986+=0x2){let _0x4333f2=window['parseInt'](_0x14c9af['substring'](_0x4b4986,_0x4b4986+0x2));_0x4333f2>=0x3e&&(_0x4333f2-=0x3e),_0x30556e+=_0x128ab7[_0x4333f2];}return _0x30556e;}function _0x2486a4(){const _0x184221=_0xab4c7c['split']('.');if(0x3!=_0x184221['length'])return null;return _0x21deb7(_0x184221[0x1]);function _0x21deb7(_0x4872be){const _0x573819=_0x15e36e(_0x4872be);return _0x573819&&_0x1efa8d()?_0x573819:null;function _0x1efa8d(){const _0x4fe21f=_0x573819['jti'],_0x22860e=window['parseInt'](_0x4fe21f['substring'](_0x4fe21f['length']-0x8),0x10),_0x2617a7={..._0x573819,'jti':_0x4fe21f['substring'](0x0,_0x4fe21f['length']-0x8)};return delete _0x2617a7['vc'],_0x1690eb(_0x2617a7)==_0x22860e;}}}async function _0x4977aa(){let _0x26dda8=!0x0;try{const [_0x317d52,_0x5d14d4,_0x5ef4c7]=_0xab4c7c['split']('.');return _0x442a13(_0x317d52),await _0x197456(_0x317d52,_0x5d14d4,_0x5ef4c7),_0x26dda8;}catch{return!0x1;}function _0x442a13(_0x5b77de){const _0xf6878d=_0x15e36e(_0x5b77de);_0xf6878d&&'ES256'==_0xf6878d['alg']||(_0x26dda8=!0x1);}async function _0x197456(_0x2a7025,_0x367eda,_0x5f54c4){const _0x37b349=window['Uint8Array']['from'](_0x28ed3f(_0x5f54c4),_0x36a3da=>_0x36a3da['charCodeAt'](0x0)),_0x10dee6=new window['TextEncoder']()['encode'](_0x2a7025+'.'+_0x367eda),_0x12ca81=window['crypto']['subtle'];if(!_0x12ca81)return;const _0x2fc7e9=await _0x12ca81['importKey']('jwk',_0x46604e,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x12ca81['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2fc7e9,_0x37b349,_0x10dee6)||(_0x26dda8=!0x1);}}function _0x15e36e(_0x47fca4){return _0x47fca4['startsWith']('ey')?JSON['parse'](_0x28ed3f(_0x47fca4)):null;}function _0x28ed3f(_0x31b0d9){return window['atob'](_0x31b0d9['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1690eb(_0x5f05d4){let _0x18119f=0x1505;function _0x225788(_0x3e331e){for(let _0x379311=0x0;_0x379311<_0x3e331e['length'];_0x379311++){const _0x3a03dd=_0x3e331e['charCodeAt'](_0x379311);_0x18119f=(_0x18119f<<0x5)+_0x18119f+_0x3a03dd,_0x18119f&=_0x18119f;}}function _0x29c54b(_0x417a99){Array['isArray'](_0x417a99)?_0x417a99['forEach'](_0x29c54b):_0x417a99&&'object'==typeof _0x417a99?Object['entries'](_0x417a99)['sort']()['forEach'](([_0x2ae4a5,_0x27f7d3])=>{_0x225788(_0x2ae4a5),_0x29c54b(_0x27f7d3);}):_0x225788(window['String'](_0x417a99));}return _0x29c54b(_0x5f05d4),_0x18119f>>>0x0;}function _0x4faf67(_0x53438d){return _0x53438d['toString'](0x10)['padStart'](0x8,'0');}function _0xc9a34b(_0x1f061f){return _0x1f061f['split']('')['reverse']()['join']('');}function _0x58c36a(){}_0x254c03(await _0x145e08());}_0x249350(_0x16a59c['editor']);}(this);}};function E(_0x37cba9,_0x5df209,_0x15541f){let _0x1670e1=_0x5df209['listMarkers'][_0x37cba9%_0x5df209['listMarkers']['length']];if(void 0x0===_0x1670e1['showMarkerPath']||_0x1670e1['showMarkerPath'])return _0x15541f['slice'](0x0,_0x37cba9+0x1)['map']((_0x5379b8,_0x424b30)=>(_0x1670e1=_0x5df209['listMarkers'][_0x424b30%_0x5df209['listMarkers']['length']],N(_0x1670e1['marker'],_0x5379b8)))['join']('');{const _0x1ad669=_0x15541f[_0x15541f['length']-0x1];return N(_0x1670e1['marker'],_0x1ad669);}}function N(_0xd655de,_0x1d8e50){return'function'==typeof _0xd655de?_0xd655de(_0x1d8e50):_0xd655de;}function _(_0x5bb31c,_0x2c0a5d){return(_0x3a5837,_0x12cc77,_0x3cb74b)=>{const _0x120084=_0x12cc77['viewItem'];if(_0x12cc77['modelRange']||Object['assign'](_0x12cc77,_0x3cb74b['convertChildren'](_0x12cc77['viewItem'],_0x12cc77['modelCursor'])),!_0x3cb74b['consumable']['test'](_0x120084,{'classes':_0x5bb31c['className']}))return;const _0x151df2=Array['from'](_0x12cc77['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x29a701=>_0x2c0a5d['checkAttribute'](_0x29a701,'listItemId'));if(!_0x151df2['length'])return;_0x3cb74b['consumable']['consume'](_0x120084,{'classes':_0x5bb31c['className']}),_0x3cb74b['consumable']['consume'](_0x120084,{'classes':'multi-level-list'}),_0x3cb74b['consumable']['consume'](_0x120084,{'styles':'list-style-type'});const _0x5ba0d3=_0x151df2[0x0]['getAttribute']('listIndent');for(const _0x432d84 of _0x151df2)_0x432d84['getAttribute']('listIndent')==_0x5ba0d3&&(_0x3cb74b['writer']['setAttribute']('listType',_0x5bb31c['listType'],_0x432d84),_0x3cb74b['writer']['setAttribute']('listMarkerStyle',_0x5bb31c['listMarkerStyle'],_0x432d84));};}function A(_0x283785,_0x509e20){const _0x17459f=_0x283785['t'],t=_0x283785['t'];switch(_0x509e20){case'Start\x20at':return _0x17459f('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x17459f('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x17459f('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x17459f('List\x20properties');case'Multi-level\x20List':return t('Multi-level\x20List');case'Multi-level\x20list\x20styles\x20toolbar':return t('Multi-level\x20list\x20styles\x20toolbar');default:return _0x509e20;}}var V=class extends _0x4bf489{['children'];stylesView=null;additionalPropertiesCollapsibleView=null;startIndexFieldView=null;['focusTracker']=new _0xe78b31();keystrokes=new _0xb71ab3();['focusables']=new _0x4b8764();['focusCycler'];constructor(_0xc91535,{enabledProperties:_0x121b5e,styleButtonViews:_0x34e942,styleGridAriaLabel:_0xa5441d}){super(_0xc91535);const _0x3789d0=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x42e6ea({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x121b5e['styles']?(this['stylesView']=this['_createStylesView'](_0x34e942,_0xa5441d),this['children']['add'](this['stylesView'])):_0x3789d0['push']('ck-multi-level-list-properties_without-styles'),_0x121b5e['startIndex']&&(this['_addListPropertyViews'](_0x121b5e),_0x3789d0['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x3789d0},'children':this['children']});}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']),this['startIndexFieldView']&&(this['focusables']['add'](this['children']['last']['buttonView']),this['focusTracker']['add'](this['children']['last']['buttonView']['element']));for(const _0x4799f1 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4799f1['element']);_0x10a0cc({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x1041a3['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x4c1e6b=_0x31ef80=>_0x31ef80['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4c1e6b),this['keystrokes']['set']('arrowleft',_0x4c1e6b),this['keystrokes']['set']('arrowup',_0x4c1e6b),this['keystrokes']['set']('arrowdown',_0x4c1e6b);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}focusLast(){this['focusCycler']['focusLast']();}destroy(){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}_createStylesView(_0xf1a833,_0x621fdd){const _0x561016=new _0x4bf489(this['locale']);return _0x561016['children']=_0x561016['createCollection'](),_0x561016['children']['addMany'](_0xf1a833),_0x561016['setTemplate']({'tag':'div','attributes':{'aria-label':_0x621fdd,'class':['ck','ck-multi-level-list-styles']},'children':_0x561016['children']}),_0x561016['children']['delegate']('execute')['to'](this),_0x561016['focus']=function(){this['children']['first']['focus']();},_0x561016['focusTracker']=new _0xe78b31(),_0x561016['keystrokes']=new _0xb71ab3(),_0x561016['render'](),_0x561016['keystrokes']['listenTo'](_0x561016['element']),_0x561016;}_addListPropertyViews(_0x54cd1f){const _0x2f90be=[];_0x54cd1f['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x2f90be['push'](this['startIndexFieldView'])),_0x54cd1f['styles']?(this['additionalPropertiesCollapsibleView']=new _0x562bbd(this['locale'],_0x2f90be),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x2f90be,'isEnabled',(..._0x3afcea)=>_0x3afcea['some'](_0x1b651d=>_0x1b651d)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x3face9,_0x30e9a4,_0x15618d)=>{_0x15618d||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x2f90be);}_createStartIndexField(){const _0x24c07b=new _0x90f0d6(this['locale'],_0x163582);return _0x24c07b['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x24c07b['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x24c07b['fieldView']['on']('input',()=>{const _0x582e22=_0x24c07b['fieldView']['element'],_0x59501d=_0x582e22['valueAsNumber'];Number['isNaN'](_0x59501d)?_0x24c07b['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x582e22['checkValidity']()?this['fire']('listStart',{'startIndex':_0x59501d}):_0x24c07b['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x24c07b;}},K=class extends _0x5179f8{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x277957=this['editor'];_0x277957['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x2889fd,parentCommandName:_0x5d45f9,buttonLabel:_0x28a0e9,buttonIcon:_0x2fb0ef,styleGridAriaLabel:_0x441d82,styleDefinitions:_0x465d50}){const _0x3973d3=_0x2889fd['commands']['get'](_0x5d45f9),_0x26a534=_0x2889fd['config']['get']('list.properties')||{},_0x31bf25=_0x2889fd['plugins']['has']('ListProperties'),_0x250128=_0x26a534['startIndex'];return _0x31bf25&&_0x250128?_0x538ca3=>{const _0x1321a6=_0x1d30b9(_0x538ca3,_0x132bff),_0x15dd63=_0x1321a6['buttonView'];return _0x1321a6['bind']('isEnabled')['to'](_0x3973d3),_0x1321a6['class']='ck-list-styles-dropdown',_0x15dd63['on']('execute',()=>{_0x2889fd['execute'](_0x5d45f9),_0x2889fd['editing']['view']['focus']();}),_0x15dd63['set']({'label':_0x28a0e9,'icon':_0x2fb0ef,'tooltip':!0x0,'isToggleable':!0x0}),_0x15dd63['bind']('isOn')['to'](_0x3973d3,'value',_0x207a34=>!!_0x207a34),_0x1321a6['once']('change:isOpen',()=>{const _0x57b619=function({editor:_0x45cbfe,dropdownView:_0x8cdc1c,styleDefinitions:_0x258a9b,styleGridAriaLabel:_0x40693d}){const _0x3216e2=_0x45cbfe['locale'],_0x515035=_0x45cbfe['config']['get']('list.properties'),_0x7e18b6=null;_0x515035['reversed']=!0x1,_0x258a9b['length']||(_0x515035['styles']=!0x1);const _0x595a7f=new V(_0x3216e2,{'styleGridAriaLabel':_0x40693d,'enabledProperties':_0x515035,'styleButtonViews':_0x7e18b6});if(_0x515035['startIndex']){const _0x53c37b=_0x45cbfe['commands']['get']('listStart');_0x595a7f['startIndexFieldView']['bind']('isEnabled')['to'](_0x53c37b),_0x595a7f['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x53c37b),_0x595a7f['on']('listStart',(_0x2c3622,_0xbc6894)=>_0x45cbfe['execute']('listStart',_0xbc6894));}return _0x595a7f['delegate']('execute')['to'](_0x8cdc1c),_0x595a7f;}({'editor':_0x2889fd,'dropdownView':_0x1321a6,'parentCommandName':_0x5d45f9,'styleGridAriaLabel':_0x441d82,'styleDefinitions':_0x465d50});_0x1321a6['panelView']['children']['add'](_0x57b619);}),_0x1321a6['on']('execute',()=>{_0x2889fd['editing']['view']['focus']();}),_0x1321a6;}:_0x589ced=>{const _0x33f31c=new _0x159c99(_0x589ced);return _0x33f31c['set']({'label':_0x28a0e9,'icon':_0x2fb0ef,'tooltip':!0x0,'isToggleable':!0x0}),_0x33f31c['bind']('isOn')['to'](_0x3973d3,'value',_0x178c0f=>!!_0x178c0f),_0x33f31c['on']('execute',()=>{_0x2889fd['execute'](_0x5d45f9),_0x2889fd['editing']['view']['focus']();}),_0x33f31c;};}({'editor':_0x277957,'parentCommandName':'multiLevelList','buttonLabel':A(_0x277957['locale'],'Multi-level\x20List'),'buttonIcon':_0x242572,'styleGridAriaLabel':A(_0x277957['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x277957['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x14cab3=_0x277957['commands']['get']('multiLevelList'),_0x498171=new _0x4153ce(_0x277957['locale']);return _0x498171['set']({'label':A(_0x277957['locale'],'Multi-level\x20List'),'icon':_0x242572}),_0x498171['bind']('isEnabled')['to'](_0x14cab3),_0x498171['bind']('isOn')['to'](_0x14cab3,'value',_0x5bf81c=>!!_0x5bf81c),_0x498171['on']('execute',()=>{_0x277957['execute']('multiLevelList'),_0x277957['editing']['view']['focus']();}),_0x498171;}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x25e031=[this['editor']];for(const _0x2bf838 of _0x25e031){let _0x5a06d9;for(const _0x445333 in _0x2bf838){const _0x1e381e=_0x445333,_0x3bc88c=_0x2bf838[_0x1e381e];if('multiLevelListLicenseKeyValid'==_0x3bc88c||'multiLevelListLicenseKeyInvalid'==_0x3bc88c||'multiLevelListLicenseKeyExpired'==_0x3bc88c||'multiLevelListLicenseKeyDomainLimit'==_0x3bc88c||'multiLevelListLicenseKeyNotAllowed'==_0x3bc88c||'multiLevelListLicenseKeyEvaluationLimit'==_0x3bc88c||'multiLevelListLicenseKeyUsageLimit'==_0x3bc88c){delete _0x2bf838[_0x1e381e],_0x5a06d9=_0x3bc88c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x5a06d9&&_0x2bf838['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x5a06d9&&_0x2bf838['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x5a06d9&&_0x2bf838['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x5a06d9&&_0x2bf838['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x5a06d9&&_0x2bf838['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x5a06d9&&_0x2bf838['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x5179f8{static get['pluginName'](){return'MultiLevelList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[x,K];}};export{P as MultiLevelList,S as MultiLevelListCommand,x as MultiLevelListEditing,K as MultiLevelListUI};
23
+ import{Command as _0x184dc3,Plugin as _0x66909e}from'@ckeditor/ckeditor5-core';import{Matcher as _0x175dad,ViewUpcastWriter as _0x4addb9}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x5f106d,_isFirstBlockOfListItem as _0x40a9c6}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0xb4804f,KeystrokeHandler as _0x3b5e95,createElement as _0x172c3a,first as _0x511570,global as _0x552100,uid as _0x511251}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x2c2222}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x20a860,CollapsibleView as _0x40dbe3,FocusCycler as _0x4ebbf8,LabeledFieldView as _0x5e79e9,MenuBarMenuListItemButtonView as _0xf77d66,SplitButtonView as _0x38202d,View as _0x43e436,ViewCollection as _0x42b17b,addKeyboardHandlingForGrid as _0xd0b35b,createDropdown as _0x4c30e9,createLabeledInputNumber as _0x13e3ef}from'@ckeditor/ckeditor5-ui';var S=class extends _0x184dc3{defaultListMarkerStyle;_listDefinitions;_listUtils;constructor(_0x4324df,_0x5440fc,_0x222357){super(_0x4324df),this['defaultListMarkerStyle']=_0x5440fc,this['_listDefinitions']=_0x222357,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}execute(_0x1394ee={}){const _0x1ba9c8=this['editor']['model'],_0x46c1e8=_0x1394ee['listMarkerStyle']||this['defaultListMarkerStyle'];_0x1ba9c8['change'](()=>{const _0x33fb3d=this['_getListTypeFromListMarkerStyle'](_0x46c1e8);if(!_0x33fb3d)return;const _0x38b533=_0x33fb3d+'List';this['editor']['execute'](_0x38b533,{'additionalAttributes':{'listMarkerStyle':_0x46c1e8}});});}_getValue(){const _0x4420ee=_0x511570(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x4420ee)?_0x4420ee['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x18d92c=this['editor'],_0x28d8cb=_0x18d92c['commands']['get']('customNumberedList'),_0x1509dc=_0x18d92c['commands']['get']('customBulletedList');return _0x28d8cb['isEnabled']||_0x1509dc['isEnabled'];}_getListTypeFromListMarkerStyle(_0x16cc40){const _0x1bde75=this['_listDefinitions']['find'](_0x1316b8=>_0x1316b8['listMarkerStyle']==_0x16cc40);return _0x1bde75?_0x1bde75['listType']:null;}},x=class extends _0x66909e{_listDefinitions;static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5f106d];}constructor(_0x448ba8){super(_0x448ba8);const _0x5aeda2=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x2ad6a9=>_0x2ad6a9+'.'}]},..._0x5aeda2];}init(){const _0x1fe178=this['editor'],_0x10ffec=_0x1fe178['model'],_0x456300=_0x1fe178['editing']['view'],_0x162d32=_0x1fe178['plugins']['get'](_0x5f106d);_0x1fe178['commands']['add']('multiLevelList',new S(_0x1fe178,'legal',this['_listDefinitions'])),_0x10ffec['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x10ffec['schema']['addAttributeCheck']((_0x5a992b,_0x53f58d)=>{const _0x56fd77=_0x5a992b['last'];if('listMarker'==_0x53f58d||'listMarkerStyle'==_0x53f58d)return!(!_0x56fd77['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x3807c4=>_0x3807c4['listType']==_0x56fd77['getAttribute']('listType')))&&void 0x0;});for(const _0x44d1eb of this['_listDefinitions'])_0x1fe178['conversion']['for']('upcast')['add'](_0x1d4984=>{_0x1d4984['on']('element:'+('customNumbered'==_0x44d1eb['listType']?'ol':'ul'),_(_0x44d1eb,_0x10ffec['schema']),{'priority':'low'});}),_0x162d32['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x44686d,_0x50d6f2,_0x459fa7){_0x50d6f2==_0x44d1eb['listMarkerStyle']?(_0x44686d['addClass'](['multi-level-list',_0x44d1eb['className']],_0x459fa7),_0x44686d['setStyle']('list-style-type','none',_0x459fa7)):(_0x44686d['removeClass'](['multi-level-list',_0x44d1eb['className']],_0x459fa7),_0x44686d['removeStyle']('list-style-type',_0x459fa7));}}),_0x162d32['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x2e7a8b,_0x1e8f83,{dataPipeline:_0x23ff85}){if(!_0x1e8f83['hasAttribute']('listMarker'))return null;if(_0x1e8f83['getAttribute']('listType')!=_0x44d1eb['listType']||_0x1e8f83['getAttribute']('listMarkerStyle')!=_0x44d1eb['listMarkerStyle'])return null;const _0xab0b83=String(_0x1e8f83['getAttribute']('listMarker')),_0x2dfb2a=this['canInjectMarkerIntoElement'](_0x1e8f83);return _0x2e7a8b['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x23ff85&&{'contenteditable':'false','data-multi-level-list-marker':_0xab0b83}},function(_0x55c12a){const _0x10b6ea=this['toDomElement'](_0x55c12a);return _0x2dfb2a?(_0x10b6ea['appendChild'](_0x172c3a(_0x55c12a,'span',{},_0x23ff85?_0x55c12a['createTextNode'](_0xab0b83):[])),_0x10b6ea['appendChild'](_0x55c12a['createTextNode']('\u00a0'))):_0x23ff85&&_0x10b6ea['appendChild'](_0x55c12a['createTextNode'](_0xab0b83)),_0x10b6ea;});},'canInjectMarkerIntoElement':_0x5777b3=>_0x10ffec['schema']['checkChild'](_0x5777b3,'$text')&&_0x10ffec['schema']['checkChild'](_0x5777b3,'$inlineObject')&&!_0x10ffec['schema']['isLimit'](_0x5777b3)&&_0x5777b3['getAttribute']('listType')==_0x44d1eb['listType']&&_0x5777b3['getAttribute']('listMarkerStyle')==_0x44d1eb['listMarkerStyle']});_0x1fe178['conversion']['for']('upcast')['add'](_0x2dcab2=>{_0x2dcab2['on']('element:span',function(_0x30022e){return(_0x189a67,_0x1111d2,{writer:_0x421e30,consumable:_0x301c1b})=>{const _0x1ff392=_0x1111d2['modelCursor'],_0x5a41ae=_0x1ff392['parent'],_0x27713c=_0x1111d2['viewItem'];if(_0x301c1b['consume'](_0x27713c,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x1ff392['isAtStart']&&_0x5a41ae['hasAttribute']('listType')&&_0x27713c['childCount']>0x0){const _0x5a38ab=_0x30022e['createRangeIn'](_0x27713c);let _0xdc8752='';for(const _0xf5d206 of _0x5a38ab['getItems']())_0xf5d206['is']('$textProxy')?(_0xdc8752+=_0xf5d206['data']['trim'](),_0x301c1b['consume'](_0xf5d206['textNode'])):_0x301c1b['consume'](_0xf5d206,{'name':!0x0});_0x421e30['setAttribute']('listMarker',_0xdc8752['trim'](),_0x5a41ae);}};}(_0x456300));}),_0x162d32['on']('postFixer',(_0x53bf81,{listNodes:_0x332d2e,writer:_0x5cf359})=>{const _0x35e38b=[];for(const {node:_0x53d70d,previousNodeInList:_0x368a55}of _0x332d2e){const _0x5b2761=_0x53d70d['getAttribute']('listType'),_0x19662f=_0x53d70d['getAttribute']('listMarkerStyle')||('customNumbered'==_0x5b2761?'legal':void 0x0),_0x2ab2d1=this['_listDefinitions']['find'](_0x167924=>_0x167924['listType']==_0x5b2761&&_0x167924['listMarkerStyle']==_0x19662f);if('customNumbered'!=_0x5b2761&&'customBulleted'!=_0x5b2761&&(_0x53d70d['hasAttribute']('listMarker')&&(_0x5cf359['removeAttribute']('listMarker',_0x53d70d),_0x53bf81['return']=!0x0),_0x53d70d['hasAttribute']('listMarkerStyle')&&(_0x5cf359['removeAttribute']('listMarkerStyle',_0x53d70d),_0x53bf81['return']=!0x0)),!_0x2ab2d1){'customBulleted'!=_0x5b2761||_0x19662f||(_0x5cf359['setAttribute']('listType','bulleted',_0x53d70d),_0x53bf81['return']=!0x0);continue;}_0x53d70d['hasAttribute']('listMarkerStyle')||(_0x5cf359['setAttribute']('listMarkerStyle',_0x19662f,_0x53d70d),_0x53bf81['return']=!0x0);const _0x32356e=_0x53d70d['getAttribute']('listIndent');if(_0x368a55&&_0x368a55['getAttribute']('listItemId')==_0x53d70d['getAttribute']('listItemId'))continue;if(_0x35e38b['length']=_0x32356e+0x1,_0x1fe178['config']['get']('list.enableSkipLevelLists')){for(let _0x1eff06=0x0;_0x1eff06<_0x32356e;_0x1eff06++)void 0x0===_0x35e38b[_0x1eff06]&&(_0x35e38b[_0x1eff06]=0x1);}_0x368a55||_0x35e38b[_0x32356e]?_0x368a55&&_0x368a55['getAttribute']('listType')!=_0x2ab2d1['listType']?_0x35e38b[_0x32356e]=0x1:_0x35e38b[_0x32356e]++:_0x35e38b[_0x32356e]=_0x53d70d['getAttribute']('listStart')||0x1;const _0x390984=E(_0x32356e,_0x2ab2d1,_0x35e38b);_0x53d70d['getAttribute']('listMarker')!=_0x390984&&(_0x5cf359['setAttribute']('listMarker',_0x390984,_0x53d70d),_0x53bf81['return']=!0x0);}}),_0x162d32['on']('checkElement',(_0x16dff9,{modelElement:_0x50c5f3,viewElement:_0x165c05})=>{const _0x507d08=_0x50c5f3['getAttribute']('listType');if('customNumbered'!=_0x507d08&&'customBulleted'!=_0x507d08)return;if(_0x10ffec['schema']['checkChild'](_0x50c5f3,'$text'))return;const _0xab0b97=_0x40a9c6(_0x50c5f3);let _0x214df1=!0x1;const _0x4780be=_0x456300['createPositionBefore'](_0x165c05)['getWalker']({'direction':'backward'});for(const {item:_0x1455b0}of _0x4780be)if(_0x1455b0['is']('element')){if(_0x1fe178['editing']['mapper']['toModelElement'](_0x1455b0))break;if(_0x1455b0['getCustomProperty']('listItemMarker')){_0x214df1=!0x0;break;}}_0x214df1!=_0xab0b97&&(_0x16dff9['return']=!0x0,_0x16dff9['stop']());});const _0x33c038=_0x1fe178['editing']['view']['document'];this['listenTo'](_0x33c038,'clipboardOutput',(_0x133a7d,_0x229dc9)=>{const _0xb5fc80=new _0x175dad({'name':'span','classes':'multi-level-list__marker'}),_0x5125be=new _0x175dad({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x56cb44=new _0x4addb9(_0x229dc9['content']['document']),_0x4abc02=[];for(const _0x31b65b of _0x56cb44['createRangeIn'](_0x229dc9['content'])['getItems']())_0x31b65b['is']('element')&&_0xb5fc80['match'](_0x31b65b)&&_0x4abc02['push'](_0x31b65b),_0x31b65b['is']('element')&&_0x5125be['match'](_0x31b65b)&&_0x56cb44['removeStyle']('list-style-type',_0x31b65b);for(const _0x7bf7bb of _0x4abc02)_0x56cb44['remove'](_0x7bf7bb);});}afterInit(){!async function(_0x7a359d){const _0x96bb67='I9sCmg3DJiG5LFMuQjwhT0XBYyxSqvdPO46NZAcVzb71RWkfe8oKptnrUEal2H',_0x2e71f2=0x79440,_0x1bd41c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0xdc1ade(_0xa50473){const _0x347b3c=new window['Promise'](_0x2f04aa=>{_0xa50473['once']('ready',_0x2f04aa);}),_0x5b80f0=window['Date']['now'](),_0x214772=_0xa50473['config']['get']('licenseKey');async function _0x1a7517(){let _0x59e8ac,_0xdc1829=null,_0x2b0fca=null;try{return'GPL'==_0x214772?'NotAllowed':(_0x59e8ac=_0x1b1ced(),_0x59e8ac?(_0x59e8ac['usageEndpoint']&&(_0x2b0fca=_0x36a05d(_0x59e8ac['usageEndpoint'],_0x59e8ac['jti'])),await _0x299ee2()?_0x4c45b5()?_0x4faaea()?'Expired':_0x59014f()?('evaluation'==_0x59e8ac['licenseType']&&(_0xdc1829=_0x4b725f('EvaluationLimit')),await _0x3911bf()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4faaea(){const _0x3f84ec=['evaluation','trial']['includes'](_0x59e8ac['licenseType'])?_0x5b80f0/0x3e8:0xe10*_0x2e71f2;return _0x59e8ac['exp']<_0x3f84ec;}function _0x4c45b5(){const _0x53bf03=_0x59e8ac['features'];return!!_0x53bf03&&(!!_0x53bf03['includes']('*')||!!_0x53bf03['includes']('MLL'));}function _0x59014f(){const _0xc15c2d=_0x59e8ac['licensedHosts'];if(!_0xc15c2d||0x0==_0xc15c2d['length'])return!0x0;const {hostname:_0x227b88}=new URL(window['location']['href']);if(_0xc15c2d['includes'](_0x227b88))return!0x0;const _0x455248=_0x227b88['split']('.');return _0xc15c2d['filter'](_0x4efdcb=>_0x4efdcb['includes']('*'))['map'](_0x2d734c=>_0x2d734c['split']('.'))['filter'](_0x3c3252=>_0x3c3252['length']<=_0x455248['length'])['map'](_0x213960=>Array(_0x455248['length']-_0x213960['length'])['fill']('*'===_0x213960[0x0]?'*':'')['concat'](_0x213960))['some'](_0x532ebd=>_0x455248['every']((_0x1118ee,_0x32c273)=>_0x532ebd[_0x32c273]===_0x1118ee||'*'===_0x532ebd[_0x32c273]));}function _0x3911bf(){return _0xdc1829&&_0x2b0fca?new window['Promise']((_0x3ddd43,_0x18bbdf)=>{_0xdc1829['then'](_0x3ddd43,_0x18bbdf),_0x2b0fca['then'](_0x3031f3=>{'Valid'!=_0x3031f3&&_0x3ddd43(_0x3031f3);},_0x18bbdf);}):_0xdc1829||_0x2b0fca||'Valid';}}function _0x36a05d(_0x7678a7,_0x5f05d8){return new window['Promise'](_0x1b2439=>{if(_0x358067())return _0x1b2439('Valid');_0x28d344(),_0xa50473['decorate']('_sendUsageRequest');let _0x3f6cfd=!0x1;const _0x3bba47=_0x511251();function _0x2b3521(_0x4b6651){return!!_0x4b6651&&('object'==typeof _0x4b6651||'function'==typeof _0x4b6651)&&'function'==typeof _0x4b6651['then']&&'function'==typeof _0x4b6651['catch'];}function _0x39aaf1(_0x10e249){_0x5830eb(_0x10e249)['then'](_0x10bed6=>_0x10bed6&&'ok'==_0x10bed6['status']?_0x1ed02d(_0x3a72cc(_0x3bba47+_0x5f05d8))!=_0x10bed6['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x473e04=>(_0x227063(),_0x473e04),()=>{const _0x852052=_0x554a90();return null==_0x852052?(_0x227063(),'Valid'):_0x5b80f0-_0x852052>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1b2439)['catch'](()=>{_0x1b2439('UsageLimit');});const _0x2f8964=0x36ee80;function _0x227063(){const _0x1d19db='llct-'+_0x1ed02d(_0x3a72cc(_0x7678a7)),_0xb60a38=_0x494556(_0x1ed02d(window['Math']['ceil'](_0x5b80f0/_0x2f8964)));window['localStorage']['setItem'](_0x1d19db,_0xb60a38);}function _0x554a90(){const _0x1d0c86='llct-'+_0x1ed02d(_0x3a72cc(_0x7678a7)),_0xb2c296=window['localStorage']['getItem'](_0x1d0c86);return _0xb2c296?window['parseInt'](_0x494556(_0xb2c296),0x10)*_0x2f8964:null;}function _0x5830eb(_0x224d82){return new window['Promise']((_0x9f92a8,_0x507097)=>{_0x224d82['then'](_0x9f92a8,_0x507097),window['setTimeout'](_0x507097,0x1d4c0);});}}_0xa50473['on']('_sendUsageRequest',(_0x595ae2,_0x33370e)=>{if(_0x33370e[0x0]!=_0x7678a7)return _0x1b2439('UsageLimit');_0x33370e[0x1]={..._0x33370e[0x1],'requestId':_0x3bba47};},{'priority':'high'}),_0xa50473['on']('_sendUsageRequest',_0x15783a=>{_0x2b3521(_0x15783a['return'])&&(_0x3f6cfd=!0x0,_0x39aaf1(_0x15783a['return']));},{'priority':'low'}),_0x347b3c['then'](()=>{_0x3f6cfd||_0x1b2439('UsageLimit');});});function _0x358067(){return'auto'==_0xa50473['editing']['view']['_overlayModeHint'];}function _0x28d344(){_0xa50473['editing']['view']['_overlayModeHint']='auto';}}function _0x4b725f(_0x3c8657){const _0x49aaf7=[new window['Promise'](_0x30d3fc=>setTimeout(_0x30d3fc,0x93ecc)),_0x347b3c['then'](()=>new window['Promise'](_0x52c372=>{let _0x1d3c0e=0x0;_0xa50473['model']['on']('applyOperation',(_0xd61f15,_0x58b209)=>{_0x58b209[0x0]['isDocumentOperation']&&_0x1d3c0e++,0x5e8==_0x1d3c0e&&(_0x52c372(),_0xd61f15['off']());});}))];return window['Promise']['race'](_0x49aaf7)['then'](()=>_0x3c8657);}async function _0x3117a1(){await _0x347b3c,_0xa50473['model']['change']=_0x253c92,_0xa50473['model']['enqueueChange']=_0x253c92,_0xa50473['enableReadOnlyMode']('model');}function _0x3062f8(_0x49ec92){const _0x1b0681=_0x1b757e();_0xa50473[_0x1b0681]='multiLevelListLicenseKey'+_0x49ec92,'Valid'!=_0x49ec92&&_0x3117a1();}function _0x1b757e(){const _0x2029e4=window['String'](window['performance']['now']())['replace']('.','');let _0xfaa7a0='I';for(let _0x233142=0x0;_0x233142<_0x2029e4['length'];_0x233142+=0x2){let _0x554f05=window['parseInt'](_0x2029e4['substring'](_0x233142,_0x233142+0x2));_0x554f05>=0x3e&&(_0x554f05-=0x3e),_0xfaa7a0+=_0x96bb67[_0x554f05];}return _0xfaa7a0;}function _0x1b1ced(){const _0x29b2dc=_0x214772['split']('.');if(0x3!=_0x29b2dc['length'])return null;return _0xbe24df(_0x29b2dc[0x1]);function _0xbe24df(_0x41e740){const _0x34c81e=_0x42ab82(_0x41e740);return _0x34c81e&&_0x5c810a()?_0x34c81e:null;function _0x5c810a(){const _0x1e2adb=_0x34c81e['jti'],_0x3a202e=window['parseInt'](_0x1e2adb['substring'](_0x1e2adb['length']-0x8),0x10),_0x53df07={..._0x34c81e,'jti':_0x1e2adb['substring'](0x0,_0x1e2adb['length']-0x8)};return delete _0x53df07['vc'],_0x3a72cc(_0x53df07)==_0x3a202e;}}}async function _0x299ee2(){let _0x127234=!0x0;try{const [_0x173dbb,_0x21f9d7,_0x7816fc]=_0x214772['split']('.');return _0x307a4b(_0x173dbb),await _0x5e6156(_0x173dbb,_0x21f9d7,_0x7816fc),_0x127234;}catch{return!0x1;}function _0x307a4b(_0x430313){const _0x6d952b=_0x42ab82(_0x430313);_0x6d952b&&'ES256'==_0x6d952b['alg']||(_0x127234=!0x1);}async function _0x5e6156(_0x94e98e,_0x2c19e3,_0x5225b0){const _0x40d20c=window['Uint8Array']['from'](_0x3dcc0d(_0x5225b0),_0x3f3798=>_0x3f3798['charCodeAt'](0x0)),_0x1d9fde=new window['TextEncoder']()['encode'](_0x94e98e+'.'+_0x2c19e3),_0x155766=window['crypto']['subtle'];if(!_0x155766)return;const _0x61cdbc=await _0x155766['importKey']('jwk',_0x1bd41c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x155766['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x61cdbc,_0x40d20c,_0x1d9fde)||(_0x127234=!0x1);}}function _0x42ab82(_0x4eab01){return _0x4eab01['startsWith']('ey')?JSON['parse'](_0x3dcc0d(_0x4eab01)):null;}function _0x3dcc0d(_0x52a2c3){return window['atob'](_0x52a2c3['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3a72cc(_0x245c7a){let _0x202321=0x1505;function _0x2a8bcf(_0x431dcf){for(let _0x27a824=0x0;_0x27a824<_0x431dcf['length'];_0x27a824++){const _0xc473a9=_0x431dcf['charCodeAt'](_0x27a824);_0x202321=(_0x202321<<0x5)+_0x202321+_0xc473a9,_0x202321&=_0x202321;}}function _0x4d26e6(_0x138ba7){Array['isArray'](_0x138ba7)?_0x138ba7['forEach'](_0x4d26e6):_0x138ba7&&'object'==typeof _0x138ba7?Object['entries'](_0x138ba7)['sort']()['forEach'](([_0x2c8ad4,_0xa8ee5b])=>{_0x2a8bcf(_0x2c8ad4),_0x4d26e6(_0xa8ee5b);}):_0x2a8bcf(window['String'](_0x138ba7));}return _0x4d26e6(_0x245c7a),_0x202321>>>0x0;}function _0x1ed02d(_0x5bfae8){return _0x5bfae8['toString'](0x10)['padStart'](0x8,'0');}function _0x494556(_0x2e8834){return _0x2e8834['split']('')['reverse']()['join']('');}function _0x253c92(){}_0x3062f8(await _0x1a7517());}_0xdc1ade(_0x7a359d['editor']);}(this);}};function E(_0x4ed0ec,_0x30319b,_0x596b6c){let _0x396b80=_0x30319b['listMarkers'][_0x4ed0ec%_0x30319b['listMarkers']['length']];if(void 0x0===_0x396b80['showMarkerPath']||_0x396b80['showMarkerPath'])return _0x596b6c['slice'](0x0,_0x4ed0ec+0x1)['map']((_0x2c293e,_0x59973f)=>(_0x396b80=_0x30319b['listMarkers'][_0x59973f%_0x30319b['listMarkers']['length']],N(_0x396b80['marker'],_0x2c293e)))['join']('');{const _0xdacb9b=_0x596b6c[_0x596b6c['length']-0x1];return N(_0x396b80['marker'],_0xdacb9b);}}function N(_0x142a37,_0xfd407d){return'function'==typeof _0x142a37?_0x142a37(_0xfd407d):_0x142a37;}function _(_0xa608d6,_0x2482c5){return(_0x2f7a43,_0xbbee38,_0x42a99e)=>{const _0x1a1831=_0xbbee38['viewItem'];if(_0xbbee38['modelRange']||Object['assign'](_0xbbee38,_0x42a99e['convertChildren'](_0xbbee38['viewItem'],_0xbbee38['modelCursor'])),!_0x42a99e['consumable']['test'](_0x1a1831,{'classes':_0xa608d6['className']}))return;const _0x2a5ecb=Array['from'](_0xbbee38['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x25d999=>_0x2482c5['checkAttribute'](_0x25d999,'listItemId'));if(!_0x2a5ecb['length'])return;_0x42a99e['consumable']['consume'](_0x1a1831,{'classes':_0xa608d6['className']}),_0x42a99e['consumable']['consume'](_0x1a1831,{'classes':'multi-level-list'}),_0x42a99e['consumable']['consume'](_0x1a1831,{'styles':'list-style-type'});const _0x1cc164=_0x2a5ecb[0x0]['getAttribute']('listIndent');for(const _0x1a902f of _0x2a5ecb)_0x1a902f['getAttribute']('listIndent')==_0x1cc164&&(_0x42a99e['writer']['setAttribute']('listType',_0xa608d6['listType'],_0x1a902f),_0x42a99e['writer']['setAttribute']('listMarkerStyle',_0xa608d6['listMarkerStyle'],_0x1a902f));};}function A(_0x45b466,_0x4dba42){const _0x31f4df=_0x45b466['t'],t=_0x45b466['t'];switch(_0x4dba42){case'Start\x20at':return _0x31f4df('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x31f4df('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x31f4df('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x31f4df('List\x20properties');case'Multi-level\x20List':return t('Multi-level\x20List');case'Multi-level\x20list\x20styles\x20toolbar':return t('Multi-level\x20list\x20styles\x20toolbar');default:return _0x4dba42;}}var V=class extends _0x43e436{['children'];stylesView=null;additionalPropertiesCollapsibleView=null;startIndexFieldView=null;['focusTracker']=new _0xb4804f();keystrokes=new _0x3b5e95();['focusables']=new _0x42b17b();['focusCycler'];constructor(_0x25fa86,{enabledProperties:_0x5dd5e2,styleButtonViews:_0x43b578,styleGridAriaLabel:_0x46cd5b}){super(_0x25fa86);const _0x298633=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x4ebbf8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x5dd5e2['styles']?(this['stylesView']=this['_createStylesView'](_0x43b578,_0x46cd5b),this['children']['add'](this['stylesView'])):_0x298633['push']('ck-multi-level-list-properties_without-styles'),_0x5dd5e2['startIndex']&&(this['_addListPropertyViews'](_0x5dd5e2),_0x298633['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x298633},'children':this['children']});}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']),this['startIndexFieldView']&&(this['focusables']['add'](this['children']['last']['buttonView']),this['focusTracker']['add'](this['children']['last']['buttonView']['element']));for(const _0x373971 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x373971['element']);_0xd0b35b({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x552100['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x2291f1=_0x129986=>_0x129986['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2291f1),this['keystrokes']['set']('arrowleft',_0x2291f1),this['keystrokes']['set']('arrowup',_0x2291f1),this['keystrokes']['set']('arrowdown',_0x2291f1);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}focusLast(){this['focusCycler']['focusLast']();}destroy(){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}_createStylesView(_0x5c71b3,_0x34199a){const _0x5b4b17=new _0x43e436(this['locale']);return _0x5b4b17['children']=_0x5b4b17['createCollection'](),_0x5b4b17['children']['addMany'](_0x5c71b3),_0x5b4b17['setTemplate']({'tag':'div','attributes':{'aria-label':_0x34199a,'class':['ck','ck-multi-level-list-styles']},'children':_0x5b4b17['children']}),_0x5b4b17['children']['delegate']('execute')['to'](this),_0x5b4b17['focus']=function(){this['children']['first']['focus']();},_0x5b4b17['focusTracker']=new _0xb4804f(),_0x5b4b17['keystrokes']=new _0x3b5e95(),_0x5b4b17['render'](),_0x5b4b17['keystrokes']['listenTo'](_0x5b4b17['element']),_0x5b4b17;}_addListPropertyViews(_0xe8ac01){const _0x5c2f07=[];_0xe8ac01['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x5c2f07['push'](this['startIndexFieldView'])),_0xe8ac01['styles']?(this['additionalPropertiesCollapsibleView']=new _0x40dbe3(this['locale'],_0x5c2f07),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x5c2f07,'isEnabled',(..._0x3837f3)=>_0x3837f3['some'](_0x3bd3e1=>_0x3bd3e1)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x2906cd,_0xe63aec,_0x23cefc)=>{_0x23cefc||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x5c2f07);}_createStartIndexField(){const _0x2f307b=new _0x5e79e9(this['locale'],_0x13e3ef);return _0x2f307b['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x2f307b['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2f307b['fieldView']['on']('input',()=>{const _0x4f7b2c=_0x2f307b['fieldView']['element'],_0x1ea5e8=_0x4f7b2c['valueAsNumber'];Number['isNaN'](_0x1ea5e8)?_0x2f307b['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x4f7b2c['checkValidity']()?this['fire']('listStart',{'startIndex':_0x1ea5e8}):_0x2f307b['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x2f307b;}},K=class extends _0x66909e{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x4f0b75=this['editor'];_0x4f0b75['ui']['componentFactory']['add']('multiLevelList',function({editor:_0xbbd9d8,parentCommandName:_0xca62f4,buttonLabel:_0x3bfcc8,buttonIcon:_0x51c150,styleGridAriaLabel:_0x5a5ff7,styleDefinitions:_0x24ee04}){const _0x5dd7db=_0xbbd9d8['commands']['get'](_0xca62f4),_0x1b3a40=_0xbbd9d8['config']['get']('list.properties')||{},_0x3984b7=_0xbbd9d8['plugins']['has']('ListProperties'),_0x21f3e1=_0x1b3a40['startIndex'];return _0x3984b7&&_0x21f3e1?_0x4ba225=>{const _0x1bb688=_0x4c30e9(_0x4ba225,_0x38202d),_0x3ac55b=_0x1bb688['buttonView'];return _0x1bb688['bind']('isEnabled')['to'](_0x5dd7db),_0x1bb688['class']='ck-list-styles-dropdown',_0x3ac55b['on']('execute',()=>{_0xbbd9d8['execute'](_0xca62f4),_0xbbd9d8['editing']['view']['focus']();}),_0x3ac55b['set']({'label':_0x3bfcc8,'icon':_0x51c150,'tooltip':!0x0,'isToggleable':!0x0}),_0x3ac55b['bind']('isOn')['to'](_0x5dd7db,'value',_0x4d2e9c=>!!_0x4d2e9c),_0x1bb688['once']('change:isOpen',()=>{const _0x42632b=function({editor:_0x714fd1,dropdownView:_0x25977,styleDefinitions:_0x2ac40a,styleGridAriaLabel:_0x4d8c83}){const _0x133543=_0x714fd1['locale'],_0x1a429f=_0x714fd1['config']['get']('list.properties'),_0x50f21a=null;_0x1a429f['reversed']=!0x1,_0x2ac40a['length']||(_0x1a429f['styles']=!0x1);const _0x4cdbfb=new V(_0x133543,{'styleGridAriaLabel':_0x4d8c83,'enabledProperties':_0x1a429f,'styleButtonViews':_0x50f21a});if(_0x1a429f['startIndex']){const _0x450178=_0x714fd1['commands']['get']('listStart');_0x4cdbfb['startIndexFieldView']['bind']('isEnabled')['to'](_0x450178),_0x4cdbfb['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x450178),_0x4cdbfb['on']('listStart',(_0x42018e,_0x374dc4)=>_0x714fd1['execute']('listStart',_0x374dc4));}return _0x4cdbfb['delegate']('execute')['to'](_0x25977),_0x4cdbfb;}({'editor':_0xbbd9d8,'dropdownView':_0x1bb688,'parentCommandName':_0xca62f4,'styleGridAriaLabel':_0x5a5ff7,'styleDefinitions':_0x24ee04});_0x1bb688['panelView']['children']['add'](_0x42632b);}),_0x1bb688['on']('execute',()=>{_0xbbd9d8['editing']['view']['focus']();}),_0x1bb688;}:_0x2e4519=>{const _0x3c4b3a=new _0x20a860(_0x2e4519);return _0x3c4b3a['set']({'label':_0x3bfcc8,'icon':_0x51c150,'tooltip':!0x0,'isToggleable':!0x0}),_0x3c4b3a['bind']('isOn')['to'](_0x5dd7db,'value',_0x438181=>!!_0x438181),_0x3c4b3a['on']('execute',()=>{_0xbbd9d8['execute'](_0xca62f4),_0xbbd9d8['editing']['view']['focus']();}),_0x3c4b3a;};}({'editor':_0x4f0b75,'parentCommandName':'multiLevelList','buttonLabel':A(_0x4f0b75['locale'],'Multi-level\x20List'),'buttonIcon':_0x2c2222,'styleGridAriaLabel':A(_0x4f0b75['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x4f0b75['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x14ef4d=_0x4f0b75['commands']['get']('multiLevelList'),_0x36443f=new _0xf77d66(_0x4f0b75['locale']);return _0x36443f['set']({'label':A(_0x4f0b75['locale'],'Multi-level\x20List'),'icon':_0x2c2222}),_0x36443f['bind']('isEnabled')['to'](_0x14ef4d),_0x36443f['bind']('isOn')['to'](_0x14ef4d,'value',_0x88f86=>!!_0x88f86),_0x36443f['on']('execute',()=>{_0x4f0b75['execute']('multiLevelList'),_0x4f0b75['editing']['view']['focus']();}),_0x36443f;}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x5bd455=[this['editor']];for(const _0x2853af of _0x5bd455){let _0x296152;for(const _0x5afc14 in _0x2853af){const _0x37451d=_0x5afc14,_0xa9cd62=_0x2853af[_0x37451d];if('multiLevelListLicenseKeyValid'==_0xa9cd62||'multiLevelListLicenseKeyInvalid'==_0xa9cd62||'multiLevelListLicenseKeyExpired'==_0xa9cd62||'multiLevelListLicenseKeyDomainLimit'==_0xa9cd62||'multiLevelListLicenseKeyNotAllowed'==_0xa9cd62||'multiLevelListLicenseKeyEvaluationLimit'==_0xa9cd62||'multiLevelListLicenseKeyUsageLimit'==_0xa9cd62){delete _0x2853af[_0x37451d],_0x296152=_0xa9cd62,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x296152&&_0x2853af['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x296152&&_0x2853af['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x296152&&_0x2853af['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x296152&&_0x2853af['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x296152&&_0x2853af['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x296152&&_0x2853af['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x66909e{static get['pluginName'](){return'MultiLevelList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[x,K];}};export{P as MultiLevelList,S as MultiLevelListCommand,x as MultiLevelListEditing,K as MultiLevelListUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-list-multi-level",
3
- "version": "48.5.0-alpha.4",
3
+ "version": "48.5.0-alpha.5",
4
4
  "description": "Multi-level list feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -32,13 +32,13 @@
32
32
  "./package.json": "./package.json"
33
33
  },
34
34
  "dependencies": {
35
- "@ckeditor/ckeditor5-clipboard": "48.5.0-alpha.4",
36
- "@ckeditor/ckeditor5-core": "48.5.0-alpha.4",
37
- "@ckeditor/ckeditor5-engine": "48.5.0-alpha.4",
38
- "@ckeditor/ckeditor5-icons": "48.5.0-alpha.4",
39
- "@ckeditor/ckeditor5-list": "48.5.0-alpha.4",
40
- "@ckeditor/ckeditor5-ui": "48.5.0-alpha.4",
41
- "@ckeditor/ckeditor5-utils": "48.5.0-alpha.4"
35
+ "@ckeditor/ckeditor5-clipboard": "48.5.0-alpha.5",
36
+ "@ckeditor/ckeditor5-core": "48.5.0-alpha.5",
37
+ "@ckeditor/ckeditor5-engine": "48.5.0-alpha.5",
38
+ "@ckeditor/ckeditor5-icons": "48.5.0-alpha.5",
39
+ "@ckeditor/ckeditor5-list": "48.5.0-alpha.5",
40
+ "@ckeditor/ckeditor5-ui": "48.5.0-alpha.5",
41
+ "@ckeditor/ckeditor5-utils": "48.5.0-alpha.5"
42
42
  },
43
43
  "files": [
44
44
  "dist",