@ckeditor/ckeditor5-uploadcare 45.0.0 → 45.1.0-alpha.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/LICENSE.md +2 -2
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1b9781,Command as _0xa2e3e0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x427fdf,IconGooglePhotos as _0x140b4f,IconGoogleDrive as _0x2abcd5,IconFacebook as _0x3de4d8,IconDropbox as _0x91981f,IconUploadcareLink as _0x2facf2,IconUploadcareImageUpload as _0x1fad72,IconError as et,IconUploadcareImageEdit as _0x521686}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x32d418,MenuBarMenuListItemButtonView as _0x120ab3,View as _0x36540a,FocusCycler as _0x1543cb,Dialog as _0x231a08,DialogViewPosition as _0x484e1d,SpinnerView as _0x2c6d0a,IconView as at,Notification as _0x228cc6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3b788d,DomEmitterMixin as _0x243c9f,global as _0x26b59e,getAncestors as _0x26acfe,ObservableMixin as _0x2d2292,createElement as _0x2f4363,uid as _0x4d3c48}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x10758f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x13e593,info as _0x8b801c}from'@uploadcare/upload-client';import*as _0x5a3c2f from'@uploadcare/file-uploader';var o=function(_0x198c3b){return _0x198c3b['Local']='local',_0x198c3b['URL']='url',_0x198c3b['Dropbox']='dropbox',_0x198c3b['GDrive']='gdrive',_0x198c3b['Facebook']='facebook',_0x198c3b['GPhotos']='gphotos',_0x198c3b['OneDrive']='onedrive',_0x198c3b;}({});function _(_0x35f393,_0x3485f9,_0x28ef9e){const t=_0x35f393['t'],_0x2b8680=_0x35f393['t'];switch(_0x3485f9){case o['Local']:return{'text':_0x2b8680('Insert'===_0x28ef9e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2b8680('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x28ef9e?_0x2b8680('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2b8680('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x28ef9e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x28ef9e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x28ef9e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x28ef9e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x28ef9e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3485f9;}}class e extends _0x1b9781{['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 _0x981155=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a1aea;for(const _0x282060 in _0x981155){const _0x45911b=_0x282060,_0x2f0781=_0x981155[_0x45911b];if('uploadcareLicenseKeyValid'==_0x2f0781||'uploadcareLicenseKeyInvalid'==_0x2f0781||'uploadcareLicenseKeyExpired'==_0x2f0781||'uploadcareLicenseKeyDomainLimit'==_0x2f0781||'uploadcareLicenseKeyNotAllowed'==_0x2f0781||'uploadcareLicenseKeyEvaluationLimit'==_0x2f0781||'uploadcareLicenseKeyTrialLimit'==_0x2f0781||'uploadcareLicenseKeyUsageLimit'==_0x2f0781){delete _0x981155[_0x45911b],_0x5a1aea=_0x2f0781,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5a1aea&&_0x981155['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5a1aea&&_0x981155['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5a1aea&&_0x981155['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5a1aea&&_0x981155['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5a1aea&&_0x981155['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5a1aea&&_0x981155['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5a1aea&&_0x981155['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x32b845}=this,_0xdbd23c=_0x32b845['commands']['get']('uploadcare');if(!_0xdbd23c)return;const _0x3cd425=this['_normalizeConfigSourceList'](_0x32b845['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1fdbaf,_0x3bbb7d)=>{const _0x50ee69=this['_getIntegrationKey'](_0x3bbb7d['type']);return _0x1fdbaf[_0x50ee69]||(_0x1fdbaf[_0x50ee69]=[]),_0x1fdbaf[_0x50ee69]['push'](_0x3bbb7d),_0x1fdbaf;},{});_0x32b845['plugins']['has']('ImageInsertUI')&&_0x32b845['commands']['get']('uploadcare')&&Object['entries'](_0x3cd425)['forEach'](([_0x272aad,_0x2b225d])=>{_0x32b845['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x272aad,'observable':()=>_0xdbd23c,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2b225d),'formViewCreator':()=>this['_createDropdownButtons'](_0x2b225d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2b225d),'override':'assetManager'!==_0x272aad});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5b908f){const {locale:_0x34ef6f}=this['editor'];return _0x5b908f['map'](_0x1af3ad=>{const _0x3ea075=_(_0x34ef6f,_0x1af3ad,'Insert');switch(_0x1af3ad){case o['Local']:return{'icon':_0x1fad72,'type':o['Local'],..._0x3ea075};case o['URL']:return{'icon':_0x2facf2,'type':o['URL'],..._0x3ea075};case o['Dropbox']:return{'icon':_0x91981f,'type':o['Dropbox'],..._0x3ea075};case o['Facebook']:return{'icon':_0x3de4d8,'type':o['Facebook'],..._0x3ea075};case o['GDrive']:return{'icon':_0x2abcd5,'type':o['GDrive'],..._0x3ea075};case o['GPhotos']:return{'icon':_0x140b4f,'type':o['GPhotos'],..._0x3ea075};case o['OneDrive']:return{'icon':_0x427fdf,'type':o['OneDrive'],..._0x3ea075};}});}['_getIntegrationKey'](_0x155ba8){switch(_0x155ba8){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x291a2b,_0x25a262){const _0x21e3aa=this['editor'],_0x1af144=new _0x291a2b(_0x21e3aa['locale']),_0x2bd1f2=_0x21e3aa['commands']['get']('uploadcare');return _0x1af144['bind']('isEnabled')['to'](_0x2bd1f2),_0x1af144['on']('execute',()=>{_0x2bd1f2['execute'](_0x25a262);}),_0x1af144;}['_createToolbarButton'](_0x549fd4){const {locale:_0x55092c}=this['editor'],_0xab963c=this['editor']['plugins']['get']('ImageInsertUI'),_0x7381f7=_0x549fd4[0x0],_0x33459f=this['_createButton'](_0x32d418,_0x7381f7['type']);return _0x33459f['icon']=_0x7381f7['icon'],_0x33459f['bind']('label')['to'](_0xab963c,'isImageSelected',_0x225da1=>_(_0x55092c,_0x7381f7['type'],_0x225da1?'Replace':'Insert')['text']),_0x33459f['tooltip']=!0x0,_0x33459f;}['_createDropdownButtons'](_0x5107e1){const {locale:_0x3ef7d3}=this['editor'],_0xb0d89b=this['editor']['plugins']['get']('ImageInsertUI');return _0x5107e1['map'](_0x3b8164=>{const _0x501030=this['_createButton'](_0x32d418,_0x3b8164['type']);return _0x501030['withText']=!0x0,_0x501030['icon']=_0x3b8164['icon'],_0x501030['bind']('label')['to'](_0xb0d89b,'isImageSelected',_0x3f3eae=>_(_0x3ef7d3,_0x3b8164['type'],_0x3f3eae?'Replace':'Insert')['text']),_0x501030;});}['_createMenuBarButtons'](_0x11d531){return _0x11d531['map'](_0x363ebf=>{const _0x3f5d12=this['_createButton'](_0x120ab3,_0x363ebf['type']);return _0x3f5d12['icon']=_0x363ebf['icon'],_0x3f5d12['label']=_0x363ebf['shortText'],_0x3f5d12;});}}class q extends _0x36540a{['focusTracker'];['focusCycler'];constructor(_0x1fb0f4){super(_0x1fb0f4),this['focusTracker']=new _0x3b788d(),this['focusCycler']=new _0x1543cb({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x38c60e){super(_0x38c60e),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x365c07,_0x289f9f){const _0x32a0e3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1d47c6=>_0x1d47c6<=_0x289f9f)['map'](_0x255139=>_0x365c07['replace'](/\/$/,'')+'/-/resize/'+_0x255139+'x/\x20'+_0x255139+'w');return{'imageFallbackUrl':_0x365c07,'imageSources':[{'srcset':_0x32a0e3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x289f9f+'px)\x20100vw,\x20'+_0x289f9f+'px','type':'image/webp'}]};}function A(_0x304d9a,_0x3166ff,_0x97afd4){const _0x11533=_0x304d9a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x11533?parseInt(_0x11533[0x1],0xa):_0x3166ff,'height':_0x11533?parseInt(_0x11533[0x2],0xa):_0x97afd4};}function m(_0x44426c,_0x46d5d4){const _0x486b2c=Object['create'](_0x243c9f),_0x38151b=_0x44426c['plugins']['get']('ImageUtils'),_0x24b9da=_0x44426c['editing']['mapper']['toViewElement'](_0x46d5d4),_0x566a8c=_0x38151b['findViewImgElement'](_0x24b9da),_0x4a8d9e=_0x44426c['editing']['view']['domConverter']['viewToDom'](_0x566a8c),_0x36f1d1=_0x46d5d4['getAttribute']('width'),_0x2d8c23=_0x46d5d4['getAttribute']('height'),_0x3b479a='image-processing';_0x44426c['editing']['view']['change'](_0x2f9b81=>{_0x2f9b81['addClass'](_0x3b479a,_0x24b9da),_0x2f9b81['setStyle']('aspect-ratio',_0x36f1d1+'/'+_0x2d8c23,_0x566a8c);}),_0x486b2c['listenTo'](_0x4a8d9e,'load',()=>{_0x486b2c['stopListening'](_0x4a8d9e,'load'),_0x44426c['editing']['view']['change'](_0x2dd227=>{_0x2dd227['removeClass'](_0x3b479a,_0x24b9da),_0x2dd227['removeStyle']('aspect-ratio',_0x566a8c);});});}function V(_0x201dec){if(Array['isArray'](_0x201dec)){const _0x3495e0=_0x201dec['map'](V);return _0x913cac=>_0x3495e0['some'](_0xbb49a2=>_0xbb49a2(_0x913cac));}if('origin'==_0x201dec){const _0x18405a=_0x26b59e['window']['location']['origin'];return _0x11a829=>new URL(_0x11a829,_0x26b59e['document']['baseURI'])['origin']==_0x18405a;}return'function'==typeof _0x201dec?_0x201dec:_0x201dec instanceof RegExp?_0x28106c=>!(!_0x28106c['match'](_0x201dec)&&!_0x28106c['replace'](/^https?:\/\//,'')['match'](_0x201dec)):()=>!0x1;}function F(_0x485e8e,_0x564bca){return _0x26acfe(_0x485e8e['target'])['includes'](_0x564bca);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2d2292(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1aa864,_0x3d61fe,_0x1bf473){super(),this['_editor']=_0x1aa864,this['_editing']=_0x3d61fe,this['_dialog']=_0x1aa864['plugins']['get'](_0x231a08),this['_api']=_0x3d61fe['ctxElement']['getAPI'](),this['_type']=_0x1bf473,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:_0x4d488f,model:_0x1b3f11}=this['_editor'],_0x1a33ec=_0x1b3f11['document']['selection']['getSelectedElement'](),_0x220066=_0x1a33ec&&(_0x1a33ec['is']('element','imageBlock')||_0x1a33ec['is']('element','imageInline'));this['_formView']=new S(_0x4d488f),this['_dialog']['show']({'id':'uploadCare','icon':_0x1fad72,'title':_(_0x4d488f,this['_type'],_0x220066?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x484e1d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2345d9=>!F(_0x2345d9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2dfe64}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5c085a=>{const _0x21ae62=_0x2dfe64['length'];for(const _0x5a88aa of _0x2dfe64){const _0x2780fb=_0x5a88aa===_0x2dfe64[_0x21ae62-0x1],{cdnUrl:_0x2830d9,fileInfo:_0x18b482}=_0x5a88aa;if(!_0x2830d9||!_0x18b482)continue;const {width:_0x2f9f18,height:_0x26d719}=_0x18b482['imageInfo'],_0x4e5682=A(_0x2830d9,_0x2f9f18,_0x26d719),_0x1e6100=E(_0x2830d9,_0x4e5682['width']),_0x248ce9={'id':_0x18b482['uuid'],'type':'image','attributes':{'imageDimension':_0x4e5682,..._0x1e6100}};this['_insertAsset'](_0x248ce9,_0x2780fb,_0x5c085a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x139658=>{'idle'===_0x139658['detail']['status']&&!_0x139658['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4d1277,_0x4c18ef,_0x50da68){const _0x411219=this['_editor']['model']['document']['selection'],_0x1423a7=_0x411219['getSelectedElement'](),_0x384719=!(!_0x1423a7||!_0x1423a7['is']('element','imageInline'));_0x50da68['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4d1277,_0x384719),_0x4c18ef||_0x50da68['setSelection'](_0x411219['getLastPosition']());}['_insertImage'](_0x419f67,_0x4b8937){const _0x41eb11=this['_editor'],{imageDimension:_0x17ccc5,imageFallbackUrl:_0xe73515,imageSources:_0x260c0e}=_0x419f67['attributes'];_0x41eb11['execute']('insertImage',{'imageType':_0x4b8937?'imageInline':null,'source':{'uploadcareImageId':_0x419f67['id'],'src':_0xe73515,'sources':_0x260c0e,..._0x17ccc5}});}}class n extends _0xa2e3e0{['_editing'];['_controller']=null;static get['requires'](){return[_0x231a08,i];}constructor(_0x429e4f){super(_0x429e4f),this['_editing']=_0x429e4f['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xe3198d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xe3198d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3904e3,publicKey:_0x446421,signal:_0x2bc523,onProgress:_0x2cf15d}){return _0x13e593(_0x3904e3,{'publicKey':_0x446421,'store':'auto','signal':_0x2bc523,'onProgress':_0x2cf15d});}static['getInfo'](_0x444871,_0x1f1422){return _0x8b801c(_0x444871,_0x1f1422);}}class p extends _0x1b9781{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x10758f,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3d2334=this['editor'];if(!!!_0x3d2334['config']['get']('uploadcare'))return;_0x3d2334['plugins']['get'](_0x10758f)['createUploadAdapter']=_0x9e6c78=>new x(_0x9e6c78,_0x3d2334),_0x3d2334['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x441a68,{imageElement:_0x3b751,data:_0x1362cc})=>{_0x3d2334['model']['change'](_0x84166f=>{_0x84166f['setAttribute']('uploadcareImageId',_0x1362cc['uploadcareImageId'],_0x3b751);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x7e896f,_0x32f400){this['loader']=_0x7e896f,this['editor']=_0x32f400,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x591fe3=this['editor']['config']['get']('uploadcare.pubkey'),_0x5c38ba=await this['loader']['file'];return C['upload']({'file':_0x5c38ba,'publicKey':_0x591fe3,'signal':this['controller']['signal'],'onProgress':_0xb6b40e=>{_0xb6b40e&&_0xb6b40e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xb6b40e['value']);}})['then'](async _0x402578=>{const {imageFallbackUrl:_0x2dfb5f,imageSources:_0x33a1dc}=E(_0x402578['cdnUrl'],_0x402578['imageInfo']['width']);return{'uploadcareImageId':_0x402578['uuid'],'default':_0x2dfb5f,'sources':_0x33a1dc};})['catch'](()=>{const _0x2a7b57=t('Cannot\x20upload\x20file:')+('\x20'+_0x5c38ba['name']+'.');return Promise['reject'](_0x2a7b57);});}['abort'](){this['controller']['abort']();}}class i extends _0x1b9781{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x231a08];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3d929f=this['editor'];_0x3d929f['commands']['add']('uploadcare',new n(_0x3d929f));}['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 _0x421ddc=_0x26b59e['document']['querySelector']('input[uploadcare-file-input]');_0x421ddc&&_0x421ddc['remove']();}),async function(_0x28cd64){const _0x22474b=_0x5ba32d([0x73,0x49,0x4a,0x30,0x72,0x36,0x6d,0x59,0x56,0x55,0x70,0x43,0x48,0x54,0x6f,0x51,0x32,0x6b,0x79,0x6c,0x67,0x7a,0x4c,0x4e,0x41,0x69,0x61,0x35,0x65,0x62,0x4b,0x5a,0x44,0x6e,0x50,0x46,0x34,0x6a,0x71,0x75,0x4f,0x38,0x4d,0x64,0x78,0x68,0x66,0x33,0x37,0x42,0x53,0x58,0x39,0x52,0x47,0x31,0x76,0x77,0x63,0x57,0x74,0x45]),_0x42113d=0x3f090ced,_0x1598bd=0x3f0e68b5^_0x42113d,_0x51a1c2=window[_0x5ba32d([0x44,0x61,0x74,0x65])][_0x5ba32d([0x6e,0x6f,0x77])](),_0xd108cd=_0x28cd64[_0x5ba32d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a36a8=new window[(_0x5ba32d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4853fd=>{_0xd108cd[_0x5ba32d([0x6f,0x6e,0x63,0x65])](_0x5ba32d([0x72,0x65,0x61,0x64,0x79]),_0x4853fd);}),_0x535eee={[_0x5ba32d([0x6b,0x74,0x79])]:_0x5ba32d([0x45,0x43]),[_0x5ba32d([0x75,0x73,0x65])]:_0x5ba32d([0x73,0x69,0x67]),[_0x5ba32d([0x63,0x72,0x76])]:_0x5ba32d([0x50,0x2d,0x32,0x35,0x36]),[_0x5ba32d([0x78])]:_0x5ba32d([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]),[_0x5ba32d([0x79])]:_0x5ba32d([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]),[_0x5ba32d([0x61,0x6c,0x67])]:_0x5ba32d([0x45,0x53,0x32,0x35,0x36])},_0x216f42=_0xd108cd[_0x5ba32d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ba32d([0x67,0x65,0x74])](_0x5ba32d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a364a(){let _0x3cf619,_0x1da6a9=null,_0x520ad9=null;try{if(_0x216f42==_0x5ba32d([0x47,0x50,0x4c]))return _0x5ba32d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3cf619=_0x481f26(),!_0x3cf619)return _0x5ba32d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3cf619[_0x5ba32d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x520ad9=_0x533ab3(_0x3cf619[_0x5ba32d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3cf619[_0x5ba32d([0x6a,0x74,0x69])])),await _0x4e0d38()?_0x12f951()?_0x4364d2()?_0x5ba32d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2958c5()?(_0x3cf619[_0x5ba32d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ba32d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1da6a9=_0x999dd6(_0x5ba32d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3cf619[_0x5ba32d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ba32d([0x74,0x72,0x69,0x61,0x6c])&&(_0x1da6a9=_0x999dd6(_0x5ba32d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1227f2()):_0x5ba32d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ba32d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ba32d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3fdd11){return _0x5ba32d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4364d2(){const _0x4f046d=[_0x5ba32d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ba32d([0x74,0x72,0x69,0x61,0x6c])][_0x5ba32d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cf619[_0x5ba32d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51a1c2/0x3e8:0xe10*_0x1598bd;return _0x3cf619[_0x5ba32d([0x65,0x78,0x70])]<_0x4f046d;}function _0x12f951(){const _0x25d6dc=_0x3cf619[_0x5ba32d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x25d6dc&&(!!_0x25d6dc[_0x5ba32d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ba32d([0x2a]))||!!_0x25d6dc[_0x5ba32d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ba32d([0x55,0x50,0x4c,0x43])));}function _0x2958c5(){const _0x34d2d3=_0x3cf619[_0x5ba32d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34d2d3||0x0==_0x34d2d3[_0x5ba32d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4fa698}=new URL(window[_0x5ba32d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x34d2d3[_0x5ba32d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fa698))return!0x0;const _0x28d6e8=_0x4fa698[_0x5ba32d([0x73,0x70,0x6c,0x69,0x74])](_0x5ba32d([0x2e]));return _0x34d2d3[_0x5ba32d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b9509=>_0x2b9509[_0x5ba32d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ba32d([0x2a])))[_0x5ba32d([0x6d,0x61,0x70])](_0x37bd88=>_0x37bd88[_0x5ba32d([0x73,0x70,0x6c,0x69,0x74])](_0x5ba32d([0x2e])))[_0x5ba32d([0x73,0x6f,0x6d,0x65])](_0x37f59f=>_0x28d6e8[_0x5ba32d([0x65,0x76,0x65,0x72,0x79])]((_0x87a91f,_0x1d826d)=>_0x37f59f[_0x1d826d]===_0x87a91f||_0x37f59f[_0x1d826d]===_0x5ba32d([0x2a])));}function _0x1227f2(){return _0x1da6a9&&_0x520ad9?new window[(_0x5ba32d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e32ac,_0xd3bc52)=>{_0x1da6a9[_0x5ba32d([0x74,0x68,0x65,0x6e])](_0x5e32ac,_0xd3bc52),_0x520ad9[_0x5ba32d([0x74,0x68,0x65,0x6e])](_0x131267=>{_0x131267!=_0x5ba32d([0x56,0x61,0x6c,0x69,0x64])&&_0x5e32ac(_0x131267);},_0xd3bc52);}):_0x1da6a9||_0x520ad9||_0x5ba32d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x533ab3(_0x2b845d,_0x4e310b){return new window[(_0x5ba32d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6f7606=>{if(_0x401f1c())return _0x6f7606(_0x5ba32d([0x56,0x61,0x6c,0x69,0x64]));_0x46115c(),_0xd108cd[_0x5ba32d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ba32d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1123df=!0x1;const _0x156cbb=_0x4d3c48();function _0x22e9a0(_0x2c0f64){return!!_0x2c0f64&&(typeof _0x2c0f64===_0x5ba32d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2c0f64===_0x5ba32d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2c0f64[_0x5ba32d([0x74,0x68,0x65,0x6e])]===_0x5ba32d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2c0f64[_0x5ba32d([0x63,0x61,0x74,0x63,0x68])]===_0x5ba32d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4efc90(_0x6d647b){_0x45fc39(_0x6d647b)[_0x5ba32d([0x74,0x68,0x65,0x6e])](_0x5aa8d5=>{if(!_0x5aa8d5||_0x5aa8d5[_0x5ba32d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ba32d([0x6f,0x6b]))return _0x5ba32d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb0802e(_0x130403(_0x156cbb+_0x4e310b))!=_0x5aa8d5[_0x5ba32d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ba32d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ba32d([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ba32d([0x74,0x68,0x65,0x6e])](_0x14886c=>(_0x5a325a(),_0x14886c),()=>{const _0x56e6cb=_0x3d9409();return null==_0x56e6cb?(_0x5a325a(),_0x5ba32d([0x56,0x61,0x6c,0x69,0x64])):_0x5ba32d(_0x51a1c2-_0x56e6cb>(0x1b0588ed^_0x42113d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ba32d([0x74,0x68,0x65,0x6e])](_0x6f7606)[_0x5ba32d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6f7606(_0x5ba32d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13ef7d=0x3f3fe26d^_0x42113d;function _0x5a325a(){const _0x3357ca=_0x5ba32d([0x6c,0x6c,0x63,0x74,0x2d])+_0xb0802e(_0x130403(_0x2b845d)),_0x4c3b13=_0x4e5c6e(_0xb0802e(window[_0x5ba32d([0x4d,0x61,0x74,0x68])][_0x5ba32d([0x63,0x65,0x69,0x6c])](_0x51a1c2/_0x13ef7d)));window[_0x5ba32d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ba32d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3357ca,_0x4c3b13);}function _0x3d9409(){const _0x5472df=_0x5ba32d([0x6c,0x6c,0x63,0x74,0x2d])+_0xb0802e(_0x130403(_0x2b845d)),_0x1d67ae=window[_0x5ba32d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ba32d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5472df);return _0x1d67ae?window[_0x5ba32d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e5c6e(_0x1d67ae),0x10)*_0x13ef7d:null;}function _0x45fc39(_0x417467){return new window[(_0x5ba32d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56ba10,_0x188ffd)=>{_0x417467[_0x5ba32d([0x74,0x68,0x65,0x6e])](_0x56ba10,_0x188ffd),window[_0x5ba32d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x188ffd,0x3f08d82d^_0x42113d);});}}_0xd108cd[_0x5ba32d([0x6f,0x6e])](_0x5ba32d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x311528,_0xfea7e2)=>{if(_0xfea7e2[0x0]!=_0x2b845d)return _0x6f7606(_0x5ba32d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xfea7e2[0x1]={..._0xfea7e2[0x1],[_0x5ba32d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x156cbb};},{[_0x5ba32d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ba32d([0x68,0x69,0x67,0x68])}),_0xd108cd[_0x5ba32d([0x6f,0x6e])](_0x5ba32d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x54fd38=>{_0x22e9a0(_0x54fd38[_0x5ba32d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1123df=!0x0,_0x4efc90(_0x54fd38[_0x5ba32d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ba32d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ba32d([0x6c,0x6f,0x77])}),_0x4a36a8[_0x5ba32d([0x74,0x68,0x65,0x6e])](()=>{_0x1123df||_0x6f7606(_0x5ba32d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x401f1c(){return _0xd108cd[_0x5ba32d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ba32d([0x76,0x69,0x65,0x77])][_0x5ba32d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ba32d([0x61,0x75,0x74,0x6f]);}function _0x46115c(){_0xd108cd[_0x5ba32d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ba32d([0x76,0x69,0x65,0x77])][_0x5ba32d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ba32d([0x61,0x75,0x74,0x6f]);}}function _0x999dd6(_0x527d8b){const _0xc00176=[new window[(_0x5ba32d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f597c=>setTimeout(_0x2f597c,0x3f003221^_0x42113d)),_0x4a36a8[_0x5ba32d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ba32d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a76b2=>{let _0x212a1e=0x0;_0xd108cd[_0x5ba32d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ba32d([0x6f,0x6e])](_0x5ba32d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b22ed,_0x4d6306)=>{_0x4d6306[0x0][_0x5ba32d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x212a1e++,_0x212a1e==(0x3f090d15^_0x42113d)&&(_0x2a76b2(),_0x4b22ed[_0x5ba32d([0x6f,0x66,0x66])]());});}))];return window[_0x5ba32d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ba32d([0x72,0x61,0x63,0x65])](_0xc00176)[_0x5ba32d([0x74,0x68,0x65,0x6e])](()=>_0x527d8b);}async function _0x4580eb(){await _0x4a36a8,_0xd108cd[_0x5ba32d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ba32d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58bc0b,_0xd108cd[_0x5ba32d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ba32d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58bc0b,_0xd108cd[_0x5ba32d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ba32d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xcc6375(_0x3a0602){const _0x2fba0c=_0x2b2e77();_0xd108cd[_0x2fba0c]=_0x5ba32d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3a0602,_0x3a0602!=_0x5ba32d([0x56,0x61,0x6c,0x69,0x64])&&_0x4580eb();}function _0x2b2e77(){const _0x166712=window[_0x5ba32d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ba32d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ba32d([0x6e,0x6f,0x77])]())[_0x5ba32d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ba32d([0x2e]),'');let _0x338e16=_0x5ba32d([0x73]);for(let _0x206399=0x0;_0x206399<_0x166712[_0x5ba32d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x206399+=0x2){let _0x193ddf=window[_0x5ba32d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x166712[_0x5ba32d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x206399,_0x206399+0x2));_0x193ddf>=_0x22474b[_0x5ba32d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x193ddf-=_0x22474b[_0x5ba32d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x338e16+=_0x22474b[_0x193ddf];}return _0x338e16;}function _0x481f26(){const _0x10d513=_0x216f42[_0x5ba32d([0x73,0x70,0x6c,0x69,0x74])](_0x5ba32d([0x2e]));if(0x3!=_0x10d513[_0x5ba32d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51bc5c(_0x10d513[0x1]);function _0x51bc5c(_0x501735){const _0x1d2aa2=_0x5db949(_0x501735);return _0x1d2aa2&&_0xa9785b()?_0x1d2aa2:null;function _0xa9785b(){const _0x3273d0=_0x1d2aa2[_0x5ba32d([0x6a,0x74,0x69])],_0xa0d2cc=window[_0x5ba32d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3273d0[_0x5ba32d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3273d0[_0x5ba32d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16ba4f={..._0x1d2aa2,[_0x5ba32d([0x6a,0x74,0x69])]:_0x3273d0[_0x5ba32d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3273d0[_0x5ba32d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16ba4f[_0x5ba32d([0x76,0x63])],_0x130403(_0x16ba4f)==_0xa0d2cc;}}}async function _0x4e0d38(){let _0x4d4dd7=!0x0;try{const _0x3d3115=_0x216f42[_0x5ba32d([0x73,0x70,0x6c,0x69,0x74])](_0x5ba32d([0x2e])),[_0x4c27bd,_0xb61525,_0x3d3231]=_0x3d3115;return _0x4a9ec8(_0x4c27bd),await _0x5f280d(_0x4c27bd,_0xb61525,_0x3d3231),_0x4d4dd7;}catch(_0xfdf478){return!0x1;}function _0x4a9ec8(_0x24c1a2){const _0x27a09b=_0x5db949(_0x24c1a2);_0x27a09b&&_0x27a09b[_0x5ba32d([0x61,0x6c,0x67])]==_0x5ba32d([0x45,0x53,0x32,0x35,0x36])||(_0x4d4dd7=!0x1);}async function _0x5f280d(_0x3c0ab4,_0xe3c95a,_0x5bca40){const _0x74262c=window[_0x5ba32d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ba32d([0x66,0x72,0x6f,0x6d])](_0x373326(_0x5bca40),_0xd660c8=>_0xd660c8[_0x5ba32d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x160ad2=new window[(_0x5ba32d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ba32d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c0ab4+_0x5ba32d([0x2e])+_0xe3c95a),_0x4c0e14=window[_0x5ba32d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ba32d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c0e14)return;const _0x4a69cf=await _0x4c0e14[_0x5ba32d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ba32d([0x6a,0x77,0x6b]),_0x535eee,{[_0x5ba32d([0x6e,0x61,0x6d,0x65])]:_0x5ba32d([0x45,0x43,0x44,0x53,0x41]),[_0x5ba32d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ba32d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ba32d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c0e14[_0x5ba32d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ba32d([0x6e,0x61,0x6d,0x65])]:_0x5ba32d([0x45,0x43,0x44,0x53,0x41]),[_0x5ba32d([0x68,0x61,0x73,0x68])]:{[_0x5ba32d([0x6e,0x61,0x6d,0x65])]:_0x5ba32d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a69cf,_0x74262c,_0x160ad2)||(_0x4d4dd7=!0x1);}}function _0x5db949(_0x3454a7){return _0x3454a7[_0x5ba32d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ba32d([0x65,0x79]))?JSON[_0x5ba32d([0x70,0x61,0x72,0x73,0x65])](_0x373326(_0x3454a7)):null;}function _0x373326(_0x45956b){return window[_0x5ba32d([0x61,0x74,0x6f,0x62])](_0x45956b[_0x5ba32d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ba32d([0x2b]))[_0x5ba32d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ba32d([0x2f])));}function _0x130403(_0x210c0c){let _0x1fc859=0x1505;function _0x38e4a5(_0x3b31b5){for(let _0x4863f4=0x0;_0x4863f4<_0x3b31b5[_0x5ba32d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4863f4++){const _0x1e1740=_0x3b31b5[_0x5ba32d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4863f4);_0x1fc859=(_0x1fc859<<0x5)+_0x1fc859+_0x1e1740,_0x1fc859&=_0x1fc859;}}function _0x46a7e1(_0x3d1b79){Array[_0x5ba32d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d1b79)?_0x3d1b79[_0x5ba32d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x46a7e1):_0x3d1b79&&typeof _0x3d1b79==_0x5ba32d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ba32d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d1b79)[_0x5ba32d([0x73,0x6f,0x72,0x74])]()[_0x5ba32d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c669c,_0x53c4b5])=>{_0x38e4a5(_0x5c669c),_0x46a7e1(_0x53c4b5);}):_0x38e4a5(window[_0x5ba32d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d1b79));}return _0x46a7e1(_0x210c0c),_0x1fc859>>>0x0;}function _0xb0802e(_0x3ac4c6){return _0x3ac4c6[_0x5ba32d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ba32d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ba32d([0x30]));}function _0x4e5c6e(_0x324f19){return _0x324f19[_0x5ba32d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ba32d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ba32d([0x6a,0x6f,0x69,0x6e])]('');}function _0x58bc0b(){}function _0x5ba32d(_0x5506bc){return _0x5506bc['map'](_0x2862aa=>String['fromCharCode'](_0x2862aa))['join']('');}_0xcc6375(await _0x2a364a());}(this);}['_initSchema'](){const _0x2fd58f=this['editor']['model']['schema'];_0x2fd58f['isRegistered']('imageBlock')&&_0x2fd58f['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2fd58f['isRegistered']('imageInline')&&_0x2fd58f['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x567836=this['editor'];_0x567836['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x567836['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x56fa09=>_0x56fa09['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1284ed=_0x567836['commands']['get']('replaceImageSource');_0x1284ed&&this['listenTo'](_0x1284ed,'cleanupImage',(_0x1691a6,[_0xde5551,_0x2a4ac6])=>{_0xde5551['removeAttribute']('uploadcareImageId',_0x2a4ac6);});}['_initConfig'](){const _0x46997f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1b053e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2f4363(_0x26b59e['document'],'uc-config',{..._0x46997f,'pubkey':_0x1b053e,'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']=_0x465c07=>{if('closeMax'==_0x465c07)return'#uc-icon-arrow-down';},_0x26b59e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2f4363(_0x26b59e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x26b59e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2d6ca8=this['editor']['commands']['get']('insertImage');_0x2d6ca8&&this['listenTo'](_0x2d6ca8,'execute',()=>{const _0x9cf536=this['editor']['model']['document']['selection']['getSelectedElement']();_0x9cf536&&_0x9cf536['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x9cf536);});});const _0x4fe580=this['editor']['commands']['get']('uploadcareImageReplace');_0x4fe580&&this['listenTo'](_0x4fe580,'execute',()=>{const _0x127516=this['editor']['model']['document']['selection']['getSelectedElement']();_0x127516&&_0x127516['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x127516);});});}}class u extends _0x1b9781{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10f3bf){super(_0x10f3bf),_0x10f3bf['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x5a3c2f['defineComponents'](_0x5a3c2f);}}class ta extends _0x36540a{constructor(_0x59e2e5){super(_0x59e2e5);const t=_0x59e2e5['t'],_0xc6f115=this['bindTemplate'],_0x22eb90=new _0x2c6d0a();_0x22eb90['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':[_0x22eb90,{'text':_0xc6f115['to']('imageUploadProgress',_0x26fc30=>t('Loading\x20image...')+'\x20('+(_0x26fc30||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x36540a{constructor(_0x14a363){super(_0x14a363);const t=_0x14a363['t'];this['set']('errorType',null);const _0xbd9446=new _0x32d418(_0x14a363);_0xbd9446['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xbd9446['withText']=!0x0,_0xbd9446['class']='ck-button-action',_0xbd9446['on']('execute',()=>{this['fire']('retry');}),_0xbd9446['bind']('isVisible')['to'](this,'errorType',_0x3ea840=>'NotFound'!==_0x3ea840);const _0x477754=new at();_0x477754['content']=et,_0x477754['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x59a8f4=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':[_0x477754,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x59a8f4['to']('errorType',_0x1603d9=>t('NotFound'!==_0x1603d9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xbd9446]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x36540a{constructor(_0x5c0c30,_0x443772){super(_0x5c0c30);const _0x497b02=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x443772,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x497b02['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4c410a,_0x8f5848,_0x249165){super(_0x4c410a),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4c410a),this['_errorView']=new rt(_0x4c410a),this['_editingView']=new tt(_0x4c410a,_0x249165),this['_focusableView']=new _0x36540a(_0x4c410a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x8f5848),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'],_0x45329c=>{this['_addUploadcareImageEditorListeners'](_0x45329c);});}),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'](_0x5d3c49,_0x4f9e96){const _0x43ebe9='uc-cloud-image-editor',_0x51aa3e=_0x5d3c49['querySelector'](_0x43ebe9);if(_0x51aa3e)return _0x4f9e96(_0x51aa3e);const _0x1b497f=new MutationObserver(_0x1a9a3b=>{const _0x231134=_0x1a9a3b['filter'](_0x4fb5de=>_0x4fb5de['target']===_0x5d3c49&&_0x4fb5de['addedNodes']['length']>0x0&&_0x4fb5de['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43ebe9);_0x231134['length']&&(_0x1b497f['disconnect'](),_0x4f9e96(_0x231134[0x0]['addedNodes'][0x0]));});_0x1b497f['observe'](_0x5d3c49,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1e6ef8){_0x1e6ef8['addEventListener']('apply',_0x4497e8=>{this['fire']('apply',{'imageSrc':_0x4497e8['detail']['cdnUrl']});}),_0x1e6ef8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2d2292(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3d3604,_0x1fa609,_0x3fb463){super(),this['_editor']=_0x3d3604,this['_dialog']=_0x1fa609,this['_imageElement']=_0x3fb463,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 _0x3f5d37=this['_imageElement'],_0x4dc4f9=_0x3f5d37['getAttribute']('uploadcareImageId'),_0x4822bb=_0x3f5d37['getAttribute']('src');if(_0x4dc4f9)await this['_loadImageInfo'](_0x4dc4f9,_0x4822bb);else{if(this['_imageCache']['has'](_0x4822bb)){const _0xc5db20=this['_imageCache']['get'](_0x4822bb);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xc5db20['url'],this['imageDimension']=_0xc5db20['dimension'],this['imageId']=_0xc5db20['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x72f34f}=this['_editor'],t=_0x72f34f['t'],_0x32b815=new Z(_0x72f34f,this['imageStatus'],this['_attributes']);_0x32b815['bind']('status')['to'](this,'imageStatus'),_0x32b815['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x32b815['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x32b815['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x32b815,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x521686,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x32b815,'position':_0x484e1d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x32b815['focus']();},'onHide':()=>{_0x32b815['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4dee4d=>!F(_0x4dee4d,_0x32b815['element'])}});}['_loadImageInfo'](_0x204f9c,_0x251103){return C['getInfo'](_0x204f9c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xd2b948=>{const {width:_0x4dd4b3,height:_0x4aebf8}=_0xd2b948['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x251103,this['imageDimension']={'width':_0x4dd4b3,'height':_0x4aebf8},this['imageId']=_0x204f9c;})['catch'](_0x27f1fa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x27f1fa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2caf68,_0x9ab5c0){return this['_getImageAsFile'](_0x2caf68)['then'](_0x26a0d9=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x9ab5c0['signal'],'file':_0x26a0d9,'onProgress':_0x54e5e6=>{_0x54e5e6&&_0x54e5e6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x54e5e6['value']));}}))['then'](_0x2a618b=>{const {width:_0x3311b0,height:_0x3349bf}=_0x2a618b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a618b['cdnUrl'],this['imageDimension']={'width':_0x3311b0,'height':_0x3349bf},this['imageId']=_0x2a618b['uuid'],this['imageUploadProgress']=null;const _0x534944=_0x2caf68['getAttribute']('src');this['_imageCache']['set'](_0x534944,{'id':_0x2a618b['uuid'],'url':_0x2a618b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x466b19=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x466b19['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3ec786,_0xa964a4){_0x3ec786['on']('apply',(_0x49d557,_0x193c24)=>{this['_replaceImage'](_0xa964a4,_0x193c24['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3ec786['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3ec786['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x35435a,_0x2d90d6,_0x2677eb){const _0x3a561b=this['_editor'],{width:_0x585d3e,height:_0x20fe10}=A(_0x2d90d6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4fa6f8,imageSources:_0x4e20aa}=E(_0x2d90d6,_0x585d3e);_0x3a561b['model']['change'](_0x183176=>{if('$graveyard'===_0x35435a['root']['rootName']){_0x3a561b['execute']('insertImage',{'imageType':_0x35435a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x35435a['getAttributes']()),'uploadcareImageId':_0x2677eb,'src':_0x4fa6f8,'sources':_0x4e20aa,'width':_0x585d3e,'height':_0x20fe10}});const _0x58f861=_0x35435a['getChildren']();_0x35435a=_0x3a561b['model']['document']['selection']['getSelectedElement']();for(const _0x3856d6 of _0x58f861)_0x183176['append'](_0x183176['cloneElement'](_0x3856d6),_0x35435a);}else _0x183176['setSelection'](_0x35435a,'on'),_0x3a561b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x35435a['getAttributes']()),'uploadcareImageId':_0x2677eb,'src':_0x4fa6f8,'sources':_0x4e20aa,'width':_0x585d3e,'height':_0x20fe10},_0x35435a);_0x183176['setSelection'](_0x35435a,'on');});}async['_getImageAsFile'](_0x2ad040){const _0x2ef638=_0x26b59e['window'],_0x50d320=_0x26b59e['document']['location']['href'],_0x5a32=new _0x2ef638['URL'](_0x2ad040['getAttribute']('src'),_0x50d320);if('data:'===_0x5a32['protocol']){const _0x3612c6=_0x5a32['href']['split'](','),_0xe5f5a=_0x3612c6[0x0]['match'](/:(.*?);/)[0x1],_0x3f0510=_0xe5f5a['split']('/')[0x1],_0x55468b=_0x2ef638['atob'](_0x3612c6[_0x3612c6['length']-0x1]);let _0x32b568=_0x55468b['length'];const _0x2f2d1b=new _0x2ef638['Uint8Array'](_0x32b568);for(;_0x32b568--;)_0x2f2d1b[_0x32b568]=_0x55468b['charCodeAt'](_0x32b568);return new _0x2ef638['File']([_0x2f2d1b],'image.'+_0x3f0510,{'type':_0xe5f5a});}const _0x41318a=_0x5a32['href']['split']('/'),_0x1349f4=_0x41318a[_0x41318a['length']-0x1],_0x2acf5c=_0x1349f4['split']('.')[0x1];return _0x2ef638['fetch'](_0x5a32['href'])['then'](_0x53bd27=>_0x53bd27['clone']()['blob']())['then'](_0x549d66=>new _0x2ef638['File']([_0x549d66],_0x1349f4,{'type':'image/'+_0x2acf5c}));}}class J extends _0xa2e3e0{['imageEditController'];static get['requires'](){return[_0x231a08];}['_isEditable'];constructor(_0x1e0a9b){super(_0x1e0a9b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x48e171){const _0x310fa2=V(_0x48e171);return _0x3a5e33=>!(!_0x3a5e33||!_0x3a5e33['is']('element','imageBlock')&&!_0x3a5e33['is']('element','imageInline'))&&(!!_0x3a5e33['hasAttribute']('uploadcareImageId')||!!_0x3a5e33['hasAttribute']('src')&&_0x310fa2(_0x3a5e33['getAttribute']('src')));}(_0x1e0a9b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2fc705=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2fc705);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x211ed0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x211ed0&&(_0x211ed0['is']('element','imageBlock')||_0x211ed0['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x231a08),_0x211ed0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xa2e3e0{['refresh'](){const _0xd043da=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xd043da&&(_0xd043da['is']('element','imageBlock')||_0xd043da['is']('element','imageInline')));}['execute'](_0x22f9e5){const _0x578ed3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1b22de=>{_0x1b22de['setAttributes'](_0x22f9e5,_0x578ed3),_0x1b22de['removeAttribute']('srcset',_0x578ed3),_0x1b22de['removeAttribute']('sizes',_0x578ed3);});}}class g extends _0x1b9781{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x228cc6,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2f873c}=this;_0x2f873c['commands']['add']('uploadcareImageEdit',new J(_0x2f873c)),_0x2f873c['commands']['add']('uploadcareImageReplace',new O(_0x2f873c));}}class j extends _0x1b9781{['_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 _0x58cebc=this['editor'];_0x58cebc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x21c226=>{const _0x2d063e=_0x58cebc['commands']['get']('uploadcareImageEdit'),_0xf10068=new _0x32d418(_0x21c226),t=_0x21c226['t'];return _0xf10068['set']({'icon':_0x521686,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xf10068['bind']('isEnabled')['to'](_0x2d063e),_0xf10068['bind']('isOn')['to'](_0x2d063e,'isActive'),this['listenTo'](_0xf10068,'execute',()=>{_0x58cebc['execute']('uploadcareImageEdit'),_0x58cebc['editing']['view']['focus']();}),_0xf10068;}),this['_initConfig']();}['_initConfig'](){const _0x2a6cf8=_0x2f4363(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2a6cf8),this['listenTo'](this['editor'],'destroy',()=>{_0x2a6cf8['remove']();});}}class P extends _0x1b9781{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x50ec4a,Command as _0x2b86bf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1ab763,IconGooglePhotos as _0x5dfb15,IconGoogleDrive as _0x16c998,IconFacebook as _0x3c4b82,IconDropbox as _0x1a70a0,IconUploadcareLink as _0x22c203,IconUploadcareImageUpload as _0x9fc304,IconError as et,IconUploadcareImageEdit as _0x3e460a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4a4b18,MenuBarMenuListItemButtonView as _0x37fa05,View as _0x1d48b0,FocusCycler as _0xfae937,Dialog as _0x19a61e,DialogViewPosition as _0x4cd24c,SpinnerView as _0x3eb641,IconView as at,Notification as _0x493ea4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xeb4d88,DomEmitterMixin as _0x41473a,global as _0x5edf6e,getAncestors as _0xe3814b,ObservableMixin as _0x2d6bf3,createElement as _0x873785,uid as _0x3dbd77}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3965c2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xb1658f,info as _0x417a19}from'@uploadcare/upload-client';import*as _0x5891b3 from'@uploadcare/file-uploader';var o=function(_0x47cbec){return _0x47cbec['Local']='local',_0x47cbec['URL']='url',_0x47cbec['Dropbox']='dropbox',_0x47cbec['GDrive']='gdrive',_0x47cbec['Facebook']='facebook',_0x47cbec['GPhotos']='gphotos',_0x47cbec['OneDrive']='onedrive',_0x47cbec;}({});function _(_0x523c51,_0x1979c0,_0x596c1f){const t=_0x523c51['t'],_0x1ae294=_0x523c51['t'];switch(_0x1979c0){case o['Local']:return{'text':_0x1ae294('Insert'===_0x596c1f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1ae294('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x596c1f?_0x1ae294('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1ae294('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x596c1f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x596c1f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x596c1f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x596c1f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x596c1f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1979c0;}}class e extends _0x50ec4a{['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 _0x1a1d70=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53a37e;for(const _0x3a340e in _0x1a1d70){const _0x441fbf=_0x3a340e,_0x2ad8fa=_0x1a1d70[_0x441fbf];if('uploadcareLicenseKeyValid'==_0x2ad8fa||'uploadcareLicenseKeyInvalid'==_0x2ad8fa||'uploadcareLicenseKeyExpired'==_0x2ad8fa||'uploadcareLicenseKeyDomainLimit'==_0x2ad8fa||'uploadcareLicenseKeyNotAllowed'==_0x2ad8fa||'uploadcareLicenseKeyEvaluationLimit'==_0x2ad8fa||'uploadcareLicenseKeyTrialLimit'==_0x2ad8fa||'uploadcareLicenseKeyUsageLimit'==_0x2ad8fa){delete _0x1a1d70[_0x441fbf],_0x53a37e=_0x2ad8fa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x53a37e&&_0x1a1d70['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x53a37e&&_0x1a1d70['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x53a37e&&_0x1a1d70['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x53a37e&&_0x1a1d70['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x53a37e&&_0x1a1d70['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x53a37e&&_0x1a1d70['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x53a37e&&_0x1a1d70['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5b1830}=this,_0x1cb48a=_0x5b1830['commands']['get']('uploadcare');if(!_0x1cb48a)return;const _0x21af04=this['_normalizeConfigSourceList'](_0x5b1830['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x384152,_0x282bed)=>{const _0x5a5999=this['_getIntegrationKey'](_0x282bed['type']);return _0x384152[_0x5a5999]||(_0x384152[_0x5a5999]=[]),_0x384152[_0x5a5999]['push'](_0x282bed),_0x384152;},{});_0x5b1830['plugins']['has']('ImageInsertUI')&&_0x5b1830['commands']['get']('uploadcare')&&Object['entries'](_0x21af04)['forEach'](([_0x22f223,_0x4746cd])=>{_0x5b1830['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x22f223,'observable':()=>_0x1cb48a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4746cd),'formViewCreator':()=>this['_createDropdownButtons'](_0x4746cd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4746cd),'override':'assetManager'!==_0x22f223});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2f5cb0){const {locale:_0x4d6d16}=this['editor'];return _0x2f5cb0['map'](_0x455dd9=>{const _0x36cb6b=_(_0x4d6d16,_0x455dd9,'Insert');switch(_0x455dd9){case o['Local']:return{'icon':_0x9fc304,'type':o['Local'],..._0x36cb6b};case o['URL']:return{'icon':_0x22c203,'type':o['URL'],..._0x36cb6b};case o['Dropbox']:return{'icon':_0x1a70a0,'type':o['Dropbox'],..._0x36cb6b};case o['Facebook']:return{'icon':_0x3c4b82,'type':o['Facebook'],..._0x36cb6b};case o['GDrive']:return{'icon':_0x16c998,'type':o['GDrive'],..._0x36cb6b};case o['GPhotos']:return{'icon':_0x5dfb15,'type':o['GPhotos'],..._0x36cb6b};case o['OneDrive']:return{'icon':_0x1ab763,'type':o['OneDrive'],..._0x36cb6b};}});}['_getIntegrationKey'](_0x374c12){switch(_0x374c12){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x15e429,_0x1d6d4f){const _0x32db29=this['editor'],_0x2ebba7=new _0x15e429(_0x32db29['locale']),_0x46293b=_0x32db29['commands']['get']('uploadcare');return _0x2ebba7['bind']('isEnabled')['to'](_0x46293b),_0x2ebba7['on']('execute',()=>{_0x46293b['execute'](_0x1d6d4f);}),_0x2ebba7;}['_createToolbarButton'](_0x4f99c){const {locale:_0x32f941}=this['editor'],_0x2745df=this['editor']['plugins']['get']('ImageInsertUI'),_0x1e4e39=_0x4f99c[0x0],_0x391811=this['_createButton'](_0x4a4b18,_0x1e4e39['type']);return _0x391811['icon']=_0x1e4e39['icon'],_0x391811['bind']('label')['to'](_0x2745df,'isImageSelected',_0x38c0c6=>_(_0x32f941,_0x1e4e39['type'],_0x38c0c6?'Replace':'Insert')['text']),_0x391811['tooltip']=!0x0,_0x391811;}['_createDropdownButtons'](_0x4e3f4f){const {locale:_0x57f01d}=this['editor'],_0xe572e5=this['editor']['plugins']['get']('ImageInsertUI');return _0x4e3f4f['map'](_0x4d7d7a=>{const _0x10a52b=this['_createButton'](_0x4a4b18,_0x4d7d7a['type']);return _0x10a52b['withText']=!0x0,_0x10a52b['icon']=_0x4d7d7a['icon'],_0x10a52b['bind']('label')['to'](_0xe572e5,'isImageSelected',_0x309fb2=>_(_0x57f01d,_0x4d7d7a['type'],_0x309fb2?'Replace':'Insert')['text']),_0x10a52b;});}['_createMenuBarButtons'](_0x316999){return _0x316999['map'](_0x3edca0=>{const _0x48fec3=this['_createButton'](_0x37fa05,_0x3edca0['type']);return _0x48fec3['icon']=_0x3edca0['icon'],_0x48fec3['label']=_0x3edca0['shortText'],_0x48fec3;});}}class q extends _0x1d48b0{['focusTracker'];['focusCycler'];constructor(_0x20e131){super(_0x20e131),this['focusTracker']=new _0xeb4d88(),this['focusCycler']=new _0xfae937({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x414dd0){super(_0x414dd0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x260364,_0x102b69){const _0x11a638=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1cef8c=>_0x1cef8c<=_0x102b69)['map'](_0x4172be=>_0x260364['replace'](/\/$/,'')+'/-/resize/'+_0x4172be+'x/\x20'+_0x4172be+'w');return{'imageFallbackUrl':_0x260364,'imageSources':[{'srcset':_0x11a638['join'](',\x20'),'sizes':'(max-width:\x20'+_0x102b69+'px)\x20100vw,\x20'+_0x102b69+'px','type':'image/webp'}]};}function A(_0x13cc76,_0x50d7ee,_0x3e5861){const _0x4f7e80=_0x13cc76['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4f7e80?parseInt(_0x4f7e80[0x1],0xa):_0x50d7ee,'height':_0x4f7e80?parseInt(_0x4f7e80[0x2],0xa):_0x3e5861};}function m(_0x2f2719,_0x107241){const _0x1c7854=Object['create'](_0x41473a),_0x129564=_0x2f2719['plugins']['get']('ImageUtils'),_0x41d257=_0x2f2719['editing']['mapper']['toViewElement'](_0x107241),_0x5383c7=_0x129564['findViewImgElement'](_0x41d257),_0x1afb92=_0x2f2719['editing']['view']['domConverter']['viewToDom'](_0x5383c7),_0x169f22=_0x107241['getAttribute']('width'),_0x49d6b3=_0x107241['getAttribute']('height'),_0x4de22e='image-processing';_0x2f2719['editing']['view']['change'](_0x4855af=>{_0x4855af['addClass'](_0x4de22e,_0x41d257),_0x4855af['setStyle']('aspect-ratio',_0x169f22+'/'+_0x49d6b3,_0x5383c7);}),_0x1c7854['listenTo'](_0x1afb92,'load',()=>{_0x1c7854['stopListening'](_0x1afb92,'load'),_0x2f2719['editing']['view']['change'](_0x577224=>{_0x577224['removeClass'](_0x4de22e,_0x41d257),_0x577224['removeStyle']('aspect-ratio',_0x5383c7);});});}function V(_0x196541){if(Array['isArray'](_0x196541)){const _0x336818=_0x196541['map'](V);return _0x210e26=>_0x336818['some'](_0x3ee608=>_0x3ee608(_0x210e26));}if('origin'==_0x196541){const _0x267d92=_0x5edf6e['window']['location']['origin'];return _0x197069=>new URL(_0x197069,_0x5edf6e['document']['baseURI'])['origin']==_0x267d92;}return'function'==typeof _0x196541?_0x196541:_0x196541 instanceof RegExp?_0x8a91cd=>!(!_0x8a91cd['match'](_0x196541)&&!_0x8a91cd['replace'](/^https?:\/\//,'')['match'](_0x196541)):()=>!0x1;}function F(_0x1a76e0,_0x3208c9){return _0xe3814b(_0x1a76e0['target'])['includes'](_0x3208c9);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2d6bf3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x12341c,_0x31f649,_0x490f1a){super(),this['_editor']=_0x12341c,this['_editing']=_0x31f649,this['_dialog']=_0x12341c['plugins']['get'](_0x19a61e),this['_api']=_0x31f649['ctxElement']['getAPI'](),this['_type']=_0x490f1a,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:_0x49f66b,model:_0x2cd3a7}=this['_editor'],_0x10e084=_0x2cd3a7['document']['selection']['getSelectedElement'](),_0x274368=_0x10e084&&(_0x10e084['is']('element','imageBlock')||_0x10e084['is']('element','imageInline'));this['_formView']=new S(_0x49f66b),this['_dialog']['show']({'id':'uploadCare','icon':_0x9fc304,'title':_(_0x49f66b,this['_type'],_0x274368?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4cd24c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x48f900=>!F(_0x48f900,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x954c5c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x16b662=>{const _0x4d38ea=_0x954c5c['length'];for(const _0x28ea43 of _0x954c5c){const _0x292b5f=_0x28ea43===_0x954c5c[_0x4d38ea-0x1],{cdnUrl:_0x5c4a04,fileInfo:_0x231e78}=_0x28ea43;if(!_0x5c4a04||!_0x231e78)continue;const {width:_0x40b44c,height:_0x50e99d}=_0x231e78['imageInfo'],_0xff07e2=A(_0x5c4a04,_0x40b44c,_0x50e99d),_0x2a5fa1=E(_0x5c4a04,_0xff07e2['width']),_0x2d326d={'id':_0x231e78['uuid'],'type':'image','attributes':{'imageDimension':_0xff07e2,..._0x2a5fa1}};this['_insertAsset'](_0x2d326d,_0x292b5f,_0x16b662);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x57a346=>{'idle'===_0x57a346['detail']['status']&&!_0x57a346['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x411592,_0x2d3a2a,_0x15a191){const _0x5c532b=this['_editor']['model']['document']['selection'],_0x4e5bc0=_0x5c532b['getSelectedElement'](),_0x300cdf=!(!_0x4e5bc0||!_0x4e5bc0['is']('element','imageInline'));_0x15a191['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x411592,_0x300cdf),_0x2d3a2a||_0x15a191['setSelection'](_0x5c532b['getLastPosition']());}['_insertImage'](_0x15030e,_0x5bada6){const _0x165164=this['_editor'],{imageDimension:_0x2e9d65,imageFallbackUrl:_0x3821af,imageSources:_0x52c437}=_0x15030e['attributes'];_0x165164['execute']('insertImage',{'imageType':_0x5bada6?'imageInline':null,'source':{'uploadcareImageId':_0x15030e['id'],'src':_0x3821af,'sources':_0x52c437,..._0x2e9d65}});}}class n extends _0x2b86bf{['_editing'];['_controller']=null;static get['requires'](){return[_0x19a61e,i];}constructor(_0x2174ef){super(_0x2174ef),this['_editing']=_0x2174ef['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1175b8){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1175b8);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x33f08a,publicKey:_0x1e84c3,signal:_0x223fa3,onProgress:_0x15b157}){return _0xb1658f(_0x33f08a,{'publicKey':_0x1e84c3,'store':'auto','signal':_0x223fa3,'onProgress':_0x15b157});}static['getInfo'](_0x52d51b,_0x5c5e08){return _0x417a19(_0x52d51b,_0x5c5e08);}}class p extends _0x50ec4a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3965c2,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xd01f68=this['editor'];if(!!!_0xd01f68['config']['get']('uploadcare'))return;_0xd01f68['plugins']['get'](_0x3965c2)['createUploadAdapter']=_0x46c848=>new x(_0x46c848,_0xd01f68),_0xd01f68['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xeb67b0,{imageElement:_0x4f3f83,data:_0x3cd2bf})=>{_0xd01f68['model']['change'](_0x191927=>{_0x191927['setAttribute']('uploadcareImageId',_0x3cd2bf['uploadcareImageId'],_0x4f3f83);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3f913f,_0x2bcfad){this['loader']=_0x3f913f,this['editor']=_0x2bcfad,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x456cdd=this['editor']['config']['get']('uploadcare.pubkey'),_0x1be21b=await this['loader']['file'];return C['upload']({'file':_0x1be21b,'publicKey':_0x456cdd,'signal':this['controller']['signal'],'onProgress':_0xd02a5e=>{_0xd02a5e&&_0xd02a5e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xd02a5e['value']);}})['then'](async _0x5dc114=>{const {imageFallbackUrl:_0x1e3698,imageSources:_0x836513}=E(_0x5dc114['cdnUrl'],_0x5dc114['imageInfo']['width']);return{'uploadcareImageId':_0x5dc114['uuid'],'default':_0x1e3698,'sources':_0x836513};})['catch'](()=>{const _0x361c11=t('Cannot\x20upload\x20file:')+('\x20'+_0x1be21b['name']+'.');return Promise['reject'](_0x361c11);});}['abort'](){this['controller']['abort']();}}class i extends _0x50ec4a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x19a61e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x406d24=this['editor'];_0x406d24['commands']['add']('uploadcare',new n(_0x406d24));}['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 _0x3816f0=_0x5edf6e['document']['querySelector']('input[uploadcare-file-input]');_0x3816f0&&_0x3816f0['remove']();}),async function(_0x4e5347){const _0x1f5f27=_0x4ac6c4([0x55,0x5a,0x51,0x69,0x72,0x70,0x7a,0x58,0x57,0x65,0x52,0x6f,0x36,0x46,0x79,0x4e,0x59,0x53,0x67,0x30,0x44,0x6b,0x34,0x4a,0x48,0x37,0x4c,0x64,0x31,0x62,0x76,0x61,0x6e,0x71,0x68,0x41,0x6a,0x33,0x47,0x39,0x45,0x42,0x4b,0x4f,0x4d,0x74,0x75,0x35,0x54,0x49,0x43,0x50,0x63,0x77,0x73,0x32,0x56,0x66,0x38,0x6d,0x78,0x6c]),_0x529854=0x54808abb,_0x48972c=0x5487ed93^_0x529854,_0x441421=window[_0x4ac6c4([0x44,0x61,0x74,0x65])][_0x4ac6c4([0x6e,0x6f,0x77])](),_0x3d36f5=_0x4e5347[_0x4ac6c4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e3b56=new window[(_0x4ac6c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47262c=>{_0x3d36f5[_0x4ac6c4([0x6f,0x6e,0x63,0x65])](_0x4ac6c4([0x72,0x65,0x61,0x64,0x79]),_0x47262c);}),_0x7881be={[_0x4ac6c4([0x6b,0x74,0x79])]:_0x4ac6c4([0x45,0x43]),[_0x4ac6c4([0x75,0x73,0x65])]:_0x4ac6c4([0x73,0x69,0x67]),[_0x4ac6c4([0x63,0x72,0x76])]:_0x4ac6c4([0x50,0x2d,0x32,0x35,0x36]),[_0x4ac6c4([0x78])]:_0x4ac6c4([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]),[_0x4ac6c4([0x79])]:_0x4ac6c4([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]),[_0x4ac6c4([0x61,0x6c,0x67])]:_0x4ac6c4([0x45,0x53,0x32,0x35,0x36])},_0x2f4b01=_0x3d36f5[_0x4ac6c4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ac6c4([0x67,0x65,0x74])](_0x4ac6c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56a378(){let _0xe07885,_0x1f6d7a=null,_0x2acc98=null;try{if(_0x2f4b01==_0x4ac6c4([0x47,0x50,0x4c]))return _0x4ac6c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xe07885=_0x3cb10e(),!_0xe07885)return _0x4ac6c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xe07885[_0x4ac6c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2acc98=_0x223f59(_0xe07885[_0x4ac6c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xe07885[_0x4ac6c4([0x6a,0x74,0x69])])),await _0x4a7935()?_0x1af54a()?_0x5410c1()?_0x4ac6c4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x869e27()?(_0xe07885[_0x4ac6c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ac6c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f6d7a=_0x5b8c0b(_0x4ac6c4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xe07885[_0x4ac6c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ac6c4([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f6d7a=_0x5b8c0b(_0x4ac6c4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x43205b()):_0x4ac6c4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ac6c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ac6c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2dc054){return _0x4ac6c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5410c1(){const _0x4db857=[_0x4ac6c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ac6c4([0x74,0x72,0x69,0x61,0x6c])][_0x4ac6c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe07885[_0x4ac6c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x441421/0x3e8:0xe10*_0x48972c;return _0xe07885[_0x4ac6c4([0x65,0x78,0x70])]<_0x4db857;}function _0x1af54a(){const _0x3b3773=_0xe07885[_0x4ac6c4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3b3773&&(!!_0x3b3773[_0x4ac6c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ac6c4([0x2a]))||!!_0x3b3773[_0x4ac6c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ac6c4([0x55,0x50,0x4c,0x43])));}function _0x869e27(){const _0x2eeab6=_0xe07885[_0x4ac6c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2eeab6||0x0==_0x2eeab6[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c4a10}=new URL(window[_0x4ac6c4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2eeab6[_0x4ac6c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c4a10))return!0x0;const _0x183d7b=_0x1c4a10[_0x4ac6c4([0x73,0x70,0x6c,0x69,0x74])](_0x4ac6c4([0x2e]));return _0x2eeab6[_0x4ac6c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24bd5d=>_0x24bd5d[_0x4ac6c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ac6c4([0x2a])))[_0x4ac6c4([0x6d,0x61,0x70])](_0x3c8fee=>_0x3c8fee[_0x4ac6c4([0x73,0x70,0x6c,0x69,0x74])](_0x4ac6c4([0x2e])))[_0x4ac6c4([0x73,0x6f,0x6d,0x65])](_0x3a9dcd=>_0x183d7b[_0x4ac6c4([0x65,0x76,0x65,0x72,0x79])]((_0x3507cb,_0x2b2479)=>_0x3a9dcd[_0x2b2479]===_0x3507cb||_0x3a9dcd[_0x2b2479]===_0x4ac6c4([0x2a])));}function _0x43205b(){return _0x1f6d7a&&_0x2acc98?new window[(_0x4ac6c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc2e789,_0x587099)=>{_0x1f6d7a[_0x4ac6c4([0x74,0x68,0x65,0x6e])](_0xc2e789,_0x587099),_0x2acc98[_0x4ac6c4([0x74,0x68,0x65,0x6e])](_0x477bfe=>{_0x477bfe!=_0x4ac6c4([0x56,0x61,0x6c,0x69,0x64])&&_0xc2e789(_0x477bfe);},_0x587099);}):_0x1f6d7a||_0x2acc98||_0x4ac6c4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x223f59(_0x419102,_0x2aeedf){return new window[(_0x4ac6c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57ba96=>{if(_0x42870c())return _0x57ba96(_0x4ac6c4([0x56,0x61,0x6c,0x69,0x64]));_0x55bc27(),_0x3d36f5[_0x4ac6c4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ac6c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34637f=!0x1;const _0x32d137=_0x3dbd77();function _0x2f2fcf(_0x509429){return!!_0x509429&&(typeof _0x509429===_0x4ac6c4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x509429===_0x4ac6c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x509429[_0x4ac6c4([0x74,0x68,0x65,0x6e])]===_0x4ac6c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x509429[_0x4ac6c4([0x63,0x61,0x74,0x63,0x68])]===_0x4ac6c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x399ded(_0x1950e3){_0x2b587c(_0x1950e3)[_0x4ac6c4([0x74,0x68,0x65,0x6e])](_0xa7ebf6=>{if(!_0xa7ebf6||_0xa7ebf6[_0x4ac6c4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ac6c4([0x6f,0x6b]))return _0x4ac6c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4652d2(_0x5e9d25(_0x32d137+_0x2aeedf))!=_0xa7ebf6[_0x4ac6c4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ac6c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ac6c4([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ac6c4([0x74,0x68,0x65,0x6e])](_0x24ffcb=>(_0x495bd0(),_0x24ffcb),()=>{const _0x4647ec=_0x43a237();return null==_0x4647ec?(_0x495bd0(),_0x4ac6c4([0x56,0x61,0x6c,0x69,0x64])):_0x4ac6c4(_0x441421-_0x4647ec>(0x708c0ebb^_0x529854)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ac6c4([0x74,0x68,0x65,0x6e])](_0x57ba96)[_0x4ac6c4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57ba96(_0x4ac6c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46aa1d=0x54b6643b^_0x529854;function _0x495bd0(){const _0x1cbad2=_0x4ac6c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x4652d2(_0x5e9d25(_0x419102)),_0x34621b=_0x463634(_0x4652d2(window[_0x4ac6c4([0x4d,0x61,0x74,0x68])][_0x4ac6c4([0x63,0x65,0x69,0x6c])](_0x441421/_0x46aa1d)));window[_0x4ac6c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ac6c4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cbad2,_0x34621b);}function _0x43a237(){const _0x1ff3e8=_0x4ac6c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x4652d2(_0x5e9d25(_0x419102)),_0x3fb135=window[_0x4ac6c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ac6c4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ff3e8);return _0x3fb135?window[_0x4ac6c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x463634(_0x3fb135),0x10)*_0x46aa1d:null;}function _0x2b587c(_0xc79db2){return new window[(_0x4ac6c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2499cc,_0x4b48a0)=>{_0xc79db2[_0x4ac6c4([0x74,0x68,0x65,0x6e])](_0x2499cc,_0x4b48a0),window[_0x4ac6c4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b48a0,0x54815e7b^_0x529854);});}}_0x3d36f5[_0x4ac6c4([0x6f,0x6e])](_0x4ac6c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35920f,_0x351dc9)=>{if(_0x351dc9[0x0]!=_0x419102)return _0x57ba96(_0x4ac6c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x351dc9[0x1]={..._0x351dc9[0x1],[_0x4ac6c4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32d137};},{[_0x4ac6c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ac6c4([0x68,0x69,0x67,0x68])}),_0x3d36f5[_0x4ac6c4([0x6f,0x6e])](_0x4ac6c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3733f3=>{_0x2f2fcf(_0x3733f3[_0x4ac6c4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34637f=!0x0,_0x399ded(_0x3733f3[_0x4ac6c4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ac6c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ac6c4([0x6c,0x6f,0x77])}),_0x2e3b56[_0x4ac6c4([0x74,0x68,0x65,0x6e])](()=>{_0x34637f||_0x57ba96(_0x4ac6c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42870c(){return _0x3d36f5[_0x4ac6c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ac6c4([0x76,0x69,0x65,0x77])][_0x4ac6c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ac6c4([0x61,0x75,0x74,0x6f]);}function _0x55bc27(){_0x3d36f5[_0x4ac6c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ac6c4([0x76,0x69,0x65,0x77])][_0x4ac6c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ac6c4([0x61,0x75,0x74,0x6f]);}}function _0x5b8c0b(_0x4d8294){const _0x5cc107=[new window[(_0x4ac6c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8e299=>setTimeout(_0x8e299,0x5489b477^_0x529854)),_0x2e3b56[_0x4ac6c4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ac6c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49389d=>{let _0x5ce493=0x0;_0x3d36f5[_0x4ac6c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ac6c4([0x6f,0x6e])](_0x4ac6c4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26d09b,_0x49b8b0)=>{_0x49b8b0[0x0][_0x4ac6c4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ce493++,_0x5ce493==(0x54808b43^_0x529854)&&(_0x49389d(),_0x26d09b[_0x4ac6c4([0x6f,0x66,0x66])]());});}))];return window[_0x4ac6c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ac6c4([0x72,0x61,0x63,0x65])](_0x5cc107)[_0x4ac6c4([0x74,0x68,0x65,0x6e])](()=>_0x4d8294);}async function _0x1e56e6(){await _0x2e3b56,_0x3d36f5[_0x4ac6c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ac6c4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7ae8,_0x3d36f5[_0x4ac6c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ac6c4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7ae8,_0x3d36f5[_0x4ac6c4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ac6c4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2fc11a(_0x464e1b){const _0x212d86=_0x2f5c0b();_0x3d36f5[_0x212d86]=_0x4ac6c4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x464e1b,_0x464e1b!=_0x4ac6c4([0x56,0x61,0x6c,0x69,0x64])&&_0x1e56e6();}function _0x2f5c0b(){const _0x42924c=window[_0x4ac6c4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ac6c4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ac6c4([0x6e,0x6f,0x77])]())[_0x4ac6c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ac6c4([0x2e]),'');let _0x114397=_0x4ac6c4([0x55]);for(let _0x26a551=0x0;_0x26a551<_0x42924c[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26a551+=0x2){let _0x271e64=window[_0x4ac6c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42924c[_0x4ac6c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26a551,_0x26a551+0x2));_0x271e64>=_0x1f5f27[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x271e64-=_0x1f5f27[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x114397+=_0x1f5f27[_0x271e64];}return _0x114397;}function _0x3cb10e(){const _0x59e262=_0x2f4b01[_0x4ac6c4([0x73,0x70,0x6c,0x69,0x74])](_0x4ac6c4([0x2e]));if(0x3!=_0x59e262[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56e000(_0x59e262[0x1]);function _0x56e000(_0xcbfe3a){const _0x48a05b=_0x3b31ab(_0xcbfe3a);return _0x48a05b&&_0x5c8893()?_0x48a05b:null;function _0x5c8893(){const _0x4132b3=_0x48a05b[_0x4ac6c4([0x6a,0x74,0x69])],_0x1981c5=window[_0x4ac6c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4132b3[_0x4ac6c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4132b3[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2dd317={..._0x48a05b,[_0x4ac6c4([0x6a,0x74,0x69])]:_0x4132b3[_0x4ac6c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4132b3[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2dd317[_0x4ac6c4([0x76,0x63])],_0x5e9d25(_0x2dd317)==_0x1981c5;}}}async function _0x4a7935(){let _0x54914f=!0x0;try{const _0xe44ed4=_0x2f4b01[_0x4ac6c4([0x73,0x70,0x6c,0x69,0x74])](_0x4ac6c4([0x2e])),[_0x45fbee,_0x3731ec,_0x45939e]=_0xe44ed4;return _0x449d7b(_0x45fbee),await _0x3d00c5(_0x45fbee,_0x3731ec,_0x45939e),_0x54914f;}catch(_0x4aa578){return!0x1;}function _0x449d7b(_0x3d5175){const _0x3f4064=_0x3b31ab(_0x3d5175);_0x3f4064&&_0x3f4064[_0x4ac6c4([0x61,0x6c,0x67])]==_0x4ac6c4([0x45,0x53,0x32,0x35,0x36])||(_0x54914f=!0x1);}async function _0x3d00c5(_0xd87dc5,_0x5a306a,_0x2d048b){const _0x3ee987=window[_0x4ac6c4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ac6c4([0x66,0x72,0x6f,0x6d])](_0x3963cc(_0x2d048b),_0x340799=>_0x340799[_0x4ac6c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x127fab=new window[(_0x4ac6c4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ac6c4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd87dc5+_0x4ac6c4([0x2e])+_0x5a306a),_0x1e6999=window[_0x4ac6c4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ac6c4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e6999)return;const _0xc526c7=await _0x1e6999[_0x4ac6c4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ac6c4([0x6a,0x77,0x6b]),_0x7881be,{[_0x4ac6c4([0x6e,0x61,0x6d,0x65])]:_0x4ac6c4([0x45,0x43,0x44,0x53,0x41]),[_0x4ac6c4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ac6c4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ac6c4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e6999[_0x4ac6c4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ac6c4([0x6e,0x61,0x6d,0x65])]:_0x4ac6c4([0x45,0x43,0x44,0x53,0x41]),[_0x4ac6c4([0x68,0x61,0x73,0x68])]:{[_0x4ac6c4([0x6e,0x61,0x6d,0x65])]:_0x4ac6c4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc526c7,_0x3ee987,_0x127fab)||(_0x54914f=!0x1);}}function _0x3b31ab(_0x10e7e3){return _0x10e7e3[_0x4ac6c4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ac6c4([0x65,0x79]))?JSON[_0x4ac6c4([0x70,0x61,0x72,0x73,0x65])](_0x3963cc(_0x10e7e3)):null;}function _0x3963cc(_0x40d27c){return window[_0x4ac6c4([0x61,0x74,0x6f,0x62])](_0x40d27c[_0x4ac6c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ac6c4([0x2b]))[_0x4ac6c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ac6c4([0x2f])));}function _0x5e9d25(_0x52387b){let _0x23a2f9=0x1505;function _0x49b11f(_0x178248){for(let _0x295d7e=0x0;_0x295d7e<_0x178248[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x295d7e++){const _0x39c5d8=_0x178248[_0x4ac6c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x295d7e);_0x23a2f9=(_0x23a2f9<<0x5)+_0x23a2f9+_0x39c5d8,_0x23a2f9&=_0x23a2f9;}}function _0x334be2(_0x2a924c){Array[_0x4ac6c4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a924c)?_0x2a924c[_0x4ac6c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x334be2):_0x2a924c&&typeof _0x2a924c==_0x4ac6c4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ac6c4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a924c)[_0x4ac6c4([0x73,0x6f,0x72,0x74])]()[_0x4ac6c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f6450,_0x256c6a])=>{_0x49b11f(_0x2f6450),_0x334be2(_0x256c6a);}):_0x49b11f(window[_0x4ac6c4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a924c));}return _0x334be2(_0x52387b),_0x23a2f9>>>0x0;}function _0x4652d2(_0x145dfb){return _0x145dfb[_0x4ac6c4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ac6c4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ac6c4([0x30]));}function _0x463634(_0x24b01f){return _0x24b01f[_0x4ac6c4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ac6c4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ac6c4([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d7ae8(){}function _0x4ac6c4(_0x41b8a7){return _0x41b8a7['map'](_0x1ac8ca=>String['fromCharCode'](_0x1ac8ca))['join']('');}_0x2fc11a(await _0x56a378());}(this);}['_initSchema'](){const _0x44831d=this['editor']['model']['schema'];_0x44831d['isRegistered']('imageBlock')&&_0x44831d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x44831d['isRegistered']('imageInline')&&_0x44831d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1bb707=this['editor'];_0x1bb707['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1bb707['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x317255=>_0x317255['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x44d0a5=_0x1bb707['commands']['get']('replaceImageSource');_0x44d0a5&&this['listenTo'](_0x44d0a5,'cleanupImage',(_0x2c26c1,[_0x4e2e4b,_0x48e133])=>{_0x4e2e4b['removeAttribute']('uploadcareImageId',_0x48e133);});}['_initConfig'](){const _0xe48013=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2d2d7b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x873785(_0x5edf6e['document'],'uc-config',{..._0xe48013,'pubkey':_0x2d2d7b,'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']=_0x434b7d=>{if('closeMax'==_0x434b7d)return'#uc-icon-arrow-down';},_0x5edf6e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x873785(_0x5edf6e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5edf6e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x257224=this['editor']['commands']['get']('insertImage');_0x257224&&this['listenTo'](_0x257224,'execute',()=>{const _0x4c701e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c701e&&_0x4c701e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4c701e);});});const _0x4b7323=this['editor']['commands']['get']('uploadcareImageReplace');_0x4b7323&&this['listenTo'](_0x4b7323,'execute',()=>{const _0x4c05bd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c05bd&&_0x4c05bd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4c05bd);});});}}class u extends _0x50ec4a{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x26cd8f){super(_0x26cd8f),_0x26cd8f['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x5891b3['defineComponents'](_0x5891b3);}}class ta extends _0x1d48b0{constructor(_0x1c2cf4){super(_0x1c2cf4);const t=_0x1c2cf4['t'],_0x20385d=this['bindTemplate'],_0x5793c2=new _0x3eb641();_0x5793c2['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':[_0x5793c2,{'text':_0x20385d['to']('imageUploadProgress',_0x222cb0=>t('Loading\x20image...')+'\x20('+(_0x222cb0||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x1d48b0{constructor(_0x382635){super(_0x382635);const t=_0x382635['t'];this['set']('errorType',null);const _0x56023e=new _0x4a4b18(_0x382635);_0x56023e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x56023e['withText']=!0x0,_0x56023e['class']='ck-button-action',_0x56023e['on']('execute',()=>{this['fire']('retry');}),_0x56023e['bind']('isVisible')['to'](this,'errorType',_0x536655=>'NotFound'!==_0x536655);const _0x3e2cf0=new at();_0x3e2cf0['content']=et,_0x3e2cf0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3dba2b=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':[_0x3e2cf0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3dba2b['to']('errorType',_0x2f0416=>t('NotFound'!==_0x2f0416?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x56023e]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x1d48b0{constructor(_0x350a2b,_0x3ffb26){super(_0x350a2b);const _0x35546d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3ffb26,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x35546d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xd5fb91,_0x4bf30a,_0x31e423){super(_0xd5fb91),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xd5fb91),this['_errorView']=new rt(_0xd5fb91),this['_editingView']=new tt(_0xd5fb91,_0x31e423),this['_focusableView']=new _0x1d48b0(_0xd5fb91),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4bf30a),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'],_0x263c79=>{this['_addUploadcareImageEditorListeners'](_0x263c79);});}),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'](_0x249644,_0x3b4ff7){const _0x26cd55='uc-cloud-image-editor',_0x500905=_0x249644['querySelector'](_0x26cd55);if(_0x500905)return _0x3b4ff7(_0x500905);const _0x3f3550=new MutationObserver(_0x3de1d6=>{const _0x1418b2=_0x3de1d6['filter'](_0x21f789=>_0x21f789['target']===_0x249644&&_0x21f789['addedNodes']['length']>0x0&&_0x21f789['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x26cd55);_0x1418b2['length']&&(_0x3f3550['disconnect'](),_0x3b4ff7(_0x1418b2[0x0]['addedNodes'][0x0]));});_0x3f3550['observe'](_0x249644,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x433f5b){_0x433f5b['addEventListener']('apply',_0x18f2ed=>{this['fire']('apply',{'imageSrc':_0x18f2ed['detail']['cdnUrl']});}),_0x433f5b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2d6bf3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xc31d5,_0x2f6a39,_0x2ec54d){super(),this['_editor']=_0xc31d5,this['_dialog']=_0x2f6a39,this['_imageElement']=_0x2ec54d,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 _0x3ed53a=this['_imageElement'],_0x216848=_0x3ed53a['getAttribute']('uploadcareImageId'),_0x54e2ec=_0x3ed53a['getAttribute']('src');if(_0x216848)await this['_loadImageInfo'](_0x216848,_0x54e2ec);else{if(this['_imageCache']['has'](_0x54e2ec)){const _0xad162b=this['_imageCache']['get'](_0x54e2ec);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xad162b['url'],this['imageDimension']=_0xad162b['dimension'],this['imageId']=_0xad162b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5e06c7}=this['_editor'],t=_0x5e06c7['t'],_0x3d1721=new Z(_0x5e06c7,this['imageStatus'],this['_attributes']);_0x3d1721['bind']('status')['to'](this,'imageStatus'),_0x3d1721['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3d1721['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3d1721['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3d1721,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3e460a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3d1721,'position':_0x4cd24c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3d1721['focus']();},'onHide':()=>{_0x3d1721['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x962372=>!F(_0x962372,_0x3d1721['element'])}});}['_loadImageInfo'](_0x4eafe7,_0x2974b5){return C['getInfo'](_0x4eafe7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xf64f1e=>{const {width:_0xde1aef,height:_0x4778a0}=_0xf64f1e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2974b5,this['imageDimension']={'width':_0xde1aef,'height':_0x4778a0},this['imageId']=_0x4eafe7;})['catch'](_0x4c8ced=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c8ced['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1c068a,_0x410a07){return this['_getImageAsFile'](_0x1c068a)['then'](_0xf2fa5f=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x410a07['signal'],'file':_0xf2fa5f,'onProgress':_0x399181=>{_0x399181&&_0x399181['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x399181['value']));}}))['then'](_0x4ad7d3=>{const {width:_0x5af1fe,height:_0x478c67}=_0x4ad7d3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ad7d3['cdnUrl'],this['imageDimension']={'width':_0x5af1fe,'height':_0x478c67},this['imageId']=_0x4ad7d3['uuid'],this['imageUploadProgress']=null;const _0xf8daac=_0x1c068a['getAttribute']('src');this['_imageCache']['set'](_0xf8daac,{'id':_0x4ad7d3['uuid'],'url':_0x4ad7d3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x32a48f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x32a48f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x42206a,_0x409d60){_0x42206a['on']('apply',(_0x1080fa,_0x5df0b9)=>{this['_replaceImage'](_0x409d60,_0x5df0b9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x42206a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x42206a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x549d96,_0x5db13e,_0x394ed0){const _0x314501=this['_editor'],{width:_0x11b41f,height:_0x400f39}=A(_0x5db13e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3fad22,imageSources:_0x238c3e}=E(_0x5db13e,_0x11b41f);_0x314501['model']['change'](_0x5a4c1b=>{if('$graveyard'===_0x549d96['root']['rootName']){_0x314501['execute']('insertImage',{'imageType':_0x549d96['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x549d96['getAttributes']()),'uploadcareImageId':_0x394ed0,'src':_0x3fad22,'sources':_0x238c3e,'width':_0x11b41f,'height':_0x400f39}});const _0x25efa6=_0x549d96['getChildren']();_0x549d96=_0x314501['model']['document']['selection']['getSelectedElement']();for(const _0x7cf3c5 of _0x25efa6)_0x5a4c1b['append'](_0x5a4c1b['cloneElement'](_0x7cf3c5),_0x549d96);}else _0x5a4c1b['setSelection'](_0x549d96,'on'),_0x314501['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x549d96['getAttributes']()),'uploadcareImageId':_0x394ed0,'src':_0x3fad22,'sources':_0x238c3e,'width':_0x11b41f,'height':_0x400f39},_0x549d96);_0x5a4c1b['setSelection'](_0x549d96,'on');});}async['_getImageAsFile'](_0x1cef73){const _0x481c34=_0x5edf6e['window'],_0x3a4888=_0x5edf6e['document']['location']['href'],_0x4f4fd8=new _0x481c34['URL'](_0x1cef73['getAttribute']('src'),_0x3a4888);if('data:'===_0x4f4fd8['protocol']){const _0x2981ee=_0x4f4fd8['href']['split'](','),_0x5e95c3=_0x2981ee[0x0]['match'](/:(.*?);/)[0x1],_0x2980a8=_0x5e95c3['split']('/')[0x1],_0x5b01c5=_0x481c34['atob'](_0x2981ee[_0x2981ee['length']-0x1]);let _0x49344d=_0x5b01c5['length'];const _0x54db7b=new _0x481c34['Uint8Array'](_0x49344d);for(;_0x49344d--;)_0x54db7b[_0x49344d]=_0x5b01c5['charCodeAt'](_0x49344d);return new _0x481c34['File']([_0x54db7b],'image.'+_0x2980a8,{'type':_0x5e95c3});}const _0x53ac81=_0x4f4fd8['href']['split']('/'),_0xc9add0=_0x53ac81[_0x53ac81['length']-0x1],_0x170f59=_0xc9add0['split']('.')[0x1];return _0x481c34['fetch'](_0x4f4fd8['href'])['then'](_0x4c9510=>_0x4c9510['clone']()['blob']())['then'](_0x38adbc=>new _0x481c34['File']([_0x38adbc],_0xc9add0,{'type':'image/'+_0x170f59}));}}class J extends _0x2b86bf{['imageEditController'];static get['requires'](){return[_0x19a61e];}['_isEditable'];constructor(_0x1dd9cb){super(_0x1dd9cb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4016b5){const _0x25ca78=V(_0x4016b5);return _0x4bb77a=>!(!_0x4bb77a||!_0x4bb77a['is']('element','imageBlock')&&!_0x4bb77a['is']('element','imageInline'))&&(!!_0x4bb77a['hasAttribute']('uploadcareImageId')||!!_0x4bb77a['hasAttribute']('src')&&_0x25ca78(_0x4bb77a['getAttribute']('src')));}(_0x1dd9cb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3c9caf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3c9caf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3ba7a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ba7a&&(_0x3ba7a['is']('element','imageBlock')||_0x3ba7a['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x19a61e),_0x3ba7a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2b86bf{['refresh'](){const _0x245d8e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x245d8e&&(_0x245d8e['is']('element','imageBlock')||_0x245d8e['is']('element','imageInline')));}['execute'](_0x198e11){const _0x51524e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x386798=>{_0x386798['setAttributes'](_0x198e11,_0x51524e),_0x386798['removeAttribute']('srcset',_0x51524e),_0x386798['removeAttribute']('sizes',_0x51524e);});}}class g extends _0x50ec4a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x493ea4,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a3dd8}=this;_0x1a3dd8['commands']['add']('uploadcareImageEdit',new J(_0x1a3dd8)),_0x1a3dd8['commands']['add']('uploadcareImageReplace',new O(_0x1a3dd8));}}class j extends _0x50ec4a{['_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 _0x29b2d7=this['editor'];_0x29b2d7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3ab014=>{const _0x5465d5=_0x29b2d7['commands']['get']('uploadcareImageEdit'),_0x3b1f72=new _0x4a4b18(_0x3ab014),t=_0x3ab014['t'];return _0x3b1f72['set']({'icon':_0x3e460a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3b1f72['bind']('isEnabled')['to'](_0x5465d5),_0x3b1f72['bind']('isOn')['to'](_0x5465d5,'isActive'),this['listenTo'](_0x3b1f72,'execute',()=>{_0x29b2d7['execute']('uploadcareImageEdit'),_0x29b2d7['editing']['view']['focus']();}),_0x3b1f72;}),this['_initConfig']();}['_initConfig'](){const _0x4c7670=_0x873785(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4c7670),this['listenTo'](this['editor'],'destroy',()=>{_0x4c7670['remove']();});}}class P extends _0x50ec4a{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x33fadd=>0x1!=_0x33fadd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x40ddbc=>{const {af:{dictionary:_0x3e7905,getPluralForm:_0x4349d6}}={'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':_0x18b35d=>0x1!=_0x18b35d}};_0x40ddbc['af']||={'dictionary':{},'getPluralForm':null},_0x40ddbc['af']['dictionary']=Object['assign'](_0x40ddbc['af']['dictionary'],_0x3e7905),_0x40ddbc['af']['getPluralForm']=_0x4349d6;})(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':_0x5645b0=>0x0==_0x5645b0?0x0:0x1==_0x5645b0?0x1:0x2==_0x5645b0?0x2:_0x5645b0%0x64>=0x3&&_0x5645b0%0x64<=0xa?0x3:_0x5645b0%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x33879b=>{const {ar:{dictionary:_0x4bc54e,getPluralForm:_0x17e0f6}}={'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':_0x38052b=>0x0==_0x38052b?0x0:0x1==_0x38052b?0x1:0x2==_0x38052b?0x2:_0x38052b%0x64>=0x3&&_0x38052b%0x64<=0xa?0x3:_0x38052b%0x64>=0xb?0x4:0x5}};_0x33879b['ar']||={'dictionary':{},'getPluralForm':null},_0x33879b['ar']['dictionary']=Object['assign'](_0x33879b['ar']['dictionary'],_0x4bc54e),_0x33879b['ar']['getPluralForm']=_0x17e0f6;})(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':_0xadf05b=>0x1!=_0xadf05b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1dd44a=>{const {ast:{dictionary:_0x2ab732,getPluralForm:_0x3652cf}}={'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':_0x4f2f11=>0x1!=_0x4f2f11}};_0x1dd44a['ast']||={'dictionary':{},'getPluralForm':null},_0x1dd44a['ast']['dictionary']=Object['assign'](_0x1dd44a['ast']['dictionary'],_0x2ab732),_0x1dd44a['ast']['getPluralForm']=_0x3652cf;})(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':_0x4c311c=>0x1!=_0x4c311c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x35b8d9=>{const {az:{dictionary:_0x4004b2,getPluralForm:_0x27e456}}={'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':_0xdb78f5=>0x1!=_0xdb78f5}};_0x35b8d9['az']||={'dictionary':{},'getPluralForm':null},_0x35b8d9['az']['dictionary']=Object['assign'](_0x35b8d9['az']['dictionary'],_0x4004b2),_0x35b8d9['az']['getPluralForm']=_0x27e456;})(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':_0x4b0ac8=>_0x4b0ac8%0xa==0x1&&_0x4b0ac8%0x64!=0xb?0x0:_0x4b0ac8%0xa>=0x2&&_0x4b0ac8%0xa<=0x4&&(_0x4b0ac8%0x64<0xa||_0x4b0ac8%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x225790=>{const {be:{dictionary:_0xc8f9a2,getPluralForm:_0x4bfd7e}}={'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':_0x49e313=>_0x49e313%0xa==0x1&&_0x49e313%0x64!=0xb?0x0:_0x49e313%0xa>=0x2&&_0x49e313%0xa<=0x4&&(_0x49e313%0x64<0xa||_0x49e313%0x64>=0x14)?0x1:0x2}};_0x225790['be']||={'dictionary':{},'getPluralForm':null},_0x225790['be']['dictionary']=Object['assign'](_0x225790['be']['dictionary'],_0xc8f9a2),_0x225790['be']['getPluralForm']=_0x4bfd7e;})(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':_0x4fb959=>0x1!=_0x4fb959}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x150b93=>{const {bg:{dictionary:_0x240d1a,getPluralForm:_0x2a2732}}={'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':_0x2d8cd7=>0x1!=_0x2d8cd7}};_0x150b93['bg']||={'dictionary':{},'getPluralForm':null},_0x150b93['bg']['dictionary']=Object['assign'](_0x150b93['bg']['dictionary'],_0x240d1a),_0x150b93['bg']['getPluralForm']=_0x2a2732;})(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':_0xc87511=>0x1!=_0xc87511}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x17bca6=>{const {bn:{dictionary:_0x1e4907,getPluralForm:_0x5f57c3}}={'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':_0x1b126c=>0x1!=_0x1b126c}};_0x17bca6['bn']||={'dictionary':{},'getPluralForm':null},_0x17bca6['bn']['dictionary']=Object['assign'](_0x17bca6['bn']['dictionary'],_0x1e4907),_0x17bca6['bn']['getPluralForm']=_0x5f57c3;})(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':_0x279161=>_0x279161%0xa==0x1&&_0x279161%0x64!=0xb?0x0:_0x279161%0xa>=0x2&&_0x279161%0xa<=0x4&&(_0x279161%0x64<0xa||_0x279161%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3e3df1=>{const {bs:{dictionary:_0x183002,getPluralForm:_0x3ae995}}={'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':_0x590693=>_0x590693%0xa==0x1&&_0x590693%0x64!=0xb?0x0:_0x590693%0xa>=0x2&&_0x590693%0xa<=0x4&&(_0x590693%0x64<0xa||_0x590693%0x64>=0x14)?0x1:0x2}};_0x3e3df1['bs']||={'dictionary':{},'getPluralForm':null},_0x3e3df1['bs']['dictionary']=Object['assign'](_0x3e3df1['bs']['dictionary'],_0x183002),_0x3e3df1['bs']['getPluralForm']=_0x3ae995;})(window['CKEDITOR_TRANSLATIONS']||={});
|