@ckeditor/ckeditor5-list-multi-level 48.3.0-alpha.4 → 48.3.0-alpha.6

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 _0x50f5dd,Plugin as _0x5d8e89}from'@ckeditor/ckeditor5-core';import{Matcher as _0x5caa72,ViewUpcastWriter as _0x3ac266}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x2a6c43,_isFirstBlockOfListItem as _0x36c981}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0x162d7c,KeystrokeHandler as _0x4bfd5f,createElement as _0x221213,first as _0x58474c,global as _0x53a32e,uid as _0x2cb430}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x356e1f}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x34c35c,CollapsibleView as _0x37d717,FocusCycler as _0xef79ba,LabeledFieldView as _0x1772ee,MenuBarMenuListItemButtonView as _0x4ed71e,SplitButtonView as _0x503d34,View as _0x4e51a8,ViewCollection as _0x53b2be,addKeyboardHandlingForGrid as _0x22d922,createDropdown as _0x253d05,createLabeledInputNumber as _0x56c5d5}from'@ckeditor/ckeditor5-ui';var S=class extends _0x50f5dd{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x4e54be,_0x5e01cc,_0x2106fe){super(_0x4e54be),this['defaultListMarkerStyle']=_0x5e01cc,this['_listDefinitions']=_0x2106fe,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0xab187d={}){const _0x1fcbad=this['editor']['model'],_0x2c54c0=_0xab187d['listMarkerStyle']||this['defaultListMarkerStyle'];_0x1fcbad['change'](()=>{const _0x110ca3=this['_getListTypeFromListMarkerStyle'](_0x2c54c0);if(!_0x110ca3)return;const _0x4af559=_0x110ca3+'List';this['editor']['execute'](_0x4af559,{'additionalAttributes':{'listMarkerStyle':_0x2c54c0}});});}['_getValue'](){const _0x88c7d5=_0x58474c(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x88c7d5)?_0x88c7d5['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x5de91c=this['editor'],_0x1f9a11=_0x5de91c['commands']['get']('customNumberedList'),_0x4afd47=_0x5de91c['commands']['get']('customBulletedList');return _0x1f9a11['isEnabled']||_0x4afd47['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x37d577){const _0x298dac=this['_listDefinitions']['find'](_0x3890a9=>_0x3890a9['listMarkerStyle']==_0x37d577);return _0x298dac?_0x298dac['listType']:null;}},x=class extends _0x5d8e89{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2a6c43];}constructor(_0x532649){super(_0x532649);const _0x37818b=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x35bd2e=>_0x35bd2e+'.'}]},..._0x37818b];}['init'](){const _0x21e4cd=this['editor'],_0x1effca=_0x21e4cd['model'],_0x5bf55e=_0x21e4cd['editing']['view'],_0x313e80=_0x21e4cd['plugins']['get'](_0x2a6c43);_0x21e4cd['commands']['add']('multiLevelList',new S(_0x21e4cd,'legal',this['_listDefinitions'])),_0x1effca['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x1effca['schema']['addAttributeCheck']((_0x1827fa,_0x41a5ff)=>{const _0x509240=_0x1827fa['last'];if('listMarker'==_0x41a5ff||'listMarkerStyle'==_0x41a5ff)return!(!_0x509240['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x32cc41=>_0x32cc41['listType']==_0x509240['getAttribute']('listType')))&&void 0x0;});for(const _0x49b7a1 of this['_listDefinitions'])_0x21e4cd['conversion']['for']('upcast')['add'](_0x53805e=>{_0x53805e['on']('element:'+('customNumbered'==_0x49b7a1['listType']?'ol':'ul'),_(_0x49b7a1,_0x1effca['schema']),{'priority':'low'});}),_0x313e80['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x39a64e,_0xc287a,_0x4b44d9){_0xc287a==_0x49b7a1['listMarkerStyle']?(_0x39a64e['addClass'](['multi-level-list',_0x49b7a1['className']],_0x4b44d9),_0x39a64e['setStyle']('list-style-type','none',_0x4b44d9)):(_0x39a64e['removeClass'](['multi-level-list',_0x49b7a1['className']],_0x4b44d9),_0x39a64e['removeStyle']('list-style-type',_0x4b44d9));}}),_0x313e80['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x158f5f,_0x520294,{dataPipeline:_0x3abe7c}){if(!_0x520294['hasAttribute']('listMarker'))return null;if(_0x520294['getAttribute']('listType')!=_0x49b7a1['listType']||_0x520294['getAttribute']('listMarkerStyle')!=_0x49b7a1['listMarkerStyle'])return null;const _0x266aee=String(_0x520294['getAttribute']('listMarker')),_0x52dc35=this['canInjectMarkerIntoElement'](_0x520294);return _0x158f5f['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x3abe7c&&{'contenteditable':'false','data-multi-level-list-marker':_0x266aee}},function(_0x1410bf){const _0x18fe5a=this['toDomElement'](_0x1410bf);return _0x52dc35?(_0x18fe5a['appendChild'](_0x221213(_0x1410bf,'span',{},_0x3abe7c?_0x1410bf['createTextNode'](_0x266aee):[])),_0x18fe5a['appendChild'](_0x1410bf['createTextNode']('\u00a0'))):_0x3abe7c&&_0x18fe5a['appendChild'](_0x1410bf['createTextNode'](_0x266aee)),_0x18fe5a;});},'canInjectMarkerIntoElement':_0x2b640e=>_0x1effca['schema']['checkChild'](_0x2b640e,'$text')&&_0x1effca['schema']['checkChild'](_0x2b640e,'$inlineObject')&&!_0x1effca['schema']['isLimit'](_0x2b640e)&&_0x2b640e['getAttribute']('listType')==_0x49b7a1['listType']&&_0x2b640e['getAttribute']('listMarkerStyle')==_0x49b7a1['listMarkerStyle']});_0x21e4cd['conversion']['for']('upcast')['add'](_0x14d465=>{_0x14d465['on']('element:span',function(_0x43baa3){return(_0x5a189a,_0x40f661,{writer:_0x41d11b,consumable:_0x1c2bda})=>{const _0x46efd=_0x40f661['modelCursor'],_0x33911c=_0x46efd['parent'],_0x4fde3d=_0x40f661['viewItem'];if(_0x1c2bda['consume'](_0x4fde3d,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x46efd['isAtStart']&&_0x33911c['hasAttribute']('listType')&&_0x4fde3d['childCount']>0x0){const _0x292fc1=_0x43baa3['createRangeIn'](_0x4fde3d);let _0xff5d4a='';for(const _0x27f1df of _0x292fc1['getItems']())_0x27f1df['is']('$textProxy')?(_0xff5d4a+=_0x27f1df['data']['trim'](),_0x1c2bda['consume'](_0x27f1df['textNode'])):_0x1c2bda['consume'](_0x27f1df,{'name':!0x0});_0x41d11b['setAttribute']('listMarker',_0xff5d4a['trim'](),_0x33911c);}};}(_0x5bf55e));}),_0x313e80['on']('postFixer',(_0x54e785,{listNodes:_0x1bcdb2,writer:_0x11b23b})=>{const _0x1c9cc6=[];for(const {node:_0x386869,previousNodeInList:_0x199112}of _0x1bcdb2){const _0x13d78e=_0x386869['getAttribute']('listType'),_0x64faf9=_0x386869['getAttribute']('listMarkerStyle')||('customNumbered'==_0x13d78e?'legal':void 0x0),_0x25f7b3=this['_listDefinitions']['find'](_0x68fd57=>_0x68fd57['listType']==_0x13d78e&&_0x68fd57['listMarkerStyle']==_0x64faf9);if('customNumbered'!=_0x13d78e&&'customBulleted'!=_0x13d78e&&(_0x386869['hasAttribute']('listMarker')&&(_0x11b23b['removeAttribute']('listMarker',_0x386869),_0x54e785['return']=!0x0),_0x386869['hasAttribute']('listMarkerStyle')&&(_0x11b23b['removeAttribute']('listMarkerStyle',_0x386869),_0x54e785['return']=!0x0)),!_0x25f7b3){'customBulleted'!=_0x13d78e||_0x64faf9||(_0x11b23b['setAttribute']('listType','bulleted',_0x386869),_0x54e785['return']=!0x0);continue;}_0x386869['hasAttribute']('listMarkerStyle')||(_0x11b23b['setAttribute']('listMarkerStyle',_0x64faf9,_0x386869),_0x54e785['return']=!0x0);const _0x380f75=_0x386869['getAttribute']('listIndent');if(_0x199112&&_0x199112['getAttribute']('listItemId')==_0x386869['getAttribute']('listItemId'))continue;if(_0x1c9cc6['length']=_0x380f75+0x1,_0x21e4cd['config']['get']('list.enableSkipLevelLists')){for(let _0x13c428=0x0;_0x13c428<_0x380f75;_0x13c428++)void 0x0===_0x1c9cc6[_0x13c428]&&(_0x1c9cc6[_0x13c428]=0x1);}_0x199112||_0x1c9cc6[_0x380f75]?_0x199112&&_0x199112['getAttribute']('listType')!=_0x25f7b3['listType']?_0x1c9cc6[_0x380f75]=0x1:_0x1c9cc6[_0x380f75]++:_0x1c9cc6[_0x380f75]=_0x386869['getAttribute']('listStart')||0x1;const _0x114609=E(_0x380f75,_0x25f7b3,_0x1c9cc6);_0x386869['getAttribute']('listMarker')!=_0x114609&&(_0x11b23b['setAttribute']('listMarker',_0x114609,_0x386869),_0x54e785['return']=!0x0);}}),_0x313e80['on']('checkElement',(_0x5f2b08,{modelElement:_0xd3a746,viewElement:_0x9ee413})=>{const _0x2188b2=_0xd3a746['getAttribute']('listType');if('customNumbered'!=_0x2188b2&&'customBulleted'!=_0x2188b2)return;if(_0x1effca['schema']['checkChild'](_0xd3a746,'$text'))return;const _0x8e6148=_0x36c981(_0xd3a746);let _0x2a629c=!0x1;const _0x4fcee4=_0x5bf55e['createPositionBefore'](_0x9ee413)['getWalker']({'direction':'backward'});for(const {item:_0x12aade}of _0x4fcee4)if(_0x12aade['is']('element')){if(_0x21e4cd['editing']['mapper']['toModelElement'](_0x12aade))break;if(_0x12aade['getCustomProperty']('listItemMarker')){_0x2a629c=!0x0;break;}}_0x2a629c!=_0x8e6148&&(_0x5f2b08['return']=!0x0,_0x5f2b08['stop']());});const _0x33fffe=_0x21e4cd['editing']['view']['document'];this['listenTo'](_0x33fffe,'clipboardOutput',(_0x15a380,_0xe3b5e6)=>{const _0x3bc761=new _0x5caa72({'name':'span','classes':'multi-level-list__marker'}),_0x15bdeb=new _0x5caa72({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x3cab72=new _0x3ac266(_0xe3b5e6['content']['document']),_0x2f2416=[];for(const _0x333d23 of _0x3cab72['createRangeIn'](_0xe3b5e6['content'])['getItems']())_0x333d23['is']('element')&&_0x3bc761['match'](_0x333d23)&&_0x2f2416['push'](_0x333d23),_0x333d23['is']('element')&&_0x15bdeb['match'](_0x333d23)&&_0x3cab72['removeStyle']('list-style-type',_0x333d23);for(const _0x18f5b8 of _0x2f2416)_0x3cab72['remove'](_0x18f5b8);});}['afterInit'](){!async function(_0x48af53){const _0x26f525='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x5948f0=0x78e28,_0x57d11e=window['Date']['now'](),_0x5bb3e1=_0x48af53['editor'],_0x22123c=new window['Promise'](_0x4e0854=>{_0x5bb3e1['once']('ready',_0x4e0854);}),_0x24ab33={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x5256db=_0x5bb3e1['config']['get']('licenseKey');async function _0xe29342(){let _0x3f5402,_0x276c22=null,_0x2e3496=null;try{return'GPL'==_0x5256db?'NotAllowed':(_0x3f5402=_0x5f240b(),_0x3f5402?(_0x3f5402['usageEndpoint']&&(_0x2e3496=_0x2a2596(_0x3f5402['usageEndpoint'],_0x3f5402['jti'])),await _0x1d9f19()?_0x29f100()?_0x5d65de()?'Expired':_0x29bfd3()?('evaluation'==_0x3f5402['licenseType']&&(_0x276c22=_0x221fe1('EvaluationLimit')),await _0xc7369e()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5d65de(){const _0x508c91=['evaluation','trial']['includes'](_0x3f5402['licenseType'])?_0x57d11e/0x3e8:0xe10*_0x5948f0;return _0x3f5402['exp']<_0x508c91;}function _0x29f100(){const _0x32f7f8=_0x3f5402['features'];return!!_0x32f7f8&&(!!_0x32f7f8['includes']('*')||!!_0x32f7f8['includes']('MLL'));}function _0x29bfd3(){const _0x569ecb=_0x3f5402['licensedHosts'];if(!_0x569ecb||0x0==_0x569ecb['length'])return!0x0;const {hostname:_0x40b04f}=new URL(window['location']['href']);if(_0x569ecb['includes'](_0x40b04f))return!0x0;const _0x3822c1=_0x40b04f['split']('.');return _0x569ecb['filter'](_0x101e73=>_0x101e73['includes']('*'))['map'](_0x369d00=>_0x369d00['split']('.'))['filter'](_0x57aa9e=>_0x57aa9e['length']<=_0x3822c1['length'])['map'](_0x1f81cd=>Array(_0x3822c1['length']-_0x1f81cd['length'])['fill']('*'===_0x1f81cd[0x0]?'*':'')['concat'](_0x1f81cd))['some'](_0x229e6d=>_0x3822c1['every']((_0x573c3b,_0x5dda04)=>_0x229e6d[_0x5dda04]===_0x573c3b||'*'===_0x229e6d[_0x5dda04]));}function _0xc7369e(){return _0x276c22&&_0x2e3496?new window['Promise']((_0x5c2590,_0x2a8b9e)=>{_0x276c22['then'](_0x5c2590,_0x2a8b9e),_0x2e3496['then'](_0x1d5990=>{'Valid'!=_0x1d5990&&_0x5c2590(_0x1d5990);},_0x2a8b9e);}):_0x276c22||_0x2e3496||'Valid';}}function _0x2a2596(_0x227cdb,_0x2bdd5c){return new window['Promise'](_0x55d861=>{if(_0x292775())return _0x55d861('Valid');_0x4ec027(),_0x5bb3e1['decorate']('_sendUsageRequest');let _0xc6f0e=!0x1;const _0xcc6a24=_0x2cb430();function _0x2f60b6(_0xdb06e7){return!!_0xdb06e7&&('object'==typeof _0xdb06e7||'function'==typeof _0xdb06e7)&&'function'==typeof _0xdb06e7['then']&&'function'==typeof _0xdb06e7['catch'];}function _0x5d1429(_0x381a9b){_0x1cc6c2(_0x381a9b)['then'](_0x498367=>_0x498367&&'ok'==_0x498367['status']?_0x15e053(_0x467349(_0xcc6a24+_0x2bdd5c))!=_0x498367['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3a8250=>(_0x4c8c77(),_0x3a8250),()=>{const _0x7ae68=_0x4e2791();return null==_0x7ae68?(_0x4c8c77(),'Valid'):_0x57d11e-_0x7ae68>0x240c8400?'UsageLimit':'Valid';})['then'](_0x55d861)['catch'](()=>{_0x55d861('UsageLimit');});const _0x529ffa=0x36ee80;function _0x4c8c77(){const _0x4a1867='llct-'+_0x15e053(_0x467349(_0x227cdb)),_0x4267d7=_0x146b54(_0x15e053(window['Math']['ceil'](_0x57d11e/_0x529ffa)));window['localStorage']['setItem'](_0x4a1867,_0x4267d7);}function _0x4e2791(){const _0x406468='llct-'+_0x15e053(_0x467349(_0x227cdb)),_0x165a01=window['localStorage']['getItem'](_0x406468);return _0x165a01?window['parseInt'](_0x146b54(_0x165a01),0x10)*_0x529ffa:null;}function _0x1cc6c2(_0x44ca3e){return new window['Promise']((_0x2630f3,_0x48a681)=>{_0x44ca3e['then'](_0x2630f3,_0x48a681),window['setTimeout'](_0x48a681,0x1d4c0);});}}_0x5bb3e1['on']('_sendUsageRequest',(_0x19445c,_0x49b700)=>{if(_0x49b700[0x0]!=_0x227cdb)return _0x55d861('UsageLimit');_0x49b700[0x1]={..._0x49b700[0x1],'requestId':_0xcc6a24};},{'priority':'high'}),_0x5bb3e1['on']('_sendUsageRequest',_0x18142d=>{_0x2f60b6(_0x18142d['return'])&&(_0xc6f0e=!0x0,_0x5d1429(_0x18142d['return']));},{'priority':'low'}),_0x22123c['then'](()=>{_0xc6f0e||_0x55d861('UsageLimit');});});function _0x292775(){return'auto'==_0x5bb3e1['editing']['view']['_overlayModeHint'];}function _0x4ec027(){_0x5bb3e1['editing']['view']['_overlayModeHint']='auto';}}function _0x221fe1(_0x56aa09){const _0x26ede0=[new window['Promise'](_0x4782e2=>setTimeout(_0x4782e2,0x93ecc)),_0x22123c['then'](()=>new window['Promise'](_0x56d87e=>{let _0x397c8d=0x0;_0x5bb3e1['model']['on']('applyOperation',(_0xf75d28,_0x1a2c67)=>{_0x1a2c67[0x0]['isDocumentOperation']&&_0x397c8d++,0x5e8==_0x397c8d&&(_0x56d87e(),_0xf75d28['off']());});}))];return window['Promise']['race'](_0x26ede0)['then'](()=>_0x56aa09);}async function _0x3489e1(){await _0x22123c,_0x5bb3e1['model']['change']=_0x619823,_0x5bb3e1['model']['enqueueChange']=_0x619823,_0x5bb3e1['enableReadOnlyMode']('model');}function _0x693a30(_0x3492f6){const _0x43cd63=_0x40d116();_0x5bb3e1[_0x43cd63]='multiLevelListLicenseKey'+_0x3492f6,'Valid'!=_0x3492f6&&_0x3489e1();}function _0x40d116(){const _0x281e97=window['String'](window['performance']['now']())['replace']('.','');let _0x169a0a='u';for(let _0x191b6d=0x0;_0x191b6d<_0x281e97['length'];_0x191b6d+=0x2){let _0x3ae5e3=window['parseInt'](_0x281e97['substring'](_0x191b6d,_0x191b6d+0x2));_0x3ae5e3>=0x3e&&(_0x3ae5e3-=0x3e),_0x169a0a+=_0x26f525[_0x3ae5e3];}return _0x169a0a;}function _0x5f240b(){const _0x3a23bc=_0x5256db['split']('.');if(0x3!=_0x3a23bc['length'])return null;return _0x31060a(_0x3a23bc[0x1]);function _0x31060a(_0x3e3798){const _0x5e382a=_0x2945e8(_0x3e3798);return _0x5e382a&&_0x5130fb()?_0x5e382a:null;function _0x5130fb(){const _0x4c17f3=_0x5e382a['jti'],_0x23b03c=window['parseInt'](_0x4c17f3['substring'](_0x4c17f3['length']-0x8),0x10),_0x453b95={..._0x5e382a,'jti':_0x4c17f3['substring'](0x0,_0x4c17f3['length']-0x8)};return delete _0x453b95['vc'],_0x467349(_0x453b95)==_0x23b03c;}}}async function _0x1d9f19(){let _0x54135a=!0x0;try{const [_0x314817,_0x165d10,_0x5dd375]=_0x5256db['split']('.');return _0x113eb5(_0x314817),await _0x579f4b(_0x314817,_0x165d10,_0x5dd375),_0x54135a;}catch{return!0x1;}function _0x113eb5(_0x1a992f){const _0x837915=_0x2945e8(_0x1a992f);_0x837915&&'ES256'==_0x837915['alg']||(_0x54135a=!0x1);}async function _0x579f4b(_0x849392,_0x31660c,_0x3eef8a){const _0x2e20a9=window['Uint8Array']['from'](_0x538638(_0x3eef8a),_0x3e0e5a=>_0x3e0e5a['charCodeAt'](0x0)),_0x5df045=new window['TextEncoder']()['encode'](_0x849392+'.'+_0x31660c),_0x2b4b58=window['crypto']['subtle'];if(!_0x2b4b58)return;const _0x196980=await _0x2b4b58['importKey']('jwk',_0x24ab33,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2b4b58['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x196980,_0x2e20a9,_0x5df045)||(_0x54135a=!0x1);}}function _0x2945e8(_0x4e17ad){return _0x4e17ad['startsWith']('ey')?JSON['parse'](_0x538638(_0x4e17ad)):null;}function _0x538638(_0x218eb2){return window['atob'](_0x218eb2['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x467349(_0x210e06){let _0x33be2a=0x1505;function _0x4f2324(_0x3841ab){for(let _0x3942fd=0x0;_0x3942fd<_0x3841ab['length'];_0x3942fd++){const _0x1f1c64=_0x3841ab['charCodeAt'](_0x3942fd);_0x33be2a=(_0x33be2a<<0x5)+_0x33be2a+_0x1f1c64,_0x33be2a&=_0x33be2a;}}function _0x2af6cf(_0x22e62c){Array['isArray'](_0x22e62c)?_0x22e62c['forEach'](_0x2af6cf):_0x22e62c&&'object'==typeof _0x22e62c?Object['entries'](_0x22e62c)['sort']()['forEach'](([_0x5995c3,_0x1e6ad9])=>{_0x4f2324(_0x5995c3),_0x2af6cf(_0x1e6ad9);}):_0x4f2324(window['String'](_0x22e62c));}return _0x2af6cf(_0x210e06),_0x33be2a>>>0x0;}function _0x15e053(_0x3bc3e9){return _0x3bc3e9['toString'](0x10)['padStart'](0x8,'0');}function _0x146b54(_0x199cff){return _0x199cff['split']('')['reverse']()['join']('');}function _0x619823(){}_0x693a30(await _0xe29342());}(this);}};function E(_0x24e1fa,_0xeac91d,_0x3be857){let _0x2482f2=_0xeac91d['listMarkers'][_0x24e1fa%_0xeac91d['listMarkers']['length']];if(void 0x0===_0x2482f2['showMarkerPath']||_0x2482f2['showMarkerPath'])return _0x3be857['slice'](0x0,_0x24e1fa+0x1)['map']((_0x5a2052,_0x29e16)=>(_0x2482f2=_0xeac91d['listMarkers'][_0x29e16%_0xeac91d['listMarkers']['length']],N(_0x2482f2['marker'],_0x5a2052)))['join']('');{const _0x332588=_0x3be857[_0x3be857['length']-0x1];return N(_0x2482f2['marker'],_0x332588);}}function N(_0x166670,_0x5ef2cb){return'function'==typeof _0x166670?_0x166670(_0x5ef2cb):_0x166670;}function _(_0x387e89,_0x1fd06d){return(_0xcb7ade,_0x2ba32f,_0x5be2e8)=>{const _0x52b77f=_0x2ba32f['viewItem'];if(_0x2ba32f['modelRange']||Object['assign'](_0x2ba32f,_0x5be2e8['convertChildren'](_0x2ba32f['viewItem'],_0x2ba32f['modelCursor'])),!_0x5be2e8['consumable']['test'](_0x52b77f,{'classes':_0x387e89['className']}))return;const _0x3c116e=Array['from'](_0x2ba32f['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0xae08ec=>_0x1fd06d['checkAttribute'](_0xae08ec,'listItemId'));if(!_0x3c116e['length'])return;_0x5be2e8['consumable']['consume'](_0x52b77f,{'classes':_0x387e89['className']}),_0x5be2e8['consumable']['consume'](_0x52b77f,{'classes':'multi-level-list'}),_0x5be2e8['consumable']['consume'](_0x52b77f,{'styles':'list-style-type'});const _0x4acd2f=_0x3c116e[0x0]['getAttribute']('listIndent');for(const _0x55c0d9 of _0x3c116e)_0x55c0d9['getAttribute']('listIndent')==_0x4acd2f&&(_0x5be2e8['writer']['setAttribute']('listType',_0x387e89['listType'],_0x55c0d9),_0x5be2e8['writer']['setAttribute']('listMarkerStyle',_0x387e89['listMarkerStyle'],_0x55c0d9));};}function A(_0x32075b,_0x357ef1){const _0x3ad3f5=_0x32075b['t'],t=_0x32075b['t'];switch(_0x357ef1){case'Start\x20at':return _0x3ad3f5('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x3ad3f5('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x3ad3f5('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x3ad3f5('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 _0x357ef1;}}var V=class extends _0x4e51a8{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new _0x162d7c();['keystrokes']=new _0x4bfd5f();['focusables']=new _0x53b2be();['focusCycler'];constructor(_0x156057,{enabledProperties:_0x4a810c,styleButtonViews:_0x358ecc,styleGridAriaLabel:_0x492039}){super(_0x156057);const _0x5d0fc6=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0xef79ba({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x4a810c['styles']?(this['stylesView']=this['_createStylesView'](_0x358ecc,_0x492039),this['children']['add'](this['stylesView'])):_0x5d0fc6['push']('ck-multi-level-list-properties_without-styles'),_0x4a810c['startIndex']&&(this['_addListPropertyViews'](_0x4a810c),_0x5d0fc6['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x5d0fc6},'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 _0x280183 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x280183['element']);_0x22d922({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x53a32e['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 _0xb4c6f4=_0x211960=>_0x211960['stopPropagation']();this['keystrokes']['set']('arrowright',_0xb4c6f4),this['keystrokes']['set']('arrowleft',_0xb4c6f4),this['keystrokes']['set']('arrowup',_0xb4c6f4),this['keystrokes']['set']('arrowdown',_0xb4c6f4);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x214e1d,_0x170555){const _0x32f4a4=new _0x4e51a8(this['locale']);return _0x32f4a4['children']=_0x32f4a4['createCollection'](),_0x32f4a4['children']['addMany'](_0x214e1d),_0x32f4a4['setTemplate']({'tag':'div','attributes':{'aria-label':_0x170555,'class':['ck','ck-multi-level-list-styles']},'children':_0x32f4a4['children']}),_0x32f4a4['children']['delegate']('execute')['to'](this),_0x32f4a4['focus']=function(){this['children']['first']['focus']();},_0x32f4a4['focusTracker']=new _0x162d7c(),_0x32f4a4['keystrokes']=new _0x4bfd5f(),_0x32f4a4['render'](),_0x32f4a4['keystrokes']['listenTo'](_0x32f4a4['element']),_0x32f4a4;}['_addListPropertyViews'](_0x211ef4){const _0x4d5fba=[];_0x211ef4['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x4d5fba['push'](this['startIndexFieldView'])),_0x211ef4['styles']?(this['additionalPropertiesCollapsibleView']=new _0x37d717(this['locale'],_0x4d5fba),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x4d5fba,'isEnabled',(..._0x1611b8)=>_0x1611b8['some'](_0x3eaa04=>_0x3eaa04)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0xfc4bf7,_0x58f877,_0x21d900)=>{_0x21d900||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x4d5fba);}['_createStartIndexField'](){const _0x1727c9=new _0x1772ee(this['locale'],_0x56c5d5);return _0x1727c9['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x1727c9['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1727c9['fieldView']['on']('input',()=>{const _0x1b052c=_0x1727c9['fieldView']['element'],_0x46a9f2=_0x1b052c['valueAsNumber'];Number['isNaN'](_0x46a9f2)?_0x1727c9['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x1b052c['checkValidity']()?this['fire']('listStart',{'startIndex':_0x46a9f2}):_0x1727c9['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x1727c9;}},K=class extends _0x5d8e89{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x20971c=this['editor'];_0x20971c['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x2890a0,parentCommandName:_0x48e54d,buttonLabel:_0x3e4775,buttonIcon:_0x1ab2d7,styleGridAriaLabel:_0x3bd803,styleDefinitions:_0x201a05}){const _0x43158e=_0x2890a0['commands']['get'](_0x48e54d),_0x5a306a=_0x2890a0['config']['get']('list.properties')||{},_0x4fb457=_0x2890a0['plugins']['has']('ListProperties'),_0x46de82=_0x5a306a['startIndex'];return _0x4fb457&&_0x46de82?_0x3aa478=>{const _0x20a259=_0x253d05(_0x3aa478,_0x503d34),_0x20ca75=_0x20a259['buttonView'];return _0x20a259['bind']('isEnabled')['to'](_0x43158e),_0x20a259['class']='ck-list-styles-dropdown',_0x20ca75['on']('execute',()=>{_0x2890a0['execute'](_0x48e54d),_0x2890a0['editing']['view']['focus']();}),_0x20ca75['set']({'label':_0x3e4775,'icon':_0x1ab2d7,'tooltip':!0x0,'isToggleable':!0x0}),_0x20ca75['bind']('isOn')['to'](_0x43158e,'value',_0x5e3d73=>!!_0x5e3d73),_0x20a259['once']('change:isOpen',()=>{const _0x3a1ade=function({editor:_0x2c244f,dropdownView:_0x5b823a,styleDefinitions:_0x3cf858,styleGridAriaLabel:_0x18258c}){const _0x295e14=_0x2c244f['locale'],_0x16a2b4=_0x2c244f['config']['get']('list.properties'),_0x2c6d9d=null;_0x16a2b4['reversed']=!0x1,_0x3cf858['length']||(_0x16a2b4['styles']=!0x1);const _0xba1e6=new V(_0x295e14,{'styleGridAriaLabel':_0x18258c,'enabledProperties':_0x16a2b4,'styleButtonViews':_0x2c6d9d});if(_0x16a2b4['startIndex']){const _0x2935f3=_0x2c244f['commands']['get']('listStart');_0xba1e6['startIndexFieldView']['bind']('isEnabled')['to'](_0x2935f3),_0xba1e6['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x2935f3),_0xba1e6['on']('listStart',(_0x535089,_0x2f6041)=>_0x2c244f['execute']('listStart',_0x2f6041));}return _0xba1e6['delegate']('execute')['to'](_0x5b823a),_0xba1e6;}({'editor':_0x2890a0,'dropdownView':_0x20a259,'parentCommandName':_0x48e54d,'styleGridAriaLabel':_0x3bd803,'styleDefinitions':_0x201a05});_0x20a259['panelView']['children']['add'](_0x3a1ade);}),_0x20a259['on']('execute',()=>{_0x2890a0['editing']['view']['focus']();}),_0x20a259;}:_0x2c61eb=>{const _0x32576e=new _0x34c35c(_0x2c61eb);return _0x32576e['set']({'label':_0x3e4775,'icon':_0x1ab2d7,'tooltip':!0x0,'isToggleable':!0x0}),_0x32576e['bind']('isOn')['to'](_0x43158e,'value',_0x1acbb3=>!!_0x1acbb3),_0x32576e['on']('execute',()=>{_0x2890a0['execute'](_0x48e54d),_0x2890a0['editing']['view']['focus']();}),_0x32576e;};}({'editor':_0x20971c,'parentCommandName':'multiLevelList','buttonLabel':A(_0x20971c['locale'],'Multi-level\x20List'),'buttonIcon':_0x356e1f,'styleGridAriaLabel':A(_0x20971c['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x20971c['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x56f21e=_0x20971c['commands']['get']('multiLevelList'),_0xcf3d74=new _0x4ed71e(_0x20971c['locale']);return _0xcf3d74['set']({'label':A(_0x20971c['locale'],'Multi-level\x20List'),'icon':_0x356e1f}),_0xcf3d74['bind']('isEnabled')['to'](_0x56f21e),_0xcf3d74['bind']('isOn')['to'](_0x56f21e,'value',_0x4f515b=>!!_0x4f515b),_0xcf3d74['on']('execute',()=>{_0x20971c['execute']('multiLevelList'),_0x20971c['editing']['view']['focus']();}),_0xcf3d74;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2bdf47=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x379e87;for(const _0x5973bb in _0x2bdf47){const _0x36b917=_0x5973bb,_0x143ee8=_0x2bdf47[_0x36b917];if('multiLevelListLicenseKeyValid'==_0x143ee8||'multiLevelListLicenseKeyInvalid'==_0x143ee8||'multiLevelListLicenseKeyExpired'==_0x143ee8||'multiLevelListLicenseKeyDomainLimit'==_0x143ee8||'multiLevelListLicenseKeyNotAllowed'==_0x143ee8||'multiLevelListLicenseKeyEvaluationLimit'==_0x143ee8||'multiLevelListLicenseKeyUsageLimit'==_0x143ee8){delete _0x2bdf47[_0x36b917],_0x379e87=_0x143ee8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x379e87&&_0x2bdf47['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x379e87&&_0x2bdf47['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x379e87&&_0x2bdf47['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x379e87&&_0x2bdf47['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x379e87&&_0x2bdf47['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x379e87&&_0x2bdf47['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x5d8e89{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 _0x405c65,Plugin as _0x18b1d9}from'@ckeditor/ckeditor5-core';import{Matcher as _0x8d4f2e,ViewUpcastWriter as _0x434136}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x40d3d6,_isFirstBlockOfListItem as _0x4a8cfc}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0x9dbbde,KeystrokeHandler as _0x26acb2,createElement as _0x7b1366,first as _0xc2f2e0,global as _0x2de86b,uid as _0x64c507}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x14ee73}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x4c60a5,CollapsibleView as _0x37dbfe,FocusCycler as _0x26a3e1,LabeledFieldView as _0x2c50af,MenuBarMenuListItemButtonView as _0x550761,SplitButtonView as _0x21252e,View as _0x389cb0,ViewCollection as _0x5958b6,addKeyboardHandlingForGrid as _0x38a631,createDropdown as _0x302790,createLabeledInputNumber as _0x4220e1}from'@ckeditor/ckeditor5-ui';var S=class extends _0x405c65{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x58d776,_0x3ae800,_0x1c6972){super(_0x58d776),this['defaultListMarkerStyle']=_0x3ae800,this['_listDefinitions']=_0x1c6972,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x284998={}){const _0x380b37=this['editor']['model'],_0x4a97c1=_0x284998['listMarkerStyle']||this['defaultListMarkerStyle'];_0x380b37['change'](()=>{const _0x534110=this['_getListTypeFromListMarkerStyle'](_0x4a97c1);if(!_0x534110)return;const _0x189ee7=_0x534110+'List';this['editor']['execute'](_0x189ee7,{'additionalAttributes':{'listMarkerStyle':_0x4a97c1}});});}['_getValue'](){const _0x5a3d90=_0xc2f2e0(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x5a3d90)?_0x5a3d90['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0xf4f9cb=this['editor'],_0x1252b3=_0xf4f9cb['commands']['get']('customNumberedList'),_0x3451f9=_0xf4f9cb['commands']['get']('customBulletedList');return _0x1252b3['isEnabled']||_0x3451f9['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x220494){const _0x3b6bc3=this['_listDefinitions']['find'](_0x3e1701=>_0x3e1701['listMarkerStyle']==_0x220494);return _0x3b6bc3?_0x3b6bc3['listType']:null;}},x=class extends _0x18b1d9{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x40d3d6];}constructor(_0x29bab1){super(_0x29bab1);const _0x1a1950=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x836d10=>_0x836d10+'.'}]},..._0x1a1950];}['init'](){const _0x4fa318=this['editor'],_0x55998d=_0x4fa318['model'],_0x3db27c=_0x4fa318['editing']['view'],_0x3da523=_0x4fa318['plugins']['get'](_0x40d3d6);_0x4fa318['commands']['add']('multiLevelList',new S(_0x4fa318,'legal',this['_listDefinitions'])),_0x55998d['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x55998d['schema']['addAttributeCheck']((_0x461f4d,_0x4b6925)=>{const _0x2bdf9d=_0x461f4d['last'];if('listMarker'==_0x4b6925||'listMarkerStyle'==_0x4b6925)return!(!_0x2bdf9d['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x2d3673=>_0x2d3673['listType']==_0x2bdf9d['getAttribute']('listType')))&&void 0x0;});for(const _0xe242ff of this['_listDefinitions'])_0x4fa318['conversion']['for']('upcast')['add'](_0x5d4f76=>{_0x5d4f76['on']('element:'+('customNumbered'==_0xe242ff['listType']?'ol':'ul'),_(_0xe242ff,_0x55998d['schema']),{'priority':'low'});}),_0x3da523['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x43ee2d,_0x460cfa,_0x28cd38){_0x460cfa==_0xe242ff['listMarkerStyle']?(_0x43ee2d['addClass'](['multi-level-list',_0xe242ff['className']],_0x28cd38),_0x43ee2d['setStyle']('list-style-type','none',_0x28cd38)):(_0x43ee2d['removeClass'](['multi-level-list',_0xe242ff['className']],_0x28cd38),_0x43ee2d['removeStyle']('list-style-type',_0x28cd38));}}),_0x3da523['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x546522,_0x402d88,{dataPipeline:_0x5f1949}){if(!_0x402d88['hasAttribute']('listMarker'))return null;if(_0x402d88['getAttribute']('listType')!=_0xe242ff['listType']||_0x402d88['getAttribute']('listMarkerStyle')!=_0xe242ff['listMarkerStyle'])return null;const _0x4f37c2=String(_0x402d88['getAttribute']('listMarker')),_0x90cc47=this['canInjectMarkerIntoElement'](_0x402d88);return _0x546522['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x5f1949&&{'contenteditable':'false','data-multi-level-list-marker':_0x4f37c2}},function(_0x329b38){const _0x36cebd=this['toDomElement'](_0x329b38);return _0x90cc47?(_0x36cebd['appendChild'](_0x7b1366(_0x329b38,'span',{},_0x5f1949?_0x329b38['createTextNode'](_0x4f37c2):[])),_0x36cebd['appendChild'](_0x329b38['createTextNode']('\u00a0'))):_0x5f1949&&_0x36cebd['appendChild'](_0x329b38['createTextNode'](_0x4f37c2)),_0x36cebd;});},'canInjectMarkerIntoElement':_0x226290=>_0x55998d['schema']['checkChild'](_0x226290,'$text')&&_0x55998d['schema']['checkChild'](_0x226290,'$inlineObject')&&!_0x55998d['schema']['isLimit'](_0x226290)&&_0x226290['getAttribute']('listType')==_0xe242ff['listType']&&_0x226290['getAttribute']('listMarkerStyle')==_0xe242ff['listMarkerStyle']});_0x4fa318['conversion']['for']('upcast')['add'](_0x23f84c=>{_0x23f84c['on']('element:span',function(_0x9e4b79){return(_0x357cf0,_0x5c8267,{writer:_0x4b4de0,consumable:_0x343b05})=>{const _0x4b836f=_0x5c8267['modelCursor'],_0x32edcb=_0x4b836f['parent'],_0x284271=_0x5c8267['viewItem'];if(_0x343b05['consume'](_0x284271,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x4b836f['isAtStart']&&_0x32edcb['hasAttribute']('listType')&&_0x284271['childCount']>0x0){const _0x3ae3ee=_0x9e4b79['createRangeIn'](_0x284271);let _0x788172='';for(const _0x5e0c17 of _0x3ae3ee['getItems']())_0x5e0c17['is']('$textProxy')?(_0x788172+=_0x5e0c17['data']['trim'](),_0x343b05['consume'](_0x5e0c17['textNode'])):_0x343b05['consume'](_0x5e0c17,{'name':!0x0});_0x4b4de0['setAttribute']('listMarker',_0x788172['trim'](),_0x32edcb);}};}(_0x3db27c));}),_0x3da523['on']('postFixer',(_0x416331,{listNodes:_0x51c871,writer:_0x2c5f74})=>{const _0xde5f5d=[];for(const {node:_0xf8b82c,previousNodeInList:_0x4ee326}of _0x51c871){const _0x5402c8=_0xf8b82c['getAttribute']('listType'),_0x3a9116=_0xf8b82c['getAttribute']('listMarkerStyle')||('customNumbered'==_0x5402c8?'legal':void 0x0),_0x317244=this['_listDefinitions']['find'](_0x1f5e75=>_0x1f5e75['listType']==_0x5402c8&&_0x1f5e75['listMarkerStyle']==_0x3a9116);if('customNumbered'!=_0x5402c8&&'customBulleted'!=_0x5402c8&&(_0xf8b82c['hasAttribute']('listMarker')&&(_0x2c5f74['removeAttribute']('listMarker',_0xf8b82c),_0x416331['return']=!0x0),_0xf8b82c['hasAttribute']('listMarkerStyle')&&(_0x2c5f74['removeAttribute']('listMarkerStyle',_0xf8b82c),_0x416331['return']=!0x0)),!_0x317244){'customBulleted'!=_0x5402c8||_0x3a9116||(_0x2c5f74['setAttribute']('listType','bulleted',_0xf8b82c),_0x416331['return']=!0x0);continue;}_0xf8b82c['hasAttribute']('listMarkerStyle')||(_0x2c5f74['setAttribute']('listMarkerStyle',_0x3a9116,_0xf8b82c),_0x416331['return']=!0x0);const _0x1b00ed=_0xf8b82c['getAttribute']('listIndent');if(_0x4ee326&&_0x4ee326['getAttribute']('listItemId')==_0xf8b82c['getAttribute']('listItemId'))continue;if(_0xde5f5d['length']=_0x1b00ed+0x1,_0x4fa318['config']['get']('list.enableSkipLevelLists')){for(let _0x33a716=0x0;_0x33a716<_0x1b00ed;_0x33a716++)void 0x0===_0xde5f5d[_0x33a716]&&(_0xde5f5d[_0x33a716]=0x1);}_0x4ee326||_0xde5f5d[_0x1b00ed]?_0x4ee326&&_0x4ee326['getAttribute']('listType')!=_0x317244['listType']?_0xde5f5d[_0x1b00ed]=0x1:_0xde5f5d[_0x1b00ed]++:_0xde5f5d[_0x1b00ed]=_0xf8b82c['getAttribute']('listStart')||0x1;const _0x3fb30d=E(_0x1b00ed,_0x317244,_0xde5f5d);_0xf8b82c['getAttribute']('listMarker')!=_0x3fb30d&&(_0x2c5f74['setAttribute']('listMarker',_0x3fb30d,_0xf8b82c),_0x416331['return']=!0x0);}}),_0x3da523['on']('checkElement',(_0x93c9b,{modelElement:_0x38ad1d,viewElement:_0x18d57f})=>{const _0x2c3bec=_0x38ad1d['getAttribute']('listType');if('customNumbered'!=_0x2c3bec&&'customBulleted'!=_0x2c3bec)return;if(_0x55998d['schema']['checkChild'](_0x38ad1d,'$text'))return;const _0x578df6=_0x4a8cfc(_0x38ad1d);let _0x219494=!0x1;const _0x406960=_0x3db27c['createPositionBefore'](_0x18d57f)['getWalker']({'direction':'backward'});for(const {item:_0xc16673}of _0x406960)if(_0xc16673['is']('element')){if(_0x4fa318['editing']['mapper']['toModelElement'](_0xc16673))break;if(_0xc16673['getCustomProperty']('listItemMarker')){_0x219494=!0x0;break;}}_0x219494!=_0x578df6&&(_0x93c9b['return']=!0x0,_0x93c9b['stop']());});const _0x376a8b=_0x4fa318['editing']['view']['document'];this['listenTo'](_0x376a8b,'clipboardOutput',(_0x5f5a81,_0x245a8f)=>{const _0x1b6d2e=new _0x8d4f2e({'name':'span','classes':'multi-level-list__marker'}),_0x422658=new _0x8d4f2e({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x590a9f=new _0x434136(_0x245a8f['content']['document']),_0x566392=[];for(const _0x123358 of _0x590a9f['createRangeIn'](_0x245a8f['content'])['getItems']())_0x123358['is']('element')&&_0x1b6d2e['match'](_0x123358)&&_0x566392['push'](_0x123358),_0x123358['is']('element')&&_0x422658['match'](_0x123358)&&_0x590a9f['removeStyle']('list-style-type',_0x123358);for(const _0x2f031a of _0x566392)_0x590a9f['remove'](_0x2f031a);});}['afterInit'](){!async function(_0x2e1d98){const _0x143344='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x1c0d53=0x78e58,_0x481397=window['Date']['now'](),_0x28204e=_0x2e1d98['editor'],_0x5c8417=new window['Promise'](_0x2e1605=>{_0x28204e['once']('ready',_0x2e1605);}),_0x3f9eca={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x422513=_0x28204e['config']['get']('licenseKey');async function _0xf3b11c(){let _0x490019,_0x5944b2=null,_0x37cf17=null;try{return'GPL'==_0x422513?'NotAllowed':(_0x490019=_0x4206cb(),_0x490019?(_0x490019['usageEndpoint']&&(_0x37cf17=_0x291a4e(_0x490019['usageEndpoint'],_0x490019['jti'])),await _0x154cdf()?_0x14191b()?_0x250ea5()?'Expired':_0x367c05()?('evaluation'==_0x490019['licenseType']&&(_0x5944b2=_0x5706dc('EvaluationLimit')),await _0x3d2e6a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x250ea5(){const _0x588204=['evaluation','trial']['includes'](_0x490019['licenseType'])?_0x481397/0x3e8:0xe10*_0x1c0d53;return _0x490019['exp']<_0x588204;}function _0x14191b(){const _0x18d257=_0x490019['features'];return!!_0x18d257&&(!!_0x18d257['includes']('*')||!!_0x18d257['includes']('MLL'));}function _0x367c05(){const _0x2c4123=_0x490019['licensedHosts'];if(!_0x2c4123||0x0==_0x2c4123['length'])return!0x0;const {hostname:_0x1deddf}=new URL(window['location']['href']);if(_0x2c4123['includes'](_0x1deddf))return!0x0;const _0x1f704f=_0x1deddf['split']('.');return _0x2c4123['filter'](_0xd635c9=>_0xd635c9['includes']('*'))['map'](_0x336dcb=>_0x336dcb['split']('.'))['filter'](_0x45afa9=>_0x45afa9['length']<=_0x1f704f['length'])['map'](_0x376e20=>Array(_0x1f704f['length']-_0x376e20['length'])['fill']('*'===_0x376e20[0x0]?'*':'')['concat'](_0x376e20))['some'](_0x25619b=>_0x1f704f['every']((_0x42abc1,_0x5688af)=>_0x25619b[_0x5688af]===_0x42abc1||'*'===_0x25619b[_0x5688af]));}function _0x3d2e6a(){return _0x5944b2&&_0x37cf17?new window['Promise']((_0x10a801,_0x45ad6d)=>{_0x5944b2['then'](_0x10a801,_0x45ad6d),_0x37cf17['then'](_0x555dd3=>{'Valid'!=_0x555dd3&&_0x10a801(_0x555dd3);},_0x45ad6d);}):_0x5944b2||_0x37cf17||'Valid';}}function _0x291a4e(_0xa2474e,_0x1116df){return new window['Promise'](_0x5c3957=>{if(_0x832ec5())return _0x5c3957('Valid');_0x28d40c(),_0x28204e['decorate']('_sendUsageRequest');let _0x502c9c=!0x1;const _0x151e84=_0x64c507();function _0x3d51e4(_0x1eba47){return!!_0x1eba47&&('object'==typeof _0x1eba47||'function'==typeof _0x1eba47)&&'function'==typeof _0x1eba47['then']&&'function'==typeof _0x1eba47['catch'];}function _0x52d7a7(_0x9b676a){_0x1e815c(_0x9b676a)['then'](_0x1b16cd=>_0x1b16cd&&'ok'==_0x1b16cd['status']?_0x43cd4b(_0x278d3e(_0x151e84+_0x1116df))!=_0x1b16cd['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2dfbf7=>(_0x13206c(),_0x2dfbf7),()=>{const _0x5b1b2a=_0xfd0c2a();return null==_0x5b1b2a?(_0x13206c(),'Valid'):_0x481397-_0x5b1b2a>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5c3957)['catch'](()=>{_0x5c3957('UsageLimit');});const _0x1e7782=0x36ee80;function _0x13206c(){const _0x3eacc8='llct-'+_0x43cd4b(_0x278d3e(_0xa2474e)),_0x3aaf04=_0x2a542f(_0x43cd4b(window['Math']['ceil'](_0x481397/_0x1e7782)));window['localStorage']['setItem'](_0x3eacc8,_0x3aaf04);}function _0xfd0c2a(){const _0x335456='llct-'+_0x43cd4b(_0x278d3e(_0xa2474e)),_0x2e7811=window['localStorage']['getItem'](_0x335456);return _0x2e7811?window['parseInt'](_0x2a542f(_0x2e7811),0x10)*_0x1e7782:null;}function _0x1e815c(_0x174231){return new window['Promise']((_0x2befa4,_0x41f3ca)=>{_0x174231['then'](_0x2befa4,_0x41f3ca),window['setTimeout'](_0x41f3ca,0x1d4c0);});}}_0x28204e['on']('_sendUsageRequest',(_0x23feb3,_0x4ffb24)=>{if(_0x4ffb24[0x0]!=_0xa2474e)return _0x5c3957('UsageLimit');_0x4ffb24[0x1]={..._0x4ffb24[0x1],'requestId':_0x151e84};},{'priority':'high'}),_0x28204e['on']('_sendUsageRequest',_0x537ae3=>{_0x3d51e4(_0x537ae3['return'])&&(_0x502c9c=!0x0,_0x52d7a7(_0x537ae3['return']));},{'priority':'low'}),_0x5c8417['then'](()=>{_0x502c9c||_0x5c3957('UsageLimit');});});function _0x832ec5(){return'auto'==_0x28204e['editing']['view']['_overlayModeHint'];}function _0x28d40c(){_0x28204e['editing']['view']['_overlayModeHint']='auto';}}function _0x5706dc(_0x368901){const _0xa4647f=[new window['Promise'](_0x3919ef=>setTimeout(_0x3919ef,0x93ecc)),_0x5c8417['then'](()=>new window['Promise'](_0x398568=>{let _0x1698a6=0x0;_0x28204e['model']['on']('applyOperation',(_0x50fb26,_0x4cdced)=>{_0x4cdced[0x0]['isDocumentOperation']&&_0x1698a6++,0x5e8==_0x1698a6&&(_0x398568(),_0x50fb26['off']());});}))];return window['Promise']['race'](_0xa4647f)['then'](()=>_0x368901);}async function _0x10fc71(){await _0x5c8417,_0x28204e['model']['change']=_0x497b27,_0x28204e['model']['enqueueChange']=_0x497b27,_0x28204e['enableReadOnlyMode']('model');}function _0x575a52(_0x40bc70){const _0x40f8e9=_0x339c83();_0x28204e[_0x40f8e9]='multiLevelListLicenseKey'+_0x40bc70,'Valid'!=_0x40bc70&&_0x10fc71();}function _0x339c83(){const _0x3d6a79=window['String'](window['performance']['now']())['replace']('.','');let _0x427c9d='u';for(let _0x21093c=0x0;_0x21093c<_0x3d6a79['length'];_0x21093c+=0x2){let _0x24d7d7=window['parseInt'](_0x3d6a79['substring'](_0x21093c,_0x21093c+0x2));_0x24d7d7>=0x3e&&(_0x24d7d7-=0x3e),_0x427c9d+=_0x143344[_0x24d7d7];}return _0x427c9d;}function _0x4206cb(){const _0x5589b8=_0x422513['split']('.');if(0x3!=_0x5589b8['length'])return null;return _0x350595(_0x5589b8[0x1]);function _0x350595(_0x44f5df){const _0xc3f819=_0x2580ba(_0x44f5df);return _0xc3f819&&_0x4a49f9()?_0xc3f819:null;function _0x4a49f9(){const _0x342535=_0xc3f819['jti'],_0x1e2af2=window['parseInt'](_0x342535['substring'](_0x342535['length']-0x8),0x10),_0x78397e={..._0xc3f819,'jti':_0x342535['substring'](0x0,_0x342535['length']-0x8)};return delete _0x78397e['vc'],_0x278d3e(_0x78397e)==_0x1e2af2;}}}async function _0x154cdf(){let _0x12ca67=!0x0;try{const [_0xa65af3,_0x238d19,_0x47b4f3]=_0x422513['split']('.');return _0x2a9b60(_0xa65af3),await _0x4669af(_0xa65af3,_0x238d19,_0x47b4f3),_0x12ca67;}catch{return!0x1;}function _0x2a9b60(_0x535b65){const _0x59932b=_0x2580ba(_0x535b65);_0x59932b&&'ES256'==_0x59932b['alg']||(_0x12ca67=!0x1);}async function _0x4669af(_0x589b62,_0x13ec88,_0x1e4a41){const _0x10ecbc=window['Uint8Array']['from'](_0x287aae(_0x1e4a41),_0x5654b0=>_0x5654b0['charCodeAt'](0x0)),_0x11a8e2=new window['TextEncoder']()['encode'](_0x589b62+'.'+_0x13ec88),_0x5623c2=window['crypto']['subtle'];if(!_0x5623c2)return;const _0x54ce94=await _0x5623c2['importKey']('jwk',_0x3f9eca,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5623c2['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x54ce94,_0x10ecbc,_0x11a8e2)||(_0x12ca67=!0x1);}}function _0x2580ba(_0x4b588f){return _0x4b588f['startsWith']('ey')?JSON['parse'](_0x287aae(_0x4b588f)):null;}function _0x287aae(_0x14cd8c){return window['atob'](_0x14cd8c['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x278d3e(_0x679e90){let _0x2155b4=0x1505;function _0x27aaba(_0x554247){for(let _0x2684ca=0x0;_0x2684ca<_0x554247['length'];_0x2684ca++){const _0x2e2d56=_0x554247['charCodeAt'](_0x2684ca);_0x2155b4=(_0x2155b4<<0x5)+_0x2155b4+_0x2e2d56,_0x2155b4&=_0x2155b4;}}function _0x4c1058(_0x52934b){Array['isArray'](_0x52934b)?_0x52934b['forEach'](_0x4c1058):_0x52934b&&'object'==typeof _0x52934b?Object['entries'](_0x52934b)['sort']()['forEach'](([_0x446d57,_0x6dd622])=>{_0x27aaba(_0x446d57),_0x4c1058(_0x6dd622);}):_0x27aaba(window['String'](_0x52934b));}return _0x4c1058(_0x679e90),_0x2155b4>>>0x0;}function _0x43cd4b(_0x3928cc){return _0x3928cc['toString'](0x10)['padStart'](0x8,'0');}function _0x2a542f(_0x5511d3){return _0x5511d3['split']('')['reverse']()['join']('');}function _0x497b27(){}_0x575a52(await _0xf3b11c());}(this);}};function E(_0x3ccabc,_0x4dcc34,_0x75ca9a){let _0x294eac=_0x4dcc34['listMarkers'][_0x3ccabc%_0x4dcc34['listMarkers']['length']];if(void 0x0===_0x294eac['showMarkerPath']||_0x294eac['showMarkerPath'])return _0x75ca9a['slice'](0x0,_0x3ccabc+0x1)['map']((_0x1d912f,_0xec1d69)=>(_0x294eac=_0x4dcc34['listMarkers'][_0xec1d69%_0x4dcc34['listMarkers']['length']],N(_0x294eac['marker'],_0x1d912f)))['join']('');{const _0x559c18=_0x75ca9a[_0x75ca9a['length']-0x1];return N(_0x294eac['marker'],_0x559c18);}}function N(_0x5ef16a,_0x2966ac){return'function'==typeof _0x5ef16a?_0x5ef16a(_0x2966ac):_0x5ef16a;}function _(_0x4293e4,_0x4fa269){return(_0x5ebd45,_0x1949eb,_0x133bef)=>{const _0xca71ba=_0x1949eb['viewItem'];if(_0x1949eb['modelRange']||Object['assign'](_0x1949eb,_0x133bef['convertChildren'](_0x1949eb['viewItem'],_0x1949eb['modelCursor'])),!_0x133bef['consumable']['test'](_0xca71ba,{'classes':_0x4293e4['className']}))return;const _0x1278b3=Array['from'](_0x1949eb['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0xd26f1e=>_0x4fa269['checkAttribute'](_0xd26f1e,'listItemId'));if(!_0x1278b3['length'])return;_0x133bef['consumable']['consume'](_0xca71ba,{'classes':_0x4293e4['className']}),_0x133bef['consumable']['consume'](_0xca71ba,{'classes':'multi-level-list'}),_0x133bef['consumable']['consume'](_0xca71ba,{'styles':'list-style-type'});const _0x2b9a37=_0x1278b3[0x0]['getAttribute']('listIndent');for(const _0x4a8be6 of _0x1278b3)_0x4a8be6['getAttribute']('listIndent')==_0x2b9a37&&(_0x133bef['writer']['setAttribute']('listType',_0x4293e4['listType'],_0x4a8be6),_0x133bef['writer']['setAttribute']('listMarkerStyle',_0x4293e4['listMarkerStyle'],_0x4a8be6));};}function A(_0x2cc85b,_0x43a277){const _0x50dbda=_0x2cc85b['t'],t=_0x2cc85b['t'];switch(_0x43a277){case'Start\x20at':return _0x50dbda('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x50dbda('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x50dbda('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x50dbda('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 _0x43a277;}}var V=class extends _0x389cb0{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new _0x9dbbde();['keystrokes']=new _0x26acb2();['focusables']=new _0x5958b6();['focusCycler'];constructor(_0x49dbc2,{enabledProperties:_0x5d63c8,styleButtonViews:_0x25f43d,styleGridAriaLabel:_0x3dc70a}){super(_0x49dbc2);const _0xdb03e5=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x26a3e1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x5d63c8['styles']?(this['stylesView']=this['_createStylesView'](_0x25f43d,_0x3dc70a),this['children']['add'](this['stylesView'])):_0xdb03e5['push']('ck-multi-level-list-properties_without-styles'),_0x5d63c8['startIndex']&&(this['_addListPropertyViews'](_0x5d63c8),_0xdb03e5['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0xdb03e5},'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 _0x5a58e6 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5a58e6['element']);_0x38a631({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x2de86b['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 _0x294c82=_0x10fc09=>_0x10fc09['stopPropagation']();this['keystrokes']['set']('arrowright',_0x294c82),this['keystrokes']['set']('arrowleft',_0x294c82),this['keystrokes']['set']('arrowup',_0x294c82),this['keystrokes']['set']('arrowdown',_0x294c82);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x3a687d,_0x2ed581){const _0x3c53e7=new _0x389cb0(this['locale']);return _0x3c53e7['children']=_0x3c53e7['createCollection'](),_0x3c53e7['children']['addMany'](_0x3a687d),_0x3c53e7['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2ed581,'class':['ck','ck-multi-level-list-styles']},'children':_0x3c53e7['children']}),_0x3c53e7['children']['delegate']('execute')['to'](this),_0x3c53e7['focus']=function(){this['children']['first']['focus']();},_0x3c53e7['focusTracker']=new _0x9dbbde(),_0x3c53e7['keystrokes']=new _0x26acb2(),_0x3c53e7['render'](),_0x3c53e7['keystrokes']['listenTo'](_0x3c53e7['element']),_0x3c53e7;}['_addListPropertyViews'](_0x3cf116){const _0x4ddefd=[];_0x3cf116['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x4ddefd['push'](this['startIndexFieldView'])),_0x3cf116['styles']?(this['additionalPropertiesCollapsibleView']=new _0x37dbfe(this['locale'],_0x4ddefd),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x4ddefd,'isEnabled',(..._0x1b2e34)=>_0x1b2e34['some'](_0x1d46d6=>_0x1d46d6)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x5efa4c,_0x2298ea,_0x9aaba9)=>{_0x9aaba9||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x4ddefd);}['_createStartIndexField'](){const _0xd823c0=new _0x2c50af(this['locale'],_0x4220e1);return _0xd823c0['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0xd823c0['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xd823c0['fieldView']['on']('input',()=>{const _0x4c1cc6=_0xd823c0['fieldView']['element'],_0x339308=_0x4c1cc6['valueAsNumber'];Number['isNaN'](_0x339308)?_0xd823c0['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x4c1cc6['checkValidity']()?this['fire']('listStart',{'startIndex':_0x339308}):_0xd823c0['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0xd823c0;}},K=class extends _0x18b1d9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x299be4=this['editor'];_0x299be4['ui']['componentFactory']['add']('multiLevelList',function({editor:_0xfdb7a3,parentCommandName:_0xa98cbd,buttonLabel:_0x5fb18b,buttonIcon:_0x25a86b,styleGridAriaLabel:_0x3acc9b,styleDefinitions:_0x87a1f8}){const _0x4899aa=_0xfdb7a3['commands']['get'](_0xa98cbd),_0x28acb0=_0xfdb7a3['config']['get']('list.properties')||{},_0x18a279=_0xfdb7a3['plugins']['has']('ListProperties'),_0x2b9f87=_0x28acb0['startIndex'];return _0x18a279&&_0x2b9f87?_0x4aa149=>{const _0x3c8113=_0x302790(_0x4aa149,_0x21252e),_0x63ba06=_0x3c8113['buttonView'];return _0x3c8113['bind']('isEnabled')['to'](_0x4899aa),_0x3c8113['class']='ck-list-styles-dropdown',_0x63ba06['on']('execute',()=>{_0xfdb7a3['execute'](_0xa98cbd),_0xfdb7a3['editing']['view']['focus']();}),_0x63ba06['set']({'label':_0x5fb18b,'icon':_0x25a86b,'tooltip':!0x0,'isToggleable':!0x0}),_0x63ba06['bind']('isOn')['to'](_0x4899aa,'value',_0x4922bf=>!!_0x4922bf),_0x3c8113['once']('change:isOpen',()=>{const _0x3d5ebe=function({editor:_0x1ccb28,dropdownView:_0x101adf,styleDefinitions:_0x425f9b,styleGridAriaLabel:_0x407bba}){const _0x12905f=_0x1ccb28['locale'],_0x5618f3=_0x1ccb28['config']['get']('list.properties'),_0x5a8462=null;_0x5618f3['reversed']=!0x1,_0x425f9b['length']||(_0x5618f3['styles']=!0x1);const _0x5f43ba=new V(_0x12905f,{'styleGridAriaLabel':_0x407bba,'enabledProperties':_0x5618f3,'styleButtonViews':_0x5a8462});if(_0x5618f3['startIndex']){const _0xe4779f=_0x1ccb28['commands']['get']('listStart');_0x5f43ba['startIndexFieldView']['bind']('isEnabled')['to'](_0xe4779f),_0x5f43ba['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xe4779f),_0x5f43ba['on']('listStart',(_0x430693,_0x29e219)=>_0x1ccb28['execute']('listStart',_0x29e219));}return _0x5f43ba['delegate']('execute')['to'](_0x101adf),_0x5f43ba;}({'editor':_0xfdb7a3,'dropdownView':_0x3c8113,'parentCommandName':_0xa98cbd,'styleGridAriaLabel':_0x3acc9b,'styleDefinitions':_0x87a1f8});_0x3c8113['panelView']['children']['add'](_0x3d5ebe);}),_0x3c8113['on']('execute',()=>{_0xfdb7a3['editing']['view']['focus']();}),_0x3c8113;}:_0x5ddb3d=>{const _0x8d6868=new _0x4c60a5(_0x5ddb3d);return _0x8d6868['set']({'label':_0x5fb18b,'icon':_0x25a86b,'tooltip':!0x0,'isToggleable':!0x0}),_0x8d6868['bind']('isOn')['to'](_0x4899aa,'value',_0x522cad=>!!_0x522cad),_0x8d6868['on']('execute',()=>{_0xfdb7a3['execute'](_0xa98cbd),_0xfdb7a3['editing']['view']['focus']();}),_0x8d6868;};}({'editor':_0x299be4,'parentCommandName':'multiLevelList','buttonLabel':A(_0x299be4['locale'],'Multi-level\x20List'),'buttonIcon':_0x14ee73,'styleGridAriaLabel':A(_0x299be4['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x299be4['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x1d00e6=_0x299be4['commands']['get']('multiLevelList'),_0x52d5a8=new _0x550761(_0x299be4['locale']);return _0x52d5a8['set']({'label':A(_0x299be4['locale'],'Multi-level\x20List'),'icon':_0x14ee73}),_0x52d5a8['bind']('isEnabled')['to'](_0x1d00e6),_0x52d5a8['bind']('isOn')['to'](_0x1d00e6,'value',_0x298f94=>!!_0x298f94),_0x52d5a8['on']('execute',()=>{_0x299be4['execute']('multiLevelList'),_0x299be4['editing']['view']['focus']();}),_0x52d5a8;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ab557=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3f47e4;for(const _0x340326 in _0x2ab557){const _0x7e8d4a=_0x340326,_0x4eaaf9=_0x2ab557[_0x7e8d4a];if('multiLevelListLicenseKeyValid'==_0x4eaaf9||'multiLevelListLicenseKeyInvalid'==_0x4eaaf9||'multiLevelListLicenseKeyExpired'==_0x4eaaf9||'multiLevelListLicenseKeyDomainLimit'==_0x4eaaf9||'multiLevelListLicenseKeyNotAllowed'==_0x4eaaf9||'multiLevelListLicenseKeyEvaluationLimit'==_0x4eaaf9||'multiLevelListLicenseKeyUsageLimit'==_0x4eaaf9){delete _0x2ab557[_0x7e8d4a],_0x3f47e4=_0x4eaaf9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x3f47e4&&_0x2ab557['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x3f47e4&&_0x2ab557['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x3f47e4&&_0x2ab557['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x3f47e4&&_0x2ab557['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x3f47e4&&_0x2ab557['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x3f47e4&&_0x2ab557['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x18b1d9{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.3.0-alpha.4",
3
+ "version": "48.3.0-alpha.6",
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.3.0-alpha.4",
36
- "@ckeditor/ckeditor5-core": "48.3.0-alpha.4",
37
- "@ckeditor/ckeditor5-engine": "48.3.0-alpha.4",
38
- "@ckeditor/ckeditor5-icons": "48.3.0-alpha.4",
39
- "@ckeditor/ckeditor5-list": "48.3.0-alpha.4",
40
- "@ckeditor/ckeditor5-ui": "48.3.0-alpha.4",
41
- "@ckeditor/ckeditor5-utils": "48.3.0-alpha.4"
35
+ "@ckeditor/ckeditor5-clipboard": "48.3.0-alpha.6",
36
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.6",
37
+ "@ckeditor/ckeditor5-engine": "48.3.0-alpha.6",
38
+ "@ckeditor/ckeditor5-icons": "48.3.0-alpha.6",
39
+ "@ckeditor/ckeditor5-list": "48.3.0-alpha.6",
40
+ "@ckeditor/ckeditor5-ui": "48.3.0-alpha.6",
41
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.6"
42
42
  },
43
43
  "files": [
44
44
  "dist",