@ckeditor/ckeditor5-list-multi-level 48.4.0-alpha.3 → 48.4.0-alpha.4
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 _0x4da993,Plugin as _0x384dae}from'@ckeditor/ckeditor5-core';import{Matcher as _0x124fbd,ViewUpcastWriter as _0x27c6dd}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x429456,_isFirstBlockOfListItem as _0x348126}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0x4712d3,KeystrokeHandler as _0x292fd2,createElement as _0x431112,first as _0x529b5c,global as _0xb06fcc,uid as _0x4b9b5a}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x411b74}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x7d33a1,CollapsibleView as _0x4cede9,FocusCycler as _0x58d4fb,LabeledFieldView as _0x3b1a86,MenuBarMenuListItemButtonView as _0x16209e,SplitButtonView as _0x571ca6,View as _0x523f65,ViewCollection as _0x2575e3,addKeyboardHandlingForGrid as _0x5914d8,createDropdown as _0x2a27ef,createLabeledInputNumber as _0x5c23f1}from'@ckeditor/ckeditor5-ui';var S=class extends _0x4da993{defaultListMarkerStyle;_listDefinitions;_listUtils;constructor(_0x404004,_0x23fef1,_0x3d8f23){super(_0x404004),this['defaultListMarkerStyle']=_0x23fef1,this['_listDefinitions']=_0x3d8f23,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}execute(_0x18a8b2={}){const _0x4b1e09=this['editor']['model'],_0x4e6f63=_0x18a8b2['listMarkerStyle']||this['defaultListMarkerStyle'];_0x4b1e09['change'](()=>{const _0x18ba22=this['_getListTypeFromListMarkerStyle'](_0x4e6f63);if(!_0x18ba22)return;const _0x59c473=_0x18ba22+'List';this['editor']['execute'](_0x59c473,{'additionalAttributes':{'listMarkerStyle':_0x4e6f63}});});}_getValue(){const _0x31cf27=_0x529b5c(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x31cf27)?_0x31cf27['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x11fa3e=this['editor'],_0x1219fd=_0x11fa3e['commands']['get']('customNumberedList'),_0x80ad6d=_0x11fa3e['commands']['get']('customBulletedList');return _0x1219fd['isEnabled']||_0x80ad6d['isEnabled'];}_getListTypeFromListMarkerStyle(_0x92164a){const _0x11fedc=this['_listDefinitions']['find'](_0x38cec7=>_0x38cec7['listMarkerStyle']==_0x92164a);return _0x11fedc?_0x11fedc['listType']:null;}},x=class extends _0x384dae{_listDefinitions;static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x429456];}constructor(_0x329967){super(_0x329967);const _0x428c91=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x2e25e4=>_0x2e25e4+'.'}]},..._0x428c91];}init(){const _0x24427f=this['editor'],_0x443ca4=_0x24427f['model'],_0x574a66=_0x24427f['editing']['view'],_0x1617b5=_0x24427f['plugins']['get'](_0x429456);_0x24427f['commands']['add']('multiLevelList',new S(_0x24427f,'legal',this['_listDefinitions'])),_0x443ca4['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x443ca4['schema']['addAttributeCheck']((_0x366069,_0x274587)=>{const _0x45ac55=_0x366069['last'];if('listMarker'==_0x274587||'listMarkerStyle'==_0x274587)return!(!_0x45ac55['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x5de669=>_0x5de669['listType']==_0x45ac55['getAttribute']('listType')))&&void 0x0;});for(const _0x1559c0 of this['_listDefinitions'])_0x24427f['conversion']['for']('upcast')['add'](_0x4e6056=>{_0x4e6056['on']('element:'+('customNumbered'==_0x1559c0['listType']?'ol':'ul'),_(_0x1559c0,_0x443ca4['schema']),{'priority':'low'});}),_0x1617b5['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x1288c8,_0x3e2b43,_0x51783b){_0x3e2b43==_0x1559c0['listMarkerStyle']?(_0x1288c8['addClass'](['multi-level-list',_0x1559c0['className']],_0x51783b),_0x1288c8['setStyle']('list-style-type','none',_0x51783b)):(_0x1288c8['removeClass'](['multi-level-list',_0x1559c0['className']],_0x51783b),_0x1288c8['removeStyle']('list-style-type',_0x51783b));}}),_0x1617b5['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x4aaa9a,_0x5e9f9e,{dataPipeline:_0x11049d}){if(!_0x5e9f9e['hasAttribute']('listMarker'))return null;if(_0x5e9f9e['getAttribute']('listType')!=_0x1559c0['listType']||_0x5e9f9e['getAttribute']('listMarkerStyle')!=_0x1559c0['listMarkerStyle'])return null;const _0x13e54e=String(_0x5e9f9e['getAttribute']('listMarker')),_0x4d4473=this['canInjectMarkerIntoElement'](_0x5e9f9e);return _0x4aaa9a['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x11049d&&{'contenteditable':'false','data-multi-level-list-marker':_0x13e54e}},function(_0x582528){const _0x3660ef=this['toDomElement'](_0x582528);return _0x4d4473?(_0x3660ef['appendChild'](_0x431112(_0x582528,'span',{},_0x11049d?_0x582528['createTextNode'](_0x13e54e):[])),_0x3660ef['appendChild'](_0x582528['createTextNode']('\u00a0'))):_0x11049d&&_0x3660ef['appendChild'](_0x582528['createTextNode'](_0x13e54e)),_0x3660ef;});},'canInjectMarkerIntoElement':_0x3a93bf=>_0x443ca4['schema']['checkChild'](_0x3a93bf,'$text')&&_0x443ca4['schema']['checkChild'](_0x3a93bf,'$inlineObject')&&!_0x443ca4['schema']['isLimit'](_0x3a93bf)&&_0x3a93bf['getAttribute']('listType')==_0x1559c0['listType']&&_0x3a93bf['getAttribute']('listMarkerStyle')==_0x1559c0['listMarkerStyle']});_0x24427f['conversion']['for']('upcast')['add'](_0x368b7a=>{_0x368b7a['on']('element:span',function(_0x1ee2f0){return(_0x5625a8,_0x2b54ed,{writer:_0x50afac,consumable:_0x2aa58b})=>{const _0x3513dd=_0x2b54ed['modelCursor'],_0x234480=_0x3513dd['parent'],_0x57df51=_0x2b54ed['viewItem'];if(_0x2aa58b['consume'](_0x57df51,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x3513dd['isAtStart']&&_0x234480['hasAttribute']('listType')&&_0x57df51['childCount']>0x0){const _0x4eef97=_0x1ee2f0['createRangeIn'](_0x57df51);let _0x802237='';for(const _0x5e8d17 of _0x4eef97['getItems']())_0x5e8d17['is']('$textProxy')?(_0x802237+=_0x5e8d17['data']['trim'](),_0x2aa58b['consume'](_0x5e8d17['textNode'])):_0x2aa58b['consume'](_0x5e8d17,{'name':!0x0});_0x50afac['setAttribute']('listMarker',_0x802237['trim'](),_0x234480);}};}(_0x574a66));}),_0x1617b5['on']('postFixer',(_0xcecd37,{listNodes:_0x55314d,writer:_0x5245e5})=>{const _0x596ee3=[];for(const {node:_0x193d82,previousNodeInList:_0x37730d}of _0x55314d){const _0x2c7133=_0x193d82['getAttribute']('listType'),_0x52815d=_0x193d82['getAttribute']('listMarkerStyle')||('customNumbered'==_0x2c7133?'legal':void 0x0),_0x131f49=this['_listDefinitions']['find'](_0x5920fc=>_0x5920fc['listType']==_0x2c7133&&_0x5920fc['listMarkerStyle']==_0x52815d);if('customNumbered'!=_0x2c7133&&'customBulleted'!=_0x2c7133&&(_0x193d82['hasAttribute']('listMarker')&&(_0x5245e5['removeAttribute']('listMarker',_0x193d82),_0xcecd37['return']=!0x0),_0x193d82['hasAttribute']('listMarkerStyle')&&(_0x5245e5['removeAttribute']('listMarkerStyle',_0x193d82),_0xcecd37['return']=!0x0)),!_0x131f49){'customBulleted'!=_0x2c7133||_0x52815d||(_0x5245e5['setAttribute']('listType','bulleted',_0x193d82),_0xcecd37['return']=!0x0);continue;}_0x193d82['hasAttribute']('listMarkerStyle')||(_0x5245e5['setAttribute']('listMarkerStyle',_0x52815d,_0x193d82),_0xcecd37['return']=!0x0);const _0x4a3495=_0x193d82['getAttribute']('listIndent');if(_0x37730d&&_0x37730d['getAttribute']('listItemId')==_0x193d82['getAttribute']('listItemId'))continue;if(_0x596ee3['length']=_0x4a3495+0x1,_0x24427f['config']['get']('list.enableSkipLevelLists')){for(let _0x48ae10=0x0;_0x48ae10<_0x4a3495;_0x48ae10++)void 0x0===_0x596ee3[_0x48ae10]&&(_0x596ee3[_0x48ae10]=0x1);}_0x37730d||_0x596ee3[_0x4a3495]?_0x37730d&&_0x37730d['getAttribute']('listType')!=_0x131f49['listType']?_0x596ee3[_0x4a3495]=0x1:_0x596ee3[_0x4a3495]++:_0x596ee3[_0x4a3495]=_0x193d82['getAttribute']('listStart')||0x1;const _0x38ad35=E(_0x4a3495,_0x131f49,_0x596ee3);_0x193d82['getAttribute']('listMarker')!=_0x38ad35&&(_0x5245e5['setAttribute']('listMarker',_0x38ad35,_0x193d82),_0xcecd37['return']=!0x0);}}),_0x1617b5['on']('checkElement',(_0x2298e0,{modelElement:_0x301759,viewElement:_0x212bf8})=>{const _0x2c5dab=_0x301759['getAttribute']('listType');if('customNumbered'!=_0x2c5dab&&'customBulleted'!=_0x2c5dab)return;if(_0x443ca4['schema']['checkChild'](_0x301759,'$text'))return;const _0x43dc4c=_0x348126(_0x301759);let _0x767bd=!0x1;const _0xd18755=_0x574a66['createPositionBefore'](_0x212bf8)['getWalker']({'direction':'backward'});for(const {item:_0x517021}of _0xd18755)if(_0x517021['is']('element')){if(_0x24427f['editing']['mapper']['toModelElement'](_0x517021))break;if(_0x517021['getCustomProperty']('listItemMarker')){_0x767bd=!0x0;break;}}_0x767bd!=_0x43dc4c&&(_0x2298e0['return']=!0x0,_0x2298e0['stop']());});const _0x5289c6=_0x24427f['editing']['view']['document'];this['listenTo'](_0x5289c6,'clipboardOutput',(_0xf890d1,_0x39a5e3)=>{const _0x5d6d03=new _0x124fbd({'name':'span','classes':'multi-level-list__marker'}),_0x9b2ccc=new _0x124fbd({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x285cbf=new _0x27c6dd(_0x39a5e3['content']['document']),_0xad02b2=[];for(const _0x2815b4 of _0x285cbf['createRangeIn'](_0x39a5e3['content'])['getItems']())_0x2815b4['is']('element')&&_0x5d6d03['match'](_0x2815b4)&&_0xad02b2['push'](_0x2815b4),_0x2815b4['is']('element')&&_0x9b2ccc['match'](_0x2815b4)&&_0x285cbf['removeStyle']('list-style-type',_0x2815b4);for(const _0x216986 of _0xad02b2)_0x285cbf['remove'](_0x216986);});}afterInit(){!async function(_0xbf2c3b){const _0x118c5c='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x2d8358=0x79170,_0x1f0b41=window['Date']['now'](),_0x34185b=_0xbf2c3b['editor'],_0xf6fa1f=new window['Promise'](_0xc0a8f8=>{_0x34185b['once']('ready',_0xc0a8f8);}),_0x3101ae={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3162be=_0x34185b['config']['get']('licenseKey');async function _0x42fade(){let _0x3471d6,_0x28c945=null,_0x1f6100=null;try{return'GPL'==_0x3162be?'NotAllowed':(_0x3471d6=_0x2436b8(),_0x3471d6?(_0x3471d6['usageEndpoint']&&(_0x1f6100=_0x37fca8(_0x3471d6['usageEndpoint'],_0x3471d6['jti'])),await _0x1ba4a1()?_0x276ea6()?_0x18deb1()?'Expired':_0x590805()?('evaluation'==_0x3471d6['licenseType']&&(_0x28c945=_0x3b5bea('EvaluationLimit')),await _0x5cb4b9()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x18deb1(){const _0x34883f=['evaluation','trial']['includes'](_0x3471d6['licenseType'])?_0x1f0b41/0x3e8:0xe10*_0x2d8358;return _0x3471d6['exp']<_0x34883f;}function _0x276ea6(){const _0xd6f32d=_0x3471d6['features'];return!!_0xd6f32d&&(!!_0xd6f32d['includes']('*')||!!_0xd6f32d['includes']('MLL'));}function _0x590805(){const _0x525c78=_0x3471d6['licensedHosts'];if(!_0x525c78||0x0==_0x525c78['length'])return!0x0;const {hostname:_0x272d48}=new URL(window['location']['href']);if(_0x525c78['includes'](_0x272d48))return!0x0;const _0x572f6d=_0x272d48['split']('.');return _0x525c78['filter'](_0x2fed7c=>_0x2fed7c['includes']('*'))['map'](_0x2c153a=>_0x2c153a['split']('.'))['filter'](_0x14eb76=>_0x14eb76['length']<=_0x572f6d['length'])['map'](_0x447280=>Array(_0x572f6d['length']-_0x447280['length'])['fill']('*'===_0x447280[0x0]?'*':'')['concat'](_0x447280))['some'](_0x1e1b1f=>_0x572f6d['every']((_0x474b8d,_0x79792c)=>_0x1e1b1f[_0x79792c]===_0x474b8d||'*'===_0x1e1b1f[_0x79792c]));}function _0x5cb4b9(){return _0x28c945&&_0x1f6100?new window['Promise']((_0x3eddfd,_0x350817)=>{_0x28c945['then'](_0x3eddfd,_0x350817),_0x1f6100['then'](_0x5dd1b8=>{'Valid'!=_0x5dd1b8&&_0x3eddfd(_0x5dd1b8);},_0x350817);}):_0x28c945||_0x1f6100||'Valid';}}function _0x37fca8(_0x2773f5,_0x297af1){return new window['Promise'](_0x26935f=>{if(_0x4a57b7())return _0x26935f('Valid');_0x41a25b(),_0x34185b['decorate']('_sendUsageRequest');let _0x28e0ab=!0x1;const _0x3d90fe=_0x4b9b5a();function _0x3b9599(_0x18f984){return!!_0x18f984&&('object'==typeof _0x18f984||'function'==typeof _0x18f984)&&'function'==typeof _0x18f984['then']&&'function'==typeof _0x18f984['catch'];}function _0x34e2a6(_0x580146){_0x11a0a7(_0x580146)['then'](_0x1e77a1=>_0x1e77a1&&'ok'==_0x1e77a1['status']?_0x5d5043(_0x159348(_0x3d90fe+_0x297af1))!=_0x1e77a1['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5a138a=>(_0x4f61ed(),_0x5a138a),()=>{const _0x3bfa81=_0x21a852();return null==_0x3bfa81?(_0x4f61ed(),'Valid'):_0x1f0b41-_0x3bfa81>0x240c8400?'UsageLimit':'Valid';})['then'](_0x26935f)['catch'](()=>{_0x26935f('UsageLimit');});const _0x298983=0x36ee80;function _0x4f61ed(){const _0x65e48f='llct-'+_0x5d5043(_0x159348(_0x2773f5)),_0x27888e=_0x513cdb(_0x5d5043(window['Math']['ceil'](_0x1f0b41/_0x298983)));window['localStorage']['setItem'](_0x65e48f,_0x27888e);}function _0x21a852(){const _0x298563='llct-'+_0x5d5043(_0x159348(_0x2773f5)),_0x1a8b83=window['localStorage']['getItem'](_0x298563);return _0x1a8b83?window['parseInt'](_0x513cdb(_0x1a8b83),0x10)*_0x298983:null;}function _0x11a0a7(_0x54174b){return new window['Promise']((_0x24ca9a,_0x1c0acc)=>{_0x54174b['then'](_0x24ca9a,_0x1c0acc),window['setTimeout'](_0x1c0acc,0x1d4c0);});}}_0x34185b['on']('_sendUsageRequest',(_0x4e1a70,_0x30d8c7)=>{if(_0x30d8c7[0x0]!=_0x2773f5)return _0x26935f('UsageLimit');_0x30d8c7[0x1]={..._0x30d8c7[0x1],'requestId':_0x3d90fe};},{'priority':'high'}),_0x34185b['on']('_sendUsageRequest',_0x5e8b48=>{_0x3b9599(_0x5e8b48['return'])&&(_0x28e0ab=!0x0,_0x34e2a6(_0x5e8b48['return']));},{'priority':'low'}),_0xf6fa1f['then'](()=>{_0x28e0ab||_0x26935f('UsageLimit');});});function _0x4a57b7(){return'auto'==_0x34185b['editing']['view']['_overlayModeHint'];}function _0x41a25b(){_0x34185b['editing']['view']['_overlayModeHint']='auto';}}function _0x3b5bea(_0x3c234c){const _0x376bb9=[new window['Promise'](_0x3535d0=>setTimeout(_0x3535d0,0x93ecc)),_0xf6fa1f['then'](()=>new window['Promise'](_0x2fb84b=>{let _0x42b46f=0x0;_0x34185b['model']['on']('applyOperation',(_0x426a14,_0x46da21)=>{_0x46da21[0x0]['isDocumentOperation']&&_0x42b46f++,0x5e8==_0x42b46f&&(_0x2fb84b(),_0x426a14['off']());});}))];return window['Promise']['race'](_0x376bb9)['then'](()=>_0x3c234c);}async function _0x323c96(){await _0xf6fa1f,_0x34185b['model']['change']=_0x306616,_0x34185b['model']['enqueueChange']=_0x306616,_0x34185b['enableReadOnlyMode']('model');}function _0x35af7(_0xf47bb5){const _0x1d966a=_0x4239ee();_0x34185b[_0x1d966a]='multiLevelListLicenseKey'+_0xf47bb5,'Valid'!=_0xf47bb5&&_0x323c96();}function _0x4239ee(){const _0x3e07cc=window['String'](window['performance']['now']())['replace']('.','');let _0x3bf20d='u';for(let _0x150236=0x0;_0x150236<_0x3e07cc['length'];_0x150236+=0x2){let _0x4dc595=window['parseInt'](_0x3e07cc['substring'](_0x150236,_0x150236+0x2));_0x4dc595>=0x3e&&(_0x4dc595-=0x3e),_0x3bf20d+=_0x118c5c[_0x4dc595];}return _0x3bf20d;}function _0x2436b8(){const _0x53b870=_0x3162be['split']('.');if(0x3!=_0x53b870['length'])return null;return _0x5d0a0c(_0x53b870[0x1]);function _0x5d0a0c(_0x3f38e7){const _0x1c6471=_0x160266(_0x3f38e7);return _0x1c6471&&_0x11710e()?_0x1c6471:null;function _0x11710e(){const _0x49bffe=_0x1c6471['jti'],_0x10e7e4=window['parseInt'](_0x49bffe['substring'](_0x49bffe['length']-0x8),0x10),_0x22119f={..._0x1c6471,'jti':_0x49bffe['substring'](0x0,_0x49bffe['length']-0x8)};return delete _0x22119f['vc'],_0x159348(_0x22119f)==_0x10e7e4;}}}async function _0x1ba4a1(){let _0x1ea292=!0x0;try{const [_0x5ab8d5,_0x5076e8,_0x2a360f]=_0x3162be['split']('.');return _0x4f6a67(_0x5ab8d5),await _0x54bfc0(_0x5ab8d5,_0x5076e8,_0x2a360f),_0x1ea292;}catch{return!0x1;}function _0x4f6a67(_0x37a638){const _0x1a1ca6=_0x160266(_0x37a638);_0x1a1ca6&&'ES256'==_0x1a1ca6['alg']||(_0x1ea292=!0x1);}async function _0x54bfc0(_0x347a09,_0x52ed41,_0x40bd20){const _0x723010=window['Uint8Array']['from'](_0x1667a7(_0x40bd20),_0x2117ae=>_0x2117ae['charCodeAt'](0x0)),_0xff9b16=new window['TextEncoder']()['encode'](_0x347a09+'.'+_0x52ed41),_0x2311dc=window['crypto']['subtle'];if(!_0x2311dc)return;const _0x3863c9=await _0x2311dc['importKey']('jwk',_0x3101ae,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2311dc['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3863c9,_0x723010,_0xff9b16)||(_0x1ea292=!0x1);}}function _0x160266(_0x555b0a){return _0x555b0a['startsWith']('ey')?JSON['parse'](_0x1667a7(_0x555b0a)):null;}function _0x1667a7(_0x224bf5){return window['atob'](_0x224bf5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x159348(_0xc31923){let _0x2df4ce=0x1505;function _0x14d771(_0xeb933e){for(let _0x5f5b11=0x0;_0x5f5b11<_0xeb933e['length'];_0x5f5b11++){const _0x3fa61f=_0xeb933e['charCodeAt'](_0x5f5b11);_0x2df4ce=(_0x2df4ce<<0x5)+_0x2df4ce+_0x3fa61f,_0x2df4ce&=_0x2df4ce;}}function _0x45faa0(_0x2eb1c4){Array['isArray'](_0x2eb1c4)?_0x2eb1c4['forEach'](_0x45faa0):_0x2eb1c4&&'object'==typeof _0x2eb1c4?Object['entries'](_0x2eb1c4)['sort']()['forEach'](([_0x44d2c8,_0x580689])=>{_0x14d771(_0x44d2c8),_0x45faa0(_0x580689);}):_0x14d771(window['String'](_0x2eb1c4));}return _0x45faa0(_0xc31923),_0x2df4ce>>>0x0;}function _0x5d5043(_0x53ce61){return _0x53ce61['toString'](0x10)['padStart'](0x8,'0');}function _0x513cdb(_0xc6bd8d){return _0xc6bd8d['split']('')['reverse']()['join']('');}function _0x306616(){}_0x35af7(await _0x42fade());}(this);}};function E(_0x1f2b9d,_0x4bcaea,_0x5bcd29){let _0x5d2ecf=_0x4bcaea['listMarkers'][_0x1f2b9d%_0x4bcaea['listMarkers']['length']];if(void 0x0===_0x5d2ecf['showMarkerPath']||_0x5d2ecf['showMarkerPath'])return _0x5bcd29['slice'](0x0,_0x1f2b9d+0x1)['map']((_0x4b175e,_0x1e4ca7)=>(_0x5d2ecf=_0x4bcaea['listMarkers'][_0x1e4ca7%_0x4bcaea['listMarkers']['length']],N(_0x5d2ecf['marker'],_0x4b175e)))['join']('');{const _0x3deb14=_0x5bcd29[_0x5bcd29['length']-0x1];return N(_0x5d2ecf['marker'],_0x3deb14);}}function N(_0x65361e,_0x21fe5){return'function'==typeof _0x65361e?_0x65361e(_0x21fe5):_0x65361e;}function _(_0x43e609,_0x57b601){return(_0x4ac6c3,_0x10b40c,_0x3f9c61)=>{const _0x5a5cb3=_0x10b40c['viewItem'];if(_0x10b40c['modelRange']||Object['assign'](_0x10b40c,_0x3f9c61['convertChildren'](_0x10b40c['viewItem'],_0x10b40c['modelCursor'])),!_0x3f9c61['consumable']['test'](_0x5a5cb3,{'classes':_0x43e609['className']}))return;const _0x3ba15a=Array['from'](_0x10b40c['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x3a50ce=>_0x57b601['checkAttribute'](_0x3a50ce,'listItemId'));if(!_0x3ba15a['length'])return;_0x3f9c61['consumable']['consume'](_0x5a5cb3,{'classes':_0x43e609['className']}),_0x3f9c61['consumable']['consume'](_0x5a5cb3,{'classes':'multi-level-list'}),_0x3f9c61['consumable']['consume'](_0x5a5cb3,{'styles':'list-style-type'});const _0x1c011c=_0x3ba15a[0x0]['getAttribute']('listIndent');for(const _0x141be6 of _0x3ba15a)_0x141be6['getAttribute']('listIndent')==_0x1c011c&&(_0x3f9c61['writer']['setAttribute']('listType',_0x43e609['listType'],_0x141be6),_0x3f9c61['writer']['setAttribute']('listMarkerStyle',_0x43e609['listMarkerStyle'],_0x141be6));};}function A(_0x44015f,_0x2d75d8){const _0x5c9468=_0x44015f['t'],t=_0x44015f['t'];switch(_0x2d75d8){case'Start\x20at':return _0x5c9468('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x5c9468('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x5c9468('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x5c9468('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 _0x2d75d8;}}var V=class extends _0x523f65{['children'];stylesView=null;additionalPropertiesCollapsibleView=null;startIndexFieldView=null;['focusTracker']=new _0x4712d3();keystrokes=new _0x292fd2();['focusables']=new _0x2575e3();['focusCycler'];constructor(_0x55c2d5,{enabledProperties:_0x37e3a2,styleButtonViews:_0x36c6cf,styleGridAriaLabel:_0xfb7445}){super(_0x55c2d5);const _0x104083=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x58d4fb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x37e3a2['styles']?(this['stylesView']=this['_createStylesView'](_0x36c6cf,_0xfb7445),this['children']['add'](this['stylesView'])):_0x104083['push']('ck-multi-level-list-properties_without-styles'),_0x37e3a2['startIndex']&&(this['_addListPropertyViews'](_0x37e3a2),_0x104083['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x104083},'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 _0x576085 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x576085['element']);_0x5914d8({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0xb06fcc['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 _0x26fe26=_0x417d22=>_0x417d22['stopPropagation']();this['keystrokes']['set']('arrowright',_0x26fe26),this['keystrokes']['set']('arrowleft',_0x26fe26),this['keystrokes']['set']('arrowup',_0x26fe26),this['keystrokes']['set']('arrowdown',_0x26fe26);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}focusLast(){this['focusCycler']['focusLast']();}destroy(){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}_createStylesView(_0x4e0216,_0x21a1fa){const _0x487804=new _0x523f65(this['locale']);return _0x487804['children']=_0x487804['createCollection'](),_0x487804['children']['addMany'](_0x4e0216),_0x487804['setTemplate']({'tag':'div','attributes':{'aria-label':_0x21a1fa,'class':['ck','ck-multi-level-list-styles']},'children':_0x487804['children']}),_0x487804['children']['delegate']('execute')['to'](this),_0x487804['focus']=function(){this['children']['first']['focus']();},_0x487804['focusTracker']=new _0x4712d3(),_0x487804['keystrokes']=new _0x292fd2(),_0x487804['render'](),_0x487804['keystrokes']['listenTo'](_0x487804['element']),_0x487804;}_addListPropertyViews(_0x20f23b){const _0xb587a5=[];_0x20f23b['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0xb587a5['push'](this['startIndexFieldView'])),_0x20f23b['styles']?(this['additionalPropertiesCollapsibleView']=new _0x4cede9(this['locale'],_0xb587a5),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0xb587a5,'isEnabled',(..._0x25979d)=>_0x25979d['some'](_0x6b9ecb=>_0x6b9ecb)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x411879,_0xafa56a,_0x44d26c)=>{_0x44d26c||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0xb587a5);}_createStartIndexField(){const _0xfbc2b7=new _0x3b1a86(this['locale'],_0x5c23f1);return _0xfbc2b7['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0xfbc2b7['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xfbc2b7['fieldView']['on']('input',()=>{const _0x92db9f=_0xfbc2b7['fieldView']['element'],_0x483562=_0x92db9f['valueAsNumber'];Number['isNaN'](_0x483562)?_0xfbc2b7['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x92db9f['checkValidity']()?this['fire']('listStart',{'startIndex':_0x483562}):_0xfbc2b7['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0xfbc2b7;}},K=class extends _0x384dae{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0xecc4cd=this['editor'];_0xecc4cd['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x165c54,parentCommandName:_0x1ffcc6,buttonLabel:_0x5bae10,buttonIcon:_0x2500c1,styleGridAriaLabel:_0x3769d6,styleDefinitions:_0x308256}){const _0x1a08a2=_0x165c54['commands']['get'](_0x1ffcc6),_0x1d7799=_0x165c54['config']['get']('list.properties')||{},_0x6073b=_0x165c54['plugins']['has']('ListProperties'),_0x4c3052=_0x1d7799['startIndex'];return _0x6073b&&_0x4c3052?_0x12414e=>{const _0x2f3ed1=_0x2a27ef(_0x12414e,_0x571ca6),_0x4f8d7f=_0x2f3ed1['buttonView'];return _0x2f3ed1['bind']('isEnabled')['to'](_0x1a08a2),_0x2f3ed1['class']='ck-list-styles-dropdown',_0x4f8d7f['on']('execute',()=>{_0x165c54['execute'](_0x1ffcc6),_0x165c54['editing']['view']['focus']();}),_0x4f8d7f['set']({'label':_0x5bae10,'icon':_0x2500c1,'tooltip':!0x0,'isToggleable':!0x0}),_0x4f8d7f['bind']('isOn')['to'](_0x1a08a2,'value',_0x27cc8f=>!!_0x27cc8f),_0x2f3ed1['once']('change:isOpen',()=>{const _0x562208=function({editor:_0x1196aa,dropdownView:_0x489a99,styleDefinitions:_0x495a01,styleGridAriaLabel:_0x109d13}){const _0x11ef71=_0x1196aa['locale'],_0x39604d=_0x1196aa['config']['get']('list.properties'),_0x1e0bdd=null;_0x39604d['reversed']=!0x1,_0x495a01['length']||(_0x39604d['styles']=!0x1);const _0x2136e8=new V(_0x11ef71,{'styleGridAriaLabel':_0x109d13,'enabledProperties':_0x39604d,'styleButtonViews':_0x1e0bdd});if(_0x39604d['startIndex']){const _0x2ba2a4=_0x1196aa['commands']['get']('listStart');_0x2136e8['startIndexFieldView']['bind']('isEnabled')['to'](_0x2ba2a4),_0x2136e8['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x2ba2a4),_0x2136e8['on']('listStart',(_0x401390,_0x101e6b)=>_0x1196aa['execute']('listStart',_0x101e6b));}return _0x2136e8['delegate']('execute')['to'](_0x489a99),_0x2136e8;}({'editor':_0x165c54,'dropdownView':_0x2f3ed1,'parentCommandName':_0x1ffcc6,'styleGridAriaLabel':_0x3769d6,'styleDefinitions':_0x308256});_0x2f3ed1['panelView']['children']['add'](_0x562208);}),_0x2f3ed1['on']('execute',()=>{_0x165c54['editing']['view']['focus']();}),_0x2f3ed1;}:_0x30b5f7=>{const _0x1c5e17=new _0x7d33a1(_0x30b5f7);return _0x1c5e17['set']({'label':_0x5bae10,'icon':_0x2500c1,'tooltip':!0x0,'isToggleable':!0x0}),_0x1c5e17['bind']('isOn')['to'](_0x1a08a2,'value',_0xfa14bf=>!!_0xfa14bf),_0x1c5e17['on']('execute',()=>{_0x165c54['execute'](_0x1ffcc6),_0x165c54['editing']['view']['focus']();}),_0x1c5e17;};}({'editor':_0xecc4cd,'parentCommandName':'multiLevelList','buttonLabel':A(_0xecc4cd['locale'],'Multi-level\x20List'),'buttonIcon':_0x411b74,'styleGridAriaLabel':A(_0xecc4cd['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0xecc4cd['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x2a3cd3=_0xecc4cd['commands']['get']('multiLevelList'),_0x2d2903=new _0x16209e(_0xecc4cd['locale']);return _0x2d2903['set']({'label':A(_0xecc4cd['locale'],'Multi-level\x20List'),'icon':_0x411b74}),_0x2d2903['bind']('isEnabled')['to'](_0x2a3cd3),_0x2d2903['bind']('isOn')['to'](_0x2a3cd3,'value',_0x497331=>!!_0x497331),_0x2d2903['on']('execute',()=>{_0xecc4cd['execute']('multiLevelList'),_0xecc4cd['editing']['view']['focus']();}),_0x2d2903;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2c3fcb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x903490;for(const _0x19ce86 in _0x2c3fcb){const _0x328dd5=_0x19ce86,_0x55d9ab=_0x2c3fcb[_0x328dd5];if('multiLevelListLicenseKeyValid'==_0x55d9ab||'multiLevelListLicenseKeyInvalid'==_0x55d9ab||'multiLevelListLicenseKeyExpired'==_0x55d9ab||'multiLevelListLicenseKeyDomainLimit'==_0x55d9ab||'multiLevelListLicenseKeyNotAllowed'==_0x55d9ab||'multiLevelListLicenseKeyEvaluationLimit'==_0x55d9ab||'multiLevelListLicenseKeyUsageLimit'==_0x55d9ab){delete _0x2c3fcb[_0x328dd5],_0x903490=_0x55d9ab,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x903490&&_0x2c3fcb['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x903490&&_0x2c3fcb['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x903490&&_0x2c3fcb['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x903490&&_0x2c3fcb['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x903490&&_0x2c3fcb['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x903490&&_0x2c3fcb['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x384dae{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 _0x14d3eb,Plugin as _0x41f675}from'@ckeditor/ckeditor5-core';import{Matcher as _0x36d81b,ViewUpcastWriter as _0x259f29}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x14d2d2,_isFirstBlockOfListItem as _0x40ec92}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0x5a9cd4,KeystrokeHandler as _0x6b21d9,createElement as _0x24f07a,first as _0x4810a1,global as _0x3f2a0d,uid as _0x31b477}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x302c97}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x351f47,CollapsibleView as _0x13aa24,FocusCycler as _0x3edafa,LabeledFieldView as _0x15c2b3,MenuBarMenuListItemButtonView as _0x535902,SplitButtonView as _0x1b0cf7,View as _0x1471f3,ViewCollection as _0x5a4e55,addKeyboardHandlingForGrid as _0x1af96c,createDropdown as _0x1711cb,createLabeledInputNumber as _0x1d0ba4}from'@ckeditor/ckeditor5-ui';var S=class extends _0x14d3eb{defaultListMarkerStyle;_listDefinitions;_listUtils;constructor(_0x1f68bb,_0x4a4210,_0x3160df){super(_0x1f68bb),this['defaultListMarkerStyle']=_0x4a4210,this['_listDefinitions']=_0x3160df,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}execute(_0x56d28f={}){const _0x24ed6c=this['editor']['model'],_0x33549b=_0x56d28f['listMarkerStyle']||this['defaultListMarkerStyle'];_0x24ed6c['change'](()=>{const _0x5bc2bd=this['_getListTypeFromListMarkerStyle'](_0x33549b);if(!_0x5bc2bd)return;const _0x42b081=_0x5bc2bd+'List';this['editor']['execute'](_0x42b081,{'additionalAttributes':{'listMarkerStyle':_0x33549b}});});}_getValue(){const _0x59a45e=_0x4810a1(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x59a45e)?_0x59a45e['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x49a2a2=this['editor'],_0x530153=_0x49a2a2['commands']['get']('customNumberedList'),_0x48e48a=_0x49a2a2['commands']['get']('customBulletedList');return _0x530153['isEnabled']||_0x48e48a['isEnabled'];}_getListTypeFromListMarkerStyle(_0xbc6187){const _0x43eed3=this['_listDefinitions']['find'](_0x4ca939=>_0x4ca939['listMarkerStyle']==_0xbc6187);return _0x43eed3?_0x43eed3['listType']:null;}},x=class extends _0x41f675{_listDefinitions;static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x14d2d2];}constructor(_0x553b8b){super(_0x553b8b);const _0x21fc7c=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x12ef6d=>_0x12ef6d+'.'}]},..._0x21fc7c];}init(){const _0x2b8c94=this['editor'],_0x3b8fbb=_0x2b8c94['model'],_0x4f81ae=_0x2b8c94['editing']['view'],_0x726d0b=_0x2b8c94['plugins']['get'](_0x14d2d2);_0x2b8c94['commands']['add']('multiLevelList',new S(_0x2b8c94,'legal',this['_listDefinitions'])),_0x3b8fbb['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x3b8fbb['schema']['addAttributeCheck']((_0x8aa7c1,_0x42d4e8)=>{const _0x23fd50=_0x8aa7c1['last'];if('listMarker'==_0x42d4e8||'listMarkerStyle'==_0x42d4e8)return!(!_0x23fd50['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x42acfb=>_0x42acfb['listType']==_0x23fd50['getAttribute']('listType')))&&void 0x0;});for(const _0x367ab9 of this['_listDefinitions'])_0x2b8c94['conversion']['for']('upcast')['add'](_0x24e777=>{_0x24e777['on']('element:'+('customNumbered'==_0x367ab9['listType']?'ol':'ul'),_(_0x367ab9,_0x3b8fbb['schema']),{'priority':'low'});}),_0x726d0b['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0xb782c8,_0x43198c,_0x124aa7){_0x43198c==_0x367ab9['listMarkerStyle']?(_0xb782c8['addClass'](['multi-level-list',_0x367ab9['className']],_0x124aa7),_0xb782c8['setStyle']('list-style-type','none',_0x124aa7)):(_0xb782c8['removeClass'](['multi-level-list',_0x367ab9['className']],_0x124aa7),_0xb782c8['removeStyle']('list-style-type',_0x124aa7));}}),_0x726d0b['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x349125,_0x365f6,{dataPipeline:_0x482927}){if(!_0x365f6['hasAttribute']('listMarker'))return null;if(_0x365f6['getAttribute']('listType')!=_0x367ab9['listType']||_0x365f6['getAttribute']('listMarkerStyle')!=_0x367ab9['listMarkerStyle'])return null;const _0x5141e9=String(_0x365f6['getAttribute']('listMarker')),_0x4dbc29=this['canInjectMarkerIntoElement'](_0x365f6);return _0x349125['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x482927&&{'contenteditable':'false','data-multi-level-list-marker':_0x5141e9}},function(_0x346478){const _0x2a8672=this['toDomElement'](_0x346478);return _0x4dbc29?(_0x2a8672['appendChild'](_0x24f07a(_0x346478,'span',{},_0x482927?_0x346478['createTextNode'](_0x5141e9):[])),_0x2a8672['appendChild'](_0x346478['createTextNode']('\u00a0'))):_0x482927&&_0x2a8672['appendChild'](_0x346478['createTextNode'](_0x5141e9)),_0x2a8672;});},'canInjectMarkerIntoElement':_0x3a8120=>_0x3b8fbb['schema']['checkChild'](_0x3a8120,'$text')&&_0x3b8fbb['schema']['checkChild'](_0x3a8120,'$inlineObject')&&!_0x3b8fbb['schema']['isLimit'](_0x3a8120)&&_0x3a8120['getAttribute']('listType')==_0x367ab9['listType']&&_0x3a8120['getAttribute']('listMarkerStyle')==_0x367ab9['listMarkerStyle']});_0x2b8c94['conversion']['for']('upcast')['add'](_0x2cd80a=>{_0x2cd80a['on']('element:span',function(_0x2cce78){return(_0x16d425,_0x434fea,{writer:_0x577099,consumable:_0x4d48d7})=>{const _0x164633=_0x434fea['modelCursor'],_0x4306cb=_0x164633['parent'],_0x1f16d8=_0x434fea['viewItem'];if(_0x4d48d7['consume'](_0x1f16d8,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x164633['isAtStart']&&_0x4306cb['hasAttribute']('listType')&&_0x1f16d8['childCount']>0x0){const _0x302010=_0x2cce78['createRangeIn'](_0x1f16d8);let _0x265bf3='';for(const _0x42822b of _0x302010['getItems']())_0x42822b['is']('$textProxy')?(_0x265bf3+=_0x42822b['data']['trim'](),_0x4d48d7['consume'](_0x42822b['textNode'])):_0x4d48d7['consume'](_0x42822b,{'name':!0x0});_0x577099['setAttribute']('listMarker',_0x265bf3['trim'](),_0x4306cb);}};}(_0x4f81ae));}),_0x726d0b['on']('postFixer',(_0x34d174,{listNodes:_0x43e91,writer:_0x183c0f})=>{const _0x3955f4=[];for(const {node:_0x4100c2,previousNodeInList:_0x44f2bc}of _0x43e91){const _0x2d9cbc=_0x4100c2['getAttribute']('listType'),_0x5e6413=_0x4100c2['getAttribute']('listMarkerStyle')||('customNumbered'==_0x2d9cbc?'legal':void 0x0),_0x38d2df=this['_listDefinitions']['find'](_0x4c8b74=>_0x4c8b74['listType']==_0x2d9cbc&&_0x4c8b74['listMarkerStyle']==_0x5e6413);if('customNumbered'!=_0x2d9cbc&&'customBulleted'!=_0x2d9cbc&&(_0x4100c2['hasAttribute']('listMarker')&&(_0x183c0f['removeAttribute']('listMarker',_0x4100c2),_0x34d174['return']=!0x0),_0x4100c2['hasAttribute']('listMarkerStyle')&&(_0x183c0f['removeAttribute']('listMarkerStyle',_0x4100c2),_0x34d174['return']=!0x0)),!_0x38d2df){'customBulleted'!=_0x2d9cbc||_0x5e6413||(_0x183c0f['setAttribute']('listType','bulleted',_0x4100c2),_0x34d174['return']=!0x0);continue;}_0x4100c2['hasAttribute']('listMarkerStyle')||(_0x183c0f['setAttribute']('listMarkerStyle',_0x5e6413,_0x4100c2),_0x34d174['return']=!0x0);const _0x2f7d9e=_0x4100c2['getAttribute']('listIndent');if(_0x44f2bc&&_0x44f2bc['getAttribute']('listItemId')==_0x4100c2['getAttribute']('listItemId'))continue;if(_0x3955f4['length']=_0x2f7d9e+0x1,_0x2b8c94['config']['get']('list.enableSkipLevelLists')){for(let _0x172865=0x0;_0x172865<_0x2f7d9e;_0x172865++)void 0x0===_0x3955f4[_0x172865]&&(_0x3955f4[_0x172865]=0x1);}_0x44f2bc||_0x3955f4[_0x2f7d9e]?_0x44f2bc&&_0x44f2bc['getAttribute']('listType')!=_0x38d2df['listType']?_0x3955f4[_0x2f7d9e]=0x1:_0x3955f4[_0x2f7d9e]++:_0x3955f4[_0x2f7d9e]=_0x4100c2['getAttribute']('listStart')||0x1;const _0x3243dc=E(_0x2f7d9e,_0x38d2df,_0x3955f4);_0x4100c2['getAttribute']('listMarker')!=_0x3243dc&&(_0x183c0f['setAttribute']('listMarker',_0x3243dc,_0x4100c2),_0x34d174['return']=!0x0);}}),_0x726d0b['on']('checkElement',(_0x108bb5,{modelElement:_0x2bfc10,viewElement:_0x5b4e61})=>{const _0x2f7d8e=_0x2bfc10['getAttribute']('listType');if('customNumbered'!=_0x2f7d8e&&'customBulleted'!=_0x2f7d8e)return;if(_0x3b8fbb['schema']['checkChild'](_0x2bfc10,'$text'))return;const _0x3a8871=_0x40ec92(_0x2bfc10);let _0x394e2b=!0x1;const _0x1c2452=_0x4f81ae['createPositionBefore'](_0x5b4e61)['getWalker']({'direction':'backward'});for(const {item:_0x246aa6}of _0x1c2452)if(_0x246aa6['is']('element')){if(_0x2b8c94['editing']['mapper']['toModelElement'](_0x246aa6))break;if(_0x246aa6['getCustomProperty']('listItemMarker')){_0x394e2b=!0x0;break;}}_0x394e2b!=_0x3a8871&&(_0x108bb5['return']=!0x0,_0x108bb5['stop']());});const _0x38de0f=_0x2b8c94['editing']['view']['document'];this['listenTo'](_0x38de0f,'clipboardOutput',(_0x5bf00e,_0x19e72e)=>{const _0x5d0c52=new _0x36d81b({'name':'span','classes':'multi-level-list__marker'}),_0x236cbb=new _0x36d81b({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x598bec=new _0x259f29(_0x19e72e['content']['document']),_0x559a11=[];for(const _0x490fbf of _0x598bec['createRangeIn'](_0x19e72e['content'])['getItems']())_0x490fbf['is']('element')&&_0x5d0c52['match'](_0x490fbf)&&_0x559a11['push'](_0x490fbf),_0x490fbf['is']('element')&&_0x236cbb['match'](_0x490fbf)&&_0x598bec['removeStyle']('list-style-type',_0x490fbf);for(const _0x3dd6aa of _0x559a11)_0x598bec['remove'](_0x3dd6aa);});}afterInit(){!async function(_0x202d84){const _0x43c300='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x3a70a1=0x79188,_0x436856=window['Date']['now'](),_0x4a9a41=_0x202d84['editor'],_0x339ae5=new window['Promise'](_0x5b447=>{_0x4a9a41['once']('ready',_0x5b447);}),_0x24c691={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x59c00f=_0x4a9a41['config']['get']('licenseKey');async function _0x5b2d20(){let _0x40d547,_0x368c61=null,_0x4c5236=null;try{return'GPL'==_0x59c00f?'NotAllowed':(_0x40d547=_0x3659a1(),_0x40d547?(_0x40d547['usageEndpoint']&&(_0x4c5236=_0x305a5d(_0x40d547['usageEndpoint'],_0x40d547['jti'])),await _0x227959()?_0xd2230f()?_0x3e2fa2()?'Expired':_0x78903e()?('evaluation'==_0x40d547['licenseType']&&(_0x368c61=_0x2394e3('EvaluationLimit')),await _0x8783ef()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x3e2fa2(){const _0x399158=['evaluation','trial']['includes'](_0x40d547['licenseType'])?_0x436856/0x3e8:0xe10*_0x3a70a1;return _0x40d547['exp']<_0x399158;}function _0xd2230f(){const _0x47e784=_0x40d547['features'];return!!_0x47e784&&(!!_0x47e784['includes']('*')||!!_0x47e784['includes']('MLL'));}function _0x78903e(){const _0x42c15e=_0x40d547['licensedHosts'];if(!_0x42c15e||0x0==_0x42c15e['length'])return!0x0;const {hostname:_0xf43fa5}=new URL(window['location']['href']);if(_0x42c15e['includes'](_0xf43fa5))return!0x0;const _0x13b875=_0xf43fa5['split']('.');return _0x42c15e['filter'](_0x479d20=>_0x479d20['includes']('*'))['map'](_0x1cfa24=>_0x1cfa24['split']('.'))['filter'](_0x4afd8c=>_0x4afd8c['length']<=_0x13b875['length'])['map'](_0x4b129b=>Array(_0x13b875['length']-_0x4b129b['length'])['fill']('*'===_0x4b129b[0x0]?'*':'')['concat'](_0x4b129b))['some'](_0x5c8da0=>_0x13b875['every']((_0x52ed98,_0x164c90)=>_0x5c8da0[_0x164c90]===_0x52ed98||'*'===_0x5c8da0[_0x164c90]));}function _0x8783ef(){return _0x368c61&&_0x4c5236?new window['Promise']((_0x375a3f,_0x139bf0)=>{_0x368c61['then'](_0x375a3f,_0x139bf0),_0x4c5236['then'](_0x54bca3=>{'Valid'!=_0x54bca3&&_0x375a3f(_0x54bca3);},_0x139bf0);}):_0x368c61||_0x4c5236||'Valid';}}function _0x305a5d(_0x52e0d0,_0x209059){return new window['Promise'](_0x12d7f7=>{if(_0x4ff780())return _0x12d7f7('Valid');_0x4f21b9(),_0x4a9a41['decorate']('_sendUsageRequest');let _0x22acb5=!0x1;const _0x17b7a1=_0x31b477();function _0x2920af(_0x226a9d){return!!_0x226a9d&&('object'==typeof _0x226a9d||'function'==typeof _0x226a9d)&&'function'==typeof _0x226a9d['then']&&'function'==typeof _0x226a9d['catch'];}function _0x509d9c(_0x40ba33){_0x3fc8ae(_0x40ba33)['then'](_0x5994d1=>_0x5994d1&&'ok'==_0x5994d1['status']?_0x20be92(_0x3a30a0(_0x17b7a1+_0x209059))!=_0x5994d1['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x9008fc=>(_0x25c5f1(),_0x9008fc),()=>{const _0x4e1ec5=_0x361315();return null==_0x4e1ec5?(_0x25c5f1(),'Valid'):_0x436856-_0x4e1ec5>0x240c8400?'UsageLimit':'Valid';})['then'](_0x12d7f7)['catch'](()=>{_0x12d7f7('UsageLimit');});const _0x22e1b2=0x36ee80;function _0x25c5f1(){const _0x500bec='llct-'+_0x20be92(_0x3a30a0(_0x52e0d0)),_0x3149a8=_0x48d046(_0x20be92(window['Math']['ceil'](_0x436856/_0x22e1b2)));window['localStorage']['setItem'](_0x500bec,_0x3149a8);}function _0x361315(){const _0x420a45='llct-'+_0x20be92(_0x3a30a0(_0x52e0d0)),_0x5d6b17=window['localStorage']['getItem'](_0x420a45);return _0x5d6b17?window['parseInt'](_0x48d046(_0x5d6b17),0x10)*_0x22e1b2:null;}function _0x3fc8ae(_0x39043c){return new window['Promise']((_0x47f510,_0x5c8a11)=>{_0x39043c['then'](_0x47f510,_0x5c8a11),window['setTimeout'](_0x5c8a11,0x1d4c0);});}}_0x4a9a41['on']('_sendUsageRequest',(_0x126266,_0x4653be)=>{if(_0x4653be[0x0]!=_0x52e0d0)return _0x12d7f7('UsageLimit');_0x4653be[0x1]={..._0x4653be[0x1],'requestId':_0x17b7a1};},{'priority':'high'}),_0x4a9a41['on']('_sendUsageRequest',_0x2e3736=>{_0x2920af(_0x2e3736['return'])&&(_0x22acb5=!0x0,_0x509d9c(_0x2e3736['return']));},{'priority':'low'}),_0x339ae5['then'](()=>{_0x22acb5||_0x12d7f7('UsageLimit');});});function _0x4ff780(){return'auto'==_0x4a9a41['editing']['view']['_overlayModeHint'];}function _0x4f21b9(){_0x4a9a41['editing']['view']['_overlayModeHint']='auto';}}function _0x2394e3(_0x5db734){const _0x5f2417=[new window['Promise'](_0x74e1ff=>setTimeout(_0x74e1ff,0x93ecc)),_0x339ae5['then'](()=>new window['Promise'](_0x546dca=>{let _0x15c08c=0x0;_0x4a9a41['model']['on']('applyOperation',(_0x20f09c,_0x11304e)=>{_0x11304e[0x0]['isDocumentOperation']&&_0x15c08c++,0x5e8==_0x15c08c&&(_0x546dca(),_0x20f09c['off']());});}))];return window['Promise']['race'](_0x5f2417)['then'](()=>_0x5db734);}async function _0x586c71(){await _0x339ae5,_0x4a9a41['model']['change']=_0xf85116,_0x4a9a41['model']['enqueueChange']=_0xf85116,_0x4a9a41['enableReadOnlyMode']('model');}function _0x115a5a(_0x1b7a20){const _0x1d207c=_0x474c83();_0x4a9a41[_0x1d207c]='multiLevelListLicenseKey'+_0x1b7a20,'Valid'!=_0x1b7a20&&_0x586c71();}function _0x474c83(){const _0x2279fd=window['String'](window['performance']['now']())['replace']('.','');let _0x150d43='u';for(let _0x53eecc=0x0;_0x53eecc<_0x2279fd['length'];_0x53eecc+=0x2){let _0x3e9198=window['parseInt'](_0x2279fd['substring'](_0x53eecc,_0x53eecc+0x2));_0x3e9198>=0x3e&&(_0x3e9198-=0x3e),_0x150d43+=_0x43c300[_0x3e9198];}return _0x150d43;}function _0x3659a1(){const _0x132056=_0x59c00f['split']('.');if(0x3!=_0x132056['length'])return null;return _0x592a47(_0x132056[0x1]);function _0x592a47(_0x1b03ea){const _0x123604=_0xe9ac50(_0x1b03ea);return _0x123604&&_0x20cb2a()?_0x123604:null;function _0x20cb2a(){const _0x2aa10c=_0x123604['jti'],_0x2df467=window['parseInt'](_0x2aa10c['substring'](_0x2aa10c['length']-0x8),0x10),_0x177bed={..._0x123604,'jti':_0x2aa10c['substring'](0x0,_0x2aa10c['length']-0x8)};return delete _0x177bed['vc'],_0x3a30a0(_0x177bed)==_0x2df467;}}}async function _0x227959(){let _0x2250d6=!0x0;try{const [_0xacc336,_0x38923e,_0x14d87d]=_0x59c00f['split']('.');return _0x57fa32(_0xacc336),await _0x4f1a4d(_0xacc336,_0x38923e,_0x14d87d),_0x2250d6;}catch{return!0x1;}function _0x57fa32(_0x3b4678){const _0x4a097f=_0xe9ac50(_0x3b4678);_0x4a097f&&'ES256'==_0x4a097f['alg']||(_0x2250d6=!0x1);}async function _0x4f1a4d(_0x5c5899,_0x58ddb3,_0x535c30){const _0x313076=window['Uint8Array']['from'](_0x1bc806(_0x535c30),_0x109d77=>_0x109d77['charCodeAt'](0x0)),_0x3d94e2=new window['TextEncoder']()['encode'](_0x5c5899+'.'+_0x58ddb3),_0x364cc9=window['crypto']['subtle'];if(!_0x364cc9)return;const _0x52cd12=await _0x364cc9['importKey']('jwk',_0x24c691,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x364cc9['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x52cd12,_0x313076,_0x3d94e2)||(_0x2250d6=!0x1);}}function _0xe9ac50(_0x2fa7c8){return _0x2fa7c8['startsWith']('ey')?JSON['parse'](_0x1bc806(_0x2fa7c8)):null;}function _0x1bc806(_0x2140be){return window['atob'](_0x2140be['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3a30a0(_0x25caee){let _0x540c6b=0x1505;function _0x35cb40(_0x4142ce){for(let _0x3d4960=0x0;_0x3d4960<_0x4142ce['length'];_0x3d4960++){const _0x259c8b=_0x4142ce['charCodeAt'](_0x3d4960);_0x540c6b=(_0x540c6b<<0x5)+_0x540c6b+_0x259c8b,_0x540c6b&=_0x540c6b;}}function _0x320a6f(_0x156f0d){Array['isArray'](_0x156f0d)?_0x156f0d['forEach'](_0x320a6f):_0x156f0d&&'object'==typeof _0x156f0d?Object['entries'](_0x156f0d)['sort']()['forEach'](([_0x2477e3,_0x26c249])=>{_0x35cb40(_0x2477e3),_0x320a6f(_0x26c249);}):_0x35cb40(window['String'](_0x156f0d));}return _0x320a6f(_0x25caee),_0x540c6b>>>0x0;}function _0x20be92(_0x1fbf0d){return _0x1fbf0d['toString'](0x10)['padStart'](0x8,'0');}function _0x48d046(_0x206819){return _0x206819['split']('')['reverse']()['join']('');}function _0xf85116(){}_0x115a5a(await _0x5b2d20());}(this);}};function E(_0x2b61bd,_0x28dfc1,_0x5d574f){let _0x4aab0c=_0x28dfc1['listMarkers'][_0x2b61bd%_0x28dfc1['listMarkers']['length']];if(void 0x0===_0x4aab0c['showMarkerPath']||_0x4aab0c['showMarkerPath'])return _0x5d574f['slice'](0x0,_0x2b61bd+0x1)['map']((_0x2fcd12,_0xb4a901)=>(_0x4aab0c=_0x28dfc1['listMarkers'][_0xb4a901%_0x28dfc1['listMarkers']['length']],N(_0x4aab0c['marker'],_0x2fcd12)))['join']('');{const _0x2604c3=_0x5d574f[_0x5d574f['length']-0x1];return N(_0x4aab0c['marker'],_0x2604c3);}}function N(_0x57bd3d,_0x16df06){return'function'==typeof _0x57bd3d?_0x57bd3d(_0x16df06):_0x57bd3d;}function _(_0x29d2ad,_0x3bc15f){return(_0x1e992e,_0x2a36e9,_0x190249)=>{const _0x344bdb=_0x2a36e9['viewItem'];if(_0x2a36e9['modelRange']||Object['assign'](_0x2a36e9,_0x190249['convertChildren'](_0x2a36e9['viewItem'],_0x2a36e9['modelCursor'])),!_0x190249['consumable']['test'](_0x344bdb,{'classes':_0x29d2ad['className']}))return;const _0x54c5da=Array['from'](_0x2a36e9['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x3d0a17=>_0x3bc15f['checkAttribute'](_0x3d0a17,'listItemId'));if(!_0x54c5da['length'])return;_0x190249['consumable']['consume'](_0x344bdb,{'classes':_0x29d2ad['className']}),_0x190249['consumable']['consume'](_0x344bdb,{'classes':'multi-level-list'}),_0x190249['consumable']['consume'](_0x344bdb,{'styles':'list-style-type'});const _0x3c4b4e=_0x54c5da[0x0]['getAttribute']('listIndent');for(const _0x478ef0 of _0x54c5da)_0x478ef0['getAttribute']('listIndent')==_0x3c4b4e&&(_0x190249['writer']['setAttribute']('listType',_0x29d2ad['listType'],_0x478ef0),_0x190249['writer']['setAttribute']('listMarkerStyle',_0x29d2ad['listMarkerStyle'],_0x478ef0));};}function A(_0x5e8a29,_0x292db0){const _0x1a3a17=_0x5e8a29['t'],t=_0x5e8a29['t'];switch(_0x292db0){case'Start\x20at':return _0x1a3a17('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x1a3a17('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x1a3a17('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x1a3a17('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 _0x292db0;}}var V=class extends _0x1471f3{['children'];stylesView=null;additionalPropertiesCollapsibleView=null;startIndexFieldView=null;['focusTracker']=new _0x5a9cd4();keystrokes=new _0x6b21d9();['focusables']=new _0x5a4e55();['focusCycler'];constructor(_0x768f0c,{enabledProperties:_0x4b853a,styleButtonViews:_0x4f0a9d,styleGridAriaLabel:_0x3da8ce}){super(_0x768f0c);const _0x115b11=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x3edafa({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x4b853a['styles']?(this['stylesView']=this['_createStylesView'](_0x4f0a9d,_0x3da8ce),this['children']['add'](this['stylesView'])):_0x115b11['push']('ck-multi-level-list-properties_without-styles'),_0x4b853a['startIndex']&&(this['_addListPropertyViews'](_0x4b853a),_0x115b11['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x115b11},'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 _0x141aad of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x141aad['element']);_0x1af96c({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x3f2a0d['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 _0x5b15d5=_0x34b17c=>_0x34b17c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5b15d5),this['keystrokes']['set']('arrowleft',_0x5b15d5),this['keystrokes']['set']('arrowup',_0x5b15d5),this['keystrokes']['set']('arrowdown',_0x5b15d5);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}focusLast(){this['focusCycler']['focusLast']();}destroy(){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}_createStylesView(_0x4c6e44,_0x1ef0de){const _0x560995=new _0x1471f3(this['locale']);return _0x560995['children']=_0x560995['createCollection'](),_0x560995['children']['addMany'](_0x4c6e44),_0x560995['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1ef0de,'class':['ck','ck-multi-level-list-styles']},'children':_0x560995['children']}),_0x560995['children']['delegate']('execute')['to'](this),_0x560995['focus']=function(){this['children']['first']['focus']();},_0x560995['focusTracker']=new _0x5a9cd4(),_0x560995['keystrokes']=new _0x6b21d9(),_0x560995['render'](),_0x560995['keystrokes']['listenTo'](_0x560995['element']),_0x560995;}_addListPropertyViews(_0x5819a0){const _0x2bd18a=[];_0x5819a0['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x2bd18a['push'](this['startIndexFieldView'])),_0x5819a0['styles']?(this['additionalPropertiesCollapsibleView']=new _0x13aa24(this['locale'],_0x2bd18a),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x2bd18a,'isEnabled',(..._0x2897c8)=>_0x2897c8['some'](_0x2b1c3c=>_0x2b1c3c)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x2dafd7,_0x5c4c5b,_0x1ea4e0)=>{_0x1ea4e0||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x2bd18a);}_createStartIndexField(){const _0x28e5ef=new _0x15c2b3(this['locale'],_0x1d0ba4);return _0x28e5ef['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x28e5ef['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x28e5ef['fieldView']['on']('input',()=>{const _0x2a1031=_0x28e5ef['fieldView']['element'],_0x43bb79=_0x2a1031['valueAsNumber'];Number['isNaN'](_0x43bb79)?_0x28e5ef['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x2a1031['checkValidity']()?this['fire']('listStart',{'startIndex':_0x43bb79}):_0x28e5ef['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x28e5ef;}},K=class extends _0x41f675{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x596d87=this['editor'];_0x596d87['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x511589,parentCommandName:_0x2d5672,buttonLabel:_0x3bfe18,buttonIcon:_0x4bdaf1,styleGridAriaLabel:_0x544d3b,styleDefinitions:_0x301c39}){const _0x2f8713=_0x511589['commands']['get'](_0x2d5672),_0x29bb78=_0x511589['config']['get']('list.properties')||{},_0x3d8707=_0x511589['plugins']['has']('ListProperties'),_0x4b2dfb=_0x29bb78['startIndex'];return _0x3d8707&&_0x4b2dfb?_0xcde830=>{const _0x1ccd19=_0x1711cb(_0xcde830,_0x1b0cf7),_0x3642fb=_0x1ccd19['buttonView'];return _0x1ccd19['bind']('isEnabled')['to'](_0x2f8713),_0x1ccd19['class']='ck-list-styles-dropdown',_0x3642fb['on']('execute',()=>{_0x511589['execute'](_0x2d5672),_0x511589['editing']['view']['focus']();}),_0x3642fb['set']({'label':_0x3bfe18,'icon':_0x4bdaf1,'tooltip':!0x0,'isToggleable':!0x0}),_0x3642fb['bind']('isOn')['to'](_0x2f8713,'value',_0x422e28=>!!_0x422e28),_0x1ccd19['once']('change:isOpen',()=>{const _0x175ea=function({editor:_0x29c90e,dropdownView:_0x1bb29c,styleDefinitions:_0x48d9c6,styleGridAriaLabel:_0x34f0f8}){const _0x35c63e=_0x29c90e['locale'],_0x1f9dee=_0x29c90e['config']['get']('list.properties'),_0x1e5d08=null;_0x1f9dee['reversed']=!0x1,_0x48d9c6['length']||(_0x1f9dee['styles']=!0x1);const _0x2462e0=new V(_0x35c63e,{'styleGridAriaLabel':_0x34f0f8,'enabledProperties':_0x1f9dee,'styleButtonViews':_0x1e5d08});if(_0x1f9dee['startIndex']){const _0xb60ca9=_0x29c90e['commands']['get']('listStart');_0x2462e0['startIndexFieldView']['bind']('isEnabled')['to'](_0xb60ca9),_0x2462e0['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xb60ca9),_0x2462e0['on']('listStart',(_0x5f1aa3,_0x3d925e)=>_0x29c90e['execute']('listStart',_0x3d925e));}return _0x2462e0['delegate']('execute')['to'](_0x1bb29c),_0x2462e0;}({'editor':_0x511589,'dropdownView':_0x1ccd19,'parentCommandName':_0x2d5672,'styleGridAriaLabel':_0x544d3b,'styleDefinitions':_0x301c39});_0x1ccd19['panelView']['children']['add'](_0x175ea);}),_0x1ccd19['on']('execute',()=>{_0x511589['editing']['view']['focus']();}),_0x1ccd19;}:_0x40a119=>{const _0x34c908=new _0x351f47(_0x40a119);return _0x34c908['set']({'label':_0x3bfe18,'icon':_0x4bdaf1,'tooltip':!0x0,'isToggleable':!0x0}),_0x34c908['bind']('isOn')['to'](_0x2f8713,'value',_0x1401b6=>!!_0x1401b6),_0x34c908['on']('execute',()=>{_0x511589['execute'](_0x2d5672),_0x511589['editing']['view']['focus']();}),_0x34c908;};}({'editor':_0x596d87,'parentCommandName':'multiLevelList','buttonLabel':A(_0x596d87['locale'],'Multi-level\x20List'),'buttonIcon':_0x302c97,'styleGridAriaLabel':A(_0x596d87['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x596d87['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x309c09=_0x596d87['commands']['get']('multiLevelList'),_0x58f8c8=new _0x535902(_0x596d87['locale']);return _0x58f8c8['set']({'label':A(_0x596d87['locale'],'Multi-level\x20List'),'icon':_0x302c97}),_0x58f8c8['bind']('isEnabled')['to'](_0x309c09),_0x58f8c8['bind']('isOn')['to'](_0x309c09,'value',_0x43bc82=>!!_0x43bc82),_0x58f8c8['on']('execute',()=>{_0x596d87['execute']('multiLevelList'),_0x596d87['editing']['view']['focus']();}),_0x58f8c8;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x35f124=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ae201;for(const _0x1a084a in _0x35f124){const _0xac50e1=_0x1a084a,_0x3892d9=_0x35f124[_0xac50e1];if('multiLevelListLicenseKeyValid'==_0x3892d9||'multiLevelListLicenseKeyInvalid'==_0x3892d9||'multiLevelListLicenseKeyExpired'==_0x3892d9||'multiLevelListLicenseKeyDomainLimit'==_0x3892d9||'multiLevelListLicenseKeyNotAllowed'==_0x3892d9||'multiLevelListLicenseKeyEvaluationLimit'==_0x3892d9||'multiLevelListLicenseKeyUsageLimit'==_0x3892d9){delete _0x35f124[_0xac50e1],_0x5ae201=_0x3892d9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x5ae201&&_0x35f124['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x5ae201&&_0x35f124['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x5ae201&&_0x35f124['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x5ae201&&_0x35f124['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x5ae201&&_0x35f124['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x5ae201&&_0x35f124['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x41f675{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.4.0-alpha.
|
|
3
|
+
"version": "48.4.0-alpha.4",
|
|
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.4.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-core": "48.4.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-engine": "48.4.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-icons": "48.4.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-list": "48.4.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-ui": "48.4.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-utils": "48.4.0-alpha.
|
|
35
|
+
"@ckeditor/ckeditor5-clipboard": "48.4.0-alpha.4",
|
|
36
|
+
"@ckeditor/ckeditor5-core": "48.4.0-alpha.4",
|
|
37
|
+
"@ckeditor/ckeditor5-engine": "48.4.0-alpha.4",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "48.4.0-alpha.4",
|
|
39
|
+
"@ckeditor/ckeditor5-list": "48.4.0-alpha.4",
|
|
40
|
+
"@ckeditor/ckeditor5-ui": "48.4.0-alpha.4",
|
|
41
|
+
"@ckeditor/ckeditor5-utils": "48.4.0-alpha.4"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist",
|