@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250304.0 → 0.0.0-nightly-next-20250305.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x50b672,Command as _0x5b8111}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5da74f,IconGooglePhotos as _0x216884,IconGoogleDrive as _0x3d5a8a,IconFacebook as _0x17dce4,IconDropbox as _0x2f3814,IconUploadcareLink as _0x14b685,IconUploadcareImageUpload as _0x31a107,IconError as et,IconUploadcareImageEdit as _0x18d57e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x108e5c,MenuBarMenuListItemButtonView as _0x12769f,View as _0x56aad3,FocusCycler as _0x14ccd4,Dialog as _0x3d7353,DialogViewPosition as _0x5d98f4,SpinnerView as _0x4c1e7a,IconView as at,Notification as _0x42eeb4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1549aa,DomEmitterMixin as _0x141715,global as _0x5f1d08,getAncestors as _0x562a40,ObservableMixin as _0x345b5c,createElement as _0x157b02,uid as _0x59ba74}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x14dac5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1efd6f,info as _0x5ec9d0}from'@uploadcare/upload-client';import*as _0x115514 from'@uploadcare/file-uploader';var o=function(_0x2a89d0){return _0x2a89d0['Local']='local',_0x2a89d0['URL']='url',_0x2a89d0['Dropbox']='dropbox',_0x2a89d0['GDrive']='gdrive',_0x2a89d0['Facebook']='facebook',_0x2a89d0['GPhotos']='gphotos',_0x2a89d0['OneDrive']='onedrive',_0x2a89d0;}({});function _(_0x5767a2,_0x421d75,_0x61c183){const t=_0x5767a2['t'],_0x4419c5=_0x5767a2['t'];switch(_0x421d75){case o['Local']:return{'text':_0x4419c5('Insert'===_0x61c183?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4419c5('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x61c183?_0x4419c5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4419c5('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x61c183?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x61c183?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x61c183?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x61c183?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x61c183?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x421d75;}}class e extends _0x50b672{['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 _0x1dedb8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5bd6ea;for(const _0x288e42 in _0x1dedb8){const _0x133177=_0x288e42,_0x314289=_0x1dedb8[_0x133177];if('uploadcareLicenseKeyValid'==_0x314289||'uploadcareLicenseKeyInvalid'==_0x314289||'uploadcareLicenseKeyExpired'==_0x314289||'uploadcareLicenseKeyDomainLimit'==_0x314289||'uploadcareLicenseKeyNotAllowed'==_0x314289||'uploadcareLicenseKeyEvaluationLimit'==_0x314289||'uploadcareLicenseKeyTrialLimit'==_0x314289||'uploadcareLicenseKeyUsageLimit'==_0x314289){delete _0x1dedb8[_0x133177],_0x5bd6ea=_0x314289,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5bd6ea&&_0x1dedb8['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5bd6ea&&_0x1dedb8['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5bd6ea&&_0x1dedb8['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5bd6ea&&_0x1dedb8['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5bd6ea&&_0x1dedb8['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5bd6ea&&_0x1dedb8['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5bd6ea&&_0x1dedb8['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3dbba1}=this,_0x4567cb=_0x3dbba1['commands']['get']('uploadcare');if(!_0x4567cb)return;const _0x4b271f=this['_normalizeConfigSourceList'](_0x3dbba1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xfa42bc,_0x5ac12c)=>{const _0x82fbdc=this['_getIntegrationKey'](_0x5ac12c['type']);return _0xfa42bc[_0x82fbdc]||(_0xfa42bc[_0x82fbdc]=[]),_0xfa42bc[_0x82fbdc]['push'](_0x5ac12c),_0xfa42bc;},{});_0x3dbba1['plugins']['has']('ImageInsertUI')&&_0x3dbba1['commands']['get']('uploadcare')&&Object['entries'](_0x4b271f)['forEach'](([_0x5be526,_0x58c5a8])=>{_0x3dbba1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5be526,'observable':()=>_0x4567cb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x58c5a8),'formViewCreator':()=>this['_createDropdownButtons'](_0x58c5a8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x58c5a8),'override':'assetManager'!==_0x5be526});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5e35f7){const {locale:_0x729cf3}=this['editor'];return _0x5e35f7['map'](_0x1f6dad=>{const _0x1275d1=_(_0x729cf3,_0x1f6dad,'Insert');switch(_0x1f6dad){case o['Local']:return{'icon':_0x31a107,'type':o['Local'],..._0x1275d1};case o['URL']:return{'icon':_0x14b685,'type':o['URL'],..._0x1275d1};case o['Dropbox']:return{'icon':_0x2f3814,'type':o['Dropbox'],..._0x1275d1};case o['Facebook']:return{'icon':_0x17dce4,'type':o['Facebook'],..._0x1275d1};case o['GDrive']:return{'icon':_0x3d5a8a,'type':o['GDrive'],..._0x1275d1};case o['GPhotos']:return{'icon':_0x216884,'type':o['GPhotos'],..._0x1275d1};case o['OneDrive']:return{'icon':_0x5da74f,'type':o['OneDrive'],..._0x1275d1};}});}['_getIntegrationKey'](_0x23e5f3){switch(_0x23e5f3){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3d8df5,_0x47c124){const _0x10556d=this['editor'],_0x284b2a=new _0x3d8df5(_0x10556d['locale']),_0x4c0368=_0x10556d['commands']['get']('uploadcare');return _0x284b2a['bind']('isEnabled')['to'](_0x4c0368),_0x284b2a['on']('execute',()=>{_0x4c0368['execute'](_0x47c124);}),_0x284b2a;}['_createToolbarButton'](_0x4d465d){const {locale:_0x4a0362}=this['editor'],_0x25c49c=this['editor']['plugins']['get']('ImageInsertUI'),_0x5bfc2f=_0x4d465d[0x0],_0x2c8da8=this['_createButton'](_0x108e5c,_0x5bfc2f['type']);return _0x2c8da8['icon']=_0x5bfc2f['icon'],_0x2c8da8['bind']('label')['to'](_0x25c49c,'isImageSelected',_0x313099=>_(_0x4a0362,_0x5bfc2f['type'],_0x313099?'Replace':'Insert')['text']),_0x2c8da8['tooltip']=!0x0,_0x2c8da8;}['_createDropdownButtons'](_0x2bc992){const {locale:_0x2bb42e}=this['editor'],_0x4f7c43=this['editor']['plugins']['get']('ImageInsertUI');return _0x2bc992['map'](_0x316623=>{const _0x1f0b4d=this['_createButton'](_0x108e5c,_0x316623['type']);return _0x1f0b4d['withText']=!0x0,_0x1f0b4d['icon']=_0x316623['icon'],_0x1f0b4d['bind']('label')['to'](_0x4f7c43,'isImageSelected',_0x5174b6=>_(_0x2bb42e,_0x316623['type'],_0x5174b6?'Replace':'Insert')['text']),_0x1f0b4d;});}['_createMenuBarButtons'](_0x1f8ca3){return _0x1f8ca3['map'](_0x161c08=>{const _0x4f2975=this['_createButton'](_0x12769f,_0x161c08['type']);return _0x4f2975['icon']=_0x161c08['icon'],_0x4f2975['label']=_0x161c08['shortText'],_0x4f2975;});}}class q extends _0x56aad3{['focusTracker'];['focusCycler'];constructor(_0x1c89aa){super(_0x1c89aa),this['focusTracker']=new _0x1549aa(),this['focusCycler']=new _0x14ccd4({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x4758d4){super(_0x4758d4),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x1517c5,_0x4e1674){const _0x1219ef=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xfdd632=>_0xfdd632<=_0x4e1674)['map'](_0x4a881e=>_0x1517c5['replace'](/\/$/,'')+'/-/resize/'+_0x4a881e+'x/\x20'+_0x4a881e+'w');return{'imageFallbackUrl':_0x1517c5,'imageSources':[{'srcset':_0x1219ef['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4e1674+'px)\x20100vw,\x20'+_0x4e1674+'px','type':'image/webp'}]};}function A(_0x2086e9,_0x103625,_0x3698cf){const _0x40e8a4=_0x2086e9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x40e8a4?parseInt(_0x40e8a4[0x1],0xa):_0x103625,'height':_0x40e8a4?parseInt(_0x40e8a4[0x2],0xa):_0x3698cf};}function m(_0x444bc3,_0x2369eb){const _0x550227=Object['create'](_0x141715),_0x397f6d=_0x444bc3['plugins']['get']('ImageUtils'),_0x217548=_0x444bc3['editing']['mapper']['toViewElement'](_0x2369eb),_0x36d132=_0x397f6d['findViewImgElement'](_0x217548),_0x28c4b5=_0x444bc3['editing']['view']['domConverter']['viewToDom'](_0x36d132),_0x55cf9a=_0x2369eb['getAttribute']('width'),_0x35feb9=_0x2369eb['getAttribute']('height'),_0x2ba5c4='image-processing';_0x444bc3['editing']['view']['change'](_0x100fca=>{_0x100fca['addClass'](_0x2ba5c4,_0x217548),_0x100fca['setStyle']('aspect-ratio',_0x55cf9a+'/'+_0x35feb9,_0x36d132);}),_0x550227['listenTo'](_0x28c4b5,'load',()=>{_0x550227['stopListening'](_0x28c4b5,'load'),_0x444bc3['editing']['view']['change'](_0x1b6be6=>{_0x1b6be6['removeClass'](_0x2ba5c4,_0x217548),_0x1b6be6['removeStyle']('aspect-ratio',_0x36d132);});});}function V(_0x22e830){if(Array['isArray'](_0x22e830)){const _0x10a515=_0x22e830['map'](V);return _0x39d49e=>_0x10a515['some'](_0x36d182=>_0x36d182(_0x39d49e));}if('origin'==_0x22e830){const _0x227031=_0x5f1d08['window']['location']['origin'];return _0x49d2e8=>new URL(_0x49d2e8,_0x5f1d08['document']['baseURI'])['origin']==_0x227031;}return'function'==typeof _0x22e830?_0x22e830:_0x22e830 instanceof RegExp?_0x2db08e=>!(!_0x2db08e['match'](_0x22e830)&&!_0x2db08e['replace'](/^https?:\/\//,'')['match'](_0x22e830)):()=>!0x1;}function F(_0x74865e,_0x47b234){return _0x562a40(_0x74865e['target'])['includes'](_0x47b234);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x345b5c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x6c14e9,_0x209e19,_0x59bbdd){super(),this['_editor']=_0x6c14e9,this['_editing']=_0x209e19,this['_dialog']=_0x6c14e9['plugins']['get'](_0x3d7353),this['_api']=_0x209e19['ctxElement']['getAPI'](),this['_type']=_0x59bbdd,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:_0x2d0748,model:_0x113afb}=this['_editor'],_0x37acc4=_0x113afb['document']['selection']['getSelectedElement'](),_0x2526d2=_0x37acc4&&(_0x37acc4['is']('element','imageBlock')||_0x37acc4['is']('element','imageInline'));this['_formView']=new S(_0x2d0748),this['_dialog']['show']({'id':'uploadCare','icon':_0x31a107,'title':_(_0x2d0748,this['_type'],_0x2526d2?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5d98f4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x564272=>!F(_0x564272,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x39f01}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x297c51=>{const _0x3f1874=_0x39f01['length'];for(const _0x5154e4 of _0x39f01){const _0x5719a7=_0x5154e4===_0x39f01[_0x3f1874-0x1],{cdnUrl:_0x165dfb,fileInfo:_0x3bfd4b}=_0x5154e4;if(!_0x165dfb||!_0x3bfd4b)continue;const {width:_0x2d561f,height:_0x308f33}=_0x3bfd4b['imageInfo'],_0x5c7312=A(_0x165dfb,_0x2d561f,_0x308f33),_0x2d0ce6=E(_0x165dfb,_0x5c7312['width']),_0x27d04a={'id':_0x3bfd4b['uuid'],'type':'image','attributes':{'imageDimension':_0x5c7312,..._0x2d0ce6}};this['_insertAsset'](_0x27d04a,_0x5719a7,_0x297c51);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3f4b50=>{'idle'===_0x3f4b50['detail']['status']&&!_0x3f4b50['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3a4f41,_0x178d3f,_0x4dbf5e){const _0x1c0c95=this['_editor']['model']['document']['selection'],_0x28e6dc=_0x1c0c95['getSelectedElement'](),_0xf05d74=!(!_0x28e6dc||!_0x28e6dc['is']('element','imageInline'));_0x4dbf5e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3a4f41,_0xf05d74),_0x178d3f||_0x4dbf5e['setSelection'](_0x1c0c95['getLastPosition']());}['_insertImage'](_0x548158,_0x1ca530){const _0x57757d=this['_editor'],{imageDimension:_0x5a9f10,imageFallbackUrl:_0x7bee36,imageSources:_0x4eea1b}=_0x548158['attributes'];_0x57757d['execute']('insertImage',{'imageType':_0x1ca530?'imageInline':null,'source':{'uploadcareImageId':_0x548158['id'],'src':_0x7bee36,'sources':_0x4eea1b,..._0x5a9f10}});}}class n extends _0x5b8111{['_editing'];['_controller']=null;static get['requires'](){return[_0x3d7353,i];}constructor(_0xc53407){super(_0xc53407),this['_editing']=_0xc53407['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x14a95c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x14a95c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3c4cf4,publicKey:_0x59a970,signal:_0x29716f,onProgress:_0x500368}){return _0x1efd6f(_0x3c4cf4,{'publicKey':_0x59a970,'store':'auto','signal':_0x29716f,'onProgress':_0x500368});}static['getInfo'](_0x24a1a7,_0x5df964){return _0x5ec9d0(_0x24a1a7,_0x5df964);}}class p extends _0x50b672{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x14dac5,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x190c69=this['editor'];if(!!!_0x190c69['config']['get']('uploadcare'))return;_0x190c69['plugins']['get'](_0x14dac5)['createUploadAdapter']=_0x4194e8=>new x(_0x4194e8,_0x190c69),_0x190c69['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x373c3c,{imageElement:_0x47220e,data:_0x54b7a8})=>{_0x190c69['model']['change'](_0x2e5a4a=>{_0x2e5a4a['setAttribute']('uploadcareImageId',_0x54b7a8['uploadcareImageId'],_0x47220e);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x394092,_0x245075){this['loader']=_0x394092,this['editor']=_0x245075,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xb38f59=this['editor']['config']['get']('uploadcare.pubkey'),_0x732cf1=await this['loader']['file'];return C['upload']({'file':_0x732cf1,'publicKey':_0xb38f59,'signal':this['controller']['signal'],'onProgress':_0x3e6d65=>{_0x3e6d65&&_0x3e6d65['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3e6d65['value']);}})['then'](async _0xf38d4c=>{const {imageFallbackUrl:_0x42fd93,imageSources:_0x3b6d59}=E(_0xf38d4c['cdnUrl'],_0xf38d4c['imageInfo']['width']);return{'uploadcareImageId':_0xf38d4c['uuid'],'default':_0x42fd93,'sources':_0x3b6d59};})['catch'](()=>{const _0x5ee549=t('Cannot\x20upload\x20file:')+('\x20'+_0x732cf1['name']+'.');return Promise['reject'](_0x5ee549);});}['abort'](){this['controller']['abort']();}}class i extends _0x50b672{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3d7353];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x153557=this['editor'];_0x153557['commands']['add']('uploadcare',new n(_0x153557));}['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 _0x3403c6=_0x5f1d08['document']['querySelector']('input[uploadcare-file-input]');_0x3403c6&&_0x3403c6['remove']();}),async function(_0x2ae25a){const _0x18b2b2=_0x1d98e2([0x6d,0x6b,0x52,0x4e,0x69,0x51,0x4b,0x70,0x73,0x6f,0x57,0x74,0x54,0x64,0x6a,0x66,0x79,0x4c,0x58,0x59,0x6c,0x67,0x35,0x44,0x36,0x68,0x63,0x37,0x6e,0x39,0x72,0x77,0x78,0x50,0x48,0x32,0x38,0x76,0x45,0x43,0x46,0x71,0x56,0x47,0x62,0x33,0x61,0x30,0x53,0x65,0x55,0x7a,0x4d,0x42,0x75,0x4f,0x5a,0x49,0x4a,0x41,0x34,0x31]),_0x90ddf1=0x62d3fbc8,_0x5b2b68=0x62d49ae0^_0x90ddf1,_0x10e027=window[_0x1d98e2([0x44,0x61,0x74,0x65])][_0x1d98e2([0x6e,0x6f,0x77])](),_0x23587e=_0x2ae25a[_0x1d98e2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb09fb3=new window[(_0x1d98e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28112f=>{_0x23587e[_0x1d98e2([0x6f,0x6e,0x63,0x65])](_0x1d98e2([0x72,0x65,0x61,0x64,0x79]),_0x28112f);}),_0x2df2af={[_0x1d98e2([0x6b,0x74,0x79])]:_0x1d98e2([0x45,0x43]),[_0x1d98e2([0x75,0x73,0x65])]:_0x1d98e2([0x73,0x69,0x67]),[_0x1d98e2([0x63,0x72,0x76])]:_0x1d98e2([0x50,0x2d,0x32,0x35,0x36]),[_0x1d98e2([0x78])]:_0x1d98e2([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]),[_0x1d98e2([0x79])]:_0x1d98e2([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]),[_0x1d98e2([0x61,0x6c,0x67])]:_0x1d98e2([0x45,0x53,0x32,0x35,0x36])},_0x5d8236=_0x23587e[_0x1d98e2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d98e2([0x67,0x65,0x74])](_0x1d98e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e3857(){let _0xb655e0,_0x47fbe1=null,_0x1e68aa=null;try{if(_0x5d8236==_0x1d98e2([0x47,0x50,0x4c]))return _0x1d98e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb655e0=_0x4a1348(),!_0xb655e0)return _0x1d98e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb655e0[_0x1d98e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e68aa=_0x55f60b(_0xb655e0[_0x1d98e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb655e0[_0x1d98e2([0x6a,0x74,0x69])])),await _0x4ab2b9()?_0x4055ac()?_0x48ead9()?_0x1d98e2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34f65c()?(_0xb655e0[_0x1d98e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d98e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x47fbe1=_0x21eedd(_0x1d98e2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xb655e0[_0x1d98e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d98e2([0x74,0x72,0x69,0x61,0x6c])&&(_0x47fbe1=_0x21eedd(_0x1d98e2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x32f33f()):_0x1d98e2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d98e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d98e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1ee420){return _0x1d98e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48ead9(){const _0x4bc2ea=[_0x1d98e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d98e2([0x74,0x72,0x69,0x61,0x6c])][_0x1d98e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb655e0[_0x1d98e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10e027/0x3e8:0xe10*_0x5b2b68;return _0xb655e0[_0x1d98e2([0x65,0x78,0x70])]<_0x4bc2ea;}function _0x4055ac(){const _0x20ca79=_0xb655e0[_0x1d98e2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x20ca79&&(!!_0x20ca79[_0x1d98e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d98e2([0x2a]))||!!_0x20ca79[_0x1d98e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d98e2([0x55,0x50,0x4c,0x43])));}function _0x34f65c(){const _0xebb5=_0xb655e0[_0x1d98e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xebb5||0x0==_0xebb5[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4cffc7}=new URL(window[_0x1d98e2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xebb5[_0x1d98e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cffc7))return!0x0;const _0x4ae3b6=_0x4cffc7[_0x1d98e2([0x73,0x70,0x6c,0x69,0x74])](_0x1d98e2([0x2e]));return _0xebb5[_0x1d98e2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dbd7e=>_0x1dbd7e[_0x1d98e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d98e2([0x2a])))[_0x1d98e2([0x6d,0x61,0x70])](_0x5ea213=>_0x5ea213[_0x1d98e2([0x73,0x70,0x6c,0x69,0x74])](_0x1d98e2([0x2e])))[_0x1d98e2([0x73,0x6f,0x6d,0x65])](_0x20a53b=>_0x4ae3b6[_0x1d98e2([0x65,0x76,0x65,0x72,0x79])]((_0x487705,_0x271893)=>_0x20a53b[_0x271893]===_0x487705||_0x20a53b[_0x271893]===_0x1d98e2([0x2a])));}function _0x32f33f(){return _0x47fbe1&&_0x1e68aa?new window[(_0x1d98e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24c419,_0x4a6215)=>{_0x47fbe1[_0x1d98e2([0x74,0x68,0x65,0x6e])](_0x24c419,_0x4a6215),_0x1e68aa[_0x1d98e2([0x74,0x68,0x65,0x6e])](_0x455889=>{_0x455889!=_0x1d98e2([0x56,0x61,0x6c,0x69,0x64])&&_0x24c419(_0x455889);},_0x4a6215);}):_0x47fbe1||_0x1e68aa||_0x1d98e2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55f60b(_0xbae57b,_0xe673e3){return new window[(_0x1d98e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cdd61=>{if(_0x34133d())return _0x4cdd61(_0x1d98e2([0x56,0x61,0x6c,0x69,0x64]));_0x375a60(),_0x23587e[_0x1d98e2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d98e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5db44b=!0x1;const _0x3a95f6=_0x59ba74();function _0x478d47(_0xa571ab){return!!_0xa571ab&&(typeof _0xa571ab===_0x1d98e2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa571ab===_0x1d98e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa571ab[_0x1d98e2([0x74,0x68,0x65,0x6e])]===_0x1d98e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa571ab[_0x1d98e2([0x63,0x61,0x74,0x63,0x68])]===_0x1d98e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31639d(_0x13f5b1){_0x2f3c36(_0x13f5b1)[_0x1d98e2([0x74,0x68,0x65,0x6e])](_0x3dc345=>{if(!_0x3dc345||_0x3dc345[_0x1d98e2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d98e2([0x6f,0x6b]))return _0x1d98e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2e9562(_0x5b6e7f(_0x3a95f6+_0xe673e3))!=_0x3dc345[_0x1d98e2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d98e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d98e2([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d98e2([0x74,0x68,0x65,0x6e])](_0x37cf60=>(_0x2ac026(),_0x37cf60),()=>{const _0x4d75fb=_0x2e0c98();return null==_0x4d75fb?(_0x2ac026(),_0x1d98e2([0x56,0x61,0x6c,0x69,0x64])):_0x1d98e2(_0x10e027-_0x4d75fb>(0x46df7fc8^_0x90ddf1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d98e2([0x74,0x68,0x65,0x6e])](_0x4cdd61)[_0x1d98e2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cdd61(_0x1d98e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x28e71e=0x62e51548^_0x90ddf1;function _0x2ac026(){const _0x37ec99=_0x1d98e2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e9562(_0x5b6e7f(_0xbae57b)),_0x10fcda=_0x15e229(_0x2e9562(window[_0x1d98e2([0x4d,0x61,0x74,0x68])][_0x1d98e2([0x63,0x65,0x69,0x6c])](_0x10e027/_0x28e71e)));window[_0x1d98e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d98e2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37ec99,_0x10fcda);}function _0x2e0c98(){const _0x3f5115=_0x1d98e2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e9562(_0x5b6e7f(_0xbae57b)),_0x2000fe=window[_0x1d98e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d98e2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f5115);return _0x2000fe?window[_0x1d98e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15e229(_0x2000fe),0x10)*_0x28e71e:null;}function _0x2f3c36(_0x50dacf){return new window[(_0x1d98e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x413b85,_0xcc5c44)=>{_0x50dacf[_0x1d98e2([0x74,0x68,0x65,0x6e])](_0x413b85,_0xcc5c44),window[_0x1d98e2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xcc5c44,0x62d22f08^_0x90ddf1);});}}_0x23587e[_0x1d98e2([0x6f,0x6e])](_0x1d98e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18cb9b,_0x199012)=>{if(_0x199012[0x0]!=_0xbae57b)return _0x4cdd61(_0x1d98e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x199012[0x1]={..._0x199012[0x1],[_0x1d98e2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a95f6};},{[_0x1d98e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d98e2([0x68,0x69,0x67,0x68])}),_0x23587e[_0x1d98e2([0x6f,0x6e])](_0x1d98e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3704a7=>{_0x478d47(_0x3704a7[_0x1d98e2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5db44b=!0x0,_0x31639d(_0x3704a7[_0x1d98e2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d98e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d98e2([0x6c,0x6f,0x77])}),_0xb09fb3[_0x1d98e2([0x74,0x68,0x65,0x6e])](()=>{_0x5db44b||_0x4cdd61(_0x1d98e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x34133d(){return _0x23587e[_0x1d98e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d98e2([0x76,0x69,0x65,0x77])][_0x1d98e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d98e2([0x61,0x75,0x74,0x6f]);}function _0x375a60(){_0x23587e[_0x1d98e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d98e2([0x76,0x69,0x65,0x77])][_0x1d98e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d98e2([0x61,0x75,0x74,0x6f]);}}function _0x21eedd(_0x36e785){const _0x437bf4=[new window[(_0x1d98e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd2feea=>setTimeout(_0xd2feea,0x62dac504^_0x90ddf1)),_0xb09fb3[_0x1d98e2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d98e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x523fed=>{let _0x5f0dc4=0x0;_0x23587e[_0x1d98e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d98e2([0x6f,0x6e])](_0x1d98e2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x13ae96,_0x4c2b84)=>{_0x4c2b84[0x0][_0x1d98e2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5f0dc4++,_0x5f0dc4==(0x62d3fa30^_0x90ddf1)&&(_0x523fed(),_0x13ae96[_0x1d98e2([0x6f,0x66,0x66])]());});}))];return window[_0x1d98e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d98e2([0x72,0x61,0x63,0x65])](_0x437bf4)[_0x1d98e2([0x74,0x68,0x65,0x6e])](()=>_0x36e785);}async function _0x263fb8(){await _0xb09fb3,_0x23587e[_0x1d98e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d98e2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26cc9e,_0x23587e[_0x1d98e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d98e2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26cc9e,_0x23587e[_0x1d98e2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d98e2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x176ece(_0x45e585){const _0x4df3c2=_0x257f6f();_0x23587e[_0x4df3c2]=_0x1d98e2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45e585,_0x45e585!=_0x1d98e2([0x56,0x61,0x6c,0x69,0x64])&&_0x263fb8();}function _0x257f6f(){const _0x362942=window[_0x1d98e2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d98e2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d98e2([0x6e,0x6f,0x77])]())[_0x1d98e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d98e2([0x2e]),'');let _0x14018f=_0x1d98e2([0x6d]);for(let _0x232efb=0x0;_0x232efb<_0x362942[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x232efb+=0x2){let _0x3bcf4d=window[_0x1d98e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x362942[_0x1d98e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x232efb,_0x232efb+0x2));_0x3bcf4d>=_0x18b2b2[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3bcf4d-=_0x18b2b2[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14018f+=_0x18b2b2[_0x3bcf4d];}return _0x14018f;}function _0x4a1348(){const _0x28e7fb=_0x5d8236[_0x1d98e2([0x73,0x70,0x6c,0x69,0x74])](_0x1d98e2([0x2e]));if(0x3!=_0x28e7fb[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x483725(_0x28e7fb[0x1]);function _0x483725(_0x410201){const _0x385c1a=_0x2f39a5(_0x410201);return _0x385c1a&&_0x3e9f38()?_0x385c1a:null;function _0x3e9f38(){const _0x5d8feb=_0x385c1a[_0x1d98e2([0x6a,0x74,0x69])],_0x573a90=window[_0x1d98e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d8feb[_0x1d98e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d8feb[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x13c180={..._0x385c1a,[_0x1d98e2([0x6a,0x74,0x69])]:_0x5d8feb[_0x1d98e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d8feb[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x13c180[_0x1d98e2([0x76,0x63])],_0x5b6e7f(_0x13c180)==_0x573a90;}}}async function _0x4ab2b9(){let _0x1d618a=!0x0;try{const _0x8de39a=_0x5d8236[_0x1d98e2([0x73,0x70,0x6c,0x69,0x74])](_0x1d98e2([0x2e])),[_0x166e6e,_0x1583e1,_0x4420dc]=_0x8de39a;return _0x23fcc0(_0x166e6e),await _0x5a53cf(_0x166e6e,_0x1583e1,_0x4420dc),_0x1d618a;}catch(_0x928ff2){return!0x1;}function _0x23fcc0(_0x115251){const _0x2d9808=_0x2f39a5(_0x115251);_0x2d9808&&_0x2d9808[_0x1d98e2([0x61,0x6c,0x67])]==_0x1d98e2([0x45,0x53,0x32,0x35,0x36])||(_0x1d618a=!0x1);}async function _0x5a53cf(_0x8985d7,_0x197fcf,_0x2b277){const _0x14af95=window[_0x1d98e2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d98e2([0x66,0x72,0x6f,0x6d])](_0x5eab29(_0x2b277),_0x3e78d8=>_0x3e78d8[_0x1d98e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5dba95=new window[(_0x1d98e2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d98e2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8985d7+_0x1d98e2([0x2e])+_0x197fcf),_0x2ae13d=window[_0x1d98e2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d98e2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ae13d)return;const _0x3f9cdc=await _0x2ae13d[_0x1d98e2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d98e2([0x6a,0x77,0x6b]),_0x2df2af,{[_0x1d98e2([0x6e,0x61,0x6d,0x65])]:_0x1d98e2([0x45,0x43,0x44,0x53,0x41]),[_0x1d98e2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d98e2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d98e2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ae13d[_0x1d98e2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d98e2([0x6e,0x61,0x6d,0x65])]:_0x1d98e2([0x45,0x43,0x44,0x53,0x41]),[_0x1d98e2([0x68,0x61,0x73,0x68])]:{[_0x1d98e2([0x6e,0x61,0x6d,0x65])]:_0x1d98e2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f9cdc,_0x14af95,_0x5dba95)||(_0x1d618a=!0x1);}}function _0x2f39a5(_0x2b2232){return _0x2b2232[_0x1d98e2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d98e2([0x65,0x79]))?JSON[_0x1d98e2([0x70,0x61,0x72,0x73,0x65])](_0x5eab29(_0x2b2232)):null;}function _0x5eab29(_0x84a345){return window[_0x1d98e2([0x61,0x74,0x6f,0x62])](_0x84a345[_0x1d98e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d98e2([0x2b]))[_0x1d98e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d98e2([0x2f])));}function _0x5b6e7f(_0x572294){let _0x2900e6=0x1505;function _0x4488bf(_0x56724e){for(let _0xa288=0x0;_0xa288<_0x56724e[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa288++){const _0x58ceeb=_0x56724e[_0x1d98e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xa288);_0x2900e6=(_0x2900e6<<0x5)+_0x2900e6+_0x58ceeb,_0x2900e6&=_0x2900e6;}}function _0x14bfb1(_0x105e25){Array[_0x1d98e2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x105e25)?_0x105e25[_0x1d98e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14bfb1):_0x105e25&&typeof _0x105e25==_0x1d98e2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d98e2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x105e25)[_0x1d98e2([0x73,0x6f,0x72,0x74])]()[_0x1d98e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xa349c5,_0x5b824d])=>{_0x4488bf(_0xa349c5),_0x14bfb1(_0x5b824d);}):_0x4488bf(window[_0x1d98e2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x105e25));}return _0x14bfb1(_0x572294),_0x2900e6>>>0x0;}function _0x2e9562(_0x136634){return _0x136634[_0x1d98e2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d98e2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d98e2([0x30]));}function _0x15e229(_0x144e35){return _0x144e35[_0x1d98e2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d98e2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d98e2([0x6a,0x6f,0x69,0x6e])]('');}function _0x26cc9e(){}function _0x1d98e2(_0xfc6270){return _0xfc6270['map'](_0x5885b2=>String['fromCharCode'](_0x5885b2))['join']('');}_0x176ece(await _0x3e3857());}(this);}['_initSchema'](){const _0x5dc549=this['editor']['model']['schema'];_0x5dc549['isRegistered']('imageBlock')&&_0x5dc549['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5dc549['isRegistered']('imageInline')&&_0x5dc549['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x35f38c=this['editor'];_0x35f38c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x35f38c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x583e45=>_0x583e45['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x190209=_0x35f38c['commands']['get']('replaceImageSource');_0x190209&&this['listenTo'](_0x190209,'cleanupImage',(_0x4701ca,[_0x1c217d,_0x2159f3])=>{_0x1c217d['removeAttribute']('uploadcareImageId',_0x2159f3);});}['_initConfig'](){const _0x312f85=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1e1536=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x157b02(_0x5f1d08['document'],'uc-config',{..._0x312f85,'pubkey':_0x1e1536,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x301000=>{if('closeMax'==_0x301000)return'#uc-icon-arrow-down';},_0x5f1d08['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x157b02(_0x5f1d08['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5f1d08['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4806b0=this['editor']['commands']['get']('insertImage');_0x4806b0&&this['listenTo'](_0x4806b0,'execute',()=>{const _0x4c6dd5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c6dd5&&_0x4c6dd5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4c6dd5);});});const _0x16e3fe=this['editor']['commands']['get']('uploadcareImageReplace');_0x16e3fe&&this['listenTo'](_0x16e3fe,'execute',()=>{const _0xee28c0=this['editor']['model']['document']['selection']['getSelectedElement']();_0xee28c0&&_0xee28c0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xee28c0);});});}}class u extends _0x50b672{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b35ad){super(_0x4b35ad),_0x4b35ad['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x115514['defineComponents'](_0x115514);}}class ta extends _0x56aad3{constructor(_0x4f3e92){super(_0x4f3e92);const t=_0x4f3e92['t'],_0x7a3ab3=this['bindTemplate'],_0x1b36ec=new _0x4c1e7a();_0x1b36ec['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':[_0x1b36ec,{'text':_0x7a3ab3['to']('imageUploadProgress',_0xf1361e=>t('Loading\x20image...')+'\x20('+(_0xf1361e||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x56aad3{constructor(_0x52ff80){super(_0x52ff80);const t=_0x52ff80['t'];this['set']('errorType',null);const _0x5a28a8=new _0x108e5c(_0x52ff80);_0x5a28a8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5a28a8['withText']=!0x0,_0x5a28a8['class']='ck-button-action',_0x5a28a8['on']('execute',()=>{this['fire']('retry');}),_0x5a28a8['bind']('isVisible')['to'](this,'errorType',_0x416908=>'NotFound'!==_0x416908);const _0x1c3235=new at();_0x1c3235['content']=et,_0x1c3235['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4b8362=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':[_0x1c3235,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4b8362['to']('errorType',_0x2617e8=>t('NotFound'!==_0x2617e8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5a28a8]},{'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 _0x56aad3{constructor(_0x13ca8e,_0x507490){super(_0x13ca8e);const _0x1e2ea0=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x507490,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1e2ea0['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x50194d,_0xdcd1a3,_0x2927e8){super(_0x50194d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x50194d),this['_errorView']=new rt(_0x50194d),this['_editingView']=new tt(_0x50194d,_0x2927e8),this['_focusableView']=new _0x56aad3(_0x50194d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xdcd1a3),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'],_0x35911c=>{this['_addUploadcareImageEditorListeners'](_0x35911c);});}),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'](_0x1ace9e,_0x2416ec){const _0x2f7c51='uc-cloud-image-editor',_0x2821dc=_0x1ace9e['querySelector'](_0x2f7c51);if(_0x2821dc)return _0x2416ec(_0x2821dc);const _0x4500ad=new MutationObserver(_0x4ef259=>{const _0x3a0ca0=_0x4ef259['filter'](_0x547c45=>_0x547c45['target']===_0x1ace9e&&_0x547c45['addedNodes']['length']>0x0&&_0x547c45['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2f7c51);_0x3a0ca0['length']&&(_0x4500ad['disconnect'](),_0x2416ec(_0x3a0ca0[0x0]['addedNodes'][0x0]));});_0x4500ad['observe'](_0x1ace9e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2dbdb9){_0x2dbdb9['addEventListener']('apply',_0x17574f=>{this['fire']('apply',{'imageSrc':_0x17574f['detail']['cdnUrl']});}),_0x2dbdb9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x345b5c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x264816,_0x13d7ef,_0x5ad5b6){super(),this['_editor']=_0x264816,this['_dialog']=_0x13d7ef,this['_imageElement']=_0x5ad5b6,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 _0x5b836a=this['_imageElement'],_0x458215=_0x5b836a['getAttribute']('uploadcareImageId'),_0x1db1f9=_0x5b836a['getAttribute']('src');if(_0x458215)await this['_loadImageInfo'](_0x458215,_0x1db1f9);else{if(this['_imageCache']['has'](_0x1db1f9)){const _0x3c11af=this['_imageCache']['get'](_0x1db1f9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c11af['url'],this['imageDimension']=_0x3c11af['dimension'],this['imageId']=_0x3c11af['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x33557c}=this['_editor'],t=_0x33557c['t'],_0x3926e0=new Z(_0x33557c,this['imageStatus'],this['_attributes']);_0x3926e0['bind']('status')['to'](this,'imageStatus'),_0x3926e0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3926e0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3926e0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3926e0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x18d57e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3926e0,'position':_0x5d98f4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3926e0['focus']();},'onHide':()=>{_0x3926e0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x42d912=>!F(_0x42d912,_0x3926e0['element'])}});}['_loadImageInfo'](_0x3f429d,_0x4897bc){return C['getInfo'](_0x3f429d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x22b0c4=>{const {width:_0x400ed3,height:_0x443fc8}=_0x22b0c4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4897bc,this['imageDimension']={'width':_0x400ed3,'height':_0x443fc8},this['imageId']=_0x3f429d;})['catch'](_0xbd38ef=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xbd38ef['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1a4fb7,_0x3fd041){return this['_getImageAsFile'](_0x1a4fb7)['then'](_0x3de1d7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3fd041['signal'],'file':_0x3de1d7,'onProgress':_0x50911a=>{_0x50911a&&_0x50911a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x50911a['value']));}}))['then'](_0x2f1524=>{const {width:_0x3e3bff,height:_0x41118f}=_0x2f1524['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2f1524['cdnUrl'],this['imageDimension']={'width':_0x3e3bff,'height':_0x41118f},this['imageId']=_0x2f1524['uuid'],this['imageUploadProgress']=null;const _0x4f1efb=_0x1a4fb7['getAttribute']('src');this['_imageCache']['set'](_0x4f1efb,{'id':_0x2f1524['uuid'],'url':_0x2f1524['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x9b1e6d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x9b1e6d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x369316,_0x3dd09b){_0x369316['on']('apply',(_0x29e955,_0x4545d8)=>{this['_replaceImage'](_0x3dd09b,_0x4545d8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x369316['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x369316['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3e2071,_0xdc9419,_0x2c1cdd){const _0x4c6c3f=this['_editor'],{width:_0x44c2f1,height:_0x2e7664}=A(_0xdc9419,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x144d03,imageSources:_0x186923}=E(_0xdc9419,_0x44c2f1);_0x4c6c3f['model']['change'](_0x12102e=>{if('$graveyard'===_0x3e2071['root']['rootName']){_0x4c6c3f['execute']('insertImage',{'imageType':_0x3e2071['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3e2071['getAttributes']()),'uploadcareImageId':_0x2c1cdd,'src':_0x144d03,'sources':_0x186923,'width':_0x44c2f1,'height':_0x2e7664}});const _0x596c6f=_0x3e2071['getChildren']();_0x3e2071=_0x4c6c3f['model']['document']['selection']['getSelectedElement']();for(const _0x2f56f0 of _0x596c6f)_0x12102e['append'](_0x12102e['cloneElement'](_0x2f56f0),_0x3e2071);}else _0x12102e['setSelection'](_0x3e2071,'on'),_0x4c6c3f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3e2071['getAttributes']()),'uploadcareImageId':_0x2c1cdd,'src':_0x144d03,'sources':_0x186923,'width':_0x44c2f1,'height':_0x2e7664},_0x3e2071);_0x12102e['setSelection'](_0x3e2071,'on');});}async['_getImageAsFile'](_0x231902){const _0x5e7ad0=_0x5f1d08['window'],_0x4cb7a3=_0x5f1d08['document']['location']['href'],_0x13d27c=new _0x5e7ad0['URL'](_0x231902['getAttribute']('src'),_0x4cb7a3);if('data:'===_0x13d27c['protocol']){const _0x806f1b=_0x13d27c['href']['split'](','),_0x1258e=_0x806f1b[0x0]['match'](/:(.*?);/)[0x1],_0x2f0bf0=_0x1258e['split']('/')[0x1],_0xf7e7d5=_0x5e7ad0['atob'](_0x806f1b[_0x806f1b['length']-0x1]);let _0x4cbef0=_0xf7e7d5['length'];const _0x221d8b=new _0x5e7ad0['Uint8Array'](_0x4cbef0);for(;_0x4cbef0--;)_0x221d8b[_0x4cbef0]=_0xf7e7d5['charCodeAt'](_0x4cbef0);return new _0x5e7ad0['File']([_0x221d8b],'image.'+_0x2f0bf0,{'type':_0x1258e});}const _0x359a21=_0x13d27c['href']['split']('/'),_0x41cb11=_0x359a21[_0x359a21['length']-0x1],_0x570518=_0x41cb11['split']('.')[0x1];return _0x5e7ad0['fetch'](_0x13d27c['href'])['then'](_0x53dffb=>_0x53dffb['clone']()['blob']())['then'](_0x544f05=>new _0x5e7ad0['File']([_0x544f05],_0x41cb11,{'type':'image/'+_0x570518}));}}class J extends _0x5b8111{['imageEditController'];static get['requires'](){return[_0x3d7353];}['_isEditable'];constructor(_0x2c9efc){super(_0x2c9efc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4a9207){const _0x519a97=V(_0x4a9207);return _0x5ea670=>!(!_0x5ea670||!_0x5ea670['is']('element','imageBlock')&&!_0x5ea670['is']('element','imageInline'))&&(!!_0x5ea670['hasAttribute']('uploadcareImageId')||!!_0x5ea670['hasAttribute']('src')&&_0x519a97(_0x5ea670['getAttribute']('src')));}(_0x2c9efc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2b82e7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2b82e7);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1bc694=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1bc694&&(_0x1bc694['is']('element','imageBlock')||_0x1bc694['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3d7353),_0x1bc694),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x5b8111{['refresh'](){const _0x418e2c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x418e2c&&(_0x418e2c['is']('element','imageBlock')||_0x418e2c['is']('element','imageInline')));}['execute'](_0x38cf1e){const _0x2e19cd=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x28c25b=>{_0x28c25b['setAttributes'](_0x38cf1e,_0x2e19cd),_0x28c25b['removeAttribute']('srcset',_0x2e19cd),_0x28c25b['removeAttribute']('sizes',_0x2e19cd);});}}class g extends _0x50b672{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x42eeb4,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x330e54}=this;_0x330e54['commands']['add']('uploadcareImageEdit',new J(_0x330e54)),_0x330e54['commands']['add']('uploadcareImageReplace',new O(_0x330e54));}}class j extends _0x50b672{['_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 _0x4ea285=this['editor'];_0x4ea285['ui']['componentFactory']['add']('uploadcareImageEdit',_0x34c0da=>{const _0x4eca34=_0x4ea285['commands']['get']('uploadcareImageEdit'),_0x414ecf=new _0x108e5c(_0x34c0da),t=_0x34c0da['t'];return _0x414ecf['set']({'icon':_0x18d57e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x414ecf['bind']('isEnabled')['to'](_0x4eca34),_0x414ecf['bind']('isOn')['to'](_0x4eca34,'isActive'),this['listenTo'](_0x414ecf,'execute',()=>{_0x4ea285['execute']('uploadcareImageEdit'),_0x4ea285['editing']['view']['focus']();}),_0x414ecf;}),this['_initConfig']();}['_initConfig'](){const _0x5be821=_0x157b02(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5be821),this['listenTo'](this['editor'],'destroy',()=>{_0x5be821['remove']();});}}class P extends _0x50b672{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x1e2281,Command as _0x350c38}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2ac690,IconGooglePhotos as _0x15fdc2,IconGoogleDrive as _0x16d769,IconFacebook as _0x59cb58,IconDropbox as _0x1f9de1,IconUploadcareLink as _0x2f69d6,IconUploadcareImageUpload as _0x5b5089,IconError as et,IconUploadcareImageEdit as _0x5ff38f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1cf85f,MenuBarMenuListItemButtonView as _0x4ce5d9,View as _0x2bccf2,FocusCycler as _0x2bfbd2,Dialog as _0x1eaff8,DialogViewPosition as _0x26215f,SpinnerView as _0x435fba,IconView as at,Notification as _0x3d7d55}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x40e2c9,DomEmitterMixin as _0x323663,global as _0x27113a,getAncestors as _0x3ada6f,ObservableMixin as _0x21fc43,createElement as _0x9bdc85,uid as _0x13c79e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x362638}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5d3fd7,info as _0x3853ab}from'@uploadcare/upload-client';import*as _0x2d34cf from'@uploadcare/file-uploader';var o=function(_0x1267ec){return _0x1267ec['Local']='local',_0x1267ec['URL']='url',_0x1267ec['Dropbox']='dropbox',_0x1267ec['GDrive']='gdrive',_0x1267ec['Facebook']='facebook',_0x1267ec['GPhotos']='gphotos',_0x1267ec['OneDrive']='onedrive',_0x1267ec;}({});function _(_0x5604ff,_0x1819c2,_0x3f435d){const t=_0x5604ff['t'],_0x17a1e2=_0x5604ff['t'];switch(_0x1819c2){case o['Local']:return{'text':_0x17a1e2('Insert'===_0x3f435d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x17a1e2('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3f435d?_0x17a1e2('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x17a1e2('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3f435d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3f435d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3f435d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3f435d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3f435d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1819c2;}}class e extends _0x1e2281{['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 _0x23639a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa9a286;for(const _0x2ba222 in _0x23639a){const _0x3f64=_0x2ba222,_0x722ba7=_0x23639a[_0x3f64];if('uploadcareLicenseKeyValid'==_0x722ba7||'uploadcareLicenseKeyInvalid'==_0x722ba7||'uploadcareLicenseKeyExpired'==_0x722ba7||'uploadcareLicenseKeyDomainLimit'==_0x722ba7||'uploadcareLicenseKeyNotAllowed'==_0x722ba7||'uploadcareLicenseKeyEvaluationLimit'==_0x722ba7||'uploadcareLicenseKeyTrialLimit'==_0x722ba7||'uploadcareLicenseKeyUsageLimit'==_0x722ba7){delete _0x23639a[_0x3f64],_0xa9a286=_0x722ba7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xa9a286&&_0x23639a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xa9a286&&_0x23639a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xa9a286&&_0x23639a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xa9a286&&_0x23639a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xa9a286&&_0x23639a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xa9a286&&_0x23639a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xa9a286&&_0x23639a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1c0811}=this,_0x370d9c=_0x1c0811['commands']['get']('uploadcare');if(!_0x370d9c)return;const _0x29f91a=this['_normalizeConfigSourceList'](_0x1c0811['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4ac7de,_0x14c5f8)=>{const _0x4a2309=this['_getIntegrationKey'](_0x14c5f8['type']);return _0x4ac7de[_0x4a2309]||(_0x4ac7de[_0x4a2309]=[]),_0x4ac7de[_0x4a2309]['push'](_0x14c5f8),_0x4ac7de;},{});_0x1c0811['plugins']['has']('ImageInsertUI')&&_0x1c0811['commands']['get']('uploadcare')&&Object['entries'](_0x29f91a)['forEach'](([_0x1ef559,_0x1f78f2])=>{_0x1c0811['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1ef559,'observable':()=>_0x370d9c,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1f78f2),'formViewCreator':()=>this['_createDropdownButtons'](_0x1f78f2),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1f78f2),'override':'assetManager'!==_0x1ef559});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x446220){const {locale:_0x2e0be8}=this['editor'];return _0x446220['map'](_0x1e98e9=>{const _0x3018cc=_(_0x2e0be8,_0x1e98e9,'Insert');switch(_0x1e98e9){case o['Local']:return{'icon':_0x5b5089,'type':o['Local'],..._0x3018cc};case o['URL']:return{'icon':_0x2f69d6,'type':o['URL'],..._0x3018cc};case o['Dropbox']:return{'icon':_0x1f9de1,'type':o['Dropbox'],..._0x3018cc};case o['Facebook']:return{'icon':_0x59cb58,'type':o['Facebook'],..._0x3018cc};case o['GDrive']:return{'icon':_0x16d769,'type':o['GDrive'],..._0x3018cc};case o['GPhotos']:return{'icon':_0x15fdc2,'type':o['GPhotos'],..._0x3018cc};case o['OneDrive']:return{'icon':_0x2ac690,'type':o['OneDrive'],..._0x3018cc};}});}['_getIntegrationKey'](_0x4ed8e4){switch(_0x4ed8e4){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3c5dcc,_0x5bead1){const _0x19781d=this['editor'],_0x12185c=new _0x3c5dcc(_0x19781d['locale']),_0x42f52f=_0x19781d['commands']['get']('uploadcare');return _0x12185c['bind']('isEnabled')['to'](_0x42f52f),_0x12185c['on']('execute',()=>{_0x42f52f['execute'](_0x5bead1);}),_0x12185c;}['_createToolbarButton'](_0x1f83cf){const {locale:_0x2fa1ac}=this['editor'],_0x45be7e=this['editor']['plugins']['get']('ImageInsertUI'),_0x2de412=_0x1f83cf[0x0],_0x46e5ef=this['_createButton'](_0x1cf85f,_0x2de412['type']);return _0x46e5ef['icon']=_0x2de412['icon'],_0x46e5ef['bind']('label')['to'](_0x45be7e,'isImageSelected',_0x4a96c9=>_(_0x2fa1ac,_0x2de412['type'],_0x4a96c9?'Replace':'Insert')['text']),_0x46e5ef['tooltip']=!0x0,_0x46e5ef;}['_createDropdownButtons'](_0xf09eb3){const {locale:_0x3cedb1}=this['editor'],_0x56dd80=this['editor']['plugins']['get']('ImageInsertUI');return _0xf09eb3['map'](_0xd11ca=>{const _0x24b2c0=this['_createButton'](_0x1cf85f,_0xd11ca['type']);return _0x24b2c0['withText']=!0x0,_0x24b2c0['icon']=_0xd11ca['icon'],_0x24b2c0['bind']('label')['to'](_0x56dd80,'isImageSelected',_0xbd6419=>_(_0x3cedb1,_0xd11ca['type'],_0xbd6419?'Replace':'Insert')['text']),_0x24b2c0;});}['_createMenuBarButtons'](_0x38287f){return _0x38287f['map'](_0x1a91e0=>{const _0x5af29c=this['_createButton'](_0x4ce5d9,_0x1a91e0['type']);return _0x5af29c['icon']=_0x1a91e0['icon'],_0x5af29c['label']=_0x1a91e0['shortText'],_0x5af29c;});}}class q extends _0x2bccf2{['focusTracker'];['focusCycler'];constructor(_0x230dae){super(_0x230dae),this['focusTracker']=new _0x40e2c9(),this['focusCycler']=new _0x2bfbd2({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x5ec1f9){super(_0x5ec1f9),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x4f0a05,_0x1e6406){const _0x2409f0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5a3ad3=>_0x5a3ad3<=_0x1e6406)['map'](_0x1aa27a=>_0x4f0a05['replace'](/\/$/,'')+'/-/resize/'+_0x1aa27a+'x/\x20'+_0x1aa27a+'w');return{'imageFallbackUrl':_0x4f0a05,'imageSources':[{'srcset':_0x2409f0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1e6406+'px)\x20100vw,\x20'+_0x1e6406+'px','type':'image/webp'}]};}function A(_0x132d06,_0x229486,_0x24d17a){const _0x2ddd56=_0x132d06['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2ddd56?parseInt(_0x2ddd56[0x1],0xa):_0x229486,'height':_0x2ddd56?parseInt(_0x2ddd56[0x2],0xa):_0x24d17a};}function m(_0x48a337,_0x32c367){const _0x2b2164=Object['create'](_0x323663),_0x45e273=_0x48a337['plugins']['get']('ImageUtils'),_0x18917f=_0x48a337['editing']['mapper']['toViewElement'](_0x32c367),_0x3f5a0b=_0x45e273['findViewImgElement'](_0x18917f),_0x1f1f76=_0x48a337['editing']['view']['domConverter']['viewToDom'](_0x3f5a0b),_0x1ba522=_0x32c367['getAttribute']('width'),_0x1b1bee=_0x32c367['getAttribute']('height'),_0x2a253e='image-processing';_0x48a337['editing']['view']['change'](_0x5c0bac=>{_0x5c0bac['addClass'](_0x2a253e,_0x18917f),_0x5c0bac['setStyle']('aspect-ratio',_0x1ba522+'/'+_0x1b1bee,_0x3f5a0b);}),_0x2b2164['listenTo'](_0x1f1f76,'load',()=>{_0x2b2164['stopListening'](_0x1f1f76,'load'),_0x48a337['editing']['view']['change'](_0x61475b=>{_0x61475b['removeClass'](_0x2a253e,_0x18917f),_0x61475b['removeStyle']('aspect-ratio',_0x3f5a0b);});});}function V(_0x6baa4c){if(Array['isArray'](_0x6baa4c)){const _0x4db723=_0x6baa4c['map'](V);return _0x3c2686=>_0x4db723['some'](_0x13d371=>_0x13d371(_0x3c2686));}if('origin'==_0x6baa4c){const _0x273df6=_0x27113a['window']['location']['origin'];return _0x42c13d=>new URL(_0x42c13d,_0x27113a['document']['baseURI'])['origin']==_0x273df6;}return'function'==typeof _0x6baa4c?_0x6baa4c:_0x6baa4c instanceof RegExp?_0x349557=>!(!_0x349557['match'](_0x6baa4c)&&!_0x349557['replace'](/^https?:\/\//,'')['match'](_0x6baa4c)):()=>!0x1;}function F(_0x2cf612,_0x4d36c0){return _0x3ada6f(_0x2cf612['target'])['includes'](_0x4d36c0);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x21fc43(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2aa35d,_0x78fe8,_0x536ee9){super(),this['_editor']=_0x2aa35d,this['_editing']=_0x78fe8,this['_dialog']=_0x2aa35d['plugins']['get'](_0x1eaff8),this['_api']=_0x78fe8['ctxElement']['getAPI'](),this['_type']=_0x536ee9,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:_0x2e7e3c,model:_0x3cf1a7}=this['_editor'],_0x4cf4da=_0x3cf1a7['document']['selection']['getSelectedElement'](),_0x4641c9=_0x4cf4da&&(_0x4cf4da['is']('element','imageBlock')||_0x4cf4da['is']('element','imageInline'));this['_formView']=new S(_0x2e7e3c),this['_dialog']['show']({'id':'uploadCare','icon':_0x5b5089,'title':_(_0x2e7e3c,this['_type'],_0x4641c9?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x26215f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f7d4d=>!F(_0x3f7d4d,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x268036}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1e90e2=>{const _0x3a4034=_0x268036['length'];for(const _0x4daf46 of _0x268036){const _0x4a13f8=_0x4daf46===_0x268036[_0x3a4034-0x1],{cdnUrl:_0x4437c3,fileInfo:_0x108914}=_0x4daf46;if(!_0x4437c3||!_0x108914)continue;const {width:_0x40c578,height:_0x4cf5d5}=_0x108914['imageInfo'],_0x49373b=A(_0x4437c3,_0x40c578,_0x4cf5d5),_0x284b54=E(_0x4437c3,_0x49373b['width']),_0x33f229={'id':_0x108914['uuid'],'type':'image','attributes':{'imageDimension':_0x49373b,..._0x284b54}};this['_insertAsset'](_0x33f229,_0x4a13f8,_0x1e90e2);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3c9cb4=>{'idle'===_0x3c9cb4['detail']['status']&&!_0x3c9cb4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2fa6ae,_0x4a9fc4,_0x49694e){const _0x157635=this['_editor']['model']['document']['selection'],_0x5b7390=_0x157635['getSelectedElement'](),_0x325c89=!(!_0x5b7390||!_0x5b7390['is']('element','imageInline'));_0x49694e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2fa6ae,_0x325c89),_0x4a9fc4||_0x49694e['setSelection'](_0x157635['getLastPosition']());}['_insertImage'](_0x4b6960,_0x17cfe4){const _0x232269=this['_editor'],{imageDimension:_0x296c51,imageFallbackUrl:_0x13c1c5,imageSources:_0x28afe3}=_0x4b6960['attributes'];_0x232269['execute']('insertImage',{'imageType':_0x17cfe4?'imageInline':null,'source':{'uploadcareImageId':_0x4b6960['id'],'src':_0x13c1c5,'sources':_0x28afe3,..._0x296c51}});}}class n extends _0x350c38{['_editing'];['_controller']=null;static get['requires'](){return[_0x1eaff8,i];}constructor(_0x1bf12f){super(_0x1bf12f),this['_editing']=_0x1bf12f['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4442e8){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4442e8);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x2bccb6,publicKey:_0x5cd886,signal:_0x21a12e,onProgress:_0x6ce1dd}){return _0x5d3fd7(_0x2bccb6,{'publicKey':_0x5cd886,'store':'auto','signal':_0x21a12e,'onProgress':_0x6ce1dd});}static['getInfo'](_0x40da60,_0x27c4a6){return _0x3853ab(_0x40da60,_0x27c4a6);}}class p extends _0x1e2281{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x362638,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x57d7bb=this['editor'];if(!!!_0x57d7bb['config']['get']('uploadcare'))return;_0x57d7bb['plugins']['get'](_0x362638)['createUploadAdapter']=_0x499a2b=>new x(_0x499a2b,_0x57d7bb),_0x57d7bb['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x491918,{imageElement:_0x44664e,data:_0x41f494})=>{_0x57d7bb['model']['change'](_0x5c0a26=>{_0x5c0a26['setAttribute']('uploadcareImageId',_0x41f494['uploadcareImageId'],_0x44664e);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x487dae,_0x376f7d){this['loader']=_0x487dae,this['editor']=_0x376f7d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x49826b=this['editor']['config']['get']('uploadcare.pubkey'),_0x491a3=await this['loader']['file'];return C['upload']({'file':_0x491a3,'publicKey':_0x49826b,'signal':this['controller']['signal'],'onProgress':_0x53e70d=>{_0x53e70d&&_0x53e70d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x53e70d['value']);}})['then'](async _0x5821b6=>{const {imageFallbackUrl:_0x4e7eb5,imageSources:_0x3c4807}=E(_0x5821b6['cdnUrl'],_0x5821b6['imageInfo']['width']);return{'uploadcareImageId':_0x5821b6['uuid'],'default':_0x4e7eb5,'sources':_0x3c4807};})['catch'](()=>{const _0xb1b82c=t('Cannot\x20upload\x20file:')+('\x20'+_0x491a3['name']+'.');return Promise['reject'](_0xb1b82c);});}['abort'](){this['controller']['abort']();}}class i extends _0x1e2281{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1eaff8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x580152=this['editor'];_0x580152['commands']['add']('uploadcare',new n(_0x580152));}['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 _0x5497b9=_0x27113a['document']['querySelector']('input[uploadcare-file-input]');_0x5497b9&&_0x5497b9['remove']();}),async function(_0x538dc1){const _0x35f7d7=_0x4c90fd([0x67,0x56,0x46,0x72,0x5a,0x55,0x4a,0x6e,0x45,0x49,0x42,0x31,0x6d,0x51,0x57,0x34,0x70,0x71,0x4b,0x64,0x77,0x58,0x66,0x39,0x62,0x69,0x38,0x30,0x37,0x63,0x4c,0x59,0x73,0x33,0x6c,0x48,0x78,0x79,0x32,0x44,0x76,0x35,0x4d,0x41,0x36,0x7a,0x4f,0x6f,0x6b,0x52,0x47,0x4e,0x53,0x54,0x6a,0x75,0x61,0x65,0x43,0x74,0x50,0x68]),_0x3cf809=0x5837fe60,_0x448bdf=0x58309f20^_0x3cf809,_0x2d9615=window[_0x4c90fd([0x44,0x61,0x74,0x65])][_0x4c90fd([0x6e,0x6f,0x77])](),_0x441bc7=_0x538dc1[_0x4c90fd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x49f691=new window[(_0x4c90fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c1002=>{_0x441bc7[_0x4c90fd([0x6f,0x6e,0x63,0x65])](_0x4c90fd([0x72,0x65,0x61,0x64,0x79]),_0x5c1002);}),_0x19e5aa={[_0x4c90fd([0x6b,0x74,0x79])]:_0x4c90fd([0x45,0x43]),[_0x4c90fd([0x75,0x73,0x65])]:_0x4c90fd([0x73,0x69,0x67]),[_0x4c90fd([0x63,0x72,0x76])]:_0x4c90fd([0x50,0x2d,0x32,0x35,0x36]),[_0x4c90fd([0x78])]:_0x4c90fd([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]),[_0x4c90fd([0x79])]:_0x4c90fd([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]),[_0x4c90fd([0x61,0x6c,0x67])]:_0x4c90fd([0x45,0x53,0x32,0x35,0x36])},_0x5aed93=_0x441bc7[_0x4c90fd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c90fd([0x67,0x65,0x74])](_0x4c90fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x531688(){let _0x4267d5,_0xc83a4d=null,_0x5b71bb=null;try{if(_0x5aed93==_0x4c90fd([0x47,0x50,0x4c]))return _0x4c90fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4267d5=_0x531d48(),!_0x4267d5)return _0x4c90fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4267d5[_0x4c90fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b71bb=_0x4a929d(_0x4267d5[_0x4c90fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4267d5[_0x4c90fd([0x6a,0x74,0x69])])),await _0x5a73b4()?_0x1ed1f1()?_0x4845d4()?_0x4c90fd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x114f12()?(_0x4267d5[_0x4c90fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c90fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc83a4d=_0x34753a(_0x4c90fd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4267d5[_0x4c90fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c90fd([0x74,0x72,0x69,0x61,0x6c])&&(_0xc83a4d=_0x34753a(_0x4c90fd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x293a91()):_0x4c90fd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c90fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c90fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2d16e4){return _0x4c90fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4845d4(){const _0x4c4829=[_0x4c90fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c90fd([0x74,0x72,0x69,0x61,0x6c])][_0x4c90fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4267d5[_0x4c90fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d9615/0x3e8:0xe10*_0x448bdf;return _0x4267d5[_0x4c90fd([0x65,0x78,0x70])]<_0x4c4829;}function _0x1ed1f1(){const _0x5a2b0d=_0x4267d5[_0x4c90fd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5a2b0d&&(!!_0x5a2b0d[_0x4c90fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c90fd([0x2a]))||!!_0x5a2b0d[_0x4c90fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c90fd([0x55,0x50,0x4c,0x43])));}function _0x114f12(){const _0x2ce984=_0x4267d5[_0x4c90fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ce984||0x0==_0x2ce984[_0x4c90fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c701e}=new URL(window[_0x4c90fd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ce984[_0x4c90fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c701e))return!0x0;const _0x45bd20=_0x4c701e[_0x4c90fd([0x73,0x70,0x6c,0x69,0x74])](_0x4c90fd([0x2e]));return _0x2ce984[_0x4c90fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x478aa4=>_0x478aa4[_0x4c90fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c90fd([0x2a])))[_0x4c90fd([0x6d,0x61,0x70])](_0x163711=>_0x163711[_0x4c90fd([0x73,0x70,0x6c,0x69,0x74])](_0x4c90fd([0x2e])))[_0x4c90fd([0x73,0x6f,0x6d,0x65])](_0x2c8852=>_0x45bd20[_0x4c90fd([0x65,0x76,0x65,0x72,0x79])]((_0x2130c0,_0x4ab579)=>_0x2c8852[_0x4ab579]===_0x2130c0||_0x2c8852[_0x4ab579]===_0x4c90fd([0x2a])));}function _0x293a91(){return _0xc83a4d&&_0x5b71bb?new window[(_0x4c90fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x179db9,_0x597678)=>{_0xc83a4d[_0x4c90fd([0x74,0x68,0x65,0x6e])](_0x179db9,_0x597678),_0x5b71bb[_0x4c90fd([0x74,0x68,0x65,0x6e])](_0x43ef1a=>{_0x43ef1a!=_0x4c90fd([0x56,0x61,0x6c,0x69,0x64])&&_0x179db9(_0x43ef1a);},_0x597678);}):_0xc83a4d||_0x5b71bb||_0x4c90fd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a929d(_0x3c78f0,_0x38d05a){return new window[(_0x4c90fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d6b91=>{if(_0x387fd4())return _0x4d6b91(_0x4c90fd([0x56,0x61,0x6c,0x69,0x64]));_0x143f7f(),_0x441bc7[_0x4c90fd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c90fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52a54f=!0x1;const _0x2cf420=_0x13c79e();function _0x3085e9(_0x3d23c5){return!!_0x3d23c5&&(typeof _0x3d23c5===_0x4c90fd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d23c5===_0x4c90fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d23c5[_0x4c90fd([0x74,0x68,0x65,0x6e])]===_0x4c90fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d23c5[_0x4c90fd([0x63,0x61,0x74,0x63,0x68])]===_0x4c90fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd86f08(_0x20c9be){_0x3b1536(_0x20c9be)[_0x4c90fd([0x74,0x68,0x65,0x6e])](_0x22b24a=>{if(!_0x22b24a||_0x22b24a[_0x4c90fd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c90fd([0x6f,0x6b]))return _0x4c90fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x457189(_0x162ff5(_0x2cf420+_0x38d05a))!=_0x22b24a[_0x4c90fd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c90fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c90fd([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c90fd([0x74,0x68,0x65,0x6e])](_0x3accbd=>(_0x1e85da(),_0x3accbd),()=>{const _0x3fd10b=_0x3b62b5();return null==_0x3fd10b?(_0x1e85da(),_0x4c90fd([0x56,0x61,0x6c,0x69,0x64])):_0x4c90fd(_0x2d9615-_0x3fd10b>(0x7c3b7a60^_0x3cf809)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c90fd([0x74,0x68,0x65,0x6e])](_0x4d6b91)[_0x4c90fd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d6b91(_0x4c90fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1826bb=0x580110e0^_0x3cf809;function _0x1e85da(){const _0x1667ff=_0x4c90fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x457189(_0x162ff5(_0x3c78f0)),_0x5d55a9=_0x4c5f5f(_0x457189(window[_0x4c90fd([0x4d,0x61,0x74,0x68])][_0x4c90fd([0x63,0x65,0x69,0x6c])](_0x2d9615/_0x1826bb)));window[_0x4c90fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c90fd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1667ff,_0x5d55a9);}function _0x3b62b5(){const _0x124998=_0x4c90fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x457189(_0x162ff5(_0x3c78f0)),_0x14aedb=window[_0x4c90fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c90fd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x124998);return _0x14aedb?window[_0x4c90fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c5f5f(_0x14aedb),0x10)*_0x1826bb:null;}function _0x3b1536(_0x50f434){return new window[(_0x4c90fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b01c5,_0x47637c)=>{_0x50f434[_0x4c90fd([0x74,0x68,0x65,0x6e])](_0x2b01c5,_0x47637c),window[_0x4c90fd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x47637c,0x58362aa0^_0x3cf809);});}}_0x441bc7[_0x4c90fd([0x6f,0x6e])](_0x4c90fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5de124,_0x3dfda4)=>{if(_0x3dfda4[0x0]!=_0x3c78f0)return _0x4d6b91(_0x4c90fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3dfda4[0x1]={..._0x3dfda4[0x1],[_0x4c90fd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2cf420};},{[_0x4c90fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c90fd([0x68,0x69,0x67,0x68])}),_0x441bc7[_0x4c90fd([0x6f,0x6e])](_0x4c90fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4cda6d=>{_0x3085e9(_0x4cda6d[_0x4c90fd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52a54f=!0x0,_0xd86f08(_0x4cda6d[_0x4c90fd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c90fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c90fd([0x6c,0x6f,0x77])}),_0x49f691[_0x4c90fd([0x74,0x68,0x65,0x6e])](()=>{_0x52a54f||_0x4d6b91(_0x4c90fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x387fd4(){return _0x441bc7[_0x4c90fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c90fd([0x76,0x69,0x65,0x77])][_0x4c90fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c90fd([0x61,0x75,0x74,0x6f]);}function _0x143f7f(){_0x441bc7[_0x4c90fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c90fd([0x76,0x69,0x65,0x77])][_0x4c90fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c90fd([0x61,0x75,0x74,0x6f]);}}function _0x34753a(_0xa8ea39){const _0x2238f3=[new window[(_0x4c90fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf095f9=>setTimeout(_0xf095f9,0x583ec0ac^_0x3cf809)),_0x49f691[_0x4c90fd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c90fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ebdd8=>{let _0x4fca89=0x0;_0x441bc7[_0x4c90fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c90fd([0x6f,0x6e])](_0x4c90fd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52db36,_0x19f7fe)=>{_0x19f7fe[0x0][_0x4c90fd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4fca89++,_0x4fca89==(0x5837ff98^_0x3cf809)&&(_0x4ebdd8(),_0x52db36[_0x4c90fd([0x6f,0x66,0x66])]());});}))];return window[_0x4c90fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c90fd([0x72,0x61,0x63,0x65])](_0x2238f3)[_0x4c90fd([0x74,0x68,0x65,0x6e])](()=>_0xa8ea39);}async function _0x4d3c2a(){await _0x49f691,_0x441bc7[_0x4c90fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c90fd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1948b6,_0x441bc7[_0x4c90fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c90fd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1948b6,_0x441bc7[_0x4c90fd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c90fd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e84d7(_0x418368){const _0x24095a=_0x4e0ebf();_0x441bc7[_0x24095a]=_0x4c90fd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x418368,_0x418368!=_0x4c90fd([0x56,0x61,0x6c,0x69,0x64])&&_0x4d3c2a();}function _0x4e0ebf(){const _0x45bd8b=window[_0x4c90fd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c90fd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c90fd([0x6e,0x6f,0x77])]())[_0x4c90fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c90fd([0x2e]),'');let _0xd85b2=_0x4c90fd([0x67]);for(let _0x23b341=0x0;_0x23b341<_0x45bd8b[_0x4c90fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23b341+=0x2){let _0x1b7e85=window[_0x4c90fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45bd8b[_0x4c90fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23b341,_0x23b341+0x2));_0x1b7e85>=_0x35f7d7[_0x4c90fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b7e85-=_0x35f7d7[_0x4c90fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd85b2+=_0x35f7d7[_0x1b7e85];}return _0xd85b2;}function _0x531d48(){const _0x2ee69c=_0x5aed93[_0x4c90fd([0x73,0x70,0x6c,0x69,0x74])](_0x4c90fd([0x2e]));if(0x3!=_0x2ee69c[_0x4c90fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x448d5e(_0x2ee69c[0x1]);function _0x448d5e(_0x1a8701){const _0x520987=_0x2c9bd7(_0x1a8701);return _0x520987&&_0x347c52()?_0x520987:null;function _0x347c52(){const _0x53ff67=_0x520987[_0x4c90fd([0x6a,0x74,0x69])],_0x3dc0b=window[_0x4c90fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53ff67[_0x4c90fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53ff67[_0x4c90fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xea2162={..._0x520987,[_0x4c90fd([0x6a,0x74,0x69])]:_0x53ff67[_0x4c90fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53ff67[_0x4c90fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xea2162[_0x4c90fd([0x76,0x63])],_0x162ff5(_0xea2162)==_0x3dc0b;}}}async function _0x5a73b4(){let _0x421c4c=!0x0;try{const _0xe532bb=_0x5aed93[_0x4c90fd([0x73,0x70,0x6c,0x69,0x74])](_0x4c90fd([0x2e])),[_0x365b30,_0x356e16,_0x467066]=_0xe532bb;return _0x20658c(_0x365b30),await _0x1a747b(_0x365b30,_0x356e16,_0x467066),_0x421c4c;}catch(_0x4c10d0){return!0x1;}function _0x20658c(_0x441c53){const _0x323144=_0x2c9bd7(_0x441c53);_0x323144&&_0x323144[_0x4c90fd([0x61,0x6c,0x67])]==_0x4c90fd([0x45,0x53,0x32,0x35,0x36])||(_0x421c4c=!0x1);}async function _0x1a747b(_0x3858d7,_0x2f34e2,_0x1e3caa){const _0x2d3ff4=window[_0x4c90fd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c90fd([0x66,0x72,0x6f,0x6d])](_0x54c1ae(_0x1e3caa),_0x4f5950=>_0x4f5950[_0x4c90fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1adfd3=new window[(_0x4c90fd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c90fd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3858d7+_0x4c90fd([0x2e])+_0x2f34e2),_0x525b43=window[_0x4c90fd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c90fd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x525b43)return;const _0x1cc3aa=await _0x525b43[_0x4c90fd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c90fd([0x6a,0x77,0x6b]),_0x19e5aa,{[_0x4c90fd([0x6e,0x61,0x6d,0x65])]:_0x4c90fd([0x45,0x43,0x44,0x53,0x41]),[_0x4c90fd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c90fd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c90fd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x525b43[_0x4c90fd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c90fd([0x6e,0x61,0x6d,0x65])]:_0x4c90fd([0x45,0x43,0x44,0x53,0x41]),[_0x4c90fd([0x68,0x61,0x73,0x68])]:{[_0x4c90fd([0x6e,0x61,0x6d,0x65])]:_0x4c90fd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1cc3aa,_0x2d3ff4,_0x1adfd3)||(_0x421c4c=!0x1);}}function _0x2c9bd7(_0x3530cb){return _0x3530cb[_0x4c90fd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c90fd([0x65,0x79]))?JSON[_0x4c90fd([0x70,0x61,0x72,0x73,0x65])](_0x54c1ae(_0x3530cb)):null;}function _0x54c1ae(_0x39e814){return window[_0x4c90fd([0x61,0x74,0x6f,0x62])](_0x39e814[_0x4c90fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c90fd([0x2b]))[_0x4c90fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c90fd([0x2f])));}function _0x162ff5(_0x4a861f){let _0x444367=0x1505;function _0x12dcbb(_0x5b8e3d){for(let _0x505e44=0x0;_0x505e44<_0x5b8e3d[_0x4c90fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x505e44++){const _0x44a6ee=_0x5b8e3d[_0x4c90fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x505e44);_0x444367=(_0x444367<<0x5)+_0x444367+_0x44a6ee,_0x444367&=_0x444367;}}function _0x235d81(_0x461889){Array[_0x4c90fd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x461889)?_0x461889[_0x4c90fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x235d81):_0x461889&&typeof _0x461889==_0x4c90fd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c90fd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x461889)[_0x4c90fd([0x73,0x6f,0x72,0x74])]()[_0x4c90fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x48a17a,_0xc0d781])=>{_0x12dcbb(_0x48a17a),_0x235d81(_0xc0d781);}):_0x12dcbb(window[_0x4c90fd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x461889));}return _0x235d81(_0x4a861f),_0x444367>>>0x0;}function _0x457189(_0x17524a){return _0x17524a[_0x4c90fd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c90fd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c90fd([0x30]));}function _0x4c5f5f(_0x3c0b7){return _0x3c0b7[_0x4c90fd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c90fd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c90fd([0x6a,0x6f,0x69,0x6e])]('');}function _0x1948b6(){}function _0x4c90fd(_0x5548a1){return _0x5548a1['map'](_0x469555=>String['fromCharCode'](_0x469555))['join']('');}_0x3e84d7(await _0x531688());}(this);}['_initSchema'](){const _0x58a86d=this['editor']['model']['schema'];_0x58a86d['isRegistered']('imageBlock')&&_0x58a86d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x58a86d['isRegistered']('imageInline')&&_0x58a86d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xbed2ab=this['editor'];_0xbed2ab['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xbed2ab['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3ed572=>_0x3ed572['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4733d2=_0xbed2ab['commands']['get']('replaceImageSource');_0x4733d2&&this['listenTo'](_0x4733d2,'cleanupImage',(_0x4185e4,[_0x430b11,_0x30b5fd])=>{_0x430b11['removeAttribute']('uploadcareImageId',_0x30b5fd);});}['_initConfig'](){const _0x5697e2=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5c3b0f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x9bdc85(_0x27113a['document'],'uc-config',{..._0x5697e2,'pubkey':_0x5c3b0f,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4e9af1=>{if('closeMax'==_0x4e9af1)return'#uc-icon-arrow-down';},_0x27113a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x9bdc85(_0x27113a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x27113a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3f94c4=this['editor']['commands']['get']('insertImage');_0x3f94c4&&this['listenTo'](_0x3f94c4,'execute',()=>{const _0x125b7f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x125b7f&&_0x125b7f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x125b7f);});});const _0x3c7683=this['editor']['commands']['get']('uploadcareImageReplace');_0x3c7683&&this['listenTo'](_0x3c7683,'execute',()=>{const _0x623a9e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x623a9e&&_0x623a9e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x623a9e);});});}}class u extends _0x1e2281{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3cc7eb){super(_0x3cc7eb),_0x3cc7eb['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2d34cf['defineComponents'](_0x2d34cf);}}class ta extends _0x2bccf2{constructor(_0x970574){super(_0x970574);const t=_0x970574['t'],_0x29512f=this['bindTemplate'],_0x19e456=new _0x435fba();_0x19e456['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':[_0x19e456,{'text':_0x29512f['to']('imageUploadProgress',_0x37e808=>t('Loading\x20image...')+'\x20('+(_0x37e808||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x2bccf2{constructor(_0x350ffa){super(_0x350ffa);const t=_0x350ffa['t'];this['set']('errorType',null);const _0x38e8d8=new _0x1cf85f(_0x350ffa);_0x38e8d8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x38e8d8['withText']=!0x0,_0x38e8d8['class']='ck-button-action',_0x38e8d8['on']('execute',()=>{this['fire']('retry');}),_0x38e8d8['bind']('isVisible')['to'](this,'errorType',_0x59ed1d=>'NotFound'!==_0x59ed1d);const _0x39edc2=new at();_0x39edc2['content']=et,_0x39edc2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x33610e=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':[_0x39edc2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x33610e['to']('errorType',_0x21d9cc=>t('NotFound'!==_0x21d9cc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x38e8d8]},{'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 _0x2bccf2{constructor(_0x35d5c7,_0x15eaef){super(_0x35d5c7);const _0x2a2d18=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x15eaef,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2a2d18['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xac4d9d,_0x52127c,_0x588f4a){super(_0xac4d9d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xac4d9d),this['_errorView']=new rt(_0xac4d9d),this['_editingView']=new tt(_0xac4d9d,_0x588f4a),this['_focusableView']=new _0x2bccf2(_0xac4d9d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x52127c),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'],_0x338944=>{this['_addUploadcareImageEditorListeners'](_0x338944);});}),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'](_0x3d8f95,_0x331d50){const _0x244f66='uc-cloud-image-editor',_0x3554b3=_0x3d8f95['querySelector'](_0x244f66);if(_0x3554b3)return _0x331d50(_0x3554b3);const _0xee4de1=new MutationObserver(_0x42ebdd=>{const _0x1f4142=_0x42ebdd['filter'](_0x12ee68=>_0x12ee68['target']===_0x3d8f95&&_0x12ee68['addedNodes']['length']>0x0&&_0x12ee68['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x244f66);_0x1f4142['length']&&(_0xee4de1['disconnect'](),_0x331d50(_0x1f4142[0x0]['addedNodes'][0x0]));});_0xee4de1['observe'](_0x3d8f95,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1d62b4){_0x1d62b4['addEventListener']('apply',_0x3580b2=>{this['fire']('apply',{'imageSrc':_0x3580b2['detail']['cdnUrl']});}),_0x1d62b4['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x21fc43(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x17704e,_0x4645d4,_0x1058f2){super(),this['_editor']=_0x17704e,this['_dialog']=_0x4645d4,this['_imageElement']=_0x1058f2,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 _0x4a4994=this['_imageElement'],_0x56c8de=_0x4a4994['getAttribute']('uploadcareImageId'),_0xcb555f=_0x4a4994['getAttribute']('src');if(_0x56c8de)await this['_loadImageInfo'](_0x56c8de,_0xcb555f);else{if(this['_imageCache']['has'](_0xcb555f)){const _0x4feb2d=this['_imageCache']['get'](_0xcb555f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4feb2d['url'],this['imageDimension']=_0x4feb2d['dimension'],this['imageId']=_0x4feb2d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3bbc19}=this['_editor'],t=_0x3bbc19['t'],_0x11d8e6=new Z(_0x3bbc19,this['imageStatus'],this['_attributes']);_0x11d8e6['bind']('status')['to'](this,'imageStatus'),_0x11d8e6['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x11d8e6['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x11d8e6['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x11d8e6,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5ff38f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x11d8e6,'position':_0x26215f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x11d8e6['focus']();},'onHide':()=>{_0x11d8e6['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d6645=>!F(_0x3d6645,_0x11d8e6['element'])}});}['_loadImageInfo'](_0x546439,_0x235e88){return C['getInfo'](_0x546439,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x54e806=>{const {width:_0x5812c8,height:_0x373fa8}=_0x54e806['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x235e88,this['imageDimension']={'width':_0x5812c8,'height':_0x373fa8},this['imageId']=_0x546439;})['catch'](_0xf5d18d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xf5d18d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x44289e,_0x336b96){return this['_getImageAsFile'](_0x44289e)['then'](_0x1ea114=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x336b96['signal'],'file':_0x1ea114,'onProgress':_0x5e8c1c=>{_0x5e8c1c&&_0x5e8c1c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5e8c1c['value']));}}))['then'](_0x31a6dc=>{const {width:_0x15d0c8,height:_0x3401f5}=_0x31a6dc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31a6dc['cdnUrl'],this['imageDimension']={'width':_0x15d0c8,'height':_0x3401f5},this['imageId']=_0x31a6dc['uuid'],this['imageUploadProgress']=null;const _0x213746=_0x44289e['getAttribute']('src');this['_imageCache']['set'](_0x213746,{'id':_0x31a6dc['uuid'],'url':_0x31a6dc['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x571d81=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x571d81['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x137fb7,_0x2aa4b6){_0x137fb7['on']('apply',(_0x2c27ef,_0x58f128)=>{this['_replaceImage'](_0x2aa4b6,_0x58f128['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x137fb7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x137fb7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5958e0,_0x53cc0f,_0x265d2d){const _0x5d482b=this['_editor'],{width:_0x398fb1,height:_0x3d93af}=A(_0x53cc0f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x26dcc4,imageSources:_0xe1485}=E(_0x53cc0f,_0x398fb1);_0x5d482b['model']['change'](_0x24e1b1=>{if('$graveyard'===_0x5958e0['root']['rootName']){_0x5d482b['execute']('insertImage',{'imageType':_0x5958e0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5958e0['getAttributes']()),'uploadcareImageId':_0x265d2d,'src':_0x26dcc4,'sources':_0xe1485,'width':_0x398fb1,'height':_0x3d93af}});const _0x157f12=_0x5958e0['getChildren']();_0x5958e0=_0x5d482b['model']['document']['selection']['getSelectedElement']();for(const _0x1e1a1a of _0x157f12)_0x24e1b1['append'](_0x24e1b1['cloneElement'](_0x1e1a1a),_0x5958e0);}else _0x24e1b1['setSelection'](_0x5958e0,'on'),_0x5d482b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5958e0['getAttributes']()),'uploadcareImageId':_0x265d2d,'src':_0x26dcc4,'sources':_0xe1485,'width':_0x398fb1,'height':_0x3d93af},_0x5958e0);_0x24e1b1['setSelection'](_0x5958e0,'on');});}async['_getImageAsFile'](_0x552b3f){const _0x1cf96a=_0x27113a['window'],_0x16239e=_0x27113a['document']['location']['href'],_0x2c27ff=new _0x1cf96a['URL'](_0x552b3f['getAttribute']('src'),_0x16239e);if('data:'===_0x2c27ff['protocol']){const _0x56620f=_0x2c27ff['href']['split'](','),_0x26e1b8=_0x56620f[0x0]['match'](/:(.*?);/)[0x1],_0x4054a0=_0x26e1b8['split']('/')[0x1],_0x5f4abb=_0x1cf96a['atob'](_0x56620f[_0x56620f['length']-0x1]);let _0x2a9e1b=_0x5f4abb['length'];const _0x5122dd=new _0x1cf96a['Uint8Array'](_0x2a9e1b);for(;_0x2a9e1b--;)_0x5122dd[_0x2a9e1b]=_0x5f4abb['charCodeAt'](_0x2a9e1b);return new _0x1cf96a['File']([_0x5122dd],'image.'+_0x4054a0,{'type':_0x26e1b8});}const _0x1bf9f6=_0x2c27ff['href']['split']('/'),_0x1a3094=_0x1bf9f6[_0x1bf9f6['length']-0x1],_0x34cad7=_0x1a3094['split']('.')[0x1];return _0x1cf96a['fetch'](_0x2c27ff['href'])['then'](_0x522bd7=>_0x522bd7['clone']()['blob']())['then'](_0x8d9b34=>new _0x1cf96a['File']([_0x8d9b34],_0x1a3094,{'type':'image/'+_0x34cad7}));}}class J extends _0x350c38{['imageEditController'];static get['requires'](){return[_0x1eaff8];}['_isEditable'];constructor(_0x58ef28){super(_0x58ef28),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4570d0){const _0x4f3be8=V(_0x4570d0);return _0x44f6de=>!(!_0x44f6de||!_0x44f6de['is']('element','imageBlock')&&!_0x44f6de['is']('element','imageInline'))&&(!!_0x44f6de['hasAttribute']('uploadcareImageId')||!!_0x44f6de['hasAttribute']('src')&&_0x4f3be8(_0x44f6de['getAttribute']('src')));}(_0x58ef28['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2d7097=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2d7097);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x15d2d8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x15d2d8&&(_0x15d2d8['is']('element','imageBlock')||_0x15d2d8['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1eaff8),_0x15d2d8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x350c38{['refresh'](){const _0x1b3603=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1b3603&&(_0x1b3603['is']('element','imageBlock')||_0x1b3603['is']('element','imageInline')));}['execute'](_0x3f2a5c){const _0x5d676c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x51614e=>{_0x51614e['setAttributes'](_0x3f2a5c,_0x5d676c),_0x51614e['removeAttribute']('srcset',_0x5d676c),_0x51614e['removeAttribute']('sizes',_0x5d676c);});}}class g extends _0x1e2281{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3d7d55,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3f6b13}=this;_0x3f6b13['commands']['add']('uploadcareImageEdit',new J(_0x3f6b13)),_0x3f6b13['commands']['add']('uploadcareImageReplace',new O(_0x3f6b13));}}class j extends _0x1e2281{['_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 _0x30d26a=this['editor'];_0x30d26a['ui']['componentFactory']['add']('uploadcareImageEdit',_0xe0c5ec=>{const _0x5d2289=_0x30d26a['commands']['get']('uploadcareImageEdit'),_0x460ff2=new _0x1cf85f(_0xe0c5ec),t=_0xe0c5ec['t'];return _0x460ff2['set']({'icon':_0x5ff38f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x460ff2['bind']('isEnabled')['to'](_0x5d2289),_0x460ff2['bind']('isOn')['to'](_0x5d2289,'isActive'),this['listenTo'](_0x460ff2,'execute',()=>{_0x30d26a['execute']('uploadcareImageEdit'),_0x30d26a['editing']['view']['focus']();}),_0x460ff2;}),this['_initConfig']();}['_initConfig'](){const _0x46f1e4=_0x9bdc85(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x46f1e4),this['listenTo'](this['editor'],'destroy',()=>{_0x46f1e4['remove']();});}}class P extends _0x1e2281{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4224a2=>0x1!=_0x4224a2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x541e15=>{const {af:{dictionary:_0x43744f,getPluralForm:_0x3c5492}}={'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':_0x355ac5=>0x1!=_0x355ac5}};_0x541e15['af']||={'dictionary':{},'getPluralForm':null},_0x541e15['af']['dictionary']=Object['assign'](_0x541e15['af']['dictionary'],_0x43744f),_0x541e15['af']['getPluralForm']=_0x3c5492;})(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':_0x936988=>0x0==_0x936988?0x0:0x1==_0x936988?0x1:0x2==_0x936988?0x2:_0x936988%0x64>=0x3&&_0x936988%0x64<=0xa?0x3:_0x936988%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x215882=>{const {ar:{dictionary:_0x24c70d,getPluralForm:_0x27dfb9}}={'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':_0x525f04=>0x0==_0x525f04?0x0:0x1==_0x525f04?0x1:0x2==_0x525f04?0x2:_0x525f04%0x64>=0x3&&_0x525f04%0x64<=0xa?0x3:_0x525f04%0x64>=0xb?0x4:0x5}};_0x215882['ar']||={'dictionary':{},'getPluralForm':null},_0x215882['ar']['dictionary']=Object['assign'](_0x215882['ar']['dictionary'],_0x24c70d),_0x215882['ar']['getPluralForm']=_0x27dfb9;})(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':_0x2a13c5=>0x1!=_0x2a13c5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x293eb6=>{const {ast:{dictionary:_0x46e940,getPluralForm:_0x228ada}}={'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':_0x37273e=>0x1!=_0x37273e}};_0x293eb6['ast']||={'dictionary':{},'getPluralForm':null},_0x293eb6['ast']['dictionary']=Object['assign'](_0x293eb6['ast']['dictionary'],_0x46e940),_0x293eb6['ast']['getPluralForm']=_0x228ada;})(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':_0x37126b=>0x1!=_0x37126b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5ac9bf=>{const {az:{dictionary:_0x403f44,getPluralForm:_0xec30ad}}={'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':_0x372c2a=>0x1!=_0x372c2a}};_0x5ac9bf['az']||={'dictionary':{},'getPluralForm':null},_0x5ac9bf['az']['dictionary']=Object['assign'](_0x5ac9bf['az']['dictionary'],_0x403f44),_0x5ac9bf['az']['getPluralForm']=_0xec30ad;})(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':_0x4038e3=>0x1!=_0x4038e3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x164a6a=>{const {bg:{dictionary:_0x44b05b,getPluralForm:_0x2cc3b2}}={'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':_0xfeed30=>0x1!=_0xfeed30}};_0x164a6a['bg']||={'dictionary':{},'getPluralForm':null},_0x164a6a['bg']['dictionary']=Object['assign'](_0x164a6a['bg']['dictionary'],_0x44b05b),_0x164a6a['bg']['getPluralForm']=_0x2cc3b2;})(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':_0x4397fe=>0x1!=_0x4397fe}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x50be07=>{const {bn:{dictionary:_0x50aded,getPluralForm:_0x2e1ff7}}={'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':_0x34c216=>0x1!=_0x34c216}};_0x50be07['bn']||={'dictionary':{},'getPluralForm':null},_0x50be07['bn']['dictionary']=Object['assign'](_0x50be07['bn']['dictionary'],_0x50aded),_0x50be07['bn']['getPluralForm']=_0x2e1ff7;})(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':_0x4abf6b=>_0x4abf6b%0xa==0x1&&_0x4abf6b%0x64!=0xb?0x0:_0x4abf6b%0xa>=0x2&&_0x4abf6b%0xa<=0x4&&(_0x4abf6b%0x64<0xa||_0x4abf6b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4dc686=>{const {bs:{dictionary:_0xbbedd2,getPluralForm:_0x57c696}}={'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':_0x1ed3ba=>_0x1ed3ba%0xa==0x1&&_0x1ed3ba%0x64!=0xb?0x0:_0x1ed3ba%0xa>=0x2&&_0x1ed3ba%0xa<=0x4&&(_0x1ed3ba%0x64<0xa||_0x1ed3ba%0x64>=0x14)?0x1:0x2}};_0x4dc686['bs']||={'dictionary':{},'getPluralForm':null},_0x4dc686['bs']['dictionary']=Object['assign'](_0x4dc686['bs']['dictionary'],_0xbbedd2),_0x4dc686['bs']['getPluralForm']=_0x57c696;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ca.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':
|
|
23
|
+
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0x1c0f14=>0x1!=_0x1c0f14}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xfc0b1a=>{const {ca:{dictionary:_0x228305,getPluralForm:_0x5ddac0}}={'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0xee3c53=>0x1!=_0xee3c53}};_0xfc0b1a['ca']||={'dictionary':{},'getPluralForm':null},_0xfc0b1a['ca']['dictionary']=Object['assign'](_0xfc0b1a['ca']['dictionary'],_0x228305),_0xfc0b1a['ca']['getPluralForm']=_0x5ddac0;})(window['CKEDITOR_TRANSLATIONS']||={});
|