@ckeditor/ckeditor5-uploadcare 46.1.1-alpha.0 → 46.1.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.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 _0x11eb4e,Command as _0xb1f917}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x686e01,IconGooglePhotos as _0x49ab81,IconGoogleDrive as _0x4b0d0d,IconFacebook as _0x39c668,IconDropbox as _0x1e7657,IconUploadcareLink as _0x14c98f,IconUploadcareImageUpload as _0x29617d,IconError as _0x5486f7,IconUploadcareImageEdit as _0x435cb3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x568231,MenuBarMenuListItemButtonView as _0x42e5ab,View as _0x59fe0e,FocusCycler as _0x353f16,Dialog as _0xcee6a4,DialogViewPosition as _0x30ee3b,SpinnerView as _0x40599c,IconView as _0x592e2f,Notification as _0x2ac313}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x384a04,DomEmitterMixin as _0x4193f7,global as _0x2545be,getAncestors as _0x31ad7f,ObservableMixin as _0x4f7f62,uid as _0x506f22,createElement as _0x59bf92}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x22b391}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x55a1fb,info as _0x33e593}from'@uploadcare/upload-client';import*as _0x2791eb from'@uploadcare/file-uploader';var i=function(_0x14d063){return _0x14d063['Local']='local',_0x14d063['URL']='url',_0x14d063['Dropbox']='dropbox',_0x14d063['GDrive']='gdrive',_0x14d063['Facebook']='facebook',_0x14d063['GPhotos']='gphotos',_0x14d063['OneDrive']='onedrive',_0x14d063;}({});function _(_0x577df9,_0x2286f9,_0x1afe94){const t=_0x577df9['t'],_0x54093a=_0x577df9['t'];switch(_0x2286f9){case i['Local']:return{'text':_0x54093a('Insert'===_0x1afe94?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x54093a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1afe94?_0x54093a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x54093a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1afe94?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1afe94?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1afe94?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1afe94?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1afe94?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2286f9;}}class e extends _0x11eb4e{['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 _0x3b0207=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e5f0e;for(const _0x51afc0 in _0x3b0207){const _0x3cdaed=_0x51afc0,_0x276782=_0x3b0207[_0x3cdaed];if('uploadcareLicenseKeyValid'==_0x276782||'uploadcareLicenseKeyInvalid'==_0x276782||'uploadcareLicenseKeyExpired'==_0x276782||'uploadcareLicenseKeyDomainLimit'==_0x276782||'uploadcareLicenseKeyNotAllowed'==_0x276782||'uploadcareLicenseKeyEvaluationLimit'==_0x276782||'uploadcareLicenseKeyTrialLimit'==_0x276782||'uploadcareLicenseKeyUsageLimit'==_0x276782){delete _0x3b0207[_0x3cdaed],_0x5e5f0e=_0x276782,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5e5f0e&&_0x3b0207['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5e5f0e&&_0x3b0207['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5e5f0e&&_0x3b0207['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5e5f0e&&_0x3b0207['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5e5f0e&&_0x3b0207['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5e5f0e&&_0x3b0207['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5e5f0e&&_0x3b0207['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5b8f6d}=this,_0x2bd60d=_0x5b8f6d['commands']['get']('uploadcare');if(!_0x2bd60d)return;const _0x5a2ec7=this['_normalizeConfigSourceList'](_0x5b8f6d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x38fcf8,_0x31a15f)=>{const _0x592b9d=this['_getIntegrationKey'](_0x31a15f['type']);return _0x38fcf8[_0x592b9d]||(_0x38fcf8[_0x592b9d]=[]),_0x38fcf8[_0x592b9d]['push'](_0x31a15f),_0x38fcf8;},{});_0x5b8f6d['plugins']['has']('ImageInsertUI')&&_0x5b8f6d['commands']['get']('uploadcare')&&Object['entries'](_0x5a2ec7)['forEach'](([_0x34842b,_0x4ebece])=>{_0x5b8f6d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x34842b,'observable':()=>_0x2bd60d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4ebece),'formViewCreator':()=>this['_createDropdownButtons'](_0x4ebece),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4ebece),'override':'assetManager'!==_0x34842b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1c9353){const {locale:_0x5527b7}=this['editor'];return _0x1c9353['map'](_0x16d6e5=>{const _0x484d19=_(_0x5527b7,_0x16d6e5,'Insert');switch(_0x16d6e5){case i['Local']:return{'icon':_0x29617d,'type':i['Local'],..._0x484d19};case i['URL']:return{'icon':_0x14c98f,'type':i['URL'],..._0x484d19};case i['Dropbox']:return{'icon':_0x1e7657,'type':i['Dropbox'],..._0x484d19};case i['Facebook']:return{'icon':_0x39c668,'type':i['Facebook'],..._0x484d19};case i['GDrive']:return{'icon':_0x4b0d0d,'type':i['GDrive'],..._0x484d19};case i['GPhotos']:return{'icon':_0x49ab81,'type':i['GPhotos'],..._0x484d19};case i['OneDrive']:return{'icon':_0x686e01,'type':i['OneDrive'],..._0x484d19};}});}['_getIntegrationKey'](_0x56c0d6){switch(_0x56c0d6){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x13a031,_0x58bf11){const _0x2be7d5=this['editor'],_0x5aa2ed=new _0x13a031(_0x2be7d5['locale']),_0x5e3bff=_0x2be7d5['commands']['get']('uploadcare');return _0x5aa2ed['bind']('isEnabled')['to'](_0x5e3bff),_0x5aa2ed['on']('execute',()=>{_0x5e3bff['execute'](_0x58bf11);}),_0x5aa2ed;}['_createToolbarButton'](_0x144517){const {locale:_0x16a44a}=this['editor'],_0x45c9f7=this['editor']['plugins']['get']('ImageInsertUI'),_0x419a64=_0x144517[0x0],_0xe1f1c2=this['_createButton'](_0x568231,_0x419a64['type']);return _0xe1f1c2['icon']=_0x419a64['icon'],_0xe1f1c2['bind']('label')['to'](_0x45c9f7,'isImageSelected',_0x4c247b=>_(_0x16a44a,_0x419a64['type'],_0x4c247b?'Replace':'Insert')['text']),_0xe1f1c2['tooltip']=!0x0,_0xe1f1c2;}['_createDropdownButtons'](_0x22b35d){const {locale:_0x7ce97e}=this['editor'],_0x32bddb=this['editor']['plugins']['get']('ImageInsertUI');return _0x22b35d['map'](_0x31a497=>{const _0x1061e0=this['_createButton'](_0x568231,_0x31a497['type']);return _0x1061e0['withText']=!0x0,_0x1061e0['icon']=_0x31a497['icon'],_0x1061e0['bind']('label')['to'](_0x32bddb,'isImageSelected',_0x318942=>_(_0x7ce97e,_0x31a497['type'],_0x318942?'Replace':'Insert')['text']),_0x1061e0;});}['_createMenuBarButtons'](_0x5027b3){return _0x5027b3['map'](_0x183f64=>{const _0x42b960=this['_createButton'](_0x42e5ab,_0x183f64['type']);return _0x42b960['icon']=_0x183f64['icon'],_0x42b960['label']=_0x183f64['shortText'],_0x42b960;});}}class V extends _0x59fe0e{['focusTracker'];['focusCycler'];constructor(_0xae6fef){super(_0xae6fef),this['focusTracker']=new _0x384a04(),this['focusCycler']=new _0x353f16({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x347f35,_0x567291){super(_0x347f35),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-'+_0x567291}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x115b75,_0x5ebe34){const _0x199126=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5dec1d=>_0x5dec1d<=_0x5ebe34)['map'](_0x2ee71f=>_0x115b75['replace'](/\/$/,'')+'/-/resize/'+_0x2ee71f+'x/\x20'+_0x2ee71f+'w');return{'imageFallbackUrl':_0x115b75,'imageSources':[{'srcset':_0x199126['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5ebe34+'px)\x20100vw,\x20'+_0x5ebe34+'px','type':'image/webp'}]};}function F(_0x242707,_0x5b6949,_0x3a6948){const _0x3b0902=_0x242707['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3b0902?parseInt(_0x3b0902[0x1],0xa):_0x5b6949,'height':_0x3b0902?parseInt(_0x3b0902[0x2],0xa):_0x3a6948};}function p(_0x4703ae,_0x3a62a3){const _0x7e0191=new(_0x4193f7())(),_0x300e47=_0x4703ae['plugins']['get']('ImageUtils'),_0x5aab9b=_0x4703ae['editing']['mapper']['toViewElement'](_0x3a62a3),_0x257e76=_0x300e47['findViewImgElement'](_0x5aab9b),_0x3b7a54=_0x4703ae['editing']['view']['domConverter']['viewToDom'](_0x257e76),_0x597b77=_0x3a62a3['getAttribute']('width'),_0x230711=_0x3a62a3['getAttribute']('height'),_0x503279='image-processing';_0x4703ae['editing']['view']['change'](_0xfc2f02=>{_0xfc2f02['addClass'](_0x503279,_0x5aab9b),_0xfc2f02['setStyle']('aspect-ratio',_0x597b77+'/'+_0x230711,_0x257e76);}),_0x7e0191['listenTo'](_0x3b7a54,'load',()=>{_0x7e0191['stopListening'](_0x3b7a54,'load'),_0x4703ae['editing']['view']['change'](_0x5b4011=>{_0x5b4011['removeClass'](_0x503279,_0x5aab9b),_0x5b4011['removeStyle']('aspect-ratio',_0x257e76);});});}function R(_0x58d422){if(Array['isArray'](_0x58d422)){const _0xc43fd1=_0x58d422['map'](R);return _0x495c6c=>_0xc43fd1['some'](_0x5becc7=>_0x5becc7(_0x495c6c));}if('origin'==_0x58d422){const _0x293449=_0x2545be['window']['location']['origin'];return _0x682ddc=>new URL(_0x682ddc,_0x2545be['document']['baseURI'])['origin']==_0x293449;}return'function'==typeof _0x58d422?_0x58d422:_0x58d422 instanceof RegExp?_0x6f20e3=>!(!_0x6f20e3['match'](_0x58d422)&&!_0x6f20e3['replace'](/^https?:\/\//,'')['match'](_0x58d422)):()=>!0x1;}function M(_0x54f994,_0x4f3227){return _0x31ad7f(_0x54f994['target'])['includes'](_0x4f3227);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4f7f62(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xd1949f,_0x2a3b68,_0x3fd48b){super(),this['_editor']=_0xd1949f,this['_editing']=_0x2a3b68,this['_dialog']=_0xd1949f['plugins']['get'](_0xcee6a4),this['_api']=_0x2a3b68['ctxElement']['getAPI'](),this['_type']=_0x3fd48b,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:_0x70c3a4,model:_0x3b57ef}=this['_editor'],_0x275aad=_0x3b57ef['document']['selection']['getSelectedElement'](),_0x1018b9=_0x275aad&&(_0x275aad['is']('element','imageBlock')||_0x275aad['is']('element','imageInline'));this['_formView']=new S(_0x70c3a4,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x29617d,'title':_(_0x70c3a4,this['_type'],_0x1018b9?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x30ee3b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5159c9=>!M(_0x5159c9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4a5b40}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1551ff=>{const _0x518f84=_0x4a5b40['length'];for(const _0x3db299 of _0x4a5b40){const _0x997feb=_0x3db299===_0x4a5b40[_0x518f84-0x1],{cdnUrl:_0x5e4ddb,fileInfo:_0x4da3f1}=_0x3db299;if(!_0x5e4ddb||!_0x4da3f1)continue;const {width:_0x3ea2ee,height:_0x24f161}=_0x4da3f1['imageInfo'],_0xec1a98=F(_0x5e4ddb,_0x3ea2ee,_0x24f161),_0x4ccf77=C(_0x5e4ddb,_0xec1a98['width']),_0x4ac84c={'id':_0x4da3f1['uuid'],'type':'image','attributes':{'imageDimension':_0xec1a98,..._0x4ccf77}};this['_insertAsset'](_0x4ac84c,_0x997feb,_0x1551ff);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x56cdd5=>{'idle'===_0x56cdd5['detail']['status']&&!_0x56cdd5['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2ae8a4,_0x5dbb7d,_0x247c1d){const _0x32dba4=this['_editor']['model']['document']['selection'],_0x3d89b2=_0x32dba4['getSelectedElement'](),_0x5ef17f=!(!_0x3d89b2||!_0x3d89b2['is']('element','imageInline'));_0x247c1d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2ae8a4,_0x5ef17f),_0x5dbb7d||_0x247c1d['setSelection'](_0x32dba4['getLastPosition']());}['_insertImage'](_0x2ae9b3,_0x307724){const _0x1ab06f=this['_editor'],{imageDimension:_0x567be9,imageFallbackUrl:_0x41f558,imageSources:_0xa21dd}=_0x2ae9b3['attributes'];_0x1ab06f['execute']('insertImage',{'imageType':_0x307724?'imageInline':null,'source':{'uploadcareImageId':_0x2ae9b3['id'],'src':_0x41f558,'sources':_0xa21dd,..._0x567be9}});}}class w extends _0xb1f917{['_editing'];['_controller']=null;static get['requires'](){return[_0xcee6a4,o];}constructor(_0x50e74c){super(_0x50e74c),this['_editing']=_0x50e74c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3b4311){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3b4311);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x479ded,..._0x4ad78f}){return _0x55a1fb(_0x479ded,_0x4ad78f);}static['getInfo'](_0x5beed5,_0x4b4147){return _0x33e593(_0x5beed5,_0x4b4147);}}class f extends _0x11eb4e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x22b391,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1666e5=this['editor'];if(!!!_0x1666e5['config']['get']('uploadcare'))return;_0x1666e5['plugins']['get'](_0x22b391)['createUploadAdapter']=_0x42d3b8=>new k(_0x42d3b8,_0x1666e5),_0x1666e5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4d1198,{imageElement:_0x1f2506,data:_0x3b434d})=>{_0x1666e5['model']['change'](_0x37c0be=>{_0x37c0be['setAttribute']('uploadcareImageId',_0x3b434d['uploadcareImageId'],_0x1f2506);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5c7291,_0x141677){this['loader']=_0x5c7291,this['editor']=_0x141677,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5385b8=await this['loader']['file'];return j['upload']({'file':_0x5385b8,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x35a6c7=>{_0x35a6c7&&_0x35a6c7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x35a6c7['value']);}})['then'](async _0x3d55fd=>{const {imageFallbackUrl:_0x3b52f4,imageSources:_0x35e990}=C(_0x3d55fd['cdnUrl'],_0x3d55fd['imageInfo']['width']);return{'uploadcareImageId':_0x3d55fd['uuid'],'default':_0x3b52f4,'sources':_0x35e990};})['catch'](()=>{const _0x5801e9=t('Cannot\x20upload\x20file:')+('\x20'+_0x5385b8['name']+'.');return Promise['reject'](_0x5801e9);});}['abort'](){this['controller']['abort']();}}class o extends _0x11eb4e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xcee6a4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x386950){super(_0x386950),this['ucContextId']=_0x506f22();}['init'](){const _0x45c6ae=this['editor'];_0x45c6ae['commands']['add']('uploadcare',new w(_0x45c6ae));}['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 _0x1dad92=_0x2545be['document']['querySelector']('input[uploadcare-file-input]');_0x1dad92&&_0x1dad92['remove']();}),async function(_0x39e107){const _0xb2522f=_0x20af83([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x37a462=0x3d8d0df,_0x58ade5=0x3dfa3f7^_0x37a462,_0x3be2dc=window[_0x20af83([0x44,0x61,0x74,0x65])][_0x20af83([0x6e,0x6f,0x77])](),_0x37157d=_0x39e107[_0x20af83([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e89ba=new window[(_0x20af83([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc7edd3=>{_0x37157d[_0x20af83([0x6f,0x6e,0x63,0x65])](_0x20af83([0x72,0x65,0x61,0x64,0x79]),_0xc7edd3);}),_0x41036b={[_0x20af83([0x6b,0x74,0x79])]:_0x20af83([0x45,0x43]),[_0x20af83([0x75,0x73,0x65])]:_0x20af83([0x73,0x69,0x67]),[_0x20af83([0x63,0x72,0x76])]:_0x20af83([0x50,0x2d,0x32,0x35,0x36]),[_0x20af83([0x78])]:_0x20af83([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]),[_0x20af83([0x79])]:_0x20af83([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]),[_0x20af83([0x61,0x6c,0x67])]:_0x20af83([0x45,0x53,0x32,0x35,0x36])},_0x407a2e=_0x37157d[_0x20af83([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20af83([0x67,0x65,0x74])](_0x20af83([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22686e(){let _0x1c0e12,_0x38ba82=null,_0x150f3d=null;try{if(_0x407a2e==_0x20af83([0x47,0x50,0x4c]))return _0x20af83([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c0e12=_0x31a31d(),!_0x1c0e12)return _0x20af83([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c0e12[_0x20af83([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x150f3d=_0x4cd964(_0x1c0e12[_0x20af83([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c0e12[_0x20af83([0x6a,0x74,0x69])])),await _0x1bb8ee()?_0x57aa61()?_0x3b3510()?_0x20af83([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x514f31()?(_0x1c0e12[_0x20af83([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20af83([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38ba82=_0x5b5357(_0x20af83([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c0e12[_0x20af83([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20af83([0x74,0x72,0x69,0x61,0x6c])&&(_0x38ba82=_0x5b5357(_0x20af83([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d6e68()):_0x20af83([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20af83([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20af83([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x20af83([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b3510(){const _0x5b41ee=[_0x20af83([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20af83([0x74,0x72,0x69,0x61,0x6c])][_0x20af83([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c0e12[_0x20af83([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3be2dc/0x3e8:0xe10*_0x58ade5;return _0x1c0e12[_0x20af83([0x65,0x78,0x70])]<_0x5b41ee;}function _0x57aa61(){const _0x1eabc7=_0x1c0e12[_0x20af83([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1eabc7&&(!!_0x1eabc7[_0x20af83([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20af83([0x2a]))||!!_0x1eabc7[_0x20af83([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20af83([0x55,0x50,0x4c,0x43])));}function _0x514f31(){const _0x32e196=_0x1c0e12[_0x20af83([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32e196||0x0==_0x32e196[_0x20af83([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1156d2}=new URL(window[_0x20af83([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32e196[_0x20af83([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1156d2))return!0x0;const _0x126b85=_0x1156d2[_0x20af83([0x73,0x70,0x6c,0x69,0x74])](_0x20af83([0x2e]));return _0x32e196[_0x20af83([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x315a2f=>_0x315a2f[_0x20af83([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20af83([0x2a])))[_0x20af83([0x6d,0x61,0x70])](_0x1d033e=>_0x1d033e[_0x20af83([0x73,0x70,0x6c,0x69,0x74])](_0x20af83([0x2e])))[_0x20af83([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4802bd=>_0x4802bd[_0x20af83([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x126b85[_0x20af83([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20af83([0x6d,0x61,0x70])](_0x5141e3=>Array(_0x126b85[_0x20af83([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5141e3[_0x20af83([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20af83([0x66,0x69,0x6c,0x6c])](_0x5141e3[0x0]===_0x20af83([0x2a])?_0x20af83([0x2a]):'')[_0x20af83([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5141e3))[_0x20af83([0x73,0x6f,0x6d,0x65])](_0x1afcfb=>_0x126b85[_0x20af83([0x65,0x76,0x65,0x72,0x79])]((_0x24d5aa,_0x261a1d)=>_0x1afcfb[_0x261a1d]===_0x24d5aa||_0x1afcfb[_0x261a1d]===_0x20af83([0x2a])));}function _0x1d6e68(){return _0x38ba82&&_0x150f3d?new window[(_0x20af83([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd4dc8,_0x56bdd2)=>{_0x38ba82[_0x20af83([0x74,0x68,0x65,0x6e])](_0xd4dc8,_0x56bdd2),_0x150f3d[_0x20af83([0x74,0x68,0x65,0x6e])](_0x3a9fba=>{_0x3a9fba!=_0x20af83([0x56,0x61,0x6c,0x69,0x64])&&_0xd4dc8(_0x3a9fba);},_0x56bdd2);}):_0x38ba82||_0x150f3d||_0x20af83([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4cd964(_0x46a54c,_0x5b4936){return new window[(_0x20af83([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc715c4=>{if(_0x2123ac())return _0xc715c4(_0x20af83([0x56,0x61,0x6c,0x69,0x64]));_0x12d90c(),_0x37157d[_0x20af83([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20af83([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a9c2f=!0x1;const _0x18aa30=_0x506f22();function _0x48c361(_0x5a4964){return!!_0x5a4964&&(typeof _0x5a4964===_0x20af83([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a4964===_0x20af83([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a4964[_0x20af83([0x74,0x68,0x65,0x6e])]===_0x20af83([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a4964[_0x20af83([0x63,0x61,0x74,0x63,0x68])]===_0x20af83([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5736bc(_0x3a5a0f){_0x1a5c7c(_0x3a5a0f)[_0x20af83([0x74,0x68,0x65,0x6e])](_0x4ea55b=>{if(!_0x4ea55b||_0x4ea55b[_0x20af83([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20af83([0x6f,0x6b]))return _0x20af83([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3475a8(_0x238bb8(_0x18aa30+_0x5b4936))!=_0x4ea55b[_0x20af83([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20af83([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20af83([0x56,0x61,0x6c,0x69,0x64]);})[_0x20af83([0x74,0x68,0x65,0x6e])](_0xbb11ab=>(_0x19aa1a(),_0xbb11ab),()=>{const _0x7eecd3=_0x3390e3();return null==_0x7eecd3?(_0x19aa1a(),_0x20af83([0x56,0x61,0x6c,0x69,0x64])):_0x20af83(_0x3be2dc-_0x7eecd3>(0x27d454df^_0x37a462)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20af83([0x74,0x68,0x65,0x6e])](_0xc715c4)[_0x20af83([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc715c4(_0x20af83([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c6ca2=0x3ee3e5f^_0x37a462;function _0x19aa1a(){const _0x16e0f7=_0x20af83([0x6c,0x6c,0x63,0x74,0x2d])+_0x3475a8(_0x238bb8(_0x46a54c)),_0x30262e=_0x118377(_0x3475a8(window[_0x20af83([0x4d,0x61,0x74,0x68])][_0x20af83([0x63,0x65,0x69,0x6c])](_0x3be2dc/_0x2c6ca2)));window[_0x20af83([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20af83([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16e0f7,_0x30262e);}function _0x3390e3(){const _0x45d5c2=_0x20af83([0x6c,0x6c,0x63,0x74,0x2d])+_0x3475a8(_0x238bb8(_0x46a54c)),_0x528246=window[_0x20af83([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20af83([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45d5c2);return _0x528246?window[_0x20af83([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x118377(_0x528246),0x10)*_0x2c6ca2:null;}function _0x1a5c7c(_0x1aa08a){return new window[(_0x20af83([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a862f,_0x48fd99)=>{_0x1aa08a[_0x20af83([0x74,0x68,0x65,0x6e])](_0x5a862f,_0x48fd99),window[_0x20af83([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48fd99,0x3d9041f^_0x37a462);});}}_0x37157d[_0x20af83([0x6f,0x6e])](_0x20af83([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35a988,_0x50780e)=>{if(_0x50780e[0x0]!=_0x46a54c)return _0xc715c4(_0x20af83([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50780e[0x1]={..._0x50780e[0x1],[_0x20af83([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x18aa30};},{[_0x20af83([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20af83([0x68,0x69,0x67,0x68])}),_0x37157d[_0x20af83([0x6f,0x6e])](_0x20af83([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d016a=>{_0x48c361(_0x5d016a[_0x20af83([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a9c2f=!0x0,_0x5736bc(_0x5d016a[_0x20af83([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20af83([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20af83([0x6c,0x6f,0x77])}),_0x3e89ba[_0x20af83([0x74,0x68,0x65,0x6e])](()=>{_0x4a9c2f||_0xc715c4(_0x20af83([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2123ac(){return _0x37157d[_0x20af83([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20af83([0x76,0x69,0x65,0x77])][_0x20af83([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20af83([0x61,0x75,0x74,0x6f]);}function _0x12d90c(){_0x37157d[_0x20af83([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20af83([0x76,0x69,0x65,0x77])][_0x20af83([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20af83([0x61,0x75,0x74,0x6f]);}}function _0x5b5357(_0x1860e2){const _0x522b20=[new window[(_0x20af83([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x174926=>setTimeout(_0x174926,0x3d1ee13^_0x37a462)),_0x3e89ba[_0x20af83([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20af83([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xec8bdf=>{let _0x267a00=0x0;_0x37157d[_0x20af83([0x6d,0x6f,0x64,0x65,0x6c])][_0x20af83([0x6f,0x6e])](_0x20af83([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50813a,_0x350339)=>{_0x350339[0x0][_0x20af83([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x267a00++,_0x267a00==(0x3d8d127^_0x37a462)&&(_0xec8bdf(),_0x50813a[_0x20af83([0x6f,0x66,0x66])]());});}))];return window[_0x20af83([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20af83([0x72,0x61,0x63,0x65])](_0x522b20)[_0x20af83([0x74,0x68,0x65,0x6e])](()=>_0x1860e2);}async function _0x5a5443(){await _0x3e89ba,_0x37157d[_0x20af83([0x6d,0x6f,0x64,0x65,0x6c])][_0x20af83([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e18df,_0x37157d[_0x20af83([0x6d,0x6f,0x64,0x65,0x6c])][_0x20af83([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e18df,_0x37157d[_0x20af83([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20af83([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x14096b(_0x1172d4){const _0x14471c=_0x44456b();_0x37157d[_0x14471c]=_0x20af83([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1172d4,_0x1172d4!=_0x20af83([0x56,0x61,0x6c,0x69,0x64])&&_0x5a5443();}function _0x44456b(){const _0xfaef44=window[_0x20af83([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20af83([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20af83([0x6e,0x6f,0x77])]())[_0x20af83([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20af83([0x2e]),'');let _0x5e4372=_0x20af83([0x52]);for(let _0x3e9311=0x0;_0x3e9311<_0xfaef44[_0x20af83([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e9311+=0x2){let _0x33f5d4=window[_0x20af83([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfaef44[_0x20af83([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e9311,_0x3e9311+0x2));_0x33f5d4>=_0xb2522f[_0x20af83([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33f5d4-=_0xb2522f[_0x20af83([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e4372+=_0xb2522f[_0x33f5d4];}return _0x5e4372;}function _0x31a31d(){const _0x39de24=_0x407a2e[_0x20af83([0x73,0x70,0x6c,0x69,0x74])](_0x20af83([0x2e]));if(0x3!=_0x39de24[_0x20af83([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56efff(_0x39de24[0x1]);function _0x56efff(_0x1020af){const _0x327a50=_0x3f68b7(_0x1020af);return _0x327a50&&_0x44502d()?_0x327a50:null;function _0x44502d(){const _0x48692d=_0x327a50[_0x20af83([0x6a,0x74,0x69])],_0x2b0e8a=window[_0x20af83([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48692d[_0x20af83([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48692d[_0x20af83([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46f830={..._0x327a50,[_0x20af83([0x6a,0x74,0x69])]:_0x48692d[_0x20af83([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48692d[_0x20af83([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46f830[_0x20af83([0x76,0x63])],_0x238bb8(_0x46f830)==_0x2b0e8a;}}}async function _0x1bb8ee(){let _0x4317fb=!0x0;try{const _0x2b83fc=_0x407a2e[_0x20af83([0x73,0x70,0x6c,0x69,0x74])](_0x20af83([0x2e])),[_0x30ca1d,_0x302479,_0x3909ed]=_0x2b83fc;return _0x2bee6f(_0x30ca1d),await _0x68549f(_0x30ca1d,_0x302479,_0x3909ed),_0x4317fb;}catch{return!0x1;}function _0x2bee6f(_0x118d57){const _0x1622a7=_0x3f68b7(_0x118d57);_0x1622a7&&_0x1622a7[_0x20af83([0x61,0x6c,0x67])]==_0x20af83([0x45,0x53,0x32,0x35,0x36])||(_0x4317fb=!0x1);}async function _0x68549f(_0x4ced9a,_0x1b8548,_0x2c2591){const _0x3aeef3=window[_0x20af83([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20af83([0x66,0x72,0x6f,0x6d])](_0x411a64(_0x2c2591),_0x4d136c=>_0x4d136c[_0x20af83([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x187638=new window[(_0x20af83([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20af83([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ced9a+_0x20af83([0x2e])+_0x1b8548),_0x48358f=window[_0x20af83([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20af83([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48358f)return;const _0x26119f=await _0x48358f[_0x20af83([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20af83([0x6a,0x77,0x6b]),_0x41036b,{[_0x20af83([0x6e,0x61,0x6d,0x65])]:_0x20af83([0x45,0x43,0x44,0x53,0x41]),[_0x20af83([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20af83([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20af83([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48358f[_0x20af83([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20af83([0x6e,0x61,0x6d,0x65])]:_0x20af83([0x45,0x43,0x44,0x53,0x41]),[_0x20af83([0x68,0x61,0x73,0x68])]:{[_0x20af83([0x6e,0x61,0x6d,0x65])]:_0x20af83([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x26119f,_0x3aeef3,_0x187638)||(_0x4317fb=!0x1);}}function _0x3f68b7(_0x2ed635){return _0x2ed635[_0x20af83([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20af83([0x65,0x79]))?JSON[_0x20af83([0x70,0x61,0x72,0x73,0x65])](_0x411a64(_0x2ed635)):null;}function _0x411a64(_0x471bd7){return window[_0x20af83([0x61,0x74,0x6f,0x62])](_0x471bd7[_0x20af83([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20af83([0x2b]))[_0x20af83([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20af83([0x2f])));}function _0x238bb8(_0x23ea8d){let _0xef3128=0x1505;function _0x550398(_0x21336a){for(let _0x35e063=0x0;_0x35e063<_0x21336a[_0x20af83([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35e063++){const _0x36c898=_0x21336a[_0x20af83([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35e063);_0xef3128=(_0xef3128<<0x5)+_0xef3128+_0x36c898,_0xef3128&=_0xef3128;}}function _0x134df0(_0x2eb4ee){Array[_0x20af83([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2eb4ee)?_0x2eb4ee[_0x20af83([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x134df0):_0x2eb4ee&&typeof _0x2eb4ee==_0x20af83([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20af83([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2eb4ee)[_0x20af83([0x73,0x6f,0x72,0x74])]()[_0x20af83([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x144cd7,_0x365a9b])=>{_0x550398(_0x144cd7),_0x134df0(_0x365a9b);}):_0x550398(window[_0x20af83([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2eb4ee));}return _0x134df0(_0x23ea8d),_0xef3128>>>0x0;}function _0x3475a8(_0x158b46){return _0x158b46[_0x20af83([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20af83([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20af83([0x30]));}function _0x118377(_0x170cae){return _0x170cae[_0x20af83([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20af83([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20af83([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e18df(){}function _0x20af83(_0x2efe67){return _0x2efe67['map'](_0x1f34fa=>String['fromCharCode'](_0x1f34fa))['join']('');}_0x14096b(await _0x22686e());}(this);}['_initSchema'](){const _0x26d3bc=this['editor']['model']['schema'];_0x26d3bc['isRegistered']('imageBlock')&&_0x26d3bc['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x26d3bc['isRegistered']('imageInline')&&_0x26d3bc['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xffc040=this['editor'];_0xffc040['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xffc040['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5b9d12=>_0x5b9d12['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x295188=_0xffc040['commands']['get']('replaceImageSource');_0x295188&&this['listenTo'](_0x295188,'cleanupImage',(_0x445276,[_0x10b0d5,_0x1b36af])=>{_0x10b0d5['removeAttribute']('uploadcareImageId',_0x1b36af);});}['_initConfig'](){const _0x4c8201=this['editor']['config']['get']('uploadcare.uploader')||{},_0x45cbd9=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x59bf92(_0x2545be['document'],'uc-config',{..._0x4c8201,'pubkey':_0x45cbd9,'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']=_0x300054=>{if('closeMax'==_0x300054)return'#uc-icon-arrow-down';},_0x2545be['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x59bf92(_0x2545be['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2545be['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1884fd=this['editor']['commands']['get']('insertImage');_0x1884fd&&this['listenTo'](_0x1884fd,'execute',()=>{const _0x2a17dd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a17dd&&_0x2a17dd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2a17dd);});});const _0x5e489d=this['editor']['commands']['get']('uploadcareImageReplace');_0x5e489d&&this['listenTo'](_0x5e489d,'execute',()=>{const _0x5a83af=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5a83af&&_0x5a83af['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5a83af);});});}}class tt extends _0x11eb4e{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2588ba){super(_0x2588ba),_0x2588ba['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2791eb['defineComponents'](_0x2791eb);}}class ii extends _0x59fe0e{constructor(_0x1957ad){super(_0x1957ad);const t=_0x1957ad['t'],_0x232096=this['bindTemplate'],_0x55cea7=new _0x40599c();_0x55cea7['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':[_0x55cea7,{'text':_0x232096['to']('imageUploadProgress',_0x2ddd44=>t('Loading\x20image...')+'\x20('+(_0x2ddd44||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 _0x59fe0e{constructor(_0x142650){super(_0x142650);const t=_0x142650['t'];this['set']('errorType',null);const _0x2f9630=new _0x568231(_0x142650);_0x2f9630['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2f9630['withText']=!0x0,_0x2f9630['class']='ck-button-action',_0x2f9630['on']('execute',()=>{this['fire']('retry');}),_0x2f9630['bind']('isVisible')['to'](this,'errorType',_0x21e874=>'NotFound'!==_0x21e874);const _0x4090b7=new _0x592e2f();_0x4090b7['content']=_0x5486f7,_0x4090b7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5f2903=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':[_0x4090b7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5f2903['to']('errorType',_0xbe3acf=>t('NotFound'!==_0xbe3acf?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2f9630]},{'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 _0x59fe0e{constructor(_0x2b9254,_0x59396d){super(_0x2b9254);const _0xb38d14=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x59396d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xb38d14['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x446180,_0x433e0a,_0x384bad){super(_0x446180),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x446180),this['_errorView']=new ti(_0x446180),this['_editingView']=new ei(_0x446180,_0x384bad),this['_focusableView']=new _0x59fe0e(_0x446180),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x433e0a),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'],_0x374615=>{this['_addUploadcareImageEditorListeners'](_0x374615);});}),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'](_0x749366,_0x2de912){const _0x398379='uc-cloud-image-editor',_0x462de4=_0x749366['querySelector'](_0x398379);if(_0x462de4)return _0x2de912(_0x462de4);const _0x4b0794=new MutationObserver(_0x2246f5=>{const _0x27daa5=_0x2246f5['filter'](_0x277211=>_0x277211['target']===_0x749366&&_0x277211['addedNodes']['length']>0x0&&_0x277211['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x398379);_0x27daa5['length']&&(_0x4b0794['disconnect'](),_0x2de912(_0x27daa5[0x0]['addedNodes'][0x0]));});_0x4b0794['observe'](_0x749366,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x18e6f5){_0x18e6f5['addEventListener']('apply',_0x26d2f2=>{this['fire']('apply',{'imageSrc':_0x26d2f2['detail']['cdnUrl']});}),_0x18e6f5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4f7f62(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x327648,_0x122daa,_0x5b9023){super(),this['_editor']=_0x327648,this['_dialog']=_0x122daa,this['_imageElement']=_0x5b9023,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 _0x334756=this['_imageElement'],_0x157dfb=_0x334756['getAttribute']('uploadcareImageId'),_0x57192f=_0x334756['getAttribute']('src');if(_0x157dfb)await this['_loadImageInfo'](_0x157dfb,_0x57192f);else{if(this['_imageCache']['has'](_0x57192f)){const _0x1b6997=this['_imageCache']['get'](_0x57192f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b6997['url'],this['imageDimension']=_0x1b6997['dimension'],this['imageId']=_0x1b6997['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x49d7fa}=this['_editor'],t=_0x49d7fa['t'],_0x5c9892=new X(_0x49d7fa,this['imageStatus'],this['_attributes']);_0x5c9892['bind']('status')['to'](this,'imageStatus'),_0x5c9892['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5c9892['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5c9892['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5c9892,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x435cb3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5c9892,'position':_0x30ee3b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5c9892['focus']();},'onHide':()=>{_0x5c9892['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x41fe38=>!M(_0x41fe38,_0x5c9892['element'])}});}['_loadImageInfo'](_0xc0bf03,_0x32e681){return j['getInfo'](_0xc0bf03,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x328898=>{const {width:_0x3af863,height:_0x53a3d4}=_0x328898['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32e681,this['imageDimension']={'width':_0x3af863,'height':_0x53a3d4},this['imageId']=_0xc0bf03;})['catch'](_0x272f4f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x272f4f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x308e8c,_0x470326){return this['_getImageAsFile'](_0x308e8c)['then'](_0x3af086=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x470326['signal'],'file':_0x3af086,'onProgress':_0x482f7e=>{_0x482f7e&&_0x482f7e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x482f7e['value']));}}))['then'](_0x55b30a=>{const {width:_0x55e0ad,height:_0x276809}=_0x55b30a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x55b30a['cdnUrl'],this['imageDimension']={'width':_0x55e0ad,'height':_0x276809},this['imageId']=_0x55b30a['uuid'],this['imageUploadProgress']=null;const _0x2d9a3d=_0x308e8c['getAttribute']('src');this['_imageCache']['set'](_0x2d9a3d,{'id':_0x55b30a['uuid'],'url':_0x55b30a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x45b856=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x45b856['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5cc7e0,_0x422da7){_0x5cc7e0['on']('apply',(_0x526220,_0xbf96e9)=>{this['_replaceImage'](_0x422da7,_0xbf96e9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5cc7e0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5cc7e0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x926bda,_0x47808a,_0x49903c){const _0x2a6321=this['_editor'],{width:_0x585bfd,height:_0x2d5f51}=F(_0x47808a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xe82392,imageSources:_0x45e17a}=C(_0x47808a,_0x585bfd);_0x2a6321['model']['change'](_0x297e20=>{if('$graveyard'===_0x926bda['root']['rootName']){_0x2a6321['execute']('insertImage',{'imageType':_0x926bda['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x926bda['getAttributes']()),'uploadcareImageId':_0x49903c,'src':_0xe82392,'sources':_0x45e17a,'width':_0x585bfd,'height':_0x2d5f51}});const _0x2db25e=_0x926bda['getChildren']();_0x926bda=_0x2a6321['model']['document']['selection']['getSelectedElement']();for(const _0x543a42 of _0x2db25e)_0x297e20['append'](_0x297e20['cloneElement'](_0x543a42),_0x926bda);}else _0x297e20['setSelection'](_0x926bda,'on'),_0x2a6321['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x926bda['getAttributes']()),'uploadcareImageId':_0x49903c,'src':_0xe82392,'sources':_0x45e17a,'width':_0x585bfd,'height':_0x2d5f51},_0x926bda);_0x297e20['setSelection'](_0x926bda,'on');});}async['_getImageAsFile'](_0x3c3784){const _0xd0be15=_0x2545be['window'],_0xaa3efc=_0x2545be['document']['location']['href'],_0x340bdc=new _0xd0be15['URL'](_0x3c3784['getAttribute']('src'),_0xaa3efc);if('data:'===_0x340bdc['protocol']){const _0x569be5=_0x340bdc['href']['split'](','),_0x36021f=_0x569be5[0x0]['match'](/:(.*?);/)[0x1],_0x21f364=_0x36021f['split']('/')[0x1],_0x3d3429=_0xd0be15['atob'](_0x569be5[_0x569be5['length']-0x1]);let _0x48a5a1=_0x3d3429['length'];const _0x517d1a=new _0xd0be15['Uint8Array'](_0x48a5a1);for(;_0x48a5a1--;)_0x517d1a[_0x48a5a1]=_0x3d3429['charCodeAt'](_0x48a5a1);return new _0xd0be15['File']([_0x517d1a],'image.'+_0x21f364,{'type':_0x36021f});}const _0x35b648=_0x340bdc['href']['split']('/'),_0x48a3b1=_0x35b648[_0x35b648['length']-0x1],_0x364669=_0x48a3b1['split']('.')[0x1];return _0xd0be15['fetch'](_0x340bdc['href'])['then'](_0x1e6a52=>_0x1e6a52['clone']()['blob']())['then'](_0x54ae00=>new _0xd0be15['File']([_0x54ae00],_0x48a3b1,{'type':'image/'+_0x364669}));}}class N extends _0xb1f917{['imageEditController'];static get['requires'](){return[_0xcee6a4];}['_isEditable'];constructor(_0x3e7731){super(_0x3e7731),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x52428f){const _0xecf76b=R(_0x52428f);return _0x2d9cd2=>!(!_0x2d9cd2||!_0x2d9cd2['is']('element','imageBlock')&&!_0x2d9cd2['is']('element','imageInline'))&&(!!_0x2d9cd2['hasAttribute']('uploadcareImageId')||!!_0x2d9cd2['hasAttribute']('src')&&_0xecf76b(_0x2d9cd2['getAttribute']('src')));}(_0x3e7731['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4b4437=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4b4437);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5d85fb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5d85fb&&(_0x5d85fb['is']('element','imageBlock')||_0x5d85fb['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0xcee6a4),_0x5d85fb),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xb1f917{['refresh'](){const _0x26419f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x26419f&&(_0x26419f['is']('element','imageBlock')||_0x26419f['is']('element','imageInline')));}['execute'](_0x49cb5e){const _0x37f823=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x340187=>{_0x340187['setAttributes'](_0x49cb5e,_0x37f823),_0x340187['removeAttribute']('srcset',_0x37f823),_0x340187['removeAttribute']('sizes',_0x37f823);});}}class m extends _0x11eb4e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2ac313,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x138832}=this;_0x138832['commands']['add']('uploadcareImageEdit',new N(_0x138832)),_0x138832['commands']['add']('uploadcareImageReplace',new O(_0x138832));}}class g extends _0x11eb4e{['_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 _0x2584a4=this['editor'];_0x2584a4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4a1c32=>{const _0x5ac00c=_0x2584a4['commands']['get']('uploadcareImageEdit'),_0x46dd38=new _0x568231(_0x4a1c32),t=_0x4a1c32['t'];return _0x46dd38['set']({'icon':_0x435cb3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x46dd38['bind']('isEnabled')['to'](_0x5ac00c),_0x46dd38['bind']('isOn')['to'](_0x5ac00c,'isActive'),this['listenTo'](_0x46dd38,'execute',()=>{_0x2584a4['execute']('uploadcareImageEdit'),_0x2584a4['editing']['view']['focus']();}),_0x46dd38;}),this['_initConfig']();}['_initConfig'](){const _0x477ed8=_0x59bf92(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x477ed8),this['listenTo'](this['editor'],'destroy',()=>{_0x477ed8['remove']();});}}class et extends _0x11eb4e{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,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x3c8b09,Command as _0x1e9b14}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x273e46,IconGooglePhotos as _0x4f76ce,IconGoogleDrive as _0x159e21,IconFacebook as _0x3bab91,IconDropbox as _0xf90335,IconUploadcareLink as _0x4ce268,IconUploadcareImageUpload as _0x82e1d0,IconError as _0x5cfd40,IconUploadcareImageEdit as _0x1e534e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x31ddd8,MenuBarMenuListItemButtonView as _0x3ed39f,View as _0x393d6c,FocusCycler as _0x55b923,Dialog as _0x563fe3,DialogViewPosition as _0xd31937,SpinnerView as _0x53c3b2,IconView as _0x5baf03,Notification as _0x2f4c69}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x943f1c,DomEmitterMixin as _0x2fb6b0,global as _0x7d8c4c,getAncestors as _0x17466b,ObservableMixin as _0x4c7309,uid as _0x103d12,createElement as _0x2bff64}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3cfb53}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x55bd5e,info as _0x31f98e}from'@uploadcare/upload-client';import*as _0x12dac6 from'@uploadcare/file-uploader';var i=function(_0x5df952){return _0x5df952['Local']='local',_0x5df952['URL']='url',_0x5df952['Dropbox']='dropbox',_0x5df952['GDrive']='gdrive',_0x5df952['Facebook']='facebook',_0x5df952['GPhotos']='gphotos',_0x5df952['OneDrive']='onedrive',_0x5df952;}({});function _(_0x84d70a,_0x35fb3f,_0x44e43b){const t=_0x84d70a['t'],_0xfd31f9=_0x84d70a['t'];switch(_0x35fb3f){case i['Local']:return{'text':_0xfd31f9('Insert'===_0x44e43b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xfd31f9('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x44e43b?_0xfd31f9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xfd31f9('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x44e43b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x44e43b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x44e43b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x44e43b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x44e43b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x35fb3f;}}class e extends _0x3c8b09{['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 _0x2e98b0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x566275;for(const _0x344e14 in _0x2e98b0){const _0x5635e6=_0x344e14,_0x411a67=_0x2e98b0[_0x5635e6];if('uploadcareLicenseKeyValid'==_0x411a67||'uploadcareLicenseKeyInvalid'==_0x411a67||'uploadcareLicenseKeyExpired'==_0x411a67||'uploadcareLicenseKeyDomainLimit'==_0x411a67||'uploadcareLicenseKeyNotAllowed'==_0x411a67||'uploadcareLicenseKeyEvaluationLimit'==_0x411a67||'uploadcareLicenseKeyTrialLimit'==_0x411a67||'uploadcareLicenseKeyUsageLimit'==_0x411a67){delete _0x2e98b0[_0x5635e6],_0x566275=_0x411a67,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x566275&&_0x2e98b0['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x566275&&_0x2e98b0['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x566275&&_0x2e98b0['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x566275&&_0x2e98b0['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x566275&&_0x2e98b0['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x566275&&_0x2e98b0['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x566275&&_0x2e98b0['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1740ae}=this,_0x49a05a=_0x1740ae['commands']['get']('uploadcare');if(!_0x49a05a)return;const _0x1ade69=this['_normalizeConfigSourceList'](_0x1740ae['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xe968ca,_0x290e03)=>{const _0x319665=this['_getIntegrationKey'](_0x290e03['type']);return _0xe968ca[_0x319665]||(_0xe968ca[_0x319665]=[]),_0xe968ca[_0x319665]['push'](_0x290e03),_0xe968ca;},{});_0x1740ae['plugins']['has']('ImageInsertUI')&&_0x1740ae['commands']['get']('uploadcare')&&Object['entries'](_0x1ade69)['forEach'](([_0x1aef85,_0x447108])=>{_0x1740ae['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1aef85,'observable':()=>_0x49a05a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x447108),'formViewCreator':()=>this['_createDropdownButtons'](_0x447108),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x447108),'override':'assetManager'!==_0x1aef85});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2cb75b){const {locale:_0x31b2f2}=this['editor'];return _0x2cb75b['map'](_0x3e96a5=>{const _0xc7f2ad=_(_0x31b2f2,_0x3e96a5,'Insert');switch(_0x3e96a5){case i['Local']:return{'icon':_0x82e1d0,'type':i['Local'],..._0xc7f2ad};case i['URL']:return{'icon':_0x4ce268,'type':i['URL'],..._0xc7f2ad};case i['Dropbox']:return{'icon':_0xf90335,'type':i['Dropbox'],..._0xc7f2ad};case i['Facebook']:return{'icon':_0x3bab91,'type':i['Facebook'],..._0xc7f2ad};case i['GDrive']:return{'icon':_0x159e21,'type':i['GDrive'],..._0xc7f2ad};case i['GPhotos']:return{'icon':_0x4f76ce,'type':i['GPhotos'],..._0xc7f2ad};case i['OneDrive']:return{'icon':_0x273e46,'type':i['OneDrive'],..._0xc7f2ad};}});}['_getIntegrationKey'](_0x358d22){switch(_0x358d22){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x9d1900,_0x444b09){const _0x389315=this['editor'],_0x1dfd99=new _0x9d1900(_0x389315['locale']),_0x3c0496=_0x389315['commands']['get']('uploadcare');return _0x1dfd99['bind']('isEnabled')['to'](_0x3c0496),_0x1dfd99['on']('execute',()=>{_0x3c0496['execute'](_0x444b09);}),_0x1dfd99;}['_createToolbarButton'](_0x3fcb60){const {locale:_0xd092b3}=this['editor'],_0x8e5f58=this['editor']['plugins']['get']('ImageInsertUI'),_0x3a1af8=_0x3fcb60[0x0],_0x9dd36b=this['_createButton'](_0x31ddd8,_0x3a1af8['type']);return _0x9dd36b['icon']=_0x3a1af8['icon'],_0x9dd36b['bind']('label')['to'](_0x8e5f58,'isImageSelected',_0x1ced8c=>_(_0xd092b3,_0x3a1af8['type'],_0x1ced8c?'Replace':'Insert')['text']),_0x9dd36b['tooltip']=!0x0,_0x9dd36b;}['_createDropdownButtons'](_0x323490){const {locale:_0x7aa0a2}=this['editor'],_0x26d6d8=this['editor']['plugins']['get']('ImageInsertUI');return _0x323490['map'](_0xb31f20=>{const _0x530494=this['_createButton'](_0x31ddd8,_0xb31f20['type']);return _0x530494['withText']=!0x0,_0x530494['icon']=_0xb31f20['icon'],_0x530494['bind']('label')['to'](_0x26d6d8,'isImageSelected',_0x4910cd=>_(_0x7aa0a2,_0xb31f20['type'],_0x4910cd?'Replace':'Insert')['text']),_0x530494;});}['_createMenuBarButtons'](_0x81d1f2){return _0x81d1f2['map'](_0xebf14a=>{const _0x22fbc7=this['_createButton'](_0x3ed39f,_0xebf14a['type']);return _0x22fbc7['icon']=_0xebf14a['icon'],_0x22fbc7['label']=_0xebf14a['shortText'],_0x22fbc7;});}}class F extends _0x393d6c{['focusTracker'];['focusCycler'];constructor(_0x19a0ac){super(_0x19a0ac),this['focusTracker']=new _0x943f1c(),this['focusCycler']=new _0x55b923({'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(_0x4fd238,_0x33898d){super(_0x4fd238),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-'+_0x33898d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x311c77,_0xa06d65){const _0x4c58ef=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x185ea3=>_0x185ea3<=_0xa06d65)['map'](_0x46b179=>_0x311c77['replace'](/\/$/,'')+'/-/resize/'+_0x46b179+'x/\x20'+_0x46b179+'w');return{'imageFallbackUrl':_0x311c77,'imageSources':[{'srcset':_0x4c58ef['join'](',\x20'),'sizes':'(max-width:\x20'+_0xa06d65+'px)\x20100vw,\x20'+_0xa06d65+'px','type':'image/webp'}]};}function S(_0x58d764,_0x4031df,_0x4bbf81){const _0x4cbd8e=_0x58d764['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4cbd8e?parseInt(_0x4cbd8e[0x1],0xa):_0x4031df,'height':_0x4cbd8e?parseInt(_0x4cbd8e[0x2],0xa):_0x4bbf81};}function p(_0x39864f,_0x2e8cf7){const _0x235ca3=new(_0x2fb6b0())(),_0x2b6496=_0x39864f['plugins']['get']('ImageUtils'),_0x90632c=_0x39864f['editing']['mapper']['toViewElement'](_0x2e8cf7),_0x380bdf=_0x2b6496['findViewImgElement'](_0x90632c),_0xb2cb76=_0x39864f['editing']['view']['domConverter']['viewToDom'](_0x380bdf),_0x2f38bc=_0x2e8cf7['getAttribute']('width'),_0x3c64a5=_0x2e8cf7['getAttribute']('height'),_0x339fed='image-processing';_0x39864f['editing']['view']['change'](_0x59318b=>{_0x59318b['addClass'](_0x339fed,_0x90632c),_0x59318b['setStyle']('aspect-ratio',_0x2f38bc+'/'+_0x3c64a5,_0x380bdf);}),_0x235ca3['listenTo'](_0xb2cb76,'load',()=>{_0x235ca3['stopListening'](_0xb2cb76,'load'),_0x39864f['editing']['view']['change'](_0x421053=>{_0x421053['removeClass'](_0x339fed,_0x90632c),_0x421053['removeStyle']('aspect-ratio',_0x380bdf);});});}function G(_0x366239){if(Array['isArray'](_0x366239)){const _0x433f6b=_0x366239['map'](G);return _0x532424=>_0x433f6b['some'](_0x2836b5=>_0x2836b5(_0x532424));}if('origin'==_0x366239){const _0x52f16e=_0x7d8c4c['window']['location']['origin'];return _0x20f7d8=>new URL(_0x20f7d8,_0x7d8c4c['document']['baseURI'])['origin']==_0x52f16e;}return'function'==typeof _0x366239?_0x366239:_0x366239 instanceof RegExp?_0x3f900b=>!(!_0x3f900b['match'](_0x366239)&&!_0x3f900b['replace'](/^https?:\/\//,'')['match'](_0x366239)):()=>!0x1;}function A(_0x5b76fc,_0x32a897){return _0x17466b(_0x5b76fc['target'])['includes'](_0x32a897);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4c7309(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5e6576,_0x184efd,_0xef4aad){super(),this['_editor']=_0x5e6576,this['_editing']=_0x184efd,this['_dialog']=_0x5e6576['plugins']['get'](_0x563fe3),this['_api']=_0x184efd['ctxElement']['getAPI'](),this['_type']=_0xef4aad,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:_0x34c79c,model:_0x52045b}=this['_editor'],_0x3e8f56=_0x52045b['document']['selection']['getSelectedElement'](),_0xc1587f=_0x3e8f56&&(_0x3e8f56['is']('element','imageBlock')||_0x3e8f56['is']('element','imageInline'));this['_formView']=new x(_0x34c79c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x82e1d0,'title':_(_0x34c79c,this['_type'],_0xc1587f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xd31937['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5cffb9=>!A(_0x5cffb9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2079c9}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1b34dc=>{const _0xc8fb7a=_0x2079c9['length'];for(const _0x44de6e of _0x2079c9){const _0x6e48b=_0x44de6e===_0x2079c9[_0xc8fb7a-0x1],{cdnUrl:_0x5cfb5d,fileInfo:_0x3bbed5}=_0x44de6e;if(!_0x5cfb5d||!_0x3bbed5)continue;const {width:_0x107712,height:_0x3c966c}=_0x3bbed5['imageInfo'],_0x24e689=S(_0x5cfb5d,_0x107712,_0x3c966c),_0x200a5f=C(_0x5cfb5d,_0x24e689['width']),_0x2e8101={'id':_0x3bbed5['uuid'],'type':'image','attributes':{'imageDimension':_0x24e689,..._0x200a5f}};this['_insertAsset'](_0x2e8101,_0x6e48b,_0x1b34dc);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x380e45=>{'idle'===_0x380e45['detail']['status']&&!_0x380e45['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x592e97,_0x47e4b7,_0x265179){const _0x33dbc6=this['_editor']['model']['document']['selection'],_0xf79970=_0x33dbc6['getSelectedElement'](),_0x15677e=!(!_0xf79970||!_0xf79970['is']('element','imageInline'));_0x265179['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x592e97,_0x15677e),_0x47e4b7||_0x265179['setSelection'](_0x33dbc6['getLastPosition']());}['_insertImage'](_0x26ab92,_0x31e6c0){const _0x5a7559=this['_editor'],{imageDimension:_0xd4c22b,imageFallbackUrl:_0x5daa5e,imageSources:_0x3aeef3}=_0x26ab92['attributes'];_0x5a7559['execute']('insertImage',{'imageType':_0x31e6c0?'imageInline':null,'source':{'uploadcareImageId':_0x26ab92['id'],'src':_0x5daa5e,'sources':_0x3aeef3,..._0xd4c22b}});}}class w extends _0x1e9b14{['_editing'];['_controller']=null;static get['requires'](){return[_0x563fe3,o];}constructor(_0x3f26c){super(_0x3f26c),this['_editing']=_0x3f26c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x244fbc){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x244fbc);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5966d6,..._0xe6a2a0}){return _0x55bd5e(_0x5966d6,_0xe6a2a0);}static['getInfo'](_0x4fb1e6,_0x492430){return _0x31f98e(_0x4fb1e6,_0x492430);}}class f extends _0x3c8b09{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3cfb53,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1aa5e1=this['editor'];if(!!!_0x1aa5e1['config']['get']('uploadcare'))return;_0x1aa5e1['plugins']['get'](_0x3cfb53)['createUploadAdapter']=_0x2c2ffa=>new k(_0x2c2ffa,_0x1aa5e1),_0x1aa5e1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2b906b,{imageElement:_0x209444,data:_0x2f74f1})=>{_0x1aa5e1['model']['change'](_0x35df74=>{_0x35df74['setAttribute']('uploadcareImageId',_0x2f74f1['uploadcareImageId'],_0x209444);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x50ac8c,_0x3b64db){this['loader']=_0x50ac8c,this['editor']=_0x3b64db,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3e3719=await this['loader']['file'];return j['upload']({'file':_0x3e3719,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x2e067a=>{_0x2e067a&&_0x2e067a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2e067a['value']);}})['then'](async _0x218d8b=>{const {imageFallbackUrl:_0x5e3b3f,imageSources:_0x397e7e}=C(_0x218d8b['cdnUrl'],_0x218d8b['imageInfo']['width']);return{'uploadcareImageId':_0x218d8b['uuid'],'default':_0x5e3b3f,'sources':_0x397e7e};})['catch'](()=>{const _0x49b0a6=t('Cannot\x20upload\x20file:')+('\x20'+_0x3e3719['name']+'.');return Promise['reject'](_0x49b0a6);});}['abort'](){this['controller']['abort']();}}class o extends _0x3c8b09{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x563fe3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2ff0e0){super(_0x2ff0e0),this['ucContextId']=_0x103d12();}['init'](){const _0x13e08e=this['editor'];_0x13e08e['commands']['add']('uploadcare',new w(_0x13e08e));}['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 _0x31d8af=_0x7d8c4c['document']['querySelector']('input[uploadcare-file-input]');_0x31d8af&&_0x31d8af['remove']();}),async function(_0x3addfe){const _0x54af5d=_0x444e43([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x2c385b=0x3d8d0df,_0x32d527=0x3dfa39f^_0x2c385b,_0x4375c6=window[_0x444e43([0x44,0x61,0x74,0x65])][_0x444e43([0x6e,0x6f,0x77])](),_0x59a305=_0x3addfe[_0x444e43([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x179d8d=new window[(_0x444e43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bce0e=>{_0x59a305[_0x444e43([0x6f,0x6e,0x63,0x65])](_0x444e43([0x72,0x65,0x61,0x64,0x79]),_0x5bce0e);}),_0x554673={[_0x444e43([0x6b,0x74,0x79])]:_0x444e43([0x45,0x43]),[_0x444e43([0x75,0x73,0x65])]:_0x444e43([0x73,0x69,0x67]),[_0x444e43([0x63,0x72,0x76])]:_0x444e43([0x50,0x2d,0x32,0x35,0x36]),[_0x444e43([0x78])]:_0x444e43([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]),[_0x444e43([0x79])]:_0x444e43([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]),[_0x444e43([0x61,0x6c,0x67])]:_0x444e43([0x45,0x53,0x32,0x35,0x36])},_0x159afa=_0x59a305[_0x444e43([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x444e43([0x67,0x65,0x74])](_0x444e43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x76f601(){let _0x2617ca,_0x13f6a2=null,_0x40fb02=null;try{if(_0x159afa==_0x444e43([0x47,0x50,0x4c]))return _0x444e43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2617ca=_0x21fe5f(),!_0x2617ca)return _0x444e43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2617ca[_0x444e43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40fb02=_0x5ed40d(_0x2617ca[_0x444e43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2617ca[_0x444e43([0x6a,0x74,0x69])])),await _0x4c2b67()?_0x49d86c()?_0x430f29()?_0x444e43([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x56bc23()?(_0x2617ca[_0x444e43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x444e43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x13f6a2=_0xe329e6(_0x444e43([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2617ca[_0x444e43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x444e43([0x74,0x72,0x69,0x61,0x6c])&&(_0x13f6a2=_0xe329e6(_0x444e43([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49ede8()):_0x444e43([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x444e43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x444e43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x444e43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x430f29(){const _0x3f089e=[_0x444e43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x444e43([0x74,0x72,0x69,0x61,0x6c])][_0x444e43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2617ca[_0x444e43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4375c6/0x3e8:0xe10*_0x32d527;return _0x2617ca[_0x444e43([0x65,0x78,0x70])]<_0x3f089e;}function _0x49d86c(){const _0x4eb797=_0x2617ca[_0x444e43([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4eb797&&(!!_0x4eb797[_0x444e43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x444e43([0x2a]))||!!_0x4eb797[_0x444e43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x444e43([0x55,0x50,0x4c,0x43])));}function _0x56bc23(){const _0xf34c58=_0x2617ca[_0x444e43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf34c58||0x0==_0xf34c58[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50c754}=new URL(window[_0x444e43([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf34c58[_0x444e43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50c754))return!0x0;const _0x2ae7e0=_0x50c754[_0x444e43([0x73,0x70,0x6c,0x69,0x74])](_0x444e43([0x2e]));return _0xf34c58[_0x444e43([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50107f=>_0x50107f[_0x444e43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x444e43([0x2a])))[_0x444e43([0x6d,0x61,0x70])](_0x337e5b=>_0x337e5b[_0x444e43([0x73,0x70,0x6c,0x69,0x74])](_0x444e43([0x2e])))[_0x444e43([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3917d3=>_0x3917d3[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ae7e0[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x444e43([0x6d,0x61,0x70])](_0x359268=>Array(_0x2ae7e0[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x359268[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x444e43([0x66,0x69,0x6c,0x6c])](_0x359268[0x0]===_0x444e43([0x2a])?_0x444e43([0x2a]):'')[_0x444e43([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x359268))[_0x444e43([0x73,0x6f,0x6d,0x65])](_0x57f4d0=>_0x2ae7e0[_0x444e43([0x65,0x76,0x65,0x72,0x79])]((_0x25e980,_0x445b10)=>_0x57f4d0[_0x445b10]===_0x25e980||_0x57f4d0[_0x445b10]===_0x444e43([0x2a])));}function _0x49ede8(){return _0x13f6a2&&_0x40fb02?new window[(_0x444e43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d0574,_0x36eea9)=>{_0x13f6a2[_0x444e43([0x74,0x68,0x65,0x6e])](_0x1d0574,_0x36eea9),_0x40fb02[_0x444e43([0x74,0x68,0x65,0x6e])](_0x4f47b0=>{_0x4f47b0!=_0x444e43([0x56,0x61,0x6c,0x69,0x64])&&_0x1d0574(_0x4f47b0);},_0x36eea9);}):_0x13f6a2||_0x40fb02||_0x444e43([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ed40d(_0x4739d4,_0x4fca3e){return new window[(_0x444e43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24c0b9=>{if(_0x4af5f8())return _0x24c0b9(_0x444e43([0x56,0x61,0x6c,0x69,0x64]));_0x355ac7(),_0x59a305[_0x444e43([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x444e43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a4c25=!0x1;const _0x38fd94=_0x103d12();function _0x5e0b52(_0x50e375){return!!_0x50e375&&(typeof _0x50e375===_0x444e43([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x50e375===_0x444e43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x50e375[_0x444e43([0x74,0x68,0x65,0x6e])]===_0x444e43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x50e375[_0x444e43([0x63,0x61,0x74,0x63,0x68])]===_0x444e43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5cd0ec(_0x8ae650){_0x13d7af(_0x8ae650)[_0x444e43([0x74,0x68,0x65,0x6e])](_0x1e61f8=>{if(!_0x1e61f8||_0x1e61f8[_0x444e43([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x444e43([0x6f,0x6b]))return _0x444e43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xac4b76(_0x539afb(_0x38fd94+_0x4fca3e))!=_0x1e61f8[_0x444e43([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x444e43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x444e43([0x56,0x61,0x6c,0x69,0x64]);})[_0x444e43([0x74,0x68,0x65,0x6e])](_0x3dfe05=>(_0x122d20(),_0x3dfe05),()=>{const _0x5cde77=_0x2ee211();return null==_0x5cde77?(_0x122d20(),_0x444e43([0x56,0x61,0x6c,0x69,0x64])):_0x444e43(_0x4375c6-_0x5cde77>(0x27d454df^_0x2c385b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x444e43([0x74,0x68,0x65,0x6e])](_0x24c0b9)[_0x444e43([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24c0b9(_0x444e43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c919e=0x3ee3e5f^_0x2c385b;function _0x122d20(){const _0x124aa1=_0x444e43([0x6c,0x6c,0x63,0x74,0x2d])+_0xac4b76(_0x539afb(_0x4739d4)),_0x46ee9f=_0x2f6100(_0xac4b76(window[_0x444e43([0x4d,0x61,0x74,0x68])][_0x444e43([0x63,0x65,0x69,0x6c])](_0x4375c6/_0x1c919e)));window[_0x444e43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x444e43([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x124aa1,_0x46ee9f);}function _0x2ee211(){const _0x35e022=_0x444e43([0x6c,0x6c,0x63,0x74,0x2d])+_0xac4b76(_0x539afb(_0x4739d4)),_0x11ae41=window[_0x444e43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x444e43([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35e022);return _0x11ae41?window[_0x444e43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f6100(_0x11ae41),0x10)*_0x1c919e:null;}function _0x13d7af(_0x3d2e1f){return new window[(_0x444e43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d58ea,_0x4eb0cc)=>{_0x3d2e1f[_0x444e43([0x74,0x68,0x65,0x6e])](_0x5d58ea,_0x4eb0cc),window[_0x444e43([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4eb0cc,0x3d9041f^_0x2c385b);});}}_0x59a305[_0x444e43([0x6f,0x6e])](_0x444e43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a69e7,_0x4cfdef)=>{if(_0x4cfdef[0x0]!=_0x4739d4)return _0x24c0b9(_0x444e43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4cfdef[0x1]={..._0x4cfdef[0x1],[_0x444e43([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38fd94};},{[_0x444e43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x444e43([0x68,0x69,0x67,0x68])}),_0x59a305[_0x444e43([0x6f,0x6e])](_0x444e43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2e42ef=>{_0x5e0b52(_0x2e42ef[_0x444e43([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a4c25=!0x0,_0x5cd0ec(_0x2e42ef[_0x444e43([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x444e43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x444e43([0x6c,0x6f,0x77])}),_0x179d8d[_0x444e43([0x74,0x68,0x65,0x6e])](()=>{_0x4a4c25||_0x24c0b9(_0x444e43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4af5f8(){return _0x59a305[_0x444e43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x444e43([0x76,0x69,0x65,0x77])][_0x444e43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x444e43([0x61,0x75,0x74,0x6f]);}function _0x355ac7(){_0x59a305[_0x444e43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x444e43([0x76,0x69,0x65,0x77])][_0x444e43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x444e43([0x61,0x75,0x74,0x6f]);}}function _0xe329e6(_0x276b9e){const _0x5b43c8=[new window[(_0x444e43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a91fb=>setTimeout(_0x3a91fb,0x3d1ee13^_0x2c385b)),_0x179d8d[_0x444e43([0x74,0x68,0x65,0x6e])](()=>new window[(_0x444e43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44f157=>{let _0x3d70fa=0x0;_0x59a305[_0x444e43([0x6d,0x6f,0x64,0x65,0x6c])][_0x444e43([0x6f,0x6e])](_0x444e43([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ae482,_0xe38b3e)=>{_0xe38b3e[0x0][_0x444e43([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d70fa++,_0x3d70fa==(0x3d8d127^_0x2c385b)&&(_0x44f157(),_0x2ae482[_0x444e43([0x6f,0x66,0x66])]());});}))];return window[_0x444e43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x444e43([0x72,0x61,0x63,0x65])](_0x5b43c8)[_0x444e43([0x74,0x68,0x65,0x6e])](()=>_0x276b9e);}async function _0x10bfc2(){await _0x179d8d,_0x59a305[_0x444e43([0x6d,0x6f,0x64,0x65,0x6c])][_0x444e43([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34c02f,_0x59a305[_0x444e43([0x6d,0x6f,0x64,0x65,0x6c])][_0x444e43([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34c02f,_0x59a305[_0x444e43([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x444e43([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f7d8b(_0x31adc2){const _0x5dc90e=_0x1eb9ec();_0x59a305[_0x5dc90e]=_0x444e43([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31adc2,_0x31adc2!=_0x444e43([0x56,0x61,0x6c,0x69,0x64])&&_0x10bfc2();}function _0x1eb9ec(){const _0x53df37=window[_0x444e43([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x444e43([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x444e43([0x6e,0x6f,0x77])]())[_0x444e43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x444e43([0x2e]),'');let _0x3b7ab2=_0x444e43([0x52]);for(let _0x353dc9=0x0;_0x353dc9<_0x53df37[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x353dc9+=0x2){let _0x113d7a=window[_0x444e43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53df37[_0x444e43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x353dc9,_0x353dc9+0x2));_0x113d7a>=_0x54af5d[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x113d7a-=_0x54af5d[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b7ab2+=_0x54af5d[_0x113d7a];}return _0x3b7ab2;}function _0x21fe5f(){const _0x3e4c97=_0x159afa[_0x444e43([0x73,0x70,0x6c,0x69,0x74])](_0x444e43([0x2e]));if(0x3!=_0x3e4c97[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x387511(_0x3e4c97[0x1]);function _0x387511(_0x4cc489){const _0x20c3ee=_0x15f91f(_0x4cc489);return _0x20c3ee&&_0x541fff()?_0x20c3ee:null;function _0x541fff(){const _0x57f975=_0x20c3ee[_0x444e43([0x6a,0x74,0x69])],_0x1a7609=window[_0x444e43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57f975[_0x444e43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57f975[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x282bc7={..._0x20c3ee,[_0x444e43([0x6a,0x74,0x69])]:_0x57f975[_0x444e43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x57f975[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x282bc7[_0x444e43([0x76,0x63])],_0x539afb(_0x282bc7)==_0x1a7609;}}}async function _0x4c2b67(){let _0x23da28=!0x0;try{const _0x4b85e8=_0x159afa[_0x444e43([0x73,0x70,0x6c,0x69,0x74])](_0x444e43([0x2e])),[_0x2d9d8e,_0x27073e,_0x4f62a2]=_0x4b85e8;return _0x3d38a9(_0x2d9d8e),await _0x503e29(_0x2d9d8e,_0x27073e,_0x4f62a2),_0x23da28;}catch{return!0x1;}function _0x3d38a9(_0x354afb){const _0x2440f6=_0x15f91f(_0x354afb);_0x2440f6&&_0x2440f6[_0x444e43([0x61,0x6c,0x67])]==_0x444e43([0x45,0x53,0x32,0x35,0x36])||(_0x23da28=!0x1);}async function _0x503e29(_0x3d05ef,_0x298d5c,_0x5b5fc0){const _0x1ad817=window[_0x444e43([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x444e43([0x66,0x72,0x6f,0x6d])](_0x5b300c(_0x5b5fc0),_0x3de1d3=>_0x3de1d3[_0x444e43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x419ff1=new window[(_0x444e43([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x444e43([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d05ef+_0x444e43([0x2e])+_0x298d5c),_0x2691e6=window[_0x444e43([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x444e43([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2691e6)return;const _0x2e4834=await _0x2691e6[_0x444e43([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x444e43([0x6a,0x77,0x6b]),_0x554673,{[_0x444e43([0x6e,0x61,0x6d,0x65])]:_0x444e43([0x45,0x43,0x44,0x53,0x41]),[_0x444e43([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x444e43([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x444e43([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2691e6[_0x444e43([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x444e43([0x6e,0x61,0x6d,0x65])]:_0x444e43([0x45,0x43,0x44,0x53,0x41]),[_0x444e43([0x68,0x61,0x73,0x68])]:{[_0x444e43([0x6e,0x61,0x6d,0x65])]:_0x444e43([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e4834,_0x1ad817,_0x419ff1)||(_0x23da28=!0x1);}}function _0x15f91f(_0x4f6535){return _0x4f6535[_0x444e43([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x444e43([0x65,0x79]))?JSON[_0x444e43([0x70,0x61,0x72,0x73,0x65])](_0x5b300c(_0x4f6535)):null;}function _0x5b300c(_0x3d1d71){return window[_0x444e43([0x61,0x74,0x6f,0x62])](_0x3d1d71[_0x444e43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x444e43([0x2b]))[_0x444e43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x444e43([0x2f])));}function _0x539afb(_0x435d55){let _0x255102=0x1505;function _0x471d8e(_0x23fa82){for(let _0x1cc0e6=0x0;_0x1cc0e6<_0x23fa82[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cc0e6++){const _0x573589=_0x23fa82[_0x444e43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cc0e6);_0x255102=(_0x255102<<0x5)+_0x255102+_0x573589,_0x255102&=_0x255102;}}function _0x1ebdf8(_0x10f3d9){Array[_0x444e43([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10f3d9)?_0x10f3d9[_0x444e43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ebdf8):_0x10f3d9&&typeof _0x10f3d9==_0x444e43([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x444e43([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10f3d9)[_0x444e43([0x73,0x6f,0x72,0x74])]()[_0x444e43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e2010,_0x5ba898])=>{_0x471d8e(_0x2e2010),_0x1ebdf8(_0x5ba898);}):_0x471d8e(window[_0x444e43([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10f3d9));}return _0x1ebdf8(_0x435d55),_0x255102>>>0x0;}function _0xac4b76(_0x2a3d3e){return _0x2a3d3e[_0x444e43([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x444e43([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x444e43([0x30]));}function _0x2f6100(_0x4fd2c4){return _0x4fd2c4[_0x444e43([0x73,0x70,0x6c,0x69,0x74])]('')[_0x444e43([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x444e43([0x6a,0x6f,0x69,0x6e])]('');}function _0x34c02f(){}function _0x444e43(_0xce3ff5){return _0xce3ff5['map'](_0x3c53b7=>String['fromCharCode'](_0x3c53b7))['join']('');}_0x2f7d8b(await _0x76f601());}(this);}['_initSchema'](){const _0x207d8f=this['editor']['model']['schema'];_0x207d8f['isRegistered']('imageBlock')&&_0x207d8f['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x207d8f['isRegistered']('imageInline')&&_0x207d8f['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x44e1c4=this['editor'];_0x44e1c4['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x44e1c4['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x57c373=>_0x57c373['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x230b71=_0x44e1c4['commands']['get']('replaceImageSource');_0x230b71&&this['listenTo'](_0x230b71,'cleanupImage',(_0x19de94,[_0x5f289e,_0x50f399])=>{_0x5f289e['removeAttribute']('uploadcareImageId',_0x50f399);});}['_initConfig'](){const _0x20d853=this['editor']['config']['get']('uploadcare.uploader')||{},_0x170e40=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2bff64(_0x7d8c4c['document'],'uc-config',{..._0x20d853,'pubkey':_0x170e40,'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']=_0x55c299=>{if('closeMax'==_0x55c299)return'#uc-icon-arrow-down';},_0x7d8c4c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2bff64(_0x7d8c4c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x7d8c4c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4846cb=this['editor']['commands']['get']('insertImage');_0x4846cb&&this['listenTo'](_0x4846cb,'execute',()=>{const _0x5d6a19=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5d6a19&&_0x5d6a19['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5d6a19);});});const _0x427112=this['editor']['commands']['get']('uploadcareImageReplace');_0x427112&&this['listenTo'](_0x427112,'execute',()=>{const _0x380791=this['editor']['model']['document']['selection']['getSelectedElement']();_0x380791&&_0x380791['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x380791);});});}}class tt extends _0x3c8b09{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x451f79){super(_0x451f79),_0x451f79['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x12dac6['defineComponents'](_0x12dac6);}}class ii extends _0x393d6c{constructor(_0x568b0d){super(_0x568b0d);const t=_0x568b0d['t'],_0x441911=this['bindTemplate'],_0x2cf6da=new _0x53c3b2();_0x2cf6da['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':[_0x2cf6da,{'text':_0x441911['to']('imageUploadProgress',_0x2e7c27=>t('Loading\x20image...')+'\x20('+(_0x2e7c27||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 _0x393d6c{constructor(_0x4babbf){super(_0x4babbf);const t=_0x4babbf['t'];this['set']('errorType',null);const _0x31265c=new _0x31ddd8(_0x4babbf);_0x31265c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x31265c['withText']=!0x0,_0x31265c['class']='ck-button-action',_0x31265c['on']('execute',()=>{this['fire']('retry');}),_0x31265c['bind']('isVisible')['to'](this,'errorType',_0xa12389=>'NotFound'!==_0xa12389);const _0x53d1a4=new _0x5baf03();_0x53d1a4['content']=_0x5cfd40,_0x53d1a4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3c22de=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':[_0x53d1a4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3c22de['to']('errorType',_0x2a3588=>t('NotFound'!==_0x2a3588?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x31265c]},{'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 _0x393d6c{constructor(_0x228622,_0x3793cc){super(_0x228622);const _0x1d1568=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3793cc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1d1568['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x42e5c0,_0xe018ea,_0x52a435){super(_0x42e5c0),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x42e5c0),this['_errorView']=new ti(_0x42e5c0),this['_editingView']=new ei(_0x42e5c0,_0x52a435),this['_focusableView']=new _0x393d6c(_0x42e5c0),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xe018ea),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'],_0x5a43ee=>{this['_addUploadcareImageEditorListeners'](_0x5a43ee);});}),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'](_0x1fc1ec,_0x39ecf6){const _0x5cb422='uc-cloud-image-editor',_0x2145c4=_0x1fc1ec['querySelector'](_0x5cb422);if(_0x2145c4)return _0x39ecf6(_0x2145c4);const _0x23908f=new MutationObserver(_0xeb8103=>{const _0x4fffb5=_0xeb8103['filter'](_0x11a103=>_0x11a103['target']===_0x1fc1ec&&_0x11a103['addedNodes']['length']>0x0&&_0x11a103['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5cb422);_0x4fffb5['length']&&(_0x23908f['disconnect'](),_0x39ecf6(_0x4fffb5[0x0]['addedNodes'][0x0]));});_0x23908f['observe'](_0x1fc1ec,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x67f6f0){_0x67f6f0['addEventListener']('apply',_0xe8f024=>{this['fire']('apply',{'imageSrc':_0xe8f024['detail']['cdnUrl']});}),_0x67f6f0['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4c7309(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x27ef18,_0xb7b65b,_0x537642){super(),this['_editor']=_0x27ef18,this['_dialog']=_0xb7b65b,this['_imageElement']=_0x537642,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 _0x32271c=this['_imageElement'],_0x9802eb=_0x32271c['getAttribute']('uploadcareImageId'),_0x32851c=_0x32271c['getAttribute']('src');if(_0x9802eb)await this['_loadImageInfo'](_0x9802eb,_0x32851c);else{if(this['_imageCache']['has'](_0x32851c)){const _0x170c9b=this['_imageCache']['get'](_0x32851c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x170c9b['url'],this['imageDimension']=_0x170c9b['dimension'],this['imageId']=_0x170c9b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x37667f}=this['_editor'],t=_0x37667f['t'],_0x2a0b4f=new X(_0x37667f,this['imageStatus'],this['_attributes']);_0x2a0b4f['bind']('status')['to'](this,'imageStatus'),_0x2a0b4f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2a0b4f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2a0b4f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2a0b4f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1e534e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2a0b4f,'position':_0xd31937['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2a0b4f['focus']();},'onHide':()=>{_0x2a0b4f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4a3484=>!A(_0x4a3484,_0x2a0b4f['element'])}});}['_loadImageInfo'](_0x421cc4,_0xe12ef6){return j['getInfo'](_0x421cc4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x328311=>{const {width:_0x2bffec,height:_0x444981}=_0x328311['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe12ef6,this['imageDimension']={'width':_0x2bffec,'height':_0x444981},this['imageId']=_0x421cc4;})['catch'](_0x3c0a16=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3c0a16['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1b0e5a,_0x2a9d04){return this['_getImageAsFile'](_0x1b0e5a)['then'](_0x1b8130=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2a9d04['signal'],'file':_0x1b8130,'onProgress':_0x66354e=>{_0x66354e&&_0x66354e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x66354e['value']));}}))['then'](_0x28bf7f=>{const {width:_0x429faa,height:_0x5c76a4}=_0x28bf7f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x28bf7f['cdnUrl'],this['imageDimension']={'width':_0x429faa,'height':_0x5c76a4},this['imageId']=_0x28bf7f['uuid'],this['imageUploadProgress']=null;const _0x2ff171=_0x1b0e5a['getAttribute']('src');this['_imageCache']['set'](_0x2ff171,{'id':_0x28bf7f['uuid'],'url':_0x28bf7f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x15dfa9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x15dfa9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x48e80b,_0xdaa995){_0x48e80b['on']('apply',(_0x47cff0,_0x72e2a5)=>{this['_replaceImage'](_0xdaa995,_0x72e2a5['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x48e80b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x48e80b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1caf08,_0x4a6455,_0x3e2944){const _0x1146fc=this['_editor'],{width:_0x20a4dd,height:_0x18d08b}=S(_0x4a6455,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4be2b1,imageSources:_0x51934a}=C(_0x4a6455,_0x20a4dd);_0x1146fc['model']['change'](_0x38b6d2=>{if('$graveyard'===_0x1caf08['root']['rootName']){_0x1146fc['execute']('insertImage',{'imageType':_0x1caf08['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1caf08['getAttributes']()),'uploadcareImageId':_0x3e2944,'src':_0x4be2b1,'sources':_0x51934a,'width':_0x20a4dd,'height':_0x18d08b}});const _0x480705=_0x1caf08['getChildren']();_0x1caf08=_0x1146fc['model']['document']['selection']['getSelectedElement']();for(const _0x49b846 of _0x480705)_0x38b6d2['append'](_0x38b6d2['cloneElement'](_0x49b846),_0x1caf08);}else _0x38b6d2['setSelection'](_0x1caf08,'on'),_0x1146fc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1caf08['getAttributes']()),'uploadcareImageId':_0x3e2944,'src':_0x4be2b1,'sources':_0x51934a,'width':_0x20a4dd,'height':_0x18d08b},_0x1caf08);_0x38b6d2['setSelection'](_0x1caf08,'on');});}async['_getImageAsFile'](_0x312ecf){const _0x48d8ff=_0x7d8c4c['window'],_0x1d02f5=_0x7d8c4c['document']['location']['href'],_0x1b94e3=new _0x48d8ff['URL'](_0x312ecf['getAttribute']('src'),_0x1d02f5);if('data:'===_0x1b94e3['protocol']){const _0x67150f=_0x1b94e3['href']['split'](','),_0x1ab393=_0x67150f[0x0]['match'](/:(.*?);/)[0x1],_0x347ae0=_0x1ab393['split']('/')[0x1],_0x44ee0e=_0x48d8ff['atob'](_0x67150f[_0x67150f['length']-0x1]);let _0x549bf5=_0x44ee0e['length'];const _0x449e6e=new _0x48d8ff['Uint8Array'](_0x549bf5);for(;_0x549bf5--;)_0x449e6e[_0x549bf5]=_0x44ee0e['charCodeAt'](_0x549bf5);return new _0x48d8ff['File']([_0x449e6e],'image.'+_0x347ae0,{'type':_0x1ab393});}const _0x2e2567=_0x1b94e3['href']['split']('/'),_0x539119=_0x2e2567[_0x2e2567['length']-0x1],_0x512a14=_0x539119['split']('.')[0x1];return _0x48d8ff['fetch'](_0x1b94e3['href'])['then'](_0x21edfb=>_0x21edfb['clone']()['blob']())['then'](_0x1af2ed=>new _0x48d8ff['File']([_0x1af2ed],_0x539119,{'type':'image/'+_0x512a14}));}}class O extends _0x1e9b14{['imageEditController'];static get['requires'](){return[_0x563fe3];}['_isEditable'];constructor(_0x3e731b){super(_0x3e731b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x578d84){const _0x14f708=G(_0x578d84);return _0x3738cd=>!(!_0x3738cd||!_0x3738cd['is']('element','imageBlock')&&!_0x3738cd['is']('element','imageInline'))&&(!!_0x3738cd['hasAttribute']('uploadcareImageId')||!!_0x3738cd['hasAttribute']('src')&&_0x14f708(_0x3738cd['getAttribute']('src')));}(_0x3e731b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x54d3ab=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x54d3ab);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5764eb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5764eb&&(_0x5764eb['is']('element','imageBlock')||_0x5764eb['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x563fe3),_0x5764eb),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1e9b14{['refresh'](){const _0x13d67b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x13d67b&&(_0x13d67b['is']('element','imageBlock')||_0x13d67b['is']('element','imageInline')));}['execute'](_0x213600){const _0x41edb1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x152514=>{_0x152514['setAttributes'](_0x213600,_0x41edb1),_0x152514['removeAttribute']('srcset',_0x41edb1),_0x152514['removeAttribute']('sizes',_0x41edb1);});}}class m extends _0x3c8b09{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2f4c69,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xbd5611}=this;_0xbd5611['commands']['add']('uploadcareImageEdit',new O(_0xbd5611)),_0xbd5611['commands']['add']('uploadcareImageReplace',new R(_0xbd5611));}}class g extends _0x3c8b09{['_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 _0x17daf2=this['editor'];_0x17daf2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x54aacf=>{const _0x5bc164=_0x17daf2['commands']['get']('uploadcareImageEdit'),_0x5852f1=new _0x31ddd8(_0x54aacf),t=_0x54aacf['t'];return _0x5852f1['set']({'icon':_0x1e534e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5852f1['bind']('isEnabled')['to'](_0x5bc164),_0x5852f1['bind']('isOn')['to'](_0x5bc164,'isActive'),this['listenTo'](_0x5852f1,'execute',()=>{_0x17daf2['execute']('uploadcareImageEdit'),_0x17daf2['editing']['view']['focus']();}),_0x5852f1;}),this['_initConfig']();}['_initConfig'](){const _0x5258b1=_0x2bff64(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5258b1),this['listenTo'](this['editor'],'destroy',()=>{_0x5258b1['remove']();});}}class et extends _0x3c8b09{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':_0x16d2f9=>0x1!=_0x16d2f9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5c5140=>{const {af:{dictionary:_0x50695d,getPluralForm:_0x2e643f}}={'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':_0x539741=>0x1!=_0x539741}};_0x5c5140['af']||={'dictionary':{},'getPluralForm':null},_0x5c5140['af']['dictionary']=Object['assign'](_0x5c5140['af']['dictionary'],_0x50695d),_0x5c5140['af']['getPluralForm']=_0x2e643f;})(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':_0x546a07=>0x0==_0x546a07?0x0:0x1==_0x546a07?0x1:0x2==_0x546a07?0x2:_0x546a07%0x64>=0x3&&_0x546a07%0x64<=0xa?0x3:_0x546a07%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4bf9b2=>{const {ar:{dictionary:_0x14bbfc,getPluralForm:_0x3addd2}}={'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':_0x129a0e=>0x0==_0x129a0e?0x0:0x1==_0x129a0e?0x1:0x2==_0x129a0e?0x2:_0x129a0e%0x64>=0x3&&_0x129a0e%0x64<=0xa?0x3:_0x129a0e%0x64>=0xb?0x4:0x5}};_0x4bf9b2['ar']||={'dictionary':{},'getPluralForm':null},_0x4bf9b2['ar']['dictionary']=Object['assign'](_0x4bf9b2['ar']['dictionary'],_0x14bbfc),_0x4bf9b2['ar']['getPluralForm']=_0x3addd2;})(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':_0x2c6a0c=>0x1!=_0x2c6a0c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x548fff=>{const {ast:{dictionary:_0x3e12c6,getPluralForm:_0x2fcea0}}={'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':_0x3c085d=>0x1!=_0x3c085d}};_0x548fff['ast']||={'dictionary':{},'getPluralForm':null},_0x548fff['ast']['dictionary']=Object['assign'](_0x548fff['ast']['dictionary'],_0x3e12c6),_0x548fff['ast']['getPluralForm']=_0x2fcea0;})(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':_0x117885=>0x1!=_0x117885}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x242217=>{const {az:{dictionary:_0x58f729,getPluralForm:_0x4cc606}}={'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':_0x23ef04=>0x1!=_0x23ef04}};_0x242217['az']||={'dictionary':{},'getPluralForm':null},_0x242217['az']['dictionary']=Object['assign'](_0x242217['az']['dictionary'],_0x58f729),_0x242217['az']['getPluralForm']=_0x4cc606;})(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':_0x4afb87=>_0x4afb87%0xa==0x1&&_0x4afb87%0x64!=0xb?0x0:_0x4afb87%0xa>=0x2&&_0x4afb87%0xa<=0x4&&(_0x4afb87%0x64<0xa||_0x4afb87%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2653f0=>{const {be:{dictionary:_0x4a8261,getPluralForm:_0x3daecd}}={'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':_0x357dd4=>_0x357dd4%0xa==0x1&&_0x357dd4%0x64!=0xb?0x0:_0x357dd4%0xa>=0x2&&_0x357dd4%0xa<=0x4&&(_0x357dd4%0x64<0xa||_0x357dd4%0x64>=0x14)?0x1:0x2}};_0x2653f0['be']||={'dictionary':{},'getPluralForm':null},_0x2653f0['be']['dictionary']=Object['assign'](_0x2653f0['be']['dictionary'],_0x4a8261),_0x2653f0['be']['getPluralForm']=_0x3daecd;})(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':_0x23a603=>0x1!=_0x23a603}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x419fd0=>{const {bg:{dictionary:_0xc69a38,getPluralForm:_0x1f8a71}}={'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':_0x501519=>0x1!=_0x501519}};_0x419fd0['bg']||={'dictionary':{},'getPluralForm':null},_0x419fd0['bg']['dictionary']=Object['assign'](_0x419fd0['bg']['dictionary'],_0xc69a38),_0x419fd0['bg']['getPluralForm']=_0x1f8a71;})(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':_0x211539=>0x1!=_0x211539}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x26edf7=>{const {bn:{dictionary:_0x51ebc6,getPluralForm:_0x494acb}}={'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':_0xb7294c=>0x1!=_0xb7294c}};_0x26edf7['bn']||={'dictionary':{},'getPluralForm':null},_0x26edf7['bn']['dictionary']=Object['assign'](_0x26edf7['bn']['dictionary'],_0x51ebc6),_0x26edf7['bn']['getPluralForm']=_0x494acb;})(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':_0x22f4e4=>_0x22f4e4%0xa==0x1&&_0x22f4e4%0x64!=0xb?0x0:_0x22f4e4%0xa>=0x2&&_0x22f4e4%0xa<=0x4&&(_0x22f4e4%0x64<0xa||_0x22f4e4%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5c508b=>{const {bs:{dictionary:_0x14386a,getPluralForm:_0x5c187b}}={'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':_0x13aee8=>_0x13aee8%0xa==0x1&&_0x13aee8%0x64!=0xb?0x0:_0x13aee8%0xa>=0x2&&_0x13aee8%0xa<=0x4&&(_0x13aee8%0x64<0xa||_0x13aee8%0x64>=0x14)?0x1:0x2}};_0x5c508b['bs']||={'dictionary':{},'getPluralForm':null},_0x5c508b['bs']['dictionary']=Object['assign'](_0x5c508b['bs']['dictionary'],_0x14386a),_0x5c508b['bs']['getPluralForm']=_0x5c187b;})(window['CKEDITOR_TRANSLATIONS']||={});
|