@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250615.0 → 0.0.0-nightly-20250617.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/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.d.ts +2 -6
- 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 _0x22599c,Command as _0x9a602d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x270a1a,IconGooglePhotos as _0x460d83,IconGoogleDrive as _0xabdc76,IconFacebook as _0xa771b3,IconDropbox as _0x55a602,IconUploadcareLink as _0x21725b,IconUploadcareImageUpload as _0x312e22,IconError as _0x25d758,IconUploadcareImageEdit as _0x12a505}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1e52fd,MenuBarMenuListItemButtonView as _0x31d451,View as _0x5a89c8,FocusCycler as _0x508a30,Dialog as _0x222a52,DialogViewPosition as _0x5ac068,SpinnerView as _0x365e5a,IconView as _0xe361fc,Notification as _0x4ad192}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1bd8e3,DomEmitterMixin as _0x4b390e,global as _0x40cabf,getAncestors as _0x398d75,ObservableMixin as _0x58e818,createElement as _0x4111db,uid as _0x1c4547}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3816f0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x481806,info as _0x42cdbd}from'@uploadcare/upload-client';import*as _0x1fffdd from'@uploadcare/file-uploader';var i=function(_0x2438ae){return _0x2438ae['Local']='local',_0x2438ae['URL']='url',_0x2438ae['Dropbox']='dropbox',_0x2438ae['GDrive']='gdrive',_0x2438ae['Facebook']='facebook',_0x2438ae['GPhotos']='gphotos',_0x2438ae['OneDrive']='onedrive',_0x2438ae;}({});function _(_0x2d8cfc,_0x50cb47,_0x445177){const t=_0x2d8cfc['t'],_0x1b3b0c=_0x2d8cfc['t'];switch(_0x50cb47){case i['Local']:return{'text':_0x1b3b0c('Insert'===_0x445177?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1b3b0c('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x445177?_0x1b3b0c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1b3b0c('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x50cb47;}}class e extends _0x22599c{['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 _0x18b482=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b6fa8;for(const _0x387b59 in _0x18b482){const _0x5dc304=_0x387b59,_0x5e2320=_0x18b482[_0x5dc304];if('uploadcareLicenseKeyValid'==_0x5e2320||'uploadcareLicenseKeyInvalid'==_0x5e2320||'uploadcareLicenseKeyExpired'==_0x5e2320||'uploadcareLicenseKeyDomainLimit'==_0x5e2320||'uploadcareLicenseKeyNotAllowed'==_0x5e2320||'uploadcareLicenseKeyEvaluationLimit'==_0x5e2320||'uploadcareLicenseKeyTrialLimit'==_0x5e2320||'uploadcareLicenseKeyUsageLimit'==_0x5e2320){delete _0x18b482[_0x5dc304],_0x2b6fa8=_0x5e2320,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2b6fa8&&_0x18b482['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2b6fa8&&_0x18b482['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2b6fa8&&_0x18b482['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2b6fa8&&_0x18b482['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2b6fa8&&_0x18b482['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2b6fa8&&_0x18b482['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2b6fa8&&_0x18b482['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x7e1a1d}=this,_0x4b6cc1=_0x7e1a1d['commands']['get']('uploadcare');if(!_0x4b6cc1)return;const _0x2e5bf3=this['_normalizeConfigSourceList'](_0x7e1a1d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x553f5f,_0x2cd430)=>{const _0x2f61eb=this['_getIntegrationKey'](_0x2cd430['type']);return _0x553f5f[_0x2f61eb]||(_0x553f5f[_0x2f61eb]=[]),_0x553f5f[_0x2f61eb]['push'](_0x2cd430),_0x553f5f;},{});_0x7e1a1d['plugins']['has']('ImageInsertUI')&&_0x7e1a1d['commands']['get']('uploadcare')&&Object['entries'](_0x2e5bf3)['forEach'](([_0x18b492,_0x708e66])=>{_0x7e1a1d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x18b492,'observable':()=>_0x4b6cc1,'buttonViewCreator':()=>this['_createToolbarButton'](_0x708e66),'formViewCreator':()=>this['_createDropdownButtons'](_0x708e66),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x708e66),'override':'assetManager'!==_0x18b492});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4224a2){const {locale:_0x39fde6}=this['editor'];return _0x4224a2['map'](_0x5a9242=>{const _0x1b3100=_(_0x39fde6,_0x5a9242,'Insert');switch(_0x5a9242){case i['Local']:return{'icon':_0x312e22,'type':i['Local'],..._0x1b3100};case i['URL']:return{'icon':_0x21725b,'type':i['URL'],..._0x1b3100};case i['Dropbox']:return{'icon':_0x55a602,'type':i['Dropbox'],..._0x1b3100};case i['Facebook']:return{'icon':_0xa771b3,'type':i['Facebook'],..._0x1b3100};case i['GDrive']:return{'icon':_0xabdc76,'type':i['GDrive'],..._0x1b3100};case i['GPhotos']:return{'icon':_0x460d83,'type':i['GPhotos'],..._0x1b3100};case i['OneDrive']:return{'icon':_0x270a1a,'type':i['OneDrive'],..._0x1b3100};}});}['_getIntegrationKey'](_0x1a1da0){switch(_0x1a1da0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x508858,_0x4f57f7){const _0x3768f2=this['editor'],_0x162aba=new _0x508858(_0x3768f2['locale']),_0x200355=_0x3768f2['commands']['get']('uploadcare');return _0x162aba['bind']('isEnabled')['to'](_0x200355),_0x162aba['on']('execute',()=>{_0x200355['execute'](_0x4f57f7);}),_0x162aba;}['_createToolbarButton'](_0x39cc1c){const {locale:_0x3c1840}=this['editor'],_0x2e1a43=this['editor']['plugins']['get']('ImageInsertUI'),_0x3db63a=_0x39cc1c[0x0],_0x3c54ca=this['_createButton'](_0x1e52fd,_0x3db63a['type']);return _0x3c54ca['icon']=_0x3db63a['icon'],_0x3c54ca['bind']('label')['to'](_0x2e1a43,'isImageSelected',_0x261b9b=>_(_0x3c1840,_0x3db63a['type'],_0x261b9b?'Replace':'Insert')['text']),_0x3c54ca['tooltip']=!0x0,_0x3c54ca;}['_createDropdownButtons'](_0x4489dc){const {locale:_0x4d4dd4}=this['editor'],_0x3e5ffe=this['editor']['plugins']['get']('ImageInsertUI');return _0x4489dc['map'](_0x5b44c0=>{const _0x320491=this['_createButton'](_0x1e52fd,_0x5b44c0['type']);return _0x320491['withText']=!0x0,_0x320491['icon']=_0x5b44c0['icon'],_0x320491['bind']('label')['to'](_0x3e5ffe,'isImageSelected',_0x30cc21=>_(_0x4d4dd4,_0x5b44c0['type'],_0x30cc21?'Replace':'Insert')['text']),_0x320491;});}['_createMenuBarButtons'](_0x278bd0){return _0x278bd0['map'](_0xb53c3=>{const _0x3967b4=this['_createButton'](_0x31d451,_0xb53c3['type']);return _0x3967b4['icon']=_0xb53c3['icon'],_0x3967b4['label']=_0xb53c3['shortText'],_0x3967b4;});}}class F extends _0x5a89c8{['focusTracker'];['focusCycler'];constructor(_0x1222fd){super(_0x1222fd),this['focusTracker']=new _0x1bd8e3(),this['focusCycler']=new _0x508a30({'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(_0x1df680){super(_0x1df680),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x57e799,_0x54f905){const _0x52c2f3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x11aaf5=>_0x11aaf5<=_0x54f905)['map'](_0x197c8b=>_0x57e799['replace'](/\/$/,'')+'/-/resize/'+_0x197c8b+'x/\x20'+_0x197c8b+'w');return{'imageFallbackUrl':_0x57e799,'imageSources':[{'srcset':_0x52c2f3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x54f905+'px)\x20100vw,\x20'+_0x54f905+'px','type':'image/webp'}]};}function C(_0x29c1e5,_0x1151ce,_0xa5269e){const _0x16a336=_0x29c1e5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16a336?parseInt(_0x16a336[0x1],0xa):_0x1151ce,'height':_0x16a336?parseInt(_0x16a336[0x2],0xa):_0xa5269e};}function p(_0x285fa0,_0x3194a3){const _0xdd6338=new(_0x4b390e())(),_0x41f2ef=_0x285fa0['plugins']['get']('ImageUtils'),_0x58de68=_0x285fa0['editing']['mapper']['toViewElement'](_0x3194a3),_0x1caf1d=_0x41f2ef['findViewImgElement'](_0x58de68),_0x36386f=_0x285fa0['editing']['view']['domConverter']['viewToDom'](_0x1caf1d),_0x215593=_0x3194a3['getAttribute']('width'),_0x2b5a2c=_0x3194a3['getAttribute']('height'),_0x33a74d='image-processing';_0x285fa0['editing']['view']['change'](_0xed9f2f=>{_0xed9f2f['addClass'](_0x33a74d,_0x58de68),_0xed9f2f['setStyle']('aspect-ratio',_0x215593+'/'+_0x2b5a2c,_0x1caf1d);}),_0xdd6338['listenTo'](_0x36386f,'load',()=>{_0xdd6338['stopListening'](_0x36386f,'load'),_0x285fa0['editing']['view']['change'](_0x34cf68=>{_0x34cf68['removeClass'](_0x33a74d,_0x58de68),_0x34cf68['removeStyle']('aspect-ratio',_0x1caf1d);});});}function G(_0x4bb615){if(Array['isArray'](_0x4bb615)){const _0x51dd23=_0x4bb615['map'](G);return _0xdb5726=>_0x51dd23['some'](_0x100b81=>_0x100b81(_0xdb5726));}if('origin'==_0x4bb615){const _0x1a7289=_0x40cabf['window']['location']['origin'];return _0x15660e=>new URL(_0x15660e,_0x40cabf['document']['baseURI'])['origin']==_0x1a7289;}return'function'==typeof _0x4bb615?_0x4bb615:_0x4bb615 instanceof RegExp?_0x135c95=>!(!_0x135c95['match'](_0x4bb615)&&!_0x135c95['replace'](/^https?:\/\//,'')['match'](_0x4bb615)):()=>!0x1;}function S(_0xb71662,_0x502b94){return _0x398d75(_0xb71662['target'])['includes'](_0x502b94);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x58e818(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x240230,_0x1abf0c,_0x413932){super(),this['_editor']=_0x240230,this['_editing']=_0x1abf0c,this['_dialog']=_0x240230['plugins']['get'](_0x222a52),this['_api']=_0x1abf0c['ctxElement']['getAPI'](),this['_type']=_0x413932,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:_0x254918,model:_0x1db1d6}=this['_editor'],_0x135b5c=_0x1db1d6['document']['selection']['getSelectedElement'](),_0x27a168=_0x135b5c&&(_0x135b5c['is']('element','imageBlock')||_0x135b5c['is']('element','imageInline'));this['_formView']=new x(_0x254918),this['_dialog']['show']({'id':'uploadCare','icon':_0x312e22,'title':_(_0x254918,this['_type'],_0x27a168?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5ac068['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x57c081=>!S(_0x57c081,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xcf337}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5d8daf=>{const _0x5e527e=_0xcf337['length'];for(const _0x2d3d32 of _0xcf337){const _0x4233dc=_0x2d3d32===_0xcf337[_0x5e527e-0x1],{cdnUrl:_0x3fdcc0,fileInfo:_0x29a767}=_0x2d3d32;if(!_0x3fdcc0||!_0x29a767)continue;const {width:_0x295700,height:_0x103080}=_0x29a767['imageInfo'],_0x5a195e=C(_0x3fdcc0,_0x295700,_0x103080),_0x2c0116=k(_0x3fdcc0,_0x5a195e['width']),_0x414e54={'id':_0x29a767['uuid'],'type':'image','attributes':{'imageDimension':_0x5a195e,..._0x2c0116}};this['_insertAsset'](_0x414e54,_0x4233dc,_0x5d8daf);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x353b2d=>{'idle'===_0x353b2d['detail']['status']&&!_0x353b2d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x25a1a9,_0x29849c,_0x31bfec){const _0x54e89b=this['_editor']['model']['document']['selection'],_0xfccd14=_0x54e89b['getSelectedElement'](),_0x40ce7b=!(!_0xfccd14||!_0xfccd14['is']('element','imageInline'));_0x31bfec['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x25a1a9,_0x40ce7b),_0x29849c||_0x31bfec['setSelection'](_0x54e89b['getLastPosition']());}['_insertImage'](_0x5541b2,_0x360136){const _0x10edc4=this['_editor'],{imageDimension:_0x270dee,imageFallbackUrl:_0x361115,imageSources:_0x14d227}=_0x5541b2['attributes'];_0x10edc4['execute']('insertImage',{'imageType':_0x360136?'imageInline':null,'source':{'uploadcareImageId':_0x5541b2['id'],'src':_0x361115,'sources':_0x14d227,..._0x270dee}});}}class w extends _0x9a602d{['_editing'];['_controller']=null;static get['requires'](){return[_0x222a52,o];}constructor(_0xa276e7){super(_0xa276e7),this['_editing']=_0xa276e7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xf8061){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xf8061);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x13269b,publicKey:_0x2c4672,signal:_0x20b925,onProgress:_0x28ce5e}){return _0x481806(_0x13269b,{'publicKey':_0x2c4672,'store':'auto','signal':_0x20b925,'onProgress':_0x28ce5e});}static['getInfo'](_0x3f29f1,_0x3a758e){return _0x42cdbd(_0x3f29f1,_0x3a758e);}}class f extends _0x22599c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3816f0,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1d7a31=this['editor'];if(!!!_0x1d7a31['config']['get']('uploadcare'))return;_0x1d7a31['plugins']['get'](_0x3816f0)['createUploadAdapter']=_0x6ba39a=>new A(_0x6ba39a,_0x1d7a31),_0x1d7a31['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1f3fd6,{imageElement:_0xedd5cc,data:_0x40ee92})=>{_0x1d7a31['model']['change'](_0x37d3e3=>{_0x37d3e3['setAttribute']('uploadcareImageId',_0x40ee92['uploadcareImageId'],_0xedd5cc);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x1c4bbc,_0x3cb9c1){this['loader']=_0x1c4bbc,this['editor']=_0x3cb9c1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x34f801=this['editor']['config']['get']('uploadcare.pubkey'),_0x5db061=await this['loader']['file'];return j['upload']({'file':_0x5db061,'publicKey':_0x34f801,'signal':this['controller']['signal'],'onProgress':_0x18bf1c=>{_0x18bf1c&&_0x18bf1c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x18bf1c['value']);}})['then'](async _0x2b6a28=>{const {imageFallbackUrl:_0x211521,imageSources:_0x1ef400}=k(_0x2b6a28['cdnUrl'],_0x2b6a28['imageInfo']['width']);return{'uploadcareImageId':_0x2b6a28['uuid'],'default':_0x211521,'sources':_0x1ef400};})['catch'](()=>{const _0x4ca475=t('Cannot\x20upload\x20file:')+('\x20'+_0x5db061['name']+'.');return Promise['reject'](_0x4ca475);});}['abort'](){this['controller']['abort']();}}class o extends _0x22599c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x222a52];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x413acb=this['editor'];_0x413acb['commands']['add']('uploadcare',new w(_0x413acb));}['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 _0x134165=_0x40cabf['document']['querySelector']('input[uploadcare-file-input]');_0x134165&&_0x134165['remove']();}),async function(_0x55a9c2){const _0x1ead6e=_0x1e7199([0x56,0x5a,0x50,0x46,0x70,0x45,0x64,0x7a,0x65,0x71,0x4c,0x6d,0x36,0x37,0x74,0x6c,0x54,0x55,0x52,0x57,0x77,0x61,0x33,0x51,0x42,0x69,0x32,0x6b,0x31,0x53,0x68,0x4d,0x6a,0x43,0x79,0x48,0x35,0x47,0x4a,0x34,0x49,0x4e,0x39,0x58,0x4b,0x66,0x72,0x73,0x4f,0x38,0x78,0x41,0x76,0x67,0x75,0x59,0x30,0x63,0x62,0x44,0x6f,0x6e]),_0x5cb9d4=0x676da686,_0x56fb27=0x676acc56^_0x5cb9d4,_0x4824b9=window[_0x1e7199([0x44,0x61,0x74,0x65])][_0x1e7199([0x6e,0x6f,0x77])](),_0x1f8ee1=_0x55a9c2[_0x1e7199([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa04b1=new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x283d17=>{_0x1f8ee1[_0x1e7199([0x6f,0x6e,0x63,0x65])](_0x1e7199([0x72,0x65,0x61,0x64,0x79]),_0x283d17);}),_0x204c2c={[_0x1e7199([0x6b,0x74,0x79])]:_0x1e7199([0x45,0x43]),[_0x1e7199([0x75,0x73,0x65])]:_0x1e7199([0x73,0x69,0x67]),[_0x1e7199([0x63,0x72,0x76])]:_0x1e7199([0x50,0x2d,0x32,0x35,0x36]),[_0x1e7199([0x78])]:_0x1e7199([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]),[_0x1e7199([0x79])]:_0x1e7199([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]),[_0x1e7199([0x61,0x6c,0x67])]:_0x1e7199([0x45,0x53,0x32,0x35,0x36])},_0x57bd62=_0x1f8ee1[_0x1e7199([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e7199([0x67,0x65,0x74])](_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a72d5(){let _0x3049bc,_0x3144dc=null,_0x585c93=null;try{if(_0x57bd62==_0x1e7199([0x47,0x50,0x4c]))return _0x1e7199([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3049bc=_0x5db312(),!_0x3049bc)return _0x1e7199([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3049bc[_0x1e7199([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x585c93=_0x4c5ab7(_0x3049bc[_0x1e7199([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3049bc[_0x1e7199([0x6a,0x74,0x69])])),await _0x5b9e09()?_0x20da4d()?_0x3c635c()?_0x1e7199([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x71b95()?(_0x3049bc[_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e7199([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3144dc=_0x43e1cf(_0x1e7199([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3049bc[_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e7199([0x74,0x72,0x69,0x61,0x6c])&&(_0x3144dc=_0x43e1cf(_0x1e7199([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35e30c()):_0x1e7199([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e7199([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e7199([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e7199([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c635c(){const _0x8fa0f3=[_0x1e7199([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e7199([0x74,0x72,0x69,0x61,0x6c])][_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3049bc[_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4824b9/0x3e8:0xe10*_0x56fb27;return _0x3049bc[_0x1e7199([0x65,0x78,0x70])]<_0x8fa0f3;}function _0x20da4d(){const _0x4413b6=_0x3049bc[_0x1e7199([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4413b6&&(!!_0x4413b6[_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e7199([0x2a]))||!!_0x4413b6[_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e7199([0x55,0x50,0x4c,0x43])));}function _0x71b95(){const _0x365bef=_0x3049bc[_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x365bef||0x0==_0x365bef[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2368de}=new URL(window[_0x1e7199([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x365bef[_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2368de))return!0x0;const _0x11deb8=_0x2368de[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])](_0x1e7199([0x2e]));return _0x365bef[_0x1e7199([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x337260=>_0x337260[_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e7199([0x2a])))[_0x1e7199([0x6d,0x61,0x70])](_0x5b98cb=>_0x5b98cb[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])](_0x1e7199([0x2e])))[_0x1e7199([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26ce16=>_0x26ce16[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x11deb8[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e7199([0x6d,0x61,0x70])](_0x5457f4=>Array(_0x11deb8[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5457f4[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e7199([0x66,0x69,0x6c,0x6c])](_0x5457f4[0x0]===_0x1e7199([0x2a])?_0x1e7199([0x2a]):'')[_0x1e7199([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5457f4))[_0x1e7199([0x73,0x6f,0x6d,0x65])](_0x3b4bef=>_0x11deb8[_0x1e7199([0x65,0x76,0x65,0x72,0x79])]((_0x4bca63,_0x4f3ea6)=>_0x3b4bef[_0x4f3ea6]===_0x4bca63||_0x3b4bef[_0x4f3ea6]===_0x1e7199([0x2a])));}function _0x35e30c(){return _0x3144dc&&_0x585c93?new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x384592,_0x16f0be)=>{_0x3144dc[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x384592,_0x16f0be),_0x585c93[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x5d12af=>{_0x5d12af!=_0x1e7199([0x56,0x61,0x6c,0x69,0x64])&&_0x384592(_0x5d12af);},_0x16f0be);}):_0x3144dc||_0x585c93||_0x1e7199([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c5ab7(_0x24f458,_0x1b68e3){return new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58914f=>{if(_0x42feb4())return _0x58914f(_0x1e7199([0x56,0x61,0x6c,0x69,0x64]));_0x945235(),_0x1f8ee1[_0x1e7199([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e7199([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34a0e1=!0x1;const _0x8d181a=_0x1c4547();function _0x791c96(_0x3f84cc){return!!_0x3f84cc&&(typeof _0x3f84cc===_0x1e7199([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f84cc===_0x1e7199([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f84cc[_0x1e7199([0x74,0x68,0x65,0x6e])]===_0x1e7199([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f84cc[_0x1e7199([0x63,0x61,0x74,0x63,0x68])]===_0x1e7199([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2561d1(_0x890aac){_0x3c4661(_0x890aac)[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x3b4215=>{if(!_0x3b4215||_0x3b4215[_0x1e7199([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e7199([0x6f,0x6b]))return _0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x54eb03(_0x3cc736(_0x8d181a+_0x1b68e3))!=_0x3b4215[_0x1e7199([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e7199([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x19bba5=>(_0x54eb75(),_0x19bba5),()=>{const _0x31c040=_0x28049a();return null==_0x31c040?(_0x54eb75(),_0x1e7199([0x56,0x61,0x6c,0x69,0x64])):_0x1e7199(_0x4824b9-_0x31c040>(0x43612286^_0x5cb9d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x58914f)[_0x1e7199([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58914f(_0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x529e1=0x675b4806^_0x5cb9d4;function _0x54eb75(){const _0x10a358=_0x1e7199([0x6c,0x6c,0x63,0x74,0x2d])+_0x54eb03(_0x3cc736(_0x24f458)),_0x210273=_0x1f774a(_0x54eb03(window[_0x1e7199([0x4d,0x61,0x74,0x68])][_0x1e7199([0x63,0x65,0x69,0x6c])](_0x4824b9/_0x529e1)));window[_0x1e7199([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e7199([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10a358,_0x210273);}function _0x28049a(){const _0x57a8fe=_0x1e7199([0x6c,0x6c,0x63,0x74,0x2d])+_0x54eb03(_0x3cc736(_0x24f458)),_0x4042fa=window[_0x1e7199([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e7199([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57a8fe);return _0x4042fa?window[_0x1e7199([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f774a(_0x4042fa),0x10)*_0x529e1:null;}function _0x3c4661(_0x2c9167){return new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44b5c9,_0x43c47c)=>{_0x2c9167[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x44b5c9,_0x43c47c),window[_0x1e7199([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43c47c,0x676c7246^_0x5cb9d4);});}}_0x1f8ee1[_0x1e7199([0x6f,0x6e])](_0x1e7199([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe01d57,_0x10b58b)=>{if(_0x10b58b[0x0]!=_0x24f458)return _0x58914f(_0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10b58b[0x1]={..._0x10b58b[0x1],[_0x1e7199([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8d181a};},{[_0x1e7199([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e7199([0x68,0x69,0x67,0x68])}),_0x1f8ee1[_0x1e7199([0x6f,0x6e])](_0x1e7199([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12873a=>{_0x791c96(_0x12873a[_0x1e7199([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34a0e1=!0x0,_0x2561d1(_0x12873a[_0x1e7199([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e7199([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e7199([0x6c,0x6f,0x77])}),_0xa04b1[_0x1e7199([0x74,0x68,0x65,0x6e])](()=>{_0x34a0e1||_0x58914f(_0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42feb4(){return _0x1f8ee1[_0x1e7199([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e7199([0x76,0x69,0x65,0x77])][_0x1e7199([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e7199([0x61,0x75,0x74,0x6f]);}function _0x945235(){_0x1f8ee1[_0x1e7199([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e7199([0x76,0x69,0x65,0x77])][_0x1e7199([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e7199([0x61,0x75,0x74,0x6f]);}}function _0x43e1cf(_0x58bb33){const _0x445ceb=[new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30d762=>setTimeout(_0x30d762,0x6764984a^_0x5cb9d4)),_0xa04b1[_0x1e7199([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ee8e4=>{let _0x17dac1=0x0;_0x1f8ee1[_0x1e7199([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e7199([0x6f,0x6e])](_0x1e7199([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x460466,_0x33f72b)=>{_0x33f72b[0x0][_0x1e7199([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17dac1++,_0x17dac1==(0x676da77e^_0x5cb9d4)&&(_0x2ee8e4(),_0x460466[_0x1e7199([0x6f,0x66,0x66])]());});}))];return window[_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e7199([0x72,0x61,0x63,0x65])](_0x445ceb)[_0x1e7199([0x74,0x68,0x65,0x6e])](()=>_0x58bb33);}async function _0xd1b237(){await _0xa04b1,_0x1f8ee1[_0x1e7199([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e7199([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36346f,_0x1f8ee1[_0x1e7199([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e7199([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36346f,_0x1f8ee1[_0x1e7199([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e7199([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x562a46(_0x589567){const _0x470e86=_0x25a714();_0x1f8ee1[_0x470e86]=_0x1e7199([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x589567,_0x589567!=_0x1e7199([0x56,0x61,0x6c,0x69,0x64])&&_0xd1b237();}function _0x25a714(){const _0x2456b5=window[_0x1e7199([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e7199([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e7199([0x6e,0x6f,0x77])]())[_0x1e7199([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e7199([0x2e]),'');let _0x4630c7=_0x1e7199([0x56]);for(let _0x4fa984=0x0;_0x4fa984<_0x2456b5[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fa984+=0x2){let _0x102e39=window[_0x1e7199([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2456b5[_0x1e7199([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fa984,_0x4fa984+0x2));_0x102e39>=_0x1ead6e[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x102e39-=_0x1ead6e[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4630c7+=_0x1ead6e[_0x102e39];}return _0x4630c7;}function _0x5db312(){const _0x141eb2=_0x57bd62[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])](_0x1e7199([0x2e]));if(0x3!=_0x141eb2[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40494d(_0x141eb2[0x1]);function _0x40494d(_0x2abaf8){const _0x367355=_0x54a0f8(_0x2abaf8);return _0x367355&&_0x6ea3ce()?_0x367355:null;function _0x6ea3ce(){const _0x25eec3=_0x367355[_0x1e7199([0x6a,0x74,0x69])],_0x56bce0=window[_0x1e7199([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25eec3[_0x1e7199([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25eec3[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cbf57={..._0x367355,[_0x1e7199([0x6a,0x74,0x69])]:_0x25eec3[_0x1e7199([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25eec3[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cbf57[_0x1e7199([0x76,0x63])],_0x3cc736(_0x1cbf57)==_0x56bce0;}}}async function _0x5b9e09(){let _0x4ed571=!0x0;try{const _0x471d6b=_0x57bd62[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])](_0x1e7199([0x2e])),[_0x1b0131,_0x284c6c,_0x43f58e]=_0x471d6b;return _0x596566(_0x1b0131),await _0x51f5f1(_0x1b0131,_0x284c6c,_0x43f58e),_0x4ed571;}catch{return!0x1;}function _0x596566(_0x23c140){const _0x27174a=_0x54a0f8(_0x23c140);_0x27174a&&_0x27174a[_0x1e7199([0x61,0x6c,0x67])]==_0x1e7199([0x45,0x53,0x32,0x35,0x36])||(_0x4ed571=!0x1);}async function _0x51f5f1(_0x10d8be,_0x5035cb,_0x307c64){const _0x38c39a=window[_0x1e7199([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e7199([0x66,0x72,0x6f,0x6d])](_0x448d6f(_0x307c64),_0x33245e=>_0x33245e[_0x1e7199([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29bf65=new window[(_0x1e7199([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e7199([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10d8be+_0x1e7199([0x2e])+_0x5035cb),_0x33b2a5=window[_0x1e7199([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e7199([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33b2a5)return;const _0x23190b=await _0x33b2a5[_0x1e7199([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e7199([0x6a,0x77,0x6b]),_0x204c2c,{[_0x1e7199([0x6e,0x61,0x6d,0x65])]:_0x1e7199([0x45,0x43,0x44,0x53,0x41]),[_0x1e7199([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e7199([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e7199([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33b2a5[_0x1e7199([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e7199([0x6e,0x61,0x6d,0x65])]:_0x1e7199([0x45,0x43,0x44,0x53,0x41]),[_0x1e7199([0x68,0x61,0x73,0x68])]:{[_0x1e7199([0x6e,0x61,0x6d,0x65])]:_0x1e7199([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23190b,_0x38c39a,_0x29bf65)||(_0x4ed571=!0x1);}}function _0x54a0f8(_0xfb31ae){return _0xfb31ae[_0x1e7199([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e7199([0x65,0x79]))?JSON[_0x1e7199([0x70,0x61,0x72,0x73,0x65])](_0x448d6f(_0xfb31ae)):null;}function _0x448d6f(_0x53a010){return window[_0x1e7199([0x61,0x74,0x6f,0x62])](_0x53a010[_0x1e7199([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e7199([0x2b]))[_0x1e7199([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e7199([0x2f])));}function _0x3cc736(_0x25a75e){let _0x3bb685=0x1505;function _0xf55390(_0x210ac2){for(let _0xf2234d=0x0;_0xf2234d<_0x210ac2[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf2234d++){const _0x162035=_0x210ac2[_0x1e7199([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf2234d);_0x3bb685=(_0x3bb685<<0x5)+_0x3bb685+_0x162035,_0x3bb685&=_0x3bb685;}}function _0x3f540b(_0x4d32db){Array[_0x1e7199([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d32db)?_0x4d32db[_0x1e7199([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f540b):_0x4d32db&&typeof _0x4d32db==_0x1e7199([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e7199([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d32db)[_0x1e7199([0x73,0x6f,0x72,0x74])]()[_0x1e7199([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bb3d9,_0x658213])=>{_0xf55390(_0x5bb3d9),_0x3f540b(_0x658213);}):_0xf55390(window[_0x1e7199([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d32db));}return _0x3f540b(_0x25a75e),_0x3bb685>>>0x0;}function _0x54eb03(_0x286342){return _0x286342[_0x1e7199([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e7199([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e7199([0x30]));}function _0x1f774a(_0x1e39d5){return _0x1e39d5[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e7199([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e7199([0x6a,0x6f,0x69,0x6e])]('');}function _0x36346f(){}function _0x1e7199(_0x63bda5){return _0x63bda5['map'](_0x295203=>String['fromCharCode'](_0x295203))['join']('');}_0x562a46(await _0x5a72d5());}(this);}['_initSchema'](){const _0x527fa9=this['editor']['model']['schema'];_0x527fa9['isRegistered']('imageBlock')&&_0x527fa9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x527fa9['isRegistered']('imageInline')&&_0x527fa9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x506ded=this['editor'];_0x506ded['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x506ded['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x584650=>_0x584650['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2dce08=_0x506ded['commands']['get']('replaceImageSource');_0x2dce08&&this['listenTo'](_0x2dce08,'cleanupImage',(_0x519232,[_0x2d49d4,_0x3e2e28])=>{_0x2d49d4['removeAttribute']('uploadcareImageId',_0x3e2e28);});}['_initConfig'](){const _0x5f397d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x28c0f0=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4111db(_0x40cabf['document'],'uc-config',{..._0x5f397d,'pubkey':_0x28c0f0,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4c9da6=>{if('closeMax'==_0x4c9da6)return'#uc-icon-arrow-down';},_0x40cabf['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4111db(_0x40cabf['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x40cabf['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2bc7ba=this['editor']['commands']['get']('insertImage');_0x2bc7ba&&this['listenTo'](_0x2bc7ba,'execute',()=>{const _0x117258=this['editor']['model']['document']['selection']['getSelectedElement']();_0x117258&&_0x117258['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x117258);});});const _0x1075ff=this['editor']['commands']['get']('uploadcareImageReplace');_0x1075ff&&this['listenTo'](_0x1075ff,'execute',()=>{const _0x8e3b47=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8e3b47&&_0x8e3b47['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x8e3b47);});});}}class tt extends _0x22599c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xae6b7e){super(_0xae6b7e),_0xae6b7e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1fffdd['defineComponents'](_0x1fffdd);}}class ii extends _0x5a89c8{constructor(_0x4f6e44){super(_0x4f6e44);const t=_0x4f6e44['t'],_0x2f93b9=this['bindTemplate'],_0x4e9983=new _0x365e5a();_0x4e9983['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':[_0x4e9983,{'text':_0x2f93b9['to']('imageUploadProgress',_0x15f1c9=>t('Loading\x20image...')+'\x20('+(_0x15f1c9||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 _0x5a89c8{constructor(_0x4f99b8){super(_0x4f99b8);const t=_0x4f99b8['t'];this['set']('errorType',null);const _0x576015=new _0x1e52fd(_0x4f99b8);_0x576015['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x576015['withText']=!0x0,_0x576015['class']='ck-button-action',_0x576015['on']('execute',()=>{this['fire']('retry');}),_0x576015['bind']('isVisible')['to'](this,'errorType',_0x13c49e=>'NotFound'!==_0x13c49e);const _0x418e6c=new _0xe361fc();_0x418e6c['content']=_0x25d758,_0x418e6c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3c0fb8=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':[_0x418e6c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3c0fb8['to']('errorType',_0x2bc070=>t('NotFound'!==_0x2bc070?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x576015]},{'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 _0x5a89c8{constructor(_0x1c09a5,_0x4968c1){super(_0x1c09a5);const _0x38f27c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4968c1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x38f27c['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1decaa,_0x351767,_0xbf356b){super(_0x1decaa),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1decaa),this['_errorView']=new ti(_0x1decaa),this['_editingView']=new ei(_0x1decaa,_0xbf356b),this['_focusableView']=new _0x5a89c8(_0x1decaa),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x351767),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'],_0x36d9e6=>{this['_addUploadcareImageEditorListeners'](_0x36d9e6);});}),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'](_0x1998b9,_0x1bbb28){const _0x1c840c='uc-cloud-image-editor',_0x135747=_0x1998b9['querySelector'](_0x1c840c);if(_0x135747)return _0x1bbb28(_0x135747);const _0x2d9464=new MutationObserver(_0x308ad4=>{const _0x407e0e=_0x308ad4['filter'](_0x4167b2=>_0x4167b2['target']===_0x1998b9&&_0x4167b2['addedNodes']['length']>0x0&&_0x4167b2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1c840c);_0x407e0e['length']&&(_0x2d9464['disconnect'](),_0x1bbb28(_0x407e0e[0x0]['addedNodes'][0x0]));});_0x2d9464['observe'](_0x1998b9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x230b1e){_0x230b1e['addEventListener']('apply',_0x34526c=>{this['fire']('apply',{'imageSrc':_0x34526c['detail']['cdnUrl']});}),_0x230b1e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x58e818(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x27356c,_0x22c43e,_0x80cf0d){super(),this['_editor']=_0x27356c,this['_dialog']=_0x22c43e,this['_imageElement']=_0x80cf0d,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 _0x43da9e=this['_imageElement'],_0x474ab0=_0x43da9e['getAttribute']('uploadcareImageId'),_0x34c40b=_0x43da9e['getAttribute']('src');if(_0x474ab0)await this['_loadImageInfo'](_0x474ab0,_0x34c40b);else{if(this['_imageCache']['has'](_0x34c40b)){const _0x282eb6=this['_imageCache']['get'](_0x34c40b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x282eb6['url'],this['imageDimension']=_0x282eb6['dimension'],this['imageId']=_0x282eb6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2b64b5}=this['_editor'],t=_0x2b64b5['t'],_0x4cf611=new X(_0x2b64b5,this['imageStatus'],this['_attributes']);_0x4cf611['bind']('status')['to'](this,'imageStatus'),_0x4cf611['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4cf611['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4cf611['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4cf611,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x12a505,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4cf611,'position':_0x5ac068['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4cf611['focus']();},'onHide':()=>{_0x4cf611['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x546c88=>!S(_0x546c88,_0x4cf611['element'])}});}['_loadImageInfo'](_0x43382b,_0x698a22){return j['getInfo'](_0x43382b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4516a0=>{const {width:_0x3d8849,height:_0xaf91e1}=_0x4516a0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x698a22,this['imageDimension']={'width':_0x3d8849,'height':_0xaf91e1},this['imageId']=_0x43382b;})['catch'](_0x17afe7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x17afe7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5428ce,_0x1c6527){return this['_getImageAsFile'](_0x5428ce)['then'](_0x1103a5=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1c6527['signal'],'file':_0x1103a5,'onProgress':_0xfcff85=>{_0xfcff85&&_0xfcff85['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xfcff85['value']));}}))['then'](_0x4d34a0=>{const {width:_0x11ef7d,height:_0x4c6e97}=_0x4d34a0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d34a0['cdnUrl'],this['imageDimension']={'width':_0x11ef7d,'height':_0x4c6e97},this['imageId']=_0x4d34a0['uuid'],this['imageUploadProgress']=null;const _0x443e50=_0x5428ce['getAttribute']('src');this['_imageCache']['set'](_0x443e50,{'id':_0x4d34a0['uuid'],'url':_0x4d34a0['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3b8bab=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b8bab['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x568b3f,_0x20b8bb){_0x568b3f['on']('apply',(_0x111d2e,_0x3423a7)=>{this['_replaceImage'](_0x20b8bb,_0x3423a7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x568b3f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x568b3f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xf69f60,_0x1a734c,_0x252594){const _0x49ea5c=this['_editor'],{width:_0x17ecd0,height:_0x39de9a}=C(_0x1a734c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4ec3f1,imageSources:_0x4205cd}=k(_0x1a734c,_0x17ecd0);_0x49ea5c['model']['change'](_0x470b5d=>{if('$graveyard'===_0xf69f60['root']['rootName']){_0x49ea5c['execute']('insertImage',{'imageType':_0xf69f60['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xf69f60['getAttributes']()),'uploadcareImageId':_0x252594,'src':_0x4ec3f1,'sources':_0x4205cd,'width':_0x17ecd0,'height':_0x39de9a}});const _0x23bfd9=_0xf69f60['getChildren']();_0xf69f60=_0x49ea5c['model']['document']['selection']['getSelectedElement']();for(const _0x23fae2 of _0x23bfd9)_0x470b5d['append'](_0x470b5d['cloneElement'](_0x23fae2),_0xf69f60);}else _0x470b5d['setSelection'](_0xf69f60,'on'),_0x49ea5c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xf69f60['getAttributes']()),'uploadcareImageId':_0x252594,'src':_0x4ec3f1,'sources':_0x4205cd,'width':_0x17ecd0,'height':_0x39de9a},_0xf69f60);_0x470b5d['setSelection'](_0xf69f60,'on');});}async['_getImageAsFile'](_0x359926){const _0xb182d8=_0x40cabf['window'],_0x1c8970=_0x40cabf['document']['location']['href'],_0x59d375=new _0xb182d8['URL'](_0x359926['getAttribute']('src'),_0x1c8970);if('data:'===_0x59d375['protocol']){const _0x19a096=_0x59d375['href']['split'](','),_0x5646ed=_0x19a096[0x0]['match'](/:(.*?);/)[0x1],_0x3b2150=_0x5646ed['split']('/')[0x1],_0x17d6c0=_0xb182d8['atob'](_0x19a096[_0x19a096['length']-0x1]);let _0xa94078=_0x17d6c0['length'];const _0x312a81=new _0xb182d8['Uint8Array'](_0xa94078);for(;_0xa94078--;)_0x312a81[_0xa94078]=_0x17d6c0['charCodeAt'](_0xa94078);return new _0xb182d8['File']([_0x312a81],'image.'+_0x3b2150,{'type':_0x5646ed});}const _0x4e69e8=_0x59d375['href']['split']('/'),_0x3d69e5=_0x4e69e8[_0x4e69e8['length']-0x1],_0x4e730b=_0x3d69e5['split']('.')[0x1];return _0xb182d8['fetch'](_0x59d375['href'])['then'](_0x203cbb=>_0x203cbb['clone']()['blob']())['then'](_0x1848ff=>new _0xb182d8['File']([_0x1848ff],_0x3d69e5,{'type':'image/'+_0x4e730b}));}}class O extends _0x9a602d{['imageEditController'];static get['requires'](){return[_0x222a52];}['_isEditable'];constructor(_0x5cf26a){super(_0x5cf26a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xef4c0){const _0x4bc419=G(_0xef4c0);return _0xbb1118=>!(!_0xbb1118||!_0xbb1118['is']('element','imageBlock')&&!_0xbb1118['is']('element','imageInline'))&&(!!_0xbb1118['hasAttribute']('uploadcareImageId')||!!_0xbb1118['hasAttribute']('src')&&_0x4bc419(_0xbb1118['getAttribute']('src')));}(_0x5cf26a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x157ea1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x157ea1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5c2044=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5c2044&&(_0x5c2044['is']('element','imageBlock')||_0x5c2044['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x222a52),_0x5c2044),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x9a602d{['refresh'](){const _0x556847=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x556847&&(_0x556847['is']('element','imageBlock')||_0x556847['is']('element','imageInline')));}['execute'](_0xdbb9f3){const _0xf0e092=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4c8239=>{_0x4c8239['setAttributes'](_0xdbb9f3,_0xf0e092),_0x4c8239['removeAttribute']('srcset',_0xf0e092),_0x4c8239['removeAttribute']('sizes',_0xf0e092);});}}class m extends _0x22599c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4ad192,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4a658}=this;_0x4a658['commands']['add']('uploadcareImageEdit',new O(_0x4a658)),_0x4a658['commands']['add']('uploadcareImageReplace',new R(_0x4a658));}}class g extends _0x22599c{['_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 _0x52db22=this['editor'];_0x52db22['ui']['componentFactory']['add']('uploadcareImageEdit',_0x39672b=>{const _0x58ed18=_0x52db22['commands']['get']('uploadcareImageEdit'),_0x3047de=new _0x1e52fd(_0x39672b),t=_0x39672b['t'];return _0x3047de['set']({'icon':_0x12a505,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3047de['bind']('isEnabled')['to'](_0x58ed18),_0x3047de['bind']('isOn')['to'](_0x58ed18,'isActive'),this['listenTo'](_0x3047de,'execute',()=>{_0x52db22['execute']('uploadcareImageEdit'),_0x52db22['editing']['view']['focus']();}),_0x3047de;}),this['_initConfig']();}['_initConfig'](){const _0x30ab8b=_0x4111db(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x30ab8b),this['listenTo'](this['editor'],'destroy',()=>{_0x30ab8b['remove']();});}}class et extends _0x22599c{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 _0x234254,Command as _0x17b899}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2d0e35,IconGooglePhotos as _0x1c05b3,IconGoogleDrive as _0x584d05,IconFacebook as _0x5a359e,IconDropbox as _0x31d685,IconUploadcareLink as _0x309a43,IconUploadcareImageUpload as _0x3cc2fa,IconError as _0x1e4c58,IconUploadcareImageEdit as _0x1ac654}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1bd7a8,MenuBarMenuListItemButtonView as _0x3c72a1,View as _0x5bf43e,FocusCycler as _0x372d9f,Dialog as _0x2f2845,DialogViewPosition as _0x1e0a7f,SpinnerView as _0x3f8c73,IconView as _0x53124b,Notification as _0x54f210}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x82cb2b,DomEmitterMixin as _0x12177e,global as _0x4b746f,getAncestors as _0x2bb41a,ObservableMixin as _0x184fa4,createElement as _0x56928c,uid as _0x40db85}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x303dd3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xd023d8,info as _0x3edf96}from'@uploadcare/upload-client';import*as _0x2eeaf3 from'@uploadcare/file-uploader';var i=function(_0x316f1b){return _0x316f1b['Local']='local',_0x316f1b['URL']='url',_0x316f1b['Dropbox']='dropbox',_0x316f1b['GDrive']='gdrive',_0x316f1b['Facebook']='facebook',_0x316f1b['GPhotos']='gphotos',_0x316f1b['OneDrive']='onedrive',_0x316f1b;}({});function _(_0x181e59,_0x23760f,_0x130727){const t=_0x181e59['t'],_0x4410f9=_0x181e59['t'];switch(_0x23760f){case i['Local']:return{'text':_0x4410f9('Insert'===_0x130727?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4410f9('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x130727?_0x4410f9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4410f9('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x130727?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x130727?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x130727?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x130727?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x130727?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x23760f;}}class e extends _0x234254{['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 _0x506d13=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3090f1;for(const _0x368161 in _0x506d13){const _0x35f49d=_0x368161,_0x3f59b4=_0x506d13[_0x35f49d];if('uploadcareLicenseKeyValid'==_0x3f59b4||'uploadcareLicenseKeyInvalid'==_0x3f59b4||'uploadcareLicenseKeyExpired'==_0x3f59b4||'uploadcareLicenseKeyDomainLimit'==_0x3f59b4||'uploadcareLicenseKeyNotAllowed'==_0x3f59b4||'uploadcareLicenseKeyEvaluationLimit'==_0x3f59b4||'uploadcareLicenseKeyTrialLimit'==_0x3f59b4||'uploadcareLicenseKeyUsageLimit'==_0x3f59b4){delete _0x506d13[_0x35f49d],_0x3090f1=_0x3f59b4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3090f1&&_0x506d13['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3090f1&&_0x506d13['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3090f1&&_0x506d13['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3090f1&&_0x506d13['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3090f1&&_0x506d13['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3090f1&&_0x506d13['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3090f1&&_0x506d13['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x313b8e}=this,_0x3a1133=_0x313b8e['commands']['get']('uploadcare');if(!_0x3a1133)return;const _0x310e9b=this['_normalizeConfigSourceList'](_0x313b8e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2032c3,_0x3e7573)=>{const _0x432e0a=this['_getIntegrationKey'](_0x3e7573['type']);return _0x2032c3[_0x432e0a]||(_0x2032c3[_0x432e0a]=[]),_0x2032c3[_0x432e0a]['push'](_0x3e7573),_0x2032c3;},{});_0x313b8e['plugins']['has']('ImageInsertUI')&&_0x313b8e['commands']['get']('uploadcare')&&Object['entries'](_0x310e9b)['forEach'](([_0x5cdb94,_0x536dd0])=>{_0x313b8e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5cdb94,'observable':()=>_0x3a1133,'buttonViewCreator':()=>this['_createToolbarButton'](_0x536dd0),'formViewCreator':()=>this['_createDropdownButtons'](_0x536dd0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x536dd0),'override':'assetManager'!==_0x5cdb94});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x566df6){const {locale:_0x30c0d2}=this['editor'];return _0x566df6['map'](_0x369ddd=>{const _0x160d0d=_(_0x30c0d2,_0x369ddd,'Insert');switch(_0x369ddd){case i['Local']:return{'icon':_0x3cc2fa,'type':i['Local'],..._0x160d0d};case i['URL']:return{'icon':_0x309a43,'type':i['URL'],..._0x160d0d};case i['Dropbox']:return{'icon':_0x31d685,'type':i['Dropbox'],..._0x160d0d};case i['Facebook']:return{'icon':_0x5a359e,'type':i['Facebook'],..._0x160d0d};case i['GDrive']:return{'icon':_0x584d05,'type':i['GDrive'],..._0x160d0d};case i['GPhotos']:return{'icon':_0x1c05b3,'type':i['GPhotos'],..._0x160d0d};case i['OneDrive']:return{'icon':_0x2d0e35,'type':i['OneDrive'],..._0x160d0d};}});}['_getIntegrationKey'](_0x3d8c9f){switch(_0x3d8c9f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xe739a0,_0x78eb21){const _0x22836e=this['editor'],_0x103bbd=new _0xe739a0(_0x22836e['locale']),_0x5c1ff8=_0x22836e['commands']['get']('uploadcare');return _0x103bbd['bind']('isEnabled')['to'](_0x5c1ff8),_0x103bbd['on']('execute',()=>{_0x5c1ff8['execute'](_0x78eb21);}),_0x103bbd;}['_createToolbarButton'](_0x340fc6){const {locale:_0x507db5}=this['editor'],_0x535696=this['editor']['plugins']['get']('ImageInsertUI'),_0x279cd1=_0x340fc6[0x0],_0x493aa7=this['_createButton'](_0x1bd7a8,_0x279cd1['type']);return _0x493aa7['icon']=_0x279cd1['icon'],_0x493aa7['bind']('label')['to'](_0x535696,'isImageSelected',_0x4f2dd7=>_(_0x507db5,_0x279cd1['type'],_0x4f2dd7?'Replace':'Insert')['text']),_0x493aa7['tooltip']=!0x0,_0x493aa7;}['_createDropdownButtons'](_0x13b086){const {locale:_0x2f6829}=this['editor'],_0x3b661c=this['editor']['plugins']['get']('ImageInsertUI');return _0x13b086['map'](_0x259abe=>{const _0x27f837=this['_createButton'](_0x1bd7a8,_0x259abe['type']);return _0x27f837['withText']=!0x0,_0x27f837['icon']=_0x259abe['icon'],_0x27f837['bind']('label')['to'](_0x3b661c,'isImageSelected',_0x5d4a84=>_(_0x2f6829,_0x259abe['type'],_0x5d4a84?'Replace':'Insert')['text']),_0x27f837;});}['_createMenuBarButtons'](_0x25c1ac){return _0x25c1ac['map'](_0xc46708=>{const _0x44525a=this['_createButton'](_0x3c72a1,_0xc46708['type']);return _0x44525a['icon']=_0xc46708['icon'],_0x44525a['label']=_0xc46708['shortText'],_0x44525a;});}}class F extends _0x5bf43e{['focusTracker'];['focusCycler'];constructor(_0x1a649a){super(_0x1a649a),this['focusTracker']=new _0x82cb2b(),this['focusCycler']=new _0x372d9f({'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(_0x140284){super(_0x140284),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x316de1,_0x4a13e9){const _0x31b63e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4bb3f9=>_0x4bb3f9<=_0x4a13e9)['map'](_0x13a650=>_0x316de1['replace'](/\/$/,'')+'/-/resize/'+_0x13a650+'x/\x20'+_0x13a650+'w');return{'imageFallbackUrl':_0x316de1,'imageSources':[{'srcset':_0x31b63e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4a13e9+'px)\x20100vw,\x20'+_0x4a13e9+'px','type':'image/webp'}]};}function C(_0x1c4f0d,_0x43e668,_0xac57a5){const _0x5efa10=_0x1c4f0d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5efa10?parseInt(_0x5efa10[0x1],0xa):_0x43e668,'height':_0x5efa10?parseInt(_0x5efa10[0x2],0xa):_0xac57a5};}function p(_0x237536,_0x263730){const _0x26954d=new(_0x12177e())(),_0x3446e9=_0x237536['plugins']['get']('ImageUtils'),_0x4eae53=_0x237536['editing']['mapper']['toViewElement'](_0x263730),_0x4a97bc=_0x3446e9['findViewImgElement'](_0x4eae53),_0x337504=_0x237536['editing']['view']['domConverter']['viewToDom'](_0x4a97bc),_0x55d3ae=_0x263730['getAttribute']('width'),_0x4ae3bb=_0x263730['getAttribute']('height'),_0x40aa4b='image-processing';_0x237536['editing']['view']['change'](_0x414350=>{_0x414350['addClass'](_0x40aa4b,_0x4eae53),_0x414350['setStyle']('aspect-ratio',_0x55d3ae+'/'+_0x4ae3bb,_0x4a97bc);}),_0x26954d['listenTo'](_0x337504,'load',()=>{_0x26954d['stopListening'](_0x337504,'load'),_0x237536['editing']['view']['change'](_0x430daf=>{_0x430daf['removeClass'](_0x40aa4b,_0x4eae53),_0x430daf['removeStyle']('aspect-ratio',_0x4a97bc);});});}function G(_0xc59dff){if(Array['isArray'](_0xc59dff)){const _0x33ed17=_0xc59dff['map'](G);return _0x532cf6=>_0x33ed17['some'](_0x9375e6=>_0x9375e6(_0x532cf6));}if('origin'==_0xc59dff){const _0x4d851e=_0x4b746f['window']['location']['origin'];return _0xb582e6=>new URL(_0xb582e6,_0x4b746f['document']['baseURI'])['origin']==_0x4d851e;}return'function'==typeof _0xc59dff?_0xc59dff:_0xc59dff instanceof RegExp?_0x303987=>!(!_0x303987['match'](_0xc59dff)&&!_0x303987['replace'](/^https?:\/\//,'')['match'](_0xc59dff)):()=>!0x1;}function S(_0x316d0c,_0x2f5e01){return _0x2bb41a(_0x316d0c['target'])['includes'](_0x2f5e01);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x184fa4(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3b3940,_0xd0a2b5,_0x1f3e30){super(),this['_editor']=_0x3b3940,this['_editing']=_0xd0a2b5,this['_dialog']=_0x3b3940['plugins']['get'](_0x2f2845),this['_api']=_0xd0a2b5['ctxElement']['getAPI'](),this['_type']=_0x1f3e30,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:_0x15320e,model:_0x3da8c8}=this['_editor'],_0x543d30=_0x3da8c8['document']['selection']['getSelectedElement'](),_0x5998f0=_0x543d30&&(_0x543d30['is']('element','imageBlock')||_0x543d30['is']('element','imageInline'));this['_formView']=new x(_0x15320e),this['_dialog']['show']({'id':'uploadCare','icon':_0x3cc2fa,'title':_(_0x15320e,this['_type'],_0x5998f0?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1e0a7f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5c9528=>!S(_0x5c9528,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4333fd}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3e35e7=>{const _0x2a7797=_0x4333fd['length'];for(const _0x3b6316 of _0x4333fd){const _0x32601e=_0x3b6316===_0x4333fd[_0x2a7797-0x1],{cdnUrl:_0x273693,fileInfo:_0x47a45c}=_0x3b6316;if(!_0x273693||!_0x47a45c)continue;const {width:_0x161614,height:_0x437a06}=_0x47a45c['imageInfo'],_0x51c1f2=C(_0x273693,_0x161614,_0x437a06),_0x30aaad=k(_0x273693,_0x51c1f2['width']),_0x3e098c={'id':_0x47a45c['uuid'],'type':'image','attributes':{'imageDimension':_0x51c1f2,..._0x30aaad}};this['_insertAsset'](_0x3e098c,_0x32601e,_0x3e35e7);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x380c15=>{'idle'===_0x380c15['detail']['status']&&!_0x380c15['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x48bf1d,_0x5d8e9e,_0x151444){const _0x55b5fa=this['_editor']['model']['document']['selection'],_0x1b426c=_0x55b5fa['getSelectedElement'](),_0x230564=!(!_0x1b426c||!_0x1b426c['is']('element','imageInline'));_0x151444['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x48bf1d,_0x230564),_0x5d8e9e||_0x151444['setSelection'](_0x55b5fa['getLastPosition']());}['_insertImage'](_0x12284f,_0x18dce4){const _0x570ea9=this['_editor'],{imageDimension:_0x5a66c3,imageFallbackUrl:_0x213aef,imageSources:_0x3f864c}=_0x12284f['attributes'];_0x570ea9['execute']('insertImage',{'imageType':_0x18dce4?'imageInline':null,'source':{'uploadcareImageId':_0x12284f['id'],'src':_0x213aef,'sources':_0x3f864c,..._0x5a66c3}});}}class w extends _0x17b899{['_editing'];['_controller']=null;static get['requires'](){return[_0x2f2845,o];}constructor(_0x3c48f8){super(_0x3c48f8),this['_editing']=_0x3c48f8['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2f209b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2f209b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4daded,publicKey:_0x474290,signal:_0x11e14b,onProgress:_0x3acef5}){return _0xd023d8(_0x4daded,{'publicKey':_0x474290,'store':'auto','signal':_0x11e14b,'onProgress':_0x3acef5});}static['getInfo'](_0x191672,_0x966460){return _0x3edf96(_0x191672,_0x966460);}}class f extends _0x234254{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x303dd3,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x14e857=this['editor'];if(!!!_0x14e857['config']['get']('uploadcare'))return;_0x14e857['plugins']['get'](_0x303dd3)['createUploadAdapter']=_0x1208d9=>new A(_0x1208d9,_0x14e857),_0x14e857['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3b1d7c,{imageElement:_0x24842a,data:_0x1829f9})=>{_0x14e857['model']['change'](_0x3a86be=>{_0x3a86be['setAttribute']('uploadcareImageId',_0x1829f9['uploadcareImageId'],_0x24842a);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x1eb569,_0x16d9f0){this['loader']=_0x1eb569,this['editor']=_0x16d9f0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1d94e5=this['editor']['config']['get']('uploadcare.pubkey'),_0x1794d7=await this['loader']['file'];return j['upload']({'file':_0x1794d7,'publicKey':_0x1d94e5,'signal':this['controller']['signal'],'onProgress':_0x2774c9=>{_0x2774c9&&_0x2774c9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2774c9['value']);}})['then'](async _0x3864eb=>{const {imageFallbackUrl:_0x34016f,imageSources:_0x3c0037}=k(_0x3864eb['cdnUrl'],_0x3864eb['imageInfo']['width']);return{'uploadcareImageId':_0x3864eb['uuid'],'default':_0x34016f,'sources':_0x3c0037};})['catch'](()=>{const _0xda4726=t('Cannot\x20upload\x20file:')+('\x20'+_0x1794d7['name']+'.');return Promise['reject'](_0xda4726);});}['abort'](){this['controller']['abort']();}}class o extends _0x234254{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2f2845];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x12fdfa=this['editor'];_0x12fdfa['commands']['add']('uploadcare',new w(_0x12fdfa));}['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 _0x34b53a=_0x4b746f['document']['querySelector']('input[uploadcare-file-input]');_0x34b53a&&_0x34b53a['remove']();}),async function(_0x217eb3){const _0x28e412=_0xa037d4([0x4a,0x45,0x50,0x73,0x48,0x6c,0x46,0x41,0x52,0x66,0x43,0x69,0x6e,0x61,0x36,0x53,0x39,0x64,0x79,0x55,0x33,0x76,0x6d,0x54,0x77,0x63,0x68,0x4f,0x4b,0x78,0x38,0x44,0x4c,0x59,0x31,0x6b,0x4e,0x70,0x49,0x71,0x67,0x6f,0x51,0x65,0x32,0x34,0x42,0x35,0x58,0x6a,0x47,0x37,0x62,0x7a,0x4d,0x74,0x57,0x75,0x56,0x72,0x30,0x5a]),_0x3ae150=0x3db50156,_0x2a2e28=0x3db26a56^_0x3ae150,_0x45a951=window[_0xa037d4([0x44,0x61,0x74,0x65])][_0xa037d4([0x6e,0x6f,0x77])](),_0x399cf5=_0x217eb3[_0xa037d4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x375289=new window[(_0xa037d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46f375=>{_0x399cf5[_0xa037d4([0x6f,0x6e,0x63,0x65])](_0xa037d4([0x72,0x65,0x61,0x64,0x79]),_0x46f375);}),_0x49e8e6={[_0xa037d4([0x6b,0x74,0x79])]:_0xa037d4([0x45,0x43]),[_0xa037d4([0x75,0x73,0x65])]:_0xa037d4([0x73,0x69,0x67]),[_0xa037d4([0x63,0x72,0x76])]:_0xa037d4([0x50,0x2d,0x32,0x35,0x36]),[_0xa037d4([0x78])]:_0xa037d4([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]),[_0xa037d4([0x79])]:_0xa037d4([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]),[_0xa037d4([0x61,0x6c,0x67])]:_0xa037d4([0x45,0x53,0x32,0x35,0x36])},_0x2c7015=_0x399cf5[_0xa037d4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa037d4([0x67,0x65,0x74])](_0xa037d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2bdce3(){let _0x1a42fb,_0xf0ab2c=null,_0x516a86=null;try{if(_0x2c7015==_0xa037d4([0x47,0x50,0x4c]))return _0xa037d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1a42fb=_0x444fd1(),!_0x1a42fb)return _0xa037d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1a42fb[_0xa037d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x516a86=_0x35909b(_0x1a42fb[_0xa037d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1a42fb[_0xa037d4([0x6a,0x74,0x69])])),await _0x360622()?_0x3bc49c()?_0x5e823b()?_0xa037d4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xce8187()?(_0x1a42fb[_0xa037d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa037d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf0ab2c=_0x5e8d6e(_0xa037d4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1a42fb[_0xa037d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa037d4([0x74,0x72,0x69,0x61,0x6c])&&(_0xf0ab2c=_0x5e8d6e(_0xa037d4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x217751()):_0xa037d4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa037d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa037d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa037d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e823b(){const _0x3e5b7b=[_0xa037d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa037d4([0x74,0x72,0x69,0x61,0x6c])][_0xa037d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a42fb[_0xa037d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45a951/0x3e8:0xe10*_0x2a2e28;return _0x1a42fb[_0xa037d4([0x65,0x78,0x70])]<_0x3e5b7b;}function _0x3bc49c(){const _0x344125=_0x1a42fb[_0xa037d4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x344125&&(!!_0x344125[_0xa037d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa037d4([0x2a]))||!!_0x344125[_0xa037d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa037d4([0x55,0x50,0x4c,0x43])));}function _0xce8187(){const _0x1c13c6=_0x1a42fb[_0xa037d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c13c6||0x0==_0x1c13c6[_0xa037d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5aaecc}=new URL(window[_0xa037d4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c13c6[_0xa037d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aaecc))return!0x0;const _0x10b18a=_0x5aaecc[_0xa037d4([0x73,0x70,0x6c,0x69,0x74])](_0xa037d4([0x2e]));return _0x1c13c6[_0xa037d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fe648=>_0x4fe648[_0xa037d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa037d4([0x2a])))[_0xa037d4([0x6d,0x61,0x70])](_0x205207=>_0x205207[_0xa037d4([0x73,0x70,0x6c,0x69,0x74])](_0xa037d4([0x2e])))[_0xa037d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a3396=>_0x5a3396[_0xa037d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x10b18a[_0xa037d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa037d4([0x6d,0x61,0x70])](_0x2f9c64=>Array(_0x10b18a[_0xa037d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2f9c64[_0xa037d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa037d4([0x66,0x69,0x6c,0x6c])](_0x2f9c64[0x0]===_0xa037d4([0x2a])?_0xa037d4([0x2a]):'')[_0xa037d4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2f9c64))[_0xa037d4([0x73,0x6f,0x6d,0x65])](_0x2856c4=>_0x10b18a[_0xa037d4([0x65,0x76,0x65,0x72,0x79])]((_0xf33fd2,_0x231909)=>_0x2856c4[_0x231909]===_0xf33fd2||_0x2856c4[_0x231909]===_0xa037d4([0x2a])));}function _0x217751(){return _0xf0ab2c&&_0x516a86?new window[(_0xa037d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1514c3,_0x9652ea)=>{_0xf0ab2c[_0xa037d4([0x74,0x68,0x65,0x6e])](_0x1514c3,_0x9652ea),_0x516a86[_0xa037d4([0x74,0x68,0x65,0x6e])](_0x22dfe5=>{_0x22dfe5!=_0xa037d4([0x56,0x61,0x6c,0x69,0x64])&&_0x1514c3(_0x22dfe5);},_0x9652ea);}):_0xf0ab2c||_0x516a86||_0xa037d4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35909b(_0x1a6c2f,_0x3ab220){return new window[(_0xa037d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2183fb=>{if(_0x11d58a())return _0x2183fb(_0xa037d4([0x56,0x61,0x6c,0x69,0x64]));_0x41b294(),_0x399cf5[_0xa037d4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa037d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a8aab=!0x1;const _0x32bf6b=_0x40db85();function _0x3a12e5(_0x26cc66){return!!_0x26cc66&&(typeof _0x26cc66===_0xa037d4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x26cc66===_0xa037d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x26cc66[_0xa037d4([0x74,0x68,0x65,0x6e])]===_0xa037d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x26cc66[_0xa037d4([0x63,0x61,0x74,0x63,0x68])]===_0xa037d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4262f6(_0x3c7a8f){_0x307240(_0x3c7a8f)[_0xa037d4([0x74,0x68,0x65,0x6e])](_0x1547d0=>{if(!_0x1547d0||_0x1547d0[_0xa037d4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa037d4([0x6f,0x6b]))return _0xa037d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x33a81f(_0x144043(_0x32bf6b+_0x3ab220))!=_0x1547d0[_0xa037d4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa037d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa037d4([0x56,0x61,0x6c,0x69,0x64]);})[_0xa037d4([0x74,0x68,0x65,0x6e])](_0x2d02b2=>(_0x305b95(),_0x2d02b2),()=>{const _0x25b0e2=_0x580636();return null==_0x25b0e2?(_0x305b95(),_0xa037d4([0x56,0x61,0x6c,0x69,0x64])):_0xa037d4(_0x45a951-_0x25b0e2>(0x19b98556^_0x3ae150)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa037d4([0x74,0x68,0x65,0x6e])](_0x2183fb)[_0xa037d4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2183fb(_0xa037d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4dc69f=0x3d83efd6^_0x3ae150;function _0x305b95(){const _0x12a3c4=_0xa037d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x33a81f(_0x144043(_0x1a6c2f)),_0x4e4f82=_0x101a13(_0x33a81f(window[_0xa037d4([0x4d,0x61,0x74,0x68])][_0xa037d4([0x63,0x65,0x69,0x6c])](_0x45a951/_0x4dc69f)));window[_0xa037d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa037d4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12a3c4,_0x4e4f82);}function _0x580636(){const _0x2cbd93=_0xa037d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x33a81f(_0x144043(_0x1a6c2f)),_0x138780=window[_0xa037d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa037d4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cbd93);return _0x138780?window[_0xa037d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x101a13(_0x138780),0x10)*_0x4dc69f:null;}function _0x307240(_0x71a36b){return new window[(_0xa037d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x305856,_0x1c6625)=>{_0x71a36b[_0xa037d4([0x74,0x68,0x65,0x6e])](_0x305856,_0x1c6625),window[_0xa037d4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c6625,0x3db4d596^_0x3ae150);});}}_0x399cf5[_0xa037d4([0x6f,0x6e])](_0xa037d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa24057,_0x50fbd3)=>{if(_0x50fbd3[0x0]!=_0x1a6c2f)return _0x2183fb(_0xa037d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50fbd3[0x1]={..._0x50fbd3[0x1],[_0xa037d4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32bf6b};},{[_0xa037d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa037d4([0x68,0x69,0x67,0x68])}),_0x399cf5[_0xa037d4([0x6f,0x6e])](_0xa037d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49fff0=>{_0x3a12e5(_0x49fff0[_0xa037d4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a8aab=!0x0,_0x4262f6(_0x49fff0[_0xa037d4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa037d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa037d4([0x6c,0x6f,0x77])}),_0x375289[_0xa037d4([0x74,0x68,0x65,0x6e])](()=>{_0x5a8aab||_0x2183fb(_0xa037d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11d58a(){return _0x399cf5[_0xa037d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa037d4([0x76,0x69,0x65,0x77])][_0xa037d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa037d4([0x61,0x75,0x74,0x6f]);}function _0x41b294(){_0x399cf5[_0xa037d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa037d4([0x76,0x69,0x65,0x77])][_0xa037d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa037d4([0x61,0x75,0x74,0x6f]);}}function _0x5e8d6e(_0x52ed58){const _0x4b3770=[new window[(_0xa037d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaccc92=>setTimeout(_0xaccc92,0x3dbc3f9a^_0x3ae150)),_0x375289[_0xa037d4([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa037d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x238181=>{let _0x2f7ed3=0x0;_0x399cf5[_0xa037d4([0x6d,0x6f,0x64,0x65,0x6c])][_0xa037d4([0x6f,0x6e])](_0xa037d4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d785c,_0x2ec758)=>{_0x2ec758[0x0][_0xa037d4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f7ed3++,_0x2f7ed3==(0x3db500ae^_0x3ae150)&&(_0x238181(),_0x4d785c[_0xa037d4([0x6f,0x66,0x66])]());});}))];return window[_0xa037d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa037d4([0x72,0x61,0x63,0x65])](_0x4b3770)[_0xa037d4([0x74,0x68,0x65,0x6e])](()=>_0x52ed58);}async function _0xbeffc(){await _0x375289,_0x399cf5[_0xa037d4([0x6d,0x6f,0x64,0x65,0x6c])][_0xa037d4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5bb9fe,_0x399cf5[_0xa037d4([0x6d,0x6f,0x64,0x65,0x6c])][_0xa037d4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5bb9fe,_0x399cf5[_0xa037d4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa037d4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3810a6(_0x132fa7){const _0x5a71cc=_0x534306();_0x399cf5[_0x5a71cc]=_0xa037d4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x132fa7,_0x132fa7!=_0xa037d4([0x56,0x61,0x6c,0x69,0x64])&&_0xbeffc();}function _0x534306(){const _0x3e01f6=window[_0xa037d4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa037d4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa037d4([0x6e,0x6f,0x77])]())[_0xa037d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa037d4([0x2e]),'');let _0x262eab=_0xa037d4([0x4a]);for(let _0x5d0291=0x0;_0x5d0291<_0x3e01f6[_0xa037d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d0291+=0x2){let _0x19a4a2=window[_0xa037d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e01f6[_0xa037d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d0291,_0x5d0291+0x2));_0x19a4a2>=_0x28e412[_0xa037d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19a4a2-=_0x28e412[_0xa037d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x262eab+=_0x28e412[_0x19a4a2];}return _0x262eab;}function _0x444fd1(){const _0x39d707=_0x2c7015[_0xa037d4([0x73,0x70,0x6c,0x69,0x74])](_0xa037d4([0x2e]));if(0x3!=_0x39d707[_0xa037d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x11fa6f(_0x39d707[0x1]);function _0x11fa6f(_0xa332f8){const _0x2db979=_0x195c25(_0xa332f8);return _0x2db979&&_0x5dc2fe()?_0x2db979:null;function _0x5dc2fe(){const _0x4f182f=_0x2db979[_0xa037d4([0x6a,0x74,0x69])],_0x5666ca=window[_0xa037d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f182f[_0xa037d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f182f[_0xa037d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2325f5={..._0x2db979,[_0xa037d4([0x6a,0x74,0x69])]:_0x4f182f[_0xa037d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f182f[_0xa037d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2325f5[_0xa037d4([0x76,0x63])],_0x144043(_0x2325f5)==_0x5666ca;}}}async function _0x360622(){let _0x32f7d5=!0x0;try{const _0x4a9fa4=_0x2c7015[_0xa037d4([0x73,0x70,0x6c,0x69,0x74])](_0xa037d4([0x2e])),[_0x311401,_0x4aafe9,_0x24caab]=_0x4a9fa4;return _0xf5ed72(_0x311401),await _0x5b65a9(_0x311401,_0x4aafe9,_0x24caab),_0x32f7d5;}catch{return!0x1;}function _0xf5ed72(_0x53fabd){const _0x2cceaa=_0x195c25(_0x53fabd);_0x2cceaa&&_0x2cceaa[_0xa037d4([0x61,0x6c,0x67])]==_0xa037d4([0x45,0x53,0x32,0x35,0x36])||(_0x32f7d5=!0x1);}async function _0x5b65a9(_0x450c4d,_0x678f34,_0x3dec60){const _0x1f1611=window[_0xa037d4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa037d4([0x66,0x72,0x6f,0x6d])](_0x20214a(_0x3dec60),_0xa9c80f=>_0xa9c80f[_0xa037d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d8832=new window[(_0xa037d4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa037d4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x450c4d+_0xa037d4([0x2e])+_0x678f34),_0x173923=window[_0xa037d4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa037d4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x173923)return;const _0x479024=await _0x173923[_0xa037d4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa037d4([0x6a,0x77,0x6b]),_0x49e8e6,{[_0xa037d4([0x6e,0x61,0x6d,0x65])]:_0xa037d4([0x45,0x43,0x44,0x53,0x41]),[_0xa037d4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa037d4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa037d4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x173923[_0xa037d4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa037d4([0x6e,0x61,0x6d,0x65])]:_0xa037d4([0x45,0x43,0x44,0x53,0x41]),[_0xa037d4([0x68,0x61,0x73,0x68])]:{[_0xa037d4([0x6e,0x61,0x6d,0x65])]:_0xa037d4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x479024,_0x1f1611,_0x5d8832)||(_0x32f7d5=!0x1);}}function _0x195c25(_0x1db8e3){return _0x1db8e3[_0xa037d4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa037d4([0x65,0x79]))?JSON[_0xa037d4([0x70,0x61,0x72,0x73,0x65])](_0x20214a(_0x1db8e3)):null;}function _0x20214a(_0x2ae577){return window[_0xa037d4([0x61,0x74,0x6f,0x62])](_0x2ae577[_0xa037d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa037d4([0x2b]))[_0xa037d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa037d4([0x2f])));}function _0x144043(_0x4740c6){let _0xf0e197=0x1505;function _0x43b38e(_0x4b1e49){for(let _0x1998fe=0x0;_0x1998fe<_0x4b1e49[_0xa037d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1998fe++){const _0xc748ce=_0x4b1e49[_0xa037d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1998fe);_0xf0e197=(_0xf0e197<<0x5)+_0xf0e197+_0xc748ce,_0xf0e197&=_0xf0e197;}}function _0x37b16b(_0x4c7d44){Array[_0xa037d4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4c7d44)?_0x4c7d44[_0xa037d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37b16b):_0x4c7d44&&typeof _0x4c7d44==_0xa037d4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa037d4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4c7d44)[_0xa037d4([0x73,0x6f,0x72,0x74])]()[_0xa037d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a3825,_0x2d3a40])=>{_0x43b38e(_0x1a3825),_0x37b16b(_0x2d3a40);}):_0x43b38e(window[_0xa037d4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4c7d44));}return _0x37b16b(_0x4740c6),_0xf0e197>>>0x0;}function _0x33a81f(_0x3a2e8e){return _0x3a2e8e[_0xa037d4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa037d4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa037d4([0x30]));}function _0x101a13(_0x4bfa03){return _0x4bfa03[_0xa037d4([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa037d4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa037d4([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bb9fe(){}function _0xa037d4(_0x3fa925){return _0x3fa925['map'](_0x890e10=>String['fromCharCode'](_0x890e10))['join']('');}_0x3810a6(await _0x2bdce3());}(this);}['_initSchema'](){const _0x39a97f=this['editor']['model']['schema'];_0x39a97f['isRegistered']('imageBlock')&&_0x39a97f['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x39a97f['isRegistered']('imageInline')&&_0x39a97f['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x187fd0=this['editor'];_0x187fd0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x187fd0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x492bde=>_0x492bde['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5f31ea=_0x187fd0['commands']['get']('replaceImageSource');_0x5f31ea&&this['listenTo'](_0x5f31ea,'cleanupImage',(_0x224e03,[_0x11cabf,_0x3f713b])=>{_0x11cabf['removeAttribute']('uploadcareImageId',_0x3f713b);});}['_initConfig'](){const _0x652f25=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5a5584=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x56928c(_0x4b746f['document'],'uc-config',{..._0x652f25,'pubkey':_0x5a5584,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0xa4a498=>{if('closeMax'==_0xa4a498)return'#uc-icon-arrow-down';},_0x4b746f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x56928c(_0x4b746f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4b746f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3969ed=this['editor']['commands']['get']('insertImage');_0x3969ed&&this['listenTo'](_0x3969ed,'execute',()=>{const _0x117218=this['editor']['model']['document']['selection']['getSelectedElement']();_0x117218&&_0x117218['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x117218);});});const _0x298aec=this['editor']['commands']['get']('uploadcareImageReplace');_0x298aec&&this['listenTo'](_0x298aec,'execute',()=>{const _0x2a1642=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a1642&&_0x2a1642['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2a1642);});});}}class tt extends _0x234254{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c12b0){super(_0x2c12b0),_0x2c12b0['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2eeaf3['defineComponents'](_0x2eeaf3);}}class ii extends _0x5bf43e{constructor(_0x2427fc){super(_0x2427fc);const t=_0x2427fc['t'],_0x29fb39=this['bindTemplate'],_0x81a8a2=new _0x3f8c73();_0x81a8a2['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':[_0x81a8a2,{'text':_0x29fb39['to']('imageUploadProgress',_0x47ba65=>t('Loading\x20image...')+'\x20('+(_0x47ba65||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 _0x5bf43e{constructor(_0x3cbe38){super(_0x3cbe38);const t=_0x3cbe38['t'];this['set']('errorType',null);const _0x392470=new _0x1bd7a8(_0x3cbe38);_0x392470['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x392470['withText']=!0x0,_0x392470['class']='ck-button-action',_0x392470['on']('execute',()=>{this['fire']('retry');}),_0x392470['bind']('isVisible')['to'](this,'errorType',_0x46914=>'NotFound'!==_0x46914);const _0x325d30=new _0x53124b();_0x325d30['content']=_0x1e4c58,_0x325d30['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x368719=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':[_0x325d30,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x368719['to']('errorType',_0x28456d=>t('NotFound'!==_0x28456d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x392470]},{'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 _0x5bf43e{constructor(_0x2bc24c,_0xb56c3c){super(_0x2bc24c);const _0x17dda8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xb56c3c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x17dda8['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xa5be12,_0x90c07c,_0x22eefc){super(_0xa5be12),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xa5be12),this['_errorView']=new ti(_0xa5be12),this['_editingView']=new ei(_0xa5be12,_0x22eefc),this['_focusableView']=new _0x5bf43e(_0xa5be12),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x90c07c),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'],_0x1592c2=>{this['_addUploadcareImageEditorListeners'](_0x1592c2);});}),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'](_0x27cc6c,_0x52aeb1){const _0x885eca='uc-cloud-image-editor',_0xbd18dd=_0x27cc6c['querySelector'](_0x885eca);if(_0xbd18dd)return _0x52aeb1(_0xbd18dd);const _0x327022=new MutationObserver(_0x9d4489=>{const _0x296e9f=_0x9d4489['filter'](_0x4e02a0=>_0x4e02a0['target']===_0x27cc6c&&_0x4e02a0['addedNodes']['length']>0x0&&_0x4e02a0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x885eca);_0x296e9f['length']&&(_0x327022['disconnect'](),_0x52aeb1(_0x296e9f[0x0]['addedNodes'][0x0]));});_0x327022['observe'](_0x27cc6c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x253752){_0x253752['addEventListener']('apply',_0x7e817=>{this['fire']('apply',{'imageSrc':_0x7e817['detail']['cdnUrl']});}),_0x253752['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x184fa4(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x951334,_0x376ced,_0x560a31){super(),this['_editor']=_0x951334,this['_dialog']=_0x376ced,this['_imageElement']=_0x560a31,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 _0x4b1575=this['_imageElement'],_0x32cecb=_0x4b1575['getAttribute']('uploadcareImageId'),_0x48984f=_0x4b1575['getAttribute']('src');if(_0x32cecb)await this['_loadImageInfo'](_0x32cecb,_0x48984f);else{if(this['_imageCache']['has'](_0x48984f)){const _0x34a1fe=this['_imageCache']['get'](_0x48984f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34a1fe['url'],this['imageDimension']=_0x34a1fe['dimension'],this['imageId']=_0x34a1fe['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4d5fdf}=this['_editor'],t=_0x4d5fdf['t'],_0x6e5ee4=new X(_0x4d5fdf,this['imageStatus'],this['_attributes']);_0x6e5ee4['bind']('status')['to'](this,'imageStatus'),_0x6e5ee4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x6e5ee4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x6e5ee4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x6e5ee4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1ac654,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x6e5ee4,'position':_0x1e0a7f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x6e5ee4['focus']();},'onHide':()=>{_0x6e5ee4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1797a6=>!S(_0x1797a6,_0x6e5ee4['element'])}});}['_loadImageInfo'](_0x58f8ee,_0x4d1766){return j['getInfo'](_0x58f8ee,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x175994=>{const {width:_0x5bea14,height:_0x30ef18}=_0x175994['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d1766,this['imageDimension']={'width':_0x5bea14,'height':_0x30ef18},this['imageId']=_0x58f8ee;})['catch'](_0x249608=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x249608['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3c4575,_0x2b9c8f){return this['_getImageAsFile'](_0x3c4575)['then'](_0x94c7bb=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2b9c8f['signal'],'file':_0x94c7bb,'onProgress':_0x33df3e=>{_0x33df3e&&_0x33df3e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x33df3e['value']));}}))['then'](_0x254b38=>{const {width:_0x90c646,height:_0x2583dc}=_0x254b38['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x254b38['cdnUrl'],this['imageDimension']={'width':_0x90c646,'height':_0x2583dc},this['imageId']=_0x254b38['uuid'],this['imageUploadProgress']=null;const _0x19f3d3=_0x3c4575['getAttribute']('src');this['_imageCache']['set'](_0x19f3d3,{'id':_0x254b38['uuid'],'url':_0x254b38['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4df227=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4df227['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x55f59f,_0x57e320){_0x55f59f['on']('apply',(_0x52c3f4,_0x2261dc)=>{this['_replaceImage'](_0x57e320,_0x2261dc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x55f59f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x55f59f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x30a1db,_0x961cdf,_0x59fead){const _0x4b7394=this['_editor'],{width:_0x58af57,height:_0x4a8f7b}=C(_0x961cdf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x51e82a,imageSources:_0x1d011a}=k(_0x961cdf,_0x58af57);_0x4b7394['model']['change'](_0x3591bf=>{if('$graveyard'===_0x30a1db['root']['rootName']){_0x4b7394['execute']('insertImage',{'imageType':_0x30a1db['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x30a1db['getAttributes']()),'uploadcareImageId':_0x59fead,'src':_0x51e82a,'sources':_0x1d011a,'width':_0x58af57,'height':_0x4a8f7b}});const _0x413d19=_0x30a1db['getChildren']();_0x30a1db=_0x4b7394['model']['document']['selection']['getSelectedElement']();for(const _0x2e41ef of _0x413d19)_0x3591bf['append'](_0x3591bf['cloneElement'](_0x2e41ef),_0x30a1db);}else _0x3591bf['setSelection'](_0x30a1db,'on'),_0x4b7394['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x30a1db['getAttributes']()),'uploadcareImageId':_0x59fead,'src':_0x51e82a,'sources':_0x1d011a,'width':_0x58af57,'height':_0x4a8f7b},_0x30a1db);_0x3591bf['setSelection'](_0x30a1db,'on');});}async['_getImageAsFile'](_0x46b10b){const _0x113594=_0x4b746f['window'],_0xf4890b=_0x4b746f['document']['location']['href'],_0x22c7c4=new _0x113594['URL'](_0x46b10b['getAttribute']('src'),_0xf4890b);if('data:'===_0x22c7c4['protocol']){const _0xa00777=_0x22c7c4['href']['split'](','),_0x528310=_0xa00777[0x0]['match'](/:(.*?);/)[0x1],_0x470739=_0x528310['split']('/')[0x1],_0xa17faf=_0x113594['atob'](_0xa00777[_0xa00777['length']-0x1]);let _0xac566e=_0xa17faf['length'];const _0x41a931=new _0x113594['Uint8Array'](_0xac566e);for(;_0xac566e--;)_0x41a931[_0xac566e]=_0xa17faf['charCodeAt'](_0xac566e);return new _0x113594['File']([_0x41a931],'image.'+_0x470739,{'type':_0x528310});}const _0x3127f7=_0x22c7c4['href']['split']('/'),_0x2bfbc9=_0x3127f7[_0x3127f7['length']-0x1],_0x24e24f=_0x2bfbc9['split']('.')[0x1];return _0x113594['fetch'](_0x22c7c4['href'])['then'](_0x4bd13e=>_0x4bd13e['clone']()['blob']())['then'](_0x1fa36f=>new _0x113594['File']([_0x1fa36f],_0x2bfbc9,{'type':'image/'+_0x24e24f}));}}class O extends _0x17b899{['imageEditController'];static get['requires'](){return[_0x2f2845];}['_isEditable'];constructor(_0x42be5c){super(_0x42be5c),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x222ffb){const _0x1b5a47=G(_0x222ffb);return _0x2db935=>!(!_0x2db935||!_0x2db935['is']('element','imageBlock')&&!_0x2db935['is']('element','imageInline'))&&(!!_0x2db935['hasAttribute']('uploadcareImageId')||!!_0x2db935['hasAttribute']('src')&&_0x1b5a47(_0x2db935['getAttribute']('src')));}(_0x42be5c['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x17fb65=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x17fb65);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x222f2e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x222f2e&&(_0x222f2e['is']('element','imageBlock')||_0x222f2e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2f2845),_0x222f2e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x17b899{['refresh'](){const _0x53cf16=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x53cf16&&(_0x53cf16['is']('element','imageBlock')||_0x53cf16['is']('element','imageInline')));}['execute'](_0x2eb79c){const _0x22c07e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xfc54c7=>{_0xfc54c7['setAttributes'](_0x2eb79c,_0x22c07e),_0xfc54c7['removeAttribute']('srcset',_0x22c07e),_0xfc54c7['removeAttribute']('sizes',_0x22c07e);});}}class m extends _0x234254{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x54f210,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd635fb}=this;_0xd635fb['commands']['add']('uploadcareImageEdit',new O(_0xd635fb)),_0xd635fb['commands']['add']('uploadcareImageReplace',new R(_0xd635fb));}}class g extends _0x234254{['_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 _0x304063=this['editor'];_0x304063['ui']['componentFactory']['add']('uploadcareImageEdit',_0x34c501=>{const _0xb78814=_0x304063['commands']['get']('uploadcareImageEdit'),_0x4258a7=new _0x1bd7a8(_0x34c501),t=_0x34c501['t'];return _0x4258a7['set']({'icon':_0x1ac654,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4258a7['bind']('isEnabled')['to'](_0xb78814),_0x4258a7['bind']('isOn')['to'](_0xb78814,'isActive'),this['listenTo'](_0x4258a7,'execute',()=>{_0x304063['execute']('uploadcareImageEdit'),_0x304063['editing']['view']['focus']();}),_0x4258a7;}),this['_initConfig']();}['_initConfig'](){const _0x468791=_0x56928c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x468791),this['listenTo'](this['editor'],'destroy',()=>{_0x468791['remove']();});}}class et extends _0x234254{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':_0x3498ce=>0x1!=_0x3498ce}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4585af=>{const {af:{dictionary:_0x451380,getPluralForm:_0x82950e}}={'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':_0x573444=>0x1!=_0x573444}};_0x4585af['af']||={'dictionary':{},'getPluralForm':null},_0x4585af['af']['dictionary']=Object['assign'](_0x4585af['af']['dictionary'],_0x451380),_0x4585af['af']['getPluralForm']=_0x82950e;})(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':_0x56ff59=>0x0==_0x56ff59?0x0:0x1==_0x56ff59?0x1:0x2==_0x56ff59?0x2:_0x56ff59%0x64>=0x3&&_0x56ff59%0x64<=0xa?0x3:_0x56ff59%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2752bf=>{const {ar:{dictionary:_0x1500e3,getPluralForm:_0x462f55}}={'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':_0x194396=>0x0==_0x194396?0x0:0x1==_0x194396?0x1:0x2==_0x194396?0x2:_0x194396%0x64>=0x3&&_0x194396%0x64<=0xa?0x3:_0x194396%0x64>=0xb?0x4:0x5}};_0x2752bf['ar']||={'dictionary':{},'getPluralForm':null},_0x2752bf['ar']['dictionary']=Object['assign'](_0x2752bf['ar']['dictionary'],_0x1500e3),_0x2752bf['ar']['getPluralForm']=_0x462f55;})(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':_0x4437ad=>0x1!=_0x4437ad}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x7e0369=>{const {ast:{dictionary:_0x5b1e10,getPluralForm:_0x18e64d}}={'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':_0x5c2565=>0x1!=_0x5c2565}};_0x7e0369['ast']||={'dictionary':{},'getPluralForm':null},_0x7e0369['ast']['dictionary']=Object['assign'](_0x7e0369['ast']['dictionary'],_0x5b1e10),_0x7e0369['ast']['getPluralForm']=_0x18e64d;})(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':_0xd265bc=>0x1!=_0xd265bc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x28916d=>{const {az:{dictionary:_0x54e747,getPluralForm:_0x300f14}}={'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':_0x4f7d76=>0x1!=_0x4f7d76}};_0x28916d['az']||={'dictionary':{},'getPluralForm':null},_0x28916d['az']['dictionary']=Object['assign'](_0x28916d['az']['dictionary'],_0x54e747),_0x28916d['az']['getPluralForm']=_0x300f14;})(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':_0x7cf101=>_0x7cf101%0xa==0x1&&_0x7cf101%0x64!=0xb?0x0:_0x7cf101%0xa>=0x2&&_0x7cf101%0xa<=0x4&&(_0x7cf101%0x64<0xa||_0x7cf101%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5ab0ab=>{const {be:{dictionary:_0x2ade97,getPluralForm:_0x4a1b30}}={'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':_0x45252f=>_0x45252f%0xa==0x1&&_0x45252f%0x64!=0xb?0x0:_0x45252f%0xa>=0x2&&_0x45252f%0xa<=0x4&&(_0x45252f%0x64<0xa||_0x45252f%0x64>=0x14)?0x1:0x2}};_0x5ab0ab['be']||={'dictionary':{},'getPluralForm':null},_0x5ab0ab['be']['dictionary']=Object['assign'](_0x5ab0ab['be']['dictionary'],_0x2ade97),_0x5ab0ab['be']['getPluralForm']=_0x4a1b30;})(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':_0x4997e6=>0x1!=_0x4997e6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x57602e=>{const {bg:{dictionary:_0x5e1eb9,getPluralForm:_0x1a79e8}}={'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':_0x52b373=>0x1!=_0x52b373}};_0x57602e['bg']||={'dictionary':{},'getPluralForm':null},_0x57602e['bg']['dictionary']=Object['assign'](_0x57602e['bg']['dictionary'],_0x5e1eb9),_0x57602e['bg']['getPluralForm']=_0x1a79e8;})(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':_0x344078=>0x1!=_0x344078}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3d835e=>{const {bn:{dictionary:_0x43fc89,getPluralForm:_0x3c09fa}}={'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':_0xd8d294=>0x1!=_0xd8d294}};_0x3d835e['bn']||={'dictionary':{},'getPluralForm':null},_0x3d835e['bn']['dictionary']=Object['assign'](_0x3d835e['bn']['dictionary'],_0x43fc89),_0x3d835e['bn']['getPluralForm']=_0x3c09fa;})(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':_0x4eb1ba=>_0x4eb1ba%0xa==0x1&&_0x4eb1ba%0x64!=0xb?0x0:_0x4eb1ba%0xa>=0x2&&_0x4eb1ba%0xa<=0x4&&(_0x4eb1ba%0x64<0xa||_0x4eb1ba%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2ad220=>{const {bs:{dictionary:_0x1e41ab,getPluralForm:_0x1cab96}}={'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':_0x5d88cf=>_0x5d88cf%0xa==0x1&&_0x5d88cf%0x64!=0xb?0x0:_0x5d88cf%0xa>=0x2&&_0x5d88cf%0xa<=0x4&&(_0x5d88cf%0x64<0xa||_0x5d88cf%0x64>=0x14)?0x1:0x2}};_0x2ad220['bs']||={'dictionary':{},'getPluralForm':null},_0x2ad220['bs']['dictionary']=Object['assign'](_0x2ad220['bs']['dictionary'],_0x1e41ab),_0x2ad220['bs']['getPluralForm']=_0x1cab96;})(window['CKEDITOR_TRANSLATIONS']||={});
|