@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250509.0 → 0.0.0-nightly-20250511.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.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 _0x16fd9e,Command as _0x2dc760}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x212c22,IconGooglePhotos as _0x2a603e,IconGoogleDrive as _0x21321,IconFacebook as _0x2ccd2d,IconDropbox as _0xe707e4,IconUploadcareLink as _0x356306,IconUploadcareImageUpload as _0x4fe847,IconError as et,IconUploadcareImageEdit as _0x35a8d2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x24f4b9,MenuBarMenuListItemButtonView as _0x84096,View as _0x5281eb,FocusCycler as _0x68738,Dialog as _0x1704d5,DialogViewPosition as _0x2c2cb4,SpinnerView as _0x880f24,IconView as at,Notification as _0x4330ed}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2616a4,DomEmitterMixin as _0x3ebf3b,global as _0x2d3070,getAncestors as _0x2a0e95,ObservableMixin as _0x436880,createElement as _0x15315f,uid as _0x50e17a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3d9736}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x24c528,info as _0x2a6a2e}from'@uploadcare/upload-client';import*as _0xda82f from'@uploadcare/file-uploader';var o=function(_0xba19cf){return _0xba19cf['Local']='local',_0xba19cf['URL']='url',_0xba19cf['Dropbox']='dropbox',_0xba19cf['GDrive']='gdrive',_0xba19cf['Facebook']='facebook',_0xba19cf['GPhotos']='gphotos',_0xba19cf['OneDrive']='onedrive',_0xba19cf;}({});function _(_0x4f66bf,_0x5422aa,_0x3941fb){const t=_0x4f66bf['t'],_0x34d331=_0x4f66bf['t'];switch(_0x5422aa){case o['Local']:return{'text':_0x34d331('Insert'===_0x3941fb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x34d331('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3941fb?_0x34d331('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x34d331('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3941fb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3941fb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3941fb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3941fb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3941fb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5422aa;}}class e extends _0x16fd9e{['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 _0x500d9d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d26f1;for(const _0x124976 in _0x500d9d){const _0x1cec8b=_0x124976,_0x3879cc=_0x500d9d[_0x1cec8b];if('uploadcareLicenseKeyValid'==_0x3879cc||'uploadcareLicenseKeyInvalid'==_0x3879cc||'uploadcareLicenseKeyExpired'==_0x3879cc||'uploadcareLicenseKeyDomainLimit'==_0x3879cc||'uploadcareLicenseKeyNotAllowed'==_0x3879cc||'uploadcareLicenseKeyEvaluationLimit'==_0x3879cc||'uploadcareLicenseKeyTrialLimit'==_0x3879cc||'uploadcareLicenseKeyUsageLimit'==_0x3879cc){delete _0x500d9d[_0x1cec8b],_0x3d26f1=_0x3879cc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3d26f1&&_0x500d9d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3d26f1&&_0x500d9d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3d26f1&&_0x500d9d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3d26f1&&_0x500d9d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3d26f1&&_0x500d9d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3d26f1&&_0x500d9d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3d26f1&&_0x500d9d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x16158c}=this,_0x27f1d2=_0x16158c['commands']['get']('uploadcare');if(!_0x27f1d2)return;const _0x55930c=this['_normalizeConfigSourceList'](_0x16158c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x481a60,_0x1aeaa5)=>{const _0x55e572=this['_getIntegrationKey'](_0x1aeaa5['type']);return _0x481a60[_0x55e572]||(_0x481a60[_0x55e572]=[]),_0x481a60[_0x55e572]['push'](_0x1aeaa5),_0x481a60;},{});_0x16158c['plugins']['has']('ImageInsertUI')&&_0x16158c['commands']['get']('uploadcare')&&Object['entries'](_0x55930c)['forEach'](([_0x580499,_0x5e0dee])=>{_0x16158c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x580499,'observable':()=>_0x27f1d2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5e0dee),'formViewCreator':()=>this['_createDropdownButtons'](_0x5e0dee),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5e0dee),'override':'assetManager'!==_0x580499});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5b0ca1){const {locale:_0x3f44d5}=this['editor'];return _0x5b0ca1['map'](_0x31cf97=>{const _0xb5f26d=_(_0x3f44d5,_0x31cf97,'Insert');switch(_0x31cf97){case o['Local']:return{'icon':_0x4fe847,'type':o['Local'],..._0xb5f26d};case o['URL']:return{'icon':_0x356306,'type':o['URL'],..._0xb5f26d};case o['Dropbox']:return{'icon':_0xe707e4,'type':o['Dropbox'],..._0xb5f26d};case o['Facebook']:return{'icon':_0x2ccd2d,'type':o['Facebook'],..._0xb5f26d};case o['GDrive']:return{'icon':_0x21321,'type':o['GDrive'],..._0xb5f26d};case o['GPhotos']:return{'icon':_0x2a603e,'type':o['GPhotos'],..._0xb5f26d};case o['OneDrive']:return{'icon':_0x212c22,'type':o['OneDrive'],..._0xb5f26d};}});}['_getIntegrationKey'](_0x3ad5da){switch(_0x3ad5da){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1b12f4,_0x15cb9f){const _0x3c9fdf=this['editor'],_0x30373d=new _0x1b12f4(_0x3c9fdf['locale']),_0x40deeb=_0x3c9fdf['commands']['get']('uploadcare');return _0x30373d['bind']('isEnabled')['to'](_0x40deeb),_0x30373d['on']('execute',()=>{_0x40deeb['execute'](_0x15cb9f);}),_0x30373d;}['_createToolbarButton'](_0x58282c){const {locale:_0x38f3f5}=this['editor'],_0x292d4b=this['editor']['plugins']['get']('ImageInsertUI'),_0x30495b=_0x58282c[0x0],_0x54fc48=this['_createButton'](_0x24f4b9,_0x30495b['type']);return _0x54fc48['icon']=_0x30495b['icon'],_0x54fc48['bind']('label')['to'](_0x292d4b,'isImageSelected',_0x8866c7=>_(_0x38f3f5,_0x30495b['type'],_0x8866c7?'Replace':'Insert')['text']),_0x54fc48['tooltip']=!0x0,_0x54fc48;}['_createDropdownButtons'](_0x238807){const {locale:_0x1616a9}=this['editor'],_0x4107da=this['editor']['plugins']['get']('ImageInsertUI');return _0x238807['map'](_0x172dfd=>{const _0x498ff6=this['_createButton'](_0x24f4b9,_0x172dfd['type']);return _0x498ff6['withText']=!0x0,_0x498ff6['icon']=_0x172dfd['icon'],_0x498ff6['bind']('label')['to'](_0x4107da,'isImageSelected',_0x3a96d1=>_(_0x1616a9,_0x172dfd['type'],_0x3a96d1?'Replace':'Insert')['text']),_0x498ff6;});}['_createMenuBarButtons'](_0x127f9a){return _0x127f9a['map'](_0x577c4c=>{const _0x3be8f1=this['_createButton'](_0x84096,_0x577c4c['type']);return _0x3be8f1['icon']=_0x577c4c['icon'],_0x3be8f1['label']=_0x577c4c['shortText'],_0x3be8f1;});}}class q extends _0x5281eb{['focusTracker'];['focusCycler'];constructor(_0x518001){super(_0x518001),this['focusTracker']=new _0x2616a4(),this['focusCycler']=new _0x68738({'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(_0x29a5e8){super(_0x29a5e8),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(_0x5e267c,_0x22cfba){const _0x470d37=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2d67ea=>_0x2d67ea<=_0x22cfba)['map'](_0x40dca1=>_0x5e267c['replace'](/\/$/,'')+'/-/resize/'+_0x40dca1+'x/\x20'+_0x40dca1+'w');return{'imageFallbackUrl':_0x5e267c,'imageSources':[{'srcset':_0x470d37['join'](',\x20'),'sizes':'(max-width:\x20'+_0x22cfba+'px)\x20100vw,\x20'+_0x22cfba+'px','type':'image/webp'}]};}function A(_0x4b70ac,_0x20a37d,_0x4bd05e){const _0x5eba14=_0x4b70ac['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5eba14?parseInt(_0x5eba14[0x1],0xa):_0x20a37d,'height':_0x5eba14?parseInt(_0x5eba14[0x2],0xa):_0x4bd05e};}function m(_0x1042b9,_0x44c07d){const _0x41d48b=Object['create'](_0x3ebf3b),_0x58b74b=_0x1042b9['plugins']['get']('ImageUtils'),_0x5d6c15=_0x1042b9['editing']['mapper']['toViewElement'](_0x44c07d),_0x178561=_0x58b74b['findViewImgElement'](_0x5d6c15),_0x3660cb=_0x1042b9['editing']['view']['domConverter']['viewToDom'](_0x178561),_0x1b8b9e=_0x44c07d['getAttribute']('width'),_0x34b2e5=_0x44c07d['getAttribute']('height'),_0x564524='image-processing';_0x1042b9['editing']['view']['change'](_0x8fb23c=>{_0x8fb23c['addClass'](_0x564524,_0x5d6c15),_0x8fb23c['setStyle']('aspect-ratio',_0x1b8b9e+'/'+_0x34b2e5,_0x178561);}),_0x41d48b['listenTo'](_0x3660cb,'load',()=>{_0x41d48b['stopListening'](_0x3660cb,'load'),_0x1042b9['editing']['view']['change'](_0x38329e=>{_0x38329e['removeClass'](_0x564524,_0x5d6c15),_0x38329e['removeStyle']('aspect-ratio',_0x178561);});});}function V(_0x163868){if(Array['isArray'](_0x163868)){const _0x2f9f47=_0x163868['map'](V);return _0x274c9f=>_0x2f9f47['some'](_0x3e672d=>_0x3e672d(_0x274c9f));}if('origin'==_0x163868){const _0x40b92a=_0x2d3070['window']['location']['origin'];return _0x3bc17f=>new URL(_0x3bc17f,_0x2d3070['document']['baseURI'])['origin']==_0x40b92a;}return'function'==typeof _0x163868?_0x163868:_0x163868 instanceof RegExp?_0x224692=>!(!_0x224692['match'](_0x163868)&&!_0x224692['replace'](/^https?:\/\//,'')['match'](_0x163868)):()=>!0x1;}function F(_0x5953a4,_0x5844e8){return _0x2a0e95(_0x5953a4['target'])['includes'](_0x5844e8);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x436880(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x17269c,_0x15b597,_0x383974){super(),this['_editor']=_0x17269c,this['_editing']=_0x15b597,this['_dialog']=_0x17269c['plugins']['get'](_0x1704d5),this['_api']=_0x15b597['ctxElement']['getAPI'](),this['_type']=_0x383974,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:_0x2b7b1c,model:_0x536e2a}=this['_editor'],_0x56b38c=_0x536e2a['document']['selection']['getSelectedElement'](),_0x94a454=_0x56b38c&&(_0x56b38c['is']('element','imageBlock')||_0x56b38c['is']('element','imageInline'));this['_formView']=new S(_0x2b7b1c),this['_dialog']['show']({'id':'uploadCare','icon':_0x4fe847,'title':_(_0x2b7b1c,this['_type'],_0x94a454?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2c2cb4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1b888e=>!F(_0x1b888e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4a99c8}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x529df6=>{const _0x1fbe83=_0x4a99c8['length'];for(const _0x1b5ec6 of _0x4a99c8){const _0x4eeb3f=_0x1b5ec6===_0x4a99c8[_0x1fbe83-0x1],{cdnUrl:_0x29832c,fileInfo:_0x4aac13}=_0x1b5ec6;if(!_0x29832c||!_0x4aac13)continue;const {width:_0x2c90d9,height:_0x3cb208}=_0x4aac13['imageInfo'],_0x151b8b=A(_0x29832c,_0x2c90d9,_0x3cb208),_0x2de749=E(_0x29832c,_0x151b8b['width']),_0x458ccc={'id':_0x4aac13['uuid'],'type':'image','attributes':{'imageDimension':_0x151b8b,..._0x2de749}};this['_insertAsset'](_0x458ccc,_0x4eeb3f,_0x529df6);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x548bc1=>{'idle'===_0x548bc1['detail']['status']&&!_0x548bc1['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4e0187,_0x4a6324,_0x1ab4ee){const _0xc610dc=this['_editor']['model']['document']['selection'],_0x4896c8=_0xc610dc['getSelectedElement'](),_0x2ea260=!(!_0x4896c8||!_0x4896c8['is']('element','imageInline'));_0x1ab4ee['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4e0187,_0x2ea260),_0x4a6324||_0x1ab4ee['setSelection'](_0xc610dc['getLastPosition']());}['_insertImage'](_0x6756cb,_0x46779e){const _0x55c364=this['_editor'],{imageDimension:_0xd92aa3,imageFallbackUrl:_0x144593,imageSources:_0x4c1e28}=_0x6756cb['attributes'];_0x55c364['execute']('insertImage',{'imageType':_0x46779e?'imageInline':null,'source':{'uploadcareImageId':_0x6756cb['id'],'src':_0x144593,'sources':_0x4c1e28,..._0xd92aa3}});}}class n extends _0x2dc760{['_editing'];['_controller']=null;static get['requires'](){return[_0x1704d5,i];}constructor(_0x5e9c18){super(_0x5e9c18),this['_editing']=_0x5e9c18['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x425b3b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x425b3b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x233c78,publicKey:_0x4c396d,signal:_0x2af195,onProgress:_0x50ba94}){return _0x24c528(_0x233c78,{'publicKey':_0x4c396d,'store':'auto','signal':_0x2af195,'onProgress':_0x50ba94});}static['getInfo'](_0x16ba86,_0x2fa3c8){return _0x2a6a2e(_0x16ba86,_0x2fa3c8);}}class p extends _0x16fd9e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3d9736,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x44a251=this['editor'];if(!!!_0x44a251['config']['get']('uploadcare'))return;_0x44a251['plugins']['get'](_0x3d9736)['createUploadAdapter']=_0x1a1820=>new x(_0x1a1820,_0x44a251),_0x44a251['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5cf986,{imageElement:_0x4729fb,data:_0x3ae371})=>{_0x44a251['model']['change'](_0x19887f=>{_0x19887f['setAttribute']('uploadcareImageId',_0x3ae371['uploadcareImageId'],_0x4729fb);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2ff5fb,_0x2a13b6){this['loader']=_0x2ff5fb,this['editor']=_0x2a13b6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x21b0b8=this['editor']['config']['get']('uploadcare.pubkey'),_0x1e73e3=await this['loader']['file'];return C['upload']({'file':_0x1e73e3,'publicKey':_0x21b0b8,'signal':this['controller']['signal'],'onProgress':_0x4b9c45=>{_0x4b9c45&&_0x4b9c45['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4b9c45['value']);}})['then'](async _0x5cc82a=>{const {imageFallbackUrl:_0x3cfe49,imageSources:_0x8f3873}=E(_0x5cc82a['cdnUrl'],_0x5cc82a['imageInfo']['width']);return{'uploadcareImageId':_0x5cc82a['uuid'],'default':_0x3cfe49,'sources':_0x8f3873};})['catch'](()=>{const _0x394d63=t('Cannot\x20upload\x20file:')+('\x20'+_0x1e73e3['name']+'.');return Promise['reject'](_0x394d63);});}['abort'](){this['controller']['abort']();}}class i extends _0x16fd9e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1704d5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0xeaec09=this['editor'];_0xeaec09['commands']['add']('uploadcare',new n(_0xeaec09));}['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 _0x32470c=_0x2d3070['document']['querySelector']('input[uploadcare-file-input]');_0x32470c&&_0x32470c['remove']();}),async function(_0x182bc6){const _0xee012e=_0x4636e9([0x72,0x62,0x54,0x4c,0x70,0x33,0x32,0x55,0x43,0x45,0x75,0x69,0x79,0x6d,0x66,0x36,0x6c,0x30,0x50,0x52,0x5a,0x47,0x4b,0x6a,0x44,0x76,0x48,0x4a,0x73,0x63,0x74,0x59,0x39,0x4f,0x4d,0x68,0x53,0x64,0x67,0x61,0x78,0x38,0x41,0x51,0x31,0x6f,0x42,0x4e,0x7a,0x57,0x65,0x46,0x6b,0x37,0x58,0x56,0x71,0x49,0x77,0x34,0x35,0x6e]),_0x1d8ba3=0x3918baf8,_0x8c6c54=0x391fdda0^_0x1d8ba3,_0x278d59=window[_0x4636e9([0x44,0x61,0x74,0x65])][_0x4636e9([0x6e,0x6f,0x77])](),_0x2883e9=_0x182bc6[_0x4636e9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2cf0c3=new window[(_0x4636e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28dec1=>{_0x2883e9[_0x4636e9([0x6f,0x6e,0x63,0x65])](_0x4636e9([0x72,0x65,0x61,0x64,0x79]),_0x28dec1);}),_0xb5407={[_0x4636e9([0x6b,0x74,0x79])]:_0x4636e9([0x45,0x43]),[_0x4636e9([0x75,0x73,0x65])]:_0x4636e9([0x73,0x69,0x67]),[_0x4636e9([0x63,0x72,0x76])]:_0x4636e9([0x50,0x2d,0x32,0x35,0x36]),[_0x4636e9([0x78])]:_0x4636e9([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]),[_0x4636e9([0x79])]:_0x4636e9([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]),[_0x4636e9([0x61,0x6c,0x67])]:_0x4636e9([0x45,0x53,0x32,0x35,0x36])},_0x2a7637=_0x2883e9[_0x4636e9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4636e9([0x67,0x65,0x74])](_0x4636e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d5021(){let _0x2a5507,_0x396004=null,_0x380074=null;try{if(_0x2a7637==_0x4636e9([0x47,0x50,0x4c]))return _0x4636e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a5507=_0x1571a5(),!_0x2a5507)return _0x4636e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a5507[_0x4636e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x380074=_0x77ad03(_0x2a5507[_0x4636e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a5507[_0x4636e9([0x6a,0x74,0x69])])),await _0x2185ed()?_0x324932()?_0x2df9ee()?_0x4636e9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c303e()?(_0x2a5507[_0x4636e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4636e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x396004=_0x48bb9d(_0x4636e9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2a5507[_0x4636e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4636e9([0x74,0x72,0x69,0x61,0x6c])&&(_0x396004=_0x48bb9d(_0x4636e9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2ec5eb()):_0x4636e9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4636e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4636e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x560c0e){return _0x4636e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2df9ee(){const _0x296750=[_0x4636e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4636e9([0x74,0x72,0x69,0x61,0x6c])][_0x4636e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a5507[_0x4636e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x278d59/0x3e8:0xe10*_0x8c6c54;return _0x2a5507[_0x4636e9([0x65,0x78,0x70])]<_0x296750;}function _0x324932(){const _0x49f799=_0x2a5507[_0x4636e9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x49f799&&(!!_0x49f799[_0x4636e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4636e9([0x2a]))||!!_0x49f799[_0x4636e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4636e9([0x55,0x50,0x4c,0x43])));}function _0x2c303e(){const _0x413a10=_0x2a5507[_0x4636e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x413a10||0x0==_0x413a10[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41d3db}=new URL(window[_0x4636e9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x413a10[_0x4636e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41d3db))return!0x0;const _0xe3cdae=_0x41d3db[_0x4636e9([0x73,0x70,0x6c,0x69,0x74])](_0x4636e9([0x2e]));return _0x413a10[_0x4636e9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a04d5=>_0x1a04d5[_0x4636e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4636e9([0x2a])))[_0x4636e9([0x6d,0x61,0x70])](_0x13cb34=>_0x13cb34[_0x4636e9([0x73,0x70,0x6c,0x69,0x74])](_0x4636e9([0x2e])))[_0x4636e9([0x73,0x6f,0x6d,0x65])](_0x1cc8c6=>_0xe3cdae[_0x4636e9([0x65,0x76,0x65,0x72,0x79])]((_0x2c5d35,_0xb7719)=>_0x1cc8c6[_0xb7719]===_0x2c5d35||_0x1cc8c6[_0xb7719]===_0x4636e9([0x2a])));}function _0x2ec5eb(){return _0x396004&&_0x380074?new window[(_0x4636e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a3cf1,_0xffa800)=>{_0x396004[_0x4636e9([0x74,0x68,0x65,0x6e])](_0x2a3cf1,_0xffa800),_0x380074[_0x4636e9([0x74,0x68,0x65,0x6e])](_0x1f8756=>{_0x1f8756!=_0x4636e9([0x56,0x61,0x6c,0x69,0x64])&&_0x2a3cf1(_0x1f8756);},_0xffa800);}):_0x396004||_0x380074||_0x4636e9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x77ad03(_0x3104e6,_0x35961c){return new window[(_0x4636e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2732f9=>{if(_0x5c984c())return _0x2732f9(_0x4636e9([0x56,0x61,0x6c,0x69,0x64]));_0x3f389f(),_0x2883e9[_0x4636e9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4636e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56fca6=!0x1;const _0x40261d=_0x50e17a();function _0x360717(_0x5cf959){return!!_0x5cf959&&(typeof _0x5cf959===_0x4636e9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5cf959===_0x4636e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5cf959[_0x4636e9([0x74,0x68,0x65,0x6e])]===_0x4636e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5cf959[_0x4636e9([0x63,0x61,0x74,0x63,0x68])]===_0x4636e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b6220(_0x4d6918){_0x397069(_0x4d6918)[_0x4636e9([0x74,0x68,0x65,0x6e])](_0x39d64c=>{if(!_0x39d64c||_0x39d64c[_0x4636e9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4636e9([0x6f,0x6b]))return _0x4636e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b388f(_0x2b1c77(_0x40261d+_0x35961c))!=_0x39d64c[_0x4636e9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4636e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4636e9([0x56,0x61,0x6c,0x69,0x64]);})[_0x4636e9([0x74,0x68,0x65,0x6e])](_0x25a752=>(_0x36ec8d(),_0x25a752),()=>{const _0x3b0ac6=_0x48592a();return null==_0x3b0ac6?(_0x36ec8d(),_0x4636e9([0x56,0x61,0x6c,0x69,0x64])):_0x4636e9(_0x278d59-_0x3b0ac6>(0x1d143ef8^_0x1d8ba3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4636e9([0x74,0x68,0x65,0x6e])](_0x2732f9)[_0x4636e9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2732f9(_0x4636e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e8fcb=0x392e5478^_0x1d8ba3;function _0x36ec8d(){const _0x425c59=_0x4636e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b388f(_0x2b1c77(_0x3104e6)),_0x49e2ae=_0xb1cb6f(_0x4b388f(window[_0x4636e9([0x4d,0x61,0x74,0x68])][_0x4636e9([0x63,0x65,0x69,0x6c])](_0x278d59/_0x1e8fcb)));window[_0x4636e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4636e9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x425c59,_0x49e2ae);}function _0x48592a(){const _0x1d727d=_0x4636e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b388f(_0x2b1c77(_0x3104e6)),_0x55a013=window[_0x4636e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4636e9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d727d);return _0x55a013?window[_0x4636e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb1cb6f(_0x55a013),0x10)*_0x1e8fcb:null;}function _0x397069(_0x3d55d0){return new window[(_0x4636e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46295b,_0x51fd5e)=>{_0x3d55d0[_0x4636e9([0x74,0x68,0x65,0x6e])](_0x46295b,_0x51fd5e),window[_0x4636e9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51fd5e,0x39196e38^_0x1d8ba3);});}}_0x2883e9[_0x4636e9([0x6f,0x6e])](_0x4636e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34db38,_0x4f23af)=>{if(_0x4f23af[0x0]!=_0x3104e6)return _0x2732f9(_0x4636e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f23af[0x1]={..._0x4f23af[0x1],[_0x4636e9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40261d};},{[_0x4636e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4636e9([0x68,0x69,0x67,0x68])}),_0x2883e9[_0x4636e9([0x6f,0x6e])](_0x4636e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d778b=>{_0x360717(_0x5d778b[_0x4636e9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56fca6=!0x0,_0x5b6220(_0x5d778b[_0x4636e9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4636e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4636e9([0x6c,0x6f,0x77])}),_0x2cf0c3[_0x4636e9([0x74,0x68,0x65,0x6e])](()=>{_0x56fca6||_0x2732f9(_0x4636e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c984c(){return _0x2883e9[_0x4636e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4636e9([0x76,0x69,0x65,0x77])][_0x4636e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4636e9([0x61,0x75,0x74,0x6f]);}function _0x3f389f(){_0x2883e9[_0x4636e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4636e9([0x76,0x69,0x65,0x77])][_0x4636e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4636e9([0x61,0x75,0x74,0x6f]);}}function _0x48bb9d(_0x153bf0){const _0x250459=[new window[(_0x4636e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4936f9=>setTimeout(_0x4936f9,0x39118434^_0x1d8ba3)),_0x2cf0c3[_0x4636e9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4636e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x304145=>{let _0x3df69f=0x0;_0x2883e9[_0x4636e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4636e9([0x6f,0x6e])](_0x4636e9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x321a16,_0x959d82)=>{_0x959d82[0x0][_0x4636e9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3df69f++,_0x3df69f==(0x3918bb00^_0x1d8ba3)&&(_0x304145(),_0x321a16[_0x4636e9([0x6f,0x66,0x66])]());});}))];return window[_0x4636e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4636e9([0x72,0x61,0x63,0x65])](_0x250459)[_0x4636e9([0x74,0x68,0x65,0x6e])](()=>_0x153bf0);}async function _0x2eab63(){await _0x2cf0c3,_0x2883e9[_0x4636e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4636e9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x322921,_0x2883e9[_0x4636e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4636e9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x322921,_0x2883e9[_0x4636e9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4636e9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x506c4f(_0x350345){const _0x266299=_0x3ab03b();_0x2883e9[_0x266299]=_0x4636e9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x350345,_0x350345!=_0x4636e9([0x56,0x61,0x6c,0x69,0x64])&&_0x2eab63();}function _0x3ab03b(){const _0x4d7029=window[_0x4636e9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4636e9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4636e9([0x6e,0x6f,0x77])]())[_0x4636e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4636e9([0x2e]),'');let _0x5ca7a9=_0x4636e9([0x72]);for(let _0xcfe2a2=0x0;_0xcfe2a2<_0x4d7029[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcfe2a2+=0x2){let _0x650a18=window[_0x4636e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d7029[_0x4636e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcfe2a2,_0xcfe2a2+0x2));_0x650a18>=_0xee012e[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x650a18-=_0xee012e[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ca7a9+=_0xee012e[_0x650a18];}return _0x5ca7a9;}function _0x1571a5(){const _0x551e07=_0x2a7637[_0x4636e9([0x73,0x70,0x6c,0x69,0x74])](_0x4636e9([0x2e]));if(0x3!=_0x551e07[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7572aa(_0x551e07[0x1]);function _0x7572aa(_0x2d1355){const _0x4b17fc=_0x598c2a(_0x2d1355);return _0x4b17fc&&_0x5b28ee()?_0x4b17fc:null;function _0x5b28ee(){const _0x469e07=_0x4b17fc[_0x4636e9([0x6a,0x74,0x69])],_0x3ad784=window[_0x4636e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x469e07[_0x4636e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x469e07[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d7891={..._0x4b17fc,[_0x4636e9([0x6a,0x74,0x69])]:_0x469e07[_0x4636e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x469e07[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d7891[_0x4636e9([0x76,0x63])],_0x2b1c77(_0x3d7891)==_0x3ad784;}}}async function _0x2185ed(){let _0x14b41a=!0x0;try{const _0x5c583c=_0x2a7637[_0x4636e9([0x73,0x70,0x6c,0x69,0x74])](_0x4636e9([0x2e])),[_0x2cad24,_0xdf111c,_0x219814]=_0x5c583c;return _0xb7cc32(_0x2cad24),await _0xfe236e(_0x2cad24,_0xdf111c,_0x219814),_0x14b41a;}catch(_0x4c4e03){return!0x1;}function _0xb7cc32(_0x5e2422){const _0x2ee85a=_0x598c2a(_0x5e2422);_0x2ee85a&&_0x2ee85a[_0x4636e9([0x61,0x6c,0x67])]==_0x4636e9([0x45,0x53,0x32,0x35,0x36])||(_0x14b41a=!0x1);}async function _0xfe236e(_0xd89cb4,_0x23dcc7,_0x5d672c){const _0x35455b=window[_0x4636e9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4636e9([0x66,0x72,0x6f,0x6d])](_0x4a91a5(_0x5d672c),_0x5d0514=>_0x5d0514[_0x4636e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x157e05=new window[(_0x4636e9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4636e9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd89cb4+_0x4636e9([0x2e])+_0x23dcc7),_0x376ac6=window[_0x4636e9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4636e9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x376ac6)return;const _0x2d1ff5=await _0x376ac6[_0x4636e9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4636e9([0x6a,0x77,0x6b]),_0xb5407,{[_0x4636e9([0x6e,0x61,0x6d,0x65])]:_0x4636e9([0x45,0x43,0x44,0x53,0x41]),[_0x4636e9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4636e9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4636e9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x376ac6[_0x4636e9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4636e9([0x6e,0x61,0x6d,0x65])]:_0x4636e9([0x45,0x43,0x44,0x53,0x41]),[_0x4636e9([0x68,0x61,0x73,0x68])]:{[_0x4636e9([0x6e,0x61,0x6d,0x65])]:_0x4636e9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d1ff5,_0x35455b,_0x157e05)||(_0x14b41a=!0x1);}}function _0x598c2a(_0xef95f0){return _0xef95f0[_0x4636e9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4636e9([0x65,0x79]))?JSON[_0x4636e9([0x70,0x61,0x72,0x73,0x65])](_0x4a91a5(_0xef95f0)):null;}function _0x4a91a5(_0x3137bb){return window[_0x4636e9([0x61,0x74,0x6f,0x62])](_0x3137bb[_0x4636e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4636e9([0x2b]))[_0x4636e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4636e9([0x2f])));}function _0x2b1c77(_0x144a00){let _0x50a175=0x1505;function _0x2b2bec(_0x3a72f0){for(let _0x441712=0x0;_0x441712<_0x3a72f0[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x441712++){const _0x27d971=_0x3a72f0[_0x4636e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x441712);_0x50a175=(_0x50a175<<0x5)+_0x50a175+_0x27d971,_0x50a175&=_0x50a175;}}function _0x5723f5(_0x4c03c6){Array[_0x4636e9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4c03c6)?_0x4c03c6[_0x4636e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5723f5):_0x4c03c6&&typeof _0x4c03c6==_0x4636e9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4636e9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4c03c6)[_0x4636e9([0x73,0x6f,0x72,0x74])]()[_0x4636e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4e80db,_0xfd3501])=>{_0x2b2bec(_0x4e80db),_0x5723f5(_0xfd3501);}):_0x2b2bec(window[_0x4636e9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4c03c6));}return _0x5723f5(_0x144a00),_0x50a175>>>0x0;}function _0x4b388f(_0x2a31fa){return _0x2a31fa[_0x4636e9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4636e9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4636e9([0x30]));}function _0xb1cb6f(_0x32a856){return _0x32a856[_0x4636e9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4636e9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4636e9([0x6a,0x6f,0x69,0x6e])]('');}function _0x322921(){}function _0x4636e9(_0x5d8547){return _0x5d8547['map'](_0x5927aa=>String['fromCharCode'](_0x5927aa))['join']('');}_0x506c4f(await _0x3d5021());}(this);}['_initSchema'](){const _0x20d919=this['editor']['model']['schema'];_0x20d919['isRegistered']('imageBlock')&&_0x20d919['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x20d919['isRegistered']('imageInline')&&_0x20d919['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2b4373=this['editor'];_0x2b4373['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2b4373['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x32d142=>_0x32d142['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1f5c0b=_0x2b4373['commands']['get']('replaceImageSource');_0x1f5c0b&&this['listenTo'](_0x1f5c0b,'cleanupImage',(_0x10fcf8,[_0x3cbb68,_0x4bc177])=>{_0x3cbb68['removeAttribute']('uploadcareImageId',_0x4bc177);});}['_initConfig'](){const _0x915969=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2c939a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x15315f(_0x2d3070['document'],'uc-config',{..._0x915969,'pubkey':_0x2c939a,'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']=_0x43057c=>{if('closeMax'==_0x43057c)return'#uc-icon-arrow-down';},_0x2d3070['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x15315f(_0x2d3070['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x2d3070['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x26443b=this['editor']['commands']['get']('insertImage');_0x26443b&&this['listenTo'](_0x26443b,'execute',()=>{const _0xfea008=this['editor']['model']['document']['selection']['getSelectedElement']();_0xfea008&&_0xfea008['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xfea008);});});const _0xddabaa=this['editor']['commands']['get']('uploadcareImageReplace');_0xddabaa&&this['listenTo'](_0xddabaa,'execute',()=>{const _0x4ae498=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4ae498&&_0x4ae498['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4ae498);});});}}class u extends _0x16fd9e{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d126c){super(_0x2d126c),_0x2d126c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xda82f['defineComponents'](_0xda82f);}}class ta extends _0x5281eb{constructor(_0xfc4d09){super(_0xfc4d09);const t=_0xfc4d09['t'],_0x134939=this['bindTemplate'],_0x47da84=new _0x880f24();_0x47da84['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':[_0x47da84,{'text':_0x134939['to']('imageUploadProgress',_0xe4f011=>t('Loading\x20image...')+'\x20('+(_0xe4f011||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 _0x5281eb{constructor(_0x51f601){super(_0x51f601);const t=_0x51f601['t'];this['set']('errorType',null);const _0x3400ca=new _0x24f4b9(_0x51f601);_0x3400ca['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3400ca['withText']=!0x0,_0x3400ca['class']='ck-button-action',_0x3400ca['on']('execute',()=>{this['fire']('retry');}),_0x3400ca['bind']('isVisible')['to'](this,'errorType',_0x28fd38=>'NotFound'!==_0x28fd38);const _0x2e4aba=new at();_0x2e4aba['content']=et,_0x2e4aba['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5499aa=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':[_0x2e4aba,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5499aa['to']('errorType',_0xc8e22d=>t('NotFound'!==_0xc8e22d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3400ca]},{'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 _0x5281eb{constructor(_0x3f3bd7,_0x1ca7d8){super(_0x3f3bd7);const _0x2aad3d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1ca7d8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2aad3d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x25a410,_0x58cf7d,_0x527088){super(_0x25a410),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x25a410),this['_errorView']=new rt(_0x25a410),this['_editingView']=new tt(_0x25a410,_0x527088),this['_focusableView']=new _0x5281eb(_0x25a410),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x58cf7d),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'],_0x2d8bd0=>{this['_addUploadcareImageEditorListeners'](_0x2d8bd0);});}),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'](_0x4cf474,_0x168e72){const _0x45c7fc='uc-cloud-image-editor',_0x4491cf=_0x4cf474['querySelector'](_0x45c7fc);if(_0x4491cf)return _0x168e72(_0x4491cf);const _0xb5d7b3=new MutationObserver(_0x79f930=>{const _0xaa853c=_0x79f930['filter'](_0x4bda63=>_0x4bda63['target']===_0x4cf474&&_0x4bda63['addedNodes']['length']>0x0&&_0x4bda63['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x45c7fc);_0xaa853c['length']&&(_0xb5d7b3['disconnect'](),_0x168e72(_0xaa853c[0x0]['addedNodes'][0x0]));});_0xb5d7b3['observe'](_0x4cf474,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x16c082){_0x16c082['addEventListener']('apply',_0x240d1f=>{this['fire']('apply',{'imageSrc':_0x240d1f['detail']['cdnUrl']});}),_0x16c082['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x436880(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x131407,_0x3a0921,_0x1b885f){super(),this['_editor']=_0x131407,this['_dialog']=_0x3a0921,this['_imageElement']=_0x1b885f,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 _0x216ac6=this['_imageElement'],_0x32ba64=_0x216ac6['getAttribute']('uploadcareImageId'),_0x2a6937=_0x216ac6['getAttribute']('src');if(_0x32ba64)await this['_loadImageInfo'](_0x32ba64,_0x2a6937);else{if(this['_imageCache']['has'](_0x2a6937)){const _0x505ecc=this['_imageCache']['get'](_0x2a6937);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x505ecc['url'],this['imageDimension']=_0x505ecc['dimension'],this['imageId']=_0x505ecc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3ea447}=this['_editor'],t=_0x3ea447['t'],_0x2d8c70=new Z(_0x3ea447,this['imageStatus'],this['_attributes']);_0x2d8c70['bind']('status')['to'](this,'imageStatus'),_0x2d8c70['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2d8c70['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2d8c70['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2d8c70,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x35a8d2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2d8c70,'position':_0x2c2cb4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2d8c70['focus']();},'onHide':()=>{_0x2d8c70['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4936dc=>!F(_0x4936dc,_0x2d8c70['element'])}});}['_loadImageInfo'](_0x21b72c,_0x36ed5a){return C['getInfo'](_0x21b72c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x17540c=>{const {width:_0x4a518c,height:_0x32bd1e}=_0x17540c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x36ed5a,this['imageDimension']={'width':_0x4a518c,'height':_0x32bd1e},this['imageId']=_0x21b72c;})['catch'](_0x2d7314=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2d7314['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x513b51,_0x19c8c0){return this['_getImageAsFile'](_0x513b51)['then'](_0x56550c=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x19c8c0['signal'],'file':_0x56550c,'onProgress':_0x2ec6f7=>{_0x2ec6f7&&_0x2ec6f7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2ec6f7['value']));}}))['then'](_0x13b7d1=>{const {width:_0x5060ec,height:_0x744970}=_0x13b7d1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13b7d1['cdnUrl'],this['imageDimension']={'width':_0x5060ec,'height':_0x744970},this['imageId']=_0x13b7d1['uuid'],this['imageUploadProgress']=null;const _0x3ac3a9=_0x513b51['getAttribute']('src');this['_imageCache']['set'](_0x3ac3a9,{'id':_0x13b7d1['uuid'],'url':_0x13b7d1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x6a30ac=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x6a30ac['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x53264b,_0xffe40e){_0x53264b['on']('apply',(_0x53f97f,_0x4fb7ee)=>{this['_replaceImage'](_0xffe40e,_0x4fb7ee['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x53264b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x53264b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x573a0a,_0x1b8043,_0x56dad5){const _0x41e9b0=this['_editor'],{width:_0x4009ac,height:_0x42da19}=A(_0x1b8043,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x30af76,imageSources:_0x3d65c6}=E(_0x1b8043,_0x4009ac);_0x41e9b0['model']['change'](_0x21a0ec=>{if('$graveyard'===_0x573a0a['root']['rootName']){_0x41e9b0['execute']('insertImage',{'imageType':_0x573a0a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x573a0a['getAttributes']()),'uploadcareImageId':_0x56dad5,'src':_0x30af76,'sources':_0x3d65c6,'width':_0x4009ac,'height':_0x42da19}});const _0x44267a=_0x573a0a['getChildren']();_0x573a0a=_0x41e9b0['model']['document']['selection']['getSelectedElement']();for(const _0x5cb67f of _0x44267a)_0x21a0ec['append'](_0x21a0ec['cloneElement'](_0x5cb67f),_0x573a0a);}else _0x21a0ec['setSelection'](_0x573a0a,'on'),_0x41e9b0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x573a0a['getAttributes']()),'uploadcareImageId':_0x56dad5,'src':_0x30af76,'sources':_0x3d65c6,'width':_0x4009ac,'height':_0x42da19},_0x573a0a);_0x21a0ec['setSelection'](_0x573a0a,'on');});}async['_getImageAsFile'](_0x1818e1){const _0x5a3533=_0x2d3070['window'],_0x2adfbf=_0x2d3070['document']['location']['href'],_0x15259d=new _0x5a3533['URL'](_0x1818e1['getAttribute']('src'),_0x2adfbf);if('data:'===_0x15259d['protocol']){const _0x19cd9b=_0x15259d['href']['split'](','),_0x16f29c=_0x19cd9b[0x0]['match'](/:(.*?);/)[0x1],_0x1221da=_0x16f29c['split']('/')[0x1],_0x2af751=_0x5a3533['atob'](_0x19cd9b[_0x19cd9b['length']-0x1]);let _0x4c7110=_0x2af751['length'];const _0x3d47f6=new _0x5a3533['Uint8Array'](_0x4c7110);for(;_0x4c7110--;)_0x3d47f6[_0x4c7110]=_0x2af751['charCodeAt'](_0x4c7110);return new _0x5a3533['File']([_0x3d47f6],'image.'+_0x1221da,{'type':_0x16f29c});}const _0x369682=_0x15259d['href']['split']('/'),_0x3f393f=_0x369682[_0x369682['length']-0x1],_0xcbe5fe=_0x3f393f['split']('.')[0x1];return _0x5a3533['fetch'](_0x15259d['href'])['then'](_0x362508=>_0x362508['clone']()['blob']())['then'](_0x1f317f=>new _0x5a3533['File']([_0x1f317f],_0x3f393f,{'type':'image/'+_0xcbe5fe}));}}class J extends _0x2dc760{['imageEditController'];static get['requires'](){return[_0x1704d5];}['_isEditable'];constructor(_0x7dc3cb){super(_0x7dc3cb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x22f8fc){const _0x50a172=V(_0x22f8fc);return _0x266e30=>!(!_0x266e30||!_0x266e30['is']('element','imageBlock')&&!_0x266e30['is']('element','imageInline'))&&(!!_0x266e30['hasAttribute']('uploadcareImageId')||!!_0x266e30['hasAttribute']('src')&&_0x50a172(_0x266e30['getAttribute']('src')));}(_0x7dc3cb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4ff307=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4ff307);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5e422b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e422b&&(_0x5e422b['is']('element','imageBlock')||_0x5e422b['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1704d5),_0x5e422b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2dc760{['refresh'](){const _0x5b900e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5b900e&&(_0x5b900e['is']('element','imageBlock')||_0x5b900e['is']('element','imageInline')));}['execute'](_0x914bd5){const _0x2e616d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x38862f=>{_0x38862f['setAttributes'](_0x914bd5,_0x2e616d),_0x38862f['removeAttribute']('srcset',_0x2e616d),_0x38862f['removeAttribute']('sizes',_0x2e616d);});}}class g extends _0x16fd9e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x4330ed,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x43f09f}=this;_0x43f09f['commands']['add']('uploadcareImageEdit',new J(_0x43f09f)),_0x43f09f['commands']['add']('uploadcareImageReplace',new O(_0x43f09f));}}class j extends _0x16fd9e{['_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 _0x3bfe24=this['editor'];_0x3bfe24['ui']['componentFactory']['add']('uploadcareImageEdit',_0x30b273=>{const _0x1d9b45=_0x3bfe24['commands']['get']('uploadcareImageEdit'),_0x3e9afc=new _0x24f4b9(_0x30b273),t=_0x30b273['t'];return _0x3e9afc['set']({'icon':_0x35a8d2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3e9afc['bind']('isEnabled')['to'](_0x1d9b45),_0x3e9afc['bind']('isOn')['to'](_0x1d9b45,'isActive'),this['listenTo'](_0x3e9afc,'execute',()=>{_0x3bfe24['execute']('uploadcareImageEdit'),_0x3bfe24['editing']['view']['focus']();}),_0x3e9afc;}),this['_initConfig']();}['_initConfig'](){const _0xeea6b2=_0x15315f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xeea6b2),this['listenTo'](this['editor'],'destroy',()=>{_0xeea6b2['remove']();});}}class P extends _0x16fd9e{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 _0x5040a6,Command as _0x107549}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5c8bbd,IconGooglePhotos as _0x236132,IconGoogleDrive as _0x1ada4d,IconFacebook as _0x41844e,IconDropbox as _0x53bc25,IconUploadcareLink as _0x4190df,IconUploadcareImageUpload as _0x1739ca,IconError as et,IconUploadcareImageEdit as _0x564454}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x40bc7e,MenuBarMenuListItemButtonView as _0x58df3d,View as _0x4c943d,FocusCycler as _0x227ac9,Dialog as _0x262cdb,DialogViewPosition as _0x193ab3,SpinnerView as _0x1624fd,IconView as at,Notification as _0x20b4cc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3b2e0a,DomEmitterMixin as _0x3d524b,global as _0x211818,getAncestors as _0x1fe483,ObservableMixin as _0x2013d3,createElement as _0x1359d4,uid as _0x3a2d0e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x35ab2d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x25c1fa,info as _0x2a2743}from'@uploadcare/upload-client';import*as _0x395ea0 from'@uploadcare/file-uploader';var o=function(_0x298cce){return _0x298cce['Local']='local',_0x298cce['URL']='url',_0x298cce['Dropbox']='dropbox',_0x298cce['GDrive']='gdrive',_0x298cce['Facebook']='facebook',_0x298cce['GPhotos']='gphotos',_0x298cce['OneDrive']='onedrive',_0x298cce;}({});function _(_0x563920,_0x1801ca,_0x5eb747){const t=_0x563920['t'],_0x2c3caf=_0x563920['t'];switch(_0x1801ca){case o['Local']:return{'text':_0x2c3caf('Insert'===_0x5eb747?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2c3caf('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5eb747?_0x2c3caf('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2c3caf('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5eb747?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5eb747?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5eb747?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5eb747?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5eb747?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1801ca;}}class e extends _0x5040a6{['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 _0x5dd6bc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x55156c;for(const _0x2f3e26 in _0x5dd6bc){const _0x1c0c1f=_0x2f3e26,_0x1c482b=_0x5dd6bc[_0x1c0c1f];if('uploadcareLicenseKeyValid'==_0x1c482b||'uploadcareLicenseKeyInvalid'==_0x1c482b||'uploadcareLicenseKeyExpired'==_0x1c482b||'uploadcareLicenseKeyDomainLimit'==_0x1c482b||'uploadcareLicenseKeyNotAllowed'==_0x1c482b||'uploadcareLicenseKeyEvaluationLimit'==_0x1c482b||'uploadcareLicenseKeyTrialLimit'==_0x1c482b||'uploadcareLicenseKeyUsageLimit'==_0x1c482b){delete _0x5dd6bc[_0x1c0c1f],_0x55156c=_0x1c482b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x55156c&&_0x5dd6bc['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x55156c&&_0x5dd6bc['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x55156c&&_0x5dd6bc['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x55156c&&_0x5dd6bc['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x55156c&&_0x5dd6bc['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x55156c&&_0x5dd6bc['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x55156c&&_0x5dd6bc['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4220e7}=this,_0x447f2e=_0x4220e7['commands']['get']('uploadcare');if(!_0x447f2e)return;const _0x3610a4=this['_normalizeConfigSourceList'](_0x4220e7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x553df8,_0x3d79be)=>{const _0x1a5627=this['_getIntegrationKey'](_0x3d79be['type']);return _0x553df8[_0x1a5627]||(_0x553df8[_0x1a5627]=[]),_0x553df8[_0x1a5627]['push'](_0x3d79be),_0x553df8;},{});_0x4220e7['plugins']['has']('ImageInsertUI')&&_0x4220e7['commands']['get']('uploadcare')&&Object['entries'](_0x3610a4)['forEach'](([_0x588546,_0x5edb09])=>{_0x4220e7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x588546,'observable':()=>_0x447f2e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5edb09),'formViewCreator':()=>this['_createDropdownButtons'](_0x5edb09),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5edb09),'override':'assetManager'!==_0x588546});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x36ea41){const {locale:_0xc2bab3}=this['editor'];return _0x36ea41['map'](_0x5063ef=>{const _0x4e8498=_(_0xc2bab3,_0x5063ef,'Insert');switch(_0x5063ef){case o['Local']:return{'icon':_0x1739ca,'type':o['Local'],..._0x4e8498};case o['URL']:return{'icon':_0x4190df,'type':o['URL'],..._0x4e8498};case o['Dropbox']:return{'icon':_0x53bc25,'type':o['Dropbox'],..._0x4e8498};case o['Facebook']:return{'icon':_0x41844e,'type':o['Facebook'],..._0x4e8498};case o['GDrive']:return{'icon':_0x1ada4d,'type':o['GDrive'],..._0x4e8498};case o['GPhotos']:return{'icon':_0x236132,'type':o['GPhotos'],..._0x4e8498};case o['OneDrive']:return{'icon':_0x5c8bbd,'type':o['OneDrive'],..._0x4e8498};}});}['_getIntegrationKey'](_0x1adaed){switch(_0x1adaed){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x287806,_0x17e8de){const _0x3b3d58=this['editor'],_0x2663f0=new _0x287806(_0x3b3d58['locale']),_0x26fc66=_0x3b3d58['commands']['get']('uploadcare');return _0x2663f0['bind']('isEnabled')['to'](_0x26fc66),_0x2663f0['on']('execute',()=>{_0x26fc66['execute'](_0x17e8de);}),_0x2663f0;}['_createToolbarButton'](_0x5ed30){const {locale:_0x4fa3c6}=this['editor'],_0x3c577f=this['editor']['plugins']['get']('ImageInsertUI'),_0x279a60=_0x5ed30[0x0],_0x5b707e=this['_createButton'](_0x40bc7e,_0x279a60['type']);return _0x5b707e['icon']=_0x279a60['icon'],_0x5b707e['bind']('label')['to'](_0x3c577f,'isImageSelected',_0x5c672a=>_(_0x4fa3c6,_0x279a60['type'],_0x5c672a?'Replace':'Insert')['text']),_0x5b707e['tooltip']=!0x0,_0x5b707e;}['_createDropdownButtons'](_0x4dcac9){const {locale:_0x4f3102}=this['editor'],_0x4a05a0=this['editor']['plugins']['get']('ImageInsertUI');return _0x4dcac9['map'](_0x42eb75=>{const _0xd25d9e=this['_createButton'](_0x40bc7e,_0x42eb75['type']);return _0xd25d9e['withText']=!0x0,_0xd25d9e['icon']=_0x42eb75['icon'],_0xd25d9e['bind']('label')['to'](_0x4a05a0,'isImageSelected',_0x193cc8=>_(_0x4f3102,_0x42eb75['type'],_0x193cc8?'Replace':'Insert')['text']),_0xd25d9e;});}['_createMenuBarButtons'](_0xec80ed){return _0xec80ed['map'](_0x3af307=>{const _0x3cb599=this['_createButton'](_0x58df3d,_0x3af307['type']);return _0x3cb599['icon']=_0x3af307['icon'],_0x3cb599['label']=_0x3af307['shortText'],_0x3cb599;});}}class q extends _0x4c943d{['focusTracker'];['focusCycler'];constructor(_0x56cfc4){super(_0x56cfc4),this['focusTracker']=new _0x3b2e0a(),this['focusCycler']=new _0x227ac9({'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(_0x4d01cb){super(_0x4d01cb),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(_0x463d98,_0x349dae){const _0x3f8894=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4db6b7=>_0x4db6b7<=_0x349dae)['map'](_0x2e7209=>_0x463d98['replace'](/\/$/,'')+'/-/resize/'+_0x2e7209+'x/\x20'+_0x2e7209+'w');return{'imageFallbackUrl':_0x463d98,'imageSources':[{'srcset':_0x3f8894['join'](',\x20'),'sizes':'(max-width:\x20'+_0x349dae+'px)\x20100vw,\x20'+_0x349dae+'px','type':'image/webp'}]};}function A(_0x3ddb86,_0x457321,_0x23230f){const _0x472af8=_0x3ddb86['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x472af8?parseInt(_0x472af8[0x1],0xa):_0x457321,'height':_0x472af8?parseInt(_0x472af8[0x2],0xa):_0x23230f};}function m(_0x16682f,_0x266fbe){const _0x15b165=Object['create'](_0x3d524b),_0x1a0cc6=_0x16682f['plugins']['get']('ImageUtils'),_0x321938=_0x16682f['editing']['mapper']['toViewElement'](_0x266fbe),_0xf1fd99=_0x1a0cc6['findViewImgElement'](_0x321938),_0x2fbb52=_0x16682f['editing']['view']['domConverter']['viewToDom'](_0xf1fd99),_0x3c40dc=_0x266fbe['getAttribute']('width'),_0x5a0b4e=_0x266fbe['getAttribute']('height'),_0xf7d42='image-processing';_0x16682f['editing']['view']['change'](_0x4e936c=>{_0x4e936c['addClass'](_0xf7d42,_0x321938),_0x4e936c['setStyle']('aspect-ratio',_0x3c40dc+'/'+_0x5a0b4e,_0xf1fd99);}),_0x15b165['listenTo'](_0x2fbb52,'load',()=>{_0x15b165['stopListening'](_0x2fbb52,'load'),_0x16682f['editing']['view']['change'](_0x3fd445=>{_0x3fd445['removeClass'](_0xf7d42,_0x321938),_0x3fd445['removeStyle']('aspect-ratio',_0xf1fd99);});});}function V(_0x49a8df){if(Array['isArray'](_0x49a8df)){const _0x2ce9fc=_0x49a8df['map'](V);return _0x4ce928=>_0x2ce9fc['some'](_0x339a51=>_0x339a51(_0x4ce928));}if('origin'==_0x49a8df){const _0xd617ff=_0x211818['window']['location']['origin'];return _0x1f1b2e=>new URL(_0x1f1b2e,_0x211818['document']['baseURI'])['origin']==_0xd617ff;}return'function'==typeof _0x49a8df?_0x49a8df:_0x49a8df instanceof RegExp?_0x19757e=>!(!_0x19757e['match'](_0x49a8df)&&!_0x19757e['replace'](/^https?:\/\//,'')['match'](_0x49a8df)):()=>!0x1;}function F(_0x13423a,_0x4e7c68){return _0x1fe483(_0x13423a['target'])['includes'](_0x4e7c68);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2013d3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1b79f3,_0x1e810e,_0x4b8f86){super(),this['_editor']=_0x1b79f3,this['_editing']=_0x1e810e,this['_dialog']=_0x1b79f3['plugins']['get'](_0x262cdb),this['_api']=_0x1e810e['ctxElement']['getAPI'](),this['_type']=_0x4b8f86,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:_0x15b393,model:_0x3b201c}=this['_editor'],_0x42d3bb=_0x3b201c['document']['selection']['getSelectedElement'](),_0x1450ca=_0x42d3bb&&(_0x42d3bb['is']('element','imageBlock')||_0x42d3bb['is']('element','imageInline'));this['_formView']=new S(_0x15b393),this['_dialog']['show']({'id':'uploadCare','icon':_0x1739ca,'title':_(_0x15b393,this['_type'],_0x1450ca?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x193ab3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e8e8a=>!F(_0x5e8e8a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x739547}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3c8fc0=>{const _0x2abbaf=_0x739547['length'];for(const _0x578b3c of _0x739547){const _0x34ce94=_0x578b3c===_0x739547[_0x2abbaf-0x1],{cdnUrl:_0x1dbdf8,fileInfo:_0x7c8816}=_0x578b3c;if(!_0x1dbdf8||!_0x7c8816)continue;const {width:_0x538df6,height:_0x5af20f}=_0x7c8816['imageInfo'],_0x5c0378=A(_0x1dbdf8,_0x538df6,_0x5af20f),_0x46dfce=E(_0x1dbdf8,_0x5c0378['width']),_0x19ebf7={'id':_0x7c8816['uuid'],'type':'image','attributes':{'imageDimension':_0x5c0378,..._0x46dfce}};this['_insertAsset'](_0x19ebf7,_0x34ce94,_0x3c8fc0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x74d68d=>{'idle'===_0x74d68d['detail']['status']&&!_0x74d68d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x594030,_0x331b39,_0x4a3c9b){const _0xdaaa72=this['_editor']['model']['document']['selection'],_0x239835=_0xdaaa72['getSelectedElement'](),_0x51eeeb=!(!_0x239835||!_0x239835['is']('element','imageInline'));_0x4a3c9b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x594030,_0x51eeeb),_0x331b39||_0x4a3c9b['setSelection'](_0xdaaa72['getLastPosition']());}['_insertImage'](_0x2c0311,_0x4a6221){const _0x37ecfb=this['_editor'],{imageDimension:_0x2a13fa,imageFallbackUrl:_0x43da31,imageSources:_0x585ec1}=_0x2c0311['attributes'];_0x37ecfb['execute']('insertImage',{'imageType':_0x4a6221?'imageInline':null,'source':{'uploadcareImageId':_0x2c0311['id'],'src':_0x43da31,'sources':_0x585ec1,..._0x2a13fa}});}}class n extends _0x107549{['_editing'];['_controller']=null;static get['requires'](){return[_0x262cdb,i];}constructor(_0x5cb3a2){super(_0x5cb3a2),this['_editing']=_0x5cb3a2['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x48244f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x48244f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x243ba0,publicKey:_0x154ca6,signal:_0x28a554,onProgress:_0x628744}){return _0x25c1fa(_0x243ba0,{'publicKey':_0x154ca6,'store':'auto','signal':_0x28a554,'onProgress':_0x628744});}static['getInfo'](_0x479653,_0x28bfa7){return _0x2a2743(_0x479653,_0x28bfa7);}}class p extends _0x5040a6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x35ab2d,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x34c74e=this['editor'];if(!!!_0x34c74e['config']['get']('uploadcare'))return;_0x34c74e['plugins']['get'](_0x35ab2d)['createUploadAdapter']=_0x140070=>new x(_0x140070,_0x34c74e),_0x34c74e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x53267e,{imageElement:_0x3b286a,data:_0x157892})=>{_0x34c74e['model']['change'](_0x15ef1c=>{_0x15ef1c['setAttribute']('uploadcareImageId',_0x157892['uploadcareImageId'],_0x3b286a);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x1139b1,_0x590583){this['loader']=_0x1139b1,this['editor']=_0x590583,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x9452c6=this['editor']['config']['get']('uploadcare.pubkey'),_0x2e2fa1=await this['loader']['file'];return C['upload']({'file':_0x2e2fa1,'publicKey':_0x9452c6,'signal':this['controller']['signal'],'onProgress':_0x476d3e=>{_0x476d3e&&_0x476d3e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x476d3e['value']);}})['then'](async _0x3bfd4f=>{const {imageFallbackUrl:_0x19fdc4,imageSources:_0x3c5633}=E(_0x3bfd4f['cdnUrl'],_0x3bfd4f['imageInfo']['width']);return{'uploadcareImageId':_0x3bfd4f['uuid'],'default':_0x19fdc4,'sources':_0x3c5633};})['catch'](()=>{const _0x7e41af=t('Cannot\x20upload\x20file:')+('\x20'+_0x2e2fa1['name']+'.');return Promise['reject'](_0x7e41af);});}['abort'](){this['controller']['abort']();}}class i extends _0x5040a6{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x262cdb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x362ba3=this['editor'];_0x362ba3['commands']['add']('uploadcare',new n(_0x362ba3));}['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 _0x20c129=_0x211818['document']['querySelector']('input[uploadcare-file-input]');_0x20c129&&_0x20c129['remove']();}),async function(_0x24d701){const _0x579619=_0x293b42([0x53,0x6e,0x6a,0x34,0x57,0x4a,0x69,0x43,0x78,0x39,0x4f,0x38,0x6d,0x4d,0x41,0x42,0x33,0x76,0x35,0x30,0x68,0x4e,0x6c,0x65,0x32,0x67,0x52,0x74,0x48,0x63,0x46,0x49,0x7a,0x54,0x59,0x70,0x64,0x37,0x36,0x75,0x50,0x6f,0x77,0x73,0x47,0x5a,0x44,0x55,0x72,0x45,0x61,0x58,0x4b,0x31,0x79,0x51,0x6b,0x71,0x66,0x56,0x62,0x4c]),_0x5dda71=0xd248338,_0x2aba8e=0xd23e4b0^_0x5dda71,_0x862ff=window[_0x293b42([0x44,0x61,0x74,0x65])][_0x293b42([0x6e,0x6f,0x77])](),_0x291ba8=_0x24d701[_0x293b42([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f5a76=new window[(_0x293b42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e4d17=>{_0x291ba8[_0x293b42([0x6f,0x6e,0x63,0x65])](_0x293b42([0x72,0x65,0x61,0x64,0x79]),_0x1e4d17);}),_0x4005bf={[_0x293b42([0x6b,0x74,0x79])]:_0x293b42([0x45,0x43]),[_0x293b42([0x75,0x73,0x65])]:_0x293b42([0x73,0x69,0x67]),[_0x293b42([0x63,0x72,0x76])]:_0x293b42([0x50,0x2d,0x32,0x35,0x36]),[_0x293b42([0x78])]:_0x293b42([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]),[_0x293b42([0x79])]:_0x293b42([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]),[_0x293b42([0x61,0x6c,0x67])]:_0x293b42([0x45,0x53,0x32,0x35,0x36])},_0x18cf22=_0x291ba8[_0x293b42([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x293b42([0x67,0x65,0x74])](_0x293b42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1405f7(){let _0x18887b,_0x46ab4a=null,_0x29764e=null;try{if(_0x18cf22==_0x293b42([0x47,0x50,0x4c]))return _0x293b42([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x18887b=_0x1daa73(),!_0x18887b)return _0x293b42([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x18887b[_0x293b42([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x29764e=_0x3b5581(_0x18887b[_0x293b42([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x18887b[_0x293b42([0x6a,0x74,0x69])])),await _0x50d025()?_0x2738dc()?_0x176102()?_0x293b42([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52c96e()?(_0x18887b[_0x293b42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x293b42([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x46ab4a=_0x1aab65(_0x293b42([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x18887b[_0x293b42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x293b42([0x74,0x72,0x69,0x61,0x6c])&&(_0x46ab4a=_0x1aab65(_0x293b42([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x53b7dc()):_0x293b42([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x293b42([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x293b42([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x50130e){return _0x293b42([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x176102(){const _0x4388d2=[_0x293b42([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x293b42([0x74,0x72,0x69,0x61,0x6c])][_0x293b42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18887b[_0x293b42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x862ff/0x3e8:0xe10*_0x2aba8e;return _0x18887b[_0x293b42([0x65,0x78,0x70])]<_0x4388d2;}function _0x2738dc(){const _0x2250b0=_0x18887b[_0x293b42([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2250b0&&(!!_0x2250b0[_0x293b42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293b42([0x2a]))||!!_0x2250b0[_0x293b42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293b42([0x55,0x50,0x4c,0x43])));}function _0x52c96e(){const _0x19e81d=_0x18887b[_0x293b42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x19e81d||0x0==_0x19e81d[_0x293b42([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x240556}=new URL(window[_0x293b42([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x19e81d[_0x293b42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x240556))return!0x0;const _0x380280=_0x240556[_0x293b42([0x73,0x70,0x6c,0x69,0x74])](_0x293b42([0x2e]));return _0x19e81d[_0x293b42([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x8394e2=>_0x8394e2[_0x293b42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293b42([0x2a])))[_0x293b42([0x6d,0x61,0x70])](_0x354b33=>_0x354b33[_0x293b42([0x73,0x70,0x6c,0x69,0x74])](_0x293b42([0x2e])))[_0x293b42([0x73,0x6f,0x6d,0x65])](_0x1eba17=>_0x380280[_0x293b42([0x65,0x76,0x65,0x72,0x79])]((_0x45a777,_0x4e06e1)=>_0x1eba17[_0x4e06e1]===_0x45a777||_0x1eba17[_0x4e06e1]===_0x293b42([0x2a])));}function _0x53b7dc(){return _0x46ab4a&&_0x29764e?new window[(_0x293b42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2263eb,_0xf49a47)=>{_0x46ab4a[_0x293b42([0x74,0x68,0x65,0x6e])](_0x2263eb,_0xf49a47),_0x29764e[_0x293b42([0x74,0x68,0x65,0x6e])](_0x1c37a1=>{_0x1c37a1!=_0x293b42([0x56,0x61,0x6c,0x69,0x64])&&_0x2263eb(_0x1c37a1);},_0xf49a47);}):_0x46ab4a||_0x29764e||_0x293b42([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b5581(_0x63dd9e,_0x178dc7){return new window[(_0x293b42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ec73b=>{if(_0x1c4fdb())return _0x1ec73b(_0x293b42([0x56,0x61,0x6c,0x69,0x64]));_0x1ac909(),_0x291ba8[_0x293b42([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x293b42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x192328=!0x1;const _0x58bc0d=_0x3a2d0e();function _0x47e902(_0x4cf578){return!!_0x4cf578&&(typeof _0x4cf578===_0x293b42([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4cf578===_0x293b42([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4cf578[_0x293b42([0x74,0x68,0x65,0x6e])]===_0x293b42([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4cf578[_0x293b42([0x63,0x61,0x74,0x63,0x68])]===_0x293b42([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5520bd(_0xdcd29b){_0x49b1c1(_0xdcd29b)[_0x293b42([0x74,0x68,0x65,0x6e])](_0x90b3d0=>{if(!_0x90b3d0||_0x90b3d0[_0x293b42([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x293b42([0x6f,0x6b]))return _0x293b42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34364e(_0x1219ce(_0x58bc0d+_0x178dc7))!=_0x90b3d0[_0x293b42([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x293b42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x293b42([0x56,0x61,0x6c,0x69,0x64]);})[_0x293b42([0x74,0x68,0x65,0x6e])](_0x5c1185=>(_0x309be8(),_0x5c1185),()=>{const _0xafd438=_0x576a94();return null==_0xafd438?(_0x309be8(),_0x293b42([0x56,0x61,0x6c,0x69,0x64])):_0x293b42(_0x862ff-_0xafd438>(0x29280738^_0x5dda71)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x293b42([0x74,0x68,0x65,0x6e])](_0x1ec73b)[_0x293b42([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ec73b(_0x293b42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e5eb7=0xd126db8^_0x5dda71;function _0x309be8(){const _0xba8924=_0x293b42([0x6c,0x6c,0x63,0x74,0x2d])+_0x34364e(_0x1219ce(_0x63dd9e)),_0xbda19c=_0x32f241(_0x34364e(window[_0x293b42([0x4d,0x61,0x74,0x68])][_0x293b42([0x63,0x65,0x69,0x6c])](_0x862ff/_0x4e5eb7)));window[_0x293b42([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x293b42([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xba8924,_0xbda19c);}function _0x576a94(){const _0x474624=_0x293b42([0x6c,0x6c,0x63,0x74,0x2d])+_0x34364e(_0x1219ce(_0x63dd9e)),_0x584018=window[_0x293b42([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x293b42([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x474624);return _0x584018?window[_0x293b42([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32f241(_0x584018),0x10)*_0x4e5eb7:null;}function _0x49b1c1(_0x7deaa4){return new window[(_0x293b42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e0ecf,_0x53a068)=>{_0x7deaa4[_0x293b42([0x74,0x68,0x65,0x6e])](_0x2e0ecf,_0x53a068),window[_0x293b42([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53a068,0xd2557f8^_0x5dda71);});}}_0x291ba8[_0x293b42([0x6f,0x6e])](_0x293b42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x451258,_0x2d9269)=>{if(_0x2d9269[0x0]!=_0x63dd9e)return _0x1ec73b(_0x293b42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d9269[0x1]={..._0x2d9269[0x1],[_0x293b42([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58bc0d};},{[_0x293b42([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x293b42([0x68,0x69,0x67,0x68])}),_0x291ba8[_0x293b42([0x6f,0x6e])](_0x293b42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x505620=>{_0x47e902(_0x505620[_0x293b42([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x192328=!0x0,_0x5520bd(_0x505620[_0x293b42([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x293b42([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x293b42([0x6c,0x6f,0x77])}),_0x4f5a76[_0x293b42([0x74,0x68,0x65,0x6e])](()=>{_0x192328||_0x1ec73b(_0x293b42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c4fdb(){return _0x291ba8[_0x293b42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x293b42([0x76,0x69,0x65,0x77])][_0x293b42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x293b42([0x61,0x75,0x74,0x6f]);}function _0x1ac909(){_0x291ba8[_0x293b42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x293b42([0x76,0x69,0x65,0x77])][_0x293b42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x293b42([0x61,0x75,0x74,0x6f]);}}function _0x1aab65(_0x4ed872){const _0x188d11=[new window[(_0x293b42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x382f64=>setTimeout(_0x382f64,0xd2dbdf4^_0x5dda71)),_0x4f5a76[_0x293b42([0x74,0x68,0x65,0x6e])](()=>new window[(_0x293b42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x456c23=>{let _0x4c5e17=0x0;_0x291ba8[_0x293b42([0x6d,0x6f,0x64,0x65,0x6c])][_0x293b42([0x6f,0x6e])](_0x293b42([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x315604,_0xbde7bc)=>{_0xbde7bc[0x0][_0x293b42([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c5e17++,_0x4c5e17==(0xd2482c0^_0x5dda71)&&(_0x456c23(),_0x315604[_0x293b42([0x6f,0x66,0x66])]());});}))];return window[_0x293b42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x293b42([0x72,0x61,0x63,0x65])](_0x188d11)[_0x293b42([0x74,0x68,0x65,0x6e])](()=>_0x4ed872);}async function _0x34c21f(){await _0x4f5a76,_0x291ba8[_0x293b42([0x6d,0x6f,0x64,0x65,0x6c])][_0x293b42([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c7ca1,_0x291ba8[_0x293b42([0x6d,0x6f,0x64,0x65,0x6c])][_0x293b42([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c7ca1,_0x291ba8[_0x293b42([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x293b42([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x57f3a6(_0x4d963d){const _0x142df1=_0x2bf52a();_0x291ba8[_0x142df1]=_0x293b42([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4d963d,_0x4d963d!=_0x293b42([0x56,0x61,0x6c,0x69,0x64])&&_0x34c21f();}function _0x2bf52a(){const _0x33f82d=window[_0x293b42([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x293b42([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x293b42([0x6e,0x6f,0x77])]())[_0x293b42([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x293b42([0x2e]),'');let _0x3e07d8=_0x293b42([0x53]);for(let _0x374833=0x0;_0x374833<_0x33f82d[_0x293b42([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x374833+=0x2){let _0x161104=window[_0x293b42([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33f82d[_0x293b42([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x374833,_0x374833+0x2));_0x161104>=_0x579619[_0x293b42([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x161104-=_0x579619[_0x293b42([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e07d8+=_0x579619[_0x161104];}return _0x3e07d8;}function _0x1daa73(){const _0x181f89=_0x18cf22[_0x293b42([0x73,0x70,0x6c,0x69,0x74])](_0x293b42([0x2e]));if(0x3!=_0x181f89[_0x293b42([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xec50e3(_0x181f89[0x1]);function _0xec50e3(_0x1a1f09){const _0x3b1025=_0x2443d6(_0x1a1f09);return _0x3b1025&&_0x4e2088()?_0x3b1025:null;function _0x4e2088(){const _0x2f31a8=_0x3b1025[_0x293b42([0x6a,0x74,0x69])],_0x2cfaa3=window[_0x293b42([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f31a8[_0x293b42([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f31a8[_0x293b42([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a9383={..._0x3b1025,[_0x293b42([0x6a,0x74,0x69])]:_0x2f31a8[_0x293b42([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f31a8[_0x293b42([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a9383[_0x293b42([0x76,0x63])],_0x1219ce(_0x2a9383)==_0x2cfaa3;}}}async function _0x50d025(){let _0x879640=!0x0;try{const _0x70b85=_0x18cf22[_0x293b42([0x73,0x70,0x6c,0x69,0x74])](_0x293b42([0x2e])),[_0x4efb77,_0x62098a,_0x4657c4]=_0x70b85;return _0x5259d9(_0x4efb77),await _0x27f693(_0x4efb77,_0x62098a,_0x4657c4),_0x879640;}catch(_0x45db67){return!0x1;}function _0x5259d9(_0x582d36){const _0x7bccf3=_0x2443d6(_0x582d36);_0x7bccf3&&_0x7bccf3[_0x293b42([0x61,0x6c,0x67])]==_0x293b42([0x45,0x53,0x32,0x35,0x36])||(_0x879640=!0x1);}async function _0x27f693(_0x250668,_0x40ef86,_0x830b9c){const _0x7dda91=window[_0x293b42([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x293b42([0x66,0x72,0x6f,0x6d])](_0x37c3f8(_0x830b9c),_0x4e76f7=>_0x4e76f7[_0x293b42([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5329ad=new window[(_0x293b42([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x293b42([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x250668+_0x293b42([0x2e])+_0x40ef86),_0x330ce6=window[_0x293b42([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x293b42([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x330ce6)return;const _0x3a99fd=await _0x330ce6[_0x293b42([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x293b42([0x6a,0x77,0x6b]),_0x4005bf,{[_0x293b42([0x6e,0x61,0x6d,0x65])]:_0x293b42([0x45,0x43,0x44,0x53,0x41]),[_0x293b42([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x293b42([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x293b42([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x330ce6[_0x293b42([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x293b42([0x6e,0x61,0x6d,0x65])]:_0x293b42([0x45,0x43,0x44,0x53,0x41]),[_0x293b42([0x68,0x61,0x73,0x68])]:{[_0x293b42([0x6e,0x61,0x6d,0x65])]:_0x293b42([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a99fd,_0x7dda91,_0x5329ad)||(_0x879640=!0x1);}}function _0x2443d6(_0x35b162){return _0x35b162[_0x293b42([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x293b42([0x65,0x79]))?JSON[_0x293b42([0x70,0x61,0x72,0x73,0x65])](_0x37c3f8(_0x35b162)):null;}function _0x37c3f8(_0x32c937){return window[_0x293b42([0x61,0x74,0x6f,0x62])](_0x32c937[_0x293b42([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x293b42([0x2b]))[_0x293b42([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x293b42([0x2f])));}function _0x1219ce(_0x10aebf){let _0x411960=0x1505;function _0x60379(_0x1ce546){for(let _0x42c08f=0x0;_0x42c08f<_0x1ce546[_0x293b42([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42c08f++){const _0x4e982a=_0x1ce546[_0x293b42([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42c08f);_0x411960=(_0x411960<<0x5)+_0x411960+_0x4e982a,_0x411960&=_0x411960;}}function _0x3ed076(_0x40e9c5){Array[_0x293b42([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x40e9c5)?_0x40e9c5[_0x293b42([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3ed076):_0x40e9c5&&typeof _0x40e9c5==_0x293b42([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x293b42([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x40e9c5)[_0x293b42([0x73,0x6f,0x72,0x74])]()[_0x293b42([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5aaacd,_0x1799df])=>{_0x60379(_0x5aaacd),_0x3ed076(_0x1799df);}):_0x60379(window[_0x293b42([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x40e9c5));}return _0x3ed076(_0x10aebf),_0x411960>>>0x0;}function _0x34364e(_0x487f52){return _0x487f52[_0x293b42([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x293b42([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x293b42([0x30]));}function _0x32f241(_0x525ca9){return _0x525ca9[_0x293b42([0x73,0x70,0x6c,0x69,0x74])]('')[_0x293b42([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x293b42([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c7ca1(){}function _0x293b42(_0xe36fcf){return _0xe36fcf['map'](_0x5c85c9=>String['fromCharCode'](_0x5c85c9))['join']('');}_0x57f3a6(await _0x1405f7());}(this);}['_initSchema'](){const _0x4b1324=this['editor']['model']['schema'];_0x4b1324['isRegistered']('imageBlock')&&_0x4b1324['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4b1324['isRegistered']('imageInline')&&_0x4b1324['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4f8361=this['editor'];_0x4f8361['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4f8361['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x929b8e=>_0x929b8e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2e4344=_0x4f8361['commands']['get']('replaceImageSource');_0x2e4344&&this['listenTo'](_0x2e4344,'cleanupImage',(_0x550ef5,[_0xc07bc,_0x30e607])=>{_0xc07bc['removeAttribute']('uploadcareImageId',_0x30e607);});}['_initConfig'](){const _0x1326b8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x45a5f8=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1359d4(_0x211818['document'],'uc-config',{..._0x1326b8,'pubkey':_0x45a5f8,'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']=_0x568e70=>{if('closeMax'==_0x568e70)return'#uc-icon-arrow-down';},_0x211818['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1359d4(_0x211818['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x211818['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x45c370=this['editor']['commands']['get']('insertImage');_0x45c370&&this['listenTo'](_0x45c370,'execute',()=>{const _0x3f0a2d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3f0a2d&&_0x3f0a2d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3f0a2d);});});const _0x13d425=this['editor']['commands']['get']('uploadcareImageReplace');_0x13d425&&this['listenTo'](_0x13d425,'execute',()=>{const _0x54cbea=this['editor']['model']['document']['selection']['getSelectedElement']();_0x54cbea&&_0x54cbea['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x54cbea);});});}}class u extends _0x5040a6{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x350ab5){super(_0x350ab5),_0x350ab5['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x395ea0['defineComponents'](_0x395ea0);}}class ta extends _0x4c943d{constructor(_0x3c50b6){super(_0x3c50b6);const t=_0x3c50b6['t'],_0x353fec=this['bindTemplate'],_0xe6367a=new _0x1624fd();_0xe6367a['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':[_0xe6367a,{'text':_0x353fec['to']('imageUploadProgress',_0x564b7b=>t('Loading\x20image...')+'\x20('+(_0x564b7b||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 _0x4c943d{constructor(_0x482018){super(_0x482018);const t=_0x482018['t'];this['set']('errorType',null);const _0x30974e=new _0x40bc7e(_0x482018);_0x30974e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x30974e['withText']=!0x0,_0x30974e['class']='ck-button-action',_0x30974e['on']('execute',()=>{this['fire']('retry');}),_0x30974e['bind']('isVisible')['to'](this,'errorType',_0x5746dd=>'NotFound'!==_0x5746dd);const _0x23ce3d=new at();_0x23ce3d['content']=et,_0x23ce3d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2b60b1=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':[_0x23ce3d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2b60b1['to']('errorType',_0x10f78f=>t('NotFound'!==_0x10f78f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x30974e]},{'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 _0x4c943d{constructor(_0xe0634d,_0x327208){super(_0xe0634d);const _0x4e4e9e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x327208,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4e4e9e['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x17ddeb,_0x4b2931,_0x39e351){super(_0x17ddeb),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x17ddeb),this['_errorView']=new rt(_0x17ddeb),this['_editingView']=new tt(_0x17ddeb,_0x39e351),this['_focusableView']=new _0x4c943d(_0x17ddeb),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4b2931),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'],_0x2f205c=>{this['_addUploadcareImageEditorListeners'](_0x2f205c);});}),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'](_0x185ae1,_0x502eb7){const _0x546770='uc-cloud-image-editor',_0x58a9e0=_0x185ae1['querySelector'](_0x546770);if(_0x58a9e0)return _0x502eb7(_0x58a9e0);const _0x41d650=new MutationObserver(_0x156579=>{const _0x5285d4=_0x156579['filter'](_0x1a63dd=>_0x1a63dd['target']===_0x185ae1&&_0x1a63dd['addedNodes']['length']>0x0&&_0x1a63dd['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x546770);_0x5285d4['length']&&(_0x41d650['disconnect'](),_0x502eb7(_0x5285d4[0x0]['addedNodes'][0x0]));});_0x41d650['observe'](_0x185ae1,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x584e10){_0x584e10['addEventListener']('apply',_0x4d1d90=>{this['fire']('apply',{'imageSrc':_0x4d1d90['detail']['cdnUrl']});}),_0x584e10['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2013d3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x21f10a,_0x1a4948,_0x57d199){super(),this['_editor']=_0x21f10a,this['_dialog']=_0x1a4948,this['_imageElement']=_0x57d199,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 _0x18ef34=this['_imageElement'],_0x1ca974=_0x18ef34['getAttribute']('uploadcareImageId'),_0x596868=_0x18ef34['getAttribute']('src');if(_0x1ca974)await this['_loadImageInfo'](_0x1ca974,_0x596868);else{if(this['_imageCache']['has'](_0x596868)){const _0x98f239=this['_imageCache']['get'](_0x596868);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x98f239['url'],this['imageDimension']=_0x98f239['dimension'],this['imageId']=_0x98f239['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x223292}=this['_editor'],t=_0x223292['t'],_0x58b0dd=new Z(_0x223292,this['imageStatus'],this['_attributes']);_0x58b0dd['bind']('status')['to'](this,'imageStatus'),_0x58b0dd['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x58b0dd['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x58b0dd['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x58b0dd,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x564454,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x58b0dd,'position':_0x193ab3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x58b0dd['focus']();},'onHide':()=>{_0x58b0dd['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xc61f4f=>!F(_0xc61f4f,_0x58b0dd['element'])}});}['_loadImageInfo'](_0x296481,_0x3a3b81){return C['getInfo'](_0x296481,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x295c07=>{const {width:_0x1c3b07,height:_0x2a445}=_0x295c07['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a3b81,this['imageDimension']={'width':_0x1c3b07,'height':_0x2a445},this['imageId']=_0x296481;})['catch'](_0x2f9923=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2f9923['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x536776,_0x399645){return this['_getImageAsFile'](_0x536776)['then'](_0x2694f8=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x399645['signal'],'file':_0x2694f8,'onProgress':_0x653c0e=>{_0x653c0e&&_0x653c0e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x653c0e['value']));}}))['then'](_0x8e6ab8=>{const {width:_0x1b39d0,height:_0x449618}=_0x8e6ab8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8e6ab8['cdnUrl'],this['imageDimension']={'width':_0x1b39d0,'height':_0x449618},this['imageId']=_0x8e6ab8['uuid'],this['imageUploadProgress']=null;const _0x1f72a5=_0x536776['getAttribute']('src');this['_imageCache']['set'](_0x1f72a5,{'id':_0x8e6ab8['uuid'],'url':_0x8e6ab8['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4b0a0a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4b0a0a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xa80f7d,_0x203f81){_0xa80f7d['on']('apply',(_0x2614d6,_0x593bbb)=>{this['_replaceImage'](_0x203f81,_0x593bbb['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xa80f7d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xa80f7d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5559a7,_0x3299d,_0x533d87){const _0x53164c=this['_editor'],{width:_0x165d46,height:_0x1cb484}=A(_0x3299d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x567c60,imageSources:_0x511265}=E(_0x3299d,_0x165d46);_0x53164c['model']['change'](_0x3ead10=>{if('$graveyard'===_0x5559a7['root']['rootName']){_0x53164c['execute']('insertImage',{'imageType':_0x5559a7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5559a7['getAttributes']()),'uploadcareImageId':_0x533d87,'src':_0x567c60,'sources':_0x511265,'width':_0x165d46,'height':_0x1cb484}});const _0x5d3247=_0x5559a7['getChildren']();_0x5559a7=_0x53164c['model']['document']['selection']['getSelectedElement']();for(const _0x3e7f96 of _0x5d3247)_0x3ead10['append'](_0x3ead10['cloneElement'](_0x3e7f96),_0x5559a7);}else _0x3ead10['setSelection'](_0x5559a7,'on'),_0x53164c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5559a7['getAttributes']()),'uploadcareImageId':_0x533d87,'src':_0x567c60,'sources':_0x511265,'width':_0x165d46,'height':_0x1cb484},_0x5559a7);_0x3ead10['setSelection'](_0x5559a7,'on');});}async['_getImageAsFile'](_0x2a5549){const _0x1a405a=_0x211818['window'],_0x3a8370=_0x211818['document']['location']['href'],_0x4415b0=new _0x1a405a['URL'](_0x2a5549['getAttribute']('src'),_0x3a8370);if('data:'===_0x4415b0['protocol']){const _0xdafdab=_0x4415b0['href']['split'](','),_0x159401=_0xdafdab[0x0]['match'](/:(.*?);/)[0x1],_0x5d7eca=_0x159401['split']('/')[0x1],_0x1dd1aa=_0x1a405a['atob'](_0xdafdab[_0xdafdab['length']-0x1]);let _0x491e91=_0x1dd1aa['length'];const _0x554363=new _0x1a405a['Uint8Array'](_0x491e91);for(;_0x491e91--;)_0x554363[_0x491e91]=_0x1dd1aa['charCodeAt'](_0x491e91);return new _0x1a405a['File']([_0x554363],'image.'+_0x5d7eca,{'type':_0x159401});}const _0x1586b8=_0x4415b0['href']['split']('/'),_0x29a46c=_0x1586b8[_0x1586b8['length']-0x1],_0x254a07=_0x29a46c['split']('.')[0x1];return _0x1a405a['fetch'](_0x4415b0['href'])['then'](_0x5db862=>_0x5db862['clone']()['blob']())['then'](_0x2a187f=>new _0x1a405a['File']([_0x2a187f],_0x29a46c,{'type':'image/'+_0x254a07}));}}class J extends _0x107549{['imageEditController'];static get['requires'](){return[_0x262cdb];}['_isEditable'];constructor(_0x1f9647){super(_0x1f9647),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x28038b){const _0x56d3cc=V(_0x28038b);return _0x56ed30=>!(!_0x56ed30||!_0x56ed30['is']('element','imageBlock')&&!_0x56ed30['is']('element','imageInline'))&&(!!_0x56ed30['hasAttribute']('uploadcareImageId')||!!_0x56ed30['hasAttribute']('src')&&_0x56d3cc(_0x56ed30['getAttribute']('src')));}(_0x1f9647['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x10bc1b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x10bc1b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x198449=this['editor']['model']['document']['selection']['getSelectedElement']();_0x198449&&(_0x198449['is']('element','imageBlock')||_0x198449['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x262cdb),_0x198449),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x107549{['refresh'](){const _0x2096d7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2096d7&&(_0x2096d7['is']('element','imageBlock')||_0x2096d7['is']('element','imageInline')));}['execute'](_0x5594d9){const _0x4dfa60=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x579789=>{_0x579789['setAttributes'](_0x5594d9,_0x4dfa60),_0x579789['removeAttribute']('srcset',_0x4dfa60),_0x579789['removeAttribute']('sizes',_0x4dfa60);});}}class g extends _0x5040a6{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x20b4cc,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x155766}=this;_0x155766['commands']['add']('uploadcareImageEdit',new J(_0x155766)),_0x155766['commands']['add']('uploadcareImageReplace',new O(_0x155766));}}class j extends _0x5040a6{['_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 _0x36080a=this['editor'];_0x36080a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x9718d=>{const _0xdce3dd=_0x36080a['commands']['get']('uploadcareImageEdit'),_0x398278=new _0x40bc7e(_0x9718d),t=_0x9718d['t'];return _0x398278['set']({'icon':_0x564454,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x398278['bind']('isEnabled')['to'](_0xdce3dd),_0x398278['bind']('isOn')['to'](_0xdce3dd,'isActive'),this['listenTo'](_0x398278,'execute',()=>{_0x36080a['execute']('uploadcareImageEdit'),_0x36080a['editing']['view']['focus']();}),_0x398278;}),this['_initConfig']();}['_initConfig'](){const _0x52d8cc=_0x1359d4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x52d8cc),this['listenTo'](this['editor'],'destroy',()=>{_0x52d8cc['remove']();});}}class P extends _0x5040a6{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':_0x59bc3d=>0x1!=_0x59bc3d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x29d58c=>{const {af:{dictionary:_0x173a1b,getPluralForm:_0x48dcdb}}={'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':_0x37a500=>0x1!=_0x37a500}};_0x29d58c['af']||={'dictionary':{},'getPluralForm':null},_0x29d58c['af']['dictionary']=Object['assign'](_0x29d58c['af']['dictionary'],_0x173a1b),_0x29d58c['af']['getPluralForm']=_0x48dcdb;})(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':_0x29c3c3=>0x0==_0x29c3c3?0x0:0x1==_0x29c3c3?0x1:0x2==_0x29c3c3?0x2:_0x29c3c3%0x64>=0x3&&_0x29c3c3%0x64<=0xa?0x3:_0x29c3c3%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3d4759=>{const {ar:{dictionary:_0x3907ea,getPluralForm:_0x1c543a}}={'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':_0x1df4db=>0x0==_0x1df4db?0x0:0x1==_0x1df4db?0x1:0x2==_0x1df4db?0x2:_0x1df4db%0x64>=0x3&&_0x1df4db%0x64<=0xa?0x3:_0x1df4db%0x64>=0xb?0x4:0x5}};_0x3d4759['ar']||={'dictionary':{},'getPluralForm':null},_0x3d4759['ar']['dictionary']=Object['assign'](_0x3d4759['ar']['dictionary'],_0x3907ea),_0x3d4759['ar']['getPluralForm']=_0x1c543a;})(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':_0x27a9ba=>0x1!=_0x27a9ba}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x198cce=>{const {ast:{dictionary:_0x552083,getPluralForm:_0x257017}}={'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':_0x1558a4=>0x1!=_0x1558a4}};_0x198cce['ast']||={'dictionary':{},'getPluralForm':null},_0x198cce['ast']['dictionary']=Object['assign'](_0x198cce['ast']['dictionary'],_0x552083),_0x198cce['ast']['getPluralForm']=_0x257017;})(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':_0x20c957=>0x1!=_0x20c957}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x18dd4f=>{const {az:{dictionary:_0xcbc671,getPluralForm:_0x3988b1}}={'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':_0x37b8d6=>0x1!=_0x37b8d6}};_0x18dd4f['az']||={'dictionary':{},'getPluralForm':null},_0x18dd4f['az']['dictionary']=Object['assign'](_0x18dd4f['az']['dictionary'],_0xcbc671),_0x18dd4f['az']['getPluralForm']=_0x3988b1;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2d2bee=>_0x2d2bee%0xa==0x1&&_0x2d2bee%0x64!=0xb?0x0:_0x2d2bee%0xa>=0x2&&_0x2d2bee%0xa<=0x4&&(_0x2d2bee%0x64<0xa||_0x2d2bee%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x327a3b=>{const {be:{dictionary:_0x274313,getPluralForm:_0x6bbf51}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x589d95=>_0x589d95%0xa==0x1&&_0x589d95%0x64!=0xb?0x0:_0x589d95%0xa>=0x2&&_0x589d95%0xa<=0x4&&(_0x589d95%0x64<0xa||_0x589d95%0x64>=0x14)?0x1:0x2}};_0x327a3b['be']||={'dictionary':{},'getPluralForm':null},_0x327a3b['be']['dictionary']=Object['assign'](_0x327a3b['be']['dictionary'],_0x274313),_0x327a3b['be']['getPluralForm']=_0x6bbf51;})(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':_0x54033e=>0x1!=_0x54033e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x12412a=>{const {bg:{dictionary:_0x29cfb6,getPluralForm:_0x2de6f2}}={'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':_0x3be083=>0x1!=_0x3be083}};_0x12412a['bg']||={'dictionary':{},'getPluralForm':null},_0x12412a['bg']['dictionary']=Object['assign'](_0x12412a['bg']['dictionary'],_0x29cfb6),_0x12412a['bg']['getPluralForm']=_0x2de6f2;})(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':_0x5374e9=>0x1!=_0x5374e9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x29c43e=>{const {bn:{dictionary:_0x42eb03,getPluralForm:_0x4fab33}}={'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':_0x280d91=>0x1!=_0x280d91}};_0x29c43e['bn']||={'dictionary':{},'getPluralForm':null},_0x29c43e['bn']['dictionary']=Object['assign'](_0x29c43e['bn']['dictionary'],_0x42eb03),_0x29c43e['bn']['getPluralForm']=_0x4fab33;})(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':_0x322f97=>_0x322f97%0xa==0x1&&_0x322f97%0x64!=0xb?0x0:_0x322f97%0xa>=0x2&&_0x322f97%0xa<=0x4&&(_0x322f97%0x64<0xa||_0x322f97%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4786b5=>{const {bs:{dictionary:_0x143e05,getPluralForm:_0x24ccd3}}={'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':_0x4347c7=>_0x4347c7%0xa==0x1&&_0x4347c7%0x64!=0xb?0x0:_0x4347c7%0xa>=0x2&&_0x4347c7%0xa<=0x4&&(_0x4347c7%0x64<0xa||_0x4347c7%0x64>=0x14)?0x1:0x2}};_0x4786b5['bs']||={'dictionary':{},'getPluralForm':null},_0x4786b5['bs']['dictionary']=Object['assign'](_0x4786b5['bs']['dictionary'],_0x143e05),_0x4786b5['bs']['getPluralForm']=_0x24ccd3;})(window['CKEDITOR_TRANSLATIONS']||={});
|