@ckeditor/ckeditor5-list-multi-level 48.3.0-alpha.4 → 48.3.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 _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 _0x13aee6,Plugin as _0x285d89}from'@ckeditor/ckeditor5-core';import{Matcher as _0x1a76ab,ViewUpcastWriter as _0x405faf}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x53ce08,_isFirstBlockOfListItem as _0x11d6a2}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0x29b3ed,KeystrokeHandler as _0x1054fb,createElement as _0x1400e5,first as _0xc331f5,global as _0x31d350,uid as _0x25cb98}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x584bc9}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x307176,CollapsibleView as _0x5494c2,FocusCycler as _0x44240a,LabeledFieldView as _0x5b317b,MenuBarMenuListItemButtonView as _0x9c8d65,SplitButtonView as _0x5e83cb,View as _0x2b8b73,ViewCollection as _0x9df9da,addKeyboardHandlingForGrid as _0x29d0bd,createDropdown as _0x279ec7,createLabeledInputNumber as _0x4d9dd9}from'@ckeditor/ckeditor5-ui';var S=class extends _0x13aee6{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x37a190,_0x337353,_0x100e8d){super(_0x37a190),this['defaultListMarkerStyle']=_0x337353,this['_listDefinitions']=_0x100e8d,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5e281b={}){const _0x4305ed=this['editor']['model'],_0x50ba21=_0x5e281b['listMarkerStyle']||this['defaultListMarkerStyle'];_0x4305ed['change'](()=>{const _0x5b6f3a=this['_getListTypeFromListMarkerStyle'](_0x50ba21);if(!_0x5b6f3a)return;const _0x3ee314=_0x5b6f3a+'List';this['editor']['execute'](_0x3ee314,{'additionalAttributes':{'listMarkerStyle':_0x50ba21}});});}['_getValue'](){const _0x1ce8c4=_0xc331f5(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x1ce8c4)?_0x1ce8c4['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x25b591=this['editor'],_0x353417=_0x25b591['commands']['get']('customNumberedList'),_0xd3d947=_0x25b591['commands']['get']('customBulletedList');return _0x353417['isEnabled']||_0xd3d947['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x5be898){const _0x32b7b9=this['_listDefinitions']['find'](_0x354f04=>_0x354f04['listMarkerStyle']==_0x5be898);return _0x32b7b9?_0x32b7b9['listType']:null;}},x=class extends _0x285d89{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x53ce08];}constructor(_0x1ed16b){super(_0x1ed16b);const _0x38a512=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x3d3c27=>_0x3d3c27+'.'}]},..._0x38a512];}['init'](){const _0x1706bd=this['editor'],_0x475c0e=_0x1706bd['model'],_0x19cca9=_0x1706bd['editing']['view'],_0x44df73=_0x1706bd['plugins']['get'](_0x53ce08);_0x1706bd['commands']['add']('multiLevelList',new S(_0x1706bd,'legal',this['_listDefinitions'])),_0x475c0e['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x475c0e['schema']['addAttributeCheck']((_0x2c19d5,_0x32e14c)=>{const _0x1a1dbc=_0x2c19d5['last'];if('listMarker'==_0x32e14c||'listMarkerStyle'==_0x32e14c)return!(!_0x1a1dbc['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x5ad723=>_0x5ad723['listType']==_0x1a1dbc['getAttribute']('listType')))&&void 0x0;});for(const _0x5bfe96 of this['_listDefinitions'])_0x1706bd['conversion']['for']('upcast')['add'](_0x3cce2b=>{_0x3cce2b['on']('element:'+('customNumbered'==_0x5bfe96['listType']?'ol':'ul'),_(_0x5bfe96,_0x475c0e['schema']),{'priority':'low'});}),_0x44df73['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x5c9a,_0x2a9f0a,_0x234bd7){_0x2a9f0a==_0x5bfe96['listMarkerStyle']?(_0x5c9a['addClass'](['multi-level-list',_0x5bfe96['className']],_0x234bd7),_0x5c9a['setStyle']('list-style-type','none',_0x234bd7)):(_0x5c9a['removeClass'](['multi-level-list',_0x5bfe96['className']],_0x234bd7),_0x5c9a['removeStyle']('list-style-type',_0x234bd7));}}),_0x44df73['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x4bf930,_0x3a7d36,{dataPipeline:_0x19a16c}){if(!_0x3a7d36['hasAttribute']('listMarker'))return null;if(_0x3a7d36['getAttribute']('listType')!=_0x5bfe96['listType']||_0x3a7d36['getAttribute']('listMarkerStyle')!=_0x5bfe96['listMarkerStyle'])return null;const _0x19ce6a=String(_0x3a7d36['getAttribute']('listMarker')),_0x14f259=this['canInjectMarkerIntoElement'](_0x3a7d36);return _0x4bf930['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x19a16c&&{'contenteditable':'false','data-multi-level-list-marker':_0x19ce6a}},function(_0x19db73){const _0x506887=this['toDomElement'](_0x19db73);return _0x14f259?(_0x506887['appendChild'](_0x1400e5(_0x19db73,'span',{},_0x19a16c?_0x19db73['createTextNode'](_0x19ce6a):[])),_0x506887['appendChild'](_0x19db73['createTextNode']('\u00a0'))):_0x19a16c&&_0x506887['appendChild'](_0x19db73['createTextNode'](_0x19ce6a)),_0x506887;});},'canInjectMarkerIntoElement':_0x4fca93=>_0x475c0e['schema']['checkChild'](_0x4fca93,'$text')&&_0x475c0e['schema']['checkChild'](_0x4fca93,'$inlineObject')&&!_0x475c0e['schema']['isLimit'](_0x4fca93)&&_0x4fca93['getAttribute']('listType')==_0x5bfe96['listType']&&_0x4fca93['getAttribute']('listMarkerStyle')==_0x5bfe96['listMarkerStyle']});_0x1706bd['conversion']['for']('upcast')['add'](_0x208b52=>{_0x208b52['on']('element:span',function(_0x4854c9){return(_0x452030,_0x2f406c,{writer:_0x2e6f22,consumable:_0x201419})=>{const _0x18430f=_0x2f406c['modelCursor'],_0x56c8e8=_0x18430f['parent'],_0x214bda=_0x2f406c['viewItem'];if(_0x201419['consume'](_0x214bda,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x18430f['isAtStart']&&_0x56c8e8['hasAttribute']('listType')&&_0x214bda['childCount']>0x0){const _0x56dc0f=_0x4854c9['createRangeIn'](_0x214bda);let _0x19557f='';for(const _0xf5f509 of _0x56dc0f['getItems']())_0xf5f509['is']('$textProxy')?(_0x19557f+=_0xf5f509['data']['trim'](),_0x201419['consume'](_0xf5f509['textNode'])):_0x201419['consume'](_0xf5f509,{'name':!0x0});_0x2e6f22['setAttribute']('listMarker',_0x19557f['trim'](),_0x56c8e8);}};}(_0x19cca9));}),_0x44df73['on']('postFixer',(_0x1b4bf3,{listNodes:_0x13d15c,writer:_0x1d00b2})=>{const _0x143a28=[];for(const {node:_0x2c09ac,previousNodeInList:_0x3b585e}of _0x13d15c){const _0x22233b=_0x2c09ac['getAttribute']('listType'),_0x3112c6=_0x2c09ac['getAttribute']('listMarkerStyle')||('customNumbered'==_0x22233b?'legal':void 0x0),_0x2a5a28=this['_listDefinitions']['find'](_0x3fd652=>_0x3fd652['listType']==_0x22233b&&_0x3fd652['listMarkerStyle']==_0x3112c6);if('customNumbered'!=_0x22233b&&'customBulleted'!=_0x22233b&&(_0x2c09ac['hasAttribute']('listMarker')&&(_0x1d00b2['removeAttribute']('listMarker',_0x2c09ac),_0x1b4bf3['return']=!0x0),_0x2c09ac['hasAttribute']('listMarkerStyle')&&(_0x1d00b2['removeAttribute']('listMarkerStyle',_0x2c09ac),_0x1b4bf3['return']=!0x0)),!_0x2a5a28){'customBulleted'!=_0x22233b||_0x3112c6||(_0x1d00b2['setAttribute']('listType','bulleted',_0x2c09ac),_0x1b4bf3['return']=!0x0);continue;}_0x2c09ac['hasAttribute']('listMarkerStyle')||(_0x1d00b2['setAttribute']('listMarkerStyle',_0x3112c6,_0x2c09ac),_0x1b4bf3['return']=!0x0);const _0x3bc76c=_0x2c09ac['getAttribute']('listIndent');if(_0x3b585e&&_0x3b585e['getAttribute']('listItemId')==_0x2c09ac['getAttribute']('listItemId'))continue;if(_0x143a28['length']=_0x3bc76c+0x1,_0x1706bd['config']['get']('list.enableSkipLevelLists')){for(let _0x129554=0x0;_0x129554<_0x3bc76c;_0x129554++)void 0x0===_0x143a28[_0x129554]&&(_0x143a28[_0x129554]=0x1);}_0x3b585e||_0x143a28[_0x3bc76c]?_0x3b585e&&_0x3b585e['getAttribute']('listType')!=_0x2a5a28['listType']?_0x143a28[_0x3bc76c]=0x1:_0x143a28[_0x3bc76c]++:_0x143a28[_0x3bc76c]=_0x2c09ac['getAttribute']('listStart')||0x1;const _0x173330=E(_0x3bc76c,_0x2a5a28,_0x143a28);_0x2c09ac['getAttribute']('listMarker')!=_0x173330&&(_0x1d00b2['setAttribute']('listMarker',_0x173330,_0x2c09ac),_0x1b4bf3['return']=!0x0);}}),_0x44df73['on']('checkElement',(_0x7355f4,{modelElement:_0x4fcf37,viewElement:_0x210683})=>{const _0x27da30=_0x4fcf37['getAttribute']('listType');if('customNumbered'!=_0x27da30&&'customBulleted'!=_0x27da30)return;if(_0x475c0e['schema']['checkChild'](_0x4fcf37,'$text'))return;const _0x3f3ddd=_0x11d6a2(_0x4fcf37);let _0x37ac35=!0x1;const _0x5685de=_0x19cca9['createPositionBefore'](_0x210683)['getWalker']({'direction':'backward'});for(const {item:_0x5ec7f9}of _0x5685de)if(_0x5ec7f9['is']('element')){if(_0x1706bd['editing']['mapper']['toModelElement'](_0x5ec7f9))break;if(_0x5ec7f9['getCustomProperty']('listItemMarker')){_0x37ac35=!0x0;break;}}_0x37ac35!=_0x3f3ddd&&(_0x7355f4['return']=!0x0,_0x7355f4['stop']());});const _0x150dce=_0x1706bd['editing']['view']['document'];this['listenTo'](_0x150dce,'clipboardOutput',(_0x3a4538,_0x388449)=>{const _0x5208e7=new _0x1a76ab({'name':'span','classes':'multi-level-list__marker'}),_0x340e72=new _0x1a76ab({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x473ac7=new _0x405faf(_0x388449['content']['document']),_0x4b5167=[];for(const _0x393f97 of _0x473ac7['createRangeIn'](_0x388449['content'])['getItems']())_0x393f97['is']('element')&&_0x5208e7['match'](_0x393f97)&&_0x4b5167['push'](_0x393f97),_0x393f97['is']('element')&&_0x340e72['match'](_0x393f97)&&_0x473ac7['removeStyle']('list-style-type',_0x393f97);for(const _0x4e847f of _0x4b5167)_0x473ac7['remove'](_0x4e847f);});}['afterInit'](){!async function(_0x2f5732){const _0x18a455='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x1f3f60=0x78e40,_0x417b5d=window['Date']['now'](),_0x582f73=_0x2f5732['editor'],_0x56a002=new window['Promise'](_0x24aad5=>{_0x582f73['once']('ready',_0x24aad5);}),_0x22f64e={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2f1f68=_0x582f73['config']['get']('licenseKey');async function _0x2f68bc(){let _0x4497b4,_0x26c69a=null,_0x4aa4dc=null;try{return'GPL'==_0x2f1f68?'NotAllowed':(_0x4497b4=_0x482f7c(),_0x4497b4?(_0x4497b4['usageEndpoint']&&(_0x4aa4dc=_0x51fc3a(_0x4497b4['usageEndpoint'],_0x4497b4['jti'])),await _0x146b31()?_0xe07521()?_0x65019e()?'Expired':_0x37c656()?('evaluation'==_0x4497b4['licenseType']&&(_0x26c69a=_0x4eefa6('EvaluationLimit')),await _0x4c97e2()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x65019e(){const _0x2bff2e=['evaluation','trial']['includes'](_0x4497b4['licenseType'])?_0x417b5d/0x3e8:0xe10*_0x1f3f60;return _0x4497b4['exp']<_0x2bff2e;}function _0xe07521(){const _0x14ef88=_0x4497b4['features'];return!!_0x14ef88&&(!!_0x14ef88['includes']('*')||!!_0x14ef88['includes']('MLL'));}function _0x37c656(){const _0x24376b=_0x4497b4['licensedHosts'];if(!_0x24376b||0x0==_0x24376b['length'])return!0x0;const {hostname:_0x276ef1}=new URL(window['location']['href']);if(_0x24376b['includes'](_0x276ef1))return!0x0;const _0x3d996f=_0x276ef1['split']('.');return _0x24376b['filter'](_0xcf8724=>_0xcf8724['includes']('*'))['map'](_0x550d55=>_0x550d55['split']('.'))['filter'](_0x5d942c=>_0x5d942c['length']<=_0x3d996f['length'])['map'](_0x5c519b=>Array(_0x3d996f['length']-_0x5c519b['length'])['fill']('*'===_0x5c519b[0x0]?'*':'')['concat'](_0x5c519b))['some'](_0x2e4b80=>_0x3d996f['every']((_0x1ba065,_0x89a7cc)=>_0x2e4b80[_0x89a7cc]===_0x1ba065||'*'===_0x2e4b80[_0x89a7cc]));}function _0x4c97e2(){return _0x26c69a&&_0x4aa4dc?new window['Promise']((_0x2568a6,_0x88dd36)=>{_0x26c69a['then'](_0x2568a6,_0x88dd36),_0x4aa4dc['then'](_0x5607a9=>{'Valid'!=_0x5607a9&&_0x2568a6(_0x5607a9);},_0x88dd36);}):_0x26c69a||_0x4aa4dc||'Valid';}}function _0x51fc3a(_0x1db36f,_0x24db8e){return new window['Promise'](_0x590045=>{if(_0x3b968a())return _0x590045('Valid');_0x5513be(),_0x582f73['decorate']('_sendUsageRequest');let _0x3dccf7=!0x1;const _0x481e62=_0x25cb98();function _0x959ccb(_0x2df959){return!!_0x2df959&&('object'==typeof _0x2df959||'function'==typeof _0x2df959)&&'function'==typeof _0x2df959['then']&&'function'==typeof _0x2df959['catch'];}function _0x1a60b9(_0x3a0f3c){_0x1d26be(_0x3a0f3c)['then'](_0x1b3938=>_0x1b3938&&'ok'==_0x1b3938['status']?_0x5bb9a3(_0x11f65f(_0x481e62+_0x24db8e))!=_0x1b3938['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x44e1ad=>(_0x38828d(),_0x44e1ad),()=>{const _0x29790e=_0x515467();return null==_0x29790e?(_0x38828d(),'Valid'):_0x417b5d-_0x29790e>0x240c8400?'UsageLimit':'Valid';})['then'](_0x590045)['catch'](()=>{_0x590045('UsageLimit');});const _0x1604f5=0x36ee80;function _0x38828d(){const _0x79afbe='llct-'+_0x5bb9a3(_0x11f65f(_0x1db36f)),_0x2361b2=_0x1ddbd7(_0x5bb9a3(window['Math']['ceil'](_0x417b5d/_0x1604f5)));window['localStorage']['setItem'](_0x79afbe,_0x2361b2);}function _0x515467(){const _0x4dde58='llct-'+_0x5bb9a3(_0x11f65f(_0x1db36f)),_0xcf3301=window['localStorage']['getItem'](_0x4dde58);return _0xcf3301?window['parseInt'](_0x1ddbd7(_0xcf3301),0x10)*_0x1604f5:null;}function _0x1d26be(_0x49b28f){return new window['Promise']((_0x32642e,_0x19cdf9)=>{_0x49b28f['then'](_0x32642e,_0x19cdf9),window['setTimeout'](_0x19cdf9,0x1d4c0);});}}_0x582f73['on']('_sendUsageRequest',(_0x394df0,_0xe79c6)=>{if(_0xe79c6[0x0]!=_0x1db36f)return _0x590045('UsageLimit');_0xe79c6[0x1]={..._0xe79c6[0x1],'requestId':_0x481e62};},{'priority':'high'}),_0x582f73['on']('_sendUsageRequest',_0x24847d=>{_0x959ccb(_0x24847d['return'])&&(_0x3dccf7=!0x0,_0x1a60b9(_0x24847d['return']));},{'priority':'low'}),_0x56a002['then'](()=>{_0x3dccf7||_0x590045('UsageLimit');});});function _0x3b968a(){return'auto'==_0x582f73['editing']['view']['_overlayModeHint'];}function _0x5513be(){_0x582f73['editing']['view']['_overlayModeHint']='auto';}}function _0x4eefa6(_0xc579ed){const _0x39e6e9=[new window['Promise'](_0x58cc74=>setTimeout(_0x58cc74,0x93ecc)),_0x56a002['then'](()=>new window['Promise'](_0x36e403=>{let _0xe46054=0x0;_0x582f73['model']['on']('applyOperation',(_0x1195e6,_0x3bb877)=>{_0x3bb877[0x0]['isDocumentOperation']&&_0xe46054++,0x5e8==_0xe46054&&(_0x36e403(),_0x1195e6['off']());});}))];return window['Promise']['race'](_0x39e6e9)['then'](()=>_0xc579ed);}async function _0x28f188(){await _0x56a002,_0x582f73['model']['change']=_0x1e61cc,_0x582f73['model']['enqueueChange']=_0x1e61cc,_0x582f73['enableReadOnlyMode']('model');}function _0x3b6c91(_0x103d0e){const _0x48fcc0=_0x56b33b();_0x582f73[_0x48fcc0]='multiLevelListLicenseKey'+_0x103d0e,'Valid'!=_0x103d0e&&_0x28f188();}function _0x56b33b(){const _0x4962ae=window['String'](window['performance']['now']())['replace']('.','');let _0x75ff8d='u';for(let _0x36182d=0x0;_0x36182d<_0x4962ae['length'];_0x36182d+=0x2){let _0x54d482=window['parseInt'](_0x4962ae['substring'](_0x36182d,_0x36182d+0x2));_0x54d482>=0x3e&&(_0x54d482-=0x3e),_0x75ff8d+=_0x18a455[_0x54d482];}return _0x75ff8d;}function _0x482f7c(){const _0x277f19=_0x2f1f68['split']('.');if(0x3!=_0x277f19['length'])return null;return _0x22501b(_0x277f19[0x1]);function _0x22501b(_0x55cc4d){const _0x29cd07=_0x35290b(_0x55cc4d);return _0x29cd07&&_0x38c045()?_0x29cd07:null;function _0x38c045(){const _0x8d0a17=_0x29cd07['jti'],_0x53371c=window['parseInt'](_0x8d0a17['substring'](_0x8d0a17['length']-0x8),0x10),_0x119934={..._0x29cd07,'jti':_0x8d0a17['substring'](0x0,_0x8d0a17['length']-0x8)};return delete _0x119934['vc'],_0x11f65f(_0x119934)==_0x53371c;}}}async function _0x146b31(){let _0x3d9fa1=!0x0;try{const [_0x559d13,_0x2b8f63,_0xde22a5]=_0x2f1f68['split']('.');return _0x56ac57(_0x559d13),await _0x39fb8b(_0x559d13,_0x2b8f63,_0xde22a5),_0x3d9fa1;}catch{return!0x1;}function _0x56ac57(_0x28c889){const _0x3d0500=_0x35290b(_0x28c889);_0x3d0500&&'ES256'==_0x3d0500['alg']||(_0x3d9fa1=!0x1);}async function _0x39fb8b(_0x540f69,_0x3f8c51,_0x30107f){const _0x4a6133=window['Uint8Array']['from'](_0x4584aa(_0x30107f),_0xfaa9c1=>_0xfaa9c1['charCodeAt'](0x0)),_0xcf9478=new window['TextEncoder']()['encode'](_0x540f69+'.'+_0x3f8c51),_0xc3022a=window['crypto']['subtle'];if(!_0xc3022a)return;const _0x4c7e30=await _0xc3022a['importKey']('jwk',_0x22f64e,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xc3022a['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4c7e30,_0x4a6133,_0xcf9478)||(_0x3d9fa1=!0x1);}}function _0x35290b(_0x35ce8c){return _0x35ce8c['startsWith']('ey')?JSON['parse'](_0x4584aa(_0x35ce8c)):null;}function _0x4584aa(_0x3b67d5){return window['atob'](_0x3b67d5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x11f65f(_0x503e8c){let _0x18c46c=0x1505;function _0x32a6e4(_0x2faa1a){for(let _0x514131=0x0;_0x514131<_0x2faa1a['length'];_0x514131++){const _0x4d4c21=_0x2faa1a['charCodeAt'](_0x514131);_0x18c46c=(_0x18c46c<<0x5)+_0x18c46c+_0x4d4c21,_0x18c46c&=_0x18c46c;}}function _0x13e344(_0x5812b6){Array['isArray'](_0x5812b6)?_0x5812b6['forEach'](_0x13e344):_0x5812b6&&'object'==typeof _0x5812b6?Object['entries'](_0x5812b6)['sort']()['forEach'](([_0x4d3590,_0x42f37a])=>{_0x32a6e4(_0x4d3590),_0x13e344(_0x42f37a);}):_0x32a6e4(window['String'](_0x5812b6));}return _0x13e344(_0x503e8c),_0x18c46c>>>0x0;}function _0x5bb9a3(_0x25a331){return _0x25a331['toString'](0x10)['padStart'](0x8,'0');}function _0x1ddbd7(_0x10e6b9){return _0x10e6b9['split']('')['reverse']()['join']('');}function _0x1e61cc(){}_0x3b6c91(await _0x2f68bc());}(this);}};function E(_0x519766,_0x4f038e,_0x3953a7){let _0x24d84c=_0x4f038e['listMarkers'][_0x519766%_0x4f038e['listMarkers']['length']];if(void 0x0===_0x24d84c['showMarkerPath']||_0x24d84c['showMarkerPath'])return _0x3953a7['slice'](0x0,_0x519766+0x1)['map']((_0x45e3d9,_0x1c0e82)=>(_0x24d84c=_0x4f038e['listMarkers'][_0x1c0e82%_0x4f038e['listMarkers']['length']],N(_0x24d84c['marker'],_0x45e3d9)))['join']('');{const _0x3a5144=_0x3953a7[_0x3953a7['length']-0x1];return N(_0x24d84c['marker'],_0x3a5144);}}function N(_0x376599,_0x2b227e){return'function'==typeof _0x376599?_0x376599(_0x2b227e):_0x376599;}function _(_0x518bd0,_0x115590){return(_0x44bce7,_0x34ee7a,_0x2c13b3)=>{const _0x58ec0e=_0x34ee7a['viewItem'];if(_0x34ee7a['modelRange']||Object['assign'](_0x34ee7a,_0x2c13b3['convertChildren'](_0x34ee7a['viewItem'],_0x34ee7a['modelCursor'])),!_0x2c13b3['consumable']['test'](_0x58ec0e,{'classes':_0x518bd0['className']}))return;const _0x25b476=Array['from'](_0x34ee7a['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0xc02ad5=>_0x115590['checkAttribute'](_0xc02ad5,'listItemId'));if(!_0x25b476['length'])return;_0x2c13b3['consumable']['consume'](_0x58ec0e,{'classes':_0x518bd0['className']}),_0x2c13b3['consumable']['consume'](_0x58ec0e,{'classes':'multi-level-list'}),_0x2c13b3['consumable']['consume'](_0x58ec0e,{'styles':'list-style-type'});const _0x228982=_0x25b476[0x0]['getAttribute']('listIndent');for(const _0x532339 of _0x25b476)_0x532339['getAttribute']('listIndent')==_0x228982&&(_0x2c13b3['writer']['setAttribute']('listType',_0x518bd0['listType'],_0x532339),_0x2c13b3['writer']['setAttribute']('listMarkerStyle',_0x518bd0['listMarkerStyle'],_0x532339));};}function A(_0x47fb03,_0x2c024f){const _0x2d1939=_0x47fb03['t'],t=_0x47fb03['t'];switch(_0x2c024f){case'Start\x20at':return _0x2d1939('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x2d1939('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x2d1939('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x2d1939('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 _0x2c024f;}}var V=class extends _0x2b8b73{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new _0x29b3ed();['keystrokes']=new _0x1054fb();['focusables']=new _0x9df9da();['focusCycler'];constructor(_0x31860b,{enabledProperties:_0x5a3ee7,styleButtonViews:_0x8e078d,styleGridAriaLabel:_0x437682}){super(_0x31860b);const _0x3296ad=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x44240a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x5a3ee7['styles']?(this['stylesView']=this['_createStylesView'](_0x8e078d,_0x437682),this['children']['add'](this['stylesView'])):_0x3296ad['push']('ck-multi-level-list-properties_without-styles'),_0x5a3ee7['startIndex']&&(this['_addListPropertyViews'](_0x5a3ee7),_0x3296ad['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x3296ad},'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 _0x2d84b0 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2d84b0['element']);_0x29d0bd({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x31d350['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 _0xcba5fb=_0x365d97=>_0x365d97['stopPropagation']();this['keystrokes']['set']('arrowright',_0xcba5fb),this['keystrokes']['set']('arrowleft',_0xcba5fb),this['keystrokes']['set']('arrowup',_0xcba5fb),this['keystrokes']['set']('arrowdown',_0xcba5fb);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x34b999,_0x21572e){const _0x6d5a45=new _0x2b8b73(this['locale']);return _0x6d5a45['children']=_0x6d5a45['createCollection'](),_0x6d5a45['children']['addMany'](_0x34b999),_0x6d5a45['setTemplate']({'tag':'div','attributes':{'aria-label':_0x21572e,'class':['ck','ck-multi-level-list-styles']},'children':_0x6d5a45['children']}),_0x6d5a45['children']['delegate']('execute')['to'](this),_0x6d5a45['focus']=function(){this['children']['first']['focus']();},_0x6d5a45['focusTracker']=new _0x29b3ed(),_0x6d5a45['keystrokes']=new _0x1054fb(),_0x6d5a45['render'](),_0x6d5a45['keystrokes']['listenTo'](_0x6d5a45['element']),_0x6d5a45;}['_addListPropertyViews'](_0x296a8c){const _0x13e0de=[];_0x296a8c['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x13e0de['push'](this['startIndexFieldView'])),_0x296a8c['styles']?(this['additionalPropertiesCollapsibleView']=new _0x5494c2(this['locale'],_0x13e0de),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x13e0de,'isEnabled',(..._0x49d0c7)=>_0x49d0c7['some'](_0x5aa353=>_0x5aa353)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x21f9d0,_0x461013,_0x4f5aa2)=>{_0x4f5aa2||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x13e0de);}['_createStartIndexField'](){const _0x32277b=new _0x5b317b(this['locale'],_0x4d9dd9);return _0x32277b['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x32277b['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x32277b['fieldView']['on']('input',()=>{const _0x435253=_0x32277b['fieldView']['element'],_0x5d6db4=_0x435253['valueAsNumber'];Number['isNaN'](_0x5d6db4)?_0x32277b['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x435253['checkValidity']()?this['fire']('listStart',{'startIndex':_0x5d6db4}):_0x32277b['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x32277b;}},K=class extends _0x285d89{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x59f2a1=this['editor'];_0x59f2a1['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x5b7463,parentCommandName:_0x416b52,buttonLabel:_0x2f1b36,buttonIcon:_0x2ccb5b,styleGridAriaLabel:_0x32c97f,styleDefinitions:_0x4064c0}){const _0x1cfa06=_0x5b7463['commands']['get'](_0x416b52),_0x42d474=_0x5b7463['config']['get']('list.properties')||{},_0x38e5d1=_0x5b7463['plugins']['has']('ListProperties'),_0x5984d3=_0x42d474['startIndex'];return _0x38e5d1&&_0x5984d3?_0x20c561=>{const _0x57cfc0=_0x279ec7(_0x20c561,_0x5e83cb),_0x31351a=_0x57cfc0['buttonView'];return _0x57cfc0['bind']('isEnabled')['to'](_0x1cfa06),_0x57cfc0['class']='ck-list-styles-dropdown',_0x31351a['on']('execute',()=>{_0x5b7463['execute'](_0x416b52),_0x5b7463['editing']['view']['focus']();}),_0x31351a['set']({'label':_0x2f1b36,'icon':_0x2ccb5b,'tooltip':!0x0,'isToggleable':!0x0}),_0x31351a['bind']('isOn')['to'](_0x1cfa06,'value',_0x47bd9f=>!!_0x47bd9f),_0x57cfc0['once']('change:isOpen',()=>{const _0x32bfde=function({editor:_0x4621db,dropdownView:_0x54bd91,styleDefinitions:_0x4243ba,styleGridAriaLabel:_0x30b689}){const _0x3f7b4c=_0x4621db['locale'],_0x32cc23=_0x4621db['config']['get']('list.properties'),_0x18b9f1=null;_0x32cc23['reversed']=!0x1,_0x4243ba['length']||(_0x32cc23['styles']=!0x1);const _0x5265e5=new V(_0x3f7b4c,{'styleGridAriaLabel':_0x30b689,'enabledProperties':_0x32cc23,'styleButtonViews':_0x18b9f1});if(_0x32cc23['startIndex']){const _0x173b2f=_0x4621db['commands']['get']('listStart');_0x5265e5['startIndexFieldView']['bind']('isEnabled')['to'](_0x173b2f),_0x5265e5['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x173b2f),_0x5265e5['on']('listStart',(_0x1343d2,_0x2aea18)=>_0x4621db['execute']('listStart',_0x2aea18));}return _0x5265e5['delegate']('execute')['to'](_0x54bd91),_0x5265e5;}({'editor':_0x5b7463,'dropdownView':_0x57cfc0,'parentCommandName':_0x416b52,'styleGridAriaLabel':_0x32c97f,'styleDefinitions':_0x4064c0});_0x57cfc0['panelView']['children']['add'](_0x32bfde);}),_0x57cfc0['on']('execute',()=>{_0x5b7463['editing']['view']['focus']();}),_0x57cfc0;}:_0x43dcbc=>{const _0x1efe79=new _0x307176(_0x43dcbc);return _0x1efe79['set']({'label':_0x2f1b36,'icon':_0x2ccb5b,'tooltip':!0x0,'isToggleable':!0x0}),_0x1efe79['bind']('isOn')['to'](_0x1cfa06,'value',_0x281317=>!!_0x281317),_0x1efe79['on']('execute',()=>{_0x5b7463['execute'](_0x416b52),_0x5b7463['editing']['view']['focus']();}),_0x1efe79;};}({'editor':_0x59f2a1,'parentCommandName':'multiLevelList','buttonLabel':A(_0x59f2a1['locale'],'Multi-level\x20List'),'buttonIcon':_0x584bc9,'styleGridAriaLabel':A(_0x59f2a1['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x59f2a1['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x3beb39=_0x59f2a1['commands']['get']('multiLevelList'),_0x4b522d=new _0x9c8d65(_0x59f2a1['locale']);return _0x4b522d['set']({'label':A(_0x59f2a1['locale'],'Multi-level\x20List'),'icon':_0x584bc9}),_0x4b522d['bind']('isEnabled')['to'](_0x3beb39),_0x4b522d['bind']('isOn')['to'](_0x3beb39,'value',_0x304ad8=>!!_0x304ad8),_0x4b522d['on']('execute',()=>{_0x59f2a1['execute']('multiLevelList'),_0x59f2a1['editing']['view']['focus']();}),_0x4b522d;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x9d0bd7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe2e577;for(const _0x178a56 in _0x9d0bd7){const _0x3b426f=_0x178a56,_0x2b9819=_0x9d0bd7[_0x3b426f];if('multiLevelListLicenseKeyValid'==_0x2b9819||'multiLevelListLicenseKeyInvalid'==_0x2b9819||'multiLevelListLicenseKeyExpired'==_0x2b9819||'multiLevelListLicenseKeyDomainLimit'==_0x2b9819||'multiLevelListLicenseKeyNotAllowed'==_0x2b9819||'multiLevelListLicenseKeyEvaluationLimit'==_0x2b9819||'multiLevelListLicenseKeyUsageLimit'==_0x2b9819){delete _0x9d0bd7[_0x3b426f],_0xe2e577=_0x2b9819,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0xe2e577&&_0x9d0bd7['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0xe2e577&&_0x9d0bd7['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0xe2e577&&_0x9d0bd7['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0xe2e577&&_0x9d0bd7['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0xe2e577&&_0x9d0bd7['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0xe2e577&&_0x9d0bd7['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x285d89{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.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.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.5",
36
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.5",
37
+ "@ckeditor/ckeditor5-engine": "48.3.0-alpha.5",
38
+ "@ckeditor/ckeditor5-icons": "48.3.0-alpha.5",
39
+ "@ckeditor/ckeditor5-list": "48.3.0-alpha.5",
40
+ "@ckeditor/ckeditor5-ui": "48.3.0-alpha.5",
41
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.5"
42
42
  },
43
43
  "files": [
44
44
  "dist",