@ckeditor/ckeditor5-case-change 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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x1aabaf,Plugin as _0x4e4fe8}from'@ckeditor/ckeditor5-core';import{Collection as _0x3f6008,uid as _0x4c5ea4}from'@ckeditor/ckeditor5-utils';import{MenuBarMenuListItemButtonView as _0x3d119f,MenuBarMenuListItemView as _0x509f31,MenuBarMenuListView as _0x55de14,MenuBarMenuView as _0xfa2834,UIModel as _0xb8857,addListToDropdown as _0xcf9beb,createDropdown as _0x3b459b}from'@ckeditor/ckeditor5-ui';import{IconCaseChange as _0x3e44a7}from'@ckeditor/ckeditor5-icons';var h=class extends _0x1aabaf{_transformCallback;constructor(_0x86e02,_0x59ea0e){super(_0x86e02),this['_transformCallback']=_0x59ea0e;}execute(){const _0x3bd270=this['editor']['model'],_0x1d1086=Array['from'](this['_getAffectedRanges']()),_0x1e289a=Array['from'](_0x3bd270['document']['selection']['getRanges']());_0x3bd270['change'](_0x426661=>{for(const _0x24aef6 of _0x1d1086)this['_modifyContent'](_0x24aef6,_0x426661);_0x426661['setSelection'](_0x1e289a);});}['refresh'](){for(const _0x2df67e of this['_getAffectedRanges']())for(const _0x52b119 of _0x2df67e)if(_0x52b119['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}_getAffectedRanges(){const _0x2cde5a=this['editor']['model'],_0x1eb8cc=_0x2cde5a['document']['selection'];if(_0x1eb8cc['isCollapsed']){const _0x456b79=this['_findAncestorTextBlock'](_0x1eb8cc['getFirstPosition']()['parent']);return _0x456b79?[_0x2cde5a['createRangeIn'](_0x456b79)]:[];}return _0x1eb8cc['getRanges']();}_modifyContent(_0x2ead5a,_0x4f891b){for(const _0x3bd86d of this['_getElementsAllowingText'](_0x2ead5a)){const _0x26f519=this['_getElementTextContent'](_0x3bd86d),_0x4aed84=this['_transformCallback'](_0x26f519);for(const _0x594dc1 of this['_getTextNodesRangeLimited'](_0x3bd86d,_0x2ead5a))this['_replaceTextNodeData'](_0x594dc1,_0x4aed84,_0x4f891b);}}_findAncestorTextBlock(_0x23da38){const _0x5dc11a=this['editor']['model']['schema'];if(_0x23da38['is']('element')&&_0x5dc11a['checkChild'](_0x23da38,'$text'))return _0x23da38;const _0x1cfe81=_0x23da38['parent'];return!_0x1cfe81||_0x5dc11a['isLimit'](_0x23da38)?null:this['_findAncestorTextBlock'](_0x1cfe81);}*_getElementsAllowingText(_0xe8e5b1){const _0x332f8e=new Set();for(const {item:_0x4673b9}of _0xe8e5b1['getWalker']()){const _0x5e69cf=this['_findAncestorTextBlock'](_0x4673b9);_0x5e69cf&&!_0x332f8e['has'](_0x5e69cf)&&(_0x332f8e['add'](_0x5e69cf),yield _0x5e69cf);}}_getElementTextContent(_0x2b0f74){return Array['from'](_0x2b0f74['getChildren']())['reduce']((_0x2768e9,_0x4ab012)=>_0x2768e9+(_0x4ab012['is']('$text')?_0x4ab012['data']:'\x20'),'');}*_getTextNodesRangeLimited(_0x277d02,_0x2b5084){const _0x2758ef=_0x2b5084['getIntersection'](this['editor']['model']['createRangeIn'](_0x277d02));if(_0x2758ef){for(const _0x2577d7 of _0x2758ef['getItems']())_0x2577d7['is']('$textProxy')&&_0x2577d7['parent']==_0x277d02&&(yield _0x2577d7);}}_replaceTextNodeData(_0x2e0b15,_0x26628c,_0x2334b3){const _0x5ced7d=_0x26628c['substring'](_0x2e0b15['startOffset'],_0x2e0b15['endOffset']);if(_0x5ced7d===_0x2e0b15['data'])return;const _0x4f9a9d=_0x2e0b15['getAttributes']();this['editor']['model']['insertContent'](_0x2334b3['createText'](_0x5ced7d,_0x4f9a9d),_0x2334b3['createSelection'](_0x2334b3['createRangeOn'](_0x2e0b15)));}};function w(_0x13d1fb,_0x1b8849,..._0x529654){const t=_0x13d1fb['t'];switch(_0x1b8849){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x529654);default:return _0x1b8849;}}var g=class extends _0x4e4fe8{_currentCommandIndex=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x4a258f=this['editor'],_0x3c45da=_0x4a258f['locale']['contentLanguage'],_0x5e6568=function(_0x4ad130=[]){return'function'==typeof _0x4ad130?_0x4ad130:(_0x5d85c9,{wordIndex:_0x1c0ec5})=>_0x1c0ec5>0x0&&_0x4ad130['includes'](_0x5d85c9);}(_0x4a258f['config']['get']('caseChange.titleCase.excludeWords')),_0x234769={'changeCaseUpper':new h(_0x4a258f,_0x229533=>_0x229533['toLocaleUpperCase'](_0x3c45da)),'changeCaseLower':new h(_0x4a258f,_0x3f3435=>_0x3f3435['toLocaleLowerCase'](_0x3c45da)),'changeCaseTitle':new h(_0x4a258f,_0x14c189=>function(_0x3b36f7,_0x428e54,_0x4bf303){return function(_0x505e5c,_0x134772){let _0x4ef511='',_0x2eb0ee=0x0,_0xf71912=0x0;for(const _0x5cd46c of _0x505e5c['matchAll'](/ +/g)){const _0x48e266=_0x5cd46c['index'],_0x298279=_0x505e5c['substring'](_0x2eb0ee,_0x48e266);_0x298279['length']&&(_0x4ef511+=_0x134772(_0x298279,_0x2eb0ee,_0xf71912++)),_0x4ef511+=_0x5cd46c[0x0],_0x2eb0ee=_0x48e266+_0x5cd46c[0x0]['length'];}const _0x45ddd7=_0x505e5c['substring'](_0x2eb0ee);return _0x45ddd7['length']&&(_0x4ef511+=_0x134772(_0x45ddd7,_0x2eb0ee,_0xf71912)),_0x4ef511;}(_0x3b36f7,(_0x4dfaaa,_0x2c09b0,_0x3cf8dc)=>{const _0x36992c=_0x4dfaaa['toLocaleLowerCase'](_0x4bf303);return _0x428e54(_0x36992c,{'charOffset':_0x2c09b0,'wordIndex':_0x3cf8dc,'blockText':_0x3b36f7})?_0x36992c:_0x36992c['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x5229b5=>_0x5229b5['toLocaleUpperCase'](_0x4bf303));});}(_0x14c189,_0x5e6568,_0x3c45da))};for(const [_0x517b2d,_0x46dc17]of Object['entries'](_0x234769))_0x4a258f['commands']['add'](_0x517b2d,_0x46dc17),_0x46dc17['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x517b2d);});this['listenTo'](_0x4a258f['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x4a258f['keystrokes']['set']('shift+f3',(_0x3889de,_0x33cf2d)=>{const _0x334f7d=m(this['editor']['locale']),_0x255f0c=_0x334f7d[this['_currentCommandIndex']%_0x334f7d['length']]['commandName'];_0x4a258f['execute'](_0x255f0c),this['_currentCommandIndex']++,_0x33cf2d();});}afterInit(){!async function(_0x57df18){const _0x2570b2='EMDS3dsLoJY0nbe9cmlCrXyaZ8zpPqN6jxThf7gwBi2KFOVUWRAG14HQIkut5v',_0x3d508d=0x79188,_0x49d5ed=window['Date']['now'](),_0x339726=_0x57df18['editor'],_0x296d4d=new window['Promise'](_0x3862e6=>{_0x339726['once']('ready',_0x3862e6);}),_0x75a397={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x243ecd=_0x339726['config']['get']('licenseKey');async function _0x30e067(){let _0x5c45e1,_0x17a36c=null,_0x458dca=null;try{return'GPL'==_0x243ecd?'NotAllowed':(_0x5c45e1=_0x3da05f(),_0x5c45e1?(_0x5c45e1['usageEndpoint']&&(_0x458dca=_0x3ffb68(_0x5c45e1['usageEndpoint'],_0x5c45e1['jti'])),await _0x16df0e()?_0x4d362b()?_0x4f3e82()?'Expired':_0x256c3c()?('evaluation'==_0x5c45e1['licenseType']&&(_0x17a36c=_0x57452c('EvaluationLimit')),await _0x335325()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4f3e82(){const _0xff6f03=['evaluation','trial']['includes'](_0x5c45e1['licenseType'])?_0x49d5ed/0x3e8:0xe10*_0x3d508d;return _0x5c45e1['exp']<_0xff6f03;}function _0x4d362b(){const _0x4acab3=_0x5c45e1['features'];return!!_0x4acab3&&(!!_0x4acab3['includes']('*')||(!!_0x4acab3['includes']('CC')||!!_0x4acab3['includes']('PP')));}function _0x256c3c(){const _0x2d55a9=_0x5c45e1['licensedHosts'];if(!_0x2d55a9||0x0==_0x2d55a9['length'])return!0x0;const {hostname:_0x5924f7}=new URL(window['location']['href']);if(_0x2d55a9['includes'](_0x5924f7))return!0x0;const _0x183abe=_0x5924f7['split']('.');return _0x2d55a9['filter'](_0x58ab83=>_0x58ab83['includes']('*'))['map'](_0x51d642=>_0x51d642['split']('.'))['filter'](_0x5d59fc=>_0x5d59fc['length']<=_0x183abe['length'])['map'](_0x3b95b4=>Array(_0x183abe['length']-_0x3b95b4['length'])['fill']('*'===_0x3b95b4[0x0]?'*':'')['concat'](_0x3b95b4))['some'](_0xf22f7=>_0x183abe['every']((_0x4531ca,_0x1bf54d)=>_0xf22f7[_0x1bf54d]===_0x4531ca||'*'===_0xf22f7[_0x1bf54d]));}function _0x335325(){return _0x17a36c&&_0x458dca?new window['Promise']((_0x3a79cd,_0x40e3b1)=>{_0x17a36c['then'](_0x3a79cd,_0x40e3b1),_0x458dca['then'](_0x183982=>{'Valid'!=_0x183982&&_0x3a79cd(_0x183982);},_0x40e3b1);}):_0x17a36c||_0x458dca||'Valid';}}function _0x3ffb68(_0xd8fbcd,_0x45e66e){return new window['Promise'](_0x195fee=>{if(_0x4d9791())return _0x195fee('Valid');_0x54e06d(),_0x339726['decorate']('_sendUsageRequest');let _0x1b5d7a=!0x1;const _0x36805c=_0x4c5ea4();function _0x5205f7(_0x551abe){return!!_0x551abe&&('object'==typeof _0x551abe||'function'==typeof _0x551abe)&&'function'==typeof _0x551abe['then']&&'function'==typeof _0x551abe['catch'];}function _0xb9c7d8(_0x3a79c3){_0x155f4e(_0x3a79c3)['then'](_0xfc8074=>_0xfc8074&&'ok'==_0xfc8074['status']?_0x157f79(_0x4b78ca(_0x36805c+_0x45e66e))!=_0xfc8074['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3fc3c8=>(_0x12692c(),_0x3fc3c8),()=>{const _0xcddfa8=_0x421b43();return null==_0xcddfa8?(_0x12692c(),'Valid'):_0x49d5ed-_0xcddfa8>0x240c8400?'UsageLimit':'Valid';})['then'](_0x195fee)['catch'](()=>{_0x195fee('UsageLimit');});const _0x1db0b0=0x36ee80;function _0x12692c(){const _0x2e2da1='llct-'+_0x157f79(_0x4b78ca(_0xd8fbcd)),_0x220b18=_0x2515b6(_0x157f79(window['Math']['ceil'](_0x49d5ed/_0x1db0b0)));window['localStorage']['setItem'](_0x2e2da1,_0x220b18);}function _0x421b43(){const _0xfedf9b='llct-'+_0x157f79(_0x4b78ca(_0xd8fbcd)),_0x5ad689=window['localStorage']['getItem'](_0xfedf9b);return _0x5ad689?window['parseInt'](_0x2515b6(_0x5ad689),0x10)*_0x1db0b0:null;}function _0x155f4e(_0xc92a1e){return new window['Promise']((_0x5179b4,_0x26ee8a)=>{_0xc92a1e['then'](_0x5179b4,_0x26ee8a),window['setTimeout'](_0x26ee8a,0x1d4c0);});}}_0x339726['on']('_sendUsageRequest',(_0x512048,_0x32a872)=>{if(_0x32a872[0x0]!=_0xd8fbcd)return _0x195fee('UsageLimit');_0x32a872[0x1]={..._0x32a872[0x1],'requestId':_0x36805c};},{'priority':'high'}),_0x339726['on']('_sendUsageRequest',_0x59c6b0=>{_0x5205f7(_0x59c6b0['return'])&&(_0x1b5d7a=!0x0,_0xb9c7d8(_0x59c6b0['return']));},{'priority':'low'}),_0x296d4d['then'](()=>{_0x1b5d7a||_0x195fee('UsageLimit');});});function _0x4d9791(){return'auto'==_0x339726['editing']['view']['_overlayModeHint'];}function _0x54e06d(){_0x339726['editing']['view']['_overlayModeHint']='auto';}}function _0x57452c(_0x290e41){const _0x46b6f2=[new window['Promise'](_0x1c52fe=>setTimeout(_0x1c52fe,0x93ecc)),_0x296d4d['then'](()=>new window['Promise'](_0x5a70df=>{let _0x2c1a56=0x0;_0x339726['model']['on']('applyOperation',(_0x132b22,_0x4725fd)=>{_0x4725fd[0x0]['isDocumentOperation']&&_0x2c1a56++,0x5e8==_0x2c1a56&&(_0x5a70df(),_0x132b22['off']());});}))];return window['Promise']['race'](_0x46b6f2)['then'](()=>_0x290e41);}async function _0x9aeae5(){await _0x296d4d,_0x339726['model']['change']=_0x5edc21,_0x339726['model']['enqueueChange']=_0x5edc21,_0x339726['enableReadOnlyMode']('model');}function _0x5190a4(_0x3ab3b4){const _0x3a2fa4=_0x112bfa();_0x339726[_0x3a2fa4]='caseChangeLicenseKey'+_0x3ab3b4,'Valid'!=_0x3ab3b4&&_0x9aeae5();}function _0x112bfa(){const _0x2480fd=window['String'](window['performance']['now']())['replace']('.','');let _0x3ea79c='E';for(let _0x579c24=0x0;_0x579c24<_0x2480fd['length'];_0x579c24+=0x2){let _0x3c0d7a=window['parseInt'](_0x2480fd['substring'](_0x579c24,_0x579c24+0x2));_0x3c0d7a>=0x3e&&(_0x3c0d7a-=0x3e),_0x3ea79c+=_0x2570b2[_0x3c0d7a];}return _0x3ea79c;}function _0x3da05f(){const _0x4250d7=_0x243ecd['split']('.');if(0x3!=_0x4250d7['length'])return null;return _0x4656c7(_0x4250d7[0x1]);function _0x4656c7(_0x4e143e){const _0x1c7918=_0x23e16e(_0x4e143e);return _0x1c7918&&_0x1c02e2()?_0x1c7918:null;function _0x1c02e2(){const _0x291d89=_0x1c7918['jti'],_0x3de008=window['parseInt'](_0x291d89['substring'](_0x291d89['length']-0x8),0x10),_0x36c644={..._0x1c7918,'jti':_0x291d89['substring'](0x0,_0x291d89['length']-0x8)};return delete _0x36c644['vc'],_0x4b78ca(_0x36c644)==_0x3de008;}}}async function _0x16df0e(){let _0x4a5825=!0x0;try{const [_0x255bf3,_0x59e1e7,_0x49f86d]=_0x243ecd['split']('.');return _0x2b3f44(_0x255bf3),await _0x3a8ff3(_0x255bf3,_0x59e1e7,_0x49f86d),_0x4a5825;}catch{return!0x1;}function _0x2b3f44(_0x3a9def){const _0x25f649=_0x23e16e(_0x3a9def);_0x25f649&&'ES256'==_0x25f649['alg']||(_0x4a5825=!0x1);}async function _0x3a8ff3(_0x371972,_0x284986,_0xb3abff){const _0x12001c=window['Uint8Array']['from'](_0xf7b68c(_0xb3abff),_0x1940c4=>_0x1940c4['charCodeAt'](0x0)),_0x343caf=new window['TextEncoder']()['encode'](_0x371972+'.'+_0x284986),_0x5c1c3b=window['crypto']['subtle'];if(!_0x5c1c3b)return;const _0x2d3bef=await _0x5c1c3b['importKey']('jwk',_0x75a397,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5c1c3b['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2d3bef,_0x12001c,_0x343caf)||(_0x4a5825=!0x1);}}function _0x23e16e(_0x1e846a){return _0x1e846a['startsWith']('ey')?JSON['parse'](_0xf7b68c(_0x1e846a)):null;}function _0xf7b68c(_0x14b123){return window['atob'](_0x14b123['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4b78ca(_0x298536){let _0x4c4a41=0x1505;function _0xfb3fe3(_0x1da838){for(let _0x293c0b=0x0;_0x293c0b<_0x1da838['length'];_0x293c0b++){const _0x4cc705=_0x1da838['charCodeAt'](_0x293c0b);_0x4c4a41=(_0x4c4a41<<0x5)+_0x4c4a41+_0x4cc705,_0x4c4a41&=_0x4c4a41;}}function _0x54b738(_0x165c85){Array['isArray'](_0x165c85)?_0x165c85['forEach'](_0x54b738):_0x165c85&&'object'==typeof _0x165c85?Object['entries'](_0x165c85)['sort']()['forEach'](([_0x172608,_0x5484e6])=>{_0xfb3fe3(_0x172608),_0x54b738(_0x5484e6);}):_0xfb3fe3(window['String'](_0x165c85));}return _0x54b738(_0x298536),_0x4c4a41>>>0x0;}function _0x157f79(_0x32486d){return _0x32486d['toString'](0x10)['padStart'](0x8,'0');}function _0x2515b6(_0x7ef33c){return _0x7ef33c['split']('')['reverse']()['join']('');}function _0x5edc21(){}_0x5190a4(await _0x30e067());}(this);}_announceCaseChangeOperation(_0x253900){const {ui:_0x8983a0,locale:_0x21bddf}=this['editor'],_0x18817d=m(_0x21bddf)['find'](_0x5eabb3=>_0x5eabb3['commandName']===_0x253900)['label']['toLowerCase']();_0x8983a0['ariaLiveAnnouncer']['announce'](w(_0x21bddf,'Changed\x20case\x20to\x20%0',_0x18817d));}};function m(_0x25eea8){return[{'label':w(_0x25eea8,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x25eea8,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x25eea8,'Title\x20Case'),'commandName':'changeCaseTitle'}];}var C=class extends _0x4e4fe8{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x3f0fc8=this['editor'];this['_registerComponents'](),_0x3f0fc8['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0x3f0fc8['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x591857=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x272521;for(const _0xa57149 in _0x591857){const _0x427f52=_0xa57149,_0x37aff0=_0x591857[_0x427f52];if('caseChangeLicenseKeyValid'==_0x37aff0||'caseChangeLicenseKeyInvalid'==_0x37aff0||'caseChangeLicenseKeyExpired'==_0x37aff0||'caseChangeLicenseKeyDomainLimit'==_0x37aff0||'caseChangeLicenseKeyNotAllowed'==_0x37aff0||'caseChangeLicenseKeyEvaluationLimit'==_0x37aff0||'caseChangeLicenseKeyUsageLimit'==_0x37aff0){delete _0x591857[_0x427f52],_0x272521=_0x37aff0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x272521&&_0x591857['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x272521&&_0x591857['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x272521&&_0x591857['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x272521&&_0x591857['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x272521&&_0x591857['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x272521&&_0x591857['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_registerComponents(){const _0x54ed7a=this['editor'],{itemDefinitions:_0x59b284,commands:_0x240ba7}=this['_getListItemDefinitionsAndCommands']();_0x54ed7a['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x59b284,_0x240ba7)),_0x54ed7a['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x59b284,_0x240ba7));}_createMenuBarMenuView(_0x26f3ff,_0x5e9dbe){const _0x14587b=this['editor'],_0x31887b=_0x14587b['locale'],_0x35b617=new _0xfa2834(_0x31887b),_0x13b787=new _0x55de14(_0x31887b);_0x13b787['set']({'ariaLabel':w(_0x31887b,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x35b617['buttonView']),_0x35b617['bind']('isEnabled')['toMany'](_0x5e9dbe,'isEnabled',(..._0x54b0c8)=>_0x54b0c8['some'](_0x2edbef=>_0x2edbef));for(const _0x467e62 of _0x26f3ff){const _0x2f3874=new _0x509f31(_0x31887b,_0x35b617),_0x276902=new _0x3d119f(_0x31887b);_0x276902['delegate']('execute')['to'](_0x35b617),_0x276902['bind'](...Object['keys'](_0x467e62['model']))['to'](_0x467e62['model']),_0x276902['on']('execute',()=>{_0x14587b['execute'](_0x467e62['model']['commandName']),_0x14587b['editing']['view']['focus']();}),_0x2f3874['children']['add'](_0x276902),_0x13b787['items']['add'](_0x2f3874);}return _0x35b617['panelView']['children']['add'](_0x13b787),_0x35b617;}_createDropdownView(_0x425158,_0x48728b){const _0x26af4c=this['editor'],_0x35c090=_0x3b459b(_0x26af4c['locale']);return this['_setButtonProperties'](_0x35c090['buttonView']),_0x35c090['buttonView']['set']({'tooltip':!0x0}),_0x35c090['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0xcf9beb(_0x35c090,_0x425158,{'ariaLabel':w(_0x26af4c['locale'],'Case\x20change'),'role':'menu'}),_0x35c090['bind']('isEnabled')['toMany'](_0x48728b,'isEnabled',(..._0x460941)=>_0x460941['some'](_0x24110f=>_0x24110f)),this['listenTo'](_0x35c090,'execute',_0x470f26=>{_0x26af4c['execute'](_0x470f26['source']['commandName']),_0x26af4c['editing']['view']['focus']();}),_0x35c090;}_setButtonProperties(_0xa00b93){const _0x2c72bb=this['editor'];_0xa00b93['set']({'label':w(_0x2c72bb['locale'],'Case\x20change'),'icon':_0x3e44a7,'keystroke':'Shift+F3'});}_getListItemDefinitionsAndCommands(){const _0x4cb4c5=new _0x3f6008(),_0x4af878=[];for(const _0x34742f of m(this['editor']['locale'])){const _0x536737=this['editor']['commands']['get'](_0x34742f['commandName']),_0x1a3dce=new _0xb8857({'commandName':_0x34742f['commandName'],'label':_0x34742f['label'],'role':'menuitemradio','withText':!0x0});_0x1a3dce['bind']('isEnabled')['to'](_0x536737,'isEnabled'),_0x4cb4c5['add']({'type':'button','model':_0x1a3dce}),_0x4af878['push'](_0x536737);}return{'itemDefinitions':_0x4cb4c5,'commands':_0x4af878};}},y=class extends _0x4e4fe8{static get requires(){return[g,C];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{y as CaseChange,h as CaseChangeCommand,g as CaseChangeEditing,C as CaseChangeUI};
23
+ import{Command as _0x22af93,Plugin as _0xd5c2bc}from'@ckeditor/ckeditor5-core';import{Collection as _0x1a0868,uid as _0x12cd33}from'@ckeditor/ckeditor5-utils';import{MenuBarMenuListItemButtonView as _0x3a797b,MenuBarMenuListItemView as _0x3b317f,MenuBarMenuListView as _0x4aa46b,MenuBarMenuView as _0x5587b0,UIModel as _0x4243cf,addListToDropdown as _0x4a3b4e,createDropdown as _0x28c350}from'@ckeditor/ckeditor5-ui';import{IconCaseChange as _0x38245e}from'@ckeditor/ckeditor5-icons';var h=class extends _0x22af93{_transformCallback;constructor(_0x32e540,_0x33b63e){super(_0x32e540),this['_transformCallback']=_0x33b63e;}execute(){const _0x435a1b=this['editor']['model'],_0x25eac6=Array['from'](this['_getAffectedRanges']()),_0x1e8d55=Array['from'](_0x435a1b['document']['selection']['getRanges']());_0x435a1b['change'](_0x3b9005=>{for(const _0x36a7dc of _0x25eac6)this['_modifyContent'](_0x36a7dc,_0x3b9005);_0x3b9005['setSelection'](_0x1e8d55);});}['refresh'](){for(const _0x49a2c6 of this['_getAffectedRanges']())for(const _0x4270af of _0x49a2c6)if(_0x4270af['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}_getAffectedRanges(){const _0x532b28=this['editor']['model'],_0x4e0e7d=_0x532b28['document']['selection'];if(_0x4e0e7d['isCollapsed']){const _0xb61676=this['_findAncestorTextBlock'](_0x4e0e7d['getFirstPosition']()['parent']);return _0xb61676?[_0x532b28['createRangeIn'](_0xb61676)]:[];}return _0x4e0e7d['getRanges']();}_modifyContent(_0x287b05,_0x12d1f0){for(const _0x35934c of this['_getElementsAllowingText'](_0x287b05)){const _0x2bb2b2=this['_getElementTextContent'](_0x35934c),_0x41e863=this['_transformCallback'](_0x2bb2b2);for(const _0x35036c of this['_getTextNodesRangeLimited'](_0x35934c,_0x287b05))this['_replaceTextNodeData'](_0x35036c,_0x41e863,_0x12d1f0);}}_findAncestorTextBlock(_0x2563da){const _0x2e8c8c=this['editor']['model']['schema'];if(_0x2563da['is']('element')&&_0x2e8c8c['checkChild'](_0x2563da,'$text'))return _0x2563da;const _0x149f3a=_0x2563da['parent'];return!_0x149f3a||_0x2e8c8c['isLimit'](_0x2563da)?null:this['_findAncestorTextBlock'](_0x149f3a);}*_getElementsAllowingText(_0x5de08e){const _0x130399=new Set();for(const {item:_0x40c0b9}of _0x5de08e['getWalker']()){const _0x7ee1da=this['_findAncestorTextBlock'](_0x40c0b9);_0x7ee1da&&!_0x130399['has'](_0x7ee1da)&&(_0x130399['add'](_0x7ee1da),yield _0x7ee1da);}}_getElementTextContent(_0x4a3e6c){return Array['from'](_0x4a3e6c['getChildren']())['reduce']((_0x1c426e,_0x1197af)=>_0x1c426e+(_0x1197af['is']('$text')?_0x1197af['data']:'\x20'),'');}*_getTextNodesRangeLimited(_0x50c5ee,_0x2cbfac){const _0x8dd989=_0x2cbfac['getIntersection'](this['editor']['model']['createRangeIn'](_0x50c5ee));if(_0x8dd989){for(const _0x1c60e4 of _0x8dd989['getItems']())_0x1c60e4['is']('$textProxy')&&_0x1c60e4['parent']==_0x50c5ee&&(yield _0x1c60e4);}}_replaceTextNodeData(_0x17056a,_0x17134d,_0x4b0a40){const _0x3749a7=_0x17134d['substring'](_0x17056a['startOffset'],_0x17056a['endOffset']);if(_0x3749a7===_0x17056a['data'])return;const _0x456efb=_0x17056a['getAttributes']();this['editor']['model']['insertContent'](_0x4b0a40['createText'](_0x3749a7,_0x456efb),_0x4b0a40['createSelection'](_0x4b0a40['createRangeOn'](_0x17056a)));}};function w(_0x43e1ce,_0x23acdf,..._0x211b51){const t=_0x43e1ce['t'];switch(_0x23acdf){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x211b51);default:return _0x23acdf;}}var g=class extends _0xd5c2bc{_currentCommandIndex=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x521410=this['editor'],_0x16036a=_0x521410['locale']['contentLanguage'],_0x5239d8=function(_0x246ce6=[]){return'function'==typeof _0x246ce6?_0x246ce6:(_0x51cc62,{wordIndex:_0x2ad3fd})=>_0x2ad3fd>0x0&&_0x246ce6['includes'](_0x51cc62);}(_0x521410['config']['get']('caseChange.titleCase.excludeWords')),_0x22aecf={'changeCaseUpper':new h(_0x521410,_0x459239=>_0x459239['toLocaleUpperCase'](_0x16036a)),'changeCaseLower':new h(_0x521410,_0x1ff967=>_0x1ff967['toLocaleLowerCase'](_0x16036a)),'changeCaseTitle':new h(_0x521410,_0x30ab72=>function(_0x413661,_0x3a9d73,_0x1cf3b7){return function(_0xe9bb40,_0x3bbd8c){let _0x1b6657='',_0x363d82=0x0,_0x4d3fef=0x0;for(const _0x3dd963 of _0xe9bb40['matchAll'](/ +/g)){const _0x5bb633=_0x3dd963['index'],_0xbe8ad6=_0xe9bb40['substring'](_0x363d82,_0x5bb633);_0xbe8ad6['length']&&(_0x1b6657+=_0x3bbd8c(_0xbe8ad6,_0x363d82,_0x4d3fef++)),_0x1b6657+=_0x3dd963[0x0],_0x363d82=_0x5bb633+_0x3dd963[0x0]['length'];}const _0x4ce127=_0xe9bb40['substring'](_0x363d82);return _0x4ce127['length']&&(_0x1b6657+=_0x3bbd8c(_0x4ce127,_0x363d82,_0x4d3fef)),_0x1b6657;}(_0x413661,(_0x39166d,_0xa29935,_0x55cf85)=>{const _0x597af4=_0x39166d['toLocaleLowerCase'](_0x1cf3b7);return _0x3a9d73(_0x597af4,{'charOffset':_0xa29935,'wordIndex':_0x55cf85,'blockText':_0x413661})?_0x597af4:_0x597af4['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x4c6942=>_0x4c6942['toLocaleUpperCase'](_0x1cf3b7));});}(_0x30ab72,_0x5239d8,_0x16036a))};for(const [_0x29e4bc,_0x4cebab]of Object['entries'](_0x22aecf))_0x521410['commands']['add'](_0x29e4bc,_0x4cebab),_0x4cebab['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x29e4bc);});this['listenTo'](_0x521410['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x521410['keystrokes']['set']('shift+f3',(_0x16a84e,_0x38ccd4)=>{const _0x994cc4=m(this['editor']['locale']),_0x3f85a2=_0x994cc4[this['_currentCommandIndex']%_0x994cc4['length']]['commandName'];_0x521410['execute'](_0x3f85a2),this['_currentCommandIndex']++,_0x38ccd4();});}afterInit(){!async function(_0xf7fe29){const _0x45f7da='EMDS3dsLoJY0nbe9cmlCrXyaZ8zpPqN6jxThf7gwBi2KFOVUWRAG14HQIkut5v',_0xe95963=0x791a0,_0x2960f9=window['Date']['now'](),_0x537587=_0xf7fe29['editor'],_0x20f7fe=new window['Promise'](_0x193b8b=>{_0x537587['once']('ready',_0x193b8b);}),_0x5f1fc7={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3c742f=_0x537587['config']['get']('licenseKey');async function _0x25276d(){let _0x65fe87,_0x47e80a=null,_0x3f62c8=null;try{return'GPL'==_0x3c742f?'NotAllowed':(_0x65fe87=_0x393e5c(),_0x65fe87?(_0x65fe87['usageEndpoint']&&(_0x3f62c8=_0x4e343b(_0x65fe87['usageEndpoint'],_0x65fe87['jti'])),await _0x418550()?_0x58fac1()?_0x43aa30()?'Expired':_0x47aeae()?('evaluation'==_0x65fe87['licenseType']&&(_0x47e80a=_0x22fe42('EvaluationLimit')),await _0x5328b2()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x43aa30(){const _0x3a10b3=['evaluation','trial']['includes'](_0x65fe87['licenseType'])?_0x2960f9/0x3e8:0xe10*_0xe95963;return _0x65fe87['exp']<_0x3a10b3;}function _0x58fac1(){const _0x51a1ab=_0x65fe87['features'];return!!_0x51a1ab&&(!!_0x51a1ab['includes']('*')||(!!_0x51a1ab['includes']('CC')||!!_0x51a1ab['includes']('PP')));}function _0x47aeae(){const _0x5b1fbc=_0x65fe87['licensedHosts'];if(!_0x5b1fbc||0x0==_0x5b1fbc['length'])return!0x0;const {hostname:_0x36dd7b}=new URL(window['location']['href']);if(_0x5b1fbc['includes'](_0x36dd7b))return!0x0;const _0x55058b=_0x36dd7b['split']('.');return _0x5b1fbc['filter'](_0x44638e=>_0x44638e['includes']('*'))['map'](_0x1ffe60=>_0x1ffe60['split']('.'))['filter'](_0x95394a=>_0x95394a['length']<=_0x55058b['length'])['map'](_0x3ad43f=>Array(_0x55058b['length']-_0x3ad43f['length'])['fill']('*'===_0x3ad43f[0x0]?'*':'')['concat'](_0x3ad43f))['some'](_0x38cb67=>_0x55058b['every']((_0x54abc8,_0x5213e9)=>_0x38cb67[_0x5213e9]===_0x54abc8||'*'===_0x38cb67[_0x5213e9]));}function _0x5328b2(){return _0x47e80a&&_0x3f62c8?new window['Promise']((_0x343d96,_0x52be34)=>{_0x47e80a['then'](_0x343d96,_0x52be34),_0x3f62c8['then'](_0x1f8b36=>{'Valid'!=_0x1f8b36&&_0x343d96(_0x1f8b36);},_0x52be34);}):_0x47e80a||_0x3f62c8||'Valid';}}function _0x4e343b(_0x25b299,_0x8f81f5){return new window['Promise'](_0x164438=>{if(_0x260a8c())return _0x164438('Valid');_0x333f67(),_0x537587['decorate']('_sendUsageRequest');let _0x168f0e=!0x1;const _0x37353c=_0x12cd33();function _0x5229c8(_0x1716c1){return!!_0x1716c1&&('object'==typeof _0x1716c1||'function'==typeof _0x1716c1)&&'function'==typeof _0x1716c1['then']&&'function'==typeof _0x1716c1['catch'];}function _0x298c7b(_0x1f07fa){_0x4c27c7(_0x1f07fa)['then'](_0x1bb6c4=>_0x1bb6c4&&'ok'==_0x1bb6c4['status']?_0x20ad35(_0x1ff31b(_0x37353c+_0x8f81f5))!=_0x1bb6c4['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x16be06=>(_0x22202b(),_0x16be06),()=>{const _0x55490d=_0x134e5d();return null==_0x55490d?(_0x22202b(),'Valid'):_0x2960f9-_0x55490d>0x240c8400?'UsageLimit':'Valid';})['then'](_0x164438)['catch'](()=>{_0x164438('UsageLimit');});const _0x4cd961=0x36ee80;function _0x22202b(){const _0x1f595c='llct-'+_0x20ad35(_0x1ff31b(_0x25b299)),_0x52dd1e=_0x285d1a(_0x20ad35(window['Math']['ceil'](_0x2960f9/_0x4cd961)));window['localStorage']['setItem'](_0x1f595c,_0x52dd1e);}function _0x134e5d(){const _0x39fb2f='llct-'+_0x20ad35(_0x1ff31b(_0x25b299)),_0x257808=window['localStorage']['getItem'](_0x39fb2f);return _0x257808?window['parseInt'](_0x285d1a(_0x257808),0x10)*_0x4cd961:null;}function _0x4c27c7(_0x2c4d64){return new window['Promise']((_0x98a662,_0x3d842a)=>{_0x2c4d64['then'](_0x98a662,_0x3d842a),window['setTimeout'](_0x3d842a,0x1d4c0);});}}_0x537587['on']('_sendUsageRequest',(_0x3a9776,_0x2ac6e9)=>{if(_0x2ac6e9[0x0]!=_0x25b299)return _0x164438('UsageLimit');_0x2ac6e9[0x1]={..._0x2ac6e9[0x1],'requestId':_0x37353c};},{'priority':'high'}),_0x537587['on']('_sendUsageRequest',_0x5d2200=>{_0x5229c8(_0x5d2200['return'])&&(_0x168f0e=!0x0,_0x298c7b(_0x5d2200['return']));},{'priority':'low'}),_0x20f7fe['then'](()=>{_0x168f0e||_0x164438('UsageLimit');});});function _0x260a8c(){return'auto'==_0x537587['editing']['view']['_overlayModeHint'];}function _0x333f67(){_0x537587['editing']['view']['_overlayModeHint']='auto';}}function _0x22fe42(_0x48d684){const _0xb8c5ba=[new window['Promise'](_0x1e52bd=>setTimeout(_0x1e52bd,0x93ecc)),_0x20f7fe['then'](()=>new window['Promise'](_0x34e1c7=>{let _0xdd67c=0x0;_0x537587['model']['on']('applyOperation',(_0x2c5e45,_0xdfd6bb)=>{_0xdfd6bb[0x0]['isDocumentOperation']&&_0xdd67c++,0x5e8==_0xdd67c&&(_0x34e1c7(),_0x2c5e45['off']());});}))];return window['Promise']['race'](_0xb8c5ba)['then'](()=>_0x48d684);}async function _0x2c7c5a(){await _0x20f7fe,_0x537587['model']['change']=_0x56eb25,_0x537587['model']['enqueueChange']=_0x56eb25,_0x537587['enableReadOnlyMode']('model');}function _0x19e7c8(_0x239cbf){const _0x2bd888=_0x531406();_0x537587[_0x2bd888]='caseChangeLicenseKey'+_0x239cbf,'Valid'!=_0x239cbf&&_0x2c7c5a();}function _0x531406(){const _0x5f199a=window['String'](window['performance']['now']())['replace']('.','');let _0x3a4954='E';for(let _0x259b1b=0x0;_0x259b1b<_0x5f199a['length'];_0x259b1b+=0x2){let _0x2d6514=window['parseInt'](_0x5f199a['substring'](_0x259b1b,_0x259b1b+0x2));_0x2d6514>=0x3e&&(_0x2d6514-=0x3e),_0x3a4954+=_0x45f7da[_0x2d6514];}return _0x3a4954;}function _0x393e5c(){const _0x40a336=_0x3c742f['split']('.');if(0x3!=_0x40a336['length'])return null;return _0x43f12a(_0x40a336[0x1]);function _0x43f12a(_0x5d5648){const _0x395eb1=_0x2900d7(_0x5d5648);return _0x395eb1&&_0x2deb43()?_0x395eb1:null;function _0x2deb43(){const _0x14448b=_0x395eb1['jti'],_0x23b182=window['parseInt'](_0x14448b['substring'](_0x14448b['length']-0x8),0x10),_0x15e169={..._0x395eb1,'jti':_0x14448b['substring'](0x0,_0x14448b['length']-0x8)};return delete _0x15e169['vc'],_0x1ff31b(_0x15e169)==_0x23b182;}}}async function _0x418550(){let _0x3342cb=!0x0;try{const [_0x31d148,_0x3f55e9,_0x482864]=_0x3c742f['split']('.');return _0x52c177(_0x31d148),await _0x34c721(_0x31d148,_0x3f55e9,_0x482864),_0x3342cb;}catch{return!0x1;}function _0x52c177(_0x1e007f){const _0x401fd0=_0x2900d7(_0x1e007f);_0x401fd0&&'ES256'==_0x401fd0['alg']||(_0x3342cb=!0x1);}async function _0x34c721(_0x3f5be6,_0x5ed526,_0x5cf54f){const _0x165dad=window['Uint8Array']['from'](_0x43e4e4(_0x5cf54f),_0x300526=>_0x300526['charCodeAt'](0x0)),_0x48d229=new window['TextEncoder']()['encode'](_0x3f5be6+'.'+_0x5ed526),_0x362f36=window['crypto']['subtle'];if(!_0x362f36)return;const _0x224504=await _0x362f36['importKey']('jwk',_0x5f1fc7,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x362f36['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x224504,_0x165dad,_0x48d229)||(_0x3342cb=!0x1);}}function _0x2900d7(_0x23fdf1){return _0x23fdf1['startsWith']('ey')?JSON['parse'](_0x43e4e4(_0x23fdf1)):null;}function _0x43e4e4(_0x33e6ff){return window['atob'](_0x33e6ff['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1ff31b(_0xe1bf14){let _0x256e2d=0x1505;function _0x580662(_0x4f84b1){for(let _0x58d421=0x0;_0x58d421<_0x4f84b1['length'];_0x58d421++){const _0x2da14a=_0x4f84b1['charCodeAt'](_0x58d421);_0x256e2d=(_0x256e2d<<0x5)+_0x256e2d+_0x2da14a,_0x256e2d&=_0x256e2d;}}function _0x54b422(_0x26716a){Array['isArray'](_0x26716a)?_0x26716a['forEach'](_0x54b422):_0x26716a&&'object'==typeof _0x26716a?Object['entries'](_0x26716a)['sort']()['forEach'](([_0x5c1e04,_0x1430f2])=>{_0x580662(_0x5c1e04),_0x54b422(_0x1430f2);}):_0x580662(window['String'](_0x26716a));}return _0x54b422(_0xe1bf14),_0x256e2d>>>0x0;}function _0x20ad35(_0x3e76ec){return _0x3e76ec['toString'](0x10)['padStart'](0x8,'0');}function _0x285d1a(_0xc0b75d){return _0xc0b75d['split']('')['reverse']()['join']('');}function _0x56eb25(){}_0x19e7c8(await _0x25276d());}(this);}_announceCaseChangeOperation(_0x4409b3){const {ui:_0x26ad6f,locale:_0x37bead}=this['editor'],_0x33e50a=m(_0x37bead)['find'](_0x35b7c5=>_0x35b7c5['commandName']===_0x4409b3)['label']['toLowerCase']();_0x26ad6f['ariaLiveAnnouncer']['announce'](w(_0x37bead,'Changed\x20case\x20to\x20%0',_0x33e50a));}};function m(_0x476c47){return[{'label':w(_0x476c47,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x476c47,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x476c47,'Title\x20Case'),'commandName':'changeCaseTitle'}];}var C=class extends _0xd5c2bc{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x28b1d4=this['editor'];this['_registerComponents'](),_0x28b1d4['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0x28b1d4['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x23204d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x149061;for(const _0x468d73 in _0x23204d){const _0x207890=_0x468d73,_0x4c69ba=_0x23204d[_0x207890];if('caseChangeLicenseKeyValid'==_0x4c69ba||'caseChangeLicenseKeyInvalid'==_0x4c69ba||'caseChangeLicenseKeyExpired'==_0x4c69ba||'caseChangeLicenseKeyDomainLimit'==_0x4c69ba||'caseChangeLicenseKeyNotAllowed'==_0x4c69ba||'caseChangeLicenseKeyEvaluationLimit'==_0x4c69ba||'caseChangeLicenseKeyUsageLimit'==_0x4c69ba){delete _0x23204d[_0x207890],_0x149061=_0x4c69ba,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x149061&&_0x23204d['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x149061&&_0x23204d['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x149061&&_0x23204d['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x149061&&_0x23204d['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x149061&&_0x23204d['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x149061&&_0x23204d['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_registerComponents(){const _0x10066c=this['editor'],{itemDefinitions:_0xb320ba,commands:_0x560805}=this['_getListItemDefinitionsAndCommands']();_0x10066c['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0xb320ba,_0x560805)),_0x10066c['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0xb320ba,_0x560805));}_createMenuBarMenuView(_0x3366d1,_0x300411){const _0xbb1cc3=this['editor'],_0x47550c=_0xbb1cc3['locale'],_0x52d666=new _0x5587b0(_0x47550c),_0x997d41=new _0x4aa46b(_0x47550c);_0x997d41['set']({'ariaLabel':w(_0x47550c,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x52d666['buttonView']),_0x52d666['bind']('isEnabled')['toMany'](_0x300411,'isEnabled',(..._0x3880a8)=>_0x3880a8['some'](_0x2738f4=>_0x2738f4));for(const _0x2a4c2d of _0x3366d1){const _0x3a56cc=new _0x3b317f(_0x47550c,_0x52d666),_0x62ef7c=new _0x3a797b(_0x47550c);_0x62ef7c['delegate']('execute')['to'](_0x52d666),_0x62ef7c['bind'](...Object['keys'](_0x2a4c2d['model']))['to'](_0x2a4c2d['model']),_0x62ef7c['on']('execute',()=>{_0xbb1cc3['execute'](_0x2a4c2d['model']['commandName']),_0xbb1cc3['editing']['view']['focus']();}),_0x3a56cc['children']['add'](_0x62ef7c),_0x997d41['items']['add'](_0x3a56cc);}return _0x52d666['panelView']['children']['add'](_0x997d41),_0x52d666;}_createDropdownView(_0x569be0,_0x32818a){const _0x2a46d1=this['editor'],_0x161906=_0x28c350(_0x2a46d1['locale']);return this['_setButtonProperties'](_0x161906['buttonView']),_0x161906['buttonView']['set']({'tooltip':!0x0}),_0x161906['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x4a3b4e(_0x161906,_0x569be0,{'ariaLabel':w(_0x2a46d1['locale'],'Case\x20change'),'role':'menu'}),_0x161906['bind']('isEnabled')['toMany'](_0x32818a,'isEnabled',(..._0x51ed11)=>_0x51ed11['some'](_0x9b06e0=>_0x9b06e0)),this['listenTo'](_0x161906,'execute',_0x5c33ec=>{_0x2a46d1['execute'](_0x5c33ec['source']['commandName']),_0x2a46d1['editing']['view']['focus']();}),_0x161906;}_setButtonProperties(_0x873129){const _0x372931=this['editor'];_0x873129['set']({'label':w(_0x372931['locale'],'Case\x20change'),'icon':_0x38245e,'keystroke':'Shift+F3'});}_getListItemDefinitionsAndCommands(){const _0x21cba6=new _0x1a0868(),_0x289cdd=[];for(const _0x232406 of m(this['editor']['locale'])){const _0x5827e8=this['editor']['commands']['get'](_0x232406['commandName']),_0x5edf8f=new _0x4243cf({'commandName':_0x232406['commandName'],'label':_0x232406['label'],'role':'menuitemradio','withText':!0x0});_0x5edf8f['bind']('isEnabled')['to'](_0x5827e8,'isEnabled'),_0x21cba6['add']({'type':'button','model':_0x5edf8f}),_0x289cdd['push'](_0x5827e8);}return{'itemDefinitions':_0x21cba6,'commands':_0x289cdd};}},y=class extends _0xd5c2bc{static get requires(){return[g,C];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{y as CaseChange,h as CaseChangeCommand,g as CaseChangeEditing,C as CaseChangeUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-case-change",
3
- "version": "48.4.0-alpha.4",
3
+ "version": "48.4.0-alpha.5",
4
4
  "description": "Case change feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -36,11 +36,11 @@
36
36
  "./package.json": "./package.json"
37
37
  },
38
38
  "dependencies": {
39
- "@ckeditor/ckeditor5-core": "48.4.0-alpha.4",
40
- "@ckeditor/ckeditor5-engine": "48.4.0-alpha.4",
41
- "@ckeditor/ckeditor5-icons": "48.4.0-alpha.4",
42
- "@ckeditor/ckeditor5-ui": "48.4.0-alpha.4",
43
- "@ckeditor/ckeditor5-utils": "48.4.0-alpha.4"
39
+ "@ckeditor/ckeditor5-core": "48.4.0-alpha.5",
40
+ "@ckeditor/ckeditor5-engine": "48.4.0-alpha.5",
41
+ "@ckeditor/ckeditor5-icons": "48.4.0-alpha.5",
42
+ "@ckeditor/ckeditor5-ui": "48.4.0-alpha.5",
43
+ "@ckeditor/ckeditor5-utils": "48.4.0-alpha.5"
44
44
  },
45
45
  "files": [
46
46
  "dist",