@ckeditor/ckeditor5-uploadcare 47.7.3 → 47.7.5-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/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 _0x2b6d11,Command as _0x59176d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x38453d,IconGooglePhotos as _0xbc9bd,IconGoogleDrive as _0x4134e8,IconFacebook as _0x26b0d7,IconDropbox as _0x7cc7c,IconUploadcareLink as _0x49b5df,IconUploadcareImageUpload as _0x5b29b5,IconError as _0x31d45f,IconUploadcareImageEdit as _0x4fd8fc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x15678c,MenuBarMenuListItemButtonView as _0x480705,View as _0x50800c,FocusCycler as _0x52a574,Dialog as _0x39fefa,DialogViewPosition as _0x51ef26,SpinnerView as _0x54e807,IconView as _0x50678c,Notification as _0x16110d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x166618,DomEmitterMixin as _0x4644b1,global as _0x394f5b,getAncestors as _0x425e8e,ObservableMixin as _0x9bf5c,uid as _0x3abc27,createElement as _0x3f19e5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x37666d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x27d716,info as _0x4da662}from'@uploadcare/upload-client';import*as _0x52a05b from'@uploadcare/file-uploader';var i=function(_0x1def2b){return _0x1def2b['Local']='local',_0x1def2b['URL']='url',_0x1def2b['Dropbox']='dropbox',_0x1def2b['GDrive']='gdrive',_0x1def2b['Facebook']='facebook',_0x1def2b['GPhotos']='gphotos',_0x1def2b['OneDrive']='onedrive',_0x1def2b;}({});function _(_0x14c48d,_0x24e81a,_0x502040){const t=_0x14c48d['t'],_0x374ae9=_0x14c48d['t'];switch(_0x24e81a){case i['Local']:return{'text':_0x374ae9('Insert'===_0x502040?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x374ae9('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x502040?_0x374ae9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x374ae9('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x502040?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x502040?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x502040?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x502040?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x502040?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x24e81a;}}class e extends _0x2b6d11{['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 _0x468f86=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x494c92;for(const _0x4e8bf0 in _0x468f86){const _0x249ec8=_0x4e8bf0,_0x4f8347=_0x468f86[_0x249ec8];if('uploadcareLicenseKeyValid'==_0x4f8347||'uploadcareLicenseKeyInvalid'==_0x4f8347||'uploadcareLicenseKeyExpired'==_0x4f8347||'uploadcareLicenseKeyDomainLimit'==_0x4f8347||'uploadcareLicenseKeyNotAllowed'==_0x4f8347||'uploadcareLicenseKeyEvaluationLimit'==_0x4f8347||'uploadcareLicenseKeyUsageLimit'==_0x4f8347){delete _0x468f86[_0x249ec8],_0x494c92=_0x4f8347,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x494c92&&_0x468f86['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x494c92&&_0x468f86['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x494c92&&_0x468f86['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x494c92&&_0x468f86['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x494c92&&_0x468f86['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x494c92&&_0x468f86['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x757fdc}=this,_0x1a7a02=_0x757fdc['commands']['get']('uploadcare');if(!_0x1a7a02)return;const _0x4499c6=this['_normalizeConfigSourceList'](_0x757fdc['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x50784f,_0x1ae863)=>{const _0x102edd=this['_getIntegrationKey'](_0x1ae863['type']);return _0x50784f[_0x102edd]||(_0x50784f[_0x102edd]=[]),_0x50784f[_0x102edd]['push'](_0x1ae863),_0x50784f;},{});_0x757fdc['plugins']['has']('ImageInsertUI')&&_0x757fdc['commands']['get']('uploadcare')&&Object['entries'](_0x4499c6)['forEach'](([_0x4d719d,_0x2e8ac3])=>{_0x757fdc['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4d719d,'observable':()=>_0x1a7a02,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2e8ac3),'formViewCreator':()=>this['_createDropdownButtons'](_0x2e8ac3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2e8ac3),'override':'assetManager'!==_0x4d719d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1ece72){const {locale:_0x509683}=this['editor'];return _0x1ece72['map'](_0x219f5b=>{const _0x3233d7=_(_0x509683,_0x219f5b,'Insert');switch(_0x219f5b){case i['Local']:return{'icon':_0x5b29b5,'type':i['Local'],..._0x3233d7};case i['URL']:return{'icon':_0x49b5df,'type':i['URL'],..._0x3233d7};case i['Dropbox']:return{'icon':_0x7cc7c,'type':i['Dropbox'],..._0x3233d7};case i['Facebook']:return{'icon':_0x26b0d7,'type':i['Facebook'],..._0x3233d7};case i['GDrive']:return{'icon':_0x4134e8,'type':i['GDrive'],..._0x3233d7};case i['GPhotos']:return{'icon':_0xbc9bd,'type':i['GPhotos'],..._0x3233d7};case i['OneDrive']:return{'icon':_0x38453d,'type':i['OneDrive'],..._0x3233d7};}});}['_getIntegrationKey'](_0x2b5f20){switch(_0x2b5f20){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5edbbf,_0x21a735){const _0xc35bc3=this['editor'],_0x409133=new _0x5edbbf(_0xc35bc3['locale']),_0x30b88f=_0xc35bc3['commands']['get']('uploadcare');return _0x409133['bind']('isEnabled')['to'](_0x30b88f),_0x409133['on']('execute',()=>{_0x30b88f['execute'](_0x21a735);}),_0x409133;}['_createToolbarButton'](_0x2be00a){const {locale:_0x368abf}=this['editor'],_0x2b8f96=this['editor']['plugins']['get']('ImageInsertUI'),_0x45d62c=_0x2be00a[0x0],_0xe762ab=this['_createButton'](_0x15678c,_0x45d62c['type']);return _0xe762ab['icon']=_0x45d62c['icon'],_0xe762ab['bind']('label')['to'](_0x2b8f96,'isImageSelected',_0x47f680=>_(_0x368abf,_0x45d62c['type'],_0x47f680?'Replace':'Insert')['text']),_0xe762ab['tooltip']=!0x0,_0xe762ab;}['_createDropdownButtons'](_0x24a0bd){const {locale:_0x34683d}=this['editor'],_0x59d9ea=this['editor']['plugins']['get']('ImageInsertUI');return _0x24a0bd['map'](_0x595bb2=>{const _0x4a6d39=this['_createButton'](_0x15678c,_0x595bb2['type']);return _0x4a6d39['withText']=!0x0,_0x4a6d39['icon']=_0x595bb2['icon'],_0x4a6d39['bind']('label')['to'](_0x59d9ea,'isImageSelected',_0x427c32=>_(_0x34683d,_0x595bb2['type'],_0x427c32?'Replace':'Insert')['text']),_0x4a6d39;});}['_createMenuBarButtons'](_0x694233){return _0x694233['map'](_0x5485ee=>{const _0x232dcc=this['_createButton'](_0x480705,_0x5485ee['type']);return _0x232dcc['icon']=_0x5485ee['icon'],_0x232dcc['label']=_0x5485ee['shortText'],_0x232dcc;});}}class F extends _0x50800c{['focusTracker'];['focusCycler'];constructor(_0x5a5cd8){super(_0x5a5cd8),this['focusTracker']=new _0x166618(),this['focusCycler']=new _0x52a574({'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 H extends F{constructor(_0x2950b5,_0x44a831){super(_0x2950b5),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-'+_0x44a831}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function A(_0xcec8c2,_0x47f249){const _0x11b6e5=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4c4233=>_0x4c4233<=_0x47f249)['map'](_0x11adee=>_0xcec8c2['replace'](/\/$/,'')+'/-/resize/'+_0x11adee+'x/\x20'+_0x11adee+'w');return{'imageFallbackUrl':_0xcec8c2,'imageSources':[{'srcset':_0x11b6e5['join'](',\x20'),'sizes':'(max-width:\x20'+_0x47f249+'px)\x20100vw,\x20'+_0x47f249+'px','type':'image/webp'}]};}function x(_0x2b2cd6,_0x50f17c,_0x26cb51){const _0x18f506=_0x2b2cd6['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x18f506?parseInt(_0x18f506[0x1],0xa):_0x50f17c,'height':_0x18f506?parseInt(_0x18f506[0x2],0xa):_0x26cb51};}function p(_0x3fda72,_0x2543ed){const _0x30af95=new(_0x4644b1())(),_0x597309=_0x3fda72['plugins']['get']('ImageUtils'),_0x28d23c=_0x3fda72['editing']['mapper']['toViewElement'](_0x2543ed),_0x1f011b=_0x597309['findViewImgElement'](_0x28d23c),_0x2fbdea=_0x3fda72['editing']['view']['domConverter']['viewToDom'](_0x1f011b),_0x42bc60=_0x2543ed['getAttribute']('width'),_0x413ac3=_0x2543ed['getAttribute']('height'),_0x4c61a4='image-processing';_0x3fda72['editing']['view']['change'](_0x4946c4=>{_0x4946c4['addClass'](_0x4c61a4,_0x28d23c),_0x4946c4['setStyle']('aspect-ratio',_0x42bc60+'/'+_0x413ac3,_0x1f011b);}),_0x30af95['listenTo'](_0x2fbdea,'load',()=>{_0x30af95['stopListening'](_0x2fbdea,'load'),_0x3fda72['editing']['view']['change'](_0x481e2c=>{_0x481e2c['removeClass'](_0x4c61a4,_0x28d23c),_0x481e2c['removeStyle']('aspect-ratio',_0x1f011b);});});}function z(_0x110145){if(Array['isArray'](_0x110145)){const _0x3dcb45=_0x110145['map'](z);return _0x8a21a=>_0x3dcb45['some'](_0x494db5=>_0x494db5(_0x8a21a));}if('origin'==_0x110145){const _0x2d1b55=_0x394f5b['window']['location']['origin'];return _0x481477=>new URL(_0x481477,_0x394f5b['document']['baseURI'])['origin']==_0x2d1b55;}return'function'==typeof _0x110145?_0x110145:_0x110145 instanceof RegExp?_0xc0990d=>!(!_0xc0990d['match'](_0x110145)&&!_0xc0990d['replace'](/^https?:\/\//,'')['match'](_0x110145)):()=>!0x1;}function C(_0x3f4d42,_0x4d1fe1){return _0x425e8e(_0x3f4d42['target'])['includes'](_0x4d1fe1);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x9bf5c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5e772b,_0x12062c,_0x4666ba){super(),this['_editor']=_0x5e772b,this['_editing']=_0x12062c,this['_dialog']=_0x5e772b['plugins']['get'](_0x39fefa),this['_api']=_0x12062c['ctxElement']['getAPI'](),this['_type']=_0x4666ba,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:_0x145a6a,model:_0x27a167}=this['_editor'],_0x1ce156=_0x27a167['document']['selection']['getSelectedElement'](),_0x2a2856=_0x1ce156&&(_0x1ce156['is']('element','imageBlock')||_0x1ce156['is']('element','imageInline'));this['_formView']=new H(_0x145a6a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5b29b5,'title':_(_0x145a6a,this['_type'],_0x2a2856?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x51ef26['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x545e9b=>!C(_0x545e9b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x355d9c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x31d0c=>{const _0x3b6984=_0x355d9c['length'];for(const _0x24cb77 of _0x355d9c){const _0x239c7b=_0x24cb77===_0x355d9c[_0x3b6984-0x1],{cdnUrl:_0x3b554c,fileInfo:_0x173343}=_0x24cb77;if(!_0x3b554c||!_0x173343)continue;const {width:_0x4d58fa,height:_0xf08041}=_0x173343['imageInfo'],_0x2a3a01=x(_0x3b554c,_0x4d58fa,_0xf08041),_0x3cd4eb=A(_0x3b554c,_0x2a3a01['width']),_0x4146a9={'id':_0x173343['uuid'],'type':'image','attributes':{'imageDimension':_0x2a3a01,..._0x3cd4eb}};this['_insertAsset'](_0x4146a9,_0x239c7b,_0x31d0c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x303c3e=>{'idle'===_0x303c3e['detail']['status']&&!_0x303c3e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3dbafa,_0x4fabab,_0x5c52d2){const _0x2d8b48=this['_editor']['model']['document']['selection'],_0x2580cb=_0x2d8b48['getSelectedElement'](),_0x559fc1=!(!_0x2580cb||!_0x2580cb['is']('element','imageInline'));_0x5c52d2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3dbafa,_0x559fc1),_0x4fabab||_0x5c52d2['setSelection'](_0x2d8b48['getLastPosition']());}['_insertImage'](_0x2a6664,_0x51fb00){const _0x4c1d81=this['_editor'],{imageDimension:_0x9db72c,imageFallbackUrl:_0x45beea,imageSources:_0x267d11}=_0x2a6664['attributes'];_0x4c1d81['execute']('insertImage',{'imageType':_0x51fb00?'imageInline':null,'source':{'uploadcareImageId':_0x2a6664['id'],'src':_0x45beea,'sources':_0x267d11,..._0x9db72c}});}}class w extends _0x59176d{['_editing'];['_controller']=null;static get['requires'](){return[_0x39fefa,o];}constructor(_0x571aef){super(_0x571aef),this['_editing']=_0x571aef['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x9fa39c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x9fa39c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3fbb80,..._0x16e52d}){return _0x27d716(_0x3fbb80,_0x16e52d);}static['getInfo'](_0x42328f,_0x1b7d2a){return _0x4da662(_0x42328f,_0x1b7d2a);}}class f extends _0x2b6d11{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x37666d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x19c07c=this['editor'];if(!!!_0x19c07c['config']['get']('uploadcare'))return;_0x19c07c['plugins']['get'](_0x37666d)['createUploadAdapter']=_0x28f450=>new Adapter(_0x28f450,_0x19c07c),_0x19c07c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x6824c2,{imageElement:_0x52c23d,data:_0x44302e})=>{_0x19c07c['model']['change'](_0x3ef25a=>{_0x3ef25a['setAttribute']('uploadcareImageId',_0x44302e['uploadcareImageId'],_0x52c23d);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x16fc3c,_0x54cdf9){this['loader']=_0x16fc3c,this['editor']=_0x54cdf9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x15bae6=await this['loader']['file'];return j['upload']({'file':_0x15bae6,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0xa42881=>{_0xa42881&&_0xa42881['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xa42881['value']);}})['then'](async _0x49a91a=>{const {imageFallbackUrl:_0x4edeb9,imageSources:_0x4ae90f}=A(_0x49a91a['cdnUrl'],_0x49a91a['imageInfo']['width']);return{'uploadcareImageId':_0x49a91a['uuid'],'default':_0x4edeb9,'sources':_0x4ae90f};})['catch'](()=>{const _0x427152=t('Cannot\x20upload\x20file:')+('\x20'+_0x15bae6['name']+'.');return Promise['reject'](_0x427152);});}['abort'](){this['controller']['abort']();}}class o extends _0x2b6d11{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x39fefa];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4ec434){super(_0x4ec434),this['ucContextId']=_0x3abc27();}['init'](){const _0x42a8d4=this['editor'];_0x42a8d4['commands']['add']('uploadcare',new w(_0x42a8d4));}['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 _0x16f5e8=_0x394f5b['document']['querySelector']('input[uploadcare-file-input]');_0x16f5e8&&_0x16f5e8['remove']();}),async function(_0x483a94){const _0x2ed96a=_0x4b05a5([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3e19a5=0x535f8c3a,_0x2909e9=0x535803fa^_0x3e19a5,_0x629471=window[_0x4b05a5([0x44,0x61,0x74,0x65])][_0x4b05a5([0x6e,0x6f,0x77])](),_0x506594=_0x483a94[_0x4b05a5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35aae2=new window[(_0x4b05a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x528c44=>{_0x506594[_0x4b05a5([0x6f,0x6e,0x63,0x65])](_0x4b05a5([0x72,0x65,0x61,0x64,0x79]),_0x528c44);}),_0x508076={[_0x4b05a5([0x6b,0x74,0x79])]:_0x4b05a5([0x45,0x43]),[_0x4b05a5([0x75,0x73,0x65])]:_0x4b05a5([0x73,0x69,0x67]),[_0x4b05a5([0x63,0x72,0x76])]:_0x4b05a5([0x50,0x2d,0x32,0x35,0x36]),[_0x4b05a5([0x78])]:_0x4b05a5([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]),[_0x4b05a5([0x79])]:_0x4b05a5([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]),[_0x4b05a5([0x61,0x6c,0x67])]:_0x4b05a5([0x45,0x53,0x32,0x35,0x36])},_0x21719b=_0x506594[_0x4b05a5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b05a5([0x67,0x65,0x74])](_0x4b05a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4936a3(){let _0x31ad38,_0xd105ec=null,_0x3d15e1=null;try{if(_0x21719b==_0x4b05a5([0x47,0x50,0x4c]))return _0x4b05a5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31ad38=_0x49076e(),!_0x31ad38)return _0x4b05a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31ad38[_0x4b05a5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d15e1=_0x3a4fbd(_0x31ad38[_0x4b05a5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31ad38[_0x4b05a5([0x6a,0x74,0x69])])),await _0x144361()?_0x769215()?_0x3cf298()?_0x4b05a5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x326fae()?(_0x31ad38[_0x4b05a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b05a5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd105ec=_0x376d87(_0x4b05a5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a4623()):_0x4b05a5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b05a5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b05a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4b05a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cf298(){const _0x409d7f=[_0x4b05a5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b05a5([0x74,0x72,0x69,0x61,0x6c])][_0x4b05a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31ad38[_0x4b05a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x629471/0x3e8:0xe10*_0x2909e9;return _0x31ad38[_0x4b05a5([0x65,0x78,0x70])]<_0x409d7f;}function _0x769215(){const _0x2a1d68=_0x31ad38[_0x4b05a5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a1d68&&(!!_0x2a1d68[_0x4b05a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b05a5([0x2a]))||!!_0x2a1d68[_0x4b05a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b05a5([0x55,0x50,0x4c,0x43])));}function _0x326fae(){const _0xb19922=_0x31ad38[_0x4b05a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb19922||0x0==_0xb19922[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42cf80}=new URL(window[_0x4b05a5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb19922[_0x4b05a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42cf80))return!0x0;const _0x51eb28=_0x42cf80[_0x4b05a5([0x73,0x70,0x6c,0x69,0x74])](_0x4b05a5([0x2e]));return _0xb19922[_0x4b05a5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d44f7=>_0x2d44f7[_0x4b05a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b05a5([0x2a])))[_0x4b05a5([0x6d,0x61,0x70])](_0x2f0929=>_0x2f0929[_0x4b05a5([0x73,0x70,0x6c,0x69,0x74])](_0x4b05a5([0x2e])))[_0x4b05a5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1149d2=>_0x1149d2[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x51eb28[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b05a5([0x6d,0x61,0x70])](_0x4c7b4d=>Array(_0x51eb28[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c7b4d[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b05a5([0x66,0x69,0x6c,0x6c])](_0x4c7b4d[0x0]===_0x4b05a5([0x2a])?_0x4b05a5([0x2a]):'')[_0x4b05a5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c7b4d))[_0x4b05a5([0x73,0x6f,0x6d,0x65])](_0x1f89b3=>_0x51eb28[_0x4b05a5([0x65,0x76,0x65,0x72,0x79])]((_0x42ef6a,_0x41e2e9)=>_0x1f89b3[_0x41e2e9]===_0x42ef6a||_0x1f89b3[_0x41e2e9]===_0x4b05a5([0x2a])));}function _0x3a4623(){return _0xd105ec&&_0x3d15e1?new window[(_0x4b05a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ec7bb,_0x123226)=>{_0xd105ec[_0x4b05a5([0x74,0x68,0x65,0x6e])](_0x1ec7bb,_0x123226),_0x3d15e1[_0x4b05a5([0x74,0x68,0x65,0x6e])](_0x49e7b7=>{_0x49e7b7!=_0x4b05a5([0x56,0x61,0x6c,0x69,0x64])&&_0x1ec7bb(_0x49e7b7);},_0x123226);}):_0xd105ec||_0x3d15e1||_0x4b05a5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a4fbd(_0x47dfb8,_0x6087f6){return new window[(_0x4b05a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57e26a=>{if(_0xfaa1a7())return _0x57e26a(_0x4b05a5([0x56,0x61,0x6c,0x69,0x64]));_0x46d079(),_0x506594[_0x4b05a5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b05a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xcb5069=!0x1;const _0x1bda5b=_0x3abc27();function _0x1a8303(_0x1a2b59){return!!_0x1a2b59&&(typeof _0x1a2b59===_0x4b05a5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a2b59===_0x4b05a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a2b59[_0x4b05a5([0x74,0x68,0x65,0x6e])]===_0x4b05a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a2b59[_0x4b05a5([0x63,0x61,0x74,0x63,0x68])]===_0x4b05a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc3dbde(_0x57fb9b){_0x552b3e(_0x57fb9b)[_0x4b05a5([0x74,0x68,0x65,0x6e])](_0x5a2a50=>{if(!_0x5a2a50||_0x5a2a50[_0x4b05a5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b05a5([0x6f,0x6b]))return _0x4b05a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57d524(_0x11ca02(_0x1bda5b+_0x6087f6))!=_0x5a2a50[_0x4b05a5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b05a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b05a5([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b05a5([0x74,0x68,0x65,0x6e])](_0x2ef766=>(_0x53765a(),_0x2ef766),()=>{const _0x2fbc68=_0x314369();return null==_0x2fbc68?(_0x53765a(),_0x4b05a5([0x56,0x61,0x6c,0x69,0x64])):_0x4b05a5(_0x629471-_0x2fbc68>(0x7753083a^_0x3e19a5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b05a5([0x74,0x68,0x65,0x6e])](_0x57e26a)[_0x4b05a5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57e26a(_0x4b05a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6176fc=0x536962ba^_0x3e19a5;function _0x53765a(){const _0x3146eb=_0x4b05a5([0x6c,0x6c,0x63,0x74,0x2d])+_0x57d524(_0x11ca02(_0x47dfb8)),_0x1dbcf5=_0x386311(_0x57d524(window[_0x4b05a5([0x4d,0x61,0x74,0x68])][_0x4b05a5([0x63,0x65,0x69,0x6c])](_0x629471/_0x6176fc)));window[_0x4b05a5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b05a5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3146eb,_0x1dbcf5);}function _0x314369(){const _0x431723=_0x4b05a5([0x6c,0x6c,0x63,0x74,0x2d])+_0x57d524(_0x11ca02(_0x47dfb8)),_0x457b0e=window[_0x4b05a5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b05a5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x431723);return _0x457b0e?window[_0x4b05a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x386311(_0x457b0e),0x10)*_0x6176fc:null;}function _0x552b3e(_0x5821be){return new window[(_0x4b05a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15a187,_0x5eb74a)=>{_0x5821be[_0x4b05a5([0x74,0x68,0x65,0x6e])](_0x15a187,_0x5eb74a),window[_0x4b05a5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5eb74a,0x535e58fa^_0x3e19a5);});}}_0x506594[_0x4b05a5([0x6f,0x6e])](_0x4b05a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1dcd46,_0x48c440)=>{if(_0x48c440[0x0]!=_0x47dfb8)return _0x57e26a(_0x4b05a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x48c440[0x1]={..._0x48c440[0x1],[_0x4b05a5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1bda5b};},{[_0x4b05a5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b05a5([0x68,0x69,0x67,0x68])}),_0x506594[_0x4b05a5([0x6f,0x6e])](_0x4b05a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e7ae0=>{_0x1a8303(_0x5e7ae0[_0x4b05a5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xcb5069=!0x0,_0xc3dbde(_0x5e7ae0[_0x4b05a5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b05a5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b05a5([0x6c,0x6f,0x77])}),_0x35aae2[_0x4b05a5([0x74,0x68,0x65,0x6e])](()=>{_0xcb5069||_0x57e26a(_0x4b05a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xfaa1a7(){return _0x506594[_0x4b05a5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b05a5([0x76,0x69,0x65,0x77])][_0x4b05a5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b05a5([0x61,0x75,0x74,0x6f]);}function _0x46d079(){_0x506594[_0x4b05a5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b05a5([0x76,0x69,0x65,0x77])][_0x4b05a5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b05a5([0x61,0x75,0x74,0x6f]);}}function _0x376d87(_0x5456bc){const _0x30d6ff=[new window[(_0x4b05a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x502f73=>setTimeout(_0x502f73,0x5356b2f6^_0x3e19a5)),_0x35aae2[_0x4b05a5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b05a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x102d27=>{let _0xc4736d=0x0;_0x506594[_0x4b05a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b05a5([0x6f,0x6e])](_0x4b05a5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x13dfc3,_0x3b0205)=>{_0x3b0205[0x0][_0x4b05a5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc4736d++,_0xc4736d==(0x535f89d2^_0x3e19a5)&&(_0x102d27(),_0x13dfc3[_0x4b05a5([0x6f,0x66,0x66])]());});}))];return window[_0x4b05a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b05a5([0x72,0x61,0x63,0x65])](_0x30d6ff)[_0x4b05a5([0x74,0x68,0x65,0x6e])](()=>_0x5456bc);}async function _0x56832(){await _0x35aae2,_0x506594[_0x4b05a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b05a5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf0798c,_0x506594[_0x4b05a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b05a5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf0798c,_0x506594[_0x4b05a5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b05a5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d39d4(_0x3a5427){const _0x134e11=_0xb48f2d();_0x506594[_0x134e11]=_0x4b05a5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3a5427,_0x3a5427!=_0x4b05a5([0x56,0x61,0x6c,0x69,0x64])&&_0x56832();}function _0xb48f2d(){const _0x1c651e=window[_0x4b05a5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b05a5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b05a5([0x6e,0x6f,0x77])]())[_0x4b05a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b05a5([0x2e]),'');let _0x35b422=_0x4b05a5([0x68]);for(let _0xadbc63=0x0;_0xadbc63<_0x1c651e[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xadbc63+=0x2){let _0x254306=window[_0x4b05a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c651e[_0x4b05a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xadbc63,_0xadbc63+0x2));_0x254306>=_0x2ed96a[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x254306-=_0x2ed96a[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x35b422+=_0x2ed96a[_0x254306];}return _0x35b422;}function _0x49076e(){const _0x1fa613=_0x21719b[_0x4b05a5([0x73,0x70,0x6c,0x69,0x74])](_0x4b05a5([0x2e]));if(0x3!=_0x1fa613[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x424eda(_0x1fa613[0x1]);function _0x424eda(_0x44d2a2){const _0x591bb2=_0xcc8056(_0x44d2a2);return _0x591bb2&&_0xa900e4()?_0x591bb2:null;function _0xa900e4(){const _0x15e921=_0x591bb2[_0x4b05a5([0x6a,0x74,0x69])],_0x210eea=window[_0x4b05a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15e921[_0x4b05a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15e921[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f8089={..._0x591bb2,[_0x4b05a5([0x6a,0x74,0x69])]:_0x15e921[_0x4b05a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15e921[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f8089[_0x4b05a5([0x76,0x63])],_0x11ca02(_0x4f8089)==_0x210eea;}}}async function _0x144361(){let _0x51fa82=!0x0;try{const _0x3412ba=_0x21719b[_0x4b05a5([0x73,0x70,0x6c,0x69,0x74])](_0x4b05a5([0x2e])),[_0x14f938,_0x203149,_0x3a15d9]=_0x3412ba;return _0x4c1423(_0x14f938),await _0x282e84(_0x14f938,_0x203149,_0x3a15d9),_0x51fa82;}catch{return!0x1;}function _0x4c1423(_0x1c9c67){const _0x456339=_0xcc8056(_0x1c9c67);_0x456339&&_0x456339[_0x4b05a5([0x61,0x6c,0x67])]==_0x4b05a5([0x45,0x53,0x32,0x35,0x36])||(_0x51fa82=!0x1);}async function _0x282e84(_0x30a6c2,_0x2395ae,_0x12359b){const _0x53eb82=window[_0x4b05a5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b05a5([0x66,0x72,0x6f,0x6d])](_0x542be3(_0x12359b),_0x35b7f9=>_0x35b7f9[_0x4b05a5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1716c7=new window[(_0x4b05a5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b05a5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30a6c2+_0x4b05a5([0x2e])+_0x2395ae),_0x45490e=window[_0x4b05a5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b05a5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x45490e)return;const _0x1ecbfa=await _0x45490e[_0x4b05a5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b05a5([0x6a,0x77,0x6b]),_0x508076,{[_0x4b05a5([0x6e,0x61,0x6d,0x65])]:_0x4b05a5([0x45,0x43,0x44,0x53,0x41]),[_0x4b05a5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b05a5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b05a5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x45490e[_0x4b05a5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b05a5([0x6e,0x61,0x6d,0x65])]:_0x4b05a5([0x45,0x43,0x44,0x53,0x41]),[_0x4b05a5([0x68,0x61,0x73,0x68])]:{[_0x4b05a5([0x6e,0x61,0x6d,0x65])]:_0x4b05a5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ecbfa,_0x53eb82,_0x1716c7)||(_0x51fa82=!0x1);}}function _0xcc8056(_0x3d6b8a){return _0x3d6b8a[_0x4b05a5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b05a5([0x65,0x79]))?JSON[_0x4b05a5([0x70,0x61,0x72,0x73,0x65])](_0x542be3(_0x3d6b8a)):null;}function _0x542be3(_0x38975e){return window[_0x4b05a5([0x61,0x74,0x6f,0x62])](_0x38975e[_0x4b05a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b05a5([0x2b]))[_0x4b05a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b05a5([0x2f])));}function _0x11ca02(_0x3a24e4){let _0xed167f=0x1505;function _0x275bc0(_0x1360df){for(let _0x916902=0x0;_0x916902<_0x1360df[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x916902++){const _0x2f6505=_0x1360df[_0x4b05a5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x916902);_0xed167f=(_0xed167f<<0x5)+_0xed167f+_0x2f6505,_0xed167f&=_0xed167f;}}function _0x229953(_0x4eaa0b){Array[_0x4b05a5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4eaa0b)?_0x4eaa0b[_0x4b05a5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x229953):_0x4eaa0b&&typeof _0x4eaa0b==_0x4b05a5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b05a5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4eaa0b)[_0x4b05a5([0x73,0x6f,0x72,0x74])]()[_0x4b05a5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5494b9,_0x33c481])=>{_0x275bc0(_0x5494b9),_0x229953(_0x33c481);}):_0x275bc0(window[_0x4b05a5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4eaa0b));}return _0x229953(_0x3a24e4),_0xed167f>>>0x0;}function _0x57d524(_0x4bb2d1){return _0x4bb2d1[_0x4b05a5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b05a5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b05a5([0x30]));}function _0x386311(_0x4080fc){return _0x4080fc[_0x4b05a5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b05a5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b05a5([0x6a,0x6f,0x69,0x6e])]('');}function _0xf0798c(){}function _0x4b05a5(_0x22dde8){return _0x22dde8['map'](_0xe18f4d=>String['fromCharCode'](_0xe18f4d))['join']('');}_0x3d39d4(await _0x4936a3());}(this);}['_initSchema'](){const _0x210ac3=this['editor']['model']['schema'];_0x210ac3['isRegistered']('imageBlock')&&_0x210ac3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x210ac3['isRegistered']('imageInline')&&_0x210ac3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x37e3fb=this['editor'];_0x37e3fb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x37e3fb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3c4a97=>_0x3c4a97['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x542034=_0x37e3fb['commands']['get']('replaceImageSource');_0x542034&&this['listenTo'](_0x542034,'cleanupImage',(_0x3dcc66,[_0x5e8ec4,_0x5159aa])=>{_0x5e8ec4['removeAttribute']('uploadcareImageId',_0x5159aa);});}['_initConfig'](){const _0x213495=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5ccb49=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3f19e5(_0x394f5b['document'],'uc-config',{..._0x213495,'pubkey':_0x5ccb49,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x33dc4c=>{if('closeMax'==_0x33dc4c)return'#uc-icon-arrow-down';},_0x394f5b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3f19e5(_0x394f5b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x394f5b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x32d12b=this['editor']['commands']['get']('insertImage');_0x32d12b&&this['listenTo'](_0x32d12b,'execute',()=>{const _0x366b40=this['editor']['model']['document']['selection']['getSelectedElement']();_0x366b40&&_0x366b40['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x366b40);});});const _0x268522=this['editor']['commands']['get']('uploadcareImageReplace');_0x268522&&this['listenTo'](_0x268522,'execute',()=>{const _0x5501fe=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5501fe&&_0x5501fe['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5501fe);});});}}class Uploadcare extends _0x2b6d11{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36d9e4){super(_0x36d9e4),_0x36d9e4['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x52a05b['defineComponents'](_0x52a05b),this['_defineLocale']();}['_defineLocale'](){const _0x4c5728=this['editor']['config']['get']('uploadcare.locale'),_0x1ee071=this['editor']['locale']['contentLanguage'];_0x4c5728&&_0x52a05b['defineLocale'](_0x1ee071,_0x4c5728);}}class ii extends _0x50800c{constructor(_0x20a1a4){super(_0x20a1a4);const t=_0x20a1a4['t'],_0x4b89b7=this['bindTemplate'],_0x392244=new _0x54e807();_0x392244['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':[_0x392244,{'text':_0x4b89b7['to']('imageUploadProgress',_0x4d938d=>t('Loading\x20image...')+'\x20('+(_0x4d938d||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x50800c{constructor(_0x25f7f0){super(_0x25f7f0);const t=_0x25f7f0['t'];this['set']('errorType',null);const _0x2fc755=new _0x15678c(_0x25f7f0);_0x2fc755['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2fc755['withText']=!0x0,_0x2fc755['class']='ck-button-action',_0x2fc755['on']('execute',()=>{this['fire']('retry');}),_0x2fc755['bind']('isVisible')['to'](this,'errorType',_0x1c96bb=>'NotFound'!==_0x1c96bb);const _0x243d80=new _0x50678c();_0x243d80['content']=_0x31d45f,_0x243d80['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x17515b=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':[_0x243d80,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x17515b['to']('errorType',_0x2fcc09=>t('NotFound'!==_0x2fcc09?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2fc755]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x50800c{constructor(_0x1546bc,_0x4f2ec9){super(_0x1546bc);const _0x1efaec=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4f2ec9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1efaec['to']('imageSrc')}});}}class W extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5b6631,_0x4e74a2,_0x3ff20b){super(_0x5b6631),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5b6631),this['_errorView']=new ti(_0x5b6631),this['_editingView']=new ei(_0x5b6631,_0x3ff20b),this['_focusableView']=new _0x50800c(_0x5b6631),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4e74a2),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'],_0x5a8048=>{this['_addUploadcareImageEditorListeners'](_0x5a8048);});}),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'](_0x23939f,_0x16c327){const _0x11ffe0='uc-cloud-image-editor',_0x1aa428=_0x23939f['querySelector'](_0x11ffe0);if(_0x1aa428)return _0x16c327(_0x1aa428);const _0x12e8bc=new MutationObserver(_0x541e65=>{const _0x53c7c7=_0x541e65['filter'](_0x5519f5=>_0x5519f5['target']===_0x23939f&&_0x5519f5['addedNodes']['length']>0x0&&_0x5519f5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x11ffe0);_0x53c7c7['length']&&(_0x12e8bc['disconnect'](),_0x16c327(_0x53c7c7[0x0]['addedNodes'][0x0]));});_0x12e8bc['observe'](_0x23939f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x34f99a){_0x34f99a['addEventListener']('apply',_0x32f520=>{this['fire']('apply',{'imageSrc':_0x32f520['detail']['cdnUrl']});}),_0x34f99a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x9bf5c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x24a485,_0x3aa9b7,_0x3d597a){super(),this['_editor']=_0x24a485,this['_dialog']=_0x3aa9b7,this['_imageElement']=_0x3d597a,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 _0x1254f8=this['_imageElement'],_0x4634d9=_0x1254f8['getAttribute']('uploadcareImageId'),_0x247c22=_0x1254f8['getAttribute']('src');if(_0x4634d9)await this['_loadImageInfo'](_0x4634d9,_0x247c22);else{if(this['_imageCache']['has'](_0x247c22)){const _0xfc2566=this['_imageCache']['get'](_0x247c22);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xfc2566['url'],this['imageDimension']=_0xfc2566['dimension'],this['imageId']=_0xfc2566['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x348668}=this['_editor'],t=_0x348668['t'],_0x2bf143=new W(_0x348668,this['imageStatus'],this['_attributes']);_0x2bf143['bind']('status')['to'](this,'imageStatus'),_0x2bf143['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2bf143['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2bf143['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2bf143,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4fd8fc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2bf143,'position':_0x51ef26['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2bf143['focus']();},'onHide':()=>{_0x2bf143['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4cd9bd=>!C(_0x4cd9bd,_0x2bf143['element'])}});}['_loadImageInfo'](_0x508f1a,_0x564a65){return j['getInfo'](_0x508f1a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x309e4e=>{const {width:_0x15b686,height:_0x520104}=_0x309e4e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x564a65,this['imageDimension']={'width':_0x15b686,'height':_0x520104},this['imageId']=_0x508f1a;})['catch'](_0x1497e1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1497e1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x89552b,_0x2a60f1){return this['_getImageAsFile'](_0x89552b)['then'](_0x2dc8a4=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2a60f1['signal'],'file':_0x2dc8a4,'onProgress':_0x52d88e=>{_0x52d88e&&_0x52d88e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x52d88e['value']));}}))['then'](_0x23586a=>{const {width:_0x161de7,height:_0x40d4ad}=_0x23586a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x23586a['cdnUrl'],this['imageDimension']={'width':_0x161de7,'height':_0x40d4ad},this['imageId']=_0x23586a['uuid'],this['imageUploadProgress']=null;const _0xf58cea=_0x89552b['getAttribute']('src');this['_imageCache']['set'](_0xf58cea,{'id':_0x23586a['uuid'],'url':_0x23586a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x34c355=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x34c355['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x391ddb,_0x36d347){_0x391ddb['on']('apply',(_0x473daa,_0x340c90)=>{this['_replaceImage'](_0x36d347,_0x340c90['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x391ddb['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x391ddb['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5b79f5,_0x81a12b,_0x46ef73){const _0x2ae127=this['_editor'],{width:_0x56827e,height:_0x396136}=x(_0x81a12b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x19b989,imageSources:_0x264a9f}=A(_0x81a12b,_0x56827e);_0x2ae127['model']['change'](_0x10122f=>{if('$graveyard'===_0x5b79f5['root']['rootName']){_0x2ae127['execute']('insertImage',{'imageType':_0x5b79f5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5b79f5['getAttributes']()),'uploadcareImageId':_0x46ef73,'src':_0x19b989,'sources':_0x264a9f,'width':_0x56827e,'height':_0x396136}});const _0x37ee69=_0x5b79f5['getChildren']();_0x5b79f5=_0x2ae127['model']['document']['selection']['getSelectedElement']();for(const _0x28f9e5 of _0x37ee69)_0x10122f['append'](_0x10122f['cloneElement'](_0x28f9e5),_0x5b79f5);}else _0x10122f['setSelection'](_0x5b79f5,'on'),_0x2ae127['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5b79f5['getAttributes']()),'uploadcareImageId':_0x46ef73,'src':_0x19b989,'sources':_0x264a9f,'width':_0x56827e,'height':_0x396136},_0x5b79f5);_0x10122f['setSelection'](_0x5b79f5,'on');});}async['_getImageAsFile'](_0x4ab4fb){const _0x623a19=_0x394f5b['window'],_0x502183=_0x394f5b['document']['location']['href'],_0x157295=new _0x623a19['URL'](_0x4ab4fb['getAttribute']('src'),_0x502183);if('data:'===_0x157295['protocol']){const _0x59ab3c=_0x157295['href']['split'](','),_0x32eccd=_0x59ab3c[0x0]['match'](/:(.*?);/)[0x1],_0xaf42f2=_0x32eccd['split']('/')[0x1],_0x447abe=_0x623a19['atob'](_0x59ab3c[_0x59ab3c['length']-0x1]);let _0x1bff09=_0x447abe['length'];const _0x2d40aa=new _0x623a19['Uint8Array'](_0x1bff09);for(;_0x1bff09--;)_0x2d40aa[_0x1bff09]=_0x447abe['charCodeAt'](_0x1bff09);return new _0x623a19['File']([_0x2d40aa],'image.'+_0xaf42f2,{'type':_0x32eccd});}const _0x117168=_0x157295['href']['split']('/'),_0x11292c=_0x117168[_0x117168['length']-0x1],_0xa614e1=_0x11292c['split']('.')[0x1];return _0x623a19['fetch'](_0x157295['href'])['then'](_0x460924=>_0x460924['clone']()['blob']())['then'](_0x1601d5=>new _0x623a19['File']([_0x1601d5],_0x11292c,{'type':'image/'+_0xa614e1}));}}class Q extends _0x59176d{['imageEditController'];static get['requires'](){return[_0x39fefa];}['_isEditable'];constructor(_0x2e27c6){super(_0x2e27c6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x961c65){const _0x3532dc=z(_0x961c65);return _0x3cccae=>!(!_0x3cccae||!_0x3cccae['is']('element','imageBlock')&&!_0x3cccae['is']('element','imageInline'))&&(!!_0x3cccae['hasAttribute']('uploadcareImageId')||!!_0x3cccae['hasAttribute']('src')&&_0x3532dc(_0x3cccae['getAttribute']('src')));}(_0x2e27c6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2e63c1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2e63c1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x50e854=this['editor']['model']['document']['selection']['getSelectedElement']();_0x50e854&&(_0x50e854['is']('element','imageBlock')||_0x50e854['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x39fefa),_0x50e854),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class S extends _0x59176d{['refresh'](){const _0x38de0f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x38de0f&&(_0x38de0f['is']('element','imageBlock')||_0x38de0f['is']('element','imageInline')));}['execute'](_0x3f7bc8){const _0x31e910=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x179771=>{_0x179771['setAttributes'](_0x3f7bc8,_0x31e910),_0x179771['removeAttribute']('srcset',_0x31e910),_0x179771['removeAttribute']('sizes',_0x31e910);});}}class m extends _0x2b6d11{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x16110d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5bbffa}=this;_0x5bbffa['commands']['add']('uploadcareImageEdit',new Q(_0x5bbffa)),_0x5bbffa['commands']['add']('uploadcareImageReplace',new S(_0x5bbffa));}}class g extends _0x2b6d11{['_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 _0x2d4782=this['editor'];_0x2d4782['ui']['componentFactory']['add']('uploadcareImageEdit',_0x134a0a=>{const _0x1f7b21=_0x2d4782['commands']['get']('uploadcareImageEdit'),_0x4636fc=new _0x15678c(_0x134a0a),t=_0x134a0a['t'];return _0x4636fc['set']({'icon':_0x4fd8fc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4636fc['bind']('isEnabled')['to'](_0x1f7b21),_0x4636fc['bind']('isOn')['to'](_0x1f7b21,'isActive'),this['listenTo'](_0x4636fc,'execute',()=>{_0x2d4782['execute']('uploadcareImageEdit'),_0x2d4782['editing']['view']['focus']();}),_0x4636fc;}),this['_initConfig']();}['_initConfig'](){const _0x3c6ae9=_0x3f19e5(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3c6ae9),this['listenTo'](this['editor'],'destroy',()=>{_0x3c6ae9['remove']();});}}class UploadcareImageEdit extends _0x2b6d11{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Uploadcare,w as UploadcareCommand,o as UploadcareEditing,UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x581a5d,Command as _0x14f725}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3faa2c,IconGooglePhotos as _0x18085e,IconGoogleDrive as _0x3d780b,IconFacebook as _0x593b9a,IconDropbox as _0x3f94bb,IconUploadcareLink as _0x702413,IconUploadcareImageUpload as _0x292296,IconError as _0x465b78,IconUploadcareImageEdit as _0x427a15}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x30272f,MenuBarMenuListItemButtonView as _0x429c8d,View as _0x32a9de,FocusCycler as _0xbd692a,Dialog as _0x2ca110,DialogViewPosition as _0x4e8eb3,SpinnerView as _0x2c9bff,IconView as _0x1dc329,Notification as _0x39d957}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5a6c83,DomEmitterMixin as _0x2acafd,global as _0x40a4a3,getAncestors as _0x2e4de4,ObservableMixin as _0x47cc5f,uid as _0x28c615,createElement as _0x11375e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x19bd6d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5992d3,info as _0x12cb07}from'@uploadcare/upload-client';import*as _0x240842 from'@uploadcare/file-uploader';var i=function(_0x52f1bd){return _0x52f1bd['Local']='local',_0x52f1bd['URL']='url',_0x52f1bd['Dropbox']='dropbox',_0x52f1bd['GDrive']='gdrive',_0x52f1bd['Facebook']='facebook',_0x52f1bd['GPhotos']='gphotos',_0x52f1bd['OneDrive']='onedrive',_0x52f1bd;}({});function _(_0x33bbcb,_0x5f2c98,_0xfb70b7){const t=_0x33bbcb['t'],_0x1dce96=_0x33bbcb['t'];switch(_0x5f2c98){case i['Local']:return{'text':_0x1dce96('Insert'===_0xfb70b7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1dce96('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xfb70b7?_0x1dce96('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1dce96('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xfb70b7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xfb70b7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xfb70b7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xfb70b7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xfb70b7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5f2c98;}}class e extends _0x581a5d{['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 _0x13db5b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x33485a;for(const _0x1f29a9 in _0x13db5b){const _0x2aae36=_0x1f29a9,_0x1117a3=_0x13db5b[_0x2aae36];if('uploadcareLicenseKeyValid'==_0x1117a3||'uploadcareLicenseKeyInvalid'==_0x1117a3||'uploadcareLicenseKeyExpired'==_0x1117a3||'uploadcareLicenseKeyDomainLimit'==_0x1117a3||'uploadcareLicenseKeyNotAllowed'==_0x1117a3||'uploadcareLicenseKeyEvaluationLimit'==_0x1117a3||'uploadcareLicenseKeyUsageLimit'==_0x1117a3){delete _0x13db5b[_0x2aae36],_0x33485a=_0x1117a3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x33485a&&_0x13db5b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x33485a&&_0x13db5b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x33485a&&_0x13db5b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x33485a&&_0x13db5b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x33485a&&_0x13db5b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x33485a&&_0x13db5b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x11b6a6}=this,_0x5f0d14=_0x11b6a6['commands']['get']('uploadcare');if(!_0x5f0d14)return;const _0x3d6d5f=this['_normalizeConfigSourceList'](_0x11b6a6['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4dc367,_0x4170a9)=>{const _0x397d09=this['_getIntegrationKey'](_0x4170a9['type']);return _0x4dc367[_0x397d09]||(_0x4dc367[_0x397d09]=[]),_0x4dc367[_0x397d09]['push'](_0x4170a9),_0x4dc367;},{});_0x11b6a6['plugins']['has']('ImageInsertUI')&&_0x11b6a6['commands']['get']('uploadcare')&&Object['entries'](_0x3d6d5f)['forEach'](([_0x32439f,_0x3d3278])=>{_0x11b6a6['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x32439f,'observable':()=>_0x5f0d14,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3d3278),'formViewCreator':()=>this['_createDropdownButtons'](_0x3d3278),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3d3278),'override':'assetManager'!==_0x32439f});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2c8822){const {locale:_0x1db3d8}=this['editor'];return _0x2c8822['map'](_0x17120b=>{const _0x4260fc=_(_0x1db3d8,_0x17120b,'Insert');switch(_0x17120b){case i['Local']:return{'icon':_0x292296,'type':i['Local'],..._0x4260fc};case i['URL']:return{'icon':_0x702413,'type':i['URL'],..._0x4260fc};case i['Dropbox']:return{'icon':_0x3f94bb,'type':i['Dropbox'],..._0x4260fc};case i['Facebook']:return{'icon':_0x593b9a,'type':i['Facebook'],..._0x4260fc};case i['GDrive']:return{'icon':_0x3d780b,'type':i['GDrive'],..._0x4260fc};case i['GPhotos']:return{'icon':_0x18085e,'type':i['GPhotos'],..._0x4260fc};case i['OneDrive']:return{'icon':_0x3faa2c,'type':i['OneDrive'],..._0x4260fc};}});}['_getIntegrationKey'](_0xda77a0){switch(_0xda77a0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4b7e3c,_0x3fcb12){const _0x49bbbc=this['editor'],_0x5c0c45=new _0x4b7e3c(_0x49bbbc['locale']),_0x487e8a=_0x49bbbc['commands']['get']('uploadcare');return _0x5c0c45['bind']('isEnabled')['to'](_0x487e8a),_0x5c0c45['on']('execute',()=>{_0x487e8a['execute'](_0x3fcb12);}),_0x5c0c45;}['_createToolbarButton'](_0x132da1){const {locale:_0x33bded}=this['editor'],_0x4dafb5=this['editor']['plugins']['get']('ImageInsertUI'),_0x36c186=_0x132da1[0x0],_0x5bc992=this['_createButton'](_0x30272f,_0x36c186['type']);return _0x5bc992['icon']=_0x36c186['icon'],_0x5bc992['bind']('label')['to'](_0x4dafb5,'isImageSelected',_0x30a064=>_(_0x33bded,_0x36c186['type'],_0x30a064?'Replace':'Insert')['text']),_0x5bc992['tooltip']=!0x0,_0x5bc992;}['_createDropdownButtons'](_0x3461af){const {locale:_0x3f8c53}=this['editor'],_0x47dab3=this['editor']['plugins']['get']('ImageInsertUI');return _0x3461af['map'](_0x62873a=>{const _0x2e192e=this['_createButton'](_0x30272f,_0x62873a['type']);return _0x2e192e['withText']=!0x0,_0x2e192e['icon']=_0x62873a['icon'],_0x2e192e['bind']('label')['to'](_0x47dab3,'isImageSelected',_0x4ae95e=>_(_0x3f8c53,_0x62873a['type'],_0x4ae95e?'Replace':'Insert')['text']),_0x2e192e;});}['_createMenuBarButtons'](_0x341391){return _0x341391['map'](_0x40ce0c=>{const _0x706be=this['_createButton'](_0x429c8d,_0x40ce0c['type']);return _0x706be['icon']=_0x40ce0c['icon'],_0x706be['label']=_0x40ce0c['shortText'],_0x706be;});}}class F extends _0x32a9de{['focusTracker'];['focusCycler'];constructor(_0x3e58c3){super(_0x3e58c3),this['focusTracker']=new _0x5a6c83(),this['focusCycler']=new _0xbd692a({'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 H extends F{constructor(_0x20e882,_0x2a6fb1){super(_0x20e882),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-'+_0x2a6fb1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function A(_0x5b2f72,_0x2417d9){const _0x37d1e0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x87da43=>_0x87da43<=_0x2417d9)['map'](_0x4291c5=>_0x5b2f72['replace'](/\/$/,'')+'/-/resize/'+_0x4291c5+'x/\x20'+_0x4291c5+'w');return{'imageFallbackUrl':_0x5b2f72,'imageSources':[{'srcset':_0x37d1e0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2417d9+'px)\x20100vw,\x20'+_0x2417d9+'px','type':'image/webp'}]};}function x(_0x8ab531,_0x5140df,_0x189377){const _0x5480fa=_0x8ab531['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5480fa?parseInt(_0x5480fa[0x1],0xa):_0x5140df,'height':_0x5480fa?parseInt(_0x5480fa[0x2],0xa):_0x189377};}function p(_0x2fd12b,_0x366b95){const _0x151a97=new(_0x2acafd())(),_0x354cc7=_0x2fd12b['plugins']['get']('ImageUtils'),_0x465f2c=_0x2fd12b['editing']['mapper']['toViewElement'](_0x366b95),_0x248ad0=_0x354cc7['findViewImgElement'](_0x465f2c),_0x12942c=_0x2fd12b['editing']['view']['domConverter']['viewToDom'](_0x248ad0),_0x4455ca=_0x366b95['getAttribute']('width'),_0x3c868d=_0x366b95['getAttribute']('height'),_0x35d6e8='image-processing';_0x2fd12b['editing']['view']['change'](_0x4acd22=>{_0x4acd22['addClass'](_0x35d6e8,_0x465f2c),_0x4acd22['setStyle']('aspect-ratio',_0x4455ca+'/'+_0x3c868d,_0x248ad0);}),_0x151a97['listenTo'](_0x12942c,'load',()=>{_0x151a97['stopListening'](_0x12942c,'load'),_0x2fd12b['editing']['view']['change'](_0x2de3b3=>{_0x2de3b3['removeClass'](_0x35d6e8,_0x465f2c),_0x2de3b3['removeStyle']('aspect-ratio',_0x248ad0);});});}function S(_0x550849){if(Array['isArray'](_0x550849)){const _0x24e846=_0x550849['map'](S);return _0x13eab5=>_0x24e846['some'](_0x303ba1=>_0x303ba1(_0x13eab5));}if('origin'==_0x550849){const _0x1de9ad=_0x40a4a3['window']['location']['origin'];return _0x484b6e=>new URL(_0x484b6e,_0x40a4a3['document']['baseURI'])['origin']==_0x1de9ad;}return'function'==typeof _0x550849?_0x550849:_0x550849 instanceof RegExp?_0x41c297=>!(!_0x41c297['match'](_0x550849)&&!_0x41c297['replace'](/^https?:\/\//,'')['match'](_0x550849)):()=>!0x1;}function C(_0x3cdc87,_0x7a551c){return _0x2e4de4(_0x3cdc87['target'])['includes'](_0x7a551c);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x47cc5f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x12e9d7,_0x46b445,_0x26496a){super(),this['_editor']=_0x12e9d7,this['_editing']=_0x46b445,this['_dialog']=_0x12e9d7['plugins']['get'](_0x2ca110),this['_api']=_0x46b445['ctxElement']['getAPI'](),this['_type']=_0x26496a,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:_0x455e8e,model:_0x4554d8}=this['_editor'],_0x1233cf=_0x4554d8['document']['selection']['getSelectedElement'](),_0x44406d=_0x1233cf&&(_0x1233cf['is']('element','imageBlock')||_0x1233cf['is']('element','imageInline'));this['_formView']=new H(_0x455e8e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x292296,'title':_(_0x455e8e,this['_type'],_0x44406d?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4e8eb3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e694a=>!C(_0x1e694a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x17cec6}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x39d38a=>{const _0x442072=_0x17cec6['length'];for(const _0x454607 of _0x17cec6){const _0x1dc685=_0x454607===_0x17cec6[_0x442072-0x1],{cdnUrl:_0x5ac94e,fileInfo:_0x401a3b}=_0x454607;if(!_0x5ac94e||!_0x401a3b)continue;const {width:_0x403611,height:_0x3421ad}=_0x401a3b['imageInfo'],_0x31ebac=x(_0x5ac94e,_0x403611,_0x3421ad),_0x417e3d=A(_0x5ac94e,_0x31ebac['width']),_0x3186c0={'id':_0x401a3b['uuid'],'type':'image','attributes':{'imageDimension':_0x31ebac,..._0x417e3d}};this['_insertAsset'](_0x3186c0,_0x1dc685,_0x39d38a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4c90d8=>{'idle'===_0x4c90d8['detail']['status']&&!_0x4c90d8['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3b2a40,_0x57987b,_0x51b650){const _0x552549=this['_editor']['model']['document']['selection'],_0x287796=_0x552549['getSelectedElement'](),_0x3a075c=!(!_0x287796||!_0x287796['is']('element','imageInline'));_0x51b650['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3b2a40,_0x3a075c),_0x57987b||_0x51b650['setSelection'](_0x552549['getLastPosition']());}['_insertImage'](_0x2cb0f3,_0x1de333){const _0x44563d=this['_editor'],{imageDimension:_0x4dc1a2,imageFallbackUrl:_0x421e8f,imageSources:_0x98ae86}=_0x2cb0f3['attributes'];_0x44563d['execute']('insertImage',{'imageType':_0x1de333?'imageInline':null,'source':{'uploadcareImageId':_0x2cb0f3['id'],'src':_0x421e8f,'sources':_0x98ae86,..._0x4dc1a2}});}}class w extends _0x14f725{['_editing'];['_controller']=null;static get['requires'](){return[_0x2ca110,o];}constructor(_0x134fad){super(_0x134fad),this['_editing']=_0x134fad['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x593cc5){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x593cc5);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1958f6,..._0x34ff48}){return _0x5992d3(_0x1958f6,_0x34ff48);}static['getInfo'](_0x3ea039,_0x123ae6){return _0x12cb07(_0x3ea039,_0x123ae6);}}class f extends _0x581a5d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x19bd6d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x859cd9=this['editor'];if(!!!_0x859cd9['config']['get']('uploadcare'))return;_0x859cd9['plugins']['get'](_0x19bd6d)['createUploadAdapter']=_0x2351e9=>new Adapter(_0x2351e9,_0x859cd9),_0x859cd9['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x499f84,{imageElement:_0xb73671,data:_0x495e6f})=>{_0x859cd9['model']['change'](_0x21c3c6=>{_0x21c3c6['setAttribute']('uploadcareImageId',_0x495e6f['uploadcareImageId'],_0xb73671);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x1b64e6,_0x46a9d2){this['loader']=_0x1b64e6,this['editor']=_0x46a9d2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x47e560=await this['loader']['file'];return j['upload']({'file':_0x47e560,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x57d3b5=>{_0x57d3b5&&_0x57d3b5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x57d3b5['value']);}})['then'](async _0x54a00c=>{const {imageFallbackUrl:_0x3f7b2d,imageSources:_0xbe02e3}=A(_0x54a00c['cdnUrl'],_0x54a00c['imageInfo']['width']);return{'uploadcareImageId':_0x54a00c['uuid'],'default':_0x3f7b2d,'sources':_0xbe02e3};})['catch'](()=>{const _0x593093=t('Cannot\x20upload\x20file:')+('\x20'+_0x47e560['name']+'.');return Promise['reject'](_0x593093);});}['abort'](){this['controller']['abort']();}}class o extends _0x581a5d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2ca110];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x347d6d){super(_0x347d6d),this['ucContextId']=_0x28c615();}['init'](){const _0x54865b=this['editor'];_0x54865b['commands']['add']('uploadcare',new w(_0x54865b));}['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 _0x570b11=_0x40a4a3['document']['querySelector']('input[uploadcare-file-input]');_0x570b11&&_0x570b11['remove']();}),async function(_0x19cc22){const _0x3e31f7=_0x2ec5e8([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x463afb=0x535f8c3a,_0x3b5f70=0x535819ca^_0x463afb,_0x4f2229=window[_0x2ec5e8([0x44,0x61,0x74,0x65])][_0x2ec5e8([0x6e,0x6f,0x77])](),_0x1aee7c=_0x19cc22[_0x2ec5e8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc68edb=new window[(_0x2ec5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47e264=>{_0x1aee7c[_0x2ec5e8([0x6f,0x6e,0x63,0x65])](_0x2ec5e8([0x72,0x65,0x61,0x64,0x79]),_0x47e264);}),_0x4e054d={[_0x2ec5e8([0x6b,0x74,0x79])]:_0x2ec5e8([0x45,0x43]),[_0x2ec5e8([0x75,0x73,0x65])]:_0x2ec5e8([0x73,0x69,0x67]),[_0x2ec5e8([0x63,0x72,0x76])]:_0x2ec5e8([0x50,0x2d,0x32,0x35,0x36]),[_0x2ec5e8([0x78])]:_0x2ec5e8([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]),[_0x2ec5e8([0x79])]:_0x2ec5e8([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]),[_0x2ec5e8([0x61,0x6c,0x67])]:_0x2ec5e8([0x45,0x53,0x32,0x35,0x36])},_0x42f018=_0x1aee7c[_0x2ec5e8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ec5e8([0x67,0x65,0x74])](_0x2ec5e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7cc552(){let _0x29c558,_0x490ec3=null,_0x81d056=null;try{if(_0x42f018==_0x2ec5e8([0x47,0x50,0x4c]))return _0x2ec5e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29c558=_0x217f0b(),!_0x29c558)return _0x2ec5e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x29c558[_0x2ec5e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x81d056=_0x19484c(_0x29c558[_0x2ec5e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29c558[_0x2ec5e8([0x6a,0x74,0x69])])),await _0x318fc5()?_0x596810()?_0x2a9326()?_0x2ec5e8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55a609()?(_0x29c558[_0x2ec5e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ec5e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x490ec3=_0x119508(_0x2ec5e8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2fbe16()):_0x2ec5e8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ec5e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ec5e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2ec5e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a9326(){const _0x2fc7c6=[_0x2ec5e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ec5e8([0x74,0x72,0x69,0x61,0x6c])][_0x2ec5e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29c558[_0x2ec5e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4f2229/0x3e8:0xe10*_0x3b5f70;return _0x29c558[_0x2ec5e8([0x65,0x78,0x70])]<_0x2fc7c6;}function _0x596810(){const _0x5f5b77=_0x29c558[_0x2ec5e8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5f5b77&&(!!_0x5f5b77[_0x2ec5e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ec5e8([0x2a]))||!!_0x5f5b77[_0x2ec5e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ec5e8([0x55,0x50,0x4c,0x43])));}function _0x55a609(){const _0x32693a=_0x29c558[_0x2ec5e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32693a||0x0==_0x32693a[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59ec5d}=new URL(window[_0x2ec5e8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32693a[_0x2ec5e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59ec5d))return!0x0;const _0x534f79=_0x59ec5d[_0x2ec5e8([0x73,0x70,0x6c,0x69,0x74])](_0x2ec5e8([0x2e]));return _0x32693a[_0x2ec5e8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5936fa=>_0x5936fa[_0x2ec5e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ec5e8([0x2a])))[_0x2ec5e8([0x6d,0x61,0x70])](_0x147071=>_0x147071[_0x2ec5e8([0x73,0x70,0x6c,0x69,0x74])](_0x2ec5e8([0x2e])))[_0x2ec5e8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x508397=>_0x508397[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x534f79[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ec5e8([0x6d,0x61,0x70])](_0x11b983=>Array(_0x534f79[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11b983[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ec5e8([0x66,0x69,0x6c,0x6c])](_0x11b983[0x0]===_0x2ec5e8([0x2a])?_0x2ec5e8([0x2a]):'')[_0x2ec5e8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11b983))[_0x2ec5e8([0x73,0x6f,0x6d,0x65])](_0x1b264c=>_0x534f79[_0x2ec5e8([0x65,0x76,0x65,0x72,0x79])]((_0x4c65c2,_0xe4642e)=>_0x1b264c[_0xe4642e]===_0x4c65c2||_0x1b264c[_0xe4642e]===_0x2ec5e8([0x2a])));}function _0x2fbe16(){return _0x490ec3&&_0x81d056?new window[(_0x2ec5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a6399,_0x3e96ab)=>{_0x490ec3[_0x2ec5e8([0x74,0x68,0x65,0x6e])](_0x2a6399,_0x3e96ab),_0x81d056[_0x2ec5e8([0x74,0x68,0x65,0x6e])](_0x4030bc=>{_0x4030bc!=_0x2ec5e8([0x56,0x61,0x6c,0x69,0x64])&&_0x2a6399(_0x4030bc);},_0x3e96ab);}):_0x490ec3||_0x81d056||_0x2ec5e8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19484c(_0x22e385,_0x548ba0){return new window[(_0x2ec5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x260abd=>{if(_0x2260b5())return _0x260abd(_0x2ec5e8([0x56,0x61,0x6c,0x69,0x64]));_0x18e775(),_0x1aee7c[_0x2ec5e8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ec5e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4e37ff=!0x1;const _0x35a190=_0x28c615();function _0x373eaf(_0x45f3cc){return!!_0x45f3cc&&(typeof _0x45f3cc===_0x2ec5e8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45f3cc===_0x2ec5e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45f3cc[_0x2ec5e8([0x74,0x68,0x65,0x6e])]===_0x2ec5e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45f3cc[_0x2ec5e8([0x63,0x61,0x74,0x63,0x68])]===_0x2ec5e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f418b(_0x1ebdee){_0x2b65a8(_0x1ebdee)[_0x2ec5e8([0x74,0x68,0x65,0x6e])](_0xfbbbc5=>{if(!_0xfbbbc5||_0xfbbbc5[_0x2ec5e8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ec5e8([0x6f,0x6b]))return _0x2ec5e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x168a0c(_0x75e246(_0x35a190+_0x548ba0))!=_0xfbbbc5[_0x2ec5e8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ec5e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ec5e8([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ec5e8([0x74,0x68,0x65,0x6e])](_0xd81f85=>(_0x3370fb(),_0xd81f85),()=>{const _0x301b49=_0x237a85();return null==_0x301b49?(_0x3370fb(),_0x2ec5e8([0x56,0x61,0x6c,0x69,0x64])):_0x2ec5e8(_0x4f2229-_0x301b49>(0x7753083a^_0x463afb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ec5e8([0x74,0x68,0x65,0x6e])](_0x260abd)[_0x2ec5e8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x260abd(_0x2ec5e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5291c2=0x536962ba^_0x463afb;function _0x3370fb(){const _0x48ebef=_0x2ec5e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x168a0c(_0x75e246(_0x22e385)),_0x278236=_0x1623e8(_0x168a0c(window[_0x2ec5e8([0x4d,0x61,0x74,0x68])][_0x2ec5e8([0x63,0x65,0x69,0x6c])](_0x4f2229/_0x5291c2)));window[_0x2ec5e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ec5e8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48ebef,_0x278236);}function _0x237a85(){const _0x1c17a5=_0x2ec5e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x168a0c(_0x75e246(_0x22e385)),_0x201bb1=window[_0x2ec5e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ec5e8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c17a5);return _0x201bb1?window[_0x2ec5e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1623e8(_0x201bb1),0x10)*_0x5291c2:null;}function _0x2b65a8(_0x473a60){return new window[(_0x2ec5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33fa6b,_0x33d73c)=>{_0x473a60[_0x2ec5e8([0x74,0x68,0x65,0x6e])](_0x33fa6b,_0x33d73c),window[_0x2ec5e8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33d73c,0x535e58fa^_0x463afb);});}}_0x1aee7c[_0x2ec5e8([0x6f,0x6e])](_0x2ec5e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x551294,_0x4dbb9a)=>{if(_0x4dbb9a[0x0]!=_0x22e385)return _0x260abd(_0x2ec5e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4dbb9a[0x1]={..._0x4dbb9a[0x1],[_0x2ec5e8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35a190};},{[_0x2ec5e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ec5e8([0x68,0x69,0x67,0x68])}),_0x1aee7c[_0x2ec5e8([0x6f,0x6e])](_0x2ec5e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27ad71=>{_0x373eaf(_0x27ad71[_0x2ec5e8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4e37ff=!0x0,_0x2f418b(_0x27ad71[_0x2ec5e8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ec5e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ec5e8([0x6c,0x6f,0x77])}),_0xc68edb[_0x2ec5e8([0x74,0x68,0x65,0x6e])](()=>{_0x4e37ff||_0x260abd(_0x2ec5e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2260b5(){return _0x1aee7c[_0x2ec5e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ec5e8([0x76,0x69,0x65,0x77])][_0x2ec5e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ec5e8([0x61,0x75,0x74,0x6f]);}function _0x18e775(){_0x1aee7c[_0x2ec5e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ec5e8([0x76,0x69,0x65,0x77])][_0x2ec5e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ec5e8([0x61,0x75,0x74,0x6f]);}}function _0x119508(_0x116ae7){const _0x47d611=[new window[(_0x2ec5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bd45f=>setTimeout(_0x2bd45f,0x5356b2f6^_0x463afb)),_0xc68edb[_0x2ec5e8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ec5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x579c2f=>{let _0x170623=0x0;_0x1aee7c[_0x2ec5e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ec5e8([0x6f,0x6e])](_0x2ec5e8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1cbddd,_0x39a5e3)=>{_0x39a5e3[0x0][_0x2ec5e8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x170623++,_0x170623==(0x535f89d2^_0x463afb)&&(_0x579c2f(),_0x1cbddd[_0x2ec5e8([0x6f,0x66,0x66])]());});}))];return window[_0x2ec5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ec5e8([0x72,0x61,0x63,0x65])](_0x47d611)[_0x2ec5e8([0x74,0x68,0x65,0x6e])](()=>_0x116ae7);}async function _0x554d6d(){await _0xc68edb,_0x1aee7c[_0x2ec5e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ec5e8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b17d6,_0x1aee7c[_0x2ec5e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ec5e8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b17d6,_0x1aee7c[_0x2ec5e8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ec5e8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e13ba(_0x112656){const _0x3dc8f2=_0x5ebcc0();_0x1aee7c[_0x3dc8f2]=_0x2ec5e8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x112656,_0x112656!=_0x2ec5e8([0x56,0x61,0x6c,0x69,0x64])&&_0x554d6d();}function _0x5ebcc0(){const _0x12c5ca=window[_0x2ec5e8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ec5e8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ec5e8([0x6e,0x6f,0x77])]())[_0x2ec5e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ec5e8([0x2e]),'');let _0x18ceeb=_0x2ec5e8([0x68]);for(let _0x1a692f=0x0;_0x1a692f<_0x12c5ca[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a692f+=0x2){let _0x413f3e=window[_0x2ec5e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12c5ca[_0x2ec5e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a692f,_0x1a692f+0x2));_0x413f3e>=_0x3e31f7[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x413f3e-=_0x3e31f7[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18ceeb+=_0x3e31f7[_0x413f3e];}return _0x18ceeb;}function _0x217f0b(){const _0x100782=_0x42f018[_0x2ec5e8([0x73,0x70,0x6c,0x69,0x74])](_0x2ec5e8([0x2e]));if(0x3!=_0x100782[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56d077(_0x100782[0x1]);function _0x56d077(_0x88112c){const _0xb71aac=_0x591679(_0x88112c);return _0xb71aac&&_0x3c5e6c()?_0xb71aac:null;function _0x3c5e6c(){const _0xe64ddc=_0xb71aac[_0x2ec5e8([0x6a,0x74,0x69])],_0x481511=window[_0x2ec5e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe64ddc[_0x2ec5e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe64ddc[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ed765={..._0xb71aac,[_0x2ec5e8([0x6a,0x74,0x69])]:_0xe64ddc[_0x2ec5e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe64ddc[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ed765[_0x2ec5e8([0x76,0x63])],_0x75e246(_0x5ed765)==_0x481511;}}}async function _0x318fc5(){let _0xec58ff=!0x0;try{const _0x42989c=_0x42f018[_0x2ec5e8([0x73,0x70,0x6c,0x69,0x74])](_0x2ec5e8([0x2e])),[_0x2279b0,_0x180d59,_0xc0c4f7]=_0x42989c;return _0x4e5483(_0x2279b0),await _0x2f7c1c(_0x2279b0,_0x180d59,_0xc0c4f7),_0xec58ff;}catch{return!0x1;}function _0x4e5483(_0x494632){const _0x396b56=_0x591679(_0x494632);_0x396b56&&_0x396b56[_0x2ec5e8([0x61,0x6c,0x67])]==_0x2ec5e8([0x45,0x53,0x32,0x35,0x36])||(_0xec58ff=!0x1);}async function _0x2f7c1c(_0x353095,_0xbba353,_0x45d65e){const _0x41a4fd=window[_0x2ec5e8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ec5e8([0x66,0x72,0x6f,0x6d])](_0x454e7d(_0x45d65e),_0x5922e3=>_0x5922e3[_0x2ec5e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x530cc0=new window[(_0x2ec5e8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ec5e8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x353095+_0x2ec5e8([0x2e])+_0xbba353),_0x4c30d5=window[_0x2ec5e8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ec5e8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c30d5)return;const _0x44ebf0=await _0x4c30d5[_0x2ec5e8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ec5e8([0x6a,0x77,0x6b]),_0x4e054d,{[_0x2ec5e8([0x6e,0x61,0x6d,0x65])]:_0x2ec5e8([0x45,0x43,0x44,0x53,0x41]),[_0x2ec5e8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ec5e8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ec5e8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c30d5[_0x2ec5e8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ec5e8([0x6e,0x61,0x6d,0x65])]:_0x2ec5e8([0x45,0x43,0x44,0x53,0x41]),[_0x2ec5e8([0x68,0x61,0x73,0x68])]:{[_0x2ec5e8([0x6e,0x61,0x6d,0x65])]:_0x2ec5e8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44ebf0,_0x41a4fd,_0x530cc0)||(_0xec58ff=!0x1);}}function _0x591679(_0x47a8b5){return _0x47a8b5[_0x2ec5e8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ec5e8([0x65,0x79]))?JSON[_0x2ec5e8([0x70,0x61,0x72,0x73,0x65])](_0x454e7d(_0x47a8b5)):null;}function _0x454e7d(_0x5451a3){return window[_0x2ec5e8([0x61,0x74,0x6f,0x62])](_0x5451a3[_0x2ec5e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ec5e8([0x2b]))[_0x2ec5e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ec5e8([0x2f])));}function _0x75e246(_0x1bb273){let _0xa8eb9b=0x1505;function _0x44d06d(_0xca509b){for(let _0x210c35=0x0;_0x210c35<_0xca509b[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x210c35++){const _0x369836=_0xca509b[_0x2ec5e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x210c35);_0xa8eb9b=(_0xa8eb9b<<0x5)+_0xa8eb9b+_0x369836,_0xa8eb9b&=_0xa8eb9b;}}function _0x224ec1(_0x1cb70a){Array[_0x2ec5e8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1cb70a)?_0x1cb70a[_0x2ec5e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x224ec1):_0x1cb70a&&typeof _0x1cb70a==_0x2ec5e8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ec5e8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1cb70a)[_0x2ec5e8([0x73,0x6f,0x72,0x74])]()[_0x2ec5e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1855ed,_0x350c9c])=>{_0x44d06d(_0x1855ed),_0x224ec1(_0x350c9c);}):_0x44d06d(window[_0x2ec5e8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1cb70a));}return _0x224ec1(_0x1bb273),_0xa8eb9b>>>0x0;}function _0x168a0c(_0x43a999){return _0x43a999[_0x2ec5e8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ec5e8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ec5e8([0x30]));}function _0x1623e8(_0x4f3292){return _0x4f3292[_0x2ec5e8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ec5e8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ec5e8([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b17d6(){}function _0x2ec5e8(_0x52dca2){return _0x52dca2['map'](_0x1cb388=>String['fromCharCode'](_0x1cb388))['join']('');}_0x1e13ba(await _0x7cc552());}(this);}['_initSchema'](){const _0x5d3067=this['editor']['model']['schema'];_0x5d3067['isRegistered']('imageBlock')&&_0x5d3067['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5d3067['isRegistered']('imageInline')&&_0x5d3067['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3b7dd9=this['editor'];_0x3b7dd9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3b7dd9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x41c19c=>_0x41c19c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3f0df8=_0x3b7dd9['commands']['get']('replaceImageSource');_0x3f0df8&&this['listenTo'](_0x3f0df8,'cleanupImage',(_0x2eec74,[_0x44da49,_0x249e02])=>{_0x44da49['removeAttribute']('uploadcareImageId',_0x249e02);});}['_initConfig'](){const _0x30fe49=this['editor']['config']['get']('uploadcare.uploader')||{},_0x24aba8=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x11375e(_0x40a4a3['document'],'uc-config',{..._0x30fe49,'pubkey':_0x24aba8,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x6a6d61=>{if('closeMax'==_0x6a6d61)return'#uc-icon-arrow-down';},_0x40a4a3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x11375e(_0x40a4a3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x40a4a3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4aa00b=this['editor']['commands']['get']('insertImage');_0x4aa00b&&this['listenTo'](_0x4aa00b,'execute',()=>{const _0x517b7e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x517b7e&&_0x517b7e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x517b7e);});});const _0xe5428d=this['editor']['commands']['get']('uploadcareImageReplace');_0xe5428d&&this['listenTo'](_0xe5428d,'execute',()=>{const _0x110dbc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x110dbc&&_0x110dbc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x110dbc);});});}}class Uploadcare extends _0x581a5d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43df20){super(_0x43df20),_0x43df20['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x240842['defineComponents'](_0x240842),this['_defineLocale']();}['_defineLocale'](){const _0x38049f=this['editor']['config']['get']('uploadcare.locale'),_0xe8e7f7=this['editor']['locale']['contentLanguage'];_0x38049f&&_0x240842['defineLocale'](_0xe8e7f7,_0x38049f);}}class ii extends _0x32a9de{constructor(_0x2c9128){super(_0x2c9128);const t=_0x2c9128['t'],_0x49015d=this['bindTemplate'],_0x46227f=new _0x2c9bff();_0x46227f['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':[_0x46227f,{'text':_0x49015d['to']('imageUploadProgress',_0x419bdf=>t('Loading\x20image...')+'\x20('+(_0x419bdf||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x32a9de{constructor(_0x40d446){super(_0x40d446);const t=_0x40d446['t'];this['set']('errorType',null);const _0x288220=new _0x30272f(_0x40d446);_0x288220['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x288220['withText']=!0x0,_0x288220['class']='ck-button-action',_0x288220['on']('execute',()=>{this['fire']('retry');}),_0x288220['bind']('isVisible')['to'](this,'errorType',_0x34ac11=>'NotFound'!==_0x34ac11);const _0x5a102c=new _0x1dc329();_0x5a102c['content']=_0x465b78,_0x5a102c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xc20337=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':[_0x5a102c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xc20337['to']('errorType',_0x5dc80b=>t('NotFound'!==_0x5dc80b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x288220]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x32a9de{constructor(_0x1707e4,_0x22b777){super(_0x1707e4);const _0x46e528=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x22b777,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x46e528['to']('imageSrc')}});}}class W extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xe4efa4,_0x7b9d9,_0x45e265){super(_0xe4efa4),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xe4efa4),this['_errorView']=new ti(_0xe4efa4),this['_editingView']=new ei(_0xe4efa4,_0x45e265),this['_focusableView']=new _0x32a9de(_0xe4efa4),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x7b9d9),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'],_0x4de76f=>{this['_addUploadcareImageEditorListeners'](_0x4de76f);});}),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'](_0x3346b6,_0x2fd22c){const _0x47f9dd='uc-cloud-image-editor',_0x154579=_0x3346b6['querySelector'](_0x47f9dd);if(_0x154579)return _0x2fd22c(_0x154579);const _0x16bd25=new MutationObserver(_0x4c5b7d=>{const _0x42cddf=_0x4c5b7d['filter'](_0x25b11d=>_0x25b11d['target']===_0x3346b6&&_0x25b11d['addedNodes']['length']>0x0&&_0x25b11d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x47f9dd);_0x42cddf['length']&&(_0x16bd25['disconnect'](),_0x2fd22c(_0x42cddf[0x0]['addedNodes'][0x0]));});_0x16bd25['observe'](_0x3346b6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2e449f){_0x2e449f['addEventListener']('apply',_0x55ae74=>{this['fire']('apply',{'imageSrc':_0x55ae74['detail']['cdnUrl']});}),_0x2e449f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x47cc5f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x223f0a,_0x34ac1f,_0x355e36){super(),this['_editor']=_0x223f0a,this['_dialog']=_0x34ac1f,this['_imageElement']=_0x355e36,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 _0x4cbd3c=this['_imageElement'],_0x4bb19f=_0x4cbd3c['getAttribute']('uploadcareImageId'),_0x87456e=_0x4cbd3c['getAttribute']('src');if(_0x4bb19f)await this['_loadImageInfo'](_0x4bb19f,_0x87456e);else{if(this['_imageCache']['has'](_0x87456e)){const _0x194002=this['_imageCache']['get'](_0x87456e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x194002['url'],this['imageDimension']=_0x194002['dimension'],this['imageId']=_0x194002['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x477a3d}=this['_editor'],t=_0x477a3d['t'],_0x3c3872=new W(_0x477a3d,this['imageStatus'],this['_attributes']);_0x3c3872['bind']('status')['to'](this,'imageStatus'),_0x3c3872['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3c3872['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3c3872['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3c3872,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x427a15,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3c3872,'position':_0x4e8eb3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3c3872['focus']();},'onHide':()=>{_0x3c3872['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5355a5=>!C(_0x5355a5,_0x3c3872['element'])}});}['_loadImageInfo'](_0xb308f8,_0x382c43){return j['getInfo'](_0xb308f8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x33afa8=>{const {width:_0x88b4e4,height:_0x5b6bf3}=_0x33afa8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x382c43,this['imageDimension']={'width':_0x88b4e4,'height':_0x5b6bf3},this['imageId']=_0xb308f8;})['catch'](_0x401353=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x401353['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2f6104,_0xd73c8c){return this['_getImageAsFile'](_0x2f6104)['then'](_0x5789cc=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0xd73c8c['signal'],'file':_0x5789cc,'onProgress':_0x5ed1a0=>{_0x5ed1a0&&_0x5ed1a0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5ed1a0['value']));}}))['then'](_0x1d722c=>{const {width:_0x359711,height:_0x1ab9bd}=_0x1d722c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d722c['cdnUrl'],this['imageDimension']={'width':_0x359711,'height':_0x1ab9bd},this['imageId']=_0x1d722c['uuid'],this['imageUploadProgress']=null;const _0x5a12bc=_0x2f6104['getAttribute']('src');this['_imageCache']['set'](_0x5a12bc,{'id':_0x1d722c['uuid'],'url':_0x1d722c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x421032=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x421032['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4405dc,_0x4e3bfb){_0x4405dc['on']('apply',(_0x20193c,_0x40d5af)=>{this['_replaceImage'](_0x4e3bfb,_0x40d5af['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4405dc['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4405dc['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x10018b,_0x4641a5,_0x26725f){const _0x1da0cb=this['_editor'],{width:_0x4b1992,height:_0x2849b1}=x(_0x4641a5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3b736a,imageSources:_0x19de38}=A(_0x4641a5,_0x4b1992);_0x1da0cb['model']['change'](_0x16cf08=>{if('$graveyard'===_0x10018b['root']['rootName']){_0x1da0cb['execute']('insertImage',{'imageType':_0x10018b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x10018b['getAttributes']()),'uploadcareImageId':_0x26725f,'src':_0x3b736a,'sources':_0x19de38,'width':_0x4b1992,'height':_0x2849b1}});const _0x26238d=_0x10018b['getChildren']();_0x10018b=_0x1da0cb['model']['document']['selection']['getSelectedElement']();for(const _0xa141ac of _0x26238d)_0x16cf08['append'](_0x16cf08['cloneElement'](_0xa141ac),_0x10018b);}else _0x16cf08['setSelection'](_0x10018b,'on'),_0x1da0cb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x10018b['getAttributes']()),'uploadcareImageId':_0x26725f,'src':_0x3b736a,'sources':_0x19de38,'width':_0x4b1992,'height':_0x2849b1},_0x10018b);_0x16cf08['setSelection'](_0x10018b,'on');});}async['_getImageAsFile'](_0xed26fc){const _0x5a2765=_0x40a4a3['window'],_0xdf1d6=_0x40a4a3['document']['location']['href'],_0xd486d8=new _0x5a2765['URL'](_0xed26fc['getAttribute']('src'),_0xdf1d6);if('data:'===_0xd486d8['protocol']){const _0x4e0554=_0xd486d8['href']['split'](','),_0x3e99cb=_0x4e0554[0x0]['match'](/:(.*?);/)[0x1],_0x36cd49=_0x3e99cb['split']('/')[0x1],_0x3b9dcf=_0x5a2765['atob'](_0x4e0554[_0x4e0554['length']-0x1]);let _0x342ad2=_0x3b9dcf['length'];const _0x2ec296=new _0x5a2765['Uint8Array'](_0x342ad2);for(;_0x342ad2--;)_0x2ec296[_0x342ad2]=_0x3b9dcf['charCodeAt'](_0x342ad2);return new _0x5a2765['File']([_0x2ec296],'image.'+_0x36cd49,{'type':_0x3e99cb});}const _0x564f1a=_0xd486d8['href']['split']('/'),_0x17a015=_0x564f1a[_0x564f1a['length']-0x1],_0x59334a=_0x17a015['split']('.')[0x1];return _0x5a2765['fetch'](_0xd486d8['href'])['then'](_0x1cbf75=>_0x1cbf75['clone']()['blob']())['then'](_0x47d2d0=>new _0x5a2765['File']([_0x47d2d0],_0x17a015,{'type':'image/'+_0x59334a}));}}class O extends _0x14f725{['imageEditController'];static get['requires'](){return[_0x2ca110];}['_isEditable'];constructor(_0x383833){super(_0x383833),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x50aaeb){const _0x438107=S(_0x50aaeb);return _0x495f4e=>!(!_0x495f4e||!_0x495f4e['is']('element','imageBlock')&&!_0x495f4e['is']('element','imageInline'))&&(!!_0x495f4e['hasAttribute']('uploadcareImageId')||!!_0x495f4e['hasAttribute']('src')&&_0x438107(_0x495f4e['getAttribute']('src')));}(_0x383833['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x352d5a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x352d5a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x53cb40=this['editor']['model']['document']['selection']['getSelectedElement']();_0x53cb40&&(_0x53cb40['is']('element','imageBlock')||_0x53cb40['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2ca110),_0x53cb40),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x14f725{['refresh'](){const _0x2ecc32=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2ecc32&&(_0x2ecc32['is']('element','imageBlock')||_0x2ecc32['is']('element','imageInline')));}['execute'](_0x1e87af){const _0x152c36=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2de5fa=>{_0x2de5fa['setAttributes'](_0x1e87af,_0x152c36),_0x2de5fa['removeAttribute']('srcset',_0x152c36),_0x2de5fa['removeAttribute']('sizes',_0x152c36);});}}class m extends _0x581a5d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x39d957,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xfb141c}=this;_0xfb141c['commands']['add']('uploadcareImageEdit',new O(_0xfb141c)),_0xfb141c['commands']['add']('uploadcareImageReplace',new R(_0xfb141c));}}class g extends _0x581a5d{['_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 _0x3024c7=this['editor'];_0x3024c7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3bd4e7=>{const _0x2f98f6=_0x3024c7['commands']['get']('uploadcareImageEdit'),_0x1a52ba=new _0x30272f(_0x3bd4e7),t=_0x3bd4e7['t'];return _0x1a52ba['set']({'icon':_0x427a15,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1a52ba['bind']('isEnabled')['to'](_0x2f98f6),_0x1a52ba['bind']('isOn')['to'](_0x2f98f6,'isActive'),this['listenTo'](_0x1a52ba,'execute',()=>{_0x3024c7['execute']('uploadcareImageEdit'),_0x3024c7['editing']['view']['focus']();}),_0x1a52ba;}),this['_initConfig']();}['_initConfig'](){const _0x2a46be=_0x11375e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2a46be),this['listenTo'](this['editor'],'destroy',()=>{_0x2a46be['remove']();});}}class UploadcareImageEdit extends _0x581a5d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Uploadcare,w as UploadcareCommand,o as UploadcareEditing,UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x42751e=>0x1!=_0x42751e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x54ad86=>{const {af:{dictionary:_0xa5ab52,getPluralForm:_0x3a8f6b}}={'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':_0x1a3ad2=>0x1!=_0x1a3ad2}};_0x54ad86['af']||={'dictionary':{},'getPluralForm':null},_0x54ad86['af']['dictionary']=Object['assign'](_0x54ad86['af']['dictionary'],_0xa5ab52),_0x54ad86['af']['getPluralForm']=_0x3a8f6b;})(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':_0x517a38=>0x0==_0x517a38?0x0:0x1==_0x517a38?0x1:0x2==_0x517a38?0x2:_0x517a38%0x64>=0x3&&_0x517a38%0x64<=0xa?0x3:_0x517a38%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2dffc3=>{const {ar:{dictionary:_0x130508,getPluralForm:_0x239d3d}}={'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':_0x496ceb=>0x0==_0x496ceb?0x0:0x1==_0x496ceb?0x1:0x2==_0x496ceb?0x2:_0x496ceb%0x64>=0x3&&_0x496ceb%0x64<=0xa?0x3:_0x496ceb%0x64>=0xb?0x4:0x5}};_0x2dffc3['ar']||={'dictionary':{},'getPluralForm':null},_0x2dffc3['ar']['dictionary']=Object['assign'](_0x2dffc3['ar']['dictionary'],_0x130508),_0x2dffc3['ar']['getPluralForm']=_0x239d3d;})(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':_0x412dd3=>0x1!=_0x412dd3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x15b30b=>{const {ast:{dictionary:_0x5c34b4,getPluralForm:_0x481ba1}}={'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':_0x1adbe1=>0x1!=_0x1adbe1}};_0x15b30b['ast']||={'dictionary':{},'getPluralForm':null},_0x15b30b['ast']['dictionary']=Object['assign'](_0x15b30b['ast']['dictionary'],_0x5c34b4),_0x15b30b['ast']['getPluralForm']=_0x481ba1;})(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':_0x27ddbf=>0x1!=_0x27ddbf}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x268819=>{const {az:{dictionary:_0x1326ec,getPluralForm:_0xe751bb}}={'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':_0x11e782=>0x1!=_0x11e782}};_0x268819['az']||={'dictionary':{},'getPluralForm':null},_0x268819['az']['dictionary']=Object['assign'](_0x268819['az']['dictionary'],_0x1326ec),_0x268819['az']['getPluralForm']=_0xe751bb;})(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':_0x2a3572=>_0x2a3572%0xa==0x1&&_0x2a3572%0x64!=0xb?0x0:_0x2a3572%0xa>=0x2&&_0x2a3572%0xa<=0x4&&(_0x2a3572%0x64<0xa||_0x2a3572%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x36e2c4=>{const {be:{dictionary:_0x280893,getPluralForm:_0x5b56c2}}={'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':_0x2877d1=>_0x2877d1%0xa==0x1&&_0x2877d1%0x64!=0xb?0x0:_0x2877d1%0xa>=0x2&&_0x2877d1%0xa<=0x4&&(_0x2877d1%0x64<0xa||_0x2877d1%0x64>=0x14)?0x1:0x2}};_0x36e2c4['be']||={'dictionary':{},'getPluralForm':null},_0x36e2c4['be']['dictionary']=Object['assign'](_0x36e2c4['be']['dictionary'],_0x280893),_0x36e2c4['be']['getPluralForm']=_0x5b56c2;})(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':_0x1ecf3b=>0x1!=_0x1ecf3b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2c6fd2=>{const {bg:{dictionary:_0x41ece7,getPluralForm:_0x3ed755}}={'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':_0x42fb47=>0x1!=_0x42fb47}};_0x2c6fd2['bg']||={'dictionary':{},'getPluralForm':null},_0x2c6fd2['bg']['dictionary']=Object['assign'](_0x2c6fd2['bg']['dictionary'],_0x41ece7),_0x2c6fd2['bg']['getPluralForm']=_0x3ed755;})(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':_0x19ca61=>0x1!=_0x19ca61}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x255bc7=>{const {bn:{dictionary:_0x22fd4b,getPluralForm:_0x4fc92b}}={'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':_0x1c74fc=>0x1!=_0x1c74fc}};_0x255bc7['bn']||={'dictionary':{},'getPluralForm':null},_0x255bc7['bn']['dictionary']=Object['assign'](_0x255bc7['bn']['dictionary'],_0x22fd4b),_0x255bc7['bn']['getPluralForm']=_0x4fc92b;})(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':_0x59b931=>_0x59b931%0xa==0x1&&_0x59b931%0x64!=0xb?0x0:_0x59b931%0xa>=0x2&&_0x59b931%0xa<=0x4&&(_0x59b931%0x64<0xa||_0x59b931%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x37fd76=>{const {bs:{dictionary:_0x3a2f08,getPluralForm:_0x2327b6}}={'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':_0x10cb3a=>_0x10cb3a%0xa==0x1&&_0x10cb3a%0x64!=0xb?0x0:_0x10cb3a%0xa>=0x2&&_0x10cb3a%0xa<=0x4&&(_0x10cb3a%0x64<0xa||_0x10cb3a%0x64>=0x14)?0x1:0x2}};_0x37fd76['bs']||={'dictionary':{},'getPluralForm':null},_0x37fd76['bs']['dictionary']=Object['assign'](_0x37fd76['bs']['dictionary'],_0x3a2f08),_0x37fd76['bs']['getPluralForm']=_0x2327b6;})(window['CKEDITOR_TRANSLATIONS']||={});
|