@ckeditor/ckeditor5-uploadcare 48.3.0-alpha.6 → 48.3.0-alpha.8
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 +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x38312c,Plugin as _0x4ed235}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x21e5ea,IconError as _0x5d8761,IconFacebook as _0x347f1c,IconGoogleDrive as _0x1c19ca,IconGooglePhotos as _0x2a9cb0,IconOneDrive as _0x50a445,IconUploadcareImageEdit as _0x1c5ed4,IconUploadcareImageUpload as _0x3446f8,IconUploadcareLink as _0x477f61}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x19a98d,Dialog as _0x3b9cae,DialogViewPosition as _0x1e19ab,FocusCycler as _0x114e35,IconView as _0xeb33e,MenuBarMenuListItemButtonView as _0x1af474,Notification as _0x2d4350,SpinnerView as _0x1c9eb5,View as _0x137e78}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0xe444f5,FocusTracker as _0x574dfd,ObservableMixin as _0x40116e,createElement as _0x1f2a94,getAncestors as _0x2f13fc,global as _0x274c3d,uid as _0x364ef9}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x302259,ImageUploadEditing as _0xa0604c,ImageUploadProgress as _0x5af029,ImageUtils as _0x2a4bd,PictureEditing as _0x98f42}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x28edbf}from'@ckeditor/ckeditor5-upload';import{info as _0xfe4ad9,uploadFile as _0x2ce744}from'@uploadcare/upload-client';import*as _0x23321e from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x5aa2cd,_0x33c7e8,_0x296759){const t=_0x5aa2cd['t'],_0x1e2dd8=_0x5aa2cd['t'];switch(_0x33c7e8){case'local':return{'text':_0x1e2dd8('Insert'===_0x296759?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1e2dd8('From\x20computer')};case'url':return{'text':'Insert'===_0x296759?_0x1e2dd8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1e2dd8('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x296759?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x296759?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x296759?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x296759?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x296759?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x33c7e8;}}var V=class extends _0x4ed235{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xc9536c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x282e84;for(const _0x2d4140 in _0xc9536c){const _0x577810=_0x2d4140,_0x5f05d3=_0xc9536c[_0x577810];if('uploadcareLicenseKeyValid'==_0x5f05d3||'uploadcareLicenseKeyInvalid'==_0x5f05d3||'uploadcareLicenseKeyExpired'==_0x5f05d3||'uploadcareLicenseKeyDomainLimit'==_0x5f05d3||'uploadcareLicenseKeyNotAllowed'==_0x5f05d3||'uploadcareLicenseKeyEvaluationLimit'==_0x5f05d3||'uploadcareLicenseKeyUsageLimit'==_0x5f05d3){delete _0xc9536c[_0x577810],_0x282e84=_0x5f05d3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x282e84&&_0xc9536c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x282e84&&_0xc9536c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x282e84&&_0xc9536c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x282e84&&_0xc9536c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x282e84&&_0xc9536c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x282e84&&_0xc9536c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4f0836}=this,_0x32563b=_0x4f0836['commands']['get']('uploadcare');if(!_0x32563b)return;const _0x38db40=this['_normalizeConfigSourceList'](_0x4f0836['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x43283b,_0x4a378d)=>{const _0x568f1c=this['_getIntegrationKey'](_0x4a378d['type']);return _0x43283b[_0x568f1c]||(_0x43283b[_0x568f1c]=[]),_0x43283b[_0x568f1c]['push'](_0x4a378d),_0x43283b;},{});_0x4f0836['plugins']['has']('ImageInsertUI')&&_0x4f0836['commands']['get']('uploadcare')&&Object['entries'](_0x38db40)['forEach'](([_0x1a8688,_0x4049f9])=>{_0x4f0836['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1a8688,'observable':()=>_0x32563b,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4049f9),'formViewCreator':()=>this['_createDropdownButtons'](_0x4049f9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4049f9),'override':'assetManager'!==_0x1a8688});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5f3a2b){const {locale:_0x4ba2cd}=this['editor'];return _0x5f3a2b['map'](_0x490d4a=>{const _0x280128=T(_0x4ba2cd,_0x490d4a,'Insert');switch(_0x490d4a){case'local':return{'icon':_0x3446f8,'type':'local',..._0x280128};case'url':return{'icon':_0x477f61,'type':'url',..._0x280128};case'dropbox':return{'icon':_0x21e5ea,'type':'dropbox',..._0x280128};case'facebook':return{'icon':_0x347f1c,'type':'facebook',..._0x280128};case'gdrive':return{'icon':_0x1c19ca,'type':'gdrive',..._0x280128};case'gphotos':return{'icon':_0x2a9cb0,'type':'gphotos',..._0x280128};case'onedrive':return{'icon':_0x50a445,'type':'onedrive',..._0x280128};}});}['_getIntegrationKey'](_0x1a0e86){switch(_0x1a0e86){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x18c128,_0x5c02fb){const _0x4dba85=this['editor'],_0x2a493a=new _0x18c128(_0x4dba85['locale']),_0x56d5db=_0x4dba85['commands']['get']('uploadcare');return _0x2a493a['bind']('isEnabled')['to'](_0x56d5db),_0x2a493a['on']('execute',()=>{_0x56d5db['execute'](_0x5c02fb);}),_0x2a493a;}['_createToolbarButton'](_0x9ee9b7){const {locale:_0x3780c1}=this['editor'],_0x511ab0=this['editor']['plugins']['get']('ImageInsertUI'),_0x152caa=_0x9ee9b7[0x0],_0x855b86=this['_createButton'](_0x19a98d,_0x152caa['type']);return _0x855b86['icon']=_0x152caa['icon'],_0x855b86['bind']('label')['to'](_0x511ab0,'isImageSelected',_0x44c8f3=>T(_0x3780c1,_0x152caa['type'],_0x44c8f3?'Replace':'Insert')['text']),_0x855b86['tooltip']=!0x0,_0x855b86;}['_createDropdownButtons'](_0x2be350){const {locale:_0x56d234}=this['editor'],_0x53c032=this['editor']['plugins']['get']('ImageInsertUI');return _0x2be350['map'](_0x5df0a3=>{const _0x4c88d9=this['_createButton'](_0x19a98d,_0x5df0a3['type']);return _0x4c88d9['withText']=!0x0,_0x4c88d9['icon']=_0x5df0a3['icon'],_0x4c88d9['bind']('label')['to'](_0x53c032,'isImageSelected',_0x101e9a=>T(_0x56d234,_0x5df0a3['type'],_0x101e9a?'Replace':'Insert')['text']),_0x4c88d9;});}['_createMenuBarButtons'](_0x9d3bc7){return _0x9d3bc7['map'](_0x32cb7a=>{const _0x133831=this['_createButton'](_0x1af474,_0x32cb7a['type']);return _0x133831['icon']=_0x32cb7a['icon'],_0x133831['label']=_0x32cb7a['shortText'],_0x133831;});}},F=class extends _0x137e78{['focusTracker'];['focusCycler'];constructor(_0x40cf5e){super(_0x40cf5e),this['focusTracker']=new _0x574dfd(),this['focusCycler']=new _0x114e35({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}},$=class extends F{constructor(_0x2a97fe,_0x50e892){super(_0x2a97fe),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x50e892}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x30b0c1,_0x5b8401){const _0x48f81d=_0x30b0c1['replace'](/\/$/,'');return{'imageFallbackUrl':_0x30b0c1,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2e1e5c=>_0x2e1e5c<_0x5b8401)['map'](_0x35406f=>_0x48f81d+'/-/resize/'+_0x35406f+'x/\x20'+_0x35406f+'w'),_0x30b0c1+'\x20'+_0x5b8401+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5b8401+'px)\x20100vw,\x20'+_0x5b8401+'px','type':'image/webp'}]};}function j(_0x1c063a,_0x33d4b4,_0x11941d){const _0x3ab3a5=_0x1c063a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3ab3a5?parseInt(_0x3ab3a5[0x1],0xa):_0x33d4b4,'height':_0x3ab3a5?parseInt(_0x3ab3a5[0x2],0xa):_0x11941d};}function q(_0x1d3c65,_0x52d872){const _0x138d18=new(_0xe444f5())(),_0x3c8f64=_0x1d3c65['plugins']['get']('ImageUtils'),_0x1496c1=_0x1d3c65['editing']['mapper']['toViewElement'](_0x52d872),_0x1498ab=_0x3c8f64['findViewImgElement'](_0x1496c1),_0x811d42=_0x1d3c65['editing']['view']['domConverter']['viewToDom'](_0x1498ab),_0x516ad0=_0x52d872['getAttribute']('width'),_0x4cc2f3=_0x52d872['getAttribute']('height'),_0x1d6002='image-processing';_0x1d3c65['editing']['view']['change'](_0x403b4a=>{_0x403b4a['addClass'](_0x1d6002,_0x1496c1),_0x403b4a['setStyle']('aspect-ratio',_0x516ad0+'/'+_0x4cc2f3,_0x1498ab);}),_0x138d18['listenTo'](_0x811d42,'load',()=>{_0x138d18['stopListening'](_0x811d42,'load'),_0x1d3c65['editing']['view']['change'](_0x148d1e=>{_0x148d1e['removeClass'](_0x1d6002,_0x1496c1),_0x148d1e['removeStyle']('aspect-ratio',_0x1498ab);});});}function M(_0x5b12a9){if(Array['isArray'](_0x5b12a9)){const _0x378426=_0x5b12a9['map'](M);return _0x24356d=>_0x378426['some'](_0x8147ca=>_0x8147ca(_0x24356d));}if('origin'==_0x5b12a9){const _0x382671=_0x274c3d['window']['location']['origin'];return _0x276d40=>new URL(_0x276d40,_0x274c3d['document']['baseURI'])['origin']==_0x382671;}return'function'==typeof _0x5b12a9?_0x5b12a9:_0x5b12a9 instanceof RegExp?_0x249de2=>!(!_0x249de2['match'](_0x5b12a9)&&!_0x249de2['replace'](/^https?:\/\//,'')['match'](_0x5b12a9)):()=>!0x1;}function H(_0xa42b7d,_0x379830){return _0x2f13fc(_0xa42b7d['target'])['includes'](_0x379830);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x40116e();var G=class extends W{['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x595d8a,_0x2bf701,_0x4acaa8){super(),this['_editor']=_0x595d8a,this['_editing']=_0x2bf701,this['_dialog']=_0x595d8a['plugins']['get'](_0x3b9cae),this['_api']=_0x2bf701['ctxElement']['getAPI'](),this['_type']=_0x4acaa8,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x264a4c,model:_0x35b2cc}=this['_editor'],_0xbb1bbb=_0x35b2cc['document']['selection']['getSelectedElement'](),_0x1fa531=_0xbb1bbb&&(_0xbb1bbb['is']('element','imageBlock')||_0xbb1bbb['is']('element','imageInline'));this['_formView']=new $(_0x264a4c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3446f8,'title':T(_0x264a4c,this['_type'],_0x1fa531?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1e19ab['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x472047=>!H(_0x472047,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3ffe58}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x13fada=>{const _0x341ea6=_0x3ffe58['length'];for(const _0x44f493 of _0x3ffe58){const _0x414336=_0x44f493===_0x3ffe58[_0x341ea6-0x1],{cdnUrl:_0x44a464,fileInfo:_0x33cb6b}=_0x44f493;if(!_0x44a464||!_0x33cb6b)continue;const {width:_0x2a7631,height:_0x2b1551}=_0x33cb6b['imageInfo'],_0x29467e=j(_0x44a464,_0x2a7631,_0x2b1551),_0x3cbe4b=B(_0x44a464,_0x29467e['width']),_0x57dc96={'id':_0x33cb6b['uuid'],'type':'image','attributes':{'imageDimension':_0x29467e,..._0x3cbe4b}};this['_insertAsset'](_0x57dc96,_0x414336,_0x13fada);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1d1032=>{'idle'===_0x1d1032['detail']['status']&&!_0x1d1032['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x2c3591,_0x394fae,_0xdb4c80){const _0x3efe50=this['_editor']['model']['document']['selection'],_0x3b67fc=_0x3efe50['getSelectedElement'](),_0x323f33=!(!_0x3b67fc||!_0x3b67fc['is']('element','imageInline'));_0xdb4c80['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2c3591,_0x323f33),_0x394fae||_0xdb4c80['setSelection'](_0x3efe50['getLastPosition']());}['_insertImage'](_0x52aa5b,_0x5555a5){const _0x43b638=this['_editor'],{imageDimension:_0x1b053d,imageFallbackUrl:_0x31c65d,imageSources:_0x1ea67c}=_0x52aa5b['attributes'];_0x43b638['execute']('insertImage',{'imageType':_0x5555a5?'imageInline':null,'source':{'uploadcareImageId':_0x52aa5b['id'],'src':_0x31c65d,'sources':_0x1ea67c,..._0x1b053d}});}},z=class extends _0x38312c{['_editing'];['_controller']=null;static get['requires'](){return[_0x3b9cae,Z];}constructor(_0xc8abb4){super(_0xc8abb4),this['_editing']=_0xc8abb4['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2d4d7b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x2d4d7b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x5d0dc1,..._0x34583c}){return _0x2ce744(_0x5d0dc1,_0x34583c);}static['getInfo'](_0x82b3f8,_0x55bf63){return _0xfe4ad9(_0x82b3f8,_0x55bf63);}},J=class extends _0x4ed235{static get['requires'](){return[_0xa0604c,_0x5af029,_0x28edbf,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x48b317=this['editor'];if(!_0x48b317['config']['get']('uploadcare'))return;_0x48b317['plugins']['get'](_0x28edbf)['createUploadAdapter']=_0x15b1a4=>new X(_0x15b1a4,_0x48b317),_0x48b317['plugins']['get'](_0xa0604c)['on']('uploadComplete',(_0x59f1af,{imageElement:_0x43d479,data:_0x606d5d})=>{_0x48b317['model']['change'](_0x1e1d53=>{_0x1e1d53['setAttribute']('uploadcareImageId',_0x606d5d['uploadcareImageId'],_0x43d479);});});}},X=class{['loader'];['editor'];['controller'];constructor(_0x4ba4ff,_0x168810){this['loader']=_0x4ba4ff,this['editor']=_0x168810,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x56c9bb=await this['loader']['file'];return Q['upload']({'file':_0x56c9bb,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x229ba4=>{_0x229ba4&&_0x229ba4['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x229ba4['value']);}})['then'](async _0x1a50b5=>{const {imageFallbackUrl:_0x4659ea,imageSources:_0x3d8ba6}=B(_0x1a50b5['cdnUrl'],_0x1a50b5['imageInfo']['width']);return{'uploadcareImageId':_0x1a50b5['uuid'],'default':_0x4659ea,'sources':_0x3d8ba6};})['catch'](()=>{const _0x3f8fff=t('Cannot\x20upload\x20file:')+('\x20'+_0x56c9bb['name']+'.');return Promise['reject'](_0x3f8fff);});}['abort'](){this['controller']['abort']();}},Z=class extends _0x4ed235{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x98f42,J,_0x3b9cae];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2352a8){super(_0x2352a8),this['ucContextId']=_0x364ef9();}['init'](){const _0x3d2980=this['editor'];_0x3d2980['commands']['add']('uploadcare',new z(_0x3d2980));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x45fb86=_0x274c3d['document']['querySelector']('input[uploadcare-file-input]');_0x45fb86&&_0x45fb86['remove']();}),async function(_0x4352df){const _0xf3298b='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x48e334=0x78e58,_0x4b8686=window['Date']['now'](),_0x2878e8=_0x4352df['editor'],_0x409bb0=new window['Promise'](_0x496f18=>{_0x2878e8['once']('ready',_0x496f18);}),_0x4e6900={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x6f94fd=_0x2878e8['config']['get']('licenseKey');async function _0x20a008(){let _0x1743fe,_0x3e40a0=null,_0x3a6733=null;try{return'GPL'==_0x6f94fd?'NotAllowed':(_0x1743fe=_0xa6bb6a(),_0x1743fe?(_0x1743fe['usageEndpoint']&&(_0x3a6733=_0x2e4e69(_0x1743fe['usageEndpoint'],_0x1743fe['jti'])),await _0x4d20ad()?_0x33305()?_0x14bca0()?'Expired':_0xf148b8()?('evaluation'==_0x1743fe['licenseType']&&(_0x3e40a0=_0x789f52('EvaluationLimit')),await _0x3d7b5a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x14bca0(){const _0x4bf490=['evaluation','trial']['includes'](_0x1743fe['licenseType'])?_0x4b8686/0x3e8:0xe10*_0x48e334;return _0x1743fe['exp']<_0x4bf490;}function _0x33305(){const _0x473be8=_0x1743fe['features'];return!!_0x473be8&&(!!_0x473be8['includes']('*')||!!_0x473be8['includes']('UPLC'));}function _0xf148b8(){const _0x482596=_0x1743fe['licensedHosts'];if(!_0x482596||0x0==_0x482596['length'])return!0x0;const {hostname:_0x4e9853}=new URL(window['location']['href']);if(_0x482596['includes'](_0x4e9853))return!0x0;const _0x226eef=_0x4e9853['split']('.');return _0x482596['filter'](_0x476e5b=>_0x476e5b['includes']('*'))['map'](_0x1c910b=>_0x1c910b['split']('.'))['filter'](_0x3ea098=>_0x3ea098['length']<=_0x226eef['length'])['map'](_0x184c07=>Array(_0x226eef['length']-_0x184c07['length'])['fill']('*'===_0x184c07[0x0]?'*':'')['concat'](_0x184c07))['some'](_0x4e44c7=>_0x226eef['every']((_0x4132db,_0xc17daf)=>_0x4e44c7[_0xc17daf]===_0x4132db||'*'===_0x4e44c7[_0xc17daf]));}function _0x3d7b5a(){return _0x3e40a0&&_0x3a6733?new window['Promise']((_0xd19682,_0x2d38ec)=>{_0x3e40a0['then'](_0xd19682,_0x2d38ec),_0x3a6733['then'](_0x28c7a3=>{'Valid'!=_0x28c7a3&&_0xd19682(_0x28c7a3);},_0x2d38ec);}):_0x3e40a0||_0x3a6733||'Valid';}}function _0x2e4e69(_0x32a83c,_0x26c892){return new window['Promise'](_0x3a0405=>{if(_0x2597f0())return _0x3a0405('Valid');_0x302afb(),_0x2878e8['decorate']('_sendUsageRequest');let _0x10d53d=!0x1;const _0x42c6f9=_0x364ef9();function _0x3928a8(_0x236359){return!!_0x236359&&('object'==typeof _0x236359||'function'==typeof _0x236359)&&'function'==typeof _0x236359['then']&&'function'==typeof _0x236359['catch'];}function _0xa75143(_0x2a2b5e){_0x363df5(_0x2a2b5e)['then'](_0x36ab3c=>_0x36ab3c&&'ok'==_0x36ab3c['status']?_0x44c4e9(_0x4f10d7(_0x42c6f9+_0x26c892))!=_0x36ab3c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x385e11=>(_0x2e2c94(),_0x385e11),()=>{const _0x5c1452=_0x49d816();return null==_0x5c1452?(_0x2e2c94(),'Valid'):_0x4b8686-_0x5c1452>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3a0405)['catch'](()=>{_0x3a0405('UsageLimit');});const _0x39ea28=0x36ee80;function _0x2e2c94(){const _0x229125='llct-'+_0x44c4e9(_0x4f10d7(_0x32a83c)),_0x387c48=_0x4369e7(_0x44c4e9(window['Math']['ceil'](_0x4b8686/_0x39ea28)));window['localStorage']['setItem'](_0x229125,_0x387c48);}function _0x49d816(){const _0x102daa='llct-'+_0x44c4e9(_0x4f10d7(_0x32a83c)),_0x1e88b7=window['localStorage']['getItem'](_0x102daa);return _0x1e88b7?window['parseInt'](_0x4369e7(_0x1e88b7),0x10)*_0x39ea28:null;}function _0x363df5(_0x5e43e4){return new window['Promise']((_0x3205c2,_0x297f35)=>{_0x5e43e4['then'](_0x3205c2,_0x297f35),window['setTimeout'](_0x297f35,0x1d4c0);});}}_0x2878e8['on']('_sendUsageRequest',(_0x56b8b4,_0x39daaf)=>{if(_0x39daaf[0x0]!=_0x32a83c)return _0x3a0405('UsageLimit');_0x39daaf[0x1]={..._0x39daaf[0x1],'requestId':_0x42c6f9};},{'priority':'high'}),_0x2878e8['on']('_sendUsageRequest',_0x35ea93=>{_0x3928a8(_0x35ea93['return'])&&(_0x10d53d=!0x0,_0xa75143(_0x35ea93['return']));},{'priority':'low'}),_0x409bb0['then'](()=>{_0x10d53d||_0x3a0405('UsageLimit');});});function _0x2597f0(){return'auto'==_0x2878e8['editing']['view']['_overlayModeHint'];}function _0x302afb(){_0x2878e8['editing']['view']['_overlayModeHint']='auto';}}function _0x789f52(_0x344184){const _0xd93470=[new window['Promise'](_0x129e9e=>setTimeout(_0x129e9e,0x93ecc)),_0x409bb0['then'](()=>new window['Promise'](_0x3ae295=>{let _0x5423f2=0x0;_0x2878e8['model']['on']('applyOperation',(_0x329144,_0x5c432b)=>{_0x5c432b[0x0]['isDocumentOperation']&&_0x5423f2++,0x5e8==_0x5423f2&&(_0x3ae295(),_0x329144['off']());});}))];return window['Promise']['race'](_0xd93470)['then'](()=>_0x344184);}async function _0x20d6a0(){await _0x409bb0,_0x2878e8['model']['change']=_0x24beff,_0x2878e8['model']['enqueueChange']=_0x24beff,_0x2878e8['enableReadOnlyMode']('model');}function _0xdb66c2(_0x18d255){const _0x2c33d4=_0x12d181();_0x2878e8[_0x2c33d4]='uploadcareLicenseKey'+_0x18d255,'Valid'!=_0x18d255&&_0x20d6a0();}function _0x12d181(){const _0x2b106b=window['String'](window['performance']['now']())['replace']('.','');let _0x38d5a3='h';for(let _0x5aa773=0x0;_0x5aa773<_0x2b106b['length'];_0x5aa773+=0x2){let _0x24f518=window['parseInt'](_0x2b106b['substring'](_0x5aa773,_0x5aa773+0x2));_0x24f518>=0x3e&&(_0x24f518-=0x3e),_0x38d5a3+=_0xf3298b[_0x24f518];}return _0x38d5a3;}function _0xa6bb6a(){const _0x3092f0=_0x6f94fd['split']('.');if(0x3!=_0x3092f0['length'])return null;return _0x4b7411(_0x3092f0[0x1]);function _0x4b7411(_0x360d13){const _0x1842a4=_0x3f5c54(_0x360d13);return _0x1842a4&&_0x140a5d()?_0x1842a4:null;function _0x140a5d(){const _0xb6bed7=_0x1842a4['jti'],_0x66d4c8=window['parseInt'](_0xb6bed7['substring'](_0xb6bed7['length']-0x8),0x10),_0x229eef={..._0x1842a4,'jti':_0xb6bed7['substring'](0x0,_0xb6bed7['length']-0x8)};return delete _0x229eef['vc'],_0x4f10d7(_0x229eef)==_0x66d4c8;}}}async function _0x4d20ad(){let _0x5d1b41=!0x0;try{const [_0x5090bb,_0x296d2e,_0x1d4e88]=_0x6f94fd['split']('.');return _0x2abcab(_0x5090bb),await _0x31c7e3(_0x5090bb,_0x296d2e,_0x1d4e88),_0x5d1b41;}catch{return!0x1;}function _0x2abcab(_0xc5edf8){const _0x4f2605=_0x3f5c54(_0xc5edf8);_0x4f2605&&'ES256'==_0x4f2605['alg']||(_0x5d1b41=!0x1);}async function _0x31c7e3(_0x2147c8,_0x376dfc,_0x2571eb){const _0x8516ea=window['Uint8Array']['from'](_0x3534e3(_0x2571eb),_0x34451d=>_0x34451d['charCodeAt'](0x0)),_0x4cb8a0=new window['TextEncoder']()['encode'](_0x2147c8+'.'+_0x376dfc),_0xa12db5=window['crypto']['subtle'];if(!_0xa12db5)return;const _0xda74eb=await _0xa12db5['importKey']('jwk',_0x4e6900,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xa12db5['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0xda74eb,_0x8516ea,_0x4cb8a0)||(_0x5d1b41=!0x1);}}function _0x3f5c54(_0xd208b1){return _0xd208b1['startsWith']('ey')?JSON['parse'](_0x3534e3(_0xd208b1)):null;}function _0x3534e3(_0x3e10c0){return window['atob'](_0x3e10c0['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4f10d7(_0x16ef3c){let _0x768ddf=0x1505;function _0x331e5f(_0x2f15b6){for(let _0x2c4b58=0x0;_0x2c4b58<_0x2f15b6['length'];_0x2c4b58++){const _0x441cf2=_0x2f15b6['charCodeAt'](_0x2c4b58);_0x768ddf=(_0x768ddf<<0x5)+_0x768ddf+_0x441cf2,_0x768ddf&=_0x768ddf;}}function _0x531a2e(_0x3aa2e2){Array['isArray'](_0x3aa2e2)?_0x3aa2e2['forEach'](_0x531a2e):_0x3aa2e2&&'object'==typeof _0x3aa2e2?Object['entries'](_0x3aa2e2)['sort']()['forEach'](([_0x2b4b93,_0x473594])=>{_0x331e5f(_0x2b4b93),_0x531a2e(_0x473594);}):_0x331e5f(window['String'](_0x3aa2e2));}return _0x531a2e(_0x16ef3c),_0x768ddf>>>0x0;}function _0x44c4e9(_0x35a55d){return _0x35a55d['toString'](0x10)['padStart'](0x8,'0');}function _0x4369e7(_0x1838ea){return _0x1838ea['split']('')['reverse']()['join']('');}function _0x24beff(){}_0xdb66c2(await _0x20a008());}(this);}['_initSchema'](){const _0x21d7f6=this['editor']['model']['schema'];_0x21d7f6['isRegistered']('imageBlock')&&_0x21d7f6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x21d7f6['isRegistered']('imageInline')&&_0x21d7f6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x24b0ca=this['editor'];_0x24b0ca['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x24b0ca['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xf1f759=>_0xf1f759['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x7de974=_0x24b0ca['commands']['get']('replaceImageSource');_0x7de974&&this['listenTo'](_0x7de974,'cleanupImage',(_0x77d839,[_0xb432c7,_0x1697db])=>{_0xb432c7['removeAttribute']('uploadcareImageId',_0x1697db);});}['_initConfig'](){const _0x10fed3=this['editor']['config']['get']('uploadcare.uploader')||{},_0x7f3a15=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1f2a94(_0x274c3d['document'],'uc-config',{..._0x10fed3,'pubkey':_0x7f3a15,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x430868=>{if('closeMax'==_0x430868)return'#uc-icon-arrow-down';},_0x274c3d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1f2a94(_0x274c3d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x274c3d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1b04f5=this['editor']['commands']['get']('insertImage');_0x1b04f5&&this['listenTo'](_0x1b04f5,'execute',()=>{const _0x409e9b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x409e9b&&_0x409e9b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x409e9b);});});const _0x974363=this['editor']['commands']['get']('uploadcareImageReplace');_0x974363&&this['listenTo'](_0x974363,'execute',()=>{const _0xf5637a=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf5637a&&_0xf5637a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0xf5637a);});});}},Y=class extends _0x4ed235{static get['requires'](){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e19c1){super(_0x1e19c1),_0x1e19c1['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x23321e['defineComponents'](_0x23321e),this['_defineLocale']();}['_defineLocale'](){const _0x105e0b=this['editor']['config']['get']('uploadcare.locale'),_0x1f099e=this['editor']['locale']['contentLanguage'];_0x105e0b&&_0x23321e['defineLocale'](_0x1f099e,_0x105e0b);}},tt=class extends _0x137e78{constructor(_0x34439c){super(_0x34439c);const t=_0x34439c['t'],_0x273e4a=this['bindTemplate'],_0x1b0504=new _0x1c9eb5();_0x1b0504['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x1b0504,{'text':_0x273e4a['to']('imageUploadProgress',_0x574104=>t('Loading\x20image...')+'\x20('+(_0x574104||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}},et=class extends _0x137e78{constructor(_0x3b0132){super(_0x3b0132);const t=_0x3b0132['t'];this['set']('errorType',null);const _0x44acb3=new _0x19a98d(_0x3b0132);_0x44acb3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x44acb3['withText']=!0x0,_0x44acb3['class']='ck-button-action',_0x44acb3['on']('execute',()=>{this['fire']('retry');}),_0x44acb3['bind']('isVisible')['to'](this,'errorType',_0x3e959e=>'NotFound'!==_0x3e959e);const _0x2b908a=new _0xeb33e();_0x2b908a['content']=_0x5d8761,_0x2b908a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xcf2b33=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x2b908a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xcf2b33['to']('errorType',_0x5d4e13=>t('NotFound'!==_0x5d4e13?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x44acb3]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}},it=class extends _0x137e78{constructor(_0x4e6c53,_0x361a0f){super(_0x4e6c53);const _0x3eafbb=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x361a0f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3eafbb['to']('imageSrc')}});}},st=class extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x27dd6f,_0x1c53fc,_0xa9bf91){super(_0x27dd6f),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x27dd6f),this['_errorView']=new et(_0x27dd6f),this['_editingView']=new it(_0x27dd6f,_0xa9bf91),this['_focusableView']=new _0x137e78(_0x27dd6f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1c53fc),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x1fdb80=>{this['_addUploadcareImageEditorListeners'](_0x1fdb80);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x81f0a4,_0x3449d1){const _0x56bfd5='uc-cloud-image-editor',_0x191889=_0x81f0a4['querySelector'](_0x56bfd5);if(_0x191889)return _0x3449d1(_0x191889);const _0x54da51=new MutationObserver(_0x92864a=>{const _0x2c42ab=_0x92864a['filter'](_0x5d4ae0=>_0x5d4ae0['target']===_0x81f0a4&&_0x5d4ae0['addedNodes']['length']>0x0&&_0x5d4ae0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x56bfd5);_0x2c42ab['length']&&(_0x54da51['disconnect'](),_0x3449d1(_0x2c42ab[0x0]['addedNodes'][0x0]));});_0x54da51['observe'](_0x81f0a4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1ab348){_0x1ab348['addEventListener']('apply',_0x2e3381=>{this['fire']('apply',{'imageSrc':_0x2e3381['detail']['cdnUrl']});}),_0x1ab348['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x40116e();var nt=class extends rt{['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x802ad6,_0x335ce1,_0x2bfefb){super(),this['_editor']=_0x802ad6,this['_dialog']=_0x335ce1,this['_imageElement']=_0x2bfefb,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x491d3b=this['_imageElement'],_0x43b682=_0x491d3b['getAttribute']('uploadcareImageId'),_0x47bf87=_0x491d3b['getAttribute']('src');if(_0x43b682)await this['_loadImageInfo'](_0x43b682,_0x47bf87);else{if(this['_imageCache']['has'](_0x47bf87)){const _0x205050=this['_imageCache']['get'](_0x47bf87);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x205050['url'],this['imageDimension']=_0x205050['dimension'],this['imageId']=_0x205050['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2e26b1}=this['_editor'],t=_0x2e26b1['t'],_0x522b73=new st(_0x2e26b1,this['imageStatus'],this['_attributes']);_0x522b73['bind']('status')['to'](this,'imageStatus'),_0x522b73['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x522b73['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x522b73['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x522b73,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1c5ed4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x522b73,'position':_0x1e19ab['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x522b73['focus']();},'onHide':()=>{_0x522b73['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xbaa6d8=>!H(_0xbaa6d8,_0x522b73['element'])}});}['_loadImageInfo'](_0x181cdb,_0x5452e1){return Q['getInfo'](_0x181cdb,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1840b4=>{const {width:_0x3f390a,height:_0x40a4b2}=_0x1840b4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5452e1,this['imageDimension']={'width':_0x3f390a,'height':_0x40a4b2},this['imageId']=_0x181cdb;})['catch'](_0x3b2d49=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b2d49['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x11a996,_0x40555f){return this['_getImageAsFile'](_0x11a996)['then'](_0x3c9cf7=>Q['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x40555f['signal'],'file':_0x3c9cf7,'onProgress':_0x43c0ed=>{_0x43c0ed&&_0x43c0ed['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x43c0ed['value']));}}))['then'](_0x203b29=>{const {width:_0x437f48,height:_0x4d2ba}=_0x203b29['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x203b29['cdnUrl'],this['imageDimension']={'width':_0x437f48,'height':_0x4d2ba},this['imageId']=_0x203b29['uuid'],this['imageUploadProgress']=null;const _0x3f0914=_0x11a996['getAttribute']('src');this['_imageCache']['set'](_0x3f0914,{'id':_0x203b29['uuid'],'url':_0x203b29['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4dc2a0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4dc2a0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1d6bae,_0x4c93f0){_0x1d6bae['on']('apply',(_0x1a97cb,_0x3f52aa)=>{this['_replaceImage'](_0x4c93f0,_0x3f52aa['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1d6bae['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1d6bae['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3465da,_0x4d4c22,_0x18648a){const _0x2435c4=this['_editor'],{width:_0x54e187,height:_0x5c5f24}=j(_0x4d4c22,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x385120,imageSources:_0x29e587}=B(_0x4d4c22,_0x54e187);_0x2435c4['model']['change'](_0xe883a4=>{if('$graveyard'!==_0x3465da['root']['rootName'])_0xe883a4['setSelection'](_0x3465da,'on'),_0x2435c4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3465da['getAttributes']()),'uploadcareImageId':_0x18648a,'src':_0x385120,'sources':_0x29e587,'width':_0x54e187,'height':_0x5c5f24},_0x3465da);else{_0x2435c4['execute']('insertImage',{'imageType':_0x3465da['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3465da['getAttributes']()),'uploadcareImageId':_0x18648a,'src':_0x385120,'sources':_0x29e587,'width':_0x54e187,'height':_0x5c5f24}});const _0xb91c93=_0x3465da['getChildren']();_0x3465da=_0x2435c4['model']['document']['selection']['getSelectedElement']();for(const _0x4086ee of _0xb91c93)_0xe883a4['append'](_0xe883a4['cloneElement'](_0x4086ee),_0x3465da);}_0xe883a4['setSelection'](_0x3465da,'on');});}async['_getImageAsFile'](_0x50fad4){const _0x4942c3=_0x274c3d['window'],_0x356147=_0x274c3d['document']['location']['href'],_0x4328e6=new _0x4942c3['URL'](_0x50fad4['getAttribute']('src'),_0x356147);if('data:'===_0x4328e6['protocol']){const _0xcf2477=_0x4328e6['href']['split'](','),_0x11f2cf=_0xcf2477[0x0]['match'](/:(.*?);/)[0x1],_0x2745b2=_0x11f2cf['split']('/')[0x1],_0x2fb303=_0x4942c3['atob'](_0xcf2477[_0xcf2477['length']-0x1]);let _0x15d893=_0x2fb303['length'];const _0x1d53e=new _0x4942c3['Uint8Array'](_0x15d893);for(;_0x15d893--;)_0x1d53e[_0x15d893]=_0x2fb303['charCodeAt'](_0x15d893);return new _0x4942c3['File']([_0x1d53e],'image.'+_0x2745b2,{'type':_0x11f2cf});}const _0x2e6a80=_0x4328e6['href']['split']('/'),_0x4e4b20=_0x2e6a80[_0x2e6a80['length']-0x1],_0x5006a0=_0x4e4b20['split']('.')[0x1];return _0x4942c3['fetch'](_0x4328e6['href'])['then'](_0x5be715=>_0x5be715['clone']()['blob']())['then'](_0x4171b8=>new _0x4942c3['File']([_0x4171b8],_0x4e4b20,{'type':'image/'+_0x5006a0}));}},at=class extends _0x38312c{['imageEditController'];static get['requires'](){return[_0x3b9cae];}['_isEditable'];constructor(_0x2c2e92){super(_0x2c2e92),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x259dcc){const _0x5be92c=M(_0x259dcc);return _0x231379=>!(!_0x231379||!_0x231379['is']('element','imageBlock')&&!_0x231379['is']('element','imageInline'))&&(!!_0x231379['hasAttribute']('uploadcareImageId')||!!_0x231379['hasAttribute']('src')&&_0x5be92c(_0x231379['getAttribute']('src')));}(_0x2c2e92['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4e670d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4e670d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x232cca=this['editor']['model']['document']['selection']['getSelectedElement']();_0x232cca&&(_0x232cca['is']('element','imageBlock')||_0x232cca['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x3b9cae),_0x232cca),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x38312c{['refresh'](){const _0x1bbd8c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1bbd8c&&(_0x1bbd8c['is']('element','imageBlock')||_0x1bbd8c['is']('element','imageInline')));}['execute'](_0x113987){const _0x57e914=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x49fbeb=>{_0x49fbeb['setAttributes'](_0x113987,_0x57e914),_0x49fbeb['removeAttribute']('srcset',_0x57e914),_0x49fbeb['removeAttribute']('sizes',_0x57e914);});}},ct=class extends _0x4ed235{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[Z,_0x2d4350,_0x2a4bd,_0x302259];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ca0c2}=this;_0x4ca0c2['commands']['add']('uploadcareImageEdit',new at(_0x4ca0c2)),_0x4ca0c2['commands']['add']('uploadcareImageReplace',new ot(_0x4ca0c2));}},lt=class extends _0x4ed235{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x241510=this['editor'];_0x241510['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4acab6=>{const _0x31b9e5=_0x241510['commands']['get']('uploadcareImageEdit'),_0xcba91d=new _0x19a98d(_0x4acab6),t=_0x4acab6['t'];return _0xcba91d['set']({'icon':_0x1c5ed4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xcba91d['bind']('isEnabled')['to'](_0x31b9e5),_0xcba91d['bind']('isOn')['to'](_0x31b9e5,'isActive'),this['listenTo'](_0xcba91d,'execute',()=>{_0x241510['execute']('uploadcareImageEdit'),_0x241510['editing']['view']['focus']();}),_0xcba91d;}),this['_initConfig']();}['_initConfig'](){const _0xaa3b09=_0x1f2a94(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xaa3b09),this['listenTo'](this['editor'],'destroy',()=>{_0xaa3b09['remove']();});}},ut=class extends _0x4ed235{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[ct,lt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{Y as Uploadcare,z as UploadcareCommand,Z as UploadcareEditing,ut as UploadcareImageEdit,at as UploadcareImageEditCommand,ct as UploadcareImageEditEditing,lt as UploadcareImageEditUI,V as UploadcareUI,J as UploadcareUploadAdapter};
|
|
23
|
+
import{Command as _0x436ac0,Plugin as _0x6a6e99}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x1bc819,IconError as _0x2b8b6d,IconFacebook as _0x5a5b76,IconGoogleDrive as _0x5989b1,IconGooglePhotos as _0x2e6c57,IconOneDrive as _0x442e9d,IconUploadcareImageEdit as _0x1356e4,IconUploadcareImageUpload as _0x29ab6c,IconUploadcareLink as _0x4b4df9}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x53a1de,Dialog as _0x3c11e9,DialogViewPosition as _0x534030,FocusCycler as _0x19818d,IconView as _0x2473f6,MenuBarMenuListItemButtonView as _0x56aeff,Notification as _0x324d33,SpinnerView as _0x480c90,View as _0x31efed}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x217f30,FocusTracker as _0x112e8b,ObservableMixin as _0x5081c4,createElement as _0x545518,getAncestors as _0x101cd7,global as _0x2f4c45,uid as _0x43ac13}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x1e46c7,ImageUploadEditing as _0x2d33b1,ImageUploadProgress as _0x3b61e2,ImageUtils as _0x555374,PictureEditing as _0x5da174}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x53a4a5}from'@ckeditor/ckeditor5-upload';import{info as _0x5dd516,uploadFile as _0xc18d66}from'@uploadcare/upload-client';import*as _0x5d8a36 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x6e26ce,_0x8d72d3,_0x32f38c){const t=_0x6e26ce['t'],_0x58450c=_0x6e26ce['t'];switch(_0x8d72d3){case'local':return{'text':_0x58450c('Insert'===_0x32f38c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x58450c('From\x20computer')};case'url':return{'text':'Insert'===_0x32f38c?_0x58450c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x58450c('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x32f38c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x32f38c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x32f38c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x32f38c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x32f38c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x8d72d3;}}var V=class extends _0x6a6e99{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c1bf9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a2900;for(const _0x110beb in _0x1c1bf9){const _0x111f24=_0x110beb,_0x119e89=_0x1c1bf9[_0x111f24];if('uploadcareLicenseKeyValid'==_0x119e89||'uploadcareLicenseKeyInvalid'==_0x119e89||'uploadcareLicenseKeyExpired'==_0x119e89||'uploadcareLicenseKeyDomainLimit'==_0x119e89||'uploadcareLicenseKeyNotAllowed'==_0x119e89||'uploadcareLicenseKeyEvaluationLimit'==_0x119e89||'uploadcareLicenseKeyUsageLimit'==_0x119e89){delete _0x1c1bf9[_0x111f24],_0x2a2900=_0x119e89,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2a2900&&_0x1c1bf9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2a2900&&_0x1c1bf9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2a2900&&_0x1c1bf9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2a2900&&_0x1c1bf9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2a2900&&_0x1c1bf9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2a2900&&_0x1c1bf9['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x259dba}=this,_0x29a8ff=_0x259dba['commands']['get']('uploadcare');if(!_0x29a8ff)return;const _0x2e346c=this['_normalizeConfigSourceList'](_0x259dba['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5359e3,_0x412b1e)=>{const _0x1ccceb=this['_getIntegrationKey'](_0x412b1e['type']);return _0x5359e3[_0x1ccceb]||(_0x5359e3[_0x1ccceb]=[]),_0x5359e3[_0x1ccceb]['push'](_0x412b1e),_0x5359e3;},{});_0x259dba['plugins']['has']('ImageInsertUI')&&_0x259dba['commands']['get']('uploadcare')&&Object['entries'](_0x2e346c)['forEach'](([_0x112bb8,_0x4e4c16])=>{_0x259dba['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x112bb8,'observable':()=>_0x29a8ff,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4e4c16),'formViewCreator':()=>this['_createDropdownButtons'](_0x4e4c16),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4e4c16),'override':'assetManager'!==_0x112bb8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x51ef32){const {locale:_0x5cbe8e}=this['editor'];return _0x51ef32['map'](_0xe9e510=>{const _0x8343aa=T(_0x5cbe8e,_0xe9e510,'Insert');switch(_0xe9e510){case'local':return{'icon':_0x29ab6c,'type':'local',..._0x8343aa};case'url':return{'icon':_0x4b4df9,'type':'url',..._0x8343aa};case'dropbox':return{'icon':_0x1bc819,'type':'dropbox',..._0x8343aa};case'facebook':return{'icon':_0x5a5b76,'type':'facebook',..._0x8343aa};case'gdrive':return{'icon':_0x5989b1,'type':'gdrive',..._0x8343aa};case'gphotos':return{'icon':_0x2e6c57,'type':'gphotos',..._0x8343aa};case'onedrive':return{'icon':_0x442e9d,'type':'onedrive',..._0x8343aa};}});}['_getIntegrationKey'](_0x57641e){switch(_0x57641e){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x18d36a,_0x2496f9){const _0x281c77=this['editor'],_0x48be47=new _0x18d36a(_0x281c77['locale']),_0x1431ee=_0x281c77['commands']['get']('uploadcare');return _0x48be47['bind']('isEnabled')['to'](_0x1431ee),_0x48be47['on']('execute',()=>{_0x1431ee['execute'](_0x2496f9);}),_0x48be47;}['_createToolbarButton'](_0x391c48){const {locale:_0x44684d}=this['editor'],_0x2eec12=this['editor']['plugins']['get']('ImageInsertUI'),_0x1ad027=_0x391c48[0x0],_0x183e22=this['_createButton'](_0x53a1de,_0x1ad027['type']);return _0x183e22['icon']=_0x1ad027['icon'],_0x183e22['bind']('label')['to'](_0x2eec12,'isImageSelected',_0x13fcde=>T(_0x44684d,_0x1ad027['type'],_0x13fcde?'Replace':'Insert')['text']),_0x183e22['tooltip']=!0x0,_0x183e22;}['_createDropdownButtons'](_0x4a7897){const {locale:_0x3ba005}=this['editor'],_0x55f75f=this['editor']['plugins']['get']('ImageInsertUI');return _0x4a7897['map'](_0x416182=>{const _0x2cccd2=this['_createButton'](_0x53a1de,_0x416182['type']);return _0x2cccd2['withText']=!0x0,_0x2cccd2['icon']=_0x416182['icon'],_0x2cccd2['bind']('label')['to'](_0x55f75f,'isImageSelected',_0x1c0dde=>T(_0x3ba005,_0x416182['type'],_0x1c0dde?'Replace':'Insert')['text']),_0x2cccd2;});}['_createMenuBarButtons'](_0x206bd5){return _0x206bd5['map'](_0x200ee8=>{const _0x5c4d80=this['_createButton'](_0x56aeff,_0x200ee8['type']);return _0x5c4d80['icon']=_0x200ee8['icon'],_0x5c4d80['label']=_0x200ee8['shortText'],_0x5c4d80;});}},F=class extends _0x31efed{['focusTracker'];['focusCycler'];constructor(_0x202531){super(_0x202531),this['focusTracker']=new _0x112e8b(),this['focusCycler']=new _0x19818d({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}},$=class extends F{constructor(_0x345e45,_0x4da716){super(_0x345e45),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x4da716}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x399ab0,_0x5c5adc){const _0x5d7c3f=_0x399ab0['replace'](/\/$/,'');return{'imageFallbackUrl':_0x399ab0,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x397a27=>_0x397a27<_0x5c5adc)['map'](_0x23f397=>_0x5d7c3f+'/-/resize/'+_0x23f397+'x/\x20'+_0x23f397+'w'),_0x399ab0+'\x20'+_0x5c5adc+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5c5adc+'px)\x20100vw,\x20'+_0x5c5adc+'px','type':'image/webp'}]};}function j(_0x1034ea,_0x3af15a,_0x212c5b){const _0x26a467=_0x1034ea['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x26a467?parseInt(_0x26a467[0x1],0xa):_0x3af15a,'height':_0x26a467?parseInt(_0x26a467[0x2],0xa):_0x212c5b};}function q(_0x281e3f,_0x5cd1fc){const _0x5f5462=new(_0x217f30())(),_0x57e834=_0x281e3f['plugins']['get']('ImageUtils'),_0x566f5e=_0x281e3f['editing']['mapper']['toViewElement'](_0x5cd1fc),_0x2feda4=_0x57e834['findViewImgElement'](_0x566f5e),_0x4a7df0=_0x281e3f['editing']['view']['domConverter']['viewToDom'](_0x2feda4),_0x4c781e=_0x5cd1fc['getAttribute']('width'),_0x18aecf=_0x5cd1fc['getAttribute']('height'),_0xea3d92='image-processing';_0x281e3f['editing']['view']['change'](_0x29b749=>{_0x29b749['addClass'](_0xea3d92,_0x566f5e),_0x29b749['setStyle']('aspect-ratio',_0x4c781e+'/'+_0x18aecf,_0x2feda4);}),_0x5f5462['listenTo'](_0x4a7df0,'load',()=>{_0x5f5462['stopListening'](_0x4a7df0,'load'),_0x281e3f['editing']['view']['change'](_0x2dfc1d=>{_0x2dfc1d['removeClass'](_0xea3d92,_0x566f5e),_0x2dfc1d['removeStyle']('aspect-ratio',_0x2feda4);});});}function M(_0x406fbb){if(Array['isArray'](_0x406fbb)){const _0x44a869=_0x406fbb['map'](M);return _0x477a15=>_0x44a869['some'](_0x1c6849=>_0x1c6849(_0x477a15));}if('origin'==_0x406fbb){const _0x4bd994=_0x2f4c45['window']['location']['origin'];return _0x1bc20f=>new URL(_0x1bc20f,_0x2f4c45['document']['baseURI'])['origin']==_0x4bd994;}return'function'==typeof _0x406fbb?_0x406fbb:_0x406fbb instanceof RegExp?_0x3ea106=>!(!_0x3ea106['match'](_0x406fbb)&&!_0x3ea106['replace'](/^https?:\/\//,'')['match'](_0x406fbb)):()=>!0x1;}function H(_0x4b2922,_0x25eeea){return _0x101cd7(_0x4b2922['target'])['includes'](_0x25eeea);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5081c4();var G=class extends W{['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x285a05,_0x7ff998,_0x1e123b){super(),this['_editor']=_0x285a05,this['_editing']=_0x7ff998,this['_dialog']=_0x285a05['plugins']['get'](_0x3c11e9),this['_api']=_0x7ff998['ctxElement']['getAPI'](),this['_type']=_0x1e123b,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x1da6bd,model:_0x3f4980}=this['_editor'],_0x34063c=_0x3f4980['document']['selection']['getSelectedElement'](),_0x4e15b6=_0x34063c&&(_0x34063c['is']('element','imageBlock')||_0x34063c['is']('element','imageInline'));this['_formView']=new $(_0x1da6bd,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x29ab6c,'title':T(_0x1da6bd,this['_type'],_0x4e15b6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x534030['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4fdbd7=>!H(_0x4fdbd7,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x59420a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2ada83=>{const _0x3051da=_0x59420a['length'];for(const _0x3e12ab of _0x59420a){const _0x5c9f64=_0x3e12ab===_0x59420a[_0x3051da-0x1],{cdnUrl:_0x3af257,fileInfo:_0x1b0157}=_0x3e12ab;if(!_0x3af257||!_0x1b0157)continue;const {width:_0x2b4de7,height:_0x120440}=_0x1b0157['imageInfo'],_0x4638e7=j(_0x3af257,_0x2b4de7,_0x120440),_0x1d1b5a=B(_0x3af257,_0x4638e7['width']),_0x272847={'id':_0x1b0157['uuid'],'type':'image','attributes':{'imageDimension':_0x4638e7,..._0x1d1b5a}};this['_insertAsset'](_0x272847,_0x5c9f64,_0x2ada83);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5c3bc6=>{'idle'===_0x5c3bc6['detail']['status']&&!_0x5c3bc6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x516aa2,_0x4e441b,_0x3e5f73){const _0x9abe02=this['_editor']['model']['document']['selection'],_0x30d19c=_0x9abe02['getSelectedElement'](),_0x5b8668=!(!_0x30d19c||!_0x30d19c['is']('element','imageInline'));_0x3e5f73['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x516aa2,_0x5b8668),_0x4e441b||_0x3e5f73['setSelection'](_0x9abe02['getLastPosition']());}['_insertImage'](_0x15a48e,_0x5d7d36){const _0x5be7c4=this['_editor'],{imageDimension:_0x38f030,imageFallbackUrl:_0x1abd83,imageSources:_0xecd934}=_0x15a48e['attributes'];_0x5be7c4['execute']('insertImage',{'imageType':_0x5d7d36?'imageInline':null,'source':{'uploadcareImageId':_0x15a48e['id'],'src':_0x1abd83,'sources':_0xecd934,..._0x38f030}});}},z=class extends _0x436ac0{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c11e9,Z];}constructor(_0x91a0f1){super(_0x91a0f1),this['_editing']=_0x91a0f1['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4f208d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x4f208d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0xdfc984,..._0x47f3c5}){return _0xc18d66(_0xdfc984,_0x47f3c5);}static['getInfo'](_0x2f1d45,_0x2bf228){return _0x5dd516(_0x2f1d45,_0x2bf228);}},J=class extends _0x6a6e99{static get['requires'](){return[_0x2d33b1,_0x3b61e2,_0x53a4a5,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4a229b=this['editor'];if(!_0x4a229b['config']['get']('uploadcare'))return;_0x4a229b['plugins']['get'](_0x53a4a5)['createUploadAdapter']=_0x3877f4=>new X(_0x3877f4,_0x4a229b),_0x4a229b['plugins']['get'](_0x2d33b1)['on']('uploadComplete',(_0x4f4046,{imageElement:_0x3f5018,data:_0x4bcc6d})=>{_0x4a229b['model']['change'](_0x3ad450=>{_0x3ad450['setAttribute']('uploadcareImageId',_0x4bcc6d['uploadcareImageId'],_0x3f5018);});});}},X=class{['loader'];['editor'];['controller'];constructor(_0x1b82cc,_0x206646){this['loader']=_0x1b82cc,this['editor']=_0x206646,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x36de0c=await this['loader']['file'];return Q['upload']({'file':_0x36de0c,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x579181=>{_0x579181&&_0x579181['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x579181['value']);}})['then'](async _0x36386e=>{const {imageFallbackUrl:_0x585633,imageSources:_0x2adca6}=B(_0x36386e['cdnUrl'],_0x36386e['imageInfo']['width']);return{'uploadcareImageId':_0x36386e['uuid'],'default':_0x585633,'sources':_0x2adca6};})['catch'](()=>{const _0x3e52c6=t('Cannot\x20upload\x20file:')+('\x20'+_0x36de0c['name']+'.');return Promise['reject'](_0x3e52c6);});}['abort'](){this['controller']['abort']();}},Z=class extends _0x6a6e99{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x5da174,J,_0x3c11e9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1a4e1a){super(_0x1a4e1a),this['ucContextId']=_0x43ac13();}['init'](){const _0x2dcce=this['editor'];_0x2dcce['commands']['add']('uploadcare',new z(_0x2dcce));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x33e978=_0x2f4c45['document']['querySelector']('input[uploadcare-file-input]');_0x33e978&&_0x33e978['remove']();}),async function(_0x4775a4){const _0x12cc0b='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x1b5a33=0x78e88,_0x92222d=window['Date']['now'](),_0x2681ce=_0x4775a4['editor'],_0x1c0905=new window['Promise'](_0x3b0a6a=>{_0x2681ce['once']('ready',_0x3b0a6a);}),_0x436942={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x108ea7=_0x2681ce['config']['get']('licenseKey');async function _0x12d22f(){let _0x5953d0,_0x3e2a2a=null,_0x176079=null;try{return'GPL'==_0x108ea7?'NotAllowed':(_0x5953d0=_0x35bdb7(),_0x5953d0?(_0x5953d0['usageEndpoint']&&(_0x176079=_0x42719d(_0x5953d0['usageEndpoint'],_0x5953d0['jti'])),await _0xc37b4e()?_0x55b03f()?_0x54fd3d()?'Expired':_0x4f48c8()?('evaluation'==_0x5953d0['licenseType']&&(_0x3e2a2a=_0x5ad9fb('EvaluationLimit')),await _0x5ef3cf()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x54fd3d(){const _0x21f61f=['evaluation','trial']['includes'](_0x5953d0['licenseType'])?_0x92222d/0x3e8:0xe10*_0x1b5a33;return _0x5953d0['exp']<_0x21f61f;}function _0x55b03f(){const _0x3e1934=_0x5953d0['features'];return!!_0x3e1934&&(!!_0x3e1934['includes']('*')||!!_0x3e1934['includes']('UPLC'));}function _0x4f48c8(){const _0x336e61=_0x5953d0['licensedHosts'];if(!_0x336e61||0x0==_0x336e61['length'])return!0x0;const {hostname:_0x5f018a}=new URL(window['location']['href']);if(_0x336e61['includes'](_0x5f018a))return!0x0;const _0x332466=_0x5f018a['split']('.');return _0x336e61['filter'](_0x5ecd2a=>_0x5ecd2a['includes']('*'))['map'](_0x4c18dc=>_0x4c18dc['split']('.'))['filter'](_0x54d867=>_0x54d867['length']<=_0x332466['length'])['map'](_0x4b110d=>Array(_0x332466['length']-_0x4b110d['length'])['fill']('*'===_0x4b110d[0x0]?'*':'')['concat'](_0x4b110d))['some'](_0x1ff07a=>_0x332466['every']((_0x218c63,_0x512cdd)=>_0x1ff07a[_0x512cdd]===_0x218c63||'*'===_0x1ff07a[_0x512cdd]));}function _0x5ef3cf(){return _0x3e2a2a&&_0x176079?new window['Promise']((_0xd5bed6,_0x32ca27)=>{_0x3e2a2a['then'](_0xd5bed6,_0x32ca27),_0x176079['then'](_0x28ec20=>{'Valid'!=_0x28ec20&&_0xd5bed6(_0x28ec20);},_0x32ca27);}):_0x3e2a2a||_0x176079||'Valid';}}function _0x42719d(_0x35b913,_0x31a93){return new window['Promise'](_0x2c8d6e=>{if(_0x183ba9())return _0x2c8d6e('Valid');_0x365a15(),_0x2681ce['decorate']('_sendUsageRequest');let _0x3def2a=!0x1;const _0x4f8887=_0x43ac13();function _0x5b00b1(_0x1a3caa){return!!_0x1a3caa&&('object'==typeof _0x1a3caa||'function'==typeof _0x1a3caa)&&'function'==typeof _0x1a3caa['then']&&'function'==typeof _0x1a3caa['catch'];}function _0x5a83ae(_0x3b114c){_0xf13134(_0x3b114c)['then'](_0x302601=>_0x302601&&'ok'==_0x302601['status']?_0x50f892(_0x487d30(_0x4f8887+_0x31a93))!=_0x302601['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5f54ad=>(_0x4b0817(),_0x5f54ad),()=>{const _0x43a816=_0x5bc4ac();return null==_0x43a816?(_0x4b0817(),'Valid'):_0x92222d-_0x43a816>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2c8d6e)['catch'](()=>{_0x2c8d6e('UsageLimit');});const _0x535b5a=0x36ee80;function _0x4b0817(){const _0x4743ad='llct-'+_0x50f892(_0x487d30(_0x35b913)),_0x45290a=_0xbaa5f1(_0x50f892(window['Math']['ceil'](_0x92222d/_0x535b5a)));window['localStorage']['setItem'](_0x4743ad,_0x45290a);}function _0x5bc4ac(){const _0x46a6a4='llct-'+_0x50f892(_0x487d30(_0x35b913)),_0x18d4ab=window['localStorage']['getItem'](_0x46a6a4);return _0x18d4ab?window['parseInt'](_0xbaa5f1(_0x18d4ab),0x10)*_0x535b5a:null;}function _0xf13134(_0x4b2e3e){return new window['Promise']((_0x427eef,_0x1efde3)=>{_0x4b2e3e['then'](_0x427eef,_0x1efde3),window['setTimeout'](_0x1efde3,0x1d4c0);});}}_0x2681ce['on']('_sendUsageRequest',(_0x29bb7e,_0x1097e3)=>{if(_0x1097e3[0x0]!=_0x35b913)return _0x2c8d6e('UsageLimit');_0x1097e3[0x1]={..._0x1097e3[0x1],'requestId':_0x4f8887};},{'priority':'high'}),_0x2681ce['on']('_sendUsageRequest',_0xd384ed=>{_0x5b00b1(_0xd384ed['return'])&&(_0x3def2a=!0x0,_0x5a83ae(_0xd384ed['return']));},{'priority':'low'}),_0x1c0905['then'](()=>{_0x3def2a||_0x2c8d6e('UsageLimit');});});function _0x183ba9(){return'auto'==_0x2681ce['editing']['view']['_overlayModeHint'];}function _0x365a15(){_0x2681ce['editing']['view']['_overlayModeHint']='auto';}}function _0x5ad9fb(_0xdada78){const _0x5a0843=[new window['Promise'](_0x28a01f=>setTimeout(_0x28a01f,0x93ecc)),_0x1c0905['then'](()=>new window['Promise'](_0x3a0b68=>{let _0x2ded37=0x0;_0x2681ce['model']['on']('applyOperation',(_0x1c4ac7,_0x122c19)=>{_0x122c19[0x0]['isDocumentOperation']&&_0x2ded37++,0x5e8==_0x2ded37&&(_0x3a0b68(),_0x1c4ac7['off']());});}))];return window['Promise']['race'](_0x5a0843)['then'](()=>_0xdada78);}async function _0x44b78f(){await _0x1c0905,_0x2681ce['model']['change']=_0x5555b1,_0x2681ce['model']['enqueueChange']=_0x5555b1,_0x2681ce['enableReadOnlyMode']('model');}function _0x1f8e28(_0x5dfccf){const _0x4e5e5c=_0x1c63af();_0x2681ce[_0x4e5e5c]='uploadcareLicenseKey'+_0x5dfccf,'Valid'!=_0x5dfccf&&_0x44b78f();}function _0x1c63af(){const _0x42f66e=window['String'](window['performance']['now']())['replace']('.','');let _0x4548bd='h';for(let _0x563168=0x0;_0x563168<_0x42f66e['length'];_0x563168+=0x2){let _0x1e8452=window['parseInt'](_0x42f66e['substring'](_0x563168,_0x563168+0x2));_0x1e8452>=0x3e&&(_0x1e8452-=0x3e),_0x4548bd+=_0x12cc0b[_0x1e8452];}return _0x4548bd;}function _0x35bdb7(){const _0x544af6=_0x108ea7['split']('.');if(0x3!=_0x544af6['length'])return null;return _0x159b5e(_0x544af6[0x1]);function _0x159b5e(_0x3de6b5){const _0x31d8d8=_0x18cbd5(_0x3de6b5);return _0x31d8d8&&_0x2c7255()?_0x31d8d8:null;function _0x2c7255(){const _0x5010d6=_0x31d8d8['jti'],_0x43c68e=window['parseInt'](_0x5010d6['substring'](_0x5010d6['length']-0x8),0x10),_0x9bde8a={..._0x31d8d8,'jti':_0x5010d6['substring'](0x0,_0x5010d6['length']-0x8)};return delete _0x9bde8a['vc'],_0x487d30(_0x9bde8a)==_0x43c68e;}}}async function _0xc37b4e(){let _0x97d17d=!0x0;try{const [_0xbfdec1,_0x486f9d,_0x1ec4be]=_0x108ea7['split']('.');return _0x1c7e09(_0xbfdec1),await _0x49c933(_0xbfdec1,_0x486f9d,_0x1ec4be),_0x97d17d;}catch{return!0x1;}function _0x1c7e09(_0x28dfb6){const _0x2a9674=_0x18cbd5(_0x28dfb6);_0x2a9674&&'ES256'==_0x2a9674['alg']||(_0x97d17d=!0x1);}async function _0x49c933(_0x4e89e6,_0x1869a6,_0x2f7cc8){const _0x2e527d=window['Uint8Array']['from'](_0x4358c0(_0x2f7cc8),_0x38ad7a=>_0x38ad7a['charCodeAt'](0x0)),_0x164982=new window['TextEncoder']()['encode'](_0x4e89e6+'.'+_0x1869a6),_0x3a4acd=window['crypto']['subtle'];if(!_0x3a4acd)return;const _0x3608f8=await _0x3a4acd['importKey']('jwk',_0x436942,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3a4acd['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3608f8,_0x2e527d,_0x164982)||(_0x97d17d=!0x1);}}function _0x18cbd5(_0x440115){return _0x440115['startsWith']('ey')?JSON['parse'](_0x4358c0(_0x440115)):null;}function _0x4358c0(_0x2bf53e){return window['atob'](_0x2bf53e['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x487d30(_0x441dd7){let _0x2e6e15=0x1505;function _0x1ed423(_0x14c08d){for(let _0x33c0cf=0x0;_0x33c0cf<_0x14c08d['length'];_0x33c0cf++){const _0x30007f=_0x14c08d['charCodeAt'](_0x33c0cf);_0x2e6e15=(_0x2e6e15<<0x5)+_0x2e6e15+_0x30007f,_0x2e6e15&=_0x2e6e15;}}function _0x36431d(_0x874d2a){Array['isArray'](_0x874d2a)?_0x874d2a['forEach'](_0x36431d):_0x874d2a&&'object'==typeof _0x874d2a?Object['entries'](_0x874d2a)['sort']()['forEach'](([_0x1f2c91,_0x2794e7])=>{_0x1ed423(_0x1f2c91),_0x36431d(_0x2794e7);}):_0x1ed423(window['String'](_0x874d2a));}return _0x36431d(_0x441dd7),_0x2e6e15>>>0x0;}function _0x50f892(_0x416ff1){return _0x416ff1['toString'](0x10)['padStart'](0x8,'0');}function _0xbaa5f1(_0x4d0351){return _0x4d0351['split']('')['reverse']()['join']('');}function _0x5555b1(){}_0x1f8e28(await _0x12d22f());}(this);}['_initSchema'](){const _0x452d7c=this['editor']['model']['schema'];_0x452d7c['isRegistered']('imageBlock')&&_0x452d7c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x452d7c['isRegistered']('imageInline')&&_0x452d7c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2ee6e0=this['editor'];_0x2ee6e0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2ee6e0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2b158c=>_0x2b158c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x414cfc=_0x2ee6e0['commands']['get']('replaceImageSource');_0x414cfc&&this['listenTo'](_0x414cfc,'cleanupImage',(_0x5cbea3,[_0x18d2aa,_0x5dde6f])=>{_0x18d2aa['removeAttribute']('uploadcareImageId',_0x5dde6f);});}['_initConfig'](){const _0x5005c4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x530de2=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x545518(_0x2f4c45['document'],'uc-config',{..._0x5005c4,'pubkey':_0x530de2,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x5b1399=>{if('closeMax'==_0x5b1399)return'#uc-icon-arrow-down';},_0x2f4c45['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x545518(_0x2f4c45['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2f4c45['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x257774=this['editor']['commands']['get']('insertImage');_0x257774&&this['listenTo'](_0x257774,'execute',()=>{const _0x13f1d4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x13f1d4&&_0x13f1d4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x13f1d4);});});const _0x5d66e6=this['editor']['commands']['get']('uploadcareImageReplace');_0x5d66e6&&this['listenTo'](_0x5d66e6,'execute',()=>{const _0x1f0ebd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1f0ebd&&_0x1f0ebd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x1f0ebd);});});}},Y=class extends _0x6a6e99{static get['requires'](){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x319a9a){super(_0x319a9a),_0x319a9a['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x5d8a36['defineComponents'](_0x5d8a36),this['_defineLocale']();}['_defineLocale'](){const _0xa449f6=this['editor']['config']['get']('uploadcare.locale'),_0x182539=this['editor']['locale']['contentLanguage'];_0xa449f6&&_0x5d8a36['defineLocale'](_0x182539,_0xa449f6);}},tt=class extends _0x31efed{constructor(_0x1696da){super(_0x1696da);const t=_0x1696da['t'],_0x553244=this['bindTemplate'],_0x26eaf4=new _0x480c90();_0x26eaf4['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x26eaf4,{'text':_0x553244['to']('imageUploadProgress',_0x430651=>t('Loading\x20image...')+'\x20('+(_0x430651||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}},et=class extends _0x31efed{constructor(_0x1ef751){super(_0x1ef751);const t=_0x1ef751['t'];this['set']('errorType',null);const _0xb346f5=new _0x53a1de(_0x1ef751);_0xb346f5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xb346f5['withText']=!0x0,_0xb346f5['class']='ck-button-action',_0xb346f5['on']('execute',()=>{this['fire']('retry');}),_0xb346f5['bind']('isVisible')['to'](this,'errorType',_0x43301a=>'NotFound'!==_0x43301a);const _0x470f04=new _0x2473f6();_0x470f04['content']=_0x2b8b6d,_0x470f04['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3c380c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x470f04,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3c380c['to']('errorType',_0x2e9545=>t('NotFound'!==_0x2e9545?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xb346f5]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}},it=class extends _0x31efed{constructor(_0xeebee7,_0x2aba81){super(_0xeebee7);const _0x2d28f8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2aba81,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2d28f8['to']('imageSrc')}});}},st=class extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4b87d5,_0x34957a,_0x441605){super(_0x4b87d5),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x4b87d5),this['_errorView']=new et(_0x4b87d5),this['_editingView']=new it(_0x4b87d5,_0x441605),this['_focusableView']=new _0x31efed(_0x4b87d5),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x34957a),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x3cd449=>{this['_addUploadcareImageEditorListeners'](_0x3cd449);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x36bf1c,_0xa7093c){const _0x589408='uc-cloud-image-editor',_0x94ae3a=_0x36bf1c['querySelector'](_0x589408);if(_0x94ae3a)return _0xa7093c(_0x94ae3a);const _0x975bdc=new MutationObserver(_0x2fa52b=>{const _0x67212=_0x2fa52b['filter'](_0x995c7d=>_0x995c7d['target']===_0x36bf1c&&_0x995c7d['addedNodes']['length']>0x0&&_0x995c7d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x589408);_0x67212['length']&&(_0x975bdc['disconnect'](),_0xa7093c(_0x67212[0x0]['addedNodes'][0x0]));});_0x975bdc['observe'](_0x36bf1c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2dfd9b){_0x2dfd9b['addEventListener']('apply',_0x4fb5cf=>{this['fire']('apply',{'imageSrc':_0x4fb5cf['detail']['cdnUrl']});}),_0x2dfd9b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5081c4();var nt=class extends rt{['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x69f9a5,_0x3836f0,_0x1d54e0){super(),this['_editor']=_0x69f9a5,this['_dialog']=_0x3836f0,this['_imageElement']=_0x1d54e0,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x3677fe=this['_imageElement'],_0x291879=_0x3677fe['getAttribute']('uploadcareImageId'),_0x34bea1=_0x3677fe['getAttribute']('src');if(_0x291879)await this['_loadImageInfo'](_0x291879,_0x34bea1);else{if(this['_imageCache']['has'](_0x34bea1)){const _0x52bf44=this['_imageCache']['get'](_0x34bea1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x52bf44['url'],this['imageDimension']=_0x52bf44['dimension'],this['imageId']=_0x52bf44['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x156683}=this['_editor'],t=_0x156683['t'],_0x4abe24=new st(_0x156683,this['imageStatus'],this['_attributes']);_0x4abe24['bind']('status')['to'](this,'imageStatus'),_0x4abe24['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4abe24['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4abe24['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4abe24,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1356e4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4abe24,'position':_0x534030['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4abe24['focus']();},'onHide':()=>{_0x4abe24['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x52f631=>!H(_0x52f631,_0x4abe24['element'])}});}['_loadImageInfo'](_0x28b76b,_0x4dff9c){return Q['getInfo'](_0x28b76b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5c2c79=>{const {width:_0x1db07e,height:_0x368e4f}=_0x5c2c79['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4dff9c,this['imageDimension']={'width':_0x1db07e,'height':_0x368e4f},this['imageId']=_0x28b76b;})['catch'](_0x5b7775=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b7775['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x41e68e,_0x4c871c){return this['_getImageAsFile'](_0x41e68e)['then'](_0x502c4e=>Q['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4c871c['signal'],'file':_0x502c4e,'onProgress':_0x43a1ff=>{_0x43a1ff&&_0x43a1ff['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x43a1ff['value']));}}))['then'](_0x40f144=>{const {width:_0x477c2a,height:_0x68203a}=_0x40f144['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40f144['cdnUrl'],this['imageDimension']={'width':_0x477c2a,'height':_0x68203a},this['imageId']=_0x40f144['uuid'],this['imageUploadProgress']=null;const _0x56bf39=_0x41e68e['getAttribute']('src');this['_imageCache']['set'](_0x56bf39,{'id':_0x40f144['uuid'],'url':_0x40f144['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2dc3bb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2dc3bb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4cb6c7,_0x9b780a){_0x4cb6c7['on']('apply',(_0x3c3a19,_0x46c527)=>{this['_replaceImage'](_0x9b780a,_0x46c527['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4cb6c7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4cb6c7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x53c9ac,_0x29d8b9,_0x2b03cb){const _0x5c256a=this['_editor'],{width:_0x3ab105,height:_0x10ba09}=j(_0x29d8b9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x18dd7b,imageSources:_0x46349c}=B(_0x29d8b9,_0x3ab105);_0x5c256a['model']['change'](_0x2d851e=>{if('$graveyard'!==_0x53c9ac['root']['rootName'])_0x2d851e['setSelection'](_0x53c9ac,'on'),_0x5c256a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x53c9ac['getAttributes']()),'uploadcareImageId':_0x2b03cb,'src':_0x18dd7b,'sources':_0x46349c,'width':_0x3ab105,'height':_0x10ba09},_0x53c9ac);else{_0x5c256a['execute']('insertImage',{'imageType':_0x53c9ac['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x53c9ac['getAttributes']()),'uploadcareImageId':_0x2b03cb,'src':_0x18dd7b,'sources':_0x46349c,'width':_0x3ab105,'height':_0x10ba09}});const _0x1e84c2=_0x53c9ac['getChildren']();_0x53c9ac=_0x5c256a['model']['document']['selection']['getSelectedElement']();for(const _0x25d3d8 of _0x1e84c2)_0x2d851e['append'](_0x2d851e['cloneElement'](_0x25d3d8),_0x53c9ac);}_0x2d851e['setSelection'](_0x53c9ac,'on');});}async['_getImageAsFile'](_0x569580){const _0x48838a=_0x2f4c45['window'],_0x14f735=_0x2f4c45['document']['location']['href'],_0x52883a=new _0x48838a['URL'](_0x569580['getAttribute']('src'),_0x14f735);if('data:'===_0x52883a['protocol']){const _0x3787a5=_0x52883a['href']['split'](','),_0xba1046=_0x3787a5[0x0]['match'](/:(.*?);/)[0x1],_0x5b3699=_0xba1046['split']('/')[0x1],_0x4e8649=_0x48838a['atob'](_0x3787a5[_0x3787a5['length']-0x1]);let _0x1ff975=_0x4e8649['length'];const _0x2ee1a1=new _0x48838a['Uint8Array'](_0x1ff975);for(;_0x1ff975--;)_0x2ee1a1[_0x1ff975]=_0x4e8649['charCodeAt'](_0x1ff975);return new _0x48838a['File']([_0x2ee1a1],'image.'+_0x5b3699,{'type':_0xba1046});}const _0x345a1d=_0x52883a['href']['split']('/'),_0x10b2a7=_0x345a1d[_0x345a1d['length']-0x1],_0x44459f=_0x10b2a7['split']('.')[0x1];return _0x48838a['fetch'](_0x52883a['href'])['then'](_0x3eb96f=>_0x3eb96f['clone']()['blob']())['then'](_0x2bdb11=>new _0x48838a['File']([_0x2bdb11],_0x10b2a7,{'type':'image/'+_0x44459f}));}},at=class extends _0x436ac0{['imageEditController'];static get['requires'](){return[_0x3c11e9];}['_isEditable'];constructor(_0x1defb8){super(_0x1defb8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4eea08){const _0x1d78b5=M(_0x4eea08);return _0x3d99dd=>!(!_0x3d99dd||!_0x3d99dd['is']('element','imageBlock')&&!_0x3d99dd['is']('element','imageInline'))&&(!!_0x3d99dd['hasAttribute']('uploadcareImageId')||!!_0x3d99dd['hasAttribute']('src')&&_0x1d78b5(_0x3d99dd['getAttribute']('src')));}(_0x1defb8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5ad2cf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5ad2cf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3315a5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3315a5&&(_0x3315a5['is']('element','imageBlock')||_0x3315a5['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x3c11e9),_0x3315a5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x436ac0{['refresh'](){const _0x298270=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x298270&&(_0x298270['is']('element','imageBlock')||_0x298270['is']('element','imageInline')));}['execute'](_0x55ccba){const _0x3ab769=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5f2976=>{_0x5f2976['setAttributes'](_0x55ccba,_0x3ab769),_0x5f2976['removeAttribute']('srcset',_0x3ab769),_0x5f2976['removeAttribute']('sizes',_0x3ab769);});}},ct=class extends _0x6a6e99{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[Z,_0x324d33,_0x555374,_0x1e46c7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x53f9f0}=this;_0x53f9f0['commands']['add']('uploadcareImageEdit',new at(_0x53f9f0)),_0x53f9f0['commands']['add']('uploadcareImageReplace',new ot(_0x53f9f0));}},lt=class extends _0x6a6e99{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x49888c=this['editor'];_0x49888c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1692ea=>{const _0x5d7036=_0x49888c['commands']['get']('uploadcareImageEdit'),_0x36b4e6=new _0x53a1de(_0x1692ea),t=_0x1692ea['t'];return _0x36b4e6['set']({'icon':_0x1356e4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x36b4e6['bind']('isEnabled')['to'](_0x5d7036),_0x36b4e6['bind']('isOn')['to'](_0x5d7036,'isActive'),this['listenTo'](_0x36b4e6,'execute',()=>{_0x49888c['execute']('uploadcareImageEdit'),_0x49888c['editing']['view']['focus']();}),_0x36b4e6;}),this['_initConfig']();}['_initConfig'](){const _0x3aad17=_0x545518(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3aad17),this['listenTo'](this['editor'],'destroy',()=>{_0x3aad17['remove']();});}},ut=class extends _0x6a6e99{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[ct,lt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{Y as Uploadcare,z as UploadcareCommand,Z as UploadcareEditing,ut as UploadcareImageEdit,at as UploadcareImageEditCommand,ct as UploadcareImageEditEditing,lt as UploadcareImageEditUI,V as UploadcareUI,J as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3a74cd=>0x1!=_0x3a74cd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x40a621=>{const {af:{dictionary:_0xf55f8f,getPluralForm:_0x4c93b7}}={'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x45f98c=>0x1!=_0x45f98c}};_0x40a621['af']||={'dictionary':{},'getPluralForm':null},_0x40a621['af']['dictionary']=Object['assign'](_0x40a621['af']['dictionary'],_0xf55f8f),_0x40a621['af']['getPluralForm']=_0x4c93b7;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x4cf022=>0x0==_0x4cf022?0x0:0x1==_0x4cf022?0x1:0x2==_0x4cf022?0x2:_0x4cf022%0x64>=0x3&&_0x4cf022%0x64<=0xa?0x3:_0x4cf022%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x488bab=>{const {ar:{dictionary:_0x515d2e,getPluralForm:_0x5578dc}}={'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x53104e=>0x0==_0x53104e?0x0:0x1==_0x53104e?0x1:0x2==_0x53104e?0x2:_0x53104e%0x64>=0x3&&_0x53104e%0x64<=0xa?0x3:_0x53104e%0x64>=0xb?0x4:0x5}};_0x488bab['ar']||={'dictionary':{},'getPluralForm':null},_0x488bab['ar']['dictionary']=Object['assign'](_0x488bab['ar']['dictionary'],_0x515d2e),_0x488bab['ar']['getPluralForm']=_0x5578dc;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x1f82f2=>0x1!=_0x1f82f2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x39dc52=>{const {ast:{dictionary:_0x171927,getPluralForm:_0x118051}}={'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2fd6be=>0x1!=_0x2fd6be}};_0x39dc52['ast']||={'dictionary':{},'getPluralForm':null},_0x39dc52['ast']['dictionary']=Object['assign'](_0x39dc52['ast']['dictionary'],_0x171927),_0x39dc52['ast']['getPluralForm']=_0x118051;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2196c3=>0x1!=_0x2196c3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xc6b802=>{const {az:{dictionary:_0x690a19,getPluralForm:_0x5771fb}}={'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x54b7ab=>0x1!=_0x54b7ab}};_0xc6b802['az']||={'dictionary':{},'getPluralForm':null},_0xc6b802['az']['dictionary']=Object['assign'](_0xc6b802['az']['dictionary'],_0x690a19),_0xc6b802['az']['getPluralForm']=_0x5771fb;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0xd6f3ec=>_0xd6f3ec%0xa==0x1&&_0xd6f3ec%0x64!=0xb?0x0:_0xd6f3ec%0xa>=0x2&&_0xd6f3ec%0xa<=0x4&&(_0xd6f3ec%0x64<0xa||_0xd6f3ec%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4eddab=>{const {be:{dictionary:_0x43c479,getPluralForm:_0x11831a}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x100ba2=>_0x100ba2%0xa==0x1&&_0x100ba2%0x64!=0xb?0x0:_0x100ba2%0xa>=0x2&&_0x100ba2%0xa<=0x4&&(_0x100ba2%0x64<0xa||_0x100ba2%0x64>=0x14)?0x1:0x2}};_0x4eddab['be']||={'dictionary':{},'getPluralForm':null},_0x4eddab['be']['dictionary']=Object['assign'](_0x4eddab['be']['dictionary'],_0x43c479),_0x4eddab['be']['getPluralForm']=_0x11831a;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':
|
|
23
|
+
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x289e84=>0x1!=_0x289e84}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x29cb70=>{const {bg:{dictionary:_0x1bd2fc,getPluralForm:_0x2a07b2}}={'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x14d232=>0x1!=_0x14d232}};_0x29cb70['bg']||={'dictionary':{},'getPluralForm':null},_0x29cb70['bg']['dictionary']=Object['assign'](_0x29cb70['bg']['dictionary'],_0x1bd2fc),_0x29cb70['bg']['getPluralForm']=_0x2a07b2;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':
|
|
23
|
+
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x1e800a=>0x1!=_0x1e800a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x558281=>{const {bn:{dictionary:_0x1e988a,getPluralForm:_0x518e7c}}={'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x1ce878=>0x1!=_0x1ce878}};_0x558281['bn']||={'dictionary':{},'getPluralForm':null},_0x558281['bn']['dictionary']=Object['assign'](_0x558281['bn']['dictionary'],_0x1e988a),_0x558281['bn']['getPluralForm']=_0x518e7c;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bs.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x5463d4=>_0x5463d4%0xa==0x1&&_0x5463d4%0x64!=0xb?0x0:_0x5463d4%0xa>=0x2&&_0x5463d4%0xa<=0x4&&(_0x5463d4%0x64<0xa||_0x5463d4%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2fd370=>{const {bs:{dictionary:_0x14e482,getPluralForm:_0x2046e3}}={'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x31918e=>_0x31918e%0xa==0x1&&_0x31918e%0x64!=0xb?0x0:_0x31918e%0xa>=0x2&&_0x31918e%0xa<=0x4&&(_0x31918e%0x64<0xa||_0x31918e%0x64>=0x14)?0x1:0x2}};_0x2fd370['bs']||={'dictionary':{},'getPluralForm':null},_0x2fd370['bs']['dictionary']=Object['assign'](_0x2fd370['bs']['dictionary'],_0x14e482),_0x2fd370['bs']['getPluralForm']=_0x2046e3;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ca.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':
|
|
23
|
+
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0x386594=>0x1!=_0x386594}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2cd7cb=>{const {ca:{dictionary:_0x4c3c6e,getPluralForm:_0x3dde6a}}={'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0x9e8378=>0x1!=_0x9e8378}};_0x2cd7cb['ca']||={'dictionary':{},'getPluralForm':null},_0x2cd7cb['ca']['dictionary']=Object['assign'](_0x2cd7cb['ca']['dictionary'],_0x4c3c6e),_0x2cd7cb['ca']['getPluralForm']=_0x3dde6a;})(window['CKEDITOR_TRANSLATIONS']||={});
|