@ckeditor/ckeditor5-list-multi-level 48.3.1-alpha.0 → 48.3.1-alpha.1
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.
- package/dist/index.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x37d53e,Plugin as _0x47b2a6}from'@ckeditor/ckeditor5-core';import{Matcher as _0x43b0e6,ViewUpcastWriter as _0x1f5362}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x436fe0,_isFirstBlockOfListItem as _0x3c3c4b}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0x1458bc,KeystrokeHandler as _0x2fe271,createElement as _0x36bf18,first as _0x52ca68,global as _0x3fa51e,uid as _0x42c314}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x4da09d}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x1c6a27,CollapsibleView as _0x444240,FocusCycler as _0x3deeaa,LabeledFieldView as _0x5f1841,MenuBarMenuListItemButtonView as _0x45dc5f,SplitButtonView as _0x54eb62,View as _0x6a9ec3,ViewCollection as _0x4bf658,addKeyboardHandlingForGrid as _0x4dc4c0,createDropdown as _0x3c699f,createLabeledInputNumber as _0xd51343}from'@ckeditor/ckeditor5-ui';var S=class extends _0x37d53e{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x3f66cb,_0x3f9626,_0x27bb25){super(_0x3f66cb),this['defaultListMarkerStyle']=_0x3f9626,this['_listDefinitions']=_0x27bb25,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x24c803={}){const _0x2cdfe1=this['editor']['model'],_0x59bd80=_0x24c803['listMarkerStyle']||this['defaultListMarkerStyle'];_0x2cdfe1['change'](()=>{const _0x568780=this['_getListTypeFromListMarkerStyle'](_0x59bd80);if(!_0x568780)return;const _0x203f75=_0x568780+'List';this['editor']['execute'](_0x203f75,{'additionalAttributes':{'listMarkerStyle':_0x59bd80}});});}['_getValue'](){const _0x556366=_0x52ca68(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x556366)?_0x556366['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x379b73=this['editor'],_0x48c5c2=_0x379b73['commands']['get']('customNumberedList'),_0xa5a70d=_0x379b73['commands']['get']('customBulletedList');return _0x48c5c2['isEnabled']||_0xa5a70d['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x56932a){const _0x929793=this['_listDefinitions']['find'](_0x32bc10=>_0x32bc10['listMarkerStyle']==_0x56932a);return _0x929793?_0x929793['listType']:null;}},x=class extends _0x47b2a6{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x436fe0];}constructor(_0x1480cd){super(_0x1480cd);const _0x598761=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x25ca2e=>_0x25ca2e+'.'}]},..._0x598761];}['init'](){const _0x32a41e=this['editor'],_0x1976a1=_0x32a41e['model'],_0x5c1d41=_0x32a41e['editing']['view'],_0x340826=_0x32a41e['plugins']['get'](_0x436fe0);_0x32a41e['commands']['add']('multiLevelList',new S(_0x32a41e,'legal',this['_listDefinitions'])),_0x1976a1['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x1976a1['schema']['addAttributeCheck']((_0x340474,_0x12de7e)=>{const _0x5f15a7=_0x340474['last'];if('listMarker'==_0x12de7e||'listMarkerStyle'==_0x12de7e)return!(!_0x5f15a7['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x4f2fb7=>_0x4f2fb7['listType']==_0x5f15a7['getAttribute']('listType')))&&void 0x0;});for(const _0x278345 of this['_listDefinitions'])_0x32a41e['conversion']['for']('upcast')['add'](_0x172073=>{_0x172073['on']('element:'+('customNumbered'==_0x278345['listType']?'ol':'ul'),_(_0x278345,_0x1976a1['schema']),{'priority':'low'});}),_0x340826['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x1725da,_0x1d7b07,_0x202289){_0x1d7b07==_0x278345['listMarkerStyle']?(_0x1725da['addClass'](['multi-level-list',_0x278345['className']],_0x202289),_0x1725da['setStyle']('list-style-type','none',_0x202289)):(_0x1725da['removeClass'](['multi-level-list',_0x278345['className']],_0x202289),_0x1725da['removeStyle']('list-style-type',_0x202289));}}),_0x340826['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x4b50a1,_0x41b0b8,{dataPipeline:_0x255c76}){if(!_0x41b0b8['hasAttribute']('listMarker'))return null;if(_0x41b0b8['getAttribute']('listType')!=_0x278345['listType']||_0x41b0b8['getAttribute']('listMarkerStyle')!=_0x278345['listMarkerStyle'])return null;const _0x2d7776=String(_0x41b0b8['getAttribute']('listMarker')),_0x1b876a=this['canInjectMarkerIntoElement'](_0x41b0b8);return _0x4b50a1['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x255c76&&{'contenteditable':'false','data-multi-level-list-marker':_0x2d7776}},function(_0x24dcb2){const _0x409e5b=this['toDomElement'](_0x24dcb2);return _0x1b876a?(_0x409e5b['appendChild'](_0x36bf18(_0x24dcb2,'span',{},_0x255c76?_0x24dcb2['createTextNode'](_0x2d7776):[])),_0x409e5b['appendChild'](_0x24dcb2['createTextNode']('\u00a0'))):_0x255c76&&_0x409e5b['appendChild'](_0x24dcb2['createTextNode'](_0x2d7776)),_0x409e5b;});},'canInjectMarkerIntoElement':_0x2bb3dd=>_0x1976a1['schema']['checkChild'](_0x2bb3dd,'$text')&&_0x1976a1['schema']['checkChild'](_0x2bb3dd,'$inlineObject')&&!_0x1976a1['schema']['isLimit'](_0x2bb3dd)&&_0x2bb3dd['getAttribute']('listType')==_0x278345['listType']&&_0x2bb3dd['getAttribute']('listMarkerStyle')==_0x278345['listMarkerStyle']});_0x32a41e['conversion']['for']('upcast')['add'](_0x34a8c8=>{_0x34a8c8['on']('element:span',function(_0x529f7b){return(_0x5d8088,_0x450e21,{writer:_0x899e81,consumable:_0xa6c745})=>{const _0x1e9484=_0x450e21['modelCursor'],_0x3a07cc=_0x1e9484['parent'],_0x2f90f0=_0x450e21['viewItem'];if(_0xa6c745['consume'](_0x2f90f0,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x1e9484['isAtStart']&&_0x3a07cc['hasAttribute']('listType')&&_0x2f90f0['childCount']>0x0){const _0x531030=_0x529f7b['createRangeIn'](_0x2f90f0);let _0x4bd577='';for(const _0x3eedf9 of _0x531030['getItems']())_0x3eedf9['is']('$textProxy')?(_0x4bd577+=_0x3eedf9['data']['trim'](),_0xa6c745['consume'](_0x3eedf9['textNode'])):_0xa6c745['consume'](_0x3eedf9,{'name':!0x0});_0x899e81['setAttribute']('listMarker',_0x4bd577['trim'](),_0x3a07cc);}};}(_0x5c1d41));}),_0x340826['on']('postFixer',(_0x3367a7,{listNodes:_0x57c5ad,writer:_0x28e940})=>{const _0x4466b0=[];for(const {node:_0xdbc12e,previousNodeInList:_0x18dcc4}of _0x57c5ad){const _0x3cbda2=_0xdbc12e['getAttribute']('listType'),_0x2d572e=_0xdbc12e['getAttribute']('listMarkerStyle')||('customNumbered'==_0x3cbda2?'legal':void 0x0),_0x149851=this['_listDefinitions']['find'](_0x427da0=>_0x427da0['listType']==_0x3cbda2&&_0x427da0['listMarkerStyle']==_0x2d572e);if('customNumbered'!=_0x3cbda2&&'customBulleted'!=_0x3cbda2&&(_0xdbc12e['hasAttribute']('listMarker')&&(_0x28e940['removeAttribute']('listMarker',_0xdbc12e),_0x3367a7['return']=!0x0),_0xdbc12e['hasAttribute']('listMarkerStyle')&&(_0x28e940['removeAttribute']('listMarkerStyle',_0xdbc12e),_0x3367a7['return']=!0x0)),!_0x149851){'customBulleted'!=_0x3cbda2||_0x2d572e||(_0x28e940['setAttribute']('listType','bulleted',_0xdbc12e),_0x3367a7['return']=!0x0);continue;}_0xdbc12e['hasAttribute']('listMarkerStyle')||(_0x28e940['setAttribute']('listMarkerStyle',_0x2d572e,_0xdbc12e),_0x3367a7['return']=!0x0);const _0x5027b1=_0xdbc12e['getAttribute']('listIndent');if(_0x18dcc4&&_0x18dcc4['getAttribute']('listItemId')==_0xdbc12e['getAttribute']('listItemId'))continue;if(_0x4466b0['length']=_0x5027b1+0x1,_0x32a41e['config']['get']('list.enableSkipLevelLists')){for(let _0x3253d2=0x0;_0x3253d2<_0x5027b1;_0x3253d2++)void 0x0===_0x4466b0[_0x3253d2]&&(_0x4466b0[_0x3253d2]=0x1);}_0x18dcc4||_0x4466b0[_0x5027b1]?_0x18dcc4&&_0x18dcc4['getAttribute']('listType')!=_0x149851['listType']?_0x4466b0[_0x5027b1]=0x1:_0x4466b0[_0x5027b1]++:_0x4466b0[_0x5027b1]=_0xdbc12e['getAttribute']('listStart')||0x1;const _0x5d36c2=E(_0x5027b1,_0x149851,_0x4466b0);_0xdbc12e['getAttribute']('listMarker')!=_0x5d36c2&&(_0x28e940['setAttribute']('listMarker',_0x5d36c2,_0xdbc12e),_0x3367a7['return']=!0x0);}}),_0x340826['on']('checkElement',(_0xdf18f7,{modelElement:_0x7557c6,viewElement:_0x261fcf})=>{const _0x507a7e=_0x7557c6['getAttribute']('listType');if('customNumbered'!=_0x507a7e&&'customBulleted'!=_0x507a7e)return;if(_0x1976a1['schema']['checkChild'](_0x7557c6,'$text'))return;const _0x2a62b5=_0x3c3c4b(_0x7557c6);let _0x19d23c=!0x1;const _0x3df2b3=_0x5c1d41['createPositionBefore'](_0x261fcf)['getWalker']({'direction':'backward'});for(const {item:_0xb12da0}of _0x3df2b3)if(_0xb12da0['is']('element')){if(_0x32a41e['editing']['mapper']['toModelElement'](_0xb12da0))break;if(_0xb12da0['getCustomProperty']('listItemMarker')){_0x19d23c=!0x0;break;}}_0x19d23c!=_0x2a62b5&&(_0xdf18f7['return']=!0x0,_0xdf18f7['stop']());});const _0x3982d2=_0x32a41e['editing']['view']['document'];this['listenTo'](_0x3982d2,'clipboardOutput',(_0x5cd0b7,_0x5e9397)=>{const _0x58bdc2=new _0x43b0e6({'name':'span','classes':'multi-level-list__marker'}),_0x55d1ca=new _0x43b0e6({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x221808=new _0x1f5362(_0x5e9397['content']['document']),_0x598e3f=[];for(const _0x460950 of _0x221808['createRangeIn'](_0x5e9397['content'])['getItems']())_0x460950['is']('element')&&_0x58bdc2['match'](_0x460950)&&_0x598e3f['push'](_0x460950),_0x460950['is']('element')&&_0x55d1ca['match'](_0x460950)&&_0x221808['removeStyle']('list-style-type',_0x460950);for(const _0x4ecb27 of _0x598e3f)_0x221808['remove'](_0x4ecb27);});}['afterInit'](){!async function(_0x5b2cd6){const _0x53de04='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x26053b=0x78fa8,_0x47f60f=window['Date']['now'](),_0x5a3149=_0x5b2cd6['editor'],_0x4c80a8=new window['Promise'](_0x2011a9=>{_0x5a3149['once']('ready',_0x2011a9);}),_0x473741={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x5c852c=_0x5a3149['config']['get']('licenseKey');async function _0xcf71d9(){let _0x1dbea1,_0x74d766=null,_0x1e1e6f=null;try{return'GPL'==_0x5c852c?'NotAllowed':(_0x1dbea1=_0x36e3c5(),_0x1dbea1?(_0x1dbea1['usageEndpoint']&&(_0x1e1e6f=_0x303f2f(_0x1dbea1['usageEndpoint'],_0x1dbea1['jti'])),await _0x13de40()?_0x1f77a0()?_0x31e71b()?'Expired':_0x31088d()?('evaluation'==_0x1dbea1['licenseType']&&(_0x74d766=_0x1c179a('EvaluationLimit')),await _0x4763ab()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x31e71b(){const _0x3bf000=['evaluation','trial']['includes'](_0x1dbea1['licenseType'])?_0x47f60f/0x3e8:0xe10*_0x26053b;return _0x1dbea1['exp']<_0x3bf000;}function _0x1f77a0(){const _0x2f7174=_0x1dbea1['features'];return!!_0x2f7174&&(!!_0x2f7174['includes']('*')||!!_0x2f7174['includes']('MLL'));}function _0x31088d(){const _0x110f4c=_0x1dbea1['licensedHosts'];if(!_0x110f4c||0x0==_0x110f4c['length'])return!0x0;const {hostname:_0x33c155}=new URL(window['location']['href']);if(_0x110f4c['includes'](_0x33c155))return!0x0;const _0x21082c=_0x33c155['split']('.');return _0x110f4c['filter'](_0x2aa26f=>_0x2aa26f['includes']('*'))['map'](_0x5258aa=>_0x5258aa['split']('.'))['filter'](_0x35971c=>_0x35971c['length']<=_0x21082c['length'])['map'](_0x1cd07f=>Array(_0x21082c['length']-_0x1cd07f['length'])['fill']('*'===_0x1cd07f[0x0]?'*':'')['concat'](_0x1cd07f))['some'](_0x4a3eb3=>_0x21082c['every']((_0xa3b872,_0x5c1ed2)=>_0x4a3eb3[_0x5c1ed2]===_0xa3b872||'*'===_0x4a3eb3[_0x5c1ed2]));}function _0x4763ab(){return _0x74d766&&_0x1e1e6f?new window['Promise']((_0x201ce8,_0xc4d59a)=>{_0x74d766['then'](_0x201ce8,_0xc4d59a),_0x1e1e6f['then'](_0xc840a7=>{'Valid'!=_0xc840a7&&_0x201ce8(_0xc840a7);},_0xc4d59a);}):_0x74d766||_0x1e1e6f||'Valid';}}function _0x303f2f(_0x250db3,_0x354547){return new window['Promise'](_0x47c45e=>{if(_0x2a3f29())return _0x47c45e('Valid');_0xf20a3b(),_0x5a3149['decorate']('_sendUsageRequest');let _0x14607c=!0x1;const _0x5322e8=_0x42c314();function _0x309c32(_0x24ac40){return!!_0x24ac40&&('object'==typeof _0x24ac40||'function'==typeof _0x24ac40)&&'function'==typeof _0x24ac40['then']&&'function'==typeof _0x24ac40['catch'];}function _0x43b8ec(_0x581d04){_0x470374(_0x581d04)['then'](_0x54079f=>_0x54079f&&'ok'==_0x54079f['status']?_0x41354d(_0x5cfbec(_0x5322e8+_0x354547))!=_0x54079f['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4e1a85=>(_0x14377f(),_0x4e1a85),()=>{const _0x4b2643=_0x28b5d4();return null==_0x4b2643?(_0x14377f(),'Valid'):_0x47f60f-_0x4b2643>0x240c8400?'UsageLimit':'Valid';})['then'](_0x47c45e)['catch'](()=>{_0x47c45e('UsageLimit');});const _0x2ed75a=0x36ee80;function _0x14377f(){const _0x5e56f1='llct-'+_0x41354d(_0x5cfbec(_0x250db3)),_0x387707=_0x2ace61(_0x41354d(window['Math']['ceil'](_0x47f60f/_0x2ed75a)));window['localStorage']['setItem'](_0x5e56f1,_0x387707);}function _0x28b5d4(){const _0x1be9b4='llct-'+_0x41354d(_0x5cfbec(_0x250db3)),_0x359128=window['localStorage']['getItem'](_0x1be9b4);return _0x359128?window['parseInt'](_0x2ace61(_0x359128),0x10)*_0x2ed75a:null;}function _0x470374(_0x4ce749){return new window['Promise']((_0x3d3971,_0x95a82c)=>{_0x4ce749['then'](_0x3d3971,_0x95a82c),window['setTimeout'](_0x95a82c,0x1d4c0);});}}_0x5a3149['on']('_sendUsageRequest',(_0x47b0e6,_0x5cfdcb)=>{if(_0x5cfdcb[0x0]!=_0x250db3)return _0x47c45e('UsageLimit');_0x5cfdcb[0x1]={..._0x5cfdcb[0x1],'requestId':_0x5322e8};},{'priority':'high'}),_0x5a3149['on']('_sendUsageRequest',_0x28bac7=>{_0x309c32(_0x28bac7['return'])&&(_0x14607c=!0x0,_0x43b8ec(_0x28bac7['return']));},{'priority':'low'}),_0x4c80a8['then'](()=>{_0x14607c||_0x47c45e('UsageLimit');});});function _0x2a3f29(){return'auto'==_0x5a3149['editing']['view']['_overlayModeHint'];}function _0xf20a3b(){_0x5a3149['editing']['view']['_overlayModeHint']='auto';}}function _0x1c179a(_0x24ff38){const _0x59eaab=[new window['Promise'](_0x2fac5b=>setTimeout(_0x2fac5b,0x93ecc)),_0x4c80a8['then'](()=>new window['Promise'](_0x4ee64a=>{let _0x3b51d4=0x0;_0x5a3149['model']['on']('applyOperation',(_0x52339d,_0x13c399)=>{_0x13c399[0x0]['isDocumentOperation']&&_0x3b51d4++,0x5e8==_0x3b51d4&&(_0x4ee64a(),_0x52339d['off']());});}))];return window['Promise']['race'](_0x59eaab)['then'](()=>_0x24ff38);}async function _0x54f948(){await _0x4c80a8,_0x5a3149['model']['change']=_0x23f87b,_0x5a3149['model']['enqueueChange']=_0x23f87b,_0x5a3149['enableReadOnlyMode']('model');}function _0x1dc4a4(_0x524f49){const _0x5ab5c3=_0x14ba5e();_0x5a3149[_0x5ab5c3]='multiLevelListLicenseKey'+_0x524f49,'Valid'!=_0x524f49&&_0x54f948();}function _0x14ba5e(){const _0x5bcfb5=window['String'](window['performance']['now']())['replace']('.','');let _0x3a0c84='u';for(let _0x5802ce=0x0;_0x5802ce<_0x5bcfb5['length'];_0x5802ce+=0x2){let _0x103110=window['parseInt'](_0x5bcfb5['substring'](_0x5802ce,_0x5802ce+0x2));_0x103110>=0x3e&&(_0x103110-=0x3e),_0x3a0c84+=_0x53de04[_0x103110];}return _0x3a0c84;}function _0x36e3c5(){const _0x560a2c=_0x5c852c['split']('.');if(0x3!=_0x560a2c['length'])return null;return _0x9f6d1a(_0x560a2c[0x1]);function _0x9f6d1a(_0x1fd5e4){const _0x1f44fb=_0xd5497d(_0x1fd5e4);return _0x1f44fb&&_0x374450()?_0x1f44fb:null;function _0x374450(){const _0x5ddc6b=_0x1f44fb['jti'],_0x187842=window['parseInt'](_0x5ddc6b['substring'](_0x5ddc6b['length']-0x8),0x10),_0x51d089={..._0x1f44fb,'jti':_0x5ddc6b['substring'](0x0,_0x5ddc6b['length']-0x8)};return delete _0x51d089['vc'],_0x5cfbec(_0x51d089)==_0x187842;}}}async function _0x13de40(){let _0x450831=!0x0;try{const [_0x3fd6c7,_0x13a709,_0x4d1f6e]=_0x5c852c['split']('.');return _0x1d793e(_0x3fd6c7),await _0x577d9b(_0x3fd6c7,_0x13a709,_0x4d1f6e),_0x450831;}catch{return!0x1;}function _0x1d793e(_0x3024c0){const _0x2472d2=_0xd5497d(_0x3024c0);_0x2472d2&&'ES256'==_0x2472d2['alg']||(_0x450831=!0x1);}async function _0x577d9b(_0x44ca74,_0x5b859e,_0x1c7926){const _0x18610b=window['Uint8Array']['from'](_0x5cbf72(_0x1c7926),_0x3ed3f8=>_0x3ed3f8['charCodeAt'](0x0)),_0x5a15e1=new window['TextEncoder']()['encode'](_0x44ca74+'.'+_0x5b859e),_0x3a6d6c=window['crypto']['subtle'];if(!_0x3a6d6c)return;const _0x228f1e=await _0x3a6d6c['importKey']('jwk',_0x473741,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3a6d6c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x228f1e,_0x18610b,_0x5a15e1)||(_0x450831=!0x1);}}function _0xd5497d(_0x92a854){return _0x92a854['startsWith']('ey')?JSON['parse'](_0x5cbf72(_0x92a854)):null;}function _0x5cbf72(_0x282f8f){return window['atob'](_0x282f8f['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5cfbec(_0x28ad97){let _0x4829b1=0x1505;function _0x35f03e(_0x270cdc){for(let _0x5cbe4b=0x0;_0x5cbe4b<_0x270cdc['length'];_0x5cbe4b++){const _0x228622=_0x270cdc['charCodeAt'](_0x5cbe4b);_0x4829b1=(_0x4829b1<<0x5)+_0x4829b1+_0x228622,_0x4829b1&=_0x4829b1;}}function _0x3313d6(_0x3cc7ad){Array['isArray'](_0x3cc7ad)?_0x3cc7ad['forEach'](_0x3313d6):_0x3cc7ad&&'object'==typeof _0x3cc7ad?Object['entries'](_0x3cc7ad)['sort']()['forEach'](([_0x331f09,_0x211fcb])=>{_0x35f03e(_0x331f09),_0x3313d6(_0x211fcb);}):_0x35f03e(window['String'](_0x3cc7ad));}return _0x3313d6(_0x28ad97),_0x4829b1>>>0x0;}function _0x41354d(_0x3ce7c7){return _0x3ce7c7['toString'](0x10)['padStart'](0x8,'0');}function _0x2ace61(_0x4f9ea3){return _0x4f9ea3['split']('')['reverse']()['join']('');}function _0x23f87b(){}_0x1dc4a4(await _0xcf71d9());}(this);}};function E(_0x318e40,_0x2ececd,_0x5b0f91){let _0x7a189b=_0x2ececd['listMarkers'][_0x318e40%_0x2ececd['listMarkers']['length']];if(void 0x0===_0x7a189b['showMarkerPath']||_0x7a189b['showMarkerPath'])return _0x5b0f91['slice'](0x0,_0x318e40+0x1)['map']((_0x1dccf8,_0x4f15fe)=>(_0x7a189b=_0x2ececd['listMarkers'][_0x4f15fe%_0x2ececd['listMarkers']['length']],N(_0x7a189b['marker'],_0x1dccf8)))['join']('');{const _0x8a5b28=_0x5b0f91[_0x5b0f91['length']-0x1];return N(_0x7a189b['marker'],_0x8a5b28);}}function N(_0x5ad3e0,_0x24d10c){return'function'==typeof _0x5ad3e0?_0x5ad3e0(_0x24d10c):_0x5ad3e0;}function _(_0x4ab21c,_0x32a71b){return(_0xdc7979,_0x59e393,_0x34ec1e)=>{const _0x563ef9=_0x59e393['viewItem'];if(_0x59e393['modelRange']||Object['assign'](_0x59e393,_0x34ec1e['convertChildren'](_0x59e393['viewItem'],_0x59e393['modelCursor'])),!_0x34ec1e['consumable']['test'](_0x563ef9,{'classes':_0x4ab21c['className']}))return;const _0xfaddfb=Array['from'](_0x59e393['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x560ba9=>_0x32a71b['checkAttribute'](_0x560ba9,'listItemId'));if(!_0xfaddfb['length'])return;_0x34ec1e['consumable']['consume'](_0x563ef9,{'classes':_0x4ab21c['className']}),_0x34ec1e['consumable']['consume'](_0x563ef9,{'classes':'multi-level-list'}),_0x34ec1e['consumable']['consume'](_0x563ef9,{'styles':'list-style-type'});const _0x32765a=_0xfaddfb[0x0]['getAttribute']('listIndent');for(const _0x32d98d of _0xfaddfb)_0x32d98d['getAttribute']('listIndent')==_0x32765a&&(_0x34ec1e['writer']['setAttribute']('listType',_0x4ab21c['listType'],_0x32d98d),_0x34ec1e['writer']['setAttribute']('listMarkerStyle',_0x4ab21c['listMarkerStyle'],_0x32d98d));};}function A(_0x87cd7c,_0x5a616f){const _0x40c627=_0x87cd7c['t'],t=_0x87cd7c['t'];switch(_0x5a616f){case'Start\x20at':return _0x40c627('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x40c627('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x40c627('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x40c627('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 _0x5a616f;}}var V=class extends _0x6a9ec3{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new _0x1458bc();['keystrokes']=new _0x2fe271();['focusables']=new _0x4bf658();['focusCycler'];constructor(_0x26ac94,{enabledProperties:_0x2c2420,styleButtonViews:_0x5ec4ce,styleGridAriaLabel:_0x27104e}){super(_0x26ac94);const _0x284d2d=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x3deeaa({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x2c2420['styles']?(this['stylesView']=this['_createStylesView'](_0x5ec4ce,_0x27104e),this['children']['add'](this['stylesView'])):_0x284d2d['push']('ck-multi-level-list-properties_without-styles'),_0x2c2420['startIndex']&&(this['_addListPropertyViews'](_0x2c2420),_0x284d2d['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x284d2d},'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 _0x465621 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x465621['element']);_0x4dc4c0({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x3fa51e['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 _0xb26000=_0x376b57=>_0x376b57['stopPropagation']();this['keystrokes']['set']('arrowright',_0xb26000),this['keystrokes']['set']('arrowleft',_0xb26000),this['keystrokes']['set']('arrowup',_0xb26000),this['keystrokes']['set']('arrowdown',_0xb26000);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x3a63fe,_0x366632){const _0x52ae14=new _0x6a9ec3(this['locale']);return _0x52ae14['children']=_0x52ae14['createCollection'](),_0x52ae14['children']['addMany'](_0x3a63fe),_0x52ae14['setTemplate']({'tag':'div','attributes':{'aria-label':_0x366632,'class':['ck','ck-multi-level-list-styles']},'children':_0x52ae14['children']}),_0x52ae14['children']['delegate']('execute')['to'](this),_0x52ae14['focus']=function(){this['children']['first']['focus']();},_0x52ae14['focusTracker']=new _0x1458bc(),_0x52ae14['keystrokes']=new _0x2fe271(),_0x52ae14['render'](),_0x52ae14['keystrokes']['listenTo'](_0x52ae14['element']),_0x52ae14;}['_addListPropertyViews'](_0x2fb096){const _0x52fdff=[];_0x2fb096['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x52fdff['push'](this['startIndexFieldView'])),_0x2fb096['styles']?(this['additionalPropertiesCollapsibleView']=new _0x444240(this['locale'],_0x52fdff),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x52fdff,'isEnabled',(..._0x508028)=>_0x508028['some'](_0x382176=>_0x382176)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x2a3ccd,_0x2815d5,_0x277a43)=>{_0x277a43||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x52fdff);}['_createStartIndexField'](){const _0x48dc0b=new _0x5f1841(this['locale'],_0xd51343);return _0x48dc0b['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x48dc0b['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x48dc0b['fieldView']['on']('input',()=>{const _0x16121a=_0x48dc0b['fieldView']['element'],_0x292d2d=_0x16121a['valueAsNumber'];Number['isNaN'](_0x292d2d)?_0x48dc0b['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x16121a['checkValidity']()?this['fire']('listStart',{'startIndex':_0x292d2d}):_0x48dc0b['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x48dc0b;}},K=class extends _0x47b2a6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x21acf5=this['editor'];_0x21acf5['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x1d9cbc,parentCommandName:_0x9e6d70,buttonLabel:_0x3cda94,buttonIcon:_0x5150cd,styleGridAriaLabel:_0x134acb,styleDefinitions:_0x57faca}){const _0x7ac2e3=_0x1d9cbc['commands']['get'](_0x9e6d70),_0x17c24b=_0x1d9cbc['config']['get']('list.properties')||{},_0x5b5ae5=_0x1d9cbc['plugins']['has']('ListProperties'),_0x445aaa=_0x17c24b['startIndex'];return _0x5b5ae5&&_0x445aaa?_0x46fa9f=>{const _0x6661be=_0x3c699f(_0x46fa9f,_0x54eb62),_0x50afa5=_0x6661be['buttonView'];return _0x6661be['bind']('isEnabled')['to'](_0x7ac2e3),_0x6661be['class']='ck-list-styles-dropdown',_0x50afa5['on']('execute',()=>{_0x1d9cbc['execute'](_0x9e6d70),_0x1d9cbc['editing']['view']['focus']();}),_0x50afa5['set']({'label':_0x3cda94,'icon':_0x5150cd,'tooltip':!0x0,'isToggleable':!0x0}),_0x50afa5['bind']('isOn')['to'](_0x7ac2e3,'value',_0x982f34=>!!_0x982f34),_0x6661be['once']('change:isOpen',()=>{const _0x467f3e=function({editor:_0x58cb8b,dropdownView:_0x3ab086,styleDefinitions:_0x5a7d50,styleGridAriaLabel:_0x548197}){const _0xddaa7=_0x58cb8b['locale'],_0x417f54=_0x58cb8b['config']['get']('list.properties'),_0x1843f5=null;_0x417f54['reversed']=!0x1,_0x5a7d50['length']||(_0x417f54['styles']=!0x1);const _0x3db402=new V(_0xddaa7,{'styleGridAriaLabel':_0x548197,'enabledProperties':_0x417f54,'styleButtonViews':_0x1843f5});if(_0x417f54['startIndex']){const _0x3b36ac=_0x58cb8b['commands']['get']('listStart');_0x3db402['startIndexFieldView']['bind']('isEnabled')['to'](_0x3b36ac),_0x3db402['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x3b36ac),_0x3db402['on']('listStart',(_0x2a9436,_0x3d8d93)=>_0x58cb8b['execute']('listStart',_0x3d8d93));}return _0x3db402['delegate']('execute')['to'](_0x3ab086),_0x3db402;}({'editor':_0x1d9cbc,'dropdownView':_0x6661be,'parentCommandName':_0x9e6d70,'styleGridAriaLabel':_0x134acb,'styleDefinitions':_0x57faca});_0x6661be['panelView']['children']['add'](_0x467f3e);}),_0x6661be['on']('execute',()=>{_0x1d9cbc['editing']['view']['focus']();}),_0x6661be;}:_0x4e4a2a=>{const _0x3496b0=new _0x1c6a27(_0x4e4a2a);return _0x3496b0['set']({'label':_0x3cda94,'icon':_0x5150cd,'tooltip':!0x0,'isToggleable':!0x0}),_0x3496b0['bind']('isOn')['to'](_0x7ac2e3,'value',_0x45d964=>!!_0x45d964),_0x3496b0['on']('execute',()=>{_0x1d9cbc['execute'](_0x9e6d70),_0x1d9cbc['editing']['view']['focus']();}),_0x3496b0;};}({'editor':_0x21acf5,'parentCommandName':'multiLevelList','buttonLabel':A(_0x21acf5['locale'],'Multi-level\x20List'),'buttonIcon':_0x4da09d,'styleGridAriaLabel':A(_0x21acf5['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x21acf5['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x43383a=_0x21acf5['commands']['get']('multiLevelList'),_0x27ebd7=new _0x45dc5f(_0x21acf5['locale']);return _0x27ebd7['set']({'label':A(_0x21acf5['locale'],'Multi-level\x20List'),'icon':_0x4da09d}),_0x27ebd7['bind']('isEnabled')['to'](_0x43383a),_0x27ebd7['bind']('isOn')['to'](_0x43383a,'value',_0x4afec3=>!!_0x4afec3),_0x27ebd7['on']('execute',()=>{_0x21acf5['execute']('multiLevelList'),_0x21acf5['editing']['view']['focus']();}),_0x27ebd7;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x23ce33=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4bbdaa;for(const _0x39d495 in _0x23ce33){const _0x1c098f=_0x39d495,_0x20e6b8=_0x23ce33[_0x1c098f];if('multiLevelListLicenseKeyValid'==_0x20e6b8||'multiLevelListLicenseKeyInvalid'==_0x20e6b8||'multiLevelListLicenseKeyExpired'==_0x20e6b8||'multiLevelListLicenseKeyDomainLimit'==_0x20e6b8||'multiLevelListLicenseKeyNotAllowed'==_0x20e6b8||'multiLevelListLicenseKeyEvaluationLimit'==_0x20e6b8||'multiLevelListLicenseKeyUsageLimit'==_0x20e6b8){delete _0x23ce33[_0x1c098f],_0x4bbdaa=_0x20e6b8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x4bbdaa&&_0x23ce33['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x4bbdaa&&_0x23ce33['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x4bbdaa&&_0x23ce33['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x4bbdaa&&_0x23ce33['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x4bbdaa&&_0x23ce33['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x4bbdaa&&_0x23ce33['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x47b2a6{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 _0x499dc5,Plugin as _0x1af49d}from'@ckeditor/ckeditor5-core';import{Matcher as _0x4b3683,ViewUpcastWriter as _0x2f69cc}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x4a07fc,_isFirstBlockOfListItem as _0x563a5a}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0x5705a5,KeystrokeHandler as _0x2039ea,createElement as _0x4fbf7b,first as _0x4460e4,global as _0x483515,uid as _0x1fbcfb}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x48428e}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x5d93c0,CollapsibleView as _0x8a752f,FocusCycler as _0x3736c,LabeledFieldView as _0x324ef3,MenuBarMenuListItemButtonView as _0x36978c,SplitButtonView as _0x4d13eb,View as _0x54be72,ViewCollection as _0x3f196a,addKeyboardHandlingForGrid as _0x1fe7a2,createDropdown as _0x53aff3,createLabeledInputNumber as _0x525a1e}from'@ckeditor/ckeditor5-ui';var S=class extends _0x499dc5{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x2e952b,_0x4e0015,_0x203370){super(_0x2e952b),this['defaultListMarkerStyle']=_0x4e0015,this['_listDefinitions']=_0x203370,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3a9f63={}){const _0x3b67a1=this['editor']['model'],_0x4bae1b=_0x3a9f63['listMarkerStyle']||this['defaultListMarkerStyle'];_0x3b67a1['change'](()=>{const _0x573ea8=this['_getListTypeFromListMarkerStyle'](_0x4bae1b);if(!_0x573ea8)return;const _0xdf496b=_0x573ea8+'List';this['editor']['execute'](_0xdf496b,{'additionalAttributes':{'listMarkerStyle':_0x4bae1b}});});}['_getValue'](){const _0x479cc7=_0x4460e4(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x479cc7)?_0x479cc7['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x356ffc=this['editor'],_0x1b06df=_0x356ffc['commands']['get']('customNumberedList'),_0x3f4ad3=_0x356ffc['commands']['get']('customBulletedList');return _0x1b06df['isEnabled']||_0x3f4ad3['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x1cb478){const _0x53be35=this['_listDefinitions']['find'](_0x354c14=>_0x354c14['listMarkerStyle']==_0x1cb478);return _0x53be35?_0x53be35['listType']:null;}},x=class extends _0x1af49d{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4a07fc];}constructor(_0x3597bf){super(_0x3597bf);const _0xf860ab=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x4182c3=>_0x4182c3+'.'}]},..._0xf860ab];}['init'](){const _0x351076=this['editor'],_0x480bc0=_0x351076['model'],_0x365346=_0x351076['editing']['view'],_0x2e4a45=_0x351076['plugins']['get'](_0x4a07fc);_0x351076['commands']['add']('multiLevelList',new S(_0x351076,'legal',this['_listDefinitions'])),_0x480bc0['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x480bc0['schema']['addAttributeCheck']((_0x1fd3e2,_0x4eb80d)=>{const _0x2e5ec1=_0x1fd3e2['last'];if('listMarker'==_0x4eb80d||'listMarkerStyle'==_0x4eb80d)return!(!_0x2e5ec1['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x5d3f2b=>_0x5d3f2b['listType']==_0x2e5ec1['getAttribute']('listType')))&&void 0x0;});for(const _0x35bc20 of this['_listDefinitions'])_0x351076['conversion']['for']('upcast')['add'](_0x6235d5=>{_0x6235d5['on']('element:'+('customNumbered'==_0x35bc20['listType']?'ol':'ul'),_(_0x35bc20,_0x480bc0['schema']),{'priority':'low'});}),_0x2e4a45['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x13aa1c,_0x3e6265,_0x2e0634){_0x3e6265==_0x35bc20['listMarkerStyle']?(_0x13aa1c['addClass'](['multi-level-list',_0x35bc20['className']],_0x2e0634),_0x13aa1c['setStyle']('list-style-type','none',_0x2e0634)):(_0x13aa1c['removeClass'](['multi-level-list',_0x35bc20['className']],_0x2e0634),_0x13aa1c['removeStyle']('list-style-type',_0x2e0634));}}),_0x2e4a45['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x3244e7,_0x530b22,{dataPipeline:_0x12bc28}){if(!_0x530b22['hasAttribute']('listMarker'))return null;if(_0x530b22['getAttribute']('listType')!=_0x35bc20['listType']||_0x530b22['getAttribute']('listMarkerStyle')!=_0x35bc20['listMarkerStyle'])return null;const _0x2da1f8=String(_0x530b22['getAttribute']('listMarker')),_0x509619=this['canInjectMarkerIntoElement'](_0x530b22);return _0x3244e7['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x12bc28&&{'contenteditable':'false','data-multi-level-list-marker':_0x2da1f8}},function(_0x2d3970){const _0x1008f3=this['toDomElement'](_0x2d3970);return _0x509619?(_0x1008f3['appendChild'](_0x4fbf7b(_0x2d3970,'span',{},_0x12bc28?_0x2d3970['createTextNode'](_0x2da1f8):[])),_0x1008f3['appendChild'](_0x2d3970['createTextNode']('\u00a0'))):_0x12bc28&&_0x1008f3['appendChild'](_0x2d3970['createTextNode'](_0x2da1f8)),_0x1008f3;});},'canInjectMarkerIntoElement':_0x1b1ccc=>_0x480bc0['schema']['checkChild'](_0x1b1ccc,'$text')&&_0x480bc0['schema']['checkChild'](_0x1b1ccc,'$inlineObject')&&!_0x480bc0['schema']['isLimit'](_0x1b1ccc)&&_0x1b1ccc['getAttribute']('listType')==_0x35bc20['listType']&&_0x1b1ccc['getAttribute']('listMarkerStyle')==_0x35bc20['listMarkerStyle']});_0x351076['conversion']['for']('upcast')['add'](_0x772c06=>{_0x772c06['on']('element:span',function(_0x4f01c7){return(_0x2dfb46,_0xcf114,{writer:_0x4243c2,consumable:_0x5a9192})=>{const _0x598607=_0xcf114['modelCursor'],_0x336515=_0x598607['parent'],_0x5718fb=_0xcf114['viewItem'];if(_0x5a9192['consume'](_0x5718fb,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x598607['isAtStart']&&_0x336515['hasAttribute']('listType')&&_0x5718fb['childCount']>0x0){const _0x24add9=_0x4f01c7['createRangeIn'](_0x5718fb);let _0x2ef6bf='';for(const _0x35a98a of _0x24add9['getItems']())_0x35a98a['is']('$textProxy')?(_0x2ef6bf+=_0x35a98a['data']['trim'](),_0x5a9192['consume'](_0x35a98a['textNode'])):_0x5a9192['consume'](_0x35a98a,{'name':!0x0});_0x4243c2['setAttribute']('listMarker',_0x2ef6bf['trim'](),_0x336515);}};}(_0x365346));}),_0x2e4a45['on']('postFixer',(_0x360286,{listNodes:_0x2bad34,writer:_0x1f3f8b})=>{const _0x454d5f=[];for(const {node:_0x3a21d7,previousNodeInList:_0x22ec81}of _0x2bad34){const _0x178773=_0x3a21d7['getAttribute']('listType'),_0x3621e1=_0x3a21d7['getAttribute']('listMarkerStyle')||('customNumbered'==_0x178773?'legal':void 0x0),_0x28a440=this['_listDefinitions']['find'](_0x10b54e=>_0x10b54e['listType']==_0x178773&&_0x10b54e['listMarkerStyle']==_0x3621e1);if('customNumbered'!=_0x178773&&'customBulleted'!=_0x178773&&(_0x3a21d7['hasAttribute']('listMarker')&&(_0x1f3f8b['removeAttribute']('listMarker',_0x3a21d7),_0x360286['return']=!0x0),_0x3a21d7['hasAttribute']('listMarkerStyle')&&(_0x1f3f8b['removeAttribute']('listMarkerStyle',_0x3a21d7),_0x360286['return']=!0x0)),!_0x28a440){'customBulleted'!=_0x178773||_0x3621e1||(_0x1f3f8b['setAttribute']('listType','bulleted',_0x3a21d7),_0x360286['return']=!0x0);continue;}_0x3a21d7['hasAttribute']('listMarkerStyle')||(_0x1f3f8b['setAttribute']('listMarkerStyle',_0x3621e1,_0x3a21d7),_0x360286['return']=!0x0);const _0xef8b18=_0x3a21d7['getAttribute']('listIndent');if(_0x22ec81&&_0x22ec81['getAttribute']('listItemId')==_0x3a21d7['getAttribute']('listItemId'))continue;if(_0x454d5f['length']=_0xef8b18+0x1,_0x351076['config']['get']('list.enableSkipLevelLists')){for(let _0x4a2456=0x0;_0x4a2456<_0xef8b18;_0x4a2456++)void 0x0===_0x454d5f[_0x4a2456]&&(_0x454d5f[_0x4a2456]=0x1);}_0x22ec81||_0x454d5f[_0xef8b18]?_0x22ec81&&_0x22ec81['getAttribute']('listType')!=_0x28a440['listType']?_0x454d5f[_0xef8b18]=0x1:_0x454d5f[_0xef8b18]++:_0x454d5f[_0xef8b18]=_0x3a21d7['getAttribute']('listStart')||0x1;const _0x5f4ae6=E(_0xef8b18,_0x28a440,_0x454d5f);_0x3a21d7['getAttribute']('listMarker')!=_0x5f4ae6&&(_0x1f3f8b['setAttribute']('listMarker',_0x5f4ae6,_0x3a21d7),_0x360286['return']=!0x0);}}),_0x2e4a45['on']('checkElement',(_0x2b556e,{modelElement:_0x19000f,viewElement:_0x457a73})=>{const _0x163eaa=_0x19000f['getAttribute']('listType');if('customNumbered'!=_0x163eaa&&'customBulleted'!=_0x163eaa)return;if(_0x480bc0['schema']['checkChild'](_0x19000f,'$text'))return;const _0x282a08=_0x563a5a(_0x19000f);let _0x91a057=!0x1;const _0x248019=_0x365346['createPositionBefore'](_0x457a73)['getWalker']({'direction':'backward'});for(const {item:_0x2d2ba9}of _0x248019)if(_0x2d2ba9['is']('element')){if(_0x351076['editing']['mapper']['toModelElement'](_0x2d2ba9))break;if(_0x2d2ba9['getCustomProperty']('listItemMarker')){_0x91a057=!0x0;break;}}_0x91a057!=_0x282a08&&(_0x2b556e['return']=!0x0,_0x2b556e['stop']());});const _0x4a9b8c=_0x351076['editing']['view']['document'];this['listenTo'](_0x4a9b8c,'clipboardOutput',(_0x1f7c39,_0x5092ab)=>{const _0x3d13ce=new _0x4b3683({'name':'span','classes':'multi-level-list__marker'}),_0x138560=new _0x4b3683({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x141acd=new _0x2f69cc(_0x5092ab['content']['document']),_0x1fdb8f=[];for(const _0x2ae482 of _0x141acd['createRangeIn'](_0x5092ab['content'])['getItems']())_0x2ae482['is']('element')&&_0x3d13ce['match'](_0x2ae482)&&_0x1fdb8f['push'](_0x2ae482),_0x2ae482['is']('element')&&_0x138560['match'](_0x2ae482)&&_0x141acd['removeStyle']('list-style-type',_0x2ae482);for(const _0x2c987b of _0x1fdb8f)_0x141acd['remove'](_0x2c987b);});}['afterInit'](){!async function(_0x19acbc){const _0x57a581='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0xdfd80f=0x78fc0,_0x570796=window['Date']['now'](),_0x4490d7=_0x19acbc['editor'],_0x2d467c=new window['Promise'](_0x584536=>{_0x4490d7['once']('ready',_0x584536);}),_0x20234c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2f4bf4=_0x4490d7['config']['get']('licenseKey');async function _0x1fc3da(){let _0x527ba6,_0x3ff969=null,_0x3227bf=null;try{return'GPL'==_0x2f4bf4?'NotAllowed':(_0x527ba6=_0x1a78bd(),_0x527ba6?(_0x527ba6['usageEndpoint']&&(_0x3227bf=_0x331482(_0x527ba6['usageEndpoint'],_0x527ba6['jti'])),await _0xa0e9b8()?_0x89bfda()?_0x1dd93c()?'Expired':_0x5429ce()?('evaluation'==_0x527ba6['licenseType']&&(_0x3ff969=_0x38764e('EvaluationLimit')),await _0xed794f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1dd93c(){const _0x2e0f85=['evaluation','trial']['includes'](_0x527ba6['licenseType'])?_0x570796/0x3e8:0xe10*_0xdfd80f;return _0x527ba6['exp']<_0x2e0f85;}function _0x89bfda(){const _0x2eff3a=_0x527ba6['features'];return!!_0x2eff3a&&(!!_0x2eff3a['includes']('*')||!!_0x2eff3a['includes']('MLL'));}function _0x5429ce(){const _0x162d78=_0x527ba6['licensedHosts'];if(!_0x162d78||0x0==_0x162d78['length'])return!0x0;const {hostname:_0x5469c6}=new URL(window['location']['href']);if(_0x162d78['includes'](_0x5469c6))return!0x0;const _0x3e5788=_0x5469c6['split']('.');return _0x162d78['filter'](_0x152800=>_0x152800['includes']('*'))['map'](_0x35312c=>_0x35312c['split']('.'))['filter'](_0x186739=>_0x186739['length']<=_0x3e5788['length'])['map'](_0x5a603c=>Array(_0x3e5788['length']-_0x5a603c['length'])['fill']('*'===_0x5a603c[0x0]?'*':'')['concat'](_0x5a603c))['some'](_0x12b2c8=>_0x3e5788['every']((_0x5d9857,_0x278b71)=>_0x12b2c8[_0x278b71]===_0x5d9857||'*'===_0x12b2c8[_0x278b71]));}function _0xed794f(){return _0x3ff969&&_0x3227bf?new window['Promise']((_0x571e63,_0x32360a)=>{_0x3ff969['then'](_0x571e63,_0x32360a),_0x3227bf['then'](_0x4f287a=>{'Valid'!=_0x4f287a&&_0x571e63(_0x4f287a);},_0x32360a);}):_0x3ff969||_0x3227bf||'Valid';}}function _0x331482(_0x31a095,_0xe7216d){return new window['Promise'](_0x517c51=>{if(_0x576929())return _0x517c51('Valid');_0x2fb639(),_0x4490d7['decorate']('_sendUsageRequest');let _0x7f088f=!0x1;const _0x2082a2=_0x1fbcfb();function _0x4c26d1(_0x25457b){return!!_0x25457b&&('object'==typeof _0x25457b||'function'==typeof _0x25457b)&&'function'==typeof _0x25457b['then']&&'function'==typeof _0x25457b['catch'];}function _0x2ac0a6(_0x3e822c){_0xf095fc(_0x3e822c)['then'](_0x5d80fa=>_0x5d80fa&&'ok'==_0x5d80fa['status']?_0x28ea95(_0x3f3823(_0x2082a2+_0xe7216d))!=_0x5d80fa['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x7651e6=>(_0x16c182(),_0x7651e6),()=>{const _0x281b26=_0x5b6e8d();return null==_0x281b26?(_0x16c182(),'Valid'):_0x570796-_0x281b26>0x240c8400?'UsageLimit':'Valid';})['then'](_0x517c51)['catch'](()=>{_0x517c51('UsageLimit');});const _0x2e983b=0x36ee80;function _0x16c182(){const _0x3256a2='llct-'+_0x28ea95(_0x3f3823(_0x31a095)),_0x52e164=_0x4e9748(_0x28ea95(window['Math']['ceil'](_0x570796/_0x2e983b)));window['localStorage']['setItem'](_0x3256a2,_0x52e164);}function _0x5b6e8d(){const _0xbd3df0='llct-'+_0x28ea95(_0x3f3823(_0x31a095)),_0x30cb69=window['localStorage']['getItem'](_0xbd3df0);return _0x30cb69?window['parseInt'](_0x4e9748(_0x30cb69),0x10)*_0x2e983b:null;}function _0xf095fc(_0x3fee91){return new window['Promise']((_0x1c9db0,_0x390663)=>{_0x3fee91['then'](_0x1c9db0,_0x390663),window['setTimeout'](_0x390663,0x1d4c0);});}}_0x4490d7['on']('_sendUsageRequest',(_0x51329f,_0x8053d5)=>{if(_0x8053d5[0x0]!=_0x31a095)return _0x517c51('UsageLimit');_0x8053d5[0x1]={..._0x8053d5[0x1],'requestId':_0x2082a2};},{'priority':'high'}),_0x4490d7['on']('_sendUsageRequest',_0xebc1ef=>{_0x4c26d1(_0xebc1ef['return'])&&(_0x7f088f=!0x0,_0x2ac0a6(_0xebc1ef['return']));},{'priority':'low'}),_0x2d467c['then'](()=>{_0x7f088f||_0x517c51('UsageLimit');});});function _0x576929(){return'auto'==_0x4490d7['editing']['view']['_overlayModeHint'];}function _0x2fb639(){_0x4490d7['editing']['view']['_overlayModeHint']='auto';}}function _0x38764e(_0x3b6baf){const _0x3c5b11=[new window['Promise'](_0x13ec32=>setTimeout(_0x13ec32,0x93ecc)),_0x2d467c['then'](()=>new window['Promise'](_0x4cc0ce=>{let _0x26cfad=0x0;_0x4490d7['model']['on']('applyOperation',(_0x446ada,_0x9ae981)=>{_0x9ae981[0x0]['isDocumentOperation']&&_0x26cfad++,0x5e8==_0x26cfad&&(_0x4cc0ce(),_0x446ada['off']());});}))];return window['Promise']['race'](_0x3c5b11)['then'](()=>_0x3b6baf);}async function _0x25df11(){await _0x2d467c,_0x4490d7['model']['change']=_0x579a74,_0x4490d7['model']['enqueueChange']=_0x579a74,_0x4490d7['enableReadOnlyMode']('model');}function _0x4c0b8e(_0x303caa){const _0xd1fda9=_0x1e9f7d();_0x4490d7[_0xd1fda9]='multiLevelListLicenseKey'+_0x303caa,'Valid'!=_0x303caa&&_0x25df11();}function _0x1e9f7d(){const _0x13846f=window['String'](window['performance']['now']())['replace']('.','');let _0x44023e='u';for(let _0x32af79=0x0;_0x32af79<_0x13846f['length'];_0x32af79+=0x2){let _0x3a84a1=window['parseInt'](_0x13846f['substring'](_0x32af79,_0x32af79+0x2));_0x3a84a1>=0x3e&&(_0x3a84a1-=0x3e),_0x44023e+=_0x57a581[_0x3a84a1];}return _0x44023e;}function _0x1a78bd(){const _0x587d96=_0x2f4bf4['split']('.');if(0x3!=_0x587d96['length'])return null;return _0x15419d(_0x587d96[0x1]);function _0x15419d(_0xbd9068){const _0x1d967f=_0x37a3e7(_0xbd9068);return _0x1d967f&&_0x2e7207()?_0x1d967f:null;function _0x2e7207(){const _0x33a4ec=_0x1d967f['jti'],_0x42ee7c=window['parseInt'](_0x33a4ec['substring'](_0x33a4ec['length']-0x8),0x10),_0x24ddab={..._0x1d967f,'jti':_0x33a4ec['substring'](0x0,_0x33a4ec['length']-0x8)};return delete _0x24ddab['vc'],_0x3f3823(_0x24ddab)==_0x42ee7c;}}}async function _0xa0e9b8(){let _0xa1a13b=!0x0;try{const [_0x233f97,_0x454414,_0x1c010a]=_0x2f4bf4['split']('.');return _0x60bd5f(_0x233f97),await _0x19fe86(_0x233f97,_0x454414,_0x1c010a),_0xa1a13b;}catch{return!0x1;}function _0x60bd5f(_0x3b40ba){const _0xe9a846=_0x37a3e7(_0x3b40ba);_0xe9a846&&'ES256'==_0xe9a846['alg']||(_0xa1a13b=!0x1);}async function _0x19fe86(_0x197a0a,_0x48bf0d,_0x2b5c4c){const _0x45c9a2=window['Uint8Array']['from'](_0x2d85a4(_0x2b5c4c),_0x5e506a=>_0x5e506a['charCodeAt'](0x0)),_0x370618=new window['TextEncoder']()['encode'](_0x197a0a+'.'+_0x48bf0d),_0x103f4e=window['crypto']['subtle'];if(!_0x103f4e)return;const _0x323dc3=await _0x103f4e['importKey']('jwk',_0x20234c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x103f4e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x323dc3,_0x45c9a2,_0x370618)||(_0xa1a13b=!0x1);}}function _0x37a3e7(_0x1027c8){return _0x1027c8['startsWith']('ey')?JSON['parse'](_0x2d85a4(_0x1027c8)):null;}function _0x2d85a4(_0x646e26){return window['atob'](_0x646e26['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3f3823(_0x2e97bc){let _0x269d6c=0x1505;function _0x1c8fb3(_0x2dabb8){for(let _0x41c471=0x0;_0x41c471<_0x2dabb8['length'];_0x41c471++){const _0x5712fb=_0x2dabb8['charCodeAt'](_0x41c471);_0x269d6c=(_0x269d6c<<0x5)+_0x269d6c+_0x5712fb,_0x269d6c&=_0x269d6c;}}function _0x4bebc3(_0xd35965){Array['isArray'](_0xd35965)?_0xd35965['forEach'](_0x4bebc3):_0xd35965&&'object'==typeof _0xd35965?Object['entries'](_0xd35965)['sort']()['forEach'](([_0x1a8eb8,_0x199abe])=>{_0x1c8fb3(_0x1a8eb8),_0x4bebc3(_0x199abe);}):_0x1c8fb3(window['String'](_0xd35965));}return _0x4bebc3(_0x2e97bc),_0x269d6c>>>0x0;}function _0x28ea95(_0x4cb492){return _0x4cb492['toString'](0x10)['padStart'](0x8,'0');}function _0x4e9748(_0x3b8302){return _0x3b8302['split']('')['reverse']()['join']('');}function _0x579a74(){}_0x4c0b8e(await _0x1fc3da());}(this);}};function E(_0x267104,_0xf08384,_0x499f21){let _0x2a83e2=_0xf08384['listMarkers'][_0x267104%_0xf08384['listMarkers']['length']];if(void 0x0===_0x2a83e2['showMarkerPath']||_0x2a83e2['showMarkerPath'])return _0x499f21['slice'](0x0,_0x267104+0x1)['map']((_0x3e0f71,_0x29cb2f)=>(_0x2a83e2=_0xf08384['listMarkers'][_0x29cb2f%_0xf08384['listMarkers']['length']],N(_0x2a83e2['marker'],_0x3e0f71)))['join']('');{const _0x42a01e=_0x499f21[_0x499f21['length']-0x1];return N(_0x2a83e2['marker'],_0x42a01e);}}function N(_0x58d6e0,_0x335f71){return'function'==typeof _0x58d6e0?_0x58d6e0(_0x335f71):_0x58d6e0;}function _(_0x1020a7,_0x42b6dc){return(_0x111d5e,_0x4a4ed5,_0x20dd11)=>{const _0x571582=_0x4a4ed5['viewItem'];if(_0x4a4ed5['modelRange']||Object['assign'](_0x4a4ed5,_0x20dd11['convertChildren'](_0x4a4ed5['viewItem'],_0x4a4ed5['modelCursor'])),!_0x20dd11['consumable']['test'](_0x571582,{'classes':_0x1020a7['className']}))return;const _0x2b9365=Array['from'](_0x4a4ed5['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x31fa43=>_0x42b6dc['checkAttribute'](_0x31fa43,'listItemId'));if(!_0x2b9365['length'])return;_0x20dd11['consumable']['consume'](_0x571582,{'classes':_0x1020a7['className']}),_0x20dd11['consumable']['consume'](_0x571582,{'classes':'multi-level-list'}),_0x20dd11['consumable']['consume'](_0x571582,{'styles':'list-style-type'});const _0x50305a=_0x2b9365[0x0]['getAttribute']('listIndent');for(const _0x294c47 of _0x2b9365)_0x294c47['getAttribute']('listIndent')==_0x50305a&&(_0x20dd11['writer']['setAttribute']('listType',_0x1020a7['listType'],_0x294c47),_0x20dd11['writer']['setAttribute']('listMarkerStyle',_0x1020a7['listMarkerStyle'],_0x294c47));};}function A(_0x47e70e,_0x5a3c0f){const _0x1e874b=_0x47e70e['t'],t=_0x47e70e['t'];switch(_0x5a3c0f){case'Start\x20at':return _0x1e874b('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x1e874b('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x1e874b('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x1e874b('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 _0x5a3c0f;}}var V=class extends _0x54be72{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new _0x5705a5();['keystrokes']=new _0x2039ea();['focusables']=new _0x3f196a();['focusCycler'];constructor(_0xb26c12,{enabledProperties:_0xdcc4f8,styleButtonViews:_0x3feaa6,styleGridAriaLabel:_0x34b8ae}){super(_0xb26c12);const _0x133409=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x3736c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0xdcc4f8['styles']?(this['stylesView']=this['_createStylesView'](_0x3feaa6,_0x34b8ae),this['children']['add'](this['stylesView'])):_0x133409['push']('ck-multi-level-list-properties_without-styles'),_0xdcc4f8['startIndex']&&(this['_addListPropertyViews'](_0xdcc4f8),_0x133409['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x133409},'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 _0x23a48e of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x23a48e['element']);_0x1fe7a2({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x483515['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 _0x4ec857=_0x170055=>_0x170055['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4ec857),this['keystrokes']['set']('arrowleft',_0x4ec857),this['keystrokes']['set']('arrowup',_0x4ec857),this['keystrokes']['set']('arrowdown',_0x4ec857);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x4ff641,_0x4e9863){const _0x2e69e6=new _0x54be72(this['locale']);return _0x2e69e6['children']=_0x2e69e6['createCollection'](),_0x2e69e6['children']['addMany'](_0x4ff641),_0x2e69e6['setTemplate']({'tag':'div','attributes':{'aria-label':_0x4e9863,'class':['ck','ck-multi-level-list-styles']},'children':_0x2e69e6['children']}),_0x2e69e6['children']['delegate']('execute')['to'](this),_0x2e69e6['focus']=function(){this['children']['first']['focus']();},_0x2e69e6['focusTracker']=new _0x5705a5(),_0x2e69e6['keystrokes']=new _0x2039ea(),_0x2e69e6['render'](),_0x2e69e6['keystrokes']['listenTo'](_0x2e69e6['element']),_0x2e69e6;}['_addListPropertyViews'](_0x306031){const _0x1bc60a=[];_0x306031['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x1bc60a['push'](this['startIndexFieldView'])),_0x306031['styles']?(this['additionalPropertiesCollapsibleView']=new _0x8a752f(this['locale'],_0x1bc60a),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x1bc60a,'isEnabled',(..._0x4ddddd)=>_0x4ddddd['some'](_0xb7e810=>_0xb7e810)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x3088dc,_0x216488,_0x19109a)=>{_0x19109a||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x1bc60a);}['_createStartIndexField'](){const _0x91c094=new _0x324ef3(this['locale'],_0x525a1e);return _0x91c094['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x91c094['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x91c094['fieldView']['on']('input',()=>{const _0x58259c=_0x91c094['fieldView']['element'],_0x464fac=_0x58259c['valueAsNumber'];Number['isNaN'](_0x464fac)?_0x91c094['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x58259c['checkValidity']()?this['fire']('listStart',{'startIndex':_0x464fac}):_0x91c094['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x91c094;}},K=class extends _0x1af49d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x45c624=this['editor'];_0x45c624['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x316322,parentCommandName:_0x52f986,buttonLabel:_0x1ecb81,buttonIcon:_0x46d0f4,styleGridAriaLabel:_0x59b32a,styleDefinitions:_0x6f12fc}){const _0x215ed8=_0x316322['commands']['get'](_0x52f986),_0x27fe70=_0x316322['config']['get']('list.properties')||{},_0x5ad2af=_0x316322['plugins']['has']('ListProperties'),_0x31c336=_0x27fe70['startIndex'];return _0x5ad2af&&_0x31c336?_0x100b89=>{const _0x283faf=_0x53aff3(_0x100b89,_0x4d13eb),_0x58b5e7=_0x283faf['buttonView'];return _0x283faf['bind']('isEnabled')['to'](_0x215ed8),_0x283faf['class']='ck-list-styles-dropdown',_0x58b5e7['on']('execute',()=>{_0x316322['execute'](_0x52f986),_0x316322['editing']['view']['focus']();}),_0x58b5e7['set']({'label':_0x1ecb81,'icon':_0x46d0f4,'tooltip':!0x0,'isToggleable':!0x0}),_0x58b5e7['bind']('isOn')['to'](_0x215ed8,'value',_0x1a0806=>!!_0x1a0806),_0x283faf['once']('change:isOpen',()=>{const _0x45c2f3=function({editor:_0x3f58d6,dropdownView:_0x29aa54,styleDefinitions:_0xe33f2f,styleGridAriaLabel:_0x474356}){const _0xb18229=_0x3f58d6['locale'],_0x333fc7=_0x3f58d6['config']['get']('list.properties'),_0x2b1986=null;_0x333fc7['reversed']=!0x1,_0xe33f2f['length']||(_0x333fc7['styles']=!0x1);const _0x1719b9=new V(_0xb18229,{'styleGridAriaLabel':_0x474356,'enabledProperties':_0x333fc7,'styleButtonViews':_0x2b1986});if(_0x333fc7['startIndex']){const _0x4f472a=_0x3f58d6['commands']['get']('listStart');_0x1719b9['startIndexFieldView']['bind']('isEnabled')['to'](_0x4f472a),_0x1719b9['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x4f472a),_0x1719b9['on']('listStart',(_0x4899f3,_0x18abaf)=>_0x3f58d6['execute']('listStart',_0x18abaf));}return _0x1719b9['delegate']('execute')['to'](_0x29aa54),_0x1719b9;}({'editor':_0x316322,'dropdownView':_0x283faf,'parentCommandName':_0x52f986,'styleGridAriaLabel':_0x59b32a,'styleDefinitions':_0x6f12fc});_0x283faf['panelView']['children']['add'](_0x45c2f3);}),_0x283faf['on']('execute',()=>{_0x316322['editing']['view']['focus']();}),_0x283faf;}:_0xf944a0=>{const _0x478752=new _0x5d93c0(_0xf944a0);return _0x478752['set']({'label':_0x1ecb81,'icon':_0x46d0f4,'tooltip':!0x0,'isToggleable':!0x0}),_0x478752['bind']('isOn')['to'](_0x215ed8,'value',_0x3956aa=>!!_0x3956aa),_0x478752['on']('execute',()=>{_0x316322['execute'](_0x52f986),_0x316322['editing']['view']['focus']();}),_0x478752;};}({'editor':_0x45c624,'parentCommandName':'multiLevelList','buttonLabel':A(_0x45c624['locale'],'Multi-level\x20List'),'buttonIcon':_0x48428e,'styleGridAriaLabel':A(_0x45c624['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x45c624['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x21dea3=_0x45c624['commands']['get']('multiLevelList'),_0x3edfb7=new _0x36978c(_0x45c624['locale']);return _0x3edfb7['set']({'label':A(_0x45c624['locale'],'Multi-level\x20List'),'icon':_0x48428e}),_0x3edfb7['bind']('isEnabled')['to'](_0x21dea3),_0x3edfb7['bind']('isOn')['to'](_0x21dea3,'value',_0x2f176f=>!!_0x2f176f),_0x3edfb7['on']('execute',()=>{_0x45c624['execute']('multiLevelList'),_0x45c624['editing']['view']['focus']();}),_0x3edfb7;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x9e9ae9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3bfe55;for(const _0x373da8 in _0x9e9ae9){const _0x251959=_0x373da8,_0x18398f=_0x9e9ae9[_0x251959];if('multiLevelListLicenseKeyValid'==_0x18398f||'multiLevelListLicenseKeyInvalid'==_0x18398f||'multiLevelListLicenseKeyExpired'==_0x18398f||'multiLevelListLicenseKeyDomainLimit'==_0x18398f||'multiLevelListLicenseKeyNotAllowed'==_0x18398f||'multiLevelListLicenseKeyEvaluationLimit'==_0x18398f||'multiLevelListLicenseKeyUsageLimit'==_0x18398f){delete _0x9e9ae9[_0x251959],_0x3bfe55=_0x18398f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x3bfe55&&_0x9e9ae9['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x3bfe55&&_0x9e9ae9['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x3bfe55&&_0x9e9ae9['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x3bfe55&&_0x9e9ae9['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x3bfe55&&_0x9e9ae9['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x3bfe55&&_0x9e9ae9['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x1af49d{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.1-alpha.
|
|
3
|
+
"version": "48.3.1-alpha.1",
|
|
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.1-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-core": "48.3.1-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-engine": "48.3.1-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-icons": "48.3.1-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-list": "48.3.1-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-ui": "48.3.1-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-utils": "48.3.1-alpha.
|
|
35
|
+
"@ckeditor/ckeditor5-clipboard": "48.3.1-alpha.1",
|
|
36
|
+
"@ckeditor/ckeditor5-core": "48.3.1-alpha.1",
|
|
37
|
+
"@ckeditor/ckeditor5-engine": "48.3.1-alpha.1",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "48.3.1-alpha.1",
|
|
39
|
+
"@ckeditor/ckeditor5-list": "48.3.1-alpha.1",
|
|
40
|
+
"@ckeditor/ckeditor5-ui": "48.3.1-alpha.1",
|
|
41
|
+
"@ckeditor/ckeditor5-utils": "48.3.1-alpha.1"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist",
|