@ckeditor/ckeditor5-list-multi-level 48.3.0-alpha.0 → 48.3.0-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 _0x6a413d,Plugin as _0x5b5f91}from'@ckeditor/ckeditor5-core';import{Matcher as _0x40fade,ViewUpcastWriter as _0x269f67}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x3208ff,_isFirstBlockOfListItem as _0x146056}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0xa765a1,KeystrokeHandler as _0x43cd3f,createElement as _0x2be5d2,first as _0x42d56b,global as _0x1ab7b0,uid as _0x1dc89d}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x5a989f}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x25a435,CollapsibleView as _0x134544,FocusCycler as _0x20f7ec,LabeledFieldView as _0x2bd32f,MenuBarMenuListItemButtonView as _0x139663,SplitButtonView as _0x126ce4,View as _0x4547cc,ViewCollection as _0x33e160,addKeyboardHandlingForGrid as _0x459e44,createDropdown as _0x5bf276,createLabeledInputNumber as _0x5024f8}from'@ckeditor/ckeditor5-ui';var S=class extends _0x6a413d{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x4eb0f7,_0x428c7b,_0x518bec){super(_0x4eb0f7),this['defaultListMarkerStyle']=_0x428c7b,this['_listDefinitions']=_0x518bec,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x36101c={}){const _0x2e2af2=this['editor']['model'],_0xfd8f53=_0x36101c['listMarkerStyle']||this['defaultListMarkerStyle'];_0x2e2af2['change'](()=>{const _0x26e7ee=this['_getListTypeFromListMarkerStyle'](_0xfd8f53);if(!_0x26e7ee)return;const _0x491231=_0x26e7ee+'List';this['editor']['execute'](_0x491231,{'additionalAttributes':{'listMarkerStyle':_0xfd8f53}});});}['_getValue'](){const _0x4a1da4=_0x42d56b(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x4a1da4)?_0x4a1da4['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x3814a8=this['editor'],_0x57693a=_0x3814a8['commands']['get']('customNumberedList'),_0x44f6f1=_0x3814a8['commands']['get']('customBulletedList');return _0x57693a['isEnabled']||_0x44f6f1['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x4efdac){const _0x391e89=this['_listDefinitions']['find'](_0x2ae77a=>_0x2ae77a['listMarkerStyle']==_0x4efdac);return _0x391e89?_0x391e89['listType']:null;}},x=class extends _0x5b5f91{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3208ff];}constructor(_0x22e997){super(_0x22e997);const _0x5015bb=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x99109b=>_0x99109b+'.'}]},..._0x5015bb];}['init'](){const _0x175e57=this['editor'],_0x49a8a5=_0x175e57['model'],_0x555b76=_0x175e57['editing']['view'],_0x41575b=_0x175e57['plugins']['get'](_0x3208ff);_0x175e57['commands']['add']('multiLevelList',new S(_0x175e57,'legal',this['_listDefinitions'])),_0x49a8a5['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x49a8a5['schema']['addAttributeCheck']((_0x21f6f4,_0x18eb65)=>{const _0x523eb1=_0x21f6f4['last'];if('listMarker'==_0x18eb65||'listMarkerStyle'==_0x18eb65)return!(!_0x523eb1['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x248892=>_0x248892['listType']==_0x523eb1['getAttribute']('listType')))&&void 0x0;});for(const _0x3c1939 of this['_listDefinitions'])_0x175e57['conversion']['for']('upcast')['add'](_0x7733a2=>{_0x7733a2['on']('element:'+('customNumbered'==_0x3c1939['listType']?'ol':'ul'),_(_0x3c1939,_0x49a8a5['schema']),{'priority':'low'});}),_0x41575b['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x3b1545,_0x83e07f,_0x22e2b6){_0x83e07f==_0x3c1939['listMarkerStyle']?(_0x3b1545['addClass'](['multi-level-list',_0x3c1939['className']],_0x22e2b6),_0x3b1545['setStyle']('list-style-type','none',_0x22e2b6)):(_0x3b1545['removeClass'](['multi-level-list',_0x3c1939['className']],_0x22e2b6),_0x3b1545['removeStyle']('list-style-type',_0x22e2b6));}}),_0x41575b['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x46f945,_0x231b10,{dataPipeline:_0x5c2522}){if(!_0x231b10['hasAttribute']('listMarker'))return null;if(_0x231b10['getAttribute']('listType')!=_0x3c1939['listType']||_0x231b10['getAttribute']('listMarkerStyle')!=_0x3c1939['listMarkerStyle'])return null;const _0x1fdbef=String(_0x231b10['getAttribute']('listMarker')),_0x3a4e5f=this['canInjectMarkerIntoElement'](_0x231b10);return _0x46f945['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x5c2522&&{'contenteditable':'false','data-multi-level-list-marker':_0x1fdbef}},function(_0x5e651e){const _0x1516da=this['toDomElement'](_0x5e651e);return _0x3a4e5f?(_0x1516da['appendChild'](_0x2be5d2(_0x5e651e,'span',{},_0x5c2522?_0x5e651e['createTextNode'](_0x1fdbef):[])),_0x1516da['appendChild'](_0x5e651e['createTextNode']('\u00a0'))):_0x5c2522&&_0x1516da['appendChild'](_0x5e651e['createTextNode'](_0x1fdbef)),_0x1516da;});},'canInjectMarkerIntoElement':_0x234826=>_0x49a8a5['schema']['checkChild'](_0x234826,'$text')&&_0x49a8a5['schema']['checkChild'](_0x234826,'$inlineObject')&&!_0x49a8a5['schema']['isLimit'](_0x234826)&&_0x234826['getAttribute']('listType')==_0x3c1939['listType']&&_0x234826['getAttribute']('listMarkerStyle')==_0x3c1939['listMarkerStyle']});_0x175e57['conversion']['for']('upcast')['add'](_0x4b10be=>{_0x4b10be['on']('element:span',function(_0xb9ed31){return(_0x3ef621,_0x2af1a7,{writer:_0x7ad42b,consumable:_0x2b5b09})=>{const _0x213961=_0x2af1a7['modelCursor'],_0x2c3a13=_0x213961['parent'],_0x405036=_0x2af1a7['viewItem'];if(_0x2b5b09['consume'](_0x405036,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x213961['isAtStart']&&_0x2c3a13['hasAttribute']('listType')&&_0x405036['childCount']>0x0){const _0x35c3de=_0xb9ed31['createRangeIn'](_0x405036);let _0x4e394c='';for(const _0x228fe5 of _0x35c3de['getItems']())_0x228fe5['is']('$textProxy')?(_0x4e394c+=_0x228fe5['data']['trim'](),_0x2b5b09['consume'](_0x228fe5['textNode'])):_0x2b5b09['consume'](_0x228fe5,{'name':!0x0});_0x7ad42b['setAttribute']('listMarker',_0x4e394c['trim'](),_0x2c3a13);}};}(_0x555b76));}),_0x41575b['on']('postFixer',(_0x3e5c57,{listNodes:_0x17829b,writer:_0x2a589f})=>{const _0x4672e4=[];for(const {node:_0x38ef78,previousNodeInList:_0x3740ba}of _0x17829b){const _0x32893c=_0x38ef78['getAttribute']('listType'),_0x277671=_0x38ef78['getAttribute']('listMarkerStyle')||('customNumbered'==_0x32893c?'legal':void 0x0),_0x5d7a77=this['_listDefinitions']['find'](_0xdb11db=>_0xdb11db['listType']==_0x32893c&&_0xdb11db['listMarkerStyle']==_0x277671);if('customNumbered'!=_0x32893c&&'customBulleted'!=_0x32893c&&(_0x38ef78['hasAttribute']('listMarker')&&(_0x2a589f['removeAttribute']('listMarker',_0x38ef78),_0x3e5c57['return']=!0x0),_0x38ef78['hasAttribute']('listMarkerStyle')&&(_0x2a589f['removeAttribute']('listMarkerStyle',_0x38ef78),_0x3e5c57['return']=!0x0)),!_0x5d7a77){'customBulleted'!=_0x32893c||_0x277671||(_0x2a589f['setAttribute']('listType','bulleted',_0x38ef78),_0x3e5c57['return']=!0x0);continue;}_0x38ef78['hasAttribute']('listMarkerStyle')||(_0x2a589f['setAttribute']('listMarkerStyle',_0x277671,_0x38ef78),_0x3e5c57['return']=!0x0);const _0x4dda3f=_0x38ef78['getAttribute']('listIndent');if(_0x3740ba&&_0x3740ba['getAttribute']('listItemId')==_0x38ef78['getAttribute']('listItemId'))continue;if(_0x4672e4['length']=_0x4dda3f+0x1,_0x175e57['config']['get']('list.enableSkipLevelLists')){for(let _0x381fff=0x0;_0x381fff<_0x4dda3f;_0x381fff++)void 0x0===_0x4672e4[_0x381fff]&&(_0x4672e4[_0x381fff]=0x1);}_0x3740ba||_0x4672e4[_0x4dda3f]?_0x3740ba&&_0x3740ba['getAttribute']('listType')!=_0x5d7a77['listType']?_0x4672e4[_0x4dda3f]=0x1:_0x4672e4[_0x4dda3f]++:_0x4672e4[_0x4dda3f]=_0x38ef78['getAttribute']('listStart')||0x1;const _0xc91e4=E(_0x4dda3f,_0x5d7a77,_0x4672e4);_0x38ef78['getAttribute']('listMarker')!=_0xc91e4&&(_0x2a589f['setAttribute']('listMarker',_0xc91e4,_0x38ef78),_0x3e5c57['return']=!0x0);}}),_0x41575b['on']('checkElement',(_0x33c6cc,{modelElement:_0x50a2be,viewElement:_0x3298bb})=>{const _0x23ef9c=_0x50a2be['getAttribute']('listType');if('customNumbered'!=_0x23ef9c&&'customBulleted'!=_0x23ef9c)return;if(_0x49a8a5['schema']['checkChild'](_0x50a2be,'$text'))return;const _0x37c17b=_0x146056(_0x50a2be);let _0x4f82b4=!0x1;const _0x3c8486=_0x555b76['createPositionBefore'](_0x3298bb)['getWalker']({'direction':'backward'});for(const {item:_0x5efdf5}of _0x3c8486)if(_0x5efdf5['is']('element')){if(_0x175e57['editing']['mapper']['toModelElement'](_0x5efdf5))break;if(_0x5efdf5['getCustomProperty']('listItemMarker')){_0x4f82b4=!0x0;break;}}_0x4f82b4!=_0x37c17b&&(_0x33c6cc['return']=!0x0,_0x33c6cc['stop']());});const _0x1af417=_0x175e57['editing']['view']['document'];this['listenTo'](_0x1af417,'clipboardOutput',(_0x15008a,_0x36ee08)=>{const _0x324388=new _0x40fade({'name':'span','classes':'multi-level-list__marker'}),_0xfae918=new _0x40fade({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x2aca7c=new _0x269f67(_0x36ee08['content']['document']),_0x498a35=[];for(const _0x352cc5 of _0x2aca7c['createRangeIn'](_0x36ee08['content'])['getItems']())_0x352cc5['is']('element')&&_0x324388['match'](_0x352cc5)&&_0x498a35['push'](_0x352cc5),_0x352cc5['is']('element')&&_0xfae918['match'](_0x352cc5)&&_0x2aca7c['removeStyle']('list-style-type',_0x352cc5);for(const _0x23caf5 of _0x498a35)_0x2aca7c['remove'](_0x23caf5);});}['afterInit'](){!async function(_0x3de190){const _0x4bd19e='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x599084=0x78de0,_0x144992=window['Date']['now'](),_0x254114=_0x3de190['editor'],_0x1151e1=new window['Promise'](_0x4f83c6=>{_0x254114['once']('ready',_0x4f83c6);}),_0x1d139e={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x15108f=_0x254114['config']['get']('licenseKey');async function _0x37db55(){let _0x335fa9,_0x214696=null,_0x5e78b0=null;try{return'GPL'==_0x15108f?'NotAllowed':(_0x335fa9=_0x172483(),_0x335fa9?(_0x335fa9['usageEndpoint']&&(_0x5e78b0=_0x42bace(_0x335fa9['usageEndpoint'],_0x335fa9['jti'])),await _0x159703()?_0x82f610()?_0x51292b()?'Expired':_0x404929()?('evaluation'==_0x335fa9['licenseType']&&(_0x214696=_0xfcbec8('EvaluationLimit')),await _0x26bf63()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x51292b(){const _0x5db184=['evaluation','trial']['includes'](_0x335fa9['licenseType'])?_0x144992/0x3e8:0xe10*_0x599084;return _0x335fa9['exp']<_0x5db184;}function _0x82f610(){const _0x3bfaf6=_0x335fa9['features'];return!!_0x3bfaf6&&(!!_0x3bfaf6['includes']('*')||!!_0x3bfaf6['includes']('MLL'));}function _0x404929(){const _0x14f4f7=_0x335fa9['licensedHosts'];if(!_0x14f4f7||0x0==_0x14f4f7['length'])return!0x0;const {hostname:_0xef6fc8}=new URL(window['location']['href']);if(_0x14f4f7['includes'](_0xef6fc8))return!0x0;const _0x5b3bdf=_0xef6fc8['split']('.');return _0x14f4f7['filter'](_0x4b6289=>_0x4b6289['includes']('*'))['map'](_0x3c93ec=>_0x3c93ec['split']('.'))['filter'](_0x1c7713=>_0x1c7713['length']<=_0x5b3bdf['length'])['map'](_0x20a5ff=>Array(_0x5b3bdf['length']-_0x20a5ff['length'])['fill']('*'===_0x20a5ff[0x0]?'*':'')['concat'](_0x20a5ff))['some'](_0x3454e8=>_0x5b3bdf['every']((_0x43b7d5,_0x3812b8)=>_0x3454e8[_0x3812b8]===_0x43b7d5||'*'===_0x3454e8[_0x3812b8]));}function _0x26bf63(){return _0x214696&&_0x5e78b0?new window['Promise']((_0x1795bb,_0x31f0fb)=>{_0x214696['then'](_0x1795bb,_0x31f0fb),_0x5e78b0['then'](_0x39e183=>{'Valid'!=_0x39e183&&_0x1795bb(_0x39e183);},_0x31f0fb);}):_0x214696||_0x5e78b0||'Valid';}}function _0x42bace(_0x2eadc2,_0x427241){return new window['Promise'](_0x1abe22=>{if(_0x59fe77())return _0x1abe22('Valid');_0x2ad100(),_0x254114['decorate']('_sendUsageRequest');let _0x40f013=!0x1;const _0x201dd3=_0x1dc89d();function _0xa18538(_0x1f6ea9){return!!_0x1f6ea9&&('object'==typeof _0x1f6ea9||'function'==typeof _0x1f6ea9)&&'function'==typeof _0x1f6ea9['then']&&'function'==typeof _0x1f6ea9['catch'];}function _0x48f739(_0x5b03de){_0x7d6eab(_0x5b03de)['then'](_0x1a99e3=>_0x1a99e3&&'ok'==_0x1a99e3['status']?_0x11aefe(_0x4f939b(_0x201dd3+_0x427241))!=_0x1a99e3['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x108f1d=>(_0x355a43(),_0x108f1d),()=>{const _0x4b0df5=_0xcbce30();return null==_0x4b0df5?(_0x355a43(),'Valid'):_0x144992-_0x4b0df5>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1abe22)['catch'](()=>{_0x1abe22('UsageLimit');});const _0x201d7e=0x36ee80;function _0x355a43(){const _0x14d918='llct-'+_0x11aefe(_0x4f939b(_0x2eadc2)),_0x2d87ef=_0x203312(_0x11aefe(window['Math']['ceil'](_0x144992/_0x201d7e)));window['localStorage']['setItem'](_0x14d918,_0x2d87ef);}function _0xcbce30(){const _0x41926f='llct-'+_0x11aefe(_0x4f939b(_0x2eadc2)),_0x33c0d6=window['localStorage']['getItem'](_0x41926f);return _0x33c0d6?window['parseInt'](_0x203312(_0x33c0d6),0x10)*_0x201d7e:null;}function _0x7d6eab(_0x52cde5){return new window['Promise']((_0x30161c,_0x2fbf96)=>{_0x52cde5['then'](_0x30161c,_0x2fbf96),window['setTimeout'](_0x2fbf96,0x1d4c0);});}}_0x254114['on']('_sendUsageRequest',(_0x401462,_0x580f7b)=>{if(_0x580f7b[0x0]!=_0x2eadc2)return _0x1abe22('UsageLimit');_0x580f7b[0x1]={..._0x580f7b[0x1],'requestId':_0x201dd3};},{'priority':'high'}),_0x254114['on']('_sendUsageRequest',_0x4ba31c=>{_0xa18538(_0x4ba31c['return'])&&(_0x40f013=!0x0,_0x48f739(_0x4ba31c['return']));},{'priority':'low'}),_0x1151e1['then'](()=>{_0x40f013||_0x1abe22('UsageLimit');});});function _0x59fe77(){return'auto'==_0x254114['editing']['view']['_overlayModeHint'];}function _0x2ad100(){_0x254114['editing']['view']['_overlayModeHint']='auto';}}function _0xfcbec8(_0x160fa6){const _0x2b017c=[new window['Promise'](_0x4fc9f6=>setTimeout(_0x4fc9f6,0x93ecc)),_0x1151e1['then'](()=>new window['Promise'](_0x1eccc6=>{let _0x285c96=0x0;_0x254114['model']['on']('applyOperation',(_0x10d84e,_0x364e7f)=>{_0x364e7f[0x0]['isDocumentOperation']&&_0x285c96++,0x5e8==_0x285c96&&(_0x1eccc6(),_0x10d84e['off']());});}))];return window['Promise']['race'](_0x2b017c)['then'](()=>_0x160fa6);}async function _0x58cc65(){await _0x1151e1,_0x254114['model']['change']=_0x3a20e7,_0x254114['model']['enqueueChange']=_0x3a20e7,_0x254114['enableReadOnlyMode']('model');}function _0x161e00(_0x3fc313){const _0x5920ef=_0x1d94be();_0x254114[_0x5920ef]='multiLevelListLicenseKey'+_0x3fc313,'Valid'!=_0x3fc313&&_0x58cc65();}function _0x1d94be(){const _0x4c571a=window['String'](window['performance']['now']())['replace']('.','');let _0x5a5cb3='u';for(let _0xa09f5f=0x0;_0xa09f5f<_0x4c571a['length'];_0xa09f5f+=0x2){let _0x5d8d9c=window['parseInt'](_0x4c571a['substring'](_0xa09f5f,_0xa09f5f+0x2));_0x5d8d9c>=0x3e&&(_0x5d8d9c-=0x3e),_0x5a5cb3+=_0x4bd19e[_0x5d8d9c];}return _0x5a5cb3;}function _0x172483(){const _0x1d9880=_0x15108f['split']('.');if(0x3!=_0x1d9880['length'])return null;return _0x45e40b(_0x1d9880[0x1]);function _0x45e40b(_0x1db7b6){const _0x153535=_0x31d83e(_0x1db7b6);return _0x153535&&_0x22afde()?_0x153535:null;function _0x22afde(){const _0x4434e0=_0x153535['jti'],_0x47d39d=window['parseInt'](_0x4434e0['substring'](_0x4434e0['length']-0x8),0x10),_0x25bf11={..._0x153535,'jti':_0x4434e0['substring'](0x0,_0x4434e0['length']-0x8)};return delete _0x25bf11['vc'],_0x4f939b(_0x25bf11)==_0x47d39d;}}}async function _0x159703(){let _0x89025c=!0x0;try{const [_0x30f4d7,_0x509b27,_0x485629]=_0x15108f['split']('.');return _0x1b9a62(_0x30f4d7),await _0x392a2d(_0x30f4d7,_0x509b27,_0x485629),_0x89025c;}catch{return!0x1;}function _0x1b9a62(_0x14b712){const _0x2fffe7=_0x31d83e(_0x14b712);_0x2fffe7&&'ES256'==_0x2fffe7['alg']||(_0x89025c=!0x1);}async function _0x392a2d(_0x47752e,_0x492e09,_0x4363a){const _0x2505ef=window['Uint8Array']['from'](_0x1fc835(_0x4363a),_0x3b06d4=>_0x3b06d4['charCodeAt'](0x0)),_0x16f39e=new window['TextEncoder']()['encode'](_0x47752e+'.'+_0x492e09),_0x2ef480=window['crypto']['subtle'];if(!_0x2ef480)return;const _0x3dc1db=await _0x2ef480['importKey']('jwk',_0x1d139e,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2ef480['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3dc1db,_0x2505ef,_0x16f39e)||(_0x89025c=!0x1);}}function _0x31d83e(_0x33d03d){return _0x33d03d['startsWith']('ey')?JSON['parse'](_0x1fc835(_0x33d03d)):null;}function _0x1fc835(_0x336e1f){return window['atob'](_0x336e1f['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4f939b(_0x207553){let _0x4ceba8=0x1505;function _0x1d6026(_0xbadb72){for(let _0x143f67=0x0;_0x143f67<_0xbadb72['length'];_0x143f67++){const _0x1ffeff=_0xbadb72['charCodeAt'](_0x143f67);_0x4ceba8=(_0x4ceba8<<0x5)+_0x4ceba8+_0x1ffeff,_0x4ceba8&=_0x4ceba8;}}function _0x6abd6c(_0x385d01){Array['isArray'](_0x385d01)?_0x385d01['forEach'](_0x6abd6c):_0x385d01&&'object'==typeof _0x385d01?Object['entries'](_0x385d01)['sort']()['forEach'](([_0x5b2f6a,_0x3e6b64])=>{_0x1d6026(_0x5b2f6a),_0x6abd6c(_0x3e6b64);}):_0x1d6026(window['String'](_0x385d01));}return _0x6abd6c(_0x207553),_0x4ceba8>>>0x0;}function _0x11aefe(_0x102ba2){return _0x102ba2['toString'](0x10)['padStart'](0x8,'0');}function _0x203312(_0x545f7c){return _0x545f7c['split']('')['reverse']()['join']('');}function _0x3a20e7(){}_0x161e00(await _0x37db55());}(this);}};function E(_0x278b82,_0x7d219,_0x5d6f99){let _0x38c00a=_0x7d219['listMarkers'][_0x278b82%_0x7d219['listMarkers']['length']];if(void 0x0===_0x38c00a['showMarkerPath']||_0x38c00a['showMarkerPath'])return _0x5d6f99['slice'](0x0,_0x278b82+0x1)['map']((_0x1dbe27,_0x1640c0)=>(_0x38c00a=_0x7d219['listMarkers'][_0x1640c0%_0x7d219['listMarkers']['length']],N(_0x38c00a['marker'],_0x1dbe27)))['join']('');{const _0x181cab=_0x5d6f99[_0x5d6f99['length']-0x1];return N(_0x38c00a['marker'],_0x181cab);}}function N(_0x22d2bf,_0x17972){return'function'==typeof _0x22d2bf?_0x22d2bf(_0x17972):_0x22d2bf;}function _(_0x16fcca,_0x526b75){return(_0x5caba3,_0x361af0,_0x4b1a20)=>{const _0x36b7a0=_0x361af0['viewItem'];if(_0x361af0['modelRange']||Object['assign'](_0x361af0,_0x4b1a20['convertChildren'](_0x361af0['viewItem'],_0x361af0['modelCursor'])),!_0x4b1a20['consumable']['test'](_0x36b7a0,{'classes':_0x16fcca['className']}))return;const _0x2ebd58=Array['from'](_0x361af0['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x7f2343=>_0x526b75['checkAttribute'](_0x7f2343,'listItemId'));if(!_0x2ebd58['length'])return;_0x4b1a20['consumable']['consume'](_0x36b7a0,{'classes':_0x16fcca['className']}),_0x4b1a20['consumable']['consume'](_0x36b7a0,{'classes':'multi-level-list'}),_0x4b1a20['consumable']['consume'](_0x36b7a0,{'styles':'list-style-type'});const _0x572a80=_0x2ebd58[0x0]['getAttribute']('listIndent');for(const _0x52ade0 of _0x2ebd58)_0x52ade0['getAttribute']('listIndent')==_0x572a80&&(_0x4b1a20['writer']['setAttribute']('listType',_0x16fcca['listType'],_0x52ade0),_0x4b1a20['writer']['setAttribute']('listMarkerStyle',_0x16fcca['listMarkerStyle'],_0x52ade0));};}function A(_0x326d69,_0x2e2f27){const _0x47b89e=_0x326d69['t'],t=_0x326d69['t'];switch(_0x2e2f27){case'Start\x20at':return _0x47b89e('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x47b89e('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x47b89e('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x47b89e('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 _0x2e2f27;}}var V=class extends _0x4547cc{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new _0xa765a1();['keystrokes']=new _0x43cd3f();['focusables']=new _0x33e160();['focusCycler'];constructor(_0x64f8d1,{enabledProperties:_0x268327,styleButtonViews:_0x463c52,styleGridAriaLabel:_0x1d85c2}){super(_0x64f8d1);const _0x228d5c=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x20f7ec({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x268327['styles']?(this['stylesView']=this['_createStylesView'](_0x463c52,_0x1d85c2),this['children']['add'](this['stylesView'])):_0x228d5c['push']('ck-multi-level-list-properties_without-styles'),_0x268327['startIndex']&&(this['_addListPropertyViews'](_0x268327),_0x228d5c['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x228d5c},'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 _0x2a3170 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2a3170['element']);_0x459e44({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x1ab7b0['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 _0x14b4f0=_0x4b1eb4=>_0x4b1eb4['stopPropagation']();this['keystrokes']['set']('arrowright',_0x14b4f0),this['keystrokes']['set']('arrowleft',_0x14b4f0),this['keystrokes']['set']('arrowup',_0x14b4f0),this['keystrokes']['set']('arrowdown',_0x14b4f0);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x3af54c,_0x1d027f){const _0x49edfe=new _0x4547cc(this['locale']);return _0x49edfe['children']=_0x49edfe['createCollection'](),_0x49edfe['children']['addMany'](_0x3af54c),_0x49edfe['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1d027f,'class':['ck','ck-multi-level-list-styles']},'children':_0x49edfe['children']}),_0x49edfe['children']['delegate']('execute')['to'](this),_0x49edfe['focus']=function(){this['children']['first']['focus']();},_0x49edfe['focusTracker']=new _0xa765a1(),_0x49edfe['keystrokes']=new _0x43cd3f(),_0x49edfe['render'](),_0x49edfe['keystrokes']['listenTo'](_0x49edfe['element']),_0x49edfe;}['_addListPropertyViews'](_0x2dd6db){const _0x5d9fdf=[];_0x2dd6db['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x5d9fdf['push'](this['startIndexFieldView'])),_0x2dd6db['styles']?(this['additionalPropertiesCollapsibleView']=new _0x134544(this['locale'],_0x5d9fdf),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x5d9fdf,'isEnabled',(..._0x3cd5c7)=>_0x3cd5c7['some'](_0xe63c87=>_0xe63c87)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x5c9348,_0xa776b3,_0x567e65)=>{_0x567e65||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x5d9fdf);}['_createStartIndexField'](){const _0x506e86=new _0x2bd32f(this['locale'],_0x5024f8);return _0x506e86['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x506e86['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x506e86['fieldView']['on']('input',()=>{const _0x73d7d6=_0x506e86['fieldView']['element'],_0x165ac4=_0x73d7d6['valueAsNumber'];Number['isNaN'](_0x165ac4)?_0x506e86['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x73d7d6['checkValidity']()?this['fire']('listStart',{'startIndex':_0x165ac4}):_0x506e86['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x506e86;}},K=class extends _0x5b5f91{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x19bb4c=this['editor'];_0x19bb4c['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x14d544,parentCommandName:_0x39d7d2,buttonLabel:_0x848a5a,buttonIcon:_0x50698f,styleGridAriaLabel:_0x3865d6,styleDefinitions:_0x375665}){const _0x506846=_0x14d544['commands']['get'](_0x39d7d2),_0x20569b=_0x14d544['config']['get']('list.properties')||{},_0x347265=_0x14d544['plugins']['has']('ListProperties'),_0x209eed=_0x20569b['startIndex'];return _0x347265&&_0x209eed?_0x24b679=>{const _0x304a0a=_0x5bf276(_0x24b679,_0x126ce4),_0x1563fb=_0x304a0a['buttonView'];return _0x304a0a['bind']('isEnabled')['to'](_0x506846),_0x304a0a['class']='ck-list-styles-dropdown',_0x1563fb['on']('execute',()=>{_0x14d544['execute'](_0x39d7d2),_0x14d544['editing']['view']['focus']();}),_0x1563fb['set']({'label':_0x848a5a,'icon':_0x50698f,'tooltip':!0x0,'isToggleable':!0x0}),_0x1563fb['bind']('isOn')['to'](_0x506846,'value',_0xa22ce9=>!!_0xa22ce9),_0x304a0a['once']('change:isOpen',()=>{const _0x57aff2=function({editor:_0x55ace7,dropdownView:_0x3e67a4,styleDefinitions:_0x1f0704,styleGridAriaLabel:_0x195933}){const _0x484d5d=_0x55ace7['locale'],_0x44fa8e=_0x55ace7['config']['get']('list.properties'),_0x3b2912=null;_0x44fa8e['reversed']=!0x1,_0x1f0704['length']||(_0x44fa8e['styles']=!0x1);const _0x16c743=new V(_0x484d5d,{'styleGridAriaLabel':_0x195933,'enabledProperties':_0x44fa8e,'styleButtonViews':_0x3b2912});if(_0x44fa8e['startIndex']){const _0x45c4cc=_0x55ace7['commands']['get']('listStart');_0x16c743['startIndexFieldView']['bind']('isEnabled')['to'](_0x45c4cc),_0x16c743['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x45c4cc),_0x16c743['on']('listStart',(_0x219070,_0x37edd5)=>_0x55ace7['execute']('listStart',_0x37edd5));}return _0x16c743['delegate']('execute')['to'](_0x3e67a4),_0x16c743;}({'editor':_0x14d544,'dropdownView':_0x304a0a,'parentCommandName':_0x39d7d2,'styleGridAriaLabel':_0x3865d6,'styleDefinitions':_0x375665});_0x304a0a['panelView']['children']['add'](_0x57aff2);}),_0x304a0a['on']('execute',()=>{_0x14d544['editing']['view']['focus']();}),_0x304a0a;}:_0xa4c9a7=>{const _0x59fc41=new _0x25a435(_0xa4c9a7);return _0x59fc41['set']({'label':_0x848a5a,'icon':_0x50698f,'tooltip':!0x0,'isToggleable':!0x0}),_0x59fc41['bind']('isOn')['to'](_0x506846,'value',_0x1f78e0=>!!_0x1f78e0),_0x59fc41['on']('execute',()=>{_0x14d544['execute'](_0x39d7d2),_0x14d544['editing']['view']['focus']();}),_0x59fc41;};}({'editor':_0x19bb4c,'parentCommandName':'multiLevelList','buttonLabel':A(_0x19bb4c['locale'],'Multi-level\x20List'),'buttonIcon':_0x5a989f,'styleGridAriaLabel':A(_0x19bb4c['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x19bb4c['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x44ec5e=_0x19bb4c['commands']['get']('multiLevelList'),_0x50959d=new _0x139663(_0x19bb4c['locale']);return _0x50959d['set']({'label':A(_0x19bb4c['locale'],'Multi-level\x20List'),'icon':_0x5a989f}),_0x50959d['bind']('isEnabled')['to'](_0x44ec5e),_0x50959d['bind']('isOn')['to'](_0x44ec5e,'value',_0x248306=>!!_0x248306),_0x50959d['on']('execute',()=>{_0x19bb4c['execute']('multiLevelList'),_0x19bb4c['editing']['view']['focus']();}),_0x50959d;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4beaf7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e3658;for(const _0x195c5f in _0x4beaf7){const _0x188541=_0x195c5f,_0x88752d=_0x4beaf7[_0x188541];if('multiLevelListLicenseKeyValid'==_0x88752d||'multiLevelListLicenseKeyInvalid'==_0x88752d||'multiLevelListLicenseKeyExpired'==_0x88752d||'multiLevelListLicenseKeyDomainLimit'==_0x88752d||'multiLevelListLicenseKeyNotAllowed'==_0x88752d||'multiLevelListLicenseKeyEvaluationLimit'==_0x88752d||'multiLevelListLicenseKeyUsageLimit'==_0x88752d){delete _0x4beaf7[_0x188541],_0x2e3658=_0x88752d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x2e3658&&_0x4beaf7['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x2e3658&&_0x4beaf7['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x2e3658&&_0x4beaf7['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x2e3658&&_0x4beaf7['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x2e3658&&_0x4beaf7['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x2e3658&&_0x4beaf7['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x5b5f91{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 _0x24a775,Plugin as _0x2620d0}from'@ckeditor/ckeditor5-core';import{Matcher as _0x31d20e,ViewUpcastWriter as _0x4f1dca}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x469c9f,_isFirstBlockOfListItem as _0x200332}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0x1ab878,KeystrokeHandler as _0x1aab27,createElement as _0x1558b8,first as _0x280941,global as _0x4496c1,uid as _0x42e75b}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x595a47}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x465486,CollapsibleView as _0x37c530,FocusCycler as _0xeae4b5,LabeledFieldView as _0x135670,MenuBarMenuListItemButtonView as _0x39f7c6,SplitButtonView as _0x340577,View as _0x31855a,ViewCollection as _0x43c548,addKeyboardHandlingForGrid as _0xe38eed,createDropdown as _0x24f73b,createLabeledInputNumber as _0x4e6329}from'@ckeditor/ckeditor5-ui';var S=class extends _0x24a775{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x5225f5,_0xb722e4,_0x58930f){super(_0x5225f5),this['defaultListMarkerStyle']=_0xb722e4,this['_listDefinitions']=_0x58930f,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5ee902={}){const _0x487eb5=this['editor']['model'],_0x4c95dc=_0x5ee902['listMarkerStyle']||this['defaultListMarkerStyle'];_0x487eb5['change'](()=>{const _0x31a513=this['_getListTypeFromListMarkerStyle'](_0x4c95dc);if(!_0x31a513)return;const _0x4d4dfd=_0x31a513+'List';this['editor']['execute'](_0x4d4dfd,{'additionalAttributes':{'listMarkerStyle':_0x4c95dc}});});}['_getValue'](){const _0x5bb8b2=_0x280941(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x5bb8b2)?_0x5bb8b2['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x306368=this['editor'],_0x3dcc15=_0x306368['commands']['get']('customNumberedList'),_0x4108e6=_0x306368['commands']['get']('customBulletedList');return _0x3dcc15['isEnabled']||_0x4108e6['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0xb8c289){const _0x222318=this['_listDefinitions']['find'](_0x298b68=>_0x298b68['listMarkerStyle']==_0xb8c289);return _0x222318?_0x222318['listType']:null;}},x=class extends _0x2620d0{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x469c9f];}constructor(_0x4b7cc7){super(_0x4b7cc7);const _0x1c460e=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x7570a1=>_0x7570a1+'.'}]},..._0x1c460e];}['init'](){const _0x47ebae=this['editor'],_0x590910=_0x47ebae['model'],_0x3946e3=_0x47ebae['editing']['view'],_0x457863=_0x47ebae['plugins']['get'](_0x469c9f);_0x47ebae['commands']['add']('multiLevelList',new S(_0x47ebae,'legal',this['_listDefinitions'])),_0x590910['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x590910['schema']['addAttributeCheck']((_0x341e05,_0x4656fd)=>{const _0x5963ab=_0x341e05['last'];if('listMarker'==_0x4656fd||'listMarkerStyle'==_0x4656fd)return!(!_0x5963ab['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x2b39a9=>_0x2b39a9['listType']==_0x5963ab['getAttribute']('listType')))&&void 0x0;});for(const _0xe27344 of this['_listDefinitions'])_0x47ebae['conversion']['for']('upcast')['add'](_0x53b271=>{_0x53b271['on']('element:'+('customNumbered'==_0xe27344['listType']?'ol':'ul'),_(_0xe27344,_0x590910['schema']),{'priority':'low'});}),_0x457863['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x5dc42f,_0x419e27,_0x4202f3){_0x419e27==_0xe27344['listMarkerStyle']?(_0x5dc42f['addClass'](['multi-level-list',_0xe27344['className']],_0x4202f3),_0x5dc42f['setStyle']('list-style-type','none',_0x4202f3)):(_0x5dc42f['removeClass'](['multi-level-list',_0xe27344['className']],_0x4202f3),_0x5dc42f['removeStyle']('list-style-type',_0x4202f3));}}),_0x457863['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x491eb3,_0x48282e,{dataPipeline:_0x99af97}){if(!_0x48282e['hasAttribute']('listMarker'))return null;if(_0x48282e['getAttribute']('listType')!=_0xe27344['listType']||_0x48282e['getAttribute']('listMarkerStyle')!=_0xe27344['listMarkerStyle'])return null;const _0x17c893=String(_0x48282e['getAttribute']('listMarker')),_0x245384=this['canInjectMarkerIntoElement'](_0x48282e);return _0x491eb3['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x99af97&&{'contenteditable':'false','data-multi-level-list-marker':_0x17c893}},function(_0x3071fb){const _0x3f3acd=this['toDomElement'](_0x3071fb);return _0x245384?(_0x3f3acd['appendChild'](_0x1558b8(_0x3071fb,'span',{},_0x99af97?_0x3071fb['createTextNode'](_0x17c893):[])),_0x3f3acd['appendChild'](_0x3071fb['createTextNode']('\u00a0'))):_0x99af97&&_0x3f3acd['appendChild'](_0x3071fb['createTextNode'](_0x17c893)),_0x3f3acd;});},'canInjectMarkerIntoElement':_0x2ac414=>_0x590910['schema']['checkChild'](_0x2ac414,'$text')&&_0x590910['schema']['checkChild'](_0x2ac414,'$inlineObject')&&!_0x590910['schema']['isLimit'](_0x2ac414)&&_0x2ac414['getAttribute']('listType')==_0xe27344['listType']&&_0x2ac414['getAttribute']('listMarkerStyle')==_0xe27344['listMarkerStyle']});_0x47ebae['conversion']['for']('upcast')['add'](_0x33c84d=>{_0x33c84d['on']('element:span',function(_0x1f5eea){return(_0x5defe9,_0x4f7a7d,{writer:_0xcceaaf,consumable:_0x548107})=>{const _0x5db797=_0x4f7a7d['modelCursor'],_0x156c07=_0x5db797['parent'],_0x565f56=_0x4f7a7d['viewItem'];if(_0x548107['consume'](_0x565f56,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x5db797['isAtStart']&&_0x156c07['hasAttribute']('listType')&&_0x565f56['childCount']>0x0){const _0x1a581a=_0x1f5eea['createRangeIn'](_0x565f56);let _0x51f46e='';for(const _0x172f0c of _0x1a581a['getItems']())_0x172f0c['is']('$textProxy')?(_0x51f46e+=_0x172f0c['data']['trim'](),_0x548107['consume'](_0x172f0c['textNode'])):_0x548107['consume'](_0x172f0c,{'name':!0x0});_0xcceaaf['setAttribute']('listMarker',_0x51f46e['trim'](),_0x156c07);}};}(_0x3946e3));}),_0x457863['on']('postFixer',(_0x39ea6e,{listNodes:_0x4c0a29,writer:_0x175df1})=>{const _0x54fd5f=[];for(const {node:_0x1165fc,previousNodeInList:_0x49a02a}of _0x4c0a29){const _0xe3e151=_0x1165fc['getAttribute']('listType'),_0x23c03a=_0x1165fc['getAttribute']('listMarkerStyle')||('customNumbered'==_0xe3e151?'legal':void 0x0),_0x45ed85=this['_listDefinitions']['find'](_0x6b4250=>_0x6b4250['listType']==_0xe3e151&&_0x6b4250['listMarkerStyle']==_0x23c03a);if('customNumbered'!=_0xe3e151&&'customBulleted'!=_0xe3e151&&(_0x1165fc['hasAttribute']('listMarker')&&(_0x175df1['removeAttribute']('listMarker',_0x1165fc),_0x39ea6e['return']=!0x0),_0x1165fc['hasAttribute']('listMarkerStyle')&&(_0x175df1['removeAttribute']('listMarkerStyle',_0x1165fc),_0x39ea6e['return']=!0x0)),!_0x45ed85){'customBulleted'!=_0xe3e151||_0x23c03a||(_0x175df1['setAttribute']('listType','bulleted',_0x1165fc),_0x39ea6e['return']=!0x0);continue;}_0x1165fc['hasAttribute']('listMarkerStyle')||(_0x175df1['setAttribute']('listMarkerStyle',_0x23c03a,_0x1165fc),_0x39ea6e['return']=!0x0);const _0x2fbfed=_0x1165fc['getAttribute']('listIndent');if(_0x49a02a&&_0x49a02a['getAttribute']('listItemId')==_0x1165fc['getAttribute']('listItemId'))continue;if(_0x54fd5f['length']=_0x2fbfed+0x1,_0x47ebae['config']['get']('list.enableSkipLevelLists')){for(let _0x134544=0x0;_0x134544<_0x2fbfed;_0x134544++)void 0x0===_0x54fd5f[_0x134544]&&(_0x54fd5f[_0x134544]=0x1);}_0x49a02a||_0x54fd5f[_0x2fbfed]?_0x49a02a&&_0x49a02a['getAttribute']('listType')!=_0x45ed85['listType']?_0x54fd5f[_0x2fbfed]=0x1:_0x54fd5f[_0x2fbfed]++:_0x54fd5f[_0x2fbfed]=_0x1165fc['getAttribute']('listStart')||0x1;const _0x4d3212=E(_0x2fbfed,_0x45ed85,_0x54fd5f);_0x1165fc['getAttribute']('listMarker')!=_0x4d3212&&(_0x175df1['setAttribute']('listMarker',_0x4d3212,_0x1165fc),_0x39ea6e['return']=!0x0);}}),_0x457863['on']('checkElement',(_0x4e5ccb,{modelElement:_0x20f13b,viewElement:_0x345507})=>{const _0x4bcdc6=_0x20f13b['getAttribute']('listType');if('customNumbered'!=_0x4bcdc6&&'customBulleted'!=_0x4bcdc6)return;if(_0x590910['schema']['checkChild'](_0x20f13b,'$text'))return;const _0x2c5110=_0x200332(_0x20f13b);let _0x4aab4e=!0x1;const _0x2c1cd4=_0x3946e3['createPositionBefore'](_0x345507)['getWalker']({'direction':'backward'});for(const {item:_0x2a3e27}of _0x2c1cd4)if(_0x2a3e27['is']('element')){if(_0x47ebae['editing']['mapper']['toModelElement'](_0x2a3e27))break;if(_0x2a3e27['getCustomProperty']('listItemMarker')){_0x4aab4e=!0x0;break;}}_0x4aab4e!=_0x2c5110&&(_0x4e5ccb['return']=!0x0,_0x4e5ccb['stop']());});const _0x7be3c=_0x47ebae['editing']['view']['document'];this['listenTo'](_0x7be3c,'clipboardOutput',(_0x5698c4,_0xf2ec08)=>{const _0x16316c=new _0x31d20e({'name':'span','classes':'multi-level-list__marker'}),_0x52eb38=new _0x31d20e({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x2dc01f=new _0x4f1dca(_0xf2ec08['content']['document']),_0x58a9e2=[];for(const _0x236500 of _0x2dc01f['createRangeIn'](_0xf2ec08['content'])['getItems']())_0x236500['is']('element')&&_0x16316c['match'](_0x236500)&&_0x58a9e2['push'](_0x236500),_0x236500['is']('element')&&_0x52eb38['match'](_0x236500)&&_0x2dc01f['removeStyle']('list-style-type',_0x236500);for(const _0x57dbf3 of _0x58a9e2)_0x2dc01f['remove'](_0x57dbf3);});}['afterInit'](){!async function(_0x3f4ea3){const _0x6fc074='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x3ecb59=0x78df8,_0x40fc67=window['Date']['now'](),_0x4dc970=_0x3f4ea3['editor'],_0xf24082=new window['Promise'](_0x5ace4c=>{_0x4dc970['once']('ready',_0x5ace4c);}),_0x51725c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x597b25=_0x4dc970['config']['get']('licenseKey');async function _0x2bc2a7(){let _0x4b3dfe,_0x520536=null,_0x53ac6d=null;try{return'GPL'==_0x597b25?'NotAllowed':(_0x4b3dfe=_0x21be95(),_0x4b3dfe?(_0x4b3dfe['usageEndpoint']&&(_0x53ac6d=_0x52f3f8(_0x4b3dfe['usageEndpoint'],_0x4b3dfe['jti'])),await _0x1ebbda()?_0x46a413()?_0x4771c1()?'Expired':_0x35afe5()?('evaluation'==_0x4b3dfe['licenseType']&&(_0x520536=_0x3bf005('EvaluationLimit')),await _0x594f5e()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4771c1(){const _0x5bf021=['evaluation','trial']['includes'](_0x4b3dfe['licenseType'])?_0x40fc67/0x3e8:0xe10*_0x3ecb59;return _0x4b3dfe['exp']<_0x5bf021;}function _0x46a413(){const _0x19a420=_0x4b3dfe['features'];return!!_0x19a420&&(!!_0x19a420['includes']('*')||!!_0x19a420['includes']('MLL'));}function _0x35afe5(){const _0x2ec45a=_0x4b3dfe['licensedHosts'];if(!_0x2ec45a||0x0==_0x2ec45a['length'])return!0x0;const {hostname:_0x24167a}=new URL(window['location']['href']);if(_0x2ec45a['includes'](_0x24167a))return!0x0;const _0x55133f=_0x24167a['split']('.');return _0x2ec45a['filter'](_0x29867c=>_0x29867c['includes']('*'))['map'](_0x422c17=>_0x422c17['split']('.'))['filter'](_0x1a0c45=>_0x1a0c45['length']<=_0x55133f['length'])['map'](_0x1e7166=>Array(_0x55133f['length']-_0x1e7166['length'])['fill']('*'===_0x1e7166[0x0]?'*':'')['concat'](_0x1e7166))['some'](_0x4876c7=>_0x55133f['every']((_0x2a8a76,_0x15a181)=>_0x4876c7[_0x15a181]===_0x2a8a76||'*'===_0x4876c7[_0x15a181]));}function _0x594f5e(){return _0x520536&&_0x53ac6d?new window['Promise']((_0x310be0,_0x5dcc89)=>{_0x520536['then'](_0x310be0,_0x5dcc89),_0x53ac6d['then'](_0x3f0f9e=>{'Valid'!=_0x3f0f9e&&_0x310be0(_0x3f0f9e);},_0x5dcc89);}):_0x520536||_0x53ac6d||'Valid';}}function _0x52f3f8(_0x2755c9,_0x2a82ce){return new window['Promise'](_0x34e512=>{if(_0x4a6db6())return _0x34e512('Valid');_0x1019d2(),_0x4dc970['decorate']('_sendUsageRequest');let _0x10cc9e=!0x1;const _0x57bd1b=_0x42e75b();function _0x67375e(_0xde37da){return!!_0xde37da&&('object'==typeof _0xde37da||'function'==typeof _0xde37da)&&'function'==typeof _0xde37da['then']&&'function'==typeof _0xde37da['catch'];}function _0x4aafe2(_0x17f172){_0x1ca462(_0x17f172)['then'](_0x2f7bc1=>_0x2f7bc1&&'ok'==_0x2f7bc1['status']?_0x156858(_0x1d18fd(_0x57bd1b+_0x2a82ce))!=_0x2f7bc1['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2d4ee2=>(_0x107321(),_0x2d4ee2),()=>{const _0x317285=_0x3059dd();return null==_0x317285?(_0x107321(),'Valid'):_0x40fc67-_0x317285>0x240c8400?'UsageLimit':'Valid';})['then'](_0x34e512)['catch'](()=>{_0x34e512('UsageLimit');});const _0x5984d0=0x36ee80;function _0x107321(){const _0x3756f6='llct-'+_0x156858(_0x1d18fd(_0x2755c9)),_0x3f68ec=_0x10e888(_0x156858(window['Math']['ceil'](_0x40fc67/_0x5984d0)));window['localStorage']['setItem'](_0x3756f6,_0x3f68ec);}function _0x3059dd(){const _0x3fe9ff='llct-'+_0x156858(_0x1d18fd(_0x2755c9)),_0x5d1f40=window['localStorage']['getItem'](_0x3fe9ff);return _0x5d1f40?window['parseInt'](_0x10e888(_0x5d1f40),0x10)*_0x5984d0:null;}function _0x1ca462(_0x5c131b){return new window['Promise']((_0x4603d5,_0xa5b69d)=>{_0x5c131b['then'](_0x4603d5,_0xa5b69d),window['setTimeout'](_0xa5b69d,0x1d4c0);});}}_0x4dc970['on']('_sendUsageRequest',(_0x676f7b,_0x156ac1)=>{if(_0x156ac1[0x0]!=_0x2755c9)return _0x34e512('UsageLimit');_0x156ac1[0x1]={..._0x156ac1[0x1],'requestId':_0x57bd1b};},{'priority':'high'}),_0x4dc970['on']('_sendUsageRequest',_0x5e5711=>{_0x67375e(_0x5e5711['return'])&&(_0x10cc9e=!0x0,_0x4aafe2(_0x5e5711['return']));},{'priority':'low'}),_0xf24082['then'](()=>{_0x10cc9e||_0x34e512('UsageLimit');});});function _0x4a6db6(){return'auto'==_0x4dc970['editing']['view']['_overlayModeHint'];}function _0x1019d2(){_0x4dc970['editing']['view']['_overlayModeHint']='auto';}}function _0x3bf005(_0x2cbb2f){const _0x4ef51d=[new window['Promise'](_0x22894b=>setTimeout(_0x22894b,0x93ecc)),_0xf24082['then'](()=>new window['Promise'](_0x4d470b=>{let _0x394542=0x0;_0x4dc970['model']['on']('applyOperation',(_0x5aef34,_0x26078a)=>{_0x26078a[0x0]['isDocumentOperation']&&_0x394542++,0x5e8==_0x394542&&(_0x4d470b(),_0x5aef34['off']());});}))];return window['Promise']['race'](_0x4ef51d)['then'](()=>_0x2cbb2f);}async function _0x91bd57(){await _0xf24082,_0x4dc970['model']['change']=_0x15b2f7,_0x4dc970['model']['enqueueChange']=_0x15b2f7,_0x4dc970['enableReadOnlyMode']('model');}function _0x4c1da6(_0xd5aae3){const _0x4005c4=_0x81a39f();_0x4dc970[_0x4005c4]='multiLevelListLicenseKey'+_0xd5aae3,'Valid'!=_0xd5aae3&&_0x91bd57();}function _0x81a39f(){const _0x48c065=window['String'](window['performance']['now']())['replace']('.','');let _0x375743='u';for(let _0x50f914=0x0;_0x50f914<_0x48c065['length'];_0x50f914+=0x2){let _0x46b201=window['parseInt'](_0x48c065['substring'](_0x50f914,_0x50f914+0x2));_0x46b201>=0x3e&&(_0x46b201-=0x3e),_0x375743+=_0x6fc074[_0x46b201];}return _0x375743;}function _0x21be95(){const _0xf12bd0=_0x597b25['split']('.');if(0x3!=_0xf12bd0['length'])return null;return _0x776f58(_0xf12bd0[0x1]);function _0x776f58(_0x135045){const _0x4d9f43=_0x50e6bf(_0x135045);return _0x4d9f43&&_0x4f227f()?_0x4d9f43:null;function _0x4f227f(){const _0x46ac34=_0x4d9f43['jti'],_0x56e218=window['parseInt'](_0x46ac34['substring'](_0x46ac34['length']-0x8),0x10),_0xa44e5b={..._0x4d9f43,'jti':_0x46ac34['substring'](0x0,_0x46ac34['length']-0x8)};return delete _0xa44e5b['vc'],_0x1d18fd(_0xa44e5b)==_0x56e218;}}}async function _0x1ebbda(){let _0x1656fe=!0x0;try{const [_0x15d23c,_0x29bf88,_0x20414a]=_0x597b25['split']('.');return _0x9ae667(_0x15d23c),await _0x29ee7a(_0x15d23c,_0x29bf88,_0x20414a),_0x1656fe;}catch{return!0x1;}function _0x9ae667(_0x191e0e){const _0x3b25a4=_0x50e6bf(_0x191e0e);_0x3b25a4&&'ES256'==_0x3b25a4['alg']||(_0x1656fe=!0x1);}async function _0x29ee7a(_0x289fdd,_0x1d6457,_0x391280){const _0x546a2b=window['Uint8Array']['from'](_0x2776be(_0x391280),_0x10c25a=>_0x10c25a['charCodeAt'](0x0)),_0xb4532e=new window['TextEncoder']()['encode'](_0x289fdd+'.'+_0x1d6457),_0x2a6dd6=window['crypto']['subtle'];if(!_0x2a6dd6)return;const _0x34f206=await _0x2a6dd6['importKey']('jwk',_0x51725c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2a6dd6['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x34f206,_0x546a2b,_0xb4532e)||(_0x1656fe=!0x1);}}function _0x50e6bf(_0x124099){return _0x124099['startsWith']('ey')?JSON['parse'](_0x2776be(_0x124099)):null;}function _0x2776be(_0x2889cc){return window['atob'](_0x2889cc['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1d18fd(_0x8c3a7d){let _0x2dbb72=0x1505;function _0x461c88(_0x548465){for(let _0x504fb2=0x0;_0x504fb2<_0x548465['length'];_0x504fb2++){const _0x4424ad=_0x548465['charCodeAt'](_0x504fb2);_0x2dbb72=(_0x2dbb72<<0x5)+_0x2dbb72+_0x4424ad,_0x2dbb72&=_0x2dbb72;}}function _0x8acbff(_0x1f7cf){Array['isArray'](_0x1f7cf)?_0x1f7cf['forEach'](_0x8acbff):_0x1f7cf&&'object'==typeof _0x1f7cf?Object['entries'](_0x1f7cf)['sort']()['forEach'](([_0x1d9ead,_0x52dc2f])=>{_0x461c88(_0x1d9ead),_0x8acbff(_0x52dc2f);}):_0x461c88(window['String'](_0x1f7cf));}return _0x8acbff(_0x8c3a7d),_0x2dbb72>>>0x0;}function _0x156858(_0x5c7362){return _0x5c7362['toString'](0x10)['padStart'](0x8,'0');}function _0x10e888(_0x200d44){return _0x200d44['split']('')['reverse']()['join']('');}function _0x15b2f7(){}_0x4c1da6(await _0x2bc2a7());}(this);}};function E(_0x3c84f8,_0x66f2d3,_0x502c60){let _0x2c1f47=_0x66f2d3['listMarkers'][_0x3c84f8%_0x66f2d3['listMarkers']['length']];if(void 0x0===_0x2c1f47['showMarkerPath']||_0x2c1f47['showMarkerPath'])return _0x502c60['slice'](0x0,_0x3c84f8+0x1)['map']((_0x46a6e7,_0x1d0462)=>(_0x2c1f47=_0x66f2d3['listMarkers'][_0x1d0462%_0x66f2d3['listMarkers']['length']],N(_0x2c1f47['marker'],_0x46a6e7)))['join']('');{const _0x1394bd=_0x502c60[_0x502c60['length']-0x1];return N(_0x2c1f47['marker'],_0x1394bd);}}function N(_0x520c1e,_0x47fb03){return'function'==typeof _0x520c1e?_0x520c1e(_0x47fb03):_0x520c1e;}function _(_0x26cd24,_0xf21e27){return(_0x3d6ed8,_0x5de005,_0xfba1c5)=>{const _0x42da6e=_0x5de005['viewItem'];if(_0x5de005['modelRange']||Object['assign'](_0x5de005,_0xfba1c5['convertChildren'](_0x5de005['viewItem'],_0x5de005['modelCursor'])),!_0xfba1c5['consumable']['test'](_0x42da6e,{'classes':_0x26cd24['className']}))return;const _0x5be0fb=Array['from'](_0x5de005['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x425b91=>_0xf21e27['checkAttribute'](_0x425b91,'listItemId'));if(!_0x5be0fb['length'])return;_0xfba1c5['consumable']['consume'](_0x42da6e,{'classes':_0x26cd24['className']}),_0xfba1c5['consumable']['consume'](_0x42da6e,{'classes':'multi-level-list'}),_0xfba1c5['consumable']['consume'](_0x42da6e,{'styles':'list-style-type'});const _0x21fea7=_0x5be0fb[0x0]['getAttribute']('listIndent');for(const _0x1464d3 of _0x5be0fb)_0x1464d3['getAttribute']('listIndent')==_0x21fea7&&(_0xfba1c5['writer']['setAttribute']('listType',_0x26cd24['listType'],_0x1464d3),_0xfba1c5['writer']['setAttribute']('listMarkerStyle',_0x26cd24['listMarkerStyle'],_0x1464d3));};}function A(_0x1db028,_0x5a7a8b){const _0x4e0d51=_0x1db028['t'],t=_0x1db028['t'];switch(_0x5a7a8b){case'Start\x20at':return _0x4e0d51('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x4e0d51('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x4e0d51('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x4e0d51('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 _0x5a7a8b;}}var V=class extends _0x31855a{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new _0x1ab878();['keystrokes']=new _0x1aab27();['focusables']=new _0x43c548();['focusCycler'];constructor(_0x5b5836,{enabledProperties:_0x3dc1a7,styleButtonViews:_0x3d7eca,styleGridAriaLabel:_0x2dd76b}){super(_0x5b5836);const _0x4302e1=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0xeae4b5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x3dc1a7['styles']?(this['stylesView']=this['_createStylesView'](_0x3d7eca,_0x2dd76b),this['children']['add'](this['stylesView'])):_0x4302e1['push']('ck-multi-level-list-properties_without-styles'),_0x3dc1a7['startIndex']&&(this['_addListPropertyViews'](_0x3dc1a7),_0x4302e1['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x4302e1},'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 _0x3c96f0 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3c96f0['element']);_0xe38eed({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x4496c1['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 _0x577dfc=_0x427885=>_0x427885['stopPropagation']();this['keystrokes']['set']('arrowright',_0x577dfc),this['keystrokes']['set']('arrowleft',_0x577dfc),this['keystrokes']['set']('arrowup',_0x577dfc),this['keystrokes']['set']('arrowdown',_0x577dfc);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x2447af,_0x1408a3){const _0x46e4f7=new _0x31855a(this['locale']);return _0x46e4f7['children']=_0x46e4f7['createCollection'](),_0x46e4f7['children']['addMany'](_0x2447af),_0x46e4f7['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1408a3,'class':['ck','ck-multi-level-list-styles']},'children':_0x46e4f7['children']}),_0x46e4f7['children']['delegate']('execute')['to'](this),_0x46e4f7['focus']=function(){this['children']['first']['focus']();},_0x46e4f7['focusTracker']=new _0x1ab878(),_0x46e4f7['keystrokes']=new _0x1aab27(),_0x46e4f7['render'](),_0x46e4f7['keystrokes']['listenTo'](_0x46e4f7['element']),_0x46e4f7;}['_addListPropertyViews'](_0x5b4bc8){const _0x2c4e54=[];_0x5b4bc8['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x2c4e54['push'](this['startIndexFieldView'])),_0x5b4bc8['styles']?(this['additionalPropertiesCollapsibleView']=new _0x37c530(this['locale'],_0x2c4e54),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x2c4e54,'isEnabled',(..._0x1d7405)=>_0x1d7405['some'](_0x479889=>_0x479889)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x2edc07,_0x3428b9,_0x2ccc35)=>{_0x2ccc35||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x2c4e54);}['_createStartIndexField'](){const _0x245c1f=new _0x135670(this['locale'],_0x4e6329);return _0x245c1f['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x245c1f['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x245c1f['fieldView']['on']('input',()=>{const _0x200de5=_0x245c1f['fieldView']['element'],_0x4a5479=_0x200de5['valueAsNumber'];Number['isNaN'](_0x4a5479)?_0x245c1f['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x200de5['checkValidity']()?this['fire']('listStart',{'startIndex':_0x4a5479}):_0x245c1f['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x245c1f;}},K=class extends _0x2620d0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x11c7d7=this['editor'];_0x11c7d7['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x31a88c,parentCommandName:_0x113527,buttonLabel:_0x2082a9,buttonIcon:_0x2925dd,styleGridAriaLabel:_0x1d155b,styleDefinitions:_0x108067}){const _0xb92e07=_0x31a88c['commands']['get'](_0x113527),_0x3867fd=_0x31a88c['config']['get']('list.properties')||{},_0x4a294e=_0x31a88c['plugins']['has']('ListProperties'),_0xabde99=_0x3867fd['startIndex'];return _0x4a294e&&_0xabde99?_0x10935a=>{const _0x18aff8=_0x24f73b(_0x10935a,_0x340577),_0x308f6b=_0x18aff8['buttonView'];return _0x18aff8['bind']('isEnabled')['to'](_0xb92e07),_0x18aff8['class']='ck-list-styles-dropdown',_0x308f6b['on']('execute',()=>{_0x31a88c['execute'](_0x113527),_0x31a88c['editing']['view']['focus']();}),_0x308f6b['set']({'label':_0x2082a9,'icon':_0x2925dd,'tooltip':!0x0,'isToggleable':!0x0}),_0x308f6b['bind']('isOn')['to'](_0xb92e07,'value',_0x402152=>!!_0x402152),_0x18aff8['once']('change:isOpen',()=>{const _0x96588c=function({editor:_0x4e3846,dropdownView:_0x179ca3,styleDefinitions:_0x5cd553,styleGridAriaLabel:_0x37dd48}){const _0x79e1be=_0x4e3846['locale'],_0x1869d6=_0x4e3846['config']['get']('list.properties'),_0x31dc03=null;_0x1869d6['reversed']=!0x1,_0x5cd553['length']||(_0x1869d6['styles']=!0x1);const _0x15e8d1=new V(_0x79e1be,{'styleGridAriaLabel':_0x37dd48,'enabledProperties':_0x1869d6,'styleButtonViews':_0x31dc03});if(_0x1869d6['startIndex']){const _0x2ca2e0=_0x4e3846['commands']['get']('listStart');_0x15e8d1['startIndexFieldView']['bind']('isEnabled')['to'](_0x2ca2e0),_0x15e8d1['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x2ca2e0),_0x15e8d1['on']('listStart',(_0x4f69ed,_0x45947f)=>_0x4e3846['execute']('listStart',_0x45947f));}return _0x15e8d1['delegate']('execute')['to'](_0x179ca3),_0x15e8d1;}({'editor':_0x31a88c,'dropdownView':_0x18aff8,'parentCommandName':_0x113527,'styleGridAriaLabel':_0x1d155b,'styleDefinitions':_0x108067});_0x18aff8['panelView']['children']['add'](_0x96588c);}),_0x18aff8['on']('execute',()=>{_0x31a88c['editing']['view']['focus']();}),_0x18aff8;}:_0x25e204=>{const _0x3eeaa1=new _0x465486(_0x25e204);return _0x3eeaa1['set']({'label':_0x2082a9,'icon':_0x2925dd,'tooltip':!0x0,'isToggleable':!0x0}),_0x3eeaa1['bind']('isOn')['to'](_0xb92e07,'value',_0xc29221=>!!_0xc29221),_0x3eeaa1['on']('execute',()=>{_0x31a88c['execute'](_0x113527),_0x31a88c['editing']['view']['focus']();}),_0x3eeaa1;};}({'editor':_0x11c7d7,'parentCommandName':'multiLevelList','buttonLabel':A(_0x11c7d7['locale'],'Multi-level\x20List'),'buttonIcon':_0x595a47,'styleGridAriaLabel':A(_0x11c7d7['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x11c7d7['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x32fd54=_0x11c7d7['commands']['get']('multiLevelList'),_0x5cc598=new _0x39f7c6(_0x11c7d7['locale']);return _0x5cc598['set']({'label':A(_0x11c7d7['locale'],'Multi-level\x20List'),'icon':_0x595a47}),_0x5cc598['bind']('isEnabled')['to'](_0x32fd54),_0x5cc598['bind']('isOn')['to'](_0x32fd54,'value',_0x327b13=>!!_0x327b13),_0x5cc598['on']('execute',()=>{_0x11c7d7['execute']('multiLevelList'),_0x11c7d7['editing']['view']['focus']();}),_0x5cc598;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x102a64=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4fa88d;for(const _0x430643 in _0x102a64){const _0x2ea933=_0x430643,_0x2bc916=_0x102a64[_0x2ea933];if('multiLevelListLicenseKeyValid'==_0x2bc916||'multiLevelListLicenseKeyInvalid'==_0x2bc916||'multiLevelListLicenseKeyExpired'==_0x2bc916||'multiLevelListLicenseKeyDomainLimit'==_0x2bc916||'multiLevelListLicenseKeyNotAllowed'==_0x2bc916||'multiLevelListLicenseKeyEvaluationLimit'==_0x2bc916||'multiLevelListLicenseKeyUsageLimit'==_0x2bc916){delete _0x102a64[_0x2ea933],_0x4fa88d=_0x2bc916,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x4fa88d&&_0x102a64['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x4fa88d&&_0x102a64['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x4fa88d&&_0x102a64['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x4fa88d&&_0x102a64['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x4fa88d&&_0x102a64['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x4fa88d&&_0x102a64['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x2620d0{static get['pluginName'](){return'MultiLevelList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[x,K];}};export{P as MultiLevelList,S as MultiLevelListCommand,x as MultiLevelListEditing,K as MultiLevelListUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-list-multi-level",
|
|
3
|
-
"version": "48.3.0-alpha.
|
|
3
|
+
"version": "48.3.0-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.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-core": "48.3.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-engine": "48.3.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-icons": "48.3.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-list": "48.3.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-ui": "48.3.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-utils": "48.3.0-alpha.
|
|
35
|
+
"@ckeditor/ckeditor5-clipboard": "48.3.0-alpha.1",
|
|
36
|
+
"@ckeditor/ckeditor5-core": "48.3.0-alpha.1",
|
|
37
|
+
"@ckeditor/ckeditor5-engine": "48.3.0-alpha.1",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "48.3.0-alpha.1",
|
|
39
|
+
"@ckeditor/ckeditor5-list": "48.3.0-alpha.1",
|
|
40
|
+
"@ckeditor/ckeditor5-ui": "48.3.0-alpha.1",
|
|
41
|
+
"@ckeditor/ckeditor5-utils": "48.3.0-alpha.1"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist",
|