@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251224.0 → 0.0.0-nightly-next-20251224.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 _0x59c0a1,Command as _0x1fef53}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x586b2a,IconGooglePhotos as _0x42bb90,IconGoogleDrive as _0x21dcaf,IconFacebook as _0x4d4a6a,IconDropbox as _0x5bbb70,IconUploadcareLink as _0xfc3f1e,IconUploadcareImageUpload as _0x4b48cd,IconError as _0x5dd3d6,IconUploadcareImageEdit as _0x3a9f96}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x14eb05,MenuBarMenuListItemButtonView as _0x31f07c,View as _0x4c689a,FocusCycler as _0xb80fa9,Dialog as _0x3c3d21,DialogViewPosition as _0x3e0798,SpinnerView as _0xe3c2e4,IconView as _0x389bbd,Notification as _0x35664b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xa0d7ac,DomEmitterMixin as _0x1743d3,global as _0x44bbcf,getAncestors as _0x46cd46,ObservableMixin as _0x56a17e,uid as _0x494f20,createElement as _0x35ab70}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x486e33}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x21151a,info as _0x1e4976}from'@uploadcare/upload-client';import*as _0x183d2c from'@uploadcare/file-uploader';var i=function(_0x35a248){return _0x35a248['Local']='local',_0x35a248['URL']='url',_0x35a248['Dropbox']='dropbox',_0x35a248['GDrive']='gdrive',_0x35a248['Facebook']='facebook',_0x35a248['GPhotos']='gphotos',_0x35a248['OneDrive']='onedrive',_0x35a248;}({});function _(_0x7f4082,_0x25cf7f,_0xcda0fb){const t=_0x7f4082['t'],_0x3c4974=_0x7f4082['t'];switch(_0x25cf7f){case i['Local']:return{'text':_0x3c4974('Insert'===_0xcda0fb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3c4974('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xcda0fb?_0x3c4974('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3c4974('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xcda0fb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xcda0fb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xcda0fb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xcda0fb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xcda0fb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x25cf7f;}}class e extends _0x59c0a1{['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 _0x969d8e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22da8c;for(const _0x175caf in _0x969d8e){const _0x103892=_0x175caf,_0x23e662=_0x969d8e[_0x103892];if('uploadcareLicenseKeyValid'==_0x23e662||'uploadcareLicenseKeyInvalid'==_0x23e662||'uploadcareLicenseKeyExpired'==_0x23e662||'uploadcareLicenseKeyDomainLimit'==_0x23e662||'uploadcareLicenseKeyNotAllowed'==_0x23e662||'uploadcareLicenseKeyEvaluationLimit'==_0x23e662||'uploadcareLicenseKeyTrialLimit'==_0x23e662||'uploadcareLicenseKeyUsageLimit'==_0x23e662){delete _0x969d8e[_0x103892],_0x22da8c=_0x23e662,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x22da8c&&_0x969d8e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x22da8c&&_0x969d8e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x22da8c&&_0x969d8e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x22da8c&&_0x969d8e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x22da8c&&_0x969d8e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x22da8c&&_0x969d8e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x22da8c&&_0x969d8e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x264efa}=this,_0x12e96d=_0x264efa['commands']['get']('uploadcare');if(!_0x12e96d)return;const _0xeaabd5=this['_normalizeConfigSourceList'](_0x264efa['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x9595fc,_0x4e0100)=>{const _0x4aa26c=this['_getIntegrationKey'](_0x4e0100['type']);return _0x9595fc[_0x4aa26c]||(_0x9595fc[_0x4aa26c]=[]),_0x9595fc[_0x4aa26c]['push'](_0x4e0100),_0x9595fc;},{});_0x264efa['plugins']['has']('ImageInsertUI')&&_0x264efa['commands']['get']('uploadcare')&&Object['entries'](_0xeaabd5)['forEach'](([_0x38b203,_0x42c2e0])=>{_0x264efa['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x38b203,'observable':()=>_0x12e96d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x42c2e0),'formViewCreator':()=>this['_createDropdownButtons'](_0x42c2e0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x42c2e0),'override':'assetManager'!==_0x38b203});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2b4fe5){const {locale:_0xfbf10f}=this['editor'];return _0x2b4fe5['map'](_0x2f73a8=>{const _0x38730b=_(_0xfbf10f,_0x2f73a8,'Insert');switch(_0x2f73a8){case i['Local']:return{'icon':_0x4b48cd,'type':i['Local'],..._0x38730b};case i['URL']:return{'icon':_0xfc3f1e,'type':i['URL'],..._0x38730b};case i['Dropbox']:return{'icon':_0x5bbb70,'type':i['Dropbox'],..._0x38730b};case i['Facebook']:return{'icon':_0x4d4a6a,'type':i['Facebook'],..._0x38730b};case i['GDrive']:return{'icon':_0x21dcaf,'type':i['GDrive'],..._0x38730b};case i['GPhotos']:return{'icon':_0x42bb90,'type':i['GPhotos'],..._0x38730b};case i['OneDrive']:return{'icon':_0x586b2a,'type':i['OneDrive'],..._0x38730b};}});}['_getIntegrationKey'](_0x19f086){switch(_0x19f086){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x33b8f8,_0x4e6598){const _0x43e23c=this['editor'],_0x51f891=new _0x33b8f8(_0x43e23c['locale']),_0x46d4bd=_0x43e23c['commands']['get']('uploadcare');return _0x51f891['bind']('isEnabled')['to'](_0x46d4bd),_0x51f891['on']('execute',()=>{_0x46d4bd['execute'](_0x4e6598);}),_0x51f891;}['_createToolbarButton'](_0xf6b7e8){const {locale:_0x264c2d}=this['editor'],_0x462fef=this['editor']['plugins']['get']('ImageInsertUI'),_0x5ce462=_0xf6b7e8[0x0],_0x224e39=this['_createButton'](_0x14eb05,_0x5ce462['type']);return _0x224e39['icon']=_0x5ce462['icon'],_0x224e39['bind']('label')['to'](_0x462fef,'isImageSelected',_0x30f83e=>_(_0x264c2d,_0x5ce462['type'],_0x30f83e?'Replace':'Insert')['text']),_0x224e39['tooltip']=!0x0,_0x224e39;}['_createDropdownButtons'](_0x37d65a){const {locale:_0x3f7f1d}=this['editor'],_0x54aafa=this['editor']['plugins']['get']('ImageInsertUI');return _0x37d65a['map'](_0x4a9b9d=>{const _0x184bf5=this['_createButton'](_0x14eb05,_0x4a9b9d['type']);return _0x184bf5['withText']=!0x0,_0x184bf5['icon']=_0x4a9b9d['icon'],_0x184bf5['bind']('label')['to'](_0x54aafa,'isImageSelected',_0x258d04=>_(_0x3f7f1d,_0x4a9b9d['type'],_0x258d04?'Replace':'Insert')['text']),_0x184bf5;});}['_createMenuBarButtons'](_0x3c1a4b){return _0x3c1a4b['map'](_0x19774e=>{const _0x3a1acf=this['_createButton'](_0x31f07c,_0x19774e['type']);return _0x3a1acf['icon']=_0x19774e['icon'],_0x3a1acf['label']=_0x19774e['shortText'],_0x3a1acf;});}}class F extends _0x4c689a{['focusTracker'];['focusCycler'];constructor(_0x31b22a){super(_0x31b22a),this['focusTracker']=new _0xa0d7ac(),this['focusCycler']=new _0xb80fa9({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x3cca2b,_0xedd24a){super(_0x3cca2b),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-'+_0xedd24a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x477bb3,_0x5ecf6f){const _0xbbf79d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xa366e2=>_0xa366e2<=_0x5ecf6f)['map'](_0x5e45d0=>_0x477bb3['replace'](/\/$/,'')+'/-/resize/'+_0x5e45d0+'x/\x20'+_0x5e45d0+'w');return{'imageFallbackUrl':_0x477bb3,'imageSources':[{'srcset':_0xbbf79d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5ecf6f+'px)\x20100vw,\x20'+_0x5ecf6f+'px','type':'image/webp'}]};}function S(_0x18d714,_0x30a401,_0x423824){const _0xf0f46f=_0x18d714['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xf0f46f?parseInt(_0xf0f46f[0x1],0xa):_0x30a401,'height':_0xf0f46f?parseInt(_0xf0f46f[0x2],0xa):_0x423824};}function p(_0x5aee6f,_0x19f8dc){const _0x2170d9=new(_0x1743d3())(),_0x1cdc76=_0x5aee6f['plugins']['get']('ImageUtils'),_0x1415fa=_0x5aee6f['editing']['mapper']['toViewElement'](_0x19f8dc),_0x1e852a=_0x1cdc76['findViewImgElement'](_0x1415fa),_0x105638=_0x5aee6f['editing']['view']['domConverter']['viewToDom'](_0x1e852a),_0x9c1764=_0x19f8dc['getAttribute']('width'),_0x49ca28=_0x19f8dc['getAttribute']('height'),_0x426273='image-processing';_0x5aee6f['editing']['view']['change'](_0x42ae6c=>{_0x42ae6c['addClass'](_0x426273,_0x1415fa),_0x42ae6c['setStyle']('aspect-ratio',_0x9c1764+'/'+_0x49ca28,_0x1e852a);}),_0x2170d9['listenTo'](_0x105638,'load',()=>{_0x2170d9['stopListening'](_0x105638,'load'),_0x5aee6f['editing']['view']['change'](_0x40e37c=>{_0x40e37c['removeClass'](_0x426273,_0x1415fa),_0x40e37c['removeStyle']('aspect-ratio',_0x1e852a);});});}function z(_0x2d8e1c){if(Array['isArray'](_0x2d8e1c)){const _0x201578=_0x2d8e1c['map'](z);return _0x4b03f1=>_0x201578['some'](_0x119263=>_0x119263(_0x4b03f1));}if('origin'==_0x2d8e1c){const _0x34b6b5=_0x44bbcf['window']['location']['origin'];return _0x5f03b8=>new URL(_0x5f03b8,_0x44bbcf['document']['baseURI'])['origin']==_0x34b6b5;}return'function'==typeof _0x2d8e1c?_0x2d8e1c:_0x2d8e1c instanceof RegExp?_0x5d5f4b=>!(!_0x5d5f4b['match'](_0x2d8e1c)&&!_0x5d5f4b['replace'](/^https?:\/\//,'')['match'](_0x2d8e1c)):()=>!0x1;}function A(_0x482c10,_0x1570e8){return _0x46cd46(_0x482c10['target'])['includes'](_0x1570e8);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x56a17e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x391bf9,_0x5e8011,_0x2eb7f2){super(),this['_editor']=_0x391bf9,this['_editing']=_0x5e8011,this['_dialog']=_0x391bf9['plugins']['get'](_0x3c3d21),this['_api']=_0x5e8011['ctxElement']['getAPI'](),this['_type']=_0x2eb7f2,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:_0x45f7e8,model:_0x11a0bf}=this['_editor'],_0x4ea519=_0x11a0bf['document']['selection']['getSelectedElement'](),_0x2352f6=_0x4ea519&&(_0x4ea519['is']('element','imageBlock')||_0x4ea519['is']('element','imageInline'));this['_formView']=new x(_0x45f7e8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4b48cd,'title':_(_0x45f7e8,this['_type'],_0x2352f6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3e0798['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a9e4f=>!A(_0x1a9e4f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x32ac42}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2f1e3d=>{const _0xef39ab=_0x32ac42['length'];for(const _0x41f93a of _0x32ac42){const _0x24d800=_0x41f93a===_0x32ac42[_0xef39ab-0x1],{cdnUrl:_0xcde798,fileInfo:_0x3c2fff}=_0x41f93a;if(!_0xcde798||!_0x3c2fff)continue;const {width:_0x579a1e,height:_0x10551a}=_0x3c2fff['imageInfo'],_0x2deaf5=S(_0xcde798,_0x579a1e,_0x10551a),_0x18f003=C(_0xcde798,_0x2deaf5['width']),_0x3280c9={'id':_0x3c2fff['uuid'],'type':'image','attributes':{'imageDimension':_0x2deaf5,..._0x18f003}};this['_insertAsset'](_0x3280c9,_0x24d800,_0x2f1e3d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x450da9=>{'idle'===_0x450da9['detail']['status']&&!_0x450da9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x235a2e,_0x432ddf,_0x32c92f){const _0x35ed91=this['_editor']['model']['document']['selection'],_0x331f97=_0x35ed91['getSelectedElement'](),_0x2ea38f=!(!_0x331f97||!_0x331f97['is']('element','imageInline'));_0x32c92f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x235a2e,_0x2ea38f),_0x432ddf||_0x32c92f['setSelection'](_0x35ed91['getLastPosition']());}['_insertImage'](_0x454b9e,_0x384b95){const _0x531a40=this['_editor'],{imageDimension:_0x3f712,imageFallbackUrl:_0x39ec18,imageSources:_0x1217f6}=_0x454b9e['attributes'];_0x531a40['execute']('insertImage',{'imageType':_0x384b95?'imageInline':null,'source':{'uploadcareImageId':_0x454b9e['id'],'src':_0x39ec18,'sources':_0x1217f6,..._0x3f712}});}}class w extends _0x1fef53{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c3d21,o];}constructor(_0x128c4d){super(_0x128c4d),this['_editing']=_0x128c4d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x49eea2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x49eea2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x27147c,..._0x2a9480}){return _0x21151a(_0x27147c,_0x2a9480);}static['getInfo'](_0x25e211,_0x5c43f4){return _0x1e4976(_0x25e211,_0x5c43f4);}}class f extends _0x59c0a1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x486e33,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x30790d=this['editor'];if(!!!_0x30790d['config']['get']('uploadcare'))return;_0x30790d['plugins']['get'](_0x486e33)['createUploadAdapter']=_0x98b1eb=>new k(_0x98b1eb,_0x30790d),_0x30790d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x26cf42,{imageElement:_0x2fa16e,data:_0x4f6465})=>{_0x30790d['model']['change'](_0x456dcc=>{_0x456dcc['setAttribute']('uploadcareImageId',_0x4f6465['uploadcareImageId'],_0x2fa16e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x82248d,_0x5f0b81){this['loader']=_0x82248d,this['editor']=_0x5f0b81,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x53ae2f=await this['loader']['file'];return j['upload']({'file':_0x53ae2f,'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':_0x402c96=>{_0x402c96&&_0x402c96['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x402c96['value']);}})['then'](async _0x2741f1=>{const {imageFallbackUrl:_0x512149,imageSources:_0xa6b012}=C(_0x2741f1['cdnUrl'],_0x2741f1['imageInfo']['width']);return{'uploadcareImageId':_0x2741f1['uuid'],'default':_0x512149,'sources':_0xa6b012};})['catch'](()=>{const _0x1c5d57=t('Cannot\x20upload\x20file:')+('\x20'+_0x53ae2f['name']+'.');return Promise['reject'](_0x1c5d57);});}['abort'](){this['controller']['abort']();}}class o extends _0x59c0a1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3c3d21];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3003a2){super(_0x3003a2),this['ucContextId']=_0x494f20();}['init'](){const _0x28dc6c=this['editor'];_0x28dc6c['commands']['add']('uploadcare',new w(_0x28dc6c));}['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 _0x234e90=_0x44bbcf['document']['querySelector']('input[uploadcare-file-input]');_0x234e90&&_0x234e90['remove']();}),async function(_0x314475){const _0x584a3a=_0x1a5ff4([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]),_0x2bcf1c=0x535f8c3a,_0x5214a3=0x5358f0ea^_0x2bcf1c,_0x57f9a2=window[_0x1a5ff4([0x44,0x61,0x74,0x65])][_0x1a5ff4([0x6e,0x6f,0x77])](),_0x1e2032=_0x314475[_0x1a5ff4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x88a313=new window[(_0x1a5ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2850fe=>{_0x1e2032[_0x1a5ff4([0x6f,0x6e,0x63,0x65])](_0x1a5ff4([0x72,0x65,0x61,0x64,0x79]),_0x2850fe);}),_0x21ca60={[_0x1a5ff4([0x6b,0x74,0x79])]:_0x1a5ff4([0x45,0x43]),[_0x1a5ff4([0x75,0x73,0x65])]:_0x1a5ff4([0x73,0x69,0x67]),[_0x1a5ff4([0x63,0x72,0x76])]:_0x1a5ff4([0x50,0x2d,0x32,0x35,0x36]),[_0x1a5ff4([0x78])]:_0x1a5ff4([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]),[_0x1a5ff4([0x79])]:_0x1a5ff4([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]),[_0x1a5ff4([0x61,0x6c,0x67])]:_0x1a5ff4([0x45,0x53,0x32,0x35,0x36])},_0x211f3f=_0x1e2032[_0x1a5ff4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a5ff4([0x67,0x65,0x74])](_0x1a5ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x13ddde(){let _0x375d2b,_0x46959d=null,_0x480c6c=null;try{if(_0x211f3f==_0x1a5ff4([0x47,0x50,0x4c]))return _0x1a5ff4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x375d2b=_0x922472(),!_0x375d2b)return _0x1a5ff4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x375d2b[_0x1a5ff4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x480c6c=_0x292895(_0x375d2b[_0x1a5ff4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x375d2b[_0x1a5ff4([0x6a,0x74,0x69])])),await _0x5cae64()?_0x4d9d66()?_0x41ae51()?_0x1a5ff4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x43e802()?(_0x375d2b[_0x1a5ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a5ff4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x46959d=_0x12cc43(_0x1a5ff4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x375d2b[_0x1a5ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a5ff4([0x74,0x72,0x69,0x61,0x6c])&&(_0x46959d=_0x12cc43(_0x1a5ff4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56641c()):_0x1a5ff4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a5ff4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a5ff4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1a5ff4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41ae51(){const _0x17ca28=[_0x1a5ff4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a5ff4([0x74,0x72,0x69,0x61,0x6c])][_0x1a5ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x375d2b[_0x1a5ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x57f9a2/0x3e8:0xe10*_0x5214a3;return _0x375d2b[_0x1a5ff4([0x65,0x78,0x70])]<_0x17ca28;}function _0x4d9d66(){const _0x391e56=_0x375d2b[_0x1a5ff4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x391e56&&(!!_0x391e56[_0x1a5ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5ff4([0x2a]))||!!_0x391e56[_0x1a5ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5ff4([0x55,0x50,0x4c,0x43])));}function _0x43e802(){const _0x3fb90f=_0x375d2b[_0x1a5ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3fb90f||0x0==_0x3fb90f[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9d9a96}=new URL(window[_0x1a5ff4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3fb90f[_0x1a5ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9d9a96))return!0x0;const _0x2e8952=_0x9d9a96[_0x1a5ff4([0x73,0x70,0x6c,0x69,0x74])](_0x1a5ff4([0x2e]));return _0x3fb90f[_0x1a5ff4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e5e1e=>_0x5e5e1e[_0x1a5ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5ff4([0x2a])))[_0x1a5ff4([0x6d,0x61,0x70])](_0x273bce=>_0x273bce[_0x1a5ff4([0x73,0x70,0x6c,0x69,0x74])](_0x1a5ff4([0x2e])))[_0x1a5ff4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd9ed71=>_0xd9ed71[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2e8952[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a5ff4([0x6d,0x61,0x70])](_0x492daa=>Array(_0x2e8952[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x492daa[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a5ff4([0x66,0x69,0x6c,0x6c])](_0x492daa[0x0]===_0x1a5ff4([0x2a])?_0x1a5ff4([0x2a]):'')[_0x1a5ff4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x492daa))[_0x1a5ff4([0x73,0x6f,0x6d,0x65])](_0x29af46=>_0x2e8952[_0x1a5ff4([0x65,0x76,0x65,0x72,0x79])]((_0x4e28c9,_0x45bb6d)=>_0x29af46[_0x45bb6d]===_0x4e28c9||_0x29af46[_0x45bb6d]===_0x1a5ff4([0x2a])));}function _0x56641c(){return _0x46959d&&_0x480c6c?new window[(_0x1a5ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1782f9,_0x594dba)=>{_0x46959d[_0x1a5ff4([0x74,0x68,0x65,0x6e])](_0x1782f9,_0x594dba),_0x480c6c[_0x1a5ff4([0x74,0x68,0x65,0x6e])](_0x1cc2bb=>{_0x1cc2bb!=_0x1a5ff4([0x56,0x61,0x6c,0x69,0x64])&&_0x1782f9(_0x1cc2bb);},_0x594dba);}):_0x46959d||_0x480c6c||_0x1a5ff4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x292895(_0x1bc42b,_0x32076a){return new window[(_0x1a5ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x507280=>{if(_0x6f3baf())return _0x507280(_0x1a5ff4([0x56,0x61,0x6c,0x69,0x64]));_0xf5cab6(),_0x1e2032[_0x1a5ff4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a5ff4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36b834=!0x1;const _0x2b2171=_0x494f20();function _0xc97eb4(_0xd5ebe3){return!!_0xd5ebe3&&(typeof _0xd5ebe3===_0x1a5ff4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd5ebe3===_0x1a5ff4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd5ebe3[_0x1a5ff4([0x74,0x68,0x65,0x6e])]===_0x1a5ff4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd5ebe3[_0x1a5ff4([0x63,0x61,0x74,0x63,0x68])]===_0x1a5ff4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ef619(_0x1ed820){_0x45b2b6(_0x1ed820)[_0x1a5ff4([0x74,0x68,0x65,0x6e])](_0x1664d7=>{if(!_0x1664d7||_0x1664d7[_0x1a5ff4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a5ff4([0x6f,0x6b]))return _0x1a5ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5600de(_0x548a6f(_0x2b2171+_0x32076a))!=_0x1664d7[_0x1a5ff4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a5ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a5ff4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a5ff4([0x74,0x68,0x65,0x6e])](_0x147c73=>(_0x5bb62d(),_0x147c73),()=>{const _0xf54901=_0xd15716();return null==_0xf54901?(_0x5bb62d(),_0x1a5ff4([0x56,0x61,0x6c,0x69,0x64])):_0x1a5ff4(_0x57f9a2-_0xf54901>(0x7753083a^_0x2bcf1c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a5ff4([0x74,0x68,0x65,0x6e])](_0x507280)[_0x1a5ff4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x507280(_0x1a5ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x440318=0x536962ba^_0x2bcf1c;function _0x5bb62d(){const _0x5ff76e=_0x1a5ff4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5600de(_0x548a6f(_0x1bc42b)),_0x4af003=_0x4407c6(_0x5600de(window[_0x1a5ff4([0x4d,0x61,0x74,0x68])][_0x1a5ff4([0x63,0x65,0x69,0x6c])](_0x57f9a2/_0x440318)));window[_0x1a5ff4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a5ff4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ff76e,_0x4af003);}function _0xd15716(){const _0x4b3084=_0x1a5ff4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5600de(_0x548a6f(_0x1bc42b)),_0x5787d8=window[_0x1a5ff4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a5ff4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b3084);return _0x5787d8?window[_0x1a5ff4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4407c6(_0x5787d8),0x10)*_0x440318:null;}function _0x45b2b6(_0x34b50d){return new window[(_0x1a5ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d63a0,_0x414618)=>{_0x34b50d[_0x1a5ff4([0x74,0x68,0x65,0x6e])](_0x5d63a0,_0x414618),window[_0x1a5ff4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x414618,0x535e58fa^_0x2bcf1c);});}}_0x1e2032[_0x1a5ff4([0x6f,0x6e])](_0x1a5ff4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d4e86,_0x462795)=>{if(_0x462795[0x0]!=_0x1bc42b)return _0x507280(_0x1a5ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x462795[0x1]={..._0x462795[0x1],[_0x1a5ff4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b2171};},{[_0x1a5ff4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a5ff4([0x68,0x69,0x67,0x68])}),_0x1e2032[_0x1a5ff4([0x6f,0x6e])](_0x1a5ff4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b3eec=>{_0xc97eb4(_0x4b3eec[_0x1a5ff4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36b834=!0x0,_0x2ef619(_0x4b3eec[_0x1a5ff4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a5ff4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a5ff4([0x6c,0x6f,0x77])}),_0x88a313[_0x1a5ff4([0x74,0x68,0x65,0x6e])](()=>{_0x36b834||_0x507280(_0x1a5ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6f3baf(){return _0x1e2032[_0x1a5ff4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a5ff4([0x76,0x69,0x65,0x77])][_0x1a5ff4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a5ff4([0x61,0x75,0x74,0x6f]);}function _0xf5cab6(){_0x1e2032[_0x1a5ff4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a5ff4([0x76,0x69,0x65,0x77])][_0x1a5ff4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a5ff4([0x61,0x75,0x74,0x6f]);}}function _0x12cc43(_0x19bd6a){const _0x533855=[new window[(_0x1a5ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34a1e8=>setTimeout(_0x34a1e8,0x5356b2f6^_0x2bcf1c)),_0x88a313[_0x1a5ff4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a5ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50c31b=>{let _0x516353=0x0;_0x1e2032[_0x1a5ff4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a5ff4([0x6f,0x6e])](_0x1a5ff4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xabda1e,_0x457f52)=>{_0x457f52[0x0][_0x1a5ff4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x516353++,_0x516353==(0x535f89d2^_0x2bcf1c)&&(_0x50c31b(),_0xabda1e[_0x1a5ff4([0x6f,0x66,0x66])]());});}))];return window[_0x1a5ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a5ff4([0x72,0x61,0x63,0x65])](_0x533855)[_0x1a5ff4([0x74,0x68,0x65,0x6e])](()=>_0x19bd6a);}async function _0xc3939(){await _0x88a313,_0x1e2032[_0x1a5ff4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a5ff4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa9a257,_0x1e2032[_0x1a5ff4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a5ff4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa9a257,_0x1e2032[_0x1a5ff4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a5ff4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45562d(_0x2445ce){const _0x6d15c4=_0x1dc677();_0x1e2032[_0x6d15c4]=_0x1a5ff4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2445ce,_0x2445ce!=_0x1a5ff4([0x56,0x61,0x6c,0x69,0x64])&&_0xc3939();}function _0x1dc677(){const _0x5c4db0=window[_0x1a5ff4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a5ff4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a5ff4([0x6e,0x6f,0x77])]())[_0x1a5ff4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a5ff4([0x2e]),'');let _0x2b567e=_0x1a5ff4([0x68]);for(let _0x3ea5d7=0x0;_0x3ea5d7<_0x5c4db0[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ea5d7+=0x2){let _0xb2c80b=window[_0x1a5ff4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c4db0[_0x1a5ff4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ea5d7,_0x3ea5d7+0x2));_0xb2c80b>=_0x584a3a[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb2c80b-=_0x584a3a[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b567e+=_0x584a3a[_0xb2c80b];}return _0x2b567e;}function _0x922472(){const _0xc9bc1a=_0x211f3f[_0x1a5ff4([0x73,0x70,0x6c,0x69,0x74])](_0x1a5ff4([0x2e]));if(0x3!=_0xc9bc1a[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54239b(_0xc9bc1a[0x1]);function _0x54239b(_0x469552){const _0x2d582e=_0x924206(_0x469552);return _0x2d582e&&_0x43c1ec()?_0x2d582e:null;function _0x43c1ec(){const _0x5883cb=_0x2d582e[_0x1a5ff4([0x6a,0x74,0x69])],_0x411751=window[_0x1a5ff4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5883cb[_0x1a5ff4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5883cb[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2069f9={..._0x2d582e,[_0x1a5ff4([0x6a,0x74,0x69])]:_0x5883cb[_0x1a5ff4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5883cb[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2069f9[_0x1a5ff4([0x76,0x63])],_0x548a6f(_0x2069f9)==_0x411751;}}}async function _0x5cae64(){let _0x53b365=!0x0;try{const _0x28f837=_0x211f3f[_0x1a5ff4([0x73,0x70,0x6c,0x69,0x74])](_0x1a5ff4([0x2e])),[_0x2475a5,_0x33996e,_0x45e721]=_0x28f837;return _0x23f775(_0x2475a5),await _0x3bb51f(_0x2475a5,_0x33996e,_0x45e721),_0x53b365;}catch{return!0x1;}function _0x23f775(_0x55ded0){const _0x305904=_0x924206(_0x55ded0);_0x305904&&_0x305904[_0x1a5ff4([0x61,0x6c,0x67])]==_0x1a5ff4([0x45,0x53,0x32,0x35,0x36])||(_0x53b365=!0x1);}async function _0x3bb51f(_0x3b584f,_0x6c4c50,_0x2885d8){const _0x5e42e0=window[_0x1a5ff4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a5ff4([0x66,0x72,0x6f,0x6d])](_0x60ae59(_0x2885d8),_0x5813ab=>_0x5813ab[_0x1a5ff4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x38f7cd=new window[(_0x1a5ff4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a5ff4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b584f+_0x1a5ff4([0x2e])+_0x6c4c50),_0x26d545=window[_0x1a5ff4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a5ff4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26d545)return;const _0x4bc57c=await _0x26d545[_0x1a5ff4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a5ff4([0x6a,0x77,0x6b]),_0x21ca60,{[_0x1a5ff4([0x6e,0x61,0x6d,0x65])]:_0x1a5ff4([0x45,0x43,0x44,0x53,0x41]),[_0x1a5ff4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a5ff4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a5ff4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26d545[_0x1a5ff4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a5ff4([0x6e,0x61,0x6d,0x65])]:_0x1a5ff4([0x45,0x43,0x44,0x53,0x41]),[_0x1a5ff4([0x68,0x61,0x73,0x68])]:{[_0x1a5ff4([0x6e,0x61,0x6d,0x65])]:_0x1a5ff4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4bc57c,_0x5e42e0,_0x38f7cd)||(_0x53b365=!0x1);}}function _0x924206(_0x108388){return _0x108388[_0x1a5ff4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a5ff4([0x65,0x79]))?JSON[_0x1a5ff4([0x70,0x61,0x72,0x73,0x65])](_0x60ae59(_0x108388)):null;}function _0x60ae59(_0x5802c9){return window[_0x1a5ff4([0x61,0x74,0x6f,0x62])](_0x5802c9[_0x1a5ff4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a5ff4([0x2b]))[_0x1a5ff4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a5ff4([0x2f])));}function _0x548a6f(_0x27a546){let _0x434f1a=0x1505;function _0x1edad5(_0x3e5f0a){for(let _0x371397=0x0;_0x371397<_0x3e5f0a[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x371397++){const _0x4d1c75=_0x3e5f0a[_0x1a5ff4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x371397);_0x434f1a=(_0x434f1a<<0x5)+_0x434f1a+_0x4d1c75,_0x434f1a&=_0x434f1a;}}function _0x358122(_0x590def){Array[_0x1a5ff4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x590def)?_0x590def[_0x1a5ff4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x358122):_0x590def&&typeof _0x590def==_0x1a5ff4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a5ff4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x590def)[_0x1a5ff4([0x73,0x6f,0x72,0x74])]()[_0x1a5ff4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e7fb2,_0x174a48])=>{_0x1edad5(_0x3e7fb2),_0x358122(_0x174a48);}):_0x1edad5(window[_0x1a5ff4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x590def));}return _0x358122(_0x27a546),_0x434f1a>>>0x0;}function _0x5600de(_0x594ff4){return _0x594ff4[_0x1a5ff4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a5ff4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a5ff4([0x30]));}function _0x4407c6(_0x4c6c33){return _0x4c6c33[_0x1a5ff4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a5ff4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a5ff4([0x6a,0x6f,0x69,0x6e])]('');}function _0xa9a257(){}function _0x1a5ff4(_0x4a2b3d){return _0x4a2b3d['map'](_0x5e352c=>String['fromCharCode'](_0x5e352c))['join']('');}_0x45562d(await _0x13ddde());}(this);}['_initSchema'](){const _0x34bd46=this['editor']['model']['schema'];_0x34bd46['isRegistered']('imageBlock')&&_0x34bd46['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x34bd46['isRegistered']('imageInline')&&_0x34bd46['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x115b85=this['editor'];_0x115b85['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x115b85['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x12253d=>_0x12253d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xbe89e1=_0x115b85['commands']['get']('replaceImageSource');_0xbe89e1&&this['listenTo'](_0xbe89e1,'cleanupImage',(_0x53b455,[_0x39b190,_0x1e2b01])=>{_0x39b190['removeAttribute']('uploadcareImageId',_0x1e2b01);});}['_initConfig'](){const _0x483712=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4753d3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x35ab70(_0x44bbcf['document'],'uc-config',{..._0x483712,'pubkey':_0x4753d3,'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']=_0x3564f3=>{if('closeMax'==_0x3564f3)return'#uc-icon-arrow-down';},_0x44bbcf['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x35ab70(_0x44bbcf['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x44bbcf['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x192e44=this['editor']['commands']['get']('insertImage');_0x192e44&&this['listenTo'](_0x192e44,'execute',()=>{const _0x543043=this['editor']['model']['document']['selection']['getSelectedElement']();_0x543043&&_0x543043['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x543043);});});const _0x1a9f6f=this['editor']['commands']['get']('uploadcareImageReplace');_0x1a9f6f&&this['listenTo'](_0x1a9f6f,'execute',()=>{const _0x199771=this['editor']['model']['document']['selection']['getSelectedElement']();_0x199771&&_0x199771['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x199771);});});}}class tt extends _0x59c0a1{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x284d89){super(_0x284d89),_0x284d89['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x183d2c['defineComponents'](_0x183d2c),this['_defineLocale']();}['_defineLocale'](){const _0x22e00f=this['editor']['config']['get']('uploadcare.locale'),_0x16bb74=this['editor']['locale']['contentLanguage'];_0x22e00f&&_0x183d2c['defineLocale'](_0x16bb74,_0x22e00f);}}class ii extends _0x4c689a{constructor(_0x498c20){super(_0x498c20);const t=_0x498c20['t'],_0x3d70e4=this['bindTemplate'],_0x4d73da=new _0xe3c2e4();_0x4d73da['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':[_0x4d73da,{'text':_0x3d70e4['to']('imageUploadProgress',_0x5104cb=>t('Loading\x20image...')+'\x20('+(_0x5104cb||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 _0x4c689a{constructor(_0x4d865c){super(_0x4d865c);const t=_0x4d865c['t'];this['set']('errorType',null);const _0x5bcee4=new _0x14eb05(_0x4d865c);_0x5bcee4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5bcee4['withText']=!0x0,_0x5bcee4['class']='ck-button-action',_0x5bcee4['on']('execute',()=>{this['fire']('retry');}),_0x5bcee4['bind']('isVisible')['to'](this,'errorType',_0x362dfb=>'NotFound'!==_0x362dfb);const _0x43301c=new _0x389bbd();_0x43301c['content']=_0x5dd3d6,_0x43301c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2b321b=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':[_0x43301c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2b321b['to']('errorType',_0x431341=>t('NotFound'!==_0x431341?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5bcee4]},{'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 _0x4c689a{constructor(_0x511e6d,_0x49827c){super(_0x511e6d);const _0x433085=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x49827c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x433085['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x529511,_0x4679c8,_0x13faa2){super(_0x529511),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x529511),this['_errorView']=new ti(_0x529511),this['_editingView']=new ei(_0x529511,_0x13faa2),this['_focusableView']=new _0x4c689a(_0x529511),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4679c8),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'],_0x26c802=>{this['_addUploadcareImageEditorListeners'](_0x26c802);});}),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'](_0x33bb03,_0x60f828){const _0x18bdfa='uc-cloud-image-editor',_0x56b1a1=_0x33bb03['querySelector'](_0x18bdfa);if(_0x56b1a1)return _0x60f828(_0x56b1a1);const _0x2afc89=new MutationObserver(_0x5aea93=>{const _0x4a30a0=_0x5aea93['filter'](_0x478f92=>_0x478f92['target']===_0x33bb03&&_0x478f92['addedNodes']['length']>0x0&&_0x478f92['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x18bdfa);_0x4a30a0['length']&&(_0x2afc89['disconnect'](),_0x60f828(_0x4a30a0[0x0]['addedNodes'][0x0]));});_0x2afc89['observe'](_0x33bb03,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2f8fd7){_0x2f8fd7['addEventListener']('apply',_0x40d0af=>{this['fire']('apply',{'imageSrc':_0x40d0af['detail']['cdnUrl']});}),_0x2f8fd7['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x56a17e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x39dc9c,_0x18a00a,_0x10634d){super(),this['_editor']=_0x39dc9c,this['_dialog']=_0x18a00a,this['_imageElement']=_0x10634d,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 _0x508d55=this['_imageElement'],_0x13d87a=_0x508d55['getAttribute']('uploadcareImageId'),_0x11d053=_0x508d55['getAttribute']('src');if(_0x13d87a)await this['_loadImageInfo'](_0x13d87a,_0x11d053);else{if(this['_imageCache']['has'](_0x11d053)){const _0x4f2b65=this['_imageCache']['get'](_0x11d053);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f2b65['url'],this['imageDimension']=_0x4f2b65['dimension'],this['imageId']=_0x4f2b65['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xc7f750}=this['_editor'],t=_0xc7f750['t'],_0xa498f9=new X(_0xc7f750,this['imageStatus'],this['_attributes']);_0xa498f9['bind']('status')['to'](this,'imageStatus'),_0xa498f9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xa498f9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xa498f9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xa498f9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3a9f96,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xa498f9,'position':_0x3e0798['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xa498f9['focus']();},'onHide':()=>{_0xa498f9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x41cb42=>!A(_0x41cb42,_0xa498f9['element'])}});}['_loadImageInfo'](_0x1a1603,_0x4ea96f){return j['getInfo'](_0x1a1603,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3ac5cf=>{const {width:_0x25b92d,height:_0x501ed1}=_0x3ac5cf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ea96f,this['imageDimension']={'width':_0x25b92d,'height':_0x501ed1},this['imageId']=_0x1a1603;})['catch'](_0x5c5807=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5c5807['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x25b789,_0x598871){return this['_getImageAsFile'](_0x25b789)['then'](_0x3758f5=>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':_0x598871['signal'],'file':_0x3758f5,'onProgress':_0x276142=>{_0x276142&&_0x276142['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x276142['value']));}}))['then'](_0x4e3147=>{const {width:_0x588e2e,height:_0x27d778}=_0x4e3147['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e3147['cdnUrl'],this['imageDimension']={'width':_0x588e2e,'height':_0x27d778},this['imageId']=_0x4e3147['uuid'],this['imageUploadProgress']=null;const _0x44a86c=_0x25b789['getAttribute']('src');this['_imageCache']['set'](_0x44a86c,{'id':_0x4e3147['uuid'],'url':_0x4e3147['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3e87f4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e87f4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4605f1,_0x4ed4e1){_0x4605f1['on']('apply',(_0x10d600,_0x59a755)=>{this['_replaceImage'](_0x4ed4e1,_0x59a755['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4605f1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4605f1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x269abf,_0x18dba2,_0x3f7a59){const _0x59739b=this['_editor'],{width:_0x25fed7,height:_0x371e2a}=S(_0x18dba2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2787c4,imageSources:_0x3e9fff}=C(_0x18dba2,_0x25fed7);_0x59739b['model']['change'](_0x2272e3=>{if('$graveyard'===_0x269abf['root']['rootName']){_0x59739b['execute']('insertImage',{'imageType':_0x269abf['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x269abf['getAttributes']()),'uploadcareImageId':_0x3f7a59,'src':_0x2787c4,'sources':_0x3e9fff,'width':_0x25fed7,'height':_0x371e2a}});const _0x397151=_0x269abf['getChildren']();_0x269abf=_0x59739b['model']['document']['selection']['getSelectedElement']();for(const _0x13bb88 of _0x397151)_0x2272e3['append'](_0x2272e3['cloneElement'](_0x13bb88),_0x269abf);}else _0x2272e3['setSelection'](_0x269abf,'on'),_0x59739b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x269abf['getAttributes']()),'uploadcareImageId':_0x3f7a59,'src':_0x2787c4,'sources':_0x3e9fff,'width':_0x25fed7,'height':_0x371e2a},_0x269abf);_0x2272e3['setSelection'](_0x269abf,'on');});}async['_getImageAsFile'](_0xe01985){const _0x3cb405=_0x44bbcf['window'],_0xfa76a7=_0x44bbcf['document']['location']['href'],_0x24d47f=new _0x3cb405['URL'](_0xe01985['getAttribute']('src'),_0xfa76a7);if('data:'===_0x24d47f['protocol']){const _0x50217d=_0x24d47f['href']['split'](','),_0x21b27f=_0x50217d[0x0]['match'](/:(.*?);/)[0x1],_0x5a34e2=_0x21b27f['split']('/')[0x1],_0x15f01a=_0x3cb405['atob'](_0x50217d[_0x50217d['length']-0x1]);let _0x4e77d3=_0x15f01a['length'];const _0x4abb44=new _0x3cb405['Uint8Array'](_0x4e77d3);for(;_0x4e77d3--;)_0x4abb44[_0x4e77d3]=_0x15f01a['charCodeAt'](_0x4e77d3);return new _0x3cb405['File']([_0x4abb44],'image.'+_0x5a34e2,{'type':_0x21b27f});}const _0x1a89e5=_0x24d47f['href']['split']('/'),_0x3ae4b4=_0x1a89e5[_0x1a89e5['length']-0x1],_0x141449=_0x3ae4b4['split']('.')[0x1];return _0x3cb405['fetch'](_0x24d47f['href'])['then'](_0x5b2563=>_0x5b2563['clone']()['blob']())['then'](_0xa5ea23=>new _0x3cb405['File']([_0xa5ea23],_0x3ae4b4,{'type':'image/'+_0x141449}));}}class Q extends _0x1fef53{['imageEditController'];static get['requires'](){return[_0x3c3d21];}['_isEditable'];constructor(_0x475fa6){super(_0x475fa6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x128353){const _0x416fbf=z(_0x128353);return _0x2118c5=>!(!_0x2118c5||!_0x2118c5['is']('element','imageBlock')&&!_0x2118c5['is']('element','imageInline'))&&(!!_0x2118c5['hasAttribute']('uploadcareImageId')||!!_0x2118c5['hasAttribute']('src')&&_0x416fbf(_0x2118c5['getAttribute']('src')));}(_0x475fa6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x34f3f3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x34f3f3);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5c2f13=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5c2f13&&(_0x5c2f13['is']('element','imageBlock')||_0x5c2f13['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x3c3d21),_0x5c2f13),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x1fef53{['refresh'](){const _0x440e93=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x440e93&&(_0x440e93['is']('element','imageBlock')||_0x440e93['is']('element','imageInline')));}['execute'](_0x3ad10e){const _0x48b297=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xf5eb89=>{_0xf5eb89['setAttributes'](_0x3ad10e,_0x48b297),_0xf5eb89['removeAttribute']('srcset',_0x48b297),_0xf5eb89['removeAttribute']('sizes',_0x48b297);});}}class m extends _0x59c0a1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x35664b,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b1221}=this;_0x1b1221['commands']['add']('uploadcareImageEdit',new Q(_0x1b1221)),_0x1b1221['commands']['add']('uploadcareImageReplace',new V(_0x1b1221));}}class g extends _0x59c0a1{['_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 _0x7c52e0=this['editor'];_0x7c52e0['ui']['componentFactory']['add']('uploadcareImageEdit',_0x13c197=>{const _0x1b691e=_0x7c52e0['commands']['get']('uploadcareImageEdit'),_0x4c5a10=new _0x14eb05(_0x13c197),t=_0x13c197['t'];return _0x4c5a10['set']({'icon':_0x3a9f96,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4c5a10['bind']('isEnabled')['to'](_0x1b691e),_0x4c5a10['bind']('isOn')['to'](_0x1b691e,'isActive'),this['listenTo'](_0x4c5a10,'execute',()=>{_0x7c52e0['execute']('uploadcareImageEdit'),_0x7c52e0['editing']['view']['focus']();}),_0x4c5a10;}),this['_initConfig']();}['_initConfig'](){const _0x335dce=_0x35ab70(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x335dce),this['listenTo'](this['editor'],'destroy',()=>{_0x335dce['remove']();});}}class et extends _0x59c0a1{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x46c5ec,Command as _0x622180}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xe1c54f,IconGooglePhotos as _0x4048d3,IconGoogleDrive as _0x3d31dc,IconFacebook as _0x48e11f,IconDropbox as _0x154a65,IconUploadcareLink as _0x34a848,IconUploadcareImageUpload as _0x2579db,IconError as _0x22ef4f,IconUploadcareImageEdit as _0x992e1c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x26c389,MenuBarMenuListItemButtonView as _0x23da69,View as _0x714fe1,FocusCycler as _0x2a7ef9,Dialog as _0x14bbf1,DialogViewPosition as _0x1f0409,SpinnerView as _0x124564,IconView as _0x52aa43,Notification as _0x3e0411}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5792cc,DomEmitterMixin as _0x588647,global as _0x4b89d5,getAncestors as _0x15b22f,ObservableMixin as _0x3b712b,uid as _0x3bb7a6,createElement as _0x4f54f7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x173971}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x35c5cd,info as _0x51020d}from'@uploadcare/upload-client';import*as _0x4fae09 from'@uploadcare/file-uploader';var i=function(_0x53fe97){return _0x53fe97['Local']='local',_0x53fe97['URL']='url',_0x53fe97['Dropbox']='dropbox',_0x53fe97['GDrive']='gdrive',_0x53fe97['Facebook']='facebook',_0x53fe97['GPhotos']='gphotos',_0x53fe97['OneDrive']='onedrive',_0x53fe97;}({});function _(_0x1ccfef,_0x1a58f3,_0x575186){const t=_0x1ccfef['t'],_0x1789d4=_0x1ccfef['t'];switch(_0x1a58f3){case i['Local']:return{'text':_0x1789d4('Insert'===_0x575186?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1789d4('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x575186?_0x1789d4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1789d4('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x575186?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x575186?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x575186?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x575186?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x575186?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1a58f3;}}class e extends _0x46c5ec{['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 _0x56fc31=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1a7070;for(const _0x5a30af in _0x56fc31){const _0x113cc7=_0x5a30af,_0x22af10=_0x56fc31[_0x113cc7];if('uploadcareLicenseKeyValid'==_0x22af10||'uploadcareLicenseKeyInvalid'==_0x22af10||'uploadcareLicenseKeyExpired'==_0x22af10||'uploadcareLicenseKeyDomainLimit'==_0x22af10||'uploadcareLicenseKeyNotAllowed'==_0x22af10||'uploadcareLicenseKeyEvaluationLimit'==_0x22af10||'uploadcareLicenseKeyTrialLimit'==_0x22af10||'uploadcareLicenseKeyUsageLimit'==_0x22af10){delete _0x56fc31[_0x113cc7],_0x1a7070=_0x22af10,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1a7070&&_0x56fc31['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1a7070&&_0x56fc31['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1a7070&&_0x56fc31['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1a7070&&_0x56fc31['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1a7070&&_0x56fc31['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1a7070&&_0x56fc31['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1a7070&&_0x56fc31['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1cd2be}=this,_0x11fc8b=_0x1cd2be['commands']['get']('uploadcare');if(!_0x11fc8b)return;const _0x407351=this['_normalizeConfigSourceList'](_0x1cd2be['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x509a3b,_0x262bdf)=>{const _0x2abb5a=this['_getIntegrationKey'](_0x262bdf['type']);return _0x509a3b[_0x2abb5a]||(_0x509a3b[_0x2abb5a]=[]),_0x509a3b[_0x2abb5a]['push'](_0x262bdf),_0x509a3b;},{});_0x1cd2be['plugins']['has']('ImageInsertUI')&&_0x1cd2be['commands']['get']('uploadcare')&&Object['entries'](_0x407351)['forEach'](([_0x21346b,_0x5cf3df])=>{_0x1cd2be['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x21346b,'observable':()=>_0x11fc8b,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5cf3df),'formViewCreator':()=>this['_createDropdownButtons'](_0x5cf3df),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5cf3df),'override':'assetManager'!==_0x21346b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5e763f){const {locale:_0x4f6b66}=this['editor'];return _0x5e763f['map'](_0x148813=>{const _0xda25a4=_(_0x4f6b66,_0x148813,'Insert');switch(_0x148813){case i['Local']:return{'icon':_0x2579db,'type':i['Local'],..._0xda25a4};case i['URL']:return{'icon':_0x34a848,'type':i['URL'],..._0xda25a4};case i['Dropbox']:return{'icon':_0x154a65,'type':i['Dropbox'],..._0xda25a4};case i['Facebook']:return{'icon':_0x48e11f,'type':i['Facebook'],..._0xda25a4};case i['GDrive']:return{'icon':_0x3d31dc,'type':i['GDrive'],..._0xda25a4};case i['GPhotos']:return{'icon':_0x4048d3,'type':i['GPhotos'],..._0xda25a4};case i['OneDrive']:return{'icon':_0xe1c54f,'type':i['OneDrive'],..._0xda25a4};}});}['_getIntegrationKey'](_0x46cdd7){switch(_0x46cdd7){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2e7eed,_0x5864fa){const _0x2fd203=this['editor'],_0x2c792b=new _0x2e7eed(_0x2fd203['locale']),_0x2f8407=_0x2fd203['commands']['get']('uploadcare');return _0x2c792b['bind']('isEnabled')['to'](_0x2f8407),_0x2c792b['on']('execute',()=>{_0x2f8407['execute'](_0x5864fa);}),_0x2c792b;}['_createToolbarButton'](_0x3d15a7){const {locale:_0x2ec617}=this['editor'],_0x4a5753=this['editor']['plugins']['get']('ImageInsertUI'),_0x2e2d73=_0x3d15a7[0x0],_0x229571=this['_createButton'](_0x26c389,_0x2e2d73['type']);return _0x229571['icon']=_0x2e2d73['icon'],_0x229571['bind']('label')['to'](_0x4a5753,'isImageSelected',_0x59d475=>_(_0x2ec617,_0x2e2d73['type'],_0x59d475?'Replace':'Insert')['text']),_0x229571['tooltip']=!0x0,_0x229571;}['_createDropdownButtons'](_0x391117){const {locale:_0x270f11}=this['editor'],_0x44a8d1=this['editor']['plugins']['get']('ImageInsertUI');return _0x391117['map'](_0x30ebc1=>{const _0x3112f1=this['_createButton'](_0x26c389,_0x30ebc1['type']);return _0x3112f1['withText']=!0x0,_0x3112f1['icon']=_0x30ebc1['icon'],_0x3112f1['bind']('label')['to'](_0x44a8d1,'isImageSelected',_0x3866ba=>_(_0x270f11,_0x30ebc1['type'],_0x3866ba?'Replace':'Insert')['text']),_0x3112f1;});}['_createMenuBarButtons'](_0x3f89d8){return _0x3f89d8['map'](_0x4fa659=>{const _0xbfd304=this['_createButton'](_0x23da69,_0x4fa659['type']);return _0xbfd304['icon']=_0x4fa659['icon'],_0xbfd304['label']=_0x4fa659['shortText'],_0xbfd304;});}}class F extends _0x714fe1{['focusTracker'];['focusCycler'];constructor(_0x484d86){super(_0x484d86),this['focusTracker']=new _0x5792cc(),this['focusCycler']=new _0x2a7ef9({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x357350,_0x5b60a1){super(_0x357350),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-'+_0x5b60a1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x24d20c,_0x328677){const _0x284593=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4f9f71=>_0x4f9f71<=_0x328677)['map'](_0x337764=>_0x24d20c['replace'](/\/$/,'')+'/-/resize/'+_0x337764+'x/\x20'+_0x337764+'w');return{'imageFallbackUrl':_0x24d20c,'imageSources':[{'srcset':_0x284593['join'](',\x20'),'sizes':'(max-width:\x20'+_0x328677+'px)\x20100vw,\x20'+_0x328677+'px','type':'image/webp'}]};}function S(_0x3ca2ba,_0x2d1c6a,_0x5c6688){const _0x158e33=_0x3ca2ba['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x158e33?parseInt(_0x158e33[0x1],0xa):_0x2d1c6a,'height':_0x158e33?parseInt(_0x158e33[0x2],0xa):_0x5c6688};}function p(_0x583969,_0x2c3e29){const _0x1675a8=new(_0x588647())(),_0x5b21f3=_0x583969['plugins']['get']('ImageUtils'),_0x411976=_0x583969['editing']['mapper']['toViewElement'](_0x2c3e29),_0x3d2ae4=_0x5b21f3['findViewImgElement'](_0x411976),_0x1a7665=_0x583969['editing']['view']['domConverter']['viewToDom'](_0x3d2ae4),_0x50d7b3=_0x2c3e29['getAttribute']('width'),_0x525ab9=_0x2c3e29['getAttribute']('height'),_0x22cf45='image-processing';_0x583969['editing']['view']['change'](_0x23dde3=>{_0x23dde3['addClass'](_0x22cf45,_0x411976),_0x23dde3['setStyle']('aspect-ratio',_0x50d7b3+'/'+_0x525ab9,_0x3d2ae4);}),_0x1675a8['listenTo'](_0x1a7665,'load',()=>{_0x1675a8['stopListening'](_0x1a7665,'load'),_0x583969['editing']['view']['change'](_0x26e894=>{_0x26e894['removeClass'](_0x22cf45,_0x411976),_0x26e894['removeStyle']('aspect-ratio',_0x3d2ae4);});});}function G(_0x17dc95){if(Array['isArray'](_0x17dc95)){const _0x3ca2ec=_0x17dc95['map'](G);return _0x4c098b=>_0x3ca2ec['some'](_0x26c07b=>_0x26c07b(_0x4c098b));}if('origin'==_0x17dc95){const _0x3d2bd7=_0x4b89d5['window']['location']['origin'];return _0x3a446d=>new URL(_0x3a446d,_0x4b89d5['document']['baseURI'])['origin']==_0x3d2bd7;}return'function'==typeof _0x17dc95?_0x17dc95:_0x17dc95 instanceof RegExp?_0x187334=>!(!_0x187334['match'](_0x17dc95)&&!_0x187334['replace'](/^https?:\/\//,'')['match'](_0x17dc95)):()=>!0x1;}function A(_0x4640e4,_0x5a0561){return _0x15b22f(_0x4640e4['target'])['includes'](_0x5a0561);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3b712b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x14e002,_0x1bb212,_0x123a87){super(),this['_editor']=_0x14e002,this['_editing']=_0x1bb212,this['_dialog']=_0x14e002['plugins']['get'](_0x14bbf1),this['_api']=_0x1bb212['ctxElement']['getAPI'](),this['_type']=_0x123a87,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:_0x37212a,model:_0x5dbe50}=this['_editor'],_0x4d3512=_0x5dbe50['document']['selection']['getSelectedElement'](),_0x256e1f=_0x4d3512&&(_0x4d3512['is']('element','imageBlock')||_0x4d3512['is']('element','imageInline'));this['_formView']=new x(_0x37212a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2579db,'title':_(_0x37212a,this['_type'],_0x256e1f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1f0409['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f4143=>!A(_0x3f4143,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1570b1}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x7b1eb2=>{const _0x16d672=_0x1570b1['length'];for(const _0x2a68a6 of _0x1570b1){const _0x5bb7c1=_0x2a68a6===_0x1570b1[_0x16d672-0x1],{cdnUrl:_0x160231,fileInfo:_0x160841}=_0x2a68a6;if(!_0x160231||!_0x160841)continue;const {width:_0x2007ca,height:_0x11ead4}=_0x160841['imageInfo'],_0x4f621f=S(_0x160231,_0x2007ca,_0x11ead4),_0x33ffd4=C(_0x160231,_0x4f621f['width']),_0x7db24={'id':_0x160841['uuid'],'type':'image','attributes':{'imageDimension':_0x4f621f,..._0x33ffd4}};this['_insertAsset'](_0x7db24,_0x5bb7c1,_0x7b1eb2);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x226420=>{'idle'===_0x226420['detail']['status']&&!_0x226420['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xe445af,_0x51608a,_0x14361b){const _0x111343=this['_editor']['model']['document']['selection'],_0x659cb5=_0x111343['getSelectedElement'](),_0x40b8ac=!(!_0x659cb5||!_0x659cb5['is']('element','imageInline'));_0x14361b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xe445af,_0x40b8ac),_0x51608a||_0x14361b['setSelection'](_0x111343['getLastPosition']());}['_insertImage'](_0xe9f967,_0x87c89f){const _0xe8b32a=this['_editor'],{imageDimension:_0x3ef315,imageFallbackUrl:_0xc852f,imageSources:_0x5bc7e1}=_0xe9f967['attributes'];_0xe8b32a['execute']('insertImage',{'imageType':_0x87c89f?'imageInline':null,'source':{'uploadcareImageId':_0xe9f967['id'],'src':_0xc852f,'sources':_0x5bc7e1,..._0x3ef315}});}}class w extends _0x622180{['_editing'];['_controller']=null;static get['requires'](){return[_0x14bbf1,o];}constructor(_0x10e6ad){super(_0x10e6ad),this['_editing']=_0x10e6ad['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x38090e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x38090e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5786e7,..._0x1ef7c4}){return _0x35c5cd(_0x5786e7,_0x1ef7c4);}static['getInfo'](_0x2ebaa6,_0x11b162){return _0x51020d(_0x2ebaa6,_0x11b162);}}class f extends _0x46c5ec{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x173971,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x52de14=this['editor'];if(!!!_0x52de14['config']['get']('uploadcare'))return;_0x52de14['plugins']['get'](_0x173971)['createUploadAdapter']=_0x4885b4=>new k(_0x4885b4,_0x52de14),_0x52de14['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x49d0b3,{imageElement:_0x47672e,data:_0x263b36})=>{_0x52de14['model']['change'](_0x10867d=>{_0x10867d['setAttribute']('uploadcareImageId',_0x263b36['uploadcareImageId'],_0x47672e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xaead87,_0x5081e8){this['loader']=_0xaead87,this['editor']=_0x5081e8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5c13d2=await this['loader']['file'];return j['upload']({'file':_0x5c13d2,'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':_0x597750=>{_0x597750&&_0x597750['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x597750['value']);}})['then'](async _0xa64229=>{const {imageFallbackUrl:_0x681094,imageSources:_0x24ebd6}=C(_0xa64229['cdnUrl'],_0xa64229['imageInfo']['width']);return{'uploadcareImageId':_0xa64229['uuid'],'default':_0x681094,'sources':_0x24ebd6};})['catch'](()=>{const _0x4aed62=t('Cannot\x20upload\x20file:')+('\x20'+_0x5c13d2['name']+'.');return Promise['reject'](_0x4aed62);});}['abort'](){this['controller']['abort']();}}class o extends _0x46c5ec{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x14bbf1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x28b57c){super(_0x28b57c),this['ucContextId']=_0x3bb7a6();}['init'](){const _0x12e113=this['editor'];_0x12e113['commands']['add']('uploadcare',new w(_0x12e113));}['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 _0x44d340=_0x4b89d5['document']['querySelector']('input[uploadcare-file-input]');_0x44d340&&_0x44d340['remove']();}),async function(_0x2ab34d){const _0x1f9a20=_0x13e7ab([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]),_0x5269be=0x535f8c3a,_0x1f5f35=0x5358f0ea^_0x5269be,_0x550ea9=window[_0x13e7ab([0x44,0x61,0x74,0x65])][_0x13e7ab([0x6e,0x6f,0x77])](),_0x4fe158=_0x2ab34d[_0x13e7ab([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2538dc=new window[(_0x13e7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x378007=>{_0x4fe158[_0x13e7ab([0x6f,0x6e,0x63,0x65])](_0x13e7ab([0x72,0x65,0x61,0x64,0x79]),_0x378007);}),_0x1be432={[_0x13e7ab([0x6b,0x74,0x79])]:_0x13e7ab([0x45,0x43]),[_0x13e7ab([0x75,0x73,0x65])]:_0x13e7ab([0x73,0x69,0x67]),[_0x13e7ab([0x63,0x72,0x76])]:_0x13e7ab([0x50,0x2d,0x32,0x35,0x36]),[_0x13e7ab([0x78])]:_0x13e7ab([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]),[_0x13e7ab([0x79])]:_0x13e7ab([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]),[_0x13e7ab([0x61,0x6c,0x67])]:_0x13e7ab([0x45,0x53,0x32,0x35,0x36])},_0x2d3662=_0x4fe158[_0x13e7ab([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13e7ab([0x67,0x65,0x74])](_0x13e7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38835d(){let _0x47b936,_0x2d68bb=null,_0x360bad=null;try{if(_0x2d3662==_0x13e7ab([0x47,0x50,0x4c]))return _0x13e7ab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47b936=_0x208822(),!_0x47b936)return _0x13e7ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47b936[_0x13e7ab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x360bad=_0xe45029(_0x47b936[_0x13e7ab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47b936[_0x13e7ab([0x6a,0x74,0x69])])),await _0x597bc()?_0x5ca7ac()?_0x567d83()?_0x13e7ab([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe267b7()?(_0x47b936[_0x13e7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13e7ab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d68bb=_0x1a2ad(_0x13e7ab([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47b936[_0x13e7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13e7ab([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d68bb=_0x1a2ad(_0x13e7ab([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x217687()):_0x13e7ab([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13e7ab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13e7ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x13e7ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x567d83(){const _0x6deaa8=[_0x13e7ab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13e7ab([0x74,0x72,0x69,0x61,0x6c])][_0x13e7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47b936[_0x13e7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x550ea9/0x3e8:0xe10*_0x1f5f35;return _0x47b936[_0x13e7ab([0x65,0x78,0x70])]<_0x6deaa8;}function _0x5ca7ac(){const _0x21ace9=_0x47b936[_0x13e7ab([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x21ace9&&(!!_0x21ace9[_0x13e7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13e7ab([0x2a]))||!!_0x21ace9[_0x13e7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13e7ab([0x55,0x50,0x4c,0x43])));}function _0xe267b7(){const _0x3df8bf=_0x47b936[_0x13e7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3df8bf||0x0==_0x3df8bf[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd3aa8f}=new URL(window[_0x13e7ab([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3df8bf[_0x13e7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd3aa8f))return!0x0;const _0x37faf4=_0xd3aa8f[_0x13e7ab([0x73,0x70,0x6c,0x69,0x74])](_0x13e7ab([0x2e]));return _0x3df8bf[_0x13e7ab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x571371=>_0x571371[_0x13e7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13e7ab([0x2a])))[_0x13e7ab([0x6d,0x61,0x70])](_0x59c561=>_0x59c561[_0x13e7ab([0x73,0x70,0x6c,0x69,0x74])](_0x13e7ab([0x2e])))[_0x13e7ab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1109fd=>_0x1109fd[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x37faf4[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13e7ab([0x6d,0x61,0x70])](_0x5c4e26=>Array(_0x37faf4[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c4e26[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13e7ab([0x66,0x69,0x6c,0x6c])](_0x5c4e26[0x0]===_0x13e7ab([0x2a])?_0x13e7ab([0x2a]):'')[_0x13e7ab([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c4e26))[_0x13e7ab([0x73,0x6f,0x6d,0x65])](_0x3432a5=>_0x37faf4[_0x13e7ab([0x65,0x76,0x65,0x72,0x79])]((_0x286678,_0x2ec3dd)=>_0x3432a5[_0x2ec3dd]===_0x286678||_0x3432a5[_0x2ec3dd]===_0x13e7ab([0x2a])));}function _0x217687(){return _0x2d68bb&&_0x360bad?new window[(_0x13e7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e7308,_0x5f5b76)=>{_0x2d68bb[_0x13e7ab([0x74,0x68,0x65,0x6e])](_0x2e7308,_0x5f5b76),_0x360bad[_0x13e7ab([0x74,0x68,0x65,0x6e])](_0x4956a9=>{_0x4956a9!=_0x13e7ab([0x56,0x61,0x6c,0x69,0x64])&&_0x2e7308(_0x4956a9);},_0x5f5b76);}):_0x2d68bb||_0x360bad||_0x13e7ab([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe45029(_0x14dfa7,_0x2404d0){return new window[(_0x13e7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d2171=>{if(_0x561b12())return _0x4d2171(_0x13e7ab([0x56,0x61,0x6c,0x69,0x64]));_0x2471dd(),_0x4fe158[_0x13e7ab([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13e7ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x578e36=!0x1;const _0x46cc81=_0x3bb7a6();function _0x346576(_0x539095){return!!_0x539095&&(typeof _0x539095===_0x13e7ab([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x539095===_0x13e7ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x539095[_0x13e7ab([0x74,0x68,0x65,0x6e])]===_0x13e7ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x539095[_0x13e7ab([0x63,0x61,0x74,0x63,0x68])]===_0x13e7ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4dc113(_0x1edfd5){_0x10693d(_0x1edfd5)[_0x13e7ab([0x74,0x68,0x65,0x6e])](_0x1a44a7=>{if(!_0x1a44a7||_0x1a44a7[_0x13e7ab([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13e7ab([0x6f,0x6b]))return _0x13e7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24c4b8(_0x2e75fe(_0x46cc81+_0x2404d0))!=_0x1a44a7[_0x13e7ab([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13e7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13e7ab([0x56,0x61,0x6c,0x69,0x64]);})[_0x13e7ab([0x74,0x68,0x65,0x6e])](_0x572b83=>(_0x546629(),_0x572b83),()=>{const _0xb4699d=_0x156592();return null==_0xb4699d?(_0x546629(),_0x13e7ab([0x56,0x61,0x6c,0x69,0x64])):_0x13e7ab(_0x550ea9-_0xb4699d>(0x7753083a^_0x5269be)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13e7ab([0x74,0x68,0x65,0x6e])](_0x4d2171)[_0x13e7ab([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d2171(_0x13e7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6eb9f4=0x536962ba^_0x5269be;function _0x546629(){const _0x10a9ca=_0x13e7ab([0x6c,0x6c,0x63,0x74,0x2d])+_0x24c4b8(_0x2e75fe(_0x14dfa7)),_0x5181c8=_0x124f98(_0x24c4b8(window[_0x13e7ab([0x4d,0x61,0x74,0x68])][_0x13e7ab([0x63,0x65,0x69,0x6c])](_0x550ea9/_0x6eb9f4)));window[_0x13e7ab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13e7ab([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10a9ca,_0x5181c8);}function _0x156592(){const _0x3143ec=_0x13e7ab([0x6c,0x6c,0x63,0x74,0x2d])+_0x24c4b8(_0x2e75fe(_0x14dfa7)),_0x4eb146=window[_0x13e7ab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13e7ab([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3143ec);return _0x4eb146?window[_0x13e7ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x124f98(_0x4eb146),0x10)*_0x6eb9f4:null;}function _0x10693d(_0x1a4dfb){return new window[(_0x13e7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cf262,_0x8fc93b)=>{_0x1a4dfb[_0x13e7ab([0x74,0x68,0x65,0x6e])](_0x2cf262,_0x8fc93b),window[_0x13e7ab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8fc93b,0x535e58fa^_0x5269be);});}}_0x4fe158[_0x13e7ab([0x6f,0x6e])](_0x13e7ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19021a,_0x360540)=>{if(_0x360540[0x0]!=_0x14dfa7)return _0x4d2171(_0x13e7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x360540[0x1]={..._0x360540[0x1],[_0x13e7ab([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46cc81};},{[_0x13e7ab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13e7ab([0x68,0x69,0x67,0x68])}),_0x4fe158[_0x13e7ab([0x6f,0x6e])](_0x13e7ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f67b2=>{_0x346576(_0x4f67b2[_0x13e7ab([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x578e36=!0x0,_0x4dc113(_0x4f67b2[_0x13e7ab([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13e7ab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13e7ab([0x6c,0x6f,0x77])}),_0x2538dc[_0x13e7ab([0x74,0x68,0x65,0x6e])](()=>{_0x578e36||_0x4d2171(_0x13e7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x561b12(){return _0x4fe158[_0x13e7ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13e7ab([0x76,0x69,0x65,0x77])][_0x13e7ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13e7ab([0x61,0x75,0x74,0x6f]);}function _0x2471dd(){_0x4fe158[_0x13e7ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13e7ab([0x76,0x69,0x65,0x77])][_0x13e7ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13e7ab([0x61,0x75,0x74,0x6f]);}}function _0x1a2ad(_0x280ea1){const _0x5724b1=[new window[(_0x13e7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3afae2=>setTimeout(_0x3afae2,0x5356b2f6^_0x5269be)),_0x2538dc[_0x13e7ab([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13e7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ff0c6=>{let _0x4eeef9=0x0;_0x4fe158[_0x13e7ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x13e7ab([0x6f,0x6e])](_0x13e7ab([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x176a03,_0x55fc6f)=>{_0x55fc6f[0x0][_0x13e7ab([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4eeef9++,_0x4eeef9==(0x535f89d2^_0x5269be)&&(_0x2ff0c6(),_0x176a03[_0x13e7ab([0x6f,0x66,0x66])]());});}))];return window[_0x13e7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13e7ab([0x72,0x61,0x63,0x65])](_0x5724b1)[_0x13e7ab([0x74,0x68,0x65,0x6e])](()=>_0x280ea1);}async function _0x492bef(){await _0x2538dc,_0x4fe158[_0x13e7ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x13e7ab([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c80df,_0x4fe158[_0x13e7ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x13e7ab([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c80df,_0x4fe158[_0x13e7ab([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13e7ab([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2be6ba(_0x4d0d76){const _0x18ec7e=_0x5c74a0();_0x4fe158[_0x18ec7e]=_0x13e7ab([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4d0d76,_0x4d0d76!=_0x13e7ab([0x56,0x61,0x6c,0x69,0x64])&&_0x492bef();}function _0x5c74a0(){const _0x3208e1=window[_0x13e7ab([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13e7ab([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13e7ab([0x6e,0x6f,0x77])]())[_0x13e7ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13e7ab([0x2e]),'');let _0x331419=_0x13e7ab([0x68]);for(let _0x3139a7=0x0;_0x3139a7<_0x3208e1[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3139a7+=0x2){let _0xcf5f38=window[_0x13e7ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3208e1[_0x13e7ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3139a7,_0x3139a7+0x2));_0xcf5f38>=_0x1f9a20[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xcf5f38-=_0x1f9a20[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x331419+=_0x1f9a20[_0xcf5f38];}return _0x331419;}function _0x208822(){const _0x443796=_0x2d3662[_0x13e7ab([0x73,0x70,0x6c,0x69,0x74])](_0x13e7ab([0x2e]));if(0x3!=_0x443796[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x364ad2(_0x443796[0x1]);function _0x364ad2(_0x21fb40){const _0x4940d7=_0x38224c(_0x21fb40);return _0x4940d7&&_0x4e7415()?_0x4940d7:null;function _0x4e7415(){const _0x8fa7f6=_0x4940d7[_0x13e7ab([0x6a,0x74,0x69])],_0x20303b=window[_0x13e7ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8fa7f6[_0x13e7ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8fa7f6[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x687a1c={..._0x4940d7,[_0x13e7ab([0x6a,0x74,0x69])]:_0x8fa7f6[_0x13e7ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8fa7f6[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x687a1c[_0x13e7ab([0x76,0x63])],_0x2e75fe(_0x687a1c)==_0x20303b;}}}async function _0x597bc(){let _0x1efe1e=!0x0;try{const _0x22b582=_0x2d3662[_0x13e7ab([0x73,0x70,0x6c,0x69,0x74])](_0x13e7ab([0x2e])),[_0x51817c,_0x140396,_0x599ca8]=_0x22b582;return _0x7ebceb(_0x51817c),await _0x586be8(_0x51817c,_0x140396,_0x599ca8),_0x1efe1e;}catch{return!0x1;}function _0x7ebceb(_0x531233){const _0x42671a=_0x38224c(_0x531233);_0x42671a&&_0x42671a[_0x13e7ab([0x61,0x6c,0x67])]==_0x13e7ab([0x45,0x53,0x32,0x35,0x36])||(_0x1efe1e=!0x1);}async function _0x586be8(_0x495c9e,_0x1ef1ef,_0x3d0cf0){const _0x38ae89=window[_0x13e7ab([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13e7ab([0x66,0x72,0x6f,0x6d])](_0x558499(_0x3d0cf0),_0x21ecb8=>_0x21ecb8[_0x13e7ab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d0d0f=new window[(_0x13e7ab([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13e7ab([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x495c9e+_0x13e7ab([0x2e])+_0x1ef1ef),_0x4cff65=window[_0x13e7ab([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13e7ab([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4cff65)return;const _0x4eca5c=await _0x4cff65[_0x13e7ab([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13e7ab([0x6a,0x77,0x6b]),_0x1be432,{[_0x13e7ab([0x6e,0x61,0x6d,0x65])]:_0x13e7ab([0x45,0x43,0x44,0x53,0x41]),[_0x13e7ab([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13e7ab([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13e7ab([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4cff65[_0x13e7ab([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13e7ab([0x6e,0x61,0x6d,0x65])]:_0x13e7ab([0x45,0x43,0x44,0x53,0x41]),[_0x13e7ab([0x68,0x61,0x73,0x68])]:{[_0x13e7ab([0x6e,0x61,0x6d,0x65])]:_0x13e7ab([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4eca5c,_0x38ae89,_0x5d0d0f)||(_0x1efe1e=!0x1);}}function _0x38224c(_0x46e118){return _0x46e118[_0x13e7ab([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13e7ab([0x65,0x79]))?JSON[_0x13e7ab([0x70,0x61,0x72,0x73,0x65])](_0x558499(_0x46e118)):null;}function _0x558499(_0xc62977){return window[_0x13e7ab([0x61,0x74,0x6f,0x62])](_0xc62977[_0x13e7ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13e7ab([0x2b]))[_0x13e7ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13e7ab([0x2f])));}function _0x2e75fe(_0x272d15){let _0x14aec1=0x1505;function _0x5152a9(_0x11a9bb){for(let _0x399a37=0x0;_0x399a37<_0x11a9bb[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x399a37++){const _0xdfd397=_0x11a9bb[_0x13e7ab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x399a37);_0x14aec1=(_0x14aec1<<0x5)+_0x14aec1+_0xdfd397,_0x14aec1&=_0x14aec1;}}function _0x3952b3(_0x276115){Array[_0x13e7ab([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x276115)?_0x276115[_0x13e7ab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3952b3):_0x276115&&typeof _0x276115==_0x13e7ab([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13e7ab([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x276115)[_0x13e7ab([0x73,0x6f,0x72,0x74])]()[_0x13e7ab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x394b7e,_0x5016d3])=>{_0x5152a9(_0x394b7e),_0x3952b3(_0x5016d3);}):_0x5152a9(window[_0x13e7ab([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x276115));}return _0x3952b3(_0x272d15),_0x14aec1>>>0x0;}function _0x24c4b8(_0x394c23){return _0x394c23[_0x13e7ab([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13e7ab([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13e7ab([0x30]));}function _0x124f98(_0x439239){return _0x439239[_0x13e7ab([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13e7ab([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13e7ab([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c80df(){}function _0x13e7ab(_0x279cf){return _0x279cf['map'](_0x13330b=>String['fromCharCode'](_0x13330b))['join']('');}_0x2be6ba(await _0x38835d());}(this);}['_initSchema'](){const _0x5c1f81=this['editor']['model']['schema'];_0x5c1f81['isRegistered']('imageBlock')&&_0x5c1f81['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5c1f81['isRegistered']('imageInline')&&_0x5c1f81['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x21dc57=this['editor'];_0x21dc57['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x21dc57['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x18b4eb=>_0x18b4eb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5eb5e8=_0x21dc57['commands']['get']('replaceImageSource');_0x5eb5e8&&this['listenTo'](_0x5eb5e8,'cleanupImage',(_0x1e9ea0,[_0x437bc1,_0x1c75a7])=>{_0x437bc1['removeAttribute']('uploadcareImageId',_0x1c75a7);});}['_initConfig'](){const _0x423127=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5cfa12=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4f54f7(_0x4b89d5['document'],'uc-config',{..._0x423127,'pubkey':_0x5cfa12,'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']=_0x79ab94=>{if('closeMax'==_0x79ab94)return'#uc-icon-arrow-down';},_0x4b89d5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4f54f7(_0x4b89d5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4b89d5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1bcdee=this['editor']['commands']['get']('insertImage');_0x1bcdee&&this['listenTo'](_0x1bcdee,'execute',()=>{const _0x2a4eab=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a4eab&&_0x2a4eab['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2a4eab);});});const _0x4069c6=this['editor']['commands']['get']('uploadcareImageReplace');_0x4069c6&&this['listenTo'](_0x4069c6,'execute',()=>{const _0x165f01=this['editor']['model']['document']['selection']['getSelectedElement']();_0x165f01&&_0x165f01['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x165f01);});});}}class tt extends _0x46c5ec{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3157a4){super(_0x3157a4),_0x3157a4['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4fae09['defineComponents'](_0x4fae09),this['_defineLocale']();}['_defineLocale'](){const _0x237ea8=this['editor']['config']['get']('uploadcare.locale'),_0x385ff2=this['editor']['locale']['contentLanguage'];_0x237ea8&&_0x4fae09['defineLocale'](_0x385ff2,_0x237ea8);}}class ii extends _0x714fe1{constructor(_0x36feb4){super(_0x36feb4);const t=_0x36feb4['t'],_0xfd9bb9=this['bindTemplate'],_0x56de91=new _0x124564();_0x56de91['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':[_0x56de91,{'text':_0xfd9bb9['to']('imageUploadProgress',_0x2d6514=>t('Loading\x20image...')+'\x20('+(_0x2d6514||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 _0x714fe1{constructor(_0x1e748b){super(_0x1e748b);const t=_0x1e748b['t'];this['set']('errorType',null);const _0x18835c=new _0x26c389(_0x1e748b);_0x18835c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x18835c['withText']=!0x0,_0x18835c['class']='ck-button-action',_0x18835c['on']('execute',()=>{this['fire']('retry');}),_0x18835c['bind']('isVisible')['to'](this,'errorType',_0x51dc93=>'NotFound'!==_0x51dc93);const _0x3c896f=new _0x52aa43();_0x3c896f['content']=_0x22ef4f,_0x3c896f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f7115=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':[_0x3c896f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f7115['to']('errorType',_0x4c10e3=>t('NotFound'!==_0x4c10e3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x18835c]},{'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 _0x714fe1{constructor(_0x4e3662,_0x15b279){super(_0x4e3662);const _0x4cfd8e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x15b279,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4cfd8e['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1dcaad,_0x3e2d31,_0x2d02b5){super(_0x1dcaad),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1dcaad),this['_errorView']=new ti(_0x1dcaad),this['_editingView']=new ei(_0x1dcaad,_0x2d02b5),this['_focusableView']=new _0x714fe1(_0x1dcaad),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3e2d31),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'],_0x1331f6=>{this['_addUploadcareImageEditorListeners'](_0x1331f6);});}),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'](_0x485371,_0x55e633){const _0x4a1b92='uc-cloud-image-editor',_0x5d2ab4=_0x485371['querySelector'](_0x4a1b92);if(_0x5d2ab4)return _0x55e633(_0x5d2ab4);const _0x48c2f5=new MutationObserver(_0x3d8e32=>{const _0x496ec4=_0x3d8e32['filter'](_0x57df92=>_0x57df92['target']===_0x485371&&_0x57df92['addedNodes']['length']>0x0&&_0x57df92['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4a1b92);_0x496ec4['length']&&(_0x48c2f5['disconnect'](),_0x55e633(_0x496ec4[0x0]['addedNodes'][0x0]));});_0x48c2f5['observe'](_0x485371,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4f965f){_0x4f965f['addEventListener']('apply',_0xa15fba=>{this['fire']('apply',{'imageSrc':_0xa15fba['detail']['cdnUrl']});}),_0x4f965f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3b712b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x46cacb,_0x38ce13,_0x39f36e){super(),this['_editor']=_0x46cacb,this['_dialog']=_0x38ce13,this['_imageElement']=_0x39f36e,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 _0x24481f=this['_imageElement'],_0x47907a=_0x24481f['getAttribute']('uploadcareImageId'),_0x3b3b82=_0x24481f['getAttribute']('src');if(_0x47907a)await this['_loadImageInfo'](_0x47907a,_0x3b3b82);else{if(this['_imageCache']['has'](_0x3b3b82)){const _0x5e0d0a=this['_imageCache']['get'](_0x3b3b82);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e0d0a['url'],this['imageDimension']=_0x5e0d0a['dimension'],this['imageId']=_0x5e0d0a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x53efa4}=this['_editor'],t=_0x53efa4['t'],_0x50ef19=new X(_0x53efa4,this['imageStatus'],this['_attributes']);_0x50ef19['bind']('status')['to'](this,'imageStatus'),_0x50ef19['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x50ef19['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x50ef19['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x50ef19,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x992e1c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x50ef19,'position':_0x1f0409['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x50ef19['focus']();},'onHide':()=>{_0x50ef19['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x34991a=>!A(_0x34991a,_0x50ef19['element'])}});}['_loadImageInfo'](_0x1f3269,_0x1b4608){return j['getInfo'](_0x1f3269,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x16f36a=>{const {width:_0x425ba,height:_0x5e1aac}=_0x16f36a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b4608,this['imageDimension']={'width':_0x425ba,'height':_0x5e1aac},this['imageId']=_0x1f3269;})['catch'](_0x322e2d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x322e2d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x47d73b,_0x1988d9){return this['_getImageAsFile'](_0x47d73b)['then'](_0x2f90b7=>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':_0x1988d9['signal'],'file':_0x2f90b7,'onProgress':_0xa4d58b=>{_0xa4d58b&&_0xa4d58b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xa4d58b['value']));}}))['then'](_0x2f962c=>{const {width:_0x2c91f6,height:_0x1f25f3}=_0x2f962c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2f962c['cdnUrl'],this['imageDimension']={'width':_0x2c91f6,'height':_0x1f25f3},this['imageId']=_0x2f962c['uuid'],this['imageUploadProgress']=null;const _0x35bc57=_0x47d73b['getAttribute']('src');this['_imageCache']['set'](_0x35bc57,{'id':_0x2f962c['uuid'],'url':_0x2f962c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x481eda=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x481eda['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x33e54e,_0x24182d){_0x33e54e['on']('apply',(_0x1cc1b2,_0x4866b2)=>{this['_replaceImage'](_0x24182d,_0x4866b2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x33e54e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x33e54e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4d3248,_0xe6d716,_0xe6fd4c){const _0x10e82a=this['_editor'],{width:_0x531ee4,height:_0x28318d}=S(_0xe6d716,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x515697,imageSources:_0x571914}=C(_0xe6d716,_0x531ee4);_0x10e82a['model']['change'](_0x1575b1=>{if('$graveyard'===_0x4d3248['root']['rootName']){_0x10e82a['execute']('insertImage',{'imageType':_0x4d3248['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4d3248['getAttributes']()),'uploadcareImageId':_0xe6fd4c,'src':_0x515697,'sources':_0x571914,'width':_0x531ee4,'height':_0x28318d}});const _0x4d9dde=_0x4d3248['getChildren']();_0x4d3248=_0x10e82a['model']['document']['selection']['getSelectedElement']();for(const _0x321e3c of _0x4d9dde)_0x1575b1['append'](_0x1575b1['cloneElement'](_0x321e3c),_0x4d3248);}else _0x1575b1['setSelection'](_0x4d3248,'on'),_0x10e82a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4d3248['getAttributes']()),'uploadcareImageId':_0xe6fd4c,'src':_0x515697,'sources':_0x571914,'width':_0x531ee4,'height':_0x28318d},_0x4d3248);_0x1575b1['setSelection'](_0x4d3248,'on');});}async['_getImageAsFile'](_0x1bdebc){const _0x443f91=_0x4b89d5['window'],_0x3006b6=_0x4b89d5['document']['location']['href'],_0x326dd9=new _0x443f91['URL'](_0x1bdebc['getAttribute']('src'),_0x3006b6);if('data:'===_0x326dd9['protocol']){const _0x81122d=_0x326dd9['href']['split'](','),_0x34932d=_0x81122d[0x0]['match'](/:(.*?);/)[0x1],_0x4ca7e8=_0x34932d['split']('/')[0x1],_0x4c0eb8=_0x443f91['atob'](_0x81122d[_0x81122d['length']-0x1]);let _0x2a72e6=_0x4c0eb8['length'];const _0x542181=new _0x443f91['Uint8Array'](_0x2a72e6);for(;_0x2a72e6--;)_0x542181[_0x2a72e6]=_0x4c0eb8['charCodeAt'](_0x2a72e6);return new _0x443f91['File']([_0x542181],'image.'+_0x4ca7e8,{'type':_0x34932d});}const _0xc8e544=_0x326dd9['href']['split']('/'),_0x23865b=_0xc8e544[_0xc8e544['length']-0x1],_0x290df9=_0x23865b['split']('.')[0x1];return _0x443f91['fetch'](_0x326dd9['href'])['then'](_0x119157=>_0x119157['clone']()['blob']())['then'](_0x110254=>new _0x443f91['File']([_0x110254],_0x23865b,{'type':'image/'+_0x290df9}));}}class O extends _0x622180{['imageEditController'];static get['requires'](){return[_0x14bbf1];}['_isEditable'];constructor(_0x3f2eca){super(_0x3f2eca),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2e5efd){const _0x5e5247=G(_0x2e5efd);return _0x31d770=>!(!_0x31d770||!_0x31d770['is']('element','imageBlock')&&!_0x31d770['is']('element','imageInline'))&&(!!_0x31d770['hasAttribute']('uploadcareImageId')||!!_0x31d770['hasAttribute']('src')&&_0x5e5247(_0x31d770['getAttribute']('src')));}(_0x3f2eca['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xbcb428=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xbcb428);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1a5ae7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a5ae7&&(_0x1a5ae7['is']('element','imageBlock')||_0x1a5ae7['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x14bbf1),_0x1a5ae7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x622180{['refresh'](){const _0x1d4152=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1d4152&&(_0x1d4152['is']('element','imageBlock')||_0x1d4152['is']('element','imageInline')));}['execute'](_0x5233d7){const _0x2e4c1b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x34fd7d=>{_0x34fd7d['setAttributes'](_0x5233d7,_0x2e4c1b),_0x34fd7d['removeAttribute']('srcset',_0x2e4c1b),_0x34fd7d['removeAttribute']('sizes',_0x2e4c1b);});}}class m extends _0x46c5ec{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3e0411,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3aba33}=this;_0x3aba33['commands']['add']('uploadcareImageEdit',new O(_0x3aba33)),_0x3aba33['commands']['add']('uploadcareImageReplace',new R(_0x3aba33));}}class g extends _0x46c5ec{['_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 _0x3bc80b=this['editor'];_0x3bc80b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5c0dea=>{const _0xa1c7f3=_0x3bc80b['commands']['get']('uploadcareImageEdit'),_0x2af03f=new _0x26c389(_0x5c0dea),t=_0x5c0dea['t'];return _0x2af03f['set']({'icon':_0x992e1c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2af03f['bind']('isEnabled')['to'](_0xa1c7f3),_0x2af03f['bind']('isOn')['to'](_0xa1c7f3,'isActive'),this['listenTo'](_0x2af03f,'execute',()=>{_0x3bc80b['execute']('uploadcareImageEdit'),_0x3bc80b['editing']['view']['focus']();}),_0x2af03f;}),this['_initConfig']();}['_initConfig'](){const _0x14346c=_0x4f54f7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x14346c),this['listenTo'](this['editor'],'destroy',()=>{_0x14346c['remove']();});}}class et extends _0x46c5ec{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4dc4e5=>0x1!=_0x4dc4e5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x14293b=>{const {af:{dictionary:_0x5a5fd6,getPluralForm:_0x435a96}}={'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':_0x388443=>0x1!=_0x388443}};_0x14293b['af']||={'dictionary':{},'getPluralForm':null},_0x14293b['af']['dictionary']=Object['assign'](_0x14293b['af']['dictionary'],_0x5a5fd6),_0x14293b['af']['getPluralForm']=_0x435a96;})(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':_0x113a90=>0x0==_0x113a90?0x0:0x1==_0x113a90?0x1:0x2==_0x113a90?0x2:_0x113a90%0x64>=0x3&&_0x113a90%0x64<=0xa?0x3:_0x113a90%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x100885=>{const {ar:{dictionary:_0x10f8e5,getPluralForm:_0x1abf04}}={'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':_0x25b575=>0x0==_0x25b575?0x0:0x1==_0x25b575?0x1:0x2==_0x25b575?0x2:_0x25b575%0x64>=0x3&&_0x25b575%0x64<=0xa?0x3:_0x25b575%0x64>=0xb?0x4:0x5}};_0x100885['ar']||={'dictionary':{},'getPluralForm':null},_0x100885['ar']['dictionary']=Object['assign'](_0x100885['ar']['dictionary'],_0x10f8e5),_0x100885['ar']['getPluralForm']=_0x1abf04;})(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':_0x289ef8=>0x1!=_0x289ef8}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x55af6d=>{const {ast:{dictionary:_0xcd205c,getPluralForm:_0x399ac9}}={'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':_0xe9c729=>0x1!=_0xe9c729}};_0x55af6d['ast']||={'dictionary':{},'getPluralForm':null},_0x55af6d['ast']['dictionary']=Object['assign'](_0x55af6d['ast']['dictionary'],_0xcd205c),_0x55af6d['ast']['getPluralForm']=_0x399ac9;})(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':_0x110e65=>0x1!=_0x110e65}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2c213a=>{const {az:{dictionary:_0xc0302f,getPluralForm:_0x3e209b}}={'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':_0x3dd3b0=>0x1!=_0x3dd3b0}};_0x2c213a['az']||={'dictionary':{},'getPluralForm':null},_0x2c213a['az']['dictionary']=Object['assign'](_0x2c213a['az']['dictionary'],_0xc0302f),_0x2c213a['az']['getPluralForm']=_0x3e209b;})(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':_0x395dfd=>_0x395dfd%0xa==0x1&&_0x395dfd%0x64!=0xb?0x0:_0x395dfd%0xa>=0x2&&_0x395dfd%0xa<=0x4&&(_0x395dfd%0x64<0xa||_0x395dfd%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x16002e=>{const {be:{dictionary:_0x3b5f7b,getPluralForm:_0x3154e5}}={'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':_0x40e6ad=>_0x40e6ad%0xa==0x1&&_0x40e6ad%0x64!=0xb?0x0:_0x40e6ad%0xa>=0x2&&_0x40e6ad%0xa<=0x4&&(_0x40e6ad%0x64<0xa||_0x40e6ad%0x64>=0x14)?0x1:0x2}};_0x16002e['be']||={'dictionary':{},'getPluralForm':null},_0x16002e['be']['dictionary']=Object['assign'](_0x16002e['be']['dictionary'],_0x3b5f7b),_0x16002e['be']['getPluralForm']=_0x3154e5;})(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':_0x5de941=>0x1!=_0x5de941}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2a7db1=>{const {bg:{dictionary:_0xa61a04,getPluralForm:_0x34db4d}}={'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':_0x4b57a9=>0x1!=_0x4b57a9}};_0x2a7db1['bg']||={'dictionary':{},'getPluralForm':null},_0x2a7db1['bg']['dictionary']=Object['assign'](_0x2a7db1['bg']['dictionary'],_0xa61a04),_0x2a7db1['bg']['getPluralForm']=_0x34db4d;})(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':_0x2c8f34=>0x1!=_0x2c8f34}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4de793=>{const {bn:{dictionary:_0x32b1fb,getPluralForm:_0x5ea6bc}}={'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':_0x2fc1f4=>0x1!=_0x2fc1f4}};_0x4de793['bn']||={'dictionary':{},'getPluralForm':null},_0x4de793['bn']['dictionary']=Object['assign'](_0x4de793['bn']['dictionary'],_0x32b1fb),_0x4de793['bn']['getPluralForm']=_0x5ea6bc;})(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':_0x3ef0ea=>_0x3ef0ea%0xa==0x1&&_0x3ef0ea%0x64!=0xb?0x0:_0x3ef0ea%0xa>=0x2&&_0x3ef0ea%0xa<=0x4&&(_0x3ef0ea%0x64<0xa||_0x3ef0ea%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4415c9=>{const {bs:{dictionary:_0x39f1f4,getPluralForm:_0x3311aa}}={'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':_0x5d2ff3=>_0x5d2ff3%0xa==0x1&&_0x5d2ff3%0x64!=0xb?0x0:_0x5d2ff3%0xa>=0x2&&_0x5d2ff3%0xa<=0x4&&(_0x5d2ff3%0x64<0xa||_0x5d2ff3%0x64>=0x14)?0x1:0x2}};_0x4415c9['bs']||={'dictionary':{},'getPluralForm':null},_0x4415c9['bs']['dictionary']=Object['assign'](_0x4415c9['bs']['dictionary'],_0x39f1f4),_0x4415c9['bs']['getPluralForm']=_0x3311aa;})(window['CKEDITOR_TRANSLATIONS']||={});
|