@ckeditor/ckeditor5-list-multi-level 48.5.0-alpha.1 → 48.5.0-alpha.2

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 _0x2a5483,Plugin as _0x4137c5}from'@ckeditor/ckeditor5-core';import{Matcher as _0x161321,ViewUpcastWriter as _0x115ff3}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x39cff3,_isFirstBlockOfListItem as _0x1e689c}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0xfa7d07,KeystrokeHandler as _0x2b7b1a,createElement as _0x1d1dda,first as _0x368548,global as _0xef00b0,uid as _0x5d565c}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x971b48}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x415c01,CollapsibleView as _0xc3c122,FocusCycler as _0x37e060,LabeledFieldView as _0x390818,MenuBarMenuListItemButtonView as _0x2ee966,SplitButtonView as _0x5ed812,View as _0x33f169,ViewCollection as _0x422536,addKeyboardHandlingForGrid as _0x186f30,createDropdown as _0x541d7c,createLabeledInputNumber as _0x51d41f}from'@ckeditor/ckeditor5-ui';var S=class extends _0x2a5483{defaultListMarkerStyle;_listDefinitions;_listUtils;constructor(_0x478cc7,_0x415643,_0x1671cf){super(_0x478cc7),this['defaultListMarkerStyle']=_0x415643,this['_listDefinitions']=_0x1671cf,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}execute(_0x3638e={}){const _0x49aebb=this['editor']['model'],_0x33a1f3=_0x3638e['listMarkerStyle']||this['defaultListMarkerStyle'];_0x49aebb['change'](()=>{const _0x4b1d5f=this['_getListTypeFromListMarkerStyle'](_0x33a1f3);if(!_0x4b1d5f)return;const _0x2e5578=_0x4b1d5f+'List';this['editor']['execute'](_0x2e5578,{'additionalAttributes':{'listMarkerStyle':_0x33a1f3}});});}_getValue(){const _0x44f005=_0x368548(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x44f005)?_0x44f005['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x4caa88=this['editor'],_0x129001=_0x4caa88['commands']['get']('customNumberedList'),_0x58f051=_0x4caa88['commands']['get']('customBulletedList');return _0x129001['isEnabled']||_0x58f051['isEnabled'];}_getListTypeFromListMarkerStyle(_0xf62a5){const _0x2c7cee=this['_listDefinitions']['find'](_0x56f2ed=>_0x56f2ed['listMarkerStyle']==_0xf62a5);return _0x2c7cee?_0x2c7cee['listType']:null;}},x=class extends _0x4137c5{_listDefinitions;static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x39cff3];}constructor(_0x5b1e51){super(_0x5b1e51);const _0x67d51d=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x321d37=>_0x321d37+'.'}]},..._0x67d51d];}init(){const _0x502329=this['editor'],_0x48ff98=_0x502329['model'],_0x2152fa=_0x502329['editing']['view'],_0x134876=_0x502329['plugins']['get'](_0x39cff3);_0x502329['commands']['add']('multiLevelList',new S(_0x502329,'legal',this['_listDefinitions'])),_0x48ff98['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x48ff98['schema']['addAttributeCheck']((_0x132467,_0x9cc788)=>{const _0x507cbd=_0x132467['last'];if('listMarker'==_0x9cc788||'listMarkerStyle'==_0x9cc788)return!(!_0x507cbd['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x52af5c=>_0x52af5c['listType']==_0x507cbd['getAttribute']('listType')))&&void 0x0;});for(const _0x390daf of this['_listDefinitions'])_0x502329['conversion']['for']('upcast')['add'](_0x2c92f4=>{_0x2c92f4['on']('element:'+('customNumbered'==_0x390daf['listType']?'ol':'ul'),_(_0x390daf,_0x48ff98['schema']),{'priority':'low'});}),_0x134876['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x1b2185,_0x53fe65,_0x4b3dc4){_0x53fe65==_0x390daf['listMarkerStyle']?(_0x1b2185['addClass'](['multi-level-list',_0x390daf['className']],_0x4b3dc4),_0x1b2185['setStyle']('list-style-type','none',_0x4b3dc4)):(_0x1b2185['removeClass'](['multi-level-list',_0x390daf['className']],_0x4b3dc4),_0x1b2185['removeStyle']('list-style-type',_0x4b3dc4));}}),_0x134876['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x4516af,_0x1809ad,{dataPipeline:_0x44d3eb}){if(!_0x1809ad['hasAttribute']('listMarker'))return null;if(_0x1809ad['getAttribute']('listType')!=_0x390daf['listType']||_0x1809ad['getAttribute']('listMarkerStyle')!=_0x390daf['listMarkerStyle'])return null;const _0x3c24fd=String(_0x1809ad['getAttribute']('listMarker')),_0x2ce1f5=this['canInjectMarkerIntoElement'](_0x1809ad);return _0x4516af['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x44d3eb&&{'contenteditable':'false','data-multi-level-list-marker':_0x3c24fd}},function(_0x573c39){const _0xbfdedc=this['toDomElement'](_0x573c39);return _0x2ce1f5?(_0xbfdedc['appendChild'](_0x1d1dda(_0x573c39,'span',{},_0x44d3eb?_0x573c39['createTextNode'](_0x3c24fd):[])),_0xbfdedc['appendChild'](_0x573c39['createTextNode']('\u00a0'))):_0x44d3eb&&_0xbfdedc['appendChild'](_0x573c39['createTextNode'](_0x3c24fd)),_0xbfdedc;});},'canInjectMarkerIntoElement':_0x467556=>_0x48ff98['schema']['checkChild'](_0x467556,'$text')&&_0x48ff98['schema']['checkChild'](_0x467556,'$inlineObject')&&!_0x48ff98['schema']['isLimit'](_0x467556)&&_0x467556['getAttribute']('listType')==_0x390daf['listType']&&_0x467556['getAttribute']('listMarkerStyle')==_0x390daf['listMarkerStyle']});_0x502329['conversion']['for']('upcast')['add'](_0x45e237=>{_0x45e237['on']('element:span',function(_0x340cf0){return(_0x589625,_0x237b2f,{writer:_0x192210,consumable:_0x1101cc})=>{const _0x320c60=_0x237b2f['modelCursor'],_0x6c821e=_0x320c60['parent'],_0x283563=_0x237b2f['viewItem'];if(_0x1101cc['consume'](_0x283563,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x320c60['isAtStart']&&_0x6c821e['hasAttribute']('listType')&&_0x283563['childCount']>0x0){const _0x119759=_0x340cf0['createRangeIn'](_0x283563);let _0xac2cf1='';for(const _0x1416ea of _0x119759['getItems']())_0x1416ea['is']('$textProxy')?(_0xac2cf1+=_0x1416ea['data']['trim'](),_0x1101cc['consume'](_0x1416ea['textNode'])):_0x1101cc['consume'](_0x1416ea,{'name':!0x0});_0x192210['setAttribute']('listMarker',_0xac2cf1['trim'](),_0x6c821e);}};}(_0x2152fa));}),_0x134876['on']('postFixer',(_0x261f2f,{listNodes:_0x18e2a2,writer:_0x5f5b45})=>{const _0x34c3b9=[];for(const {node:_0x1627ce,previousNodeInList:_0x5d9565}of _0x18e2a2){const _0x2daa1b=_0x1627ce['getAttribute']('listType'),_0x114853=_0x1627ce['getAttribute']('listMarkerStyle')||('customNumbered'==_0x2daa1b?'legal':void 0x0),_0x1ab3d8=this['_listDefinitions']['find'](_0x21e089=>_0x21e089['listType']==_0x2daa1b&&_0x21e089['listMarkerStyle']==_0x114853);if('customNumbered'!=_0x2daa1b&&'customBulleted'!=_0x2daa1b&&(_0x1627ce['hasAttribute']('listMarker')&&(_0x5f5b45['removeAttribute']('listMarker',_0x1627ce),_0x261f2f['return']=!0x0),_0x1627ce['hasAttribute']('listMarkerStyle')&&(_0x5f5b45['removeAttribute']('listMarkerStyle',_0x1627ce),_0x261f2f['return']=!0x0)),!_0x1ab3d8){'customBulleted'!=_0x2daa1b||_0x114853||(_0x5f5b45['setAttribute']('listType','bulleted',_0x1627ce),_0x261f2f['return']=!0x0);continue;}_0x1627ce['hasAttribute']('listMarkerStyle')||(_0x5f5b45['setAttribute']('listMarkerStyle',_0x114853,_0x1627ce),_0x261f2f['return']=!0x0);const _0x30efc3=_0x1627ce['getAttribute']('listIndent');if(_0x5d9565&&_0x5d9565['getAttribute']('listItemId')==_0x1627ce['getAttribute']('listItemId'))continue;if(_0x34c3b9['length']=_0x30efc3+0x1,_0x502329['config']['get']('list.enableSkipLevelLists')){for(let _0x34ae84=0x0;_0x34ae84<_0x30efc3;_0x34ae84++)void 0x0===_0x34c3b9[_0x34ae84]&&(_0x34c3b9[_0x34ae84]=0x1);}_0x5d9565||_0x34c3b9[_0x30efc3]?_0x5d9565&&_0x5d9565['getAttribute']('listType')!=_0x1ab3d8['listType']?_0x34c3b9[_0x30efc3]=0x1:_0x34c3b9[_0x30efc3]++:_0x34c3b9[_0x30efc3]=_0x1627ce['getAttribute']('listStart')||0x1;const _0x387f4a=E(_0x30efc3,_0x1ab3d8,_0x34c3b9);_0x1627ce['getAttribute']('listMarker')!=_0x387f4a&&(_0x5f5b45['setAttribute']('listMarker',_0x387f4a,_0x1627ce),_0x261f2f['return']=!0x0);}}),_0x134876['on']('checkElement',(_0x9247e9,{modelElement:_0x3d167a,viewElement:_0x7d14ab})=>{const _0x338c64=_0x3d167a['getAttribute']('listType');if('customNumbered'!=_0x338c64&&'customBulleted'!=_0x338c64)return;if(_0x48ff98['schema']['checkChild'](_0x3d167a,'$text'))return;const _0x559ae8=_0x1e689c(_0x3d167a);let _0x55c0cc=!0x1;const _0x5b0d12=_0x2152fa['createPositionBefore'](_0x7d14ab)['getWalker']({'direction':'backward'});for(const {item:_0x3c2da0}of _0x5b0d12)if(_0x3c2da0['is']('element')){if(_0x502329['editing']['mapper']['toModelElement'](_0x3c2da0))break;if(_0x3c2da0['getCustomProperty']('listItemMarker')){_0x55c0cc=!0x0;break;}}_0x55c0cc!=_0x559ae8&&(_0x9247e9['return']=!0x0,_0x9247e9['stop']());});const _0x2cfec8=_0x502329['editing']['view']['document'];this['listenTo'](_0x2cfec8,'clipboardOutput',(_0x2e0166,_0x11be7c)=>{const _0x118e6d=new _0x161321({'name':'span','classes':'multi-level-list__marker'}),_0x12d572=new _0x161321({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0xad4187=new _0x115ff3(_0x11be7c['content']['document']),_0x10a2ba=[];for(const _0x4b6178 of _0xad4187['createRangeIn'](_0x11be7c['content'])['getItems']())_0x4b6178['is']('element')&&_0x118e6d['match'](_0x4b6178)&&_0x10a2ba['push'](_0x4b6178),_0x4b6178['is']('element')&&_0x12d572['match'](_0x4b6178)&&_0xad4187['removeStyle']('list-style-type',_0x4b6178);for(const _0x47b6b8 of _0x10a2ba)_0xad4187['remove'](_0x47b6b8);});}afterInit(){!async function(_0x3f9748){const _0x280ce4='I9sCmg3DJiG5LFMuQjwhT0XBYyxSqvdPO46NZAcVzb71RWkfe8oKptnrUEal2H',_0x48069e=0x793e0,_0x648c8a={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x1fdbf3(_0x1adff5){const _0x4ad55d=new window['Promise'](_0x27fce6=>{_0x1adff5['once']('ready',_0x27fce6);}),_0x19bac4=window['Date']['now'](),_0x5d4e9b=_0x1adff5['config']['get']('licenseKey');async function _0x47868d(){let _0xc9c32b,_0x4ffb04=null,_0x1656b9=null;try{return'GPL'==_0x5d4e9b?'NotAllowed':(_0xc9c32b=_0xd29eb4(),_0xc9c32b?(_0xc9c32b['usageEndpoint']&&(_0x1656b9=_0x1b7ab5(_0xc9c32b['usageEndpoint'],_0xc9c32b['jti'])),await _0x5da957()?_0x2e09f1()?_0x10475e()?'Expired':_0x55ed49()?('evaluation'==_0xc9c32b['licenseType']&&(_0x4ffb04=_0x2c2a4f('EvaluationLimit')),await _0x126953()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x10475e(){const _0x6b4057=['evaluation','trial']['includes'](_0xc9c32b['licenseType'])?_0x19bac4/0x3e8:0xe10*_0x48069e;return _0xc9c32b['exp']<_0x6b4057;}function _0x2e09f1(){const _0x45db8e=_0xc9c32b['features'];return!!_0x45db8e&&(!!_0x45db8e['includes']('*')||!!_0x45db8e['includes']('MLL'));}function _0x55ed49(){const _0xeae3a1=_0xc9c32b['licensedHosts'];if(!_0xeae3a1||0x0==_0xeae3a1['length'])return!0x0;const {hostname:_0x25b589}=new URL(window['location']['href']);if(_0xeae3a1['includes'](_0x25b589))return!0x0;const _0x51cf64=_0x25b589['split']('.');return _0xeae3a1['filter'](_0x4e0a9b=>_0x4e0a9b['includes']('*'))['map'](_0x5982d4=>_0x5982d4['split']('.'))['filter'](_0x4f289c=>_0x4f289c['length']<=_0x51cf64['length'])['map'](_0x415f1b=>Array(_0x51cf64['length']-_0x415f1b['length'])['fill']('*'===_0x415f1b[0x0]?'*':'')['concat'](_0x415f1b))['some'](_0x21b60e=>_0x51cf64['every']((_0x294430,_0x105122)=>_0x21b60e[_0x105122]===_0x294430||'*'===_0x21b60e[_0x105122]));}function _0x126953(){return _0x4ffb04&&_0x1656b9?new window['Promise']((_0x347314,_0x1eb6e7)=>{_0x4ffb04['then'](_0x347314,_0x1eb6e7),_0x1656b9['then'](_0x37f38e=>{'Valid'!=_0x37f38e&&_0x347314(_0x37f38e);},_0x1eb6e7);}):_0x4ffb04||_0x1656b9||'Valid';}}function _0x1b7ab5(_0x173f5b,_0x229bfe){return new window['Promise'](_0x4fc272=>{if(_0x3c7958())return _0x4fc272('Valid');_0x547716(),_0x1adff5['decorate']('_sendUsageRequest');let _0x4cca58=!0x1;const _0xcf1fe2=_0x5d565c();function _0x5677a2(_0x4b7644){return!!_0x4b7644&&('object'==typeof _0x4b7644||'function'==typeof _0x4b7644)&&'function'==typeof _0x4b7644['then']&&'function'==typeof _0x4b7644['catch'];}function _0x568f09(_0x332b0b){_0x56d2cc(_0x332b0b)['then'](_0x575c6f=>_0x575c6f&&'ok'==_0x575c6f['status']?_0x30b855(_0x205c74(_0xcf1fe2+_0x229bfe))!=_0x575c6f['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x56afbd=>(_0x556be8(),_0x56afbd),()=>{const _0x96549f=_0x295a2c();return null==_0x96549f?(_0x556be8(),'Valid'):_0x19bac4-_0x96549f>0x240c8400?'UsageLimit':'Valid';})['then'](_0x4fc272)['catch'](()=>{_0x4fc272('UsageLimit');});const _0x453f50=0x36ee80;function _0x556be8(){const _0x123c5e='llct-'+_0x30b855(_0x205c74(_0x173f5b)),_0x695bdd=_0x528f00(_0x30b855(window['Math']['ceil'](_0x19bac4/_0x453f50)));window['localStorage']['setItem'](_0x123c5e,_0x695bdd);}function _0x295a2c(){const _0x18e609='llct-'+_0x30b855(_0x205c74(_0x173f5b)),_0x4f8f39=window['localStorage']['getItem'](_0x18e609);return _0x4f8f39?window['parseInt'](_0x528f00(_0x4f8f39),0x10)*_0x453f50:null;}function _0x56d2cc(_0x2dfcae){return new window['Promise']((_0x4228b1,_0xb3f597)=>{_0x2dfcae['then'](_0x4228b1,_0xb3f597),window['setTimeout'](_0xb3f597,0x1d4c0);});}}_0x1adff5['on']('_sendUsageRequest',(_0x14d226,_0x1d60e1)=>{if(_0x1d60e1[0x0]!=_0x173f5b)return _0x4fc272('UsageLimit');_0x1d60e1[0x1]={..._0x1d60e1[0x1],'requestId':_0xcf1fe2};},{'priority':'high'}),_0x1adff5['on']('_sendUsageRequest',_0x5e501d=>{_0x5677a2(_0x5e501d['return'])&&(_0x4cca58=!0x0,_0x568f09(_0x5e501d['return']));},{'priority':'low'}),_0x4ad55d['then'](()=>{_0x4cca58||_0x4fc272('UsageLimit');});});function _0x3c7958(){return'auto'==_0x1adff5['editing']['view']['_overlayModeHint'];}function _0x547716(){_0x1adff5['editing']['view']['_overlayModeHint']='auto';}}function _0x2c2a4f(_0x42c8a4){const _0xbc6127=[new window['Promise'](_0x19fbe0=>setTimeout(_0x19fbe0,0x93ecc)),_0x4ad55d['then'](()=>new window['Promise'](_0x32da10=>{let _0x31ece1=0x0;_0x1adff5['model']['on']('applyOperation',(_0x3a0c8e,_0x4ce3b5)=>{_0x4ce3b5[0x0]['isDocumentOperation']&&_0x31ece1++,0x5e8==_0x31ece1&&(_0x32da10(),_0x3a0c8e['off']());});}))];return window['Promise']['race'](_0xbc6127)['then'](()=>_0x42c8a4);}async function _0x5cd0ec(){await _0x4ad55d,_0x1adff5['model']['change']=_0x20e46a,_0x1adff5['model']['enqueueChange']=_0x20e46a,_0x1adff5['enableReadOnlyMode']('model');}function _0x548ccc(_0x357a54){const _0x27b00d=_0xcab8b();_0x1adff5[_0x27b00d]='multiLevelListLicenseKey'+_0x357a54,'Valid'!=_0x357a54&&_0x5cd0ec();}function _0xcab8b(){const _0x3b96fe=window['String'](window['performance']['now']())['replace']('.','');let _0x5e6745='I';for(let _0x29f435=0x0;_0x29f435<_0x3b96fe['length'];_0x29f435+=0x2){let _0x4b555f=window['parseInt'](_0x3b96fe['substring'](_0x29f435,_0x29f435+0x2));_0x4b555f>=0x3e&&(_0x4b555f-=0x3e),_0x5e6745+=_0x280ce4[_0x4b555f];}return _0x5e6745;}function _0xd29eb4(){const _0x17597b=_0x5d4e9b['split']('.');if(0x3!=_0x17597b['length'])return null;return _0x23f4e7(_0x17597b[0x1]);function _0x23f4e7(_0x17f7ff){const _0x4e25fc=_0x44e0a3(_0x17f7ff);return _0x4e25fc&&_0x35193a()?_0x4e25fc:null;function _0x35193a(){const _0x1a37df=_0x4e25fc['jti'],_0x146aa8=window['parseInt'](_0x1a37df['substring'](_0x1a37df['length']-0x8),0x10),_0x4ca4a3={..._0x4e25fc,'jti':_0x1a37df['substring'](0x0,_0x1a37df['length']-0x8)};return delete _0x4ca4a3['vc'],_0x205c74(_0x4ca4a3)==_0x146aa8;}}}async function _0x5da957(){let _0x4d4b9b=!0x0;try{const [_0x10e6c4,_0x26fe57,_0x1ffed4]=_0x5d4e9b['split']('.');return _0xd14498(_0x10e6c4),await _0xcf606a(_0x10e6c4,_0x26fe57,_0x1ffed4),_0x4d4b9b;}catch{return!0x1;}function _0xd14498(_0x1767db){const _0x1c8b84=_0x44e0a3(_0x1767db);_0x1c8b84&&'ES256'==_0x1c8b84['alg']||(_0x4d4b9b=!0x1);}async function _0xcf606a(_0x4ce2b4,_0x52f901,_0x200a37){const _0x1b9857=window['Uint8Array']['from'](_0x470bea(_0x200a37),_0x47458b=>_0x47458b['charCodeAt'](0x0)),_0x2ab956=new window['TextEncoder']()['encode'](_0x4ce2b4+'.'+_0x52f901),_0x482711=window['crypto']['subtle'];if(!_0x482711)return;const _0x3b99ce=await _0x482711['importKey']('jwk',_0x648c8a,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x482711['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3b99ce,_0x1b9857,_0x2ab956)||(_0x4d4b9b=!0x1);}}function _0x44e0a3(_0x82fc3e){return _0x82fc3e['startsWith']('ey')?JSON['parse'](_0x470bea(_0x82fc3e)):null;}function _0x470bea(_0x2c3174){return window['atob'](_0x2c3174['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x205c74(_0x561979){let _0x2d4016=0x1505;function _0x4a8d5c(_0x3dc69b){for(let _0x45dfce=0x0;_0x45dfce<_0x3dc69b['length'];_0x45dfce++){const _0xcc37a4=_0x3dc69b['charCodeAt'](_0x45dfce);_0x2d4016=(_0x2d4016<<0x5)+_0x2d4016+_0xcc37a4,_0x2d4016&=_0x2d4016;}}function _0x2af07f(_0x146baf){Array['isArray'](_0x146baf)?_0x146baf['forEach'](_0x2af07f):_0x146baf&&'object'==typeof _0x146baf?Object['entries'](_0x146baf)['sort']()['forEach'](([_0x5d1823,_0x2d086a])=>{_0x4a8d5c(_0x5d1823),_0x2af07f(_0x2d086a);}):_0x4a8d5c(window['String'](_0x146baf));}return _0x2af07f(_0x561979),_0x2d4016>>>0x0;}function _0x30b855(_0x160c32){return _0x160c32['toString'](0x10)['padStart'](0x8,'0');}function _0x528f00(_0x4d9f75){return _0x4d9f75['split']('')['reverse']()['join']('');}function _0x20e46a(){}_0x548ccc(await _0x47868d());}_0x1fdbf3(_0x3f9748['editor']);}(this);}};function E(_0x5ac657,_0x1ad5f9,_0x5f1f61){let _0x397b70=_0x1ad5f9['listMarkers'][_0x5ac657%_0x1ad5f9['listMarkers']['length']];if(void 0x0===_0x397b70['showMarkerPath']||_0x397b70['showMarkerPath'])return _0x5f1f61['slice'](0x0,_0x5ac657+0x1)['map']((_0x143258,_0x2f686f)=>(_0x397b70=_0x1ad5f9['listMarkers'][_0x2f686f%_0x1ad5f9['listMarkers']['length']],N(_0x397b70['marker'],_0x143258)))['join']('');{const _0x1abc57=_0x5f1f61[_0x5f1f61['length']-0x1];return N(_0x397b70['marker'],_0x1abc57);}}function N(_0x498e89,_0xb0ea19){return'function'==typeof _0x498e89?_0x498e89(_0xb0ea19):_0x498e89;}function _(_0x548c09,_0x327add){return(_0x477da5,_0x46c580,_0x34f3a6)=>{const _0x3b8052=_0x46c580['viewItem'];if(_0x46c580['modelRange']||Object['assign'](_0x46c580,_0x34f3a6['convertChildren'](_0x46c580['viewItem'],_0x46c580['modelCursor'])),!_0x34f3a6['consumable']['test'](_0x3b8052,{'classes':_0x548c09['className']}))return;const _0x1ff588=Array['from'](_0x46c580['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x5c57ef=>_0x327add['checkAttribute'](_0x5c57ef,'listItemId'));if(!_0x1ff588['length'])return;_0x34f3a6['consumable']['consume'](_0x3b8052,{'classes':_0x548c09['className']}),_0x34f3a6['consumable']['consume'](_0x3b8052,{'classes':'multi-level-list'}),_0x34f3a6['consumable']['consume'](_0x3b8052,{'styles':'list-style-type'});const _0x92e1b0=_0x1ff588[0x0]['getAttribute']('listIndent');for(const _0x3ff3a2 of _0x1ff588)_0x3ff3a2['getAttribute']('listIndent')==_0x92e1b0&&(_0x34f3a6['writer']['setAttribute']('listType',_0x548c09['listType'],_0x3ff3a2),_0x34f3a6['writer']['setAttribute']('listMarkerStyle',_0x548c09['listMarkerStyle'],_0x3ff3a2));};}function A(_0x1be9fa,_0x58bedc){const _0x3fcb0c=_0x1be9fa['t'],t=_0x1be9fa['t'];switch(_0x58bedc){case'Start\x20at':return _0x3fcb0c('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x3fcb0c('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x3fcb0c('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x3fcb0c('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 _0x58bedc;}}var V=class extends _0x33f169{['children'];stylesView=null;additionalPropertiesCollapsibleView=null;startIndexFieldView=null;['focusTracker']=new _0xfa7d07();keystrokes=new _0x2b7b1a();['focusables']=new _0x422536();['focusCycler'];constructor(_0xaa1f10,{enabledProperties:_0x13e166,styleButtonViews:_0x277977,styleGridAriaLabel:_0x29e4ba}){super(_0xaa1f10);const _0x1aa6a5=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x37e060({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x13e166['styles']?(this['stylesView']=this['_createStylesView'](_0x277977,_0x29e4ba),this['children']['add'](this['stylesView'])):_0x1aa6a5['push']('ck-multi-level-list-properties_without-styles'),_0x13e166['startIndex']&&(this['_addListPropertyViews'](_0x13e166),_0x1aa6a5['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x1aa6a5},'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 _0x44e58f of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x44e58f['element']);_0x186f30({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0xef00b0['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 _0x16449a=_0xe2c56b=>_0xe2c56b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x16449a),this['keystrokes']['set']('arrowleft',_0x16449a),this['keystrokes']['set']('arrowup',_0x16449a),this['keystrokes']['set']('arrowdown',_0x16449a);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}focusLast(){this['focusCycler']['focusLast']();}destroy(){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}_createStylesView(_0x2c5857,_0x3f73af){const _0x408465=new _0x33f169(this['locale']);return _0x408465['children']=_0x408465['createCollection'](),_0x408465['children']['addMany'](_0x2c5857),_0x408465['setTemplate']({'tag':'div','attributes':{'aria-label':_0x3f73af,'class':['ck','ck-multi-level-list-styles']},'children':_0x408465['children']}),_0x408465['children']['delegate']('execute')['to'](this),_0x408465['focus']=function(){this['children']['first']['focus']();},_0x408465['focusTracker']=new _0xfa7d07(),_0x408465['keystrokes']=new _0x2b7b1a(),_0x408465['render'](),_0x408465['keystrokes']['listenTo'](_0x408465['element']),_0x408465;}_addListPropertyViews(_0x2ada26){const _0x2c9898=[];_0x2ada26['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x2c9898['push'](this['startIndexFieldView'])),_0x2ada26['styles']?(this['additionalPropertiesCollapsibleView']=new _0xc3c122(this['locale'],_0x2c9898),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x2c9898,'isEnabled',(..._0x20456a)=>_0x20456a['some'](_0x5deb2e=>_0x5deb2e)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x352824,_0x115cb8,_0x3887e3)=>{_0x3887e3||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x2c9898);}_createStartIndexField(){const _0x1dfc49=new _0x390818(this['locale'],_0x51d41f);return _0x1dfc49['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x1dfc49['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1dfc49['fieldView']['on']('input',()=>{const _0x2f365d=_0x1dfc49['fieldView']['element'],_0x3fd25b=_0x2f365d['valueAsNumber'];Number['isNaN'](_0x3fd25b)?_0x1dfc49['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x2f365d['checkValidity']()?this['fire']('listStart',{'startIndex':_0x3fd25b}):_0x1dfc49['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x1dfc49;}},K=class extends _0x4137c5{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x2b5497=this['editor'];_0x2b5497['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x9efae6,parentCommandName:_0x4b6410,buttonLabel:_0x53729d,buttonIcon:_0x38973c,styleGridAriaLabel:_0x1ea41f,styleDefinitions:_0x23ba4e}){const _0x30a9cf=_0x9efae6['commands']['get'](_0x4b6410),_0x39e281=_0x9efae6['config']['get']('list.properties')||{},_0x7a8ce6=_0x9efae6['plugins']['has']('ListProperties'),_0x2e547c=_0x39e281['startIndex'];return _0x7a8ce6&&_0x2e547c?_0x453f82=>{const _0x542bc6=_0x541d7c(_0x453f82,_0x5ed812),_0x8f26ea=_0x542bc6['buttonView'];return _0x542bc6['bind']('isEnabled')['to'](_0x30a9cf),_0x542bc6['class']='ck-list-styles-dropdown',_0x8f26ea['on']('execute',()=>{_0x9efae6['execute'](_0x4b6410),_0x9efae6['editing']['view']['focus']();}),_0x8f26ea['set']({'label':_0x53729d,'icon':_0x38973c,'tooltip':!0x0,'isToggleable':!0x0}),_0x8f26ea['bind']('isOn')['to'](_0x30a9cf,'value',_0x1402a1=>!!_0x1402a1),_0x542bc6['once']('change:isOpen',()=>{const _0x2ffc4b=function({editor:_0x2d3f45,dropdownView:_0x343921,styleDefinitions:_0x121dc2,styleGridAriaLabel:_0x289b55}){const _0x1686e5=_0x2d3f45['locale'],_0x29c72e=_0x2d3f45['config']['get']('list.properties'),_0x5581c6=null;_0x29c72e['reversed']=!0x1,_0x121dc2['length']||(_0x29c72e['styles']=!0x1);const _0x1c228b=new V(_0x1686e5,{'styleGridAriaLabel':_0x289b55,'enabledProperties':_0x29c72e,'styleButtonViews':_0x5581c6});if(_0x29c72e['startIndex']){const _0xf3a586=_0x2d3f45['commands']['get']('listStart');_0x1c228b['startIndexFieldView']['bind']('isEnabled')['to'](_0xf3a586),_0x1c228b['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xf3a586),_0x1c228b['on']('listStart',(_0xd9b772,_0x3ba92c)=>_0x2d3f45['execute']('listStart',_0x3ba92c));}return _0x1c228b['delegate']('execute')['to'](_0x343921),_0x1c228b;}({'editor':_0x9efae6,'dropdownView':_0x542bc6,'parentCommandName':_0x4b6410,'styleGridAriaLabel':_0x1ea41f,'styleDefinitions':_0x23ba4e});_0x542bc6['panelView']['children']['add'](_0x2ffc4b);}),_0x542bc6['on']('execute',()=>{_0x9efae6['editing']['view']['focus']();}),_0x542bc6;}:_0x16ba11=>{const _0x18d694=new _0x415c01(_0x16ba11);return _0x18d694['set']({'label':_0x53729d,'icon':_0x38973c,'tooltip':!0x0,'isToggleable':!0x0}),_0x18d694['bind']('isOn')['to'](_0x30a9cf,'value',_0x46c4bb=>!!_0x46c4bb),_0x18d694['on']('execute',()=>{_0x9efae6['execute'](_0x4b6410),_0x9efae6['editing']['view']['focus']();}),_0x18d694;};}({'editor':_0x2b5497,'parentCommandName':'multiLevelList','buttonLabel':A(_0x2b5497['locale'],'Multi-level\x20List'),'buttonIcon':_0x971b48,'styleGridAriaLabel':A(_0x2b5497['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x2b5497['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x40e9e1=_0x2b5497['commands']['get']('multiLevelList'),_0x29e061=new _0x2ee966(_0x2b5497['locale']);return _0x29e061['set']({'label':A(_0x2b5497['locale'],'Multi-level\x20List'),'icon':_0x971b48}),_0x29e061['bind']('isEnabled')['to'](_0x40e9e1),_0x29e061['bind']('isOn')['to'](_0x40e9e1,'value',_0x3ed5cd=>!!_0x3ed5cd),_0x29e061['on']('execute',()=>{_0x2b5497['execute']('multiLevelList'),_0x2b5497['editing']['view']['focus']();}),_0x29e061;}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0xd0faf0=[this['editor']];for(const _0x57774f of _0xd0faf0){let _0x3ce238;for(const _0x5b53e9 in _0x57774f){const _0xc43e6c=_0x5b53e9,_0x4a0ab2=_0x57774f[_0xc43e6c];if('multiLevelListLicenseKeyValid'==_0x4a0ab2||'multiLevelListLicenseKeyInvalid'==_0x4a0ab2||'multiLevelListLicenseKeyExpired'==_0x4a0ab2||'multiLevelListLicenseKeyDomainLimit'==_0x4a0ab2||'multiLevelListLicenseKeyNotAllowed'==_0x4a0ab2||'multiLevelListLicenseKeyEvaluationLimit'==_0x4a0ab2||'multiLevelListLicenseKeyUsageLimit'==_0x4a0ab2){delete _0x57774f[_0xc43e6c],_0x3ce238=_0x4a0ab2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x3ce238&&_0x57774f['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x3ce238&&_0x57774f['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x3ce238&&_0x57774f['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x3ce238&&_0x57774f['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x3ce238&&_0x57774f['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x3ce238&&_0x57774f['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x4137c5{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 _0x4d9adf,Plugin as _0x2f1bc1}from'@ckeditor/ckeditor5-core';import{Matcher as _0xa71563,ViewUpcastWriter as _0xad8bd6}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x5de509,_isFirstBlockOfListItem as _0x577999}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0xf1de1f,KeystrokeHandler as _0x10c246,createElement as _0xf9c976,first as _0x5ded76,global as _0x5b2447,uid as _0xf36613}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x750d94}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x163ae2,CollapsibleView as _0x3c4208,FocusCycler as _0x481c71,LabeledFieldView as _0x1cec87,MenuBarMenuListItemButtonView as _0x538aa7,SplitButtonView as _0x3ff6e1,View as _0x58b110,ViewCollection as _0x518f2c,addKeyboardHandlingForGrid as _0x1e5922,createDropdown as _0x57d1cd,createLabeledInputNumber as _0x28ed9a}from'@ckeditor/ckeditor5-ui';var S=class extends _0x4d9adf{defaultListMarkerStyle;_listDefinitions;_listUtils;constructor(_0x50202c,_0x1633ce,_0x27a9b9){super(_0x50202c),this['defaultListMarkerStyle']=_0x1633ce,this['_listDefinitions']=_0x27a9b9,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}execute(_0x35df00={}){const _0x37b591=this['editor']['model'],_0xeae505=_0x35df00['listMarkerStyle']||this['defaultListMarkerStyle'];_0x37b591['change'](()=>{const _0x3fe957=this['_getListTypeFromListMarkerStyle'](_0xeae505);if(!_0x3fe957)return;const _0x5a8865=_0x3fe957+'List';this['editor']['execute'](_0x5a8865,{'additionalAttributes':{'listMarkerStyle':_0xeae505}});});}_getValue(){const _0x1db4a9=_0x5ded76(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x1db4a9)?_0x1db4a9['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x2d7b83=this['editor'],_0x2dfc45=_0x2d7b83['commands']['get']('customNumberedList'),_0x2e25ac=_0x2d7b83['commands']['get']('customBulletedList');return _0x2dfc45['isEnabled']||_0x2e25ac['isEnabled'];}_getListTypeFromListMarkerStyle(_0x51ebc7){const _0x351fa6=this['_listDefinitions']['find'](_0x504472=>_0x504472['listMarkerStyle']==_0x51ebc7);return _0x351fa6?_0x351fa6['listType']:null;}},x=class extends _0x2f1bc1{_listDefinitions;static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5de509];}constructor(_0x1b751e){super(_0x1b751e);const _0x18e033=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x11fe6e=>_0x11fe6e+'.'}]},..._0x18e033];}init(){const _0xafeec1=this['editor'],_0x32adae=_0xafeec1['model'],_0x4a246a=_0xafeec1['editing']['view'],_0x16c521=_0xafeec1['plugins']['get'](_0x5de509);_0xafeec1['commands']['add']('multiLevelList',new S(_0xafeec1,'legal',this['_listDefinitions'])),_0x32adae['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x32adae['schema']['addAttributeCheck']((_0x2f68ba,_0x199071)=>{const _0x16616d=_0x2f68ba['last'];if('listMarker'==_0x199071||'listMarkerStyle'==_0x199071)return!(!_0x16616d['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0xd075c1=>_0xd075c1['listType']==_0x16616d['getAttribute']('listType')))&&void 0x0;});for(const _0x58a63a of this['_listDefinitions'])_0xafeec1['conversion']['for']('upcast')['add'](_0x3afd42=>{_0x3afd42['on']('element:'+('customNumbered'==_0x58a63a['listType']?'ol':'ul'),_(_0x58a63a,_0x32adae['schema']),{'priority':'low'});}),_0x16c521['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x3ad8b3,_0x32df96,_0x21424a){_0x32df96==_0x58a63a['listMarkerStyle']?(_0x3ad8b3['addClass'](['multi-level-list',_0x58a63a['className']],_0x21424a),_0x3ad8b3['setStyle']('list-style-type','none',_0x21424a)):(_0x3ad8b3['removeClass'](['multi-level-list',_0x58a63a['className']],_0x21424a),_0x3ad8b3['removeStyle']('list-style-type',_0x21424a));}}),_0x16c521['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x12c4b7,_0x13c634,{dataPipeline:_0x905b65}){if(!_0x13c634['hasAttribute']('listMarker'))return null;if(_0x13c634['getAttribute']('listType')!=_0x58a63a['listType']||_0x13c634['getAttribute']('listMarkerStyle')!=_0x58a63a['listMarkerStyle'])return null;const _0x4c6205=String(_0x13c634['getAttribute']('listMarker')),_0xb11dc4=this['canInjectMarkerIntoElement'](_0x13c634);return _0x12c4b7['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x905b65&&{'contenteditable':'false','data-multi-level-list-marker':_0x4c6205}},function(_0xf4863c){const _0x527be1=this['toDomElement'](_0xf4863c);return _0xb11dc4?(_0x527be1['appendChild'](_0xf9c976(_0xf4863c,'span',{},_0x905b65?_0xf4863c['createTextNode'](_0x4c6205):[])),_0x527be1['appendChild'](_0xf4863c['createTextNode']('\u00a0'))):_0x905b65&&_0x527be1['appendChild'](_0xf4863c['createTextNode'](_0x4c6205)),_0x527be1;});},'canInjectMarkerIntoElement':_0x4c9939=>_0x32adae['schema']['checkChild'](_0x4c9939,'$text')&&_0x32adae['schema']['checkChild'](_0x4c9939,'$inlineObject')&&!_0x32adae['schema']['isLimit'](_0x4c9939)&&_0x4c9939['getAttribute']('listType')==_0x58a63a['listType']&&_0x4c9939['getAttribute']('listMarkerStyle')==_0x58a63a['listMarkerStyle']});_0xafeec1['conversion']['for']('upcast')['add'](_0x77ebeb=>{_0x77ebeb['on']('element:span',function(_0x91ba91){return(_0xc0ab4,_0x22af11,{writer:_0x2eb7dd,consumable:_0x1295a4})=>{const _0x62fc9=_0x22af11['modelCursor'],_0x37870e=_0x62fc9['parent'],_0x3b2930=_0x22af11['viewItem'];if(_0x1295a4['consume'](_0x3b2930,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x62fc9['isAtStart']&&_0x37870e['hasAttribute']('listType')&&_0x3b2930['childCount']>0x0){const _0x218564=_0x91ba91['createRangeIn'](_0x3b2930);let _0x353f03='';for(const _0x983469 of _0x218564['getItems']())_0x983469['is']('$textProxy')?(_0x353f03+=_0x983469['data']['trim'](),_0x1295a4['consume'](_0x983469['textNode'])):_0x1295a4['consume'](_0x983469,{'name':!0x0});_0x2eb7dd['setAttribute']('listMarker',_0x353f03['trim'](),_0x37870e);}};}(_0x4a246a));}),_0x16c521['on']('postFixer',(_0x4c2efc,{listNodes:_0xd3eca7,writer:_0x3517dc})=>{const _0x4bc2bb=[];for(const {node:_0x307f4b,previousNodeInList:_0x683899}of _0xd3eca7){const _0x4a9243=_0x307f4b['getAttribute']('listType'),_0xedf125=_0x307f4b['getAttribute']('listMarkerStyle')||('customNumbered'==_0x4a9243?'legal':void 0x0),_0x440e61=this['_listDefinitions']['find'](_0x32980e=>_0x32980e['listType']==_0x4a9243&&_0x32980e['listMarkerStyle']==_0xedf125);if('customNumbered'!=_0x4a9243&&'customBulleted'!=_0x4a9243&&(_0x307f4b['hasAttribute']('listMarker')&&(_0x3517dc['removeAttribute']('listMarker',_0x307f4b),_0x4c2efc['return']=!0x0),_0x307f4b['hasAttribute']('listMarkerStyle')&&(_0x3517dc['removeAttribute']('listMarkerStyle',_0x307f4b),_0x4c2efc['return']=!0x0)),!_0x440e61){'customBulleted'!=_0x4a9243||_0xedf125||(_0x3517dc['setAttribute']('listType','bulleted',_0x307f4b),_0x4c2efc['return']=!0x0);continue;}_0x307f4b['hasAttribute']('listMarkerStyle')||(_0x3517dc['setAttribute']('listMarkerStyle',_0xedf125,_0x307f4b),_0x4c2efc['return']=!0x0);const _0x330cb9=_0x307f4b['getAttribute']('listIndent');if(_0x683899&&_0x683899['getAttribute']('listItemId')==_0x307f4b['getAttribute']('listItemId'))continue;if(_0x4bc2bb['length']=_0x330cb9+0x1,_0xafeec1['config']['get']('list.enableSkipLevelLists')){for(let _0x2d2f1d=0x0;_0x2d2f1d<_0x330cb9;_0x2d2f1d++)void 0x0===_0x4bc2bb[_0x2d2f1d]&&(_0x4bc2bb[_0x2d2f1d]=0x1);}_0x683899||_0x4bc2bb[_0x330cb9]?_0x683899&&_0x683899['getAttribute']('listType')!=_0x440e61['listType']?_0x4bc2bb[_0x330cb9]=0x1:_0x4bc2bb[_0x330cb9]++:_0x4bc2bb[_0x330cb9]=_0x307f4b['getAttribute']('listStart')||0x1;const _0x22dae2=E(_0x330cb9,_0x440e61,_0x4bc2bb);_0x307f4b['getAttribute']('listMarker')!=_0x22dae2&&(_0x3517dc['setAttribute']('listMarker',_0x22dae2,_0x307f4b),_0x4c2efc['return']=!0x0);}}),_0x16c521['on']('checkElement',(_0x26c744,{modelElement:_0x50f6bf,viewElement:_0x49e92c})=>{const _0x2d2acd=_0x50f6bf['getAttribute']('listType');if('customNumbered'!=_0x2d2acd&&'customBulleted'!=_0x2d2acd)return;if(_0x32adae['schema']['checkChild'](_0x50f6bf,'$text'))return;const _0x2e0781=_0x577999(_0x50f6bf);let _0x45e5b1=!0x1;const _0x30100b=_0x4a246a['createPositionBefore'](_0x49e92c)['getWalker']({'direction':'backward'});for(const {item:_0x3dc492}of _0x30100b)if(_0x3dc492['is']('element')){if(_0xafeec1['editing']['mapper']['toModelElement'](_0x3dc492))break;if(_0x3dc492['getCustomProperty']('listItemMarker')){_0x45e5b1=!0x0;break;}}_0x45e5b1!=_0x2e0781&&(_0x26c744['return']=!0x0,_0x26c744['stop']());});const _0x51d4a0=_0xafeec1['editing']['view']['document'];this['listenTo'](_0x51d4a0,'clipboardOutput',(_0x4800b2,_0x1c537e)=>{const _0x52c3b8=new _0xa71563({'name':'span','classes':'multi-level-list__marker'}),_0x2761fc=new _0xa71563({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x42faad=new _0xad8bd6(_0x1c537e['content']['document']),_0x2107b8=[];for(const _0x130da3 of _0x42faad['createRangeIn'](_0x1c537e['content'])['getItems']())_0x130da3['is']('element')&&_0x52c3b8['match'](_0x130da3)&&_0x2107b8['push'](_0x130da3),_0x130da3['is']('element')&&_0x2761fc['match'](_0x130da3)&&_0x42faad['removeStyle']('list-style-type',_0x130da3);for(const _0xa1f0d0 of _0x2107b8)_0x42faad['remove'](_0xa1f0d0);});}afterInit(){!async function(_0x5bfc1c){const _0x93096e='I9sCmg3DJiG5LFMuQjwhT0XBYyxSqvdPO46NZAcVzb71RWkfe8oKptnrUEal2H',_0x2fe247=0x793f8,_0x21c4d5={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x2c3ac3(_0x321c41){const _0x4bd8a1=new window['Promise'](_0x5bc80a=>{_0x321c41['once']('ready',_0x5bc80a);}),_0x23f37d=window['Date']['now'](),_0x2337d9=_0x321c41['config']['get']('licenseKey');async function _0x23a5d1(){let _0x3683a5,_0x2beeb8=null,_0x45e8a2=null;try{return'GPL'==_0x2337d9?'NotAllowed':(_0x3683a5=_0x1efd85(),_0x3683a5?(_0x3683a5['usageEndpoint']&&(_0x45e8a2=_0x4826ff(_0x3683a5['usageEndpoint'],_0x3683a5['jti'])),await _0x2b04c8()?_0x4458a7()?_0x2dd7b4()?'Expired':_0x365e83()?('evaluation'==_0x3683a5['licenseType']&&(_0x2beeb8=_0x4afc6c('EvaluationLimit')),await _0x5d4126()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2dd7b4(){const _0x1e66af=['evaluation','trial']['includes'](_0x3683a5['licenseType'])?_0x23f37d/0x3e8:0xe10*_0x2fe247;return _0x3683a5['exp']<_0x1e66af;}function _0x4458a7(){const _0x16810f=_0x3683a5['features'];return!!_0x16810f&&(!!_0x16810f['includes']('*')||!!_0x16810f['includes']('MLL'));}function _0x365e83(){const _0x3da7d0=_0x3683a5['licensedHosts'];if(!_0x3da7d0||0x0==_0x3da7d0['length'])return!0x0;const {hostname:_0x364458}=new URL(window['location']['href']);if(_0x3da7d0['includes'](_0x364458))return!0x0;const _0x156d12=_0x364458['split']('.');return _0x3da7d0['filter'](_0x593c3e=>_0x593c3e['includes']('*'))['map'](_0x4f813d=>_0x4f813d['split']('.'))['filter'](_0x28ecf0=>_0x28ecf0['length']<=_0x156d12['length'])['map'](_0xf97881=>Array(_0x156d12['length']-_0xf97881['length'])['fill']('*'===_0xf97881[0x0]?'*':'')['concat'](_0xf97881))['some'](_0xc16271=>_0x156d12['every']((_0x29bf49,_0x5d06e1)=>_0xc16271[_0x5d06e1]===_0x29bf49||'*'===_0xc16271[_0x5d06e1]));}function _0x5d4126(){return _0x2beeb8&&_0x45e8a2?new window['Promise']((_0x16ee9f,_0x33d041)=>{_0x2beeb8['then'](_0x16ee9f,_0x33d041),_0x45e8a2['then'](_0x389312=>{'Valid'!=_0x389312&&_0x16ee9f(_0x389312);},_0x33d041);}):_0x2beeb8||_0x45e8a2||'Valid';}}function _0x4826ff(_0xbf87d0,_0x39353b){return new window['Promise'](_0x43e6d6=>{if(_0x2e6238())return _0x43e6d6('Valid');_0x54fd3b(),_0x321c41['decorate']('_sendUsageRequest');let _0x169e47=!0x1;const _0x297ba1=_0xf36613();function _0x1024a4(_0x12355b){return!!_0x12355b&&('object'==typeof _0x12355b||'function'==typeof _0x12355b)&&'function'==typeof _0x12355b['then']&&'function'==typeof _0x12355b['catch'];}function _0x4889dd(_0x5c1237){_0x3d4708(_0x5c1237)['then'](_0x423f5d=>_0x423f5d&&'ok'==_0x423f5d['status']?_0x1b3a5a(_0x26b020(_0x297ba1+_0x39353b))!=_0x423f5d['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4e5434=>(_0x7fddaa(),_0x4e5434),()=>{const _0x3b6ea6=_0x2d8b38();return null==_0x3b6ea6?(_0x7fddaa(),'Valid'):_0x23f37d-_0x3b6ea6>0x240c8400?'UsageLimit':'Valid';})['then'](_0x43e6d6)['catch'](()=>{_0x43e6d6('UsageLimit');});const _0x7c7a50=0x36ee80;function _0x7fddaa(){const _0x54fa58='llct-'+_0x1b3a5a(_0x26b020(_0xbf87d0)),_0x3d89c6=_0x4b70d8(_0x1b3a5a(window['Math']['ceil'](_0x23f37d/_0x7c7a50)));window['localStorage']['setItem'](_0x54fa58,_0x3d89c6);}function _0x2d8b38(){const _0x1eb511='llct-'+_0x1b3a5a(_0x26b020(_0xbf87d0)),_0x13f364=window['localStorage']['getItem'](_0x1eb511);return _0x13f364?window['parseInt'](_0x4b70d8(_0x13f364),0x10)*_0x7c7a50:null;}function _0x3d4708(_0x1a2dfa){return new window['Promise']((_0x37cc58,_0x2da45c)=>{_0x1a2dfa['then'](_0x37cc58,_0x2da45c),window['setTimeout'](_0x2da45c,0x1d4c0);});}}_0x321c41['on']('_sendUsageRequest',(_0x243df7,_0x2ceb10)=>{if(_0x2ceb10[0x0]!=_0xbf87d0)return _0x43e6d6('UsageLimit');_0x2ceb10[0x1]={..._0x2ceb10[0x1],'requestId':_0x297ba1};},{'priority':'high'}),_0x321c41['on']('_sendUsageRequest',_0x482dd4=>{_0x1024a4(_0x482dd4['return'])&&(_0x169e47=!0x0,_0x4889dd(_0x482dd4['return']));},{'priority':'low'}),_0x4bd8a1['then'](()=>{_0x169e47||_0x43e6d6('UsageLimit');});});function _0x2e6238(){return'auto'==_0x321c41['editing']['view']['_overlayModeHint'];}function _0x54fd3b(){_0x321c41['editing']['view']['_overlayModeHint']='auto';}}function _0x4afc6c(_0x5e47dd){const _0x303da9=[new window['Promise'](_0xcec2ad=>setTimeout(_0xcec2ad,0x93ecc)),_0x4bd8a1['then'](()=>new window['Promise'](_0x2a905a=>{let _0x4f8fe9=0x0;_0x321c41['model']['on']('applyOperation',(_0x1ea52a,_0x107e08)=>{_0x107e08[0x0]['isDocumentOperation']&&_0x4f8fe9++,0x5e8==_0x4f8fe9&&(_0x2a905a(),_0x1ea52a['off']());});}))];return window['Promise']['race'](_0x303da9)['then'](()=>_0x5e47dd);}async function _0x5f15b8(){await _0x4bd8a1,_0x321c41['model']['change']=_0x28dd34,_0x321c41['model']['enqueueChange']=_0x28dd34,_0x321c41['enableReadOnlyMode']('model');}function _0x3148c4(_0x2dd66d){const _0x400057=_0x495202();_0x321c41[_0x400057]='multiLevelListLicenseKey'+_0x2dd66d,'Valid'!=_0x2dd66d&&_0x5f15b8();}function _0x495202(){const _0x233384=window['String'](window['performance']['now']())['replace']('.','');let _0xd7934f='I';for(let _0x3b261b=0x0;_0x3b261b<_0x233384['length'];_0x3b261b+=0x2){let _0x455b45=window['parseInt'](_0x233384['substring'](_0x3b261b,_0x3b261b+0x2));_0x455b45>=0x3e&&(_0x455b45-=0x3e),_0xd7934f+=_0x93096e[_0x455b45];}return _0xd7934f;}function _0x1efd85(){const _0x14a43e=_0x2337d9['split']('.');if(0x3!=_0x14a43e['length'])return null;return _0x2904ad(_0x14a43e[0x1]);function _0x2904ad(_0x1376a9){const _0x421308=_0x12886c(_0x1376a9);return _0x421308&&_0x1047e4()?_0x421308:null;function _0x1047e4(){const _0xbf019c=_0x421308['jti'],_0x2e76c5=window['parseInt'](_0xbf019c['substring'](_0xbf019c['length']-0x8),0x10),_0xc49902={..._0x421308,'jti':_0xbf019c['substring'](0x0,_0xbf019c['length']-0x8)};return delete _0xc49902['vc'],_0x26b020(_0xc49902)==_0x2e76c5;}}}async function _0x2b04c8(){let _0x7313a7=!0x0;try{const [_0x4077c6,_0x5c1513,_0x182f6a]=_0x2337d9['split']('.');return _0x2b8847(_0x4077c6),await _0x1507cd(_0x4077c6,_0x5c1513,_0x182f6a),_0x7313a7;}catch{return!0x1;}function _0x2b8847(_0x399885){const _0x38e0fa=_0x12886c(_0x399885);_0x38e0fa&&'ES256'==_0x38e0fa['alg']||(_0x7313a7=!0x1);}async function _0x1507cd(_0x5d374c,_0x389b2c,_0x4bd540){const _0x5ef419=window['Uint8Array']['from'](_0x2bd01f(_0x4bd540),_0x42763e=>_0x42763e['charCodeAt'](0x0)),_0xcbe0a6=new window['TextEncoder']()['encode'](_0x5d374c+'.'+_0x389b2c),_0x4acca7=window['crypto']['subtle'];if(!_0x4acca7)return;const _0x275737=await _0x4acca7['importKey']('jwk',_0x21c4d5,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4acca7['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x275737,_0x5ef419,_0xcbe0a6)||(_0x7313a7=!0x1);}}function _0x12886c(_0x39a2fc){return _0x39a2fc['startsWith']('ey')?JSON['parse'](_0x2bd01f(_0x39a2fc)):null;}function _0x2bd01f(_0x560886){return window['atob'](_0x560886['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x26b020(_0x3a4a0c){let _0x3f21a4=0x1505;function _0x3dec15(_0x3a1799){for(let _0xc3980=0x0;_0xc3980<_0x3a1799['length'];_0xc3980++){const _0x4d21f4=_0x3a1799['charCodeAt'](_0xc3980);_0x3f21a4=(_0x3f21a4<<0x5)+_0x3f21a4+_0x4d21f4,_0x3f21a4&=_0x3f21a4;}}function _0x1e743b(_0x4591f5){Array['isArray'](_0x4591f5)?_0x4591f5['forEach'](_0x1e743b):_0x4591f5&&'object'==typeof _0x4591f5?Object['entries'](_0x4591f5)['sort']()['forEach'](([_0x47db19,_0x2e97de])=>{_0x3dec15(_0x47db19),_0x1e743b(_0x2e97de);}):_0x3dec15(window['String'](_0x4591f5));}return _0x1e743b(_0x3a4a0c),_0x3f21a4>>>0x0;}function _0x1b3a5a(_0x315798){return _0x315798['toString'](0x10)['padStart'](0x8,'0');}function _0x4b70d8(_0x216a0c){return _0x216a0c['split']('')['reverse']()['join']('');}function _0x28dd34(){}_0x3148c4(await _0x23a5d1());}_0x2c3ac3(_0x5bfc1c['editor']);}(this);}};function E(_0x37171c,_0x511543,_0xd4d193){let _0xf653f5=_0x511543['listMarkers'][_0x37171c%_0x511543['listMarkers']['length']];if(void 0x0===_0xf653f5['showMarkerPath']||_0xf653f5['showMarkerPath'])return _0xd4d193['slice'](0x0,_0x37171c+0x1)['map']((_0x2d031d,_0x1487bc)=>(_0xf653f5=_0x511543['listMarkers'][_0x1487bc%_0x511543['listMarkers']['length']],N(_0xf653f5['marker'],_0x2d031d)))['join']('');{const _0x5619e0=_0xd4d193[_0xd4d193['length']-0x1];return N(_0xf653f5['marker'],_0x5619e0);}}function N(_0x2dffc8,_0x33815c){return'function'==typeof _0x2dffc8?_0x2dffc8(_0x33815c):_0x2dffc8;}function _(_0x1919ac,_0x3d7738){return(_0x5e7e6d,_0x1e846f,_0x2f6343)=>{const _0x41f328=_0x1e846f['viewItem'];if(_0x1e846f['modelRange']||Object['assign'](_0x1e846f,_0x2f6343['convertChildren'](_0x1e846f['viewItem'],_0x1e846f['modelCursor'])),!_0x2f6343['consumable']['test'](_0x41f328,{'classes':_0x1919ac['className']}))return;const _0x5ae625=Array['from'](_0x1e846f['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x1498f4=>_0x3d7738['checkAttribute'](_0x1498f4,'listItemId'));if(!_0x5ae625['length'])return;_0x2f6343['consumable']['consume'](_0x41f328,{'classes':_0x1919ac['className']}),_0x2f6343['consumable']['consume'](_0x41f328,{'classes':'multi-level-list'}),_0x2f6343['consumable']['consume'](_0x41f328,{'styles':'list-style-type'});const _0x11b5b8=_0x5ae625[0x0]['getAttribute']('listIndent');for(const _0x3374b3 of _0x5ae625)_0x3374b3['getAttribute']('listIndent')==_0x11b5b8&&(_0x2f6343['writer']['setAttribute']('listType',_0x1919ac['listType'],_0x3374b3),_0x2f6343['writer']['setAttribute']('listMarkerStyle',_0x1919ac['listMarkerStyle'],_0x3374b3));};}function A(_0x2dca45,_0x9cf683){const _0x4f60d4=_0x2dca45['t'],t=_0x2dca45['t'];switch(_0x9cf683){case'Start\x20at':return _0x4f60d4('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x4f60d4('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x4f60d4('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x4f60d4('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 _0x9cf683;}}var V=class extends _0x58b110{['children'];stylesView=null;additionalPropertiesCollapsibleView=null;startIndexFieldView=null;['focusTracker']=new _0xf1de1f();keystrokes=new _0x10c246();['focusables']=new _0x518f2c();['focusCycler'];constructor(_0x386681,{enabledProperties:_0x51f6bf,styleButtonViews:_0x521ad2,styleGridAriaLabel:_0x2b321d}){super(_0x386681);const _0xaaa200=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x481c71({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x51f6bf['styles']?(this['stylesView']=this['_createStylesView'](_0x521ad2,_0x2b321d),this['children']['add'](this['stylesView'])):_0xaaa200['push']('ck-multi-level-list-properties_without-styles'),_0x51f6bf['startIndex']&&(this['_addListPropertyViews'](_0x51f6bf),_0xaaa200['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0xaaa200},'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 _0x407fc2 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x407fc2['element']);_0x1e5922({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x5b2447['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 _0x261f26=_0x2a4cd2=>_0x2a4cd2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x261f26),this['keystrokes']['set']('arrowleft',_0x261f26),this['keystrokes']['set']('arrowup',_0x261f26),this['keystrokes']['set']('arrowdown',_0x261f26);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}focusLast(){this['focusCycler']['focusLast']();}destroy(){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}_createStylesView(_0x518fd2,_0x467b72){const _0xfd87d=new _0x58b110(this['locale']);return _0xfd87d['children']=_0xfd87d['createCollection'](),_0xfd87d['children']['addMany'](_0x518fd2),_0xfd87d['setTemplate']({'tag':'div','attributes':{'aria-label':_0x467b72,'class':['ck','ck-multi-level-list-styles']},'children':_0xfd87d['children']}),_0xfd87d['children']['delegate']('execute')['to'](this),_0xfd87d['focus']=function(){this['children']['first']['focus']();},_0xfd87d['focusTracker']=new _0xf1de1f(),_0xfd87d['keystrokes']=new _0x10c246(),_0xfd87d['render'](),_0xfd87d['keystrokes']['listenTo'](_0xfd87d['element']),_0xfd87d;}_addListPropertyViews(_0x5893f4){const _0x319753=[];_0x5893f4['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x319753['push'](this['startIndexFieldView'])),_0x5893f4['styles']?(this['additionalPropertiesCollapsibleView']=new _0x3c4208(this['locale'],_0x319753),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x319753,'isEnabled',(..._0x1bae26)=>_0x1bae26['some'](_0x8e4aa5=>_0x8e4aa5)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x3514a9,_0x42d2d5,_0x301c4b)=>{_0x301c4b||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x319753);}_createStartIndexField(){const _0x454ea4=new _0x1cec87(this['locale'],_0x28ed9a);return _0x454ea4['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x454ea4['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x454ea4['fieldView']['on']('input',()=>{const _0xf9beb4=_0x454ea4['fieldView']['element'],_0x523b5b=_0xf9beb4['valueAsNumber'];Number['isNaN'](_0x523b5b)?_0x454ea4['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0xf9beb4['checkValidity']()?this['fire']('listStart',{'startIndex':_0x523b5b}):_0x454ea4['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x454ea4;}},K=class extends _0x2f1bc1{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x587195=this['editor'];_0x587195['ui']['componentFactory']['add']('multiLevelList',function({editor:_0xfae86c,parentCommandName:_0x131b57,buttonLabel:_0xc8d429,buttonIcon:_0x2e0a9d,styleGridAriaLabel:_0x49d022,styleDefinitions:_0x5b1ffa}){const _0x4b18bf=_0xfae86c['commands']['get'](_0x131b57),_0x1f4533=_0xfae86c['config']['get']('list.properties')||{},_0x1eb45e=_0xfae86c['plugins']['has']('ListProperties'),_0x42e51c=_0x1f4533['startIndex'];return _0x1eb45e&&_0x42e51c?_0x292407=>{const _0x55b9b4=_0x57d1cd(_0x292407,_0x3ff6e1),_0x2503df=_0x55b9b4['buttonView'];return _0x55b9b4['bind']('isEnabled')['to'](_0x4b18bf),_0x55b9b4['class']='ck-list-styles-dropdown',_0x2503df['on']('execute',()=>{_0xfae86c['execute'](_0x131b57),_0xfae86c['editing']['view']['focus']();}),_0x2503df['set']({'label':_0xc8d429,'icon':_0x2e0a9d,'tooltip':!0x0,'isToggleable':!0x0}),_0x2503df['bind']('isOn')['to'](_0x4b18bf,'value',_0x47df77=>!!_0x47df77),_0x55b9b4['once']('change:isOpen',()=>{const _0x14479b=function({editor:_0x1f9730,dropdownView:_0x42d13e,styleDefinitions:_0x1a829c,styleGridAriaLabel:_0x27632c}){const _0x31b84b=_0x1f9730['locale'],_0x4587ae=_0x1f9730['config']['get']('list.properties'),_0xfe0e56=null;_0x4587ae['reversed']=!0x1,_0x1a829c['length']||(_0x4587ae['styles']=!0x1);const _0x3e5a7a=new V(_0x31b84b,{'styleGridAriaLabel':_0x27632c,'enabledProperties':_0x4587ae,'styleButtonViews':_0xfe0e56});if(_0x4587ae['startIndex']){const _0x47a366=_0x1f9730['commands']['get']('listStart');_0x3e5a7a['startIndexFieldView']['bind']('isEnabled')['to'](_0x47a366),_0x3e5a7a['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x47a366),_0x3e5a7a['on']('listStart',(_0x3c7aca,_0x22ac0d)=>_0x1f9730['execute']('listStart',_0x22ac0d));}return _0x3e5a7a['delegate']('execute')['to'](_0x42d13e),_0x3e5a7a;}({'editor':_0xfae86c,'dropdownView':_0x55b9b4,'parentCommandName':_0x131b57,'styleGridAriaLabel':_0x49d022,'styleDefinitions':_0x5b1ffa});_0x55b9b4['panelView']['children']['add'](_0x14479b);}),_0x55b9b4['on']('execute',()=>{_0xfae86c['editing']['view']['focus']();}),_0x55b9b4;}:_0xb5be64=>{const _0x2e05de=new _0x163ae2(_0xb5be64);return _0x2e05de['set']({'label':_0xc8d429,'icon':_0x2e0a9d,'tooltip':!0x0,'isToggleable':!0x0}),_0x2e05de['bind']('isOn')['to'](_0x4b18bf,'value',_0x4389ae=>!!_0x4389ae),_0x2e05de['on']('execute',()=>{_0xfae86c['execute'](_0x131b57),_0xfae86c['editing']['view']['focus']();}),_0x2e05de;};}({'editor':_0x587195,'parentCommandName':'multiLevelList','buttonLabel':A(_0x587195['locale'],'Multi-level\x20List'),'buttonIcon':_0x750d94,'styleGridAriaLabel':A(_0x587195['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x587195['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x12471f=_0x587195['commands']['get']('multiLevelList'),_0x5154e6=new _0x538aa7(_0x587195['locale']);return _0x5154e6['set']({'label':A(_0x587195['locale'],'Multi-level\x20List'),'icon':_0x750d94}),_0x5154e6['bind']('isEnabled')['to'](_0x12471f),_0x5154e6['bind']('isOn')['to'](_0x12471f,'value',_0x57db8d=>!!_0x57db8d),_0x5154e6['on']('execute',()=>{_0x587195['execute']('multiLevelList'),_0x587195['editing']['view']['focus']();}),_0x5154e6;}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x56f815=[this['editor']];for(const _0xd03e21 of _0x56f815){let _0x4c4d77;for(const _0x438f81 in _0xd03e21){const _0x11781d=_0x438f81,_0x314411=_0xd03e21[_0x11781d];if('multiLevelListLicenseKeyValid'==_0x314411||'multiLevelListLicenseKeyInvalid'==_0x314411||'multiLevelListLicenseKeyExpired'==_0x314411||'multiLevelListLicenseKeyDomainLimit'==_0x314411||'multiLevelListLicenseKeyNotAllowed'==_0x314411||'multiLevelListLicenseKeyEvaluationLimit'==_0x314411||'multiLevelListLicenseKeyUsageLimit'==_0x314411){delete _0xd03e21[_0x11781d],_0x4c4d77=_0x314411,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x4c4d77&&_0xd03e21['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x4c4d77&&_0xd03e21['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x4c4d77&&_0xd03e21['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x4c4d77&&_0xd03e21['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x4c4d77&&_0xd03e21['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x4c4d77&&_0xd03e21['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x2f1bc1{static get['pluginName'](){return'MultiLevelList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[x,K];}};export{P as MultiLevelList,S as MultiLevelListCommand,x as MultiLevelListEditing,K as MultiLevelListUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-list-multi-level",
3
- "version": "48.5.0-alpha.1",
3
+ "version": "48.5.0-alpha.2",
4
4
  "description": "Multi-level list feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -32,13 +32,13 @@
32
32
  "./package.json": "./package.json"
33
33
  },
34
34
  "dependencies": {
35
- "@ckeditor/ckeditor5-clipboard": "48.5.0-alpha.1",
36
- "@ckeditor/ckeditor5-core": "48.5.0-alpha.1",
37
- "@ckeditor/ckeditor5-engine": "48.5.0-alpha.1",
38
- "@ckeditor/ckeditor5-icons": "48.5.0-alpha.1",
39
- "@ckeditor/ckeditor5-list": "48.5.0-alpha.1",
40
- "@ckeditor/ckeditor5-ui": "48.5.0-alpha.1",
41
- "@ckeditor/ckeditor5-utils": "48.5.0-alpha.1"
35
+ "@ckeditor/ckeditor5-clipboard": "48.5.0-alpha.2",
36
+ "@ckeditor/ckeditor5-core": "48.5.0-alpha.2",
37
+ "@ckeditor/ckeditor5-engine": "48.5.0-alpha.2",
38
+ "@ckeditor/ckeditor5-icons": "48.5.0-alpha.2",
39
+ "@ckeditor/ckeditor5-list": "48.5.0-alpha.2",
40
+ "@ckeditor/ckeditor5-ui": "48.5.0-alpha.2",
41
+ "@ckeditor/ckeditor5-utils": "48.5.0-alpha.2"
42
42
  },
43
43
  "files": [
44
44
  "dist",