@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250910.0 → 0.0.0-nightly-20250912.1
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/LICENSE.md +1 -1
- 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/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +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 _0x5165f4,Command as _0x72b204}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x44a2e4,IconGooglePhotos as _0x33dbb4,IconGoogleDrive as _0x78a885,IconFacebook as _0x5b25aa,IconDropbox as _0x22a9c7,IconUploadcareLink as _0x38aefd,IconUploadcareImageUpload as _0x22c165,IconError as _0xdc629a,IconUploadcareImageEdit as _0x18dcdf}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4e3cdd,MenuBarMenuListItemButtonView as _0x5d577f,View as _0xd63c10,FocusCycler as _0x454412,Dialog as _0xc6a1ce,DialogViewPosition as _0x29605e,SpinnerView as _0x4009e0,IconView as _0x2deca1,Notification as _0x4338dc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x366bea,DomEmitterMixin as _0x3cce66,global as _0x43d4bc,getAncestors as _0x13123e,ObservableMixin as _0x50d258,uid as _0x50ff6b,createElement as _0x4dd115}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xe5515c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3f7f58,info as _0x1d2ca8}from'@uploadcare/upload-client';import*as _0x243864 from'@uploadcare/file-uploader';var i=function(_0x2907c5){return _0x2907c5['Local']='local',_0x2907c5['URL']='url',_0x2907c5['Dropbox']='dropbox',_0x2907c5['GDrive']='gdrive',_0x2907c5['Facebook']='facebook',_0x2907c5['GPhotos']='gphotos',_0x2907c5['OneDrive']='onedrive',_0x2907c5;}({});function _(_0x1d6edf,_0x5cc4e9,_0xfac7e5){const t=_0x1d6edf['t'],_0x246d91=_0x1d6edf['t'];switch(_0x5cc4e9){case i['Local']:return{'text':_0x246d91('Insert'===_0xfac7e5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x246d91('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xfac7e5?_0x246d91('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x246d91('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xfac7e5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xfac7e5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xfac7e5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xfac7e5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xfac7e5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5cc4e9;}}class e extends _0x5165f4{['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 _0x1b9329=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x27857e;for(const _0x330f6a in _0x1b9329){const _0x3b89e9=_0x330f6a,_0x5aa0a8=_0x1b9329[_0x3b89e9];if('uploadcareLicenseKeyValid'==_0x5aa0a8||'uploadcareLicenseKeyInvalid'==_0x5aa0a8||'uploadcareLicenseKeyExpired'==_0x5aa0a8||'uploadcareLicenseKeyDomainLimit'==_0x5aa0a8||'uploadcareLicenseKeyNotAllowed'==_0x5aa0a8||'uploadcareLicenseKeyEvaluationLimit'==_0x5aa0a8||'uploadcareLicenseKeyTrialLimit'==_0x5aa0a8||'uploadcareLicenseKeyUsageLimit'==_0x5aa0a8){delete _0x1b9329[_0x3b89e9],_0x27857e=_0x5aa0a8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x27857e&&_0x1b9329['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x27857e&&_0x1b9329['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x27857e&&_0x1b9329['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x27857e&&_0x1b9329['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x27857e&&_0x1b9329['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x27857e&&_0x1b9329['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x27857e&&_0x1b9329['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5e7096}=this,_0x28d94e=_0x5e7096['commands']['get']('uploadcare');if(!_0x28d94e)return;const _0x346c68=this['_normalizeConfigSourceList'](_0x5e7096['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5789f0,_0x183821)=>{const _0x2ed850=this['_getIntegrationKey'](_0x183821['type']);return _0x5789f0[_0x2ed850]||(_0x5789f0[_0x2ed850]=[]),_0x5789f0[_0x2ed850]['push'](_0x183821),_0x5789f0;},{});_0x5e7096['plugins']['has']('ImageInsertUI')&&_0x5e7096['commands']['get']('uploadcare')&&Object['entries'](_0x346c68)['forEach'](([_0x21dbff,_0x3c4275])=>{_0x5e7096['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x21dbff,'observable':()=>_0x28d94e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3c4275),'formViewCreator':()=>this['_createDropdownButtons'](_0x3c4275),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3c4275),'override':'assetManager'!==_0x21dbff});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1bf5c9){const {locale:_0x40a144}=this['editor'];return _0x1bf5c9['map'](_0x5e9654=>{const _0x6ba5ff=_(_0x40a144,_0x5e9654,'Insert');switch(_0x5e9654){case i['Local']:return{'icon':_0x22c165,'type':i['Local'],..._0x6ba5ff};case i['URL']:return{'icon':_0x38aefd,'type':i['URL'],..._0x6ba5ff};case i['Dropbox']:return{'icon':_0x22a9c7,'type':i['Dropbox'],..._0x6ba5ff};case i['Facebook']:return{'icon':_0x5b25aa,'type':i['Facebook'],..._0x6ba5ff};case i['GDrive']:return{'icon':_0x78a885,'type':i['GDrive'],..._0x6ba5ff};case i['GPhotos']:return{'icon':_0x33dbb4,'type':i['GPhotos'],..._0x6ba5ff};case i['OneDrive']:return{'icon':_0x44a2e4,'type':i['OneDrive'],..._0x6ba5ff};}});}['_getIntegrationKey'](_0x2ded20){switch(_0x2ded20){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x562afb,_0x2978bb){const _0x1d1151=this['editor'],_0x408a8c=new _0x562afb(_0x1d1151['locale']),_0x256a0f=_0x1d1151['commands']['get']('uploadcare');return _0x408a8c['bind']('isEnabled')['to'](_0x256a0f),_0x408a8c['on']('execute',()=>{_0x256a0f['execute'](_0x2978bb);}),_0x408a8c;}['_createToolbarButton'](_0x4ce175){const {locale:_0x18fbbf}=this['editor'],_0x5c6245=this['editor']['plugins']['get']('ImageInsertUI'),_0xc9af0d=_0x4ce175[0x0],_0x108351=this['_createButton'](_0x4e3cdd,_0xc9af0d['type']);return _0x108351['icon']=_0xc9af0d['icon'],_0x108351['bind']('label')['to'](_0x5c6245,'isImageSelected',_0x5591c3=>_(_0x18fbbf,_0xc9af0d['type'],_0x5591c3?'Replace':'Insert')['text']),_0x108351['tooltip']=!0x0,_0x108351;}['_createDropdownButtons'](_0x209577){const {locale:_0x45db57}=this['editor'],_0x13db92=this['editor']['plugins']['get']('ImageInsertUI');return _0x209577['map'](_0x34a497=>{const _0x2ba5ae=this['_createButton'](_0x4e3cdd,_0x34a497['type']);return _0x2ba5ae['withText']=!0x0,_0x2ba5ae['icon']=_0x34a497['icon'],_0x2ba5ae['bind']('label')['to'](_0x13db92,'isImageSelected',_0xa5cde3=>_(_0x45db57,_0x34a497['type'],_0xa5cde3?'Replace':'Insert')['text']),_0x2ba5ae;});}['_createMenuBarButtons'](_0x1bfbb8){return _0x1bfbb8['map'](_0x294202=>{const _0xc7183d=this['_createButton'](_0x5d577f,_0x294202['type']);return _0xc7183d['icon']=_0x294202['icon'],_0xc7183d['label']=_0x294202['shortText'],_0xc7183d;});}}class F extends _0xd63c10{['focusTracker'];['focusCycler'];constructor(_0x30c265){super(_0x30c265),this['focusTracker']=new _0x366bea(),this['focusCycler']=new _0x454412({'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 x extends F{constructor(_0x3d9362,_0x5d59ec){super(_0x3d9362),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-'+_0x5d59ec}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x244247,_0x34ed74){const _0xf35387=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2790e1=>_0x2790e1<=_0x34ed74)['map'](_0x176081=>_0x244247['replace'](/\/$/,'')+'/-/resize/'+_0x176081+'x/\x20'+_0x176081+'w');return{'imageFallbackUrl':_0x244247,'imageSources':[{'srcset':_0xf35387['join'](',\x20'),'sizes':'(max-width:\x20'+_0x34ed74+'px)\x20100vw,\x20'+_0x34ed74+'px','type':'image/webp'}]};}function S(_0x3f2257,_0x46f50a,_0x1eb45f){const _0x17f600=_0x3f2257['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x17f600?parseInt(_0x17f600[0x1],0xa):_0x46f50a,'height':_0x17f600?parseInt(_0x17f600[0x2],0xa):_0x1eb45f};}function p(_0x5420ec,_0x126d67){const _0x3cfea6=new(_0x3cce66())(),_0x2f1b61=_0x5420ec['plugins']['get']('ImageUtils'),_0x3515de=_0x5420ec['editing']['mapper']['toViewElement'](_0x126d67),_0x4d42dc=_0x2f1b61['findViewImgElement'](_0x3515de),_0x2899b7=_0x5420ec['editing']['view']['domConverter']['viewToDom'](_0x4d42dc),_0x509550=_0x126d67['getAttribute']('width'),_0x23a77a=_0x126d67['getAttribute']('height'),_0x102212='image-processing';_0x5420ec['editing']['view']['change'](_0x526980=>{_0x526980['addClass'](_0x102212,_0x3515de),_0x526980['setStyle']('aspect-ratio',_0x509550+'/'+_0x23a77a,_0x4d42dc);}),_0x3cfea6['listenTo'](_0x2899b7,'load',()=>{_0x3cfea6['stopListening'](_0x2899b7,'load'),_0x5420ec['editing']['view']['change'](_0x1e82a1=>{_0x1e82a1['removeClass'](_0x102212,_0x3515de),_0x1e82a1['removeStyle']('aspect-ratio',_0x4d42dc);});});}function G(_0x23d564){if(Array['isArray'](_0x23d564)){const _0x3ee84c=_0x23d564['map'](G);return _0x34eaab=>_0x3ee84c['some'](_0x1cb670=>_0x1cb670(_0x34eaab));}if('origin'==_0x23d564){const _0x551004=_0x43d4bc['window']['location']['origin'];return _0x4d837c=>new URL(_0x4d837c,_0x43d4bc['document']['baseURI'])['origin']==_0x551004;}return'function'==typeof _0x23d564?_0x23d564:_0x23d564 instanceof RegExp?_0x1a4d4f=>!(!_0x1a4d4f['match'](_0x23d564)&&!_0x1a4d4f['replace'](/^https?:\/\//,'')['match'](_0x23d564)):()=>!0x1;}function A(_0x2d95d9,_0x4b9653){return _0x13123e(_0x2d95d9['target'])['includes'](_0x4b9653);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x50d258(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x25a787,_0x40dfb7,_0x3b101c){super(),this['_editor']=_0x25a787,this['_editing']=_0x40dfb7,this['_dialog']=_0x25a787['plugins']['get'](_0xc6a1ce),this['_api']=_0x40dfb7['ctxElement']['getAPI'](),this['_type']=_0x3b101c,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:_0x141893,model:_0x2049f0}=this['_editor'],_0x2d2ce4=_0x2049f0['document']['selection']['getSelectedElement'](),_0x3057f2=_0x2d2ce4&&(_0x2d2ce4['is']('element','imageBlock')||_0x2d2ce4['is']('element','imageInline'));this['_formView']=new x(_0x141893,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x22c165,'title':_(_0x141893,this['_type'],_0x3057f2?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x29605e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x370ff6=>!A(_0x370ff6,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x150d3f}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x318609=>{const _0x31ec11=_0x150d3f['length'];for(const _0x232523 of _0x150d3f){const _0x4bda1f=_0x232523===_0x150d3f[_0x31ec11-0x1],{cdnUrl:_0x1fab42,fileInfo:_0x3f8e27}=_0x232523;if(!_0x1fab42||!_0x3f8e27)continue;const {width:_0x434292,height:_0x39649e}=_0x3f8e27['imageInfo'],_0x2c4565=S(_0x1fab42,_0x434292,_0x39649e),_0x212b75=C(_0x1fab42,_0x2c4565['width']),_0xfa9e0b={'id':_0x3f8e27['uuid'],'type':'image','attributes':{'imageDimension':_0x2c4565,..._0x212b75}};this['_insertAsset'](_0xfa9e0b,_0x4bda1f,_0x318609);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x84173d=>{'idle'===_0x84173d['detail']['status']&&!_0x84173d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1be19c,_0x23fcf0,_0x228588){const _0x4d6a77=this['_editor']['model']['document']['selection'],_0x379cd4=_0x4d6a77['getSelectedElement'](),_0x513833=!(!_0x379cd4||!_0x379cd4['is']('element','imageInline'));_0x228588['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1be19c,_0x513833),_0x23fcf0||_0x228588['setSelection'](_0x4d6a77['getLastPosition']());}['_insertImage'](_0x2d4a4e,_0x3eb35a){const _0x55ea0f=this['_editor'],{imageDimension:_0x3bba30,imageFallbackUrl:_0x3d0a55,imageSources:_0xe42663}=_0x2d4a4e['attributes'];_0x55ea0f['execute']('insertImage',{'imageType':_0x3eb35a?'imageInline':null,'source':{'uploadcareImageId':_0x2d4a4e['id'],'src':_0x3d0a55,'sources':_0xe42663,..._0x3bba30}});}}class w extends _0x72b204{['_editing'];['_controller']=null;static get['requires'](){return[_0xc6a1ce,o];}constructor(_0xbc48b7){super(_0xbc48b7),this['_editing']=_0xbc48b7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x19f8f6){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x19f8f6);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x356c68,..._0x2ad265}){return _0x3f7f58(_0x356c68,_0x2ad265);}static['getInfo'](_0x12daa5,_0x4d81d0){return _0x1d2ca8(_0x12daa5,_0x4d81d0);}}class f extends _0x5165f4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xe5515c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x297d8f=this['editor'];if(!!!_0x297d8f['config']['get']('uploadcare'))return;_0x297d8f['plugins']['get'](_0xe5515c)['createUploadAdapter']=_0x4bc3c4=>new k(_0x4bc3c4,_0x297d8f),_0x297d8f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4ec043,{imageElement:_0x20655c,data:_0x2a698b})=>{_0x297d8f['model']['change'](_0x463794=>{_0x463794['setAttribute']('uploadcareImageId',_0x2a698b['uploadcareImageId'],_0x20655c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x327d45,_0x4871cb){this['loader']=_0x327d45,this['editor']=_0x4871cb,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x37c003=await this['loader']['file'];return j['upload']({'file':_0x37c003,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x40407c=>{_0x40407c&&_0x40407c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x40407c['value']);}})['then'](async _0x4b8b9c=>{const {imageFallbackUrl:_0x55d993,imageSources:_0x1abb47}=C(_0x4b8b9c['cdnUrl'],_0x4b8b9c['imageInfo']['width']);return{'uploadcareImageId':_0x4b8b9c['uuid'],'default':_0x55d993,'sources':_0x1abb47};})['catch'](()=>{const _0x565ee2=t('Cannot\x20upload\x20file:')+('\x20'+_0x37c003['name']+'.');return Promise['reject'](_0x565ee2);});}['abort'](){this['controller']['abort']();}}class o extends _0x5165f4{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xc6a1ce];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2a13ae){super(_0x2a13ae),this['ucContextId']=_0x50ff6b();}['init'](){const _0x54975d=this['editor'];_0x54975d['commands']['add']('uploadcare',new w(_0x54975d));}['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 _0x3b1f0f=_0x43d4bc['document']['querySelector']('input[uploadcare-file-input]');_0x3b1f0f&&_0x3b1f0f['remove']();}),async function(_0x25b857){const _0xadc75=_0x2f6cb2([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x25139a=0x3d8d0df,_0x58f701=0x3dfa227^_0x25139a,_0x2d63c3=window[_0x2f6cb2([0x44,0x61,0x74,0x65])][_0x2f6cb2([0x6e,0x6f,0x77])](),_0x3e9fb9=_0x25b857[_0x2f6cb2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x41d118=new window[(_0x2f6cb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39ae87=>{_0x3e9fb9[_0x2f6cb2([0x6f,0x6e,0x63,0x65])](_0x2f6cb2([0x72,0x65,0x61,0x64,0x79]),_0x39ae87);}),_0x592c40={[_0x2f6cb2([0x6b,0x74,0x79])]:_0x2f6cb2([0x45,0x43]),[_0x2f6cb2([0x75,0x73,0x65])]:_0x2f6cb2([0x73,0x69,0x67]),[_0x2f6cb2([0x63,0x72,0x76])]:_0x2f6cb2([0x50,0x2d,0x32,0x35,0x36]),[_0x2f6cb2([0x78])]:_0x2f6cb2([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]),[_0x2f6cb2([0x79])]:_0x2f6cb2([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]),[_0x2f6cb2([0x61,0x6c,0x67])]:_0x2f6cb2([0x45,0x53,0x32,0x35,0x36])},_0x952178=_0x3e9fb9[_0x2f6cb2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f6cb2([0x67,0x65,0x74])](_0x2f6cb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46f342(){let _0x58efeb,_0x3a69bd=null,_0x274fc7=null;try{if(_0x952178==_0x2f6cb2([0x47,0x50,0x4c]))return _0x2f6cb2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58efeb=_0x44ebe7(),!_0x58efeb)return _0x2f6cb2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58efeb[_0x2f6cb2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x274fc7=_0x36e661(_0x58efeb[_0x2f6cb2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58efeb[_0x2f6cb2([0x6a,0x74,0x69])])),await _0x2d04aa()?_0x2a195f()?_0x4655bb()?_0x2f6cb2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e04cd()?(_0x58efeb[_0x2f6cb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f6cb2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a69bd=_0x4615cc(_0x2f6cb2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x58efeb[_0x2f6cb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f6cb2([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a69bd=_0x4615cc(_0x2f6cb2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a0280()):_0x2f6cb2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f6cb2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f6cb2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f6cb2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4655bb(){const _0x2908c6=[_0x2f6cb2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f6cb2([0x74,0x72,0x69,0x61,0x6c])][_0x2f6cb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58efeb[_0x2f6cb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d63c3/0x3e8:0xe10*_0x58f701;return _0x58efeb[_0x2f6cb2([0x65,0x78,0x70])]<_0x2908c6;}function _0x2a195f(){const _0x4ff144=_0x58efeb[_0x2f6cb2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4ff144&&(!!_0x4ff144[_0x2f6cb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6cb2([0x2a]))||!!_0x4ff144[_0x2f6cb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6cb2([0x55,0x50,0x4c,0x43])));}function _0x5e04cd(){const _0x5ad628=_0x58efeb[_0x2f6cb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ad628||0x0==_0x5ad628[_0x2f6cb2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4666fd}=new URL(window[_0x2f6cb2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ad628[_0x2f6cb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4666fd))return!0x0;const _0xf3c5ff=_0x4666fd[_0x2f6cb2([0x73,0x70,0x6c,0x69,0x74])](_0x2f6cb2([0x2e]));return _0x5ad628[_0x2f6cb2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25657d=>_0x25657d[_0x2f6cb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6cb2([0x2a])))[_0x2f6cb2([0x6d,0x61,0x70])](_0x31d58d=>_0x31d58d[_0x2f6cb2([0x73,0x70,0x6c,0x69,0x74])](_0x2f6cb2([0x2e])))[_0x2f6cb2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52ef56=>_0x52ef56[_0x2f6cb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf3c5ff[_0x2f6cb2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f6cb2([0x6d,0x61,0x70])](_0x158a79=>Array(_0xf3c5ff[_0x2f6cb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x158a79[_0x2f6cb2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f6cb2([0x66,0x69,0x6c,0x6c])](_0x158a79[0x0]===_0x2f6cb2([0x2a])?_0x2f6cb2([0x2a]):'')[_0x2f6cb2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x158a79))[_0x2f6cb2([0x73,0x6f,0x6d,0x65])](_0x284b07=>_0xf3c5ff[_0x2f6cb2([0x65,0x76,0x65,0x72,0x79])]((_0x428008,_0x15f411)=>_0x284b07[_0x15f411]===_0x428008||_0x284b07[_0x15f411]===_0x2f6cb2([0x2a])));}function _0x1a0280(){return _0x3a69bd&&_0x274fc7?new window[(_0x2f6cb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e7115,_0x26edfe)=>{_0x3a69bd[_0x2f6cb2([0x74,0x68,0x65,0x6e])](_0x4e7115,_0x26edfe),_0x274fc7[_0x2f6cb2([0x74,0x68,0x65,0x6e])](_0x137692=>{_0x137692!=_0x2f6cb2([0x56,0x61,0x6c,0x69,0x64])&&_0x4e7115(_0x137692);},_0x26edfe);}):_0x3a69bd||_0x274fc7||_0x2f6cb2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36e661(_0x3c7bd6,_0x519ce7){return new window[(_0x2f6cb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x327ba8=>{if(_0x3f3f03())return _0x327ba8(_0x2f6cb2([0x56,0x61,0x6c,0x69,0x64]));_0x3ffbd8(),_0x3e9fb9[_0x2f6cb2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f6cb2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43a4ed=!0x1;const _0x136cc4=_0x50ff6b();function _0x585092(_0x3eb475){return!!_0x3eb475&&(typeof _0x3eb475===_0x2f6cb2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3eb475===_0x2f6cb2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3eb475[_0x2f6cb2([0x74,0x68,0x65,0x6e])]===_0x2f6cb2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3eb475[_0x2f6cb2([0x63,0x61,0x74,0x63,0x68])]===_0x2f6cb2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x119ded(_0x41c456){_0x690af4(_0x41c456)[_0x2f6cb2([0x74,0x68,0x65,0x6e])](_0x48484d=>{if(!_0x48484d||_0x48484d[_0x2f6cb2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f6cb2([0x6f,0x6b]))return _0x2f6cb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x33a33b(_0x125a9e(_0x136cc4+_0x519ce7))!=_0x48484d[_0x2f6cb2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f6cb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f6cb2([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f6cb2([0x74,0x68,0x65,0x6e])](_0x273fd0=>(_0x5af215(),_0x273fd0),()=>{const _0x316751=_0xf2b1b1();return null==_0x316751?(_0x5af215(),_0x2f6cb2([0x56,0x61,0x6c,0x69,0x64])):_0x2f6cb2(_0x2d63c3-_0x316751>(0x27d454df^_0x25139a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f6cb2([0x74,0x68,0x65,0x6e])](_0x327ba8)[_0x2f6cb2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x327ba8(_0x2f6cb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37fb3a=0x3ee3e5f^_0x25139a;function _0x5af215(){const _0x25e68d=_0x2f6cb2([0x6c,0x6c,0x63,0x74,0x2d])+_0x33a33b(_0x125a9e(_0x3c7bd6)),_0x3b0e96=_0x31b633(_0x33a33b(window[_0x2f6cb2([0x4d,0x61,0x74,0x68])][_0x2f6cb2([0x63,0x65,0x69,0x6c])](_0x2d63c3/_0x37fb3a)));window[_0x2f6cb2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f6cb2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25e68d,_0x3b0e96);}function _0xf2b1b1(){const _0x234738=_0x2f6cb2([0x6c,0x6c,0x63,0x74,0x2d])+_0x33a33b(_0x125a9e(_0x3c7bd6)),_0x2fb0c4=window[_0x2f6cb2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f6cb2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x234738);return _0x2fb0c4?window[_0x2f6cb2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31b633(_0x2fb0c4),0x10)*_0x37fb3a:null;}function _0x690af4(_0x2768db){return new window[(_0x2f6cb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33f48d,_0x211ab2)=>{_0x2768db[_0x2f6cb2([0x74,0x68,0x65,0x6e])](_0x33f48d,_0x211ab2),window[_0x2f6cb2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x211ab2,0x3d9041f^_0x25139a);});}}_0x3e9fb9[_0x2f6cb2([0x6f,0x6e])](_0x2f6cb2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e9183,_0x54c9ba)=>{if(_0x54c9ba[0x0]!=_0x3c7bd6)return _0x327ba8(_0x2f6cb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54c9ba[0x1]={..._0x54c9ba[0x1],[_0x2f6cb2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x136cc4};},{[_0x2f6cb2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f6cb2([0x68,0x69,0x67,0x68])}),_0x3e9fb9[_0x2f6cb2([0x6f,0x6e])](_0x2f6cb2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1d61b3=>{_0x585092(_0x1d61b3[_0x2f6cb2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43a4ed=!0x0,_0x119ded(_0x1d61b3[_0x2f6cb2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f6cb2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f6cb2([0x6c,0x6f,0x77])}),_0x41d118[_0x2f6cb2([0x74,0x68,0x65,0x6e])](()=>{_0x43a4ed||_0x327ba8(_0x2f6cb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f3f03(){return _0x3e9fb9[_0x2f6cb2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f6cb2([0x76,0x69,0x65,0x77])][_0x2f6cb2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f6cb2([0x61,0x75,0x74,0x6f]);}function _0x3ffbd8(){_0x3e9fb9[_0x2f6cb2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f6cb2([0x76,0x69,0x65,0x77])][_0x2f6cb2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f6cb2([0x61,0x75,0x74,0x6f]);}}function _0x4615cc(_0xbceb00){const _0x481bf6=[new window[(_0x2f6cb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b99ae=>setTimeout(_0x2b99ae,0x3d1ee13^_0x25139a)),_0x41d118[_0x2f6cb2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f6cb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x104be3=>{let _0x10c4f7=0x0;_0x3e9fb9[_0x2f6cb2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f6cb2([0x6f,0x6e])](_0x2f6cb2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5802a9,_0x2f2058)=>{_0x2f2058[0x0][_0x2f6cb2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x10c4f7++,_0x10c4f7==(0x3d8d127^_0x25139a)&&(_0x104be3(),_0x5802a9[_0x2f6cb2([0x6f,0x66,0x66])]());});}))];return window[_0x2f6cb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f6cb2([0x72,0x61,0x63,0x65])](_0x481bf6)[_0x2f6cb2([0x74,0x68,0x65,0x6e])](()=>_0xbceb00);}async function _0x38b4e9(){await _0x41d118,_0x3e9fb9[_0x2f6cb2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f6cb2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x309502,_0x3e9fb9[_0x2f6cb2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f6cb2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x309502,_0x3e9fb9[_0x2f6cb2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f6cb2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x27b759(_0x4ac74c){const _0x5f38b4=_0x2b192d();_0x3e9fb9[_0x5f38b4]=_0x2f6cb2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ac74c,_0x4ac74c!=_0x2f6cb2([0x56,0x61,0x6c,0x69,0x64])&&_0x38b4e9();}function _0x2b192d(){const _0x252f72=window[_0x2f6cb2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f6cb2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f6cb2([0x6e,0x6f,0x77])]())[_0x2f6cb2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f6cb2([0x2e]),'');let _0x16cf88=_0x2f6cb2([0x52]);for(let _0x6282ba=0x0;_0x6282ba<_0x252f72[_0x2f6cb2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6282ba+=0x2){let _0x29ae0c=window[_0x2f6cb2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x252f72[_0x2f6cb2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6282ba,_0x6282ba+0x2));_0x29ae0c>=_0xadc75[_0x2f6cb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29ae0c-=_0xadc75[_0x2f6cb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16cf88+=_0xadc75[_0x29ae0c];}return _0x16cf88;}function _0x44ebe7(){const _0x447a22=_0x952178[_0x2f6cb2([0x73,0x70,0x6c,0x69,0x74])](_0x2f6cb2([0x2e]));if(0x3!=_0x447a22[_0x2f6cb2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1df8be(_0x447a22[0x1]);function _0x1df8be(_0x2476a8){const _0x1e6fca=_0x211b1a(_0x2476a8);return _0x1e6fca&&_0xfe506d()?_0x1e6fca:null;function _0xfe506d(){const _0xc19af8=_0x1e6fca[_0x2f6cb2([0x6a,0x74,0x69])],_0x4c8a9e=window[_0x2f6cb2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc19af8[_0x2f6cb2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc19af8[_0x2f6cb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x25b023={..._0x1e6fca,[_0x2f6cb2([0x6a,0x74,0x69])]:_0xc19af8[_0x2f6cb2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc19af8[_0x2f6cb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x25b023[_0x2f6cb2([0x76,0x63])],_0x125a9e(_0x25b023)==_0x4c8a9e;}}}async function _0x2d04aa(){let _0x39d15d=!0x0;try{const _0x405427=_0x952178[_0x2f6cb2([0x73,0x70,0x6c,0x69,0x74])](_0x2f6cb2([0x2e])),[_0x993b1a,_0x192da8,_0x1346b3]=_0x405427;return _0x51ceeb(_0x993b1a),await _0x5eefb5(_0x993b1a,_0x192da8,_0x1346b3),_0x39d15d;}catch{return!0x1;}function _0x51ceeb(_0xff3501){const _0x483a37=_0x211b1a(_0xff3501);_0x483a37&&_0x483a37[_0x2f6cb2([0x61,0x6c,0x67])]==_0x2f6cb2([0x45,0x53,0x32,0x35,0x36])||(_0x39d15d=!0x1);}async function _0x5eefb5(_0x1ab104,_0x567e39,_0x238fef){const _0x431dae=window[_0x2f6cb2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f6cb2([0x66,0x72,0x6f,0x6d])](_0x3b63b1(_0x238fef),_0x4eed49=>_0x4eed49[_0x2f6cb2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5711ea=new window[(_0x2f6cb2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f6cb2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ab104+_0x2f6cb2([0x2e])+_0x567e39),_0x47b06b=window[_0x2f6cb2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f6cb2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47b06b)return;const _0x56386b=await _0x47b06b[_0x2f6cb2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f6cb2([0x6a,0x77,0x6b]),_0x592c40,{[_0x2f6cb2([0x6e,0x61,0x6d,0x65])]:_0x2f6cb2([0x45,0x43,0x44,0x53,0x41]),[_0x2f6cb2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f6cb2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f6cb2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47b06b[_0x2f6cb2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f6cb2([0x6e,0x61,0x6d,0x65])]:_0x2f6cb2([0x45,0x43,0x44,0x53,0x41]),[_0x2f6cb2([0x68,0x61,0x73,0x68])]:{[_0x2f6cb2([0x6e,0x61,0x6d,0x65])]:_0x2f6cb2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x56386b,_0x431dae,_0x5711ea)||(_0x39d15d=!0x1);}}function _0x211b1a(_0x25f136){return _0x25f136[_0x2f6cb2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f6cb2([0x65,0x79]))?JSON[_0x2f6cb2([0x70,0x61,0x72,0x73,0x65])](_0x3b63b1(_0x25f136)):null;}function _0x3b63b1(_0x1a7a16){return window[_0x2f6cb2([0x61,0x74,0x6f,0x62])](_0x1a7a16[_0x2f6cb2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f6cb2([0x2b]))[_0x2f6cb2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f6cb2([0x2f])));}function _0x125a9e(_0x52a1e1){let _0x27e416=0x1505;function _0x54bd35(_0x11d70b){for(let _0x3c16d8=0x0;_0x3c16d8<_0x11d70b[_0x2f6cb2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c16d8++){const _0x56977e=_0x11d70b[_0x2f6cb2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c16d8);_0x27e416=(_0x27e416<<0x5)+_0x27e416+_0x56977e,_0x27e416&=_0x27e416;}}function _0x4f9d21(_0xff1d95){Array[_0x2f6cb2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xff1d95)?_0xff1d95[_0x2f6cb2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f9d21):_0xff1d95&&typeof _0xff1d95==_0x2f6cb2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f6cb2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xff1d95)[_0x2f6cb2([0x73,0x6f,0x72,0x74])]()[_0x2f6cb2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28f87a,_0x4219f8])=>{_0x54bd35(_0x28f87a),_0x4f9d21(_0x4219f8);}):_0x54bd35(window[_0x2f6cb2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xff1d95));}return _0x4f9d21(_0x52a1e1),_0x27e416>>>0x0;}function _0x33a33b(_0x128abe){return _0x128abe[_0x2f6cb2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f6cb2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f6cb2([0x30]));}function _0x31b633(_0x4dd8c3){return _0x4dd8c3[_0x2f6cb2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f6cb2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f6cb2([0x6a,0x6f,0x69,0x6e])]('');}function _0x309502(){}function _0x2f6cb2(_0x5617c4){return _0x5617c4['map'](_0x2fc804=>String['fromCharCode'](_0x2fc804))['join']('');}_0x27b759(await _0x46f342());}(this);}['_initSchema'](){const _0x57b653=this['editor']['model']['schema'];_0x57b653['isRegistered']('imageBlock')&&_0x57b653['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x57b653['isRegistered']('imageInline')&&_0x57b653['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5e01d7=this['editor'];_0x5e01d7['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5e01d7['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xab6be0=>_0xab6be0['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x410a8d=_0x5e01d7['commands']['get']('replaceImageSource');_0x410a8d&&this['listenTo'](_0x410a8d,'cleanupImage',(_0x39b8f6,[_0x5036ae,_0x6526cc])=>{_0x5036ae['removeAttribute']('uploadcareImageId',_0x6526cc);});}['_initConfig'](){const _0x49addd=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3ad4b4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4dd115(_0x43d4bc['document'],'uc-config',{..._0x49addd,'pubkey':_0x3ad4b4,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4db692=>{if('closeMax'==_0x4db692)return'#uc-icon-arrow-down';},_0x43d4bc['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4dd115(_0x43d4bc['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x43d4bc['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1856b1=this['editor']['commands']['get']('insertImage');_0x1856b1&&this['listenTo'](_0x1856b1,'execute',()=>{const _0x55b393=this['editor']['model']['document']['selection']['getSelectedElement']();_0x55b393&&_0x55b393['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x55b393);});});const _0x283f50=this['editor']['commands']['get']('uploadcareImageReplace');_0x283f50&&this['listenTo'](_0x283f50,'execute',()=>{const _0x365fbc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x365fbc&&_0x365fbc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x365fbc);});});}}class tt extends _0x5165f4{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51f867){super(_0x51f867),_0x51f867['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x243864['defineComponents'](_0x243864);}}class ii extends _0xd63c10{constructor(_0x46026a){super(_0x46026a);const t=_0x46026a['t'],_0x597ef3=this['bindTemplate'],_0x45cf16=new _0x4009e0();_0x45cf16['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':[_0x45cf16,{'text':_0x597ef3['to']('imageUploadProgress',_0x102368=>t('Loading\x20image...')+'\x20('+(_0x102368||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 ti extends _0xd63c10{constructor(_0xe28961){super(_0xe28961);const t=_0xe28961['t'];this['set']('errorType',null);const _0x1af8d8=new _0x4e3cdd(_0xe28961);_0x1af8d8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1af8d8['withText']=!0x0,_0x1af8d8['class']='ck-button-action',_0x1af8d8['on']('execute',()=>{this['fire']('retry');}),_0x1af8d8['bind']('isVisible')['to'](this,'errorType',_0x4294eb=>'NotFound'!==_0x4294eb);const _0x5ac0f2=new _0x2deca1();_0x5ac0f2['content']=_0xdc629a,_0x5ac0f2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x17f942=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':[_0x5ac0f2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x17f942['to']('errorType',_0xe3bcb5=>t('NotFound'!==_0xe3bcb5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1af8d8]},{'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 ei extends _0xd63c10{constructor(_0x41a727,_0x3f6258){super(_0x41a727);const _0x5cd4ca=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3f6258,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5cd4ca['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x157bef,_0x15e046,_0x2873bb){super(_0x157bef),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x157bef),this['_errorView']=new ti(_0x157bef),this['_editingView']=new ei(_0x157bef,_0x2873bb),this['_focusableView']=new _0xd63c10(_0x157bef),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x15e046),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'],_0x3751f9=>{this['_addUploadcareImageEditorListeners'](_0x3751f9);});}),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'](_0x4b35ae,_0x45b0f3){const _0x471011='uc-cloud-image-editor',_0x5a0e07=_0x4b35ae['querySelector'](_0x471011);if(_0x5a0e07)return _0x45b0f3(_0x5a0e07);const _0x109fea=new MutationObserver(_0x53ecf9=>{const _0x86f5e0=_0x53ecf9['filter'](_0x1e9417=>_0x1e9417['target']===_0x4b35ae&&_0x1e9417['addedNodes']['length']>0x0&&_0x1e9417['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x471011);_0x86f5e0['length']&&(_0x109fea['disconnect'](),_0x45b0f3(_0x86f5e0[0x0]['addedNodes'][0x0]));});_0x109fea['observe'](_0x4b35ae,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x57e6af){_0x57e6af['addEventListener']('apply',_0x343a22=>{this['fire']('apply',{'imageSrc':_0x343a22['detail']['cdnUrl']});}),_0x57e6af['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x50d258(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x16ddda,_0x3c7543,_0x41de5c){super(),this['_editor']=_0x16ddda,this['_dialog']=_0x3c7543,this['_imageElement']=_0x41de5c,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 _0x3cb463=this['_imageElement'],_0x591c20=_0x3cb463['getAttribute']('uploadcareImageId'),_0xb7a109=_0x3cb463['getAttribute']('src');if(_0x591c20)await this['_loadImageInfo'](_0x591c20,_0xb7a109);else{if(this['_imageCache']['has'](_0xb7a109)){const _0x4db531=this['_imageCache']['get'](_0xb7a109);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4db531['url'],this['imageDimension']=_0x4db531['dimension'],this['imageId']=_0x4db531['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3c78fd}=this['_editor'],t=_0x3c78fd['t'],_0xe3148=new X(_0x3c78fd,this['imageStatus'],this['_attributes']);_0xe3148['bind']('status')['to'](this,'imageStatus'),_0xe3148['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xe3148['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xe3148['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xe3148,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x18dcdf,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xe3148,'position':_0x29605e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xe3148['focus']();},'onHide':()=>{_0xe3148['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x98ca0b=>!A(_0x98ca0b,_0xe3148['element'])}});}['_loadImageInfo'](_0x3c241b,_0x1dbac1){return j['getInfo'](_0x3c241b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5b047e=>{const {width:_0x1d3b17,height:_0x4822b6}=_0x5b047e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1dbac1,this['imageDimension']={'width':_0x1d3b17,'height':_0x4822b6},this['imageId']=_0x3c241b;})['catch'](_0x5b5e09=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b5e09['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2dc818,_0x2659a9){return this['_getImageAsFile'](_0x2dc818)['then'](_0x3e51cd=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2659a9['signal'],'file':_0x3e51cd,'onProgress':_0x39f668=>{_0x39f668&&_0x39f668['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x39f668['value']));}}))['then'](_0x1f7f13=>{const {width:_0x2196d9,height:_0x27ae4f}=_0x1f7f13['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1f7f13['cdnUrl'],this['imageDimension']={'width':_0x2196d9,'height':_0x27ae4f},this['imageId']=_0x1f7f13['uuid'],this['imageUploadProgress']=null;const _0x307072=_0x2dc818['getAttribute']('src');this['_imageCache']['set'](_0x307072,{'id':_0x1f7f13['uuid'],'url':_0x1f7f13['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x22d1fa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22d1fa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x19b086,_0x371dba){_0x19b086['on']('apply',(_0x489820,_0x33ae0e)=>{this['_replaceImage'](_0x371dba,_0x33ae0e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x19b086['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x19b086['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1111fd,_0x22f0da,_0x47219a){const _0x1f9011=this['_editor'],{width:_0x17cf97,height:_0x15eeed}=S(_0x22f0da,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x140200,imageSources:_0x8da16}=C(_0x22f0da,_0x17cf97);_0x1f9011['model']['change'](_0x553ef5=>{if('$graveyard'===_0x1111fd['root']['rootName']){_0x1f9011['execute']('insertImage',{'imageType':_0x1111fd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1111fd['getAttributes']()),'uploadcareImageId':_0x47219a,'src':_0x140200,'sources':_0x8da16,'width':_0x17cf97,'height':_0x15eeed}});const _0x3f7a8a=_0x1111fd['getChildren']();_0x1111fd=_0x1f9011['model']['document']['selection']['getSelectedElement']();for(const _0x5b10c0 of _0x3f7a8a)_0x553ef5['append'](_0x553ef5['cloneElement'](_0x5b10c0),_0x1111fd);}else _0x553ef5['setSelection'](_0x1111fd,'on'),_0x1f9011['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1111fd['getAttributes']()),'uploadcareImageId':_0x47219a,'src':_0x140200,'sources':_0x8da16,'width':_0x17cf97,'height':_0x15eeed},_0x1111fd);_0x553ef5['setSelection'](_0x1111fd,'on');});}async['_getImageAsFile'](_0x227c4f){const _0x25e971=_0x43d4bc['window'],_0x1b6c92=_0x43d4bc['document']['location']['href'],_0x1a1014=new _0x25e971['URL'](_0x227c4f['getAttribute']('src'),_0x1b6c92);if('data:'===_0x1a1014['protocol']){const _0x5f0de8=_0x1a1014['href']['split'](','),_0xfb4993=_0x5f0de8[0x0]['match'](/:(.*?);/)[0x1],_0x1b677e=_0xfb4993['split']('/')[0x1],_0x10c339=_0x25e971['atob'](_0x5f0de8[_0x5f0de8['length']-0x1]);let _0x1ce6e5=_0x10c339['length'];const _0x4b8e32=new _0x25e971['Uint8Array'](_0x1ce6e5);for(;_0x1ce6e5--;)_0x4b8e32[_0x1ce6e5]=_0x10c339['charCodeAt'](_0x1ce6e5);return new _0x25e971['File']([_0x4b8e32],'image.'+_0x1b677e,{'type':_0xfb4993});}const _0x3a59a3=_0x1a1014['href']['split']('/'),_0x5ac657=_0x3a59a3[_0x3a59a3['length']-0x1],_0x1233a0=_0x5ac657['split']('.')[0x1];return _0x25e971['fetch'](_0x1a1014['href'])['then'](_0x5e7b4e=>_0x5e7b4e['clone']()['blob']())['then'](_0x9998d8=>new _0x25e971['File']([_0x9998d8],_0x5ac657,{'type':'image/'+_0x1233a0}));}}class O extends _0x72b204{['imageEditController'];static get['requires'](){return[_0xc6a1ce];}['_isEditable'];constructor(_0x1d04a7){super(_0x1d04a7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x332d56){const _0x282f29=G(_0x332d56);return _0x413277=>!(!_0x413277||!_0x413277['is']('element','imageBlock')&&!_0x413277['is']('element','imageInline'))&&(!!_0x413277['hasAttribute']('uploadcareImageId')||!!_0x413277['hasAttribute']('src')&&_0x282f29(_0x413277['getAttribute']('src')));}(_0x1d04a7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xe0953e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xe0953e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3d0dd5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d0dd5&&(_0x3d0dd5['is']('element','imageBlock')||_0x3d0dd5['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0xc6a1ce),_0x3d0dd5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x72b204{['refresh'](){const _0x377a7f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x377a7f&&(_0x377a7f['is']('element','imageBlock')||_0x377a7f['is']('element','imageInline')));}['execute'](_0x34ed68){const _0x5d0841=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x549efb=>{_0x549efb['setAttributes'](_0x34ed68,_0x5d0841),_0x549efb['removeAttribute']('srcset',_0x5d0841),_0x549efb['removeAttribute']('sizes',_0x5d0841);});}}class m extends _0x5165f4{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4338dc,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x18982d}=this;_0x18982d['commands']['add']('uploadcareImageEdit',new O(_0x18982d)),_0x18982d['commands']['add']('uploadcareImageReplace',new R(_0x18982d));}}class g extends _0x5165f4{['_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 _0xd7f8=this['editor'];_0xd7f8['ui']['componentFactory']['add']('uploadcareImageEdit',_0xa454fb=>{const _0x4bb015=_0xd7f8['commands']['get']('uploadcareImageEdit'),_0x367503=new _0x4e3cdd(_0xa454fb),t=_0xa454fb['t'];return _0x367503['set']({'icon':_0x18dcdf,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x367503['bind']('isEnabled')['to'](_0x4bb015),_0x367503['bind']('isOn')['to'](_0x4bb015,'isActive'),this['listenTo'](_0x367503,'execute',()=>{_0xd7f8['execute']('uploadcareImageEdit'),_0xd7f8['editing']['view']['focus']();}),_0x367503;}),this['_initConfig']();}['_initConfig'](){const _0x2f992e=_0x4dd115(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2f992e),this['listenTo'](this['editor'],'destroy',()=>{_0x2f992e['remove']();});}}class et extends _0x5165f4{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x1e9a45,Command as _0x31fdab}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5894ec,IconGooglePhotos as _0x2662d4,IconGoogleDrive as _0x5906f1,IconFacebook as _0x5c3b05,IconDropbox as _0x527d5d,IconUploadcareLink as _0x165877,IconUploadcareImageUpload as _0xc4e461,IconError as _0x383a8f,IconUploadcareImageEdit as _0x345025}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x42113b,MenuBarMenuListItemButtonView as _0x3e84bc,View as _0x4ee645,FocusCycler as _0x4bbf33,Dialog as _0x56592d,DialogViewPosition as _0x5cfad9,SpinnerView as _0x92cc36,IconView as _0x2b9556,Notification as _0x403165}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x25b9a7,DomEmitterMixin as _0x42629b,global as _0x3b3c0f,getAncestors as _0x53305a,ObservableMixin as _0x51173b,uid as _0x56dfa8,createElement as _0x1823e3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x354e0d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4d1f73,info as _0x2677ba}from'@uploadcare/upload-client';import*as _0x167c16 from'@uploadcare/file-uploader';var i=function(_0x4aba99){return _0x4aba99['Local']='local',_0x4aba99['URL']='url',_0x4aba99['Dropbox']='dropbox',_0x4aba99['GDrive']='gdrive',_0x4aba99['Facebook']='facebook',_0x4aba99['GPhotos']='gphotos',_0x4aba99['OneDrive']='onedrive',_0x4aba99;}({});function _(_0x26f2b6,_0x439060,_0x53684a){const t=_0x26f2b6['t'],_0x306542=_0x26f2b6['t'];switch(_0x439060){case i['Local']:return{'text':_0x306542('Insert'===_0x53684a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x306542('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x53684a?_0x306542('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x306542('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x53684a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x53684a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x53684a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x53684a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x53684a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x439060;}}class e extends _0x1e9a45{['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 _0x3caed4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2957d1;for(const _0x5aa195 in _0x3caed4){const _0x139a5c=_0x5aa195,_0x3408a0=_0x3caed4[_0x139a5c];if('uploadcareLicenseKeyValid'==_0x3408a0||'uploadcareLicenseKeyInvalid'==_0x3408a0||'uploadcareLicenseKeyExpired'==_0x3408a0||'uploadcareLicenseKeyDomainLimit'==_0x3408a0||'uploadcareLicenseKeyNotAllowed'==_0x3408a0||'uploadcareLicenseKeyEvaluationLimit'==_0x3408a0||'uploadcareLicenseKeyTrialLimit'==_0x3408a0||'uploadcareLicenseKeyUsageLimit'==_0x3408a0){delete _0x3caed4[_0x139a5c],_0x2957d1=_0x3408a0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2957d1&&_0x3caed4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2957d1&&_0x3caed4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2957d1&&_0x3caed4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2957d1&&_0x3caed4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2957d1&&_0x3caed4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2957d1&&_0x3caed4['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2957d1&&_0x3caed4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x12d5e0}=this,_0x2650a4=_0x12d5e0['commands']['get']('uploadcare');if(!_0x2650a4)return;const _0xc8f353=this['_normalizeConfigSourceList'](_0x12d5e0['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x450482,_0x5e1c7f)=>{const _0x1c5610=this['_getIntegrationKey'](_0x5e1c7f['type']);return _0x450482[_0x1c5610]||(_0x450482[_0x1c5610]=[]),_0x450482[_0x1c5610]['push'](_0x5e1c7f),_0x450482;},{});_0x12d5e0['plugins']['has']('ImageInsertUI')&&_0x12d5e0['commands']['get']('uploadcare')&&Object['entries'](_0xc8f353)['forEach'](([_0x25cc9b,_0x13a35b])=>{_0x12d5e0['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x25cc9b,'observable':()=>_0x2650a4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x13a35b),'formViewCreator':()=>this['_createDropdownButtons'](_0x13a35b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x13a35b),'override':'assetManager'!==_0x25cc9b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x133a87){const {locale:_0x14f2c2}=this['editor'];return _0x133a87['map'](_0x31c04c=>{const _0x2a0454=_(_0x14f2c2,_0x31c04c,'Insert');switch(_0x31c04c){case i['Local']:return{'icon':_0xc4e461,'type':i['Local'],..._0x2a0454};case i['URL']:return{'icon':_0x165877,'type':i['URL'],..._0x2a0454};case i['Dropbox']:return{'icon':_0x527d5d,'type':i['Dropbox'],..._0x2a0454};case i['Facebook']:return{'icon':_0x5c3b05,'type':i['Facebook'],..._0x2a0454};case i['GDrive']:return{'icon':_0x5906f1,'type':i['GDrive'],..._0x2a0454};case i['GPhotos']:return{'icon':_0x2662d4,'type':i['GPhotos'],..._0x2a0454};case i['OneDrive']:return{'icon':_0x5894ec,'type':i['OneDrive'],..._0x2a0454};}});}['_getIntegrationKey'](_0x13cf5d){switch(_0x13cf5d){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5d4715,_0x3f8783){const _0x31dc0b=this['editor'],_0x289ed3=new _0x5d4715(_0x31dc0b['locale']),_0x2bc1ef=_0x31dc0b['commands']['get']('uploadcare');return _0x289ed3['bind']('isEnabled')['to'](_0x2bc1ef),_0x289ed3['on']('execute',()=>{_0x2bc1ef['execute'](_0x3f8783);}),_0x289ed3;}['_createToolbarButton'](_0x3b8c10){const {locale:_0x479dd9}=this['editor'],_0x1b242d=this['editor']['plugins']['get']('ImageInsertUI'),_0x4c672a=_0x3b8c10[0x0],_0x5b012d=this['_createButton'](_0x42113b,_0x4c672a['type']);return _0x5b012d['icon']=_0x4c672a['icon'],_0x5b012d['bind']('label')['to'](_0x1b242d,'isImageSelected',_0x5be75f=>_(_0x479dd9,_0x4c672a['type'],_0x5be75f?'Replace':'Insert')['text']),_0x5b012d['tooltip']=!0x0,_0x5b012d;}['_createDropdownButtons'](_0x1553da){const {locale:_0x11128f}=this['editor'],_0x1d54af=this['editor']['plugins']['get']('ImageInsertUI');return _0x1553da['map'](_0x579cf7=>{const _0x19ba4a=this['_createButton'](_0x42113b,_0x579cf7['type']);return _0x19ba4a['withText']=!0x0,_0x19ba4a['icon']=_0x579cf7['icon'],_0x19ba4a['bind']('label')['to'](_0x1d54af,'isImageSelected',_0x480a1f=>_(_0x11128f,_0x579cf7['type'],_0x480a1f?'Replace':'Insert')['text']),_0x19ba4a;});}['_createMenuBarButtons'](_0x595c79){return _0x595c79['map'](_0x5195b1=>{const _0x2434ef=this['_createButton'](_0x3e84bc,_0x5195b1['type']);return _0x2434ef['icon']=_0x5195b1['icon'],_0x2434ef['label']=_0x5195b1['shortText'],_0x2434ef;});}}class F extends _0x4ee645{['focusTracker'];['focusCycler'];constructor(_0xd0c199){super(_0xd0c199),this['focusTracker']=new _0x25b9a7(),this['focusCycler']=new _0x4bbf33({'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 x extends F{constructor(_0x3aae8a,_0x3d07e3){super(_0x3aae8a),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-'+_0x3d07e3}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x42cb08,_0x52a02a){const _0x24c398=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x6f873f=>_0x6f873f<=_0x52a02a)['map'](_0x317e78=>_0x42cb08['replace'](/\/$/,'')+'/-/resize/'+_0x317e78+'x/\x20'+_0x317e78+'w');return{'imageFallbackUrl':_0x42cb08,'imageSources':[{'srcset':_0x24c398['join'](',\x20'),'sizes':'(max-width:\x20'+_0x52a02a+'px)\x20100vw,\x20'+_0x52a02a+'px','type':'image/webp'}]};}function S(_0x2e23cc,_0x2bae76,_0x2d77d1){const _0x5dbb48=_0x2e23cc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5dbb48?parseInt(_0x5dbb48[0x1],0xa):_0x2bae76,'height':_0x5dbb48?parseInt(_0x5dbb48[0x2],0xa):_0x2d77d1};}function p(_0x2df0a5,_0x1d50b5){const _0x1d3332=new(_0x42629b())(),_0x43b888=_0x2df0a5['plugins']['get']('ImageUtils'),_0x140d3e=_0x2df0a5['editing']['mapper']['toViewElement'](_0x1d50b5),_0x1468c1=_0x43b888['findViewImgElement'](_0x140d3e),_0x2a5c7b=_0x2df0a5['editing']['view']['domConverter']['viewToDom'](_0x1468c1),_0x25cb22=_0x1d50b5['getAttribute']('width'),_0x326633=_0x1d50b5['getAttribute']('height'),_0x5a5f7a='image-processing';_0x2df0a5['editing']['view']['change'](_0x456992=>{_0x456992['addClass'](_0x5a5f7a,_0x140d3e),_0x456992['setStyle']('aspect-ratio',_0x25cb22+'/'+_0x326633,_0x1468c1);}),_0x1d3332['listenTo'](_0x2a5c7b,'load',()=>{_0x1d3332['stopListening'](_0x2a5c7b,'load'),_0x2df0a5['editing']['view']['change'](_0x11cdad=>{_0x11cdad['removeClass'](_0x5a5f7a,_0x140d3e),_0x11cdad['removeStyle']('aspect-ratio',_0x1468c1);});});}function G(_0x3470af){if(Array['isArray'](_0x3470af)){const _0x116b0a=_0x3470af['map'](G);return _0x2c4285=>_0x116b0a['some'](_0x14c11f=>_0x14c11f(_0x2c4285));}if('origin'==_0x3470af){const _0x2dd488=_0x3b3c0f['window']['location']['origin'];return _0x5703b5=>new URL(_0x5703b5,_0x3b3c0f['document']['baseURI'])['origin']==_0x2dd488;}return'function'==typeof _0x3470af?_0x3470af:_0x3470af instanceof RegExp?_0x32cb29=>!(!_0x32cb29['match'](_0x3470af)&&!_0x32cb29['replace'](/^https?:\/\//,'')['match'](_0x3470af)):()=>!0x1;}function A(_0x12ac54,_0xbb95c4){return _0x53305a(_0x12ac54['target'])['includes'](_0xbb95c4);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x51173b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3418cd,_0x195828,_0xcfd4a9){super(),this['_editor']=_0x3418cd,this['_editing']=_0x195828,this['_dialog']=_0x3418cd['plugins']['get'](_0x56592d),this['_api']=_0x195828['ctxElement']['getAPI'](),this['_type']=_0xcfd4a9,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:_0x5228a8,model:_0x1f05ea}=this['_editor'],_0xecb67d=_0x1f05ea['document']['selection']['getSelectedElement'](),_0x28310c=_0xecb67d&&(_0xecb67d['is']('element','imageBlock')||_0xecb67d['is']('element','imageInline'));this['_formView']=new x(_0x5228a8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xc4e461,'title':_(_0x5228a8,this['_type'],_0x28310c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5cfad9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1d32e1=>!A(_0x1d32e1,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x21ae38}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5bb052=>{const _0xc51573=_0x21ae38['length'];for(const _0xe3a02c of _0x21ae38){const _0x398cd9=_0xe3a02c===_0x21ae38[_0xc51573-0x1],{cdnUrl:_0x406a0d,fileInfo:_0x5c2e3a}=_0xe3a02c;if(!_0x406a0d||!_0x5c2e3a)continue;const {width:_0x310735,height:_0x2dc0a3}=_0x5c2e3a['imageInfo'],_0xd8dec3=S(_0x406a0d,_0x310735,_0x2dc0a3),_0x414547=C(_0x406a0d,_0xd8dec3['width']),_0x2a176a={'id':_0x5c2e3a['uuid'],'type':'image','attributes':{'imageDimension':_0xd8dec3,..._0x414547}};this['_insertAsset'](_0x2a176a,_0x398cd9,_0x5bb052);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3c5f6d=>{'idle'===_0x3c5f6d['detail']['status']&&!_0x3c5f6d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5167d2,_0x5b1af4,_0x476f78){const _0x58730f=this['_editor']['model']['document']['selection'],_0x48a7a8=_0x58730f['getSelectedElement'](),_0x2dd31b=!(!_0x48a7a8||!_0x48a7a8['is']('element','imageInline'));_0x476f78['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5167d2,_0x2dd31b),_0x5b1af4||_0x476f78['setSelection'](_0x58730f['getLastPosition']());}['_insertImage'](_0x3d80b0,_0x3aa8c5){const _0x34b44e=this['_editor'],{imageDimension:_0x377e36,imageFallbackUrl:_0x40ac0f,imageSources:_0x25312a}=_0x3d80b0['attributes'];_0x34b44e['execute']('insertImage',{'imageType':_0x3aa8c5?'imageInline':null,'source':{'uploadcareImageId':_0x3d80b0['id'],'src':_0x40ac0f,'sources':_0x25312a,..._0x377e36}});}}class w extends _0x31fdab{['_editing'];['_controller']=null;static get['requires'](){return[_0x56592d,o];}constructor(_0x2c083b){super(_0x2c083b),this['_editing']=_0x2c083b['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x9398fd){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x9398fd);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x563b3e,..._0x758738}){return _0x4d1f73(_0x563b3e,_0x758738);}static['getInfo'](_0x505098,_0x5c9441){return _0x2677ba(_0x505098,_0x5c9441);}}class f extends _0x1e9a45{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x354e0d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x52e96d=this['editor'];if(!!!_0x52e96d['config']['get']('uploadcare'))return;_0x52e96d['plugins']['get'](_0x354e0d)['createUploadAdapter']=_0x21acf0=>new k(_0x21acf0,_0x52e96d),_0x52e96d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x30f1a8,{imageElement:_0x587202,data:_0x5cbb8c})=>{_0x52e96d['model']['change'](_0x189328=>{_0x189328['setAttribute']('uploadcareImageId',_0x5cbb8c['uploadcareImageId'],_0x587202);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2d8614,_0x3c38f6){this['loader']=_0x2d8614,this['editor']=_0x3c38f6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5819e7=await this['loader']['file'];return j['upload']({'file':_0x5819e7,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4aa9f5=>{_0x4aa9f5&&_0x4aa9f5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4aa9f5['value']);}})['then'](async _0x2027e7=>{const {imageFallbackUrl:_0x5b3a8f,imageSources:_0x43c4bf}=C(_0x2027e7['cdnUrl'],_0x2027e7['imageInfo']['width']);return{'uploadcareImageId':_0x2027e7['uuid'],'default':_0x5b3a8f,'sources':_0x43c4bf};})['catch'](()=>{const _0x3c0a65=t('Cannot\x20upload\x20file:')+('\x20'+_0x5819e7['name']+'.');return Promise['reject'](_0x3c0a65);});}['abort'](){this['controller']['abort']();}}class o extends _0x1e9a45{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x56592d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x324d31){super(_0x324d31),this['ucContextId']=_0x56dfa8();}['init'](){const _0x16635c=this['editor'];_0x16635c['commands']['add']('uploadcare',new w(_0x16635c));}['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 _0x5920e8=_0x3b3c0f['document']['querySelector']('input[uploadcare-file-input]');_0x5920e8&&_0x5920e8['remove']();}),async function(_0x2b58dd){const _0x514e20=_0x3c8b44([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x155182=0x3d8d0df,_0x289e53=0x3dfa3f7^_0x155182,_0x484016=window[_0x3c8b44([0x44,0x61,0x74,0x65])][_0x3c8b44([0x6e,0x6f,0x77])](),_0x2ae937=_0x2b58dd[_0x3c8b44([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x23394a=new window[(_0x3c8b44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fb6e7=>{_0x2ae937[_0x3c8b44([0x6f,0x6e,0x63,0x65])](_0x3c8b44([0x72,0x65,0x61,0x64,0x79]),_0x4fb6e7);}),_0x306ebf={[_0x3c8b44([0x6b,0x74,0x79])]:_0x3c8b44([0x45,0x43]),[_0x3c8b44([0x75,0x73,0x65])]:_0x3c8b44([0x73,0x69,0x67]),[_0x3c8b44([0x63,0x72,0x76])]:_0x3c8b44([0x50,0x2d,0x32,0x35,0x36]),[_0x3c8b44([0x78])]:_0x3c8b44([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]),[_0x3c8b44([0x79])]:_0x3c8b44([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]),[_0x3c8b44([0x61,0x6c,0x67])]:_0x3c8b44([0x45,0x53,0x32,0x35,0x36])},_0x1b9f67=_0x2ae937[_0x3c8b44([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c8b44([0x67,0x65,0x74])](_0x3c8b44([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5573fe(){let _0x568f5e,_0x840801=null,_0x57c44c=null;try{if(_0x1b9f67==_0x3c8b44([0x47,0x50,0x4c]))return _0x3c8b44([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x568f5e=_0x118ecf(),!_0x568f5e)return _0x3c8b44([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x568f5e[_0x3c8b44([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57c44c=_0x4ff67e(_0x568f5e[_0x3c8b44([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x568f5e[_0x3c8b44([0x6a,0x74,0x69])])),await _0x42df0b()?_0x1b836b()?_0x405b8e()?_0x3c8b44([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13eda3()?(_0x568f5e[_0x3c8b44([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c8b44([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x840801=_0x494d80(_0x3c8b44([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x568f5e[_0x3c8b44([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c8b44([0x74,0x72,0x69,0x61,0x6c])&&(_0x840801=_0x494d80(_0x3c8b44([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30712e()):_0x3c8b44([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c8b44([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c8b44([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3c8b44([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x405b8e(){const _0xb8e8c3=[_0x3c8b44([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c8b44([0x74,0x72,0x69,0x61,0x6c])][_0x3c8b44([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x568f5e[_0x3c8b44([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x484016/0x3e8:0xe10*_0x289e53;return _0x568f5e[_0x3c8b44([0x65,0x78,0x70])]<_0xb8e8c3;}function _0x1b836b(){const _0x240d8b=_0x568f5e[_0x3c8b44([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x240d8b&&(!!_0x240d8b[_0x3c8b44([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c8b44([0x2a]))||!!_0x240d8b[_0x3c8b44([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c8b44([0x55,0x50,0x4c,0x43])));}function _0x13eda3(){const _0x317100=_0x568f5e[_0x3c8b44([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x317100||0x0==_0x317100[_0x3c8b44([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1be7f9}=new URL(window[_0x3c8b44([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x317100[_0x3c8b44([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1be7f9))return!0x0;const _0x32bff6=_0x1be7f9[_0x3c8b44([0x73,0x70,0x6c,0x69,0x74])](_0x3c8b44([0x2e]));return _0x317100[_0x3c8b44([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a080f=>_0x4a080f[_0x3c8b44([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c8b44([0x2a])))[_0x3c8b44([0x6d,0x61,0x70])](_0x4a48e7=>_0x4a48e7[_0x3c8b44([0x73,0x70,0x6c,0x69,0x74])](_0x3c8b44([0x2e])))[_0x3c8b44([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43591b=>_0x43591b[_0x3c8b44([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x32bff6[_0x3c8b44([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c8b44([0x6d,0x61,0x70])](_0x47c8e2=>Array(_0x32bff6[_0x3c8b44([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x47c8e2[_0x3c8b44([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c8b44([0x66,0x69,0x6c,0x6c])](_0x47c8e2[0x0]===_0x3c8b44([0x2a])?_0x3c8b44([0x2a]):'')[_0x3c8b44([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x47c8e2))[_0x3c8b44([0x73,0x6f,0x6d,0x65])](_0x3fa586=>_0x32bff6[_0x3c8b44([0x65,0x76,0x65,0x72,0x79])]((_0x16ea67,_0x344974)=>_0x3fa586[_0x344974]===_0x16ea67||_0x3fa586[_0x344974]===_0x3c8b44([0x2a])));}function _0x30712e(){return _0x840801&&_0x57c44c?new window[(_0x3c8b44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bf0a5,_0x3e01a7)=>{_0x840801[_0x3c8b44([0x74,0x68,0x65,0x6e])](_0x4bf0a5,_0x3e01a7),_0x57c44c[_0x3c8b44([0x74,0x68,0x65,0x6e])](_0x3cebe2=>{_0x3cebe2!=_0x3c8b44([0x56,0x61,0x6c,0x69,0x64])&&_0x4bf0a5(_0x3cebe2);},_0x3e01a7);}):_0x840801||_0x57c44c||_0x3c8b44([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4ff67e(_0x317a04,_0x30bcaa){return new window[(_0x3c8b44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349827=>{if(_0x12cc2d())return _0x349827(_0x3c8b44([0x56,0x61,0x6c,0x69,0x64]));_0x490e4c(),_0x2ae937[_0x3c8b44([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c8b44([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x8714ce=!0x1;const _0x2ae5a5=_0x56dfa8();function _0x454998(_0xf98785){return!!_0xf98785&&(typeof _0xf98785===_0x3c8b44([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf98785===_0x3c8b44([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf98785[_0x3c8b44([0x74,0x68,0x65,0x6e])]===_0x3c8b44([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf98785[_0x3c8b44([0x63,0x61,0x74,0x63,0x68])]===_0x3c8b44([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x23be40(_0x4f84c1){_0x3d95d0(_0x4f84c1)[_0x3c8b44([0x74,0x68,0x65,0x6e])](_0x27e6e9=>{if(!_0x27e6e9||_0x27e6e9[_0x3c8b44([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c8b44([0x6f,0x6b]))return _0x3c8b44([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42c008(_0x230feb(_0x2ae5a5+_0x30bcaa))!=_0x27e6e9[_0x3c8b44([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c8b44([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c8b44([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c8b44([0x74,0x68,0x65,0x6e])](_0x591301=>(_0x166e00(),_0x591301),()=>{const _0x289b72=_0xa7a13a();return null==_0x289b72?(_0x166e00(),_0x3c8b44([0x56,0x61,0x6c,0x69,0x64])):_0x3c8b44(_0x484016-_0x289b72>(0x27d454df^_0x155182)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c8b44([0x74,0x68,0x65,0x6e])](_0x349827)[_0x3c8b44([0x63,0x61,0x74,0x63,0x68])](()=>{_0x349827(_0x3c8b44([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x544b62=0x3ee3e5f^_0x155182;function _0x166e00(){const _0x3b6e73=_0x3c8b44([0x6c,0x6c,0x63,0x74,0x2d])+_0x42c008(_0x230feb(_0x317a04)),_0x56bdea=_0x4bd391(_0x42c008(window[_0x3c8b44([0x4d,0x61,0x74,0x68])][_0x3c8b44([0x63,0x65,0x69,0x6c])](_0x484016/_0x544b62)));window[_0x3c8b44([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c8b44([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b6e73,_0x56bdea);}function _0xa7a13a(){const _0x39bc61=_0x3c8b44([0x6c,0x6c,0x63,0x74,0x2d])+_0x42c008(_0x230feb(_0x317a04)),_0x3b5986=window[_0x3c8b44([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c8b44([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39bc61);return _0x3b5986?window[_0x3c8b44([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bd391(_0x3b5986),0x10)*_0x544b62:null;}function _0x3d95d0(_0x1954e4){return new window[(_0x3c8b44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e6d79,_0x14c0f9)=>{_0x1954e4[_0x3c8b44([0x74,0x68,0x65,0x6e])](_0x3e6d79,_0x14c0f9),window[_0x3c8b44([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14c0f9,0x3d9041f^_0x155182);});}}_0x2ae937[_0x3c8b44([0x6f,0x6e])](_0x3c8b44([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3574cc,_0xa87383)=>{if(_0xa87383[0x0]!=_0x317a04)return _0x349827(_0x3c8b44([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa87383[0x1]={..._0xa87383[0x1],[_0x3c8b44([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ae5a5};},{[_0x3c8b44([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c8b44([0x68,0x69,0x67,0x68])}),_0x2ae937[_0x3c8b44([0x6f,0x6e])](_0x3c8b44([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x291344=>{_0x454998(_0x291344[_0x3c8b44([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x8714ce=!0x0,_0x23be40(_0x291344[_0x3c8b44([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c8b44([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c8b44([0x6c,0x6f,0x77])}),_0x23394a[_0x3c8b44([0x74,0x68,0x65,0x6e])](()=>{_0x8714ce||_0x349827(_0x3c8b44([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12cc2d(){return _0x2ae937[_0x3c8b44([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c8b44([0x76,0x69,0x65,0x77])][_0x3c8b44([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c8b44([0x61,0x75,0x74,0x6f]);}function _0x490e4c(){_0x2ae937[_0x3c8b44([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c8b44([0x76,0x69,0x65,0x77])][_0x3c8b44([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c8b44([0x61,0x75,0x74,0x6f]);}}function _0x494d80(_0x5f1bbc){const _0x4d513a=[new window[(_0x3c8b44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1115c5=>setTimeout(_0x1115c5,0x3d1ee13^_0x155182)),_0x23394a[_0x3c8b44([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c8b44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x68ad33=>{let _0x43836e=0x0;_0x2ae937[_0x3c8b44([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c8b44([0x6f,0x6e])](_0x3c8b44([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2859be,_0x2bebe3)=>{_0x2bebe3[0x0][_0x3c8b44([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43836e++,_0x43836e==(0x3d8d127^_0x155182)&&(_0x68ad33(),_0x2859be[_0x3c8b44([0x6f,0x66,0x66])]());});}))];return window[_0x3c8b44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c8b44([0x72,0x61,0x63,0x65])](_0x4d513a)[_0x3c8b44([0x74,0x68,0x65,0x6e])](()=>_0x5f1bbc);}async function _0x22242a(){await _0x23394a,_0x2ae937[_0x3c8b44([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c8b44([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x17b443,_0x2ae937[_0x3c8b44([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c8b44([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x17b443,_0x2ae937[_0x3c8b44([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c8b44([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x55925f(_0x3954cd){const _0xbdfd9=_0x49f9f5();_0x2ae937[_0xbdfd9]=_0x3c8b44([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3954cd,_0x3954cd!=_0x3c8b44([0x56,0x61,0x6c,0x69,0x64])&&_0x22242a();}function _0x49f9f5(){const _0x2be52b=window[_0x3c8b44([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c8b44([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c8b44([0x6e,0x6f,0x77])]())[_0x3c8b44([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c8b44([0x2e]),'');let _0x181f61=_0x3c8b44([0x52]);for(let _0x2122fa=0x0;_0x2122fa<_0x2be52b[_0x3c8b44([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2122fa+=0x2){let _0x3dbaac=window[_0x3c8b44([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2be52b[_0x3c8b44([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2122fa,_0x2122fa+0x2));_0x3dbaac>=_0x514e20[_0x3c8b44([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3dbaac-=_0x514e20[_0x3c8b44([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x181f61+=_0x514e20[_0x3dbaac];}return _0x181f61;}function _0x118ecf(){const _0x488a60=_0x1b9f67[_0x3c8b44([0x73,0x70,0x6c,0x69,0x74])](_0x3c8b44([0x2e]));if(0x3!=_0x488a60[_0x3c8b44([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b1caf(_0x488a60[0x1]);function _0x5b1caf(_0x4401fe){const _0x4d93a5=_0x1b0549(_0x4401fe);return _0x4d93a5&&_0x29c9b3()?_0x4d93a5:null;function _0x29c9b3(){const _0x1fbf6f=_0x4d93a5[_0x3c8b44([0x6a,0x74,0x69])],_0x729f97=window[_0x3c8b44([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fbf6f[_0x3c8b44([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fbf6f[_0x3c8b44([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x365f8d={..._0x4d93a5,[_0x3c8b44([0x6a,0x74,0x69])]:_0x1fbf6f[_0x3c8b44([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1fbf6f[_0x3c8b44([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x365f8d[_0x3c8b44([0x76,0x63])],_0x230feb(_0x365f8d)==_0x729f97;}}}async function _0x42df0b(){let _0x479e0b=!0x0;try{const _0xdaf08b=_0x1b9f67[_0x3c8b44([0x73,0x70,0x6c,0x69,0x74])](_0x3c8b44([0x2e])),[_0x158b49,_0x1f8d93,_0x25abbd]=_0xdaf08b;return _0x54a8f1(_0x158b49),await _0xb4b17f(_0x158b49,_0x1f8d93,_0x25abbd),_0x479e0b;}catch{return!0x1;}function _0x54a8f1(_0x47172b){const _0x55d214=_0x1b0549(_0x47172b);_0x55d214&&_0x55d214[_0x3c8b44([0x61,0x6c,0x67])]==_0x3c8b44([0x45,0x53,0x32,0x35,0x36])||(_0x479e0b=!0x1);}async function _0xb4b17f(_0x4e2aae,_0x437d6e,_0x1cd80f){const _0x12c4f7=window[_0x3c8b44([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c8b44([0x66,0x72,0x6f,0x6d])](_0x15ddf5(_0x1cd80f),_0x564e60=>_0x564e60[_0x3c8b44([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x23d293=new window[(_0x3c8b44([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c8b44([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e2aae+_0x3c8b44([0x2e])+_0x437d6e),_0x371b2e=window[_0x3c8b44([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c8b44([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x371b2e)return;const _0x3f6307=await _0x371b2e[_0x3c8b44([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c8b44([0x6a,0x77,0x6b]),_0x306ebf,{[_0x3c8b44([0x6e,0x61,0x6d,0x65])]:_0x3c8b44([0x45,0x43,0x44,0x53,0x41]),[_0x3c8b44([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c8b44([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c8b44([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x371b2e[_0x3c8b44([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c8b44([0x6e,0x61,0x6d,0x65])]:_0x3c8b44([0x45,0x43,0x44,0x53,0x41]),[_0x3c8b44([0x68,0x61,0x73,0x68])]:{[_0x3c8b44([0x6e,0x61,0x6d,0x65])]:_0x3c8b44([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f6307,_0x12c4f7,_0x23d293)||(_0x479e0b=!0x1);}}function _0x1b0549(_0x21ad85){return _0x21ad85[_0x3c8b44([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c8b44([0x65,0x79]))?JSON[_0x3c8b44([0x70,0x61,0x72,0x73,0x65])](_0x15ddf5(_0x21ad85)):null;}function _0x15ddf5(_0x2b8b9d){return window[_0x3c8b44([0x61,0x74,0x6f,0x62])](_0x2b8b9d[_0x3c8b44([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c8b44([0x2b]))[_0x3c8b44([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c8b44([0x2f])));}function _0x230feb(_0x1ddb1b){let _0x5a4a5b=0x1505;function _0x2a0c84(_0x478cc7){for(let _0x56393b=0x0;_0x56393b<_0x478cc7[_0x3c8b44([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56393b++){const _0x20e3ec=_0x478cc7[_0x3c8b44([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56393b);_0x5a4a5b=(_0x5a4a5b<<0x5)+_0x5a4a5b+_0x20e3ec,_0x5a4a5b&=_0x5a4a5b;}}function _0x12ffba(_0x12e1aa){Array[_0x3c8b44([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x12e1aa)?_0x12e1aa[_0x3c8b44([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x12ffba):_0x12e1aa&&typeof _0x12e1aa==_0x3c8b44([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c8b44([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x12e1aa)[_0x3c8b44([0x73,0x6f,0x72,0x74])]()[_0x3c8b44([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1804d9,_0x518e9c])=>{_0x2a0c84(_0x1804d9),_0x12ffba(_0x518e9c);}):_0x2a0c84(window[_0x3c8b44([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x12e1aa));}return _0x12ffba(_0x1ddb1b),_0x5a4a5b>>>0x0;}function _0x42c008(_0x235b0e){return _0x235b0e[_0x3c8b44([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c8b44([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c8b44([0x30]));}function _0x4bd391(_0x1cce98){return _0x1cce98[_0x3c8b44([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c8b44([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c8b44([0x6a,0x6f,0x69,0x6e])]('');}function _0x17b443(){}function _0x3c8b44(_0x1ee0a7){return _0x1ee0a7['map'](_0x296b76=>String['fromCharCode'](_0x296b76))['join']('');}_0x55925f(await _0x5573fe());}(this);}['_initSchema'](){const _0x4c6621=this['editor']['model']['schema'];_0x4c6621['isRegistered']('imageBlock')&&_0x4c6621['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4c6621['isRegistered']('imageInline')&&_0x4c6621['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3c0b1f=this['editor'];_0x3c0b1f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3c0b1f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5d225e=>_0x5d225e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4dff3e=_0x3c0b1f['commands']['get']('replaceImageSource');_0x4dff3e&&this['listenTo'](_0x4dff3e,'cleanupImage',(_0x198623,[_0x472dd3,_0x502bcf])=>{_0x472dd3['removeAttribute']('uploadcareImageId',_0x502bcf);});}['_initConfig'](){const _0x55144c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x118b8e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1823e3(_0x3b3c0f['document'],'uc-config',{..._0x55144c,'pubkey':_0x118b8e,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x523e45=>{if('closeMax'==_0x523e45)return'#uc-icon-arrow-down';},_0x3b3c0f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1823e3(_0x3b3c0f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3b3c0f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5ccf95=this['editor']['commands']['get']('insertImage');_0x5ccf95&&this['listenTo'](_0x5ccf95,'execute',()=>{const _0x21fadc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x21fadc&&_0x21fadc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x21fadc);});});const _0x4909ba=this['editor']['commands']['get']('uploadcareImageReplace');_0x4909ba&&this['listenTo'](_0x4909ba,'execute',()=>{const _0x4f97c9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4f97c9&&_0x4f97c9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4f97c9);});});}}class tt extends _0x1e9a45{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x137e58){super(_0x137e58),_0x137e58['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x167c16['defineComponents'](_0x167c16);}}class ii extends _0x4ee645{constructor(_0x3b4bed){super(_0x3b4bed);const t=_0x3b4bed['t'],_0x4ae470=this['bindTemplate'],_0x40c149=new _0x92cc36();_0x40c149['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':[_0x40c149,{'text':_0x4ae470['to']('imageUploadProgress',_0x56ab9e=>t('Loading\x20image...')+'\x20('+(_0x56ab9e||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 ti extends _0x4ee645{constructor(_0x136176){super(_0x136176);const t=_0x136176['t'];this['set']('errorType',null);const _0x2e3529=new _0x42113b(_0x136176);_0x2e3529['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2e3529['withText']=!0x0,_0x2e3529['class']='ck-button-action',_0x2e3529['on']('execute',()=>{this['fire']('retry');}),_0x2e3529['bind']('isVisible')['to'](this,'errorType',_0xed88eb=>'NotFound'!==_0xed88eb);const _0x4106d7=new _0x2b9556();_0x4106d7['content']=_0x383a8f,_0x4106d7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x50424b=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':[_0x4106d7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x50424b['to']('errorType',_0x47f891=>t('NotFound'!==_0x47f891?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2e3529]},{'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 ei extends _0x4ee645{constructor(_0x12cd25,_0x474f2e){super(_0x12cd25);const _0x1b5941=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x474f2e,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1b5941['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4c22b2,_0x5a4adb,_0x80c6e7){super(_0x4c22b2),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4c22b2),this['_errorView']=new ti(_0x4c22b2),this['_editingView']=new ei(_0x4c22b2,_0x80c6e7),this['_focusableView']=new _0x4ee645(_0x4c22b2),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5a4adb),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'],_0x55c43c=>{this['_addUploadcareImageEditorListeners'](_0x55c43c);});}),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'](_0x4f4f10,_0x53e9f2){const _0x4f1d61='uc-cloud-image-editor',_0x4834b3=_0x4f4f10['querySelector'](_0x4f1d61);if(_0x4834b3)return _0x53e9f2(_0x4834b3);const _0x2b024b=new MutationObserver(_0x58762d=>{const _0x1c2662=_0x58762d['filter'](_0x2e6359=>_0x2e6359['target']===_0x4f4f10&&_0x2e6359['addedNodes']['length']>0x0&&_0x2e6359['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4f1d61);_0x1c2662['length']&&(_0x2b024b['disconnect'](),_0x53e9f2(_0x1c2662[0x0]['addedNodes'][0x0]));});_0x2b024b['observe'](_0x4f4f10,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5d1792){_0x5d1792['addEventListener']('apply',_0x5a4b6d=>{this['fire']('apply',{'imageSrc':_0x5a4b6d['detail']['cdnUrl']});}),_0x5d1792['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x51173b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x23ecda,_0x5eb848,_0x54a33f){super(),this['_editor']=_0x23ecda,this['_dialog']=_0x5eb848,this['_imageElement']=_0x54a33f,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 _0x3b5b72=this['_imageElement'],_0x415a1d=_0x3b5b72['getAttribute']('uploadcareImageId'),_0x4f2ba5=_0x3b5b72['getAttribute']('src');if(_0x415a1d)await this['_loadImageInfo'](_0x415a1d,_0x4f2ba5);else{if(this['_imageCache']['has'](_0x4f2ba5)){const _0x26e200=this['_imageCache']['get'](_0x4f2ba5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x26e200['url'],this['imageDimension']=_0x26e200['dimension'],this['imageId']=_0x26e200['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3e08da}=this['_editor'],t=_0x3e08da['t'],_0x2780e5=new X(_0x3e08da,this['imageStatus'],this['_attributes']);_0x2780e5['bind']('status')['to'](this,'imageStatus'),_0x2780e5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2780e5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2780e5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2780e5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x345025,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2780e5,'position':_0x5cfad9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2780e5['focus']();},'onHide':()=>{_0x2780e5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2dc696=>!A(_0x2dc696,_0x2780e5['element'])}});}['_loadImageInfo'](_0x3e7b33,_0x5231d2){return j['getInfo'](_0x3e7b33,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4c1283=>{const {width:_0x216d3f,height:_0x220740}=_0x4c1283['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5231d2,this['imageDimension']={'width':_0x216d3f,'height':_0x220740},this['imageId']=_0x3e7b33;})['catch'](_0x2b78f6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2b78f6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x503c7f,_0x33de58){return this['_getImageAsFile'](_0x503c7f)['then'](_0x265dbd=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x33de58['signal'],'file':_0x265dbd,'onProgress':_0x5a17f8=>{_0x5a17f8&&_0x5a17f8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5a17f8['value']));}}))['then'](_0x5cbcb7=>{const {width:_0x57c365,height:_0x33e1ee}=_0x5cbcb7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5cbcb7['cdnUrl'],this['imageDimension']={'width':_0x57c365,'height':_0x33e1ee},this['imageId']=_0x5cbcb7['uuid'],this['imageUploadProgress']=null;const _0x3bfe8c=_0x503c7f['getAttribute']('src');this['_imageCache']['set'](_0x3bfe8c,{'id':_0x5cbcb7['uuid'],'url':_0x5cbcb7['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x234e79=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x234e79['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x38fb93,_0x370fed){_0x38fb93['on']('apply',(_0x84dbfe,_0x5af12a)=>{this['_replaceImage'](_0x370fed,_0x5af12a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x38fb93['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x38fb93['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4e564f,_0xd2f46f,_0x48f035){const _0xa16a51=this['_editor'],{width:_0x3c9214,height:_0x3c6c93}=S(_0xd2f46f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4faab0,imageSources:_0x420fc7}=C(_0xd2f46f,_0x3c9214);_0xa16a51['model']['change'](_0x172ddc=>{if('$graveyard'===_0x4e564f['root']['rootName']){_0xa16a51['execute']('insertImage',{'imageType':_0x4e564f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4e564f['getAttributes']()),'uploadcareImageId':_0x48f035,'src':_0x4faab0,'sources':_0x420fc7,'width':_0x3c9214,'height':_0x3c6c93}});const _0x4dfdae=_0x4e564f['getChildren']();_0x4e564f=_0xa16a51['model']['document']['selection']['getSelectedElement']();for(const _0x187c5b of _0x4dfdae)_0x172ddc['append'](_0x172ddc['cloneElement'](_0x187c5b),_0x4e564f);}else _0x172ddc['setSelection'](_0x4e564f,'on'),_0xa16a51['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4e564f['getAttributes']()),'uploadcareImageId':_0x48f035,'src':_0x4faab0,'sources':_0x420fc7,'width':_0x3c9214,'height':_0x3c6c93},_0x4e564f);_0x172ddc['setSelection'](_0x4e564f,'on');});}async['_getImageAsFile'](_0x2fa9dd){const _0x57bcb9=_0x3b3c0f['window'],_0x17ecbf=_0x3b3c0f['document']['location']['href'],_0x402054=new _0x57bcb9['URL'](_0x2fa9dd['getAttribute']('src'),_0x17ecbf);if('data:'===_0x402054['protocol']){const _0x4c1c8b=_0x402054['href']['split'](','),_0x5865c1=_0x4c1c8b[0x0]['match'](/:(.*?);/)[0x1],_0x47cd43=_0x5865c1['split']('/')[0x1],_0x19fb18=_0x57bcb9['atob'](_0x4c1c8b[_0x4c1c8b['length']-0x1]);let _0x3fe8e7=_0x19fb18['length'];const _0x3795f3=new _0x57bcb9['Uint8Array'](_0x3fe8e7);for(;_0x3fe8e7--;)_0x3795f3[_0x3fe8e7]=_0x19fb18['charCodeAt'](_0x3fe8e7);return new _0x57bcb9['File']([_0x3795f3],'image.'+_0x47cd43,{'type':_0x5865c1});}const _0x1e0697=_0x402054['href']['split']('/'),_0x26e8b1=_0x1e0697[_0x1e0697['length']-0x1],_0x3adebc=_0x26e8b1['split']('.')[0x1];return _0x57bcb9['fetch'](_0x402054['href'])['then'](_0x200b94=>_0x200b94['clone']()['blob']())['then'](_0x9f2582=>new _0x57bcb9['File']([_0x9f2582],_0x26e8b1,{'type':'image/'+_0x3adebc}));}}class O extends _0x31fdab{['imageEditController'];static get['requires'](){return[_0x56592d];}['_isEditable'];constructor(_0x3a36f5){super(_0x3a36f5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x56077f){const _0x840b3d=G(_0x56077f);return _0x1ecf48=>!(!_0x1ecf48||!_0x1ecf48['is']('element','imageBlock')&&!_0x1ecf48['is']('element','imageInline'))&&(!!_0x1ecf48['hasAttribute']('uploadcareImageId')||!!_0x1ecf48['hasAttribute']('src')&&_0x840b3d(_0x1ecf48['getAttribute']('src')));}(_0x3a36f5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2d67e1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2d67e1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x160bcb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x160bcb&&(_0x160bcb['is']('element','imageBlock')||_0x160bcb['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x56592d),_0x160bcb),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x31fdab{['refresh'](){const _0x4d63a8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4d63a8&&(_0x4d63a8['is']('element','imageBlock')||_0x4d63a8['is']('element','imageInline')));}['execute'](_0xb76b82){const _0x1a99f9=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x52c189=>{_0x52c189['setAttributes'](_0xb76b82,_0x1a99f9),_0x52c189['removeAttribute']('srcset',_0x1a99f9),_0x52c189['removeAttribute']('sizes',_0x1a99f9);});}}class m extends _0x1e9a45{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x403165,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a499d}=this;_0x1a499d['commands']['add']('uploadcareImageEdit',new O(_0x1a499d)),_0x1a499d['commands']['add']('uploadcareImageReplace',new R(_0x1a499d));}}class g extends _0x1e9a45{['_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 _0x6a6392=this['editor'];_0x6a6392['ui']['componentFactory']['add']('uploadcareImageEdit',_0x520e9c=>{const _0x46550b=_0x6a6392['commands']['get']('uploadcareImageEdit'),_0x5d6e7b=new _0x42113b(_0x520e9c),t=_0x520e9c['t'];return _0x5d6e7b['set']({'icon':_0x345025,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5d6e7b['bind']('isEnabled')['to'](_0x46550b),_0x5d6e7b['bind']('isOn')['to'](_0x46550b,'isActive'),this['listenTo'](_0x5d6e7b,'execute',()=>{_0x6a6392['execute']('uploadcareImageEdit'),_0x6a6392['editing']['view']['focus']();}),_0x5d6e7b;}),this['_initConfig']();}['_initConfig'](){const _0x3170ef=_0x1823e3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3170ef),this['listenTo'](this['editor'],'destroy',()=>{_0x3170ef['remove']();});}}class et extends _0x1e9a45{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x5453c4=>0x1!=_0x5453c4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x921370=>{const {af:{dictionary:_0x3b65c2,getPluralForm:_0x143e38}}={'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':_0x3c1373=>0x1!=_0x3c1373}};_0x921370['af']||={'dictionary':{},'getPluralForm':null},_0x921370['af']['dictionary']=Object['assign'](_0x921370['af']['dictionary'],_0x3b65c2),_0x921370['af']['getPluralForm']=_0x143e38;})(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':_0x4a2d33=>0x0==_0x4a2d33?0x0:0x1==_0x4a2d33?0x1:0x2==_0x4a2d33?0x2:_0x4a2d33%0x64>=0x3&&_0x4a2d33%0x64<=0xa?0x3:_0x4a2d33%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x309058=>{const {ar:{dictionary:_0xc99079,getPluralForm:_0x2bdfd8}}={'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':_0x1c375b=>0x0==_0x1c375b?0x0:0x1==_0x1c375b?0x1:0x2==_0x1c375b?0x2:_0x1c375b%0x64>=0x3&&_0x1c375b%0x64<=0xa?0x3:_0x1c375b%0x64>=0xb?0x4:0x5}};_0x309058['ar']||={'dictionary':{},'getPluralForm':null},_0x309058['ar']['dictionary']=Object['assign'](_0x309058['ar']['dictionary'],_0xc99079),_0x309058['ar']['getPluralForm']=_0x2bdfd8;})(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':_0x3bb1b6=>0x1!=_0x3bb1b6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2c32cb=>{const {ast:{dictionary:_0x5254c7,getPluralForm:_0x2021d7}}={'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':_0x194bbc=>0x1!=_0x194bbc}};_0x2c32cb['ast']||={'dictionary':{},'getPluralForm':null},_0x2c32cb['ast']['dictionary']=Object['assign'](_0x2c32cb['ast']['dictionary'],_0x5254c7),_0x2c32cb['ast']['getPluralForm']=_0x2021d7;})(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':_0x3d9e31=>0x1!=_0x3d9e31}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x26b108=>{const {az:{dictionary:_0x451caa,getPluralForm:_0x57bfed}}={'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':_0x2b4d06=>0x1!=_0x2b4d06}};_0x26b108['az']||={'dictionary':{},'getPluralForm':null},_0x26b108['az']['dictionary']=Object['assign'](_0x26b108['az']['dictionary'],_0x451caa),_0x26b108['az']['getPluralForm']=_0x57bfed;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x1dacb3=>_0x1dacb3%0xa==0x1&&_0x1dacb3%0x64!=0xb?0x0:_0x1dacb3%0xa>=0x2&&_0x1dacb3%0xa<=0x4&&(_0x1dacb3%0x64<0xa||_0x1dacb3%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x557fa4=>{const {be:{dictionary:_0x20a5fc,getPluralForm:_0x383b57}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3af142=>_0x3af142%0xa==0x1&&_0x3af142%0x64!=0xb?0x0:_0x3af142%0xa>=0x2&&_0x3af142%0xa<=0x4&&(_0x3af142%0x64<0xa||_0x3af142%0x64>=0x14)?0x1:0x2}};_0x557fa4['be']||={'dictionary':{},'getPluralForm':null},_0x557fa4['be']['dictionary']=Object['assign'](_0x557fa4['be']['dictionary'],_0x20a5fc),_0x557fa4['be']['getPluralForm']=_0x383b57;})(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':_0x59ae16=>0x1!=_0x59ae16}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4c3175=>{const {bg:{dictionary:_0x4ec029,getPluralForm:_0x5d9912}}={'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':_0x2de343=>0x1!=_0x2de343}};_0x4c3175['bg']||={'dictionary':{},'getPluralForm':null},_0x4c3175['bg']['dictionary']=Object['assign'](_0x4c3175['bg']['dictionary'],_0x4ec029),_0x4c3175['bg']['getPluralForm']=_0x5d9912;})(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':_0x575266=>0x1!=_0x575266}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x222aca=>{const {bn:{dictionary:_0x39ccd2,getPluralForm:_0x281d0f}}={'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':_0xffa499=>0x1!=_0xffa499}};_0x222aca['bn']||={'dictionary':{},'getPluralForm':null},_0x222aca['bn']['dictionary']=Object['assign'](_0x222aca['bn']['dictionary'],_0x39ccd2),_0x222aca['bn']['getPluralForm']=_0x281d0f;})(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':_0x1b9d3c=>_0x1b9d3c%0xa==0x1&&_0x1b9d3c%0x64!=0xb?0x0:_0x1b9d3c%0xa>=0x2&&_0x1b9d3c%0xa<=0x4&&(_0x1b9d3c%0x64<0xa||_0x1b9d3c%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x399c7d=>{const {bs:{dictionary:_0x219886,getPluralForm:_0x1c6657}}={'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':_0x4b5b4b=>_0x4b5b4b%0xa==0x1&&_0x4b5b4b%0x64!=0xb?0x0:_0x4b5b4b%0xa>=0x2&&_0x4b5b4b%0xa<=0x4&&(_0x4b5b4b%0x64<0xa||_0x4b5b4b%0x64>=0x14)?0x1:0x2}};_0x399c7d['bs']||={'dictionary':{},'getPluralForm':null},_0x399c7d['bs']['dictionary']=Object['assign'](_0x399c7d['bs']['dictionary'],_0x219886),_0x399c7d['bs']['getPluralForm']=_0x1c6657;})(window['CKEDITOR_TRANSLATIONS']||={});
|