@ckeditor/ckeditor5-uploadcare 47.1.0 → 47.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.d.ts +54 -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 _0x25d9de,Command as _0x276389}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xbb6e58,IconGooglePhotos as _0x56cb5a,IconGoogleDrive as _0x3b8f3e,IconFacebook as _0x16eda1,IconDropbox as _0x319589,IconUploadcareLink as _0x435bab,IconUploadcareImageUpload as _0x1660eb,IconError as _0x501dc0,IconUploadcareImageEdit as _0x255d7b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x34f56a,MenuBarMenuListItemButtonView as _0x50d4d0,View as _0x1d48bd,FocusCycler as _0x17d295,Dialog as _0xc77812,DialogViewPosition as _0x72711b,SpinnerView as _0x508f29,IconView as _0x44f9f4,Notification as _0x4e8a93}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1472a6,DomEmitterMixin as _0x434256,global as _0x1d71c0,getAncestors as _0x14c287,ObservableMixin as _0x195942,uid as _0x4a3436,createElement as _0x11cb61}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1d7905}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5ce3a3,info as _0x21b0ba}from'@uploadcare/upload-client';import*as _0x46f203 from'@uploadcare/file-uploader';var i=function(_0x51c00c){return _0x51c00c['Local']='local',_0x51c00c['URL']='url',_0x51c00c['Dropbox']='dropbox',_0x51c00c['GDrive']='gdrive',_0x51c00c['Facebook']='facebook',_0x51c00c['GPhotos']='gphotos',_0x51c00c['OneDrive']='onedrive',_0x51c00c;}({});function _(_0x31be57,_0xaa5599,_0x15e7b8){const t=_0x31be57['t'],_0x159aa3=_0x31be57['t'];switch(_0xaa5599){case i['Local']:return{'text':_0x159aa3('Insert'===_0x15e7b8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x159aa3('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x15e7b8?_0x159aa3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x159aa3('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x15e7b8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x15e7b8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x15e7b8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x15e7b8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x15e7b8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xaa5599;}}class e extends _0x25d9de{['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 _0x3e34d5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18df67;for(const _0x4c06df in _0x3e34d5){const _0x5c6846=_0x4c06df,_0x53fe45=_0x3e34d5[_0x5c6846];if('uploadcareLicenseKeyValid'==_0x53fe45||'uploadcareLicenseKeyInvalid'==_0x53fe45||'uploadcareLicenseKeyExpired'==_0x53fe45||'uploadcareLicenseKeyDomainLimit'==_0x53fe45||'uploadcareLicenseKeyNotAllowed'==_0x53fe45||'uploadcareLicenseKeyEvaluationLimit'==_0x53fe45||'uploadcareLicenseKeyTrialLimit'==_0x53fe45||'uploadcareLicenseKeyUsageLimit'==_0x53fe45){delete _0x3e34d5[_0x5c6846],_0x18df67=_0x53fe45,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x18df67&&_0x3e34d5['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x18df67&&_0x3e34d5['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x18df67&&_0x3e34d5['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x18df67&&_0x3e34d5['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x18df67&&_0x3e34d5['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x18df67&&_0x3e34d5['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x18df67&&_0x3e34d5['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x377e15}=this,_0x50cea7=_0x377e15['commands']['get']('uploadcare');if(!_0x50cea7)return;const _0x3f9504=this['_normalizeConfigSourceList'](_0x377e15['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x497f88,_0x85b80d)=>{const _0x333b5d=this['_getIntegrationKey'](_0x85b80d['type']);return _0x497f88[_0x333b5d]||(_0x497f88[_0x333b5d]=[]),_0x497f88[_0x333b5d]['push'](_0x85b80d),_0x497f88;},{});_0x377e15['plugins']['has']('ImageInsertUI')&&_0x377e15['commands']['get']('uploadcare')&&Object['entries'](_0x3f9504)['forEach'](([_0x29b00b,_0xe213d5])=>{_0x377e15['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x29b00b,'observable':()=>_0x50cea7,'buttonViewCreator':()=>this['_createToolbarButton'](_0xe213d5),'formViewCreator':()=>this['_createDropdownButtons'](_0xe213d5),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xe213d5),'override':'assetManager'!==_0x29b00b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x13ba0d){const {locale:_0x31b813}=this['editor'];return _0x13ba0d['map'](_0x44a6fb=>{const _0x4154a4=_(_0x31b813,_0x44a6fb,'Insert');switch(_0x44a6fb){case i['Local']:return{'icon':_0x1660eb,'type':i['Local'],..._0x4154a4};case i['URL']:return{'icon':_0x435bab,'type':i['URL'],..._0x4154a4};case i['Dropbox']:return{'icon':_0x319589,'type':i['Dropbox'],..._0x4154a4};case i['Facebook']:return{'icon':_0x16eda1,'type':i['Facebook'],..._0x4154a4};case i['GDrive']:return{'icon':_0x3b8f3e,'type':i['GDrive'],..._0x4154a4};case i['GPhotos']:return{'icon':_0x56cb5a,'type':i['GPhotos'],..._0x4154a4};case i['OneDrive']:return{'icon':_0xbb6e58,'type':i['OneDrive'],..._0x4154a4};}});}['_getIntegrationKey'](_0x4257be){switch(_0x4257be){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1d13d1,_0x4f085e){const _0x2e6120=this['editor'],_0x367942=new _0x1d13d1(_0x2e6120['locale']),_0x547d67=_0x2e6120['commands']['get']('uploadcare');return _0x367942['bind']('isEnabled')['to'](_0x547d67),_0x367942['on']('execute',()=>{_0x547d67['execute'](_0x4f085e);}),_0x367942;}['_createToolbarButton'](_0x593879){const {locale:_0x3f5027}=this['editor'],_0x339968=this['editor']['plugins']['get']('ImageInsertUI'),_0xd5cee8=_0x593879[0x0],_0xac1665=this['_createButton'](_0x34f56a,_0xd5cee8['type']);return _0xac1665['icon']=_0xd5cee8['icon'],_0xac1665['bind']('label')['to'](_0x339968,'isImageSelected',_0x20ba89=>_(_0x3f5027,_0xd5cee8['type'],_0x20ba89?'Replace':'Insert')['text']),_0xac1665['tooltip']=!0x0,_0xac1665;}['_createDropdownButtons'](_0x1250e7){const {locale:_0x2ba12a}=this['editor'],_0x121fbc=this['editor']['plugins']['get']('ImageInsertUI');return _0x1250e7['map'](_0x45e132=>{const _0x1262c2=this['_createButton'](_0x34f56a,_0x45e132['type']);return _0x1262c2['withText']=!0x0,_0x1262c2['icon']=_0x45e132['icon'],_0x1262c2['bind']('label')['to'](_0x121fbc,'isImageSelected',_0x2f19aa=>_(_0x2ba12a,_0x45e132['type'],_0x2f19aa?'Replace':'Insert')['text']),_0x1262c2;});}['_createMenuBarButtons'](_0x4f1523){return _0x4f1523['map'](_0x316666=>{const _0x179371=this['_createButton'](_0x50d4d0,_0x316666['type']);return _0x179371['icon']=_0x316666['icon'],_0x179371['label']=_0x316666['shortText'],_0x179371;});}}class F extends _0x1d48bd{['focusTracker'];['focusCycler'];constructor(_0x2cf6ed){super(_0x2cf6ed),this['focusTracker']=new _0x1472a6(),this['focusCycler']=new _0x17d295({'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(_0xb2d50f,_0x214d02){super(_0xb2d50f),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-'+_0x214d02}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x32faee,_0x473193){const _0x4af1d7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2212e6=>_0x2212e6<=_0x473193)['map'](_0x4ab941=>_0x32faee['replace'](/\/$/,'')+'/-/resize/'+_0x4ab941+'x/\x20'+_0x4ab941+'w');return{'imageFallbackUrl':_0x32faee,'imageSources':[{'srcset':_0x4af1d7['join'](',\x20'),'sizes':'(max-width:\x20'+_0x473193+'px)\x20100vw,\x20'+_0x473193+'px','type':'image/webp'}]};}function S(_0x3282e7,_0xfca109,_0x3d64ee){const _0x379e0b=_0x3282e7['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x379e0b?parseInt(_0x379e0b[0x1],0xa):_0xfca109,'height':_0x379e0b?parseInt(_0x379e0b[0x2],0xa):_0x3d64ee};}function p(_0x52025a,_0x3de3de){const _0x14e210=new(_0x434256())(),_0x562060=_0x52025a['plugins']['get']('ImageUtils'),_0x3796c7=_0x52025a['editing']['mapper']['toViewElement'](_0x3de3de),_0x2227ab=_0x562060['findViewImgElement'](_0x3796c7),_0x11b878=_0x52025a['editing']['view']['domConverter']['viewToDom'](_0x2227ab),_0x3ad4b8=_0x3de3de['getAttribute']('width'),_0x56205f=_0x3de3de['getAttribute']('height'),_0x3ad0a5='image-processing';_0x52025a['editing']['view']['change'](_0x280b9e=>{_0x280b9e['addClass'](_0x3ad0a5,_0x3796c7),_0x280b9e['setStyle']('aspect-ratio',_0x3ad4b8+'/'+_0x56205f,_0x2227ab);}),_0x14e210['listenTo'](_0x11b878,'load',()=>{_0x14e210['stopListening'](_0x11b878,'load'),_0x52025a['editing']['view']['change'](_0x5ccc86=>{_0x5ccc86['removeClass'](_0x3ad0a5,_0x3796c7),_0x5ccc86['removeStyle']('aspect-ratio',_0x2227ab);});});}function G(_0xc18176){if(Array['isArray'](_0xc18176)){const _0x46db51=_0xc18176['map'](G);return _0xe9ff6e=>_0x46db51['some'](_0x1cd399=>_0x1cd399(_0xe9ff6e));}if('origin'==_0xc18176){const _0x59fca8=_0x1d71c0['window']['location']['origin'];return _0x335cb1=>new URL(_0x335cb1,_0x1d71c0['document']['baseURI'])['origin']==_0x59fca8;}return'function'==typeof _0xc18176?_0xc18176:_0xc18176 instanceof RegExp?_0x920d19=>!(!_0x920d19['match'](_0xc18176)&&!_0x920d19['replace'](/^https?:\/\//,'')['match'](_0xc18176)):()=>!0x1;}function A(_0xd48152,_0x364a8d){return _0x14c287(_0xd48152['target'])['includes'](_0x364a8d);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x195942(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x50ea5a,_0x42086e,_0x556eef){super(),this['_editor']=_0x50ea5a,this['_editing']=_0x42086e,this['_dialog']=_0x50ea5a['plugins']['get'](_0xc77812),this['_api']=_0x42086e['ctxElement']['getAPI'](),this['_type']=_0x556eef,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:_0x12e96c,model:_0x1f10e2}=this['_editor'],_0x5ce3b1=_0x1f10e2['document']['selection']['getSelectedElement'](),_0x516ef5=_0x5ce3b1&&(_0x5ce3b1['is']('element','imageBlock')||_0x5ce3b1['is']('element','imageInline'));this['_formView']=new x(_0x12e96c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1660eb,'title':_(_0x12e96c,this['_type'],_0x516ef5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x72711b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2713e9=>!A(_0x2713e9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1dbfbd}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1c828b=>{const _0x26bfb3=_0x1dbfbd['length'];for(const _0x1d2ad4 of _0x1dbfbd){const _0x3b27ed=_0x1d2ad4===_0x1dbfbd[_0x26bfb3-0x1],{cdnUrl:_0xd36f75,fileInfo:_0x1b97cd}=_0x1d2ad4;if(!_0xd36f75||!_0x1b97cd)continue;const {width:_0x5462e6,height:_0x57bc5e}=_0x1b97cd['imageInfo'],_0x5bb914=S(_0xd36f75,_0x5462e6,_0x57bc5e),_0x37e7c5=C(_0xd36f75,_0x5bb914['width']),_0x489bea={'id':_0x1b97cd['uuid'],'type':'image','attributes':{'imageDimension':_0x5bb914,..._0x37e7c5}};this['_insertAsset'](_0x489bea,_0x3b27ed,_0x1c828b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x32e618=>{'idle'===_0x32e618['detail']['status']&&!_0x32e618['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x7be72b,_0x33afc7,_0x4a1be9){const _0x2eb706=this['_editor']['model']['document']['selection'],_0x3fb01d=_0x2eb706['getSelectedElement'](),_0x2e7fed=!(!_0x3fb01d||!_0x3fb01d['is']('element','imageInline'));_0x4a1be9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x7be72b,_0x2e7fed),_0x33afc7||_0x4a1be9['setSelection'](_0x2eb706['getLastPosition']());}['_insertImage'](_0x2d5c17,_0x1dbefb){const _0x46f1e3=this['_editor'],{imageDimension:_0x129495,imageFallbackUrl:_0x1a76c3,imageSources:_0x445953}=_0x2d5c17['attributes'];_0x46f1e3['execute']('insertImage',{'imageType':_0x1dbefb?'imageInline':null,'source':{'uploadcareImageId':_0x2d5c17['id'],'src':_0x1a76c3,'sources':_0x445953,..._0x129495}});}}class w extends _0x276389{['_editing'];['_controller']=null;static get['requires'](){return[_0xc77812,o];}constructor(_0x58c162){super(_0x58c162),this['_editing']=_0x58c162['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x25a5b8){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x25a5b8);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1561df,..._0x5e1fd8}){return _0x5ce3a3(_0x1561df,_0x5e1fd8);}static['getInfo'](_0x51a935,_0x182e98){return _0x21b0ba(_0x51a935,_0x182e98);}}class f extends _0x25d9de{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1d7905,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5329e=this['editor'];if(!!!_0x5329e['config']['get']('uploadcare'))return;_0x5329e['plugins']['get'](_0x1d7905)['createUploadAdapter']=_0x35818a=>new k(_0x35818a,_0x5329e),_0x5329e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3cf084,{imageElement:_0x2e12fe,data:_0x348967})=>{_0x5329e['model']['change'](_0x106af5=>{_0x106af5['setAttribute']('uploadcareImageId',_0x348967['uploadcareImageId'],_0x2e12fe);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4071f9,_0xba3932){this['loader']=_0x4071f9,this['editor']=_0xba3932,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xa0c5b0=await this['loader']['file'];return j['upload']({'file':_0xa0c5b0,'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':_0x3761b3=>{_0x3761b3&&_0x3761b3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3761b3['value']);}})['then'](async _0x482825=>{const {imageFallbackUrl:_0x59b74e,imageSources:_0x23411a}=C(_0x482825['cdnUrl'],_0x482825['imageInfo']['width']);return{'uploadcareImageId':_0x482825['uuid'],'default':_0x59b74e,'sources':_0x23411a};})['catch'](()=>{const _0x72c351=t('Cannot\x20upload\x20file:')+('\x20'+_0xa0c5b0['name']+'.');return Promise['reject'](_0x72c351);});}['abort'](){this['controller']['abort']();}}class o extends _0x25d9de{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xc77812];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x18bbca){super(_0x18bbca),this['ucContextId']=_0x4a3436();}['init'](){const _0x12c958=this['editor'];_0x12c958['commands']['add']('uploadcare',new w(_0x12c958));}['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 _0x2cab2c=_0x1d71c0['document']['querySelector']('input[uploadcare-file-input]');_0x2cab2c&&_0x2cab2c['remove']();}),async function(_0x33f45f){const _0x1e3a7c=_0x1cab58([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0xb2ffde=0x3d8d0df,_0x285ebf=0x3dfa687^_0xb2ffde,_0xfa8c51=window[_0x1cab58([0x44,0x61,0x74,0x65])][_0x1cab58([0x6e,0x6f,0x77])](),_0x4b3303=_0x33f45f[_0x1cab58([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a247c=new window[(_0x1cab58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x215d5f=>{_0x4b3303[_0x1cab58([0x6f,0x6e,0x63,0x65])](_0x1cab58([0x72,0x65,0x61,0x64,0x79]),_0x215d5f);}),_0x4d65cf={[_0x1cab58([0x6b,0x74,0x79])]:_0x1cab58([0x45,0x43]),[_0x1cab58([0x75,0x73,0x65])]:_0x1cab58([0x73,0x69,0x67]),[_0x1cab58([0x63,0x72,0x76])]:_0x1cab58([0x50,0x2d,0x32,0x35,0x36]),[_0x1cab58([0x78])]:_0x1cab58([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]),[_0x1cab58([0x79])]:_0x1cab58([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]),[_0x1cab58([0x61,0x6c,0x67])]:_0x1cab58([0x45,0x53,0x32,0x35,0x36])},_0x2e1a8d=_0x4b3303[_0x1cab58([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1cab58([0x67,0x65,0x74])](_0x1cab58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e27c5(){let _0x125de5,_0x5aa756=null,_0x5030f4=null;try{if(_0x2e1a8d==_0x1cab58([0x47,0x50,0x4c]))return _0x1cab58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x125de5=_0x59ede5(),!_0x125de5)return _0x1cab58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x125de5[_0x1cab58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5030f4=_0x464d76(_0x125de5[_0x1cab58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x125de5[_0x1cab58([0x6a,0x74,0x69])])),await _0x5a0e97()?_0x44a48f()?_0x3f90ef()?_0x1cab58([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2dab9a()?(_0x125de5[_0x1cab58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cab58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5aa756=_0xa883d7(_0x1cab58([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x125de5[_0x1cab58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cab58([0x74,0x72,0x69,0x61,0x6c])&&(_0x5aa756=_0xa883d7(_0x1cab58([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x19beee()):_0x1cab58([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1cab58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1cab58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1cab58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f90ef(){const _0x2541bf=[_0x1cab58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1cab58([0x74,0x72,0x69,0x61,0x6c])][_0x1cab58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x125de5[_0x1cab58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xfa8c51/0x3e8:0xe10*_0x285ebf;return _0x125de5[_0x1cab58([0x65,0x78,0x70])]<_0x2541bf;}function _0x44a48f(){const _0x4cfaec=_0x125de5[_0x1cab58([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4cfaec&&(!!_0x4cfaec[_0x1cab58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cab58([0x2a]))||!!_0x4cfaec[_0x1cab58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cab58([0x55,0x50,0x4c,0x43])));}function _0x2dab9a(){const _0x56ca06=_0x125de5[_0x1cab58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56ca06||0x0==_0x56ca06[_0x1cab58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x54c20c}=new URL(window[_0x1cab58([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x56ca06[_0x1cab58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54c20c))return!0x0;const _0x448243=_0x54c20c[_0x1cab58([0x73,0x70,0x6c,0x69,0x74])](_0x1cab58([0x2e]));return _0x56ca06[_0x1cab58([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fdfd9=>_0x4fdfd9[_0x1cab58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cab58([0x2a])))[_0x1cab58([0x6d,0x61,0x70])](_0x261311=>_0x261311[_0x1cab58([0x73,0x70,0x6c,0x69,0x74])](_0x1cab58([0x2e])))[_0x1cab58([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35a36e=>_0x35a36e[_0x1cab58([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x448243[_0x1cab58([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1cab58([0x6d,0x61,0x70])](_0x35b55f=>Array(_0x448243[_0x1cab58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x35b55f[_0x1cab58([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1cab58([0x66,0x69,0x6c,0x6c])](_0x35b55f[0x0]===_0x1cab58([0x2a])?_0x1cab58([0x2a]):'')[_0x1cab58([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x35b55f))[_0x1cab58([0x73,0x6f,0x6d,0x65])](_0x4c8f18=>_0x448243[_0x1cab58([0x65,0x76,0x65,0x72,0x79])]((_0x5cdb2c,_0x530042)=>_0x4c8f18[_0x530042]===_0x5cdb2c||_0x4c8f18[_0x530042]===_0x1cab58([0x2a])));}function _0x19beee(){return _0x5aa756&&_0x5030f4?new window[(_0x1cab58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56af85,_0x22b445)=>{_0x5aa756[_0x1cab58([0x74,0x68,0x65,0x6e])](_0x56af85,_0x22b445),_0x5030f4[_0x1cab58([0x74,0x68,0x65,0x6e])](_0x684387=>{_0x684387!=_0x1cab58([0x56,0x61,0x6c,0x69,0x64])&&_0x56af85(_0x684387);},_0x22b445);}):_0x5aa756||_0x5030f4||_0x1cab58([0x56,0x61,0x6c,0x69,0x64]);}}function _0x464d76(_0x3614be,_0x353fd5){return new window[(_0x1cab58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x148c8b=>{if(_0x282444())return _0x148c8b(_0x1cab58([0x56,0x61,0x6c,0x69,0x64]));_0x1c8d3e(),_0x4b3303[_0x1cab58([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1cab58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39715c=!0x1;const _0x4454c1=_0x4a3436();function _0x3149c4(_0x32f0a4){return!!_0x32f0a4&&(typeof _0x32f0a4===_0x1cab58([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32f0a4===_0x1cab58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32f0a4[_0x1cab58([0x74,0x68,0x65,0x6e])]===_0x1cab58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32f0a4[_0x1cab58([0x63,0x61,0x74,0x63,0x68])]===_0x1cab58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x461e0e(_0x5828b1){_0x378722(_0x5828b1)[_0x1cab58([0x74,0x68,0x65,0x6e])](_0x20887e=>{if(!_0x20887e||_0x20887e[_0x1cab58([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1cab58([0x6f,0x6b]))return _0x1cab58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x23bd66(_0x4e84a2(_0x4454c1+_0x353fd5))!=_0x20887e[_0x1cab58([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1cab58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1cab58([0x56,0x61,0x6c,0x69,0x64]);})[_0x1cab58([0x74,0x68,0x65,0x6e])](_0x2b3945=>(_0x4c8e64(),_0x2b3945),()=>{const _0x15c83d=_0x1124c1();return null==_0x15c83d?(_0x4c8e64(),_0x1cab58([0x56,0x61,0x6c,0x69,0x64])):_0x1cab58(_0xfa8c51-_0x15c83d>(0x27d454df^_0xb2ffde)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1cab58([0x74,0x68,0x65,0x6e])](_0x148c8b)[_0x1cab58([0x63,0x61,0x74,0x63,0x68])](()=>{_0x148c8b(_0x1cab58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4204c4=0x3ee3e5f^_0xb2ffde;function _0x4c8e64(){const _0x14e884=_0x1cab58([0x6c,0x6c,0x63,0x74,0x2d])+_0x23bd66(_0x4e84a2(_0x3614be)),_0xb2295b=_0x117be5(_0x23bd66(window[_0x1cab58([0x4d,0x61,0x74,0x68])][_0x1cab58([0x63,0x65,0x69,0x6c])](_0xfa8c51/_0x4204c4)));window[_0x1cab58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cab58([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14e884,_0xb2295b);}function _0x1124c1(){const _0x3c0dec=_0x1cab58([0x6c,0x6c,0x63,0x74,0x2d])+_0x23bd66(_0x4e84a2(_0x3614be)),_0x3bf191=window[_0x1cab58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cab58([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c0dec);return _0x3bf191?window[_0x1cab58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x117be5(_0x3bf191),0x10)*_0x4204c4:null;}function _0x378722(_0x28a1ed){return new window[(_0x1cab58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xffb7e6,_0x6c2bab)=>{_0x28a1ed[_0x1cab58([0x74,0x68,0x65,0x6e])](_0xffb7e6,_0x6c2bab),window[_0x1cab58([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6c2bab,0x3d9041f^_0xb2ffde);});}}_0x4b3303[_0x1cab58([0x6f,0x6e])](_0x1cab58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a6d77,_0x5ccd8e)=>{if(_0x5ccd8e[0x0]!=_0x3614be)return _0x148c8b(_0x1cab58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ccd8e[0x1]={..._0x5ccd8e[0x1],[_0x1cab58([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4454c1};},{[_0x1cab58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cab58([0x68,0x69,0x67,0x68])}),_0x4b3303[_0x1cab58([0x6f,0x6e])](_0x1cab58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x54cec1=>{_0x3149c4(_0x54cec1[_0x1cab58([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39715c=!0x0,_0x461e0e(_0x54cec1[_0x1cab58([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1cab58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cab58([0x6c,0x6f,0x77])}),_0x2a247c[_0x1cab58([0x74,0x68,0x65,0x6e])](()=>{_0x39715c||_0x148c8b(_0x1cab58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x282444(){return _0x4b3303[_0x1cab58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cab58([0x76,0x69,0x65,0x77])][_0x1cab58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1cab58([0x61,0x75,0x74,0x6f]);}function _0x1c8d3e(){_0x4b3303[_0x1cab58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cab58([0x76,0x69,0x65,0x77])][_0x1cab58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1cab58([0x61,0x75,0x74,0x6f]);}}function _0xa883d7(_0x283791){const _0x42c977=[new window[(_0x1cab58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bdea9=>setTimeout(_0x3bdea9,0x3d1ee13^_0xb2ffde)),_0x2a247c[_0x1cab58([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1cab58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57e508=>{let _0xdd7932=0x0;_0x4b3303[_0x1cab58([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cab58([0x6f,0x6e])](_0x1cab58([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b6422,_0x3f5b5a)=>{_0x3f5b5a[0x0][_0x1cab58([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xdd7932++,_0xdd7932==(0x3d8d127^_0xb2ffde)&&(_0x57e508(),_0x5b6422[_0x1cab58([0x6f,0x66,0x66])]());});}))];return window[_0x1cab58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1cab58([0x72,0x61,0x63,0x65])](_0x42c977)[_0x1cab58([0x74,0x68,0x65,0x6e])](()=>_0x283791);}async function _0x16cfc9(){await _0x2a247c,_0x4b3303[_0x1cab58([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cab58([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x12b653,_0x4b3303[_0x1cab58([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cab58([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x12b653,_0x4b3303[_0x1cab58([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1cab58([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3da848(_0x40c780){const _0x25eff5=_0x386e66();_0x4b3303[_0x25eff5]=_0x1cab58([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40c780,_0x40c780!=_0x1cab58([0x56,0x61,0x6c,0x69,0x64])&&_0x16cfc9();}function _0x386e66(){const _0x31a5ae=window[_0x1cab58([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1cab58([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1cab58([0x6e,0x6f,0x77])]())[_0x1cab58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1cab58([0x2e]),'');let _0x29e928=_0x1cab58([0x52]);for(let _0x207a6d=0x0;_0x207a6d<_0x31a5ae[_0x1cab58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x207a6d+=0x2){let _0x52cfb6=window[_0x1cab58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31a5ae[_0x1cab58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x207a6d,_0x207a6d+0x2));_0x52cfb6>=_0x1e3a7c[_0x1cab58([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52cfb6-=_0x1e3a7c[_0x1cab58([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x29e928+=_0x1e3a7c[_0x52cfb6];}return _0x29e928;}function _0x59ede5(){const _0x19ec1c=_0x2e1a8d[_0x1cab58([0x73,0x70,0x6c,0x69,0x74])](_0x1cab58([0x2e]));if(0x3!=_0x19ec1c[_0x1cab58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb324d2(_0x19ec1c[0x1]);function _0xb324d2(_0x155373){const _0x3b9ea1=_0x271b4d(_0x155373);return _0x3b9ea1&&_0x4e6ca6()?_0x3b9ea1:null;function _0x4e6ca6(){const _0x24ae97=_0x3b9ea1[_0x1cab58([0x6a,0x74,0x69])],_0x326a08=window[_0x1cab58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24ae97[_0x1cab58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24ae97[_0x1cab58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x273070={..._0x3b9ea1,[_0x1cab58([0x6a,0x74,0x69])]:_0x24ae97[_0x1cab58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24ae97[_0x1cab58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x273070[_0x1cab58([0x76,0x63])],_0x4e84a2(_0x273070)==_0x326a08;}}}async function _0x5a0e97(){let _0x4673f1=!0x0;try{const _0x3db43b=_0x2e1a8d[_0x1cab58([0x73,0x70,0x6c,0x69,0x74])](_0x1cab58([0x2e])),[_0x4f00b3,_0x175f31,_0x36de39]=_0x3db43b;return _0x465e2f(_0x4f00b3),await _0x4f8e82(_0x4f00b3,_0x175f31,_0x36de39),_0x4673f1;}catch{return!0x1;}function _0x465e2f(_0x2c3e50){const _0x40447b=_0x271b4d(_0x2c3e50);_0x40447b&&_0x40447b[_0x1cab58([0x61,0x6c,0x67])]==_0x1cab58([0x45,0x53,0x32,0x35,0x36])||(_0x4673f1=!0x1);}async function _0x4f8e82(_0x353128,_0x52825c,_0x1ab8ca){const _0x2ebf25=window[_0x1cab58([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1cab58([0x66,0x72,0x6f,0x6d])](_0x169638(_0x1ab8ca),_0x3b3755=>_0x3b3755[_0x1cab58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x56cbb4=new window[(_0x1cab58([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1cab58([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x353128+_0x1cab58([0x2e])+_0x52825c),_0x1d282c=window[_0x1cab58([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1cab58([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d282c)return;const _0x1ccc6d=await _0x1d282c[_0x1cab58([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1cab58([0x6a,0x77,0x6b]),_0x4d65cf,{[_0x1cab58([0x6e,0x61,0x6d,0x65])]:_0x1cab58([0x45,0x43,0x44,0x53,0x41]),[_0x1cab58([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1cab58([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1cab58([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d282c[_0x1cab58([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1cab58([0x6e,0x61,0x6d,0x65])]:_0x1cab58([0x45,0x43,0x44,0x53,0x41]),[_0x1cab58([0x68,0x61,0x73,0x68])]:{[_0x1cab58([0x6e,0x61,0x6d,0x65])]:_0x1cab58([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ccc6d,_0x2ebf25,_0x56cbb4)||(_0x4673f1=!0x1);}}function _0x271b4d(_0x47495a){return _0x47495a[_0x1cab58([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1cab58([0x65,0x79]))?JSON[_0x1cab58([0x70,0x61,0x72,0x73,0x65])](_0x169638(_0x47495a)):null;}function _0x169638(_0x5a6d3c){return window[_0x1cab58([0x61,0x74,0x6f,0x62])](_0x5a6d3c[_0x1cab58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1cab58([0x2b]))[_0x1cab58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1cab58([0x2f])));}function _0x4e84a2(_0x1a034f){let _0x3bcae3=0x1505;function _0x55025b(_0x50b1be){for(let _0x3dc0da=0x0;_0x3dc0da<_0x50b1be[_0x1cab58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3dc0da++){const _0x1f767f=_0x50b1be[_0x1cab58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3dc0da);_0x3bcae3=(_0x3bcae3<<0x5)+_0x3bcae3+_0x1f767f,_0x3bcae3&=_0x3bcae3;}}function _0x267827(_0x2092ac){Array[_0x1cab58([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2092ac)?_0x2092ac[_0x1cab58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x267827):_0x2092ac&&typeof _0x2092ac==_0x1cab58([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1cab58([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2092ac)[_0x1cab58([0x73,0x6f,0x72,0x74])]()[_0x1cab58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2dc403,_0x1596ed])=>{_0x55025b(_0x2dc403),_0x267827(_0x1596ed);}):_0x55025b(window[_0x1cab58([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2092ac));}return _0x267827(_0x1a034f),_0x3bcae3>>>0x0;}function _0x23bd66(_0x4a5297){return _0x4a5297[_0x1cab58([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1cab58([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1cab58([0x30]));}function _0x117be5(_0x4944b1){return _0x4944b1[_0x1cab58([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1cab58([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1cab58([0x6a,0x6f,0x69,0x6e])]('');}function _0x12b653(){}function _0x1cab58(_0x59dd51){return _0x59dd51['map'](_0x152733=>String['fromCharCode'](_0x152733))['join']('');}_0x3da848(await _0x2e27c5());}(this);}['_initSchema'](){const _0x23e334=this['editor']['model']['schema'];_0x23e334['isRegistered']('imageBlock')&&_0x23e334['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x23e334['isRegistered']('imageInline')&&_0x23e334['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3fe56a=this['editor'];_0x3fe56a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3fe56a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x159b77=>_0x159b77['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x21cba4=_0x3fe56a['commands']['get']('replaceImageSource');_0x21cba4&&this['listenTo'](_0x21cba4,'cleanupImage',(_0x36f6ee,[_0x2a9b01,_0x5761c2])=>{_0x2a9b01['removeAttribute']('uploadcareImageId',_0x5761c2);});}['_initConfig'](){const _0x10fd5c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4621c1=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x11cb61(_0x1d71c0['document'],'uc-config',{..._0x10fd5c,'pubkey':_0x4621c1,'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']=_0x3577c1=>{if('closeMax'==_0x3577c1)return'#uc-icon-arrow-down';},_0x1d71c0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x11cb61(_0x1d71c0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1d71c0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x34aab7=this['editor']['commands']['get']('insertImage');_0x34aab7&&this['listenTo'](_0x34aab7,'execute',()=>{const _0x42ad54=this['editor']['model']['document']['selection']['getSelectedElement']();_0x42ad54&&_0x42ad54['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x42ad54);});});const _0x2c6c57=this['editor']['commands']['get']('uploadcareImageReplace');_0x2c6c57&&this['listenTo'](_0x2c6c57,'execute',()=>{const _0x4ca7f6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4ca7f6&&_0x4ca7f6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4ca7f6);});});}}class tt extends _0x25d9de{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e2630){super(_0x3e2630),_0x3e2630['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x46f203['defineComponents'](_0x46f203);}}class ii extends _0x1d48bd{constructor(_0x3c593e){super(_0x3c593e);const t=_0x3c593e['t'],_0x8be0de=this['bindTemplate'],_0x5c59eb=new _0x508f29();_0x5c59eb['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':[_0x5c59eb,{'text':_0x8be0de['to']('imageUploadProgress',_0x486944=>t('Loading\x20image...')+'\x20('+(_0x486944||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 _0x1d48bd{constructor(_0x5aeb0c){super(_0x5aeb0c);const t=_0x5aeb0c['t'];this['set']('errorType',null);const _0x33c60c=new _0x34f56a(_0x5aeb0c);_0x33c60c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x33c60c['withText']=!0x0,_0x33c60c['class']='ck-button-action',_0x33c60c['on']('execute',()=>{this['fire']('retry');}),_0x33c60c['bind']('isVisible')['to'](this,'errorType',_0x1d0ecc=>'NotFound'!==_0x1d0ecc);const _0x339d0c=new _0x44f9f4();_0x339d0c['content']=_0x501dc0,_0x339d0c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x50654c=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':[_0x339d0c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x50654c['to']('errorType',_0x2452f8=>t('NotFound'!==_0x2452f8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x33c60c]},{'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 _0x1d48bd{constructor(_0x17a907,_0x2781b0){super(_0x17a907);const _0x824e75=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2781b0,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x824e75['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3b4a4a,_0x13d39c,_0x369792){super(_0x3b4a4a),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3b4a4a),this['_errorView']=new ti(_0x3b4a4a),this['_editingView']=new ei(_0x3b4a4a,_0x369792),this['_focusableView']=new _0x1d48bd(_0x3b4a4a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x13d39c),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'],_0x85a49c=>{this['_addUploadcareImageEditorListeners'](_0x85a49c);});}),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'](_0x97dc6f,_0x55f065){const _0x569b7c='uc-cloud-image-editor',_0x5423bd=_0x97dc6f['querySelector'](_0x569b7c);if(_0x5423bd)return _0x55f065(_0x5423bd);const _0x28560a=new MutationObserver(_0x70f942=>{const _0x58bf5d=_0x70f942['filter'](_0x598b0c=>_0x598b0c['target']===_0x97dc6f&&_0x598b0c['addedNodes']['length']>0x0&&_0x598b0c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x569b7c);_0x58bf5d['length']&&(_0x28560a['disconnect'](),_0x55f065(_0x58bf5d[0x0]['addedNodes'][0x0]));});_0x28560a['observe'](_0x97dc6f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x536522){_0x536522['addEventListener']('apply',_0x567267=>{this['fire']('apply',{'imageSrc':_0x567267['detail']['cdnUrl']});}),_0x536522['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x195942(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xea274e,_0x47b8d0,_0x20ecac){super(),this['_editor']=_0xea274e,this['_dialog']=_0x47b8d0,this['_imageElement']=_0x20ecac,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 _0x3cdd10=this['_imageElement'],_0x41b19d=_0x3cdd10['getAttribute']('uploadcareImageId'),_0x1825a8=_0x3cdd10['getAttribute']('src');if(_0x41b19d)await this['_loadImageInfo'](_0x41b19d,_0x1825a8);else{if(this['_imageCache']['has'](_0x1825a8)){const _0x3accbd=this['_imageCache']['get'](_0x1825a8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3accbd['url'],this['imageDimension']=_0x3accbd['dimension'],this['imageId']=_0x3accbd['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x298879}=this['_editor'],t=_0x298879['t'],_0x2ee770=new X(_0x298879,this['imageStatus'],this['_attributes']);_0x2ee770['bind']('status')['to'](this,'imageStatus'),_0x2ee770['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2ee770['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2ee770['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2ee770,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x255d7b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2ee770,'position':_0x72711b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2ee770['focus']();},'onHide':()=>{_0x2ee770['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x292122=>!A(_0x292122,_0x2ee770['element'])}});}['_loadImageInfo'](_0x49cd1f,_0x114d79){return j['getInfo'](_0x49cd1f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x292db7=>{const {width:_0x459947,height:_0x5c5617}=_0x292db7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x114d79,this['imageDimension']={'width':_0x459947,'height':_0x5c5617},this['imageId']=_0x49cd1f;})['catch'](_0x306f66=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x306f66['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3d7dd3,_0x42abfa){return this['_getImageAsFile'](_0x3d7dd3)['then'](_0x12fecd=>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':_0x42abfa['signal'],'file':_0x12fecd,'onProgress':_0x533ce8=>{_0x533ce8&&_0x533ce8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x533ce8['value']));}}))['then'](_0x2a43db=>{const {width:_0x37b324,height:_0x4bf134}=_0x2a43db['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a43db['cdnUrl'],this['imageDimension']={'width':_0x37b324,'height':_0x4bf134},this['imageId']=_0x2a43db['uuid'],this['imageUploadProgress']=null;const _0x16c271=_0x3d7dd3['getAttribute']('src');this['_imageCache']['set'](_0x16c271,{'id':_0x2a43db['uuid'],'url':_0x2a43db['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x43ed63=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x43ed63['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x27a0d6,_0xe9a8b4){_0x27a0d6['on']('apply',(_0x4870c7,_0x2fb9b4)=>{this['_replaceImage'](_0xe9a8b4,_0x2fb9b4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x27a0d6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x27a0d6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2c60f7,_0x34e641,_0x2974f4){const _0x3ca1f0=this['_editor'],{width:_0x13b07f,height:_0x18e778}=S(_0x34e641,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xc39da,imageSources:_0x1d5f5c}=C(_0x34e641,_0x13b07f);_0x3ca1f0['model']['change'](_0x4f3745=>{if('$graveyard'===_0x2c60f7['root']['rootName']){_0x3ca1f0['execute']('insertImage',{'imageType':_0x2c60f7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2c60f7['getAttributes']()),'uploadcareImageId':_0x2974f4,'src':_0xc39da,'sources':_0x1d5f5c,'width':_0x13b07f,'height':_0x18e778}});const _0x5b74c5=_0x2c60f7['getChildren']();_0x2c60f7=_0x3ca1f0['model']['document']['selection']['getSelectedElement']();for(const _0xbe6748 of _0x5b74c5)_0x4f3745['append'](_0x4f3745['cloneElement'](_0xbe6748),_0x2c60f7);}else _0x4f3745['setSelection'](_0x2c60f7,'on'),_0x3ca1f0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2c60f7['getAttributes']()),'uploadcareImageId':_0x2974f4,'src':_0xc39da,'sources':_0x1d5f5c,'width':_0x13b07f,'height':_0x18e778},_0x2c60f7);_0x4f3745['setSelection'](_0x2c60f7,'on');});}async['_getImageAsFile'](_0x4c76d9){const _0x1845ec=_0x1d71c0['window'],_0xb4e5af=_0x1d71c0['document']['location']['href'],_0x2dde9f=new _0x1845ec['URL'](_0x4c76d9['getAttribute']('src'),_0xb4e5af);if('data:'===_0x2dde9f['protocol']){const _0x3c5e51=_0x2dde9f['href']['split'](','),_0x158ed2=_0x3c5e51[0x0]['match'](/:(.*?);/)[0x1],_0x445ae1=_0x158ed2['split']('/')[0x1],_0x5f0d88=_0x1845ec['atob'](_0x3c5e51[_0x3c5e51['length']-0x1]);let _0x2b936c=_0x5f0d88['length'];const _0x39857a=new _0x1845ec['Uint8Array'](_0x2b936c);for(;_0x2b936c--;)_0x39857a[_0x2b936c]=_0x5f0d88['charCodeAt'](_0x2b936c);return new _0x1845ec['File']([_0x39857a],'image.'+_0x445ae1,{'type':_0x158ed2});}const _0x590549=_0x2dde9f['href']['split']('/'),_0x309a08=_0x590549[_0x590549['length']-0x1],_0x43085c=_0x309a08['split']('.')[0x1];return _0x1845ec['fetch'](_0x2dde9f['href'])['then'](_0xf27ab=>_0xf27ab['clone']()['blob']())['then'](_0x170d7e=>new _0x1845ec['File']([_0x170d7e],_0x309a08,{'type':'image/'+_0x43085c}));}}class O extends _0x276389{['imageEditController'];static get['requires'](){return[_0xc77812];}['_isEditable'];constructor(_0x47c0de){super(_0x47c0de),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x23eb9b){const _0x1a8291=G(_0x23eb9b);return _0x276f7e=>!(!_0x276f7e||!_0x276f7e['is']('element','imageBlock')&&!_0x276f7e['is']('element','imageInline'))&&(!!_0x276f7e['hasAttribute']('uploadcareImageId')||!!_0x276f7e['hasAttribute']('src')&&_0x1a8291(_0x276f7e['getAttribute']('src')));}(_0x47c0de['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1cec80=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1cec80);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x10ac62=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10ac62&&(_0x10ac62['is']('element','imageBlock')||_0x10ac62['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0xc77812),_0x10ac62),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x276389{['refresh'](){const _0x321812=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x321812&&(_0x321812['is']('element','imageBlock')||_0x321812['is']('element','imageInline')));}['execute'](_0x379079){const _0x31c4f0=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x335ab4=>{_0x335ab4['setAttributes'](_0x379079,_0x31c4f0),_0x335ab4['removeAttribute']('srcset',_0x31c4f0),_0x335ab4['removeAttribute']('sizes',_0x31c4f0);});}}class m extends _0x25d9de{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4e8a93,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2104fe}=this;_0x2104fe['commands']['add']('uploadcareImageEdit',new O(_0x2104fe)),_0x2104fe['commands']['add']('uploadcareImageReplace',new R(_0x2104fe));}}class g extends _0x25d9de{['_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 _0x553b77=this['editor'];_0x553b77['ui']['componentFactory']['add']('uploadcareImageEdit',_0x12003a=>{const _0x381992=_0x553b77['commands']['get']('uploadcareImageEdit'),_0x37f207=new _0x34f56a(_0x12003a),t=_0x12003a['t'];return _0x37f207['set']({'icon':_0x255d7b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x37f207['bind']('isEnabled')['to'](_0x381992),_0x37f207['bind']('isOn')['to'](_0x381992,'isActive'),this['listenTo'](_0x37f207,'execute',()=>{_0x553b77['execute']('uploadcareImageEdit'),_0x553b77['editing']['view']['focus']();}),_0x37f207;}),this['_initConfig']();}['_initConfig'](){const _0x27365b=_0x11cb61(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x27365b),this['listenTo'](this['editor'],'destroy',()=>{_0x27365b['remove']();});}}class et extends _0x25d9de{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};
|
|
23
|
+
import{Plugin as _0x480c61,Command as _0x4bfc78}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2417bc,IconGooglePhotos as _0x4a9cfd,IconGoogleDrive as _0x45ab79,IconFacebook as _0x427979,IconDropbox as _0x3e0c11,IconUploadcareLink as _0x5edde1,IconUploadcareImageUpload as _0x22a402,IconError as _0x3af9cc,IconUploadcareImageEdit as _0x39440e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1015f8,MenuBarMenuListItemButtonView as _0x261603,View as _0x68de5d,FocusCycler as _0x4614dc,Dialog as _0x46bfba,DialogViewPosition as _0x57fecd,SpinnerView as _0x3735e0,IconView as _0x3a7458,Notification as _0x27546c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x419e93,DomEmitterMixin as _0x1cc0fc,global as _0x1c142a,getAncestors as _0x4e886f,ObservableMixin as _0x1eca8f,uid as _0x1583d7,createElement as _0x128079}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x214ffe}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xa90170,info as _0x170436}from'@uploadcare/upload-client';import*as _0x2c128f from'@uploadcare/file-uploader';var i=function(_0x1f6d53){return _0x1f6d53['Local']='local',_0x1f6d53['URL']='url',_0x1f6d53['Dropbox']='dropbox',_0x1f6d53['GDrive']='gdrive',_0x1f6d53['Facebook']='facebook',_0x1f6d53['GPhotos']='gphotos',_0x1f6d53['OneDrive']='onedrive',_0x1f6d53;}({});function _(_0x38124b,_0x5398ed,_0xe86f20){const t=_0x38124b['t'],_0x40c5f4=_0x38124b['t'];switch(_0x5398ed){case i['Local']:return{'text':_0x40c5f4('Insert'===_0xe86f20?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x40c5f4('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xe86f20?_0x40c5f4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x40c5f4('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xe86f20?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xe86f20?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xe86f20?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xe86f20?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xe86f20?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5398ed;}}class e extends _0x480c61{['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 _0x5cebd7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3a4ceb;for(const _0x54851a in _0x5cebd7){const _0x52be1e=_0x54851a,_0x40c449=_0x5cebd7[_0x52be1e];if('uploadcareLicenseKeyValid'==_0x40c449||'uploadcareLicenseKeyInvalid'==_0x40c449||'uploadcareLicenseKeyExpired'==_0x40c449||'uploadcareLicenseKeyDomainLimit'==_0x40c449||'uploadcareLicenseKeyNotAllowed'==_0x40c449||'uploadcareLicenseKeyEvaluationLimit'==_0x40c449||'uploadcareLicenseKeyTrialLimit'==_0x40c449||'uploadcareLicenseKeyUsageLimit'==_0x40c449){delete _0x5cebd7[_0x52be1e],_0x3a4ceb=_0x40c449,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3a4ceb&&_0x5cebd7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3a4ceb&&_0x5cebd7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3a4ceb&&_0x5cebd7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3a4ceb&&_0x5cebd7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3a4ceb&&_0x5cebd7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3a4ceb&&_0x5cebd7['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3a4ceb&&_0x5cebd7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x10c06e}=this,_0x2b7396=_0x10c06e['commands']['get']('uploadcare');if(!_0x2b7396)return;const _0x968e68=this['_normalizeConfigSourceList'](_0x10c06e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x9d724c,_0x49c927)=>{const _0x57724f=this['_getIntegrationKey'](_0x49c927['type']);return _0x9d724c[_0x57724f]||(_0x9d724c[_0x57724f]=[]),_0x9d724c[_0x57724f]['push'](_0x49c927),_0x9d724c;},{});_0x10c06e['plugins']['has']('ImageInsertUI')&&_0x10c06e['commands']['get']('uploadcare')&&Object['entries'](_0x968e68)['forEach'](([_0x3c7010,_0x547888])=>{_0x10c06e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3c7010,'observable':()=>_0x2b7396,'buttonViewCreator':()=>this['_createToolbarButton'](_0x547888),'formViewCreator':()=>this['_createDropdownButtons'](_0x547888),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x547888),'override':'assetManager'!==_0x3c7010});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3557d1){const {locale:_0x4bc74b}=this['editor'];return _0x3557d1['map'](_0x28a129=>{const _0xad17f0=_(_0x4bc74b,_0x28a129,'Insert');switch(_0x28a129){case i['Local']:return{'icon':_0x22a402,'type':i['Local'],..._0xad17f0};case i['URL']:return{'icon':_0x5edde1,'type':i['URL'],..._0xad17f0};case i['Dropbox']:return{'icon':_0x3e0c11,'type':i['Dropbox'],..._0xad17f0};case i['Facebook']:return{'icon':_0x427979,'type':i['Facebook'],..._0xad17f0};case i['GDrive']:return{'icon':_0x45ab79,'type':i['GDrive'],..._0xad17f0};case i['GPhotos']:return{'icon':_0x4a9cfd,'type':i['GPhotos'],..._0xad17f0};case i['OneDrive']:return{'icon':_0x2417bc,'type':i['OneDrive'],..._0xad17f0};}});}['_getIntegrationKey'](_0x1b868e){switch(_0x1b868e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x34d97e,_0x1b104a){const _0x5ae53b=this['editor'],_0x1f3cea=new _0x34d97e(_0x5ae53b['locale']),_0x88da54=_0x5ae53b['commands']['get']('uploadcare');return _0x1f3cea['bind']('isEnabled')['to'](_0x88da54),_0x1f3cea['on']('execute',()=>{_0x88da54['execute'](_0x1b104a);}),_0x1f3cea;}['_createToolbarButton'](_0x1ccbc8){const {locale:_0x172bf2}=this['editor'],_0x4f731b=this['editor']['plugins']['get']('ImageInsertUI'),_0x53736a=_0x1ccbc8[0x0],_0x5e8224=this['_createButton'](_0x1015f8,_0x53736a['type']);return _0x5e8224['icon']=_0x53736a['icon'],_0x5e8224['bind']('label')['to'](_0x4f731b,'isImageSelected',_0x4800fd=>_(_0x172bf2,_0x53736a['type'],_0x4800fd?'Replace':'Insert')['text']),_0x5e8224['tooltip']=!0x0,_0x5e8224;}['_createDropdownButtons'](_0x35f3d8){const {locale:_0x421054}=this['editor'],_0x596f72=this['editor']['plugins']['get']('ImageInsertUI');return _0x35f3d8['map'](_0x235d63=>{const _0x4b93bc=this['_createButton'](_0x1015f8,_0x235d63['type']);return _0x4b93bc['withText']=!0x0,_0x4b93bc['icon']=_0x235d63['icon'],_0x4b93bc['bind']('label')['to'](_0x596f72,'isImageSelected',_0x440359=>_(_0x421054,_0x235d63['type'],_0x440359?'Replace':'Insert')['text']),_0x4b93bc;});}['_createMenuBarButtons'](_0x518e97){return _0x518e97['map'](_0x1037e7=>{const _0x42a29a=this['_createButton'](_0x261603,_0x1037e7['type']);return _0x42a29a['icon']=_0x1037e7['icon'],_0x42a29a['label']=_0x1037e7['shortText'],_0x42a29a;});}}class F extends _0x68de5d{['focusTracker'];['focusCycler'];constructor(_0x50ae12){super(_0x50ae12),this['focusTracker']=new _0x419e93(),this['focusCycler']=new _0x4614dc({'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(_0x35fc6e,_0x4de462){super(_0x35fc6e),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-'+_0x4de462}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xdc67f7,_0x52e0c1){const _0x423095=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x454eae=>_0x454eae<=_0x52e0c1)['map'](_0xf14425=>_0xdc67f7['replace'](/\/$/,'')+'/-/resize/'+_0xf14425+'x/\x20'+_0xf14425+'w');return{'imageFallbackUrl':_0xdc67f7,'imageSources':[{'srcset':_0x423095['join'](',\x20'),'sizes':'(max-width:\x20'+_0x52e0c1+'px)\x20100vw,\x20'+_0x52e0c1+'px','type':'image/webp'}]};}function S(_0xd6bd22,_0x2e698d,_0x53b8d5){const _0x16ea89=_0xd6bd22['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16ea89?parseInt(_0x16ea89[0x1],0xa):_0x2e698d,'height':_0x16ea89?parseInt(_0x16ea89[0x2],0xa):_0x53b8d5};}function p(_0x24f07e,_0x5a6de4){const _0x344beb=new(_0x1cc0fc())(),_0xa177a7=_0x24f07e['plugins']['get']('ImageUtils'),_0x574e34=_0x24f07e['editing']['mapper']['toViewElement'](_0x5a6de4),_0x2d2246=_0xa177a7['findViewImgElement'](_0x574e34),_0xddaa5b=_0x24f07e['editing']['view']['domConverter']['viewToDom'](_0x2d2246),_0x3dafaf=_0x5a6de4['getAttribute']('width'),_0x29b6a9=_0x5a6de4['getAttribute']('height'),_0xa1f895='image-processing';_0x24f07e['editing']['view']['change'](_0x1cd012=>{_0x1cd012['addClass'](_0xa1f895,_0x574e34),_0x1cd012['setStyle']('aspect-ratio',_0x3dafaf+'/'+_0x29b6a9,_0x2d2246);}),_0x344beb['listenTo'](_0xddaa5b,'load',()=>{_0x344beb['stopListening'](_0xddaa5b,'load'),_0x24f07e['editing']['view']['change'](_0x5e51eb=>{_0x5e51eb['removeClass'](_0xa1f895,_0x574e34),_0x5e51eb['removeStyle']('aspect-ratio',_0x2d2246);});});}function G(_0x30e303){if(Array['isArray'](_0x30e303)){const _0x105ae4=_0x30e303['map'](G);return _0x5608c9=>_0x105ae4['some'](_0x43e486=>_0x43e486(_0x5608c9));}if('origin'==_0x30e303){const _0x67babf=_0x1c142a['window']['location']['origin'];return _0x255776=>new URL(_0x255776,_0x1c142a['document']['baseURI'])['origin']==_0x67babf;}return'function'==typeof _0x30e303?_0x30e303:_0x30e303 instanceof RegExp?_0x397520=>!(!_0x397520['match'](_0x30e303)&&!_0x397520['replace'](/^https?:\/\//,'')['match'](_0x30e303)):()=>!0x1;}function A(_0x4d11c2,_0x1979c9){return _0x4e886f(_0x4d11c2['target'])['includes'](_0x1979c9);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1eca8f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x21e3c4,_0x18d815,_0x17201b){super(),this['_editor']=_0x21e3c4,this['_editing']=_0x18d815,this['_dialog']=_0x21e3c4['plugins']['get'](_0x46bfba),this['_api']=_0x18d815['ctxElement']['getAPI'](),this['_type']=_0x17201b,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:_0x124940,model:_0x2212b0}=this['_editor'],_0x296174=_0x2212b0['document']['selection']['getSelectedElement'](),_0x358703=_0x296174&&(_0x296174['is']('element','imageBlock')||_0x296174['is']('element','imageInline'));this['_formView']=new x(_0x124940,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x22a402,'title':_(_0x124940,this['_type'],_0x358703?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x57fecd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x44efb1=>!A(_0x44efb1,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2c2788}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4cd056=>{const _0x56fd0b=_0x2c2788['length'];for(const _0x32599e of _0x2c2788){const _0x25a818=_0x32599e===_0x2c2788[_0x56fd0b-0x1],{cdnUrl:_0x44e4bd,fileInfo:_0x52bd3d}=_0x32599e;if(!_0x44e4bd||!_0x52bd3d)continue;const {width:_0x10b3c9,height:_0xfbd4b4}=_0x52bd3d['imageInfo'],_0xaceb07=S(_0x44e4bd,_0x10b3c9,_0xfbd4b4),_0x280ae9=C(_0x44e4bd,_0xaceb07['width']),_0x1c0240={'id':_0x52bd3d['uuid'],'type':'image','attributes':{'imageDimension':_0xaceb07,..._0x280ae9}};this['_insertAsset'](_0x1c0240,_0x25a818,_0x4cd056);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x123681=>{'idle'===_0x123681['detail']['status']&&!_0x123681['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3a062f,_0x405e6d,_0x2ffad7){const _0x137c23=this['_editor']['model']['document']['selection'],_0x181c7e=_0x137c23['getSelectedElement'](),_0x3c2da5=!(!_0x181c7e||!_0x181c7e['is']('element','imageInline'));_0x2ffad7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3a062f,_0x3c2da5),_0x405e6d||_0x2ffad7['setSelection'](_0x137c23['getLastPosition']());}['_insertImage'](_0x478c02,_0x3cb24e){const _0x119ea8=this['_editor'],{imageDimension:_0x515a69,imageFallbackUrl:_0x2f1351,imageSources:_0x84b7a6}=_0x478c02['attributes'];_0x119ea8['execute']('insertImage',{'imageType':_0x3cb24e?'imageInline':null,'source':{'uploadcareImageId':_0x478c02['id'],'src':_0x2f1351,'sources':_0x84b7a6,..._0x515a69}});}}class w extends _0x4bfc78{['_editing'];['_controller']=null;static get['requires'](){return[_0x46bfba,o];}constructor(_0xf04367){super(_0xf04367),this['_editing']=_0xf04367['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x376491){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x376491);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5bef43,..._0x33f81f}){return _0xa90170(_0x5bef43,_0x33f81f);}static['getInfo'](_0x832a6b,_0x176591){return _0x170436(_0x832a6b,_0x176591);}}class f extends _0x480c61{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x214ffe,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x24682e=this['editor'];if(!!!_0x24682e['config']['get']('uploadcare'))return;_0x24682e['plugins']['get'](_0x214ffe)['createUploadAdapter']=_0x29f3f6=>new k(_0x29f3f6,_0x24682e),_0x24682e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1feb26,{imageElement:_0x12d390,data:_0x5c38c7})=>{_0x24682e['model']['change'](_0x163a90=>{_0x163a90['setAttribute']('uploadcareImageId',_0x5c38c7['uploadcareImageId'],_0x12d390);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2d76ac,_0xcea82a){this['loader']=_0x2d76ac,this['editor']=_0xcea82a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5b3522=await this['loader']['file'];return j['upload']({'file':_0x5b3522,'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':_0x4827d7=>{_0x4827d7&&_0x4827d7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4827d7['value']);}})['then'](async _0xc04700=>{const {imageFallbackUrl:_0x50c82d,imageSources:_0x3793e9}=C(_0xc04700['cdnUrl'],_0xc04700['imageInfo']['width']);return{'uploadcareImageId':_0xc04700['uuid'],'default':_0x50c82d,'sources':_0x3793e9};})['catch'](()=>{const _0x2bc546=t('Cannot\x20upload\x20file:')+('\x20'+_0x5b3522['name']+'.');return Promise['reject'](_0x2bc546);});}['abort'](){this['controller']['abort']();}}class o extends _0x480c61{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x46bfba];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x297dbe){super(_0x297dbe),this['ucContextId']=_0x1583d7();}['init'](){const _0x332dfc=this['editor'];_0x332dfc['commands']['add']('uploadcare',new w(_0x332dfc));}['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 _0x483655=_0x1c142a['document']['querySelector']('input[uploadcare-file-input]');_0x483655&&_0x483655['remove']();}),async function(_0x34e87f){const _0x857ea7=_0x360813([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]),_0x4125f6=0x535f8c3a,_0x5d5e17=0x5358fb92^_0x4125f6,_0x43367a=window[_0x360813([0x44,0x61,0x74,0x65])][_0x360813([0x6e,0x6f,0x77])](),_0x1f0a76=_0x34e87f[_0x360813([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x444a2d=new window[(_0x360813([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e7eb4=>{_0x1f0a76[_0x360813([0x6f,0x6e,0x63,0x65])](_0x360813([0x72,0x65,0x61,0x64,0x79]),_0x4e7eb4);}),_0x1dad61={[_0x360813([0x6b,0x74,0x79])]:_0x360813([0x45,0x43]),[_0x360813([0x75,0x73,0x65])]:_0x360813([0x73,0x69,0x67]),[_0x360813([0x63,0x72,0x76])]:_0x360813([0x50,0x2d,0x32,0x35,0x36]),[_0x360813([0x78])]:_0x360813([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]),[_0x360813([0x79])]:_0x360813([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]),[_0x360813([0x61,0x6c,0x67])]:_0x360813([0x45,0x53,0x32,0x35,0x36])},_0x297ddf=_0x1f0a76[_0x360813([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x360813([0x67,0x65,0x74])](_0x360813([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1fdd40(){let _0x3094a1,_0x5b4668=null,_0x4fb3ec=null;try{if(_0x297ddf==_0x360813([0x47,0x50,0x4c]))return _0x360813([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3094a1=_0x4fe702(),!_0x3094a1)return _0x360813([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3094a1[_0x360813([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4fb3ec=_0x1c7812(_0x3094a1[_0x360813([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3094a1[_0x360813([0x6a,0x74,0x69])])),await _0x542ad6()?_0x59f37b()?_0xa41905()?_0x360813([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d0833()?(_0x3094a1[_0x360813([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x360813([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b4668=_0x53a714(_0x360813([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3094a1[_0x360813([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x360813([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b4668=_0x53a714(_0x360813([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a6f89()):_0x360813([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x360813([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x360813([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x360813([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xa41905(){const _0x483acb=[_0x360813([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x360813([0x74,0x72,0x69,0x61,0x6c])][_0x360813([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3094a1[_0x360813([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43367a/0x3e8:0xe10*_0x5d5e17;return _0x3094a1[_0x360813([0x65,0x78,0x70])]<_0x483acb;}function _0x59f37b(){const _0x1c6ef1=_0x3094a1[_0x360813([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c6ef1&&(!!_0x1c6ef1[_0x360813([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x360813([0x2a]))||!!_0x1c6ef1[_0x360813([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x360813([0x55,0x50,0x4c,0x43])));}function _0x2d0833(){const _0x4208d6=_0x3094a1[_0x360813([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4208d6||0x0==_0x4208d6[_0x360813([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1da445}=new URL(window[_0x360813([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4208d6[_0x360813([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1da445))return!0x0;const _0x5dfbde=_0x1da445[_0x360813([0x73,0x70,0x6c,0x69,0x74])](_0x360813([0x2e]));return _0x4208d6[_0x360813([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d066c=>_0x5d066c[_0x360813([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x360813([0x2a])))[_0x360813([0x6d,0x61,0x70])](_0x313b7f=>_0x313b7f[_0x360813([0x73,0x70,0x6c,0x69,0x74])](_0x360813([0x2e])))[_0x360813([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x8008b3=>_0x8008b3[_0x360813([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5dfbde[_0x360813([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x360813([0x6d,0x61,0x70])](_0x1451d5=>Array(_0x5dfbde[_0x360813([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1451d5[_0x360813([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x360813([0x66,0x69,0x6c,0x6c])](_0x1451d5[0x0]===_0x360813([0x2a])?_0x360813([0x2a]):'')[_0x360813([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1451d5))[_0x360813([0x73,0x6f,0x6d,0x65])](_0x1ea08c=>_0x5dfbde[_0x360813([0x65,0x76,0x65,0x72,0x79])]((_0x2de309,_0x5f4e46)=>_0x1ea08c[_0x5f4e46]===_0x2de309||_0x1ea08c[_0x5f4e46]===_0x360813([0x2a])));}function _0x2a6f89(){return _0x5b4668&&_0x4fb3ec?new window[(_0x360813([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x347302,_0x4f5834)=>{_0x5b4668[_0x360813([0x74,0x68,0x65,0x6e])](_0x347302,_0x4f5834),_0x4fb3ec[_0x360813([0x74,0x68,0x65,0x6e])](_0x36585f=>{_0x36585f!=_0x360813([0x56,0x61,0x6c,0x69,0x64])&&_0x347302(_0x36585f);},_0x4f5834);}):_0x5b4668||_0x4fb3ec||_0x360813([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c7812(_0x2777d1,_0xba84a0){return new window[(_0x360813([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38eda2=>{if(_0x19c395())return _0x38eda2(_0x360813([0x56,0x61,0x6c,0x69,0x64]));_0x406293(),_0x1f0a76[_0x360813([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x360813([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36af92=!0x1;const _0x1f0557=_0x1583d7();function _0x3c6dd0(_0x2e905b){return!!_0x2e905b&&(typeof _0x2e905b===_0x360813([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e905b===_0x360813([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e905b[_0x360813([0x74,0x68,0x65,0x6e])]===_0x360813([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e905b[_0x360813([0x63,0x61,0x74,0x63,0x68])]===_0x360813([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34279b(_0x2a9378){_0x49d493(_0x2a9378)[_0x360813([0x74,0x68,0x65,0x6e])](_0x16bb8b=>{if(!_0x16bb8b||_0x16bb8b[_0x360813([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x360813([0x6f,0x6b]))return _0x360813([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1be26e(_0x1b960e(_0x1f0557+_0xba84a0))!=_0x16bb8b[_0x360813([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x360813([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x360813([0x56,0x61,0x6c,0x69,0x64]);})[_0x360813([0x74,0x68,0x65,0x6e])](_0x6dae6f=>(_0x1b1438(),_0x6dae6f),()=>{const _0x169b62=_0x2b0670();return null==_0x169b62?(_0x1b1438(),_0x360813([0x56,0x61,0x6c,0x69,0x64])):_0x360813(_0x43367a-_0x169b62>(0x7753083a^_0x4125f6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x360813([0x74,0x68,0x65,0x6e])](_0x38eda2)[_0x360813([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38eda2(_0x360813([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59d3cb=0x536962ba^_0x4125f6;function _0x1b1438(){const _0x412bab=_0x360813([0x6c,0x6c,0x63,0x74,0x2d])+_0x1be26e(_0x1b960e(_0x2777d1)),_0x5f4558=_0x3a6547(_0x1be26e(window[_0x360813([0x4d,0x61,0x74,0x68])][_0x360813([0x63,0x65,0x69,0x6c])](_0x43367a/_0x59d3cb)));window[_0x360813([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x360813([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x412bab,_0x5f4558);}function _0x2b0670(){const _0xe6d4bf=_0x360813([0x6c,0x6c,0x63,0x74,0x2d])+_0x1be26e(_0x1b960e(_0x2777d1)),_0x50cbfe=window[_0x360813([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x360813([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe6d4bf);return _0x50cbfe?window[_0x360813([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a6547(_0x50cbfe),0x10)*_0x59d3cb:null;}function _0x49d493(_0x14b964){return new window[(_0x360813([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x81de1b,_0x39255f)=>{_0x14b964[_0x360813([0x74,0x68,0x65,0x6e])](_0x81de1b,_0x39255f),window[_0x360813([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39255f,0x535e58fa^_0x4125f6);});}}_0x1f0a76[_0x360813([0x6f,0x6e])](_0x360813([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20614c,_0x16de7f)=>{if(_0x16de7f[0x0]!=_0x2777d1)return _0x38eda2(_0x360813([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16de7f[0x1]={..._0x16de7f[0x1],[_0x360813([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f0557};},{[_0x360813([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x360813([0x68,0x69,0x67,0x68])}),_0x1f0a76[_0x360813([0x6f,0x6e])](_0x360813([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x540801=>{_0x3c6dd0(_0x540801[_0x360813([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36af92=!0x0,_0x34279b(_0x540801[_0x360813([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x360813([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x360813([0x6c,0x6f,0x77])}),_0x444a2d[_0x360813([0x74,0x68,0x65,0x6e])](()=>{_0x36af92||_0x38eda2(_0x360813([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x19c395(){return _0x1f0a76[_0x360813([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x360813([0x76,0x69,0x65,0x77])][_0x360813([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x360813([0x61,0x75,0x74,0x6f]);}function _0x406293(){_0x1f0a76[_0x360813([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x360813([0x76,0x69,0x65,0x77])][_0x360813([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x360813([0x61,0x75,0x74,0x6f]);}}function _0x53a714(_0x8895f0){const _0x446eaa=[new window[(_0x360813([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47a21d=>setTimeout(_0x47a21d,0x5356b2f6^_0x4125f6)),_0x444a2d[_0x360813([0x74,0x68,0x65,0x6e])](()=>new window[(_0x360813([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x558283=>{let _0x4a2bae=0x0;_0x1f0a76[_0x360813([0x6d,0x6f,0x64,0x65,0x6c])][_0x360813([0x6f,0x6e])](_0x360813([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5c2db7,_0x1d855b)=>{_0x1d855b[0x0][_0x360813([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a2bae++,_0x4a2bae==(0x535f8dc2^_0x4125f6)&&(_0x558283(),_0x5c2db7[_0x360813([0x6f,0x66,0x66])]());});}))];return window[_0x360813([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x360813([0x72,0x61,0x63,0x65])](_0x446eaa)[_0x360813([0x74,0x68,0x65,0x6e])](()=>_0x8895f0);}async function _0x4767be(){await _0x444a2d,_0x1f0a76[_0x360813([0x6d,0x6f,0x64,0x65,0x6c])][_0x360813([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x52d522,_0x1f0a76[_0x360813([0x6d,0x6f,0x64,0x65,0x6c])][_0x360813([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x52d522,_0x1f0a76[_0x360813([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x360813([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x57a4f1(_0x124f90){const _0x20c827=_0xc5d555();_0x1f0a76[_0x20c827]=_0x360813([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x124f90,_0x124f90!=_0x360813([0x56,0x61,0x6c,0x69,0x64])&&_0x4767be();}function _0xc5d555(){const _0x55dc90=window[_0x360813([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x360813([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x360813([0x6e,0x6f,0x77])]())[_0x360813([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x360813([0x2e]),'');let _0x1132aa=_0x360813([0x68]);for(let _0x2d05aa=0x0;_0x2d05aa<_0x55dc90[_0x360813([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d05aa+=0x2){let _0xe37e0d=window[_0x360813([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55dc90[_0x360813([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d05aa,_0x2d05aa+0x2));_0xe37e0d>=_0x857ea7[_0x360813([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe37e0d-=_0x857ea7[_0x360813([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1132aa+=_0x857ea7[_0xe37e0d];}return _0x1132aa;}function _0x4fe702(){const _0x4f6972=_0x297ddf[_0x360813([0x73,0x70,0x6c,0x69,0x74])](_0x360813([0x2e]));if(0x3!=_0x4f6972[_0x360813([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x526cb6(_0x4f6972[0x1]);function _0x526cb6(_0x2fbf6c){const _0x77f62e=_0x2dd98e(_0x2fbf6c);return _0x77f62e&&_0x5d1bb5()?_0x77f62e:null;function _0x5d1bb5(){const _0x16b6de=_0x77f62e[_0x360813([0x6a,0x74,0x69])],_0xf2a40=window[_0x360813([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16b6de[_0x360813([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16b6de[_0x360813([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xccfec9={..._0x77f62e,[_0x360813([0x6a,0x74,0x69])]:_0x16b6de[_0x360813([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x16b6de[_0x360813([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xccfec9[_0x360813([0x76,0x63])],_0x1b960e(_0xccfec9)==_0xf2a40;}}}async function _0x542ad6(){let _0x1af472=!0x0;try{const _0x20e1f1=_0x297ddf[_0x360813([0x73,0x70,0x6c,0x69,0x74])](_0x360813([0x2e])),[_0x531e55,_0x168123,_0x4bab1e]=_0x20e1f1;return _0x196b84(_0x531e55),await _0x30e424(_0x531e55,_0x168123,_0x4bab1e),_0x1af472;}catch{return!0x1;}function _0x196b84(_0x120f94){const _0x1f5efd=_0x2dd98e(_0x120f94);_0x1f5efd&&_0x1f5efd[_0x360813([0x61,0x6c,0x67])]==_0x360813([0x45,0x53,0x32,0x35,0x36])||(_0x1af472=!0x1);}async function _0x30e424(_0x45face,_0x2a8e16,_0xb2afaf){const _0xfda832=window[_0x360813([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x360813([0x66,0x72,0x6f,0x6d])](_0x25c4d6(_0xb2afaf),_0x51443f=>_0x51443f[_0x360813([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x40ad88=new window[(_0x360813([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x360813([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45face+_0x360813([0x2e])+_0x2a8e16),_0x57aacd=window[_0x360813([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x360813([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57aacd)return;const _0x1d271a=await _0x57aacd[_0x360813([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x360813([0x6a,0x77,0x6b]),_0x1dad61,{[_0x360813([0x6e,0x61,0x6d,0x65])]:_0x360813([0x45,0x43,0x44,0x53,0x41]),[_0x360813([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x360813([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x360813([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57aacd[_0x360813([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x360813([0x6e,0x61,0x6d,0x65])]:_0x360813([0x45,0x43,0x44,0x53,0x41]),[_0x360813([0x68,0x61,0x73,0x68])]:{[_0x360813([0x6e,0x61,0x6d,0x65])]:_0x360813([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d271a,_0xfda832,_0x40ad88)||(_0x1af472=!0x1);}}function _0x2dd98e(_0x1e62db){return _0x1e62db[_0x360813([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x360813([0x65,0x79]))?JSON[_0x360813([0x70,0x61,0x72,0x73,0x65])](_0x25c4d6(_0x1e62db)):null;}function _0x25c4d6(_0x426d1b){return window[_0x360813([0x61,0x74,0x6f,0x62])](_0x426d1b[_0x360813([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x360813([0x2b]))[_0x360813([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x360813([0x2f])));}function _0x1b960e(_0x1ebc3e){let _0x34ebe4=0x1505;function _0x40e6e3(_0x2427b8){for(let _0xba63ee=0x0;_0xba63ee<_0x2427b8[_0x360813([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xba63ee++){const _0x1cf80f=_0x2427b8[_0x360813([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xba63ee);_0x34ebe4=(_0x34ebe4<<0x5)+_0x34ebe4+_0x1cf80f,_0x34ebe4&=_0x34ebe4;}}function _0x1bb729(_0x577ec3){Array[_0x360813([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x577ec3)?_0x577ec3[_0x360813([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1bb729):_0x577ec3&&typeof _0x577ec3==_0x360813([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x360813([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x577ec3)[_0x360813([0x73,0x6f,0x72,0x74])]()[_0x360813([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x707b51,_0x3dba93])=>{_0x40e6e3(_0x707b51),_0x1bb729(_0x3dba93);}):_0x40e6e3(window[_0x360813([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x577ec3));}return _0x1bb729(_0x1ebc3e),_0x34ebe4>>>0x0;}function _0x1be26e(_0x470c28){return _0x470c28[_0x360813([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x360813([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x360813([0x30]));}function _0x3a6547(_0x5489be){return _0x5489be[_0x360813([0x73,0x70,0x6c,0x69,0x74])]('')[_0x360813([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x360813([0x6a,0x6f,0x69,0x6e])]('');}function _0x52d522(){}function _0x360813(_0x469f4d){return _0x469f4d['map'](_0x3b846b=>String['fromCharCode'](_0x3b846b))['join']('');}_0x57a4f1(await _0x1fdd40());}(this);}['_initSchema'](){const _0xa649f=this['editor']['model']['schema'];_0xa649f['isRegistered']('imageBlock')&&_0xa649f['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xa649f['isRegistered']('imageInline')&&_0xa649f['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x327ba2=this['editor'];_0x327ba2['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x327ba2['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4fc67a=>_0x4fc67a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5c58ce=_0x327ba2['commands']['get']('replaceImageSource');_0x5c58ce&&this['listenTo'](_0x5c58ce,'cleanupImage',(_0x4f0681,[_0x182c50,_0x20614f])=>{_0x182c50['removeAttribute']('uploadcareImageId',_0x20614f);});}['_initConfig'](){const _0x5315d8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5f42d5=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x128079(_0x1c142a['document'],'uc-config',{..._0x5315d8,'pubkey':_0x5f42d5,'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']=_0x3f7326=>{if('closeMax'==_0x3f7326)return'#uc-icon-arrow-down';},_0x1c142a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x128079(_0x1c142a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1c142a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x45eee=this['editor']['commands']['get']('insertImage');_0x45eee&&this['listenTo'](_0x45eee,'execute',()=>{const _0x2882e4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2882e4&&_0x2882e4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2882e4);});});const _0x5e8add=this['editor']['commands']['get']('uploadcareImageReplace');_0x5e8add&&this['listenTo'](_0x5e8add,'execute',()=>{const _0x1a550a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a550a&&_0x1a550a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1a550a);});});}}class tt extends _0x480c61{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12ccbf){super(_0x12ccbf),_0x12ccbf['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2c128f['defineComponents'](_0x2c128f),this['_defineLocale']();}['_defineLocale'](){const _0x12cfc4=this['editor']['config']['get']('uploadcare.locale'),_0x48f920=this['editor']['locale']['contentLanguage'];_0x12cfc4&&_0x2c128f['defineLocale'](_0x48f920,_0x12cfc4);}}class ii extends _0x68de5d{constructor(_0x669f82){super(_0x669f82);const t=_0x669f82['t'],_0x1bd956=this['bindTemplate'],_0x97877a=new _0x3735e0();_0x97877a['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':[_0x97877a,{'text':_0x1bd956['to']('imageUploadProgress',_0x35a284=>t('Loading\x20image...')+'\x20('+(_0x35a284||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 _0x68de5d{constructor(_0x4e0c6d){super(_0x4e0c6d);const t=_0x4e0c6d['t'];this['set']('errorType',null);const _0x9d2313=new _0x1015f8(_0x4e0c6d);_0x9d2313['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x9d2313['withText']=!0x0,_0x9d2313['class']='ck-button-action',_0x9d2313['on']('execute',()=>{this['fire']('retry');}),_0x9d2313['bind']('isVisible')['to'](this,'errorType',_0x5d9686=>'NotFound'!==_0x5d9686);const _0x4552a3=new _0x3a7458();_0x4552a3['content']=_0x3af9cc,_0x4552a3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x115866=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':[_0x4552a3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x115866['to']('errorType',_0x5477ab=>t('NotFound'!==_0x5477ab?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x9d2313]},{'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 _0x68de5d{constructor(_0x22edc6,_0x49f608){super(_0x22edc6);const _0x3edb22=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x49f608,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3edb22['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x35468f,_0x1466b7,_0x37e6ad){super(_0x35468f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x35468f),this['_errorView']=new ti(_0x35468f),this['_editingView']=new ei(_0x35468f,_0x37e6ad),this['_focusableView']=new _0x68de5d(_0x35468f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1466b7),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'],_0x354574=>{this['_addUploadcareImageEditorListeners'](_0x354574);});}),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'](_0x25a719,_0x1cccb6){const _0x3c0078='uc-cloud-image-editor',_0x342abd=_0x25a719['querySelector'](_0x3c0078);if(_0x342abd)return _0x1cccb6(_0x342abd);const _0x3595d5=new MutationObserver(_0x9f8c03=>{const _0x241956=_0x9f8c03['filter'](_0x159388=>_0x159388['target']===_0x25a719&&_0x159388['addedNodes']['length']>0x0&&_0x159388['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3c0078);_0x241956['length']&&(_0x3595d5['disconnect'](),_0x1cccb6(_0x241956[0x0]['addedNodes'][0x0]));});_0x3595d5['observe'](_0x25a719,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1859fa){_0x1859fa['addEventListener']('apply',_0xc4363=>{this['fire']('apply',{'imageSrc':_0xc4363['detail']['cdnUrl']});}),_0x1859fa['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1eca8f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1da8cb,_0x142074,_0x3943c5){super(),this['_editor']=_0x1da8cb,this['_dialog']=_0x142074,this['_imageElement']=_0x3943c5,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 _0x11fa80=this['_imageElement'],_0x1e4ec2=_0x11fa80['getAttribute']('uploadcareImageId'),_0x35eb47=_0x11fa80['getAttribute']('src');if(_0x1e4ec2)await this['_loadImageInfo'](_0x1e4ec2,_0x35eb47);else{if(this['_imageCache']['has'](_0x35eb47)){const _0x5248c1=this['_imageCache']['get'](_0x35eb47);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5248c1['url'],this['imageDimension']=_0x5248c1['dimension'],this['imageId']=_0x5248c1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xbbc211}=this['_editor'],t=_0xbbc211['t'],_0x324c13=new X(_0xbbc211,this['imageStatus'],this['_attributes']);_0x324c13['bind']('status')['to'](this,'imageStatus'),_0x324c13['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x324c13['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x324c13['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x324c13,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x39440e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x324c13,'position':_0x57fecd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x324c13['focus']();},'onHide':()=>{_0x324c13['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xc367a8=>!A(_0xc367a8,_0x324c13['element'])}});}['_loadImageInfo'](_0x4a2b46,_0x2b137d){return j['getInfo'](_0x4a2b46,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x520a53=>{const {width:_0x689e09,height:_0x115ca1}=_0x520a53['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2b137d,this['imageDimension']={'width':_0x689e09,'height':_0x115ca1},this['imageId']=_0x4a2b46;})['catch'](_0x537971=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x537971['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x29d17c,_0x464b2e){return this['_getImageAsFile'](_0x29d17c)['then'](_0x16598f=>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':_0x464b2e['signal'],'file':_0x16598f,'onProgress':_0x3aaaf3=>{_0x3aaaf3&&_0x3aaaf3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3aaaf3['value']));}}))['then'](_0xce356e=>{const {width:_0x5c2cce,height:_0x138b8b}=_0xce356e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xce356e['cdnUrl'],this['imageDimension']={'width':_0x5c2cce,'height':_0x138b8b},this['imageId']=_0xce356e['uuid'],this['imageUploadProgress']=null;const _0x2f52e7=_0x29d17c['getAttribute']('src');this['_imageCache']['set'](_0x2f52e7,{'id':_0xce356e['uuid'],'url':_0xce356e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x7660a5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x7660a5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4ce1d9,_0x47f3dc){_0x4ce1d9['on']('apply',(_0x57d8c4,_0x40b7fc)=>{this['_replaceImage'](_0x47f3dc,_0x40b7fc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4ce1d9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4ce1d9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x594013,_0x324330,_0x30b01f){const _0x4c2fee=this['_editor'],{width:_0x505d1a,height:_0x397082}=S(_0x324330,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x288e08,imageSources:_0x427f7a}=C(_0x324330,_0x505d1a);_0x4c2fee['model']['change'](_0x33ed70=>{if('$graveyard'===_0x594013['root']['rootName']){_0x4c2fee['execute']('insertImage',{'imageType':_0x594013['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x594013['getAttributes']()),'uploadcareImageId':_0x30b01f,'src':_0x288e08,'sources':_0x427f7a,'width':_0x505d1a,'height':_0x397082}});const _0x28019d=_0x594013['getChildren']();_0x594013=_0x4c2fee['model']['document']['selection']['getSelectedElement']();for(const _0x297084 of _0x28019d)_0x33ed70['append'](_0x33ed70['cloneElement'](_0x297084),_0x594013);}else _0x33ed70['setSelection'](_0x594013,'on'),_0x4c2fee['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x594013['getAttributes']()),'uploadcareImageId':_0x30b01f,'src':_0x288e08,'sources':_0x427f7a,'width':_0x505d1a,'height':_0x397082},_0x594013);_0x33ed70['setSelection'](_0x594013,'on');});}async['_getImageAsFile'](_0x1ddc96){const _0x1a27be=_0x1c142a['window'],_0x4c80ad=_0x1c142a['document']['location']['href'],_0x585af5=new _0x1a27be['URL'](_0x1ddc96['getAttribute']('src'),_0x4c80ad);if('data:'===_0x585af5['protocol']){const _0x4ff242=_0x585af5['href']['split'](','),_0xf24432=_0x4ff242[0x0]['match'](/:(.*?);/)[0x1],_0x560466=_0xf24432['split']('/')[0x1],_0x324277=_0x1a27be['atob'](_0x4ff242[_0x4ff242['length']-0x1]);let _0x1fa08c=_0x324277['length'];const _0x2c398f=new _0x1a27be['Uint8Array'](_0x1fa08c);for(;_0x1fa08c--;)_0x2c398f[_0x1fa08c]=_0x324277['charCodeAt'](_0x1fa08c);return new _0x1a27be['File']([_0x2c398f],'image.'+_0x560466,{'type':_0xf24432});}const _0x2b2af2=_0x585af5['href']['split']('/'),_0x4de8f3=_0x2b2af2[_0x2b2af2['length']-0x1],_0x533bc4=_0x4de8f3['split']('.')[0x1];return _0x1a27be['fetch'](_0x585af5['href'])['then'](_0x33f447=>_0x33f447['clone']()['blob']())['then'](_0x115b74=>new _0x1a27be['File']([_0x115b74],_0x4de8f3,{'type':'image/'+_0x533bc4}));}}class O extends _0x4bfc78{['imageEditController'];static get['requires'](){return[_0x46bfba];}['_isEditable'];constructor(_0x58d079){super(_0x58d079),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2f37af){const _0xc6315b=G(_0x2f37af);return _0x3cb01d=>!(!_0x3cb01d||!_0x3cb01d['is']('element','imageBlock')&&!_0x3cb01d['is']('element','imageInline'))&&(!!_0x3cb01d['hasAttribute']('uploadcareImageId')||!!_0x3cb01d['hasAttribute']('src')&&_0xc6315b(_0x3cb01d['getAttribute']('src')));}(_0x58d079['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x510010=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x510010);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x599f7f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x599f7f&&(_0x599f7f['is']('element','imageBlock')||_0x599f7f['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x46bfba),_0x599f7f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4bfc78{['refresh'](){const _0x34cc42=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x34cc42&&(_0x34cc42['is']('element','imageBlock')||_0x34cc42['is']('element','imageInline')));}['execute'](_0x5c59c8){const _0x2c659f=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x23577a=>{_0x23577a['setAttributes'](_0x5c59c8,_0x2c659f),_0x23577a['removeAttribute']('srcset',_0x2c659f),_0x23577a['removeAttribute']('sizes',_0x2c659f);});}}class m extends _0x480c61{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x27546c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x39005c}=this;_0x39005c['commands']['add']('uploadcareImageEdit',new O(_0x39005c)),_0x39005c['commands']['add']('uploadcareImageReplace',new R(_0x39005c));}}class g extends _0x480c61{['_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 _0x205c84=this['editor'];_0x205c84['ui']['componentFactory']['add']('uploadcareImageEdit',_0x32d82e=>{const _0x2e4d77=_0x205c84['commands']['get']('uploadcareImageEdit'),_0x12b8b2=new _0x1015f8(_0x32d82e),t=_0x32d82e['t'];return _0x12b8b2['set']({'icon':_0x39440e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x12b8b2['bind']('isEnabled')['to'](_0x2e4d77),_0x12b8b2['bind']('isOn')['to'](_0x2e4d77,'isActive'),this['listenTo'](_0x12b8b2,'execute',()=>{_0x205c84['execute']('uploadcareImageEdit'),_0x205c84['editing']['view']['focus']();}),_0x12b8b2;}),this['_initConfig']();}['_initConfig'](){const _0x47904f=_0x128079(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x47904f),this['listenTo'](this['editor'],'destroy',()=>{_0x47904f['remove']();});}}class et extends _0x480c61{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':_0x29b681=>0x1!=_0x29b681}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x352d2b=>{const {af:{dictionary:_0xc67b1a,getPluralForm:_0x511e53}}={'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':_0x2fb59f=>0x1!=_0x2fb59f}};_0x352d2b['af']||={'dictionary':{},'getPluralForm':null},_0x352d2b['af']['dictionary']=Object['assign'](_0x352d2b['af']['dictionary'],_0xc67b1a),_0x352d2b['af']['getPluralForm']=_0x511e53;})(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':_0x38319b=>0x0==_0x38319b?0x0:0x1==_0x38319b?0x1:0x2==_0x38319b?0x2:_0x38319b%0x64>=0x3&&_0x38319b%0x64<=0xa?0x3:_0x38319b%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x307d5c=>{const {ar:{dictionary:_0x54502c,getPluralForm:_0xf1c9b1}}={'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':_0x1dc69b=>0x0==_0x1dc69b?0x0:0x1==_0x1dc69b?0x1:0x2==_0x1dc69b?0x2:_0x1dc69b%0x64>=0x3&&_0x1dc69b%0x64<=0xa?0x3:_0x1dc69b%0x64>=0xb?0x4:0x5}};_0x307d5c['ar']||={'dictionary':{},'getPluralForm':null},_0x307d5c['ar']['dictionary']=Object['assign'](_0x307d5c['ar']['dictionary'],_0x54502c),_0x307d5c['ar']['getPluralForm']=_0xf1c9b1;})(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':_0x586b81=>0x1!=_0x586b81}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x51deab=>{const {ast:{dictionary:_0x35d211,getPluralForm:_0x281e96}}={'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':_0x54098c=>0x1!=_0x54098c}};_0x51deab['ast']||={'dictionary':{},'getPluralForm':null},_0x51deab['ast']['dictionary']=Object['assign'](_0x51deab['ast']['dictionary'],_0x35d211),_0x51deab['ast']['getPluralForm']=_0x281e96;})(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':_0x19f8fa=>0x1!=_0x19f8fa}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x58d5e9=>{const {az:{dictionary:_0x2afda4,getPluralForm:_0x426119}}={'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':_0x4924dc=>0x1!=_0x4924dc}};_0x58d5e9['az']||={'dictionary':{},'getPluralForm':null},_0x58d5e9['az']['dictionary']=Object['assign'](_0x58d5e9['az']['dictionary'],_0x2afda4),_0x58d5e9['az']['getPluralForm']=_0x426119;})(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':_0x17a928=>_0x17a928%0xa==0x1&&_0x17a928%0x64!=0xb?0x0:_0x17a928%0xa>=0x2&&_0x17a928%0xa<=0x4&&(_0x17a928%0x64<0xa||_0x17a928%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5910cc=>{const {be:{dictionary:_0x2a2034,getPluralForm:_0x4665ec}}={'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':_0xb44824=>_0xb44824%0xa==0x1&&_0xb44824%0x64!=0xb?0x0:_0xb44824%0xa>=0x2&&_0xb44824%0xa<=0x4&&(_0xb44824%0x64<0xa||_0xb44824%0x64>=0x14)?0x1:0x2}};_0x5910cc['be']||={'dictionary':{},'getPluralForm':null},_0x5910cc['be']['dictionary']=Object['assign'](_0x5910cc['be']['dictionary'],_0x2a2034),_0x5910cc['be']['getPluralForm']=_0x4665ec;})(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':_0x2e3de9=>0x1!=_0x2e3de9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3aa065=>{const {bg:{dictionary:_0x20655d,getPluralForm:_0x43e4f1}}={'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':_0x406d41=>0x1!=_0x406d41}};_0x3aa065['bg']||={'dictionary':{},'getPluralForm':null},_0x3aa065['bg']['dictionary']=Object['assign'](_0x3aa065['bg']['dictionary'],_0x20655d),_0x3aa065['bg']['getPluralForm']=_0x43e4f1;})(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':_0x2a89bc=>0x1!=_0x2a89bc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x223962=>{const {bn:{dictionary:_0x3c3737,getPluralForm:_0x186425}}={'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':_0x2c0555=>0x1!=_0x2c0555}};_0x223962['bn']||={'dictionary':{},'getPluralForm':null},_0x223962['bn']['dictionary']=Object['assign'](_0x223962['bn']['dictionary'],_0x3c3737),_0x223962['bn']['getPluralForm']=_0x186425;})(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':_0x21040a=>_0x21040a%0xa==0x1&&_0x21040a%0x64!=0xb?0x0:_0x21040a%0xa>=0x2&&_0x21040a%0xa<=0x4&&(_0x21040a%0x64<0xa||_0x21040a%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5e2d84=>{const {bs:{dictionary:_0x27b6a0,getPluralForm:_0x59aa51}}={'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':_0xb79be5=>_0xb79be5%0xa==0x1&&_0xb79be5%0x64!=0xb?0x0:_0xb79be5%0xa>=0x2&&_0xb79be5%0xa<=0x4&&(_0xb79be5%0x64<0xa||_0xb79be5%0x64>=0x14)?0x1:0x2}};_0x5e2d84['bs']||={'dictionary':{},'getPluralForm':null},_0x5e2d84['bs']['dictionary']=Object['assign'](_0x5e2d84['bs']['dictionary'],_0x27b6a0),_0x5e2d84['bs']['getPluralForm']=_0x59aa51;})(window['CKEDITOR_TRANSLATIONS']||={});
|