@ckeditor/ckeditor5-uploadcare 48.0.0-alpha.5 → 48.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +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/dist/ui/uploadcarecontroller.d.ts +1 -1
- package/dist/uploadcareconfig.d.ts +2 -14
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -14,5 +14,5 @@ export { UploadcareImageEditEditing } from './uploadcareimageedit/uploadcareimag
|
|
|
14
14
|
export { UploadcareImageEditCommand } from './uploadcareimageedit/uploadcareimageeditcommand.js';
|
|
15
15
|
export { UploadcareCommand } from './uploadcarecommand.js';
|
|
16
16
|
export { UploadcareUploadAdapter } from './uploadcareuploadadapter.js';
|
|
17
|
-
export type { UploadcareConfig, UploadcareSource, UploadcareAssetImageDefinition, UploadcareExcludedKeys, UploadcareUploaderConfig, UploadcareEditorConfig,
|
|
17
|
+
export type { UploadcareConfig, UploadcareSource, UploadcareAssetImageDefinition, UploadcareExcludedKeys, UploadcareUploaderConfig, UploadcareEditorConfig, UploadcareAssetImageAttributesDefinition, UploadcareLocaleDefinition, UploadcareLocaleDefinitionResolver } from './uploadcareconfig.js';
|
|
18
18
|
import './augmentation.js';
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x16ae28,Command as _0x585727}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3bf8b6,IconGooglePhotos as _0x2a87fc,IconGoogleDrive as _0x4096fa,IconFacebook as _0xb5ba72,IconDropbox as _0x45f326,IconUploadcareLink as _0x4118f8,IconUploadcareImageUpload as _0x49ca52,IconError as _0x325d08,IconUploadcareImageEdit as _0x2915c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x54ba68,MenuBarMenuListItemButtonView as _0x2ac8ae,View as _0xcc56c0,FocusCycler as _0x1cf7fd,Dialog as _0x3c82e2,DialogViewPosition as _0x1a6285,SpinnerView as _0x10f46f,IconView as _0x26dddd,Notification as _0x4003d7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x562639,DomEmitterMixin as _0x5debc8,global as _0x485d39,getAncestors as _0x339450,ObservableMixin as _0x262fdd,uid as _0x484999,createElement as _0x350c77}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ImageUploadEditing as _0x440dc2,ImageUploadProgress as _0x91a180,PictureEditing as _0x3981bc,ImageUtils as _0xc2ffa1,ImageEditing as _0x3369a4}from'@ckeditor/ckeditor5-image/dist/index.js';import{FileRepository as _0x487fc0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x10f260,info as _0x500839}from'@uploadcare/upload-client';import*as _0x1f903f from'@uploadcare/file-uploader';var D=function(_0x3284dc){return _0x3284dc['Local']='local',_0x3284dc['URL']='url',_0x3284dc['Dropbox']='dropbox',_0x3284dc['GDrive']='gdrive',_0x3284dc['Facebook']='facebook',_0x3284dc['GPhotos']='gphotos',_0x3284dc['OneDrive']='onedrive',_0x3284dc;}({});function F(_0xe7bfbd,_0x21117d,_0x436b3e){const t=_0xe7bfbd['t'],_0x5d4b81=_0xe7bfbd['t'];switch(_0x21117d){case D['Local']:return{'text':_0x5d4b81('Insert'===_0x436b3e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5d4b81('From\x20computer')};case D['URL']:return{'text':'Insert'===_0x436b3e?_0x5d4b81('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5d4b81('Via\x20URL')};case D['Dropbox']:return{'text':t('Insert'===_0x436b3e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case D['Facebook']:return{'text':t('Insert'===_0x436b3e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case D['GDrive']:return{'text':t('Insert'===_0x436b3e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case D['GPhotos']:return{'text':t('Insert'===_0x436b3e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case D['OneDrive']:return{'text':t('Insert'===_0x436b3e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x21117d;}}class $ extends _0x16ae28{['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 _0x1144a6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d9eff;for(const _0x1fd17c in _0x1144a6){const _0x3575f5=_0x1fd17c,_0x1e7f4e=_0x1144a6[_0x3575f5];if('uploadcareLicenseKeyValid'==_0x1e7f4e||'uploadcareLicenseKeyInvalid'==_0x1e7f4e||'uploadcareLicenseKeyExpired'==_0x1e7f4e||'uploadcareLicenseKeyDomainLimit'==_0x1e7f4e||'uploadcareLicenseKeyNotAllowed'==_0x1e7f4e||'uploadcareLicenseKeyEvaluationLimit'==_0x1e7f4e||'uploadcareLicenseKeyUsageLimit'==_0x1e7f4e){delete _0x1144a6[_0x3575f5],_0x1d9eff=_0x1e7f4e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1d9eff&&_0x1144a6['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1d9eff&&_0x1144a6['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1d9eff&&_0x1144a6['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1d9eff&&_0x1144a6['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1d9eff&&_0x1144a6['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1d9eff&&_0x1144a6['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4571d3}=this,_0x3788b4=_0x4571d3['commands']['get']('uploadcare');if(!_0x3788b4)return;const _0x4e8b95=this['_normalizeConfigSourceList'](_0x4571d3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x593519,_0x3b5a65)=>{const _0x5c9aba=this['_getIntegrationKey'](_0x3b5a65['type']);return _0x593519[_0x5c9aba]||(_0x593519[_0x5c9aba]=[]),_0x593519[_0x5c9aba]['push'](_0x3b5a65),_0x593519;},{});_0x4571d3['plugins']['has']('ImageInsertUI')&&_0x4571d3['commands']['get']('uploadcare')&&Object['entries'](_0x4e8b95)['forEach'](([_0x19af31,_0x1afe6c])=>{_0x4571d3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x19af31,'observable':()=>_0x3788b4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1afe6c),'formViewCreator':()=>this['_createDropdownButtons'](_0x1afe6c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1afe6c),'override':'assetManager'!==_0x19af31});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x182a42){const {locale:_0x458808}=this['editor'];return _0x182a42['map'](_0x2b2a14=>{const _0x466a57=F(_0x458808,_0x2b2a14,'Insert');switch(_0x2b2a14){case D['Local']:return{'icon':_0x49ca52,'type':D['Local'],..._0x466a57};case D['URL']:return{'icon':_0x4118f8,'type':D['URL'],..._0x466a57};case D['Dropbox']:return{'icon':_0x45f326,'type':D['Dropbox'],..._0x466a57};case D['Facebook']:return{'icon':_0xb5ba72,'type':D['Facebook'],..._0x466a57};case D['GDrive']:return{'icon':_0x4096fa,'type':D['GDrive'],..._0x466a57};case D['GPhotos']:return{'icon':_0x2a87fc,'type':D['GPhotos'],..._0x466a57};case D['OneDrive']:return{'icon':_0x3bf8b6,'type':D['OneDrive'],..._0x466a57};}});}['_getIntegrationKey'](_0x4ef3bc){switch(_0x4ef3bc){case D['Local']:return'upload';case D['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x11ea43,_0x1aeb18){const _0xd9c8c0=this['editor'],_0x3e032a=new _0x11ea43(_0xd9c8c0['locale']),_0xe3395e=_0xd9c8c0['commands']['get']('uploadcare');return _0x3e032a['bind']('isEnabled')['to'](_0xe3395e),_0x3e032a['on']('execute',()=>{_0xe3395e['execute'](_0x1aeb18);}),_0x3e032a;}['_createToolbarButton'](_0x3bd11c){const {locale:_0x3925fc}=this['editor'],_0x233604=this['editor']['plugins']['get']('ImageInsertUI'),_0x1c42cc=_0x3bd11c[0x0],_0x24d59b=this['_createButton'](_0x54ba68,_0x1c42cc['type']);return _0x24d59b['icon']=_0x1c42cc['icon'],_0x24d59b['bind']('label')['to'](_0x233604,'isImageSelected',_0x1fedb6=>F(_0x3925fc,_0x1c42cc['type'],_0x1fedb6?'Replace':'Insert')['text']),_0x24d59b['tooltip']=!0x0,_0x24d59b;}['_createDropdownButtons'](_0x5d76a1){const {locale:_0x3b5e31}=this['editor'],_0x96fa3b=this['editor']['plugins']['get']('ImageInsertUI');return _0x5d76a1['map'](_0x3a4d65=>{const _0x517604=this['_createButton'](_0x54ba68,_0x3a4d65['type']);return _0x517604['withText']=!0x0,_0x517604['icon']=_0x3a4d65['icon'],_0x517604['bind']('label')['to'](_0x96fa3b,'isImageSelected',_0x57d356=>F(_0x3b5e31,_0x3a4d65['type'],_0x57d356?'Replace':'Insert')['text']),_0x517604;});}['_createMenuBarButtons'](_0x1d8ab3){return _0x1d8ab3['map'](_0xab88f8=>{const _0x39d7f0=this['_createButton'](_0x2ac8ae,_0xab88f8['type']);return _0x39d7f0['icon']=_0xab88f8['icon'],_0x39d7f0['label']=_0xab88f8['shortText'],_0x39d7f0;});}}class B extends _0xcc56c0{['focusTracker'];['focusCycler'];constructor(_0x59ccca){super(_0x59ccca),this['focusTracker']=new _0x562639(),this['focusCycler']=new _0x1cf7fd({'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 V extends B{constructor(_0x3282a7,_0x337e24){super(_0x3282a7),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-'+_0x337e24}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function j(_0x4d9d3d,_0x536200){const _0x43e09e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x190b01=>_0x190b01<=_0x536200)['map'](_0x248d04=>_0x4d9d3d['replace'](/\/$/,'')+'/-/resize/'+_0x248d04+'x/\x20'+_0x248d04+'w');return{'imageFallbackUrl':_0x4d9d3d,'imageSources':[{'srcset':_0x43e09e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x536200+'px)\x20100vw,\x20'+_0x536200+'px','type':'image/webp'}]};}function M(_0x458a8c,_0x261619,_0x3f34ca){const _0x58ec03=_0x458a8c['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x58ec03?parseInt(_0x58ec03[0x1],0xa):_0x261619,'height':_0x58ec03?parseInt(_0x58ec03[0x2],0xa):_0x3f34ca};}function q(_0x45435a,_0xa458c3){const _0x58c67f=new(_0x5debc8())(),_0x146599=_0x45435a['plugins']['get']('ImageUtils'),_0x457f12=_0x45435a['editing']['mapper']['toViewElement'](_0xa458c3),_0x4efd39=_0x146599['findViewImgElement'](_0x457f12),_0x64a4b7=_0x45435a['editing']['view']['domConverter']['viewToDom'](_0x4efd39),_0x124f21=_0xa458c3['getAttribute']('width'),_0x10daee=_0xa458c3['getAttribute']('height'),_0x4f554a='image-processing';_0x45435a['editing']['view']['change'](_0x24b4a4=>{_0x24b4a4['addClass'](_0x4f554a,_0x457f12),_0x24b4a4['setStyle']('aspect-ratio',_0x124f21+'/'+_0x10daee,_0x4efd39);}),_0x58c67f['listenTo'](_0x64a4b7,'load',()=>{_0x58c67f['stopListening'](_0x64a4b7,'load'),_0x45435a['editing']['view']['change'](_0x29eec6=>{_0x29eec6['removeClass'](_0x4f554a,_0x457f12),_0x29eec6['removeStyle']('aspect-ratio',_0x4efd39);});});}function W(_0x1ea289){if(Array['isArray'](_0x1ea289)){const _0x3b0ef6=_0x1ea289['map'](W);return _0x1fcf7=>_0x3b0ef6['some'](_0x54f33f=>_0x54f33f(_0x1fcf7));}if('origin'==_0x1ea289){const _0x556fec=_0x485d39['window']['location']['origin'];return _0x1c15ef=>new URL(_0x1c15ef,_0x485d39['document']['baseURI'])['origin']==_0x556fec;}return'function'==typeof _0x1ea289?_0x1ea289:_0x1ea289 instanceof RegExp?_0x1bcd09=>!(!_0x1bcd09['match'](_0x1ea289)&&!_0x1bcd09['replace'](/^https?:\/\//,'')['match'](_0x1ea289)):()=>!0x1;}function G(_0x4604d2,_0x14c204){return _0x339450(_0x4604d2['target'])['includes'](_0x14c204);}class z extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x262fdd(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x890a8a,_0x229601,_0x325ddd){super(),this['_editor']=_0x890a8a,this['_editing']=_0x229601,this['_dialog']=_0x890a8a['plugins']['get'](_0x3c82e2),this['_api']=_0x229601['ctxElement']['getAPI'](),this['_type']=_0x325ddd,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:_0x586fd9,model:_0x171e64}=this['_editor'],_0x4954e8=_0x171e64['document']['selection']['getSelectedElement'](),_0x1333fc=_0x4954e8&&(_0x4954e8['is']('element','imageBlock')||_0x4954e8['is']('element','imageInline'));this['_formView']=new V(_0x586fd9,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x49ca52,'title':F(_0x586fd9,this['_type'],_0x1333fc?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1a6285['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x418735=>!G(_0x418735,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x323e88}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x726663=>{const _0x7fd317=_0x323e88['length'];for(const _0x27fb59 of _0x323e88){const _0x37fe2c=_0x27fb59===_0x323e88[_0x7fd317-0x1],{cdnUrl:_0x5173fb,fileInfo:_0x286d1c}=_0x27fb59;if(!_0x5173fb||!_0x286d1c)continue;const {width:_0xe40a14,height:_0x5dfe9b}=_0x286d1c['imageInfo'],_0x53661d=M(_0x5173fb,_0xe40a14,_0x5dfe9b),_0x3fb413=j(_0x5173fb,_0x53661d['width']),_0x1b7100={'id':_0x286d1c['uuid'],'type':'image','attributes':{'imageDimension':_0x53661d,..._0x3fb413}};this['_insertAsset'](_0x1b7100,_0x37fe2c,_0x726663);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x7f385b=>{'idle'===_0x7f385b['detail']['status']&&!_0x7f385b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===D['Local']?this['_api']['setCurrentActivity'](D['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1a5004,_0x5cef6b,_0x208da4){const _0x50c089=this['_editor']['model']['document']['selection'],_0x450e71=_0x50c089['getSelectedElement'](),_0x2c6289=!(!_0x450e71||!_0x450e71['is']('element','imageInline'));_0x208da4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1a5004,_0x2c6289),_0x5cef6b||_0x208da4['setSelection'](_0x50c089['getLastPosition']());}['_insertImage'](_0x3b8789,_0x424196){const _0x281c77=this['_editor'],{imageDimension:_0x4d3a3e,imageFallbackUrl:_0x4f08cd,imageSources:_0x56add9}=_0x3b8789['attributes'];_0x281c77['execute']('insertImage',{'imageType':_0x424196?'imageInline':null,'source':{'uploadcareImageId':_0x3b8789['id'],'src':_0x4f08cd,'sources':_0x56add9,..._0x4d3a3e}});}}class H extends _0x585727{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c82e2,X];}constructor(_0x5decd5){super(_0x5decd5),this['_editing']=_0x5decd5['plugins']['get'](X);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xf466d9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new z(this['editor'],this['_editing'],_0xf466d9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class J{static['upload']({file:_0x1a4533,..._0xd26018}){return _0x10f260(_0x1a4533,_0xd26018);}static['getInfo'](_0x15526b,_0x500929){return _0x500839(_0x15526b,_0x500929);}}class Z extends _0x16ae28{static get['requires'](){return[_0x440dc2,_0x91a180,_0x487fc0,X];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xadb77d=this['editor'];if(!!!_0xadb77d['config']['get']('uploadcare'))return;_0xadb77d['plugins']['get'](_0x487fc0)['createUploadAdapter']=_0x3fc06e=>new Q(_0x3fc06e,_0xadb77d),_0xadb77d['plugins']['get'](_0x440dc2)['on']('uploadComplete',(_0x996bcf,{imageElement:_0xc295a4,data:_0x5678e4})=>{_0xadb77d['model']['change'](_0x4522f9=>{_0x4522f9['setAttribute']('uploadcareImageId',_0x5678e4['uploadcareImageId'],_0xc295a4);});});}}class Q{['loader'];['editor'];['controller'];constructor(_0x50781f,_0x2ff192){this['loader']=_0x50781f,this['editor']=_0x2ff192,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x43d08b=await this['loader']['file'];return J['upload']({'file':_0x43d08b,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3d02e9=>{_0x3d02e9&&_0x3d02e9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3d02e9['value']);}})['then'](async _0x3fa4dc=>{const {imageFallbackUrl:_0x5b4fd5,imageSources:_0x45f292}=j(_0x3fa4dc['cdnUrl'],_0x3fa4dc['imageInfo']['width']);return{'uploadcareImageId':_0x3fa4dc['uuid'],'default':_0x5b4fd5,'sources':_0x45f292};})['catch'](()=>{const _0x187c79=t('Cannot\x20upload\x20file:')+('\x20'+_0x43d08b['name']+'.');return Promise['reject'](_0x187c79);});}['abort'](){this['controller']['abort']();}}class X extends _0x16ae28{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x3981bc,Z,_0x3c82e2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x457b61){super(_0x457b61),this['ucContextId']=_0x484999();}['init'](){const _0x42d2ad=this['editor'];_0x42d2ad['commands']['add']('uploadcare',new H(_0x42d2ad));}['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 _0x153aa4=_0x485d39['document']['querySelector']('input[uploadcare-file-input]');_0x153aa4&&_0x153aa4['remove']();}),async function(_0x2c26e6){const _0x2d5a62=_0x41e68f([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x27748a=0x535f8c3a,_0x431826=0x5358097a^_0x27748a,_0x5b2b26=window[_0x41e68f([0x44,0x61,0x74,0x65])][_0x41e68f([0x6e,0x6f,0x77])](),_0x42e210=_0x2c26e6[_0x41e68f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53fa0b=new window[(_0x41e68f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16b0c9=>{_0x42e210[_0x41e68f([0x6f,0x6e,0x63,0x65])](_0x41e68f([0x72,0x65,0x61,0x64,0x79]),_0x16b0c9);}),_0x19953e={[_0x41e68f([0x6b,0x74,0x79])]:_0x41e68f([0x45,0x43]),[_0x41e68f([0x75,0x73,0x65])]:_0x41e68f([0x73,0x69,0x67]),[_0x41e68f([0x63,0x72,0x76])]:_0x41e68f([0x50,0x2d,0x32,0x35,0x36]),[_0x41e68f([0x78])]:_0x41e68f([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]),[_0x41e68f([0x79])]:_0x41e68f([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]),[_0x41e68f([0x61,0x6c,0x67])]:_0x41e68f([0x45,0x53,0x32,0x35,0x36])},_0x18e3c8=_0x42e210[_0x41e68f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x41e68f([0x67,0x65,0x74])](_0x41e68f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x25d47c(){let _0x277041,_0x213ac6=null,_0x370f79=null;try{if(_0x18e3c8==_0x41e68f([0x47,0x50,0x4c]))return _0x41e68f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x277041=_0x456716(),!_0x277041)return _0x41e68f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x277041[_0x41e68f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x370f79=_0x5b5344(_0x277041[_0x41e68f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x277041[_0x41e68f([0x6a,0x74,0x69])])),await _0x200efe()?_0x5887f3()?_0x6f6d29()?_0x41e68f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x159aa0()?(_0x277041[_0x41e68f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41e68f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x213ac6=_0x155437(_0x41e68f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x42f3b7()):_0x41e68f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x41e68f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x41e68f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x41e68f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6f6d29(){const _0x52d72d=[_0x41e68f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x41e68f([0x74,0x72,0x69,0x61,0x6c])][_0x41e68f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x277041[_0x41e68f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b2b26/0x3e8:0xe10*_0x431826;return _0x277041[_0x41e68f([0x65,0x78,0x70])]<_0x52d72d;}function _0x5887f3(){const _0x429dc3=_0x277041[_0x41e68f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x429dc3&&(!!_0x429dc3[_0x41e68f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41e68f([0x2a]))||!!_0x429dc3[_0x41e68f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41e68f([0x55,0x50,0x4c,0x43])));}function _0x159aa0(){const _0x157a4c=_0x277041[_0x41e68f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x157a4c||0x0==_0x157a4c[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xdcad78}=new URL(window[_0x41e68f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x157a4c[_0x41e68f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdcad78))return!0x0;const _0x332023=_0xdcad78[_0x41e68f([0x73,0x70,0x6c,0x69,0x74])](_0x41e68f([0x2e]));return _0x157a4c[_0x41e68f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6381b=>_0x6381b[_0x41e68f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41e68f([0x2a])))[_0x41e68f([0x6d,0x61,0x70])](_0x473865=>_0x473865[_0x41e68f([0x73,0x70,0x6c,0x69,0x74])](_0x41e68f([0x2e])))[_0x41e68f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45f6af=>_0x45f6af[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x332023[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41e68f([0x6d,0x61,0x70])](_0x58ebf5=>Array(_0x332023[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58ebf5[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41e68f([0x66,0x69,0x6c,0x6c])](_0x58ebf5[0x0]===_0x41e68f([0x2a])?_0x41e68f([0x2a]):'')[_0x41e68f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58ebf5))[_0x41e68f([0x73,0x6f,0x6d,0x65])](_0x399b0f=>_0x332023[_0x41e68f([0x65,0x76,0x65,0x72,0x79])]((_0x2459c6,_0x4adabc)=>_0x399b0f[_0x4adabc]===_0x2459c6||_0x399b0f[_0x4adabc]===_0x41e68f([0x2a])));}function _0x42f3b7(){return _0x213ac6&&_0x370f79?new window[(_0x41e68f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf0a07,_0x34cf87)=>{_0x213ac6[_0x41e68f([0x74,0x68,0x65,0x6e])](_0xf0a07,_0x34cf87),_0x370f79[_0x41e68f([0x74,0x68,0x65,0x6e])](_0x19227b=>{_0x19227b!=_0x41e68f([0x56,0x61,0x6c,0x69,0x64])&&_0xf0a07(_0x19227b);},_0x34cf87);}):_0x213ac6||_0x370f79||_0x41e68f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b5344(_0x4557e8,_0x3d1d13){return new window[(_0x41e68f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd65df4=>{if(_0x57e382())return _0xd65df4(_0x41e68f([0x56,0x61,0x6c,0x69,0x64]));_0xbf152e(),_0x42e210[_0x41e68f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x41e68f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x153a81=!0x1;const _0x642dbd=_0x484999();function _0x1ecc73(_0x258192){return!!_0x258192&&(typeof _0x258192===_0x41e68f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x258192===_0x41e68f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x258192[_0x41e68f([0x74,0x68,0x65,0x6e])]===_0x41e68f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x258192[_0x41e68f([0x63,0x61,0x74,0x63,0x68])]===_0x41e68f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c5c25(_0x59e0e0){_0x423403(_0x59e0e0)[_0x41e68f([0x74,0x68,0x65,0x6e])](_0x4eb455=>{if(!_0x4eb455||_0x4eb455[_0x41e68f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x41e68f([0x6f,0x6b]))return _0x41e68f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x37f503(_0x1bae25(_0x642dbd+_0x3d1d13))!=_0x4eb455[_0x41e68f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x41e68f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x41e68f([0x56,0x61,0x6c,0x69,0x64]);})[_0x41e68f([0x74,0x68,0x65,0x6e])](_0x1545f0=>(_0x294d92(),_0x1545f0),()=>{const _0x44e432=_0x1be4bf();return null==_0x44e432?(_0x294d92(),_0x41e68f([0x56,0x61,0x6c,0x69,0x64])):_0x41e68f(_0x5b2b26-_0x44e432>(0x7753083a^_0x27748a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x41e68f([0x74,0x68,0x65,0x6e])](_0xd65df4)[_0x41e68f([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd65df4(_0x41e68f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4952ac=0x536962ba^_0x27748a;function _0x294d92(){const _0x4f8040=_0x41e68f([0x6c,0x6c,0x63,0x74,0x2d])+_0x37f503(_0x1bae25(_0x4557e8)),_0x461c5d=_0x3a5b8b(_0x37f503(window[_0x41e68f([0x4d,0x61,0x74,0x68])][_0x41e68f([0x63,0x65,0x69,0x6c])](_0x5b2b26/_0x4952ac)));window[_0x41e68f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41e68f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f8040,_0x461c5d);}function _0x1be4bf(){const _0xec8940=_0x41e68f([0x6c,0x6c,0x63,0x74,0x2d])+_0x37f503(_0x1bae25(_0x4557e8)),_0xcb601=window[_0x41e68f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41e68f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xec8940);return _0xcb601?window[_0x41e68f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a5b8b(_0xcb601),0x10)*_0x4952ac:null;}function _0x423403(_0x3f3083){return new window[(_0x41e68f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10e2cb,_0x21237f)=>{_0x3f3083[_0x41e68f([0x74,0x68,0x65,0x6e])](_0x10e2cb,_0x21237f),window[_0x41e68f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21237f,0x535e58fa^_0x27748a);});}}_0x42e210[_0x41e68f([0x6f,0x6e])](_0x41e68f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5dd3b0,_0x16957a)=>{if(_0x16957a[0x0]!=_0x4557e8)return _0xd65df4(_0x41e68f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16957a[0x1]={..._0x16957a[0x1],[_0x41e68f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x642dbd};},{[_0x41e68f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41e68f([0x68,0x69,0x67,0x68])}),_0x42e210[_0x41e68f([0x6f,0x6e])](_0x41e68f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x545330=>{_0x1ecc73(_0x545330[_0x41e68f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x153a81=!0x0,_0x2c5c25(_0x545330[_0x41e68f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x41e68f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41e68f([0x6c,0x6f,0x77])}),_0x53fa0b[_0x41e68f([0x74,0x68,0x65,0x6e])](()=>{_0x153a81||_0xd65df4(_0x41e68f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x57e382(){return _0x42e210[_0x41e68f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41e68f([0x76,0x69,0x65,0x77])][_0x41e68f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x41e68f([0x61,0x75,0x74,0x6f]);}function _0xbf152e(){_0x42e210[_0x41e68f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41e68f([0x76,0x69,0x65,0x77])][_0x41e68f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41e68f([0x61,0x75,0x74,0x6f]);}}function _0x155437(_0x138ecd){const _0x2ae5a6=[new window[(_0x41e68f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33f3ab=>setTimeout(_0x33f3ab,0x5356b2f6^_0x27748a)),_0x53fa0b[_0x41e68f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x41e68f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107b49=>{let _0x2cb0e0=0x0;_0x42e210[_0x41e68f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41e68f([0x6f,0x6e])](_0x41e68f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x58fa7c,_0x1160c5)=>{_0x1160c5[0x0][_0x41e68f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2cb0e0++,_0x2cb0e0==(0x535f89d2^_0x27748a)&&(_0x107b49(),_0x58fa7c[_0x41e68f([0x6f,0x66,0x66])]());});}))];return window[_0x41e68f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41e68f([0x72,0x61,0x63,0x65])](_0x2ae5a6)[_0x41e68f([0x74,0x68,0x65,0x6e])](()=>_0x138ecd);}async function _0x312c3d(){await _0x53fa0b,_0x42e210[_0x41e68f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41e68f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x201019,_0x42e210[_0x41e68f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41e68f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x201019,_0x42e210[_0x41e68f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x41e68f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x332bc9(_0x578066){const _0x482b2a=_0x7261b3();_0x42e210[_0x482b2a]=_0x41e68f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x578066,_0x578066!=_0x41e68f([0x56,0x61,0x6c,0x69,0x64])&&_0x312c3d();}function _0x7261b3(){const _0x54603f=window[_0x41e68f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x41e68f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x41e68f([0x6e,0x6f,0x77])]())[_0x41e68f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x41e68f([0x2e]),'');let _0x2e8a85=_0x41e68f([0x68]);for(let _0x1f3d67=0x0;_0x1f3d67<_0x54603f[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f3d67+=0x2){let _0x4805d6=window[_0x41e68f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54603f[_0x41e68f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f3d67,_0x1f3d67+0x2));_0x4805d6>=_0x2d5a62[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4805d6-=_0x2d5a62[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e8a85+=_0x2d5a62[_0x4805d6];}return _0x2e8a85;}function _0x456716(){const _0x1f10a7=_0x18e3c8[_0x41e68f([0x73,0x70,0x6c,0x69,0x74])](_0x41e68f([0x2e]));if(0x3!=_0x1f10a7[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ca4bd(_0x1f10a7[0x1]);function _0x2ca4bd(_0x2515b4){const _0x3e0534=_0x2f71a6(_0x2515b4);return _0x3e0534&&_0x35d69e()?_0x3e0534:null;function _0x35d69e(){const _0x24f45d=_0x3e0534[_0x41e68f([0x6a,0x74,0x69])],_0xe47252=window[_0x41e68f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24f45d[_0x41e68f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24f45d[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b68c2={..._0x3e0534,[_0x41e68f([0x6a,0x74,0x69])]:_0x24f45d[_0x41e68f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24f45d[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b68c2[_0x41e68f([0x76,0x63])],_0x1bae25(_0x2b68c2)==_0xe47252;}}}async function _0x200efe(){let _0x187bbb=!0x0;try{const _0x1d3c71=_0x18e3c8[_0x41e68f([0x73,0x70,0x6c,0x69,0x74])](_0x41e68f([0x2e])),[_0x5aac85,_0x5b8537,_0x16b560]=_0x1d3c71;return _0x20a471(_0x5aac85),await _0x2e41fd(_0x5aac85,_0x5b8537,_0x16b560),_0x187bbb;}catch{return!0x1;}function _0x20a471(_0x1944d1){const _0x37d790=_0x2f71a6(_0x1944d1);_0x37d790&&_0x37d790[_0x41e68f([0x61,0x6c,0x67])]==_0x41e68f([0x45,0x53,0x32,0x35,0x36])||(_0x187bbb=!0x1);}async function _0x2e41fd(_0x2567be,_0x4c7dc0,_0x26d252){const _0x24a98a=window[_0x41e68f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x41e68f([0x66,0x72,0x6f,0x6d])](_0x374b85(_0x26d252),_0x3e210f=>_0x3e210f[_0x41e68f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37fc83=new window[(_0x41e68f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x41e68f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2567be+_0x41e68f([0x2e])+_0x4c7dc0),_0x30c0d2=window[_0x41e68f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x41e68f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30c0d2)return;const _0x25025d=await _0x30c0d2[_0x41e68f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x41e68f([0x6a,0x77,0x6b]),_0x19953e,{[_0x41e68f([0x6e,0x61,0x6d,0x65])]:_0x41e68f([0x45,0x43,0x44,0x53,0x41]),[_0x41e68f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x41e68f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x41e68f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30c0d2[_0x41e68f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x41e68f([0x6e,0x61,0x6d,0x65])]:_0x41e68f([0x45,0x43,0x44,0x53,0x41]),[_0x41e68f([0x68,0x61,0x73,0x68])]:{[_0x41e68f([0x6e,0x61,0x6d,0x65])]:_0x41e68f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25025d,_0x24a98a,_0x37fc83)||(_0x187bbb=!0x1);}}function _0x2f71a6(_0x5ae270){return _0x5ae270[_0x41e68f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x41e68f([0x65,0x79]))?JSON[_0x41e68f([0x70,0x61,0x72,0x73,0x65])](_0x374b85(_0x5ae270)):null;}function _0x374b85(_0x26fe0b){return window[_0x41e68f([0x61,0x74,0x6f,0x62])](_0x26fe0b[_0x41e68f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x41e68f([0x2b]))[_0x41e68f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x41e68f([0x2f])));}function _0x1bae25(_0x182c8a){let _0x3e36f5=0x1505;function _0x1a80d8(_0x178b5c){for(let _0x22d59a=0x0;_0x22d59a<_0x178b5c[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22d59a++){const _0x465559=_0x178b5c[_0x41e68f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x22d59a);_0x3e36f5=(_0x3e36f5<<0x5)+_0x3e36f5+_0x465559,_0x3e36f5&=_0x3e36f5;}}function _0x215f9e(_0x290536){Array[_0x41e68f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x290536)?_0x290536[_0x41e68f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x215f9e):_0x290536&&typeof _0x290536==_0x41e68f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x41e68f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x290536)[_0x41e68f([0x73,0x6f,0x72,0x74])]()[_0x41e68f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55e87f,_0x2fd93b])=>{_0x1a80d8(_0x55e87f),_0x215f9e(_0x2fd93b);}):_0x1a80d8(window[_0x41e68f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x290536));}return _0x215f9e(_0x182c8a),_0x3e36f5>>>0x0;}function _0x37f503(_0x5f56b1){return _0x5f56b1[_0x41e68f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x41e68f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x41e68f([0x30]));}function _0x3a5b8b(_0x3d713c){return _0x3d713c[_0x41e68f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x41e68f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x41e68f([0x6a,0x6f,0x69,0x6e])]('');}function _0x201019(){}function _0x41e68f(_0x59b3fa){return _0x59b3fa['map'](_0xa520dd=>String['fromCharCode'](_0xa520dd))['join']('');}_0x332bc9(await _0x25d47c());}(this);}['_initSchema'](){const _0x33e48b=this['editor']['model']['schema'];_0x33e48b['isRegistered']('imageBlock')&&_0x33e48b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x33e48b['isRegistered']('imageInline')&&_0x33e48b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x166e06=this['editor'];_0x166e06['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x166e06['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x384a3f=>_0x384a3f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x9ebad9=_0x166e06['commands']['get']('replaceImageSource');_0x9ebad9&&this['listenTo'](_0x9ebad9,'cleanupImage',(_0x926c62,[_0x327bd0,_0x29b426])=>{_0x327bd0['removeAttribute']('uploadcareImageId',_0x29b426);});}['_initConfig'](){const _0x397c9f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x56182c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x350c77(_0x485d39['document'],'uc-config',{..._0x397c9f,'pubkey':_0x56182c,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x55ebae=>{if('closeMax'==_0x55ebae)return'#uc-icon-arrow-down';},_0x485d39['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x350c77(_0x485d39['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x485d39['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x35146b=this['editor']['commands']['get']('insertImage');_0x35146b&&this['listenTo'](_0x35146b,'execute',()=>{const _0x2c902b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2c902b&&_0x2c902b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x2c902b);});});const _0x52dd1e=this['editor']['commands']['get']('uploadcareImageReplace');_0x52dd1e&&this['listenTo'](_0x52dd1e,'execute',()=>{const _0x33b31e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x33b31e&&_0x33b31e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x33b31e);});});}}class Y extends _0x16ae28{static get['requires'](){return[X,$];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3406e3){super(_0x3406e3),_0x3406e3['config']['define']('uploadcare.uploader.sourceList',[D['Local'],D['URL']]),_0x1f903f['defineComponents'](_0x1f903f),this['_defineLocale']();}['_defineLocale'](){const _0x54498a=this['editor']['config']['get']('uploadcare.locale'),_0xb8c551=this['editor']['locale']['contentLanguage'];_0x54498a&&_0x1f903f['defineLocale'](_0xb8c551,_0x54498a);}}class tt extends _0xcc56c0{constructor(_0x181f8d){super(_0x181f8d);const t=_0x181f8d['t'],_0x31a343=this['bindTemplate'],_0x2510c7=new _0x10f46f();_0x2510c7['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':[_0x2510c7,{'text':_0x31a343['to']('imageUploadProgress',_0x43241b=>t('Loading\x20image...')+'\x20('+(_0x43241b||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 et extends _0xcc56c0{constructor(_0x292f09){super(_0x292f09);const t=_0x292f09['t'];this['set']('errorType',null);const _0x1ba5c8=new _0x54ba68(_0x292f09);_0x1ba5c8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1ba5c8['withText']=!0x0,_0x1ba5c8['class']='ck-button-action',_0x1ba5c8['on']('execute',()=>{this['fire']('retry');}),_0x1ba5c8['bind']('isVisible')['to'](this,'errorType',_0x4465ef=>'NotFound'!==_0x4465ef);const _0x4b60e5=new _0x26dddd();_0x4b60e5['content']=_0x325d08,_0x4b60e5['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x16ec8c=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':[_0x4b60e5,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x16ec8c['to']('errorType',_0x3f1303=>t('NotFound'!==_0x3f1303?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1ba5c8]},{'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 it extends _0xcc56c0{constructor(_0x5d027d,_0x4834bc){super(_0x5d027d);const _0x5b874e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4834bc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5b874e['to']('imageSrc')}});}}class st extends B{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4d400d,_0x167207,_0x1d2c1f){super(_0x4d400d),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x4d400d),this['_errorView']=new et(_0x4d400d),this['_editingView']=new it(_0x4d400d,_0x1d2c1f),this['_focusableView']=new _0xcc56c0(_0x4d400d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x167207),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'],_0x22a938=>{this['_addUploadcareImageEditorListeners'](_0x22a938);});}),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'](_0x2e7cd0,_0x3ed2c2){const _0x98359d='uc-cloud-image-editor',_0x4fbd68=_0x2e7cd0['querySelector'](_0x98359d);if(_0x4fbd68)return _0x3ed2c2(_0x4fbd68);const _0x22294d=new MutationObserver(_0x25f347=>{const _0x14ceba=_0x25f347['filter'](_0x507b43=>_0x507b43['target']===_0x2e7cd0&&_0x507b43['addedNodes']['length']>0x0&&_0x507b43['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x98359d);_0x14ceba['length']&&(_0x22294d['disconnect'](),_0x3ed2c2(_0x14ceba[0x0]['addedNodes'][0x0]));});_0x22294d['observe'](_0x2e7cd0,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3442d7){_0x3442d7['addEventListener']('apply',_0x53cb25=>{this['fire']('apply',{'imageSrc':_0x53cb25['detail']['cdnUrl']});}),_0x3442d7['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class nt extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x262fdd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1c49d2,_0xd17374,_0x42ec9e){super(),this['_editor']=_0x1c49d2,this['_dialog']=_0xd17374,this['_imageElement']=_0x42ec9e,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 _0x580d50=this['_imageElement'],_0x2ce450=_0x580d50['getAttribute']('uploadcareImageId'),_0x4bb9c2=_0x580d50['getAttribute']('src');if(_0x2ce450)await this['_loadImageInfo'](_0x2ce450,_0x4bb9c2);else{if(this['_imageCache']['has'](_0x4bb9c2)){const _0x18a19a=this['_imageCache']['get'](_0x4bb9c2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x18a19a['url'],this['imageDimension']=_0x18a19a['dimension'],this['imageId']=_0x18a19a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1be55d}=this['_editor'],t=_0x1be55d['t'],_0x59d024=new st(_0x1be55d,this['imageStatus'],this['_attributes']);_0x59d024['bind']('status')['to'](this,'imageStatus'),_0x59d024['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x59d024['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x59d024['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x59d024,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2915c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x59d024,'position':_0x1a6285['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x59d024['focus']();},'onHide':()=>{_0x59d024['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e0ab2=>!G(_0x5e0ab2,_0x59d024['element'])}});}['_loadImageInfo'](_0x4f1898,_0x262e2f){return J['getInfo'](_0x4f1898,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x526747=>{const {width:_0x102fb3,height:_0xe23c25}=_0x526747['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x262e2f,this['imageDimension']={'width':_0x102fb3,'height':_0xe23c25},this['imageId']=_0x4f1898;})['catch'](_0x3e65ad=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e65ad['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x590d3c,_0x4abc0e){return this['_getImageAsFile'](_0x590d3c)['then'](_0x132402=>J['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4abc0e['signal'],'file':_0x132402,'onProgress':_0xb8b12=>{_0xb8b12&&_0xb8b12['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xb8b12['value']));}}))['then'](_0x1cac0d=>{const {width:_0x59509a,height:_0xd43e2a}=_0x1cac0d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1cac0d['cdnUrl'],this['imageDimension']={'width':_0x59509a,'height':_0xd43e2a},this['imageId']=_0x1cac0d['uuid'],this['imageUploadProgress']=null;const _0x5aa0a1=_0x590d3c['getAttribute']('src');this['_imageCache']['set'](_0x5aa0a1,{'id':_0x1cac0d['uuid'],'url':_0x1cac0d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2b848f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2b848f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x291e2f,_0x363548){_0x291e2f['on']('apply',(_0x4981e4,_0x488266)=>{this['_replaceImage'](_0x363548,_0x488266['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x291e2f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x291e2f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2bc5a7,_0x3825f1,_0x19fa79){const _0x8009f1=this['_editor'],{width:_0xa8d4db,height:_0xea36c5}=M(_0x3825f1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3b9420,imageSources:_0x4f3d6c}=j(_0x3825f1,_0xa8d4db);_0x8009f1['model']['change'](_0x416742=>{if('$graveyard'===_0x2bc5a7['root']['rootName']){_0x8009f1['execute']('insertImage',{'imageType':_0x2bc5a7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2bc5a7['getAttributes']()),'uploadcareImageId':_0x19fa79,'src':_0x3b9420,'sources':_0x4f3d6c,'width':_0xa8d4db,'height':_0xea36c5}});const _0x13d7c7=_0x2bc5a7['getChildren']();_0x2bc5a7=_0x8009f1['model']['document']['selection']['getSelectedElement']();for(const _0x2a611b of _0x13d7c7)_0x416742['append'](_0x416742['cloneElement'](_0x2a611b),_0x2bc5a7);}else _0x416742['setSelection'](_0x2bc5a7,'on'),_0x8009f1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2bc5a7['getAttributes']()),'uploadcareImageId':_0x19fa79,'src':_0x3b9420,'sources':_0x4f3d6c,'width':_0xa8d4db,'height':_0xea36c5},_0x2bc5a7);_0x416742['setSelection'](_0x2bc5a7,'on');});}async['_getImageAsFile'](_0x411128){const _0x4409d4=_0x485d39['window'],_0xaf235e=_0x485d39['document']['location']['href'],_0x16856b=new _0x4409d4['URL'](_0x411128['getAttribute']('src'),_0xaf235e);if('data:'===_0x16856b['protocol']){const _0x5f114b=_0x16856b['href']['split'](','),_0x33c914=_0x5f114b[0x0]['match'](/:(.*?);/)[0x1],_0x144060=_0x33c914['split']('/')[0x1],_0x2bf015=_0x4409d4['atob'](_0x5f114b[_0x5f114b['length']-0x1]);let _0x1a8e87=_0x2bf015['length'];const _0x4ee5cb=new _0x4409d4['Uint8Array'](_0x1a8e87);for(;_0x1a8e87--;)_0x4ee5cb[_0x1a8e87]=_0x2bf015['charCodeAt'](_0x1a8e87);return new _0x4409d4['File']([_0x4ee5cb],'image.'+_0x144060,{'type':_0x33c914});}const _0x4e493b=_0x16856b['href']['split']('/'),_0x4545cf=_0x4e493b[_0x4e493b['length']-0x1],_0x4a6fcc=_0x4545cf['split']('.')[0x1];return _0x4409d4['fetch'](_0x16856b['href'])['then'](_0xc367bc=>_0xc367bc['clone']()['blob']())['then'](_0x46e7cc=>new _0x4409d4['File']([_0x46e7cc],_0x4545cf,{'type':'image/'+_0x4a6fcc}));}}class rt extends _0x585727{['imageEditController'];static get['requires'](){return[_0x3c82e2];}['_isEditable'];constructor(_0x52add3){super(_0x52add3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2f455d){const _0x10348f=W(_0x2f455d);return _0x51f02f=>!(!_0x51f02f||!_0x51f02f['is']('element','imageBlock')&&!_0x51f02f['is']('element','imageInline'))&&(!!_0x51f02f['hasAttribute']('uploadcareImageId')||!!_0x51f02f['hasAttribute']('src')&&_0x10348f(_0x51f02f['getAttribute']('src')));}(_0x52add3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x23a21a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x23a21a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5ccf7b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5ccf7b&&(_0x5ccf7b['is']('element','imageBlock')||_0x5ccf7b['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x3c82e2),_0x5ccf7b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class at extends _0x585727{['refresh'](){const _0x2e3685=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2e3685&&(_0x2e3685['is']('element','imageBlock')||_0x2e3685['is']('element','imageInline')));}['execute'](_0x50359a){const _0x3c4ae2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3f827c=>{_0x3f827c['setAttributes'](_0x50359a,_0x3c4ae2),_0x3f827c['removeAttribute']('srcset',_0x3c4ae2),_0x3f827c['removeAttribute']('sizes',_0x3c4ae2);});}}class ot extends _0x16ae28{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[X,_0x4003d7,_0xc2ffa1,_0x3369a4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4617a8}=this;_0x4617a8['commands']['add']('uploadcareImageEdit',new rt(_0x4617a8)),_0x4617a8['commands']['add']('uploadcareImageReplace',new at(_0x4617a8));}}class ct extends _0x16ae28{['_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 _0x300c1d=this['editor'];_0x300c1d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x33f852=>{const _0x1bf55f=_0x300c1d['commands']['get']('uploadcareImageEdit'),_0x160ae1=new _0x54ba68(_0x33f852),t=_0x33f852['t'];return _0x160ae1['set']({'icon':_0x2915c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x160ae1['bind']('isEnabled')['to'](_0x1bf55f),_0x160ae1['bind']('isOn')['to'](_0x1bf55f,'isActive'),this['listenTo'](_0x160ae1,'execute',()=>{_0x300c1d['execute']('uploadcareImageEdit'),_0x300c1d['editing']['view']['focus']();}),_0x160ae1;}),this['_initConfig']();}['_initConfig'](){const _0x33f2bd=_0x350c77(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x33f2bd),this['listenTo'](this['editor'],'destroy',()=>{_0x33f2bd['remove']();});}}class lt extends _0x16ae28{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[ot,ct];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Y as Uploadcare,H as UploadcareCommand,X as UploadcareEditing,lt as UploadcareImageEdit,rt as UploadcareImageEditCommand,ot as UploadcareImageEditEditing,ct as UploadcareImageEditUI,$ as UploadcareUI,Z as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x355d1d,Command as _0x2bb79b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xc196d2,IconGooglePhotos as _0x5ed0b9,IconGoogleDrive as _0x2c3047,IconFacebook as _0xc8e092,IconDropbox as _0x53277b,IconUploadcareLink as _0x41a2d2,IconUploadcareImageUpload as _0x5923a5,IconError as _0x211855,IconUploadcareImageEdit as _0x131169}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2a48c2,MenuBarMenuListItemButtonView as _0x472ada,View as _0x23520f,FocusCycler as _0x3ed7b7,Dialog as _0x5ac571,DialogViewPosition as _0x520a0b,SpinnerView as _0x29c29c,IconView as _0x433e33,Notification as _0x37dc08}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4860e5,DomEmitterMixin as _0xe6d22b,global as _0x1e75c9,getAncestors as _0x2c1f53,ObservableMixin as _0x47cebc,uid as _0x4316e4,createElement as _0x5ee08d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ImageUploadEditing as _0x31f77f,ImageUploadProgress as _0x2c6b94,PictureEditing as _0x523f10,ImageUtils as _0x2144ba,ImageEditing as _0x4e2a5e}from'@ckeditor/ckeditor5-image/dist/index.js';import{FileRepository as _0x234470}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xa1fd75,info as _0x55c16d}from'@uploadcare/upload-client';import*as _0x48bd97 from'@uploadcare/file-uploader';function D(_0x3e93c9,_0x50fb1c,_0x3f95cf){const t=_0x3e93c9['t'],_0x472271=_0x3e93c9['t'];switch(_0x50fb1c){case'local':return{'text':_0x472271('Insert'===_0x3f95cf?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x472271('From\x20computer')};case'url':return{'text':'Insert'===_0x3f95cf?_0x472271('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x472271('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x3f95cf?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x3f95cf?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x3f95cf?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x3f95cf?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x3f95cf?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x50fb1c;}}class F extends _0x355d1d{['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 _0x2d6e72=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e8060;for(const _0x4a63a4 in _0x2d6e72){const _0x18141e=_0x4a63a4,_0x54a2ed=_0x2d6e72[_0x18141e];if('uploadcareLicenseKeyValid'==_0x54a2ed||'uploadcareLicenseKeyInvalid'==_0x54a2ed||'uploadcareLicenseKeyExpired'==_0x54a2ed||'uploadcareLicenseKeyDomainLimit'==_0x54a2ed||'uploadcareLicenseKeyNotAllowed'==_0x54a2ed||'uploadcareLicenseKeyEvaluationLimit'==_0x54a2ed||'uploadcareLicenseKeyUsageLimit'==_0x54a2ed){delete _0x2d6e72[_0x18141e],_0x2e8060=_0x54a2ed,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2e8060&&_0x2d6e72['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2e8060&&_0x2d6e72['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2e8060&&_0x2d6e72['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2e8060&&_0x2d6e72['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2e8060&&_0x2d6e72['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2e8060&&_0x2d6e72['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x491ae3}=this,_0x510541=_0x491ae3['commands']['get']('uploadcare');if(!_0x510541)return;const _0x573b6d=this['_normalizeConfigSourceList'](_0x491ae3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x169634,_0x19fe02)=>{const _0x571828=this['_getIntegrationKey'](_0x19fe02['type']);return _0x169634[_0x571828]||(_0x169634[_0x571828]=[]),_0x169634[_0x571828]['push'](_0x19fe02),_0x169634;},{});_0x491ae3['plugins']['has']('ImageInsertUI')&&_0x491ae3['commands']['get']('uploadcare')&&Object['entries'](_0x573b6d)['forEach'](([_0x11ab72,_0x1c4686])=>{_0x491ae3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x11ab72,'observable':()=>_0x510541,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1c4686),'formViewCreator':()=>this['_createDropdownButtons'](_0x1c4686),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1c4686),'override':'assetManager'!==_0x11ab72});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3a645f){const {locale:_0x555cb1}=this['editor'];return _0x3a645f['map'](_0x2cbbe1=>{const _0x4eb4ce=D(_0x555cb1,_0x2cbbe1,'Insert');switch(_0x2cbbe1){case'local':return{'icon':_0x5923a5,'type':'local',..._0x4eb4ce};case'url':return{'icon':_0x41a2d2,'type':'url',..._0x4eb4ce};case'dropbox':return{'icon':_0x53277b,'type':'dropbox',..._0x4eb4ce};case'facebook':return{'icon':_0xc8e092,'type':'facebook',..._0x4eb4ce};case'gdrive':return{'icon':_0x2c3047,'type':'gdrive',..._0x4eb4ce};case'gphotos':return{'icon':_0x5ed0b9,'type':'gphotos',..._0x4eb4ce};case'onedrive':return{'icon':_0xc196d2,'type':'onedrive',..._0x4eb4ce};}});}['_getIntegrationKey'](_0x2233a){switch(_0x2233a){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x4816a3,_0x2c3bf0){const _0x17b14d=this['editor'],_0x3c2e10=new _0x4816a3(_0x17b14d['locale']),_0x2f8ce1=_0x17b14d['commands']['get']('uploadcare');return _0x3c2e10['bind']('isEnabled')['to'](_0x2f8ce1),_0x3c2e10['on']('execute',()=>{_0x2f8ce1['execute'](_0x2c3bf0);}),_0x3c2e10;}['_createToolbarButton'](_0x507f4d){const {locale:_0x47a389}=this['editor'],_0x4b27a9=this['editor']['plugins']['get']('ImageInsertUI'),_0x2726d7=_0x507f4d[0x0],_0x372be3=this['_createButton'](_0x2a48c2,_0x2726d7['type']);return _0x372be3['icon']=_0x2726d7['icon'],_0x372be3['bind']('label')['to'](_0x4b27a9,'isImageSelected',_0x10ca0c=>D(_0x47a389,_0x2726d7['type'],_0x10ca0c?'Replace':'Insert')['text']),_0x372be3['tooltip']=!0x0,_0x372be3;}['_createDropdownButtons'](_0x429566){const {locale:_0x5ae3a2}=this['editor'],_0x1fe887=this['editor']['plugins']['get']('ImageInsertUI');return _0x429566['map'](_0x51c6cb=>{const _0x1ac8de=this['_createButton'](_0x2a48c2,_0x51c6cb['type']);return _0x1ac8de['withText']=!0x0,_0x1ac8de['icon']=_0x51c6cb['icon'],_0x1ac8de['bind']('label')['to'](_0x1fe887,'isImageSelected',_0x4af412=>D(_0x5ae3a2,_0x51c6cb['type'],_0x4af412?'Replace':'Insert')['text']),_0x1ac8de;});}['_createMenuBarButtons'](_0x20b84b){return _0x20b84b['map'](_0x336f1f=>{const _0x417326=this['_createButton'](_0x472ada,_0x336f1f['type']);return _0x417326['icon']=_0x336f1f['icon'],_0x417326['label']=_0x336f1f['shortText'],_0x417326;});}}class $ extends _0x23520f{['focusTracker'];['focusCycler'];constructor(_0x2d82f4){super(_0x2d82f4),this['focusTracker']=new _0x4860e5(),this['focusCycler']=new _0x3ed7b7({'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 B extends ${constructor(_0x5bdcd8,_0x4c3b39){super(_0x5bdcd8),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-'+_0x4c3b39}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function V(_0x478954,_0x271143){const _0x536586=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x40ecc4=>_0x40ecc4<=_0x271143)['map'](_0x11ab5f=>_0x478954['replace'](/\/$/,'')+'/-/resize/'+_0x11ab5f+'x/\x20'+_0x11ab5f+'w');return{'imageFallbackUrl':_0x478954,'imageSources':[{'srcset':_0x536586['join'](',\x20'),'sizes':'(max-width:\x20'+_0x271143+'px)\x20100vw,\x20'+_0x271143+'px','type':'image/webp'}]};}function j(_0x90447d,_0x13c491,_0x535fd1){const _0x82a4fd=_0x90447d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x82a4fd?parseInt(_0x82a4fd[0x1],0xa):_0x13c491,'height':_0x82a4fd?parseInt(_0x82a4fd[0x2],0xa):_0x535fd1};}function M(_0x3773d2,_0x6faf24){const _0x370a44=new(_0xe6d22b())(),_0x490f2e=_0x3773d2['plugins']['get']('ImageUtils'),_0x5f058f=_0x3773d2['editing']['mapper']['toViewElement'](_0x6faf24),_0x134cb0=_0x490f2e['findViewImgElement'](_0x5f058f),_0x3a3f51=_0x3773d2['editing']['view']['domConverter']['viewToDom'](_0x134cb0),_0x407293=_0x6faf24['getAttribute']('width'),_0x25fcaf=_0x6faf24['getAttribute']('height'),_0x329335='image-processing';_0x3773d2['editing']['view']['change'](_0x1dd3f4=>{_0x1dd3f4['addClass'](_0x329335,_0x5f058f),_0x1dd3f4['setStyle']('aspect-ratio',_0x407293+'/'+_0x25fcaf,_0x134cb0);}),_0x370a44['listenTo'](_0x3a3f51,'load',()=>{_0x370a44['stopListening'](_0x3a3f51,'load'),_0x3773d2['editing']['view']['change'](_0x59fd5=>{_0x59fd5['removeClass'](_0x329335,_0x5f058f),_0x59fd5['removeStyle']('aspect-ratio',_0x134cb0);});});}function q(_0x472b2){if(Array['isArray'](_0x472b2)){const _0x29e2db=_0x472b2['map'](q);return _0x1884fb=>_0x29e2db['some'](_0x57a8c3=>_0x57a8c3(_0x1884fb));}if('origin'==_0x472b2){const _0x33a1d4=_0x1e75c9['window']['location']['origin'];return _0x3e2d08=>new URL(_0x3e2d08,_0x1e75c9['document']['baseURI'])['origin']==_0x33a1d4;}return'function'==typeof _0x472b2?_0x472b2:_0x472b2 instanceof RegExp?_0x4e1b4b=>!(!_0x4e1b4b['match'](_0x472b2)&&!_0x4e1b4b['replace'](/^https?:\/\//,'')['match'](_0x472b2)):()=>!0x1;}function W(_0x8702b1,_0x329f9c){return _0x2c1f53(_0x8702b1['target'])['includes'](_0x329f9c);}class G extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x47cebc(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x7df26e,_0x55ed6a,_0x275824){super(),this['_editor']=_0x7df26e,this['_editing']=_0x55ed6a,this['_dialog']=_0x7df26e['plugins']['get'](_0x5ac571),this['_api']=_0x55ed6a['ctxElement']['getAPI'](),this['_type']=_0x275824,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:_0x4bba77,model:_0x1c140f}=this['_editor'],_0x2027a1=_0x1c140f['document']['selection']['getSelectedElement'](),_0x127a04=_0x2027a1&&(_0x2027a1['is']('element','imageBlock')||_0x2027a1['is']('element','imageInline'));this['_formView']=new B(_0x4bba77,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5923a5,'title':D(_0x4bba77,this['_type'],_0x127a04?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x520a0b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4748c9=>!W(_0x4748c9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x19b4b5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2d88e3=>{const _0x4d8c50=_0x19b4b5['length'];for(const _0x13aac8 of _0x19b4b5){const _0x569d48=_0x13aac8===_0x19b4b5[_0x4d8c50-0x1],{cdnUrl:_0x31e9f0,fileInfo:_0x250093}=_0x13aac8;if(!_0x31e9f0||!_0x250093)continue;const {width:_0x2d8894,height:_0x4be597}=_0x250093['imageInfo'],_0x14f3a9=j(_0x31e9f0,_0x2d8894,_0x4be597),_0x1b1197=V(_0x31e9f0,_0x14f3a9['width']),_0x50f3ae={'id':_0x250093['uuid'],'type':'image','attributes':{'imageDimension':_0x14f3a9,..._0x1b1197}};this['_insertAsset'](_0x50f3ae,_0x569d48,_0x2d88e3);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x41cf4b=>{'idle'===_0x41cf4b['detail']['status']&&!_0x41cf4b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('local'):this['_api']['initFlow']());});}['_insertAsset'](_0x576f60,_0x5f0613,_0x3ed013){const _0x4e2063=this['_editor']['model']['document']['selection'],_0x5e2277=_0x4e2063['getSelectedElement'](),_0x1a48af=!(!_0x5e2277||!_0x5e2277['is']('element','imageInline'));_0x3ed013['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x576f60,_0x1a48af),_0x5f0613||_0x3ed013['setSelection'](_0x4e2063['getLastPosition']());}['_insertImage'](_0x3e0a0e,_0x28397d){const _0x249f07=this['_editor'],{imageDimension:_0x4c52ef,imageFallbackUrl:_0x100b90,imageSources:_0x498bf8}=_0x3e0a0e['attributes'];_0x249f07['execute']('insertImage',{'imageType':_0x28397d?'imageInline':null,'source':{'uploadcareImageId':_0x3e0a0e['id'],'src':_0x100b90,'sources':_0x498bf8,..._0x4c52ef}});}}class z extends _0x2bb79b{['_editing'];['_controller']=null;static get['requires'](){return[_0x5ac571,Q];}constructor(_0x3968a5){super(_0x3968a5),this['_editing']=_0x3968a5['plugins']['get'](Q);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x381c15){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x381c15);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class H{static['upload']({file:_0x2b647a,..._0x49fd81}){return _0xa1fd75(_0x2b647a,_0x49fd81);}static['getInfo'](_0x2c5c0c,_0x4b95bf){return _0x55c16d(_0x2c5c0c,_0x4b95bf);}}class J extends _0x355d1d{static get['requires'](){return[_0x31f77f,_0x2c6b94,_0x234470,Q];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1cf8cc=this['editor'];if(!!!_0x1cf8cc['config']['get']('uploadcare'))return;_0x1cf8cc['plugins']['get'](_0x234470)['createUploadAdapter']=_0x59745f=>new Z(_0x59745f,_0x1cf8cc),_0x1cf8cc['plugins']['get'](_0x31f77f)['on']('uploadComplete',(_0xd5cd0c,{imageElement:_0x5c2ec1,data:_0x589499})=>{_0x1cf8cc['model']['change'](_0x20a5b6=>{_0x20a5b6['setAttribute']('uploadcareImageId',_0x589499['uploadcareImageId'],_0x5c2ec1);});});}}class Z{['loader'];['editor'];['controller'];constructor(_0x2a12cd,_0x3fdc98){this['loader']=_0x2a12cd,this['editor']=_0x3fdc98,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1a780d=await this['loader']['file'];return H['upload']({'file':_0x1a780d,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x5333f9=>{_0x5333f9&&_0x5333f9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5333f9['value']);}})['then'](async _0x36f2f9=>{const {imageFallbackUrl:_0x19c3fa,imageSources:_0x3162a8}=V(_0x36f2f9['cdnUrl'],_0x36f2f9['imageInfo']['width']);return{'uploadcareImageId':_0x36f2f9['uuid'],'default':_0x19c3fa,'sources':_0x3162a8};})['catch'](()=>{const _0x4113b1=t('Cannot\x20upload\x20file:')+('\x20'+_0x1a780d['name']+'.');return Promise['reject'](_0x4113b1);});}['abort'](){this['controller']['abort']();}}class Q extends _0x355d1d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x523f10,J,_0x5ac571];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x7c062e){super(_0x7c062e),this['ucContextId']=_0x4316e4();}['init'](){const _0x2730a0=this['editor'];_0x2730a0['commands']['add']('uploadcare',new z(_0x2730a0));}['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 _0x546b47=_0x1e75c9['document']['querySelector']('input[uploadcare-file-input]');_0x546b47&&_0x546b47['remove']();}),async function(_0x13dade){const _0x56c963=_0x4f04d6([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x50dbe0=0x535f8c3a,_0x3f86ef=0x5358094a^_0x50dbe0,_0x1d87a1=window[_0x4f04d6([0x44,0x61,0x74,0x65])][_0x4f04d6([0x6e,0x6f,0x77])](),_0x77e027=_0x13dade[_0x4f04d6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1fc439=new window[(_0x4f04d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x336bb3=>{_0x77e027[_0x4f04d6([0x6f,0x6e,0x63,0x65])](_0x4f04d6([0x72,0x65,0x61,0x64,0x79]),_0x336bb3);}),_0x164f04={[_0x4f04d6([0x6b,0x74,0x79])]:_0x4f04d6([0x45,0x43]),[_0x4f04d6([0x75,0x73,0x65])]:_0x4f04d6([0x73,0x69,0x67]),[_0x4f04d6([0x63,0x72,0x76])]:_0x4f04d6([0x50,0x2d,0x32,0x35,0x36]),[_0x4f04d6([0x78])]:_0x4f04d6([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]),[_0x4f04d6([0x79])]:_0x4f04d6([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]),[_0x4f04d6([0x61,0x6c,0x67])]:_0x4f04d6([0x45,0x53,0x32,0x35,0x36])},_0x333769=_0x77e027[_0x4f04d6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f04d6([0x67,0x65,0x74])](_0x4f04d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c9b59(){let _0x5d3e72,_0x25c357=null,_0x5d2a5f=null;try{if(_0x333769==_0x4f04d6([0x47,0x50,0x4c]))return _0x4f04d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d3e72=_0x53f7d6(),!_0x5d3e72)return _0x4f04d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d3e72[_0x4f04d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d2a5f=_0x14cf38(_0x5d3e72[_0x4f04d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d3e72[_0x4f04d6([0x6a,0x74,0x69])])),await _0x167571()?_0x5ce0cd()?_0x3811ca()?_0x4f04d6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ee47c()?(_0x5d3e72[_0x4f04d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f04d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25c357=_0x2966a2(_0x4f04d6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x287621()):_0x4f04d6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f04d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f04d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4f04d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3811ca(){const _0x3d255f=[_0x4f04d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f04d6([0x74,0x72,0x69,0x61,0x6c])][_0x4f04d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d3e72[_0x4f04d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d87a1/0x3e8:0xe10*_0x3f86ef;return _0x5d3e72[_0x4f04d6([0x65,0x78,0x70])]<_0x3d255f;}function _0x5ce0cd(){const _0x17a8f7=_0x5d3e72[_0x4f04d6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17a8f7&&(!!_0x17a8f7[_0x4f04d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f04d6([0x2a]))||!!_0x17a8f7[_0x4f04d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f04d6([0x55,0x50,0x4c,0x43])));}function _0x1ee47c(){const _0x4e8a7a=_0x5d3e72[_0x4f04d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e8a7a||0x0==_0x4e8a7a[_0x4f04d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c43ad}=new URL(window[_0x4f04d6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e8a7a[_0x4f04d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c43ad))return!0x0;const _0x2b1702=_0x2c43ad[_0x4f04d6([0x73,0x70,0x6c,0x69,0x74])](_0x4f04d6([0x2e]));return _0x4e8a7a[_0x4f04d6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c9c5d=>_0x2c9c5d[_0x4f04d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f04d6([0x2a])))[_0x4f04d6([0x6d,0x61,0x70])](_0x573365=>_0x573365[_0x4f04d6([0x73,0x70,0x6c,0x69,0x74])](_0x4f04d6([0x2e])))[_0x4f04d6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c747a=>_0x1c747a[_0x4f04d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b1702[_0x4f04d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f04d6([0x6d,0x61,0x70])](_0x231cc0=>Array(_0x2b1702[_0x4f04d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x231cc0[_0x4f04d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f04d6([0x66,0x69,0x6c,0x6c])](_0x231cc0[0x0]===_0x4f04d6([0x2a])?_0x4f04d6([0x2a]):'')[_0x4f04d6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x231cc0))[_0x4f04d6([0x73,0x6f,0x6d,0x65])](_0x5de27f=>_0x2b1702[_0x4f04d6([0x65,0x76,0x65,0x72,0x79])]((_0x11c2f5,_0x3b44f6)=>_0x5de27f[_0x3b44f6]===_0x11c2f5||_0x5de27f[_0x3b44f6]===_0x4f04d6([0x2a])));}function _0x287621(){return _0x25c357&&_0x5d2a5f?new window[(_0x4f04d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54425c,_0x584907)=>{_0x25c357[_0x4f04d6([0x74,0x68,0x65,0x6e])](_0x54425c,_0x584907),_0x5d2a5f[_0x4f04d6([0x74,0x68,0x65,0x6e])](_0x43bb30=>{_0x43bb30!=_0x4f04d6([0x56,0x61,0x6c,0x69,0x64])&&_0x54425c(_0x43bb30);},_0x584907);}):_0x25c357||_0x5d2a5f||_0x4f04d6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x14cf38(_0x2a1d2c,_0x1f5d9f){return new window[(_0x4f04d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x423a07=>{if(_0x5d210d())return _0x423a07(_0x4f04d6([0x56,0x61,0x6c,0x69,0x64]));_0x404763(),_0x77e027[_0x4f04d6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f04d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4327e5=!0x1;const _0xb7f2ea=_0x4316e4();function _0x501067(_0x36b7d){return!!_0x36b7d&&(typeof _0x36b7d===_0x4f04d6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x36b7d===_0x4f04d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x36b7d[_0x4f04d6([0x74,0x68,0x65,0x6e])]===_0x4f04d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x36b7d[_0x4f04d6([0x63,0x61,0x74,0x63,0x68])]===_0x4f04d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x247ff2(_0x3b63c1){_0x1625a4(_0x3b63c1)[_0x4f04d6([0x74,0x68,0x65,0x6e])](_0x1468f7=>{if(!_0x1468f7||_0x1468f7[_0x4f04d6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f04d6([0x6f,0x6b]))return _0x4f04d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b5f61(_0x24adcf(_0xb7f2ea+_0x1f5d9f))!=_0x1468f7[_0x4f04d6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f04d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f04d6([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f04d6([0x74,0x68,0x65,0x6e])](_0x38a8a5=>(_0x507cbc(),_0x38a8a5),()=>{const _0xf2ad0f=_0x18926a();return null==_0xf2ad0f?(_0x507cbc(),_0x4f04d6([0x56,0x61,0x6c,0x69,0x64])):_0x4f04d6(_0x1d87a1-_0xf2ad0f>(0x7753083a^_0x50dbe0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f04d6([0x74,0x68,0x65,0x6e])](_0x423a07)[_0x4f04d6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x423a07(_0x4f04d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b9591=0x536962ba^_0x50dbe0;function _0x507cbc(){const _0x91fbc6=_0x4f04d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b5f61(_0x24adcf(_0x2a1d2c)),_0x19c02d=_0x595f46(_0x4b5f61(window[_0x4f04d6([0x4d,0x61,0x74,0x68])][_0x4f04d6([0x63,0x65,0x69,0x6c])](_0x1d87a1/_0x3b9591)));window[_0x4f04d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f04d6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x91fbc6,_0x19c02d);}function _0x18926a(){const _0x570c70=_0x4f04d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b5f61(_0x24adcf(_0x2a1d2c)),_0x454f82=window[_0x4f04d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f04d6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x570c70);return _0x454f82?window[_0x4f04d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x595f46(_0x454f82),0x10)*_0x3b9591:null;}function _0x1625a4(_0x14fd94){return new window[(_0x4f04d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x268c40,_0x37a57b)=>{_0x14fd94[_0x4f04d6([0x74,0x68,0x65,0x6e])](_0x268c40,_0x37a57b),window[_0x4f04d6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37a57b,0x535e58fa^_0x50dbe0);});}}_0x77e027[_0x4f04d6([0x6f,0x6e])](_0x4f04d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ea214,_0x1304a6)=>{if(_0x1304a6[0x0]!=_0x2a1d2c)return _0x423a07(_0x4f04d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1304a6[0x1]={..._0x1304a6[0x1],[_0x4f04d6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb7f2ea};},{[_0x4f04d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f04d6([0x68,0x69,0x67,0x68])}),_0x77e027[_0x4f04d6([0x6f,0x6e])](_0x4f04d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e4c21=>{_0x501067(_0x1e4c21[_0x4f04d6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4327e5=!0x0,_0x247ff2(_0x1e4c21[_0x4f04d6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f04d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f04d6([0x6c,0x6f,0x77])}),_0x1fc439[_0x4f04d6([0x74,0x68,0x65,0x6e])](()=>{_0x4327e5||_0x423a07(_0x4f04d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d210d(){return _0x77e027[_0x4f04d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f04d6([0x76,0x69,0x65,0x77])][_0x4f04d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f04d6([0x61,0x75,0x74,0x6f]);}function _0x404763(){_0x77e027[_0x4f04d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f04d6([0x76,0x69,0x65,0x77])][_0x4f04d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f04d6([0x61,0x75,0x74,0x6f]);}}function _0x2966a2(_0x25c309){const _0x4e951f=[new window[(_0x4f04d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c8367=>setTimeout(_0x4c8367,0x5356b2f6^_0x50dbe0)),_0x1fc439[_0x4f04d6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f04d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8a6267=>{let _0x1c85d0=0x0;_0x77e027[_0x4f04d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f04d6([0x6f,0x6e])](_0x4f04d6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d749f,_0x3b99ad)=>{_0x3b99ad[0x0][_0x4f04d6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1c85d0++,_0x1c85d0==(0x535f89d2^_0x50dbe0)&&(_0x8a6267(),_0x3d749f[_0x4f04d6([0x6f,0x66,0x66])]());});}))];return window[_0x4f04d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f04d6([0x72,0x61,0x63,0x65])](_0x4e951f)[_0x4f04d6([0x74,0x68,0x65,0x6e])](()=>_0x25c309);}async function _0x6beb1a(){await _0x1fc439,_0x77e027[_0x4f04d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f04d6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x29cac3,_0x77e027[_0x4f04d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f04d6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x29cac3,_0x77e027[_0x4f04d6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f04d6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xccf072(_0x1946ae){const _0x2ef479=_0x4bbc55();_0x77e027[_0x2ef479]=_0x4f04d6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1946ae,_0x1946ae!=_0x4f04d6([0x56,0x61,0x6c,0x69,0x64])&&_0x6beb1a();}function _0x4bbc55(){const _0x60894=window[_0x4f04d6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f04d6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f04d6([0x6e,0x6f,0x77])]())[_0x4f04d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f04d6([0x2e]),'');let _0x4b565f=_0x4f04d6([0x68]);for(let _0xde829e=0x0;_0xde829e<_0x60894[_0x4f04d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xde829e+=0x2){let _0x42cee9=window[_0x4f04d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x60894[_0x4f04d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xde829e,_0xde829e+0x2));_0x42cee9>=_0x56c963[_0x4f04d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42cee9-=_0x56c963[_0x4f04d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b565f+=_0x56c963[_0x42cee9];}return _0x4b565f;}function _0x53f7d6(){const _0x569ed2=_0x333769[_0x4f04d6([0x73,0x70,0x6c,0x69,0x74])](_0x4f04d6([0x2e]));if(0x3!=_0x569ed2[_0x4f04d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xda229b(_0x569ed2[0x1]);function _0xda229b(_0x18357b){const _0x400fa8=_0x10e3a8(_0x18357b);return _0x400fa8&&_0x3ef7f5()?_0x400fa8:null;function _0x3ef7f5(){const _0x2fdb71=_0x400fa8[_0x4f04d6([0x6a,0x74,0x69])],_0x4e704e=window[_0x4f04d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fdb71[_0x4f04d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2fdb71[_0x4f04d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d1da5={..._0x400fa8,[_0x4f04d6([0x6a,0x74,0x69])]:_0x2fdb71[_0x4f04d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2fdb71[_0x4f04d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d1da5[_0x4f04d6([0x76,0x63])],_0x24adcf(_0x1d1da5)==_0x4e704e;}}}async function _0x167571(){let _0x288169=!0x0;try{const _0x1068f1=_0x333769[_0x4f04d6([0x73,0x70,0x6c,0x69,0x74])](_0x4f04d6([0x2e])),[_0x15b62f,_0x4130d2,_0x28c328]=_0x1068f1;return _0x252c87(_0x15b62f),await _0x2c2b80(_0x15b62f,_0x4130d2,_0x28c328),_0x288169;}catch{return!0x1;}function _0x252c87(_0x422cc6){const _0x39775a=_0x10e3a8(_0x422cc6);_0x39775a&&_0x39775a[_0x4f04d6([0x61,0x6c,0x67])]==_0x4f04d6([0x45,0x53,0x32,0x35,0x36])||(_0x288169=!0x1);}async function _0x2c2b80(_0x9060cb,_0x1ebda8,_0x5553bf){const _0x48f806=window[_0x4f04d6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f04d6([0x66,0x72,0x6f,0x6d])](_0x56aa3f(_0x5553bf),_0x32f0e1=>_0x32f0e1[_0x4f04d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x53dda8=new window[(_0x4f04d6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f04d6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x9060cb+_0x4f04d6([0x2e])+_0x1ebda8),_0x168e78=window[_0x4f04d6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f04d6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x168e78)return;const _0x11ba83=await _0x168e78[_0x4f04d6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f04d6([0x6a,0x77,0x6b]),_0x164f04,{[_0x4f04d6([0x6e,0x61,0x6d,0x65])]:_0x4f04d6([0x45,0x43,0x44,0x53,0x41]),[_0x4f04d6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f04d6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f04d6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x168e78[_0x4f04d6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f04d6([0x6e,0x61,0x6d,0x65])]:_0x4f04d6([0x45,0x43,0x44,0x53,0x41]),[_0x4f04d6([0x68,0x61,0x73,0x68])]:{[_0x4f04d6([0x6e,0x61,0x6d,0x65])]:_0x4f04d6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11ba83,_0x48f806,_0x53dda8)||(_0x288169=!0x1);}}function _0x10e3a8(_0x42e0b0){return _0x42e0b0[_0x4f04d6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f04d6([0x65,0x79]))?JSON[_0x4f04d6([0x70,0x61,0x72,0x73,0x65])](_0x56aa3f(_0x42e0b0)):null;}function _0x56aa3f(_0x240ff2){return window[_0x4f04d6([0x61,0x74,0x6f,0x62])](_0x240ff2[_0x4f04d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f04d6([0x2b]))[_0x4f04d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f04d6([0x2f])));}function _0x24adcf(_0x132ca9){let _0x14e803=0x1505;function _0x40086e(_0x39291){for(let _0x31a8f5=0x0;_0x31a8f5<_0x39291[_0x4f04d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31a8f5++){const _0x4e9c39=_0x39291[_0x4f04d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31a8f5);_0x14e803=(_0x14e803<<0x5)+_0x14e803+_0x4e9c39,_0x14e803&=_0x14e803;}}function _0x158b1b(_0x41d19b){Array[_0x4f04d6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41d19b)?_0x41d19b[_0x4f04d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x158b1b):_0x41d19b&&typeof _0x41d19b==_0x4f04d6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f04d6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41d19b)[_0x4f04d6([0x73,0x6f,0x72,0x74])]()[_0x4f04d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3687a4,_0xf830a4])=>{_0x40086e(_0x3687a4),_0x158b1b(_0xf830a4);}):_0x40086e(window[_0x4f04d6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41d19b));}return _0x158b1b(_0x132ca9),_0x14e803>>>0x0;}function _0x4b5f61(_0x5d9696){return _0x5d9696[_0x4f04d6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f04d6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f04d6([0x30]));}function _0x595f46(_0x4484ef){return _0x4484ef[_0x4f04d6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f04d6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f04d6([0x6a,0x6f,0x69,0x6e])]('');}function _0x29cac3(){}function _0x4f04d6(_0x46112b){return _0x46112b['map'](_0x186290=>String['fromCharCode'](_0x186290))['join']('');}_0xccf072(await _0x5c9b59());}(this);}['_initSchema'](){const _0x10e654=this['editor']['model']['schema'];_0x10e654['isRegistered']('imageBlock')&&_0x10e654['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x10e654['isRegistered']('imageInline')&&_0x10e654['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2b738c=this['editor'];_0x2b738c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2b738c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x388173=>_0x388173['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4b1efc=_0x2b738c['commands']['get']('replaceImageSource');_0x4b1efc&&this['listenTo'](_0x4b1efc,'cleanupImage',(_0x2d1dd3,[_0x5ce73d,_0x5d1830])=>{_0x5ce73d['removeAttribute']('uploadcareImageId',_0x5d1830);});}['_initConfig'](){const _0x44feb6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x9a142=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5ee08d(_0x1e75c9['document'],'uc-config',{..._0x44feb6,'pubkey':_0x9a142,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x1094eb=>{if('closeMax'==_0x1094eb)return'#uc-icon-arrow-down';},_0x1e75c9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5ee08d(_0x1e75c9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1e75c9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x503068=this['editor']['commands']['get']('insertImage');_0x503068&&this['listenTo'](_0x503068,'execute',()=>{const _0x1e2441=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1e2441&&_0x1e2441['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{M(this['editor'],_0x1e2441);});});const _0x161da9=this['editor']['commands']['get']('uploadcareImageReplace');_0x161da9&&this['listenTo'](_0x161da9,'execute',()=>{const _0x38814d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x38814d&&_0x38814d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{M(this['editor'],_0x38814d);});});}}class X extends _0x355d1d{static get['requires'](){return[Q,F];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20c6b0){super(_0x20c6b0),_0x20c6b0['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x48bd97['defineComponents'](_0x48bd97),this['_defineLocale']();}['_defineLocale'](){const _0x2dd0c8=this['editor']['config']['get']('uploadcare.locale'),_0x468c6b=this['editor']['locale']['contentLanguage'];_0x2dd0c8&&_0x48bd97['defineLocale'](_0x468c6b,_0x2dd0c8);}}class Y extends _0x23520f{constructor(_0x481d20){super(_0x481d20);const t=_0x481d20['t'],_0x279057=this['bindTemplate'],_0x3de0ab=new _0x29c29c();_0x3de0ab['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':[_0x3de0ab,{'text':_0x279057['to']('imageUploadProgress',_0x826a50=>t('Loading\x20image...')+'\x20('+(_0x826a50||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 tt extends _0x23520f{constructor(_0x45ba50){super(_0x45ba50);const t=_0x45ba50['t'];this['set']('errorType',null);const _0x3544c5=new _0x2a48c2(_0x45ba50);_0x3544c5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3544c5['withText']=!0x0,_0x3544c5['class']='ck-button-action',_0x3544c5['on']('execute',()=>{this['fire']('retry');}),_0x3544c5['bind']('isVisible')['to'](this,'errorType',_0x5af9e8=>'NotFound'!==_0x5af9e8);const _0x10b99a=new _0x433e33();_0x10b99a['content']=_0x211855,_0x10b99a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3a4daa=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':[_0x10b99a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3a4daa['to']('errorType',_0x4d2865=>t('NotFound'!==_0x4d2865?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3544c5]},{'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 et extends _0x23520f{constructor(_0x5c73d1,_0xfb97cf){super(_0x5c73d1);const _0x33e39d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xfb97cf,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x33e39d['to']('imageSrc')}});}}class it extends ${['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3bfcde,_0x207e44,_0x400fb4){super(_0x3bfcde),this['_items']=this['createCollection'](),this['_loadingView']=new Y(_0x3bfcde),this['_errorView']=new tt(_0x3bfcde),this['_editingView']=new et(_0x3bfcde,_0x400fb4),this['_focusableView']=new _0x23520f(_0x3bfcde),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x207e44),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'],_0x1cf0d1=>{this['_addUploadcareImageEditorListeners'](_0x1cf0d1);});}),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'](_0x128bb4,_0x5da0fe){const _0x524069='uc-cloud-image-editor',_0x85596b=_0x128bb4['querySelector'](_0x524069);if(_0x85596b)return _0x5da0fe(_0x85596b);const _0x28422e=new MutationObserver(_0x334d1d=>{const _0x126597=_0x334d1d['filter'](_0xe2cd3e=>_0xe2cd3e['target']===_0x128bb4&&_0xe2cd3e['addedNodes']['length']>0x0&&_0xe2cd3e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x524069);_0x126597['length']&&(_0x28422e['disconnect'](),_0x5da0fe(_0x126597[0x0]['addedNodes'][0x0]));});_0x28422e['observe'](_0x128bb4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4c9b65){_0x4c9b65['addEventListener']('apply',_0xf21bf2=>{this['fire']('apply',{'imageSrc':_0xf21bf2['detail']['cdnUrl']});}),_0x4c9b65['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class st extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x47cebc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x40c5f2,_0x771983,_0x2ddbd7){super(),this['_editor']=_0x40c5f2,this['_dialog']=_0x771983,this['_imageElement']=_0x2ddbd7,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 _0x4d9338=this['_imageElement'],_0x37ecdc=_0x4d9338['getAttribute']('uploadcareImageId'),_0x4b6c35=_0x4d9338['getAttribute']('src');if(_0x37ecdc)await this['_loadImageInfo'](_0x37ecdc,_0x4b6c35);else{if(this['_imageCache']['has'](_0x4b6c35)){const _0x185f21=this['_imageCache']['get'](_0x4b6c35);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x185f21['url'],this['imageDimension']=_0x185f21['dimension'],this['imageId']=_0x185f21['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1cea34}=this['_editor'],t=_0x1cea34['t'],_0xe1a6cb=new it(_0x1cea34,this['imageStatus'],this['_attributes']);_0xe1a6cb['bind']('status')['to'](this,'imageStatus'),_0xe1a6cb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xe1a6cb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xe1a6cb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xe1a6cb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x131169,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xe1a6cb,'position':_0x520a0b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xe1a6cb['focus']();},'onHide':()=>{_0xe1a6cb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x256b8e=>!W(_0x256b8e,_0xe1a6cb['element'])}});}['_loadImageInfo'](_0x298671,_0x29a546){return H['getInfo'](_0x298671,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x43789d=>{const {width:_0x30cdf0,height:_0x202b76}=_0x43789d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x29a546,this['imageDimension']={'width':_0x30cdf0,'height':_0x202b76},this['imageId']=_0x298671;})['catch'](_0x3b2012=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b2012['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3dc030,_0x643dd6){return this['_getImageAsFile'](_0x3dc030)['then'](_0xc5df68=>H['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x643dd6['signal'],'file':_0xc5df68,'onProgress':_0x4a7f3b=>{_0x4a7f3b&&_0x4a7f3b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4a7f3b['value']));}}))['then'](_0x38c665=>{const {width:_0x3fc749,height:_0x5a020d}=_0x38c665['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38c665['cdnUrl'],this['imageDimension']={'width':_0x3fc749,'height':_0x5a020d},this['imageId']=_0x38c665['uuid'],this['imageUploadProgress']=null;const _0x4536a0=_0x3dc030['getAttribute']('src');this['_imageCache']['set'](_0x4536a0,{'id':_0x38c665['uuid'],'url':_0x38c665['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x13abf8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x13abf8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x51104e,_0x325afa){_0x51104e['on']('apply',(_0x3382a8,_0x3131f9)=>{this['_replaceImage'](_0x325afa,_0x3131f9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x51104e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x51104e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4cb1a8,_0x1f4125,_0x3e7390){const _0xa321a8=this['_editor'],{width:_0x48d5a9,height:_0x202053}=j(_0x1f4125,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x29a2ae,imageSources:_0x30d13a}=V(_0x1f4125,_0x48d5a9);_0xa321a8['model']['change'](_0x27b52c=>{if('$graveyard'===_0x4cb1a8['root']['rootName']){_0xa321a8['execute']('insertImage',{'imageType':_0x4cb1a8['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4cb1a8['getAttributes']()),'uploadcareImageId':_0x3e7390,'src':_0x29a2ae,'sources':_0x30d13a,'width':_0x48d5a9,'height':_0x202053}});const _0x12c619=_0x4cb1a8['getChildren']();_0x4cb1a8=_0xa321a8['model']['document']['selection']['getSelectedElement']();for(const _0x14a3d8 of _0x12c619)_0x27b52c['append'](_0x27b52c['cloneElement'](_0x14a3d8),_0x4cb1a8);}else _0x27b52c['setSelection'](_0x4cb1a8,'on'),_0xa321a8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4cb1a8['getAttributes']()),'uploadcareImageId':_0x3e7390,'src':_0x29a2ae,'sources':_0x30d13a,'width':_0x48d5a9,'height':_0x202053},_0x4cb1a8);_0x27b52c['setSelection'](_0x4cb1a8,'on');});}async['_getImageAsFile'](_0x2c8039){const _0x8d9e85=_0x1e75c9['window'],_0x54155b=_0x1e75c9['document']['location']['href'],_0x1f98cc=new _0x8d9e85['URL'](_0x2c8039['getAttribute']('src'),_0x54155b);if('data:'===_0x1f98cc['protocol']){const _0x4a5de7=_0x1f98cc['href']['split'](','),_0x3be282=_0x4a5de7[0x0]['match'](/:(.*?);/)[0x1],_0x1c3f33=_0x3be282['split']('/')[0x1],_0x632c8b=_0x8d9e85['atob'](_0x4a5de7[_0x4a5de7['length']-0x1]);let _0x16258b=_0x632c8b['length'];const _0x28306a=new _0x8d9e85['Uint8Array'](_0x16258b);for(;_0x16258b--;)_0x28306a[_0x16258b]=_0x632c8b['charCodeAt'](_0x16258b);return new _0x8d9e85['File']([_0x28306a],'image.'+_0x1c3f33,{'type':_0x3be282});}const _0x548b1d=_0x1f98cc['href']['split']('/'),_0x476432=_0x548b1d[_0x548b1d['length']-0x1],_0x57a42f=_0x476432['split']('.')[0x1];return _0x8d9e85['fetch'](_0x1f98cc['href'])['then'](_0x178375=>_0x178375['clone']()['blob']())['then'](_0x21bd15=>new _0x8d9e85['File']([_0x21bd15],_0x476432,{'type':'image/'+_0x57a42f}));}}class rt extends _0x2bb79b{['imageEditController'];static get['requires'](){return[_0x5ac571];}['_isEditable'];constructor(_0x1860d1){super(_0x1860d1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5bc735){const _0x382594=q(_0x5bc735);return _0x2be0f2=>!(!_0x2be0f2||!_0x2be0f2['is']('element','imageBlock')&&!_0x2be0f2['is']('element','imageInline'))&&(!!_0x2be0f2['hasAttribute']('uploadcareImageId')||!!_0x2be0f2['hasAttribute']('src')&&_0x382594(_0x2be0f2['getAttribute']('src')));}(_0x1860d1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x28f70d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x28f70d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x456da9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x456da9&&(_0x456da9['is']('element','imageBlock')||_0x456da9['is']('element','imageInline'))&&(this['imageEditController']=new st(this['editor'],this['editor']['plugins']['get'](_0x5ac571),_0x456da9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class nt extends _0x2bb79b{['refresh'](){const _0x3c9460=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3c9460&&(_0x3c9460['is']('element','imageBlock')||_0x3c9460['is']('element','imageInline')));}['execute'](_0x39ba83){const _0x51424=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1370c5=>{_0x1370c5['setAttributes'](_0x39ba83,_0x51424),_0x1370c5['removeAttribute']('srcset',_0x51424),_0x1370c5['removeAttribute']('sizes',_0x51424);});}}class at extends _0x355d1d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[Q,_0x37dc08,_0x2144ba,_0x4e2a5e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x138e3c}=this;_0x138e3c['commands']['add']('uploadcareImageEdit',new rt(_0x138e3c)),_0x138e3c['commands']['add']('uploadcareImageReplace',new nt(_0x138e3c));}}class ot extends _0x355d1d{['_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 _0x546a2c=this['editor'];_0x546a2c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4e5dae=>{const _0x1f1952=_0x546a2c['commands']['get']('uploadcareImageEdit'),_0x56b123=new _0x2a48c2(_0x4e5dae),t=_0x4e5dae['t'];return _0x56b123['set']({'icon':_0x131169,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x56b123['bind']('isEnabled')['to'](_0x1f1952),_0x56b123['bind']('isOn')['to'](_0x1f1952,'isActive'),this['listenTo'](_0x56b123,'execute',()=>{_0x546a2c['execute']('uploadcareImageEdit'),_0x546a2c['editing']['view']['focus']();}),_0x56b123;}),this['_initConfig']();}['_initConfig'](){const _0x3d155a=_0x5ee08d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3d155a),this['listenTo'](this['editor'],'destroy',()=>{_0x3d155a['remove']();});}}class ct extends _0x355d1d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[at,ot];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{X as Uploadcare,z as UploadcareCommand,Q as UploadcareEditing,ct as UploadcareImageEdit,rt as UploadcareImageEditCommand,at as UploadcareImageEditEditing,ot as UploadcareImageEditUI,F as UploadcareUI,J as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x400b03=>0x1!=_0x400b03}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xa6d91f=>{const {af:{dictionary:_0x531b40,getPluralForm:_0x2559c6}}={'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':_0x1b4e78=>0x1!=_0x1b4e78}};_0xa6d91f['af']||={'dictionary':{},'getPluralForm':null},_0xa6d91f['af']['dictionary']=Object['assign'](_0xa6d91f['af']['dictionary'],_0x531b40),_0xa6d91f['af']['getPluralForm']=_0x2559c6;})(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':_0xd05887=>0x0==_0xd05887?0x0:0x1==_0xd05887?0x1:0x2==_0xd05887?0x2:_0xd05887%0x64>=0x3&&_0xd05887%0x64<=0xa?0x3:_0xd05887%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x143843=>{const {ar:{dictionary:_0x584baa,getPluralForm:_0x43ef6c}}={'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':_0x3bbe68=>0x0==_0x3bbe68?0x0:0x1==_0x3bbe68?0x1:0x2==_0x3bbe68?0x2:_0x3bbe68%0x64>=0x3&&_0x3bbe68%0x64<=0xa?0x3:_0x3bbe68%0x64>=0xb?0x4:0x5}};_0x143843['ar']||={'dictionary':{},'getPluralForm':null},_0x143843['ar']['dictionary']=Object['assign'](_0x143843['ar']['dictionary'],_0x584baa),_0x143843['ar']['getPluralForm']=_0x43ef6c;})(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':_0x30b49b=>0x1!=_0x30b49b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x8e7d98=>{const {ast:{dictionary:_0x1b4463,getPluralForm:_0x51448b}}={'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':_0x42d76a=>0x1!=_0x42d76a}};_0x8e7d98['ast']||={'dictionary':{},'getPluralForm':null},_0x8e7d98['ast']['dictionary']=Object['assign'](_0x8e7d98['ast']['dictionary'],_0x1b4463),_0x8e7d98['ast']['getPluralForm']=_0x51448b;})(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':_0x315cef=>0x1!=_0x315cef}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5892a6=>{const {az:{dictionary:_0x3dc110,getPluralForm:_0x11d345}}={'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':_0x345df8=>0x1!=_0x345df8}};_0x5892a6['az']||={'dictionary':{},'getPluralForm':null},_0x5892a6['az']['dictionary']=Object['assign'](_0x5892a6['az']['dictionary'],_0x3dc110),_0x5892a6['az']['getPluralForm']=_0x11d345;})(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':_0x468d76=>_0x468d76%0xa==0x1&&_0x468d76%0x64!=0xb?0x0:_0x468d76%0xa>=0x2&&_0x468d76%0xa<=0x4&&(_0x468d76%0x64<0xa||_0x468d76%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2be41d=>{const {be:{dictionary:_0x216d3c,getPluralForm:_0x5b0c06}}={'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':_0x59acf1=>_0x59acf1%0xa==0x1&&_0x59acf1%0x64!=0xb?0x0:_0x59acf1%0xa>=0x2&&_0x59acf1%0xa<=0x4&&(_0x59acf1%0x64<0xa||_0x59acf1%0x64>=0x14)?0x1:0x2}};_0x2be41d['be']||={'dictionary':{},'getPluralForm':null},_0x2be41d['be']['dictionary']=Object['assign'](_0x2be41d['be']['dictionary'],_0x216d3c),_0x2be41d['be']['getPluralForm']=_0x5b0c06;})(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':_0x4f3bce=>0x1!=_0x4f3bce}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x526ff8=>{const {bg:{dictionary:_0x4ff221,getPluralForm:_0x1ab7df}}={'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':_0xa8142d=>0x1!=_0xa8142d}};_0x526ff8['bg']||={'dictionary':{},'getPluralForm':null},_0x526ff8['bg']['dictionary']=Object['assign'](_0x526ff8['bg']['dictionary'],_0x4ff221),_0x526ff8['bg']['getPluralForm']=_0x1ab7df;})(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':_0x40040b=>0x1!=_0x40040b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1cd955=>{const {bn:{dictionary:_0x4e4f7f,getPluralForm:_0x5caa7b}}={'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':_0x3b9aa2=>0x1!=_0x3b9aa2}};_0x1cd955['bn']||={'dictionary':{},'getPluralForm':null},_0x1cd955['bn']['dictionary']=Object['assign'](_0x1cd955['bn']['dictionary'],_0x4e4f7f),_0x1cd955['bn']['getPluralForm']=_0x5caa7b;})(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':_0x4d4e82=>_0x4d4e82%0xa==0x1&&_0x4d4e82%0x64!=0xb?0x0:_0x4d4e82%0xa>=0x2&&_0x4d4e82%0xa<=0x4&&(_0x4d4e82%0x64<0xa||_0x4d4e82%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1f47d6=>{const {bs:{dictionary:_0x4b910b,getPluralForm:_0x20ff1f}}={'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':_0x1269d2=>_0x1269d2%0xa==0x1&&_0x1269d2%0x64!=0xb?0x0:_0x1269d2%0xa>=0x2&&_0x1269d2%0xa<=0x4&&(_0x1269d2%0x64<0xa||_0x1269d2%0x64>=0x14)?0x1:0x2}};_0x1f47d6['bs']||={'dictionary':{},'getPluralForm':null},_0x1f47d6['bs']['dictionary']=Object['assign'](_0x1f47d6['bs']['dictionary'],_0x4b910b),_0x1f47d6['bs']['getPluralForm']=_0x20ff1f;})(window['CKEDITOR_TRANSLATIONS']||={});
|