@ckeditor/ckeditor5-list-multi-level 48.3.0-alpha.5 → 48.3.0-alpha.6
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 _0x13aee6,Plugin as _0x285d89}from'@ckeditor/ckeditor5-core';import{Matcher as _0x1a76ab,ViewUpcastWriter as _0x405faf}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x53ce08,_isFirstBlockOfListItem as _0x11d6a2}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0x29b3ed,KeystrokeHandler as _0x1054fb,createElement as _0x1400e5,first as _0xc331f5,global as _0x31d350,uid as _0x25cb98}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x584bc9}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x307176,CollapsibleView as _0x5494c2,FocusCycler as _0x44240a,LabeledFieldView as _0x5b317b,MenuBarMenuListItemButtonView as _0x9c8d65,SplitButtonView as _0x5e83cb,View as _0x2b8b73,ViewCollection as _0x9df9da,addKeyboardHandlingForGrid as _0x29d0bd,createDropdown as _0x279ec7,createLabeledInputNumber as _0x4d9dd9}from'@ckeditor/ckeditor5-ui';var S=class extends _0x13aee6{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x37a190,_0x337353,_0x100e8d){super(_0x37a190),this['defaultListMarkerStyle']=_0x337353,this['_listDefinitions']=_0x100e8d,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5e281b={}){const _0x4305ed=this['editor']['model'],_0x50ba21=_0x5e281b['listMarkerStyle']||this['defaultListMarkerStyle'];_0x4305ed['change'](()=>{const _0x5b6f3a=this['_getListTypeFromListMarkerStyle'](_0x50ba21);if(!_0x5b6f3a)return;const _0x3ee314=_0x5b6f3a+'List';this['editor']['execute'](_0x3ee314,{'additionalAttributes':{'listMarkerStyle':_0x50ba21}});});}['_getValue'](){const _0x1ce8c4=_0xc331f5(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x1ce8c4)?_0x1ce8c4['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x25b591=this['editor'],_0x353417=_0x25b591['commands']['get']('customNumberedList'),_0xd3d947=_0x25b591['commands']['get']('customBulletedList');return _0x353417['isEnabled']||_0xd3d947['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x5be898){const _0x32b7b9=this['_listDefinitions']['find'](_0x354f04=>_0x354f04['listMarkerStyle']==_0x5be898);return _0x32b7b9?_0x32b7b9['listType']:null;}},x=class extends _0x285d89{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x53ce08];}constructor(_0x1ed16b){super(_0x1ed16b);const _0x38a512=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x3d3c27=>_0x3d3c27+'.'}]},..._0x38a512];}['init'](){const _0x1706bd=this['editor'],_0x475c0e=_0x1706bd['model'],_0x19cca9=_0x1706bd['editing']['view'],_0x44df73=_0x1706bd['plugins']['get'](_0x53ce08);_0x1706bd['commands']['add']('multiLevelList',new S(_0x1706bd,'legal',this['_listDefinitions'])),_0x475c0e['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x475c0e['schema']['addAttributeCheck']((_0x2c19d5,_0x32e14c)=>{const _0x1a1dbc=_0x2c19d5['last'];if('listMarker'==_0x32e14c||'listMarkerStyle'==_0x32e14c)return!(!_0x1a1dbc['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x5ad723=>_0x5ad723['listType']==_0x1a1dbc['getAttribute']('listType')))&&void 0x0;});for(const _0x5bfe96 of this['_listDefinitions'])_0x1706bd['conversion']['for']('upcast')['add'](_0x3cce2b=>{_0x3cce2b['on']('element:'+('customNumbered'==_0x5bfe96['listType']?'ol':'ul'),_(_0x5bfe96,_0x475c0e['schema']),{'priority':'low'});}),_0x44df73['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x5c9a,_0x2a9f0a,_0x234bd7){_0x2a9f0a==_0x5bfe96['listMarkerStyle']?(_0x5c9a['addClass'](['multi-level-list',_0x5bfe96['className']],_0x234bd7),_0x5c9a['setStyle']('list-style-type','none',_0x234bd7)):(_0x5c9a['removeClass'](['multi-level-list',_0x5bfe96['className']],_0x234bd7),_0x5c9a['removeStyle']('list-style-type',_0x234bd7));}}),_0x44df73['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x4bf930,_0x3a7d36,{dataPipeline:_0x19a16c}){if(!_0x3a7d36['hasAttribute']('listMarker'))return null;if(_0x3a7d36['getAttribute']('listType')!=_0x5bfe96['listType']||_0x3a7d36['getAttribute']('listMarkerStyle')!=_0x5bfe96['listMarkerStyle'])return null;const _0x19ce6a=String(_0x3a7d36['getAttribute']('listMarker')),_0x14f259=this['canInjectMarkerIntoElement'](_0x3a7d36);return _0x4bf930['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x19a16c&&{'contenteditable':'false','data-multi-level-list-marker':_0x19ce6a}},function(_0x19db73){const _0x506887=this['toDomElement'](_0x19db73);return _0x14f259?(_0x506887['appendChild'](_0x1400e5(_0x19db73,'span',{},_0x19a16c?_0x19db73['createTextNode'](_0x19ce6a):[])),_0x506887['appendChild'](_0x19db73['createTextNode']('\u00a0'))):_0x19a16c&&_0x506887['appendChild'](_0x19db73['createTextNode'](_0x19ce6a)),_0x506887;});},'canInjectMarkerIntoElement':_0x4fca93=>_0x475c0e['schema']['checkChild'](_0x4fca93,'$text')&&_0x475c0e['schema']['checkChild'](_0x4fca93,'$inlineObject')&&!_0x475c0e['schema']['isLimit'](_0x4fca93)&&_0x4fca93['getAttribute']('listType')==_0x5bfe96['listType']&&_0x4fca93['getAttribute']('listMarkerStyle')==_0x5bfe96['listMarkerStyle']});_0x1706bd['conversion']['for']('upcast')['add'](_0x208b52=>{_0x208b52['on']('element:span',function(_0x4854c9){return(_0x452030,_0x2f406c,{writer:_0x2e6f22,consumable:_0x201419})=>{const _0x18430f=_0x2f406c['modelCursor'],_0x56c8e8=_0x18430f['parent'],_0x214bda=_0x2f406c['viewItem'];if(_0x201419['consume'](_0x214bda,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x18430f['isAtStart']&&_0x56c8e8['hasAttribute']('listType')&&_0x214bda['childCount']>0x0){const _0x56dc0f=_0x4854c9['createRangeIn'](_0x214bda);let _0x19557f='';for(const _0xf5f509 of _0x56dc0f['getItems']())_0xf5f509['is']('$textProxy')?(_0x19557f+=_0xf5f509['data']['trim'](),_0x201419['consume'](_0xf5f509['textNode'])):_0x201419['consume'](_0xf5f509,{'name':!0x0});_0x2e6f22['setAttribute']('listMarker',_0x19557f['trim'](),_0x56c8e8);}};}(_0x19cca9));}),_0x44df73['on']('postFixer',(_0x1b4bf3,{listNodes:_0x13d15c,writer:_0x1d00b2})=>{const _0x143a28=[];for(const {node:_0x2c09ac,previousNodeInList:_0x3b585e}of _0x13d15c){const _0x22233b=_0x2c09ac['getAttribute']('listType'),_0x3112c6=_0x2c09ac['getAttribute']('listMarkerStyle')||('customNumbered'==_0x22233b?'legal':void 0x0),_0x2a5a28=this['_listDefinitions']['find'](_0x3fd652=>_0x3fd652['listType']==_0x22233b&&_0x3fd652['listMarkerStyle']==_0x3112c6);if('customNumbered'!=_0x22233b&&'customBulleted'!=_0x22233b&&(_0x2c09ac['hasAttribute']('listMarker')&&(_0x1d00b2['removeAttribute']('listMarker',_0x2c09ac),_0x1b4bf3['return']=!0x0),_0x2c09ac['hasAttribute']('listMarkerStyle')&&(_0x1d00b2['removeAttribute']('listMarkerStyle',_0x2c09ac),_0x1b4bf3['return']=!0x0)),!_0x2a5a28){'customBulleted'!=_0x22233b||_0x3112c6||(_0x1d00b2['setAttribute']('listType','bulleted',_0x2c09ac),_0x1b4bf3['return']=!0x0);continue;}_0x2c09ac['hasAttribute']('listMarkerStyle')||(_0x1d00b2['setAttribute']('listMarkerStyle',_0x3112c6,_0x2c09ac),_0x1b4bf3['return']=!0x0);const _0x3bc76c=_0x2c09ac['getAttribute']('listIndent');if(_0x3b585e&&_0x3b585e['getAttribute']('listItemId')==_0x2c09ac['getAttribute']('listItemId'))continue;if(_0x143a28['length']=_0x3bc76c+0x1,_0x1706bd['config']['get']('list.enableSkipLevelLists')){for(let _0x129554=0x0;_0x129554<_0x3bc76c;_0x129554++)void 0x0===_0x143a28[_0x129554]&&(_0x143a28[_0x129554]=0x1);}_0x3b585e||_0x143a28[_0x3bc76c]?_0x3b585e&&_0x3b585e['getAttribute']('listType')!=_0x2a5a28['listType']?_0x143a28[_0x3bc76c]=0x1:_0x143a28[_0x3bc76c]++:_0x143a28[_0x3bc76c]=_0x2c09ac['getAttribute']('listStart')||0x1;const _0x173330=E(_0x3bc76c,_0x2a5a28,_0x143a28);_0x2c09ac['getAttribute']('listMarker')!=_0x173330&&(_0x1d00b2['setAttribute']('listMarker',_0x173330,_0x2c09ac),_0x1b4bf3['return']=!0x0);}}),_0x44df73['on']('checkElement',(_0x7355f4,{modelElement:_0x4fcf37,viewElement:_0x210683})=>{const _0x27da30=_0x4fcf37['getAttribute']('listType');if('customNumbered'!=_0x27da30&&'customBulleted'!=_0x27da30)return;if(_0x475c0e['schema']['checkChild'](_0x4fcf37,'$text'))return;const _0x3f3ddd=_0x11d6a2(_0x4fcf37);let _0x37ac35=!0x1;const _0x5685de=_0x19cca9['createPositionBefore'](_0x210683)['getWalker']({'direction':'backward'});for(const {item:_0x5ec7f9}of _0x5685de)if(_0x5ec7f9['is']('element')){if(_0x1706bd['editing']['mapper']['toModelElement'](_0x5ec7f9))break;if(_0x5ec7f9['getCustomProperty']('listItemMarker')){_0x37ac35=!0x0;break;}}_0x37ac35!=_0x3f3ddd&&(_0x7355f4['return']=!0x0,_0x7355f4['stop']());});const _0x150dce=_0x1706bd['editing']['view']['document'];this['listenTo'](_0x150dce,'clipboardOutput',(_0x3a4538,_0x388449)=>{const _0x5208e7=new _0x1a76ab({'name':'span','classes':'multi-level-list__marker'}),_0x340e72=new _0x1a76ab({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x473ac7=new _0x405faf(_0x388449['content']['document']),_0x4b5167=[];for(const _0x393f97 of _0x473ac7['createRangeIn'](_0x388449['content'])['getItems']())_0x393f97['is']('element')&&_0x5208e7['match'](_0x393f97)&&_0x4b5167['push'](_0x393f97),_0x393f97['is']('element')&&_0x340e72['match'](_0x393f97)&&_0x473ac7['removeStyle']('list-style-type',_0x393f97);for(const _0x4e847f of _0x4b5167)_0x473ac7['remove'](_0x4e847f);});}['afterInit'](){!async function(_0x2f5732){const _0x18a455='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x1f3f60=0x78e40,_0x417b5d=window['Date']['now'](),_0x582f73=_0x2f5732['editor'],_0x56a002=new window['Promise'](_0x24aad5=>{_0x582f73['once']('ready',_0x24aad5);}),_0x22f64e={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2f1f68=_0x582f73['config']['get']('licenseKey');async function _0x2f68bc(){let _0x4497b4,_0x26c69a=null,_0x4aa4dc=null;try{return'GPL'==_0x2f1f68?'NotAllowed':(_0x4497b4=_0x482f7c(),_0x4497b4?(_0x4497b4['usageEndpoint']&&(_0x4aa4dc=_0x51fc3a(_0x4497b4['usageEndpoint'],_0x4497b4['jti'])),await _0x146b31()?_0xe07521()?_0x65019e()?'Expired':_0x37c656()?('evaluation'==_0x4497b4['licenseType']&&(_0x26c69a=_0x4eefa6('EvaluationLimit')),await _0x4c97e2()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x65019e(){const _0x2bff2e=['evaluation','trial']['includes'](_0x4497b4['licenseType'])?_0x417b5d/0x3e8:0xe10*_0x1f3f60;return _0x4497b4['exp']<_0x2bff2e;}function _0xe07521(){const _0x14ef88=_0x4497b4['features'];return!!_0x14ef88&&(!!_0x14ef88['includes']('*')||!!_0x14ef88['includes']('MLL'));}function _0x37c656(){const _0x24376b=_0x4497b4['licensedHosts'];if(!_0x24376b||0x0==_0x24376b['length'])return!0x0;const {hostname:_0x276ef1}=new URL(window['location']['href']);if(_0x24376b['includes'](_0x276ef1))return!0x0;const _0x3d996f=_0x276ef1['split']('.');return _0x24376b['filter'](_0xcf8724=>_0xcf8724['includes']('*'))['map'](_0x550d55=>_0x550d55['split']('.'))['filter'](_0x5d942c=>_0x5d942c['length']<=_0x3d996f['length'])['map'](_0x5c519b=>Array(_0x3d996f['length']-_0x5c519b['length'])['fill']('*'===_0x5c519b[0x0]?'*':'')['concat'](_0x5c519b))['some'](_0x2e4b80=>_0x3d996f['every']((_0x1ba065,_0x89a7cc)=>_0x2e4b80[_0x89a7cc]===_0x1ba065||'*'===_0x2e4b80[_0x89a7cc]));}function _0x4c97e2(){return _0x26c69a&&_0x4aa4dc?new window['Promise']((_0x2568a6,_0x88dd36)=>{_0x26c69a['then'](_0x2568a6,_0x88dd36),_0x4aa4dc['then'](_0x5607a9=>{'Valid'!=_0x5607a9&&_0x2568a6(_0x5607a9);},_0x88dd36);}):_0x26c69a||_0x4aa4dc||'Valid';}}function _0x51fc3a(_0x1db36f,_0x24db8e){return new window['Promise'](_0x590045=>{if(_0x3b968a())return _0x590045('Valid');_0x5513be(),_0x582f73['decorate']('_sendUsageRequest');let _0x3dccf7=!0x1;const _0x481e62=_0x25cb98();function _0x959ccb(_0x2df959){return!!_0x2df959&&('object'==typeof _0x2df959||'function'==typeof _0x2df959)&&'function'==typeof _0x2df959['then']&&'function'==typeof _0x2df959['catch'];}function _0x1a60b9(_0x3a0f3c){_0x1d26be(_0x3a0f3c)['then'](_0x1b3938=>_0x1b3938&&'ok'==_0x1b3938['status']?_0x5bb9a3(_0x11f65f(_0x481e62+_0x24db8e))!=_0x1b3938['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x44e1ad=>(_0x38828d(),_0x44e1ad),()=>{const _0x29790e=_0x515467();return null==_0x29790e?(_0x38828d(),'Valid'):_0x417b5d-_0x29790e>0x240c8400?'UsageLimit':'Valid';})['then'](_0x590045)['catch'](()=>{_0x590045('UsageLimit');});const _0x1604f5=0x36ee80;function _0x38828d(){const _0x79afbe='llct-'+_0x5bb9a3(_0x11f65f(_0x1db36f)),_0x2361b2=_0x1ddbd7(_0x5bb9a3(window['Math']['ceil'](_0x417b5d/_0x1604f5)));window['localStorage']['setItem'](_0x79afbe,_0x2361b2);}function _0x515467(){const _0x4dde58='llct-'+_0x5bb9a3(_0x11f65f(_0x1db36f)),_0xcf3301=window['localStorage']['getItem'](_0x4dde58);return _0xcf3301?window['parseInt'](_0x1ddbd7(_0xcf3301),0x10)*_0x1604f5:null;}function _0x1d26be(_0x49b28f){return new window['Promise']((_0x32642e,_0x19cdf9)=>{_0x49b28f['then'](_0x32642e,_0x19cdf9),window['setTimeout'](_0x19cdf9,0x1d4c0);});}}_0x582f73['on']('_sendUsageRequest',(_0x394df0,_0xe79c6)=>{if(_0xe79c6[0x0]!=_0x1db36f)return _0x590045('UsageLimit');_0xe79c6[0x1]={..._0xe79c6[0x1],'requestId':_0x481e62};},{'priority':'high'}),_0x582f73['on']('_sendUsageRequest',_0x24847d=>{_0x959ccb(_0x24847d['return'])&&(_0x3dccf7=!0x0,_0x1a60b9(_0x24847d['return']));},{'priority':'low'}),_0x56a002['then'](()=>{_0x3dccf7||_0x590045('UsageLimit');});});function _0x3b968a(){return'auto'==_0x582f73['editing']['view']['_overlayModeHint'];}function _0x5513be(){_0x582f73['editing']['view']['_overlayModeHint']='auto';}}function _0x4eefa6(_0xc579ed){const _0x39e6e9=[new window['Promise'](_0x58cc74=>setTimeout(_0x58cc74,0x93ecc)),_0x56a002['then'](()=>new window['Promise'](_0x36e403=>{let _0xe46054=0x0;_0x582f73['model']['on']('applyOperation',(_0x1195e6,_0x3bb877)=>{_0x3bb877[0x0]['isDocumentOperation']&&_0xe46054++,0x5e8==_0xe46054&&(_0x36e403(),_0x1195e6['off']());});}))];return window['Promise']['race'](_0x39e6e9)['then'](()=>_0xc579ed);}async function _0x28f188(){await _0x56a002,_0x582f73['model']['change']=_0x1e61cc,_0x582f73['model']['enqueueChange']=_0x1e61cc,_0x582f73['enableReadOnlyMode']('model');}function _0x3b6c91(_0x103d0e){const _0x48fcc0=_0x56b33b();_0x582f73[_0x48fcc0]='multiLevelListLicenseKey'+_0x103d0e,'Valid'!=_0x103d0e&&_0x28f188();}function _0x56b33b(){const _0x4962ae=window['String'](window['performance']['now']())['replace']('.','');let _0x75ff8d='u';for(let _0x36182d=0x0;_0x36182d<_0x4962ae['length'];_0x36182d+=0x2){let _0x54d482=window['parseInt'](_0x4962ae['substring'](_0x36182d,_0x36182d+0x2));_0x54d482>=0x3e&&(_0x54d482-=0x3e),_0x75ff8d+=_0x18a455[_0x54d482];}return _0x75ff8d;}function _0x482f7c(){const _0x277f19=_0x2f1f68['split']('.');if(0x3!=_0x277f19['length'])return null;return _0x22501b(_0x277f19[0x1]);function _0x22501b(_0x55cc4d){const _0x29cd07=_0x35290b(_0x55cc4d);return _0x29cd07&&_0x38c045()?_0x29cd07:null;function _0x38c045(){const _0x8d0a17=_0x29cd07['jti'],_0x53371c=window['parseInt'](_0x8d0a17['substring'](_0x8d0a17['length']-0x8),0x10),_0x119934={..._0x29cd07,'jti':_0x8d0a17['substring'](0x0,_0x8d0a17['length']-0x8)};return delete _0x119934['vc'],_0x11f65f(_0x119934)==_0x53371c;}}}async function _0x146b31(){let _0x3d9fa1=!0x0;try{const [_0x559d13,_0x2b8f63,_0xde22a5]=_0x2f1f68['split']('.');return _0x56ac57(_0x559d13),await _0x39fb8b(_0x559d13,_0x2b8f63,_0xde22a5),_0x3d9fa1;}catch{return!0x1;}function _0x56ac57(_0x28c889){const _0x3d0500=_0x35290b(_0x28c889);_0x3d0500&&'ES256'==_0x3d0500['alg']||(_0x3d9fa1=!0x1);}async function _0x39fb8b(_0x540f69,_0x3f8c51,_0x30107f){const _0x4a6133=window['Uint8Array']['from'](_0x4584aa(_0x30107f),_0xfaa9c1=>_0xfaa9c1['charCodeAt'](0x0)),_0xcf9478=new window['TextEncoder']()['encode'](_0x540f69+'.'+_0x3f8c51),_0xc3022a=window['crypto']['subtle'];if(!_0xc3022a)return;const _0x4c7e30=await _0xc3022a['importKey']('jwk',_0x22f64e,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xc3022a['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4c7e30,_0x4a6133,_0xcf9478)||(_0x3d9fa1=!0x1);}}function _0x35290b(_0x35ce8c){return _0x35ce8c['startsWith']('ey')?JSON['parse'](_0x4584aa(_0x35ce8c)):null;}function _0x4584aa(_0x3b67d5){return window['atob'](_0x3b67d5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x11f65f(_0x503e8c){let _0x18c46c=0x1505;function _0x32a6e4(_0x2faa1a){for(let _0x514131=0x0;_0x514131<_0x2faa1a['length'];_0x514131++){const _0x4d4c21=_0x2faa1a['charCodeAt'](_0x514131);_0x18c46c=(_0x18c46c<<0x5)+_0x18c46c+_0x4d4c21,_0x18c46c&=_0x18c46c;}}function _0x13e344(_0x5812b6){Array['isArray'](_0x5812b6)?_0x5812b6['forEach'](_0x13e344):_0x5812b6&&'object'==typeof _0x5812b6?Object['entries'](_0x5812b6)['sort']()['forEach'](([_0x4d3590,_0x42f37a])=>{_0x32a6e4(_0x4d3590),_0x13e344(_0x42f37a);}):_0x32a6e4(window['String'](_0x5812b6));}return _0x13e344(_0x503e8c),_0x18c46c>>>0x0;}function _0x5bb9a3(_0x25a331){return _0x25a331['toString'](0x10)['padStart'](0x8,'0');}function _0x1ddbd7(_0x10e6b9){return _0x10e6b9['split']('')['reverse']()['join']('');}function _0x1e61cc(){}_0x3b6c91(await _0x2f68bc());}(this);}};function E(_0x519766,_0x4f038e,_0x3953a7){let _0x24d84c=_0x4f038e['listMarkers'][_0x519766%_0x4f038e['listMarkers']['length']];if(void 0x0===_0x24d84c['showMarkerPath']||_0x24d84c['showMarkerPath'])return _0x3953a7['slice'](0x0,_0x519766+0x1)['map']((_0x45e3d9,_0x1c0e82)=>(_0x24d84c=_0x4f038e['listMarkers'][_0x1c0e82%_0x4f038e['listMarkers']['length']],N(_0x24d84c['marker'],_0x45e3d9)))['join']('');{const _0x3a5144=_0x3953a7[_0x3953a7['length']-0x1];return N(_0x24d84c['marker'],_0x3a5144);}}function N(_0x376599,_0x2b227e){return'function'==typeof _0x376599?_0x376599(_0x2b227e):_0x376599;}function _(_0x518bd0,_0x115590){return(_0x44bce7,_0x34ee7a,_0x2c13b3)=>{const _0x58ec0e=_0x34ee7a['viewItem'];if(_0x34ee7a['modelRange']||Object['assign'](_0x34ee7a,_0x2c13b3['convertChildren'](_0x34ee7a['viewItem'],_0x34ee7a['modelCursor'])),!_0x2c13b3['consumable']['test'](_0x58ec0e,{'classes':_0x518bd0['className']}))return;const _0x25b476=Array['from'](_0x34ee7a['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0xc02ad5=>_0x115590['checkAttribute'](_0xc02ad5,'listItemId'));if(!_0x25b476['length'])return;_0x2c13b3['consumable']['consume'](_0x58ec0e,{'classes':_0x518bd0['className']}),_0x2c13b3['consumable']['consume'](_0x58ec0e,{'classes':'multi-level-list'}),_0x2c13b3['consumable']['consume'](_0x58ec0e,{'styles':'list-style-type'});const _0x228982=_0x25b476[0x0]['getAttribute']('listIndent');for(const _0x532339 of _0x25b476)_0x532339['getAttribute']('listIndent')==_0x228982&&(_0x2c13b3['writer']['setAttribute']('listType',_0x518bd0['listType'],_0x532339),_0x2c13b3['writer']['setAttribute']('listMarkerStyle',_0x518bd0['listMarkerStyle'],_0x532339));};}function A(_0x47fb03,_0x2c024f){const _0x2d1939=_0x47fb03['t'],t=_0x47fb03['t'];switch(_0x2c024f){case'Start\x20at':return _0x2d1939('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x2d1939('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x2d1939('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x2d1939('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 _0x2c024f;}}var V=class extends _0x2b8b73{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new _0x29b3ed();['keystrokes']=new _0x1054fb();['focusables']=new _0x9df9da();['focusCycler'];constructor(_0x31860b,{enabledProperties:_0x5a3ee7,styleButtonViews:_0x8e078d,styleGridAriaLabel:_0x437682}){super(_0x31860b);const _0x3296ad=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x44240a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x5a3ee7['styles']?(this['stylesView']=this['_createStylesView'](_0x8e078d,_0x437682),this['children']['add'](this['stylesView'])):_0x3296ad['push']('ck-multi-level-list-properties_without-styles'),_0x5a3ee7['startIndex']&&(this['_addListPropertyViews'](_0x5a3ee7),_0x3296ad['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x3296ad},'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 _0x2d84b0 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2d84b0['element']);_0x29d0bd({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x31d350['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 _0xcba5fb=_0x365d97=>_0x365d97['stopPropagation']();this['keystrokes']['set']('arrowright',_0xcba5fb),this['keystrokes']['set']('arrowleft',_0xcba5fb),this['keystrokes']['set']('arrowup',_0xcba5fb),this['keystrokes']['set']('arrowdown',_0xcba5fb);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x34b999,_0x21572e){const _0x6d5a45=new _0x2b8b73(this['locale']);return _0x6d5a45['children']=_0x6d5a45['createCollection'](),_0x6d5a45['children']['addMany'](_0x34b999),_0x6d5a45['setTemplate']({'tag':'div','attributes':{'aria-label':_0x21572e,'class':['ck','ck-multi-level-list-styles']},'children':_0x6d5a45['children']}),_0x6d5a45['children']['delegate']('execute')['to'](this),_0x6d5a45['focus']=function(){this['children']['first']['focus']();},_0x6d5a45['focusTracker']=new _0x29b3ed(),_0x6d5a45['keystrokes']=new _0x1054fb(),_0x6d5a45['render'](),_0x6d5a45['keystrokes']['listenTo'](_0x6d5a45['element']),_0x6d5a45;}['_addListPropertyViews'](_0x296a8c){const _0x13e0de=[];_0x296a8c['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x13e0de['push'](this['startIndexFieldView'])),_0x296a8c['styles']?(this['additionalPropertiesCollapsibleView']=new _0x5494c2(this['locale'],_0x13e0de),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x13e0de,'isEnabled',(..._0x49d0c7)=>_0x49d0c7['some'](_0x5aa353=>_0x5aa353)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x21f9d0,_0x461013,_0x4f5aa2)=>{_0x4f5aa2||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x13e0de);}['_createStartIndexField'](){const _0x32277b=new _0x5b317b(this['locale'],_0x4d9dd9);return _0x32277b['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x32277b['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x32277b['fieldView']['on']('input',()=>{const _0x435253=_0x32277b['fieldView']['element'],_0x5d6db4=_0x435253['valueAsNumber'];Number['isNaN'](_0x5d6db4)?_0x32277b['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x435253['checkValidity']()?this['fire']('listStart',{'startIndex':_0x5d6db4}):_0x32277b['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x32277b;}},K=class extends _0x285d89{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x59f2a1=this['editor'];_0x59f2a1['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x5b7463,parentCommandName:_0x416b52,buttonLabel:_0x2f1b36,buttonIcon:_0x2ccb5b,styleGridAriaLabel:_0x32c97f,styleDefinitions:_0x4064c0}){const _0x1cfa06=_0x5b7463['commands']['get'](_0x416b52),_0x42d474=_0x5b7463['config']['get']('list.properties')||{},_0x38e5d1=_0x5b7463['plugins']['has']('ListProperties'),_0x5984d3=_0x42d474['startIndex'];return _0x38e5d1&&_0x5984d3?_0x20c561=>{const _0x57cfc0=_0x279ec7(_0x20c561,_0x5e83cb),_0x31351a=_0x57cfc0['buttonView'];return _0x57cfc0['bind']('isEnabled')['to'](_0x1cfa06),_0x57cfc0['class']='ck-list-styles-dropdown',_0x31351a['on']('execute',()=>{_0x5b7463['execute'](_0x416b52),_0x5b7463['editing']['view']['focus']();}),_0x31351a['set']({'label':_0x2f1b36,'icon':_0x2ccb5b,'tooltip':!0x0,'isToggleable':!0x0}),_0x31351a['bind']('isOn')['to'](_0x1cfa06,'value',_0x47bd9f=>!!_0x47bd9f),_0x57cfc0['once']('change:isOpen',()=>{const _0x32bfde=function({editor:_0x4621db,dropdownView:_0x54bd91,styleDefinitions:_0x4243ba,styleGridAriaLabel:_0x30b689}){const _0x3f7b4c=_0x4621db['locale'],_0x32cc23=_0x4621db['config']['get']('list.properties'),_0x18b9f1=null;_0x32cc23['reversed']=!0x1,_0x4243ba['length']||(_0x32cc23['styles']=!0x1);const _0x5265e5=new V(_0x3f7b4c,{'styleGridAriaLabel':_0x30b689,'enabledProperties':_0x32cc23,'styleButtonViews':_0x18b9f1});if(_0x32cc23['startIndex']){const _0x173b2f=_0x4621db['commands']['get']('listStart');_0x5265e5['startIndexFieldView']['bind']('isEnabled')['to'](_0x173b2f),_0x5265e5['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x173b2f),_0x5265e5['on']('listStart',(_0x1343d2,_0x2aea18)=>_0x4621db['execute']('listStart',_0x2aea18));}return _0x5265e5['delegate']('execute')['to'](_0x54bd91),_0x5265e5;}({'editor':_0x5b7463,'dropdownView':_0x57cfc0,'parentCommandName':_0x416b52,'styleGridAriaLabel':_0x32c97f,'styleDefinitions':_0x4064c0});_0x57cfc0['panelView']['children']['add'](_0x32bfde);}),_0x57cfc0['on']('execute',()=>{_0x5b7463['editing']['view']['focus']();}),_0x57cfc0;}:_0x43dcbc=>{const _0x1efe79=new _0x307176(_0x43dcbc);return _0x1efe79['set']({'label':_0x2f1b36,'icon':_0x2ccb5b,'tooltip':!0x0,'isToggleable':!0x0}),_0x1efe79['bind']('isOn')['to'](_0x1cfa06,'value',_0x281317=>!!_0x281317),_0x1efe79['on']('execute',()=>{_0x5b7463['execute'](_0x416b52),_0x5b7463['editing']['view']['focus']();}),_0x1efe79;};}({'editor':_0x59f2a1,'parentCommandName':'multiLevelList','buttonLabel':A(_0x59f2a1['locale'],'Multi-level\x20List'),'buttonIcon':_0x584bc9,'styleGridAriaLabel':A(_0x59f2a1['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x59f2a1['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x3beb39=_0x59f2a1['commands']['get']('multiLevelList'),_0x4b522d=new _0x9c8d65(_0x59f2a1['locale']);return _0x4b522d['set']({'label':A(_0x59f2a1['locale'],'Multi-level\x20List'),'icon':_0x584bc9}),_0x4b522d['bind']('isEnabled')['to'](_0x3beb39),_0x4b522d['bind']('isOn')['to'](_0x3beb39,'value',_0x304ad8=>!!_0x304ad8),_0x4b522d['on']('execute',()=>{_0x59f2a1['execute']('multiLevelList'),_0x59f2a1['editing']['view']['focus']();}),_0x4b522d;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x9d0bd7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe2e577;for(const _0x178a56 in _0x9d0bd7){const _0x3b426f=_0x178a56,_0x2b9819=_0x9d0bd7[_0x3b426f];if('multiLevelListLicenseKeyValid'==_0x2b9819||'multiLevelListLicenseKeyInvalid'==_0x2b9819||'multiLevelListLicenseKeyExpired'==_0x2b9819||'multiLevelListLicenseKeyDomainLimit'==_0x2b9819||'multiLevelListLicenseKeyNotAllowed'==_0x2b9819||'multiLevelListLicenseKeyEvaluationLimit'==_0x2b9819||'multiLevelListLicenseKeyUsageLimit'==_0x2b9819){delete _0x9d0bd7[_0x3b426f],_0xe2e577=_0x2b9819,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0xe2e577&&_0x9d0bd7['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0xe2e577&&_0x9d0bd7['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0xe2e577&&_0x9d0bd7['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0xe2e577&&_0x9d0bd7['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0xe2e577&&_0x9d0bd7['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0xe2e577&&_0x9d0bd7['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x285d89{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 _0x405c65,Plugin as _0x18b1d9}from'@ckeditor/ckeditor5-core';import{Matcher as _0x8d4f2e,ViewUpcastWriter as _0x434136}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x40d3d6,_isFirstBlockOfListItem as _0x4a8cfc}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0x9dbbde,KeystrokeHandler as _0x26acb2,createElement as _0x7b1366,first as _0xc2f2e0,global as _0x2de86b,uid as _0x64c507}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x14ee73}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x4c60a5,CollapsibleView as _0x37dbfe,FocusCycler as _0x26a3e1,LabeledFieldView as _0x2c50af,MenuBarMenuListItemButtonView as _0x550761,SplitButtonView as _0x21252e,View as _0x389cb0,ViewCollection as _0x5958b6,addKeyboardHandlingForGrid as _0x38a631,createDropdown as _0x302790,createLabeledInputNumber as _0x4220e1}from'@ckeditor/ckeditor5-ui';var S=class extends _0x405c65{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x58d776,_0x3ae800,_0x1c6972){super(_0x58d776),this['defaultListMarkerStyle']=_0x3ae800,this['_listDefinitions']=_0x1c6972,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x284998={}){const _0x380b37=this['editor']['model'],_0x4a97c1=_0x284998['listMarkerStyle']||this['defaultListMarkerStyle'];_0x380b37['change'](()=>{const _0x534110=this['_getListTypeFromListMarkerStyle'](_0x4a97c1);if(!_0x534110)return;const _0x189ee7=_0x534110+'List';this['editor']['execute'](_0x189ee7,{'additionalAttributes':{'listMarkerStyle':_0x4a97c1}});});}['_getValue'](){const _0x5a3d90=_0xc2f2e0(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x5a3d90)?_0x5a3d90['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0xf4f9cb=this['editor'],_0x1252b3=_0xf4f9cb['commands']['get']('customNumberedList'),_0x3451f9=_0xf4f9cb['commands']['get']('customBulletedList');return _0x1252b3['isEnabled']||_0x3451f9['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x220494){const _0x3b6bc3=this['_listDefinitions']['find'](_0x3e1701=>_0x3e1701['listMarkerStyle']==_0x220494);return _0x3b6bc3?_0x3b6bc3['listType']:null;}},x=class extends _0x18b1d9{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x40d3d6];}constructor(_0x29bab1){super(_0x29bab1);const _0x1a1950=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x836d10=>_0x836d10+'.'}]},..._0x1a1950];}['init'](){const _0x4fa318=this['editor'],_0x55998d=_0x4fa318['model'],_0x3db27c=_0x4fa318['editing']['view'],_0x3da523=_0x4fa318['plugins']['get'](_0x40d3d6);_0x4fa318['commands']['add']('multiLevelList',new S(_0x4fa318,'legal',this['_listDefinitions'])),_0x55998d['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x55998d['schema']['addAttributeCheck']((_0x461f4d,_0x4b6925)=>{const _0x2bdf9d=_0x461f4d['last'];if('listMarker'==_0x4b6925||'listMarkerStyle'==_0x4b6925)return!(!_0x2bdf9d['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x2d3673=>_0x2d3673['listType']==_0x2bdf9d['getAttribute']('listType')))&&void 0x0;});for(const _0xe242ff of this['_listDefinitions'])_0x4fa318['conversion']['for']('upcast')['add'](_0x5d4f76=>{_0x5d4f76['on']('element:'+('customNumbered'==_0xe242ff['listType']?'ol':'ul'),_(_0xe242ff,_0x55998d['schema']),{'priority':'low'});}),_0x3da523['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x43ee2d,_0x460cfa,_0x28cd38){_0x460cfa==_0xe242ff['listMarkerStyle']?(_0x43ee2d['addClass'](['multi-level-list',_0xe242ff['className']],_0x28cd38),_0x43ee2d['setStyle']('list-style-type','none',_0x28cd38)):(_0x43ee2d['removeClass'](['multi-level-list',_0xe242ff['className']],_0x28cd38),_0x43ee2d['removeStyle']('list-style-type',_0x28cd38));}}),_0x3da523['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x546522,_0x402d88,{dataPipeline:_0x5f1949}){if(!_0x402d88['hasAttribute']('listMarker'))return null;if(_0x402d88['getAttribute']('listType')!=_0xe242ff['listType']||_0x402d88['getAttribute']('listMarkerStyle')!=_0xe242ff['listMarkerStyle'])return null;const _0x4f37c2=String(_0x402d88['getAttribute']('listMarker')),_0x90cc47=this['canInjectMarkerIntoElement'](_0x402d88);return _0x546522['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x5f1949&&{'contenteditable':'false','data-multi-level-list-marker':_0x4f37c2}},function(_0x329b38){const _0x36cebd=this['toDomElement'](_0x329b38);return _0x90cc47?(_0x36cebd['appendChild'](_0x7b1366(_0x329b38,'span',{},_0x5f1949?_0x329b38['createTextNode'](_0x4f37c2):[])),_0x36cebd['appendChild'](_0x329b38['createTextNode']('\u00a0'))):_0x5f1949&&_0x36cebd['appendChild'](_0x329b38['createTextNode'](_0x4f37c2)),_0x36cebd;});},'canInjectMarkerIntoElement':_0x226290=>_0x55998d['schema']['checkChild'](_0x226290,'$text')&&_0x55998d['schema']['checkChild'](_0x226290,'$inlineObject')&&!_0x55998d['schema']['isLimit'](_0x226290)&&_0x226290['getAttribute']('listType')==_0xe242ff['listType']&&_0x226290['getAttribute']('listMarkerStyle')==_0xe242ff['listMarkerStyle']});_0x4fa318['conversion']['for']('upcast')['add'](_0x23f84c=>{_0x23f84c['on']('element:span',function(_0x9e4b79){return(_0x357cf0,_0x5c8267,{writer:_0x4b4de0,consumable:_0x343b05})=>{const _0x4b836f=_0x5c8267['modelCursor'],_0x32edcb=_0x4b836f['parent'],_0x284271=_0x5c8267['viewItem'];if(_0x343b05['consume'](_0x284271,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x4b836f['isAtStart']&&_0x32edcb['hasAttribute']('listType')&&_0x284271['childCount']>0x0){const _0x3ae3ee=_0x9e4b79['createRangeIn'](_0x284271);let _0x788172='';for(const _0x5e0c17 of _0x3ae3ee['getItems']())_0x5e0c17['is']('$textProxy')?(_0x788172+=_0x5e0c17['data']['trim'](),_0x343b05['consume'](_0x5e0c17['textNode'])):_0x343b05['consume'](_0x5e0c17,{'name':!0x0});_0x4b4de0['setAttribute']('listMarker',_0x788172['trim'](),_0x32edcb);}};}(_0x3db27c));}),_0x3da523['on']('postFixer',(_0x416331,{listNodes:_0x51c871,writer:_0x2c5f74})=>{const _0xde5f5d=[];for(const {node:_0xf8b82c,previousNodeInList:_0x4ee326}of _0x51c871){const _0x5402c8=_0xf8b82c['getAttribute']('listType'),_0x3a9116=_0xf8b82c['getAttribute']('listMarkerStyle')||('customNumbered'==_0x5402c8?'legal':void 0x0),_0x317244=this['_listDefinitions']['find'](_0x1f5e75=>_0x1f5e75['listType']==_0x5402c8&&_0x1f5e75['listMarkerStyle']==_0x3a9116);if('customNumbered'!=_0x5402c8&&'customBulleted'!=_0x5402c8&&(_0xf8b82c['hasAttribute']('listMarker')&&(_0x2c5f74['removeAttribute']('listMarker',_0xf8b82c),_0x416331['return']=!0x0),_0xf8b82c['hasAttribute']('listMarkerStyle')&&(_0x2c5f74['removeAttribute']('listMarkerStyle',_0xf8b82c),_0x416331['return']=!0x0)),!_0x317244){'customBulleted'!=_0x5402c8||_0x3a9116||(_0x2c5f74['setAttribute']('listType','bulleted',_0xf8b82c),_0x416331['return']=!0x0);continue;}_0xf8b82c['hasAttribute']('listMarkerStyle')||(_0x2c5f74['setAttribute']('listMarkerStyle',_0x3a9116,_0xf8b82c),_0x416331['return']=!0x0);const _0x1b00ed=_0xf8b82c['getAttribute']('listIndent');if(_0x4ee326&&_0x4ee326['getAttribute']('listItemId')==_0xf8b82c['getAttribute']('listItemId'))continue;if(_0xde5f5d['length']=_0x1b00ed+0x1,_0x4fa318['config']['get']('list.enableSkipLevelLists')){for(let _0x33a716=0x0;_0x33a716<_0x1b00ed;_0x33a716++)void 0x0===_0xde5f5d[_0x33a716]&&(_0xde5f5d[_0x33a716]=0x1);}_0x4ee326||_0xde5f5d[_0x1b00ed]?_0x4ee326&&_0x4ee326['getAttribute']('listType')!=_0x317244['listType']?_0xde5f5d[_0x1b00ed]=0x1:_0xde5f5d[_0x1b00ed]++:_0xde5f5d[_0x1b00ed]=_0xf8b82c['getAttribute']('listStart')||0x1;const _0x3fb30d=E(_0x1b00ed,_0x317244,_0xde5f5d);_0xf8b82c['getAttribute']('listMarker')!=_0x3fb30d&&(_0x2c5f74['setAttribute']('listMarker',_0x3fb30d,_0xf8b82c),_0x416331['return']=!0x0);}}),_0x3da523['on']('checkElement',(_0x93c9b,{modelElement:_0x38ad1d,viewElement:_0x18d57f})=>{const _0x2c3bec=_0x38ad1d['getAttribute']('listType');if('customNumbered'!=_0x2c3bec&&'customBulleted'!=_0x2c3bec)return;if(_0x55998d['schema']['checkChild'](_0x38ad1d,'$text'))return;const _0x578df6=_0x4a8cfc(_0x38ad1d);let _0x219494=!0x1;const _0x406960=_0x3db27c['createPositionBefore'](_0x18d57f)['getWalker']({'direction':'backward'});for(const {item:_0xc16673}of _0x406960)if(_0xc16673['is']('element')){if(_0x4fa318['editing']['mapper']['toModelElement'](_0xc16673))break;if(_0xc16673['getCustomProperty']('listItemMarker')){_0x219494=!0x0;break;}}_0x219494!=_0x578df6&&(_0x93c9b['return']=!0x0,_0x93c9b['stop']());});const _0x376a8b=_0x4fa318['editing']['view']['document'];this['listenTo'](_0x376a8b,'clipboardOutput',(_0x5f5a81,_0x245a8f)=>{const _0x1b6d2e=new _0x8d4f2e({'name':'span','classes':'multi-level-list__marker'}),_0x422658=new _0x8d4f2e({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x590a9f=new _0x434136(_0x245a8f['content']['document']),_0x566392=[];for(const _0x123358 of _0x590a9f['createRangeIn'](_0x245a8f['content'])['getItems']())_0x123358['is']('element')&&_0x1b6d2e['match'](_0x123358)&&_0x566392['push'](_0x123358),_0x123358['is']('element')&&_0x422658['match'](_0x123358)&&_0x590a9f['removeStyle']('list-style-type',_0x123358);for(const _0x2f031a of _0x566392)_0x590a9f['remove'](_0x2f031a);});}['afterInit'](){!async function(_0x2e1d98){const _0x143344='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x1c0d53=0x78e58,_0x481397=window['Date']['now'](),_0x28204e=_0x2e1d98['editor'],_0x5c8417=new window['Promise'](_0x2e1605=>{_0x28204e['once']('ready',_0x2e1605);}),_0x3f9eca={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x422513=_0x28204e['config']['get']('licenseKey');async function _0xf3b11c(){let _0x490019,_0x5944b2=null,_0x37cf17=null;try{return'GPL'==_0x422513?'NotAllowed':(_0x490019=_0x4206cb(),_0x490019?(_0x490019['usageEndpoint']&&(_0x37cf17=_0x291a4e(_0x490019['usageEndpoint'],_0x490019['jti'])),await _0x154cdf()?_0x14191b()?_0x250ea5()?'Expired':_0x367c05()?('evaluation'==_0x490019['licenseType']&&(_0x5944b2=_0x5706dc('EvaluationLimit')),await _0x3d2e6a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x250ea5(){const _0x588204=['evaluation','trial']['includes'](_0x490019['licenseType'])?_0x481397/0x3e8:0xe10*_0x1c0d53;return _0x490019['exp']<_0x588204;}function _0x14191b(){const _0x18d257=_0x490019['features'];return!!_0x18d257&&(!!_0x18d257['includes']('*')||!!_0x18d257['includes']('MLL'));}function _0x367c05(){const _0x2c4123=_0x490019['licensedHosts'];if(!_0x2c4123||0x0==_0x2c4123['length'])return!0x0;const {hostname:_0x1deddf}=new URL(window['location']['href']);if(_0x2c4123['includes'](_0x1deddf))return!0x0;const _0x1f704f=_0x1deddf['split']('.');return _0x2c4123['filter'](_0xd635c9=>_0xd635c9['includes']('*'))['map'](_0x336dcb=>_0x336dcb['split']('.'))['filter'](_0x45afa9=>_0x45afa9['length']<=_0x1f704f['length'])['map'](_0x376e20=>Array(_0x1f704f['length']-_0x376e20['length'])['fill']('*'===_0x376e20[0x0]?'*':'')['concat'](_0x376e20))['some'](_0x25619b=>_0x1f704f['every']((_0x42abc1,_0x5688af)=>_0x25619b[_0x5688af]===_0x42abc1||'*'===_0x25619b[_0x5688af]));}function _0x3d2e6a(){return _0x5944b2&&_0x37cf17?new window['Promise']((_0x10a801,_0x45ad6d)=>{_0x5944b2['then'](_0x10a801,_0x45ad6d),_0x37cf17['then'](_0x555dd3=>{'Valid'!=_0x555dd3&&_0x10a801(_0x555dd3);},_0x45ad6d);}):_0x5944b2||_0x37cf17||'Valid';}}function _0x291a4e(_0xa2474e,_0x1116df){return new window['Promise'](_0x5c3957=>{if(_0x832ec5())return _0x5c3957('Valid');_0x28d40c(),_0x28204e['decorate']('_sendUsageRequest');let _0x502c9c=!0x1;const _0x151e84=_0x64c507();function _0x3d51e4(_0x1eba47){return!!_0x1eba47&&('object'==typeof _0x1eba47||'function'==typeof _0x1eba47)&&'function'==typeof _0x1eba47['then']&&'function'==typeof _0x1eba47['catch'];}function _0x52d7a7(_0x9b676a){_0x1e815c(_0x9b676a)['then'](_0x1b16cd=>_0x1b16cd&&'ok'==_0x1b16cd['status']?_0x43cd4b(_0x278d3e(_0x151e84+_0x1116df))!=_0x1b16cd['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2dfbf7=>(_0x13206c(),_0x2dfbf7),()=>{const _0x5b1b2a=_0xfd0c2a();return null==_0x5b1b2a?(_0x13206c(),'Valid'):_0x481397-_0x5b1b2a>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5c3957)['catch'](()=>{_0x5c3957('UsageLimit');});const _0x1e7782=0x36ee80;function _0x13206c(){const _0x3eacc8='llct-'+_0x43cd4b(_0x278d3e(_0xa2474e)),_0x3aaf04=_0x2a542f(_0x43cd4b(window['Math']['ceil'](_0x481397/_0x1e7782)));window['localStorage']['setItem'](_0x3eacc8,_0x3aaf04);}function _0xfd0c2a(){const _0x335456='llct-'+_0x43cd4b(_0x278d3e(_0xa2474e)),_0x2e7811=window['localStorage']['getItem'](_0x335456);return _0x2e7811?window['parseInt'](_0x2a542f(_0x2e7811),0x10)*_0x1e7782:null;}function _0x1e815c(_0x174231){return new window['Promise']((_0x2befa4,_0x41f3ca)=>{_0x174231['then'](_0x2befa4,_0x41f3ca),window['setTimeout'](_0x41f3ca,0x1d4c0);});}}_0x28204e['on']('_sendUsageRequest',(_0x23feb3,_0x4ffb24)=>{if(_0x4ffb24[0x0]!=_0xa2474e)return _0x5c3957('UsageLimit');_0x4ffb24[0x1]={..._0x4ffb24[0x1],'requestId':_0x151e84};},{'priority':'high'}),_0x28204e['on']('_sendUsageRequest',_0x537ae3=>{_0x3d51e4(_0x537ae3['return'])&&(_0x502c9c=!0x0,_0x52d7a7(_0x537ae3['return']));},{'priority':'low'}),_0x5c8417['then'](()=>{_0x502c9c||_0x5c3957('UsageLimit');});});function _0x832ec5(){return'auto'==_0x28204e['editing']['view']['_overlayModeHint'];}function _0x28d40c(){_0x28204e['editing']['view']['_overlayModeHint']='auto';}}function _0x5706dc(_0x368901){const _0xa4647f=[new window['Promise'](_0x3919ef=>setTimeout(_0x3919ef,0x93ecc)),_0x5c8417['then'](()=>new window['Promise'](_0x398568=>{let _0x1698a6=0x0;_0x28204e['model']['on']('applyOperation',(_0x50fb26,_0x4cdced)=>{_0x4cdced[0x0]['isDocumentOperation']&&_0x1698a6++,0x5e8==_0x1698a6&&(_0x398568(),_0x50fb26['off']());});}))];return window['Promise']['race'](_0xa4647f)['then'](()=>_0x368901);}async function _0x10fc71(){await _0x5c8417,_0x28204e['model']['change']=_0x497b27,_0x28204e['model']['enqueueChange']=_0x497b27,_0x28204e['enableReadOnlyMode']('model');}function _0x575a52(_0x40bc70){const _0x40f8e9=_0x339c83();_0x28204e[_0x40f8e9]='multiLevelListLicenseKey'+_0x40bc70,'Valid'!=_0x40bc70&&_0x10fc71();}function _0x339c83(){const _0x3d6a79=window['String'](window['performance']['now']())['replace']('.','');let _0x427c9d='u';for(let _0x21093c=0x0;_0x21093c<_0x3d6a79['length'];_0x21093c+=0x2){let _0x24d7d7=window['parseInt'](_0x3d6a79['substring'](_0x21093c,_0x21093c+0x2));_0x24d7d7>=0x3e&&(_0x24d7d7-=0x3e),_0x427c9d+=_0x143344[_0x24d7d7];}return _0x427c9d;}function _0x4206cb(){const _0x5589b8=_0x422513['split']('.');if(0x3!=_0x5589b8['length'])return null;return _0x350595(_0x5589b8[0x1]);function _0x350595(_0x44f5df){const _0xc3f819=_0x2580ba(_0x44f5df);return _0xc3f819&&_0x4a49f9()?_0xc3f819:null;function _0x4a49f9(){const _0x342535=_0xc3f819['jti'],_0x1e2af2=window['parseInt'](_0x342535['substring'](_0x342535['length']-0x8),0x10),_0x78397e={..._0xc3f819,'jti':_0x342535['substring'](0x0,_0x342535['length']-0x8)};return delete _0x78397e['vc'],_0x278d3e(_0x78397e)==_0x1e2af2;}}}async function _0x154cdf(){let _0x12ca67=!0x0;try{const [_0xa65af3,_0x238d19,_0x47b4f3]=_0x422513['split']('.');return _0x2a9b60(_0xa65af3),await _0x4669af(_0xa65af3,_0x238d19,_0x47b4f3),_0x12ca67;}catch{return!0x1;}function _0x2a9b60(_0x535b65){const _0x59932b=_0x2580ba(_0x535b65);_0x59932b&&'ES256'==_0x59932b['alg']||(_0x12ca67=!0x1);}async function _0x4669af(_0x589b62,_0x13ec88,_0x1e4a41){const _0x10ecbc=window['Uint8Array']['from'](_0x287aae(_0x1e4a41),_0x5654b0=>_0x5654b0['charCodeAt'](0x0)),_0x11a8e2=new window['TextEncoder']()['encode'](_0x589b62+'.'+_0x13ec88),_0x5623c2=window['crypto']['subtle'];if(!_0x5623c2)return;const _0x54ce94=await _0x5623c2['importKey']('jwk',_0x3f9eca,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5623c2['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x54ce94,_0x10ecbc,_0x11a8e2)||(_0x12ca67=!0x1);}}function _0x2580ba(_0x4b588f){return _0x4b588f['startsWith']('ey')?JSON['parse'](_0x287aae(_0x4b588f)):null;}function _0x287aae(_0x14cd8c){return window['atob'](_0x14cd8c['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x278d3e(_0x679e90){let _0x2155b4=0x1505;function _0x27aaba(_0x554247){for(let _0x2684ca=0x0;_0x2684ca<_0x554247['length'];_0x2684ca++){const _0x2e2d56=_0x554247['charCodeAt'](_0x2684ca);_0x2155b4=(_0x2155b4<<0x5)+_0x2155b4+_0x2e2d56,_0x2155b4&=_0x2155b4;}}function _0x4c1058(_0x52934b){Array['isArray'](_0x52934b)?_0x52934b['forEach'](_0x4c1058):_0x52934b&&'object'==typeof _0x52934b?Object['entries'](_0x52934b)['sort']()['forEach'](([_0x446d57,_0x6dd622])=>{_0x27aaba(_0x446d57),_0x4c1058(_0x6dd622);}):_0x27aaba(window['String'](_0x52934b));}return _0x4c1058(_0x679e90),_0x2155b4>>>0x0;}function _0x43cd4b(_0x3928cc){return _0x3928cc['toString'](0x10)['padStart'](0x8,'0');}function _0x2a542f(_0x5511d3){return _0x5511d3['split']('')['reverse']()['join']('');}function _0x497b27(){}_0x575a52(await _0xf3b11c());}(this);}};function E(_0x3ccabc,_0x4dcc34,_0x75ca9a){let _0x294eac=_0x4dcc34['listMarkers'][_0x3ccabc%_0x4dcc34['listMarkers']['length']];if(void 0x0===_0x294eac['showMarkerPath']||_0x294eac['showMarkerPath'])return _0x75ca9a['slice'](0x0,_0x3ccabc+0x1)['map']((_0x1d912f,_0xec1d69)=>(_0x294eac=_0x4dcc34['listMarkers'][_0xec1d69%_0x4dcc34['listMarkers']['length']],N(_0x294eac['marker'],_0x1d912f)))['join']('');{const _0x559c18=_0x75ca9a[_0x75ca9a['length']-0x1];return N(_0x294eac['marker'],_0x559c18);}}function N(_0x5ef16a,_0x2966ac){return'function'==typeof _0x5ef16a?_0x5ef16a(_0x2966ac):_0x5ef16a;}function _(_0x4293e4,_0x4fa269){return(_0x5ebd45,_0x1949eb,_0x133bef)=>{const _0xca71ba=_0x1949eb['viewItem'];if(_0x1949eb['modelRange']||Object['assign'](_0x1949eb,_0x133bef['convertChildren'](_0x1949eb['viewItem'],_0x1949eb['modelCursor'])),!_0x133bef['consumable']['test'](_0xca71ba,{'classes':_0x4293e4['className']}))return;const _0x1278b3=Array['from'](_0x1949eb['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0xd26f1e=>_0x4fa269['checkAttribute'](_0xd26f1e,'listItemId'));if(!_0x1278b3['length'])return;_0x133bef['consumable']['consume'](_0xca71ba,{'classes':_0x4293e4['className']}),_0x133bef['consumable']['consume'](_0xca71ba,{'classes':'multi-level-list'}),_0x133bef['consumable']['consume'](_0xca71ba,{'styles':'list-style-type'});const _0x2b9a37=_0x1278b3[0x0]['getAttribute']('listIndent');for(const _0x4a8be6 of _0x1278b3)_0x4a8be6['getAttribute']('listIndent')==_0x2b9a37&&(_0x133bef['writer']['setAttribute']('listType',_0x4293e4['listType'],_0x4a8be6),_0x133bef['writer']['setAttribute']('listMarkerStyle',_0x4293e4['listMarkerStyle'],_0x4a8be6));};}function A(_0x2cc85b,_0x43a277){const _0x50dbda=_0x2cc85b['t'],t=_0x2cc85b['t'];switch(_0x43a277){case'Start\x20at':return _0x50dbda('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x50dbda('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x50dbda('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x50dbda('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 _0x43a277;}}var V=class extends _0x389cb0{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new _0x9dbbde();['keystrokes']=new _0x26acb2();['focusables']=new _0x5958b6();['focusCycler'];constructor(_0x49dbc2,{enabledProperties:_0x5d63c8,styleButtonViews:_0x25f43d,styleGridAriaLabel:_0x3dc70a}){super(_0x49dbc2);const _0xdb03e5=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x26a3e1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x5d63c8['styles']?(this['stylesView']=this['_createStylesView'](_0x25f43d,_0x3dc70a),this['children']['add'](this['stylesView'])):_0xdb03e5['push']('ck-multi-level-list-properties_without-styles'),_0x5d63c8['startIndex']&&(this['_addListPropertyViews'](_0x5d63c8),_0xdb03e5['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0xdb03e5},'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 _0x5a58e6 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5a58e6['element']);_0x38a631({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x2de86b['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 _0x294c82=_0x10fc09=>_0x10fc09['stopPropagation']();this['keystrokes']['set']('arrowright',_0x294c82),this['keystrokes']['set']('arrowleft',_0x294c82),this['keystrokes']['set']('arrowup',_0x294c82),this['keystrokes']['set']('arrowdown',_0x294c82);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x3a687d,_0x2ed581){const _0x3c53e7=new _0x389cb0(this['locale']);return _0x3c53e7['children']=_0x3c53e7['createCollection'](),_0x3c53e7['children']['addMany'](_0x3a687d),_0x3c53e7['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2ed581,'class':['ck','ck-multi-level-list-styles']},'children':_0x3c53e7['children']}),_0x3c53e7['children']['delegate']('execute')['to'](this),_0x3c53e7['focus']=function(){this['children']['first']['focus']();},_0x3c53e7['focusTracker']=new _0x9dbbde(),_0x3c53e7['keystrokes']=new _0x26acb2(),_0x3c53e7['render'](),_0x3c53e7['keystrokes']['listenTo'](_0x3c53e7['element']),_0x3c53e7;}['_addListPropertyViews'](_0x3cf116){const _0x4ddefd=[];_0x3cf116['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x4ddefd['push'](this['startIndexFieldView'])),_0x3cf116['styles']?(this['additionalPropertiesCollapsibleView']=new _0x37dbfe(this['locale'],_0x4ddefd),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x4ddefd,'isEnabled',(..._0x1b2e34)=>_0x1b2e34['some'](_0x1d46d6=>_0x1d46d6)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x5efa4c,_0x2298ea,_0x9aaba9)=>{_0x9aaba9||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x4ddefd);}['_createStartIndexField'](){const _0xd823c0=new _0x2c50af(this['locale'],_0x4220e1);return _0xd823c0['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0xd823c0['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xd823c0['fieldView']['on']('input',()=>{const _0x4c1cc6=_0xd823c0['fieldView']['element'],_0x339308=_0x4c1cc6['valueAsNumber'];Number['isNaN'](_0x339308)?_0xd823c0['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x4c1cc6['checkValidity']()?this['fire']('listStart',{'startIndex':_0x339308}):_0xd823c0['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0xd823c0;}},K=class extends _0x18b1d9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x299be4=this['editor'];_0x299be4['ui']['componentFactory']['add']('multiLevelList',function({editor:_0xfdb7a3,parentCommandName:_0xa98cbd,buttonLabel:_0x5fb18b,buttonIcon:_0x25a86b,styleGridAriaLabel:_0x3acc9b,styleDefinitions:_0x87a1f8}){const _0x4899aa=_0xfdb7a3['commands']['get'](_0xa98cbd),_0x28acb0=_0xfdb7a3['config']['get']('list.properties')||{},_0x18a279=_0xfdb7a3['plugins']['has']('ListProperties'),_0x2b9f87=_0x28acb0['startIndex'];return _0x18a279&&_0x2b9f87?_0x4aa149=>{const _0x3c8113=_0x302790(_0x4aa149,_0x21252e),_0x63ba06=_0x3c8113['buttonView'];return _0x3c8113['bind']('isEnabled')['to'](_0x4899aa),_0x3c8113['class']='ck-list-styles-dropdown',_0x63ba06['on']('execute',()=>{_0xfdb7a3['execute'](_0xa98cbd),_0xfdb7a3['editing']['view']['focus']();}),_0x63ba06['set']({'label':_0x5fb18b,'icon':_0x25a86b,'tooltip':!0x0,'isToggleable':!0x0}),_0x63ba06['bind']('isOn')['to'](_0x4899aa,'value',_0x4922bf=>!!_0x4922bf),_0x3c8113['once']('change:isOpen',()=>{const _0x3d5ebe=function({editor:_0x1ccb28,dropdownView:_0x101adf,styleDefinitions:_0x425f9b,styleGridAriaLabel:_0x407bba}){const _0x12905f=_0x1ccb28['locale'],_0x5618f3=_0x1ccb28['config']['get']('list.properties'),_0x5a8462=null;_0x5618f3['reversed']=!0x1,_0x425f9b['length']||(_0x5618f3['styles']=!0x1);const _0x5f43ba=new V(_0x12905f,{'styleGridAriaLabel':_0x407bba,'enabledProperties':_0x5618f3,'styleButtonViews':_0x5a8462});if(_0x5618f3['startIndex']){const _0xe4779f=_0x1ccb28['commands']['get']('listStart');_0x5f43ba['startIndexFieldView']['bind']('isEnabled')['to'](_0xe4779f),_0x5f43ba['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xe4779f),_0x5f43ba['on']('listStart',(_0x430693,_0x29e219)=>_0x1ccb28['execute']('listStart',_0x29e219));}return _0x5f43ba['delegate']('execute')['to'](_0x101adf),_0x5f43ba;}({'editor':_0xfdb7a3,'dropdownView':_0x3c8113,'parentCommandName':_0xa98cbd,'styleGridAriaLabel':_0x3acc9b,'styleDefinitions':_0x87a1f8});_0x3c8113['panelView']['children']['add'](_0x3d5ebe);}),_0x3c8113['on']('execute',()=>{_0xfdb7a3['editing']['view']['focus']();}),_0x3c8113;}:_0x5ddb3d=>{const _0x8d6868=new _0x4c60a5(_0x5ddb3d);return _0x8d6868['set']({'label':_0x5fb18b,'icon':_0x25a86b,'tooltip':!0x0,'isToggleable':!0x0}),_0x8d6868['bind']('isOn')['to'](_0x4899aa,'value',_0x522cad=>!!_0x522cad),_0x8d6868['on']('execute',()=>{_0xfdb7a3['execute'](_0xa98cbd),_0xfdb7a3['editing']['view']['focus']();}),_0x8d6868;};}({'editor':_0x299be4,'parentCommandName':'multiLevelList','buttonLabel':A(_0x299be4['locale'],'Multi-level\x20List'),'buttonIcon':_0x14ee73,'styleGridAriaLabel':A(_0x299be4['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x299be4['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x1d00e6=_0x299be4['commands']['get']('multiLevelList'),_0x52d5a8=new _0x550761(_0x299be4['locale']);return _0x52d5a8['set']({'label':A(_0x299be4['locale'],'Multi-level\x20List'),'icon':_0x14ee73}),_0x52d5a8['bind']('isEnabled')['to'](_0x1d00e6),_0x52d5a8['bind']('isOn')['to'](_0x1d00e6,'value',_0x298f94=>!!_0x298f94),_0x52d5a8['on']('execute',()=>{_0x299be4['execute']('multiLevelList'),_0x299be4['editing']['view']['focus']();}),_0x52d5a8;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ab557=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3f47e4;for(const _0x340326 in _0x2ab557){const _0x7e8d4a=_0x340326,_0x4eaaf9=_0x2ab557[_0x7e8d4a];if('multiLevelListLicenseKeyValid'==_0x4eaaf9||'multiLevelListLicenseKeyInvalid'==_0x4eaaf9||'multiLevelListLicenseKeyExpired'==_0x4eaaf9||'multiLevelListLicenseKeyDomainLimit'==_0x4eaaf9||'multiLevelListLicenseKeyNotAllowed'==_0x4eaaf9||'multiLevelListLicenseKeyEvaluationLimit'==_0x4eaaf9||'multiLevelListLicenseKeyUsageLimit'==_0x4eaaf9){delete _0x2ab557[_0x7e8d4a],_0x3f47e4=_0x4eaaf9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x3f47e4&&_0x2ab557['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x3f47e4&&_0x2ab557['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x3f47e4&&_0x2ab557['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x3f47e4&&_0x2ab557['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x3f47e4&&_0x2ab557['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x3f47e4&&_0x2ab557['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x18b1d9{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.6",
|
|
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.6",
|
|
36
|
+
"@ckeditor/ckeditor5-core": "48.3.0-alpha.6",
|
|
37
|
+
"@ckeditor/ckeditor5-engine": "48.3.0-alpha.6",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "48.3.0-alpha.6",
|
|
39
|
+
"@ckeditor/ckeditor5-list": "48.3.0-alpha.6",
|
|
40
|
+
"@ckeditor/ckeditor5-ui": "48.3.0-alpha.6",
|
|
41
|
+
"@ckeditor/ckeditor5-utils": "48.3.0-alpha.6"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist",
|