@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250327.0 → 0.0.0-nightly-20250328.0
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/build/uploadcare.js +1 -1
- 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/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 +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x27c674,Command as _0xa68079}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x54e74f,IconGooglePhotos as _0x575229,IconGoogleDrive as _0xbe0e6e,IconFacebook as _0x14f727,IconDropbox as _0x308b88,IconUploadcareLink as _0x454d12,IconUploadcareImageUpload as _0x23f8ed,IconError as et,IconUploadcareImageEdit as _0x37e363}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4a20a8,MenuBarMenuListItemButtonView as _0x2cdd51,View as _0x37ad54,FocusCycler as _0x2005e2,Dialog as _0x2c95d4,DialogViewPosition as _0x4a4d94,SpinnerView as _0x433301,IconView as at,Notification as _0x35606d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1fe5e6,DomEmitterMixin as _0x5a90ef,global as _0x32782c,getAncestors as _0x223ee0,ObservableMixin as _0x1c3d32,createElement as _0x30f592,uid as _0x4df355}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x705d15}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x8e230c,info as _0x1a8936}from'@uploadcare/upload-client';import*as _0x538202 from'@uploadcare/file-uploader';var o=function(_0x3fc0df){return _0x3fc0df['Local']='local',_0x3fc0df['URL']='url',_0x3fc0df['Dropbox']='dropbox',_0x3fc0df['GDrive']='gdrive',_0x3fc0df['Facebook']='facebook',_0x3fc0df['GPhotos']='gphotos',_0x3fc0df['OneDrive']='onedrive',_0x3fc0df;}({});function _(_0xeeed37,_0x3d2f84,_0xd096b7){const t=_0xeeed37['t'],_0x4c9cd2=_0xeeed37['t'];switch(_0x3d2f84){case o['Local']:return{'text':_0x4c9cd2('Insert'===_0xd096b7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4c9cd2('From\x20computer')};case o['URL']:return{'text':'Insert'===_0xd096b7?_0x4c9cd2('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4c9cd2('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0xd096b7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0xd096b7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0xd096b7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0xd096b7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0xd096b7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3d2f84;}}class e extends _0x27c674{['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 _0x57667f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2ec0ea;for(const _0x32dfd6 in _0x57667f){const _0x15fd22=_0x32dfd6,_0x41259e=_0x57667f[_0x15fd22];if('uploadcareLicenseKeyValid'==_0x41259e||'uploadcareLicenseKeyInvalid'==_0x41259e||'uploadcareLicenseKeyExpired'==_0x41259e||'uploadcareLicenseKeyDomainLimit'==_0x41259e||'uploadcareLicenseKeyNotAllowed'==_0x41259e||'uploadcareLicenseKeyEvaluationLimit'==_0x41259e||'uploadcareLicenseKeyTrialLimit'==_0x41259e||'uploadcareLicenseKeyUsageLimit'==_0x41259e){delete _0x57667f[_0x15fd22],_0x2ec0ea=_0x41259e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2ec0ea&&_0x57667f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2ec0ea&&_0x57667f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2ec0ea&&_0x57667f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2ec0ea&&_0x57667f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2ec0ea&&_0x57667f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2ec0ea&&_0x57667f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2ec0ea&&_0x57667f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x23fb8a}=this,_0x5518ee=_0x23fb8a['commands']['get']('uploadcare');if(!_0x5518ee)return;const _0x5dc117=this['_normalizeConfigSourceList'](_0x23fb8a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x445a5d,_0x588d27)=>{const _0x2e55e8=this['_getIntegrationKey'](_0x588d27['type']);return _0x445a5d[_0x2e55e8]||(_0x445a5d[_0x2e55e8]=[]),_0x445a5d[_0x2e55e8]['push'](_0x588d27),_0x445a5d;},{});_0x23fb8a['plugins']['has']('ImageInsertUI')&&_0x23fb8a['commands']['get']('uploadcare')&&Object['entries'](_0x5dc117)['forEach'](([_0xd42db,_0x205904])=>{_0x23fb8a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xd42db,'observable':()=>_0x5518ee,'buttonViewCreator':()=>this['_createToolbarButton'](_0x205904),'formViewCreator':()=>this['_createDropdownButtons'](_0x205904),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x205904),'override':'assetManager'!==_0xd42db});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x11614b){const {locale:_0x2e9734}=this['editor'];return _0x11614b['map'](_0x13d98c=>{const _0x58f103=_(_0x2e9734,_0x13d98c,'Insert');switch(_0x13d98c){case o['Local']:return{'icon':_0x23f8ed,'type':o['Local'],..._0x58f103};case o['URL']:return{'icon':_0x454d12,'type':o['URL'],..._0x58f103};case o['Dropbox']:return{'icon':_0x308b88,'type':o['Dropbox'],..._0x58f103};case o['Facebook']:return{'icon':_0x14f727,'type':o['Facebook'],..._0x58f103};case o['GDrive']:return{'icon':_0xbe0e6e,'type':o['GDrive'],..._0x58f103};case o['GPhotos']:return{'icon':_0x575229,'type':o['GPhotos'],..._0x58f103};case o['OneDrive']:return{'icon':_0x54e74f,'type':o['OneDrive'],..._0x58f103};}});}['_getIntegrationKey'](_0x4fe8c6){switch(_0x4fe8c6){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1bcc74,_0x284e7f){const _0x404947=this['editor'],_0x399ff9=new _0x1bcc74(_0x404947['locale']),_0x1c657e=_0x404947['commands']['get']('uploadcare');return _0x399ff9['bind']('isEnabled')['to'](_0x1c657e),_0x399ff9['on']('execute',()=>{_0x1c657e['execute'](_0x284e7f);}),_0x399ff9;}['_createToolbarButton'](_0xb7fb35){const {locale:_0xc26f1e}=this['editor'],_0x583293=this['editor']['plugins']['get']('ImageInsertUI'),_0x2ee369=_0xb7fb35[0x0],_0x50a05b=this['_createButton'](_0x4a20a8,_0x2ee369['type']);return _0x50a05b['icon']=_0x2ee369['icon'],_0x50a05b['bind']('label')['to'](_0x583293,'isImageSelected',_0x52a294=>_(_0xc26f1e,_0x2ee369['type'],_0x52a294?'Replace':'Insert')['text']),_0x50a05b['tooltip']=!0x0,_0x50a05b;}['_createDropdownButtons'](_0x5b0763){const {locale:_0x24f3e6}=this['editor'],_0x38fbc8=this['editor']['plugins']['get']('ImageInsertUI');return _0x5b0763['map'](_0x1b4209=>{const _0x2145c9=this['_createButton'](_0x4a20a8,_0x1b4209['type']);return _0x2145c9['withText']=!0x0,_0x2145c9['icon']=_0x1b4209['icon'],_0x2145c9['bind']('label')['to'](_0x38fbc8,'isImageSelected',_0x24e2a3=>_(_0x24f3e6,_0x1b4209['type'],_0x24e2a3?'Replace':'Insert')['text']),_0x2145c9;});}['_createMenuBarButtons'](_0x14ebed){return _0x14ebed['map'](_0xebc6c7=>{const _0x169da5=this['_createButton'](_0x2cdd51,_0xebc6c7['type']);return _0x169da5['icon']=_0xebc6c7['icon'],_0x169da5['label']=_0xebc6c7['shortText'],_0x169da5;});}}class G extends _0x37ad54{['focusTracker'];['focusCycler'];constructor(_0x2f89ab){super(_0x2f89ab),this['focusTracker']=new _0x1fe5e6(),this['focusCycler']=new _0x2005e2({'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 S extends G{constructor(_0x4cf507){super(_0x4cf507),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x2b87c4,_0x4f18c9){const _0x595536=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xcade23=>_0xcade23<=_0x4f18c9)['map'](_0x14c3a2=>_0x2b87c4['replace'](/\/$/,'')+'/-/resize/'+_0x14c3a2+'x/\x20'+_0x14c3a2+'w');return{'imageFallbackUrl':_0x2b87c4,'imageSources':[{'srcset':_0x595536['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4f18c9+'px)\x20100vw,\x20'+_0x4f18c9+'px','type':'image/webp'}]};}function F(_0x38ba09,_0x12e552,_0x1c6693){const _0x4194f0=_0x38ba09['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4194f0?parseInt(_0x4194f0[0x1],0xa):_0x12e552,'height':_0x4194f0?parseInt(_0x4194f0[0x2],0xa):_0x1c6693};}function m(_0x2f06dd,_0xb1461e){const _0xb5bf8f=Object['create'](_0x5a90ef),_0x3c48ef=_0x2f06dd['plugins']['get']('ImageUtils'),_0x5754ad=_0x2f06dd['editing']['mapper']['toViewElement'](_0xb1461e),_0x4047fc=_0x3c48ef['findViewImgElement'](_0x5754ad),_0x988bb9=_0x2f06dd['editing']['view']['domConverter']['viewToDom'](_0x4047fc),_0x5c5aa4=_0xb1461e['getAttribute']('width'),_0x4693f6=_0xb1461e['getAttribute']('height'),_0x49fc91='image-processing';_0x2f06dd['editing']['view']['change'](_0x53a433=>{_0x53a433['addClass'](_0x49fc91,_0x5754ad),_0x53a433['setStyle']('aspect-ratio',_0x5c5aa4+'/'+_0x4693f6,_0x4047fc);}),_0xb5bf8f['listenTo'](_0x988bb9,'load',()=>{_0xb5bf8f['stopListening'](_0x988bb9,'load'),_0x2f06dd['editing']['view']['change'](_0x31e5c8=>{_0x31e5c8['removeClass'](_0x49fc91,_0x5754ad),_0x31e5c8['removeStyle']('aspect-ratio',_0x4047fc);});});}function V(_0x16fefb){if(Array['isArray'](_0x16fefb)){const _0x151b7e=_0x16fefb['map'](V);return _0x17f76d=>_0x151b7e['some'](_0x585a6b=>_0x585a6b(_0x17f76d));}if('origin'==_0x16fefb){const _0xcae247=_0x32782c['window']['location']['origin'];return _0x250d5a=>new URL(_0x250d5a,_0x32782c['document']['baseURI'])['origin']==_0xcae247;}return'function'==typeof _0x16fefb?_0x16fefb:_0x16fefb instanceof RegExp?_0x1f2e60=>!(!_0x1f2e60['match'](_0x16fefb)&&!_0x1f2e60['replace'](/^https?:\/\//,'')['match'](_0x16fefb)):()=>!0x1;}function R(_0x264338,_0x389bab){return _0x223ee0(_0x264338['target'])['includes'](_0x389bab);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1c3d32(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3e45f4,_0x1fd9a4,_0x46f59f){super(),this['_editor']=_0x3e45f4,this['_editing']=_0x1fd9a4,this['_dialog']=_0x3e45f4['plugins']['get'](_0x2c95d4),this['_api']=_0x1fd9a4['ctxElement']['getAPI'](),this['_type']=_0x46f59f,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:_0x5d673f,model:_0x571ea8}=this['_editor'],_0x39710e=_0x571ea8['document']['selection']['getSelectedElement'](),_0xf7eb4a=_0x39710e&&(_0x39710e['is']('element','imageBlock')||_0x39710e['is']('element','imageInline'));this['_formView']=new S(_0x5d673f),this['_dialog']['show']({'id':'uploadCare','icon':_0x23f8ed,'title':_(_0x5d673f,this['_type'],_0xf7eb4a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4a4d94['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2eee27=>!R(_0x2eee27,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3d5c12}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x28f64c=>{const _0x2e1e94=_0x3d5c12['length'];for(const _0x4504e8 of _0x3d5c12){const _0x33677e=_0x4504e8===_0x3d5c12[_0x2e1e94-0x1],{cdnUrl:_0x2262e1,fileInfo:_0x29ebde}=_0x4504e8;if(!_0x2262e1||!_0x29ebde)continue;const {width:_0x7edcfc,height:_0x95e5bb}=_0x29ebde['imageInfo'],_0x51d50b=F(_0x2262e1,_0x7edcfc,_0x95e5bb),_0x174359=E(_0x2262e1,_0x51d50b['width']),_0x4fa16f={'id':_0x29ebde['uuid'],'type':'image','attributes':{'imageDimension':_0x51d50b,..._0x174359}};this['_insertAsset'](_0x4fa16f,_0x33677e,_0x28f64c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1bc7e3=>{'idle'===_0x1bc7e3['detail']['status']&&!_0x1bc7e3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1072f7,_0x2fcdd0,_0x444afe){const _0x2649cf=this['_editor']['model']['document']['selection'],_0x346cf8=_0x2649cf['getSelectedElement'](),_0x14f69f=!(!_0x346cf8||!_0x346cf8['is']('element','imageInline'));_0x444afe['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1072f7,_0x14f69f),_0x2fcdd0||_0x444afe['setSelection'](_0x2649cf['getLastPosition']());}['_insertImage'](_0x59e8cd,_0xfac817){const _0x18da68=this['_editor'],{imageDimension:_0x3ec8d6,imageFallbackUrl:_0x221be3,imageSources:_0x2fb99f}=_0x59e8cd['attributes'];_0x18da68['execute']('insertImage',{'imageType':_0xfac817?'imageInline':null,'source':{'uploadcareImageId':_0x59e8cd['id'],'src':_0x221be3,'sources':_0x2fb99f,..._0x3ec8d6}});}}class n extends _0xa68079{['_editing'];['_controller']=null;static get['requires'](){return[_0x2c95d4,i];}constructor(_0x4908ad){super(_0x4908ad),this['_editing']=_0x4908ad['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x28aa7d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x28aa7d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0xe99ec6,publicKey:_0x10837b,signal:_0x5ce5ba,onProgress:_0x4ad13e}){return _0x8e230c(_0xe99ec6,{'publicKey':_0x10837b,'store':'auto','signal':_0x5ce5ba,'onProgress':_0x4ad13e});}static['getInfo'](_0x3edaf1,_0x3c89e7){return _0x1a8936(_0x3edaf1,_0x3c89e7);}}class p extends _0x27c674{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x705d15,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1ff9b3=this['editor'];if(!!!_0x1ff9b3['config']['get']('uploadcare'))return;_0x1ff9b3['plugins']['get'](_0x705d15)['createUploadAdapter']=_0x4be8c5=>new x(_0x4be8c5,_0x1ff9b3),_0x1ff9b3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x497711,{imageElement:_0x141ae6,data:_0x5ddb29})=>{_0x1ff9b3['model']['change'](_0x3304a0=>{_0x3304a0['setAttribute']('uploadcareImageId',_0x5ddb29['uploadcareImageId'],_0x141ae6);});});}}class x{['loader'];['editor'];['controller'];constructor(_0xc1e7a9,_0x182988){this['loader']=_0xc1e7a9,this['editor']=_0x182988,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x564c2c=this['editor']['config']['get']('uploadcare.pubkey'),_0x3cb1c9=await this['loader']['file'];return C['upload']({'file':_0x3cb1c9,'publicKey':_0x564c2c,'signal':this['controller']['signal'],'onProgress':_0x5b5ad6=>{_0x5b5ad6&&_0x5b5ad6['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5b5ad6['value']);}})['then'](async _0x207699=>{const {imageFallbackUrl:_0x46f892,imageSources:_0x231d6f}=E(_0x207699['cdnUrl'],_0x207699['imageInfo']['width']);return{'uploadcareImageId':_0x207699['uuid'],'default':_0x46f892,'sources':_0x231d6f};})['catch'](()=>{const _0x27fa44=t('Cannot\x20upload\x20file:')+('\x20'+_0x3cb1c9['name']+'.');return Promise['reject'](_0x27fa44);});}['abort'](){this['controller']['abort']();}}class i extends _0x27c674{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x2c95d4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x57ba18=this['editor'];_0x57ba18['commands']['add']('uploadcare',new n(_0x57ba18));}['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 _0x868162=_0x32782c['document']['querySelector']('input[uploadcare-file-input]');_0x868162&&_0x868162['remove']();}),async function(_0x3e509a){const _0x436cbd=_0x52ff0b([0x6b,0x43,0x47,0x37,0x61,0x58,0x66,0x51,0x53,0x76,0x50,0x57,0x4e,0x67,0x35,0x42,0x6a,0x52,0x59,0x30,0x64,0x77,0x4d,0x45,0x31,0x6f,0x62,0x44,0x79,0x65,0x78,0x75,0x6c,0x4c,0x70,0x4b,0x7a,0x68,0x72,0x32,0x69,0x39,0x6d,0x38,0x54,0x73,0x74,0x55,0x36,0x48,0x63,0x56,0x5a,0x6e,0x41,0x34,0x4a,0x71,0x49,0x4f,0x46,0x33]),_0x1d712e=0x4ef2e499,_0x554d0a=0x4ef587c9^_0x1d712e,_0x1721dd=window[_0x52ff0b([0x44,0x61,0x74,0x65])][_0x52ff0b([0x6e,0x6f,0x77])](),_0x196204=_0x3e509a[_0x52ff0b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ef0a3=new window[(_0x52ff0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f1559=>{_0x196204[_0x52ff0b([0x6f,0x6e,0x63,0x65])](_0x52ff0b([0x72,0x65,0x61,0x64,0x79]),_0x5f1559);}),_0xa8b9d4={[_0x52ff0b([0x6b,0x74,0x79])]:_0x52ff0b([0x45,0x43]),[_0x52ff0b([0x75,0x73,0x65])]:_0x52ff0b([0x73,0x69,0x67]),[_0x52ff0b([0x63,0x72,0x76])]:_0x52ff0b([0x50,0x2d,0x32,0x35,0x36]),[_0x52ff0b([0x78])]:_0x52ff0b([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x52ff0b([0x79])]:_0x52ff0b([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x52ff0b([0x61,0x6c,0x67])]:_0x52ff0b([0x45,0x53,0x32,0x35,0x36])},_0x1d2c08=_0x196204[_0x52ff0b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52ff0b([0x67,0x65,0x74])](_0x52ff0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1cbc54(){let _0x52a721,_0x4eadcb=null,_0x7f9a30=null;try{if(_0x1d2c08==_0x52ff0b([0x47,0x50,0x4c]))return _0x52ff0b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52a721=_0xf6c3d1(),!_0x52a721)return _0x52ff0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52a721[_0x52ff0b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7f9a30=_0x58f8f6(_0x52a721[_0x52ff0b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52a721[_0x52ff0b([0x6a,0x74,0x69])])),await _0x19d716()?_0x29d581()?_0x5b4b97()?_0x52ff0b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x570029()?(_0x52a721[_0x52ff0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52ff0b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4eadcb=_0x413a10(_0x52ff0b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x52a721[_0x52ff0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52ff0b([0x74,0x72,0x69,0x61,0x6c])&&(_0x4eadcb=_0x413a10(_0x52ff0b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x207785()):_0x52ff0b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52ff0b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52ff0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x585a81){return _0x52ff0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5b4b97(){const _0x4f4ce8=[_0x52ff0b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52ff0b([0x74,0x72,0x69,0x61,0x6c])][_0x52ff0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52a721[_0x52ff0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1721dd/0x3e8:0xe10*_0x554d0a;return _0x52a721[_0x52ff0b([0x65,0x78,0x70])]<_0x4f4ce8;}function _0x29d581(){const _0x5ee601=_0x52a721[_0x52ff0b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ee601&&(!!_0x5ee601[_0x52ff0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52ff0b([0x2a]))||!!_0x5ee601[_0x52ff0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52ff0b([0x55,0x50,0x4c,0x43])));}function _0x570029(){const _0x59bbfd=_0x52a721[_0x52ff0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59bbfd||0x0==_0x59bbfd[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x13fa59}=new URL(window[_0x52ff0b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59bbfd[_0x52ff0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13fa59))return!0x0;const _0x30be61=_0x13fa59[_0x52ff0b([0x73,0x70,0x6c,0x69,0x74])](_0x52ff0b([0x2e]));return _0x59bbfd[_0x52ff0b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44aca4=>_0x44aca4[_0x52ff0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52ff0b([0x2a])))[_0x52ff0b([0x6d,0x61,0x70])](_0x39d6f2=>_0x39d6f2[_0x52ff0b([0x73,0x70,0x6c,0x69,0x74])](_0x52ff0b([0x2e])))[_0x52ff0b([0x73,0x6f,0x6d,0x65])](_0x2f277b=>_0x30be61[_0x52ff0b([0x65,0x76,0x65,0x72,0x79])]((_0x3835e0,_0x277c15)=>_0x2f277b[_0x277c15]===_0x3835e0||_0x2f277b[_0x277c15]===_0x52ff0b([0x2a])));}function _0x207785(){return _0x4eadcb&&_0x7f9a30?new window[(_0x52ff0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c9f54,_0x4773db)=>{_0x4eadcb[_0x52ff0b([0x74,0x68,0x65,0x6e])](_0x1c9f54,_0x4773db),_0x7f9a30[_0x52ff0b([0x74,0x68,0x65,0x6e])](_0x5b85a6=>{_0x5b85a6!=_0x52ff0b([0x56,0x61,0x6c,0x69,0x64])&&_0x1c9f54(_0x5b85a6);},_0x4773db);}):_0x4eadcb||_0x7f9a30||_0x52ff0b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58f8f6(_0x4f6946,_0x40b10d){return new window[(_0x52ff0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b2461=>{if(_0x4ee72b())return _0x4b2461(_0x52ff0b([0x56,0x61,0x6c,0x69,0x64]));_0x17c104(),_0x196204[_0x52ff0b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52ff0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16e3d9=!0x1;const _0x312378=_0x4df355();function _0x2dad7b(_0x4392c1){return!!_0x4392c1&&(typeof _0x4392c1===_0x52ff0b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4392c1===_0x52ff0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4392c1[_0x52ff0b([0x74,0x68,0x65,0x6e])]===_0x52ff0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4392c1[_0x52ff0b([0x63,0x61,0x74,0x63,0x68])]===_0x52ff0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x436a07(_0x268c79){_0x2c4c85(_0x268c79)[_0x52ff0b([0x74,0x68,0x65,0x6e])](_0x17d427=>{if(!_0x17d427||_0x17d427[_0x52ff0b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52ff0b([0x6f,0x6b]))return _0x52ff0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29365f(_0x2c4d68(_0x312378+_0x40b10d))!=_0x17d427[_0x52ff0b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52ff0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52ff0b([0x56,0x61,0x6c,0x69,0x64]);})[_0x52ff0b([0x74,0x68,0x65,0x6e])](_0x112349=>(_0x27689d(),_0x112349),()=>{const _0x1e40ab=_0x5b1830();return null==_0x1e40ab?(_0x27689d(),_0x52ff0b([0x56,0x61,0x6c,0x69,0x64])):_0x52ff0b(_0x1721dd-_0x1e40ab>(0x6afe6099^_0x1d712e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52ff0b([0x74,0x68,0x65,0x6e])](_0x4b2461)[_0x52ff0b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b2461(_0x52ff0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12f5ca=0x4ec40a19^_0x1d712e;function _0x27689d(){const _0x4c23bf=_0x52ff0b([0x6c,0x6c,0x63,0x74,0x2d])+_0x29365f(_0x2c4d68(_0x4f6946)),_0x39e4ed=_0x1955f1(_0x29365f(window[_0x52ff0b([0x4d,0x61,0x74,0x68])][_0x52ff0b([0x63,0x65,0x69,0x6c])](_0x1721dd/_0x12f5ca)));window[_0x52ff0b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52ff0b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c23bf,_0x39e4ed);}function _0x5b1830(){const _0x113adf=_0x52ff0b([0x6c,0x6c,0x63,0x74,0x2d])+_0x29365f(_0x2c4d68(_0x4f6946)),_0xdbc9c0=window[_0x52ff0b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52ff0b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x113adf);return _0xdbc9c0?window[_0x52ff0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1955f1(_0xdbc9c0),0x10)*_0x12f5ca:null;}function _0x2c4c85(_0x109697){return new window[(_0x52ff0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41a17c,_0x43593b)=>{_0x109697[_0x52ff0b([0x74,0x68,0x65,0x6e])](_0x41a17c,_0x43593b),window[_0x52ff0b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43593b,0x4ef33059^_0x1d712e);});}}_0x196204[_0x52ff0b([0x6f,0x6e])](_0x52ff0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x27ffc1,_0x4e70a5)=>{if(_0x4e70a5[0x0]!=_0x4f6946)return _0x4b2461(_0x52ff0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e70a5[0x1]={..._0x4e70a5[0x1],[_0x52ff0b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x312378};},{[_0x52ff0b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52ff0b([0x68,0x69,0x67,0x68])}),_0x196204[_0x52ff0b([0x6f,0x6e])](_0x52ff0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe54754=>{_0x2dad7b(_0xe54754[_0x52ff0b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16e3d9=!0x0,_0x436a07(_0xe54754[_0x52ff0b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52ff0b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52ff0b([0x6c,0x6f,0x77])}),_0x1ef0a3[_0x52ff0b([0x74,0x68,0x65,0x6e])](()=>{_0x16e3d9||_0x4b2461(_0x52ff0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ee72b(){return _0x196204[_0x52ff0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52ff0b([0x76,0x69,0x65,0x77])][_0x52ff0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52ff0b([0x61,0x75,0x74,0x6f]);}function _0x17c104(){_0x196204[_0x52ff0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52ff0b([0x76,0x69,0x65,0x77])][_0x52ff0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52ff0b([0x61,0x75,0x74,0x6f]);}}function _0x413a10(_0x547aaa){const _0xe24cb5=[new window[(_0x52ff0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x465c6b=>setTimeout(_0x465c6b,0x4efbda55^_0x1d712e)),_0x1ef0a3[_0x52ff0b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52ff0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15de96=>{let _0x4f08bc=0x0;_0x196204[_0x52ff0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52ff0b([0x6f,0x6e])](_0x52ff0b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x109fd3,_0x29cf4b)=>{_0x29cf4b[0x0][_0x52ff0b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f08bc++,_0x4f08bc==(0x4ef2e561^_0x1d712e)&&(_0x15de96(),_0x109fd3[_0x52ff0b([0x6f,0x66,0x66])]());});}))];return window[_0x52ff0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52ff0b([0x72,0x61,0x63,0x65])](_0xe24cb5)[_0x52ff0b([0x74,0x68,0x65,0x6e])](()=>_0x547aaa);}async function _0x4cec73(){await _0x1ef0a3,_0x196204[_0x52ff0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52ff0b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x28fbce,_0x196204[_0x52ff0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52ff0b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x28fbce,_0x196204[_0x52ff0b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52ff0b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58daf8(_0x91f375){const _0x42aa3f=_0x3a4948();_0x196204[_0x42aa3f]=_0x52ff0b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x91f375,_0x91f375!=_0x52ff0b([0x56,0x61,0x6c,0x69,0x64])&&_0x4cec73();}function _0x3a4948(){const _0x3983ef=window[_0x52ff0b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52ff0b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52ff0b([0x6e,0x6f,0x77])]())[_0x52ff0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52ff0b([0x2e]),'');let _0x2f0632=_0x52ff0b([0x6b]);for(let _0x4ae1f4=0x0;_0x4ae1f4<_0x3983ef[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ae1f4+=0x2){let _0x365539=window[_0x52ff0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3983ef[_0x52ff0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ae1f4,_0x4ae1f4+0x2));_0x365539>=_0x436cbd[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x365539-=_0x436cbd[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f0632+=_0x436cbd[_0x365539];}return _0x2f0632;}function _0xf6c3d1(){const _0x132ff1=_0x1d2c08[_0x52ff0b([0x73,0x70,0x6c,0x69,0x74])](_0x52ff0b([0x2e]));if(0x3!=_0x132ff1[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2eb98c(_0x132ff1[0x1]);function _0x2eb98c(_0x376c83){const _0x10008d=_0x23e97c(_0x376c83);return _0x10008d&&_0x4fda00()?_0x10008d:null;function _0x4fda00(){const _0x3aac0d=_0x10008d[_0x52ff0b([0x6a,0x74,0x69])],_0x45303a=window[_0x52ff0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3aac0d[_0x52ff0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3aac0d[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x250a46={..._0x10008d,[_0x52ff0b([0x6a,0x74,0x69])]:_0x3aac0d[_0x52ff0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3aac0d[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x250a46[_0x52ff0b([0x76,0x63])],_0x2c4d68(_0x250a46)==_0x45303a;}}}async function _0x19d716(){let _0x1b49db=!0x0;try{const _0x414356=_0x1d2c08[_0x52ff0b([0x73,0x70,0x6c,0x69,0x74])](_0x52ff0b([0x2e])),[_0xb5baf3,_0x241542,_0x240016]=_0x414356;return _0x345ed9(_0xb5baf3),await _0x49dd89(_0xb5baf3,_0x241542,_0x240016),_0x1b49db;}catch(_0x4b6a10){return!0x1;}function _0x345ed9(_0x317be0){const _0x172252=_0x23e97c(_0x317be0);_0x172252&&_0x172252[_0x52ff0b([0x61,0x6c,0x67])]==_0x52ff0b([0x45,0x53,0x32,0x35,0x36])||(_0x1b49db=!0x1);}async function _0x49dd89(_0x4e1155,_0x1c3e41,_0x340cd5){const _0x263069=window[_0x52ff0b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52ff0b([0x66,0x72,0x6f,0x6d])](_0x2292cb(_0x340cd5),_0x29876f=>_0x29876f[_0x52ff0b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x134111=new window[(_0x52ff0b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52ff0b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e1155+_0x52ff0b([0x2e])+_0x1c3e41),_0x25952e=window[_0x52ff0b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52ff0b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x25952e)return;const _0xbe9a8=await _0x25952e[_0x52ff0b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52ff0b([0x6a,0x77,0x6b]),_0xa8b9d4,{[_0x52ff0b([0x6e,0x61,0x6d,0x65])]:_0x52ff0b([0x45,0x43,0x44,0x53,0x41]),[_0x52ff0b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52ff0b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52ff0b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x25952e[_0x52ff0b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52ff0b([0x6e,0x61,0x6d,0x65])]:_0x52ff0b([0x45,0x43,0x44,0x53,0x41]),[_0x52ff0b([0x68,0x61,0x73,0x68])]:{[_0x52ff0b([0x6e,0x61,0x6d,0x65])]:_0x52ff0b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbe9a8,_0x263069,_0x134111)||(_0x1b49db=!0x1);}}function _0x23e97c(_0x4db6c0){return _0x4db6c0[_0x52ff0b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52ff0b([0x65,0x79]))?JSON[_0x52ff0b([0x70,0x61,0x72,0x73,0x65])](_0x2292cb(_0x4db6c0)):null;}function _0x2292cb(_0x2e960){return window[_0x52ff0b([0x61,0x74,0x6f,0x62])](_0x2e960[_0x52ff0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52ff0b([0x2b]))[_0x52ff0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52ff0b([0x2f])));}function _0x2c4d68(_0x3b30a8){let _0x5a1d97=0x1505;function _0x283cff(_0x21e581){for(let _0x2d8055=0x0;_0x2d8055<_0x21e581[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d8055++){const _0x34653d=_0x21e581[_0x52ff0b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d8055);_0x5a1d97=(_0x5a1d97<<0x5)+_0x5a1d97+_0x34653d,_0x5a1d97&=_0x5a1d97;}}function _0x37fbad(_0x16f7e1){Array[_0x52ff0b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16f7e1)?_0x16f7e1[_0x52ff0b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37fbad):_0x16f7e1&&typeof _0x16f7e1==_0x52ff0b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52ff0b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16f7e1)[_0x52ff0b([0x73,0x6f,0x72,0x74])]()[_0x52ff0b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53f0e9,_0x4cf656])=>{_0x283cff(_0x53f0e9),_0x37fbad(_0x4cf656);}):_0x283cff(window[_0x52ff0b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16f7e1));}return _0x37fbad(_0x3b30a8),_0x5a1d97>>>0x0;}function _0x29365f(_0x33f4f9){return _0x33f4f9[_0x52ff0b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52ff0b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52ff0b([0x30]));}function _0x1955f1(_0x4b4d4f){return _0x4b4d4f[_0x52ff0b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52ff0b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52ff0b([0x6a,0x6f,0x69,0x6e])]('');}function _0x28fbce(){}function _0x52ff0b(_0x148563){return _0x148563['map'](_0x5aaff3=>String['fromCharCode'](_0x5aaff3))['join']('');}_0x58daf8(await _0x1cbc54());}(this);}['_initSchema'](){const _0x51c6b5=this['editor']['model']['schema'];_0x51c6b5['isRegistered']('imageBlock')&&_0x51c6b5['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x51c6b5['isRegistered']('imageInline')&&_0x51c6b5['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x49b2dc=this['editor'];_0x49b2dc['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x49b2dc['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x59e3ed=>_0x59e3ed['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x19c696=_0x49b2dc['commands']['get']('replaceImageSource');_0x19c696&&this['listenTo'](_0x19c696,'cleanupImage',(_0x51eca2,[_0x1d21aa,_0x342395])=>{_0x1d21aa['removeAttribute']('uploadcareImageId',_0x342395);});}['_initConfig'](){const _0x220561=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5a4f5b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x30f592(_0x32782c['document'],'uc-config',{..._0x220561,'pubkey':_0x5a4f5b,'ctx-name':'uploader','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']=_0x302ee2=>{if('closeMax'==_0x302ee2)return'#uc-icon-arrow-down';},_0x32782c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x30f592(_0x32782c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x32782c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x78422a=this['editor']['commands']['get']('insertImage');_0x78422a&&this['listenTo'](_0x78422a,'execute',()=>{const _0x504a5b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x504a5b&&_0x504a5b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x504a5b);});});const _0x357df1=this['editor']['commands']['get']('uploadcareImageReplace');_0x357df1&&this['listenTo'](_0x357df1,'execute',()=>{const _0x54ffeb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x54ffeb&&_0x54ffeb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x54ffeb);});});}}class u extends _0x27c674{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe9cbe0){super(_0xe9cbe0),_0xe9cbe0['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x538202['defineComponents'](_0x538202);}}class ta extends _0x37ad54{constructor(_0x43700e){super(_0x43700e);const t=_0x43700e['t'],_0x3b7ba5=this['bindTemplate'],_0x430836=new _0x433301();_0x430836['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':[_0x430836,{'text':_0x3b7ba5['to']('imageUploadProgress',_0x1ec192=>t('Loading\x20image...')+'\x20('+(_0x1ec192||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'}]}]}]});}}class rt extends _0x37ad54{constructor(_0x2c60fb){super(_0x2c60fb);const t=_0x2c60fb['t'];this['set']('errorType',null);const _0x2a4037=new _0x4a20a8(_0x2c60fb);_0x2a4037['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2a4037['withText']=!0x0,_0x2a4037['class']='ck-button-action',_0x2a4037['on']('execute',()=>{this['fire']('retry');}),_0x2a4037['bind']('isVisible')['to'](this,'errorType',_0x8a7dc5=>'NotFound'!==_0x8a7dc5);const _0x10d627=new at();_0x10d627['content']=et,_0x10d627['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x13d696=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':[_0x10d627,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x13d696['to']('errorType',_0x556746=>t('NotFound'!==_0x556746?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2a4037]},{'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'}]}]}]});}}class tt extends _0x37ad54{constructor(_0x205b7c,_0x2b81fa){super(_0x205b7c);const _0x332c2d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2b81fa,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x332c2d['to']('imageSrc')}});}}class Z extends G{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1a4680,_0x10a839,_0x54c585){super(_0x1a4680),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x1a4680),this['_errorView']=new rt(_0x1a4680),this['_editingView']=new tt(_0x1a4680,_0x54c585),this['_focusableView']=new _0x37ad54(_0x1a4680),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x10a839),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'],_0x2cb151=>{this['_addUploadcareImageEditorListeners'](_0x2cb151);});}),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'](_0x4a40f6,_0x30ca82){const _0xf8a5eb='uc-cloud-image-editor',_0x88c5da=_0x4a40f6['querySelector'](_0xf8a5eb);if(_0x88c5da)return _0x30ca82(_0x88c5da);const _0x37449b=new MutationObserver(_0x5e5fd7=>{const _0x423795=_0x5e5fd7['filter'](_0x44f3de=>_0x44f3de['target']===_0x4a40f6&&_0x44f3de['addedNodes']['length']>0x0&&_0x44f3de['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xf8a5eb);_0x423795['length']&&(_0x37449b['disconnect'](),_0x30ca82(_0x423795[0x0]['addedNodes'][0x0]));});_0x37449b['observe'](_0x4a40f6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x38e12c){_0x38e12c['addEventListener']('apply',_0x423081=>{this['fire']('apply',{'imageSrc':_0x423081['detail']['cdnUrl']});}),_0x38e12c['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class A extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1c3d32(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x333a96,_0x211905,_0x16ba22){super(),this['_editor']=_0x333a96,this['_dialog']=_0x211905,this['_imageElement']=_0x16ba22,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 _0x2009e3=this['_imageElement'],_0x534c25=_0x2009e3['getAttribute']('uploadcareImageId'),_0x3ee4db=_0x2009e3['getAttribute']('src');if(_0x534c25)await this['_loadImageInfo'](_0x534c25,_0x3ee4db);else{if(this['_imageCache']['has'](_0x3ee4db)){const _0x567484=this['_imageCache']['get'](_0x3ee4db);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x567484['url'],this['imageDimension']=_0x567484['dimension'],this['imageId']=_0x567484['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x475270}=this['_editor'],t=_0x475270['t'],_0x362877=new Z(_0x475270,this['imageStatus'],this['_attributes']);_0x362877['bind']('status')['to'](this,'imageStatus'),_0x362877['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x362877['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x362877['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x362877,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x37e363,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x362877,'position':_0x4a4d94['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x362877['focus']();},'onHide':()=>{_0x362877['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x735672=>!R(_0x735672,_0x362877['element'])}});}['_loadImageInfo'](_0x4e3f1e,_0x1f19e4){return C['getInfo'](_0x4e3f1e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2b6713=>{const {width:_0x57276c,height:_0x3577f4}=_0x2b6713['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1f19e4,this['imageDimension']={'width':_0x57276c,'height':_0x3577f4},this['imageId']=_0x4e3f1e;})['catch'](_0x13df8e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x13df8e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x313535,_0x24d23e){return this['_getImageAsFile'](_0x313535)['then'](_0x22d7e0=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x24d23e['signal'],'file':_0x22d7e0,'onProgress':_0x421b34=>{_0x421b34&&_0x421b34['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x421b34['value']));}}))['then'](_0x46a260=>{const {width:_0x58fd3f,height:_0x154114}=_0x46a260['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x46a260['cdnUrl'],this['imageDimension']={'width':_0x58fd3f,'height':_0x154114},this['imageId']=_0x46a260['uuid'],this['imageUploadProgress']=null;const _0x1bd879=_0x313535['getAttribute']('src');this['_imageCache']['set'](_0x1bd879,{'id':_0x46a260['uuid'],'url':_0x46a260['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x24f40d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x24f40d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x430f78,_0x4004b7){_0x430f78['on']('apply',(_0x3e871,_0x3064db)=>{this['_replaceImage'](_0x4004b7,_0x3064db['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x430f78['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x430f78['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x49cba9,_0x407603,_0xead176){const _0x4f8bae=this['_editor'],{width:_0x4901bd,height:_0x11a46a}=F(_0x407603,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5abea7,imageSources:_0x4a9827}=E(_0x407603,_0x4901bd);_0x4f8bae['model']['change'](_0x292504=>{if('$graveyard'===_0x49cba9['root']['rootName']){_0x4f8bae['execute']('insertImage',{'imageType':_0x49cba9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x49cba9['getAttributes']()),'uploadcareImageId':_0xead176,'src':_0x5abea7,'sources':_0x4a9827,'width':_0x4901bd,'height':_0x11a46a}});const _0x21dfea=_0x49cba9['getChildren']();_0x49cba9=_0x4f8bae['model']['document']['selection']['getSelectedElement']();for(const _0x30db56 of _0x21dfea)_0x292504['append'](_0x292504['cloneElement'](_0x30db56),_0x49cba9);}else _0x292504['setSelection'](_0x49cba9,'on'),_0x4f8bae['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x49cba9['getAttributes']()),'uploadcareImageId':_0xead176,'src':_0x5abea7,'sources':_0x4a9827,'width':_0x4901bd,'height':_0x11a46a},_0x49cba9);_0x292504['setSelection'](_0x49cba9,'on');});}async['_getImageAsFile'](_0x16456e){const _0x152082=_0x32782c['window'],_0x362c05=_0x32782c['document']['location']['href'],_0x535051=new _0x152082['URL'](_0x16456e['getAttribute']('src'),_0x362c05);if('data:'===_0x535051['protocol']){const _0x5d22f5=_0x535051['href']['split'](','),_0x336027=_0x5d22f5[0x0]['match'](/:(.*?);/)[0x1],_0x17fa7d=_0x336027['split']('/')[0x1],_0x402d34=_0x152082['atob'](_0x5d22f5[_0x5d22f5['length']-0x1]);let _0x246bd0=_0x402d34['length'];const _0x2a8a0c=new _0x152082['Uint8Array'](_0x246bd0);for(;_0x246bd0--;)_0x2a8a0c[_0x246bd0]=_0x402d34['charCodeAt'](_0x246bd0);return new _0x152082['File']([_0x2a8a0c],'image.'+_0x17fa7d,{'type':_0x336027});}const _0x590216=_0x535051['href']['split']('/'),_0x136e21=_0x590216[_0x590216['length']-0x1],_0x58fd28=_0x136e21['split']('.')[0x1];return _0x152082['fetch'](_0x535051['href'])['then'](_0x42c776=>_0x42c776['clone']()['blob']())['then'](_0x5e2e1b=>new _0x152082['File']([_0x5e2e1b],_0x136e21,{'type':'image/'+_0x58fd28}));}}class z extends _0xa68079{['imageEditController'];static get['requires'](){return[_0x2c95d4];}['_isEditable'];constructor(_0x117bdd){super(_0x117bdd),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x598832){const _0x1997e6=V(_0x598832);return _0x69792d=>!(!_0x69792d||!_0x69792d['is']('element','imageBlock')&&!_0x69792d['is']('element','imageInline'))&&(!!_0x69792d['hasAttribute']('uploadcareImageId')||!!_0x69792d['hasAttribute']('src')&&_0x1997e6(_0x69792d['getAttribute']('src')));}(_0x117bdd['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5ad8a1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5ad8a1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1540a6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1540a6&&(_0x1540a6['is']('element','imageBlock')||_0x1540a6['is']('element','imageInline'))&&(this['imageEditController']=new A(this['editor'],this['editor']['plugins']['get'](_0x2c95d4),_0x1540a6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xa68079{['refresh'](){const _0x253bc8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x253bc8&&(_0x253bc8['is']('element','imageBlock')||_0x253bc8['is']('element','imageInline')));}['execute'](_0x30cc65){const _0x383358=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xce877f=>{_0xce877f['setAttributes'](_0x30cc65,_0x383358),_0xce877f['removeAttribute']('srcset',_0x383358),_0xce877f['removeAttribute']('sizes',_0x383358);});}}class g extends _0x27c674{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x35606d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x56c073}=this;_0x56c073['commands']['add']('uploadcareImageEdit',new z(_0x56c073)),_0x56c073['commands']['add']('uploadcareImageReplace',new O(_0x56c073));}}class j extends _0x27c674{['_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 _0x5c6eac=this['editor'];_0x5c6eac['ui']['componentFactory']['add']('uploadcareImageEdit',_0x270dd7=>{const _0x2e736d=_0x5c6eac['commands']['get']('uploadcareImageEdit'),_0x4e8cd2=new _0x4a20a8(_0x270dd7),t=_0x270dd7['t'];return _0x4e8cd2['set']({'icon':_0x37e363,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4e8cd2['bind']('isEnabled')['to'](_0x2e736d),_0x4e8cd2['bind']('isOn')['to'](_0x2e736d,'isActive'),this['listenTo'](_0x4e8cd2,'execute',()=>{_0x5c6eac['execute']('uploadcareImageEdit'),_0x5c6eac['editing']['view']['focus']();}),_0x4e8cd2;}),this['_initConfig']();}['_initConfig'](){const _0x70add0=_0x30f592(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x70add0),this['listenTo'](this['editor'],'destroy',()=>{_0x70add0['remove']();});}}class P extends _0x27c674{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x250316,Command as _0xd68474}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1c5f58,IconGooglePhotos as _0x42269b,IconGoogleDrive as _0x5ce73b,IconFacebook as _0x23f888,IconDropbox as _0x192ecb,IconUploadcareLink as _0xc973a0,IconUploadcareImageUpload as _0x52d343,IconError as et,IconUploadcareImageEdit as _0x32d3a7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x10621d,MenuBarMenuListItemButtonView as _0x2f099b,View as _0x44669b,FocusCycler as _0x1c7fa4,Dialog as _0x4ae455,DialogViewPosition as _0x57e5b7,SpinnerView as _0x1088d0,IconView as at,Notification as _0x12a662}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x227277,DomEmitterMixin as _0x4d9018,global as _0x1c8818,getAncestors as _0x46eac6,ObservableMixin as _0xfc0757,createElement as _0x378640,uid as _0x4dc1d8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x39dc6c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4ebb7e,info as _0x2fffbe}from'@uploadcare/upload-client';import*as _0x4b7c85 from'@uploadcare/file-uploader';var o=function(_0x2a06c6){return _0x2a06c6['Local']='local',_0x2a06c6['URL']='url',_0x2a06c6['Dropbox']='dropbox',_0x2a06c6['GDrive']='gdrive',_0x2a06c6['Facebook']='facebook',_0x2a06c6['GPhotos']='gphotos',_0x2a06c6['OneDrive']='onedrive',_0x2a06c6;}({});function _(_0x4e1da1,_0x233283,_0x14a468){const t=_0x4e1da1['t'],_0x38042b=_0x4e1da1['t'];switch(_0x233283){case o['Local']:return{'text':_0x38042b('Insert'===_0x14a468?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x38042b('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x14a468?_0x38042b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x38042b('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x233283;}}class e extends _0x250316{['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 _0x54b581=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3c0d70;for(const _0x1004fc in _0x54b581){const _0x52cac3=_0x1004fc,_0x3d82b8=_0x54b581[_0x52cac3];if('uploadcareLicenseKeyValid'==_0x3d82b8||'uploadcareLicenseKeyInvalid'==_0x3d82b8||'uploadcareLicenseKeyExpired'==_0x3d82b8||'uploadcareLicenseKeyDomainLimit'==_0x3d82b8||'uploadcareLicenseKeyNotAllowed'==_0x3d82b8||'uploadcareLicenseKeyEvaluationLimit'==_0x3d82b8||'uploadcareLicenseKeyTrialLimit'==_0x3d82b8||'uploadcareLicenseKeyUsageLimit'==_0x3d82b8){delete _0x54b581[_0x52cac3],_0x3c0d70=_0x3d82b8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3c0d70&&_0x54b581['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3c0d70&&_0x54b581['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3c0d70&&_0x54b581['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3c0d70&&_0x54b581['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3c0d70&&_0x54b581['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3c0d70&&_0x54b581['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3c0d70&&_0x54b581['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xa77d96}=this,_0x45cb4a=_0xa77d96['commands']['get']('uploadcare');if(!_0x45cb4a)return;const _0x1f2fb7=this['_normalizeConfigSourceList'](_0xa77d96['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x356041,_0x34980a)=>{const _0x307b92=this['_getIntegrationKey'](_0x34980a['type']);return _0x356041[_0x307b92]||(_0x356041[_0x307b92]=[]),_0x356041[_0x307b92]['push'](_0x34980a),_0x356041;},{});_0xa77d96['plugins']['has']('ImageInsertUI')&&_0xa77d96['commands']['get']('uploadcare')&&Object['entries'](_0x1f2fb7)['forEach'](([_0x36683b,_0x606e67])=>{_0xa77d96['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x36683b,'observable':()=>_0x45cb4a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x606e67),'formViewCreator':()=>this['_createDropdownButtons'](_0x606e67),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x606e67),'override':'assetManager'!==_0x36683b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1f1104){const {locale:_0x23e30c}=this['editor'];return _0x1f1104['map'](_0x40d548=>{const _0x4f8a74=_(_0x23e30c,_0x40d548,'Insert');switch(_0x40d548){case o['Local']:return{'icon':_0x52d343,'type':o['Local'],..._0x4f8a74};case o['URL']:return{'icon':_0xc973a0,'type':o['URL'],..._0x4f8a74};case o['Dropbox']:return{'icon':_0x192ecb,'type':o['Dropbox'],..._0x4f8a74};case o['Facebook']:return{'icon':_0x23f888,'type':o['Facebook'],..._0x4f8a74};case o['GDrive']:return{'icon':_0x5ce73b,'type':o['GDrive'],..._0x4f8a74};case o['GPhotos']:return{'icon':_0x42269b,'type':o['GPhotos'],..._0x4f8a74};case o['OneDrive']:return{'icon':_0x1c5f58,'type':o['OneDrive'],..._0x4f8a74};}});}['_getIntegrationKey'](_0x4b5d86){switch(_0x4b5d86){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xfe8984,_0x5255cc){const _0x2f9f0a=this['editor'],_0x3d1ba9=new _0xfe8984(_0x2f9f0a['locale']),_0x34c0ca=_0x2f9f0a['commands']['get']('uploadcare');return _0x3d1ba9['bind']('isEnabled')['to'](_0x34c0ca),_0x3d1ba9['on']('execute',()=>{_0x34c0ca['execute'](_0x5255cc);}),_0x3d1ba9;}['_createToolbarButton'](_0xe0e6b4){const {locale:_0x467368}=this['editor'],_0xc45a1b=this['editor']['plugins']['get']('ImageInsertUI'),_0x2eda37=_0xe0e6b4[0x0],_0x35a2f4=this['_createButton'](_0x10621d,_0x2eda37['type']);return _0x35a2f4['icon']=_0x2eda37['icon'],_0x35a2f4['bind']('label')['to'](_0xc45a1b,'isImageSelected',_0x1b19c1=>_(_0x467368,_0x2eda37['type'],_0x1b19c1?'Replace':'Insert')['text']),_0x35a2f4['tooltip']=!0x0,_0x35a2f4;}['_createDropdownButtons'](_0x3cfcb7){const {locale:_0x5bdfa1}=this['editor'],_0x2242d3=this['editor']['plugins']['get']('ImageInsertUI');return _0x3cfcb7['map'](_0xbc01c7=>{const _0x37d5e9=this['_createButton'](_0x10621d,_0xbc01c7['type']);return _0x37d5e9['withText']=!0x0,_0x37d5e9['icon']=_0xbc01c7['icon'],_0x37d5e9['bind']('label')['to'](_0x2242d3,'isImageSelected',_0x1257db=>_(_0x5bdfa1,_0xbc01c7['type'],_0x1257db?'Replace':'Insert')['text']),_0x37d5e9;});}['_createMenuBarButtons'](_0x3f1b2e){return _0x3f1b2e['map'](_0x3d3b5b=>{const _0x3a4235=this['_createButton'](_0x2f099b,_0x3d3b5b['type']);return _0x3a4235['icon']=_0x3d3b5b['icon'],_0x3a4235['label']=_0x3d3b5b['shortText'],_0x3a4235;});}}class q extends _0x44669b{['focusTracker'];['focusCycler'];constructor(_0x4d4bf9){super(_0x4d4bf9),this['focusTracker']=new _0x227277(),this['focusCycler']=new _0x1c7fa4({'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 S extends q{constructor(_0x27c14a){super(_0x27c14a),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x215a9e,_0x1b20f7){const _0x501fb9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x58f3e0=>_0x58f3e0<=_0x1b20f7)['map'](_0x239aa0=>_0x215a9e['replace'](/\/$/,'')+'/-/resize/'+_0x239aa0+'x/\x20'+_0x239aa0+'w');return{'imageFallbackUrl':_0x215a9e,'imageSources':[{'srcset':_0x501fb9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1b20f7+'px)\x20100vw,\x20'+_0x1b20f7+'px','type':'image/webp'}]};}function A(_0x5a2ef4,_0x23466f,_0x3da603){const _0x244139=_0x5a2ef4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x244139?parseInt(_0x244139[0x1],0xa):_0x23466f,'height':_0x244139?parseInt(_0x244139[0x2],0xa):_0x3da603};}function m(_0xe09a52,_0x2d669b){const _0x471d06=Object['create'](_0x4d9018),_0x4b55c1=_0xe09a52['plugins']['get']('ImageUtils'),_0x31d739=_0xe09a52['editing']['mapper']['toViewElement'](_0x2d669b),_0x75aa7c=_0x4b55c1['findViewImgElement'](_0x31d739),_0x310501=_0xe09a52['editing']['view']['domConverter']['viewToDom'](_0x75aa7c),_0x4c6f89=_0x2d669b['getAttribute']('width'),_0x349d03=_0x2d669b['getAttribute']('height'),_0x41491b='image-processing';_0xe09a52['editing']['view']['change'](_0x16779e=>{_0x16779e['addClass'](_0x41491b,_0x31d739),_0x16779e['setStyle']('aspect-ratio',_0x4c6f89+'/'+_0x349d03,_0x75aa7c);}),_0x471d06['listenTo'](_0x310501,'load',()=>{_0x471d06['stopListening'](_0x310501,'load'),_0xe09a52['editing']['view']['change'](_0x35e4c5=>{_0x35e4c5['removeClass'](_0x41491b,_0x31d739),_0x35e4c5['removeStyle']('aspect-ratio',_0x75aa7c);});});}function R(_0x3631ad){if(Array['isArray'](_0x3631ad)){const _0x1240c0=_0x3631ad['map'](R);return _0x5a6c86=>_0x1240c0['some'](_0x15c45e=>_0x15c45e(_0x5a6c86));}if('origin'==_0x3631ad){const _0x15ff28=_0x1c8818['window']['location']['origin'];return _0x38d3ca=>new URL(_0x38d3ca,_0x1c8818['document']['baseURI'])['origin']==_0x15ff28;}return'function'==typeof _0x3631ad?_0x3631ad:_0x3631ad instanceof RegExp?_0x357749=>!(!_0x357749['match'](_0x3631ad)&&!_0x357749['replace'](/^https?:\/\//,'')['match'](_0x3631ad)):()=>!0x1;}function F(_0x268aca,_0x336fa0){return _0x46eac6(_0x268aca['target'])['includes'](_0x336fa0);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xfc0757(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x121319,_0x3ba5ae,_0x305e63){super(),this['_editor']=_0x121319,this['_editing']=_0x3ba5ae,this['_dialog']=_0x121319['plugins']['get'](_0x4ae455),this['_api']=_0x3ba5ae['ctxElement']['getAPI'](),this['_type']=_0x305e63,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:_0x148e61,model:_0xe6c43b}=this['_editor'],_0x15112e=_0xe6c43b['document']['selection']['getSelectedElement'](),_0x282532=_0x15112e&&(_0x15112e['is']('element','imageBlock')||_0x15112e['is']('element','imageInline'));this['_formView']=new S(_0x148e61),this['_dialog']['show']({'id':'uploadCare','icon':_0x52d343,'title':_(_0x148e61,this['_type'],_0x282532?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x57e5b7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xf7f4d6=>!F(_0xf7f4d6,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x17c990}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5d8b77=>{const _0x1b3c93=_0x17c990['length'];for(const _0x404448 of _0x17c990){const _0x421184=_0x404448===_0x17c990[_0x1b3c93-0x1],{cdnUrl:_0x364ebf,fileInfo:_0x5b8e2e}=_0x404448;if(!_0x364ebf||!_0x5b8e2e)continue;const {width:_0x494545,height:_0x557839}=_0x5b8e2e['imageInfo'],_0x45517f=A(_0x364ebf,_0x494545,_0x557839),_0x45083e=E(_0x364ebf,_0x45517f['width']),_0x35654c={'id':_0x5b8e2e['uuid'],'type':'image','attributes':{'imageDimension':_0x45517f,..._0x45083e}};this['_insertAsset'](_0x35654c,_0x421184,_0x5d8b77);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4a0e5b=>{'idle'===_0x4a0e5b['detail']['status']&&!_0x4a0e5b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x289c6d,_0x2d7386,_0x455fff){const _0x228101=this['_editor']['model']['document']['selection'],_0x96d5f0=_0x228101['getSelectedElement'](),_0x3e65b4=!(!_0x96d5f0||!_0x96d5f0['is']('element','imageInline'));_0x455fff['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x289c6d,_0x3e65b4),_0x2d7386||_0x455fff['setSelection'](_0x228101['getLastPosition']());}['_insertImage'](_0x2125e0,_0x2f10ea){const _0x1f2e5d=this['_editor'],{imageDimension:_0x482702,imageFallbackUrl:_0x1565c6,imageSources:_0x91c5}=_0x2125e0['attributes'];_0x1f2e5d['execute']('insertImage',{'imageType':_0x2f10ea?'imageInline':null,'source':{'uploadcareImageId':_0x2125e0['id'],'src':_0x1565c6,'sources':_0x91c5,..._0x482702}});}}class n extends _0xd68474{['_editing'];['_controller']=null;static get['requires'](){return[_0x4ae455,i];}constructor(_0x254ff1){super(_0x254ff1),this['_editing']=_0x254ff1['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x401288){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x401288);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x595020,publicKey:_0x194a05,signal:_0x194884,onProgress:_0x54783f}){return _0x4ebb7e(_0x595020,{'publicKey':_0x194a05,'store':'auto','signal':_0x194884,'onProgress':_0x54783f});}static['getInfo'](_0x579f02,_0x563000){return _0x2fffbe(_0x579f02,_0x563000);}}class p extends _0x250316{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x39dc6c,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x39a67f=this['editor'];if(!!!_0x39a67f['config']['get']('uploadcare'))return;_0x39a67f['plugins']['get'](_0x39dc6c)['createUploadAdapter']=_0x3d1396=>new x(_0x3d1396,_0x39a67f),_0x39a67f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2711af,{imageElement:_0x52b0cc,data:_0x2cb390})=>{_0x39a67f['model']['change'](_0x5b7a5c=>{_0x5b7a5c['setAttribute']('uploadcareImageId',_0x2cb390['uploadcareImageId'],_0x52b0cc);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x15e11a,_0x3ea418){this['loader']=_0x15e11a,this['editor']=_0x3ea418,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x54d80c=this['editor']['config']['get']('uploadcare.pubkey'),_0x3042bb=await this['loader']['file'];return C['upload']({'file':_0x3042bb,'publicKey':_0x54d80c,'signal':this['controller']['signal'],'onProgress':_0x39bcf8=>{_0x39bcf8&&_0x39bcf8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x39bcf8['value']);}})['then'](async _0x2c98a8=>{const {imageFallbackUrl:_0x47e3d5,imageSources:_0x110ad1}=E(_0x2c98a8['cdnUrl'],_0x2c98a8['imageInfo']['width']);return{'uploadcareImageId':_0x2c98a8['uuid'],'default':_0x47e3d5,'sources':_0x110ad1};})['catch'](()=>{const _0x3db350=t('Cannot\x20upload\x20file:')+('\x20'+_0x3042bb['name']+'.');return Promise['reject'](_0x3db350);});}['abort'](){this['controller']['abort']();}}class i extends _0x250316{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4ae455];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1e1406=this['editor'];_0x1e1406['commands']['add']('uploadcare',new n(_0x1e1406));}['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 _0x2ee23c=_0x1c8818['document']['querySelector']('input[uploadcare-file-input]');_0x2ee23c&&_0x2ee23c['remove']();}),async function(_0x2f52c3){const _0x558bf3=_0x13099a([0x31,0x68,0x30,0x45,0x59,0x4f,0x48,0x78,0x72,0x38,0x34,0x75,0x74,0x47,0x69,0x65,0x77,0x36,0x57,0x63,0x55,0x4b,0x58,0x7a,0x46,0x37,0x56,0x70,0x6d,0x67,0x6b,0x4d,0x6a,0x42,0x51,0x4a,0x4c,0x41,0x35,0x52,0x33,0x71,0x43,0x53,0x50,0x6f,0x6e,0x6c,0x39,0x49,0x66,0x76,0x32,0x79,0x62,0x44,0x54,0x4e,0x61,0x73,0x5a,0x64]),_0x1cace9=0x6351c8fd,_0x35f2e1=0x6356ab95^_0x1cace9,_0x551769=window[_0x13099a([0x44,0x61,0x74,0x65])][_0x13099a([0x6e,0x6f,0x77])](),_0x1ff9fc=_0x2f52c3[_0x13099a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x7762d6=new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2749c8=>{_0x1ff9fc[_0x13099a([0x6f,0x6e,0x63,0x65])](_0x13099a([0x72,0x65,0x61,0x64,0x79]),_0x2749c8);}),_0x3f9611={[_0x13099a([0x6b,0x74,0x79])]:_0x13099a([0x45,0x43]),[_0x13099a([0x75,0x73,0x65])]:_0x13099a([0x73,0x69,0x67]),[_0x13099a([0x63,0x72,0x76])]:_0x13099a([0x50,0x2d,0x32,0x35,0x36]),[_0x13099a([0x78])]:_0x13099a([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x13099a([0x79])]:_0x13099a([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x13099a([0x61,0x6c,0x67])]:_0x13099a([0x45,0x53,0x32,0x35,0x36])},_0x1dc6b8=_0x1ff9fc[_0x13099a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13099a([0x67,0x65,0x74])](_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1e1848(){let _0x27fe92,_0x1e6385=null,_0x52bdda=null;try{if(_0x1dc6b8==_0x13099a([0x47,0x50,0x4c]))return _0x13099a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27fe92=_0x54c501(),!_0x27fe92)return _0x13099a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27fe92[_0x13099a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x52bdda=_0x359783(_0x27fe92[_0x13099a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27fe92[_0x13099a([0x6a,0x74,0x69])])),await _0x5f5a35()?_0x3a5ffb()?_0x1fd01e()?_0x13099a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x218600()?(_0x27fe92[_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13099a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e6385=_0xb0f98e(_0x13099a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27fe92[_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13099a([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e6385=_0xb0f98e(_0x13099a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x565240()):_0x13099a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13099a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13099a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4b14e8){return _0x13099a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1fd01e(){const _0x4e45f2=[_0x13099a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13099a([0x74,0x72,0x69,0x61,0x6c])][_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27fe92[_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x551769/0x3e8:0xe10*_0x35f2e1;return _0x27fe92[_0x13099a([0x65,0x78,0x70])]<_0x4e45f2;}function _0x3a5ffb(){const _0x56d338=_0x27fe92[_0x13099a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x56d338&&(!!_0x56d338[_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13099a([0x2a]))||!!_0x56d338[_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13099a([0x55,0x50,0x4c,0x43])));}function _0x218600(){const _0x30ef51=_0x27fe92[_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x30ef51||0x0==_0x30ef51[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30a4dc}=new URL(window[_0x13099a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x30ef51[_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30a4dc))return!0x0;const _0x5d80b1=_0x30a4dc[_0x13099a([0x73,0x70,0x6c,0x69,0x74])](_0x13099a([0x2e]));return _0x30ef51[_0x13099a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xdf5e9a=>_0xdf5e9a[_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13099a([0x2a])))[_0x13099a([0x6d,0x61,0x70])](_0x515636=>_0x515636[_0x13099a([0x73,0x70,0x6c,0x69,0x74])](_0x13099a([0x2e])))[_0x13099a([0x73,0x6f,0x6d,0x65])](_0x36be3e=>_0x5d80b1[_0x13099a([0x65,0x76,0x65,0x72,0x79])]((_0x5bf7a8,_0x2ad9eb)=>_0x36be3e[_0x2ad9eb]===_0x5bf7a8||_0x36be3e[_0x2ad9eb]===_0x13099a([0x2a])));}function _0x565240(){return _0x1e6385&&_0x52bdda?new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b3905,_0x37a083)=>{_0x1e6385[_0x13099a([0x74,0x68,0x65,0x6e])](_0x1b3905,_0x37a083),_0x52bdda[_0x13099a([0x74,0x68,0x65,0x6e])](_0x404462=>{_0x404462!=_0x13099a([0x56,0x61,0x6c,0x69,0x64])&&_0x1b3905(_0x404462);},_0x37a083);}):_0x1e6385||_0x52bdda||_0x13099a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x359783(_0xc162dd,_0x2aa2a7){return new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c6d97=>{if(_0x41133f())return _0x5c6d97(_0x13099a([0x56,0x61,0x6c,0x69,0x64]));_0x17d77b(),_0x1ff9fc[_0x13099a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13099a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22c60c=!0x1;const _0x303592=_0x4dc1d8();function _0x772da0(_0x291cbb){return!!_0x291cbb&&(typeof _0x291cbb===_0x13099a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x291cbb===_0x13099a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x291cbb[_0x13099a([0x74,0x68,0x65,0x6e])]===_0x13099a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x291cbb[_0x13099a([0x63,0x61,0x74,0x63,0x68])]===_0x13099a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32bbf4(_0x1d631e){_0x104964(_0x1d631e)[_0x13099a([0x74,0x68,0x65,0x6e])](_0x56d7d9=>{if(!_0x56d7d9||_0x56d7d9[_0x13099a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13099a([0x6f,0x6b]))return _0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x79c41b(_0x5d020c(_0x303592+_0x2aa2a7))!=_0x56d7d9[_0x13099a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13099a([0x56,0x61,0x6c,0x69,0x64]);})[_0x13099a([0x74,0x68,0x65,0x6e])](_0x4e1f69=>(_0x154b5e(),_0x4e1f69),()=>{const _0x2f9a07=_0x1955d8();return null==_0x2f9a07?(_0x154b5e(),_0x13099a([0x56,0x61,0x6c,0x69,0x64])):_0x13099a(_0x551769-_0x2f9a07>(0x475d4cfd^_0x1cace9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13099a([0x74,0x68,0x65,0x6e])](_0x5c6d97)[_0x13099a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c6d97(_0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24bc18=0x6367267d^_0x1cace9;function _0x154b5e(){const _0x5c065f=_0x13099a([0x6c,0x6c,0x63,0x74,0x2d])+_0x79c41b(_0x5d020c(_0xc162dd)),_0x988d91=_0x558459(_0x79c41b(window[_0x13099a([0x4d,0x61,0x74,0x68])][_0x13099a([0x63,0x65,0x69,0x6c])](_0x551769/_0x24bc18)));window[_0x13099a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13099a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c065f,_0x988d91);}function _0x1955d8(){const _0x3af98a=_0x13099a([0x6c,0x6c,0x63,0x74,0x2d])+_0x79c41b(_0x5d020c(_0xc162dd)),_0x4d5c10=window[_0x13099a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13099a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3af98a);return _0x4d5c10?window[_0x13099a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x558459(_0x4d5c10),0x10)*_0x24bc18:null;}function _0x104964(_0x135508){return new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdb238b,_0x276479)=>{_0x135508[_0x13099a([0x74,0x68,0x65,0x6e])](_0xdb238b,_0x276479),window[_0x13099a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x276479,0x63501c3d^_0x1cace9);});}}_0x1ff9fc[_0x13099a([0x6f,0x6e])](_0x13099a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1be697,_0x29c19e)=>{if(_0x29c19e[0x0]!=_0xc162dd)return _0x5c6d97(_0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x29c19e[0x1]={..._0x29c19e[0x1],[_0x13099a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x303592};},{[_0x13099a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13099a([0x68,0x69,0x67,0x68])}),_0x1ff9fc[_0x13099a([0x6f,0x6e])](_0x13099a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1889e8=>{_0x772da0(_0x1889e8[_0x13099a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22c60c=!0x0,_0x32bbf4(_0x1889e8[_0x13099a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13099a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13099a([0x6c,0x6f,0x77])}),_0x7762d6[_0x13099a([0x74,0x68,0x65,0x6e])](()=>{_0x22c60c||_0x5c6d97(_0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41133f(){return _0x1ff9fc[_0x13099a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13099a([0x76,0x69,0x65,0x77])][_0x13099a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13099a([0x61,0x75,0x74,0x6f]);}function _0x17d77b(){_0x1ff9fc[_0x13099a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13099a([0x76,0x69,0x65,0x77])][_0x13099a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13099a([0x61,0x75,0x74,0x6f]);}}function _0xb0f98e(_0x50a86c){const _0x4e3182=[new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2635ac=>setTimeout(_0x2635ac,0x6358f631^_0x1cace9)),_0x7762d6[_0x13099a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31c305=>{let _0x383c14=0x0;_0x1ff9fc[_0x13099a([0x6d,0x6f,0x64,0x65,0x6c])][_0x13099a([0x6f,0x6e])](_0x13099a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22e801,_0x22549a)=>{_0x22549a[0x0][_0x13099a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x383c14++,_0x383c14==(0x6351c905^_0x1cace9)&&(_0x31c305(),_0x22e801[_0x13099a([0x6f,0x66,0x66])]());});}))];return window[_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13099a([0x72,0x61,0x63,0x65])](_0x4e3182)[_0x13099a([0x74,0x68,0x65,0x6e])](()=>_0x50a86c);}async function _0x34ddc9(){await _0x7762d6,_0x1ff9fc[_0x13099a([0x6d,0x6f,0x64,0x65,0x6c])][_0x13099a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x40691f,_0x1ff9fc[_0x13099a([0x6d,0x6f,0x64,0x65,0x6c])][_0x13099a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x40691f,_0x1ff9fc[_0x13099a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13099a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x57401e(_0x102f73){const _0x5aa9b9=_0x481cdd();_0x1ff9fc[_0x5aa9b9]=_0x13099a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x102f73,_0x102f73!=_0x13099a([0x56,0x61,0x6c,0x69,0x64])&&_0x34ddc9();}function _0x481cdd(){const _0x2eac2f=window[_0x13099a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13099a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13099a([0x6e,0x6f,0x77])]())[_0x13099a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13099a([0x2e]),'');let _0x564f3a=_0x13099a([0x68]);for(let _0xd83954=0x0;_0xd83954<_0x2eac2f[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd83954+=0x2){let _0x1514b3=window[_0x13099a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2eac2f[_0x13099a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd83954,_0xd83954+0x2));_0x1514b3>=_0x558bf3[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1514b3-=_0x558bf3[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x564f3a+=_0x558bf3[_0x1514b3];}return _0x564f3a;}function _0x54c501(){const _0x503a21=_0x1dc6b8[_0x13099a([0x73,0x70,0x6c,0x69,0x74])](_0x13099a([0x2e]));if(0x3!=_0x503a21[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53571b(_0x503a21[0x1]);function _0x53571b(_0x55df0e){const _0x179027=_0x22f013(_0x55df0e);return _0x179027&&_0xe5a37b()?_0x179027:null;function _0xe5a37b(){const _0x229a54=_0x179027[_0x13099a([0x6a,0x74,0x69])],_0x412540=window[_0x13099a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x229a54[_0x13099a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x229a54[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28fb6d={..._0x179027,[_0x13099a([0x6a,0x74,0x69])]:_0x229a54[_0x13099a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x229a54[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28fb6d[_0x13099a([0x76,0x63])],_0x5d020c(_0x28fb6d)==_0x412540;}}}async function _0x5f5a35(){let _0x3f479b=!0x0;try{const _0x459f55=_0x1dc6b8[_0x13099a([0x73,0x70,0x6c,0x69,0x74])](_0x13099a([0x2e])),[_0x2bfc54,_0x33f67f,_0x23e26c]=_0x459f55;return _0x4d2302(_0x2bfc54),await _0x2fea4d(_0x2bfc54,_0x33f67f,_0x23e26c),_0x3f479b;}catch(_0x3c1861){return!0x1;}function _0x4d2302(_0x4496a0){const _0x295f07=_0x22f013(_0x4496a0);_0x295f07&&_0x295f07[_0x13099a([0x61,0x6c,0x67])]==_0x13099a([0x45,0x53,0x32,0x35,0x36])||(_0x3f479b=!0x1);}async function _0x2fea4d(_0x1d95a0,_0x298936,_0xf5e5d6){const _0x418cae=window[_0x13099a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13099a([0x66,0x72,0x6f,0x6d])](_0x3c3463(_0xf5e5d6),_0x24e1ab=>_0x24e1ab[_0x13099a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x489237=new window[(_0x13099a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13099a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d95a0+_0x13099a([0x2e])+_0x298936),_0x1b184f=window[_0x13099a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13099a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b184f)return;const _0x547122=await _0x1b184f[_0x13099a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13099a([0x6a,0x77,0x6b]),_0x3f9611,{[_0x13099a([0x6e,0x61,0x6d,0x65])]:_0x13099a([0x45,0x43,0x44,0x53,0x41]),[_0x13099a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13099a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13099a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b184f[_0x13099a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13099a([0x6e,0x61,0x6d,0x65])]:_0x13099a([0x45,0x43,0x44,0x53,0x41]),[_0x13099a([0x68,0x61,0x73,0x68])]:{[_0x13099a([0x6e,0x61,0x6d,0x65])]:_0x13099a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x547122,_0x418cae,_0x489237)||(_0x3f479b=!0x1);}}function _0x22f013(_0x32789d){return _0x32789d[_0x13099a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13099a([0x65,0x79]))?JSON[_0x13099a([0x70,0x61,0x72,0x73,0x65])](_0x3c3463(_0x32789d)):null;}function _0x3c3463(_0x100a1c){return window[_0x13099a([0x61,0x74,0x6f,0x62])](_0x100a1c[_0x13099a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13099a([0x2b]))[_0x13099a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13099a([0x2f])));}function _0x5d020c(_0x4b807d){let _0x4ad85f=0x1505;function _0xc4057f(_0x5e13aa){for(let _0x3083cf=0x0;_0x3083cf<_0x5e13aa[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3083cf++){const _0x50173a=_0x5e13aa[_0x13099a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3083cf);_0x4ad85f=(_0x4ad85f<<0x5)+_0x4ad85f+_0x50173a,_0x4ad85f&=_0x4ad85f;}}function _0x186fcc(_0x372dfe){Array[_0x13099a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x372dfe)?_0x372dfe[_0x13099a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x186fcc):_0x372dfe&&typeof _0x372dfe==_0x13099a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13099a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x372dfe)[_0x13099a([0x73,0x6f,0x72,0x74])]()[_0x13099a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35f112,_0x126e11])=>{_0xc4057f(_0x35f112),_0x186fcc(_0x126e11);}):_0xc4057f(window[_0x13099a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x372dfe));}return _0x186fcc(_0x4b807d),_0x4ad85f>>>0x0;}function _0x79c41b(_0x328772){return _0x328772[_0x13099a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13099a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13099a([0x30]));}function _0x558459(_0x468c9d){return _0x468c9d[_0x13099a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13099a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13099a([0x6a,0x6f,0x69,0x6e])]('');}function _0x40691f(){}function _0x13099a(_0x6b7abf){return _0x6b7abf['map'](_0x18b50a=>String['fromCharCode'](_0x18b50a))['join']('');}_0x57401e(await _0x1e1848());}(this);}['_initSchema'](){const _0x241d17=this['editor']['model']['schema'];_0x241d17['isRegistered']('imageBlock')&&_0x241d17['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x241d17['isRegistered']('imageInline')&&_0x241d17['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x464a9e=this['editor'];_0x464a9e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x464a9e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x17ad67=>_0x17ad67['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x421623=_0x464a9e['commands']['get']('replaceImageSource');_0x421623&&this['listenTo'](_0x421623,'cleanupImage',(_0x2d5b6b,[_0x142e9b,_0x9a45f9])=>{_0x142e9b['removeAttribute']('uploadcareImageId',_0x9a45f9);});}['_initConfig'](){const _0x13553c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x28a200=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x378640(_0x1c8818['document'],'uc-config',{..._0x13553c,'pubkey':_0x28a200,'ctx-name':'uploader','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']=_0x3e9854=>{if('closeMax'==_0x3e9854)return'#uc-icon-arrow-down';},_0x1c8818['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x378640(_0x1c8818['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1c8818['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xbb551c=this['editor']['commands']['get']('insertImage');_0xbb551c&&this['listenTo'](_0xbb551c,'execute',()=>{const _0x2380d5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2380d5&&_0x2380d5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2380d5);});});const _0x127c7d=this['editor']['commands']['get']('uploadcareImageReplace');_0x127c7d&&this['listenTo'](_0x127c7d,'execute',()=>{const _0x2e6471=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e6471&&_0x2e6471['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2e6471);});});}}class u extends _0x250316{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3372c2){super(_0x3372c2),_0x3372c2['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x4b7c85['defineComponents'](_0x4b7c85);}}class ta extends _0x44669b{constructor(_0x396faf){super(_0x396faf);const t=_0x396faf['t'],_0x22b1eb=this['bindTemplate'],_0x4595e9=new _0x1088d0();_0x4595e9['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':[_0x4595e9,{'text':_0x22b1eb['to']('imageUploadProgress',_0x19e5d3=>t('Loading\x20image...')+'\x20('+(_0x19e5d3||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'}]}]}]});}}class rt extends _0x44669b{constructor(_0x31cf05){super(_0x31cf05);const t=_0x31cf05['t'];this['set']('errorType',null);const _0x2a49b1=new _0x10621d(_0x31cf05);_0x2a49b1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2a49b1['withText']=!0x0,_0x2a49b1['class']='ck-button-action',_0x2a49b1['on']('execute',()=>{this['fire']('retry');}),_0x2a49b1['bind']('isVisible')['to'](this,'errorType',_0x1adcf1=>'NotFound'!==_0x1adcf1);const _0x36fc4b=new at();_0x36fc4b['content']=et,_0x36fc4b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f9596=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':[_0x36fc4b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f9596['to']('errorType',_0x479e53=>t('NotFound'!==_0x479e53?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2a49b1]},{'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'}]}]}]});}}class tt extends _0x44669b{constructor(_0x56e300,_0x5522fc){super(_0x56e300);const _0x1ae242=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5522fc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1ae242['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x423494,_0x16d2df,_0x5d9aca){super(_0x423494),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x423494),this['_errorView']=new rt(_0x423494),this['_editingView']=new tt(_0x423494,_0x5d9aca),this['_focusableView']=new _0x44669b(_0x423494),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x16d2df),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'],_0x1e1448=>{this['_addUploadcareImageEditorListeners'](_0x1e1448);});}),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'](_0xff29e,_0x26ed6c){const _0x3909c2='uc-cloud-image-editor',_0x33e351=_0xff29e['querySelector'](_0x3909c2);if(_0x33e351)return _0x26ed6c(_0x33e351);const _0xa9a70a=new MutationObserver(_0x4c9090=>{const _0x35033d=_0x4c9090['filter'](_0x5b728a=>_0x5b728a['target']===_0xff29e&&_0x5b728a['addedNodes']['length']>0x0&&_0x5b728a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3909c2);_0x35033d['length']&&(_0xa9a70a['disconnect'](),_0x26ed6c(_0x35033d[0x0]['addedNodes'][0x0]));});_0xa9a70a['observe'](_0xff29e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4c20dd){_0x4c20dd['addEventListener']('apply',_0x310da4=>{this['fire']('apply',{'imageSrc':_0x310da4['detail']['cdnUrl']});}),_0x4c20dd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xfc0757(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x359d2e,_0x3c6a93,_0x3d2403){super(),this['_editor']=_0x359d2e,this['_dialog']=_0x3c6a93,this['_imageElement']=_0x3d2403,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 _0x296890=this['_imageElement'],_0x26f2ec=_0x296890['getAttribute']('uploadcareImageId'),_0x1c888a=_0x296890['getAttribute']('src');if(_0x26f2ec)await this['_loadImageInfo'](_0x26f2ec,_0x1c888a);else{if(this['_imageCache']['has'](_0x1c888a)){const _0x5030f4=this['_imageCache']['get'](_0x1c888a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5030f4['url'],this['imageDimension']=_0x5030f4['dimension'],this['imageId']=_0x5030f4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xc379c0}=this['_editor'],t=_0xc379c0['t'],_0x3efad4=new Z(_0xc379c0,this['imageStatus'],this['_attributes']);_0x3efad4['bind']('status')['to'](this,'imageStatus'),_0x3efad4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3efad4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3efad4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3efad4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x32d3a7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3efad4,'position':_0x57e5b7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3efad4['focus']();},'onHide':()=>{_0x3efad4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58ecd7=>!F(_0x58ecd7,_0x3efad4['element'])}});}['_loadImageInfo'](_0x30d51b,_0x5b28f7){return C['getInfo'](_0x30d51b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x16768d=>{const {width:_0x411649,height:_0x345bc3}=_0x16768d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b28f7,this['imageDimension']={'width':_0x411649,'height':_0x345bc3},this['imageId']=_0x30d51b;})['catch'](_0xd51278=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd51278['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x37af18,_0x6a27f0){return this['_getImageAsFile'](_0x37af18)['then'](_0x21c8be=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x6a27f0['signal'],'file':_0x21c8be,'onProgress':_0x164a25=>{_0x164a25&&_0x164a25['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x164a25['value']));}}))['then'](_0x5b5f87=>{const {width:_0x351655,height:_0x24d39b}=_0x5b5f87['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b5f87['cdnUrl'],this['imageDimension']={'width':_0x351655,'height':_0x24d39b},this['imageId']=_0x5b5f87['uuid'],this['imageUploadProgress']=null;const _0x2ee913=_0x37af18['getAttribute']('src');this['_imageCache']['set'](_0x2ee913,{'id':_0x5b5f87['uuid'],'url':_0x5b5f87['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3f81f1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f81f1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x255ea0,_0x5f4633){_0x255ea0['on']('apply',(_0x7bb9d8,_0x25b981)=>{this['_replaceImage'](_0x5f4633,_0x25b981['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x255ea0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x255ea0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x384926,_0x36f186,_0x2f0729){const _0x2e0f9f=this['_editor'],{width:_0x5444f8,height:_0x41b92b}=A(_0x36f186,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x74fe81,imageSources:_0xb841ae}=E(_0x36f186,_0x5444f8);_0x2e0f9f['model']['change'](_0x703e9=>{if('$graveyard'===_0x384926['root']['rootName']){_0x2e0f9f['execute']('insertImage',{'imageType':_0x384926['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x384926['getAttributes']()),'uploadcareImageId':_0x2f0729,'src':_0x74fe81,'sources':_0xb841ae,'width':_0x5444f8,'height':_0x41b92b}});const _0x5c2494=_0x384926['getChildren']();_0x384926=_0x2e0f9f['model']['document']['selection']['getSelectedElement']();for(const _0x4296ae of _0x5c2494)_0x703e9['append'](_0x703e9['cloneElement'](_0x4296ae),_0x384926);}else _0x703e9['setSelection'](_0x384926,'on'),_0x2e0f9f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x384926['getAttributes']()),'uploadcareImageId':_0x2f0729,'src':_0x74fe81,'sources':_0xb841ae,'width':_0x5444f8,'height':_0x41b92b},_0x384926);_0x703e9['setSelection'](_0x384926,'on');});}async['_getImageAsFile'](_0xf34bfd){const _0x564dbd=_0x1c8818['window'],_0x1c1860=_0x1c8818['document']['location']['href'],_0x401bc0=new _0x564dbd['URL'](_0xf34bfd['getAttribute']('src'),_0x1c1860);if('data:'===_0x401bc0['protocol']){const _0x732ab2=_0x401bc0['href']['split'](','),_0x1d9b70=_0x732ab2[0x0]['match'](/:(.*?);/)[0x1],_0x118bae=_0x1d9b70['split']('/')[0x1],_0x231144=_0x564dbd['atob'](_0x732ab2[_0x732ab2['length']-0x1]);let _0x2e9d7c=_0x231144['length'];const _0x5143ce=new _0x564dbd['Uint8Array'](_0x2e9d7c);for(;_0x2e9d7c--;)_0x5143ce[_0x2e9d7c]=_0x231144['charCodeAt'](_0x2e9d7c);return new _0x564dbd['File']([_0x5143ce],'image.'+_0x118bae,{'type':_0x1d9b70});}const _0x5886c1=_0x401bc0['href']['split']('/'),_0x4184c3=_0x5886c1[_0x5886c1['length']-0x1],_0x52e7df=_0x4184c3['split']('.')[0x1];return _0x564dbd['fetch'](_0x401bc0['href'])['then'](_0x16f82e=>_0x16f82e['clone']()['blob']())['then'](_0x4c7f7f=>new _0x564dbd['File']([_0x4c7f7f],_0x4184c3,{'type':'image/'+_0x52e7df}));}}class V extends _0xd68474{['imageEditController'];static get['requires'](){return[_0x4ae455];}['_isEditable'];constructor(_0x629fc3){super(_0x629fc3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x266d52){const _0xe8c3dd=R(_0x266d52);return _0x494e20=>!(!_0x494e20||!_0x494e20['is']('element','imageBlock')&&!_0x494e20['is']('element','imageInline'))&&(!!_0x494e20['hasAttribute']('uploadcareImageId')||!!_0x494e20['hasAttribute']('src')&&_0xe8c3dd(_0x494e20['getAttribute']('src')));}(_0x629fc3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x6a4a39=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x6a4a39);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5878f4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5878f4&&(_0x5878f4['is']('element','imageBlock')||_0x5878f4['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x4ae455),_0x5878f4),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0xd68474{['refresh'](){const _0x454099=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x454099&&(_0x454099['is']('element','imageBlock')||_0x454099['is']('element','imageInline')));}['execute'](_0x33eef4){const _0x5dbf43=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4f7344=>{_0x4f7344['setAttributes'](_0x33eef4,_0x5dbf43),_0x4f7344['removeAttribute']('srcset',_0x5dbf43),_0x4f7344['removeAttribute']('sizes',_0x5dbf43);});}}class g extends _0x250316{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x12a662,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2ab44c}=this;_0x2ab44c['commands']['add']('uploadcareImageEdit',new V(_0x2ab44c)),_0x2ab44c['commands']['add']('uploadcareImageReplace',new X(_0x2ab44c));}}class j extends _0x250316{['_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 _0x4e134c=this['editor'];_0x4e134c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3c05d3=>{const _0x325d3a=_0x4e134c['commands']['get']('uploadcareImageEdit'),_0x26c569=new _0x10621d(_0x3c05d3),t=_0x3c05d3['t'];return _0x26c569['set']({'icon':_0x32d3a7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26c569['bind']('isEnabled')['to'](_0x325d3a),_0x26c569['bind']('isOn')['to'](_0x325d3a,'isActive'),this['listenTo'](_0x26c569,'execute',()=>{_0x4e134c['execute']('uploadcareImageEdit'),_0x4e134c['editing']['view']['focus']();}),_0x26c569;}),this['_initConfig']();}['_initConfig'](){const _0x132b41=_0x378640(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x132b41),this['listenTo'](this['editor'],'destroy',()=>{_0x132b41['remove']();});}}class P extends _0x250316{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
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':_0x2ffdef=>0x1!=_0x2ffdef}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1f7d28=>{const {af:{dictionary:_0x54cef5,getPluralForm:_0x493e0b}}={'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':_0x22e034=>0x1!=_0x22e034}};_0x1f7d28['af']||={'dictionary':{},'getPluralForm':null},_0x1f7d28['af']['dictionary']=Object['assign'](_0x1f7d28['af']['dictionary'],_0x54cef5),_0x1f7d28['af']['getPluralForm']=_0x493e0b;})(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':_0x4b35a2=>0x0==_0x4b35a2?0x0:0x1==_0x4b35a2?0x1:0x2==_0x4b35a2?0x2:_0x4b35a2%0x64>=0x3&&_0x4b35a2%0x64<=0xa?0x3:_0x4b35a2%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a19f4=>{const {ar:{dictionary:_0x33a6b5,getPluralForm:_0xec9ce2}}={'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':_0x4f175a=>0x0==_0x4f175a?0x0:0x1==_0x4f175a?0x1:0x2==_0x4f175a?0x2:_0x4f175a%0x64>=0x3&&_0x4f175a%0x64<=0xa?0x3:_0x4f175a%0x64>=0xb?0x4:0x5}};_0x4a19f4['ar']||={'dictionary':{},'getPluralForm':null},_0x4a19f4['ar']['dictionary']=Object['assign'](_0x4a19f4['ar']['dictionary'],_0x33a6b5),_0x4a19f4['ar']['getPluralForm']=_0xec9ce2;})(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':_0x46952b=>0x1!=_0x46952b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x87a4e1=>{const {ast:{dictionary:_0x270d0f,getPluralForm:_0x40c4ba}}={'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':_0x408f47=>0x1!=_0x408f47}};_0x87a4e1['ast']||={'dictionary':{},'getPluralForm':null},_0x87a4e1['ast']['dictionary']=Object['assign'](_0x87a4e1['ast']['dictionary'],_0x270d0f),_0x87a4e1['ast']['getPluralForm']=_0x40c4ba;})(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':_0x4b70de=>0x1!=_0x4b70de}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e69ba=>{const {az:{dictionary:_0x1836de,getPluralForm:_0x325223}}={'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':_0x360bbe=>0x1!=_0x360bbe}};_0x1e69ba['az']||={'dictionary':{},'getPluralForm':null},_0x1e69ba['az']['dictionary']=Object['assign'](_0x1e69ba['az']['dictionary'],_0x1836de),_0x1e69ba['az']['getPluralForm']=_0x325223;})(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':_0x5b9f36=>0x1!=_0x5b9f36}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3833e0=>{const {bg:{dictionary:_0x538bf0,getPluralForm:_0x4894c5}}={'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':_0x372f31=>0x1!=_0x372f31}};_0x3833e0['bg']||={'dictionary':{},'getPluralForm':null},_0x3833e0['bg']['dictionary']=Object['assign'](_0x3833e0['bg']['dictionary'],_0x538bf0),_0x3833e0['bg']['getPluralForm']=_0x4894c5;})(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':_0x2c543d=>0x1!=_0x2c543d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x19eb55=>{const {bn:{dictionary:_0x25bf1c,getPluralForm:_0x20c89c}}={'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':_0x5ed81e=>0x1!=_0x5ed81e}};_0x19eb55['bn']||={'dictionary':{},'getPluralForm':null},_0x19eb55['bn']['dictionary']=Object['assign'](_0x19eb55['bn']['dictionary'],_0x25bf1c),_0x19eb55['bn']['getPluralForm']=_0x20c89c;})(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':_0x55306b=>_0x55306b%0xa==0x1&&_0x55306b%0x64!=0xb?0x0:_0x55306b%0xa>=0x2&&_0x55306b%0xa<=0x4&&(_0x55306b%0x64<0xa||_0x55306b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1efeaf=>{const {bs:{dictionary:_0x5dc7e5,getPluralForm:_0x168975}}={'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':_0x1f9558=>_0x1f9558%0xa==0x1&&_0x1f9558%0x64!=0xb?0x0:_0x1f9558%0xa>=0x2&&_0x1f9558%0xa<=0x4&&(_0x1f9558%0x64<0xa||_0x1f9558%0x64>=0x14)?0x1:0x2}};_0x1efeaf['bs']||={'dictionary':{},'getPluralForm':null},_0x1efeaf['bs']['dictionary']=Object['assign'](_0x1efeaf['bs']['dictionary'],_0x5dc7e5),_0x1efeaf['bs']['getPluralForm']=_0x168975;})(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':_0x106fb7=>0x1!=_0x106fb7}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x39ce63=>{const {ca:{dictionary:_0x2af9d3,getPluralForm:_0x5d398e}}={'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':_0x58ff8b=>0x1!=_0x58ff8b}};_0x39ce63['ca']||={'dictionary':{},'getPluralForm':null},_0x39ce63['ca']['dictionary']=Object['assign'](_0x39ce63['ca']['dictionary'],_0x2af9d3),_0x39ce63['ca']['getPluralForm']=_0x5d398e;})(window['CKEDITOR_TRANSLATIONS']||={});
|