@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250611.0 → 0.0.0-nightly-20250614.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.d.ts +4 -2
- 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.d.ts +2 -3
- 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.d.ts +2 -3
- 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 _0x3f3bf7,Command as _0x210285}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x553dcb,IconGooglePhotos as _0x19a37c,IconGoogleDrive as _0x1d5181,IconFacebook as _0x50d4cb,IconDropbox as _0xa41c6f,IconUploadcareLink as _0x299f92,IconUploadcareImageUpload as _0x2a3d35,IconError as _0x40455a,IconUploadcareImageEdit as _0x1fb5b4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x981209,MenuBarMenuListItemButtonView as _0x45db28,View as _0x2cbfb6,FocusCycler as _0x561b45,Dialog as _0x338a0e,DialogViewPosition as _0x3b8744,SpinnerView as _0x4c1ba7,IconView as _0xf8dc64,Notification as _0x27c390}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1055f9,DomEmitterMixin as _0x2a9160,global as _0x4dd528,getAncestors as _0x168eec,ObservableMixin as _0xb132dd,createElement as _0x1d278a,uid as _0x46ddcd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x54bcb0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x6399ae,info as _0x4b9a27}from'@uploadcare/upload-client';import*as _0x3a1021 from'@uploadcare/file-uploader';var i=function(_0x186dcf){return _0x186dcf['Local']='local',_0x186dcf['URL']='url',_0x186dcf['Dropbox']='dropbox',_0x186dcf['GDrive']='gdrive',_0x186dcf['Facebook']='facebook',_0x186dcf['GPhotos']='gphotos',_0x186dcf['OneDrive']='onedrive',_0x186dcf;}({});function _(_0x5e30ee,_0x47e409,_0x4e11a3){const t=_0x5e30ee['t'],_0x42a213=_0x5e30ee['t'];switch(_0x47e409){case i['Local']:return{'text':_0x42a213('Insert'===_0x4e11a3?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x42a213('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4e11a3?_0x42a213('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x42a213('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4e11a3?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4e11a3?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4e11a3?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4e11a3?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4e11a3?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x47e409;}}class e extends _0x3f3bf7{['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 _0x2e2850=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4eb169;for(const _0x452741 in _0x2e2850){const _0x1fa018=_0x452741,_0x38cf3c=_0x2e2850[_0x1fa018];if('uploadcareLicenseKeyValid'==_0x38cf3c||'uploadcareLicenseKeyInvalid'==_0x38cf3c||'uploadcareLicenseKeyExpired'==_0x38cf3c||'uploadcareLicenseKeyDomainLimit'==_0x38cf3c||'uploadcareLicenseKeyNotAllowed'==_0x38cf3c||'uploadcareLicenseKeyEvaluationLimit'==_0x38cf3c||'uploadcareLicenseKeyTrialLimit'==_0x38cf3c||'uploadcareLicenseKeyUsageLimit'==_0x38cf3c){delete _0x2e2850[_0x1fa018],_0x4eb169=_0x38cf3c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4eb169&&_0x2e2850['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4eb169&&_0x2e2850['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4eb169&&_0x2e2850['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4eb169&&_0x2e2850['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4eb169&&_0x2e2850['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4eb169&&_0x2e2850['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4eb169&&_0x2e2850['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x38e45b}=this,_0x48aaee=_0x38e45b['commands']['get']('uploadcare');if(!_0x48aaee)return;const _0x5edad4=this['_normalizeConfigSourceList'](_0x38e45b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x36d30a,_0x56fd15)=>{const _0x12f7cd=this['_getIntegrationKey'](_0x56fd15['type']);return _0x36d30a[_0x12f7cd]||(_0x36d30a[_0x12f7cd]=[]),_0x36d30a[_0x12f7cd]['push'](_0x56fd15),_0x36d30a;},{});_0x38e45b['plugins']['has']('ImageInsertUI')&&_0x38e45b['commands']['get']('uploadcare')&&Object['entries'](_0x5edad4)['forEach'](([_0x5acd5a,_0x2efc07])=>{_0x38e45b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5acd5a,'observable':()=>_0x48aaee,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2efc07),'formViewCreator':()=>this['_createDropdownButtons'](_0x2efc07),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2efc07),'override':'assetManager'!==_0x5acd5a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x18dbef){const {locale:_0x1613f0}=this['editor'];return _0x18dbef['map'](_0x2f2edb=>{const _0x3043e0=_(_0x1613f0,_0x2f2edb,'Insert');switch(_0x2f2edb){case i['Local']:return{'icon':_0x2a3d35,'type':i['Local'],..._0x3043e0};case i['URL']:return{'icon':_0x299f92,'type':i['URL'],..._0x3043e0};case i['Dropbox']:return{'icon':_0xa41c6f,'type':i['Dropbox'],..._0x3043e0};case i['Facebook']:return{'icon':_0x50d4cb,'type':i['Facebook'],..._0x3043e0};case i['GDrive']:return{'icon':_0x1d5181,'type':i['GDrive'],..._0x3043e0};case i['GPhotos']:return{'icon':_0x19a37c,'type':i['GPhotos'],..._0x3043e0};case i['OneDrive']:return{'icon':_0x553dcb,'type':i['OneDrive'],..._0x3043e0};}});}['_getIntegrationKey'](_0xc5068d){switch(_0xc5068d){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x46f87d,_0x4c2c0e){const _0x56fa19=this['editor'],_0x34ab6a=new _0x46f87d(_0x56fa19['locale']),_0x15eddc=_0x56fa19['commands']['get']('uploadcare');return _0x34ab6a['bind']('isEnabled')['to'](_0x15eddc),_0x34ab6a['on']('execute',()=>{_0x15eddc['execute'](_0x4c2c0e);}),_0x34ab6a;}['_createToolbarButton'](_0x5d7e7f){const {locale:_0x12b87e}=this['editor'],_0x2d476b=this['editor']['plugins']['get']('ImageInsertUI'),_0x4966bf=_0x5d7e7f[0x0],_0x479346=this['_createButton'](_0x981209,_0x4966bf['type']);return _0x479346['icon']=_0x4966bf['icon'],_0x479346['bind']('label')['to'](_0x2d476b,'isImageSelected',_0x411dae=>_(_0x12b87e,_0x4966bf['type'],_0x411dae?'Replace':'Insert')['text']),_0x479346['tooltip']=!0x0,_0x479346;}['_createDropdownButtons'](_0x46d9b2){const {locale:_0x359420}=this['editor'],_0x2d4fbc=this['editor']['plugins']['get']('ImageInsertUI');return _0x46d9b2['map'](_0x5c0f1c=>{const _0x2addc4=this['_createButton'](_0x981209,_0x5c0f1c['type']);return _0x2addc4['withText']=!0x0,_0x2addc4['icon']=_0x5c0f1c['icon'],_0x2addc4['bind']('label')['to'](_0x2d4fbc,'isImageSelected',_0x49c6a5=>_(_0x359420,_0x5c0f1c['type'],_0x49c6a5?'Replace':'Insert')['text']),_0x2addc4;});}['_createMenuBarButtons'](_0x12dad8){return _0x12dad8['map'](_0x97c673=>{const _0x2c101d=this['_createButton'](_0x45db28,_0x97c673['type']);return _0x2c101d['icon']=_0x97c673['icon'],_0x2c101d['label']=_0x97c673['shortText'],_0x2c101d;});}}class F extends _0x2cbfb6{['focusTracker'];['focusCycler'];constructor(_0x243c31){super(_0x243c31),this['focusTracker']=new _0x1055f9(),this['focusCycler']=new _0x561b45({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x2edc78){super(_0x2edc78),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x11f4b1,_0x2a8a27){const _0x59b364=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x30abc2=>_0x30abc2<=_0x2a8a27)['map'](_0x34f353=>_0x11f4b1['replace'](/\/$/,'')+'/-/resize/'+_0x34f353+'x/\x20'+_0x34f353+'w');return{'imageFallbackUrl':_0x11f4b1,'imageSources':[{'srcset':_0x59b364['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2a8a27+'px)\x20100vw,\x20'+_0x2a8a27+'px','type':'image/webp'}]};}function C(_0x31181,_0x2c37a8,_0x36ba79){const _0x55cdcd=_0x31181['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x55cdcd?parseInt(_0x55cdcd[0x1],0xa):_0x2c37a8,'height':_0x55cdcd?parseInt(_0x55cdcd[0x2],0xa):_0x36ba79};}function p(_0xca0e36,_0x56ebfc){const _0x40cc6f=new(_0x2a9160())(),_0x1d0021=_0xca0e36['plugins']['get']('ImageUtils'),_0x42cd3f=_0xca0e36['editing']['mapper']['toViewElement'](_0x56ebfc),_0x401f0c=_0x1d0021['findViewImgElement'](_0x42cd3f),_0x2e17a7=_0xca0e36['editing']['view']['domConverter']['viewToDom'](_0x401f0c),_0x116b79=_0x56ebfc['getAttribute']('width'),_0x5517c4=_0x56ebfc['getAttribute']('height'),_0x23abd3='image-processing';_0xca0e36['editing']['view']['change'](_0x498181=>{_0x498181['addClass'](_0x23abd3,_0x42cd3f),_0x498181['setStyle']('aspect-ratio',_0x116b79+'/'+_0x5517c4,_0x401f0c);}),_0x40cc6f['listenTo'](_0x2e17a7,'load',()=>{_0x40cc6f['stopListening'](_0x2e17a7,'load'),_0xca0e36['editing']['view']['change'](_0x46a325=>{_0x46a325['removeClass'](_0x23abd3,_0x42cd3f),_0x46a325['removeStyle']('aspect-ratio',_0x401f0c);});});}function G(_0x15bd5a){if(Array['isArray'](_0x15bd5a)){const _0x3f24e8=_0x15bd5a['map'](G);return _0x55dfa0=>_0x3f24e8['some'](_0x5af1f2=>_0x5af1f2(_0x55dfa0));}if('origin'==_0x15bd5a){const _0x460dba=_0x4dd528['window']['location']['origin'];return _0x30ccf5=>new URL(_0x30ccf5,_0x4dd528['document']['baseURI'])['origin']==_0x460dba;}return'function'==typeof _0x15bd5a?_0x15bd5a:_0x15bd5a instanceof RegExp?_0x3c3e34=>!(!_0x3c3e34['match'](_0x15bd5a)&&!_0x3c3e34['replace'](/^https?:\/\//,'')['match'](_0x15bd5a)):()=>!0x1;}function S(_0x28ea13,_0x56bebc){return _0x168eec(_0x28ea13['target'])['includes'](_0x56bebc);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xb132dd(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x19857f,_0x152e41,_0x43d207){super(),this['_editor']=_0x19857f,this['_editing']=_0x152e41,this['_dialog']=_0x19857f['plugins']['get'](_0x338a0e),this['_api']=_0x152e41['ctxElement']['getAPI'](),this['_type']=_0x43d207,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:_0x33a34d,model:_0x1a5b13}=this['_editor'],_0xcb9592=_0x1a5b13['document']['selection']['getSelectedElement'](),_0xfe574f=_0xcb9592&&(_0xcb9592['is']('element','imageBlock')||_0xcb9592['is']('element','imageInline'));this['_formView']=new x(_0x33a34d),this['_dialog']['show']({'id':'uploadCare','icon':_0x2a3d35,'title':_(_0x33a34d,this['_type'],_0xfe574f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3b8744['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1ffe33=>!S(_0x1ffe33,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x587c8f}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x301077=>{const _0x26a6f6=_0x587c8f['length'];for(const _0x347a78 of _0x587c8f){const _0x1a54be=_0x347a78===_0x587c8f[_0x26a6f6-0x1],{cdnUrl:_0x2982e7,fileInfo:_0x16e03e}=_0x347a78;if(!_0x2982e7||!_0x16e03e)continue;const {width:_0xe210c,height:_0x4c67d7}=_0x16e03e['imageInfo'],_0x48d0d8=C(_0x2982e7,_0xe210c,_0x4c67d7),_0x4c30ed=k(_0x2982e7,_0x48d0d8['width']),_0x560b49={'id':_0x16e03e['uuid'],'type':'image','attributes':{'imageDimension':_0x48d0d8,..._0x4c30ed}};this['_insertAsset'](_0x560b49,_0x1a54be,_0x301077);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1527c0=>{'idle'===_0x1527c0['detail']['status']&&!_0x1527c0['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2de494,_0xb85e33,_0xffc060){const _0x1dc2e7=this['_editor']['model']['document']['selection'],_0xd8f616=_0x1dc2e7['getSelectedElement'](),_0xda5986=!(!_0xd8f616||!_0xd8f616['is']('element','imageInline'));_0xffc060['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2de494,_0xda5986),_0xb85e33||_0xffc060['setSelection'](_0x1dc2e7['getLastPosition']());}['_insertImage'](_0x1ed6fa,_0x307448){const _0x1a6258=this['_editor'],{imageDimension:_0x2ab605,imageFallbackUrl:_0x6bd630,imageSources:_0x5de50b}=_0x1ed6fa['attributes'];_0x1a6258['execute']('insertImage',{'imageType':_0x307448?'imageInline':null,'source':{'uploadcareImageId':_0x1ed6fa['id'],'src':_0x6bd630,'sources':_0x5de50b,..._0x2ab605}});}}class w extends _0x210285{['_editing'];['_controller']=null;static get['requires'](){return[_0x338a0e,o];}constructor(_0x3296d9){super(_0x3296d9),this['_editing']=_0x3296d9['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x495f9b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x495f9b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x536b85,publicKey:_0x40400d,signal:_0x4dfb53,onProgress:_0x1523be}){return _0x6399ae(_0x536b85,{'publicKey':_0x40400d,'store':'auto','signal':_0x4dfb53,'onProgress':_0x1523be});}static['getInfo'](_0x55663f,_0x2b051e){return _0x4b9a27(_0x55663f,_0x2b051e);}}class f extends _0x3f3bf7{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x54bcb0,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5786b0=this['editor'];if(!!!_0x5786b0['config']['get']('uploadcare'))return;_0x5786b0['plugins']['get'](_0x54bcb0)['createUploadAdapter']=_0x543079=>new A(_0x543079,_0x5786b0),_0x5786b0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x49f73a,{imageElement:_0x2a9fb6,data:_0x4474a5})=>{_0x5786b0['model']['change'](_0x35b842=>{_0x35b842['setAttribute']('uploadcareImageId',_0x4474a5['uploadcareImageId'],_0x2a9fb6);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xd6a51c,_0x2b2d7e){this['loader']=_0xd6a51c,this['editor']=_0x2b2d7e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xa1463a=this['editor']['config']['get']('uploadcare.pubkey'),_0xad3d84=await this['loader']['file'];return j['upload']({'file':_0xad3d84,'publicKey':_0xa1463a,'signal':this['controller']['signal'],'onProgress':_0x2a9b52=>{_0x2a9b52&&_0x2a9b52['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2a9b52['value']);}})['then'](async _0x4eed9e=>{const {imageFallbackUrl:_0x47de07,imageSources:_0x55b155}=k(_0x4eed9e['cdnUrl'],_0x4eed9e['imageInfo']['width']);return{'uploadcareImageId':_0x4eed9e['uuid'],'default':_0x47de07,'sources':_0x55b155};})['catch'](()=>{const _0x8e71=t('Cannot\x20upload\x20file:')+('\x20'+_0xad3d84['name']+'.');return Promise['reject'](_0x8e71);});}['abort'](){this['controller']['abort']();}}class o extends _0x3f3bf7{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x338a0e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x263324=this['editor'];_0x263324['commands']['add']('uploadcare',new w(_0x263324));}['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 _0x2c7803=_0x4dd528['document']['querySelector']('input[uploadcare-file-input]');_0x2c7803&&_0x2c7803['remove']();}),async function(_0x3b0510){const _0x5e858f=_0x23cab1([0x6f,0x48,0x46,0x6a,0x77,0x64,0x41,0x30,0x4a,0x65,0x37,0x74,0x47,0x38,0x57,0x5a,0x45,0x4c,0x66,0x42,0x59,0x79,0x51,0x56,0x43,0x4d,0x75,0x58,0x6e,0x35,0x4b,0x78,0x71,0x62,0x44,0x55,0x76,0x69,0x54,0x6d,0x67,0x31,0x61,0x7a,0x72,0x53,0x4e,0x63,0x52,0x34,0x33,0x73,0x39,0x4f,0x36,0x32,0x6b,0x50,0x6c,0x49,0x70,0x68]),_0x3f8a64=0x59f5d299,_0x2021db=0x59f2b8e9^_0x3f8a64,_0x37fe5e=window[_0x23cab1([0x44,0x61,0x74,0x65])][_0x23cab1([0x6e,0x6f,0x77])](),_0x1a9ffb=_0x3b0510[_0x23cab1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f8d57=new window[(_0x23cab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x218c99=>{_0x1a9ffb[_0x23cab1([0x6f,0x6e,0x63,0x65])](_0x23cab1([0x72,0x65,0x61,0x64,0x79]),_0x218c99);}),_0x1dcbeb={[_0x23cab1([0x6b,0x74,0x79])]:_0x23cab1([0x45,0x43]),[_0x23cab1([0x75,0x73,0x65])]:_0x23cab1([0x73,0x69,0x67]),[_0x23cab1([0x63,0x72,0x76])]:_0x23cab1([0x50,0x2d,0x32,0x35,0x36]),[_0x23cab1([0x78])]:_0x23cab1([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]),[_0x23cab1([0x79])]:_0x23cab1([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]),[_0x23cab1([0x61,0x6c,0x67])]:_0x23cab1([0x45,0x53,0x32,0x35,0x36])},_0x6252cc=_0x1a9ffb[_0x23cab1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23cab1([0x67,0x65,0x74])](_0x23cab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x249638(){let _0x2bc76c,_0x2a331b=null,_0x235a73=null;try{if(_0x6252cc==_0x23cab1([0x47,0x50,0x4c]))return _0x23cab1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2bc76c=_0x3440a4(),!_0x2bc76c)return _0x23cab1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2bc76c[_0x23cab1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x235a73=_0x53ced6(_0x2bc76c[_0x23cab1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2bc76c[_0x23cab1([0x6a,0x74,0x69])])),await _0x17bedd()?_0x483bd5()?_0x1ee6f5()?_0x23cab1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xfe9483()?(_0x2bc76c[_0x23cab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23cab1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a331b=_0x1821a8(_0x23cab1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2bc76c[_0x23cab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23cab1([0x74,0x72,0x69,0x61,0x6c])&&(_0x2a331b=_0x1821a8(_0x23cab1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4165db()):_0x23cab1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23cab1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23cab1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23cab1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ee6f5(){const _0x58bbd4=[_0x23cab1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23cab1([0x74,0x72,0x69,0x61,0x6c])][_0x23cab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc76c[_0x23cab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x37fe5e/0x3e8:0xe10*_0x2021db;return _0x2bc76c[_0x23cab1([0x65,0x78,0x70])]<_0x58bbd4;}function _0x483bd5(){const _0x26610a=_0x2bc76c[_0x23cab1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x26610a&&(!!_0x26610a[_0x23cab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23cab1([0x2a]))||!!_0x26610a[_0x23cab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23cab1([0x55,0x50,0x4c,0x43])));}function _0xfe9483(){const _0x2bc94f=_0x2bc76c[_0x23cab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2bc94f||0x0==_0x2bc94f[_0x23cab1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb1bfc7}=new URL(window[_0x23cab1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2bc94f[_0x23cab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb1bfc7))return!0x0;const _0x27efa9=_0xb1bfc7[_0x23cab1([0x73,0x70,0x6c,0x69,0x74])](_0x23cab1([0x2e]));return _0x2bc94f[_0x23cab1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x488967=>_0x488967[_0x23cab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23cab1([0x2a])))[_0x23cab1([0x6d,0x61,0x70])](_0xdeb7f3=>_0xdeb7f3[_0x23cab1([0x73,0x70,0x6c,0x69,0x74])](_0x23cab1([0x2e])))[_0x23cab1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d50ee=>_0x5d50ee[_0x23cab1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x27efa9[_0x23cab1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23cab1([0x6d,0x61,0x70])](_0x2a5847=>Array(_0x27efa9[_0x23cab1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a5847[_0x23cab1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23cab1([0x66,0x69,0x6c,0x6c])](_0x2a5847[0x0]===_0x23cab1([0x2a])?_0x23cab1([0x2a]):'')[_0x23cab1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a5847))[_0x23cab1([0x73,0x6f,0x6d,0x65])](_0x4e0552=>_0x27efa9[_0x23cab1([0x65,0x76,0x65,0x72,0x79])]((_0x562b84,_0x4466b8)=>_0x4e0552[_0x4466b8]===_0x562b84||_0x4e0552[_0x4466b8]===_0x23cab1([0x2a])));}function _0x4165db(){return _0x2a331b&&_0x235a73?new window[(_0x23cab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e51a7,_0x4c30a1)=>{_0x2a331b[_0x23cab1([0x74,0x68,0x65,0x6e])](_0x3e51a7,_0x4c30a1),_0x235a73[_0x23cab1([0x74,0x68,0x65,0x6e])](_0x4f6a34=>{_0x4f6a34!=_0x23cab1([0x56,0x61,0x6c,0x69,0x64])&&_0x3e51a7(_0x4f6a34);},_0x4c30a1);}):_0x2a331b||_0x235a73||_0x23cab1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x53ced6(_0x499c61,_0x5cf5a0){return new window[(_0x23cab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23cc36=>{if(_0x390146())return _0x23cc36(_0x23cab1([0x56,0x61,0x6c,0x69,0x64]));_0x4d8c4c(),_0x1a9ffb[_0x23cab1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23cab1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31f9ef=!0x1;const _0xccbb60=_0x46ddcd();function _0x3335f2(_0x34874a){return!!_0x34874a&&(typeof _0x34874a===_0x23cab1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x34874a===_0x23cab1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x34874a[_0x23cab1([0x74,0x68,0x65,0x6e])]===_0x23cab1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x34874a[_0x23cab1([0x63,0x61,0x74,0x63,0x68])]===_0x23cab1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29c0b1(_0x36f0f2){_0x1f389b(_0x36f0f2)[_0x23cab1([0x74,0x68,0x65,0x6e])](_0x1e1876=>{if(!_0x1e1876||_0x1e1876[_0x23cab1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23cab1([0x6f,0x6b]))return _0x23cab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x146f95(_0x1ef14f(_0xccbb60+_0x5cf5a0))!=_0x1e1876[_0x23cab1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23cab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23cab1([0x56,0x61,0x6c,0x69,0x64]);})[_0x23cab1([0x74,0x68,0x65,0x6e])](_0x1d23a1=>(_0x8a9ee(),_0x1d23a1),()=>{const _0x25b6bc=_0x38756f();return null==_0x25b6bc?(_0x8a9ee(),_0x23cab1([0x56,0x61,0x6c,0x69,0x64])):_0x23cab1(_0x37fe5e-_0x25b6bc>(0x7df95699^_0x3f8a64)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23cab1([0x74,0x68,0x65,0x6e])](_0x23cc36)[_0x23cab1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x23cc36(_0x23cab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x22ffbd=0x59c33c19^_0x3f8a64;function _0x8a9ee(){const _0x102491=_0x23cab1([0x6c,0x6c,0x63,0x74,0x2d])+_0x146f95(_0x1ef14f(_0x499c61)),_0x186795=_0x9d3207(_0x146f95(window[_0x23cab1([0x4d,0x61,0x74,0x68])][_0x23cab1([0x63,0x65,0x69,0x6c])](_0x37fe5e/_0x22ffbd)));window[_0x23cab1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23cab1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x102491,_0x186795);}function _0x38756f(){const _0x5cc7c1=_0x23cab1([0x6c,0x6c,0x63,0x74,0x2d])+_0x146f95(_0x1ef14f(_0x499c61)),_0x494052=window[_0x23cab1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23cab1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cc7c1);return _0x494052?window[_0x23cab1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9d3207(_0x494052),0x10)*_0x22ffbd:null;}function _0x1f389b(_0x455553){return new window[(_0x23cab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4238e7,_0x19d335)=>{_0x455553[_0x23cab1([0x74,0x68,0x65,0x6e])](_0x4238e7,_0x19d335),window[_0x23cab1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19d335,0x59f40659^_0x3f8a64);});}}_0x1a9ffb[_0x23cab1([0x6f,0x6e])](_0x23cab1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2fffae,_0x5952fa)=>{if(_0x5952fa[0x0]!=_0x499c61)return _0x23cc36(_0x23cab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5952fa[0x1]={..._0x5952fa[0x1],[_0x23cab1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xccbb60};},{[_0x23cab1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23cab1([0x68,0x69,0x67,0x68])}),_0x1a9ffb[_0x23cab1([0x6f,0x6e])](_0x23cab1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x562c2d=>{_0x3335f2(_0x562c2d[_0x23cab1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31f9ef=!0x0,_0x29c0b1(_0x562c2d[_0x23cab1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23cab1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23cab1([0x6c,0x6f,0x77])}),_0x2f8d57[_0x23cab1([0x74,0x68,0x65,0x6e])](()=>{_0x31f9ef||_0x23cc36(_0x23cab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x390146(){return _0x1a9ffb[_0x23cab1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23cab1([0x76,0x69,0x65,0x77])][_0x23cab1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23cab1([0x61,0x75,0x74,0x6f]);}function _0x4d8c4c(){_0x1a9ffb[_0x23cab1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23cab1([0x76,0x69,0x65,0x77])][_0x23cab1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23cab1([0x61,0x75,0x74,0x6f]);}}function _0x1821a8(_0x4f3fa6){const _0x43257e=[new window[(_0x23cab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e31cc=>setTimeout(_0x5e31cc,0x59fcec55^_0x3f8a64)),_0x2f8d57[_0x23cab1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23cab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dedc1=>{let _0x5c17c1=0x0;_0x1a9ffb[_0x23cab1([0x6d,0x6f,0x64,0x65,0x6c])][_0x23cab1([0x6f,0x6e])](_0x23cab1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x17c7bd,_0x5d5df0)=>{_0x5d5df0[0x0][_0x23cab1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c17c1++,_0x5c17c1==(0x59f5d361^_0x3f8a64)&&(_0x5dedc1(),_0x17c7bd[_0x23cab1([0x6f,0x66,0x66])]());});}))];return window[_0x23cab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23cab1([0x72,0x61,0x63,0x65])](_0x43257e)[_0x23cab1([0x74,0x68,0x65,0x6e])](()=>_0x4f3fa6);}async function _0x39f0ee(){await _0x2f8d57,_0x1a9ffb[_0x23cab1([0x6d,0x6f,0x64,0x65,0x6c])][_0x23cab1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a66aa,_0x1a9ffb[_0x23cab1([0x6d,0x6f,0x64,0x65,0x6c])][_0x23cab1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a66aa,_0x1a9ffb[_0x23cab1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23cab1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x595805(_0xbe67a5){const _0x466a55=_0xd3c4e9();_0x1a9ffb[_0x466a55]=_0x23cab1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xbe67a5,_0xbe67a5!=_0x23cab1([0x56,0x61,0x6c,0x69,0x64])&&_0x39f0ee();}function _0xd3c4e9(){const _0x5beb6e=window[_0x23cab1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23cab1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23cab1([0x6e,0x6f,0x77])]())[_0x23cab1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23cab1([0x2e]),'');let _0x2cbbce=_0x23cab1([0x6f]);for(let _0x315968=0x0;_0x315968<_0x5beb6e[_0x23cab1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x315968+=0x2){let _0x18eb94=window[_0x23cab1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5beb6e[_0x23cab1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x315968,_0x315968+0x2));_0x18eb94>=_0x5e858f[_0x23cab1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18eb94-=_0x5e858f[_0x23cab1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2cbbce+=_0x5e858f[_0x18eb94];}return _0x2cbbce;}function _0x3440a4(){const _0x3725ef=_0x6252cc[_0x23cab1([0x73,0x70,0x6c,0x69,0x74])](_0x23cab1([0x2e]));if(0x3!=_0x3725ef[_0x23cab1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54467b(_0x3725ef[0x1]);function _0x54467b(_0xb7ad07){const _0x3ca254=_0x175ef2(_0xb7ad07);return _0x3ca254&&_0x1a1352()?_0x3ca254:null;function _0x1a1352(){const _0x31f1ad=_0x3ca254[_0x23cab1([0x6a,0x74,0x69])],_0x5ce0bb=window[_0x23cab1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31f1ad[_0x23cab1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31f1ad[_0x23cab1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b13e1={..._0x3ca254,[_0x23cab1([0x6a,0x74,0x69])]:_0x31f1ad[_0x23cab1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31f1ad[_0x23cab1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b13e1[_0x23cab1([0x76,0x63])],_0x1ef14f(_0x4b13e1)==_0x5ce0bb;}}}async function _0x17bedd(){let _0x5383a5=!0x0;try{const _0x50eecc=_0x6252cc[_0x23cab1([0x73,0x70,0x6c,0x69,0x74])](_0x23cab1([0x2e])),[_0x1a934c,_0x5bd475,_0x49ce4e]=_0x50eecc;return _0x500ba1(_0x1a934c),await _0x5996f6(_0x1a934c,_0x5bd475,_0x49ce4e),_0x5383a5;}catch{return!0x1;}function _0x500ba1(_0x31540e){const _0xe8d3ef=_0x175ef2(_0x31540e);_0xe8d3ef&&_0xe8d3ef[_0x23cab1([0x61,0x6c,0x67])]==_0x23cab1([0x45,0x53,0x32,0x35,0x36])||(_0x5383a5=!0x1);}async function _0x5996f6(_0xe04c3e,_0x9f8d54,_0x34fe5b){const _0x3edefb=window[_0x23cab1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23cab1([0x66,0x72,0x6f,0x6d])](_0x139a09(_0x34fe5b),_0x3d32f6=>_0x3d32f6[_0x23cab1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5dc501=new window[(_0x23cab1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23cab1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xe04c3e+_0x23cab1([0x2e])+_0x9f8d54),_0x576a39=window[_0x23cab1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23cab1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x576a39)return;const _0x2166ce=await _0x576a39[_0x23cab1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23cab1([0x6a,0x77,0x6b]),_0x1dcbeb,{[_0x23cab1([0x6e,0x61,0x6d,0x65])]:_0x23cab1([0x45,0x43,0x44,0x53,0x41]),[_0x23cab1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23cab1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23cab1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x576a39[_0x23cab1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23cab1([0x6e,0x61,0x6d,0x65])]:_0x23cab1([0x45,0x43,0x44,0x53,0x41]),[_0x23cab1([0x68,0x61,0x73,0x68])]:{[_0x23cab1([0x6e,0x61,0x6d,0x65])]:_0x23cab1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2166ce,_0x3edefb,_0x5dc501)||(_0x5383a5=!0x1);}}function _0x175ef2(_0x371a7a){return _0x371a7a[_0x23cab1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23cab1([0x65,0x79]))?JSON[_0x23cab1([0x70,0x61,0x72,0x73,0x65])](_0x139a09(_0x371a7a)):null;}function _0x139a09(_0x3b75fd){return window[_0x23cab1([0x61,0x74,0x6f,0x62])](_0x3b75fd[_0x23cab1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23cab1([0x2b]))[_0x23cab1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23cab1([0x2f])));}function _0x1ef14f(_0x5be54c){let _0x5498c6=0x1505;function _0x1a1bf3(_0xa6fced){for(let _0xa542ad=0x0;_0xa542ad<_0xa6fced[_0x23cab1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa542ad++){const _0x5a625f=_0xa6fced[_0x23cab1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xa542ad);_0x5498c6=(_0x5498c6<<0x5)+_0x5498c6+_0x5a625f,_0x5498c6&=_0x5498c6;}}function _0x51110c(_0x11eda9){Array[_0x23cab1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11eda9)?_0x11eda9[_0x23cab1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51110c):_0x11eda9&&typeof _0x11eda9==_0x23cab1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23cab1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11eda9)[_0x23cab1([0x73,0x6f,0x72,0x74])]()[_0x23cab1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1062fc,_0x2b0456])=>{_0x1a1bf3(_0x1062fc),_0x51110c(_0x2b0456);}):_0x1a1bf3(window[_0x23cab1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11eda9));}return _0x51110c(_0x5be54c),_0x5498c6>>>0x0;}function _0x146f95(_0x5883a3){return _0x5883a3[_0x23cab1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23cab1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23cab1([0x30]));}function _0x9d3207(_0x30efca){return _0x30efca[_0x23cab1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23cab1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23cab1([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a66aa(){}function _0x23cab1(_0x29d3a7){return _0x29d3a7['map'](_0x13a952=>String['fromCharCode'](_0x13a952))['join']('');}_0x595805(await _0x249638());}(this);}['_initSchema'](){const _0x38d971=this['editor']['model']['schema'];_0x38d971['isRegistered']('imageBlock')&&_0x38d971['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x38d971['isRegistered']('imageInline')&&_0x38d971['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1cf8be=this['editor'];_0x1cf8be['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1cf8be['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1d9a20=>_0x1d9a20['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x53caf7=_0x1cf8be['commands']['get']('replaceImageSource');_0x53caf7&&this['listenTo'](_0x53caf7,'cleanupImage',(_0x437458,[_0x18eb22,_0x324b82])=>{_0x18eb22['removeAttribute']('uploadcareImageId',_0x324b82);});}['_initConfig'](){const _0x15752a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3cc552=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1d278a(_0x4dd528['document'],'uc-config',{..._0x15752a,'pubkey':_0x3cc552,'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']=_0x19af46=>{if('closeMax'==_0x19af46)return'#uc-icon-arrow-down';},_0x4dd528['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1d278a(_0x4dd528['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4dd528['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4ccf36=this['editor']['commands']['get']('insertImage');_0x4ccf36&&this['listenTo'](_0x4ccf36,'execute',()=>{const _0x571fe1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x571fe1&&_0x571fe1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x571fe1);});});const _0x8e9809=this['editor']['commands']['get']('uploadcareImageReplace');_0x8e9809&&this['listenTo'](_0x8e9809,'execute',()=>{const _0x4082c4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4082c4&&_0x4082c4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4082c4);});});}}class tt extends _0x3f3bf7{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49d59c){super(_0x49d59c),_0x49d59c['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3a1021['defineComponents'](_0x3a1021);}}class ii extends _0x2cbfb6{constructor(_0x24dde3){super(_0x24dde3);const t=_0x24dde3['t'],_0x5c0b13=this['bindTemplate'],_0x3f3fc6=new _0x4c1ba7();_0x3f3fc6['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':[_0x3f3fc6,{'text':_0x5c0b13['to']('imageUploadProgress',_0x54855b=>t('Loading\x20image...')+'\x20('+(_0x54855b||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x2cbfb6{constructor(_0xbb0b40){super(_0xbb0b40);const t=_0xbb0b40['t'];this['set']('errorType',null);const _0x16fcbc=new _0x981209(_0xbb0b40);_0x16fcbc['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x16fcbc['withText']=!0x0,_0x16fcbc['class']='ck-button-action',_0x16fcbc['on']('execute',()=>{this['fire']('retry');}),_0x16fcbc['bind']('isVisible')['to'](this,'errorType',_0xc60b=>'NotFound'!==_0xc60b);const _0x2cacea=new _0xf8dc64();_0x2cacea['content']=_0x40455a,_0x2cacea['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x8c3849=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':[_0x2cacea,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x8c3849['to']('errorType',_0x4935d2=>t('NotFound'!==_0x4935d2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x16fcbc]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x2cbfb6{constructor(_0xf160d2,_0x83d193){super(_0xf160d2);const _0x50ff84=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x83d193,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x50ff84['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3b0435,_0x4271c9,_0x495486){super(_0x3b0435),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3b0435),this['_errorView']=new ti(_0x3b0435),this['_editingView']=new ei(_0x3b0435,_0x495486),this['_focusableView']=new _0x2cbfb6(_0x3b0435),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4271c9),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'],_0x32547e=>{this['_addUploadcareImageEditorListeners'](_0x32547e);});}),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'](_0x26d353,_0x2fbd8a){const _0x9d7153='uc-cloud-image-editor',_0x107984=_0x26d353['querySelector'](_0x9d7153);if(_0x107984)return _0x2fbd8a(_0x107984);const _0x35b166=new MutationObserver(_0x339815=>{const _0x348d7e=_0x339815['filter'](_0xcbed83=>_0xcbed83['target']===_0x26d353&&_0xcbed83['addedNodes']['length']>0x0&&_0xcbed83['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x9d7153);_0x348d7e['length']&&(_0x35b166['disconnect'](),_0x2fbd8a(_0x348d7e[0x0]['addedNodes'][0x0]));});_0x35b166['observe'](_0x26d353,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xea2b83){_0xea2b83['addEventListener']('apply',_0x45bea7=>{this['fire']('apply',{'imageSrc':_0x45bea7['detail']['cdnUrl']});}),_0xea2b83['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xb132dd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x50593d,_0x56cb0b,_0x52fc88){super(),this['_editor']=_0x50593d,this['_dialog']=_0x56cb0b,this['_imageElement']=_0x52fc88,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 _0x4f2fa6=this['_imageElement'],_0x4dc450=_0x4f2fa6['getAttribute']('uploadcareImageId'),_0x49b5cd=_0x4f2fa6['getAttribute']('src');if(_0x4dc450)await this['_loadImageInfo'](_0x4dc450,_0x49b5cd);else{if(this['_imageCache']['has'](_0x49b5cd)){const _0x39b50f=this['_imageCache']['get'](_0x49b5cd);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39b50f['url'],this['imageDimension']=_0x39b50f['dimension'],this['imageId']=_0x39b50f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x93b193}=this['_editor'],t=_0x93b193['t'],_0xe7bdc0=new X(_0x93b193,this['imageStatus'],this['_attributes']);_0xe7bdc0['bind']('status')['to'](this,'imageStatus'),_0xe7bdc0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xe7bdc0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xe7bdc0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xe7bdc0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1fb5b4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xe7bdc0,'position':_0x3b8744['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xe7bdc0['focus']();},'onHide':()=>{_0xe7bdc0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x41da8a=>!S(_0x41da8a,_0xe7bdc0['element'])}});}['_loadImageInfo'](_0x53474b,_0xecc5c3){return j['getInfo'](_0x53474b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5d286f=>{const {width:_0x49f37f,height:_0xfa9c63}=_0x5d286f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xecc5c3,this['imageDimension']={'width':_0x49f37f,'height':_0xfa9c63},this['imageId']=_0x53474b;})['catch'](_0x530c1c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x530c1c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x18b2a6,_0x5a8cb8){return this['_getImageAsFile'](_0x18b2a6)['then'](_0x1b89a5=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5a8cb8['signal'],'file':_0x1b89a5,'onProgress':_0x37f1ac=>{_0x37f1ac&&_0x37f1ac['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x37f1ac['value']));}}))['then'](_0x3d1e9c=>{const {width:_0x36719b,height:_0x5e91b6}=_0x3d1e9c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d1e9c['cdnUrl'],this['imageDimension']={'width':_0x36719b,'height':_0x5e91b6},this['imageId']=_0x3d1e9c['uuid'],this['imageUploadProgress']=null;const _0x4880e2=_0x18b2a6['getAttribute']('src');this['_imageCache']['set'](_0x4880e2,{'id':_0x3d1e9c['uuid'],'url':_0x3d1e9c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4a1298=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4a1298['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1670d0,_0xfc8389){_0x1670d0['on']('apply',(_0x180136,_0x572888)=>{this['_replaceImage'](_0xfc8389,_0x572888['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1670d0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1670d0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x348ce8,_0x2aa6bb,_0x4a1d3f){const _0x556886=this['_editor'],{width:_0xccf6ce,height:_0x3810a1}=C(_0x2aa6bb,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xe84e72,imageSources:_0x178278}=k(_0x2aa6bb,_0xccf6ce);_0x556886['model']['change'](_0x1bd5b1=>{if('$graveyard'===_0x348ce8['root']['rootName']){_0x556886['execute']('insertImage',{'imageType':_0x348ce8['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x348ce8['getAttributes']()),'uploadcareImageId':_0x4a1d3f,'src':_0xe84e72,'sources':_0x178278,'width':_0xccf6ce,'height':_0x3810a1}});const _0x228a2a=_0x348ce8['getChildren']();_0x348ce8=_0x556886['model']['document']['selection']['getSelectedElement']();for(const _0x535262 of _0x228a2a)_0x1bd5b1['append'](_0x1bd5b1['cloneElement'](_0x535262),_0x348ce8);}else _0x1bd5b1['setSelection'](_0x348ce8,'on'),_0x556886['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x348ce8['getAttributes']()),'uploadcareImageId':_0x4a1d3f,'src':_0xe84e72,'sources':_0x178278,'width':_0xccf6ce,'height':_0x3810a1},_0x348ce8);_0x1bd5b1['setSelection'](_0x348ce8,'on');});}async['_getImageAsFile'](_0x3648db){const _0x3d0d16=_0x4dd528['window'],_0x1e7aef=_0x4dd528['document']['location']['href'],_0x37798e=new _0x3d0d16['URL'](_0x3648db['getAttribute']('src'),_0x1e7aef);if('data:'===_0x37798e['protocol']){const _0x206459=_0x37798e['href']['split'](','),_0x108d37=_0x206459[0x0]['match'](/:(.*?);/)[0x1],_0x3ebceb=_0x108d37['split']('/')[0x1],_0xaf9473=_0x3d0d16['atob'](_0x206459[_0x206459['length']-0x1]);let _0x3e295f=_0xaf9473['length'];const _0x9ac12c=new _0x3d0d16['Uint8Array'](_0x3e295f);for(;_0x3e295f--;)_0x9ac12c[_0x3e295f]=_0xaf9473['charCodeAt'](_0x3e295f);return new _0x3d0d16['File']([_0x9ac12c],'image.'+_0x3ebceb,{'type':_0x108d37});}const _0x58c6c9=_0x37798e['href']['split']('/'),_0x462d72=_0x58c6c9[_0x58c6c9['length']-0x1],_0x560fa3=_0x462d72['split']('.')[0x1];return _0x3d0d16['fetch'](_0x37798e['href'])['then'](_0x3277ee=>_0x3277ee['clone']()['blob']())['then'](_0x55158c=>new _0x3d0d16['File']([_0x55158c],_0x462d72,{'type':'image/'+_0x560fa3}));}}class O extends _0x210285{['imageEditController'];static get['requires'](){return[_0x338a0e];}['_isEditable'];constructor(_0xb5cee){super(_0xb5cee),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2f49c7){const _0x2a00a8=G(_0x2f49c7);return _0x33f35d=>!(!_0x33f35d||!_0x33f35d['is']('element','imageBlock')&&!_0x33f35d['is']('element','imageInline'))&&(!!_0x33f35d['hasAttribute']('uploadcareImageId')||!!_0x33f35d['hasAttribute']('src')&&_0x2a00a8(_0x33f35d['getAttribute']('src')));}(_0xb5cee['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x319fd0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x319fd0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x558e9f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x558e9f&&(_0x558e9f['is']('element','imageBlock')||_0x558e9f['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x338a0e),_0x558e9f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x210285{['refresh'](){const _0x6cd57f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x6cd57f&&(_0x6cd57f['is']('element','imageBlock')||_0x6cd57f['is']('element','imageInline')));}['execute'](_0x5785df){const _0x29f7e6=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5ac1fa=>{_0x5ac1fa['setAttributes'](_0x5785df,_0x29f7e6),_0x5ac1fa['removeAttribute']('srcset',_0x29f7e6),_0x5ac1fa['removeAttribute']('sizes',_0x29f7e6);});}}class m extends _0x3f3bf7{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x27c390,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1e4a56}=this;_0x1e4a56['commands']['add']('uploadcareImageEdit',new O(_0x1e4a56)),_0x1e4a56['commands']['add']('uploadcareImageReplace',new R(_0x1e4a56));}}class g extends _0x3f3bf7{['_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 _0x4efc3f=this['editor'];_0x4efc3f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x24e6de=>{const _0x40edd6=_0x4efc3f['commands']['get']('uploadcareImageEdit'),_0x182840=new _0x981209(_0x24e6de),t=_0x24e6de['t'];return _0x182840['set']({'icon':_0x1fb5b4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x182840['bind']('isEnabled')['to'](_0x40edd6),_0x182840['bind']('isOn')['to'](_0x40edd6,'isActive'),this['listenTo'](_0x182840,'execute',()=>{_0x4efc3f['execute']('uploadcareImageEdit'),_0x4efc3f['editing']['view']['focus']();}),_0x182840;}),this['_initConfig']();}['_initConfig'](){const _0x546f96=_0x1d278a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x546f96),this['listenTo'](this['editor'],'destroy',()=>{_0x546f96['remove']();});}}class et extends _0x3f3bf7{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x14262d,Command as _0x364f88}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x627e9d,IconGooglePhotos as _0x288953,IconGoogleDrive as _0x1d894a,IconFacebook as _0x21dc7e,IconDropbox as _0x46e42d,IconUploadcareLink as _0x36c2ed,IconUploadcareImageUpload as _0x4e6123,IconError as _0x5731a5,IconUploadcareImageEdit as _0xbc5585}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x234afe,MenuBarMenuListItemButtonView as _0x4d988d,View as _0x1ac964,FocusCycler as _0x22d7db,Dialog as _0x5a9e69,DialogViewPosition as _0x3cc85e,SpinnerView as _0x3810ef,IconView as _0x3103a8,Notification as _0x549b5e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5b27e4,DomEmitterMixin as _0x45d3b2,global as _0xdb3be7,getAncestors as _0x7aea6f,ObservableMixin as _0x25238a,createElement as _0x590871,uid as _0x33a573}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xce9fa9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2d974f,info as _0x22b485}from'@uploadcare/upload-client';import*as _0x480d41 from'@uploadcare/file-uploader';var i=function(_0x2e278c){return _0x2e278c['Local']='local',_0x2e278c['URL']='url',_0x2e278c['Dropbox']='dropbox',_0x2e278c['GDrive']='gdrive',_0x2e278c['Facebook']='facebook',_0x2e278c['GPhotos']='gphotos',_0x2e278c['OneDrive']='onedrive',_0x2e278c;}({});function _(_0x20a3fa,_0x47c093,_0x26e754){const t=_0x20a3fa['t'],_0x46bac3=_0x20a3fa['t'];switch(_0x47c093){case i['Local']:return{'text':_0x46bac3('Insert'===_0x26e754?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x46bac3('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x26e754?_0x46bac3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x46bac3('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x47c093;}}class e extends _0x14262d{['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 _0x518587=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32fbde;for(const _0x36dacb in _0x518587){const _0x57ed81=_0x36dacb,_0xb424c7=_0x518587[_0x57ed81];if('uploadcareLicenseKeyValid'==_0xb424c7||'uploadcareLicenseKeyInvalid'==_0xb424c7||'uploadcareLicenseKeyExpired'==_0xb424c7||'uploadcareLicenseKeyDomainLimit'==_0xb424c7||'uploadcareLicenseKeyNotAllowed'==_0xb424c7||'uploadcareLicenseKeyEvaluationLimit'==_0xb424c7||'uploadcareLicenseKeyTrialLimit'==_0xb424c7||'uploadcareLicenseKeyUsageLimit'==_0xb424c7){delete _0x518587[_0x57ed81],_0x32fbde=_0xb424c7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x32fbde&&_0x518587['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x32fbde&&_0x518587['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x32fbde&&_0x518587['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x32fbde&&_0x518587['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x32fbde&&_0x518587['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x32fbde&&_0x518587['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x32fbde&&_0x518587['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5edc5e}=this,_0x3b006=_0x5edc5e['commands']['get']('uploadcare');if(!_0x3b006)return;const _0x37fcf3=this['_normalizeConfigSourceList'](_0x5edc5e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x419c37,_0x356458)=>{const _0x4b56b9=this['_getIntegrationKey'](_0x356458['type']);return _0x419c37[_0x4b56b9]||(_0x419c37[_0x4b56b9]=[]),_0x419c37[_0x4b56b9]['push'](_0x356458),_0x419c37;},{});_0x5edc5e['plugins']['has']('ImageInsertUI')&&_0x5edc5e['commands']['get']('uploadcare')&&Object['entries'](_0x37fcf3)['forEach'](([_0x50d4f0,_0x3bc048])=>{_0x5edc5e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x50d4f0,'observable':()=>_0x3b006,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3bc048),'formViewCreator':()=>this['_createDropdownButtons'](_0x3bc048),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3bc048),'override':'assetManager'!==_0x50d4f0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x44de2b){const {locale:_0x1bb322}=this['editor'];return _0x44de2b['map'](_0x35b162=>{const _0x35c9db=_(_0x1bb322,_0x35b162,'Insert');switch(_0x35b162){case i['Local']:return{'icon':_0x4e6123,'type':i['Local'],..._0x35c9db};case i['URL']:return{'icon':_0x36c2ed,'type':i['URL'],..._0x35c9db};case i['Dropbox']:return{'icon':_0x46e42d,'type':i['Dropbox'],..._0x35c9db};case i['Facebook']:return{'icon':_0x21dc7e,'type':i['Facebook'],..._0x35c9db};case i['GDrive']:return{'icon':_0x1d894a,'type':i['GDrive'],..._0x35c9db};case i['GPhotos']:return{'icon':_0x288953,'type':i['GPhotos'],..._0x35c9db};case i['OneDrive']:return{'icon':_0x627e9d,'type':i['OneDrive'],..._0x35c9db};}});}['_getIntegrationKey'](_0x1129a0){switch(_0x1129a0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1c18b3,_0x23bc5a){const _0x4ae56e=this['editor'],_0x36cfbb=new _0x1c18b3(_0x4ae56e['locale']),_0x12e618=_0x4ae56e['commands']['get']('uploadcare');return _0x36cfbb['bind']('isEnabled')['to'](_0x12e618),_0x36cfbb['on']('execute',()=>{_0x12e618['execute'](_0x23bc5a);}),_0x36cfbb;}['_createToolbarButton'](_0x347632){const {locale:_0xa6ed10}=this['editor'],_0x4769c7=this['editor']['plugins']['get']('ImageInsertUI'),_0x5613f2=_0x347632[0x0],_0x245d9f=this['_createButton'](_0x234afe,_0x5613f2['type']);return _0x245d9f['icon']=_0x5613f2['icon'],_0x245d9f['bind']('label')['to'](_0x4769c7,'isImageSelected',_0xc75809=>_(_0xa6ed10,_0x5613f2['type'],_0xc75809?'Replace':'Insert')['text']),_0x245d9f['tooltip']=!0x0,_0x245d9f;}['_createDropdownButtons'](_0x33bc5b){const {locale:_0x10bddd}=this['editor'],_0x15380e=this['editor']['plugins']['get']('ImageInsertUI');return _0x33bc5b['map'](_0x27d9a5=>{const _0x2f23e7=this['_createButton'](_0x234afe,_0x27d9a5['type']);return _0x2f23e7['withText']=!0x0,_0x2f23e7['icon']=_0x27d9a5['icon'],_0x2f23e7['bind']('label')['to'](_0x15380e,'isImageSelected',_0x27631a=>_(_0x10bddd,_0x27d9a5['type'],_0x27631a?'Replace':'Insert')['text']),_0x2f23e7;});}['_createMenuBarButtons'](_0x436835){return _0x436835['map'](_0xe6a6c3=>{const _0x37c6ba=this['_createButton'](_0x4d988d,_0xe6a6c3['type']);return _0x37c6ba['icon']=_0xe6a6c3['icon'],_0x37c6ba['label']=_0xe6a6c3['shortText'],_0x37c6ba;});}}class F extends _0x1ac964{['focusTracker'];['focusCycler'];constructor(_0x497c77){super(_0x497c77),this['focusTracker']=new _0x5b27e4(),this['focusCycler']=new _0x22d7db({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x110b78){super(_0x110b78),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x2b1a31,_0x120de2){const _0x11371e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xce734b=>_0xce734b<=_0x120de2)['map'](_0x1b2b03=>_0x2b1a31['replace'](/\/$/,'')+'/-/resize/'+_0x1b2b03+'x/\x20'+_0x1b2b03+'w');return{'imageFallbackUrl':_0x2b1a31,'imageSources':[{'srcset':_0x11371e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x120de2+'px)\x20100vw,\x20'+_0x120de2+'px','type':'image/webp'}]};}function C(_0x33985f,_0x59abb3,_0xf96f62){const _0x3bf4bf=_0x33985f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3bf4bf?parseInt(_0x3bf4bf[0x1],0xa):_0x59abb3,'height':_0x3bf4bf?parseInt(_0x3bf4bf[0x2],0xa):_0xf96f62};}function p(_0x351257,_0x29b677){const _0x26d945=new(_0x45d3b2())(),_0x4e19f5=_0x351257['plugins']['get']('ImageUtils'),_0x955194=_0x351257['editing']['mapper']['toViewElement'](_0x29b677),_0x26aeee=_0x4e19f5['findViewImgElement'](_0x955194),_0x34570a=_0x351257['editing']['view']['domConverter']['viewToDom'](_0x26aeee),_0x3862ed=_0x29b677['getAttribute']('width'),_0x162105=_0x29b677['getAttribute']('height'),_0x1b5507='image-processing';_0x351257['editing']['view']['change'](_0x4d5796=>{_0x4d5796['addClass'](_0x1b5507,_0x955194),_0x4d5796['setStyle']('aspect-ratio',_0x3862ed+'/'+_0x162105,_0x26aeee);}),_0x26d945['listenTo'](_0x34570a,'load',()=>{_0x26d945['stopListening'](_0x34570a,'load'),_0x351257['editing']['view']['change'](_0x1e6787=>{_0x1e6787['removeClass'](_0x1b5507,_0x955194),_0x1e6787['removeStyle']('aspect-ratio',_0x26aeee);});});}function G(_0x3c5785){if(Array['isArray'](_0x3c5785)){const _0x540293=_0x3c5785['map'](G);return _0x3173db=>_0x540293['some'](_0x3f9387=>_0x3f9387(_0x3173db));}if('origin'==_0x3c5785){const _0x3fa71c=_0xdb3be7['window']['location']['origin'];return _0x1d4430=>new URL(_0x1d4430,_0xdb3be7['document']['baseURI'])['origin']==_0x3fa71c;}return'function'==typeof _0x3c5785?_0x3c5785:_0x3c5785 instanceof RegExp?_0x30f5c3=>!(!_0x30f5c3['match'](_0x3c5785)&&!_0x30f5c3['replace'](/^https?:\/\//,'')['match'](_0x3c5785)):()=>!0x1;}function S(_0x486778,_0x222a8d){return _0x7aea6f(_0x486778['target'])['includes'](_0x222a8d);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x25238a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xb3445a,_0x354e3f,_0x16a6c0){super(),this['_editor']=_0xb3445a,this['_editing']=_0x354e3f,this['_dialog']=_0xb3445a['plugins']['get'](_0x5a9e69),this['_api']=_0x354e3f['ctxElement']['getAPI'](),this['_type']=_0x16a6c0,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:_0x51182d,model:_0x1cd015}=this['_editor'],_0x38195c=_0x1cd015['document']['selection']['getSelectedElement'](),_0x5e871e=_0x38195c&&(_0x38195c['is']('element','imageBlock')||_0x38195c['is']('element','imageInline'));this['_formView']=new x(_0x51182d),this['_dialog']['show']({'id':'uploadCare','icon':_0x4e6123,'title':_(_0x51182d,this['_type'],_0x5e871e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3cc85e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a9658=>!S(_0x1a9658,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x35ffe5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x43008c=>{const _0x1d76c0=_0x35ffe5['length'];for(const _0x34e3d9 of _0x35ffe5){const _0x178629=_0x34e3d9===_0x35ffe5[_0x1d76c0-0x1],{cdnUrl:_0x49a485,fileInfo:_0x47a218}=_0x34e3d9;if(!_0x49a485||!_0x47a218)continue;const {width:_0x1c584e,height:_0x96cc7b}=_0x47a218['imageInfo'],_0x2caf2c=C(_0x49a485,_0x1c584e,_0x96cc7b),_0x5aef3f=k(_0x49a485,_0x2caf2c['width']),_0x2b9fd2={'id':_0x47a218['uuid'],'type':'image','attributes':{'imageDimension':_0x2caf2c,..._0x5aef3f}};this['_insertAsset'](_0x2b9fd2,_0x178629,_0x43008c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x10a82e=>{'idle'===_0x10a82e['detail']['status']&&!_0x10a82e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x485e9d,_0x254d57,_0xc5ae8f){const _0x5bbb35=this['_editor']['model']['document']['selection'],_0x19c81b=_0x5bbb35['getSelectedElement'](),_0x13e998=!(!_0x19c81b||!_0x19c81b['is']('element','imageInline'));_0xc5ae8f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x485e9d,_0x13e998),_0x254d57||_0xc5ae8f['setSelection'](_0x5bbb35['getLastPosition']());}['_insertImage'](_0xd8646,_0x4db197){const _0x219bd1=this['_editor'],{imageDimension:_0x189b9b,imageFallbackUrl:_0x1b5840,imageSources:_0x22c29a}=_0xd8646['attributes'];_0x219bd1['execute']('insertImage',{'imageType':_0x4db197?'imageInline':null,'source':{'uploadcareImageId':_0xd8646['id'],'src':_0x1b5840,'sources':_0x22c29a,..._0x189b9b}});}}class w extends _0x364f88{['_editing'];['_controller']=null;static get['requires'](){return[_0x5a9e69,o];}constructor(_0x3b9f6e){super(_0x3b9f6e),this['_editing']=_0x3b9f6e['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2b7100){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2b7100);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x21b03b,publicKey:_0x2ac524,signal:_0x2ed81d,onProgress:_0x1bd73f}){return _0x2d974f(_0x21b03b,{'publicKey':_0x2ac524,'store':'auto','signal':_0x2ed81d,'onProgress':_0x1bd73f});}static['getInfo'](_0x51a8df,_0x5966f4){return _0x22b485(_0x51a8df,_0x5966f4);}}class f extends _0x14262d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xce9fa9,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x335f0b=this['editor'];if(!!!_0x335f0b['config']['get']('uploadcare'))return;_0x335f0b['plugins']['get'](_0xce9fa9)['createUploadAdapter']=_0x170ad8=>new A(_0x170ad8,_0x335f0b),_0x335f0b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3df0f7,{imageElement:_0x18e979,data:_0x26e55d})=>{_0x335f0b['model']['change'](_0x533b32=>{_0x533b32['setAttribute']('uploadcareImageId',_0x26e55d['uploadcareImageId'],_0x18e979);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xe185f4,_0xaf7db8){this['loader']=_0xe185f4,this['editor']=_0xaf7db8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x39975a=this['editor']['config']['get']('uploadcare.pubkey'),_0x4371fa=await this['loader']['file'];return j['upload']({'file':_0x4371fa,'publicKey':_0x39975a,'signal':this['controller']['signal'],'onProgress':_0x423539=>{_0x423539&&_0x423539['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x423539['value']);}})['then'](async _0x315936=>{const {imageFallbackUrl:_0x269f9a,imageSources:_0x3f3750}=k(_0x315936['cdnUrl'],_0x315936['imageInfo']['width']);return{'uploadcareImageId':_0x315936['uuid'],'default':_0x269f9a,'sources':_0x3f3750};})['catch'](()=>{const _0xe01dbe=t('Cannot\x20upload\x20file:')+('\x20'+_0x4371fa['name']+'.');return Promise['reject'](_0xe01dbe);});}['abort'](){this['controller']['abort']();}}class o extends _0x14262d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5a9e69];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x54271c=this['editor'];_0x54271c['commands']['add']('uploadcare',new w(_0x54271c));}['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 _0x5ace20=_0xdb3be7['document']['querySelector']('input[uploadcare-file-input]');_0x5ace20&&_0x5ace20['remove']();}),async function(_0xd08b9e){const _0x4ab03c=_0x453acf([0x42,0x56,0x7a,0x33,0x31,0x57,0x39,0x50,0x4b,0x62,0x64,0x6f,0x36,0x34,0x6a,0x35,0x37,0x79,0x54,0x61,0x4a,0x47,0x5a,0x65,0x4d,0x70,0x4c,0x6d,0x76,0x66,0x71,0x69,0x4e,0x45,0x48,0x6b,0x72,0x51,0x52,0x43,0x68,0x73,0x53,0x74,0x55,0x41,0x58,0x30,0x78,0x77,0x6c,0x63,0x4f,0x38,0x46,0x44,0x49,0x59,0x75,0x32,0x67,0x6e]),_0x28946d=0x28f7ac2d,_0x116ba1=0x28f0c695^_0x28946d,_0x26e06a=window[_0x453acf([0x44,0x61,0x74,0x65])][_0x453acf([0x6e,0x6f,0x77])](),_0x59355d=_0xd08b9e[_0x453acf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26e9c6=new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11cb8b=>{_0x59355d[_0x453acf([0x6f,0x6e,0x63,0x65])](_0x453acf([0x72,0x65,0x61,0x64,0x79]),_0x11cb8b);}),_0x5449cd={[_0x453acf([0x6b,0x74,0x79])]:_0x453acf([0x45,0x43]),[_0x453acf([0x75,0x73,0x65])]:_0x453acf([0x73,0x69,0x67]),[_0x453acf([0x63,0x72,0x76])]:_0x453acf([0x50,0x2d,0x32,0x35,0x36]),[_0x453acf([0x78])]:_0x453acf([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]),[_0x453acf([0x79])]:_0x453acf([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]),[_0x453acf([0x61,0x6c,0x67])]:_0x453acf([0x45,0x53,0x32,0x35,0x36])},_0x595e76=_0x59355d[_0x453acf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x453acf([0x67,0x65,0x74])](_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x20a45f(){let _0xf6eb43,_0x157cf5=null,_0x397fde=null;try{if(_0x595e76==_0x453acf([0x47,0x50,0x4c]))return _0x453acf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf6eb43=_0x14fec1(),!_0xf6eb43)return _0x453acf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf6eb43[_0x453acf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x397fde=_0x1192b5(_0xf6eb43[_0x453acf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf6eb43[_0x453acf([0x6a,0x74,0x69])])),await _0x48de0f()?_0x17aa2d()?_0x55dd4a()?_0x453acf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ce2d3()?(_0xf6eb43[_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x453acf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x157cf5=_0x2dfd06(_0x453acf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf6eb43[_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x453acf([0x74,0x72,0x69,0x61,0x6c])&&(_0x157cf5=_0x2dfd06(_0x453acf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34a48c()):_0x453acf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x453acf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x453acf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x453acf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55dd4a(){const _0x874b99=[_0x453acf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x453acf([0x74,0x72,0x69,0x61,0x6c])][_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf6eb43[_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26e06a/0x3e8:0xe10*_0x116ba1;return _0xf6eb43[_0x453acf([0x65,0x78,0x70])]<_0x874b99;}function _0x17aa2d(){const _0x2a386e=_0xf6eb43[_0x453acf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a386e&&(!!_0x2a386e[_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x453acf([0x2a]))||!!_0x2a386e[_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x453acf([0x55,0x50,0x4c,0x43])));}function _0x1ce2d3(){const _0x538e27=_0xf6eb43[_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x538e27||0x0==_0x538e27[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a8382}=new URL(window[_0x453acf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x538e27[_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a8382))return!0x0;const _0x7d312e=_0x2a8382[_0x453acf([0x73,0x70,0x6c,0x69,0x74])](_0x453acf([0x2e]));return _0x538e27[_0x453acf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51d649=>_0x51d649[_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x453acf([0x2a])))[_0x453acf([0x6d,0x61,0x70])](_0x62e773=>_0x62e773[_0x453acf([0x73,0x70,0x6c,0x69,0x74])](_0x453acf([0x2e])))[_0x453acf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17f497=>_0x17f497[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7d312e[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x453acf([0x6d,0x61,0x70])](_0x5f37b7=>Array(_0x7d312e[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5f37b7[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x453acf([0x66,0x69,0x6c,0x6c])](_0x5f37b7[0x0]===_0x453acf([0x2a])?_0x453acf([0x2a]):'')[_0x453acf([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5f37b7))[_0x453acf([0x73,0x6f,0x6d,0x65])](_0x9c0fbd=>_0x7d312e[_0x453acf([0x65,0x76,0x65,0x72,0x79])]((_0xc4e49f,_0x261427)=>_0x9c0fbd[_0x261427]===_0xc4e49f||_0x9c0fbd[_0x261427]===_0x453acf([0x2a])));}function _0x34a48c(){return _0x157cf5&&_0x397fde?new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x146e4c,_0xdd7a94)=>{_0x157cf5[_0x453acf([0x74,0x68,0x65,0x6e])](_0x146e4c,_0xdd7a94),_0x397fde[_0x453acf([0x74,0x68,0x65,0x6e])](_0x613a5a=>{_0x613a5a!=_0x453acf([0x56,0x61,0x6c,0x69,0x64])&&_0x146e4c(_0x613a5a);},_0xdd7a94);}):_0x157cf5||_0x397fde||_0x453acf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1192b5(_0x40ebde,_0x3039a3){return new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f93a5=>{if(_0x7fa82b())return _0x5f93a5(_0x453acf([0x56,0x61,0x6c,0x69,0x64]));_0x22bb68(),_0x59355d[_0x453acf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x453acf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa508bb=!0x1;const _0x519262=_0x33a573();function _0x2921b3(_0x3106da){return!!_0x3106da&&(typeof _0x3106da===_0x453acf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3106da===_0x453acf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3106da[_0x453acf([0x74,0x68,0x65,0x6e])]===_0x453acf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3106da[_0x453acf([0x63,0x61,0x74,0x63,0x68])]===_0x453acf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d3ed5(_0x3bb244){_0x2ad5ec(_0x3bb244)[_0x453acf([0x74,0x68,0x65,0x6e])](_0x41b669=>{if(!_0x41b669||_0x41b669[_0x453acf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x453acf([0x6f,0x6b]))return _0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x170d7b(_0x1e5bfc(_0x519262+_0x3039a3))!=_0x41b669[_0x453acf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x453acf([0x56,0x61,0x6c,0x69,0x64]);})[_0x453acf([0x74,0x68,0x65,0x6e])](_0x4c5da7=>(_0x31d2c2(),_0x4c5da7),()=>{const _0x1371b4=_0x11bfdb();return null==_0x1371b4?(_0x31d2c2(),_0x453acf([0x56,0x61,0x6c,0x69,0x64])):_0x453acf(_0x26e06a-_0x1371b4>(0xcfb282d^_0x28946d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x453acf([0x74,0x68,0x65,0x6e])](_0x5f93a5)[_0x453acf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f93a5(_0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53af37=0x28c142ad^_0x28946d;function _0x31d2c2(){const _0x3099ef=_0x453acf([0x6c,0x6c,0x63,0x74,0x2d])+_0x170d7b(_0x1e5bfc(_0x40ebde)),_0x333260=_0xf49210(_0x170d7b(window[_0x453acf([0x4d,0x61,0x74,0x68])][_0x453acf([0x63,0x65,0x69,0x6c])](_0x26e06a/_0x53af37)));window[_0x453acf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x453acf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3099ef,_0x333260);}function _0x11bfdb(){const _0x31c762=_0x453acf([0x6c,0x6c,0x63,0x74,0x2d])+_0x170d7b(_0x1e5bfc(_0x40ebde)),_0x428aa5=window[_0x453acf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x453acf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31c762);return _0x428aa5?window[_0x453acf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf49210(_0x428aa5),0x10)*_0x53af37:null;}function _0x2ad5ec(_0x38400d){return new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x503844,_0x4fb883)=>{_0x38400d[_0x453acf([0x74,0x68,0x65,0x6e])](_0x503844,_0x4fb883),window[_0x453acf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fb883,0x28f678ed^_0x28946d);});}}_0x59355d[_0x453acf([0x6f,0x6e])](_0x453acf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bb6d9,_0x4654c9)=>{if(_0x4654c9[0x0]!=_0x40ebde)return _0x5f93a5(_0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4654c9[0x1]={..._0x4654c9[0x1],[_0x453acf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x519262};},{[_0x453acf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x453acf([0x68,0x69,0x67,0x68])}),_0x59355d[_0x453acf([0x6f,0x6e])](_0x453acf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d8a99=>{_0x2921b3(_0x3d8a99[_0x453acf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa508bb=!0x0,_0x5d3ed5(_0x3d8a99[_0x453acf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x453acf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x453acf([0x6c,0x6f,0x77])}),_0x26e9c6[_0x453acf([0x74,0x68,0x65,0x6e])](()=>{_0xa508bb||_0x5f93a5(_0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x7fa82b(){return _0x59355d[_0x453acf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x453acf([0x76,0x69,0x65,0x77])][_0x453acf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x453acf([0x61,0x75,0x74,0x6f]);}function _0x22bb68(){_0x59355d[_0x453acf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x453acf([0x76,0x69,0x65,0x77])][_0x453acf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x453acf([0x61,0x75,0x74,0x6f]);}}function _0x2dfd06(_0x30789e){const _0x497b2a=[new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2432a8=>setTimeout(_0x2432a8,0x28fe92e1^_0x28946d)),_0x26e9c6[_0x453acf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa8ef77=>{let _0x308352=0x0;_0x59355d[_0x453acf([0x6d,0x6f,0x64,0x65,0x6c])][_0x453acf([0x6f,0x6e])](_0x453acf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x6c836d,_0x1249a0)=>{_0x1249a0[0x0][_0x453acf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x308352++,_0x308352==(0x28f7add5^_0x28946d)&&(_0xa8ef77(),_0x6c836d[_0x453acf([0x6f,0x66,0x66])]());});}))];return window[_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x453acf([0x72,0x61,0x63,0x65])](_0x497b2a)[_0x453acf([0x74,0x68,0x65,0x6e])](()=>_0x30789e);}async function _0x5284c8(){await _0x26e9c6,_0x59355d[_0x453acf([0x6d,0x6f,0x64,0x65,0x6c])][_0x453acf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f2ada,_0x59355d[_0x453acf([0x6d,0x6f,0x64,0x65,0x6c])][_0x453acf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f2ada,_0x59355d[_0x453acf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x453acf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31257f(_0x1ca2c1){const _0x5a7d4c=_0x24fe0b();_0x59355d[_0x5a7d4c]=_0x453acf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ca2c1,_0x1ca2c1!=_0x453acf([0x56,0x61,0x6c,0x69,0x64])&&_0x5284c8();}function _0x24fe0b(){const _0x4afa74=window[_0x453acf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x453acf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x453acf([0x6e,0x6f,0x77])]())[_0x453acf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x453acf([0x2e]),'');let _0x16b14c=_0x453acf([0x42]);for(let _0x1aa70f=0x0;_0x1aa70f<_0x4afa74[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1aa70f+=0x2){let _0x4e863=window[_0x453acf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4afa74[_0x453acf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1aa70f,_0x1aa70f+0x2));_0x4e863>=_0x4ab03c[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e863-=_0x4ab03c[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16b14c+=_0x4ab03c[_0x4e863];}return _0x16b14c;}function _0x14fec1(){const _0x5f19f4=_0x595e76[_0x453acf([0x73,0x70,0x6c,0x69,0x74])](_0x453acf([0x2e]));if(0x3!=_0x5f19f4[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c040d(_0x5f19f4[0x1]);function _0x5c040d(_0x26d7b9){const _0x31ac53=_0x535228(_0x26d7b9);return _0x31ac53&&_0x12e72a()?_0x31ac53:null;function _0x12e72a(){const _0x241c6b=_0x31ac53[_0x453acf([0x6a,0x74,0x69])],_0x353b1f=window[_0x453acf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x241c6b[_0x453acf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x241c6b[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31b436={..._0x31ac53,[_0x453acf([0x6a,0x74,0x69])]:_0x241c6b[_0x453acf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x241c6b[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31b436[_0x453acf([0x76,0x63])],_0x1e5bfc(_0x31b436)==_0x353b1f;}}}async function _0x48de0f(){let _0x2c03ee=!0x0;try{const _0x7e8a81=_0x595e76[_0x453acf([0x73,0x70,0x6c,0x69,0x74])](_0x453acf([0x2e])),[_0x1ab2dc,_0x595bd6,_0x1dd64d]=_0x7e8a81;return _0x5b33eb(_0x1ab2dc),await _0x2efadd(_0x1ab2dc,_0x595bd6,_0x1dd64d),_0x2c03ee;}catch{return!0x1;}function _0x5b33eb(_0xc34d34){const _0x10bcc0=_0x535228(_0xc34d34);_0x10bcc0&&_0x10bcc0[_0x453acf([0x61,0x6c,0x67])]==_0x453acf([0x45,0x53,0x32,0x35,0x36])||(_0x2c03ee=!0x1);}async function _0x2efadd(_0x144066,_0x35762f,_0x1c46db){const _0x4b18f7=window[_0x453acf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x453acf([0x66,0x72,0x6f,0x6d])](_0x524f0b(_0x1c46db),_0x14b873=>_0x14b873[_0x453acf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30aa48=new window[(_0x453acf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x453acf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x144066+_0x453acf([0x2e])+_0x35762f),_0x504b90=window[_0x453acf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x453acf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x504b90)return;const _0x461727=await _0x504b90[_0x453acf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x453acf([0x6a,0x77,0x6b]),_0x5449cd,{[_0x453acf([0x6e,0x61,0x6d,0x65])]:_0x453acf([0x45,0x43,0x44,0x53,0x41]),[_0x453acf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x453acf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x453acf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x504b90[_0x453acf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x453acf([0x6e,0x61,0x6d,0x65])]:_0x453acf([0x45,0x43,0x44,0x53,0x41]),[_0x453acf([0x68,0x61,0x73,0x68])]:{[_0x453acf([0x6e,0x61,0x6d,0x65])]:_0x453acf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x461727,_0x4b18f7,_0x30aa48)||(_0x2c03ee=!0x1);}}function _0x535228(_0x1f9875){return _0x1f9875[_0x453acf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x453acf([0x65,0x79]))?JSON[_0x453acf([0x70,0x61,0x72,0x73,0x65])](_0x524f0b(_0x1f9875)):null;}function _0x524f0b(_0x8b0b1a){return window[_0x453acf([0x61,0x74,0x6f,0x62])](_0x8b0b1a[_0x453acf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x453acf([0x2b]))[_0x453acf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x453acf([0x2f])));}function _0x1e5bfc(_0x12499d){let _0x483c53=0x1505;function _0xc03204(_0x39a87b){for(let _0xf324e4=0x0;_0xf324e4<_0x39a87b[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf324e4++){const _0x510709=_0x39a87b[_0x453acf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf324e4);_0x483c53=(_0x483c53<<0x5)+_0x483c53+_0x510709,_0x483c53&=_0x483c53;}}function _0x160e5f(_0x269d12){Array[_0x453acf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x269d12)?_0x269d12[_0x453acf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x160e5f):_0x269d12&&typeof _0x269d12==_0x453acf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x453acf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x269d12)[_0x453acf([0x73,0x6f,0x72,0x74])]()[_0x453acf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c3e85,_0x430e62])=>{_0xc03204(_0x4c3e85),_0x160e5f(_0x430e62);}):_0xc03204(window[_0x453acf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x269d12));}return _0x160e5f(_0x12499d),_0x483c53>>>0x0;}function _0x170d7b(_0xb404c2){return _0xb404c2[_0x453acf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x453acf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x453acf([0x30]));}function _0xf49210(_0x1ddfbd){return _0x1ddfbd[_0x453acf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x453acf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x453acf([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f2ada(){}function _0x453acf(_0x217276){return _0x217276['map'](_0xa03830=>String['fromCharCode'](_0xa03830))['join']('');}_0x31257f(await _0x20a45f());}(this);}['_initSchema'](){const _0x47bc76=this['editor']['model']['schema'];_0x47bc76['isRegistered']('imageBlock')&&_0x47bc76['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x47bc76['isRegistered']('imageInline')&&_0x47bc76['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3c694f=this['editor'];_0x3c694f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3c694f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x56da81=>_0x56da81['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f4913=_0x3c694f['commands']['get']('replaceImageSource');_0x2f4913&&this['listenTo'](_0x2f4913,'cleanupImage',(_0x5594a5,[_0x543203,_0x8c8031])=>{_0x543203['removeAttribute']('uploadcareImageId',_0x8c8031);});}['_initConfig'](){const _0x14f5ac=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4e9936=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x590871(_0xdb3be7['document'],'uc-config',{..._0x14f5ac,'pubkey':_0x4e9936,'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']=_0x11f428=>{if('closeMax'==_0x11f428)return'#uc-icon-arrow-down';},_0xdb3be7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x590871(_0xdb3be7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xdb3be7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x52435a=this['editor']['commands']['get']('insertImage');_0x52435a&&this['listenTo'](_0x52435a,'execute',()=>{const _0x45d45d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x45d45d&&_0x45d45d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x45d45d);});});const _0xc1025=this['editor']['commands']['get']('uploadcareImageReplace');_0xc1025&&this['listenTo'](_0xc1025,'execute',()=>{const _0x6bcf59=this['editor']['model']['document']['selection']['getSelectedElement']();_0x6bcf59&&_0x6bcf59['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x6bcf59);});});}}class tt extends _0x14262d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35ed16){super(_0x35ed16),_0x35ed16['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x480d41['defineComponents'](_0x480d41);}}class ii extends _0x1ac964{constructor(_0x4392c9){super(_0x4392c9);const t=_0x4392c9['t'],_0x4a8685=this['bindTemplate'],_0xd6952e=new _0x3810ef();_0xd6952e['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':[_0xd6952e,{'text':_0x4a8685['to']('imageUploadProgress',_0x53c2e1=>t('Loading\x20image...')+'\x20('+(_0x53c2e1||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x1ac964{constructor(_0x5050b8){super(_0x5050b8);const t=_0x5050b8['t'];this['set']('errorType',null);const _0x394279=new _0x234afe(_0x5050b8);_0x394279['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x394279['withText']=!0x0,_0x394279['class']='ck-button-action',_0x394279['on']('execute',()=>{this['fire']('retry');}),_0x394279['bind']('isVisible')['to'](this,'errorType',_0x23a5e8=>'NotFound'!==_0x23a5e8);const _0xe71f3d=new _0x3103a8();_0xe71f3d['content']=_0x5731a5,_0xe71f3d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x589f41=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':[_0xe71f3d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x589f41['to']('errorType',_0x1e455f=>t('NotFound'!==_0x1e455f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x394279]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x1ac964{constructor(_0xa9ef2e,_0xe3da2){super(_0xa9ef2e);const _0x524c84=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xe3da2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x524c84['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x6b51fa,_0x2a7979,_0x56e4b5){super(_0x6b51fa),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x6b51fa),this['_errorView']=new ti(_0x6b51fa),this['_editingView']=new ei(_0x6b51fa,_0x56e4b5),this['_focusableView']=new _0x1ac964(_0x6b51fa),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2a7979),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'],_0xcc7a6f=>{this['_addUploadcareImageEditorListeners'](_0xcc7a6f);});}),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'](_0x434024,_0xba389d){const _0x584f5a='uc-cloud-image-editor',_0x205c74=_0x434024['querySelector'](_0x584f5a);if(_0x205c74)return _0xba389d(_0x205c74);const _0x2382d4=new MutationObserver(_0x49acb8=>{const _0x2deb23=_0x49acb8['filter'](_0x15ced2=>_0x15ced2['target']===_0x434024&&_0x15ced2['addedNodes']['length']>0x0&&_0x15ced2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x584f5a);_0x2deb23['length']&&(_0x2382d4['disconnect'](),_0xba389d(_0x2deb23[0x0]['addedNodes'][0x0]));});_0x2382d4['observe'](_0x434024,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3c4041){_0x3c4041['addEventListener']('apply',_0x4e42a5=>{this['fire']('apply',{'imageSrc':_0x4e42a5['detail']['cdnUrl']});}),_0x3c4041['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x25238a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x347f16,_0x3755ff,_0x916c15){super(),this['_editor']=_0x347f16,this['_dialog']=_0x3755ff,this['_imageElement']=_0x916c15,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 _0x5623e2=this['_imageElement'],_0x30f668=_0x5623e2['getAttribute']('uploadcareImageId'),_0x308b57=_0x5623e2['getAttribute']('src');if(_0x30f668)await this['_loadImageInfo'](_0x30f668,_0x308b57);else{if(this['_imageCache']['has'](_0x308b57)){const _0x66d99c=this['_imageCache']['get'](_0x308b57);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x66d99c['url'],this['imageDimension']=_0x66d99c['dimension'],this['imageId']=_0x66d99c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x42516a}=this['_editor'],t=_0x42516a['t'],_0x4f90c8=new X(_0x42516a,this['imageStatus'],this['_attributes']);_0x4f90c8['bind']('status')['to'](this,'imageStatus'),_0x4f90c8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4f90c8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4f90c8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4f90c8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xbc5585,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4f90c8,'position':_0x3cc85e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4f90c8['focus']();},'onHide':()=>{_0x4f90c8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x992987=>!S(_0x992987,_0x4f90c8['element'])}});}['_loadImageInfo'](_0x2cb354,_0x588903){return j['getInfo'](_0x2cb354,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x20c23a=>{const {width:_0x5008b8,height:_0x217c3a}=_0x20c23a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x588903,this['imageDimension']={'width':_0x5008b8,'height':_0x217c3a},this['imageId']=_0x2cb354;})['catch'](_0x2bcb9b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2bcb9b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d8268,_0x321ec2){return this['_getImageAsFile'](_0x1d8268)['then'](_0xce3c45=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x321ec2['signal'],'file':_0xce3c45,'onProgress':_0x29b477=>{_0x29b477&&_0x29b477['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x29b477['value']));}}))['then'](_0x9b24fe=>{const {width:_0x150aaf,height:_0x8ac599}=_0x9b24fe['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x9b24fe['cdnUrl'],this['imageDimension']={'width':_0x150aaf,'height':_0x8ac599},this['imageId']=_0x9b24fe['uuid'],this['imageUploadProgress']=null;const _0x229245=_0x1d8268['getAttribute']('src');this['_imageCache']['set'](_0x229245,{'id':_0x9b24fe['uuid'],'url':_0x9b24fe['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2a2bea=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a2bea['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x441586,_0x4eda60){_0x441586['on']('apply',(_0x503264,_0x3a9d37)=>{this['_replaceImage'](_0x4eda60,_0x3a9d37['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x441586['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x441586['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x549dcd,_0xc69513,_0x4329bf){const _0x4790cb=this['_editor'],{width:_0x1d478b,height:_0x3e8e8e}=C(_0xc69513,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1ee8c9,imageSources:_0x14cdf0}=k(_0xc69513,_0x1d478b);_0x4790cb['model']['change'](_0x4d6ead=>{if('$graveyard'===_0x549dcd['root']['rootName']){_0x4790cb['execute']('insertImage',{'imageType':_0x549dcd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x549dcd['getAttributes']()),'uploadcareImageId':_0x4329bf,'src':_0x1ee8c9,'sources':_0x14cdf0,'width':_0x1d478b,'height':_0x3e8e8e}});const _0x28b2d5=_0x549dcd['getChildren']();_0x549dcd=_0x4790cb['model']['document']['selection']['getSelectedElement']();for(const _0x4871d0 of _0x28b2d5)_0x4d6ead['append'](_0x4d6ead['cloneElement'](_0x4871d0),_0x549dcd);}else _0x4d6ead['setSelection'](_0x549dcd,'on'),_0x4790cb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x549dcd['getAttributes']()),'uploadcareImageId':_0x4329bf,'src':_0x1ee8c9,'sources':_0x14cdf0,'width':_0x1d478b,'height':_0x3e8e8e},_0x549dcd);_0x4d6ead['setSelection'](_0x549dcd,'on');});}async['_getImageAsFile'](_0x4d42a8){const _0x5862dc=_0xdb3be7['window'],_0xd598f4=_0xdb3be7['document']['location']['href'],_0x484ef9=new _0x5862dc['URL'](_0x4d42a8['getAttribute']('src'),_0xd598f4);if('data:'===_0x484ef9['protocol']){const _0x41fb2c=_0x484ef9['href']['split'](','),_0x236106=_0x41fb2c[0x0]['match'](/:(.*?);/)[0x1],_0x4174e7=_0x236106['split']('/')[0x1],_0x4c0b1a=_0x5862dc['atob'](_0x41fb2c[_0x41fb2c['length']-0x1]);let _0x3f53ef=_0x4c0b1a['length'];const _0x3025a0=new _0x5862dc['Uint8Array'](_0x3f53ef);for(;_0x3f53ef--;)_0x3025a0[_0x3f53ef]=_0x4c0b1a['charCodeAt'](_0x3f53ef);return new _0x5862dc['File']([_0x3025a0],'image.'+_0x4174e7,{'type':_0x236106});}const _0x4aed25=_0x484ef9['href']['split']('/'),_0x23c260=_0x4aed25[_0x4aed25['length']-0x1],_0x20bd99=_0x23c260['split']('.')[0x1];return _0x5862dc['fetch'](_0x484ef9['href'])['then'](_0x4efd65=>_0x4efd65['clone']()['blob']())['then'](_0xf92cd2=>new _0x5862dc['File']([_0xf92cd2],_0x23c260,{'type':'image/'+_0x20bd99}));}}class O extends _0x364f88{['imageEditController'];static get['requires'](){return[_0x5a9e69];}['_isEditable'];constructor(_0x20a236){super(_0x20a236),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x33f002){const _0x572012=G(_0x33f002);return _0x240320=>!(!_0x240320||!_0x240320['is']('element','imageBlock')&&!_0x240320['is']('element','imageInline'))&&(!!_0x240320['hasAttribute']('uploadcareImageId')||!!_0x240320['hasAttribute']('src')&&_0x572012(_0x240320['getAttribute']('src')));}(_0x20a236['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4e4a1e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4e4a1e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x419448=this['editor']['model']['document']['selection']['getSelectedElement']();_0x419448&&(_0x419448['is']('element','imageBlock')||_0x419448['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x5a9e69),_0x419448),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x364f88{['refresh'](){const _0x53f534=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x53f534&&(_0x53f534['is']('element','imageBlock')||_0x53f534['is']('element','imageInline')));}['execute'](_0x183a87){const _0x3f9c5e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xdb16f9=>{_0xdb16f9['setAttributes'](_0x183a87,_0x3f9c5e),_0xdb16f9['removeAttribute']('srcset',_0x3f9c5e),_0xdb16f9['removeAttribute']('sizes',_0x3f9c5e);});}}class m extends _0x14262d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x549b5e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x32f119}=this;_0x32f119['commands']['add']('uploadcareImageEdit',new O(_0x32f119)),_0x32f119['commands']['add']('uploadcareImageReplace',new R(_0x32f119));}}class g extends _0x14262d{['_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 _0x25850f=this['editor'];_0x25850f['ui']['componentFactory']['add']('uploadcareImageEdit',_0xe0421=>{const _0xec408d=_0x25850f['commands']['get']('uploadcareImageEdit'),_0x5f5b4b=new _0x234afe(_0xe0421),t=_0xe0421['t'];return _0x5f5b4b['set']({'icon':_0xbc5585,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5f5b4b['bind']('isEnabled')['to'](_0xec408d),_0x5f5b4b['bind']('isOn')['to'](_0xec408d,'isActive'),this['listenTo'](_0x5f5b4b,'execute',()=>{_0x25850f['execute']('uploadcareImageEdit'),_0x25850f['editing']['view']['focus']();}),_0x5f5b4b;}),this['_initConfig']();}['_initConfig'](){const _0x1d6a87=_0x590871(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d6a87),this['listenTo'](this['editor'],'destroy',()=>{_0x1d6a87['remove']();});}}class et extends _0x14262d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x56740a=>0x1!=_0x56740a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x59adf0=>{const {af:{dictionary:_0x4c09e3,getPluralForm:_0x3a8408}}={'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':_0x42b818=>0x1!=_0x42b818}};_0x59adf0['af']||={'dictionary':{},'getPluralForm':null},_0x59adf0['af']['dictionary']=Object['assign'](_0x59adf0['af']['dictionary'],_0x4c09e3),_0x59adf0['af']['getPluralForm']=_0x3a8408;})(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':_0x33e10d=>0x0==_0x33e10d?0x0:0x1==_0x33e10d?0x1:0x2==_0x33e10d?0x2:_0x33e10d%0x64>=0x3&&_0x33e10d%0x64<=0xa?0x3:_0x33e10d%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2fc65a=>{const {ar:{dictionary:_0x5e0e99,getPluralForm:_0x58c10e}}={'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':_0x30e51c=>0x0==_0x30e51c?0x0:0x1==_0x30e51c?0x1:0x2==_0x30e51c?0x2:_0x30e51c%0x64>=0x3&&_0x30e51c%0x64<=0xa?0x3:_0x30e51c%0x64>=0xb?0x4:0x5}};_0x2fc65a['ar']||={'dictionary':{},'getPluralForm':null},_0x2fc65a['ar']['dictionary']=Object['assign'](_0x2fc65a['ar']['dictionary'],_0x5e0e99),_0x2fc65a['ar']['getPluralForm']=_0x58c10e;})(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':_0x1a5927=>0x1!=_0x1a5927}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x256f7b=>{const {ast:{dictionary:_0x4fc3da,getPluralForm:_0x41e717}}={'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':_0x6da1a6=>0x1!=_0x6da1a6}};_0x256f7b['ast']||={'dictionary':{},'getPluralForm':null},_0x256f7b['ast']['dictionary']=Object['assign'](_0x256f7b['ast']['dictionary'],_0x4fc3da),_0x256f7b['ast']['getPluralForm']=_0x41e717;})(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':_0xa529ac=>0x1!=_0xa529ac}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4c9e06=>{const {az:{dictionary:_0x1fc8f9,getPluralForm:_0x58573c}}={'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':_0x2a0c0d=>0x1!=_0x2a0c0d}};_0x4c9e06['az']||={'dictionary':{},'getPluralForm':null},_0x4c9e06['az']['dictionary']=Object['assign'](_0x4c9e06['az']['dictionary'],_0x1fc8f9),_0x4c9e06['az']['getPluralForm']=_0x58573c;})(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':_0x16e566=>_0x16e566%0xa==0x1&&_0x16e566%0x64!=0xb?0x0:_0x16e566%0xa>=0x2&&_0x16e566%0xa<=0x4&&(_0x16e566%0x64<0xa||_0x16e566%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x30aad=>{const {be:{dictionary:_0x4362c7,getPluralForm:_0x10226a}}={'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':_0x10d0b6=>_0x10d0b6%0xa==0x1&&_0x10d0b6%0x64!=0xb?0x0:_0x10d0b6%0xa>=0x2&&_0x10d0b6%0xa<=0x4&&(_0x10d0b6%0x64<0xa||_0x10d0b6%0x64>=0x14)?0x1:0x2}};_0x30aad['be']||={'dictionary':{},'getPluralForm':null},_0x30aad['be']['dictionary']=Object['assign'](_0x30aad['be']['dictionary'],_0x4362c7),_0x30aad['be']['getPluralForm']=_0x10226a;})(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':_0x39bcfc=>0x1!=_0x39bcfc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x44f91a=>{const {bg:{dictionary:_0x424df2,getPluralForm:_0x5bc962}}={'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':_0x14992b=>0x1!=_0x14992b}};_0x44f91a['bg']||={'dictionary':{},'getPluralForm':null},_0x44f91a['bg']['dictionary']=Object['assign'](_0x44f91a['bg']['dictionary'],_0x424df2),_0x44f91a['bg']['getPluralForm']=_0x5bc962;})(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':_0x365da4=>0x1!=_0x365da4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xc85555=>{const {bn:{dictionary:_0x41b1f0,getPluralForm:_0x4a1a83}}={'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':_0x28ce6b=>0x1!=_0x28ce6b}};_0xc85555['bn']||={'dictionary':{},'getPluralForm':null},_0xc85555['bn']['dictionary']=Object['assign'](_0xc85555['bn']['dictionary'],_0x41b1f0),_0xc85555['bn']['getPluralForm']=_0x4a1a83;})(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':_0x20a704=>_0x20a704%0xa==0x1&&_0x20a704%0x64!=0xb?0x0:_0x20a704%0xa>=0x2&&_0x20a704%0xa<=0x4&&(_0x20a704%0x64<0xa||_0x20a704%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x8725be=>{const {bs:{dictionary:_0x3f1e27,getPluralForm:_0x2f26bc}}={'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':_0x20ca8c=>_0x20ca8c%0xa==0x1&&_0x20ca8c%0x64!=0xb?0x0:_0x20ca8c%0xa>=0x2&&_0x20ca8c%0xa<=0x4&&(_0x20ca8c%0x64<0xa||_0x20ca8c%0x64>=0x14)?0x1:0x2}};_0x8725be['bs']||={'dictionary':{},'getPluralForm':null},_0x8725be['bs']['dictionary']=Object['assign'](_0x8725be['bs']['dictionary'],_0x3f1e27),_0x8725be['bs']['getPluralForm']=_0x2f26bc;})(window['CKEDITOR_TRANSLATIONS']||={});
|