@ckeditor/ckeditor5-list-multi-level 48.4.0-alpha.3 → 48.4.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x4da993,Plugin as _0x384dae}from'@ckeditor/ckeditor5-core';import{Matcher as _0x124fbd,ViewUpcastWriter as _0x27c6dd}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x429456,_isFirstBlockOfListItem as _0x348126}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0x4712d3,KeystrokeHandler as _0x292fd2,createElement as _0x431112,first as _0x529b5c,global as _0xb06fcc,uid as _0x4b9b5a}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x411b74}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x7d33a1,CollapsibleView as _0x4cede9,FocusCycler as _0x58d4fb,LabeledFieldView as _0x3b1a86,MenuBarMenuListItemButtonView as _0x16209e,SplitButtonView as _0x571ca6,View as _0x523f65,ViewCollection as _0x2575e3,addKeyboardHandlingForGrid as _0x5914d8,createDropdown as _0x2a27ef,createLabeledInputNumber as _0x5c23f1}from'@ckeditor/ckeditor5-ui';var S=class extends _0x4da993{defaultListMarkerStyle;_listDefinitions;_listUtils;constructor(_0x404004,_0x23fef1,_0x3d8f23){super(_0x404004),this['defaultListMarkerStyle']=_0x23fef1,this['_listDefinitions']=_0x3d8f23,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}execute(_0x18a8b2={}){const _0x4b1e09=this['editor']['model'],_0x4e6f63=_0x18a8b2['listMarkerStyle']||this['defaultListMarkerStyle'];_0x4b1e09['change'](()=>{const _0x18ba22=this['_getListTypeFromListMarkerStyle'](_0x4e6f63);if(!_0x18ba22)return;const _0x59c473=_0x18ba22+'List';this['editor']['execute'](_0x59c473,{'additionalAttributes':{'listMarkerStyle':_0x4e6f63}});});}_getValue(){const _0x31cf27=_0x529b5c(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x31cf27)?_0x31cf27['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x11fa3e=this['editor'],_0x1219fd=_0x11fa3e['commands']['get']('customNumberedList'),_0x80ad6d=_0x11fa3e['commands']['get']('customBulletedList');return _0x1219fd['isEnabled']||_0x80ad6d['isEnabled'];}_getListTypeFromListMarkerStyle(_0x92164a){const _0x11fedc=this['_listDefinitions']['find'](_0x38cec7=>_0x38cec7['listMarkerStyle']==_0x92164a);return _0x11fedc?_0x11fedc['listType']:null;}},x=class extends _0x384dae{_listDefinitions;static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x429456];}constructor(_0x329967){super(_0x329967);const _0x428c91=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x2e25e4=>_0x2e25e4+'.'}]},..._0x428c91];}init(){const _0x24427f=this['editor'],_0x443ca4=_0x24427f['model'],_0x574a66=_0x24427f['editing']['view'],_0x1617b5=_0x24427f['plugins']['get'](_0x429456);_0x24427f['commands']['add']('multiLevelList',new S(_0x24427f,'legal',this['_listDefinitions'])),_0x443ca4['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x443ca4['schema']['addAttributeCheck']((_0x366069,_0x274587)=>{const _0x45ac55=_0x366069['last'];if('listMarker'==_0x274587||'listMarkerStyle'==_0x274587)return!(!_0x45ac55['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x5de669=>_0x5de669['listType']==_0x45ac55['getAttribute']('listType')))&&void 0x0;});for(const _0x1559c0 of this['_listDefinitions'])_0x24427f['conversion']['for']('upcast')['add'](_0x4e6056=>{_0x4e6056['on']('element:'+('customNumbered'==_0x1559c0['listType']?'ol':'ul'),_(_0x1559c0,_0x443ca4['schema']),{'priority':'low'});}),_0x1617b5['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x1288c8,_0x3e2b43,_0x51783b){_0x3e2b43==_0x1559c0['listMarkerStyle']?(_0x1288c8['addClass'](['multi-level-list',_0x1559c0['className']],_0x51783b),_0x1288c8['setStyle']('list-style-type','none',_0x51783b)):(_0x1288c8['removeClass'](['multi-level-list',_0x1559c0['className']],_0x51783b),_0x1288c8['removeStyle']('list-style-type',_0x51783b));}}),_0x1617b5['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x4aaa9a,_0x5e9f9e,{dataPipeline:_0x11049d}){if(!_0x5e9f9e['hasAttribute']('listMarker'))return null;if(_0x5e9f9e['getAttribute']('listType')!=_0x1559c0['listType']||_0x5e9f9e['getAttribute']('listMarkerStyle')!=_0x1559c0['listMarkerStyle'])return null;const _0x13e54e=String(_0x5e9f9e['getAttribute']('listMarker')),_0x4d4473=this['canInjectMarkerIntoElement'](_0x5e9f9e);return _0x4aaa9a['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x11049d&&{'contenteditable':'false','data-multi-level-list-marker':_0x13e54e}},function(_0x582528){const _0x3660ef=this['toDomElement'](_0x582528);return _0x4d4473?(_0x3660ef['appendChild'](_0x431112(_0x582528,'span',{},_0x11049d?_0x582528['createTextNode'](_0x13e54e):[])),_0x3660ef['appendChild'](_0x582528['createTextNode']('\u00a0'))):_0x11049d&&_0x3660ef['appendChild'](_0x582528['createTextNode'](_0x13e54e)),_0x3660ef;});},'canInjectMarkerIntoElement':_0x3a93bf=>_0x443ca4['schema']['checkChild'](_0x3a93bf,'$text')&&_0x443ca4['schema']['checkChild'](_0x3a93bf,'$inlineObject')&&!_0x443ca4['schema']['isLimit'](_0x3a93bf)&&_0x3a93bf['getAttribute']('listType')==_0x1559c0['listType']&&_0x3a93bf['getAttribute']('listMarkerStyle')==_0x1559c0['listMarkerStyle']});_0x24427f['conversion']['for']('upcast')['add'](_0x368b7a=>{_0x368b7a['on']('element:span',function(_0x1ee2f0){return(_0x5625a8,_0x2b54ed,{writer:_0x50afac,consumable:_0x2aa58b})=>{const _0x3513dd=_0x2b54ed['modelCursor'],_0x234480=_0x3513dd['parent'],_0x57df51=_0x2b54ed['viewItem'];if(_0x2aa58b['consume'](_0x57df51,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x3513dd['isAtStart']&&_0x234480['hasAttribute']('listType')&&_0x57df51['childCount']>0x0){const _0x4eef97=_0x1ee2f0['createRangeIn'](_0x57df51);let _0x802237='';for(const _0x5e8d17 of _0x4eef97['getItems']())_0x5e8d17['is']('$textProxy')?(_0x802237+=_0x5e8d17['data']['trim'](),_0x2aa58b['consume'](_0x5e8d17['textNode'])):_0x2aa58b['consume'](_0x5e8d17,{'name':!0x0});_0x50afac['setAttribute']('listMarker',_0x802237['trim'](),_0x234480);}};}(_0x574a66));}),_0x1617b5['on']('postFixer',(_0xcecd37,{listNodes:_0x55314d,writer:_0x5245e5})=>{const _0x596ee3=[];for(const {node:_0x193d82,previousNodeInList:_0x37730d}of _0x55314d){const _0x2c7133=_0x193d82['getAttribute']('listType'),_0x52815d=_0x193d82['getAttribute']('listMarkerStyle')||('customNumbered'==_0x2c7133?'legal':void 0x0),_0x131f49=this['_listDefinitions']['find'](_0x5920fc=>_0x5920fc['listType']==_0x2c7133&&_0x5920fc['listMarkerStyle']==_0x52815d);if('customNumbered'!=_0x2c7133&&'customBulleted'!=_0x2c7133&&(_0x193d82['hasAttribute']('listMarker')&&(_0x5245e5['removeAttribute']('listMarker',_0x193d82),_0xcecd37['return']=!0x0),_0x193d82['hasAttribute']('listMarkerStyle')&&(_0x5245e5['removeAttribute']('listMarkerStyle',_0x193d82),_0xcecd37['return']=!0x0)),!_0x131f49){'customBulleted'!=_0x2c7133||_0x52815d||(_0x5245e5['setAttribute']('listType','bulleted',_0x193d82),_0xcecd37['return']=!0x0);continue;}_0x193d82['hasAttribute']('listMarkerStyle')||(_0x5245e5['setAttribute']('listMarkerStyle',_0x52815d,_0x193d82),_0xcecd37['return']=!0x0);const _0x4a3495=_0x193d82['getAttribute']('listIndent');if(_0x37730d&&_0x37730d['getAttribute']('listItemId')==_0x193d82['getAttribute']('listItemId'))continue;if(_0x596ee3['length']=_0x4a3495+0x1,_0x24427f['config']['get']('list.enableSkipLevelLists')){for(let _0x48ae10=0x0;_0x48ae10<_0x4a3495;_0x48ae10++)void 0x0===_0x596ee3[_0x48ae10]&&(_0x596ee3[_0x48ae10]=0x1);}_0x37730d||_0x596ee3[_0x4a3495]?_0x37730d&&_0x37730d['getAttribute']('listType')!=_0x131f49['listType']?_0x596ee3[_0x4a3495]=0x1:_0x596ee3[_0x4a3495]++:_0x596ee3[_0x4a3495]=_0x193d82['getAttribute']('listStart')||0x1;const _0x38ad35=E(_0x4a3495,_0x131f49,_0x596ee3);_0x193d82['getAttribute']('listMarker')!=_0x38ad35&&(_0x5245e5['setAttribute']('listMarker',_0x38ad35,_0x193d82),_0xcecd37['return']=!0x0);}}),_0x1617b5['on']('checkElement',(_0x2298e0,{modelElement:_0x301759,viewElement:_0x212bf8})=>{const _0x2c5dab=_0x301759['getAttribute']('listType');if('customNumbered'!=_0x2c5dab&&'customBulleted'!=_0x2c5dab)return;if(_0x443ca4['schema']['checkChild'](_0x301759,'$text'))return;const _0x43dc4c=_0x348126(_0x301759);let _0x767bd=!0x1;const _0xd18755=_0x574a66['createPositionBefore'](_0x212bf8)['getWalker']({'direction':'backward'});for(const {item:_0x517021}of _0xd18755)if(_0x517021['is']('element')){if(_0x24427f['editing']['mapper']['toModelElement'](_0x517021))break;if(_0x517021['getCustomProperty']('listItemMarker')){_0x767bd=!0x0;break;}}_0x767bd!=_0x43dc4c&&(_0x2298e0['return']=!0x0,_0x2298e0['stop']());});const _0x5289c6=_0x24427f['editing']['view']['document'];this['listenTo'](_0x5289c6,'clipboardOutput',(_0xf890d1,_0x39a5e3)=>{const _0x5d6d03=new _0x124fbd({'name':'span','classes':'multi-level-list__marker'}),_0x9b2ccc=new _0x124fbd({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x285cbf=new _0x27c6dd(_0x39a5e3['content']['document']),_0xad02b2=[];for(const _0x2815b4 of _0x285cbf['createRangeIn'](_0x39a5e3['content'])['getItems']())_0x2815b4['is']('element')&&_0x5d6d03['match'](_0x2815b4)&&_0xad02b2['push'](_0x2815b4),_0x2815b4['is']('element')&&_0x9b2ccc['match'](_0x2815b4)&&_0x285cbf['removeStyle']('list-style-type',_0x2815b4);for(const _0x216986 of _0xad02b2)_0x285cbf['remove'](_0x216986);});}afterInit(){!async function(_0xbf2c3b){const _0x118c5c='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x2d8358=0x79170,_0x1f0b41=window['Date']['now'](),_0x34185b=_0xbf2c3b['editor'],_0xf6fa1f=new window['Promise'](_0xc0a8f8=>{_0x34185b['once']('ready',_0xc0a8f8);}),_0x3101ae={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3162be=_0x34185b['config']['get']('licenseKey');async function _0x42fade(){let _0x3471d6,_0x28c945=null,_0x1f6100=null;try{return'GPL'==_0x3162be?'NotAllowed':(_0x3471d6=_0x2436b8(),_0x3471d6?(_0x3471d6['usageEndpoint']&&(_0x1f6100=_0x37fca8(_0x3471d6['usageEndpoint'],_0x3471d6['jti'])),await _0x1ba4a1()?_0x276ea6()?_0x18deb1()?'Expired':_0x590805()?('evaluation'==_0x3471d6['licenseType']&&(_0x28c945=_0x3b5bea('EvaluationLimit')),await _0x5cb4b9()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x18deb1(){const _0x34883f=['evaluation','trial']['includes'](_0x3471d6['licenseType'])?_0x1f0b41/0x3e8:0xe10*_0x2d8358;return _0x3471d6['exp']<_0x34883f;}function _0x276ea6(){const _0xd6f32d=_0x3471d6['features'];return!!_0xd6f32d&&(!!_0xd6f32d['includes']('*')||!!_0xd6f32d['includes']('MLL'));}function _0x590805(){const _0x525c78=_0x3471d6['licensedHosts'];if(!_0x525c78||0x0==_0x525c78['length'])return!0x0;const {hostname:_0x272d48}=new URL(window['location']['href']);if(_0x525c78['includes'](_0x272d48))return!0x0;const _0x572f6d=_0x272d48['split']('.');return _0x525c78['filter'](_0x2fed7c=>_0x2fed7c['includes']('*'))['map'](_0x2c153a=>_0x2c153a['split']('.'))['filter'](_0x14eb76=>_0x14eb76['length']<=_0x572f6d['length'])['map'](_0x447280=>Array(_0x572f6d['length']-_0x447280['length'])['fill']('*'===_0x447280[0x0]?'*':'')['concat'](_0x447280))['some'](_0x1e1b1f=>_0x572f6d['every']((_0x474b8d,_0x79792c)=>_0x1e1b1f[_0x79792c]===_0x474b8d||'*'===_0x1e1b1f[_0x79792c]));}function _0x5cb4b9(){return _0x28c945&&_0x1f6100?new window['Promise']((_0x3eddfd,_0x350817)=>{_0x28c945['then'](_0x3eddfd,_0x350817),_0x1f6100['then'](_0x5dd1b8=>{'Valid'!=_0x5dd1b8&&_0x3eddfd(_0x5dd1b8);},_0x350817);}):_0x28c945||_0x1f6100||'Valid';}}function _0x37fca8(_0x2773f5,_0x297af1){return new window['Promise'](_0x26935f=>{if(_0x4a57b7())return _0x26935f('Valid');_0x41a25b(),_0x34185b['decorate']('_sendUsageRequest');let _0x28e0ab=!0x1;const _0x3d90fe=_0x4b9b5a();function _0x3b9599(_0x18f984){return!!_0x18f984&&('object'==typeof _0x18f984||'function'==typeof _0x18f984)&&'function'==typeof _0x18f984['then']&&'function'==typeof _0x18f984['catch'];}function _0x34e2a6(_0x580146){_0x11a0a7(_0x580146)['then'](_0x1e77a1=>_0x1e77a1&&'ok'==_0x1e77a1['status']?_0x5d5043(_0x159348(_0x3d90fe+_0x297af1))!=_0x1e77a1['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5a138a=>(_0x4f61ed(),_0x5a138a),()=>{const _0x3bfa81=_0x21a852();return null==_0x3bfa81?(_0x4f61ed(),'Valid'):_0x1f0b41-_0x3bfa81>0x240c8400?'UsageLimit':'Valid';})['then'](_0x26935f)['catch'](()=>{_0x26935f('UsageLimit');});const _0x298983=0x36ee80;function _0x4f61ed(){const _0x65e48f='llct-'+_0x5d5043(_0x159348(_0x2773f5)),_0x27888e=_0x513cdb(_0x5d5043(window['Math']['ceil'](_0x1f0b41/_0x298983)));window['localStorage']['setItem'](_0x65e48f,_0x27888e);}function _0x21a852(){const _0x298563='llct-'+_0x5d5043(_0x159348(_0x2773f5)),_0x1a8b83=window['localStorage']['getItem'](_0x298563);return _0x1a8b83?window['parseInt'](_0x513cdb(_0x1a8b83),0x10)*_0x298983:null;}function _0x11a0a7(_0x54174b){return new window['Promise']((_0x24ca9a,_0x1c0acc)=>{_0x54174b['then'](_0x24ca9a,_0x1c0acc),window['setTimeout'](_0x1c0acc,0x1d4c0);});}}_0x34185b['on']('_sendUsageRequest',(_0x4e1a70,_0x30d8c7)=>{if(_0x30d8c7[0x0]!=_0x2773f5)return _0x26935f('UsageLimit');_0x30d8c7[0x1]={..._0x30d8c7[0x1],'requestId':_0x3d90fe};},{'priority':'high'}),_0x34185b['on']('_sendUsageRequest',_0x5e8b48=>{_0x3b9599(_0x5e8b48['return'])&&(_0x28e0ab=!0x0,_0x34e2a6(_0x5e8b48['return']));},{'priority':'low'}),_0xf6fa1f['then'](()=>{_0x28e0ab||_0x26935f('UsageLimit');});});function _0x4a57b7(){return'auto'==_0x34185b['editing']['view']['_overlayModeHint'];}function _0x41a25b(){_0x34185b['editing']['view']['_overlayModeHint']='auto';}}function _0x3b5bea(_0x3c234c){const _0x376bb9=[new window['Promise'](_0x3535d0=>setTimeout(_0x3535d0,0x93ecc)),_0xf6fa1f['then'](()=>new window['Promise'](_0x2fb84b=>{let _0x42b46f=0x0;_0x34185b['model']['on']('applyOperation',(_0x426a14,_0x46da21)=>{_0x46da21[0x0]['isDocumentOperation']&&_0x42b46f++,0x5e8==_0x42b46f&&(_0x2fb84b(),_0x426a14['off']());});}))];return window['Promise']['race'](_0x376bb9)['then'](()=>_0x3c234c);}async function _0x323c96(){await _0xf6fa1f,_0x34185b['model']['change']=_0x306616,_0x34185b['model']['enqueueChange']=_0x306616,_0x34185b['enableReadOnlyMode']('model');}function _0x35af7(_0xf47bb5){const _0x1d966a=_0x4239ee();_0x34185b[_0x1d966a]='multiLevelListLicenseKey'+_0xf47bb5,'Valid'!=_0xf47bb5&&_0x323c96();}function _0x4239ee(){const _0x3e07cc=window['String'](window['performance']['now']())['replace']('.','');let _0x3bf20d='u';for(let _0x150236=0x0;_0x150236<_0x3e07cc['length'];_0x150236+=0x2){let _0x4dc595=window['parseInt'](_0x3e07cc['substring'](_0x150236,_0x150236+0x2));_0x4dc595>=0x3e&&(_0x4dc595-=0x3e),_0x3bf20d+=_0x118c5c[_0x4dc595];}return _0x3bf20d;}function _0x2436b8(){const _0x53b870=_0x3162be['split']('.');if(0x3!=_0x53b870['length'])return null;return _0x5d0a0c(_0x53b870[0x1]);function _0x5d0a0c(_0x3f38e7){const _0x1c6471=_0x160266(_0x3f38e7);return _0x1c6471&&_0x11710e()?_0x1c6471:null;function _0x11710e(){const _0x49bffe=_0x1c6471['jti'],_0x10e7e4=window['parseInt'](_0x49bffe['substring'](_0x49bffe['length']-0x8),0x10),_0x22119f={..._0x1c6471,'jti':_0x49bffe['substring'](0x0,_0x49bffe['length']-0x8)};return delete _0x22119f['vc'],_0x159348(_0x22119f)==_0x10e7e4;}}}async function _0x1ba4a1(){let _0x1ea292=!0x0;try{const [_0x5ab8d5,_0x5076e8,_0x2a360f]=_0x3162be['split']('.');return _0x4f6a67(_0x5ab8d5),await _0x54bfc0(_0x5ab8d5,_0x5076e8,_0x2a360f),_0x1ea292;}catch{return!0x1;}function _0x4f6a67(_0x37a638){const _0x1a1ca6=_0x160266(_0x37a638);_0x1a1ca6&&'ES256'==_0x1a1ca6['alg']||(_0x1ea292=!0x1);}async function _0x54bfc0(_0x347a09,_0x52ed41,_0x40bd20){const _0x723010=window['Uint8Array']['from'](_0x1667a7(_0x40bd20),_0x2117ae=>_0x2117ae['charCodeAt'](0x0)),_0xff9b16=new window['TextEncoder']()['encode'](_0x347a09+'.'+_0x52ed41),_0x2311dc=window['crypto']['subtle'];if(!_0x2311dc)return;const _0x3863c9=await _0x2311dc['importKey']('jwk',_0x3101ae,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2311dc['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3863c9,_0x723010,_0xff9b16)||(_0x1ea292=!0x1);}}function _0x160266(_0x555b0a){return _0x555b0a['startsWith']('ey')?JSON['parse'](_0x1667a7(_0x555b0a)):null;}function _0x1667a7(_0x224bf5){return window['atob'](_0x224bf5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x159348(_0xc31923){let _0x2df4ce=0x1505;function _0x14d771(_0xeb933e){for(let _0x5f5b11=0x0;_0x5f5b11<_0xeb933e['length'];_0x5f5b11++){const _0x3fa61f=_0xeb933e['charCodeAt'](_0x5f5b11);_0x2df4ce=(_0x2df4ce<<0x5)+_0x2df4ce+_0x3fa61f,_0x2df4ce&=_0x2df4ce;}}function _0x45faa0(_0x2eb1c4){Array['isArray'](_0x2eb1c4)?_0x2eb1c4['forEach'](_0x45faa0):_0x2eb1c4&&'object'==typeof _0x2eb1c4?Object['entries'](_0x2eb1c4)['sort']()['forEach'](([_0x44d2c8,_0x580689])=>{_0x14d771(_0x44d2c8),_0x45faa0(_0x580689);}):_0x14d771(window['String'](_0x2eb1c4));}return _0x45faa0(_0xc31923),_0x2df4ce>>>0x0;}function _0x5d5043(_0x53ce61){return _0x53ce61['toString'](0x10)['padStart'](0x8,'0');}function _0x513cdb(_0xc6bd8d){return _0xc6bd8d['split']('')['reverse']()['join']('');}function _0x306616(){}_0x35af7(await _0x42fade());}(this);}};function E(_0x1f2b9d,_0x4bcaea,_0x5bcd29){let _0x5d2ecf=_0x4bcaea['listMarkers'][_0x1f2b9d%_0x4bcaea['listMarkers']['length']];if(void 0x0===_0x5d2ecf['showMarkerPath']||_0x5d2ecf['showMarkerPath'])return _0x5bcd29['slice'](0x0,_0x1f2b9d+0x1)['map']((_0x4b175e,_0x1e4ca7)=>(_0x5d2ecf=_0x4bcaea['listMarkers'][_0x1e4ca7%_0x4bcaea['listMarkers']['length']],N(_0x5d2ecf['marker'],_0x4b175e)))['join']('');{const _0x3deb14=_0x5bcd29[_0x5bcd29['length']-0x1];return N(_0x5d2ecf['marker'],_0x3deb14);}}function N(_0x65361e,_0x21fe5){return'function'==typeof _0x65361e?_0x65361e(_0x21fe5):_0x65361e;}function _(_0x43e609,_0x57b601){return(_0x4ac6c3,_0x10b40c,_0x3f9c61)=>{const _0x5a5cb3=_0x10b40c['viewItem'];if(_0x10b40c['modelRange']||Object['assign'](_0x10b40c,_0x3f9c61['convertChildren'](_0x10b40c['viewItem'],_0x10b40c['modelCursor'])),!_0x3f9c61['consumable']['test'](_0x5a5cb3,{'classes':_0x43e609['className']}))return;const _0x3ba15a=Array['from'](_0x10b40c['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x3a50ce=>_0x57b601['checkAttribute'](_0x3a50ce,'listItemId'));if(!_0x3ba15a['length'])return;_0x3f9c61['consumable']['consume'](_0x5a5cb3,{'classes':_0x43e609['className']}),_0x3f9c61['consumable']['consume'](_0x5a5cb3,{'classes':'multi-level-list'}),_0x3f9c61['consumable']['consume'](_0x5a5cb3,{'styles':'list-style-type'});const _0x1c011c=_0x3ba15a[0x0]['getAttribute']('listIndent');for(const _0x141be6 of _0x3ba15a)_0x141be6['getAttribute']('listIndent')==_0x1c011c&&(_0x3f9c61['writer']['setAttribute']('listType',_0x43e609['listType'],_0x141be6),_0x3f9c61['writer']['setAttribute']('listMarkerStyle',_0x43e609['listMarkerStyle'],_0x141be6));};}function A(_0x44015f,_0x2d75d8){const _0x5c9468=_0x44015f['t'],t=_0x44015f['t'];switch(_0x2d75d8){case'Start\x20at':return _0x5c9468('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x5c9468('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x5c9468('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x5c9468('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 _0x2d75d8;}}var V=class extends _0x523f65{['children'];stylesView=null;additionalPropertiesCollapsibleView=null;startIndexFieldView=null;['focusTracker']=new _0x4712d3();keystrokes=new _0x292fd2();['focusables']=new _0x2575e3();['focusCycler'];constructor(_0x55c2d5,{enabledProperties:_0x37e3a2,styleButtonViews:_0x36c6cf,styleGridAriaLabel:_0xfb7445}){super(_0x55c2d5);const _0x104083=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x58d4fb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x37e3a2['styles']?(this['stylesView']=this['_createStylesView'](_0x36c6cf,_0xfb7445),this['children']['add'](this['stylesView'])):_0x104083['push']('ck-multi-level-list-properties_without-styles'),_0x37e3a2['startIndex']&&(this['_addListPropertyViews'](_0x37e3a2),_0x104083['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x104083},'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 _0x576085 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x576085['element']);_0x5914d8({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0xb06fcc['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 _0x26fe26=_0x417d22=>_0x417d22['stopPropagation']();this['keystrokes']['set']('arrowright',_0x26fe26),this['keystrokes']['set']('arrowleft',_0x26fe26),this['keystrokes']['set']('arrowup',_0x26fe26),this['keystrokes']['set']('arrowdown',_0x26fe26);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}focusLast(){this['focusCycler']['focusLast']();}destroy(){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}_createStylesView(_0x4e0216,_0x21a1fa){const _0x487804=new _0x523f65(this['locale']);return _0x487804['children']=_0x487804['createCollection'](),_0x487804['children']['addMany'](_0x4e0216),_0x487804['setTemplate']({'tag':'div','attributes':{'aria-label':_0x21a1fa,'class':['ck','ck-multi-level-list-styles']},'children':_0x487804['children']}),_0x487804['children']['delegate']('execute')['to'](this),_0x487804['focus']=function(){this['children']['first']['focus']();},_0x487804['focusTracker']=new _0x4712d3(),_0x487804['keystrokes']=new _0x292fd2(),_0x487804['render'](),_0x487804['keystrokes']['listenTo'](_0x487804['element']),_0x487804;}_addListPropertyViews(_0x20f23b){const _0xb587a5=[];_0x20f23b['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0xb587a5['push'](this['startIndexFieldView'])),_0x20f23b['styles']?(this['additionalPropertiesCollapsibleView']=new _0x4cede9(this['locale'],_0xb587a5),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0xb587a5,'isEnabled',(..._0x25979d)=>_0x25979d['some'](_0x6b9ecb=>_0x6b9ecb)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x411879,_0xafa56a,_0x44d26c)=>{_0x44d26c||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0xb587a5);}_createStartIndexField(){const _0xfbc2b7=new _0x3b1a86(this['locale'],_0x5c23f1);return _0xfbc2b7['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0xfbc2b7['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xfbc2b7['fieldView']['on']('input',()=>{const _0x92db9f=_0xfbc2b7['fieldView']['element'],_0x483562=_0x92db9f['valueAsNumber'];Number['isNaN'](_0x483562)?_0xfbc2b7['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x92db9f['checkValidity']()?this['fire']('listStart',{'startIndex':_0x483562}):_0xfbc2b7['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0xfbc2b7;}},K=class extends _0x384dae{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0xecc4cd=this['editor'];_0xecc4cd['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x165c54,parentCommandName:_0x1ffcc6,buttonLabel:_0x5bae10,buttonIcon:_0x2500c1,styleGridAriaLabel:_0x3769d6,styleDefinitions:_0x308256}){const _0x1a08a2=_0x165c54['commands']['get'](_0x1ffcc6),_0x1d7799=_0x165c54['config']['get']('list.properties')||{},_0x6073b=_0x165c54['plugins']['has']('ListProperties'),_0x4c3052=_0x1d7799['startIndex'];return _0x6073b&&_0x4c3052?_0x12414e=>{const _0x2f3ed1=_0x2a27ef(_0x12414e,_0x571ca6),_0x4f8d7f=_0x2f3ed1['buttonView'];return _0x2f3ed1['bind']('isEnabled')['to'](_0x1a08a2),_0x2f3ed1['class']='ck-list-styles-dropdown',_0x4f8d7f['on']('execute',()=>{_0x165c54['execute'](_0x1ffcc6),_0x165c54['editing']['view']['focus']();}),_0x4f8d7f['set']({'label':_0x5bae10,'icon':_0x2500c1,'tooltip':!0x0,'isToggleable':!0x0}),_0x4f8d7f['bind']('isOn')['to'](_0x1a08a2,'value',_0x27cc8f=>!!_0x27cc8f),_0x2f3ed1['once']('change:isOpen',()=>{const _0x562208=function({editor:_0x1196aa,dropdownView:_0x489a99,styleDefinitions:_0x495a01,styleGridAriaLabel:_0x109d13}){const _0x11ef71=_0x1196aa['locale'],_0x39604d=_0x1196aa['config']['get']('list.properties'),_0x1e0bdd=null;_0x39604d['reversed']=!0x1,_0x495a01['length']||(_0x39604d['styles']=!0x1);const _0x2136e8=new V(_0x11ef71,{'styleGridAriaLabel':_0x109d13,'enabledProperties':_0x39604d,'styleButtonViews':_0x1e0bdd});if(_0x39604d['startIndex']){const _0x2ba2a4=_0x1196aa['commands']['get']('listStart');_0x2136e8['startIndexFieldView']['bind']('isEnabled')['to'](_0x2ba2a4),_0x2136e8['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x2ba2a4),_0x2136e8['on']('listStart',(_0x401390,_0x101e6b)=>_0x1196aa['execute']('listStart',_0x101e6b));}return _0x2136e8['delegate']('execute')['to'](_0x489a99),_0x2136e8;}({'editor':_0x165c54,'dropdownView':_0x2f3ed1,'parentCommandName':_0x1ffcc6,'styleGridAriaLabel':_0x3769d6,'styleDefinitions':_0x308256});_0x2f3ed1['panelView']['children']['add'](_0x562208);}),_0x2f3ed1['on']('execute',()=>{_0x165c54['editing']['view']['focus']();}),_0x2f3ed1;}:_0x30b5f7=>{const _0x1c5e17=new _0x7d33a1(_0x30b5f7);return _0x1c5e17['set']({'label':_0x5bae10,'icon':_0x2500c1,'tooltip':!0x0,'isToggleable':!0x0}),_0x1c5e17['bind']('isOn')['to'](_0x1a08a2,'value',_0xfa14bf=>!!_0xfa14bf),_0x1c5e17['on']('execute',()=>{_0x165c54['execute'](_0x1ffcc6),_0x165c54['editing']['view']['focus']();}),_0x1c5e17;};}({'editor':_0xecc4cd,'parentCommandName':'multiLevelList','buttonLabel':A(_0xecc4cd['locale'],'Multi-level\x20List'),'buttonIcon':_0x411b74,'styleGridAriaLabel':A(_0xecc4cd['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0xecc4cd['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x2a3cd3=_0xecc4cd['commands']['get']('multiLevelList'),_0x2d2903=new _0x16209e(_0xecc4cd['locale']);return _0x2d2903['set']({'label':A(_0xecc4cd['locale'],'Multi-level\x20List'),'icon':_0x411b74}),_0x2d2903['bind']('isEnabled')['to'](_0x2a3cd3),_0x2d2903['bind']('isOn')['to'](_0x2a3cd3,'value',_0x497331=>!!_0x497331),_0x2d2903['on']('execute',()=>{_0xecc4cd['execute']('multiLevelList'),_0xecc4cd['editing']['view']['focus']();}),_0x2d2903;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2c3fcb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x903490;for(const _0x19ce86 in _0x2c3fcb){const _0x328dd5=_0x19ce86,_0x55d9ab=_0x2c3fcb[_0x328dd5];if('multiLevelListLicenseKeyValid'==_0x55d9ab||'multiLevelListLicenseKeyInvalid'==_0x55d9ab||'multiLevelListLicenseKeyExpired'==_0x55d9ab||'multiLevelListLicenseKeyDomainLimit'==_0x55d9ab||'multiLevelListLicenseKeyNotAllowed'==_0x55d9ab||'multiLevelListLicenseKeyEvaluationLimit'==_0x55d9ab||'multiLevelListLicenseKeyUsageLimit'==_0x55d9ab){delete _0x2c3fcb[_0x328dd5],_0x903490=_0x55d9ab,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x903490&&_0x2c3fcb['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x903490&&_0x2c3fcb['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x903490&&_0x2c3fcb['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x903490&&_0x2c3fcb['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x903490&&_0x2c3fcb['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x903490&&_0x2c3fcb['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x384dae{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 _0x5de99a,Plugin as _0x52e877}from'@ckeditor/ckeditor5-core';import{Matcher as _0x296baf,ViewUpcastWriter as _0x1f1f24}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x5c03ea,_isFirstBlockOfListItem as _0x1ef445}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0x2d44f5,KeystrokeHandler as _0x2269b8,createElement as _0x2bd49a,first as _0x332ca7,global as _0x50058d,uid as _0x2628a3}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x4fe93f}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0xe0cfe0,CollapsibleView as _0x29f2c0,FocusCycler as _0x34875d,LabeledFieldView as _0x235a67,MenuBarMenuListItemButtonView as _0x118fda,SplitButtonView as _0x4f3280,View as _0xa61106,ViewCollection as _0x34f405,addKeyboardHandlingForGrid as _0x21d5ce,createDropdown as _0x452086,createLabeledInputNumber as _0x58b718}from'@ckeditor/ckeditor5-ui';var S=class extends _0x5de99a{defaultListMarkerStyle;_listDefinitions;_listUtils;constructor(_0x5485b1,_0x14eaed,_0x5e7e29){super(_0x5485b1),this['defaultListMarkerStyle']=_0x14eaed,this['_listDefinitions']=_0x5e7e29,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}execute(_0x195121={}){const _0x2609e9=this['editor']['model'],_0x51c1dd=_0x195121['listMarkerStyle']||this['defaultListMarkerStyle'];_0x2609e9['change'](()=>{const _0x5ec6b4=this['_getListTypeFromListMarkerStyle'](_0x51c1dd);if(!_0x5ec6b4)return;const _0x7f01b9=_0x5ec6b4+'List';this['editor']['execute'](_0x7f01b9,{'additionalAttributes':{'listMarkerStyle':_0x51c1dd}});});}_getValue(){const _0x208c5a=_0x332ca7(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x208c5a)?_0x208c5a['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x3002dd=this['editor'],_0x375e58=_0x3002dd['commands']['get']('customNumberedList'),_0x309476=_0x3002dd['commands']['get']('customBulletedList');return _0x375e58['isEnabled']||_0x309476['isEnabled'];}_getListTypeFromListMarkerStyle(_0xe473c0){const _0x1b2730=this['_listDefinitions']['find'](_0xeaefc5=>_0xeaefc5['listMarkerStyle']==_0xe473c0);return _0x1b2730?_0x1b2730['listType']:null;}},x=class extends _0x52e877{_listDefinitions;static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5c03ea];}constructor(_0x44cc0c){super(_0x44cc0c);const _0x24fb95=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x328f05=>_0x328f05+'.'}]},..._0x24fb95];}init(){const _0x4e54f9=this['editor'],_0x558c56=_0x4e54f9['model'],_0x4fcd66=_0x4e54f9['editing']['view'],_0x40ed36=_0x4e54f9['plugins']['get'](_0x5c03ea);_0x4e54f9['commands']['add']('multiLevelList',new S(_0x4e54f9,'legal',this['_listDefinitions'])),_0x558c56['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x558c56['schema']['addAttributeCheck']((_0xd3f3a,_0x25821c)=>{const _0x1e0e2d=_0xd3f3a['last'];if('listMarker'==_0x25821c||'listMarkerStyle'==_0x25821c)return!(!_0x1e0e2d['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x2c4b92=>_0x2c4b92['listType']==_0x1e0e2d['getAttribute']('listType')))&&void 0x0;});for(const _0x2a81fd of this['_listDefinitions'])_0x4e54f9['conversion']['for']('upcast')['add'](_0x559fda=>{_0x559fda['on']('element:'+('customNumbered'==_0x2a81fd['listType']?'ol':'ul'),_(_0x2a81fd,_0x558c56['schema']),{'priority':'low'});}),_0x40ed36['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x417324,_0x1d3e6e,_0x3aa7ed){_0x1d3e6e==_0x2a81fd['listMarkerStyle']?(_0x417324['addClass'](['multi-level-list',_0x2a81fd['className']],_0x3aa7ed),_0x417324['setStyle']('list-style-type','none',_0x3aa7ed)):(_0x417324['removeClass'](['multi-level-list',_0x2a81fd['className']],_0x3aa7ed),_0x417324['removeStyle']('list-style-type',_0x3aa7ed));}}),_0x40ed36['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x505fc0,_0x1dc6d0,{dataPipeline:_0x46b02d}){if(!_0x1dc6d0['hasAttribute']('listMarker'))return null;if(_0x1dc6d0['getAttribute']('listType')!=_0x2a81fd['listType']||_0x1dc6d0['getAttribute']('listMarkerStyle')!=_0x2a81fd['listMarkerStyle'])return null;const _0x231a2d=String(_0x1dc6d0['getAttribute']('listMarker')),_0x3d11b4=this['canInjectMarkerIntoElement'](_0x1dc6d0);return _0x505fc0['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x46b02d&&{'contenteditable':'false','data-multi-level-list-marker':_0x231a2d}},function(_0x461580){const _0x3b957b=this['toDomElement'](_0x461580);return _0x3d11b4?(_0x3b957b['appendChild'](_0x2bd49a(_0x461580,'span',{},_0x46b02d?_0x461580['createTextNode'](_0x231a2d):[])),_0x3b957b['appendChild'](_0x461580['createTextNode']('\u00a0'))):_0x46b02d&&_0x3b957b['appendChild'](_0x461580['createTextNode'](_0x231a2d)),_0x3b957b;});},'canInjectMarkerIntoElement':_0x2f33d9=>_0x558c56['schema']['checkChild'](_0x2f33d9,'$text')&&_0x558c56['schema']['checkChild'](_0x2f33d9,'$inlineObject')&&!_0x558c56['schema']['isLimit'](_0x2f33d9)&&_0x2f33d9['getAttribute']('listType')==_0x2a81fd['listType']&&_0x2f33d9['getAttribute']('listMarkerStyle')==_0x2a81fd['listMarkerStyle']});_0x4e54f9['conversion']['for']('upcast')['add'](_0x546c98=>{_0x546c98['on']('element:span',function(_0x4e4402){return(_0x414eb6,_0x59805d,{writer:_0x31b048,consumable:_0x1c6dc6})=>{const _0x4c0e16=_0x59805d['modelCursor'],_0x2d0a7f=_0x4c0e16['parent'],_0x19f821=_0x59805d['viewItem'];if(_0x1c6dc6['consume'](_0x19f821,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x4c0e16['isAtStart']&&_0x2d0a7f['hasAttribute']('listType')&&_0x19f821['childCount']>0x0){const _0x365947=_0x4e4402['createRangeIn'](_0x19f821);let _0x575786='';for(const _0x904133 of _0x365947['getItems']())_0x904133['is']('$textProxy')?(_0x575786+=_0x904133['data']['trim'](),_0x1c6dc6['consume'](_0x904133['textNode'])):_0x1c6dc6['consume'](_0x904133,{'name':!0x0});_0x31b048['setAttribute']('listMarker',_0x575786['trim'](),_0x2d0a7f);}};}(_0x4fcd66));}),_0x40ed36['on']('postFixer',(_0xa609a,{listNodes:_0xc5d6ba,writer:_0x516950})=>{const _0x3c342b=[];for(const {node:_0x141c0d,previousNodeInList:_0x5318f2}of _0xc5d6ba){const _0x484de7=_0x141c0d['getAttribute']('listType'),_0x39da0f=_0x141c0d['getAttribute']('listMarkerStyle')||('customNumbered'==_0x484de7?'legal':void 0x0),_0x35e5b9=this['_listDefinitions']['find'](_0x2b2c45=>_0x2b2c45['listType']==_0x484de7&&_0x2b2c45['listMarkerStyle']==_0x39da0f);if('customNumbered'!=_0x484de7&&'customBulleted'!=_0x484de7&&(_0x141c0d['hasAttribute']('listMarker')&&(_0x516950['removeAttribute']('listMarker',_0x141c0d),_0xa609a['return']=!0x0),_0x141c0d['hasAttribute']('listMarkerStyle')&&(_0x516950['removeAttribute']('listMarkerStyle',_0x141c0d),_0xa609a['return']=!0x0)),!_0x35e5b9){'customBulleted'!=_0x484de7||_0x39da0f||(_0x516950['setAttribute']('listType','bulleted',_0x141c0d),_0xa609a['return']=!0x0);continue;}_0x141c0d['hasAttribute']('listMarkerStyle')||(_0x516950['setAttribute']('listMarkerStyle',_0x39da0f,_0x141c0d),_0xa609a['return']=!0x0);const _0x467268=_0x141c0d['getAttribute']('listIndent');if(_0x5318f2&&_0x5318f2['getAttribute']('listItemId')==_0x141c0d['getAttribute']('listItemId'))continue;if(_0x3c342b['length']=_0x467268+0x1,_0x4e54f9['config']['get']('list.enableSkipLevelLists')){for(let _0x163e76=0x0;_0x163e76<_0x467268;_0x163e76++)void 0x0===_0x3c342b[_0x163e76]&&(_0x3c342b[_0x163e76]=0x1);}_0x5318f2||_0x3c342b[_0x467268]?_0x5318f2&&_0x5318f2['getAttribute']('listType')!=_0x35e5b9['listType']?_0x3c342b[_0x467268]=0x1:_0x3c342b[_0x467268]++:_0x3c342b[_0x467268]=_0x141c0d['getAttribute']('listStart')||0x1;const _0x301b98=E(_0x467268,_0x35e5b9,_0x3c342b);_0x141c0d['getAttribute']('listMarker')!=_0x301b98&&(_0x516950['setAttribute']('listMarker',_0x301b98,_0x141c0d),_0xa609a['return']=!0x0);}}),_0x40ed36['on']('checkElement',(_0xa0a14a,{modelElement:_0x55a2de,viewElement:_0xf9e5e3})=>{const _0x293fe3=_0x55a2de['getAttribute']('listType');if('customNumbered'!=_0x293fe3&&'customBulleted'!=_0x293fe3)return;if(_0x558c56['schema']['checkChild'](_0x55a2de,'$text'))return;const _0x59c968=_0x1ef445(_0x55a2de);let _0x5b47b8=!0x1;const _0x2ddc78=_0x4fcd66['createPositionBefore'](_0xf9e5e3)['getWalker']({'direction':'backward'});for(const {item:_0x4bc5cf}of _0x2ddc78)if(_0x4bc5cf['is']('element')){if(_0x4e54f9['editing']['mapper']['toModelElement'](_0x4bc5cf))break;if(_0x4bc5cf['getCustomProperty']('listItemMarker')){_0x5b47b8=!0x0;break;}}_0x5b47b8!=_0x59c968&&(_0xa0a14a['return']=!0x0,_0xa0a14a['stop']());});const _0x142345=_0x4e54f9['editing']['view']['document'];this['listenTo'](_0x142345,'clipboardOutput',(_0x26f422,_0x571039)=>{const _0x191cb9=new _0x296baf({'name':'span','classes':'multi-level-list__marker'}),_0x18c52a=new _0x296baf({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x433003=new _0x1f1f24(_0x571039['content']['document']),_0x1b4b3e=[];for(const _0x2f9e15 of _0x433003['createRangeIn'](_0x571039['content'])['getItems']())_0x2f9e15['is']('element')&&_0x191cb9['match'](_0x2f9e15)&&_0x1b4b3e['push'](_0x2f9e15),_0x2f9e15['is']('element')&&_0x18c52a['match'](_0x2f9e15)&&_0x433003['removeStyle']('list-style-type',_0x2f9e15);for(const _0x3077c4 of _0x1b4b3e)_0x433003['remove'](_0x3077c4);});}afterInit(){!async function(_0x192cc1){const _0x4f9f81='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x538c22=0x791a0,_0x5c57b0=window['Date']['now'](),_0x32bbfa=_0x192cc1['editor'],_0x341687=new window['Promise'](_0x1617e0=>{_0x32bbfa['once']('ready',_0x1617e0);}),_0x4fc82c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1bfd73=_0x32bbfa['config']['get']('licenseKey');async function _0x43e4c9(){let _0x331fba,_0x1fd382=null,_0xa3e23d=null;try{return'GPL'==_0x1bfd73?'NotAllowed':(_0x331fba=_0x2a458a(),_0x331fba?(_0x331fba['usageEndpoint']&&(_0xa3e23d=_0x4cfa69(_0x331fba['usageEndpoint'],_0x331fba['jti'])),await _0x554017()?_0x247c7e()?_0x3c6807()?'Expired':_0x51453b()?('evaluation'==_0x331fba['licenseType']&&(_0x1fd382=_0x2fa2f0('EvaluationLimit')),await _0x4b5032()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x3c6807(){const _0x43e369=['evaluation','trial']['includes'](_0x331fba['licenseType'])?_0x5c57b0/0x3e8:0xe10*_0x538c22;return _0x331fba['exp']<_0x43e369;}function _0x247c7e(){const _0x3feef2=_0x331fba['features'];return!!_0x3feef2&&(!!_0x3feef2['includes']('*')||!!_0x3feef2['includes']('MLL'));}function _0x51453b(){const _0x19a0aa=_0x331fba['licensedHosts'];if(!_0x19a0aa||0x0==_0x19a0aa['length'])return!0x0;const {hostname:_0x8723be}=new URL(window['location']['href']);if(_0x19a0aa['includes'](_0x8723be))return!0x0;const _0x1f24b4=_0x8723be['split']('.');return _0x19a0aa['filter'](_0x1a9343=>_0x1a9343['includes']('*'))['map'](_0x233cb0=>_0x233cb0['split']('.'))['filter'](_0x33cf7d=>_0x33cf7d['length']<=_0x1f24b4['length'])['map'](_0x1b629d=>Array(_0x1f24b4['length']-_0x1b629d['length'])['fill']('*'===_0x1b629d[0x0]?'*':'')['concat'](_0x1b629d))['some'](_0x43a6cb=>_0x1f24b4['every']((_0x4fd1b4,_0x1f7ca1)=>_0x43a6cb[_0x1f7ca1]===_0x4fd1b4||'*'===_0x43a6cb[_0x1f7ca1]));}function _0x4b5032(){return _0x1fd382&&_0xa3e23d?new window['Promise']((_0x2646d2,_0x3a4409)=>{_0x1fd382['then'](_0x2646d2,_0x3a4409),_0xa3e23d['then'](_0x215c87=>{'Valid'!=_0x215c87&&_0x2646d2(_0x215c87);},_0x3a4409);}):_0x1fd382||_0xa3e23d||'Valid';}}function _0x4cfa69(_0x7e9319,_0xb02934){return new window['Promise'](_0x417c94=>{if(_0x3c874f())return _0x417c94('Valid');_0x1b8322(),_0x32bbfa['decorate']('_sendUsageRequest');let _0x565e25=!0x1;const _0x66d82b=_0x2628a3();function _0x3c2c6b(_0x234fae){return!!_0x234fae&&('object'==typeof _0x234fae||'function'==typeof _0x234fae)&&'function'==typeof _0x234fae['then']&&'function'==typeof _0x234fae['catch'];}function _0xbfccc2(_0x3b40fa){_0x1caf55(_0x3b40fa)['then'](_0x20c898=>_0x20c898&&'ok'==_0x20c898['status']?_0x3106dc(_0xa4a7dd(_0x66d82b+_0xb02934))!=_0x20c898['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1de18e=>(_0x1aea1a(),_0x1de18e),()=>{const _0x25d86c=_0x487cdb();return null==_0x25d86c?(_0x1aea1a(),'Valid'):_0x5c57b0-_0x25d86c>0x240c8400?'UsageLimit':'Valid';})['then'](_0x417c94)['catch'](()=>{_0x417c94('UsageLimit');});const _0x15cbc6=0x36ee80;function _0x1aea1a(){const _0xa0884='llct-'+_0x3106dc(_0xa4a7dd(_0x7e9319)),_0x4a5bf8=_0x29c207(_0x3106dc(window['Math']['ceil'](_0x5c57b0/_0x15cbc6)));window['localStorage']['setItem'](_0xa0884,_0x4a5bf8);}function _0x487cdb(){const _0x2f9ccb='llct-'+_0x3106dc(_0xa4a7dd(_0x7e9319)),_0x5a7e34=window['localStorage']['getItem'](_0x2f9ccb);return _0x5a7e34?window['parseInt'](_0x29c207(_0x5a7e34),0x10)*_0x15cbc6:null;}function _0x1caf55(_0x31ca22){return new window['Promise']((_0x4c1765,_0x18bc92)=>{_0x31ca22['then'](_0x4c1765,_0x18bc92),window['setTimeout'](_0x18bc92,0x1d4c0);});}}_0x32bbfa['on']('_sendUsageRequest',(_0x5e665b,_0x1ce06e)=>{if(_0x1ce06e[0x0]!=_0x7e9319)return _0x417c94('UsageLimit');_0x1ce06e[0x1]={..._0x1ce06e[0x1],'requestId':_0x66d82b};},{'priority':'high'}),_0x32bbfa['on']('_sendUsageRequest',_0x55080e=>{_0x3c2c6b(_0x55080e['return'])&&(_0x565e25=!0x0,_0xbfccc2(_0x55080e['return']));},{'priority':'low'}),_0x341687['then'](()=>{_0x565e25||_0x417c94('UsageLimit');});});function _0x3c874f(){return'auto'==_0x32bbfa['editing']['view']['_overlayModeHint'];}function _0x1b8322(){_0x32bbfa['editing']['view']['_overlayModeHint']='auto';}}function _0x2fa2f0(_0x49ff3a){const _0x1d1c80=[new window['Promise'](_0x125d30=>setTimeout(_0x125d30,0x93ecc)),_0x341687['then'](()=>new window['Promise'](_0x8be54a=>{let _0x5d3ee8=0x0;_0x32bbfa['model']['on']('applyOperation',(_0x462d41,_0x138898)=>{_0x138898[0x0]['isDocumentOperation']&&_0x5d3ee8++,0x5e8==_0x5d3ee8&&(_0x8be54a(),_0x462d41['off']());});}))];return window['Promise']['race'](_0x1d1c80)['then'](()=>_0x49ff3a);}async function _0x1aaeb5(){await _0x341687,_0x32bbfa['model']['change']=_0x3d6f68,_0x32bbfa['model']['enqueueChange']=_0x3d6f68,_0x32bbfa['enableReadOnlyMode']('model');}function _0x203a86(_0x28c65b){const _0x412217=_0x9be2f9();_0x32bbfa[_0x412217]='multiLevelListLicenseKey'+_0x28c65b,'Valid'!=_0x28c65b&&_0x1aaeb5();}function _0x9be2f9(){const _0x6ea7f4=window['String'](window['performance']['now']())['replace']('.','');let _0x348c7d='u';for(let _0x6439a9=0x0;_0x6439a9<_0x6ea7f4['length'];_0x6439a9+=0x2){let _0x274907=window['parseInt'](_0x6ea7f4['substring'](_0x6439a9,_0x6439a9+0x2));_0x274907>=0x3e&&(_0x274907-=0x3e),_0x348c7d+=_0x4f9f81[_0x274907];}return _0x348c7d;}function _0x2a458a(){const _0x4c757d=_0x1bfd73['split']('.');if(0x3!=_0x4c757d['length'])return null;return _0x59a4ec(_0x4c757d[0x1]);function _0x59a4ec(_0x50296b){const _0x344480=_0x19c6ee(_0x50296b);return _0x344480&&_0x50e9fb()?_0x344480:null;function _0x50e9fb(){const _0x2d4b18=_0x344480['jti'],_0x1ffee6=window['parseInt'](_0x2d4b18['substring'](_0x2d4b18['length']-0x8),0x10),_0x3efb17={..._0x344480,'jti':_0x2d4b18['substring'](0x0,_0x2d4b18['length']-0x8)};return delete _0x3efb17['vc'],_0xa4a7dd(_0x3efb17)==_0x1ffee6;}}}async function _0x554017(){let _0x242cd9=!0x0;try{const [_0x237ce3,_0x2f8a8f,_0x423a60]=_0x1bfd73['split']('.');return _0x38514e(_0x237ce3),await _0x1b34a6(_0x237ce3,_0x2f8a8f,_0x423a60),_0x242cd9;}catch{return!0x1;}function _0x38514e(_0x16edd8){const _0x273c9a=_0x19c6ee(_0x16edd8);_0x273c9a&&'ES256'==_0x273c9a['alg']||(_0x242cd9=!0x1);}async function _0x1b34a6(_0x471fc6,_0x36266e,_0x294d15){const _0x50d269=window['Uint8Array']['from'](_0x50fe4b(_0x294d15),_0x4fd578=>_0x4fd578['charCodeAt'](0x0)),_0x33db02=new window['TextEncoder']()['encode'](_0x471fc6+'.'+_0x36266e),_0xc8033d=window['crypto']['subtle'];if(!_0xc8033d)return;const _0x26458d=await _0xc8033d['importKey']('jwk',_0x4fc82c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xc8033d['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x26458d,_0x50d269,_0x33db02)||(_0x242cd9=!0x1);}}function _0x19c6ee(_0x14db48){return _0x14db48['startsWith']('ey')?JSON['parse'](_0x50fe4b(_0x14db48)):null;}function _0x50fe4b(_0x51c92c){return window['atob'](_0x51c92c['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xa4a7dd(_0x23de02){let _0x3463f2=0x1505;function _0x50b50f(_0x50c0cc){for(let _0x3d8404=0x0;_0x3d8404<_0x50c0cc['length'];_0x3d8404++){const _0x48bf58=_0x50c0cc['charCodeAt'](_0x3d8404);_0x3463f2=(_0x3463f2<<0x5)+_0x3463f2+_0x48bf58,_0x3463f2&=_0x3463f2;}}function _0x496479(_0x284921){Array['isArray'](_0x284921)?_0x284921['forEach'](_0x496479):_0x284921&&'object'==typeof _0x284921?Object['entries'](_0x284921)['sort']()['forEach'](([_0x1c2ac8,_0xea276c])=>{_0x50b50f(_0x1c2ac8),_0x496479(_0xea276c);}):_0x50b50f(window['String'](_0x284921));}return _0x496479(_0x23de02),_0x3463f2>>>0x0;}function _0x3106dc(_0xe48656){return _0xe48656['toString'](0x10)['padStart'](0x8,'0');}function _0x29c207(_0x557c34){return _0x557c34['split']('')['reverse']()['join']('');}function _0x3d6f68(){}_0x203a86(await _0x43e4c9());}(this);}};function E(_0x3e1d3b,_0x97c204,_0x48eaba){let _0xb2e0a9=_0x97c204['listMarkers'][_0x3e1d3b%_0x97c204['listMarkers']['length']];if(void 0x0===_0xb2e0a9['showMarkerPath']||_0xb2e0a9['showMarkerPath'])return _0x48eaba['slice'](0x0,_0x3e1d3b+0x1)['map']((_0x5218ea,_0xf7f49c)=>(_0xb2e0a9=_0x97c204['listMarkers'][_0xf7f49c%_0x97c204['listMarkers']['length']],N(_0xb2e0a9['marker'],_0x5218ea)))['join']('');{const _0x5e6c29=_0x48eaba[_0x48eaba['length']-0x1];return N(_0xb2e0a9['marker'],_0x5e6c29);}}function N(_0xf6b449,_0x25f44){return'function'==typeof _0xf6b449?_0xf6b449(_0x25f44):_0xf6b449;}function _(_0x923b6a,_0xbcccb5){return(_0x179b16,_0x9fd607,_0x3b34e4)=>{const _0x1d9984=_0x9fd607['viewItem'];if(_0x9fd607['modelRange']||Object['assign'](_0x9fd607,_0x3b34e4['convertChildren'](_0x9fd607['viewItem'],_0x9fd607['modelCursor'])),!_0x3b34e4['consumable']['test'](_0x1d9984,{'classes':_0x923b6a['className']}))return;const _0x43c001=Array['from'](_0x9fd607['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x143698=>_0xbcccb5['checkAttribute'](_0x143698,'listItemId'));if(!_0x43c001['length'])return;_0x3b34e4['consumable']['consume'](_0x1d9984,{'classes':_0x923b6a['className']}),_0x3b34e4['consumable']['consume'](_0x1d9984,{'classes':'multi-level-list'}),_0x3b34e4['consumable']['consume'](_0x1d9984,{'styles':'list-style-type'});const _0x4def3b=_0x43c001[0x0]['getAttribute']('listIndent');for(const _0x35dc62 of _0x43c001)_0x35dc62['getAttribute']('listIndent')==_0x4def3b&&(_0x3b34e4['writer']['setAttribute']('listType',_0x923b6a['listType'],_0x35dc62),_0x3b34e4['writer']['setAttribute']('listMarkerStyle',_0x923b6a['listMarkerStyle'],_0x35dc62));};}function A(_0x3c62dc,_0x4189ec){const _0x2fe982=_0x3c62dc['t'],t=_0x3c62dc['t'];switch(_0x4189ec){case'Start\x20at':return _0x2fe982('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x2fe982('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x2fe982('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x2fe982('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 _0x4189ec;}}var V=class extends _0xa61106{['children'];stylesView=null;additionalPropertiesCollapsibleView=null;startIndexFieldView=null;['focusTracker']=new _0x2d44f5();keystrokes=new _0x2269b8();['focusables']=new _0x34f405();['focusCycler'];constructor(_0x16bbc1,{enabledProperties:_0xc3f26b,styleButtonViews:_0x1a1707,styleGridAriaLabel:_0x3dd8f3}){super(_0x16bbc1);const _0x54f5b2=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x34875d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0xc3f26b['styles']?(this['stylesView']=this['_createStylesView'](_0x1a1707,_0x3dd8f3),this['children']['add'](this['stylesView'])):_0x54f5b2['push']('ck-multi-level-list-properties_without-styles'),_0xc3f26b['startIndex']&&(this['_addListPropertyViews'](_0xc3f26b),_0x54f5b2['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x54f5b2},'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 _0x5b4095 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5b4095['element']);_0x21d5ce({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x50058d['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 _0x33611d=_0x7b6de5=>_0x7b6de5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x33611d),this['keystrokes']['set']('arrowleft',_0x33611d),this['keystrokes']['set']('arrowup',_0x33611d),this['keystrokes']['set']('arrowdown',_0x33611d);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}focusLast(){this['focusCycler']['focusLast']();}destroy(){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}_createStylesView(_0x1cb33a,_0x23ca99){const _0x34bd86=new _0xa61106(this['locale']);return _0x34bd86['children']=_0x34bd86['createCollection'](),_0x34bd86['children']['addMany'](_0x1cb33a),_0x34bd86['setTemplate']({'tag':'div','attributes':{'aria-label':_0x23ca99,'class':['ck','ck-multi-level-list-styles']},'children':_0x34bd86['children']}),_0x34bd86['children']['delegate']('execute')['to'](this),_0x34bd86['focus']=function(){this['children']['first']['focus']();},_0x34bd86['focusTracker']=new _0x2d44f5(),_0x34bd86['keystrokes']=new _0x2269b8(),_0x34bd86['render'](),_0x34bd86['keystrokes']['listenTo'](_0x34bd86['element']),_0x34bd86;}_addListPropertyViews(_0x15a65f){const _0x57377a=[];_0x15a65f['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x57377a['push'](this['startIndexFieldView'])),_0x15a65f['styles']?(this['additionalPropertiesCollapsibleView']=new _0x29f2c0(this['locale'],_0x57377a),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x57377a,'isEnabled',(..._0x25d6e0)=>_0x25d6e0['some'](_0x5c1bb1=>_0x5c1bb1)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x31bd11,_0xbc492a,_0x1226a2)=>{_0x1226a2||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x57377a);}_createStartIndexField(){const _0x1124bc=new _0x235a67(this['locale'],_0x58b718);return _0x1124bc['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x1124bc['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1124bc['fieldView']['on']('input',()=>{const _0x49cff9=_0x1124bc['fieldView']['element'],_0x330b5f=_0x49cff9['valueAsNumber'];Number['isNaN'](_0x330b5f)?_0x1124bc['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x49cff9['checkValidity']()?this['fire']('listStart',{'startIndex':_0x330b5f}):_0x1124bc['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x1124bc;}},K=class extends _0x52e877{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x12b08e=this['editor'];_0x12b08e['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x521960,parentCommandName:_0x444b05,buttonLabel:_0xd60233,buttonIcon:_0x215a04,styleGridAriaLabel:_0x2b947b,styleDefinitions:_0x1415b7}){const _0x506a47=_0x521960['commands']['get'](_0x444b05),_0x10affa=_0x521960['config']['get']('list.properties')||{},_0x42b950=_0x521960['plugins']['has']('ListProperties'),_0x44a142=_0x10affa['startIndex'];return _0x42b950&&_0x44a142?_0x1329ca=>{const _0x3cda1d=_0x452086(_0x1329ca,_0x4f3280),_0x1ce3c2=_0x3cda1d['buttonView'];return _0x3cda1d['bind']('isEnabled')['to'](_0x506a47),_0x3cda1d['class']='ck-list-styles-dropdown',_0x1ce3c2['on']('execute',()=>{_0x521960['execute'](_0x444b05),_0x521960['editing']['view']['focus']();}),_0x1ce3c2['set']({'label':_0xd60233,'icon':_0x215a04,'tooltip':!0x0,'isToggleable':!0x0}),_0x1ce3c2['bind']('isOn')['to'](_0x506a47,'value',_0x1ac697=>!!_0x1ac697),_0x3cda1d['once']('change:isOpen',()=>{const _0x1e691f=function({editor:_0x4408ab,dropdownView:_0x11b747,styleDefinitions:_0x310446,styleGridAriaLabel:_0x6d3db8}){const _0xe4aa0d=_0x4408ab['locale'],_0x549a36=_0x4408ab['config']['get']('list.properties'),_0x3a143b=null;_0x549a36['reversed']=!0x1,_0x310446['length']||(_0x549a36['styles']=!0x1);const _0x514d7f=new V(_0xe4aa0d,{'styleGridAriaLabel':_0x6d3db8,'enabledProperties':_0x549a36,'styleButtonViews':_0x3a143b});if(_0x549a36['startIndex']){const _0xd5a251=_0x4408ab['commands']['get']('listStart');_0x514d7f['startIndexFieldView']['bind']('isEnabled')['to'](_0xd5a251),_0x514d7f['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xd5a251),_0x514d7f['on']('listStart',(_0x229901,_0x5b5289)=>_0x4408ab['execute']('listStart',_0x5b5289));}return _0x514d7f['delegate']('execute')['to'](_0x11b747),_0x514d7f;}({'editor':_0x521960,'dropdownView':_0x3cda1d,'parentCommandName':_0x444b05,'styleGridAriaLabel':_0x2b947b,'styleDefinitions':_0x1415b7});_0x3cda1d['panelView']['children']['add'](_0x1e691f);}),_0x3cda1d['on']('execute',()=>{_0x521960['editing']['view']['focus']();}),_0x3cda1d;}:_0xce00c3=>{const _0xa5696a=new _0xe0cfe0(_0xce00c3);return _0xa5696a['set']({'label':_0xd60233,'icon':_0x215a04,'tooltip':!0x0,'isToggleable':!0x0}),_0xa5696a['bind']('isOn')['to'](_0x506a47,'value',_0x2e1ffd=>!!_0x2e1ffd),_0xa5696a['on']('execute',()=>{_0x521960['execute'](_0x444b05),_0x521960['editing']['view']['focus']();}),_0xa5696a;};}({'editor':_0x12b08e,'parentCommandName':'multiLevelList','buttonLabel':A(_0x12b08e['locale'],'Multi-level\x20List'),'buttonIcon':_0x4fe93f,'styleGridAriaLabel':A(_0x12b08e['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x12b08e['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x2b533f=_0x12b08e['commands']['get']('multiLevelList'),_0x33c3c1=new _0x118fda(_0x12b08e['locale']);return _0x33c3c1['set']({'label':A(_0x12b08e['locale'],'Multi-level\x20List'),'icon':_0x4fe93f}),_0x33c3c1['bind']('isEnabled')['to'](_0x2b533f),_0x33c3c1['bind']('isOn')['to'](_0x2b533f,'value',_0x10ace6=>!!_0x10ace6),_0x33c3c1['on']('execute',()=>{_0x12b08e['execute']('multiLevelList'),_0x12b08e['editing']['view']['focus']();}),_0x33c3c1;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2bf27c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x185eaf;for(const _0x505407 in _0x2bf27c){const _0x3431f7=_0x505407,_0x56a95e=_0x2bf27c[_0x3431f7];if('multiLevelListLicenseKeyValid'==_0x56a95e||'multiLevelListLicenseKeyInvalid'==_0x56a95e||'multiLevelListLicenseKeyExpired'==_0x56a95e||'multiLevelListLicenseKeyDomainLimit'==_0x56a95e||'multiLevelListLicenseKeyNotAllowed'==_0x56a95e||'multiLevelListLicenseKeyEvaluationLimit'==_0x56a95e||'multiLevelListLicenseKeyUsageLimit'==_0x56a95e){delete _0x2bf27c[_0x3431f7],_0x185eaf=_0x56a95e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x185eaf&&_0x2bf27c['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x185eaf&&_0x2bf27c['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x185eaf&&_0x2bf27c['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x185eaf&&_0x2bf27c['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x185eaf&&_0x2bf27c['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x185eaf&&_0x2bf27c['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x52e877{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.4.0-alpha.3",
3
+ "version": "48.4.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.4.0-alpha.3",
36
- "@ckeditor/ckeditor5-core": "48.4.0-alpha.3",
37
- "@ckeditor/ckeditor5-engine": "48.4.0-alpha.3",
38
- "@ckeditor/ckeditor5-icons": "48.4.0-alpha.3",
39
- "@ckeditor/ckeditor5-list": "48.4.0-alpha.3",
40
- "@ckeditor/ckeditor5-ui": "48.4.0-alpha.3",
41
- "@ckeditor/ckeditor5-utils": "48.4.0-alpha.3"
35
+ "@ckeditor/ckeditor5-clipboard": "48.4.0-alpha.5",
36
+ "@ckeditor/ckeditor5-core": "48.4.0-alpha.5",
37
+ "@ckeditor/ckeditor5-engine": "48.4.0-alpha.5",
38
+ "@ckeditor/ckeditor5-icons": "48.4.0-alpha.5",
39
+ "@ckeditor/ckeditor5-list": "48.4.0-alpha.5",
40
+ "@ckeditor/ckeditor5-ui": "48.4.0-alpha.5",
41
+ "@ckeditor/ckeditor5-utils": "48.4.0-alpha.5"
42
42
  },
43
43
  "files": [
44
44
  "dist",