@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250706.0 → 0.0.0-nightly-20250709.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x58583c,Command as _0x1b10a0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x32bad8,IconGooglePhotos as _0x250c66,IconGoogleDrive as _0x1dac75,IconFacebook as _0x43e14e,IconDropbox as _0x3aec10,IconUploadcareLink as _0x1bc5bc,IconUploadcareImageUpload as _0x2ff7a4,IconError as _0x3baf70,IconUploadcareImageEdit as _0x24bf91}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x483a74,MenuBarMenuListItemButtonView as _0x46362b,View as _0x5820df,FocusCycler as _0x8b054b,Dialog as _0x26566a,DialogViewPosition as _0xa923de,SpinnerView as _0x1f1e03,IconView as _0x37bb23,Notification as _0xc60d5f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x279d3e,DomEmitterMixin as _0x531c9b,global as _0xff7e6a,getAncestors as _0xdfaf31,ObservableMixin as _0x461ce9,uid as _0x5c6de3,createElement as _0xecd3bc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x54092b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1fcff1,info as _0x5916f2}from'@uploadcare/upload-client';import*as _0x405b7c from'@uploadcare/file-uploader';var i=function(_0x14256d){return _0x14256d['Local']='local',_0x14256d['URL']='url',_0x14256d['Dropbox']='dropbox',_0x14256d['GDrive']='gdrive',_0x14256d['Facebook']='facebook',_0x14256d['GPhotos']='gphotos',_0x14256d['OneDrive']='onedrive',_0x14256d;}({});function _(_0x4ec7b0,_0x24cfac,_0xb69b94){const t=_0x4ec7b0['t'],_0x4122ea=_0x4ec7b0['t'];switch(_0x24cfac){case i['Local']:return{'text':_0x4122ea('Insert'===_0xb69b94?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4122ea('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xb69b94?_0x4122ea('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4122ea('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x24cfac;}}class e extends _0x58583c{['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 _0x272e7c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b6323;for(const _0x4686ac in _0x272e7c){const _0x4a01ae=_0x4686ac,_0x4bfc52=_0x272e7c[_0x4a01ae];if('uploadcareLicenseKeyValid'==_0x4bfc52||'uploadcareLicenseKeyInvalid'==_0x4bfc52||'uploadcareLicenseKeyExpired'==_0x4bfc52||'uploadcareLicenseKeyDomainLimit'==_0x4bfc52||'uploadcareLicenseKeyNotAllowed'==_0x4bfc52||'uploadcareLicenseKeyEvaluationLimit'==_0x4bfc52||'uploadcareLicenseKeyTrialLimit'==_0x4bfc52||'uploadcareLicenseKeyUsageLimit'==_0x4bfc52){delete _0x272e7c[_0x4a01ae],_0x3b6323=_0x4bfc52,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3b6323&&_0x272e7c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3b6323&&_0x272e7c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3b6323&&_0x272e7c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3b6323&&_0x272e7c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3b6323&&_0x272e7c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3b6323&&_0x272e7c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3b6323&&_0x272e7c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x50a32e}=this,_0x9ee7ea=_0x50a32e['commands']['get']('uploadcare');if(!_0x9ee7ea)return;const _0x5872ef=this['_normalizeConfigSourceList'](_0x50a32e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2f4563,_0xbd7963)=>{const _0x346d43=this['_getIntegrationKey'](_0xbd7963['type']);return _0x2f4563[_0x346d43]||(_0x2f4563[_0x346d43]=[]),_0x2f4563[_0x346d43]['push'](_0xbd7963),_0x2f4563;},{});_0x50a32e['plugins']['has']('ImageInsertUI')&&_0x50a32e['commands']['get']('uploadcare')&&Object['entries'](_0x5872ef)['forEach'](([_0x294957,_0x55f64c])=>{_0x50a32e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x294957,'observable':()=>_0x9ee7ea,'buttonViewCreator':()=>this['_createToolbarButton'](_0x55f64c),'formViewCreator':()=>this['_createDropdownButtons'](_0x55f64c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x55f64c),'override':'assetManager'!==_0x294957});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1327bf){const {locale:_0x113bbf}=this['editor'];return _0x1327bf['map'](_0x20a5ab=>{const _0x8501b0=_(_0x113bbf,_0x20a5ab,'Insert');switch(_0x20a5ab){case i['Local']:return{'icon':_0x2ff7a4,'type':i['Local'],..._0x8501b0};case i['URL']:return{'icon':_0x1bc5bc,'type':i['URL'],..._0x8501b0};case i['Dropbox']:return{'icon':_0x3aec10,'type':i['Dropbox'],..._0x8501b0};case i['Facebook']:return{'icon':_0x43e14e,'type':i['Facebook'],..._0x8501b0};case i['GDrive']:return{'icon':_0x1dac75,'type':i['GDrive'],..._0x8501b0};case i['GPhotos']:return{'icon':_0x250c66,'type':i['GPhotos'],..._0x8501b0};case i['OneDrive']:return{'icon':_0x32bad8,'type':i['OneDrive'],..._0x8501b0};}});}['_getIntegrationKey'](_0x2b0381){switch(_0x2b0381){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x44e811,_0x49a469){const _0x4cdcf3=this['editor'],_0x30c479=new _0x44e811(_0x4cdcf3['locale']),_0x14ef4c=_0x4cdcf3['commands']['get']('uploadcare');return _0x30c479['bind']('isEnabled')['to'](_0x14ef4c),_0x30c479['on']('execute',()=>{_0x14ef4c['execute'](_0x49a469);}),_0x30c479;}['_createToolbarButton'](_0x586b44){const {locale:_0x3b1231}=this['editor'],_0x1b2871=this['editor']['plugins']['get']('ImageInsertUI'),_0x17b956=_0x586b44[0x0],_0x8af542=this['_createButton'](_0x483a74,_0x17b956['type']);return _0x8af542['icon']=_0x17b956['icon'],_0x8af542['bind']('label')['to'](_0x1b2871,'isImageSelected',_0x2055bb=>_(_0x3b1231,_0x17b956['type'],_0x2055bb?'Replace':'Insert')['text']),_0x8af542['tooltip']=!0x0,_0x8af542;}['_createDropdownButtons'](_0x13673e){const {locale:_0x8a972e}=this['editor'],_0x161cbb=this['editor']['plugins']['get']('ImageInsertUI');return _0x13673e['map'](_0x362e58=>{const _0x7a1d25=this['_createButton'](_0x483a74,_0x362e58['type']);return _0x7a1d25['withText']=!0x0,_0x7a1d25['icon']=_0x362e58['icon'],_0x7a1d25['bind']('label')['to'](_0x161cbb,'isImageSelected',_0xfd77e8=>_(_0x8a972e,_0x362e58['type'],_0xfd77e8?'Replace':'Insert')['text']),_0x7a1d25;});}['_createMenuBarButtons'](_0x145528){return _0x145528['map'](_0x2d2f4a=>{const _0x180d32=this['_createButton'](_0x46362b,_0x2d2f4a['type']);return _0x180d32['icon']=_0x2d2f4a['icon'],_0x180d32['label']=_0x2d2f4a['shortText'],_0x180d32;});}}class F extends _0x5820df{['focusTracker'];['focusCycler'];constructor(_0x553f7e){super(_0x553f7e),this['focusTracker']=new _0x279d3e(),this['focusCycler']=new _0x8b054b({'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(_0x486c0d,_0x20bbae){super(_0x486c0d),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-'+_0x20bbae}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x4f0853,_0x4f3456){const _0x1ca133=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x29f4e5=>_0x29f4e5<=_0x4f3456)['map'](_0x1e25eb=>_0x4f0853['replace'](/\/$/,'')+'/-/resize/'+_0x1e25eb+'x/\x20'+_0x1e25eb+'w');return{'imageFallbackUrl':_0x4f0853,'imageSources':[{'srcset':_0x1ca133['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4f3456+'px)\x20100vw,\x20'+_0x4f3456+'px','type':'image/webp'}]};}function C(_0x47d2c3,_0x3e370a,_0x543328){const _0x4bc8ca=_0x47d2c3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4bc8ca?parseInt(_0x4bc8ca[0x1],0xa):_0x3e370a,'height':_0x4bc8ca?parseInt(_0x4bc8ca[0x2],0xa):_0x543328};}function p(_0x3b6665,_0x4988ad){const _0x2542d7=new(_0x531c9b())(),_0x54c302=_0x3b6665['plugins']['get']('ImageUtils'),_0x49adc1=_0x3b6665['editing']['mapper']['toViewElement'](_0x4988ad),_0x1c7f90=_0x54c302['findViewImgElement'](_0x49adc1),_0x494911=_0x3b6665['editing']['view']['domConverter']['viewToDom'](_0x1c7f90),_0x349837=_0x4988ad['getAttribute']('width'),_0x326ac9=_0x4988ad['getAttribute']('height'),_0x5cdbfb='image-processing';_0x3b6665['editing']['view']['change'](_0x38ee94=>{_0x38ee94['addClass'](_0x5cdbfb,_0x49adc1),_0x38ee94['setStyle']('aspect-ratio',_0x349837+'/'+_0x326ac9,_0x1c7f90);}),_0x2542d7['listenTo'](_0x494911,'load',()=>{_0x2542d7['stopListening'](_0x494911,'load'),_0x3b6665['editing']['view']['change'](_0x17e2fc=>{_0x17e2fc['removeClass'](_0x5cdbfb,_0x49adc1),_0x17e2fc['removeStyle']('aspect-ratio',_0x1c7f90);});});}function G(_0x4abe7a){if(Array['isArray'](_0x4abe7a)){const _0x17a2b3=_0x4abe7a['map'](G);return _0x446354=>_0x17a2b3['some'](_0x2102a8=>_0x2102a8(_0x446354));}if('origin'==_0x4abe7a){const _0x4dd949=_0xff7e6a['window']['location']['origin'];return _0x1b2ff6=>new URL(_0x1b2ff6,_0xff7e6a['document']['baseURI'])['origin']==_0x4dd949;}return'function'==typeof _0x4abe7a?_0x4abe7a:_0x4abe7a instanceof RegExp?_0x1daea3=>!(!_0x1daea3['match'](_0x4abe7a)&&!_0x1daea3['replace'](/^https?:\/\//,'')['match'](_0x4abe7a)):()=>!0x1;}function S(_0x28660c,_0x45971c){return _0xdfaf31(_0x28660c['target'])['includes'](_0x45971c);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x461ce9(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x597102,_0x46953e,_0x18f193){super(),this['_editor']=_0x597102,this['_editing']=_0x46953e,this['_dialog']=_0x597102['plugins']['get'](_0x26566a),this['_api']=_0x46953e['ctxElement']['getAPI'](),this['_type']=_0x18f193,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:_0x340349,model:_0x2d7aa1}=this['_editor'],_0x402fd5=_0x2d7aa1['document']['selection']['getSelectedElement'](),_0x29ade3=_0x402fd5&&(_0x402fd5['is']('element','imageBlock')||_0x402fd5['is']('element','imageInline'));this['_formView']=new x(_0x340349,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2ff7a4,'title':_(_0x340349,this['_type'],_0x29ade3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xa923de['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3ff98e=>!S(_0x3ff98e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x479d63}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2c6995=>{const _0x5934e8=_0x479d63['length'];for(const _0x3962af of _0x479d63){const _0x295832=_0x3962af===_0x479d63[_0x5934e8-0x1],{cdnUrl:_0x34d111,fileInfo:_0x23e870}=_0x3962af;if(!_0x34d111||!_0x23e870)continue;const {width:_0x18922b,height:_0x2fa80f}=_0x23e870['imageInfo'],_0x2145e6=C(_0x34d111,_0x18922b,_0x2fa80f),_0x46db36=k(_0x34d111,_0x2145e6['width']),_0x127f14={'id':_0x23e870['uuid'],'type':'image','attributes':{'imageDimension':_0x2145e6,..._0x46db36}};this['_insertAsset'](_0x127f14,_0x295832,_0x2c6995);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x6b2838=>{'idle'===_0x6b2838['detail']['status']&&!_0x6b2838['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5a1913,_0x3304f7,_0xcb5f7f){const _0xcc6c15=this['_editor']['model']['document']['selection'],_0x164a4a=_0xcc6c15['getSelectedElement'](),_0x2538bc=!(!_0x164a4a||!_0x164a4a['is']('element','imageInline'));_0xcb5f7f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5a1913,_0x2538bc),_0x3304f7||_0xcb5f7f['setSelection'](_0xcc6c15['getLastPosition']());}['_insertImage'](_0x3eea4c,_0x5d0e11){const _0x35b06a=this['_editor'],{imageDimension:_0x2bfe3c,imageFallbackUrl:_0x53bdcb,imageSources:_0x558599}=_0x3eea4c['attributes'];_0x35b06a['execute']('insertImage',{'imageType':_0x5d0e11?'imageInline':null,'source':{'uploadcareImageId':_0x3eea4c['id'],'src':_0x53bdcb,'sources':_0x558599,..._0x2bfe3c}});}}class w extends _0x1b10a0{['_editing'];['_controller']=null;static get['requires'](){return[_0x26566a,o];}constructor(_0x469d71){super(_0x469d71),this['_editing']=_0x469d71['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3b6e71){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3b6e71);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x46fc84,publicKey:_0x23482a,signal:_0x47c361,onProgress:_0x2d32a4}){return _0x1fcff1(_0x46fc84,{'publicKey':_0x23482a,'store':'auto','signal':_0x47c361,'onProgress':_0x2d32a4});}static['getInfo'](_0x5e953c,_0x3739a3){return _0x5916f2(_0x5e953c,_0x3739a3);}}class f extends _0x58583c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x54092b,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1eae98=this['editor'];if(!!!_0x1eae98['config']['get']('uploadcare'))return;_0x1eae98['plugins']['get'](_0x54092b)['createUploadAdapter']=_0xa00da6=>new A(_0xa00da6,_0x1eae98),_0x1eae98['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x57a51e,{imageElement:_0x46ea10,data:_0x63de6a})=>{_0x1eae98['model']['change'](_0x10e0f7=>{_0x10e0f7['setAttribute']('uploadcareImageId',_0x63de6a['uploadcareImageId'],_0x46ea10);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x1a40d8,_0x3c317b){this['loader']=_0x1a40d8,this['editor']=_0x3c317b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x317f9b=this['editor']['config']['get']('uploadcare.pubkey'),_0x54acaf=await this['loader']['file'];return j['upload']({'file':_0x54acaf,'publicKey':_0x317f9b,'signal':this['controller']['signal'],'onProgress':_0x796d05=>{_0x796d05&&_0x796d05['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x796d05['value']);}})['then'](async _0x117899=>{const {imageFallbackUrl:_0x20dd54,imageSources:_0x20f7f7}=k(_0x117899['cdnUrl'],_0x117899['imageInfo']['width']);return{'uploadcareImageId':_0x117899['uuid'],'default':_0x20dd54,'sources':_0x20f7f7};})['catch'](()=>{const _0x1ec146=t('Cannot\x20upload\x20file:')+('\x20'+_0x54acaf['name']+'.');return Promise['reject'](_0x1ec146);});}['abort'](){this['controller']['abort']();}}class o extends _0x58583c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x26566a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xc1862e){super(_0xc1862e),this['ucContextId']=_0x5c6de3();}['init'](){const _0x4e7041=this['editor'];_0x4e7041['commands']['add']('uploadcare',new w(_0x4e7041));}['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 _0x16e312=_0xff7e6a['document']['querySelector']('input[uploadcare-file-input]');_0x16e312&&_0x16e312['remove']();}),async function(_0x11c751){const _0x2f5f87=_0x1c19f6([0x32,0x6e,0x6b,0x68,0x76,0x65,0x35,0x53,0x79,0x51,0x36,0x5a,0x52,0x69,0x73,0x42,0x57,0x4c,0x61,0x50,0x4a,0x4f,0x49,0x59,0x33,0x6c,0x30,0x67,0x6d,0x54,0x63,0x39,0x47,0x7a,0x70,0x64,0x38,0x72,0x34,0x4b,0x77,0x31,0x46,0x58,0x48,0x43,0x66,0x37,0x6f,0x45,0x4d,0x56,0x78,0x74,0x62,0x44,0x71,0x75,0x4e,0x6a,0x41,0x55]),_0x2e1e87=0x1900003,_0x2715b7=0x1976ccb^_0x2e1e87,_0x5b0dd0=window[_0x1c19f6([0x44,0x61,0x74,0x65])][_0x1c19f6([0x6e,0x6f,0x77])](),_0x143d5e=_0x11c751[_0x1c19f6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x242667=new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x270577=>{_0x143d5e[_0x1c19f6([0x6f,0x6e,0x63,0x65])](_0x1c19f6([0x72,0x65,0x61,0x64,0x79]),_0x270577);}),_0x5ea513={[_0x1c19f6([0x6b,0x74,0x79])]:_0x1c19f6([0x45,0x43]),[_0x1c19f6([0x75,0x73,0x65])]:_0x1c19f6([0x73,0x69,0x67]),[_0x1c19f6([0x63,0x72,0x76])]:_0x1c19f6([0x50,0x2d,0x32,0x35,0x36]),[_0x1c19f6([0x78])]:_0x1c19f6([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]),[_0x1c19f6([0x79])]:_0x1c19f6([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]),[_0x1c19f6([0x61,0x6c,0x67])]:_0x1c19f6([0x45,0x53,0x32,0x35,0x36])},_0x3552b5=_0x143d5e[_0x1c19f6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c19f6([0x67,0x65,0x74])](_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x444f7d(){let _0x227d46,_0x4579f9=null,_0x1c4db3=null;try{if(_0x3552b5==_0x1c19f6([0x47,0x50,0x4c]))return _0x1c19f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x227d46=_0x426488(),!_0x227d46)return _0x1c19f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x227d46[_0x1c19f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c4db3=_0x5ce682(_0x227d46[_0x1c19f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x227d46[_0x1c19f6([0x6a,0x74,0x69])])),await _0x470d9e()?_0x30f363()?_0x47a8e0()?_0x1c19f6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2094e9()?(_0x227d46[_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c19f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4579f9=_0x1e066f(_0x1c19f6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x227d46[_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c19f6([0x74,0x72,0x69,0x61,0x6c])&&(_0x4579f9=_0x1e066f(_0x1c19f6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ae59b()):_0x1c19f6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c19f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c19f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c19f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47a8e0(){const _0x2bb192=[_0x1c19f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c19f6([0x74,0x72,0x69,0x61,0x6c])][_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x227d46[_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b0dd0/0x3e8:0xe10*_0x2715b7;return _0x227d46[_0x1c19f6([0x65,0x78,0x70])]<_0x2bb192;}function _0x30f363(){const _0x20d83e=_0x227d46[_0x1c19f6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x20d83e&&(!!_0x20d83e[_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c19f6([0x2a]))||!!_0x20d83e[_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c19f6([0x55,0x50,0x4c,0x43])));}function _0x2094e9(){const _0x38fa2a=_0x227d46[_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x38fa2a||0x0==_0x38fa2a[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x98184c}=new URL(window[_0x1c19f6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x38fa2a[_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x98184c))return!0x0;const _0x6d10d4=_0x98184c[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])](_0x1c19f6([0x2e]));return _0x38fa2a[_0x1c19f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bb877=>_0x4bb877[_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c19f6([0x2a])))[_0x1c19f6([0x6d,0x61,0x70])](_0x2361ea=>_0x2361ea[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])](_0x1c19f6([0x2e])))[_0x1c19f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3dd575=>_0x3dd575[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6d10d4[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c19f6([0x6d,0x61,0x70])](_0x1f1442=>Array(_0x6d10d4[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1f1442[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c19f6([0x66,0x69,0x6c,0x6c])](_0x1f1442[0x0]===_0x1c19f6([0x2a])?_0x1c19f6([0x2a]):'')[_0x1c19f6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1f1442))[_0x1c19f6([0x73,0x6f,0x6d,0x65])](_0x320e16=>_0x6d10d4[_0x1c19f6([0x65,0x76,0x65,0x72,0x79])]((_0x328bdc,_0x39a449)=>_0x320e16[_0x39a449]===_0x328bdc||_0x320e16[_0x39a449]===_0x1c19f6([0x2a])));}function _0x5ae59b(){return _0x4579f9&&_0x1c4db3?new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5420ea,_0x51da7b)=>{_0x4579f9[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x5420ea,_0x51da7b),_0x1c4db3[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x451a10=>{_0x451a10!=_0x1c19f6([0x56,0x61,0x6c,0x69,0x64])&&_0x5420ea(_0x451a10);},_0x51da7b);}):_0x4579f9||_0x1c4db3||_0x1c19f6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ce682(_0x249a4d,_0x410a79){return new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xead873=>{if(_0x3042b0())return _0xead873(_0x1c19f6([0x56,0x61,0x6c,0x69,0x64]));_0x1b78e8(),_0x143d5e[_0x1c19f6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c19f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ae552=!0x1;const _0x72bfa9=_0x5c6de3();function _0xe72cf2(_0x588dae){return!!_0x588dae&&(typeof _0x588dae===_0x1c19f6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x588dae===_0x1c19f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x588dae[_0x1c19f6([0x74,0x68,0x65,0x6e])]===_0x1c19f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x588dae[_0x1c19f6([0x63,0x61,0x74,0x63,0x68])]===_0x1c19f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5baff8(_0x249d97){_0x208651(_0x249d97)[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x4efc97=>{if(!_0x4efc97||_0x4efc97[_0x1c19f6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c19f6([0x6f,0x6b]))return _0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ad6fb(_0x36e100(_0x72bfa9+_0x410a79))!=_0x4efc97[_0x1c19f6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c19f6([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x996d00=>(_0x2786b7(),_0x996d00),()=>{const _0x375434=_0x1ff18e();return null==_0x375434?(_0x2786b7(),_0x1c19f6([0x56,0x61,0x6c,0x69,0x64])):_0x1c19f6(_0x5b0dd0-_0x375434>(0x259c8403^_0x2e1e87)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0xead873)[_0x1c19f6([0x63,0x61,0x74,0x63,0x68])](()=>{_0xead873(_0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x866ff5=0x1a6ee83^_0x2e1e87;function _0x2786b7(){const _0x3b8376=_0x1c19f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ad6fb(_0x36e100(_0x249a4d)),_0x2a3eaf=_0x10e1d8(_0x5ad6fb(window[_0x1c19f6([0x4d,0x61,0x74,0x68])][_0x1c19f6([0x63,0x65,0x69,0x6c])](_0x5b0dd0/_0x866ff5)));window[_0x1c19f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c19f6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b8376,_0x2a3eaf);}function _0x1ff18e(){const _0x3408fe=_0x1c19f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ad6fb(_0x36e100(_0x249a4d)),_0x202ebc=window[_0x1c19f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c19f6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3408fe);return _0x202ebc?window[_0x1c19f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10e1d8(_0x202ebc),0x10)*_0x866ff5:null;}function _0x208651(_0x2fbc1d){return new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ee6fd,_0x31a6ab)=>{_0x2fbc1d[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x2ee6fd,_0x31a6ab),window[_0x1c19f6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31a6ab,0x191d4c3^_0x2e1e87);});}}_0x143d5e[_0x1c19f6([0x6f,0x6e])](_0x1c19f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2dfb3e,_0x36767e)=>{if(_0x36767e[0x0]!=_0x249a4d)return _0xead873(_0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36767e[0x1]={..._0x36767e[0x1],[_0x1c19f6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x72bfa9};},{[_0x1c19f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c19f6([0x68,0x69,0x67,0x68])}),_0x143d5e[_0x1c19f6([0x6f,0x6e])](_0x1c19f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28d747=>{_0xe72cf2(_0x28d747[_0x1c19f6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ae552=!0x0,_0x5baff8(_0x28d747[_0x1c19f6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c19f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c19f6([0x6c,0x6f,0x77])}),_0x242667[_0x1c19f6([0x74,0x68,0x65,0x6e])](()=>{_0x2ae552||_0xead873(_0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3042b0(){return _0x143d5e[_0x1c19f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c19f6([0x76,0x69,0x65,0x77])][_0x1c19f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c19f6([0x61,0x75,0x74,0x6f]);}function _0x1b78e8(){_0x143d5e[_0x1c19f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c19f6([0x76,0x69,0x65,0x77])][_0x1c19f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c19f6([0x61,0x75,0x74,0x6f]);}}function _0x1e066f(_0xf9c347){const _0x5ec31d=[new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x598189=>setTimeout(_0x598189,0x1993ecf^_0x2e1e87)),_0x242667[_0x1c19f6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18f7ff=>{let _0x441e35=0x0;_0x143d5e[_0x1c19f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c19f6([0x6f,0x6e])](_0x1c19f6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xbe73dc,_0x5d7107)=>{_0x5d7107[0x0][_0x1c19f6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x441e35++,_0x441e35==(0x19001fb^_0x2e1e87)&&(_0x18f7ff(),_0xbe73dc[_0x1c19f6([0x6f,0x66,0x66])]());});}))];return window[_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c19f6([0x72,0x61,0x63,0x65])](_0x5ec31d)[_0x1c19f6([0x74,0x68,0x65,0x6e])](()=>_0xf9c347);}async function _0x3799c0(){await _0x242667,_0x143d5e[_0x1c19f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c19f6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42ea27,_0x143d5e[_0x1c19f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c19f6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42ea27,_0x143d5e[_0x1c19f6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c19f6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52ac4f(_0x242446){const _0x3719b1=_0x46bd06();_0x143d5e[_0x3719b1]=_0x1c19f6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x242446,_0x242446!=_0x1c19f6([0x56,0x61,0x6c,0x69,0x64])&&_0x3799c0();}function _0x46bd06(){const _0x9576b2=window[_0x1c19f6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c19f6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c19f6([0x6e,0x6f,0x77])]())[_0x1c19f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c19f6([0x2e]),'');let _0x3ce3ec=_0x1c19f6([0x6e]);for(let _0x39972d=0x0;_0x39972d<_0x9576b2[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39972d+=0x2){let _0x21b694=window[_0x1c19f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9576b2[_0x1c19f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39972d,_0x39972d+0x2));_0x21b694>=_0x2f5f87[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x21b694-=_0x2f5f87[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ce3ec+=_0x2f5f87[_0x21b694];}return _0x3ce3ec;}function _0x426488(){const _0x105e29=_0x3552b5[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])](_0x1c19f6([0x2e]));if(0x3!=_0x105e29[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d49ee(_0x105e29[0x1]);function _0x2d49ee(_0x546943){const _0x563d2a=_0x52c66f(_0x546943);return _0x563d2a&&_0x23de07()?_0x563d2a:null;function _0x23de07(){const _0x3f4390=_0x563d2a[_0x1c19f6([0x6a,0x74,0x69])],_0x3b2521=window[_0x1c19f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f4390[_0x1c19f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f4390[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x585e22={..._0x563d2a,[_0x1c19f6([0x6a,0x74,0x69])]:_0x3f4390[_0x1c19f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f4390[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x585e22[_0x1c19f6([0x76,0x63])],_0x36e100(_0x585e22)==_0x3b2521;}}}async function _0x470d9e(){let _0x5ea198=!0x0;try{const _0xb636dd=_0x3552b5[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])](_0x1c19f6([0x2e])),[_0x2029c6,_0x54d6d8,_0x38b686]=_0xb636dd;return _0x39b89e(_0x2029c6),await _0x482caf(_0x2029c6,_0x54d6d8,_0x38b686),_0x5ea198;}catch{return!0x1;}function _0x39b89e(_0x573edf){const _0x1433af=_0x52c66f(_0x573edf);_0x1433af&&_0x1433af[_0x1c19f6([0x61,0x6c,0x67])]==_0x1c19f6([0x45,0x53,0x32,0x35,0x36])||(_0x5ea198=!0x1);}async function _0x482caf(_0x349824,_0x1103a4,_0x4bda41){const _0x3dbaa3=window[_0x1c19f6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c19f6([0x66,0x72,0x6f,0x6d])](_0xe7b3bd(_0x4bda41),_0x5ebfd5=>_0x5ebfd5[_0x1c19f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe8388b=new window[(_0x1c19f6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c19f6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x349824+_0x1c19f6([0x2e])+_0x1103a4),_0x4e1db7=window[_0x1c19f6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c19f6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e1db7)return;const _0x559f43=await _0x4e1db7[_0x1c19f6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c19f6([0x6a,0x77,0x6b]),_0x5ea513,{[_0x1c19f6([0x6e,0x61,0x6d,0x65])]:_0x1c19f6([0x45,0x43,0x44,0x53,0x41]),[_0x1c19f6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c19f6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c19f6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e1db7[_0x1c19f6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c19f6([0x6e,0x61,0x6d,0x65])]:_0x1c19f6([0x45,0x43,0x44,0x53,0x41]),[_0x1c19f6([0x68,0x61,0x73,0x68])]:{[_0x1c19f6([0x6e,0x61,0x6d,0x65])]:_0x1c19f6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x559f43,_0x3dbaa3,_0xe8388b)||(_0x5ea198=!0x1);}}function _0x52c66f(_0x5d1691){return _0x5d1691[_0x1c19f6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c19f6([0x65,0x79]))?JSON[_0x1c19f6([0x70,0x61,0x72,0x73,0x65])](_0xe7b3bd(_0x5d1691)):null;}function _0xe7b3bd(_0x5e4492){return window[_0x1c19f6([0x61,0x74,0x6f,0x62])](_0x5e4492[_0x1c19f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c19f6([0x2b]))[_0x1c19f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c19f6([0x2f])));}function _0x36e100(_0xd1b484){let _0x15f4aa=0x1505;function _0xe926a9(_0x58cd56){for(let _0x2763f0=0x0;_0x2763f0<_0x58cd56[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2763f0++){const _0x50ed13=_0x58cd56[_0x1c19f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2763f0);_0x15f4aa=(_0x15f4aa<<0x5)+_0x15f4aa+_0x50ed13,_0x15f4aa&=_0x15f4aa;}}function _0x17f835(_0x2fb5b3){Array[_0x1c19f6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fb5b3)?_0x2fb5b3[_0x1c19f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17f835):_0x2fb5b3&&typeof _0x2fb5b3==_0x1c19f6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c19f6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fb5b3)[_0x1c19f6([0x73,0x6f,0x72,0x74])]()[_0x1c19f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3abb04,_0x2dbc22])=>{_0xe926a9(_0x3abb04),_0x17f835(_0x2dbc22);}):_0xe926a9(window[_0x1c19f6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fb5b3));}return _0x17f835(_0xd1b484),_0x15f4aa>>>0x0;}function _0x5ad6fb(_0x22d19f){return _0x22d19f[_0x1c19f6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c19f6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c19f6([0x30]));}function _0x10e1d8(_0x1739d2){return _0x1739d2[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c19f6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c19f6([0x6a,0x6f,0x69,0x6e])]('');}function _0x42ea27(){}function _0x1c19f6(_0x1a3aef){return _0x1a3aef['map'](_0x142827=>String['fromCharCode'](_0x142827))['join']('');}_0x52ac4f(await _0x444f7d());}(this);}['_initSchema'](){const _0x1685a9=this['editor']['model']['schema'];_0x1685a9['isRegistered']('imageBlock')&&_0x1685a9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1685a9['isRegistered']('imageInline')&&_0x1685a9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3034af=this['editor'];_0x3034af['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3034af['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2ae715=>_0x2ae715['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5114f3=_0x3034af['commands']['get']('replaceImageSource');_0x5114f3&&this['listenTo'](_0x5114f3,'cleanupImage',(_0x3ebc93,[_0x1495c6,_0x5be9db])=>{_0x1495c6['removeAttribute']('uploadcareImageId',_0x5be9db);});}['_initConfig'](){const _0xa23d98=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1f8dd8=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xecd3bc(_0xff7e6a['document'],'uc-config',{..._0xa23d98,'pubkey':_0x1f8dd8,'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']=_0x247757=>{if('closeMax'==_0x247757)return'#uc-icon-arrow-down';},_0xff7e6a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xecd3bc(_0xff7e6a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xff7e6a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x14b31e=this['editor']['commands']['get']('insertImage');_0x14b31e&&this['listenTo'](_0x14b31e,'execute',()=>{const _0x210d7d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x210d7d&&_0x210d7d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x210d7d);});});const _0x26150d=this['editor']['commands']['get']('uploadcareImageReplace');_0x26150d&&this['listenTo'](_0x26150d,'execute',()=>{const _0x23dbe4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x23dbe4&&_0x23dbe4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x23dbe4);});});}}class tt extends _0x58583c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x522ad2){super(_0x522ad2),_0x522ad2['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x405b7c['defineComponents'](_0x405b7c);}}class ii extends _0x5820df{constructor(_0x2cf2d1){super(_0x2cf2d1);const t=_0x2cf2d1['t'],_0x4cf10c=this['bindTemplate'],_0x1f07b8=new _0x1f1e03();_0x1f07b8['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':[_0x1f07b8,{'text':_0x4cf10c['to']('imageUploadProgress',_0x5bd87f=>t('Loading\x20image...')+'\x20('+(_0x5bd87f||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 _0x5820df{constructor(_0x2d1884){super(_0x2d1884);const t=_0x2d1884['t'];this['set']('errorType',null);const _0x4eb104=new _0x483a74(_0x2d1884);_0x4eb104['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4eb104['withText']=!0x0,_0x4eb104['class']='ck-button-action',_0x4eb104['on']('execute',()=>{this['fire']('retry');}),_0x4eb104['bind']('isVisible')['to'](this,'errorType',_0x172dc1=>'NotFound'!==_0x172dc1);const _0x1a5e1a=new _0x37bb23();_0x1a5e1a['content']=_0x3baf70,_0x1a5e1a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x18fce6=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':[_0x1a5e1a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x18fce6['to']('errorType',_0x597f96=>t('NotFound'!==_0x597f96?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4eb104]},{'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 _0x5820df{constructor(_0x49bb90,_0x5e1de4){super(_0x49bb90);const _0x4c5fb9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5e1de4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4c5fb9['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x48856c,_0x2c4da9,_0x4da13e){super(_0x48856c),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x48856c),this['_errorView']=new ti(_0x48856c),this['_editingView']=new ei(_0x48856c,_0x4da13e),this['_focusableView']=new _0x5820df(_0x48856c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2c4da9),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'],_0xc8445a=>{this['_addUploadcareImageEditorListeners'](_0xc8445a);});}),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'](_0x456279,_0x5f46fb){const _0x47d0aa='uc-cloud-image-editor',_0x308638=_0x456279['querySelector'](_0x47d0aa);if(_0x308638)return _0x5f46fb(_0x308638);const _0x23ea13=new MutationObserver(_0x45f4a3=>{const _0x50162a=_0x45f4a3['filter'](_0x3d3ed9=>_0x3d3ed9['target']===_0x456279&&_0x3d3ed9['addedNodes']['length']>0x0&&_0x3d3ed9['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x47d0aa);_0x50162a['length']&&(_0x23ea13['disconnect'](),_0x5f46fb(_0x50162a[0x0]['addedNodes'][0x0]));});_0x23ea13['observe'](_0x456279,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2aa1d9){_0x2aa1d9['addEventListener']('apply',_0x212e6b=>{this['fire']('apply',{'imageSrc':_0x212e6b['detail']['cdnUrl']});}),_0x2aa1d9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x461ce9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3f279a,_0x8f521,_0x4a3043){super(),this['_editor']=_0x3f279a,this['_dialog']=_0x8f521,this['_imageElement']=_0x4a3043,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 _0x24d53f=this['_imageElement'],_0x1b878e=_0x24d53f['getAttribute']('uploadcareImageId'),_0x418985=_0x24d53f['getAttribute']('src');if(_0x1b878e)await this['_loadImageInfo'](_0x1b878e,_0x418985);else{if(this['_imageCache']['has'](_0x418985)){const _0x4b9ef9=this['_imageCache']['get'](_0x418985);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4b9ef9['url'],this['imageDimension']=_0x4b9ef9['dimension'],this['imageId']=_0x4b9ef9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x33a982}=this['_editor'],t=_0x33a982['t'],_0xe105bf=new X(_0x33a982,this['imageStatus'],this['_attributes']);_0xe105bf['bind']('status')['to'](this,'imageStatus'),_0xe105bf['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xe105bf['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xe105bf['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xe105bf,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x24bf91,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xe105bf,'position':_0xa923de['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xe105bf['focus']();},'onHide':()=>{_0xe105bf['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4b451e=>!S(_0x4b451e,_0xe105bf['element'])}});}['_loadImageInfo'](_0x2160c6,_0x2eacb3){return j['getInfo'](_0x2160c6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5aa0e9=>{const {width:_0x16bfc8,height:_0x34bd12}=_0x5aa0e9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2eacb3,this['imageDimension']={'width':_0x16bfc8,'height':_0x34bd12},this['imageId']=_0x2160c6;})['catch'](_0xda3956=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xda3956['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x468ecd,_0x48b63c){return this['_getImageAsFile'](_0x468ecd)['then'](_0x177c49=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x48b63c['signal'],'file':_0x177c49,'onProgress':_0xc59f4a=>{_0xc59f4a&&_0xc59f4a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xc59f4a['value']));}}))['then'](_0x4e907f=>{const {width:_0x2fb1b1,height:_0x1426c1}=_0x4e907f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e907f['cdnUrl'],this['imageDimension']={'width':_0x2fb1b1,'height':_0x1426c1},this['imageId']=_0x4e907f['uuid'],this['imageUploadProgress']=null;const _0x4cec81=_0x468ecd['getAttribute']('src');this['_imageCache']['set'](_0x4cec81,{'id':_0x4e907f['uuid'],'url':_0x4e907f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2ad84e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ad84e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xc7c658,_0x54048f){_0xc7c658['on']('apply',(_0xf78f36,_0x61136e)=>{this['_replaceImage'](_0x54048f,_0x61136e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xc7c658['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xc7c658['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1d4048,_0x13c367,_0x427eeb){const _0x9999d0=this['_editor'],{width:_0x3d7b78,height:_0x33e560}=C(_0x13c367,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xf7d5e2,imageSources:_0x4d91e3}=k(_0x13c367,_0x3d7b78);_0x9999d0['model']['change'](_0x47bb88=>{if('$graveyard'===_0x1d4048['root']['rootName']){_0x9999d0['execute']('insertImage',{'imageType':_0x1d4048['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1d4048['getAttributes']()),'uploadcareImageId':_0x427eeb,'src':_0xf7d5e2,'sources':_0x4d91e3,'width':_0x3d7b78,'height':_0x33e560}});const _0x179e3b=_0x1d4048['getChildren']();_0x1d4048=_0x9999d0['model']['document']['selection']['getSelectedElement']();for(const _0x5f1b89 of _0x179e3b)_0x47bb88['append'](_0x47bb88['cloneElement'](_0x5f1b89),_0x1d4048);}else _0x47bb88['setSelection'](_0x1d4048,'on'),_0x9999d0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1d4048['getAttributes']()),'uploadcareImageId':_0x427eeb,'src':_0xf7d5e2,'sources':_0x4d91e3,'width':_0x3d7b78,'height':_0x33e560},_0x1d4048);_0x47bb88['setSelection'](_0x1d4048,'on');});}async['_getImageAsFile'](_0x4af092){const _0x4afc38=_0xff7e6a['window'],_0x5e6f48=_0xff7e6a['document']['location']['href'],_0x58e223=new _0x4afc38['URL'](_0x4af092['getAttribute']('src'),_0x5e6f48);if('data:'===_0x58e223['protocol']){const _0x3e524f=_0x58e223['href']['split'](','),_0x3ab386=_0x3e524f[0x0]['match'](/:(.*?);/)[0x1],_0x47933a=_0x3ab386['split']('/')[0x1],_0x294c82=_0x4afc38['atob'](_0x3e524f[_0x3e524f['length']-0x1]);let _0x6e7072=_0x294c82['length'];const _0x507d47=new _0x4afc38['Uint8Array'](_0x6e7072);for(;_0x6e7072--;)_0x507d47[_0x6e7072]=_0x294c82['charCodeAt'](_0x6e7072);return new _0x4afc38['File']([_0x507d47],'image.'+_0x47933a,{'type':_0x3ab386});}const _0x2299bc=_0x58e223['href']['split']('/'),_0x4894be=_0x2299bc[_0x2299bc['length']-0x1],_0x320a29=_0x4894be['split']('.')[0x1];return _0x4afc38['fetch'](_0x58e223['href'])['then'](_0x651ec3=>_0x651ec3['clone']()['blob']())['then'](_0x27257c=>new _0x4afc38['File']([_0x27257c],_0x4894be,{'type':'image/'+_0x320a29}));}}class O extends _0x1b10a0{['imageEditController'];static get['requires'](){return[_0x26566a];}['_isEditable'];constructor(_0x21a5bc){super(_0x21a5bc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x413b91){const _0x210e27=G(_0x413b91);return _0x5231b3=>!(!_0x5231b3||!_0x5231b3['is']('element','imageBlock')&&!_0x5231b3['is']('element','imageInline'))&&(!!_0x5231b3['hasAttribute']('uploadcareImageId')||!!_0x5231b3['hasAttribute']('src')&&_0x210e27(_0x5231b3['getAttribute']('src')));}(_0x21a5bc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1fb2b0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1fb2b0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x23bde0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x23bde0&&(_0x23bde0['is']('element','imageBlock')||_0x23bde0['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x26566a),_0x23bde0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1b10a0{['refresh'](){const _0x3e37e9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3e37e9&&(_0x3e37e9['is']('element','imageBlock')||_0x3e37e9['is']('element','imageInline')));}['execute'](_0x46c215){const _0x2bd197=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x148703=>{_0x148703['setAttributes'](_0x46c215,_0x2bd197),_0x148703['removeAttribute']('srcset',_0x2bd197),_0x148703['removeAttribute']('sizes',_0x2bd197);});}}class m extends _0x58583c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xc60d5f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3fcf11}=this;_0x3fcf11['commands']['add']('uploadcareImageEdit',new O(_0x3fcf11)),_0x3fcf11['commands']['add']('uploadcareImageReplace',new R(_0x3fcf11));}}class g extends _0x58583c{['_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 _0x1fbe56=this['editor'];_0x1fbe56['ui']['componentFactory']['add']('uploadcareImageEdit',_0x8b1091=>{const _0x545feb=_0x1fbe56['commands']['get']('uploadcareImageEdit'),_0x5b8198=new _0x483a74(_0x8b1091),t=_0x8b1091['t'];return _0x5b8198['set']({'icon':_0x24bf91,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5b8198['bind']('isEnabled')['to'](_0x545feb),_0x5b8198['bind']('isOn')['to'](_0x545feb,'isActive'),this['listenTo'](_0x5b8198,'execute',()=>{_0x1fbe56['execute']('uploadcareImageEdit'),_0x1fbe56['editing']['view']['focus']();}),_0x5b8198;}),this['_initConfig']();}['_initConfig'](){const _0x332574=_0xecd3bc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x332574),this['listenTo'](this['editor'],'destroy',()=>{_0x332574['remove']();});}}class et extends _0x58583c{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 _0xf6a35a,Command as _0x4f7e6f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4b1496,IconGooglePhotos as _0x435b42,IconGoogleDrive as _0x21aafd,IconFacebook as _0x46aba7,IconDropbox as _0x4d4e4f,IconUploadcareLink as _0x8668da,IconUploadcareImageUpload as _0x236887,IconError as _0x5a770c,IconUploadcareImageEdit as _0x45e2a0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2b70cd,MenuBarMenuListItemButtonView as _0x51e882,View as _0x1e7c86,FocusCycler as _0x32b41a,Dialog as _0x1761c2,DialogViewPosition as _0x188ce3,SpinnerView as _0x3ee959,IconView as _0x37d76c,Notification as _0x1d0ead}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xab41e0,DomEmitterMixin as _0x1882d5,global as _0x46c507,getAncestors as _0x3d7977,ObservableMixin as _0x5d4e50,uid as _0x8ba1cf,createElement as _0x7c7a62}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x848664}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3cbacf,info as _0x3cc4a1}from'@uploadcare/upload-client';import*as _0x4ad440 from'@uploadcare/file-uploader';var i=function(_0x4eb177){return _0x4eb177['Local']='local',_0x4eb177['URL']='url',_0x4eb177['Dropbox']='dropbox',_0x4eb177['GDrive']='gdrive',_0x4eb177['Facebook']='facebook',_0x4eb177['GPhotos']='gphotos',_0x4eb177['OneDrive']='onedrive',_0x4eb177;}({});function _(_0x75d2f7,_0x29685b,_0x16bbd7){const t=_0x75d2f7['t'],_0x328b1=_0x75d2f7['t'];switch(_0x29685b){case i['Local']:return{'text':_0x328b1('Insert'===_0x16bbd7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x328b1('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x16bbd7?_0x328b1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x328b1('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x16bbd7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x16bbd7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x16bbd7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x16bbd7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x16bbd7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x29685b;}}class e extends _0xf6a35a{['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 _0x2dde39=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x59257b;for(const _0x279ab6 in _0x2dde39){const _0x1cdaaa=_0x279ab6,_0x2d287c=_0x2dde39[_0x1cdaaa];if('uploadcareLicenseKeyValid'==_0x2d287c||'uploadcareLicenseKeyInvalid'==_0x2d287c||'uploadcareLicenseKeyExpired'==_0x2d287c||'uploadcareLicenseKeyDomainLimit'==_0x2d287c||'uploadcareLicenseKeyNotAllowed'==_0x2d287c||'uploadcareLicenseKeyEvaluationLimit'==_0x2d287c||'uploadcareLicenseKeyTrialLimit'==_0x2d287c||'uploadcareLicenseKeyUsageLimit'==_0x2d287c){delete _0x2dde39[_0x1cdaaa],_0x59257b=_0x2d287c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x59257b&&_0x2dde39['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x59257b&&_0x2dde39['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x59257b&&_0x2dde39['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x59257b&&_0x2dde39['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x59257b&&_0x2dde39['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x59257b&&_0x2dde39['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x59257b&&_0x2dde39['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5e15ce}=this,_0x41904f=_0x5e15ce['commands']['get']('uploadcare');if(!_0x41904f)return;const _0x5e5353=this['_normalizeConfigSourceList'](_0x5e15ce['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1e2dde,_0x361f28)=>{const _0x13b1a1=this['_getIntegrationKey'](_0x361f28['type']);return _0x1e2dde[_0x13b1a1]||(_0x1e2dde[_0x13b1a1]=[]),_0x1e2dde[_0x13b1a1]['push'](_0x361f28),_0x1e2dde;},{});_0x5e15ce['plugins']['has']('ImageInsertUI')&&_0x5e15ce['commands']['get']('uploadcare')&&Object['entries'](_0x5e5353)['forEach'](([_0x319541,_0x1c3136])=>{_0x5e15ce['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x319541,'observable':()=>_0x41904f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1c3136),'formViewCreator':()=>this['_createDropdownButtons'](_0x1c3136),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1c3136),'override':'assetManager'!==_0x319541});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x220385){const {locale:_0x234307}=this['editor'];return _0x220385['map'](_0x25bbf9=>{const _0x22c66d=_(_0x234307,_0x25bbf9,'Insert');switch(_0x25bbf9){case i['Local']:return{'icon':_0x236887,'type':i['Local'],..._0x22c66d};case i['URL']:return{'icon':_0x8668da,'type':i['URL'],..._0x22c66d};case i['Dropbox']:return{'icon':_0x4d4e4f,'type':i['Dropbox'],..._0x22c66d};case i['Facebook']:return{'icon':_0x46aba7,'type':i['Facebook'],..._0x22c66d};case i['GDrive']:return{'icon':_0x21aafd,'type':i['GDrive'],..._0x22c66d};case i['GPhotos']:return{'icon':_0x435b42,'type':i['GPhotos'],..._0x22c66d};case i['OneDrive']:return{'icon':_0x4b1496,'type':i['OneDrive'],..._0x22c66d};}});}['_getIntegrationKey'](_0x1b66dd){switch(_0x1b66dd){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x456b05,_0x1d10d8){const _0x21df24=this['editor'],_0x288643=new _0x456b05(_0x21df24['locale']),_0x194b06=_0x21df24['commands']['get']('uploadcare');return _0x288643['bind']('isEnabled')['to'](_0x194b06),_0x288643['on']('execute',()=>{_0x194b06['execute'](_0x1d10d8);}),_0x288643;}['_createToolbarButton'](_0xe35c7c){const {locale:_0x3edb0e}=this['editor'],_0x12b129=this['editor']['plugins']['get']('ImageInsertUI'),_0x4938d0=_0xe35c7c[0x0],_0x5defbb=this['_createButton'](_0x2b70cd,_0x4938d0['type']);return _0x5defbb['icon']=_0x4938d0['icon'],_0x5defbb['bind']('label')['to'](_0x12b129,'isImageSelected',_0x1fbbe1=>_(_0x3edb0e,_0x4938d0['type'],_0x1fbbe1?'Replace':'Insert')['text']),_0x5defbb['tooltip']=!0x0,_0x5defbb;}['_createDropdownButtons'](_0x29d95e){const {locale:_0x22690f}=this['editor'],_0x9cdf19=this['editor']['plugins']['get']('ImageInsertUI');return _0x29d95e['map'](_0x4a896d=>{const _0x2390de=this['_createButton'](_0x2b70cd,_0x4a896d['type']);return _0x2390de['withText']=!0x0,_0x2390de['icon']=_0x4a896d['icon'],_0x2390de['bind']('label')['to'](_0x9cdf19,'isImageSelected',_0x3bc693=>_(_0x22690f,_0x4a896d['type'],_0x3bc693?'Replace':'Insert')['text']),_0x2390de;});}['_createMenuBarButtons'](_0x517bbd){return _0x517bbd['map'](_0x5c98a9=>{const _0x4459cd=this['_createButton'](_0x51e882,_0x5c98a9['type']);return _0x4459cd['icon']=_0x5c98a9['icon'],_0x4459cd['label']=_0x5c98a9['shortText'],_0x4459cd;});}}class F extends _0x1e7c86{['focusTracker'];['focusCycler'];constructor(_0x32018c){super(_0x32018c),this['focusTracker']=new _0xab41e0(),this['focusCycler']=new _0x32b41a({'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(_0x1e44f4,_0x4c1e8b){super(_0x1e44f4),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-'+_0x4c1e8b}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x396935,_0x3ba953){const _0x46f67d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x45bf90=>_0x45bf90<=_0x3ba953)['map'](_0x15bbb5=>_0x396935['replace'](/\/$/,'')+'/-/resize/'+_0x15bbb5+'x/\x20'+_0x15bbb5+'w');return{'imageFallbackUrl':_0x396935,'imageSources':[{'srcset':_0x46f67d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3ba953+'px)\x20100vw,\x20'+_0x3ba953+'px','type':'image/webp'}]};}function C(_0x5f3e06,_0x1aaaed,_0x278403){const _0x393e34=_0x5f3e06['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x393e34?parseInt(_0x393e34[0x1],0xa):_0x1aaaed,'height':_0x393e34?parseInt(_0x393e34[0x2],0xa):_0x278403};}function p(_0x5c2ad6,_0xc9d36d){const _0x35ec58=new(_0x1882d5())(),_0x217af0=_0x5c2ad6['plugins']['get']('ImageUtils'),_0xa6a81d=_0x5c2ad6['editing']['mapper']['toViewElement'](_0xc9d36d),_0x1b930f=_0x217af0['findViewImgElement'](_0xa6a81d),_0x79bd7e=_0x5c2ad6['editing']['view']['domConverter']['viewToDom'](_0x1b930f),_0x11fa33=_0xc9d36d['getAttribute']('width'),_0x592269=_0xc9d36d['getAttribute']('height'),_0xc30dce='image-processing';_0x5c2ad6['editing']['view']['change'](_0x2fc7b0=>{_0x2fc7b0['addClass'](_0xc30dce,_0xa6a81d),_0x2fc7b0['setStyle']('aspect-ratio',_0x11fa33+'/'+_0x592269,_0x1b930f);}),_0x35ec58['listenTo'](_0x79bd7e,'load',()=>{_0x35ec58['stopListening'](_0x79bd7e,'load'),_0x5c2ad6['editing']['view']['change'](_0x2b7d76=>{_0x2b7d76['removeClass'](_0xc30dce,_0xa6a81d),_0x2b7d76['removeStyle']('aspect-ratio',_0x1b930f);});});}function G(_0x3f93ac){if(Array['isArray'](_0x3f93ac)){const _0x5a50e8=_0x3f93ac['map'](G);return _0x2e8cbb=>_0x5a50e8['some'](_0x33c122=>_0x33c122(_0x2e8cbb));}if('origin'==_0x3f93ac){const _0x122e15=_0x46c507['window']['location']['origin'];return _0x1800c4=>new URL(_0x1800c4,_0x46c507['document']['baseURI'])['origin']==_0x122e15;}return'function'==typeof _0x3f93ac?_0x3f93ac:_0x3f93ac instanceof RegExp?_0x28ad85=>!(!_0x28ad85['match'](_0x3f93ac)&&!_0x28ad85['replace'](/^https?:\/\//,'')['match'](_0x3f93ac)):()=>!0x1;}function S(_0x390196,_0x2246ab){return _0x3d7977(_0x390196['target'])['includes'](_0x2246ab);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d4e50(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xb01e,_0x21a3bf,_0x594bd0){super(),this['_editor']=_0xb01e,this['_editing']=_0x21a3bf,this['_dialog']=_0xb01e['plugins']['get'](_0x1761c2),this['_api']=_0x21a3bf['ctxElement']['getAPI'](),this['_type']=_0x594bd0,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:_0xd699ea,model:_0x417654}=this['_editor'],_0x475393=_0x417654['document']['selection']['getSelectedElement'](),_0x4286df=_0x475393&&(_0x475393['is']('element','imageBlock')||_0x475393['is']('element','imageInline'));this['_formView']=new x(_0xd699ea,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x236887,'title':_(_0xd699ea,this['_type'],_0x4286df?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x188ce3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x395ef5=>!S(_0x395ef5,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x322369}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4a5537=>{const _0x16fb6e=_0x322369['length'];for(const _0x2c682d of _0x322369){const _0xafef17=_0x2c682d===_0x322369[_0x16fb6e-0x1],{cdnUrl:_0x1584b7,fileInfo:_0x5c0027}=_0x2c682d;if(!_0x1584b7||!_0x5c0027)continue;const {width:_0x25d155,height:_0x214d73}=_0x5c0027['imageInfo'],_0x59daef=C(_0x1584b7,_0x25d155,_0x214d73),_0x1be10c=k(_0x1584b7,_0x59daef['width']),_0x2e9fe9={'id':_0x5c0027['uuid'],'type':'image','attributes':{'imageDimension':_0x59daef,..._0x1be10c}};this['_insertAsset'](_0x2e9fe9,_0xafef17,_0x4a5537);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2ecfdc=>{'idle'===_0x2ecfdc['detail']['status']&&!_0x2ecfdc['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xbbd37f,_0x157e16,_0xf9e753){const _0x4e8e68=this['_editor']['model']['document']['selection'],_0x251bc1=_0x4e8e68['getSelectedElement'](),_0x55c96b=!(!_0x251bc1||!_0x251bc1['is']('element','imageInline'));_0xf9e753['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xbbd37f,_0x55c96b),_0x157e16||_0xf9e753['setSelection'](_0x4e8e68['getLastPosition']());}['_insertImage'](_0x20fa88,_0x383be8){const _0x273fe9=this['_editor'],{imageDimension:_0x599cb9,imageFallbackUrl:_0x3500a1,imageSources:_0x43aea9}=_0x20fa88['attributes'];_0x273fe9['execute']('insertImage',{'imageType':_0x383be8?'imageInline':null,'source':{'uploadcareImageId':_0x20fa88['id'],'src':_0x3500a1,'sources':_0x43aea9,..._0x599cb9}});}}class w extends _0x4f7e6f{['_editing'];['_controller']=null;static get['requires'](){return[_0x1761c2,o];}constructor(_0x2d349f){super(_0x2d349f),this['_editing']=_0x2d349f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5647a5){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5647a5);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x461b4b,publicKey:_0x3c8025,signal:_0x951ee4,onProgress:_0xc5734c}){return _0x3cbacf(_0x461b4b,{'publicKey':_0x3c8025,'store':'auto','signal':_0x951ee4,'onProgress':_0xc5734c});}static['getInfo'](_0x596e52,_0x1e6ec1){return _0x3cc4a1(_0x596e52,_0x1e6ec1);}}class f extends _0xf6a35a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x848664,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4e9fc6=this['editor'];if(!!!_0x4e9fc6['config']['get']('uploadcare'))return;_0x4e9fc6['plugins']['get'](_0x848664)['createUploadAdapter']=_0x3d46f1=>new A(_0x3d46f1,_0x4e9fc6),_0x4e9fc6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x272d77,{imageElement:_0x18b38b,data:_0x5afe6f})=>{_0x4e9fc6['model']['change'](_0x249cd2=>{_0x249cd2['setAttribute']('uploadcareImageId',_0x5afe6f['uploadcareImageId'],_0x18b38b);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x2c8d0f,_0x3ef2a8){this['loader']=_0x2c8d0f,this['editor']=_0x3ef2a8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x189ab8=this['editor']['config']['get']('uploadcare.pubkey'),_0x5799c9=await this['loader']['file'];return j['upload']({'file':_0x5799c9,'publicKey':_0x189ab8,'signal':this['controller']['signal'],'onProgress':_0x1309be=>{_0x1309be&&_0x1309be['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1309be['value']);}})['then'](async _0x527ac6=>{const {imageFallbackUrl:_0x27e644,imageSources:_0xe00b08}=k(_0x527ac6['cdnUrl'],_0x527ac6['imageInfo']['width']);return{'uploadcareImageId':_0x527ac6['uuid'],'default':_0x27e644,'sources':_0xe00b08};})['catch'](()=>{const _0x2ee285=t('Cannot\x20upload\x20file:')+('\x20'+_0x5799c9['name']+'.');return Promise['reject'](_0x2ee285);});}['abort'](){this['controller']['abort']();}}class o extends _0xf6a35a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1761c2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5aeeec){super(_0x5aeeec),this['ucContextId']=_0x8ba1cf();}['init'](){const _0x245caf=this['editor'];_0x245caf['commands']['add']('uploadcare',new w(_0x245caf));}['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 _0x3499bd=_0x46c507['document']['querySelector']('input[uploadcare-file-input]');_0x3499bd&&_0x3499bd['remove']();}),async function(_0x50c37b){const _0x10a281=_0xd6bc5d([0x78,0x45,0x57,0x61,0x4b,0x55,0x47,0x77,0x62,0x71,0x42,0x79,0x48,0x56,0x34,0x5a,0x67,0x64,0x43,0x58,0x53,0x37,0x66,0x4e,0x73,0x74,0x4f,0x33,0x4d,0x65,0x54,0x52,0x41,0x6b,0x46,0x69,0x36,0x4c,0x6e,0x70,0x49,0x59,0x75,0x76,0x72,0x7a,0x6a,0x44,0x39,0x31,0x63,0x6f,0x6c,0x32,0x6d,0x38,0x68,0x50,0x51,0x30,0x35,0x4a]),_0xcec27c=0x6f708ba4,_0x5e247d=0x6f77e6b4^_0xcec27c,_0x42e57f=window[_0xd6bc5d([0x44,0x61,0x74,0x65])][_0xd6bc5d([0x6e,0x6f,0x77])](),_0x17573b=_0x50c37b[_0xd6bc5d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19bfa6=new window[(_0xd6bc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5441e7=>{_0x17573b[_0xd6bc5d([0x6f,0x6e,0x63,0x65])](_0xd6bc5d([0x72,0x65,0x61,0x64,0x79]),_0x5441e7);}),_0x501942={[_0xd6bc5d([0x6b,0x74,0x79])]:_0xd6bc5d([0x45,0x43]),[_0xd6bc5d([0x75,0x73,0x65])]:_0xd6bc5d([0x73,0x69,0x67]),[_0xd6bc5d([0x63,0x72,0x76])]:_0xd6bc5d([0x50,0x2d,0x32,0x35,0x36]),[_0xd6bc5d([0x78])]:_0xd6bc5d([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]),[_0xd6bc5d([0x79])]:_0xd6bc5d([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]),[_0xd6bc5d([0x61,0x6c,0x67])]:_0xd6bc5d([0x45,0x53,0x32,0x35,0x36])},_0x4e76cb=_0x17573b[_0xd6bc5d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd6bc5d([0x67,0x65,0x74])](_0xd6bc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d2a65(){let _0x4bd36d,_0x2953b9=null,_0x2738aa=null;try{if(_0x4e76cb==_0xd6bc5d([0x47,0x50,0x4c]))return _0xd6bc5d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4bd36d=_0x51ba10(),!_0x4bd36d)return _0xd6bc5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4bd36d[_0xd6bc5d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2738aa=_0x247740(_0x4bd36d[_0xd6bc5d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4bd36d[_0xd6bc5d([0x6a,0x74,0x69])])),await _0xd21b75()?_0x1d6c79()?_0x184d74()?_0xd6bc5d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b90bc()?(_0x4bd36d[_0xd6bc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd6bc5d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2953b9=_0x4abb0c(_0xd6bc5d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4bd36d[_0xd6bc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd6bc5d([0x74,0x72,0x69,0x61,0x6c])&&(_0x2953b9=_0x4abb0c(_0xd6bc5d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ca431()):_0xd6bc5d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd6bc5d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd6bc5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd6bc5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x184d74(){const _0x3aa0fa=[_0xd6bc5d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd6bc5d([0x74,0x72,0x69,0x61,0x6c])][_0xd6bc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bd36d[_0xd6bc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42e57f/0x3e8:0xe10*_0x5e247d;return _0x4bd36d[_0xd6bc5d([0x65,0x78,0x70])]<_0x3aa0fa;}function _0x1d6c79(){const _0x39ea6d=_0x4bd36d[_0xd6bc5d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x39ea6d&&(!!_0x39ea6d[_0xd6bc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6bc5d([0x2a]))||!!_0x39ea6d[_0xd6bc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6bc5d([0x55,0x50,0x4c,0x43])));}function _0x5b90bc(){const _0x31863a=_0x4bd36d[_0xd6bc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31863a||0x0==_0x31863a[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53cd96}=new URL(window[_0xd6bc5d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31863a[_0xd6bc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53cd96))return!0x0;const _0x36e02d=_0x53cd96[_0xd6bc5d([0x73,0x70,0x6c,0x69,0x74])](_0xd6bc5d([0x2e]));return _0x31863a[_0xd6bc5d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a9313=>_0x4a9313[_0xd6bc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6bc5d([0x2a])))[_0xd6bc5d([0x6d,0x61,0x70])](_0x4fd0ad=>_0x4fd0ad[_0xd6bc5d([0x73,0x70,0x6c,0x69,0x74])](_0xd6bc5d([0x2e])))[_0xd6bc5d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37bd38=>_0x37bd38[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36e02d[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd6bc5d([0x6d,0x61,0x70])](_0x1e3bd9=>Array(_0x36e02d[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1e3bd9[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd6bc5d([0x66,0x69,0x6c,0x6c])](_0x1e3bd9[0x0]===_0xd6bc5d([0x2a])?_0xd6bc5d([0x2a]):'')[_0xd6bc5d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1e3bd9))[_0xd6bc5d([0x73,0x6f,0x6d,0x65])](_0x54555d=>_0x36e02d[_0xd6bc5d([0x65,0x76,0x65,0x72,0x79])]((_0x5111d0,_0x2ca36a)=>_0x54555d[_0x2ca36a]===_0x5111d0||_0x54555d[_0x2ca36a]===_0xd6bc5d([0x2a])));}function _0x4ca431(){return _0x2953b9&&_0x2738aa?new window[(_0xd6bc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52591e,_0x86ff44)=>{_0x2953b9[_0xd6bc5d([0x74,0x68,0x65,0x6e])](_0x52591e,_0x86ff44),_0x2738aa[_0xd6bc5d([0x74,0x68,0x65,0x6e])](_0x16d0ad=>{_0x16d0ad!=_0xd6bc5d([0x56,0x61,0x6c,0x69,0x64])&&_0x52591e(_0x16d0ad);},_0x86ff44);}):_0x2953b9||_0x2738aa||_0xd6bc5d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x247740(_0x50c85b,_0x87e34b){return new window[(_0xd6bc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dd206=>{if(_0x2df84f())return _0x2dd206(_0xd6bc5d([0x56,0x61,0x6c,0x69,0x64]));_0x47a6cd(),_0x17573b[_0xd6bc5d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd6bc5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x587cc0=!0x1;const _0x45c124=_0x8ba1cf();function _0x148e84(_0x41ff8d){return!!_0x41ff8d&&(typeof _0x41ff8d===_0xd6bc5d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41ff8d===_0xd6bc5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41ff8d[_0xd6bc5d([0x74,0x68,0x65,0x6e])]===_0xd6bc5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41ff8d[_0xd6bc5d([0x63,0x61,0x74,0x63,0x68])]===_0xd6bc5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x221415(_0x5d6e39){_0x1c6b18(_0x5d6e39)[_0xd6bc5d([0x74,0x68,0x65,0x6e])](_0x51071d=>{if(!_0x51071d||_0x51071d[_0xd6bc5d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd6bc5d([0x6f,0x6b]))return _0xd6bc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2dcb52(_0x6093c5(_0x45c124+_0x87e34b))!=_0x51071d[_0xd6bc5d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd6bc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd6bc5d([0x56,0x61,0x6c,0x69,0x64]);})[_0xd6bc5d([0x74,0x68,0x65,0x6e])](_0x2d76f5=>(_0x181db4(),_0x2d76f5),()=>{const _0x442d05=_0x39bda1();return null==_0x442d05?(_0x181db4(),_0xd6bc5d([0x56,0x61,0x6c,0x69,0x64])):_0xd6bc5d(_0x42e57f-_0x442d05>(0x4b7c0fa4^_0xcec27c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd6bc5d([0x74,0x68,0x65,0x6e])](_0x2dd206)[_0xd6bc5d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dd206(_0xd6bc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x14aa80=0x6f466524^_0xcec27c;function _0x181db4(){const _0x1dfd2=_0xd6bc5d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2dcb52(_0x6093c5(_0x50c85b)),_0x2beac2=_0x447e94(_0x2dcb52(window[_0xd6bc5d([0x4d,0x61,0x74,0x68])][_0xd6bc5d([0x63,0x65,0x69,0x6c])](_0x42e57f/_0x14aa80)));window[_0xd6bc5d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd6bc5d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dfd2,_0x2beac2);}function _0x39bda1(){const _0x51ff5d=_0xd6bc5d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2dcb52(_0x6093c5(_0x50c85b)),_0x540a32=window[_0xd6bc5d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd6bc5d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51ff5d);return _0x540a32?window[_0xd6bc5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x447e94(_0x540a32),0x10)*_0x14aa80:null;}function _0x1c6b18(_0x5b4e61){return new window[(_0xd6bc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x581a0f,_0x399336)=>{_0x5b4e61[_0xd6bc5d([0x74,0x68,0x65,0x6e])](_0x581a0f,_0x399336),window[_0xd6bc5d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x399336,0x6f715f64^_0xcec27c);});}}_0x17573b[_0xd6bc5d([0x6f,0x6e])](_0xd6bc5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57326a,_0xd71459)=>{if(_0xd71459[0x0]!=_0x50c85b)return _0x2dd206(_0xd6bc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd71459[0x1]={..._0xd71459[0x1],[_0xd6bc5d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45c124};},{[_0xd6bc5d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd6bc5d([0x68,0x69,0x67,0x68])}),_0x17573b[_0xd6bc5d([0x6f,0x6e])](_0xd6bc5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe825ab=>{_0x148e84(_0xe825ab[_0xd6bc5d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x587cc0=!0x0,_0x221415(_0xe825ab[_0xd6bc5d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd6bc5d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd6bc5d([0x6c,0x6f,0x77])}),_0x19bfa6[_0xd6bc5d([0x74,0x68,0x65,0x6e])](()=>{_0x587cc0||_0x2dd206(_0xd6bc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2df84f(){return _0x17573b[_0xd6bc5d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd6bc5d([0x76,0x69,0x65,0x77])][_0xd6bc5d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd6bc5d([0x61,0x75,0x74,0x6f]);}function _0x47a6cd(){_0x17573b[_0xd6bc5d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd6bc5d([0x76,0x69,0x65,0x77])][_0xd6bc5d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd6bc5d([0x61,0x75,0x74,0x6f]);}}function _0x4abb0c(_0x4bc481){const _0x1fc5d1=[new window[(_0xd6bc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3331c3=>setTimeout(_0x3331c3,0x6f79b568^_0xcec27c)),_0x19bfa6[_0xd6bc5d([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd6bc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c9ef9=>{let _0x59c5ff=0x0;_0x17573b[_0xd6bc5d([0x6d,0x6f,0x64,0x65,0x6c])][_0xd6bc5d([0x6f,0x6e])](_0xd6bc5d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54ce1e,_0x24e1d6)=>{_0x24e1d6[0x0][_0xd6bc5d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x59c5ff++,_0x59c5ff==(0x6f708a5c^_0xcec27c)&&(_0x5c9ef9(),_0x54ce1e[_0xd6bc5d([0x6f,0x66,0x66])]());});}))];return window[_0xd6bc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd6bc5d([0x72,0x61,0x63,0x65])](_0x1fc5d1)[_0xd6bc5d([0x74,0x68,0x65,0x6e])](()=>_0x4bc481);}async function _0x3e369e(){await _0x19bfa6,_0x17573b[_0xd6bc5d([0x6d,0x6f,0x64,0x65,0x6c])][_0xd6bc5d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5bfbbd,_0x17573b[_0xd6bc5d([0x6d,0x6f,0x64,0x65,0x6c])][_0xd6bc5d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5bfbbd,_0x17573b[_0xd6bc5d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd6bc5d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d5995(_0x404b64){const _0x29a974=_0xdf21eb();_0x17573b[_0x29a974]=_0xd6bc5d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x404b64,_0x404b64!=_0xd6bc5d([0x56,0x61,0x6c,0x69,0x64])&&_0x3e369e();}function _0xdf21eb(){const _0x1e3b2b=window[_0xd6bc5d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd6bc5d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd6bc5d([0x6e,0x6f,0x77])]())[_0xd6bc5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd6bc5d([0x2e]),'');let _0x41d2c5=_0xd6bc5d([0x78]);for(let _0x56d438=0x0;_0x56d438<_0x1e3b2b[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56d438+=0x2){let _0x14a850=window[_0xd6bc5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e3b2b[_0xd6bc5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56d438,_0x56d438+0x2));_0x14a850>=_0x10a281[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14a850-=_0x10a281[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41d2c5+=_0x10a281[_0x14a850];}return _0x41d2c5;}function _0x51ba10(){const _0x2d60ba=_0x4e76cb[_0xd6bc5d([0x73,0x70,0x6c,0x69,0x74])](_0xd6bc5d([0x2e]));if(0x3!=_0x2d60ba[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x394202(_0x2d60ba[0x1]);function _0x394202(_0x54b650){const _0x51fe78=_0x4bdf43(_0x54b650);return _0x51fe78&&_0x4fc885()?_0x51fe78:null;function _0x4fc885(){const _0x56f181=_0x51fe78[_0xd6bc5d([0x6a,0x74,0x69])],_0x3c0e4f=window[_0xd6bc5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56f181[_0xd6bc5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56f181[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x571bc1={..._0x51fe78,[_0xd6bc5d([0x6a,0x74,0x69])]:_0x56f181[_0xd6bc5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56f181[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x571bc1[_0xd6bc5d([0x76,0x63])],_0x6093c5(_0x571bc1)==_0x3c0e4f;}}}async function _0xd21b75(){let _0x4ca801=!0x0;try{const _0x48782d=_0x4e76cb[_0xd6bc5d([0x73,0x70,0x6c,0x69,0x74])](_0xd6bc5d([0x2e])),[_0x3db767,_0xa2d19,_0x98faa9]=_0x48782d;return _0x249ed4(_0x3db767),await _0x26c070(_0x3db767,_0xa2d19,_0x98faa9),_0x4ca801;}catch{return!0x1;}function _0x249ed4(_0x50b886){const _0x4fbfae=_0x4bdf43(_0x50b886);_0x4fbfae&&_0x4fbfae[_0xd6bc5d([0x61,0x6c,0x67])]==_0xd6bc5d([0x45,0x53,0x32,0x35,0x36])||(_0x4ca801=!0x1);}async function _0x26c070(_0x34c356,_0x38c50e,_0x40e18c){const _0x296a=window[_0xd6bc5d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd6bc5d([0x66,0x72,0x6f,0x6d])](_0x14559a(_0x40e18c),_0x17c718=>_0x17c718[_0xd6bc5d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b588c=new window[(_0xd6bc5d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd6bc5d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x34c356+_0xd6bc5d([0x2e])+_0x38c50e),_0x4744d2=window[_0xd6bc5d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd6bc5d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4744d2)return;const _0x338ce5=await _0x4744d2[_0xd6bc5d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd6bc5d([0x6a,0x77,0x6b]),_0x501942,{[_0xd6bc5d([0x6e,0x61,0x6d,0x65])]:_0xd6bc5d([0x45,0x43,0x44,0x53,0x41]),[_0xd6bc5d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd6bc5d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd6bc5d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4744d2[_0xd6bc5d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd6bc5d([0x6e,0x61,0x6d,0x65])]:_0xd6bc5d([0x45,0x43,0x44,0x53,0x41]),[_0xd6bc5d([0x68,0x61,0x73,0x68])]:{[_0xd6bc5d([0x6e,0x61,0x6d,0x65])]:_0xd6bc5d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x338ce5,_0x296a,_0x4b588c)||(_0x4ca801=!0x1);}}function _0x4bdf43(_0x27e9ad){return _0x27e9ad[_0xd6bc5d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd6bc5d([0x65,0x79]))?JSON[_0xd6bc5d([0x70,0x61,0x72,0x73,0x65])](_0x14559a(_0x27e9ad)):null;}function _0x14559a(_0x6d8041){return window[_0xd6bc5d([0x61,0x74,0x6f,0x62])](_0x6d8041[_0xd6bc5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd6bc5d([0x2b]))[_0xd6bc5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd6bc5d([0x2f])));}function _0x6093c5(_0x52056f){let _0x48930f=0x1505;function _0x3bda35(_0x25300e){for(let _0x1e0b87=0x0;_0x1e0b87<_0x25300e[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e0b87++){const _0x4a519f=_0x25300e[_0xd6bc5d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e0b87);_0x48930f=(_0x48930f<<0x5)+_0x48930f+_0x4a519f,_0x48930f&=_0x48930f;}}function _0x278c96(_0x600d4a){Array[_0xd6bc5d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x600d4a)?_0x600d4a[_0xd6bc5d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x278c96):_0x600d4a&&typeof _0x600d4a==_0xd6bc5d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd6bc5d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x600d4a)[_0xd6bc5d([0x73,0x6f,0x72,0x74])]()[_0xd6bc5d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5f37a8,_0x4949d4])=>{_0x3bda35(_0x5f37a8),_0x278c96(_0x4949d4);}):_0x3bda35(window[_0xd6bc5d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x600d4a));}return _0x278c96(_0x52056f),_0x48930f>>>0x0;}function _0x2dcb52(_0x3683a2){return _0x3683a2[_0xd6bc5d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd6bc5d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd6bc5d([0x30]));}function _0x447e94(_0x4c3749){return _0x4c3749[_0xd6bc5d([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd6bc5d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd6bc5d([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bfbbd(){}function _0xd6bc5d(_0x2b7180){return _0x2b7180['map'](_0x4fcfdd=>String['fromCharCode'](_0x4fcfdd))['join']('');}_0x2d5995(await _0x5d2a65());}(this);}['_initSchema'](){const _0x47969d=this['editor']['model']['schema'];_0x47969d['isRegistered']('imageBlock')&&_0x47969d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x47969d['isRegistered']('imageInline')&&_0x47969d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4a310a=this['editor'];_0x4a310a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4a310a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3de7ad=>_0x3de7ad['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e69ae=_0x4a310a['commands']['get']('replaceImageSource');_0x1e69ae&&this['listenTo'](_0x1e69ae,'cleanupImage',(_0x4c4648,[_0x3f11b8,_0x38536b])=>{_0x3f11b8['removeAttribute']('uploadcareImageId',_0x38536b);});}['_initConfig'](){const _0x4af083=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4d44ee=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x7c7a62(_0x46c507['document'],'uc-config',{..._0x4af083,'pubkey':_0x4d44ee,'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']=_0x20590a=>{if('closeMax'==_0x20590a)return'#uc-icon-arrow-down';},_0x46c507['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x7c7a62(_0x46c507['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x46c507['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5ef76c=this['editor']['commands']['get']('insertImage');_0x5ef76c&&this['listenTo'](_0x5ef76c,'execute',()=>{const _0x1696da=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1696da&&_0x1696da['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1696da);});});const _0x12b629=this['editor']['commands']['get']('uploadcareImageReplace');_0x12b629&&this['listenTo'](_0x12b629,'execute',()=>{const _0x58f140=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58f140&&_0x58f140['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x58f140);});});}}class tt extends _0xf6a35a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x91b96c){super(_0x91b96c),_0x91b96c['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4ad440['defineComponents'](_0x4ad440);}}class ii extends _0x1e7c86{constructor(_0x283e1b){super(_0x283e1b);const t=_0x283e1b['t'],_0x2249a2=this['bindTemplate'],_0x196e6d=new _0x3ee959();_0x196e6d['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':[_0x196e6d,{'text':_0x2249a2['to']('imageUploadProgress',_0x3ffdb2=>t('Loading\x20image...')+'\x20('+(_0x3ffdb2||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 _0x1e7c86{constructor(_0x3064bd){super(_0x3064bd);const t=_0x3064bd['t'];this['set']('errorType',null);const _0x6f6eca=new _0x2b70cd(_0x3064bd);_0x6f6eca['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x6f6eca['withText']=!0x0,_0x6f6eca['class']='ck-button-action',_0x6f6eca['on']('execute',()=>{this['fire']('retry');}),_0x6f6eca['bind']('isVisible')['to'](this,'errorType',_0x4b9d7d=>'NotFound'!==_0x4b9d7d);const _0x153c69=new _0x37d76c();_0x153c69['content']=_0x5a770c,_0x153c69['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x382f90=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':[_0x153c69,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x382f90['to']('errorType',_0x3e4f8c=>t('NotFound'!==_0x3e4f8c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x6f6eca]},{'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 _0x1e7c86{constructor(_0xef741,_0x445c1a){super(_0xef741);const _0x48b109=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x445c1a,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x48b109['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3bd808,_0x1da022,_0xcc0780){super(_0x3bd808),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3bd808),this['_errorView']=new ti(_0x3bd808),this['_editingView']=new ei(_0x3bd808,_0xcc0780),this['_focusableView']=new _0x1e7c86(_0x3bd808),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1da022),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'],_0x445e1e=>{this['_addUploadcareImageEditorListeners'](_0x445e1e);});}),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'](_0xbcdcac,_0xc80965){const _0x4d672b='uc-cloud-image-editor',_0x169dd3=_0xbcdcac['querySelector'](_0x4d672b);if(_0x169dd3)return _0xc80965(_0x169dd3);const _0x532ab9=new MutationObserver(_0x479ef9=>{const _0x454d16=_0x479ef9['filter'](_0x480988=>_0x480988['target']===_0xbcdcac&&_0x480988['addedNodes']['length']>0x0&&_0x480988['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4d672b);_0x454d16['length']&&(_0x532ab9['disconnect'](),_0xc80965(_0x454d16[0x0]['addedNodes'][0x0]));});_0x532ab9['observe'](_0xbcdcac,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2dcf16){_0x2dcf16['addEventListener']('apply',_0xcb0c95=>{this['fire']('apply',{'imageSrc':_0xcb0c95['detail']['cdnUrl']});}),_0x2dcf16['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5d4e50(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x14fbfb,_0x174da7,_0x26287a){super(),this['_editor']=_0x14fbfb,this['_dialog']=_0x174da7,this['_imageElement']=_0x26287a,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 _0x156ce2=this['_imageElement'],_0x42005f=_0x156ce2['getAttribute']('uploadcareImageId'),_0x23bf0f=_0x156ce2['getAttribute']('src');if(_0x42005f)await this['_loadImageInfo'](_0x42005f,_0x23bf0f);else{if(this['_imageCache']['has'](_0x23bf0f)){const _0x114dc9=this['_imageCache']['get'](_0x23bf0f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x114dc9['url'],this['imageDimension']=_0x114dc9['dimension'],this['imageId']=_0x114dc9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x27b513}=this['_editor'],t=_0x27b513['t'],_0x5102a1=new X(_0x27b513,this['imageStatus'],this['_attributes']);_0x5102a1['bind']('status')['to'](this,'imageStatus'),_0x5102a1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5102a1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5102a1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5102a1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x45e2a0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5102a1,'position':_0x188ce3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5102a1['focus']();},'onHide':()=>{_0x5102a1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x537943=>!S(_0x537943,_0x5102a1['element'])}});}['_loadImageInfo'](_0x252379,_0x337c50){return j['getInfo'](_0x252379,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x37ec8e=>{const {width:_0x2c80c8,height:_0x5432a1}=_0x37ec8e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x337c50,this['imageDimension']={'width':_0x2c80c8,'height':_0x5432a1},this['imageId']=_0x252379;})['catch'](_0xc647cc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xc647cc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5e5492,_0x3c8812){return this['_getImageAsFile'](_0x5e5492)['then'](_0x36b4ba=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3c8812['signal'],'file':_0x36b4ba,'onProgress':_0x392b62=>{_0x392b62&&_0x392b62['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x392b62['value']));}}))['then'](_0x439ebb=>{const {width:_0x393ac9,height:_0x21c67e}=_0x439ebb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x439ebb['cdnUrl'],this['imageDimension']={'width':_0x393ac9,'height':_0x21c67e},this['imageId']=_0x439ebb['uuid'],this['imageUploadProgress']=null;const _0x7c64b1=_0x5e5492['getAttribute']('src');this['_imageCache']['set'](_0x7c64b1,{'id':_0x439ebb['uuid'],'url':_0x439ebb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x264d83=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x264d83['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4d6d6f,_0x24014c){_0x4d6d6f['on']('apply',(_0x207618,_0x191234)=>{this['_replaceImage'](_0x24014c,_0x191234['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4d6d6f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4d6d6f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x22ea41,_0x18d491,_0x397909){const _0x225d5a=this['_editor'],{width:_0x345127,height:_0x2e75ab}=C(_0x18d491,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x29e20a,imageSources:_0x678e2c}=k(_0x18d491,_0x345127);_0x225d5a['model']['change'](_0x216b63=>{if('$graveyard'===_0x22ea41['root']['rootName']){_0x225d5a['execute']('insertImage',{'imageType':_0x22ea41['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x22ea41['getAttributes']()),'uploadcareImageId':_0x397909,'src':_0x29e20a,'sources':_0x678e2c,'width':_0x345127,'height':_0x2e75ab}});const _0x132b6f=_0x22ea41['getChildren']();_0x22ea41=_0x225d5a['model']['document']['selection']['getSelectedElement']();for(const _0x556644 of _0x132b6f)_0x216b63['append'](_0x216b63['cloneElement'](_0x556644),_0x22ea41);}else _0x216b63['setSelection'](_0x22ea41,'on'),_0x225d5a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x22ea41['getAttributes']()),'uploadcareImageId':_0x397909,'src':_0x29e20a,'sources':_0x678e2c,'width':_0x345127,'height':_0x2e75ab},_0x22ea41);_0x216b63['setSelection'](_0x22ea41,'on');});}async['_getImageAsFile'](_0x4134f6){const _0x4e3933=_0x46c507['window'],_0x218915=_0x46c507['document']['location']['href'],_0x4303c2=new _0x4e3933['URL'](_0x4134f6['getAttribute']('src'),_0x218915);if('data:'===_0x4303c2['protocol']){const _0xdd83a8=_0x4303c2['href']['split'](','),_0x275584=_0xdd83a8[0x0]['match'](/:(.*?);/)[0x1],_0x11e9a3=_0x275584['split']('/')[0x1],_0x3c4146=_0x4e3933['atob'](_0xdd83a8[_0xdd83a8['length']-0x1]);let _0x391606=_0x3c4146['length'];const _0x453691=new _0x4e3933['Uint8Array'](_0x391606);for(;_0x391606--;)_0x453691[_0x391606]=_0x3c4146['charCodeAt'](_0x391606);return new _0x4e3933['File']([_0x453691],'image.'+_0x11e9a3,{'type':_0x275584});}const _0x58c2b3=_0x4303c2['href']['split']('/'),_0x469b2c=_0x58c2b3[_0x58c2b3['length']-0x1],_0x2d4c99=_0x469b2c['split']('.')[0x1];return _0x4e3933['fetch'](_0x4303c2['href'])['then'](_0x4ca88b=>_0x4ca88b['clone']()['blob']())['then'](_0x509ee9=>new _0x4e3933['File']([_0x509ee9],_0x469b2c,{'type':'image/'+_0x2d4c99}));}}class O extends _0x4f7e6f{['imageEditController'];static get['requires'](){return[_0x1761c2];}['_isEditable'];constructor(_0x14f79c){super(_0x14f79c),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x139580){const _0x4aadb7=G(_0x139580);return _0x267f6d=>!(!_0x267f6d||!_0x267f6d['is']('element','imageBlock')&&!_0x267f6d['is']('element','imageInline'))&&(!!_0x267f6d['hasAttribute']('uploadcareImageId')||!!_0x267f6d['hasAttribute']('src')&&_0x4aadb7(_0x267f6d['getAttribute']('src')));}(_0x14f79c['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3dbe63=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3dbe63);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x382dde=this['editor']['model']['document']['selection']['getSelectedElement']();_0x382dde&&(_0x382dde['is']('element','imageBlock')||_0x382dde['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1761c2),_0x382dde),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4f7e6f{['refresh'](){const _0x2727ed=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2727ed&&(_0x2727ed['is']('element','imageBlock')||_0x2727ed['is']('element','imageInline')));}['execute'](_0x216a5b){const _0x43a8ca=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4886fd=>{_0x4886fd['setAttributes'](_0x216a5b,_0x43a8ca),_0x4886fd['removeAttribute']('srcset',_0x43a8ca),_0x4886fd['removeAttribute']('sizes',_0x43a8ca);});}}class m extends _0xf6a35a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1d0ead,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x39a88b}=this;_0x39a88b['commands']['add']('uploadcareImageEdit',new O(_0x39a88b)),_0x39a88b['commands']['add']('uploadcareImageReplace',new R(_0x39a88b));}}class g extends _0xf6a35a{['_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 _0x1bfe39=this['editor'];_0x1bfe39['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2aff03=>{const _0x33f83d=_0x1bfe39['commands']['get']('uploadcareImageEdit'),_0x32b54b=new _0x2b70cd(_0x2aff03),t=_0x2aff03['t'];return _0x32b54b['set']({'icon':_0x45e2a0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x32b54b['bind']('isEnabled')['to'](_0x33f83d),_0x32b54b['bind']('isOn')['to'](_0x33f83d,'isActive'),this['listenTo'](_0x32b54b,'execute',()=>{_0x1bfe39['execute']('uploadcareImageEdit'),_0x1bfe39['editing']['view']['focus']();}),_0x32b54b;}),this['_initConfig']();}['_initConfig'](){const _0x198a7d=_0x7c7a62(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x198a7d),this['listenTo'](this['editor'],'destroy',()=>{_0x198a7d['remove']();});}}class et extends _0xf6a35a{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':_0x4981fd=>0x1!=_0x4981fd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xaa6e6b=>{const {af:{dictionary:_0x5995bb,getPluralForm:_0x2a9017}}={'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':_0x53c007=>0x1!=_0x53c007}};_0xaa6e6b['af']||={'dictionary':{},'getPluralForm':null},_0xaa6e6b['af']['dictionary']=Object['assign'](_0xaa6e6b['af']['dictionary'],_0x5995bb),_0xaa6e6b['af']['getPluralForm']=_0x2a9017;})(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':_0x255212=>0x0==_0x255212?0x0:0x1==_0x255212?0x1:0x2==_0x255212?0x2:_0x255212%0x64>=0x3&&_0x255212%0x64<=0xa?0x3:_0x255212%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x22dfaf=>{const {ar:{dictionary:_0x193e67,getPluralForm:_0x1ca611}}={'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':_0x31269c=>0x0==_0x31269c?0x0:0x1==_0x31269c?0x1:0x2==_0x31269c?0x2:_0x31269c%0x64>=0x3&&_0x31269c%0x64<=0xa?0x3:_0x31269c%0x64>=0xb?0x4:0x5}};_0x22dfaf['ar']||={'dictionary':{},'getPluralForm':null},_0x22dfaf['ar']['dictionary']=Object['assign'](_0x22dfaf['ar']['dictionary'],_0x193e67),_0x22dfaf['ar']['getPluralForm']=_0x1ca611;})(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':_0x4fa99e=>0x1!=_0x4fa99e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4e7083=>{const {ast:{dictionary:_0x4fe22d,getPluralForm:_0x423ec7}}={'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':_0x1bac69=>0x1!=_0x1bac69}};_0x4e7083['ast']||={'dictionary':{},'getPluralForm':null},_0x4e7083['ast']['dictionary']=Object['assign'](_0x4e7083['ast']['dictionary'],_0x4fe22d),_0x4e7083['ast']['getPluralForm']=_0x423ec7;})(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':_0x28cdee=>0x1!=_0x28cdee}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x359c57=>{const {az:{dictionary:_0x4ccf82,getPluralForm:_0x4b64bb}}={'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':_0xb8e41e=>0x1!=_0xb8e41e}};_0x359c57['az']||={'dictionary':{},'getPluralForm':null},_0x359c57['az']['dictionary']=Object['assign'](_0x359c57['az']['dictionary'],_0x4ccf82),_0x359c57['az']['getPluralForm']=_0x4b64bb;})(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':_0x3f1be6=>_0x3f1be6%0xa==0x1&&_0x3f1be6%0x64!=0xb?0x0:_0x3f1be6%0xa>=0x2&&_0x3f1be6%0xa<=0x4&&(_0x3f1be6%0x64<0xa||_0x3f1be6%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xf57b50=>{const {be:{dictionary:_0x577bdf,getPluralForm:_0xe228ae}}={'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':_0x3cd88d=>_0x3cd88d%0xa==0x1&&_0x3cd88d%0x64!=0xb?0x0:_0x3cd88d%0xa>=0x2&&_0x3cd88d%0xa<=0x4&&(_0x3cd88d%0x64<0xa||_0x3cd88d%0x64>=0x14)?0x1:0x2}};_0xf57b50['be']||={'dictionary':{},'getPluralForm':null},_0xf57b50['be']['dictionary']=Object['assign'](_0xf57b50['be']['dictionary'],_0x577bdf),_0xf57b50['be']['getPluralForm']=_0xe228ae;})(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':_0x1001c3=>0x1!=_0x1001c3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5af5d8=>{const {bg:{dictionary:_0x42e8ce,getPluralForm:_0x45bb7b}}={'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':_0x27e009=>0x1!=_0x27e009}};_0x5af5d8['bg']||={'dictionary':{},'getPluralForm':null},_0x5af5d8['bg']['dictionary']=Object['assign'](_0x5af5d8['bg']['dictionary'],_0x42e8ce),_0x5af5d8['bg']['getPluralForm']=_0x45bb7b;})(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':_0x46d20e=>0x1!=_0x46d20e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x57586e=>{const {bn:{dictionary:_0x415e08,getPluralForm:_0x3943c4}}={'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':_0x2e3252=>0x1!=_0x2e3252}};_0x57586e['bn']||={'dictionary':{},'getPluralForm':null},_0x57586e['bn']['dictionary']=Object['assign'](_0x57586e['bn']['dictionary'],_0x415e08),_0x57586e['bn']['getPluralForm']=_0x3943c4;})(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':_0x58168c=>_0x58168c%0xa==0x1&&_0x58168c%0x64!=0xb?0x0:_0x58168c%0xa>=0x2&&_0x58168c%0xa<=0x4&&(_0x58168c%0x64<0xa||_0x58168c%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3f2727=>{const {bs:{dictionary:_0x1c08e8,getPluralForm:_0x4c747f}}={'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':_0x2008ce=>_0x2008ce%0xa==0x1&&_0x2008ce%0x64!=0xb?0x0:_0x2008ce%0xa>=0x2&&_0x2008ce%0xa<=0x4&&(_0x2008ce%0x64<0xa||_0x2008ce%0x64>=0x14)?0x1:0x2}};_0x3f2727['bs']||={'dictionary':{},'getPluralForm':null},_0x3f2727['bs']['dictionary']=Object['assign'](_0x3f2727['bs']['dictionary'],_0x1c08e8),_0x3f2727['bs']['getPluralForm']=_0x4c747f;})(window['CKEDITOR_TRANSLATIONS']||={});
|