@ckeditor/ckeditor5-list-multi-level 48.4.0-alpha.4 → 48.4.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _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};
|
|
23
|
+
import{Command as _0x5de99a,Plugin as _0x52e877}from'@ckeditor/ckeditor5-core';import{Matcher as _0x296baf,ViewUpcastWriter as _0x1f1f24}from'@ckeditor/ckeditor5-engine';import{ListEditing as _0x5c03ea,_isFirstBlockOfListItem as _0x1ef445}from'@ckeditor/ckeditor5-list';import{FocusTracker as _0x2d44f5,KeystrokeHandler as _0x2269b8,createElement as _0x2bd49a,first as _0x332ca7,global as _0x50058d,uid as _0x2628a3}from'@ckeditor/ckeditor5-utils';import{IconMultiLevelList as _0x4fe93f}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0xe0cfe0,CollapsibleView as _0x29f2c0,FocusCycler as _0x34875d,LabeledFieldView as _0x235a67,MenuBarMenuListItemButtonView as _0x118fda,SplitButtonView as _0x4f3280,View as _0xa61106,ViewCollection as _0x34f405,addKeyboardHandlingForGrid as _0x21d5ce,createDropdown as _0x452086,createLabeledInputNumber as _0x58b718}from'@ckeditor/ckeditor5-ui';var S=class extends _0x5de99a{defaultListMarkerStyle;_listDefinitions;_listUtils;constructor(_0x5485b1,_0x14eaed,_0x5e7e29){super(_0x5485b1),this['defaultListMarkerStyle']=_0x14eaed,this['_listDefinitions']=_0x5e7e29,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}execute(_0x195121={}){const _0x2609e9=this['editor']['model'],_0x51c1dd=_0x195121['listMarkerStyle']||this['defaultListMarkerStyle'];_0x2609e9['change'](()=>{const _0x5ec6b4=this['_getListTypeFromListMarkerStyle'](_0x51c1dd);if(!_0x5ec6b4)return;const _0x7f01b9=_0x5ec6b4+'List';this['editor']['execute'](_0x7f01b9,{'additionalAttributes':{'listMarkerStyle':_0x51c1dd}});});}_getValue(){const _0x208c5a=_0x332ca7(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x208c5a)?_0x208c5a['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x3002dd=this['editor'],_0x375e58=_0x3002dd['commands']['get']('customNumberedList'),_0x309476=_0x3002dd['commands']['get']('customBulletedList');return _0x375e58['isEnabled']||_0x309476['isEnabled'];}_getListTypeFromListMarkerStyle(_0xe473c0){const _0x1b2730=this['_listDefinitions']['find'](_0xeaefc5=>_0xeaefc5['listMarkerStyle']==_0xe473c0);return _0x1b2730?_0x1b2730['listType']:null;}},x=class extends _0x52e877{_listDefinitions;static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5c03ea];}constructor(_0x44cc0c){super(_0x44cc0c);const _0x24fb95=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x328f05=>_0x328f05+'.'}]},..._0x24fb95];}init(){const _0x4e54f9=this['editor'],_0x558c56=_0x4e54f9['model'],_0x4fcd66=_0x4e54f9['editing']['view'],_0x40ed36=_0x4e54f9['plugins']['get'](_0x5c03ea);_0x4e54f9['commands']['add']('multiLevelList',new S(_0x4e54f9,'legal',this['_listDefinitions'])),_0x558c56['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x558c56['schema']['addAttributeCheck']((_0xd3f3a,_0x25821c)=>{const _0x1e0e2d=_0xd3f3a['last'];if('listMarker'==_0x25821c||'listMarkerStyle'==_0x25821c)return!(!_0x1e0e2d['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x2c4b92=>_0x2c4b92['listType']==_0x1e0e2d['getAttribute']('listType')))&&void 0x0;});for(const _0x2a81fd of this['_listDefinitions'])_0x4e54f9['conversion']['for']('upcast')['add'](_0x559fda=>{_0x559fda['on']('element:'+('customNumbered'==_0x2a81fd['listType']?'ol':'ul'),_(_0x2a81fd,_0x558c56['schema']),{'priority':'low'});}),_0x40ed36['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x417324,_0x1d3e6e,_0x3aa7ed){_0x1d3e6e==_0x2a81fd['listMarkerStyle']?(_0x417324['addClass'](['multi-level-list',_0x2a81fd['className']],_0x3aa7ed),_0x417324['setStyle']('list-style-type','none',_0x3aa7ed)):(_0x417324['removeClass'](['multi-level-list',_0x2a81fd['className']],_0x3aa7ed),_0x417324['removeStyle']('list-style-type',_0x3aa7ed));}}),_0x40ed36['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x505fc0,_0x1dc6d0,{dataPipeline:_0x46b02d}){if(!_0x1dc6d0['hasAttribute']('listMarker'))return null;if(_0x1dc6d0['getAttribute']('listType')!=_0x2a81fd['listType']||_0x1dc6d0['getAttribute']('listMarkerStyle')!=_0x2a81fd['listMarkerStyle'])return null;const _0x231a2d=String(_0x1dc6d0['getAttribute']('listMarker')),_0x3d11b4=this['canInjectMarkerIntoElement'](_0x1dc6d0);return _0x505fc0['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x46b02d&&{'contenteditable':'false','data-multi-level-list-marker':_0x231a2d}},function(_0x461580){const _0x3b957b=this['toDomElement'](_0x461580);return _0x3d11b4?(_0x3b957b['appendChild'](_0x2bd49a(_0x461580,'span',{},_0x46b02d?_0x461580['createTextNode'](_0x231a2d):[])),_0x3b957b['appendChild'](_0x461580['createTextNode']('\u00a0'))):_0x46b02d&&_0x3b957b['appendChild'](_0x461580['createTextNode'](_0x231a2d)),_0x3b957b;});},'canInjectMarkerIntoElement':_0x2f33d9=>_0x558c56['schema']['checkChild'](_0x2f33d9,'$text')&&_0x558c56['schema']['checkChild'](_0x2f33d9,'$inlineObject')&&!_0x558c56['schema']['isLimit'](_0x2f33d9)&&_0x2f33d9['getAttribute']('listType')==_0x2a81fd['listType']&&_0x2f33d9['getAttribute']('listMarkerStyle')==_0x2a81fd['listMarkerStyle']});_0x4e54f9['conversion']['for']('upcast')['add'](_0x546c98=>{_0x546c98['on']('element:span',function(_0x4e4402){return(_0x414eb6,_0x59805d,{writer:_0x31b048,consumable:_0x1c6dc6})=>{const _0x4c0e16=_0x59805d['modelCursor'],_0x2d0a7f=_0x4c0e16['parent'],_0x19f821=_0x59805d['viewItem'];if(_0x1c6dc6['consume'](_0x19f821,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x4c0e16['isAtStart']&&_0x2d0a7f['hasAttribute']('listType')&&_0x19f821['childCount']>0x0){const _0x365947=_0x4e4402['createRangeIn'](_0x19f821);let _0x575786='';for(const _0x904133 of _0x365947['getItems']())_0x904133['is']('$textProxy')?(_0x575786+=_0x904133['data']['trim'](),_0x1c6dc6['consume'](_0x904133['textNode'])):_0x1c6dc6['consume'](_0x904133,{'name':!0x0});_0x31b048['setAttribute']('listMarker',_0x575786['trim'](),_0x2d0a7f);}};}(_0x4fcd66));}),_0x40ed36['on']('postFixer',(_0xa609a,{listNodes:_0xc5d6ba,writer:_0x516950})=>{const _0x3c342b=[];for(const {node:_0x141c0d,previousNodeInList:_0x5318f2}of _0xc5d6ba){const _0x484de7=_0x141c0d['getAttribute']('listType'),_0x39da0f=_0x141c0d['getAttribute']('listMarkerStyle')||('customNumbered'==_0x484de7?'legal':void 0x0),_0x35e5b9=this['_listDefinitions']['find'](_0x2b2c45=>_0x2b2c45['listType']==_0x484de7&&_0x2b2c45['listMarkerStyle']==_0x39da0f);if('customNumbered'!=_0x484de7&&'customBulleted'!=_0x484de7&&(_0x141c0d['hasAttribute']('listMarker')&&(_0x516950['removeAttribute']('listMarker',_0x141c0d),_0xa609a['return']=!0x0),_0x141c0d['hasAttribute']('listMarkerStyle')&&(_0x516950['removeAttribute']('listMarkerStyle',_0x141c0d),_0xa609a['return']=!0x0)),!_0x35e5b9){'customBulleted'!=_0x484de7||_0x39da0f||(_0x516950['setAttribute']('listType','bulleted',_0x141c0d),_0xa609a['return']=!0x0);continue;}_0x141c0d['hasAttribute']('listMarkerStyle')||(_0x516950['setAttribute']('listMarkerStyle',_0x39da0f,_0x141c0d),_0xa609a['return']=!0x0);const _0x467268=_0x141c0d['getAttribute']('listIndent');if(_0x5318f2&&_0x5318f2['getAttribute']('listItemId')==_0x141c0d['getAttribute']('listItemId'))continue;if(_0x3c342b['length']=_0x467268+0x1,_0x4e54f9['config']['get']('list.enableSkipLevelLists')){for(let _0x163e76=0x0;_0x163e76<_0x467268;_0x163e76++)void 0x0===_0x3c342b[_0x163e76]&&(_0x3c342b[_0x163e76]=0x1);}_0x5318f2||_0x3c342b[_0x467268]?_0x5318f2&&_0x5318f2['getAttribute']('listType')!=_0x35e5b9['listType']?_0x3c342b[_0x467268]=0x1:_0x3c342b[_0x467268]++:_0x3c342b[_0x467268]=_0x141c0d['getAttribute']('listStart')||0x1;const _0x301b98=E(_0x467268,_0x35e5b9,_0x3c342b);_0x141c0d['getAttribute']('listMarker')!=_0x301b98&&(_0x516950['setAttribute']('listMarker',_0x301b98,_0x141c0d),_0xa609a['return']=!0x0);}}),_0x40ed36['on']('checkElement',(_0xa0a14a,{modelElement:_0x55a2de,viewElement:_0xf9e5e3})=>{const _0x293fe3=_0x55a2de['getAttribute']('listType');if('customNumbered'!=_0x293fe3&&'customBulleted'!=_0x293fe3)return;if(_0x558c56['schema']['checkChild'](_0x55a2de,'$text'))return;const _0x59c968=_0x1ef445(_0x55a2de);let _0x5b47b8=!0x1;const _0x2ddc78=_0x4fcd66['createPositionBefore'](_0xf9e5e3)['getWalker']({'direction':'backward'});for(const {item:_0x4bc5cf}of _0x2ddc78)if(_0x4bc5cf['is']('element')){if(_0x4e54f9['editing']['mapper']['toModelElement'](_0x4bc5cf))break;if(_0x4bc5cf['getCustomProperty']('listItemMarker')){_0x5b47b8=!0x0;break;}}_0x5b47b8!=_0x59c968&&(_0xa0a14a['return']=!0x0,_0xa0a14a['stop']());});const _0x142345=_0x4e54f9['editing']['view']['document'];this['listenTo'](_0x142345,'clipboardOutput',(_0x26f422,_0x571039)=>{const _0x191cb9=new _0x296baf({'name':'span','classes':'multi-level-list__marker'}),_0x18c52a=new _0x296baf({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x433003=new _0x1f1f24(_0x571039['content']['document']),_0x1b4b3e=[];for(const _0x2f9e15 of _0x433003['createRangeIn'](_0x571039['content'])['getItems']())_0x2f9e15['is']('element')&&_0x191cb9['match'](_0x2f9e15)&&_0x1b4b3e['push'](_0x2f9e15),_0x2f9e15['is']('element')&&_0x18c52a['match'](_0x2f9e15)&&_0x433003['removeStyle']('list-style-type',_0x2f9e15);for(const _0x3077c4 of _0x1b4b3e)_0x433003['remove'](_0x3077c4);});}afterInit(){!async function(_0x192cc1){const _0x4f9f81='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x538c22=0x791a0,_0x5c57b0=window['Date']['now'](),_0x32bbfa=_0x192cc1['editor'],_0x341687=new window['Promise'](_0x1617e0=>{_0x32bbfa['once']('ready',_0x1617e0);}),_0x4fc82c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1bfd73=_0x32bbfa['config']['get']('licenseKey');async function _0x43e4c9(){let _0x331fba,_0x1fd382=null,_0xa3e23d=null;try{return'GPL'==_0x1bfd73?'NotAllowed':(_0x331fba=_0x2a458a(),_0x331fba?(_0x331fba['usageEndpoint']&&(_0xa3e23d=_0x4cfa69(_0x331fba['usageEndpoint'],_0x331fba['jti'])),await _0x554017()?_0x247c7e()?_0x3c6807()?'Expired':_0x51453b()?('evaluation'==_0x331fba['licenseType']&&(_0x1fd382=_0x2fa2f0('EvaluationLimit')),await _0x4b5032()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x3c6807(){const _0x43e369=['evaluation','trial']['includes'](_0x331fba['licenseType'])?_0x5c57b0/0x3e8:0xe10*_0x538c22;return _0x331fba['exp']<_0x43e369;}function _0x247c7e(){const _0x3feef2=_0x331fba['features'];return!!_0x3feef2&&(!!_0x3feef2['includes']('*')||!!_0x3feef2['includes']('MLL'));}function _0x51453b(){const _0x19a0aa=_0x331fba['licensedHosts'];if(!_0x19a0aa||0x0==_0x19a0aa['length'])return!0x0;const {hostname:_0x8723be}=new URL(window['location']['href']);if(_0x19a0aa['includes'](_0x8723be))return!0x0;const _0x1f24b4=_0x8723be['split']('.');return _0x19a0aa['filter'](_0x1a9343=>_0x1a9343['includes']('*'))['map'](_0x233cb0=>_0x233cb0['split']('.'))['filter'](_0x33cf7d=>_0x33cf7d['length']<=_0x1f24b4['length'])['map'](_0x1b629d=>Array(_0x1f24b4['length']-_0x1b629d['length'])['fill']('*'===_0x1b629d[0x0]?'*':'')['concat'](_0x1b629d))['some'](_0x43a6cb=>_0x1f24b4['every']((_0x4fd1b4,_0x1f7ca1)=>_0x43a6cb[_0x1f7ca1]===_0x4fd1b4||'*'===_0x43a6cb[_0x1f7ca1]));}function _0x4b5032(){return _0x1fd382&&_0xa3e23d?new window['Promise']((_0x2646d2,_0x3a4409)=>{_0x1fd382['then'](_0x2646d2,_0x3a4409),_0xa3e23d['then'](_0x215c87=>{'Valid'!=_0x215c87&&_0x2646d2(_0x215c87);},_0x3a4409);}):_0x1fd382||_0xa3e23d||'Valid';}}function _0x4cfa69(_0x7e9319,_0xb02934){return new window['Promise'](_0x417c94=>{if(_0x3c874f())return _0x417c94('Valid');_0x1b8322(),_0x32bbfa['decorate']('_sendUsageRequest');let _0x565e25=!0x1;const _0x66d82b=_0x2628a3();function _0x3c2c6b(_0x234fae){return!!_0x234fae&&('object'==typeof _0x234fae||'function'==typeof _0x234fae)&&'function'==typeof _0x234fae['then']&&'function'==typeof _0x234fae['catch'];}function _0xbfccc2(_0x3b40fa){_0x1caf55(_0x3b40fa)['then'](_0x20c898=>_0x20c898&&'ok'==_0x20c898['status']?_0x3106dc(_0xa4a7dd(_0x66d82b+_0xb02934))!=_0x20c898['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1de18e=>(_0x1aea1a(),_0x1de18e),()=>{const _0x25d86c=_0x487cdb();return null==_0x25d86c?(_0x1aea1a(),'Valid'):_0x5c57b0-_0x25d86c>0x240c8400?'UsageLimit':'Valid';})['then'](_0x417c94)['catch'](()=>{_0x417c94('UsageLimit');});const _0x15cbc6=0x36ee80;function _0x1aea1a(){const _0xa0884='llct-'+_0x3106dc(_0xa4a7dd(_0x7e9319)),_0x4a5bf8=_0x29c207(_0x3106dc(window['Math']['ceil'](_0x5c57b0/_0x15cbc6)));window['localStorage']['setItem'](_0xa0884,_0x4a5bf8);}function _0x487cdb(){const _0x2f9ccb='llct-'+_0x3106dc(_0xa4a7dd(_0x7e9319)),_0x5a7e34=window['localStorage']['getItem'](_0x2f9ccb);return _0x5a7e34?window['parseInt'](_0x29c207(_0x5a7e34),0x10)*_0x15cbc6:null;}function _0x1caf55(_0x31ca22){return new window['Promise']((_0x4c1765,_0x18bc92)=>{_0x31ca22['then'](_0x4c1765,_0x18bc92),window['setTimeout'](_0x18bc92,0x1d4c0);});}}_0x32bbfa['on']('_sendUsageRequest',(_0x5e665b,_0x1ce06e)=>{if(_0x1ce06e[0x0]!=_0x7e9319)return _0x417c94('UsageLimit');_0x1ce06e[0x1]={..._0x1ce06e[0x1],'requestId':_0x66d82b};},{'priority':'high'}),_0x32bbfa['on']('_sendUsageRequest',_0x55080e=>{_0x3c2c6b(_0x55080e['return'])&&(_0x565e25=!0x0,_0xbfccc2(_0x55080e['return']));},{'priority':'low'}),_0x341687['then'](()=>{_0x565e25||_0x417c94('UsageLimit');});});function _0x3c874f(){return'auto'==_0x32bbfa['editing']['view']['_overlayModeHint'];}function _0x1b8322(){_0x32bbfa['editing']['view']['_overlayModeHint']='auto';}}function _0x2fa2f0(_0x49ff3a){const _0x1d1c80=[new window['Promise'](_0x125d30=>setTimeout(_0x125d30,0x93ecc)),_0x341687['then'](()=>new window['Promise'](_0x8be54a=>{let _0x5d3ee8=0x0;_0x32bbfa['model']['on']('applyOperation',(_0x462d41,_0x138898)=>{_0x138898[0x0]['isDocumentOperation']&&_0x5d3ee8++,0x5e8==_0x5d3ee8&&(_0x8be54a(),_0x462d41['off']());});}))];return window['Promise']['race'](_0x1d1c80)['then'](()=>_0x49ff3a);}async function _0x1aaeb5(){await _0x341687,_0x32bbfa['model']['change']=_0x3d6f68,_0x32bbfa['model']['enqueueChange']=_0x3d6f68,_0x32bbfa['enableReadOnlyMode']('model');}function _0x203a86(_0x28c65b){const _0x412217=_0x9be2f9();_0x32bbfa[_0x412217]='multiLevelListLicenseKey'+_0x28c65b,'Valid'!=_0x28c65b&&_0x1aaeb5();}function _0x9be2f9(){const _0x6ea7f4=window['String'](window['performance']['now']())['replace']('.','');let _0x348c7d='u';for(let _0x6439a9=0x0;_0x6439a9<_0x6ea7f4['length'];_0x6439a9+=0x2){let _0x274907=window['parseInt'](_0x6ea7f4['substring'](_0x6439a9,_0x6439a9+0x2));_0x274907>=0x3e&&(_0x274907-=0x3e),_0x348c7d+=_0x4f9f81[_0x274907];}return _0x348c7d;}function _0x2a458a(){const _0x4c757d=_0x1bfd73['split']('.');if(0x3!=_0x4c757d['length'])return null;return _0x59a4ec(_0x4c757d[0x1]);function _0x59a4ec(_0x50296b){const _0x344480=_0x19c6ee(_0x50296b);return _0x344480&&_0x50e9fb()?_0x344480:null;function _0x50e9fb(){const _0x2d4b18=_0x344480['jti'],_0x1ffee6=window['parseInt'](_0x2d4b18['substring'](_0x2d4b18['length']-0x8),0x10),_0x3efb17={..._0x344480,'jti':_0x2d4b18['substring'](0x0,_0x2d4b18['length']-0x8)};return delete _0x3efb17['vc'],_0xa4a7dd(_0x3efb17)==_0x1ffee6;}}}async function _0x554017(){let _0x242cd9=!0x0;try{const [_0x237ce3,_0x2f8a8f,_0x423a60]=_0x1bfd73['split']('.');return _0x38514e(_0x237ce3),await _0x1b34a6(_0x237ce3,_0x2f8a8f,_0x423a60),_0x242cd9;}catch{return!0x1;}function _0x38514e(_0x16edd8){const _0x273c9a=_0x19c6ee(_0x16edd8);_0x273c9a&&'ES256'==_0x273c9a['alg']||(_0x242cd9=!0x1);}async function _0x1b34a6(_0x471fc6,_0x36266e,_0x294d15){const _0x50d269=window['Uint8Array']['from'](_0x50fe4b(_0x294d15),_0x4fd578=>_0x4fd578['charCodeAt'](0x0)),_0x33db02=new window['TextEncoder']()['encode'](_0x471fc6+'.'+_0x36266e),_0xc8033d=window['crypto']['subtle'];if(!_0xc8033d)return;const _0x26458d=await _0xc8033d['importKey']('jwk',_0x4fc82c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xc8033d['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x26458d,_0x50d269,_0x33db02)||(_0x242cd9=!0x1);}}function _0x19c6ee(_0x14db48){return _0x14db48['startsWith']('ey')?JSON['parse'](_0x50fe4b(_0x14db48)):null;}function _0x50fe4b(_0x51c92c){return window['atob'](_0x51c92c['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xa4a7dd(_0x23de02){let _0x3463f2=0x1505;function _0x50b50f(_0x50c0cc){for(let _0x3d8404=0x0;_0x3d8404<_0x50c0cc['length'];_0x3d8404++){const _0x48bf58=_0x50c0cc['charCodeAt'](_0x3d8404);_0x3463f2=(_0x3463f2<<0x5)+_0x3463f2+_0x48bf58,_0x3463f2&=_0x3463f2;}}function _0x496479(_0x284921){Array['isArray'](_0x284921)?_0x284921['forEach'](_0x496479):_0x284921&&'object'==typeof _0x284921?Object['entries'](_0x284921)['sort']()['forEach'](([_0x1c2ac8,_0xea276c])=>{_0x50b50f(_0x1c2ac8),_0x496479(_0xea276c);}):_0x50b50f(window['String'](_0x284921));}return _0x496479(_0x23de02),_0x3463f2>>>0x0;}function _0x3106dc(_0xe48656){return _0xe48656['toString'](0x10)['padStart'](0x8,'0');}function _0x29c207(_0x557c34){return _0x557c34['split']('')['reverse']()['join']('');}function _0x3d6f68(){}_0x203a86(await _0x43e4c9());}(this);}};function E(_0x3e1d3b,_0x97c204,_0x48eaba){let _0xb2e0a9=_0x97c204['listMarkers'][_0x3e1d3b%_0x97c204['listMarkers']['length']];if(void 0x0===_0xb2e0a9['showMarkerPath']||_0xb2e0a9['showMarkerPath'])return _0x48eaba['slice'](0x0,_0x3e1d3b+0x1)['map']((_0x5218ea,_0xf7f49c)=>(_0xb2e0a9=_0x97c204['listMarkers'][_0xf7f49c%_0x97c204['listMarkers']['length']],N(_0xb2e0a9['marker'],_0x5218ea)))['join']('');{const _0x5e6c29=_0x48eaba[_0x48eaba['length']-0x1];return N(_0xb2e0a9['marker'],_0x5e6c29);}}function N(_0xf6b449,_0x25f44){return'function'==typeof _0xf6b449?_0xf6b449(_0x25f44):_0xf6b449;}function _(_0x923b6a,_0xbcccb5){return(_0x179b16,_0x9fd607,_0x3b34e4)=>{const _0x1d9984=_0x9fd607['viewItem'];if(_0x9fd607['modelRange']||Object['assign'](_0x9fd607,_0x3b34e4['convertChildren'](_0x9fd607['viewItem'],_0x9fd607['modelCursor'])),!_0x3b34e4['consumable']['test'](_0x1d9984,{'classes':_0x923b6a['className']}))return;const _0x43c001=Array['from'](_0x9fd607['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x143698=>_0xbcccb5['checkAttribute'](_0x143698,'listItemId'));if(!_0x43c001['length'])return;_0x3b34e4['consumable']['consume'](_0x1d9984,{'classes':_0x923b6a['className']}),_0x3b34e4['consumable']['consume'](_0x1d9984,{'classes':'multi-level-list'}),_0x3b34e4['consumable']['consume'](_0x1d9984,{'styles':'list-style-type'});const _0x4def3b=_0x43c001[0x0]['getAttribute']('listIndent');for(const _0x35dc62 of _0x43c001)_0x35dc62['getAttribute']('listIndent')==_0x4def3b&&(_0x3b34e4['writer']['setAttribute']('listType',_0x923b6a['listType'],_0x35dc62),_0x3b34e4['writer']['setAttribute']('listMarkerStyle',_0x923b6a['listMarkerStyle'],_0x35dc62));};}function A(_0x3c62dc,_0x4189ec){const _0x2fe982=_0x3c62dc['t'],t=_0x3c62dc['t'];switch(_0x4189ec){case'Start\x20at':return _0x2fe982('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x2fe982('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x2fe982('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x2fe982('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 _0x4189ec;}}var V=class extends _0xa61106{['children'];stylesView=null;additionalPropertiesCollapsibleView=null;startIndexFieldView=null;['focusTracker']=new _0x2d44f5();keystrokes=new _0x2269b8();['focusables']=new _0x34f405();['focusCycler'];constructor(_0x16bbc1,{enabledProperties:_0xc3f26b,styleButtonViews:_0x1a1707,styleGridAriaLabel:_0x3dd8f3}){super(_0x16bbc1);const _0x54f5b2=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x34875d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0xc3f26b['styles']?(this['stylesView']=this['_createStylesView'](_0x1a1707,_0x3dd8f3),this['children']['add'](this['stylesView'])):_0x54f5b2['push']('ck-multi-level-list-properties_without-styles'),_0xc3f26b['startIndex']&&(this['_addListPropertyViews'](_0xc3f26b),_0x54f5b2['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x54f5b2},'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 _0x5b4095 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5b4095['element']);_0x21d5ce({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x50058d['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 _0x33611d=_0x7b6de5=>_0x7b6de5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x33611d),this['keystrokes']['set']('arrowleft',_0x33611d),this['keystrokes']['set']('arrowup',_0x33611d),this['keystrokes']['set']('arrowdown',_0x33611d);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}focusLast(){this['focusCycler']['focusLast']();}destroy(){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}_createStylesView(_0x1cb33a,_0x23ca99){const _0x34bd86=new _0xa61106(this['locale']);return _0x34bd86['children']=_0x34bd86['createCollection'](),_0x34bd86['children']['addMany'](_0x1cb33a),_0x34bd86['setTemplate']({'tag':'div','attributes':{'aria-label':_0x23ca99,'class':['ck','ck-multi-level-list-styles']},'children':_0x34bd86['children']}),_0x34bd86['children']['delegate']('execute')['to'](this),_0x34bd86['focus']=function(){this['children']['first']['focus']();},_0x34bd86['focusTracker']=new _0x2d44f5(),_0x34bd86['keystrokes']=new _0x2269b8(),_0x34bd86['render'](),_0x34bd86['keystrokes']['listenTo'](_0x34bd86['element']),_0x34bd86;}_addListPropertyViews(_0x15a65f){const _0x57377a=[];_0x15a65f['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x57377a['push'](this['startIndexFieldView'])),_0x15a65f['styles']?(this['additionalPropertiesCollapsibleView']=new _0x29f2c0(this['locale'],_0x57377a),this['additionalPropertiesCollapsibleView']['set']({'label':A(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x57377a,'isEnabled',(..._0x25d6e0)=>_0x25d6e0['some'](_0x5c1bb1=>_0x5c1bb1)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x31bd11,_0xbc492a,_0x1226a2)=>{_0x1226a2||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x57377a);}_createStartIndexField(){const _0x1124bc=new _0x235a67(this['locale'],_0x58b718);return _0x1124bc['set']({'label':A(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x1124bc['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1124bc['fieldView']['on']('input',()=>{const _0x49cff9=_0x1124bc['fieldView']['element'],_0x330b5f=_0x49cff9['valueAsNumber'];Number['isNaN'](_0x330b5f)?_0x1124bc['errorText']=A(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x49cff9['checkValidity']()?this['fire']('listStart',{'startIndex':_0x330b5f}):_0x1124bc['errorText']=A(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x1124bc;}},K=class extends _0x52e877{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x12b08e=this['editor'];_0x12b08e['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x521960,parentCommandName:_0x444b05,buttonLabel:_0xd60233,buttonIcon:_0x215a04,styleGridAriaLabel:_0x2b947b,styleDefinitions:_0x1415b7}){const _0x506a47=_0x521960['commands']['get'](_0x444b05),_0x10affa=_0x521960['config']['get']('list.properties')||{},_0x42b950=_0x521960['plugins']['has']('ListProperties'),_0x44a142=_0x10affa['startIndex'];return _0x42b950&&_0x44a142?_0x1329ca=>{const _0x3cda1d=_0x452086(_0x1329ca,_0x4f3280),_0x1ce3c2=_0x3cda1d['buttonView'];return _0x3cda1d['bind']('isEnabled')['to'](_0x506a47),_0x3cda1d['class']='ck-list-styles-dropdown',_0x1ce3c2['on']('execute',()=>{_0x521960['execute'](_0x444b05),_0x521960['editing']['view']['focus']();}),_0x1ce3c2['set']({'label':_0xd60233,'icon':_0x215a04,'tooltip':!0x0,'isToggleable':!0x0}),_0x1ce3c2['bind']('isOn')['to'](_0x506a47,'value',_0x1ac697=>!!_0x1ac697),_0x3cda1d['once']('change:isOpen',()=>{const _0x1e691f=function({editor:_0x4408ab,dropdownView:_0x11b747,styleDefinitions:_0x310446,styleGridAriaLabel:_0x6d3db8}){const _0xe4aa0d=_0x4408ab['locale'],_0x549a36=_0x4408ab['config']['get']('list.properties'),_0x3a143b=null;_0x549a36['reversed']=!0x1,_0x310446['length']||(_0x549a36['styles']=!0x1);const _0x514d7f=new V(_0xe4aa0d,{'styleGridAriaLabel':_0x6d3db8,'enabledProperties':_0x549a36,'styleButtonViews':_0x3a143b});if(_0x549a36['startIndex']){const _0xd5a251=_0x4408ab['commands']['get']('listStart');_0x514d7f['startIndexFieldView']['bind']('isEnabled')['to'](_0xd5a251),_0x514d7f['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xd5a251),_0x514d7f['on']('listStart',(_0x229901,_0x5b5289)=>_0x4408ab['execute']('listStart',_0x5b5289));}return _0x514d7f['delegate']('execute')['to'](_0x11b747),_0x514d7f;}({'editor':_0x521960,'dropdownView':_0x3cda1d,'parentCommandName':_0x444b05,'styleGridAriaLabel':_0x2b947b,'styleDefinitions':_0x1415b7});_0x3cda1d['panelView']['children']['add'](_0x1e691f);}),_0x3cda1d['on']('execute',()=>{_0x521960['editing']['view']['focus']();}),_0x3cda1d;}:_0xce00c3=>{const _0xa5696a=new _0xe0cfe0(_0xce00c3);return _0xa5696a['set']({'label':_0xd60233,'icon':_0x215a04,'tooltip':!0x0,'isToggleable':!0x0}),_0xa5696a['bind']('isOn')['to'](_0x506a47,'value',_0x2e1ffd=>!!_0x2e1ffd),_0xa5696a['on']('execute',()=>{_0x521960['execute'](_0x444b05),_0x521960['editing']['view']['focus']();}),_0xa5696a;};}({'editor':_0x12b08e,'parentCommandName':'multiLevelList','buttonLabel':A(_0x12b08e['locale'],'Multi-level\x20List'),'buttonIcon':_0x4fe93f,'styleGridAriaLabel':A(_0x12b08e['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x12b08e['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x2b533f=_0x12b08e['commands']['get']('multiLevelList'),_0x33c3c1=new _0x118fda(_0x12b08e['locale']);return _0x33c3c1['set']({'label':A(_0x12b08e['locale'],'Multi-level\x20List'),'icon':_0x4fe93f}),_0x33c3c1['bind']('isEnabled')['to'](_0x2b533f),_0x33c3c1['bind']('isOn')['to'](_0x2b533f,'value',_0x10ace6=>!!_0x10ace6),_0x33c3c1['on']('execute',()=>{_0x12b08e['execute']('multiLevelList'),_0x12b08e['editing']['view']['focus']();}),_0x33c3c1;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2bf27c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x185eaf;for(const _0x505407 in _0x2bf27c){const _0x3431f7=_0x505407,_0x56a95e=_0x2bf27c[_0x3431f7];if('multiLevelListLicenseKeyValid'==_0x56a95e||'multiLevelListLicenseKeyInvalid'==_0x56a95e||'multiLevelListLicenseKeyExpired'==_0x56a95e||'multiLevelListLicenseKeyDomainLimit'==_0x56a95e||'multiLevelListLicenseKeyNotAllowed'==_0x56a95e||'multiLevelListLicenseKeyEvaluationLimit'==_0x56a95e||'multiLevelListLicenseKeyUsageLimit'==_0x56a95e){delete _0x2bf27c[_0x3431f7],_0x185eaf=_0x56a95e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x185eaf&&_0x2bf27c['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x185eaf&&_0x2bf27c['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x185eaf&&_0x2bf27c['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x185eaf&&_0x2bf27c['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x185eaf&&_0x2bf27c['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x185eaf&&_0x2bf27c['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},P=class extends _0x52e877{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.5",
|
|
4
4
|
"description": "Multi-level list feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"./package.json": "./package.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ckeditor/ckeditor5-clipboard": "48.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.5",
|
|
36
|
+
"@ckeditor/ckeditor5-core": "48.4.0-alpha.5",
|
|
37
|
+
"@ckeditor/ckeditor5-engine": "48.4.0-alpha.5",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "48.4.0-alpha.5",
|
|
39
|
+
"@ckeditor/ckeditor5-list": "48.4.0-alpha.5",
|
|
40
|
+
"@ckeditor/ckeditor5-ui": "48.4.0-alpha.5",
|
|
41
|
+
"@ckeditor/ckeditor5-utils": "48.4.0-alpha.5"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist",
|