@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251001.0 → 0.0.0-nightly-20251003.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x545bcb,Command as _0x2a5e38}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x45e20d,IconGooglePhotos as _0x578e7f,IconGoogleDrive as _0x53909b,IconFacebook as _0x502043,IconDropbox as _0x4a2cc1,IconUploadcareLink as _0x2b4817,IconUploadcareImageUpload as _0x9b5872,IconError as _0x18f25a,IconUploadcareImageEdit as _0x3f0c8a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x20dfad,MenuBarMenuListItemButtonView as _0x282965,View as _0x3a3437,FocusCycler as _0x41fc20,Dialog as _0x100467,DialogViewPosition as _0x5813bf,SpinnerView as _0x3685e8,IconView as _0x4d7be3,Notification as _0x26fabf}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4ef742,DomEmitterMixin as _0x3201e7,global as _0x3f6e57,getAncestors as _0x10c94a,ObservableMixin as _0xffbb29,uid as _0xd2867e,createElement as _0x6ccec9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x263fd5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4f3782,info as _0x3dd099}from'@uploadcare/upload-client';import*as _0xba342b from'@uploadcare/file-uploader';var i=function(_0x158120){return _0x158120['Local']='local',_0x158120['URL']='url',_0x158120['Dropbox']='dropbox',_0x158120['GDrive']='gdrive',_0x158120['Facebook']='facebook',_0x158120['GPhotos']='gphotos',_0x158120['OneDrive']='onedrive',_0x158120;}({});function _(_0x30c770,_0x25df60,_0xe7858e){const t=_0x30c770['t'],_0x4c63b5=_0x30c770['t'];switch(_0x25df60){case i['Local']:return{'text':_0x4c63b5('Insert'===_0xe7858e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4c63b5('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xe7858e?_0x4c63b5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4c63b5('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xe7858e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xe7858e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xe7858e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xe7858e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xe7858e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x25df60;}}class e extends _0x545bcb{['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 _0x4226ae=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf8e9ff;for(const _0x37d6a1 in _0x4226ae){const _0x5bdc0f=_0x37d6a1,_0x158fad=_0x4226ae[_0x5bdc0f];if('uploadcareLicenseKeyValid'==_0x158fad||'uploadcareLicenseKeyInvalid'==_0x158fad||'uploadcareLicenseKeyExpired'==_0x158fad||'uploadcareLicenseKeyDomainLimit'==_0x158fad||'uploadcareLicenseKeyNotAllowed'==_0x158fad||'uploadcareLicenseKeyEvaluationLimit'==_0x158fad||'uploadcareLicenseKeyTrialLimit'==_0x158fad||'uploadcareLicenseKeyUsageLimit'==_0x158fad){delete _0x4226ae[_0x5bdc0f],_0xf8e9ff=_0x158fad,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xf8e9ff&&_0x4226ae['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xf8e9ff&&_0x4226ae['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xf8e9ff&&_0x4226ae['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xf8e9ff&&_0x4226ae['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xf8e9ff&&_0x4226ae['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xf8e9ff&&_0x4226ae['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xf8e9ff&&_0x4226ae['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x57a3b2}=this,_0x5a5701=_0x57a3b2['commands']['get']('uploadcare');if(!_0x5a5701)return;const _0x3e6ff0=this['_normalizeConfigSourceList'](_0x57a3b2['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x14796a,_0x3d4625)=>{const _0x107690=this['_getIntegrationKey'](_0x3d4625['type']);return _0x14796a[_0x107690]||(_0x14796a[_0x107690]=[]),_0x14796a[_0x107690]['push'](_0x3d4625),_0x14796a;},{});_0x57a3b2['plugins']['has']('ImageInsertUI')&&_0x57a3b2['commands']['get']('uploadcare')&&Object['entries'](_0x3e6ff0)['forEach'](([_0x3100d3,_0x1cfecf])=>{_0x57a3b2['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3100d3,'observable':()=>_0x5a5701,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1cfecf),'formViewCreator':()=>this['_createDropdownButtons'](_0x1cfecf),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1cfecf),'override':'assetManager'!==_0x3100d3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x33c04e){const {locale:_0x2807fb}=this['editor'];return _0x33c04e['map'](_0x18e9bd=>{const _0x143942=_(_0x2807fb,_0x18e9bd,'Insert');switch(_0x18e9bd){case i['Local']:return{'icon':_0x9b5872,'type':i['Local'],..._0x143942};case i['URL']:return{'icon':_0x2b4817,'type':i['URL'],..._0x143942};case i['Dropbox']:return{'icon':_0x4a2cc1,'type':i['Dropbox'],..._0x143942};case i['Facebook']:return{'icon':_0x502043,'type':i['Facebook'],..._0x143942};case i['GDrive']:return{'icon':_0x53909b,'type':i['GDrive'],..._0x143942};case i['GPhotos']:return{'icon':_0x578e7f,'type':i['GPhotos'],..._0x143942};case i['OneDrive']:return{'icon':_0x45e20d,'type':i['OneDrive'],..._0x143942};}});}['_getIntegrationKey'](_0x4749af){switch(_0x4749af){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1d1652,_0x3bb303){const _0x34fec1=this['editor'],_0x4abda0=new _0x1d1652(_0x34fec1['locale']),_0x339a67=_0x34fec1['commands']['get']('uploadcare');return _0x4abda0['bind']('isEnabled')['to'](_0x339a67),_0x4abda0['on']('execute',()=>{_0x339a67['execute'](_0x3bb303);}),_0x4abda0;}['_createToolbarButton'](_0x10b82d){const {locale:_0x3b35b6}=this['editor'],_0x5c498f=this['editor']['plugins']['get']('ImageInsertUI'),_0x5ca80e=_0x10b82d[0x0],_0x9c8cc3=this['_createButton'](_0x20dfad,_0x5ca80e['type']);return _0x9c8cc3['icon']=_0x5ca80e['icon'],_0x9c8cc3['bind']('label')['to'](_0x5c498f,'isImageSelected',_0x135cb1=>_(_0x3b35b6,_0x5ca80e['type'],_0x135cb1?'Replace':'Insert')['text']),_0x9c8cc3['tooltip']=!0x0,_0x9c8cc3;}['_createDropdownButtons'](_0x256363){const {locale:_0x11aa2a}=this['editor'],_0x13d409=this['editor']['plugins']['get']('ImageInsertUI');return _0x256363['map'](_0x427510=>{const _0x380c00=this['_createButton'](_0x20dfad,_0x427510['type']);return _0x380c00['withText']=!0x0,_0x380c00['icon']=_0x427510['icon'],_0x380c00['bind']('label')['to'](_0x13d409,'isImageSelected',_0x554991=>_(_0x11aa2a,_0x427510['type'],_0x554991?'Replace':'Insert')['text']),_0x380c00;});}['_createMenuBarButtons'](_0x14bff7){return _0x14bff7['map'](_0x289430=>{const _0x5af562=this['_createButton'](_0x282965,_0x289430['type']);return _0x5af562['icon']=_0x289430['icon'],_0x5af562['label']=_0x289430['shortText'],_0x5af562;});}}class V extends _0x3a3437{['focusTracker'];['focusCycler'];constructor(_0x2e060e){super(_0x2e060e),this['focusTracker']=new _0x4ef742(),this['focusCycler']=new _0x41fc20({'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(_0x528a09,_0x4a8145){super(_0x528a09),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-'+_0x4a8145}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2a2783,_0x1ad15a){const _0x59e3dc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x25b822=>_0x25b822<=_0x1ad15a)['map'](_0x24fede=>_0x2a2783['replace'](/\/$/,'')+'/-/resize/'+_0x24fede+'x/\x20'+_0x24fede+'w');return{'imageFallbackUrl':_0x2a2783,'imageSources':[{'srcset':_0x59e3dc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1ad15a+'px)\x20100vw,\x20'+_0x1ad15a+'px','type':'image/webp'}]};}function F(_0x237cb9,_0x38a696,_0x2b0929){const _0x4212d4=_0x237cb9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4212d4?parseInt(_0x4212d4[0x1],0xa):_0x38a696,'height':_0x4212d4?parseInt(_0x4212d4[0x2],0xa):_0x2b0929};}function p(_0x53b3fd,_0x10f880){const _0x43ba72=new(_0x3201e7())(),_0x4bcc7a=_0x53b3fd['plugins']['get']('ImageUtils'),_0x48f36e=_0x53b3fd['editing']['mapper']['toViewElement'](_0x10f880),_0xaa395d=_0x4bcc7a['findViewImgElement'](_0x48f36e),_0x2e1990=_0x53b3fd['editing']['view']['domConverter']['viewToDom'](_0xaa395d),_0x299754=_0x10f880['getAttribute']('width'),_0x429859=_0x10f880['getAttribute']('height'),_0x20754c='image-processing';_0x53b3fd['editing']['view']['change'](_0x3b1b2b=>{_0x3b1b2b['addClass'](_0x20754c,_0x48f36e),_0x3b1b2b['setStyle']('aspect-ratio',_0x299754+'/'+_0x429859,_0xaa395d);}),_0x43ba72['listenTo'](_0x2e1990,'load',()=>{_0x43ba72['stopListening'](_0x2e1990,'load'),_0x53b3fd['editing']['view']['change'](_0xcbbe9=>{_0xcbbe9['removeClass'](_0x20754c,_0x48f36e),_0xcbbe9['removeStyle']('aspect-ratio',_0xaa395d);});});}function R(_0x117786){if(Array['isArray'](_0x117786)){const _0x513d84=_0x117786['map'](R);return _0x29b1f6=>_0x513d84['some'](_0x145736=>_0x145736(_0x29b1f6));}if('origin'==_0x117786){const _0x210c3f=_0x3f6e57['window']['location']['origin'];return _0x491d1c=>new URL(_0x491d1c,_0x3f6e57['document']['baseURI'])['origin']==_0x210c3f;}return'function'==typeof _0x117786?_0x117786:_0x117786 instanceof RegExp?_0x8e8d90=>!(!_0x8e8d90['match'](_0x117786)&&!_0x8e8d90['replace'](/^https?:\/\//,'')['match'](_0x117786)):()=>!0x1;}function M(_0x54617e,_0x490aae){return _0x10c94a(_0x54617e['target'])['includes'](_0x490aae);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xffbb29(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4a60c5,_0x4ea7f2,_0x3c444f){super(),this['_editor']=_0x4a60c5,this['_editing']=_0x4ea7f2,this['_dialog']=_0x4a60c5['plugins']['get'](_0x100467),this['_api']=_0x4ea7f2['ctxElement']['getAPI'](),this['_type']=_0x3c444f,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:_0x4ec1b2,model:_0x23032e}=this['_editor'],_0x448a80=_0x23032e['document']['selection']['getSelectedElement'](),_0x2c7780=_0x448a80&&(_0x448a80['is']('element','imageBlock')||_0x448a80['is']('element','imageInline'));this['_formView']=new S(_0x4ec1b2,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x9b5872,'title':_(_0x4ec1b2,this['_type'],_0x2c7780?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5813bf['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x291d4d=>!M(_0x291d4d,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xb6e463}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5347af=>{const _0x54b5e7=_0xb6e463['length'];for(const _0x12f273 of _0xb6e463){const _0x3155b5=_0x12f273===_0xb6e463[_0x54b5e7-0x1],{cdnUrl:_0x46eed4,fileInfo:_0x570e6a}=_0x12f273;if(!_0x46eed4||!_0x570e6a)continue;const {width:_0x33573d,height:_0xcadeda}=_0x570e6a['imageInfo'],_0x24ddb9=F(_0x46eed4,_0x33573d,_0xcadeda),_0x4495a5=C(_0x46eed4,_0x24ddb9['width']),_0x32cda2={'id':_0x570e6a['uuid'],'type':'image','attributes':{'imageDimension':_0x24ddb9,..._0x4495a5}};this['_insertAsset'](_0x32cda2,_0x3155b5,_0x5347af);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5de6ed=>{'idle'===_0x5de6ed['detail']['status']&&!_0x5de6ed['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2f3608,_0x5ea994,_0x28570f){const _0x39e8e1=this['_editor']['model']['document']['selection'],_0x1e4622=_0x39e8e1['getSelectedElement'](),_0x952613=!(!_0x1e4622||!_0x1e4622['is']('element','imageInline'));_0x28570f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2f3608,_0x952613),_0x5ea994||_0x28570f['setSelection'](_0x39e8e1['getLastPosition']());}['_insertImage'](_0x2c10d9,_0x50d969){const _0x27ffee=this['_editor'],{imageDimension:_0x120ed2,imageFallbackUrl:_0x31b1e9,imageSources:_0x14764b}=_0x2c10d9['attributes'];_0x27ffee['execute']('insertImage',{'imageType':_0x50d969?'imageInline':null,'source':{'uploadcareImageId':_0x2c10d9['id'],'src':_0x31b1e9,'sources':_0x14764b,..._0x120ed2}});}}class w extends _0x2a5e38{['_editing'];['_controller']=null;static get['requires'](){return[_0x100467,o];}constructor(_0x42d27a){super(_0x42d27a),this['_editing']=_0x42d27a['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x16b9a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x16b9a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x296a7d,..._0x225d83}){return _0x4f3782(_0x296a7d,_0x225d83);}static['getInfo'](_0x1030d5,_0x57d392){return _0x3dd099(_0x1030d5,_0x57d392);}}class f extends _0x545bcb{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x263fd5,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5f507c=this['editor'];if(!!!_0x5f507c['config']['get']('uploadcare'))return;_0x5f507c['plugins']['get'](_0x263fd5)['createUploadAdapter']=_0x3b23f1=>new k(_0x3b23f1,_0x5f507c),_0x5f507c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x30d4d1,{imageElement:_0x3b9f7d,data:_0x288115})=>{_0x5f507c['model']['change'](_0x1d610f=>{_0x1d610f['setAttribute']('uploadcareImageId',_0x288115['uploadcareImageId'],_0x3b9f7d);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2b5907,_0x33efdc){this['loader']=_0x2b5907,this['editor']=_0x33efdc,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xa60fad=await this['loader']['file'];return j['upload']({'file':_0xa60fad,'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':_0x550e1d=>{_0x550e1d&&_0x550e1d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x550e1d['value']);}})['then'](async _0x1b7a79=>{const {imageFallbackUrl:_0x1fb088,imageSources:_0x28af72}=C(_0x1b7a79['cdnUrl'],_0x1b7a79['imageInfo']['width']);return{'uploadcareImageId':_0x1b7a79['uuid'],'default':_0x1fb088,'sources':_0x28af72};})['catch'](()=>{const _0x2f7c65=t('Cannot\x20upload\x20file:')+('\x20'+_0xa60fad['name']+'.');return Promise['reject'](_0x2f7c65);});}['abort'](){this['controller']['abort']();}}class o extends _0x545bcb{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x100467];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1804bc){super(_0x1804bc),this['ucContextId']=_0xd2867e();}['init'](){const _0x27d869=this['editor'];_0x27d869['commands']['add']('uploadcare',new w(_0x27d869));}['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 _0x16a36c=_0x3f6e57['document']['querySelector']('input[uploadcare-file-input]');_0x16a36c&&_0x16a36c['remove']();}),async function(_0x28a9c3){const _0x55f34c=_0x559703([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]),_0x2b2506=0x3d8d0df,_0xfbde57=0x3dfa42f^_0x2b2506,_0x27834a=window[_0x559703([0x44,0x61,0x74,0x65])][_0x559703([0x6e,0x6f,0x77])](),_0x17aeee=_0x28a9c3[_0x559703([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa2cac9=new window[(_0x559703([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x708098=>{_0x17aeee[_0x559703([0x6f,0x6e,0x63,0x65])](_0x559703([0x72,0x65,0x61,0x64,0x79]),_0x708098);}),_0x25f807={[_0x559703([0x6b,0x74,0x79])]:_0x559703([0x45,0x43]),[_0x559703([0x75,0x73,0x65])]:_0x559703([0x73,0x69,0x67]),[_0x559703([0x63,0x72,0x76])]:_0x559703([0x50,0x2d,0x32,0x35,0x36]),[_0x559703([0x78])]:_0x559703([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]),[_0x559703([0x79])]:_0x559703([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]),[_0x559703([0x61,0x6c,0x67])]:_0x559703([0x45,0x53,0x32,0x35,0x36])},_0x4235a2=_0x17aeee[_0x559703([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x559703([0x67,0x65,0x74])](_0x559703([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x331330(){let _0x247a61,_0x631399=null,_0x214bbe=null;try{if(_0x4235a2==_0x559703([0x47,0x50,0x4c]))return _0x559703([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x247a61=_0x297a50(),!_0x247a61)return _0x559703([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x247a61[_0x559703([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x214bbe=_0x2297a3(_0x247a61[_0x559703([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x247a61[_0x559703([0x6a,0x74,0x69])])),await _0x3b5835()?_0x278d06()?_0x4b8f30()?_0x559703([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ad773()?(_0x247a61[_0x559703([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x559703([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x631399=_0x4d61ca(_0x559703([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x247a61[_0x559703([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x559703([0x74,0x72,0x69,0x61,0x6c])&&(_0x631399=_0x4d61ca(_0x559703([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d13dc()):_0x559703([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x559703([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x559703([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x559703([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b8f30(){const _0x26aff1=[_0x559703([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x559703([0x74,0x72,0x69,0x61,0x6c])][_0x559703([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x247a61[_0x559703([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x27834a/0x3e8:0xe10*_0xfbde57;return _0x247a61[_0x559703([0x65,0x78,0x70])]<_0x26aff1;}function _0x278d06(){const _0x591bfd=_0x247a61[_0x559703([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x591bfd&&(!!_0x591bfd[_0x559703([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x559703([0x2a]))||!!_0x591bfd[_0x559703([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x559703([0x55,0x50,0x4c,0x43])));}function _0x4ad773(){const _0x5d191c=_0x247a61[_0x559703([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d191c||0x0==_0x5d191c[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x420aa3}=new URL(window[_0x559703([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d191c[_0x559703([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x420aa3))return!0x0;const _0x106393=_0x420aa3[_0x559703([0x73,0x70,0x6c,0x69,0x74])](_0x559703([0x2e]));return _0x5d191c[_0x559703([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a0824=>_0x3a0824[_0x559703([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x559703([0x2a])))[_0x559703([0x6d,0x61,0x70])](_0x52ca05=>_0x52ca05[_0x559703([0x73,0x70,0x6c,0x69,0x74])](_0x559703([0x2e])))[_0x559703([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x231e72=>_0x231e72[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x106393[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x559703([0x6d,0x61,0x70])](_0x130194=>Array(_0x106393[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x130194[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x559703([0x66,0x69,0x6c,0x6c])](_0x130194[0x0]===_0x559703([0x2a])?_0x559703([0x2a]):'')[_0x559703([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x130194))[_0x559703([0x73,0x6f,0x6d,0x65])](_0xbe6133=>_0x106393[_0x559703([0x65,0x76,0x65,0x72,0x79])]((_0x3c6d8b,_0x4c892d)=>_0xbe6133[_0x4c892d]===_0x3c6d8b||_0xbe6133[_0x4c892d]===_0x559703([0x2a])));}function _0x4d13dc(){return _0x631399&&_0x214bbe?new window[(_0x559703([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d2c07,_0x2cdadf)=>{_0x631399[_0x559703([0x74,0x68,0x65,0x6e])](_0x2d2c07,_0x2cdadf),_0x214bbe[_0x559703([0x74,0x68,0x65,0x6e])](_0x478c62=>{_0x478c62!=_0x559703([0x56,0x61,0x6c,0x69,0x64])&&_0x2d2c07(_0x478c62);},_0x2cdadf);}):_0x631399||_0x214bbe||_0x559703([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2297a3(_0x5f1d1c,_0x5beacc){return new window[(_0x559703([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54ee3d=>{if(_0x3ac1d3())return _0x54ee3d(_0x559703([0x56,0x61,0x6c,0x69,0x64]));_0x178646(),_0x17aeee[_0x559703([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x559703([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x490ff3=!0x1;const _0x475315=_0xd2867e();function _0xfde5a0(_0x4ca43f){return!!_0x4ca43f&&(typeof _0x4ca43f===_0x559703([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ca43f===_0x559703([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ca43f[_0x559703([0x74,0x68,0x65,0x6e])]===_0x559703([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ca43f[_0x559703([0x63,0x61,0x74,0x63,0x68])]===_0x559703([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c96b2(_0x5df11d){_0x105ad1(_0x5df11d)[_0x559703([0x74,0x68,0x65,0x6e])](_0x2e3d25=>{if(!_0x2e3d25||_0x2e3d25[_0x559703([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x559703([0x6f,0x6b]))return _0x559703([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25997d(_0x215410(_0x475315+_0x5beacc))!=_0x2e3d25[_0x559703([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x559703([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x559703([0x56,0x61,0x6c,0x69,0x64]);})[_0x559703([0x74,0x68,0x65,0x6e])](_0x55b27a=>(_0x45fff4(),_0x55b27a),()=>{const _0x35c95e=_0x41e78f();return null==_0x35c95e?(_0x45fff4(),_0x559703([0x56,0x61,0x6c,0x69,0x64])):_0x559703(_0x27834a-_0x35c95e>(0x27d454df^_0x2b2506)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x559703([0x74,0x68,0x65,0x6e])](_0x54ee3d)[_0x559703([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54ee3d(_0x559703([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f511f=0x3ee3e5f^_0x2b2506;function _0x45fff4(){const _0x42df5f=_0x559703([0x6c,0x6c,0x63,0x74,0x2d])+_0x25997d(_0x215410(_0x5f1d1c)),_0x57653d=_0x4d6fe1(_0x25997d(window[_0x559703([0x4d,0x61,0x74,0x68])][_0x559703([0x63,0x65,0x69,0x6c])](_0x27834a/_0x2f511f)));window[_0x559703([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x559703([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42df5f,_0x57653d);}function _0x41e78f(){const _0x12add3=_0x559703([0x6c,0x6c,0x63,0x74,0x2d])+_0x25997d(_0x215410(_0x5f1d1c)),_0x39a5f5=window[_0x559703([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x559703([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12add3);return _0x39a5f5?window[_0x559703([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d6fe1(_0x39a5f5),0x10)*_0x2f511f:null;}function _0x105ad1(_0x11410d){return new window[(_0x559703([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbb8e44,_0x1429b9)=>{_0x11410d[_0x559703([0x74,0x68,0x65,0x6e])](_0xbb8e44,_0x1429b9),window[_0x559703([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1429b9,0x3d9041f^_0x2b2506);});}}_0x17aeee[_0x559703([0x6f,0x6e])](_0x559703([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x95c941,_0x12db0c)=>{if(_0x12db0c[0x0]!=_0x5f1d1c)return _0x54ee3d(_0x559703([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12db0c[0x1]={..._0x12db0c[0x1],[_0x559703([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x475315};},{[_0x559703([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x559703([0x68,0x69,0x67,0x68])}),_0x17aeee[_0x559703([0x6f,0x6e])](_0x559703([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55fe16=>{_0xfde5a0(_0x55fe16[_0x559703([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x490ff3=!0x0,_0x1c96b2(_0x55fe16[_0x559703([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x559703([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x559703([0x6c,0x6f,0x77])}),_0xa2cac9[_0x559703([0x74,0x68,0x65,0x6e])](()=>{_0x490ff3||_0x54ee3d(_0x559703([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ac1d3(){return _0x17aeee[_0x559703([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x559703([0x76,0x69,0x65,0x77])][_0x559703([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x559703([0x61,0x75,0x74,0x6f]);}function _0x178646(){_0x17aeee[_0x559703([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x559703([0x76,0x69,0x65,0x77])][_0x559703([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x559703([0x61,0x75,0x74,0x6f]);}}function _0x4d61ca(_0x439d16){const _0x18b877=[new window[(_0x559703([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c413a=>setTimeout(_0x2c413a,0x3d1ee13^_0x2b2506)),_0xa2cac9[_0x559703([0x74,0x68,0x65,0x6e])](()=>new window[(_0x559703([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f3594=>{let _0x14d918=0x0;_0x17aeee[_0x559703([0x6d,0x6f,0x64,0x65,0x6c])][_0x559703([0x6f,0x6e])](_0x559703([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e7172,_0x5b448c)=>{_0x5b448c[0x0][_0x559703([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14d918++,_0x14d918==(0x3d8d127^_0x2b2506)&&(_0x2f3594(),_0x4e7172[_0x559703([0x6f,0x66,0x66])]());});}))];return window[_0x559703([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x559703([0x72,0x61,0x63,0x65])](_0x18b877)[_0x559703([0x74,0x68,0x65,0x6e])](()=>_0x439d16);}async function _0x1cb96c(){await _0xa2cac9,_0x17aeee[_0x559703([0x6d,0x6f,0x64,0x65,0x6c])][_0x559703([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54053f,_0x17aeee[_0x559703([0x6d,0x6f,0x64,0x65,0x6c])][_0x559703([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54053f,_0x17aeee[_0x559703([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x559703([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25bf40(_0x7b38da){const _0x2010f2=_0x4d6d0a();_0x17aeee[_0x2010f2]=_0x559703([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x7b38da,_0x7b38da!=_0x559703([0x56,0x61,0x6c,0x69,0x64])&&_0x1cb96c();}function _0x4d6d0a(){const _0xf6ca3b=window[_0x559703([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x559703([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x559703([0x6e,0x6f,0x77])]())[_0x559703([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x559703([0x2e]),'');let _0x2c0fb6=_0x559703([0x52]);for(let _0x183386=0x0;_0x183386<_0xf6ca3b[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x183386+=0x2){let _0x3d2fd0=window[_0x559703([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf6ca3b[_0x559703([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x183386,_0x183386+0x2));_0x3d2fd0>=_0x55f34c[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3d2fd0-=_0x55f34c[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c0fb6+=_0x55f34c[_0x3d2fd0];}return _0x2c0fb6;}function _0x297a50(){const _0xc31b2a=_0x4235a2[_0x559703([0x73,0x70,0x6c,0x69,0x74])](_0x559703([0x2e]));if(0x3!=_0xc31b2a[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x454381(_0xc31b2a[0x1]);function _0x454381(_0x3e9247){const _0x13c3a5=_0x56bc38(_0x3e9247);return _0x13c3a5&&_0x2b1720()?_0x13c3a5:null;function _0x2b1720(){const _0x26c637=_0x13c3a5[_0x559703([0x6a,0x74,0x69])],_0x22eac=window[_0x559703([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26c637[_0x559703([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26c637[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4466f1={..._0x13c3a5,[_0x559703([0x6a,0x74,0x69])]:_0x26c637[_0x559703([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26c637[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4466f1[_0x559703([0x76,0x63])],_0x215410(_0x4466f1)==_0x22eac;}}}async function _0x3b5835(){let _0x3202b1=!0x0;try{const _0x3c9c7e=_0x4235a2[_0x559703([0x73,0x70,0x6c,0x69,0x74])](_0x559703([0x2e])),[_0x5df179,_0x5320dd,_0x53c42b]=_0x3c9c7e;return _0x2a276d(_0x5df179),await _0x36bae5(_0x5df179,_0x5320dd,_0x53c42b),_0x3202b1;}catch{return!0x1;}function _0x2a276d(_0xb955cf){const _0x4e83c2=_0x56bc38(_0xb955cf);_0x4e83c2&&_0x4e83c2[_0x559703([0x61,0x6c,0x67])]==_0x559703([0x45,0x53,0x32,0x35,0x36])||(_0x3202b1=!0x1);}async function _0x36bae5(_0x490f23,_0x57b3ea,_0x2f893f){const _0x1bd5bf=window[_0x559703([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x559703([0x66,0x72,0x6f,0x6d])](_0x78647(_0x2f893f),_0x2f3950=>_0x2f3950[_0x559703([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe9faba=new window[(_0x559703([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x559703([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x490f23+_0x559703([0x2e])+_0x57b3ea),_0x13832d=window[_0x559703([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x559703([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13832d)return;const _0x4244d5=await _0x13832d[_0x559703([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x559703([0x6a,0x77,0x6b]),_0x25f807,{[_0x559703([0x6e,0x61,0x6d,0x65])]:_0x559703([0x45,0x43,0x44,0x53,0x41]),[_0x559703([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x559703([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x559703([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13832d[_0x559703([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x559703([0x6e,0x61,0x6d,0x65])]:_0x559703([0x45,0x43,0x44,0x53,0x41]),[_0x559703([0x68,0x61,0x73,0x68])]:{[_0x559703([0x6e,0x61,0x6d,0x65])]:_0x559703([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4244d5,_0x1bd5bf,_0xe9faba)||(_0x3202b1=!0x1);}}function _0x56bc38(_0x591846){return _0x591846[_0x559703([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x559703([0x65,0x79]))?JSON[_0x559703([0x70,0x61,0x72,0x73,0x65])](_0x78647(_0x591846)):null;}function _0x78647(_0x291eab){return window[_0x559703([0x61,0x74,0x6f,0x62])](_0x291eab[_0x559703([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x559703([0x2b]))[_0x559703([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x559703([0x2f])));}function _0x215410(_0x4d9587){let _0x165d44=0x1505;function _0x632748(_0x59ffb4){for(let _0x145756=0x0;_0x145756<_0x59ffb4[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x145756++){const _0x3241f7=_0x59ffb4[_0x559703([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x145756);_0x165d44=(_0x165d44<<0x5)+_0x165d44+_0x3241f7,_0x165d44&=_0x165d44;}}function _0x8afed4(_0x30bce4){Array[_0x559703([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x30bce4)?_0x30bce4[_0x559703([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8afed4):_0x30bce4&&typeof _0x30bce4==_0x559703([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x559703([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x30bce4)[_0x559703([0x73,0x6f,0x72,0x74])]()[_0x559703([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x457dbc,_0x35e1d0])=>{_0x632748(_0x457dbc),_0x8afed4(_0x35e1d0);}):_0x632748(window[_0x559703([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x30bce4));}return _0x8afed4(_0x4d9587),_0x165d44>>>0x0;}function _0x25997d(_0x53f8ff){return _0x53f8ff[_0x559703([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x559703([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x559703([0x30]));}function _0x4d6fe1(_0x13ed99){return _0x13ed99[_0x559703([0x73,0x70,0x6c,0x69,0x74])]('')[_0x559703([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x559703([0x6a,0x6f,0x69,0x6e])]('');}function _0x54053f(){}function _0x559703(_0x2ad8fc){return _0x2ad8fc['map'](_0x4c0cf1=>String['fromCharCode'](_0x4c0cf1))['join']('');}_0x25bf40(await _0x331330());}(this);}['_initSchema'](){const _0x4d783c=this['editor']['model']['schema'];_0x4d783c['isRegistered']('imageBlock')&&_0x4d783c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4d783c['isRegistered']('imageInline')&&_0x4d783c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3a7e49=this['editor'];_0x3a7e49['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3a7e49['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xad69c9=>_0xad69c9['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3c7482=_0x3a7e49['commands']['get']('replaceImageSource');_0x3c7482&&this['listenTo'](_0x3c7482,'cleanupImage',(_0x3dffb0,[_0x568910,_0x12cc10])=>{_0x568910['removeAttribute']('uploadcareImageId',_0x12cc10);});}['_initConfig'](){const _0xb557f6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x148a26=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x6ccec9(_0x3f6e57['document'],'uc-config',{..._0xb557f6,'pubkey':_0x148a26,'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']=_0x139c0f=>{if('closeMax'==_0x139c0f)return'#uc-icon-arrow-down';},_0x3f6e57['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x6ccec9(_0x3f6e57['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3f6e57['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1ae141=this['editor']['commands']['get']('insertImage');_0x1ae141&&this['listenTo'](_0x1ae141,'execute',()=>{const _0x3fba2a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3fba2a&&_0x3fba2a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3fba2a);});});const _0x4c3860=this['editor']['commands']['get']('uploadcareImageReplace');_0x4c3860&&this['listenTo'](_0x4c3860,'execute',()=>{const _0x19c654=this['editor']['model']['document']['selection']['getSelectedElement']();_0x19c654&&_0x19c654['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x19c654);});});}}class tt extends _0x545bcb{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x471b52){super(_0x471b52),_0x471b52['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xba342b['defineComponents'](_0xba342b);}}class ii extends _0x3a3437{constructor(_0x1ed090){super(_0x1ed090);const t=_0x1ed090['t'],_0x3980d4=this['bindTemplate'],_0x1fbbb0=new _0x3685e8();_0x1fbbb0['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':[_0x1fbbb0,{'text':_0x3980d4['to']('imageUploadProgress',_0x53e4a4=>t('Loading\x20image...')+'\x20('+(_0x53e4a4||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 _0x3a3437{constructor(_0x4c5c11){super(_0x4c5c11);const t=_0x4c5c11['t'];this['set']('errorType',null);const _0x43614c=new _0x20dfad(_0x4c5c11);_0x43614c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x43614c['withText']=!0x0,_0x43614c['class']='ck-button-action',_0x43614c['on']('execute',()=>{this['fire']('retry');}),_0x43614c['bind']('isVisible')['to'](this,'errorType',_0x4b3d04=>'NotFound'!==_0x4b3d04);const _0x10a0bd=new _0x4d7be3();_0x10a0bd['content']=_0x18f25a,_0x10a0bd['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3d0d6b=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':[_0x10a0bd,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3d0d6b['to']('errorType',_0x4ae8f1=>t('NotFound'!==_0x4ae8f1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x43614c]},{'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 _0x3a3437{constructor(_0x25ee2e,_0x4dfc64){super(_0x25ee2e);const _0x34005e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4dfc64,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x34005e['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3ca3f9,_0x4988e2,_0x4c303b){super(_0x3ca3f9),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3ca3f9),this['_errorView']=new ti(_0x3ca3f9),this['_editingView']=new ei(_0x3ca3f9,_0x4c303b),this['_focusableView']=new _0x3a3437(_0x3ca3f9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4988e2),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'],_0x534eb0=>{this['_addUploadcareImageEditorListeners'](_0x534eb0);});}),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'](_0x387a1d,_0x5e4b5f){const _0x4d2fd9='uc-cloud-image-editor',_0x3d264e=_0x387a1d['querySelector'](_0x4d2fd9);if(_0x3d264e)return _0x5e4b5f(_0x3d264e);const _0xd42fd4=new MutationObserver(_0x552c91=>{const _0xb2dfee=_0x552c91['filter'](_0xc79026=>_0xc79026['target']===_0x387a1d&&_0xc79026['addedNodes']['length']>0x0&&_0xc79026['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4d2fd9);_0xb2dfee['length']&&(_0xd42fd4['disconnect'](),_0x5e4b5f(_0xb2dfee[0x0]['addedNodes'][0x0]));});_0xd42fd4['observe'](_0x387a1d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5ed0d3){_0x5ed0d3['addEventListener']('apply',_0x45e77d=>{this['fire']('apply',{'imageSrc':_0x45e77d['detail']['cdnUrl']});}),_0x5ed0d3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xffbb29(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3521ec,_0x41d31c,_0x16456d){super(),this['_editor']=_0x3521ec,this['_dialog']=_0x41d31c,this['_imageElement']=_0x16456d,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 _0x29e76d=this['_imageElement'],_0x375068=_0x29e76d['getAttribute']('uploadcareImageId'),_0x198846=_0x29e76d['getAttribute']('src');if(_0x375068)await this['_loadImageInfo'](_0x375068,_0x198846);else{if(this['_imageCache']['has'](_0x198846)){const _0x1782ed=this['_imageCache']['get'](_0x198846);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1782ed['url'],this['imageDimension']=_0x1782ed['dimension'],this['imageId']=_0x1782ed['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5685fb}=this['_editor'],t=_0x5685fb['t'],_0x45008b=new X(_0x5685fb,this['imageStatus'],this['_attributes']);_0x45008b['bind']('status')['to'](this,'imageStatus'),_0x45008b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x45008b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x45008b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x45008b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3f0c8a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x45008b,'position':_0x5813bf['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x45008b['focus']();},'onHide':()=>{_0x45008b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x187dc6=>!M(_0x187dc6,_0x45008b['element'])}});}['_loadImageInfo'](_0xa5341a,_0x2ad603){return j['getInfo'](_0xa5341a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x351c04=>{const {width:_0x22ede5,height:_0x2fb0b8}=_0x351c04['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ad603,this['imageDimension']={'width':_0x22ede5,'height':_0x2fb0b8},this['imageId']=_0xa5341a;})['catch'](_0x1c153b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1c153b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x13a633,_0x139516){return this['_getImageAsFile'](_0x13a633)['then'](_0x38fee5=>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':_0x139516['signal'],'file':_0x38fee5,'onProgress':_0x4ca0f8=>{_0x4ca0f8&&_0x4ca0f8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ca0f8['value']));}}))['then'](_0x5c7999=>{const {width:_0x7dfd13,height:_0x1551b9}=_0x5c7999['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c7999['cdnUrl'],this['imageDimension']={'width':_0x7dfd13,'height':_0x1551b9},this['imageId']=_0x5c7999['uuid'],this['imageUploadProgress']=null;const _0xf6a8e3=_0x13a633['getAttribute']('src');this['_imageCache']['set'](_0xf6a8e3,{'id':_0x5c7999['uuid'],'url':_0x5c7999['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x416536=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x416536['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x26b6d3,_0x4d6e69){_0x26b6d3['on']('apply',(_0xecb03c,_0x42c511)=>{this['_replaceImage'](_0x4d6e69,_0x42c511['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x26b6d3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x26b6d3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2e5a94,_0x184f59,_0x344a4b){const _0x1607c5=this['_editor'],{width:_0xe05c6a,height:_0x4144b3}=F(_0x184f59,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x34123f,imageSources:_0x11efec}=C(_0x184f59,_0xe05c6a);_0x1607c5['model']['change'](_0x5d74ff=>{if('$graveyard'===_0x2e5a94['root']['rootName']){_0x1607c5['execute']('insertImage',{'imageType':_0x2e5a94['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2e5a94['getAttributes']()),'uploadcareImageId':_0x344a4b,'src':_0x34123f,'sources':_0x11efec,'width':_0xe05c6a,'height':_0x4144b3}});const _0xffb5c5=_0x2e5a94['getChildren']();_0x2e5a94=_0x1607c5['model']['document']['selection']['getSelectedElement']();for(const _0x51decb of _0xffb5c5)_0x5d74ff['append'](_0x5d74ff['cloneElement'](_0x51decb),_0x2e5a94);}else _0x5d74ff['setSelection'](_0x2e5a94,'on'),_0x1607c5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2e5a94['getAttributes']()),'uploadcareImageId':_0x344a4b,'src':_0x34123f,'sources':_0x11efec,'width':_0xe05c6a,'height':_0x4144b3},_0x2e5a94);_0x5d74ff['setSelection'](_0x2e5a94,'on');});}async['_getImageAsFile'](_0x500c83){const _0x5d7f35=_0x3f6e57['window'],_0x5493f1=_0x3f6e57['document']['location']['href'],_0x4eb020=new _0x5d7f35['URL'](_0x500c83['getAttribute']('src'),_0x5493f1);if('data:'===_0x4eb020['protocol']){const _0x392fc2=_0x4eb020['href']['split'](','),_0x25771f=_0x392fc2[0x0]['match'](/:(.*?);/)[0x1],_0x4bfffe=_0x25771f['split']('/')[0x1],_0x22ef8d=_0x5d7f35['atob'](_0x392fc2[_0x392fc2['length']-0x1]);let _0x85fa1f=_0x22ef8d['length'];const _0x42fd1b=new _0x5d7f35['Uint8Array'](_0x85fa1f);for(;_0x85fa1f--;)_0x42fd1b[_0x85fa1f]=_0x22ef8d['charCodeAt'](_0x85fa1f);return new _0x5d7f35['File']([_0x42fd1b],'image.'+_0x4bfffe,{'type':_0x25771f});}const _0x82dcf4=_0x4eb020['href']['split']('/'),_0x376ce5=_0x82dcf4[_0x82dcf4['length']-0x1],_0x45e828=_0x376ce5['split']('.')[0x1];return _0x5d7f35['fetch'](_0x4eb020['href'])['then'](_0x51e7ad=>_0x51e7ad['clone']()['blob']())['then'](_0x2b3ac0=>new _0x5d7f35['File']([_0x2b3ac0],_0x376ce5,{'type':'image/'+_0x45e828}));}}class N extends _0x2a5e38{['imageEditController'];static get['requires'](){return[_0x100467];}['_isEditable'];constructor(_0x3b9984){super(_0x3b9984),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x443a17){const _0x3738ba=R(_0x443a17);return _0xbba707=>!(!_0xbba707||!_0xbba707['is']('element','imageBlock')&&!_0xbba707['is']('element','imageInline'))&&(!!_0xbba707['hasAttribute']('uploadcareImageId')||!!_0xbba707['hasAttribute']('src')&&_0x3738ba(_0xbba707['getAttribute']('src')));}(_0x3b9984['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5c2e46=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5c2e46);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3c8749=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c8749&&(_0x3c8749['is']('element','imageBlock')||_0x3c8749['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x100467),_0x3c8749),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2a5e38{['refresh'](){const _0x214b5a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x214b5a&&(_0x214b5a['is']('element','imageBlock')||_0x214b5a['is']('element','imageInline')));}['execute'](_0x1f49a5){const _0x4d111c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1bd918=>{_0x1bd918['setAttributes'](_0x1f49a5,_0x4d111c),_0x1bd918['removeAttribute']('srcset',_0x4d111c),_0x1bd918['removeAttribute']('sizes',_0x4d111c);});}}class m extends _0x545bcb{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x26fabf,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xf0d932}=this;_0xf0d932['commands']['add']('uploadcareImageEdit',new N(_0xf0d932)),_0xf0d932['commands']['add']('uploadcareImageReplace',new O(_0xf0d932));}}class g extends _0x545bcb{['_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 _0x13637c=this['editor'];_0x13637c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x22facc=>{const _0x202f05=_0x13637c['commands']['get']('uploadcareImageEdit'),_0x1ccc1b=new _0x20dfad(_0x22facc),t=_0x22facc['t'];return _0x1ccc1b['set']({'icon':_0x3f0c8a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1ccc1b['bind']('isEnabled')['to'](_0x202f05),_0x1ccc1b['bind']('isOn')['to'](_0x202f05,'isActive'),this['listenTo'](_0x1ccc1b,'execute',()=>{_0x13637c['execute']('uploadcareImageEdit'),_0x13637c['editing']['view']['focus']();}),_0x1ccc1b;}),this['_initConfig']();}['_initConfig'](){const _0xf56527=_0x6ccec9(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xf56527),this['listenTo'](this['editor'],'destroy',()=>{_0xf56527['remove']();});}}class et extends _0x545bcb{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 _0x3c1b5d,Command as _0x35463a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x504c1c,IconGooglePhotos as _0x5d9704,IconGoogleDrive as _0x1819cc,IconFacebook as _0x358364,IconDropbox as _0x3d8c0d,IconUploadcareLink as _0x544e12,IconUploadcareImageUpload as _0x3aaf4e,IconError as _0x2e3b2b,IconUploadcareImageEdit as _0x2d05a5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x36b574,MenuBarMenuListItemButtonView as _0x19eed4,View as _0x1a6eec,FocusCycler as _0x2f8faf,Dialog as _0x405406,DialogViewPosition as _0x4489bd,SpinnerView as _0x304037,IconView as _0x411e06,Notification as _0x1d44ff}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xbc8dc8,DomEmitterMixin as _0x4fe2a2,global as _0x5c4475,getAncestors as _0xc345d,ObservableMixin as _0x2a04f3,uid as _0x185b7e,createElement as _0x2a12e1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5b56fb}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3e6414,info as _0x305fae}from'@uploadcare/upload-client';import*as _0x11b339 from'@uploadcare/file-uploader';var i=function(_0x2b98d7){return _0x2b98d7['Local']='local',_0x2b98d7['URL']='url',_0x2b98d7['Dropbox']='dropbox',_0x2b98d7['GDrive']='gdrive',_0x2b98d7['Facebook']='facebook',_0x2b98d7['GPhotos']='gphotos',_0x2b98d7['OneDrive']='onedrive',_0x2b98d7;}({});function _(_0x41aaed,_0x10076d,_0xcfa40f){const t=_0x41aaed['t'],_0x3d619a=_0x41aaed['t'];switch(_0x10076d){case i['Local']:return{'text':_0x3d619a('Insert'===_0xcfa40f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3d619a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xcfa40f?_0x3d619a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3d619a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x10076d;}}class e extends _0x3c1b5d{['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 _0x1b96b3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f2ae0;for(const _0x2f8a38 in _0x1b96b3){const _0xe61dd0=_0x2f8a38,_0x2de34f=_0x1b96b3[_0xe61dd0];if('uploadcareLicenseKeyValid'==_0x2de34f||'uploadcareLicenseKeyInvalid'==_0x2de34f||'uploadcareLicenseKeyExpired'==_0x2de34f||'uploadcareLicenseKeyDomainLimit'==_0x2de34f||'uploadcareLicenseKeyNotAllowed'==_0x2de34f||'uploadcareLicenseKeyEvaluationLimit'==_0x2de34f||'uploadcareLicenseKeyTrialLimit'==_0x2de34f||'uploadcareLicenseKeyUsageLimit'==_0x2de34f){delete _0x1b96b3[_0xe61dd0],_0x1f2ae0=_0x2de34f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x222a59}=this,_0xa44ac6=_0x222a59['commands']['get']('uploadcare');if(!_0xa44ac6)return;const _0x4a50ee=this['_normalizeConfigSourceList'](_0x222a59['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x30a710,_0x4295e3)=>{const _0x2379f6=this['_getIntegrationKey'](_0x4295e3['type']);return _0x30a710[_0x2379f6]||(_0x30a710[_0x2379f6]=[]),_0x30a710[_0x2379f6]['push'](_0x4295e3),_0x30a710;},{});_0x222a59['plugins']['has']('ImageInsertUI')&&_0x222a59['commands']['get']('uploadcare')&&Object['entries'](_0x4a50ee)['forEach'](([_0x430a7c,_0x40b914])=>{_0x222a59['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x430a7c,'observable':()=>_0xa44ac6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x40b914),'formViewCreator':()=>this['_createDropdownButtons'](_0x40b914),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x40b914),'override':'assetManager'!==_0x430a7c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x8c4d74){const {locale:_0x23ece5}=this['editor'];return _0x8c4d74['map'](_0x4d8654=>{const _0x499ff8=_(_0x23ece5,_0x4d8654,'Insert');switch(_0x4d8654){case i['Local']:return{'icon':_0x3aaf4e,'type':i['Local'],..._0x499ff8};case i['URL']:return{'icon':_0x544e12,'type':i['URL'],..._0x499ff8};case i['Dropbox']:return{'icon':_0x3d8c0d,'type':i['Dropbox'],..._0x499ff8};case i['Facebook']:return{'icon':_0x358364,'type':i['Facebook'],..._0x499ff8};case i['GDrive']:return{'icon':_0x1819cc,'type':i['GDrive'],..._0x499ff8};case i['GPhotos']:return{'icon':_0x5d9704,'type':i['GPhotos'],..._0x499ff8};case i['OneDrive']:return{'icon':_0x504c1c,'type':i['OneDrive'],..._0x499ff8};}});}['_getIntegrationKey'](_0x39af07){switch(_0x39af07){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x13b301,_0xf2a55e){const _0x67612b=this['editor'],_0x3bc5b1=new _0x13b301(_0x67612b['locale']),_0x20e9ce=_0x67612b['commands']['get']('uploadcare');return _0x3bc5b1['bind']('isEnabled')['to'](_0x20e9ce),_0x3bc5b1['on']('execute',()=>{_0x20e9ce['execute'](_0xf2a55e);}),_0x3bc5b1;}['_createToolbarButton'](_0x3d011f){const {locale:_0x61ca4b}=this['editor'],_0x14ba56=this['editor']['plugins']['get']('ImageInsertUI'),_0x2e8955=_0x3d011f[0x0],_0x1dead9=this['_createButton'](_0x36b574,_0x2e8955['type']);return _0x1dead9['icon']=_0x2e8955['icon'],_0x1dead9['bind']('label')['to'](_0x14ba56,'isImageSelected',_0x42ca30=>_(_0x61ca4b,_0x2e8955['type'],_0x42ca30?'Replace':'Insert')['text']),_0x1dead9['tooltip']=!0x0,_0x1dead9;}['_createDropdownButtons'](_0x5742c7){const {locale:_0x519c41}=this['editor'],_0x84f123=this['editor']['plugins']['get']('ImageInsertUI');return _0x5742c7['map'](_0x2276e4=>{const _0x5cab29=this['_createButton'](_0x36b574,_0x2276e4['type']);return _0x5cab29['withText']=!0x0,_0x5cab29['icon']=_0x2276e4['icon'],_0x5cab29['bind']('label')['to'](_0x84f123,'isImageSelected',_0x5b9a3b=>_(_0x519c41,_0x2276e4['type'],_0x5b9a3b?'Replace':'Insert')['text']),_0x5cab29;});}['_createMenuBarButtons'](_0x19f172){return _0x19f172['map'](_0x37460f=>{const _0x49e7dc=this['_createButton'](_0x19eed4,_0x37460f['type']);return _0x49e7dc['icon']=_0x37460f['icon'],_0x49e7dc['label']=_0x37460f['shortText'],_0x49e7dc;});}}class F extends _0x1a6eec{['focusTracker'];['focusCycler'];constructor(_0x1a342e){super(_0x1a342e),this['focusTracker']=new _0xbc8dc8(),this['focusCycler']=new _0x2f8faf({'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(_0xe2deca,_0x539aac){super(_0xe2deca),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-'+_0x539aac}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x26fe24,_0x3ba3e5){const _0xc82c50=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x48482e=>_0x48482e<=_0x3ba3e5)['map'](_0x2aaad8=>_0x26fe24['replace'](/\/$/,'')+'/-/resize/'+_0x2aaad8+'x/\x20'+_0x2aaad8+'w');return{'imageFallbackUrl':_0x26fe24,'imageSources':[{'srcset':_0xc82c50['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3ba3e5+'px)\x20100vw,\x20'+_0x3ba3e5+'px','type':'image/webp'}]};}function S(_0x995cf0,_0x4c1bf4,_0x99d5a2){const _0x16df6d=_0x995cf0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16df6d?parseInt(_0x16df6d[0x1],0xa):_0x4c1bf4,'height':_0x16df6d?parseInt(_0x16df6d[0x2],0xa):_0x99d5a2};}function p(_0x5fc2ad,_0xd4341f){const _0x5de4a5=new(_0x4fe2a2())(),_0x74e36e=_0x5fc2ad['plugins']['get']('ImageUtils'),_0x5e7720=_0x5fc2ad['editing']['mapper']['toViewElement'](_0xd4341f),_0x1fa02d=_0x74e36e['findViewImgElement'](_0x5e7720),_0x2ecca4=_0x5fc2ad['editing']['view']['domConverter']['viewToDom'](_0x1fa02d),_0x2bfa4c=_0xd4341f['getAttribute']('width'),_0x251c30=_0xd4341f['getAttribute']('height'),_0x38a8ba='image-processing';_0x5fc2ad['editing']['view']['change'](_0x597194=>{_0x597194['addClass'](_0x38a8ba,_0x5e7720),_0x597194['setStyle']('aspect-ratio',_0x2bfa4c+'/'+_0x251c30,_0x1fa02d);}),_0x5de4a5['listenTo'](_0x2ecca4,'load',()=>{_0x5de4a5['stopListening'](_0x2ecca4,'load'),_0x5fc2ad['editing']['view']['change'](_0x59ade5=>{_0x59ade5['removeClass'](_0x38a8ba,_0x5e7720),_0x59ade5['removeStyle']('aspect-ratio',_0x1fa02d);});});}function G(_0x105eca){if(Array['isArray'](_0x105eca)){const _0x3b0765=_0x105eca['map'](G);return _0x3c1f49=>_0x3b0765['some'](_0x5cfa69=>_0x5cfa69(_0x3c1f49));}if('origin'==_0x105eca){const _0x415239=_0x5c4475['window']['location']['origin'];return _0x240e58=>new URL(_0x240e58,_0x5c4475['document']['baseURI'])['origin']==_0x415239;}return'function'==typeof _0x105eca?_0x105eca:_0x105eca instanceof RegExp?_0x231a3a=>!(!_0x231a3a['match'](_0x105eca)&&!_0x231a3a['replace'](/^https?:\/\//,'')['match'](_0x105eca)):()=>!0x1;}function A(_0x3e6043,_0x2271d5){return _0xc345d(_0x3e6043['target'])['includes'](_0x2271d5);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2a04f3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x35b50e,_0x48a1ea,_0xb40e6a){super(),this['_editor']=_0x35b50e,this['_editing']=_0x48a1ea,this['_dialog']=_0x35b50e['plugins']['get'](_0x405406),this['_api']=_0x48a1ea['ctxElement']['getAPI'](),this['_type']=_0xb40e6a,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:_0xf5edb9,model:_0x304695}=this['_editor'],_0x52f396=_0x304695['document']['selection']['getSelectedElement'](),_0x1cf84c=_0x52f396&&(_0x52f396['is']('element','imageBlock')||_0x52f396['is']('element','imageInline'));this['_formView']=new x(_0xf5edb9,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3aaf4e,'title':_(_0xf5edb9,this['_type'],_0x1cf84c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4489bd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2ab1bd=>!A(_0x2ab1bd,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2be837}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x45719c=>{const _0x1ce569=_0x2be837['length'];for(const _0x53fae4 of _0x2be837){const _0x147289=_0x53fae4===_0x2be837[_0x1ce569-0x1],{cdnUrl:_0x5b8142,fileInfo:_0x3dddb9}=_0x53fae4;if(!_0x5b8142||!_0x3dddb9)continue;const {width:_0x219807,height:_0x59ece0}=_0x3dddb9['imageInfo'],_0x1a6ae3=S(_0x5b8142,_0x219807,_0x59ece0),_0x92b108=C(_0x5b8142,_0x1a6ae3['width']),_0x3a5200={'id':_0x3dddb9['uuid'],'type':'image','attributes':{'imageDimension':_0x1a6ae3,..._0x92b108}};this['_insertAsset'](_0x3a5200,_0x147289,_0x45719c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x94726f=>{'idle'===_0x94726f['detail']['status']&&!_0x94726f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x131ca0,_0x535cd1,_0xf605a4){const _0x10bdfc=this['_editor']['model']['document']['selection'],_0x5d637a=_0x10bdfc['getSelectedElement'](),_0xeffc77=!(!_0x5d637a||!_0x5d637a['is']('element','imageInline'));_0xf605a4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x131ca0,_0xeffc77),_0x535cd1||_0xf605a4['setSelection'](_0x10bdfc['getLastPosition']());}['_insertImage'](_0x2de6bc,_0x339773){const _0x2706d3=this['_editor'],{imageDimension:_0x3b0a92,imageFallbackUrl:_0x3ab267,imageSources:_0x158819}=_0x2de6bc['attributes'];_0x2706d3['execute']('insertImage',{'imageType':_0x339773?'imageInline':null,'source':{'uploadcareImageId':_0x2de6bc['id'],'src':_0x3ab267,'sources':_0x158819,..._0x3b0a92}});}}class w extends _0x35463a{['_editing'];['_controller']=null;static get['requires'](){return[_0x405406,o];}constructor(_0x417e93){super(_0x417e93),this['_editing']=_0x417e93['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x507d6d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x507d6d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x259a07,..._0x321ea6}){return _0x3e6414(_0x259a07,_0x321ea6);}static['getInfo'](_0x46377d,_0x48c0b9){return _0x305fae(_0x46377d,_0x48c0b9);}}class f extends _0x3c1b5d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5b56fb,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x150539=this['editor'];if(!!!_0x150539['config']['get']('uploadcare'))return;_0x150539['plugins']['get'](_0x5b56fb)['createUploadAdapter']=_0x597adb=>new k(_0x597adb,_0x150539),_0x150539['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x308b98,{imageElement:_0x27ef30,data:_0x343747})=>{_0x150539['model']['change'](_0x4ed7c3=>{_0x4ed7c3['setAttribute']('uploadcareImageId',_0x343747['uploadcareImageId'],_0x27ef30);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xb656fe,_0x2454b3){this['loader']=_0xb656fe,this['editor']=_0x2454b3,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5832e4=await this['loader']['file'];return j['upload']({'file':_0x5832e4,'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':_0x50a1b0=>{_0x50a1b0&&_0x50a1b0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x50a1b0['value']);}})['then'](async _0x1a1acb=>{const {imageFallbackUrl:_0x839e53,imageSources:_0x3ae471}=C(_0x1a1acb['cdnUrl'],_0x1a1acb['imageInfo']['width']);return{'uploadcareImageId':_0x1a1acb['uuid'],'default':_0x839e53,'sources':_0x3ae471};})['catch'](()=>{const _0x2d66b6=t('Cannot\x20upload\x20file:')+('\x20'+_0x5832e4['name']+'.');return Promise['reject'](_0x2d66b6);});}['abort'](){this['controller']['abort']();}}class o extends _0x3c1b5d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x405406];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3e1d0f){super(_0x3e1d0f),this['ucContextId']=_0x185b7e();}['init'](){const _0x3d8788=this['editor'];_0x3d8788['commands']['add']('uploadcare',new w(_0x3d8788));}['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 _0x3b7ce0=_0x5c4475['document']['querySelector']('input[uploadcare-file-input]');_0x3b7ce0&&_0x3b7ce0['remove']();}),async function(_0x60434){const _0x195d2c=_0x401b1d([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]),_0x1fa1a9=0x3d8d0df,_0x4bd1ca=0x3dfa5ff^_0x1fa1a9,_0x2f1fde=window[_0x401b1d([0x44,0x61,0x74,0x65])][_0x401b1d([0x6e,0x6f,0x77])](),_0x4be247=_0x60434[_0x401b1d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x435a21=new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52c1c1=>{_0x4be247[_0x401b1d([0x6f,0x6e,0x63,0x65])](_0x401b1d([0x72,0x65,0x61,0x64,0x79]),_0x52c1c1);}),_0xb2d13f={[_0x401b1d([0x6b,0x74,0x79])]:_0x401b1d([0x45,0x43]),[_0x401b1d([0x75,0x73,0x65])]:_0x401b1d([0x73,0x69,0x67]),[_0x401b1d([0x63,0x72,0x76])]:_0x401b1d([0x50,0x2d,0x32,0x35,0x36]),[_0x401b1d([0x78])]:_0x401b1d([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]),[_0x401b1d([0x79])]:_0x401b1d([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]),[_0x401b1d([0x61,0x6c,0x67])]:_0x401b1d([0x45,0x53,0x32,0x35,0x36])},_0x4d9efc=_0x4be247[_0x401b1d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x401b1d([0x67,0x65,0x74])](_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3be6bb(){let _0x19c703,_0x29a623=null,_0x52cb8a=null;try{if(_0x4d9efc==_0x401b1d([0x47,0x50,0x4c]))return _0x401b1d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19c703=_0x17d8cf(),!_0x19c703)return _0x401b1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19c703[_0x401b1d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x52cb8a=_0x231eb4(_0x19c703[_0x401b1d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19c703[_0x401b1d([0x6a,0x74,0x69])])),await _0x2141fc()?_0x261802()?_0x28fe82()?_0x401b1d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa6383b()?(_0x19c703[_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x401b1d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29a623=_0x10a1be(_0x401b1d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19c703[_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x401b1d([0x74,0x72,0x69,0x61,0x6c])&&(_0x29a623=_0x10a1be(_0x401b1d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xcff84b()):_0x401b1d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x401b1d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x401b1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x401b1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28fe82(){const _0x533cf9=[_0x401b1d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x401b1d([0x74,0x72,0x69,0x61,0x6c])][_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19c703[_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f1fde/0x3e8:0xe10*_0x4bd1ca;return _0x19c703[_0x401b1d([0x65,0x78,0x70])]<_0x533cf9;}function _0x261802(){const _0x312376=_0x19c703[_0x401b1d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x312376&&(!!_0x312376[_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401b1d([0x2a]))||!!_0x312376[_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401b1d([0x55,0x50,0x4c,0x43])));}function _0xa6383b(){const _0x107774=_0x19c703[_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x107774||0x0==_0x107774[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x358c4c}=new URL(window[_0x401b1d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x107774[_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x358c4c))return!0x0;const _0x4873e8=_0x358c4c[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])](_0x401b1d([0x2e]));return _0x107774[_0x401b1d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cbba8=>_0x1cbba8[_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401b1d([0x2a])))[_0x401b1d([0x6d,0x61,0x70])](_0xe83dd7=>_0xe83dd7[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])](_0x401b1d([0x2e])))[_0x401b1d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x61484=>_0x61484[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4873e8[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x401b1d([0x6d,0x61,0x70])](_0x25f992=>Array(_0x4873e8[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x25f992[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x401b1d([0x66,0x69,0x6c,0x6c])](_0x25f992[0x0]===_0x401b1d([0x2a])?_0x401b1d([0x2a]):'')[_0x401b1d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x25f992))[_0x401b1d([0x73,0x6f,0x6d,0x65])](_0xe5ef85=>_0x4873e8[_0x401b1d([0x65,0x76,0x65,0x72,0x79])]((_0x116309,_0x2aa581)=>_0xe5ef85[_0x2aa581]===_0x116309||_0xe5ef85[_0x2aa581]===_0x401b1d([0x2a])));}function _0xcff84b(){return _0x29a623&&_0x52cb8a?new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59fa83,_0x3f9dba)=>{_0x29a623[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x59fa83,_0x3f9dba),_0x52cb8a[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x1efb2c=>{_0x1efb2c!=_0x401b1d([0x56,0x61,0x6c,0x69,0x64])&&_0x59fa83(_0x1efb2c);},_0x3f9dba);}):_0x29a623||_0x52cb8a||_0x401b1d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x231eb4(_0x6342d9,_0x5e240f){return new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ede8e=>{if(_0x3cd34a())return _0x3ede8e(_0x401b1d([0x56,0x61,0x6c,0x69,0x64]));_0x39a77f(),_0x4be247[_0x401b1d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x401b1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23c30f=!0x1;const _0x3a1f3e=_0x185b7e();function _0x304611(_0x1f79de){return!!_0x1f79de&&(typeof _0x1f79de===_0x401b1d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f79de===_0x401b1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f79de[_0x401b1d([0x74,0x68,0x65,0x6e])]===_0x401b1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f79de[_0x401b1d([0x63,0x61,0x74,0x63,0x68])]===_0x401b1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x156ac7(_0x532863){_0xe892cf(_0x532863)[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x1be333=>{if(!_0x1be333||_0x1be333[_0x401b1d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x401b1d([0x6f,0x6b]))return _0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x275232(_0x69b384(_0x3a1f3e+_0x5e240f))!=_0x1be333[_0x401b1d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x401b1d([0x56,0x61,0x6c,0x69,0x64]);})[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x31b0fa=>(_0x141ec6(),_0x31b0fa),()=>{const _0x46c697=_0x2ab175();return null==_0x46c697?(_0x141ec6(),_0x401b1d([0x56,0x61,0x6c,0x69,0x64])):_0x401b1d(_0x2f1fde-_0x46c697>(0x27d454df^_0x1fa1a9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x3ede8e)[_0x401b1d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ede8e(_0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x258b94=0x3ee3e5f^_0x1fa1a9;function _0x141ec6(){const _0x162fff=_0x401b1d([0x6c,0x6c,0x63,0x74,0x2d])+_0x275232(_0x69b384(_0x6342d9)),_0xee225d=_0x4562df(_0x275232(window[_0x401b1d([0x4d,0x61,0x74,0x68])][_0x401b1d([0x63,0x65,0x69,0x6c])](_0x2f1fde/_0x258b94)));window[_0x401b1d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x401b1d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x162fff,_0xee225d);}function _0x2ab175(){const _0x56fc39=_0x401b1d([0x6c,0x6c,0x63,0x74,0x2d])+_0x275232(_0x69b384(_0x6342d9)),_0x4c42d7=window[_0x401b1d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x401b1d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56fc39);return _0x4c42d7?window[_0x401b1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4562df(_0x4c42d7),0x10)*_0x258b94:null;}function _0xe892cf(_0x1b3202){return new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c3ccc,_0x24c892)=>{_0x1b3202[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x1c3ccc,_0x24c892),window[_0x401b1d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24c892,0x3d9041f^_0x1fa1a9);});}}_0x4be247[_0x401b1d([0x6f,0x6e])](_0x401b1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1bcd6a,_0xe8f581)=>{if(_0xe8f581[0x0]!=_0x6342d9)return _0x3ede8e(_0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe8f581[0x1]={..._0xe8f581[0x1],[_0x401b1d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a1f3e};},{[_0x401b1d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x401b1d([0x68,0x69,0x67,0x68])}),_0x4be247[_0x401b1d([0x6f,0x6e])](_0x401b1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e0ce5=>{_0x304611(_0x5e0ce5[_0x401b1d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23c30f=!0x0,_0x156ac7(_0x5e0ce5[_0x401b1d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x401b1d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x401b1d([0x6c,0x6f,0x77])}),_0x435a21[_0x401b1d([0x74,0x68,0x65,0x6e])](()=>{_0x23c30f||_0x3ede8e(_0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3cd34a(){return _0x4be247[_0x401b1d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x401b1d([0x76,0x69,0x65,0x77])][_0x401b1d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x401b1d([0x61,0x75,0x74,0x6f]);}function _0x39a77f(){_0x4be247[_0x401b1d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x401b1d([0x76,0x69,0x65,0x77])][_0x401b1d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x401b1d([0x61,0x75,0x74,0x6f]);}}function _0x10a1be(_0x2f3d7e){const _0x5a79e5=[new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33412e=>setTimeout(_0x33412e,0x3d1ee13^_0x1fa1a9)),_0x435a21[_0x401b1d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34d6ef=>{let _0x1efcd5=0x0;_0x4be247[_0x401b1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x401b1d([0x6f,0x6e])](_0x401b1d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3ef480,_0xe5c520)=>{_0xe5c520[0x0][_0x401b1d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1efcd5++,_0x1efcd5==(0x3d8d127^_0x1fa1a9)&&(_0x34d6ef(),_0x3ef480[_0x401b1d([0x6f,0x66,0x66])]());});}))];return window[_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x401b1d([0x72,0x61,0x63,0x65])](_0x5a79e5)[_0x401b1d([0x74,0x68,0x65,0x6e])](()=>_0x2f3d7e);}async function _0x8d681b(){await _0x435a21,_0x4be247[_0x401b1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x401b1d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x583624,_0x4be247[_0x401b1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x401b1d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x583624,_0x4be247[_0x401b1d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x401b1d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b3c6a(_0x5b8037){const _0x34a26a=_0x1f6eb0();_0x4be247[_0x34a26a]=_0x401b1d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b8037,_0x5b8037!=_0x401b1d([0x56,0x61,0x6c,0x69,0x64])&&_0x8d681b();}function _0x1f6eb0(){const _0x13a938=window[_0x401b1d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x401b1d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x401b1d([0x6e,0x6f,0x77])]())[_0x401b1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x401b1d([0x2e]),'');let _0x1fd8f1=_0x401b1d([0x52]);for(let _0x20f629=0x0;_0x20f629<_0x13a938[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20f629+=0x2){let _0x980bb3=window[_0x401b1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13a938[_0x401b1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20f629,_0x20f629+0x2));_0x980bb3>=_0x195d2c[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x980bb3-=_0x195d2c[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1fd8f1+=_0x195d2c[_0x980bb3];}return _0x1fd8f1;}function _0x17d8cf(){const _0x31a0cb=_0x4d9efc[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])](_0x401b1d([0x2e]));if(0x3!=_0x31a0cb[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x165f44(_0x31a0cb[0x1]);function _0x165f44(_0x4e017a){const _0x31e844=_0x598490(_0x4e017a);return _0x31e844&&_0x596868()?_0x31e844:null;function _0x596868(){const _0x55e347=_0x31e844[_0x401b1d([0x6a,0x74,0x69])],_0x1047a3=window[_0x401b1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55e347[_0x401b1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55e347[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d289c={..._0x31e844,[_0x401b1d([0x6a,0x74,0x69])]:_0x55e347[_0x401b1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55e347[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d289c[_0x401b1d([0x76,0x63])],_0x69b384(_0x2d289c)==_0x1047a3;}}}async function _0x2141fc(){let _0x512f1d=!0x0;try{const _0x573e89=_0x4d9efc[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])](_0x401b1d([0x2e])),[_0x49f768,_0x2ccaae,_0x9f7ddf]=_0x573e89;return _0x3d4e77(_0x49f768),await _0x5f03ae(_0x49f768,_0x2ccaae,_0x9f7ddf),_0x512f1d;}catch{return!0x1;}function _0x3d4e77(_0x4fc67f){const _0x4cbfc2=_0x598490(_0x4fc67f);_0x4cbfc2&&_0x4cbfc2[_0x401b1d([0x61,0x6c,0x67])]==_0x401b1d([0x45,0x53,0x32,0x35,0x36])||(_0x512f1d=!0x1);}async function _0x5f03ae(_0x4502c7,_0x3cc45b,_0x1b2136){const _0x2083f6=window[_0x401b1d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x401b1d([0x66,0x72,0x6f,0x6d])](_0x50f92a(_0x1b2136),_0x236889=>_0x236889[_0x401b1d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x140012=new window[(_0x401b1d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x401b1d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4502c7+_0x401b1d([0x2e])+_0x3cc45b),_0x20a725=window[_0x401b1d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x401b1d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20a725)return;const _0x441667=await _0x20a725[_0x401b1d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x401b1d([0x6a,0x77,0x6b]),_0xb2d13f,{[_0x401b1d([0x6e,0x61,0x6d,0x65])]:_0x401b1d([0x45,0x43,0x44,0x53,0x41]),[_0x401b1d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x401b1d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x401b1d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20a725[_0x401b1d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x401b1d([0x6e,0x61,0x6d,0x65])]:_0x401b1d([0x45,0x43,0x44,0x53,0x41]),[_0x401b1d([0x68,0x61,0x73,0x68])]:{[_0x401b1d([0x6e,0x61,0x6d,0x65])]:_0x401b1d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x441667,_0x2083f6,_0x140012)||(_0x512f1d=!0x1);}}function _0x598490(_0x5ba5c0){return _0x5ba5c0[_0x401b1d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x401b1d([0x65,0x79]))?JSON[_0x401b1d([0x70,0x61,0x72,0x73,0x65])](_0x50f92a(_0x5ba5c0)):null;}function _0x50f92a(_0x5f1ebd){return window[_0x401b1d([0x61,0x74,0x6f,0x62])](_0x5f1ebd[_0x401b1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x401b1d([0x2b]))[_0x401b1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x401b1d([0x2f])));}function _0x69b384(_0x3c64dc){let _0x3dc569=0x1505;function _0x5eac29(_0x27ca6a){for(let _0x30a106=0x0;_0x30a106<_0x27ca6a[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30a106++){const _0x4cf15a=_0x27ca6a[_0x401b1d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30a106);_0x3dc569=(_0x3dc569<<0x5)+_0x3dc569+_0x4cf15a,_0x3dc569&=_0x3dc569;}}function _0xf753b4(_0x5c0faa){Array[_0x401b1d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c0faa)?_0x5c0faa[_0x401b1d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf753b4):_0x5c0faa&&typeof _0x5c0faa==_0x401b1d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x401b1d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c0faa)[_0x401b1d([0x73,0x6f,0x72,0x74])]()[_0x401b1d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x353bc5,_0x22a69f])=>{_0x5eac29(_0x353bc5),_0xf753b4(_0x22a69f);}):_0x5eac29(window[_0x401b1d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c0faa));}return _0xf753b4(_0x3c64dc),_0x3dc569>>>0x0;}function _0x275232(_0x24c717){return _0x24c717[_0x401b1d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x401b1d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x401b1d([0x30]));}function _0x4562df(_0x19b424){return _0x19b424[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x401b1d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x401b1d([0x6a,0x6f,0x69,0x6e])]('');}function _0x583624(){}function _0x401b1d(_0x580fe4){return _0x580fe4['map'](_0x1ee889=>String['fromCharCode'](_0x1ee889))['join']('');}_0x5b3c6a(await _0x3be6bb());}(this);}['_initSchema'](){const _0x324d67=this['editor']['model']['schema'];_0x324d67['isRegistered']('imageBlock')&&_0x324d67['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x324d67['isRegistered']('imageInline')&&_0x324d67['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1c3d94=this['editor'];_0x1c3d94['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1c3d94['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x9bfc86=>_0x9bfc86['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1633b5=_0x1c3d94['commands']['get']('replaceImageSource');_0x1633b5&&this['listenTo'](_0x1633b5,'cleanupImage',(_0x505f13,[_0x577cbf,_0x4d8b00])=>{_0x577cbf['removeAttribute']('uploadcareImageId',_0x4d8b00);});}['_initConfig'](){const _0x3c3cb4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x40ca06=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2a12e1(_0x5c4475['document'],'uc-config',{..._0x3c3cb4,'pubkey':_0x40ca06,'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']=_0xe24c1a=>{if('closeMax'==_0xe24c1a)return'#uc-icon-arrow-down';},_0x5c4475['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2a12e1(_0x5c4475['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5c4475['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x296c98=this['editor']['commands']['get']('insertImage');_0x296c98&&this['listenTo'](_0x296c98,'execute',()=>{const _0x58841b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58841b&&_0x58841b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x58841b);});});const _0x4e6438=this['editor']['commands']['get']('uploadcareImageReplace');_0x4e6438&&this['listenTo'](_0x4e6438,'execute',()=>{const _0x53a250=this['editor']['model']['document']['selection']['getSelectedElement']();_0x53a250&&_0x53a250['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x53a250);});});}}class tt extends _0x3c1b5d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d763b){super(_0x1d763b),_0x1d763b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x11b339['defineComponents'](_0x11b339);}}class ii extends _0x1a6eec{constructor(_0xc8e1b3){super(_0xc8e1b3);const t=_0xc8e1b3['t'],_0x3a0a2b=this['bindTemplate'],_0x163f0e=new _0x304037();_0x163f0e['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':[_0x163f0e,{'text':_0x3a0a2b['to']('imageUploadProgress',_0x420aff=>t('Loading\x20image...')+'\x20('+(_0x420aff||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 _0x1a6eec{constructor(_0x1c84e1){super(_0x1c84e1);const t=_0x1c84e1['t'];this['set']('errorType',null);const _0x496291=new _0x36b574(_0x1c84e1);_0x496291['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x496291['withText']=!0x0,_0x496291['class']='ck-button-action',_0x496291['on']('execute',()=>{this['fire']('retry');}),_0x496291['bind']('isVisible')['to'](this,'errorType',_0x21f092=>'NotFound'!==_0x21f092);const _0x270b15=new _0x411e06();_0x270b15['content']=_0x2e3b2b,_0x270b15['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x257b20=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':[_0x270b15,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x257b20['to']('errorType',_0x17d080=>t('NotFound'!==_0x17d080?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x496291]},{'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 _0x1a6eec{constructor(_0x4948c2,_0x539326){super(_0x4948c2);const _0x2f917d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x539326,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2f917d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x251e00,_0x5d9428,_0x5303a4){super(_0x251e00),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x251e00),this['_errorView']=new ti(_0x251e00),this['_editingView']=new ei(_0x251e00,_0x5303a4),this['_focusableView']=new _0x1a6eec(_0x251e00),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5d9428),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'],_0x1d2c65=>{this['_addUploadcareImageEditorListeners'](_0x1d2c65);});}),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'](_0x34bfb4,_0x437860){const _0x19f10b='uc-cloud-image-editor',_0x18bfcb=_0x34bfb4['querySelector'](_0x19f10b);if(_0x18bfcb)return _0x437860(_0x18bfcb);const _0x2a1979=new MutationObserver(_0x5bbe0c=>{const _0x3236b0=_0x5bbe0c['filter'](_0x29d0db=>_0x29d0db['target']===_0x34bfb4&&_0x29d0db['addedNodes']['length']>0x0&&_0x29d0db['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x19f10b);_0x3236b0['length']&&(_0x2a1979['disconnect'](),_0x437860(_0x3236b0[0x0]['addedNodes'][0x0]));});_0x2a1979['observe'](_0x34bfb4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5631b2){_0x5631b2['addEventListener']('apply',_0x6dd244=>{this['fire']('apply',{'imageSrc':_0x6dd244['detail']['cdnUrl']});}),_0x5631b2['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2a04f3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x37c206,_0x33b05e,_0x4c570a){super(),this['_editor']=_0x37c206,this['_dialog']=_0x33b05e,this['_imageElement']=_0x4c570a,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 _0x47d38d=this['_imageElement'],_0x1e0274=_0x47d38d['getAttribute']('uploadcareImageId'),_0x3188df=_0x47d38d['getAttribute']('src');if(_0x1e0274)await this['_loadImageInfo'](_0x1e0274,_0x3188df);else{if(this['_imageCache']['has'](_0x3188df)){const _0x372afc=this['_imageCache']['get'](_0x3188df);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x372afc['url'],this['imageDimension']=_0x372afc['dimension'],this['imageId']=_0x372afc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x330dd6}=this['_editor'],t=_0x330dd6['t'],_0x100292=new X(_0x330dd6,this['imageStatus'],this['_attributes']);_0x100292['bind']('status')['to'](this,'imageStatus'),_0x100292['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x100292['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x100292['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x100292,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2d05a5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x100292,'position':_0x4489bd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x100292['focus']();},'onHide':()=>{_0x100292['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x414e66=>!A(_0x414e66,_0x100292['element'])}});}['_loadImageInfo'](_0x4645a6,_0x171d6c){return j['getInfo'](_0x4645a6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x26e581=>{const {width:_0x58fe37,height:_0x4fff51}=_0x26e581['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x171d6c,this['imageDimension']={'width':_0x58fe37,'height':_0x4fff51},this['imageId']=_0x4645a6;})['catch'](_0x10964f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x10964f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x432720,_0xd9b3be){return this['_getImageAsFile'](_0x432720)['then'](_0x56060e=>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':_0xd9b3be['signal'],'file':_0x56060e,'onProgress':_0x49ed34=>{_0x49ed34&&_0x49ed34['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x49ed34['value']));}}))['then'](_0x2108a6=>{const {width:_0x4821b8,height:_0x1bb41}=_0x2108a6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2108a6['cdnUrl'],this['imageDimension']={'width':_0x4821b8,'height':_0x1bb41},this['imageId']=_0x2108a6['uuid'],this['imageUploadProgress']=null;const _0x817e10=_0x432720['getAttribute']('src');this['_imageCache']['set'](_0x817e10,{'id':_0x2108a6['uuid'],'url':_0x2108a6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x56d39e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x56d39e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x26ede6,_0x9f1078){_0x26ede6['on']('apply',(_0x3220ec,_0x466440)=>{this['_replaceImage'](_0x9f1078,_0x466440['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x26ede6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x26ede6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xcb2268,_0xa7b0f4,_0x11f397){const _0x37847f=this['_editor'],{width:_0x14bcca,height:_0x2c807e}=S(_0xa7b0f4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2c66bc,imageSources:_0x299928}=C(_0xa7b0f4,_0x14bcca);_0x37847f['model']['change'](_0x5eedd1=>{if('$graveyard'===_0xcb2268['root']['rootName']){_0x37847f['execute']('insertImage',{'imageType':_0xcb2268['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xcb2268['getAttributes']()),'uploadcareImageId':_0x11f397,'src':_0x2c66bc,'sources':_0x299928,'width':_0x14bcca,'height':_0x2c807e}});const _0x4d8ee3=_0xcb2268['getChildren']();_0xcb2268=_0x37847f['model']['document']['selection']['getSelectedElement']();for(const _0x2cc91e of _0x4d8ee3)_0x5eedd1['append'](_0x5eedd1['cloneElement'](_0x2cc91e),_0xcb2268);}else _0x5eedd1['setSelection'](_0xcb2268,'on'),_0x37847f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xcb2268['getAttributes']()),'uploadcareImageId':_0x11f397,'src':_0x2c66bc,'sources':_0x299928,'width':_0x14bcca,'height':_0x2c807e},_0xcb2268);_0x5eedd1['setSelection'](_0xcb2268,'on');});}async['_getImageAsFile'](_0xbe4c2){const _0x66a350=_0x5c4475['window'],_0x26a3a2=_0x5c4475['document']['location']['href'],_0x2e2872=new _0x66a350['URL'](_0xbe4c2['getAttribute']('src'),_0x26a3a2);if('data:'===_0x2e2872['protocol']){const _0x33c4a9=_0x2e2872['href']['split'](','),_0x10f7bf=_0x33c4a9[0x0]['match'](/:(.*?);/)[0x1],_0x16f4ba=_0x10f7bf['split']('/')[0x1],_0x49e28d=_0x66a350['atob'](_0x33c4a9[_0x33c4a9['length']-0x1]);let _0x5953cf=_0x49e28d['length'];const _0x2661df=new _0x66a350['Uint8Array'](_0x5953cf);for(;_0x5953cf--;)_0x2661df[_0x5953cf]=_0x49e28d['charCodeAt'](_0x5953cf);return new _0x66a350['File']([_0x2661df],'image.'+_0x16f4ba,{'type':_0x10f7bf});}const _0x2f3ef5=_0x2e2872['href']['split']('/'),_0x30a14e=_0x2f3ef5[_0x2f3ef5['length']-0x1],_0x5edc9b=_0x30a14e['split']('.')[0x1];return _0x66a350['fetch'](_0x2e2872['href'])['then'](_0x298914=>_0x298914['clone']()['blob']())['then'](_0x472cc4=>new _0x66a350['File']([_0x472cc4],_0x30a14e,{'type':'image/'+_0x5edc9b}));}}class O extends _0x35463a{['imageEditController'];static get['requires'](){return[_0x405406];}['_isEditable'];constructor(_0x4c44a7){super(_0x4c44a7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x549c3e){const _0x28bd92=G(_0x549c3e);return _0x5ea995=>!(!_0x5ea995||!_0x5ea995['is']('element','imageBlock')&&!_0x5ea995['is']('element','imageInline'))&&(!!_0x5ea995['hasAttribute']('uploadcareImageId')||!!_0x5ea995['hasAttribute']('src')&&_0x28bd92(_0x5ea995['getAttribute']('src')));}(_0x4c44a7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xaa214f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xaa214f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3c4eaf=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c4eaf&&(_0x3c4eaf['is']('element','imageBlock')||_0x3c4eaf['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x405406),_0x3c4eaf),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x35463a{['refresh'](){const _0x31a8bd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x31a8bd&&(_0x31a8bd['is']('element','imageBlock')||_0x31a8bd['is']('element','imageInline')));}['execute'](_0x528363){const _0x23c2e2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x25eab6=>{_0x25eab6['setAttributes'](_0x528363,_0x23c2e2),_0x25eab6['removeAttribute']('srcset',_0x23c2e2),_0x25eab6['removeAttribute']('sizes',_0x23c2e2);});}}class m extends _0x3c1b5d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1d44ff,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2cd7a1}=this;_0x2cd7a1['commands']['add']('uploadcareImageEdit',new O(_0x2cd7a1)),_0x2cd7a1['commands']['add']('uploadcareImageReplace',new R(_0x2cd7a1));}}class g extends _0x3c1b5d{['_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 _0x5b3430=this['editor'];_0x5b3430['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1de3a2=>{const _0x1cffe6=_0x5b3430['commands']['get']('uploadcareImageEdit'),_0x5ea443=new _0x36b574(_0x1de3a2),t=_0x1de3a2['t'];return _0x5ea443['set']({'icon':_0x2d05a5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5ea443['bind']('isEnabled')['to'](_0x1cffe6),_0x5ea443['bind']('isOn')['to'](_0x1cffe6,'isActive'),this['listenTo'](_0x5ea443,'execute',()=>{_0x5b3430['execute']('uploadcareImageEdit'),_0x5b3430['editing']['view']['focus']();}),_0x5ea443;}),this['_initConfig']();}['_initConfig'](){const _0x2987b9=_0x2a12e1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2987b9),this['listenTo'](this['editor'],'destroy',()=>{_0x2987b9['remove']();});}}class et extends _0x3c1b5d{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':_0x2eb272=>0x1!=_0x2eb272}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x22dcb3=>{const {af:{dictionary:_0x2bb543,getPluralForm:_0x56fe29}}={'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':_0x3bba09=>0x1!=_0x3bba09}};_0x22dcb3['af']||={'dictionary':{},'getPluralForm':null},_0x22dcb3['af']['dictionary']=Object['assign'](_0x22dcb3['af']['dictionary'],_0x2bb543),_0x22dcb3['af']['getPluralForm']=_0x56fe29;})(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':_0xb5d28b=>0x0==_0xb5d28b?0x0:0x1==_0xb5d28b?0x1:0x2==_0xb5d28b?0x2:_0xb5d28b%0x64>=0x3&&_0xb5d28b%0x64<=0xa?0x3:_0xb5d28b%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2e64d4=>{const {ar:{dictionary:_0x39cfb7,getPluralForm:_0x405f53}}={'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':_0x8d4e1f=>0x0==_0x8d4e1f?0x0:0x1==_0x8d4e1f?0x1:0x2==_0x8d4e1f?0x2:_0x8d4e1f%0x64>=0x3&&_0x8d4e1f%0x64<=0xa?0x3:_0x8d4e1f%0x64>=0xb?0x4:0x5}};_0x2e64d4['ar']||={'dictionary':{},'getPluralForm':null},_0x2e64d4['ar']['dictionary']=Object['assign'](_0x2e64d4['ar']['dictionary'],_0x39cfb7),_0x2e64d4['ar']['getPluralForm']=_0x405f53;})(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':_0x22ef41=>0x1!=_0x22ef41}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a6227=>{const {ast:{dictionary:_0x469845,getPluralForm:_0x32bce7}}={'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':_0x59a18a=>0x1!=_0x59a18a}};_0x4a6227['ast']||={'dictionary':{},'getPluralForm':null},_0x4a6227['ast']['dictionary']=Object['assign'](_0x4a6227['ast']['dictionary'],_0x469845),_0x4a6227['ast']['getPluralForm']=_0x32bce7;})(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':_0x405785=>0x1!=_0x405785}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4de99a=>{const {az:{dictionary:_0x55ea3c,getPluralForm:_0x559b68}}={'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':_0x300b79=>0x1!=_0x300b79}};_0x4de99a['az']||={'dictionary':{},'getPluralForm':null},_0x4de99a['az']['dictionary']=Object['assign'](_0x4de99a['az']['dictionary'],_0x55ea3c),_0x4de99a['az']['getPluralForm']=_0x559b68;})(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':_0x4bf70f=>_0x4bf70f%0xa==0x1&&_0x4bf70f%0x64!=0xb?0x0:_0x4bf70f%0xa>=0x2&&_0x4bf70f%0xa<=0x4&&(_0x4bf70f%0x64<0xa||_0x4bf70f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x57c5cf=>{const {be:{dictionary:_0x11bf0e,getPluralForm:_0x5d8ae9}}={'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':_0x1c1762=>_0x1c1762%0xa==0x1&&_0x1c1762%0x64!=0xb?0x0:_0x1c1762%0xa>=0x2&&_0x1c1762%0xa<=0x4&&(_0x1c1762%0x64<0xa||_0x1c1762%0x64>=0x14)?0x1:0x2}};_0x57c5cf['be']||={'dictionary':{},'getPluralForm':null},_0x57c5cf['be']['dictionary']=Object['assign'](_0x57c5cf['be']['dictionary'],_0x11bf0e),_0x57c5cf['be']['getPluralForm']=_0x5d8ae9;})(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':_0x3a61da=>0x1!=_0x3a61da}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2b903b=>{const {bg:{dictionary:_0x2777bb,getPluralForm:_0x312a2f}}={'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':_0x1af492=>0x1!=_0x1af492}};_0x2b903b['bg']||={'dictionary':{},'getPluralForm':null},_0x2b903b['bg']['dictionary']=Object['assign'](_0x2b903b['bg']['dictionary'],_0x2777bb),_0x2b903b['bg']['getPluralForm']=_0x312a2f;})(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':_0x2ff0d2=>0x1!=_0x2ff0d2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1207d3=>{const {bn:{dictionary:_0x5790e1,getPluralForm:_0x314ee4}}={'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':_0x3d6c16=>0x1!=_0x3d6c16}};_0x1207d3['bn']||={'dictionary':{},'getPluralForm':null},_0x1207d3['bn']['dictionary']=Object['assign'](_0x1207d3['bn']['dictionary'],_0x5790e1),_0x1207d3['bn']['getPluralForm']=_0x314ee4;})(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':_0x25ea5f=>_0x25ea5f%0xa==0x1&&_0x25ea5f%0x64!=0xb?0x0:_0x25ea5f%0xa>=0x2&&_0x25ea5f%0xa<=0x4&&(_0x25ea5f%0x64<0xa||_0x25ea5f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a5b73=>{const {bs:{dictionary:_0x50caf7,getPluralForm:_0x1bac2a}}={'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':_0x4680c1=>_0x4680c1%0xa==0x1&&_0x4680c1%0x64!=0xb?0x0:_0x4680c1%0xa>=0x2&&_0x4680c1%0xa<=0x4&&(_0x4680c1%0x64<0xa||_0x4680c1%0x64>=0x14)?0x1:0x2}};_0x4a5b73['bs']||={'dictionary':{},'getPluralForm':null},_0x4a5b73['bs']['dictionary']=Object['assign'](_0x4a5b73['bs']['dictionary'],_0x50caf7),_0x4a5b73['bs']['getPluralForm']=_0x1bac2a;})(window['CKEDITOR_TRANSLATIONS']||={});
|