@ckeditor/ckeditor5-list-multi-level 48.5.0-alpha.3 → 48.5.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 _0x282738,Plugin as _0x408fd6}from'@ckeditor/ckeditor5-core';import{Matcher as _0x22ece0,ViewUpcastWriter as _0x51cdef}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x29bb79,_isFirstBlockOfListItem as _0x66b357}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0x310041,KeystrokeHandler as _0x5e9bbf,createElement as _0x31c3c1,first as _0x268c47,global as _0x1a46c7,uid as _0x32f0f4}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x3f73a2}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x2d7c83,CollapsibleView as _0x583ed6,FocusCycler as _0xd19f59,LabeledFieldView as _0x1b35dd,MenuBarMenuListItemButtonView as _0x30a917,SplitButtonView as _0x5b66e1,View as _0xa858e9,ViewCollection as _0x229488,addKeyboardHandlingForGrid as _0x1fc3a5,createDropdown as _0x420bdc,createLabeledInputNumber as _0x4e0227}from'@ckeditor/ckeditor5-ui';var S=class extends _0x282738{defaultListMarkerStyle;_listDefinitions;_listUtils;constructor(_0x490962,_0x7c5b75,_0x46017b){super(_0x490962),this['defaultListMarkerStyle']=_0x7c5b75,this['_listDefinitions']=_0x46017b,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}execute(_0x1c5dc6={}){const _0x12db2d=this['editor']['model'],_0x47f444=_0x1c5dc6['listMarkerStyle']||this['defaultListMarkerStyle'];_0x12db2d['change'](()=>{const _0x3fc5de=this['_getListTypeFromListMarkerStyle'](_0x47f444);if(!_0x3fc5de)return;const _0x156067=_0x3fc5de+'List';this['editor']['execute'](_0x156067,{'additionalAttributes':{'listMarkerStyle':_0x47f444}});});}_getValue(){const _0x522957=_0x268c47(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x522957)?_0x522957['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x809ce6=this['editor'],_0x1ef78e=_0x809ce6['commands']['get']('customNumberedList'),_0x158b3d=_0x809ce6['commands']['get']('customBulletedList');return _0x1ef78e['isEnabled']||_0x158b3d['isEnabled'];}_getListTypeFromListMarkerStyle(_0x5def6e){const _0x1f24d9=this['_listDefinitions']['find'](_0x44cdac=>_0x44cdac['listMarkerStyle']==_0x5def6e);return _0x1f24d9?_0x1f24d9['listType']:null;}},x=class extends _0x408fd6{_listDefinitions;static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x29bb79];}constructor(_0x41e92e){super(_0x41e92e);const _0xd7285e=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x37e101=>_0x37e101+'.'}]},..._0xd7285e];}init(){const _0x2094bf=this['editor'],_0x1d8efe=_0x2094bf['model'],_0x1fc011=_0x2094bf['editing']['view'],_0x5ce2ae=_0x2094bf['plugins']['get'](_0x29bb79);_0x2094bf['commands']['add']('multiLevelList',new S(_0x2094bf,'legal',this['_listDefinitions'])),_0x1d8efe['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x1d8efe['schema']['addAttributeCheck']((_0x55ba20,_0x2b796c)=>{const _0x270d89=_0x55ba20['last'];if('listMarker'==_0x2b796c||'listMarkerStyle'==_0x2b796c)return!(!_0x270d89['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x111f19=>_0x111f19['listType']==_0x270d89['getAttribute']('listType')))&&void 0x0;});for(const _0x54599d of this['_listDefinitions'])_0x2094bf['conversion']['for']('upcast')['add'](_0x96716f=>{_0x96716f['on']('element:'+('customNumbered'==_0x54599d['listType']?'ol':'ul'),_(_0x54599d,_0x1d8efe['schema']),{'priority':'low'});}),_0x5ce2ae['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x5dd5c1,_0x26b038,_0x109460){_0x26b038==_0x54599d['listMarkerStyle']?(_0x5dd5c1['addClass'](['multi-level-list',_0x54599d['className']],_0x109460),_0x5dd5c1['setStyle']('list-style-type','none',_0x109460)):(_0x5dd5c1['removeClass'](['multi-level-list',_0x54599d['className']],_0x109460),_0x5dd5c1['removeStyle']('list-style-type',_0x109460));}}),_0x5ce2ae['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x209a0b,_0x2a4d56,{dataPipeline:_0x651a4d}){if(!_0x2a4d56['hasAttribute']('listMarker'))return null;if(_0x2a4d56['getAttribute']('listType')!=_0x54599d['listType']||_0x2a4d56['getAttribute']('listMarkerStyle')!=_0x54599d['listMarkerStyle'])return null;const _0x431b44=String(_0x2a4d56['getAttribute']('listMarker')),_0x1333e8=this['canInjectMarkerIntoElement'](_0x2a4d56);return _0x209a0b['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x651a4d&&{'contenteditable':'false','data-multi-level-list-marker':_0x431b44}},function(_0x4a7662){const _0x33cbed=this['toDomElement'](_0x4a7662);return _0x1333e8?(_0x33cbed['appendChild'](_0x31c3c1(_0x4a7662,'span',{},_0x651a4d?_0x4a7662['createTextNode'](_0x431b44):[])),_0x33cbed['appendChild'](_0x4a7662['createTextNode']('\u00a0'))):_0x651a4d&&_0x33cbed['appendChild'](_0x4a7662['createTextNode'](_0x431b44)),_0x33cbed;});},'canInjectMarkerIntoElement':_0x22d25d=>_0x1d8efe['schema']['checkChild'](_0x22d25d,'$text')&&_0x1d8efe['schema']['checkChild'](_0x22d25d,'$inlineObject')&&!_0x1d8efe['schema']['isLimit'](_0x22d25d)&&_0x22d25d['getAttribute']('listType')==_0x54599d['listType']&&_0x22d25d['getAttribute']('listMarkerStyle')==_0x54599d['listMarkerStyle']});_0x2094bf['conversion']['for']('upcast')['add'](_0x2bac6c=>{_0x2bac6c['on']('element:span',function(_0x2522b1){return(_0x234195,_0x660221,{writer:_0x6f0311,consumable:_0x45e2c2})=>{const _0x1ce916=_0x660221['modelCursor'],_0x588604=_0x1ce916['parent'],_0x37faec=_0x660221['viewItem'];if(_0x45e2c2['consume'](_0x37faec,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x1ce916['isAtStart']&&_0x588604['hasAttribute']('listType')&&_0x37faec['childCount']>0x0){const _0x155133=_0x2522b1['createRangeIn'](_0x37faec);let _0x54bb8e='';for(const _0x22eeb4 of _0x155133['getItems']())_0x22eeb4['is']('$textProxy')?(_0x54bb8e+=_0x22eeb4['data']['trim'](),_0x45e2c2['consume'](_0x22eeb4['textNode'])):_0x45e2c2['consume'](_0x22eeb4,{'name':!0x0});_0x6f0311['setAttribute']('listMarker',_0x54bb8e['trim'](),_0x588604);}};}(_0x1fc011));}),_0x5ce2ae['on']('postFixer',(_0x454358,{listNodes:_0x2799fc,writer:_0x517ded})=>{const _0x5ee59e=[];for(const {node:_0x117812,previousNodeInList:_0x5544a7}of _0x2799fc){const _0x5749a4=_0x117812['getAttribute']('listType'),_0x5c230b=_0x117812['getAttribute']('listMarkerStyle')||('customNumbered'==_0x5749a4?'legal':void 0x0),_0x453bdf=this['_listDefinitions']['find'](_0x98deea=>_0x98deea['listType']==_0x5749a4&&_0x98deea['listMarkerStyle']==_0x5c230b);if('customNumbered'!=_0x5749a4&&'customBulleted'!=_0x5749a4&&(_0x117812['hasAttribute']('listMarker')&&(_0x517ded['removeAttribute']('listMarker',_0x117812),_0x454358['return']=!0x0),_0x117812['hasAttribute']('listMarkerStyle')&&(_0x517ded['removeAttribute']('listMarkerStyle',_0x117812),_0x454358['return']=!0x0)),!_0x453bdf){'customBulleted'!=_0x5749a4||_0x5c230b||(_0x517ded['setAttribute']('listType','bulleted',_0x117812),_0x454358['return']=!0x0);continue;}_0x117812['hasAttribute']('listMarkerStyle')||(_0x517ded['setAttribute']('listMarkerStyle',_0x5c230b,_0x117812),_0x454358['return']=!0x0);const _0x2a2763=_0x117812['getAttribute']('listIndent');if(_0x5544a7&&_0x5544a7['getAttribute']('listItemId')==_0x117812['getAttribute']('listItemId'))continue;if(_0x5ee59e['length']=_0x2a2763+0x1,_0x2094bf['config']['get']('list.enableSkipLevelLists')){for(let _0x22a432=0x0;_0x22a432<_0x2a2763;_0x22a432++)void 0x0===_0x5ee59e[_0x22a432]&&(_0x5ee59e[_0x22a432]=0x1);}_0x5544a7||_0x5ee59e[_0x2a2763]?_0x5544a7&&_0x5544a7['getAttribute']('listType')!=_0x453bdf['listType']?_0x5ee59e[_0x2a2763]=0x1:_0x5ee59e[_0x2a2763]++:_0x5ee59e[_0x2a2763]=_0x117812['getAttribute']('listStart')||0x1;const _0x9c1e51=E(_0x2a2763,_0x453bdf,_0x5ee59e);_0x117812['getAttribute']('listMarker')!=_0x9c1e51&&(_0x517ded['setAttribute']('listMarker',_0x9c1e51,_0x117812),_0x454358['return']=!0x0);}}),_0x5ce2ae['on']('checkElement',(_0xb7fb27,{modelElement:_0xf88eb1,viewElement:_0x1450a6})=>{const _0x25c1fb=_0xf88eb1['getAttribute']('listType');if('customNumbered'!=_0x25c1fb&&'customBulleted'!=_0x25c1fb)return;if(_0x1d8efe['schema']['checkChild'](_0xf88eb1,'$text'))return;const _0x1b2f49=_0x66b357(_0xf88eb1);let _0x3c486b=!0x1;const _0x146342=_0x1fc011['createPositionBefore'](_0x1450a6)['getWalker']({'direction':'backward'});for(const {item:_0x2495c1}of _0x146342)if(_0x2495c1['is']('element')){if(_0x2094bf['editing']['mapper']['toModelElement'](_0x2495c1))break;if(_0x2495c1['getCustomProperty']('listItemMarker')){_0x3c486b=!0x0;break;}}_0x3c486b!=_0x1b2f49&&(_0xb7fb27['return']=!0x0,_0xb7fb27['stop']());});const _0x57e88d=_0x2094bf['editing']['view']['document'];this['listenTo'](_0x57e88d,'clipboardOutput',(_0x1becf9,_0x248ea6)=>{const _0x3941b8=new _0x22ece0({'name':'span','classes':'multi-level-list__marker'}),_0x544da2=new _0x22ece0({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x4bccdf=new _0x51cdef(_0x248ea6['content']['document']),_0x1cb7f5=[];for(const _0x57e871 of _0x4bccdf['createRangeIn'](_0x248ea6['content'])['getItems']())_0x57e871['is']('element')&&_0x3941b8['match'](_0x57e871)&&_0x1cb7f5['push'](_0x57e871),_0x57e871['is']('element')&&_0x544da2['match'](_0x57e871)&&_0x4bccdf['removeStyle']('list-style-type',_0x57e871);for(const _0x57842a of _0x1cb7f5)_0x4bccdf['remove'](_0x57842a);});}afterInit(){!async function(_0x6937a0){const _0x272515='I9sCmg3DJiG5LFMuQjwhT0XBYyxSqvdPO46NZAcVzb71RWkfe8oKptnrUEal2H',_0x225e77=0x79410,_0x53c7de={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x567dcb(_0x5cc4df){const _0x4441f6=new window['Promise'](_0x4c8147=>{_0x5cc4df['once']('ready',_0x4c8147);}),_0x2e9995=window['Date']['now'](),_0x4aa853=_0x5cc4df['config']['get']('licenseKey');async function _0x12b8a7(){let _0x2f5897,_0x1742f0=null,_0x2bf05f=null;try{return'GPL'==_0x4aa853?'NotAllowed':(_0x2f5897=_0x7b0584(),_0x2f5897?(_0x2f5897['usageEndpoint']&&(_0x2bf05f=_0x38b7f6(_0x2f5897['usageEndpoint'],_0x2f5897['jti'])),await _0x550133()?_0x492c65()?_0x42c515()?'Expired':_0x152022()?('evaluation'==_0x2f5897['licenseType']&&(_0x1742f0=_0x4d84e7('EvaluationLimit')),await _0x321728()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x42c515(){const _0x24ad2e=['evaluation','trial']['includes'](_0x2f5897['licenseType'])?_0x2e9995/0x3e8:0xe10*_0x225e77;return _0x2f5897['exp']<_0x24ad2e;}function _0x492c65(){const _0x558f62=_0x2f5897['features'];return!!_0x558f62&&(!!_0x558f62['includes']('*')||!!_0x558f62['includes']('MLL'));}function _0x152022(){const _0x515fad=_0x2f5897['licensedHosts'];if(!_0x515fad||0x0==_0x515fad['length'])return!0x0;const {hostname:_0x47a3ec}=new URL(window['location']['href']);if(_0x515fad['includes'](_0x47a3ec))return!0x0;const _0x2377de=_0x47a3ec['split']('.');return _0x515fad['filter'](_0x36054e=>_0x36054e['includes']('*'))['map'](_0x34594f=>_0x34594f['split']('.'))['filter'](_0x524e13=>_0x524e13['length']<=_0x2377de['length'])['map'](_0x5614c9=>Array(_0x2377de['length']-_0x5614c9['length'])['fill']('*'===_0x5614c9[0x0]?'*':'')['concat'](_0x5614c9))['some'](_0x575c1d=>_0x2377de['every']((_0x14886a,_0x5dccc5)=>_0x575c1d[_0x5dccc5]===_0x14886a||'*'===_0x575c1d[_0x5dccc5]));}function _0x321728(){return _0x1742f0&&_0x2bf05f?new window['Promise']((_0x39a802,_0x11f53d)=>{_0x1742f0['then'](_0x39a802,_0x11f53d),_0x2bf05f['then'](_0x14e8a7=>{'Valid'!=_0x14e8a7&&_0x39a802(_0x14e8a7);},_0x11f53d);}):_0x1742f0||_0x2bf05f||'Valid';}}function _0x38b7f6(_0x191a8d,_0x48700b){return new window['Promise'](_0x13d304=>{if(_0x296115())return _0x13d304('Valid');_0x30ae7b(),_0x5cc4df['decorate']('_sendUsageRequest');let _0x9663f6=!0x1;const _0x368af6=_0x32f0f4();function _0x532c27(_0x529bfe){return!!_0x529bfe&&('object'==typeof _0x529bfe||'function'==typeof _0x529bfe)&&'function'==typeof _0x529bfe['then']&&'function'==typeof _0x529bfe['catch'];}function _0xfaacde(_0x96b2b2){_0x477b04(_0x96b2b2)['then'](_0x50bf19=>_0x50bf19&&'ok'==_0x50bf19['status']?_0x1d41d2(_0x5b74c6(_0x368af6+_0x48700b))!=_0x50bf19['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x40f679=>(_0x1b2477(),_0x40f679),()=>{const _0x273689=_0x7b4b39();return null==_0x273689?(_0x1b2477(),'Valid'):_0x2e9995-_0x273689>0x240c8400?'UsageLimit':'Valid';})['then'](_0x13d304)['catch'](()=>{_0x13d304('UsageLimit');});const _0x5a995c=0x36ee80;function _0x1b2477(){const _0x34b5f8='llct-'+_0x1d41d2(_0x5b74c6(_0x191a8d)),_0x4081f6=_0x378783(_0x1d41d2(window['Math']['ceil'](_0x2e9995/_0x5a995c)));window['localStorage']['setItem'](_0x34b5f8,_0x4081f6);}function _0x7b4b39(){const _0x16c13a='llct-'+_0x1d41d2(_0x5b74c6(_0x191a8d)),_0x5ad114=window['localStorage']['getItem'](_0x16c13a);return _0x5ad114?window['parseInt'](_0x378783(_0x5ad114),0x10)*_0x5a995c:null;}function _0x477b04(_0x5a5c6d){return new window['Promise']((_0x4fd038,_0x44990e)=>{_0x5a5c6d['then'](_0x4fd038,_0x44990e),window['setTimeout'](_0x44990e,0x1d4c0);});}}_0x5cc4df['on']('_sendUsageRequest',(_0x24ba37,_0x6e97d0)=>{if(_0x6e97d0[0x0]!=_0x191a8d)return _0x13d304('UsageLimit');_0x6e97d0[0x1]={..._0x6e97d0[0x1],'requestId':_0x368af6};},{'priority':'high'}),_0x5cc4df['on']('_sendUsageRequest',_0x2cb8ec=>{_0x532c27(_0x2cb8ec['return'])&&(_0x9663f6=!0x0,_0xfaacde(_0x2cb8ec['return']));},{'priority':'low'}),_0x4441f6['then'](()=>{_0x9663f6||_0x13d304('UsageLimit');});});function _0x296115(){return'auto'==_0x5cc4df['editing']['view']['_overlayModeHint'];}function _0x30ae7b(){_0x5cc4df['editing']['view']['_overlayModeHint']='auto';}}function _0x4d84e7(_0x26e0d5){const _0x66029d=[new window['Promise'](_0x432cb4=>setTimeout(_0x432cb4,0x93ecc)),_0x4441f6['then'](()=>new window['Promise'](_0x5ac8d2=>{let _0x3f3d3e=0x0;_0x5cc4df['model']['on']('applyOperation',(_0x3102f0,_0x20b158)=>{_0x20b158[0x0]['isDocumentOperation']&&_0x3f3d3e++,0x5e8==_0x3f3d3e&&(_0x5ac8d2(),_0x3102f0['off']());});}))];return window['Promise']['race'](_0x66029d)['then'](()=>_0x26e0d5);}async function _0x269362(){await _0x4441f6,_0x5cc4df['model']['change']=_0xb16221,_0x5cc4df['model']['enqueueChange']=_0xb16221,_0x5cc4df['enableReadOnlyMode']('model');}function _0x40745a(_0x5de7cd){const _0x507a4b=_0xb8f8e4();_0x5cc4df[_0x507a4b]='multiLevelListLicenseKey'+_0x5de7cd,'Valid'!=_0x5de7cd&&_0x269362();}function _0xb8f8e4(){const _0x930b84=window['String'](window['performance']['now']())['replace']('.','');let _0x3fecbc='I';for(let _0x2e9ce2=0x0;_0x2e9ce2<_0x930b84['length'];_0x2e9ce2+=0x2){let _0x420a6f=window['parseInt'](_0x930b84['substring'](_0x2e9ce2,_0x2e9ce2+0x2));_0x420a6f>=0x3e&&(_0x420a6f-=0x3e),_0x3fecbc+=_0x272515[_0x420a6f];}return _0x3fecbc;}function _0x7b0584(){const _0x1e359d=_0x4aa853['split']('.');if(0x3!=_0x1e359d['length'])return null;return _0x1c77f0(_0x1e359d[0x1]);function _0x1c77f0(_0x12bd0e){const _0x54b4fc=_0xb38444(_0x12bd0e);return _0x54b4fc&&_0x5e1009()?_0x54b4fc:null;function _0x5e1009(){const _0x1b9af0=_0x54b4fc['jti'],_0xb62429=window['parseInt'](_0x1b9af0['substring'](_0x1b9af0['length']-0x8),0x10),_0x4fd876={..._0x54b4fc,'jti':_0x1b9af0['substring'](0x0,_0x1b9af0['length']-0x8)};return delete _0x4fd876['vc'],_0x5b74c6(_0x4fd876)==_0xb62429;}}}async function _0x550133(){let _0x49812d=!0x0;try{const [_0x653688,_0x5d1fb2,_0x3e1c3d]=_0x4aa853['split']('.');return _0xd7e3f1(_0x653688),await _0x301b3f(_0x653688,_0x5d1fb2,_0x3e1c3d),_0x49812d;}catch{return!0x1;}function _0xd7e3f1(_0x4b4a8a){const _0x10d765=_0xb38444(_0x4b4a8a);_0x10d765&&'ES256'==_0x10d765['alg']||(_0x49812d=!0x1);}async function _0x301b3f(_0x19ff79,_0x490ccf,_0x1b5107){const _0x17449b=window['Uint8Array']['from'](_0x2de33b(_0x1b5107),_0x12a9a6=>_0x12a9a6['charCodeAt'](0x0)),_0x2f7591=new window['TextEncoder']()['encode'](_0x19ff79+'.'+_0x490ccf),_0x76d4ae=window['crypto']['subtle'];if(!_0x76d4ae)return;const _0x5c8cdb=await _0x76d4ae['importKey']('jwk',_0x53c7de,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x76d4ae['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5c8cdb,_0x17449b,_0x2f7591)||(_0x49812d=!0x1);}}function _0xb38444(_0x48d662){return _0x48d662['startsWith']('ey')?JSON['parse'](_0x2de33b(_0x48d662)):null;}function _0x2de33b(_0x24f2a4){return window['atob'](_0x24f2a4['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5b74c6(_0x263e74){let _0x1dbd50=0x1505;function _0x180004(_0x56eddf){for(let _0x100907=0x0;_0x100907<_0x56eddf['length'];_0x100907++){const _0x479558=_0x56eddf['charCodeAt'](_0x100907);_0x1dbd50=(_0x1dbd50<<0x5)+_0x1dbd50+_0x479558,_0x1dbd50&=_0x1dbd50;}}function _0x5e1666(_0xbbce49){Array['isArray'](_0xbbce49)?_0xbbce49['forEach'](_0x5e1666):_0xbbce49&&'object'==typeof _0xbbce49?Object['entries'](_0xbbce49)['sort']()['forEach'](([_0x35c2c5,_0x223beb])=>{_0x180004(_0x35c2c5),_0x5e1666(_0x223beb);}):_0x180004(window['String'](_0xbbce49));}return _0x5e1666(_0x263e74),_0x1dbd50>>>0x0;}function _0x1d41d2(_0x1b0e9e){return _0x1b0e9e['toString'](0x10)['padStart'](0x8,'0');}function _0x378783(_0x570320){return _0x570320['split']('')['reverse']()['join']('');}function _0xb16221(){}_0x40745a(await _0x12b8a7());}_0x567dcb(_0x6937a0['editor']);}(this);}};function E(_0x3a2842,_0x160291,_0x39f804){let _0x110d8c=_0x160291['listMarkers'][_0x3a2842%_0x160291['listMarkers']['length']];if(void 0x0===_0x110d8c['showMarkerPath']||_0x110d8c['showMarkerPath'])return _0x39f804['slice'](0x0,_0x3a2842+0x1)['map']((_0x1e1a4f,_0x169a2a)=>(_0x110d8c=_0x160291['listMarkers'][_0x169a2a%_0x160291['listMarkers']['length']],N(_0x110d8c['marker'],_0x1e1a4f)))['join']('');{const _0x2102e3=_0x39f804[_0x39f804['length']-0x1];return N(_0x110d8c['marker'],_0x2102e3);}}function N(_0x2421e6,_0x15ca9f){return'function'==typeof _0x2421e6?_0x2421e6(_0x15ca9f):_0x2421e6;}function _(_0x4a7a3c,_0x36a1e8){return(_0x33601b,_0x6cef19,_0x113c3e)=>{const _0x2c7bb7=_0x6cef19['viewItem'];if(_0x6cef19['modelRange']||Object['assign'](_0x6cef19,_0x113c3e['convertChildren'](_0x6cef19['viewItem'],_0x6cef19['modelCursor'])),!_0x113c3e['consumable']['test'](_0x2c7bb7,{'classes':_0x4a7a3c['className']}))return;const _0x53c3b4=Array['from'](_0x6cef19['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x268b8b=>_0x36a1e8['checkAttribute'](_0x268b8b,'listItemId'));if(!_0x53c3b4['length'])return;_0x113c3e['consumable']['consume'](_0x2c7bb7,{'classes':_0x4a7a3c['className']}),_0x113c3e['consumable']['consume'](_0x2c7bb7,{'classes':'multi-level-list'}),_0x113c3e['consumable']['consume'](_0x2c7bb7,{'styles':'list-style-type'});const _0x349fd9=_0x53c3b4[0x0]['getAttribute']('listIndent');for(const _0x22cbd1 of _0x53c3b4)_0x22cbd1['getAttribute']('listIndent')==_0x349fd9&&(_0x113c3e['writer']['setAttribute']('listType',_0x4a7a3c['listType'],_0x22cbd1),_0x113c3e['writer']['setAttribute']('listMarkerStyle',_0x4a7a3c['listMarkerStyle'],_0x22cbd1));};}function A(_0xfe6a6a,_0x508dde){const _0x5d2932=_0xfe6a6a['t'],t=_0xfe6a6a['t'];switch(_0x508dde){case'Start\x20at':return _0x5d2932('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x5d2932('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x5d2932('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x5d2932('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 _0x508dde;}}var V=class extends _0xa858e9{['children'];stylesView=null;additionalPropertiesCollapsibleView=null;startIndexFieldView=null;['focusTracker']=new _0x310041();keystrokes=new _0x5e9bbf();['focusables']=new _0x229488();['focusCycler'];constructor(_0x350d06,{enabledProperties:_0x50e3c7,styleButtonViews:_0x37d3a9,styleGridAriaLabel:_0x3b1504}){super(_0x350d06);const _0x571b4a=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0xd19f59({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x50e3c7['styles']?(this['stylesView']=this['_createStylesView'](_0x37d3a9,_0x3b1504),this['children']['add'](this['stylesView'])):_0x571b4a['push']('ck-multi-level-list-properties_without-styles'),_0x50e3c7['startIndex']&&(this['_addListPropertyViews'](_0x50e3c7),_0x571b4a['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x571b4a},'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 _0x1169d0 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1169d0['element']);_0x1fc3a5({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x1a46c7['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 _0x7c2387=_0xd26833=>_0xd26833['stopPropagation']();this['keystrokes']['set']('arrowright',_0x7c2387),this['keystrokes']['set']('arrowleft',_0x7c2387),this['keystrokes']['set']('arrowup',_0x7c2387),this['keystrokes']['set']('arrowdown',_0x7c2387);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}focusLast(){this['focusCycler']['focusLast']();}destroy(){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}_createStylesView(_0x2c309c,_0x9adf61){const _0x50ecde=new _0xa858e9(this['locale']);return _0x50ecde['children']=_0x50ecde['createCollection'](),_0x50ecde['children']['addMany'](_0x2c309c),_0x50ecde['setTemplate']({'tag':'div','attributes':{'aria-label':_0x9adf61,'class':['ck','ck-multi-level-list-styles']},'children':_0x50ecde['children']}),_0x50ecde['children']['delegate']('execute')['to'](this),_0x50ecde['focus']=function(){this['children']['first']['focus']();},_0x50ecde['focusTracker']=new _0x310041(),_0x50ecde['keystrokes']=new _0x5e9bbf(),_0x50ecde['render'](),_0x50ecde['keystrokes']['listenTo'](_0x50ecde['element']),_0x50ecde;}_addListPropertyViews(_0x1f4031){const _0x5e66bf=[];_0x1f4031['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x5e66bf['push'](this['startIndexFieldView'])),_0x1f4031['styles']?(this['additionalPropertiesCollapsibleView']=new _0x583ed6(this['locale'],_0x5e66bf),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x5e66bf,'isEnabled',(..._0x242bcc)=>_0x242bcc['some'](_0x28adec=>_0x28adec)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x3e68af,_0x25a0f7,_0x342a84)=>{_0x342a84||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x5e66bf);}_createStartIndexField(){const _0x5b17d7=new _0x1b35dd(this['locale'],_0x4e0227);return _0x5b17d7['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x5b17d7['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5b17d7['fieldView']['on']('input',()=>{const _0xec8f46=_0x5b17d7['fieldView']['element'],_0x3fb2a4=_0xec8f46['valueAsNumber'];Number['isNaN'](_0x3fb2a4)?_0x5b17d7['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0xec8f46['checkValidity']()?this['fire']('listStart',{'startIndex':_0x3fb2a4}):_0x5b17d7['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x5b17d7;}},K=class extends _0x408fd6{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x85f853=this['editor'];_0x85f853['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x3f61b7,parentCommandName:_0x4812ac,buttonLabel:_0x3b2424,buttonIcon:_0x4d264f,styleGridAriaLabel:_0x2f6f35,styleDefinitions:_0x32a9d6}){const _0x292802=_0x3f61b7['commands']['get'](_0x4812ac),_0x5952ec=_0x3f61b7['config']['get']('list.properties')||{},_0x55bb5e=_0x3f61b7['plugins']['has']('ListProperties'),_0x76b790=_0x5952ec['startIndex'];return _0x55bb5e&&_0x76b790?_0x4eef25=>{const _0xfb115c=_0x420bdc(_0x4eef25,_0x5b66e1),_0x24c662=_0xfb115c['buttonView'];return _0xfb115c['bind']('isEnabled')['to'](_0x292802),_0xfb115c['class']='ck-list-styles-dropdown',_0x24c662['on']('execute',()=>{_0x3f61b7['execute'](_0x4812ac),_0x3f61b7['editing']['view']['focus']();}),_0x24c662['set']({'label':_0x3b2424,'icon':_0x4d264f,'tooltip':!0x0,'isToggleable':!0x0}),_0x24c662['bind']('isOn')['to'](_0x292802,'value',_0x87bf92=>!!_0x87bf92),_0xfb115c['once']('change:isOpen',()=>{const _0x34bc2f=function({editor:_0xbe3ae1,dropdownView:_0x39dc89,styleDefinitions:_0xd1dc1,styleGridAriaLabel:_0x166bac}){const _0x10f02d=_0xbe3ae1['locale'],_0x44dd1a=_0xbe3ae1['config']['get']('list.properties'),_0x33ecbe=null;_0x44dd1a['reversed']=!0x1,_0xd1dc1['length']||(_0x44dd1a['styles']=!0x1);const _0x2bd147=new V(_0x10f02d,{'styleGridAriaLabel':_0x166bac,'enabledProperties':_0x44dd1a,'styleButtonViews':_0x33ecbe});if(_0x44dd1a['startIndex']){const _0x10a283=_0xbe3ae1['commands']['get']('listStart');_0x2bd147['startIndexFieldView']['bind']('isEnabled')['to'](_0x10a283),_0x2bd147['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x10a283),_0x2bd147['on']('listStart',(_0x521e9a,_0x193d43)=>_0xbe3ae1['execute']('listStart',_0x193d43));}return _0x2bd147['delegate']('execute')['to'](_0x39dc89),_0x2bd147;}({'editor':_0x3f61b7,'dropdownView':_0xfb115c,'parentCommandName':_0x4812ac,'styleGridAriaLabel':_0x2f6f35,'styleDefinitions':_0x32a9d6});_0xfb115c['panelView']['children']['add'](_0x34bc2f);}),_0xfb115c['on']('execute',()=>{_0x3f61b7['editing']['view']['focus']();}),_0xfb115c;}:_0x3719de=>{const _0x6546fd=new _0x2d7c83(_0x3719de);return _0x6546fd['set']({'label':_0x3b2424,'icon':_0x4d264f,'tooltip':!0x0,'isToggleable':!0x0}),_0x6546fd['bind']('isOn')['to'](_0x292802,'value',_0x57aa46=>!!_0x57aa46),_0x6546fd['on']('execute',()=>{_0x3f61b7['execute'](_0x4812ac),_0x3f61b7['editing']['view']['focus']();}),_0x6546fd;};}({'editor':_0x85f853,'parentCommandName':'multiLevelList','buttonLabel':A(_0x85f853['locale'],'Multi-level\x20List'),'buttonIcon':_0x3f73a2,'styleGridAriaLabel':A(_0x85f853['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x85f853['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x5eb3d7=_0x85f853['commands']['get']('multiLevelList'),_0x4a5765=new _0x30a917(_0x85f853['locale']);return _0x4a5765['set']({'label':A(_0x85f853['locale'],'Multi-level\x20List'),'icon':_0x3f73a2}),_0x4a5765['bind']('isEnabled')['to'](_0x5eb3d7),_0x4a5765['bind']('isOn')['to'](_0x5eb3d7,'value',_0x24c33b=>!!_0x24c33b),_0x4a5765['on']('execute',()=>{_0x85f853['execute']('multiLevelList'),_0x85f853['editing']['view']['focus']();}),_0x4a5765;}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x219137=[this['editor']];for(const _0x5f7f26 of _0x219137){let _0x20f312;for(const _0x352792 in _0x5f7f26){const _0x10d466=_0x352792,_0x39a2a1=_0x5f7f26[_0x10d466];if('multiLevelListLicenseKeyValid'==_0x39a2a1||'multiLevelListLicenseKeyInvalid'==_0x39a2a1||'multiLevelListLicenseKeyExpired'==_0x39a2a1||'multiLevelListLicenseKeyDomainLimit'==_0x39a2a1||'multiLevelListLicenseKeyNotAllowed'==_0x39a2a1||'multiLevelListLicenseKeyEvaluationLimit'==_0x39a2a1||'multiLevelListLicenseKeyUsageLimit'==_0x39a2a1){delete _0x5f7f26[_0x10d466],_0x20f312=_0x39a2a1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x20f312&&_0x5f7f26['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x20f312&&_0x5f7f26['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x20f312&&_0x5f7f26['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x20f312&&_0x5f7f26['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x20f312&&_0x5f7f26['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x20f312&&_0x5f7f26['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x408fd6{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 _0x184dc3,Plugin as _0x66909e}from'@ckeditor/ckeditor5-core';import{Matcher as _0x175dad,ViewUpcastWriter as _0x4addb9}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x5f106d,_isFirstBlockOfListItem as _0x40a9c6}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0xb4804f,KeystrokeHandler as _0x3b5e95,createElement as _0x172c3a,first as _0x511570,global as _0x552100,uid as _0x511251}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x2c2222}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x20a860,CollapsibleView as _0x40dbe3,FocusCycler as _0x4ebbf8,LabeledFieldView as _0x5e79e9,MenuBarMenuListItemButtonView as _0xf77d66,SplitButtonView as _0x38202d,View as _0x43e436,ViewCollection as _0x42b17b,addKeyboardHandlingForGrid as _0xd0b35b,createDropdown as _0x4c30e9,createLabeledInputNumber as _0x13e3ef}from'@ckeditor/ckeditor5-ui';var S=class extends _0x184dc3{defaultListMarkerStyle;_listDefinitions;_listUtils;constructor(_0x4324df,_0x5440fc,_0x222357){super(_0x4324df),this['defaultListMarkerStyle']=_0x5440fc,this['_listDefinitions']=_0x222357,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}execute(_0x1394ee={}){const _0x1ba9c8=this['editor']['model'],_0x46c1e8=_0x1394ee['listMarkerStyle']||this['defaultListMarkerStyle'];_0x1ba9c8['change'](()=>{const _0x33fb3d=this['_getListTypeFromListMarkerStyle'](_0x46c1e8);if(!_0x33fb3d)return;const _0x38b533=_0x33fb3d+'List';this['editor']['execute'](_0x38b533,{'additionalAttributes':{'listMarkerStyle':_0x46c1e8}});});}_getValue(){const _0x4420ee=_0x511570(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x4420ee)?_0x4420ee['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x18d92c=this['editor'],_0x28d8cb=_0x18d92c['commands']['get']('customNumberedList'),_0x1509dc=_0x18d92c['commands']['get']('customBulletedList');return _0x28d8cb['isEnabled']||_0x1509dc['isEnabled'];}_getListTypeFromListMarkerStyle(_0x16cc40){const _0x1bde75=this['_listDefinitions']['find'](_0x1316b8=>_0x1316b8['listMarkerStyle']==_0x16cc40);return _0x1bde75?_0x1bde75['listType']:null;}},x=class extends _0x66909e{_listDefinitions;static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5f106d];}constructor(_0x448ba8){super(_0x448ba8);const _0x5aeda2=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x2ad6a9=>_0x2ad6a9+'.'}]},..._0x5aeda2];}init(){const _0x1fe178=this['editor'],_0x10ffec=_0x1fe178['model'],_0x456300=_0x1fe178['editing']['view'],_0x162d32=_0x1fe178['plugins']['get'](_0x5f106d);_0x1fe178['commands']['add']('multiLevelList',new S(_0x1fe178,'legal',this['_listDefinitions'])),_0x10ffec['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x10ffec['schema']['addAttributeCheck']((_0x5a992b,_0x53f58d)=>{const _0x56fd77=_0x5a992b['last'];if('listMarker'==_0x53f58d||'listMarkerStyle'==_0x53f58d)return!(!_0x56fd77['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x3807c4=>_0x3807c4['listType']==_0x56fd77['getAttribute']('listType')))&&void 0x0;});for(const _0x44d1eb of this['_listDefinitions'])_0x1fe178['conversion']['for']('upcast')['add'](_0x1d4984=>{_0x1d4984['on']('element:'+('customNumbered'==_0x44d1eb['listType']?'ol':'ul'),_(_0x44d1eb,_0x10ffec['schema']),{'priority':'low'});}),_0x162d32['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x44686d,_0x50d6f2,_0x459fa7){_0x50d6f2==_0x44d1eb['listMarkerStyle']?(_0x44686d['addClass'](['multi-level-list',_0x44d1eb['className']],_0x459fa7),_0x44686d['setStyle']('list-style-type','none',_0x459fa7)):(_0x44686d['removeClass'](['multi-level-list',_0x44d1eb['className']],_0x459fa7),_0x44686d['removeStyle']('list-style-type',_0x459fa7));}}),_0x162d32['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x2e7a8b,_0x1e8f83,{dataPipeline:_0x23ff85}){if(!_0x1e8f83['hasAttribute']('listMarker'))return null;if(_0x1e8f83['getAttribute']('listType')!=_0x44d1eb['listType']||_0x1e8f83['getAttribute']('listMarkerStyle')!=_0x44d1eb['listMarkerStyle'])return null;const _0xab0b83=String(_0x1e8f83['getAttribute']('listMarker')),_0x2dfb2a=this['canInjectMarkerIntoElement'](_0x1e8f83);return _0x2e7a8b['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x23ff85&&{'contenteditable':'false','data-multi-level-list-marker':_0xab0b83}},function(_0x55c12a){const _0x10b6ea=this['toDomElement'](_0x55c12a);return _0x2dfb2a?(_0x10b6ea['appendChild'](_0x172c3a(_0x55c12a,'span',{},_0x23ff85?_0x55c12a['createTextNode'](_0xab0b83):[])),_0x10b6ea['appendChild'](_0x55c12a['createTextNode']('\u00a0'))):_0x23ff85&&_0x10b6ea['appendChild'](_0x55c12a['createTextNode'](_0xab0b83)),_0x10b6ea;});},'canInjectMarkerIntoElement':_0x5777b3=>_0x10ffec['schema']['checkChild'](_0x5777b3,'$text')&&_0x10ffec['schema']['checkChild'](_0x5777b3,'$inlineObject')&&!_0x10ffec['schema']['isLimit'](_0x5777b3)&&_0x5777b3['getAttribute']('listType')==_0x44d1eb['listType']&&_0x5777b3['getAttribute']('listMarkerStyle')==_0x44d1eb['listMarkerStyle']});_0x1fe178['conversion']['for']('upcast')['add'](_0x2dcab2=>{_0x2dcab2['on']('element:span',function(_0x30022e){return(_0x189a67,_0x1111d2,{writer:_0x421e30,consumable:_0x301c1b})=>{const _0x1ff392=_0x1111d2['modelCursor'],_0x5a41ae=_0x1ff392['parent'],_0x27713c=_0x1111d2['viewItem'];if(_0x301c1b['consume'](_0x27713c,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x1ff392['isAtStart']&&_0x5a41ae['hasAttribute']('listType')&&_0x27713c['childCount']>0x0){const _0x5a38ab=_0x30022e['createRangeIn'](_0x27713c);let _0xdc8752='';for(const _0xf5d206 of _0x5a38ab['getItems']())_0xf5d206['is']('$textProxy')?(_0xdc8752+=_0xf5d206['data']['trim'](),_0x301c1b['consume'](_0xf5d206['textNode'])):_0x301c1b['consume'](_0xf5d206,{'name':!0x0});_0x421e30['setAttribute']('listMarker',_0xdc8752['trim'](),_0x5a41ae);}};}(_0x456300));}),_0x162d32['on']('postFixer',(_0x53bf81,{listNodes:_0x332d2e,writer:_0x5cf359})=>{const _0x35e38b=[];for(const {node:_0x53d70d,previousNodeInList:_0x368a55}of _0x332d2e){const _0x5b2761=_0x53d70d['getAttribute']('listType'),_0x19662f=_0x53d70d['getAttribute']('listMarkerStyle')||('customNumbered'==_0x5b2761?'legal':void 0x0),_0x2ab2d1=this['_listDefinitions']['find'](_0x167924=>_0x167924['listType']==_0x5b2761&&_0x167924['listMarkerStyle']==_0x19662f);if('customNumbered'!=_0x5b2761&&'customBulleted'!=_0x5b2761&&(_0x53d70d['hasAttribute']('listMarker')&&(_0x5cf359['removeAttribute']('listMarker',_0x53d70d),_0x53bf81['return']=!0x0),_0x53d70d['hasAttribute']('listMarkerStyle')&&(_0x5cf359['removeAttribute']('listMarkerStyle',_0x53d70d),_0x53bf81['return']=!0x0)),!_0x2ab2d1){'customBulleted'!=_0x5b2761||_0x19662f||(_0x5cf359['setAttribute']('listType','bulleted',_0x53d70d),_0x53bf81['return']=!0x0);continue;}_0x53d70d['hasAttribute']('listMarkerStyle')||(_0x5cf359['setAttribute']('listMarkerStyle',_0x19662f,_0x53d70d),_0x53bf81['return']=!0x0);const _0x32356e=_0x53d70d['getAttribute']('listIndent');if(_0x368a55&&_0x368a55['getAttribute']('listItemId')==_0x53d70d['getAttribute']('listItemId'))continue;if(_0x35e38b['length']=_0x32356e+0x1,_0x1fe178['config']['get']('list.enableSkipLevelLists')){for(let _0x1eff06=0x0;_0x1eff06<_0x32356e;_0x1eff06++)void 0x0===_0x35e38b[_0x1eff06]&&(_0x35e38b[_0x1eff06]=0x1);}_0x368a55||_0x35e38b[_0x32356e]?_0x368a55&&_0x368a55['getAttribute']('listType')!=_0x2ab2d1['listType']?_0x35e38b[_0x32356e]=0x1:_0x35e38b[_0x32356e]++:_0x35e38b[_0x32356e]=_0x53d70d['getAttribute']('listStart')||0x1;const _0x390984=E(_0x32356e,_0x2ab2d1,_0x35e38b);_0x53d70d['getAttribute']('listMarker')!=_0x390984&&(_0x5cf359['setAttribute']('listMarker',_0x390984,_0x53d70d),_0x53bf81['return']=!0x0);}}),_0x162d32['on']('checkElement',(_0x16dff9,{modelElement:_0x50c5f3,viewElement:_0x165c05})=>{const _0x507d08=_0x50c5f3['getAttribute']('listType');if('customNumbered'!=_0x507d08&&'customBulleted'!=_0x507d08)return;if(_0x10ffec['schema']['checkChild'](_0x50c5f3,'$text'))return;const _0xab0b97=_0x40a9c6(_0x50c5f3);let _0x214df1=!0x1;const _0x4780be=_0x456300['createPositionBefore'](_0x165c05)['getWalker']({'direction':'backward'});for(const {item:_0x1455b0}of _0x4780be)if(_0x1455b0['is']('element')){if(_0x1fe178['editing']['mapper']['toModelElement'](_0x1455b0))break;if(_0x1455b0['getCustomProperty']('listItemMarker')){_0x214df1=!0x0;break;}}_0x214df1!=_0xab0b97&&(_0x16dff9['return']=!0x0,_0x16dff9['stop']());});const _0x33c038=_0x1fe178['editing']['view']['document'];this['listenTo'](_0x33c038,'clipboardOutput',(_0x133a7d,_0x229dc9)=>{const _0xb5fc80=new _0x175dad({'name':'span','classes':'multi-level-list__marker'}),_0x5125be=new _0x175dad({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x56cb44=new _0x4addb9(_0x229dc9['content']['document']),_0x4abc02=[];for(const _0x31b65b of _0x56cb44['createRangeIn'](_0x229dc9['content'])['getItems']())_0x31b65b['is']('element')&&_0xb5fc80['match'](_0x31b65b)&&_0x4abc02['push'](_0x31b65b),_0x31b65b['is']('element')&&_0x5125be['match'](_0x31b65b)&&_0x56cb44['removeStyle']('list-style-type',_0x31b65b);for(const _0x7bf7bb of _0x4abc02)_0x56cb44['remove'](_0x7bf7bb);});}afterInit(){!async function(_0x7a359d){const _0x96bb67='I9sCmg3DJiG5LFMuQjwhT0XBYyxSqvdPO46NZAcVzb71RWkfe8oKptnrUEal2H',_0x2e71f2=0x79440,_0x1bd41c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0xdc1ade(_0xa50473){const _0x347b3c=new window['Promise'](_0x2f04aa=>{_0xa50473['once']('ready',_0x2f04aa);}),_0x5b80f0=window['Date']['now'](),_0x214772=_0xa50473['config']['get']('licenseKey');async function _0x1a7517(){let _0x59e8ac,_0xdc1829=null,_0x2b0fca=null;try{return'GPL'==_0x214772?'NotAllowed':(_0x59e8ac=_0x1b1ced(),_0x59e8ac?(_0x59e8ac['usageEndpoint']&&(_0x2b0fca=_0x36a05d(_0x59e8ac['usageEndpoint'],_0x59e8ac['jti'])),await _0x299ee2()?_0x4c45b5()?_0x4faaea()?'Expired':_0x59014f()?('evaluation'==_0x59e8ac['licenseType']&&(_0xdc1829=_0x4b725f('EvaluationLimit')),await _0x3911bf()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4faaea(){const _0x3f84ec=['evaluation','trial']['includes'](_0x59e8ac['licenseType'])?_0x5b80f0/0x3e8:0xe10*_0x2e71f2;return _0x59e8ac['exp']<_0x3f84ec;}function _0x4c45b5(){const _0x53bf03=_0x59e8ac['features'];return!!_0x53bf03&&(!!_0x53bf03['includes']('*')||!!_0x53bf03['includes']('MLL'));}function _0x59014f(){const _0xc15c2d=_0x59e8ac['licensedHosts'];if(!_0xc15c2d||0x0==_0xc15c2d['length'])return!0x0;const {hostname:_0x227b88}=new URL(window['location']['href']);if(_0xc15c2d['includes'](_0x227b88))return!0x0;const _0x455248=_0x227b88['split']('.');return _0xc15c2d['filter'](_0x4efdcb=>_0x4efdcb['includes']('*'))['map'](_0x2d734c=>_0x2d734c['split']('.'))['filter'](_0x3c3252=>_0x3c3252['length']<=_0x455248['length'])['map'](_0x213960=>Array(_0x455248['length']-_0x213960['length'])['fill']('*'===_0x213960[0x0]?'*':'')['concat'](_0x213960))['some'](_0x532ebd=>_0x455248['every']((_0x1118ee,_0x32c273)=>_0x532ebd[_0x32c273]===_0x1118ee||'*'===_0x532ebd[_0x32c273]));}function _0x3911bf(){return _0xdc1829&&_0x2b0fca?new window['Promise']((_0x3ddd43,_0x18bbdf)=>{_0xdc1829['then'](_0x3ddd43,_0x18bbdf),_0x2b0fca['then'](_0x3031f3=>{'Valid'!=_0x3031f3&&_0x3ddd43(_0x3031f3);},_0x18bbdf);}):_0xdc1829||_0x2b0fca||'Valid';}}function _0x36a05d(_0x7678a7,_0x5f05d8){return new window['Promise'](_0x1b2439=>{if(_0x358067())return _0x1b2439('Valid');_0x28d344(),_0xa50473['decorate']('_sendUsageRequest');let _0x3f6cfd=!0x1;const _0x3bba47=_0x511251();function _0x2b3521(_0x4b6651){return!!_0x4b6651&&('object'==typeof _0x4b6651||'function'==typeof _0x4b6651)&&'function'==typeof _0x4b6651['then']&&'function'==typeof _0x4b6651['catch'];}function _0x39aaf1(_0x10e249){_0x5830eb(_0x10e249)['then'](_0x10bed6=>_0x10bed6&&'ok'==_0x10bed6['status']?_0x1ed02d(_0x3a72cc(_0x3bba47+_0x5f05d8))!=_0x10bed6['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x473e04=>(_0x227063(),_0x473e04),()=>{const _0x852052=_0x554a90();return null==_0x852052?(_0x227063(),'Valid'):_0x5b80f0-_0x852052>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1b2439)['catch'](()=>{_0x1b2439('UsageLimit');});const _0x2f8964=0x36ee80;function _0x227063(){const _0x1d19db='llct-'+_0x1ed02d(_0x3a72cc(_0x7678a7)),_0xb60a38=_0x494556(_0x1ed02d(window['Math']['ceil'](_0x5b80f0/_0x2f8964)));window['localStorage']['setItem'](_0x1d19db,_0xb60a38);}function _0x554a90(){const _0x1d0c86='llct-'+_0x1ed02d(_0x3a72cc(_0x7678a7)),_0xb2c296=window['localStorage']['getItem'](_0x1d0c86);return _0xb2c296?window['parseInt'](_0x494556(_0xb2c296),0x10)*_0x2f8964:null;}function _0x5830eb(_0x224d82){return new window['Promise']((_0x9f92a8,_0x507097)=>{_0x224d82['then'](_0x9f92a8,_0x507097),window['setTimeout'](_0x507097,0x1d4c0);});}}_0xa50473['on']('_sendUsageRequest',(_0x595ae2,_0x33370e)=>{if(_0x33370e[0x0]!=_0x7678a7)return _0x1b2439('UsageLimit');_0x33370e[0x1]={..._0x33370e[0x1],'requestId':_0x3bba47};},{'priority':'high'}),_0xa50473['on']('_sendUsageRequest',_0x15783a=>{_0x2b3521(_0x15783a['return'])&&(_0x3f6cfd=!0x0,_0x39aaf1(_0x15783a['return']));},{'priority':'low'}),_0x347b3c['then'](()=>{_0x3f6cfd||_0x1b2439('UsageLimit');});});function _0x358067(){return'auto'==_0xa50473['editing']['view']['_overlayModeHint'];}function _0x28d344(){_0xa50473['editing']['view']['_overlayModeHint']='auto';}}function _0x4b725f(_0x3c8657){const _0x49aaf7=[new window['Promise'](_0x30d3fc=>setTimeout(_0x30d3fc,0x93ecc)),_0x347b3c['then'](()=>new window['Promise'](_0x52c372=>{let _0x1d3c0e=0x0;_0xa50473['model']['on']('applyOperation',(_0xd61f15,_0x58b209)=>{_0x58b209[0x0]['isDocumentOperation']&&_0x1d3c0e++,0x5e8==_0x1d3c0e&&(_0x52c372(),_0xd61f15['off']());});}))];return window['Promise']['race'](_0x49aaf7)['then'](()=>_0x3c8657);}async function _0x3117a1(){await _0x347b3c,_0xa50473['model']['change']=_0x253c92,_0xa50473['model']['enqueueChange']=_0x253c92,_0xa50473['enableReadOnlyMode']('model');}function _0x3062f8(_0x49ec92){const _0x1b0681=_0x1b757e();_0xa50473[_0x1b0681]='multiLevelListLicenseKey'+_0x49ec92,'Valid'!=_0x49ec92&&_0x3117a1();}function _0x1b757e(){const _0x2029e4=window['String'](window['performance']['now']())['replace']('.','');let _0xfaa7a0='I';for(let _0x233142=0x0;_0x233142<_0x2029e4['length'];_0x233142+=0x2){let _0x554f05=window['parseInt'](_0x2029e4['substring'](_0x233142,_0x233142+0x2));_0x554f05>=0x3e&&(_0x554f05-=0x3e),_0xfaa7a0+=_0x96bb67[_0x554f05];}return _0xfaa7a0;}function _0x1b1ced(){const _0x29b2dc=_0x214772['split']('.');if(0x3!=_0x29b2dc['length'])return null;return _0xbe24df(_0x29b2dc[0x1]);function _0xbe24df(_0x41e740){const _0x34c81e=_0x42ab82(_0x41e740);return _0x34c81e&&_0x5c810a()?_0x34c81e:null;function _0x5c810a(){const _0x1e2adb=_0x34c81e['jti'],_0x3a202e=window['parseInt'](_0x1e2adb['substring'](_0x1e2adb['length']-0x8),0x10),_0x53df07={..._0x34c81e,'jti':_0x1e2adb['substring'](0x0,_0x1e2adb['length']-0x8)};return delete _0x53df07['vc'],_0x3a72cc(_0x53df07)==_0x3a202e;}}}async function _0x299ee2(){let _0x127234=!0x0;try{const [_0x173dbb,_0x21f9d7,_0x7816fc]=_0x214772['split']('.');return _0x307a4b(_0x173dbb),await _0x5e6156(_0x173dbb,_0x21f9d7,_0x7816fc),_0x127234;}catch{return!0x1;}function _0x307a4b(_0x430313){const _0x6d952b=_0x42ab82(_0x430313);_0x6d952b&&'ES256'==_0x6d952b['alg']||(_0x127234=!0x1);}async function _0x5e6156(_0x94e98e,_0x2c19e3,_0x5225b0){const _0x40d20c=window['Uint8Array']['from'](_0x3dcc0d(_0x5225b0),_0x3f3798=>_0x3f3798['charCodeAt'](0x0)),_0x1d9fde=new window['TextEncoder']()['encode'](_0x94e98e+'.'+_0x2c19e3),_0x155766=window['crypto']['subtle'];if(!_0x155766)return;const _0x61cdbc=await _0x155766['importKey']('jwk',_0x1bd41c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x155766['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x61cdbc,_0x40d20c,_0x1d9fde)||(_0x127234=!0x1);}}function _0x42ab82(_0x4eab01){return _0x4eab01['startsWith']('ey')?JSON['parse'](_0x3dcc0d(_0x4eab01)):null;}function _0x3dcc0d(_0x52a2c3){return window['atob'](_0x52a2c3['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3a72cc(_0x245c7a){let _0x202321=0x1505;function _0x2a8bcf(_0x431dcf){for(let _0x27a824=0x0;_0x27a824<_0x431dcf['length'];_0x27a824++){const _0xc473a9=_0x431dcf['charCodeAt'](_0x27a824);_0x202321=(_0x202321<<0x5)+_0x202321+_0xc473a9,_0x202321&=_0x202321;}}function _0x4d26e6(_0x138ba7){Array['isArray'](_0x138ba7)?_0x138ba7['forEach'](_0x4d26e6):_0x138ba7&&'object'==typeof _0x138ba7?Object['entries'](_0x138ba7)['sort']()['forEach'](([_0x2c8ad4,_0xa8ee5b])=>{_0x2a8bcf(_0x2c8ad4),_0x4d26e6(_0xa8ee5b);}):_0x2a8bcf(window['String'](_0x138ba7));}return _0x4d26e6(_0x245c7a),_0x202321>>>0x0;}function _0x1ed02d(_0x5bfae8){return _0x5bfae8['toString'](0x10)['padStart'](0x8,'0');}function _0x494556(_0x2e8834){return _0x2e8834['split']('')['reverse']()['join']('');}function _0x253c92(){}_0x3062f8(await _0x1a7517());}_0xdc1ade(_0x7a359d['editor']);}(this);}};function E(_0x4ed0ec,_0x30319b,_0x596b6c){let _0x396b80=_0x30319b['listMarkers'][_0x4ed0ec%_0x30319b['listMarkers']['length']];if(void 0x0===_0x396b80['showMarkerPath']||_0x396b80['showMarkerPath'])return _0x596b6c['slice'](0x0,_0x4ed0ec+0x1)['map']((_0x2c293e,_0x59973f)=>(_0x396b80=_0x30319b['listMarkers'][_0x59973f%_0x30319b['listMarkers']['length']],N(_0x396b80['marker'],_0x2c293e)))['join']('');{const _0xdacb9b=_0x596b6c[_0x596b6c['length']-0x1];return N(_0x396b80['marker'],_0xdacb9b);}}function N(_0x142a37,_0xfd407d){return'function'==typeof _0x142a37?_0x142a37(_0xfd407d):_0x142a37;}function _(_0xa608d6,_0x2482c5){return(_0x2f7a43,_0xbbee38,_0x42a99e)=>{const _0x1a1831=_0xbbee38['viewItem'];if(_0xbbee38['modelRange']||Object['assign'](_0xbbee38,_0x42a99e['convertChildren'](_0xbbee38['viewItem'],_0xbbee38['modelCursor'])),!_0x42a99e['consumable']['test'](_0x1a1831,{'classes':_0xa608d6['className']}))return;const _0x2a5ecb=Array['from'](_0xbbee38['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x25d999=>_0x2482c5['checkAttribute'](_0x25d999,'listItemId'));if(!_0x2a5ecb['length'])return;_0x42a99e['consumable']['consume'](_0x1a1831,{'classes':_0xa608d6['className']}),_0x42a99e['consumable']['consume'](_0x1a1831,{'classes':'multi-level-list'}),_0x42a99e['consumable']['consume'](_0x1a1831,{'styles':'list-style-type'});const _0x1cc164=_0x2a5ecb[0x0]['getAttribute']('listIndent');for(const _0x1a902f of _0x2a5ecb)_0x1a902f['getAttribute']('listIndent')==_0x1cc164&&(_0x42a99e['writer']['setAttribute']('listType',_0xa608d6['listType'],_0x1a902f),_0x42a99e['writer']['setAttribute']('listMarkerStyle',_0xa608d6['listMarkerStyle'],_0x1a902f));};}function A(_0x45b466,_0x4dba42){const _0x31f4df=_0x45b466['t'],t=_0x45b466['t'];switch(_0x4dba42){case'Start\x20at':return _0x31f4df('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x31f4df('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x31f4df('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x31f4df('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 _0x4dba42;}}var V=class extends _0x43e436{['children'];stylesView=null;additionalPropertiesCollapsibleView=null;startIndexFieldView=null;['focusTracker']=new _0xb4804f();keystrokes=new _0x3b5e95();['focusables']=new _0x42b17b();['focusCycler'];constructor(_0x25fa86,{enabledProperties:_0x5dd5e2,styleButtonViews:_0x43b578,styleGridAriaLabel:_0x46cd5b}){super(_0x25fa86);const _0x298633=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x4ebbf8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x5dd5e2['styles']?(this['stylesView']=this['_createStylesView'](_0x43b578,_0x46cd5b),this['children']['add'](this['stylesView'])):_0x298633['push']('ck-multi-level-list-properties_without-styles'),_0x5dd5e2['startIndex']&&(this['_addListPropertyViews'](_0x5dd5e2),_0x298633['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x298633},'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 _0x373971 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x373971['element']);_0xd0b35b({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x552100['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 _0x2291f1=_0x129986=>_0x129986['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2291f1),this['keystrokes']['set']('arrowleft',_0x2291f1),this['keystrokes']['set']('arrowup',_0x2291f1),this['keystrokes']['set']('arrowdown',_0x2291f1);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}focusLast(){this['focusCycler']['focusLast']();}destroy(){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}_createStylesView(_0x5c71b3,_0x34199a){const _0x5b4b17=new _0x43e436(this['locale']);return _0x5b4b17['children']=_0x5b4b17['createCollection'](),_0x5b4b17['children']['addMany'](_0x5c71b3),_0x5b4b17['setTemplate']({'tag':'div','attributes':{'aria-label':_0x34199a,'class':['ck','ck-multi-level-list-styles']},'children':_0x5b4b17['children']}),_0x5b4b17['children']['delegate']('execute')['to'](this),_0x5b4b17['focus']=function(){this['children']['first']['focus']();},_0x5b4b17['focusTracker']=new _0xb4804f(),_0x5b4b17['keystrokes']=new _0x3b5e95(),_0x5b4b17['render'](),_0x5b4b17['keystrokes']['listenTo'](_0x5b4b17['element']),_0x5b4b17;}_addListPropertyViews(_0xe8ac01){const _0x5c2f07=[];_0xe8ac01['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x5c2f07['push'](this['startIndexFieldView'])),_0xe8ac01['styles']?(this['additionalPropertiesCollapsibleView']=new _0x40dbe3(this['locale'],_0x5c2f07),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x5c2f07,'isEnabled',(..._0x3837f3)=>_0x3837f3['some'](_0x3bd3e1=>_0x3bd3e1)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x2906cd,_0xe63aec,_0x23cefc)=>{_0x23cefc||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x5c2f07);}_createStartIndexField(){const _0x2f307b=new _0x5e79e9(this['locale'],_0x13e3ef);return _0x2f307b['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x2f307b['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2f307b['fieldView']['on']('input',()=>{const _0x4f7b2c=_0x2f307b['fieldView']['element'],_0x1ea5e8=_0x4f7b2c['valueAsNumber'];Number['isNaN'](_0x1ea5e8)?_0x2f307b['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x4f7b2c['checkValidity']()?this['fire']('listStart',{'startIndex':_0x1ea5e8}):_0x2f307b['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x2f307b;}},K=class extends _0x66909e{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x4f0b75=this['editor'];_0x4f0b75['ui']['componentFactory']['add']('multiLevelList',function({editor:_0xbbd9d8,parentCommandName:_0xca62f4,buttonLabel:_0x3bfcc8,buttonIcon:_0x51c150,styleGridAriaLabel:_0x5a5ff7,styleDefinitions:_0x24ee04}){const _0x5dd7db=_0xbbd9d8['commands']['get'](_0xca62f4),_0x1b3a40=_0xbbd9d8['config']['get']('list.properties')||{},_0x3984b7=_0xbbd9d8['plugins']['has']('ListProperties'),_0x21f3e1=_0x1b3a40['startIndex'];return _0x3984b7&&_0x21f3e1?_0x4ba225=>{const _0x1bb688=_0x4c30e9(_0x4ba225,_0x38202d),_0x3ac55b=_0x1bb688['buttonView'];return _0x1bb688['bind']('isEnabled')['to'](_0x5dd7db),_0x1bb688['class']='ck-list-styles-dropdown',_0x3ac55b['on']('execute',()=>{_0xbbd9d8['execute'](_0xca62f4),_0xbbd9d8['editing']['view']['focus']();}),_0x3ac55b['set']({'label':_0x3bfcc8,'icon':_0x51c150,'tooltip':!0x0,'isToggleable':!0x0}),_0x3ac55b['bind']('isOn')['to'](_0x5dd7db,'value',_0x4d2e9c=>!!_0x4d2e9c),_0x1bb688['once']('change:isOpen',()=>{const _0x42632b=function({editor:_0x714fd1,dropdownView:_0x25977,styleDefinitions:_0x2ac40a,styleGridAriaLabel:_0x4d8c83}){const _0x133543=_0x714fd1['locale'],_0x1a429f=_0x714fd1['config']['get']('list.properties'),_0x50f21a=null;_0x1a429f['reversed']=!0x1,_0x2ac40a['length']||(_0x1a429f['styles']=!0x1);const _0x4cdbfb=new V(_0x133543,{'styleGridAriaLabel':_0x4d8c83,'enabledProperties':_0x1a429f,'styleButtonViews':_0x50f21a});if(_0x1a429f['startIndex']){const _0x450178=_0x714fd1['commands']['get']('listStart');_0x4cdbfb['startIndexFieldView']['bind']('isEnabled')['to'](_0x450178),_0x4cdbfb['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x450178),_0x4cdbfb['on']('listStart',(_0x42018e,_0x374dc4)=>_0x714fd1['execute']('listStart',_0x374dc4));}return _0x4cdbfb['delegate']('execute')['to'](_0x25977),_0x4cdbfb;}({'editor':_0xbbd9d8,'dropdownView':_0x1bb688,'parentCommandName':_0xca62f4,'styleGridAriaLabel':_0x5a5ff7,'styleDefinitions':_0x24ee04});_0x1bb688['panelView']['children']['add'](_0x42632b);}),_0x1bb688['on']('execute',()=>{_0xbbd9d8['editing']['view']['focus']();}),_0x1bb688;}:_0x2e4519=>{const _0x3c4b3a=new _0x20a860(_0x2e4519);return _0x3c4b3a['set']({'label':_0x3bfcc8,'icon':_0x51c150,'tooltip':!0x0,'isToggleable':!0x0}),_0x3c4b3a['bind']('isOn')['to'](_0x5dd7db,'value',_0x438181=>!!_0x438181),_0x3c4b3a['on']('execute',()=>{_0xbbd9d8['execute'](_0xca62f4),_0xbbd9d8['editing']['view']['focus']();}),_0x3c4b3a;};}({'editor':_0x4f0b75,'parentCommandName':'multiLevelList','buttonLabel':A(_0x4f0b75['locale'],'Multi-level\x20List'),'buttonIcon':_0x2c2222,'styleGridAriaLabel':A(_0x4f0b75['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x4f0b75['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x14ef4d=_0x4f0b75['commands']['get']('multiLevelList'),_0x36443f=new _0xf77d66(_0x4f0b75['locale']);return _0x36443f['set']({'label':A(_0x4f0b75['locale'],'Multi-level\x20List'),'icon':_0x2c2222}),_0x36443f['bind']('isEnabled')['to'](_0x14ef4d),_0x36443f['bind']('isOn')['to'](_0x14ef4d,'value',_0x88f86=>!!_0x88f86),_0x36443f['on']('execute',()=>{_0x4f0b75['execute']('multiLevelList'),_0x4f0b75['editing']['view']['focus']();}),_0x36443f;}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x5bd455=[this['editor']];for(const _0x2853af of _0x5bd455){let _0x296152;for(const _0x5afc14 in _0x2853af){const _0x37451d=_0x5afc14,_0xa9cd62=_0x2853af[_0x37451d];if('multiLevelListLicenseKeyValid'==_0xa9cd62||'multiLevelListLicenseKeyInvalid'==_0xa9cd62||'multiLevelListLicenseKeyExpired'==_0xa9cd62||'multiLevelListLicenseKeyDomainLimit'==_0xa9cd62||'multiLevelListLicenseKeyNotAllowed'==_0xa9cd62||'multiLevelListLicenseKeyEvaluationLimit'==_0xa9cd62||'multiLevelListLicenseKeyUsageLimit'==_0xa9cd62){delete _0x2853af[_0x37451d],_0x296152=_0xa9cd62,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x296152&&_0x2853af['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x296152&&_0x2853af['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x296152&&_0x2853af['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x296152&&_0x2853af['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x296152&&_0x2853af['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x296152&&_0x2853af['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x66909e{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.
|
|
3
|
+
"version": "48.5.0-alpha.5",
|
|
4
4
|
"description": "Multi-level list feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"./package.json": "./package.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ckeditor/ckeditor5-clipboard": "48.5.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-core": "48.5.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-engine": "48.5.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-icons": "48.5.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-list": "48.5.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-ui": "48.5.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-utils": "48.5.0-alpha.
|
|
35
|
+
"@ckeditor/ckeditor5-clipboard": "48.5.0-alpha.5",
|
|
36
|
+
"@ckeditor/ckeditor5-core": "48.5.0-alpha.5",
|
|
37
|
+
"@ckeditor/ckeditor5-engine": "48.5.0-alpha.5",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "48.5.0-alpha.5",
|
|
39
|
+
"@ckeditor/ckeditor5-list": "48.5.0-alpha.5",
|
|
40
|
+
"@ckeditor/ckeditor5-ui": "48.5.0-alpha.5",
|
|
41
|
+
"@ckeditor/ckeditor5-utils": "48.5.0-alpha.5"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist",
|