@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251010.0 → 0.0.0-nightly-20251010.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xccb4b0,Command as _0x16469f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x10541e,IconGooglePhotos as _0x1546bd,IconGoogleDrive as _0x82d50f,IconFacebook as _0x375fd6,IconDropbox as _0x1bd42e,IconUploadcareLink as _0x5b043f,IconUploadcareImageUpload as _0x3b0c54,IconError as _0x191dd0,IconUploadcareImageEdit as _0x5ed823}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2f6b57,MenuBarMenuListItemButtonView as _0x1d5368,View as _0x23f160,FocusCycler as _0x5a15a4,Dialog as _0x7b8af8,DialogViewPosition as _0x1a9bb0,SpinnerView as _0x27aa91,IconView as _0x2eba13,Notification as _0x522708}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x29c68e,DomEmitterMixin as _0x3e300b,global as _0x2eae91,getAncestors as _0x41ef5d,ObservableMixin as _0x45887d,uid as _0x24eeca,createElement as _0x26f354}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4c2414}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x46afdb,info as _0x5059df}from'@uploadcare/upload-client';import*as _0x9a50c4 from'@uploadcare/file-uploader';var i=function(_0x864092){return _0x864092['Local']='local',_0x864092['URL']='url',_0x864092['Dropbox']='dropbox',_0x864092['GDrive']='gdrive',_0x864092['Facebook']='facebook',_0x864092['GPhotos']='gphotos',_0x864092['OneDrive']='onedrive',_0x864092;}({});function _(_0x37dba8,_0x3f360f,_0xb9c40){const t=_0x37dba8['t'],_0x30bd90=_0x37dba8['t'];switch(_0x3f360f){case i['Local']:return{'text':_0x30bd90('Insert'===_0xb9c40?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x30bd90('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xb9c40?_0x30bd90('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x30bd90('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xb9c40?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xb9c40?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xb9c40?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xb9c40?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xb9c40?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3f360f;}}class e extends _0xccb4b0{['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 _0x3a4173=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3db39b;for(const _0x1a62cd in _0x3a4173){const _0x328a07=_0x1a62cd,_0x498ebf=_0x3a4173[_0x328a07];if('uploadcareLicenseKeyValid'==_0x498ebf||'uploadcareLicenseKeyInvalid'==_0x498ebf||'uploadcareLicenseKeyExpired'==_0x498ebf||'uploadcareLicenseKeyDomainLimit'==_0x498ebf||'uploadcareLicenseKeyNotAllowed'==_0x498ebf||'uploadcareLicenseKeyEvaluationLimit'==_0x498ebf||'uploadcareLicenseKeyTrialLimit'==_0x498ebf||'uploadcareLicenseKeyUsageLimit'==_0x498ebf){delete _0x3a4173[_0x328a07],_0x3db39b=_0x498ebf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3db39b&&_0x3a4173['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3db39b&&_0x3a4173['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3db39b&&_0x3a4173['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3db39b&&_0x3a4173['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3db39b&&_0x3a4173['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3db39b&&_0x3a4173['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3db39b&&_0x3a4173['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x36126f}=this,_0x4ecd06=_0x36126f['commands']['get']('uploadcare');if(!_0x4ecd06)return;const _0x2a0eff=this['_normalizeConfigSourceList'](_0x36126f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x30df16,_0x56a8b0)=>{const _0x571ada=this['_getIntegrationKey'](_0x56a8b0['type']);return _0x30df16[_0x571ada]||(_0x30df16[_0x571ada]=[]),_0x30df16[_0x571ada]['push'](_0x56a8b0),_0x30df16;},{});_0x36126f['plugins']['has']('ImageInsertUI')&&_0x36126f['commands']['get']('uploadcare')&&Object['entries'](_0x2a0eff)['forEach'](([_0x45f122,_0x129b13])=>{_0x36126f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x45f122,'observable':()=>_0x4ecd06,'buttonViewCreator':()=>this['_createToolbarButton'](_0x129b13),'formViewCreator':()=>this['_createDropdownButtons'](_0x129b13),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x129b13),'override':'assetManager'!==_0x45f122});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x39c71d){const {locale:_0xc67f82}=this['editor'];return _0x39c71d['map'](_0x148610=>{const _0x4cee1e=_(_0xc67f82,_0x148610,'Insert');switch(_0x148610){case i['Local']:return{'icon':_0x3b0c54,'type':i['Local'],..._0x4cee1e};case i['URL']:return{'icon':_0x5b043f,'type':i['URL'],..._0x4cee1e};case i['Dropbox']:return{'icon':_0x1bd42e,'type':i['Dropbox'],..._0x4cee1e};case i['Facebook']:return{'icon':_0x375fd6,'type':i['Facebook'],..._0x4cee1e};case i['GDrive']:return{'icon':_0x82d50f,'type':i['GDrive'],..._0x4cee1e};case i['GPhotos']:return{'icon':_0x1546bd,'type':i['GPhotos'],..._0x4cee1e};case i['OneDrive']:return{'icon':_0x10541e,'type':i['OneDrive'],..._0x4cee1e};}});}['_getIntegrationKey'](_0x94888c){switch(_0x94888c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1436a6,_0x18b6ab){const _0x1f0943=this['editor'],_0x4cf7a3=new _0x1436a6(_0x1f0943['locale']),_0x3a16ce=_0x1f0943['commands']['get']('uploadcare');return _0x4cf7a3['bind']('isEnabled')['to'](_0x3a16ce),_0x4cf7a3['on']('execute',()=>{_0x3a16ce['execute'](_0x18b6ab);}),_0x4cf7a3;}['_createToolbarButton'](_0x18439c){const {locale:_0x164ebb}=this['editor'],_0x59e1bb=this['editor']['plugins']['get']('ImageInsertUI'),_0x4e119c=_0x18439c[0x0],_0x499cf1=this['_createButton'](_0x2f6b57,_0x4e119c['type']);return _0x499cf1['icon']=_0x4e119c['icon'],_0x499cf1['bind']('label')['to'](_0x59e1bb,'isImageSelected',_0x567369=>_(_0x164ebb,_0x4e119c['type'],_0x567369?'Replace':'Insert')['text']),_0x499cf1['tooltip']=!0x0,_0x499cf1;}['_createDropdownButtons'](_0x343bb4){const {locale:_0x3d18ac}=this['editor'],_0x2a4689=this['editor']['plugins']['get']('ImageInsertUI');return _0x343bb4['map'](_0x241767=>{const _0x12c204=this['_createButton'](_0x2f6b57,_0x241767['type']);return _0x12c204['withText']=!0x0,_0x12c204['icon']=_0x241767['icon'],_0x12c204['bind']('label')['to'](_0x2a4689,'isImageSelected',_0x6f5be=>_(_0x3d18ac,_0x241767['type'],_0x6f5be?'Replace':'Insert')['text']),_0x12c204;});}['_createMenuBarButtons'](_0x1c71d9){return _0x1c71d9['map'](_0xde3aef=>{const _0x5f15f3=this['_createButton'](_0x1d5368,_0xde3aef['type']);return _0x5f15f3['icon']=_0xde3aef['icon'],_0x5f15f3['label']=_0xde3aef['shortText'],_0x5f15f3;});}}class F extends _0x23f160{['focusTracker'];['focusCycler'];constructor(_0x42a720){super(_0x42a720),this['focusTracker']=new _0x29c68e(),this['focusCycler']=new _0x5a15a4({'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(_0x440d9b,_0xb6e142){super(_0x440d9b),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-'+_0xb6e142}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3039be,_0x558c87){const _0x2b60e7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1f5363=>_0x1f5363<=_0x558c87)['map'](_0x2e835f=>_0x3039be['replace'](/\/$/,'')+'/-/resize/'+_0x2e835f+'x/\x20'+_0x2e835f+'w');return{'imageFallbackUrl':_0x3039be,'imageSources':[{'srcset':_0x2b60e7['join'](',\x20'),'sizes':'(max-width:\x20'+_0x558c87+'px)\x20100vw,\x20'+_0x558c87+'px','type':'image/webp'}]};}function S(_0x2e7e30,_0x1b244d,_0x39e518){const _0x83e6e6=_0x2e7e30['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x83e6e6?parseInt(_0x83e6e6[0x1],0xa):_0x1b244d,'height':_0x83e6e6?parseInt(_0x83e6e6[0x2],0xa):_0x39e518};}function p(_0x305861,_0x256b5c){const _0x197c68=new(_0x3e300b())(),_0x1ff03e=_0x305861['plugins']['get']('ImageUtils'),_0x31bb7b=_0x305861['editing']['mapper']['toViewElement'](_0x256b5c),_0x2d63f9=_0x1ff03e['findViewImgElement'](_0x31bb7b),_0x5968fc=_0x305861['editing']['view']['domConverter']['viewToDom'](_0x2d63f9),_0x246d88=_0x256b5c['getAttribute']('width'),_0x491a90=_0x256b5c['getAttribute']('height'),_0x120551='image-processing';_0x305861['editing']['view']['change'](_0xeefb74=>{_0xeefb74['addClass'](_0x120551,_0x31bb7b),_0xeefb74['setStyle']('aspect-ratio',_0x246d88+'/'+_0x491a90,_0x2d63f9);}),_0x197c68['listenTo'](_0x5968fc,'load',()=>{_0x197c68['stopListening'](_0x5968fc,'load'),_0x305861['editing']['view']['change'](_0x2a5369=>{_0x2a5369['removeClass'](_0x120551,_0x31bb7b),_0x2a5369['removeStyle']('aspect-ratio',_0x2d63f9);});});}function G(_0x2d1d74){if(Array['isArray'](_0x2d1d74)){const _0x232d80=_0x2d1d74['map'](G);return _0x212196=>_0x232d80['some'](_0x5eb487=>_0x5eb487(_0x212196));}if('origin'==_0x2d1d74){const _0x4e9ec6=_0x2eae91['window']['location']['origin'];return _0x6b7701=>new URL(_0x6b7701,_0x2eae91['document']['baseURI'])['origin']==_0x4e9ec6;}return'function'==typeof _0x2d1d74?_0x2d1d74:_0x2d1d74 instanceof RegExp?_0x3f5eaa=>!(!_0x3f5eaa['match'](_0x2d1d74)&&!_0x3f5eaa['replace'](/^https?:\/\//,'')['match'](_0x2d1d74)):()=>!0x1;}function A(_0x23c35d,_0x1f1cf2){return _0x41ef5d(_0x23c35d['target'])['includes'](_0x1f1cf2);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x45887d(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2477a1,_0x5929c6,_0x12627c){super(),this['_editor']=_0x2477a1,this['_editing']=_0x5929c6,this['_dialog']=_0x2477a1['plugins']['get'](_0x7b8af8),this['_api']=_0x5929c6['ctxElement']['getAPI'](),this['_type']=_0x12627c,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:_0x47d46a,model:_0x7ce795}=this['_editor'],_0x28900c=_0x7ce795['document']['selection']['getSelectedElement'](),_0x26276f=_0x28900c&&(_0x28900c['is']('element','imageBlock')||_0x28900c['is']('element','imageInline'));this['_formView']=new x(_0x47d46a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3b0c54,'title':_(_0x47d46a,this['_type'],_0x26276f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1a9bb0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5792d4=>!A(_0x5792d4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x17777c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xeb94d2=>{const _0x3ee69f=_0x17777c['length'];for(const _0x2b1ddd of _0x17777c){const _0x592af2=_0x2b1ddd===_0x17777c[_0x3ee69f-0x1],{cdnUrl:_0x15ece6,fileInfo:_0x54edb2}=_0x2b1ddd;if(!_0x15ece6||!_0x54edb2)continue;const {width:_0x2f9016,height:_0x1bf446}=_0x54edb2['imageInfo'],_0x4c73c8=S(_0x15ece6,_0x2f9016,_0x1bf446),_0x5b81ac=C(_0x15ece6,_0x4c73c8['width']),_0x29cf0={'id':_0x54edb2['uuid'],'type':'image','attributes':{'imageDimension':_0x4c73c8,..._0x5b81ac}};this['_insertAsset'](_0x29cf0,_0x592af2,_0xeb94d2);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x564052=>{'idle'===_0x564052['detail']['status']&&!_0x564052['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x216c74,_0x11c2bb,_0x59a546){const _0x4c3c50=this['_editor']['model']['document']['selection'],_0x2c8afb=_0x4c3c50['getSelectedElement'](),_0xdaf376=!(!_0x2c8afb||!_0x2c8afb['is']('element','imageInline'));_0x59a546['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x216c74,_0xdaf376),_0x11c2bb||_0x59a546['setSelection'](_0x4c3c50['getLastPosition']());}['_insertImage'](_0x2a619a,_0x1bab49){const _0x46dcff=this['_editor'],{imageDimension:_0x110b1f,imageFallbackUrl:_0x5fc12c,imageSources:_0x573d01}=_0x2a619a['attributes'];_0x46dcff['execute']('insertImage',{'imageType':_0x1bab49?'imageInline':null,'source':{'uploadcareImageId':_0x2a619a['id'],'src':_0x5fc12c,'sources':_0x573d01,..._0x110b1f}});}}class w extends _0x16469f{['_editing'];['_controller']=null;static get['requires'](){return[_0x7b8af8,o];}constructor(_0x43c06b){super(_0x43c06b),this['_editing']=_0x43c06b['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5284d1){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5284d1);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3a85ca,..._0x10a801}){return _0x46afdb(_0x3a85ca,_0x10a801);}static['getInfo'](_0x951e74,_0x2cb291){return _0x5059df(_0x951e74,_0x2cb291);}}class f extends _0xccb4b0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4c2414,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x18e8e1=this['editor'];if(!!!_0x18e8e1['config']['get']('uploadcare'))return;_0x18e8e1['plugins']['get'](_0x4c2414)['createUploadAdapter']=_0x5c2e01=>new k(_0x5c2e01,_0x18e8e1),_0x18e8e1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x216c3f,{imageElement:_0x1debd8,data:_0x1de280})=>{_0x18e8e1['model']['change'](_0x5a34a5=>{_0x5a34a5['setAttribute']('uploadcareImageId',_0x1de280['uploadcareImageId'],_0x1debd8);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2b595c,_0x3eb66e){this['loader']=_0x2b595c,this['editor']=_0x3eb66e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xa7a9f2=await this['loader']['file'];return j['upload']({'file':_0xa7a9f2,'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':_0x130ff1=>{_0x130ff1&&_0x130ff1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x130ff1['value']);}})['then'](async _0x29bbbe=>{const {imageFallbackUrl:_0x399c2c,imageSources:_0x441b57}=C(_0x29bbbe['cdnUrl'],_0x29bbbe['imageInfo']['width']);return{'uploadcareImageId':_0x29bbbe['uuid'],'default':_0x399c2c,'sources':_0x441b57};})['catch'](()=>{const _0x1a032b=t('Cannot\x20upload\x20file:')+('\x20'+_0xa7a9f2['name']+'.');return Promise['reject'](_0x1a032b);});}['abort'](){this['controller']['abort']();}}class o extends _0xccb4b0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x7b8af8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x57f1de){super(_0x57f1de),this['ucContextId']=_0x24eeca();}['init'](){const _0x2eaab1=this['editor'];_0x2eaab1['commands']['add']('uploadcare',new w(_0x2eaab1));}['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 _0x1d1f37=_0x2eae91['document']['querySelector']('input[uploadcare-file-input]');_0x1d1f37&&_0x1d1f37['remove']();}),async function(_0x490f97){const _0x57d18f=_0x5e8748([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]),_0x1db0e5=0x3d8d0df,_0x521b8b=0x3dfa517^_0x1db0e5,_0x28c3e2=window[_0x5e8748([0x44,0x61,0x74,0x65])][_0x5e8748([0x6e,0x6f,0x77])](),_0x17bce3=_0x490f97[_0x5e8748([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c6d10=new window[(_0x5e8748([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a1c82=>{_0x17bce3[_0x5e8748([0x6f,0x6e,0x63,0x65])](_0x5e8748([0x72,0x65,0x61,0x64,0x79]),_0x4a1c82);}),_0x39df8a={[_0x5e8748([0x6b,0x74,0x79])]:_0x5e8748([0x45,0x43]),[_0x5e8748([0x75,0x73,0x65])]:_0x5e8748([0x73,0x69,0x67]),[_0x5e8748([0x63,0x72,0x76])]:_0x5e8748([0x50,0x2d,0x32,0x35,0x36]),[_0x5e8748([0x78])]:_0x5e8748([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]),[_0x5e8748([0x79])]:_0x5e8748([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]),[_0x5e8748([0x61,0x6c,0x67])]:_0x5e8748([0x45,0x53,0x32,0x35,0x36])},_0x31da7c=_0x17bce3[_0x5e8748([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e8748([0x67,0x65,0x74])](_0x5e8748([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x69433c(){let _0x19a62c,_0x2f9cb8=null,_0x44a666=null;try{if(_0x31da7c==_0x5e8748([0x47,0x50,0x4c]))return _0x5e8748([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19a62c=_0x532e86(),!_0x19a62c)return _0x5e8748([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19a62c[_0x5e8748([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x44a666=_0x4795b5(_0x19a62c[_0x5e8748([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19a62c[_0x5e8748([0x6a,0x74,0x69])])),await _0x249a8b()?_0xe03434()?_0x2a5a0f()?_0x5e8748([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x406470()?(_0x19a62c[_0x5e8748([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e8748([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f9cb8=_0x154518(_0x5e8748([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19a62c[_0x5e8748([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e8748([0x74,0x72,0x69,0x61,0x6c])&&(_0x2f9cb8=_0x154518(_0x5e8748([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x51a679()):_0x5e8748([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e8748([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e8748([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e8748([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a5a0f(){const _0xb78652=[_0x5e8748([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e8748([0x74,0x72,0x69,0x61,0x6c])][_0x5e8748([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19a62c[_0x5e8748([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x28c3e2/0x3e8:0xe10*_0x521b8b;return _0x19a62c[_0x5e8748([0x65,0x78,0x70])]<_0xb78652;}function _0xe03434(){const _0x1ff9b2=_0x19a62c[_0x5e8748([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1ff9b2&&(!!_0x1ff9b2[_0x5e8748([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e8748([0x2a]))||!!_0x1ff9b2[_0x5e8748([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e8748([0x55,0x50,0x4c,0x43])));}function _0x406470(){const _0x39f3f4=_0x19a62c[_0x5e8748([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39f3f4||0x0==_0x39f3f4[_0x5e8748([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x7f27f2}=new URL(window[_0x5e8748([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x39f3f4[_0x5e8748([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7f27f2))return!0x0;const _0x2fa898=_0x7f27f2[_0x5e8748([0x73,0x70,0x6c,0x69,0x74])](_0x5e8748([0x2e]));return _0x39f3f4[_0x5e8748([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x331551=>_0x331551[_0x5e8748([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e8748([0x2a])))[_0x5e8748([0x6d,0x61,0x70])](_0x22b0ab=>_0x22b0ab[_0x5e8748([0x73,0x70,0x6c,0x69,0x74])](_0x5e8748([0x2e])))[_0x5e8748([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc71025=>_0xc71025[_0x5e8748([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2fa898[_0x5e8748([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e8748([0x6d,0x61,0x70])](_0x3d7f28=>Array(_0x2fa898[_0x5e8748([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d7f28[_0x5e8748([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e8748([0x66,0x69,0x6c,0x6c])](_0x3d7f28[0x0]===_0x5e8748([0x2a])?_0x5e8748([0x2a]):'')[_0x5e8748([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d7f28))[_0x5e8748([0x73,0x6f,0x6d,0x65])](_0x1f81e2=>_0x2fa898[_0x5e8748([0x65,0x76,0x65,0x72,0x79])]((_0x1917c7,_0xc1fcaf)=>_0x1f81e2[_0xc1fcaf]===_0x1917c7||_0x1f81e2[_0xc1fcaf]===_0x5e8748([0x2a])));}function _0x51a679(){return _0x2f9cb8&&_0x44a666?new window[(_0x5e8748([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23001f,_0x395473)=>{_0x2f9cb8[_0x5e8748([0x74,0x68,0x65,0x6e])](_0x23001f,_0x395473),_0x44a666[_0x5e8748([0x74,0x68,0x65,0x6e])](_0x5d2390=>{_0x5d2390!=_0x5e8748([0x56,0x61,0x6c,0x69,0x64])&&_0x23001f(_0x5d2390);},_0x395473);}):_0x2f9cb8||_0x44a666||_0x5e8748([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4795b5(_0x22ae44,_0x1a77fc){return new window[(_0x5e8748([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3809bf=>{if(_0x5bcfc0())return _0x3809bf(_0x5e8748([0x56,0x61,0x6c,0x69,0x64]));_0x50f068(),_0x17bce3[_0x5e8748([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e8748([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x73f5f9=!0x1;const _0x43f6f6=_0x24eeca();function _0x4d3376(_0x25a664){return!!_0x25a664&&(typeof _0x25a664===_0x5e8748([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25a664===_0x5e8748([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25a664[_0x5e8748([0x74,0x68,0x65,0x6e])]===_0x5e8748([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25a664[_0x5e8748([0x63,0x61,0x74,0x63,0x68])]===_0x5e8748([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27d0a7(_0x5b42e1){_0x32b562(_0x5b42e1)[_0x5e8748([0x74,0x68,0x65,0x6e])](_0x126be4=>{if(!_0x126be4||_0x126be4[_0x5e8748([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e8748([0x6f,0x6b]))return _0x5e8748([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39b348(_0x4d5f30(_0x43f6f6+_0x1a77fc))!=_0x126be4[_0x5e8748([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e8748([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e8748([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e8748([0x74,0x68,0x65,0x6e])](_0x22be13=>(_0x7f6102(),_0x22be13),()=>{const _0x37dec9=_0x352b71();return null==_0x37dec9?(_0x7f6102(),_0x5e8748([0x56,0x61,0x6c,0x69,0x64])):_0x5e8748(_0x28c3e2-_0x37dec9>(0x27d454df^_0x1db0e5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e8748([0x74,0x68,0x65,0x6e])](_0x3809bf)[_0x5e8748([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3809bf(_0x5e8748([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5779a3=0x3ee3e5f^_0x1db0e5;function _0x7f6102(){const _0x619e3c=_0x5e8748([0x6c,0x6c,0x63,0x74,0x2d])+_0x39b348(_0x4d5f30(_0x22ae44)),_0x545295=_0xca239d(_0x39b348(window[_0x5e8748([0x4d,0x61,0x74,0x68])][_0x5e8748([0x63,0x65,0x69,0x6c])](_0x28c3e2/_0x5779a3)));window[_0x5e8748([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e8748([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x619e3c,_0x545295);}function _0x352b71(){const _0x3ad8e4=_0x5e8748([0x6c,0x6c,0x63,0x74,0x2d])+_0x39b348(_0x4d5f30(_0x22ae44)),_0x414d5f=window[_0x5e8748([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e8748([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ad8e4);return _0x414d5f?window[_0x5e8748([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xca239d(_0x414d5f),0x10)*_0x5779a3:null;}function _0x32b562(_0x981355){return new window[(_0x5e8748([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x285fe0,_0x35e323)=>{_0x981355[_0x5e8748([0x74,0x68,0x65,0x6e])](_0x285fe0,_0x35e323),window[_0x5e8748([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35e323,0x3d9041f^_0x1db0e5);});}}_0x17bce3[_0x5e8748([0x6f,0x6e])](_0x5e8748([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x338991,_0x349e54)=>{if(_0x349e54[0x0]!=_0x22ae44)return _0x3809bf(_0x5e8748([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x349e54[0x1]={..._0x349e54[0x1],[_0x5e8748([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43f6f6};},{[_0x5e8748([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e8748([0x68,0x69,0x67,0x68])}),_0x17bce3[_0x5e8748([0x6f,0x6e])](_0x5e8748([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b54b1=>{_0x4d3376(_0x5b54b1[_0x5e8748([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x73f5f9=!0x0,_0x27d0a7(_0x5b54b1[_0x5e8748([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e8748([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e8748([0x6c,0x6f,0x77])}),_0x4c6d10[_0x5e8748([0x74,0x68,0x65,0x6e])](()=>{_0x73f5f9||_0x3809bf(_0x5e8748([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5bcfc0(){return _0x17bce3[_0x5e8748([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e8748([0x76,0x69,0x65,0x77])][_0x5e8748([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e8748([0x61,0x75,0x74,0x6f]);}function _0x50f068(){_0x17bce3[_0x5e8748([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e8748([0x76,0x69,0x65,0x77])][_0x5e8748([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e8748([0x61,0x75,0x74,0x6f]);}}function _0x154518(_0x8b197b){const _0x14ec83=[new window[(_0x5e8748([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x250b09=>setTimeout(_0x250b09,0x3d1ee13^_0x1db0e5)),_0x4c6d10[_0x5e8748([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e8748([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b993f=>{let _0x27b5b1=0x0;_0x17bce3[_0x5e8748([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e8748([0x6f,0x6e])](_0x5e8748([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4eede8,_0x7db92f)=>{_0x7db92f[0x0][_0x5e8748([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x27b5b1++,_0x27b5b1==(0x3d8d127^_0x1db0e5)&&(_0x4b993f(),_0x4eede8[_0x5e8748([0x6f,0x66,0x66])]());});}))];return window[_0x5e8748([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e8748([0x72,0x61,0x63,0x65])](_0x14ec83)[_0x5e8748([0x74,0x68,0x65,0x6e])](()=>_0x8b197b);}async function _0x46e120(){await _0x4c6d10,_0x17bce3[_0x5e8748([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e8748([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d76f5,_0x17bce3[_0x5e8748([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e8748([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d76f5,_0x17bce3[_0x5e8748([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e8748([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ddf1a(_0x46075f){const _0x3dd7ad=_0x3e2e81();_0x17bce3[_0x3dd7ad]=_0x5e8748([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x46075f,_0x46075f!=_0x5e8748([0x56,0x61,0x6c,0x69,0x64])&&_0x46e120();}function _0x3e2e81(){const _0x6ce801=window[_0x5e8748([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e8748([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e8748([0x6e,0x6f,0x77])]())[_0x5e8748([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e8748([0x2e]),'');let _0x9f5714=_0x5e8748([0x52]);for(let _0x42529c=0x0;_0x42529c<_0x6ce801[_0x5e8748([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42529c+=0x2){let _0x471f19=window[_0x5e8748([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6ce801[_0x5e8748([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42529c,_0x42529c+0x2));_0x471f19>=_0x57d18f[_0x5e8748([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x471f19-=_0x57d18f[_0x5e8748([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x9f5714+=_0x57d18f[_0x471f19];}return _0x9f5714;}function _0x532e86(){const _0x2c5847=_0x31da7c[_0x5e8748([0x73,0x70,0x6c,0x69,0x74])](_0x5e8748([0x2e]));if(0x3!=_0x2c5847[_0x5e8748([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cf535(_0x2c5847[0x1]);function _0x5cf535(_0x244f06){const _0x4ca7d0=_0x3d1010(_0x244f06);return _0x4ca7d0&&_0x25097c()?_0x4ca7d0:null;function _0x25097c(){const _0x5d37ff=_0x4ca7d0[_0x5e8748([0x6a,0x74,0x69])],_0x4efece=window[_0x5e8748([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d37ff[_0x5e8748([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d37ff[_0x5e8748([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a6ce4={..._0x4ca7d0,[_0x5e8748([0x6a,0x74,0x69])]:_0x5d37ff[_0x5e8748([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d37ff[_0x5e8748([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a6ce4[_0x5e8748([0x76,0x63])],_0x4d5f30(_0x4a6ce4)==_0x4efece;}}}async function _0x249a8b(){let _0x318ad7=!0x0;try{const _0x3603d7=_0x31da7c[_0x5e8748([0x73,0x70,0x6c,0x69,0x74])](_0x5e8748([0x2e])),[_0x9b8561,_0x44c6eb,_0x33b4da]=_0x3603d7;return _0x167b25(_0x9b8561),await _0x1aee24(_0x9b8561,_0x44c6eb,_0x33b4da),_0x318ad7;}catch{return!0x1;}function _0x167b25(_0xb177a7){const _0x2f1da4=_0x3d1010(_0xb177a7);_0x2f1da4&&_0x2f1da4[_0x5e8748([0x61,0x6c,0x67])]==_0x5e8748([0x45,0x53,0x32,0x35,0x36])||(_0x318ad7=!0x1);}async function _0x1aee24(_0x327938,_0x11014d,_0x198dd8){const _0x188448=window[_0x5e8748([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e8748([0x66,0x72,0x6f,0x6d])](_0x540912(_0x198dd8),_0x471ee3=>_0x471ee3[_0x5e8748([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e4fff=new window[(_0x5e8748([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e8748([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x327938+_0x5e8748([0x2e])+_0x11014d),_0x1d7e4f=window[_0x5e8748([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e8748([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d7e4f)return;const _0x263e27=await _0x1d7e4f[_0x5e8748([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e8748([0x6a,0x77,0x6b]),_0x39df8a,{[_0x5e8748([0x6e,0x61,0x6d,0x65])]:_0x5e8748([0x45,0x43,0x44,0x53,0x41]),[_0x5e8748([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e8748([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e8748([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d7e4f[_0x5e8748([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e8748([0x6e,0x61,0x6d,0x65])]:_0x5e8748([0x45,0x43,0x44,0x53,0x41]),[_0x5e8748([0x68,0x61,0x73,0x68])]:{[_0x5e8748([0x6e,0x61,0x6d,0x65])]:_0x5e8748([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x263e27,_0x188448,_0x2e4fff)||(_0x318ad7=!0x1);}}function _0x3d1010(_0x25fc3e){return _0x25fc3e[_0x5e8748([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e8748([0x65,0x79]))?JSON[_0x5e8748([0x70,0x61,0x72,0x73,0x65])](_0x540912(_0x25fc3e)):null;}function _0x540912(_0x57b7e2){return window[_0x5e8748([0x61,0x74,0x6f,0x62])](_0x57b7e2[_0x5e8748([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e8748([0x2b]))[_0x5e8748([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e8748([0x2f])));}function _0x4d5f30(_0x432eb7){let _0x2cbc06=0x1505;function _0x1225e(_0x46844f){for(let _0x1b4cf5=0x0;_0x1b4cf5<_0x46844f[_0x5e8748([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b4cf5++){const _0x1da981=_0x46844f[_0x5e8748([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b4cf5);_0x2cbc06=(_0x2cbc06<<0x5)+_0x2cbc06+_0x1da981,_0x2cbc06&=_0x2cbc06;}}function _0x3f8768(_0x2c134f){Array[_0x5e8748([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2c134f)?_0x2c134f[_0x5e8748([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f8768):_0x2c134f&&typeof _0x2c134f==_0x5e8748([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e8748([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2c134f)[_0x5e8748([0x73,0x6f,0x72,0x74])]()[_0x5e8748([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x185813,_0x57e33a])=>{_0x1225e(_0x185813),_0x3f8768(_0x57e33a);}):_0x1225e(window[_0x5e8748([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2c134f));}return _0x3f8768(_0x432eb7),_0x2cbc06>>>0x0;}function _0x39b348(_0x200641){return _0x200641[_0x5e8748([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e8748([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e8748([0x30]));}function _0xca239d(_0x416c98){return _0x416c98[_0x5e8748([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e8748([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e8748([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d76f5(){}function _0x5e8748(_0x99bd5d){return _0x99bd5d['map'](_0x323f05=>String['fromCharCode'](_0x323f05))['join']('');}_0x4ddf1a(await _0x69433c());}(this);}['_initSchema'](){const _0x3173ca=this['editor']['model']['schema'];_0x3173ca['isRegistered']('imageBlock')&&_0x3173ca['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3173ca['isRegistered']('imageInline')&&_0x3173ca['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x170ec7=this['editor'];_0x170ec7['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x170ec7['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2061f9=>_0x2061f9['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x8b81f1=_0x170ec7['commands']['get']('replaceImageSource');_0x8b81f1&&this['listenTo'](_0x8b81f1,'cleanupImage',(_0x21a6b1,[_0x29180a,_0x2ec6c4])=>{_0x29180a['removeAttribute']('uploadcareImageId',_0x2ec6c4);});}['_initConfig'](){const _0x145d32=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3eb2e8=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x26f354(_0x2eae91['document'],'uc-config',{..._0x145d32,'pubkey':_0x3eb2e8,'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']=_0x28c45c=>{if('closeMax'==_0x28c45c)return'#uc-icon-arrow-down';},_0x2eae91['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x26f354(_0x2eae91['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2eae91['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1b616c=this['editor']['commands']['get']('insertImage');_0x1b616c&&this['listenTo'](_0x1b616c,'execute',()=>{const _0x97638=this['editor']['model']['document']['selection']['getSelectedElement']();_0x97638&&_0x97638['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x97638);});});const _0x8ed062=this['editor']['commands']['get']('uploadcareImageReplace');_0x8ed062&&this['listenTo'](_0x8ed062,'execute',()=>{const _0x4ae5c2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4ae5c2&&_0x4ae5c2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4ae5c2);});});}}class tt extends _0xccb4b0{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17e48a){super(_0x17e48a),_0x17e48a['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x9a50c4['defineComponents'](_0x9a50c4);}}class ii extends _0x23f160{constructor(_0x31dba5){super(_0x31dba5);const t=_0x31dba5['t'],_0x3a4f33=this['bindTemplate'],_0x264ef6=new _0x27aa91();_0x264ef6['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':[_0x264ef6,{'text':_0x3a4f33['to']('imageUploadProgress',_0x22e551=>t('Loading\x20image...')+'\x20('+(_0x22e551||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 _0x23f160{constructor(_0x7500c){super(_0x7500c);const t=_0x7500c['t'];this['set']('errorType',null);const _0x28a36d=new _0x2f6b57(_0x7500c);_0x28a36d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x28a36d['withText']=!0x0,_0x28a36d['class']='ck-button-action',_0x28a36d['on']('execute',()=>{this['fire']('retry');}),_0x28a36d['bind']('isVisible')['to'](this,'errorType',_0x200bbb=>'NotFound'!==_0x200bbb);const _0x4d83c4=new _0x2eba13();_0x4d83c4['content']=_0x191dd0,_0x4d83c4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x509ddd=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':[_0x4d83c4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x509ddd['to']('errorType',_0x5e5bd5=>t('NotFound'!==_0x5e5bd5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x28a36d]},{'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 _0x23f160{constructor(_0x10aaec,_0x2118e3){super(_0x10aaec);const _0x3655df=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2118e3,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3655df['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xc186b,_0x508b3b,_0x12779e){super(_0xc186b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xc186b),this['_errorView']=new ti(_0xc186b),this['_editingView']=new ei(_0xc186b,_0x12779e),this['_focusableView']=new _0x23f160(_0xc186b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x508b3b),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'],_0x109259=>{this['_addUploadcareImageEditorListeners'](_0x109259);});}),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'](_0x497100,_0x2f3a52){const _0x3255a3='uc-cloud-image-editor',_0x369220=_0x497100['querySelector'](_0x3255a3);if(_0x369220)return _0x2f3a52(_0x369220);const _0x2fb2fd=new MutationObserver(_0x26a5c0=>{const _0x35e6ae=_0x26a5c0['filter'](_0x2eab81=>_0x2eab81['target']===_0x497100&&_0x2eab81['addedNodes']['length']>0x0&&_0x2eab81['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3255a3);_0x35e6ae['length']&&(_0x2fb2fd['disconnect'](),_0x2f3a52(_0x35e6ae[0x0]['addedNodes'][0x0]));});_0x2fb2fd['observe'](_0x497100,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3fd1e4){_0x3fd1e4['addEventListener']('apply',_0x98d761=>{this['fire']('apply',{'imageSrc':_0x98d761['detail']['cdnUrl']});}),_0x3fd1e4['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x45887d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x66a694,_0x569602,_0x63bf5e){super(),this['_editor']=_0x66a694,this['_dialog']=_0x569602,this['_imageElement']=_0x63bf5e,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 _0x5f15a4=this['_imageElement'],_0x5893f6=_0x5f15a4['getAttribute']('uploadcareImageId'),_0x1bff9d=_0x5f15a4['getAttribute']('src');if(_0x5893f6)await this['_loadImageInfo'](_0x5893f6,_0x1bff9d);else{if(this['_imageCache']['has'](_0x1bff9d)){const _0x3e5b07=this['_imageCache']['get'](_0x1bff9d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e5b07['url'],this['imageDimension']=_0x3e5b07['dimension'],this['imageId']=_0x3e5b07['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x19832d}=this['_editor'],t=_0x19832d['t'],_0x5a7931=new X(_0x19832d,this['imageStatus'],this['_attributes']);_0x5a7931['bind']('status')['to'](this,'imageStatus'),_0x5a7931['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5a7931['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5a7931['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5a7931,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5ed823,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5a7931,'position':_0x1a9bb0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5a7931['focus']();},'onHide':()=>{_0x5a7931['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x42fd11=>!A(_0x42fd11,_0x5a7931['element'])}});}['_loadImageInfo'](_0x3a8b8e,_0x14bab3){return j['getInfo'](_0x3a8b8e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x462afc=>{const {width:_0x5ea5d1,height:_0x48f067}=_0x462afc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14bab3,this['imageDimension']={'width':_0x5ea5d1,'height':_0x48f067},this['imageId']=_0x3a8b8e;})['catch'](_0x31d8aa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x31d8aa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1665fb,_0x48098e){return this['_getImageAsFile'](_0x1665fb)['then'](_0x1dba93=>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':_0x48098e['signal'],'file':_0x1dba93,'onProgress':_0x2210c5=>{_0x2210c5&&_0x2210c5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2210c5['value']));}}))['then'](_0x33a87e=>{const {width:_0x3ce3e2,height:_0x41c3fc}=_0x33a87e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33a87e['cdnUrl'],this['imageDimension']={'width':_0x3ce3e2,'height':_0x41c3fc},this['imageId']=_0x33a87e['uuid'],this['imageUploadProgress']=null;const _0x58ac50=_0x1665fb['getAttribute']('src');this['_imageCache']['set'](_0x58ac50,{'id':_0x33a87e['uuid'],'url':_0x33a87e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2d223a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2d223a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x51fd70,_0x308e77){_0x51fd70['on']('apply',(_0x59057a,_0x387726)=>{this['_replaceImage'](_0x308e77,_0x387726['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x51fd70['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x51fd70['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x102401,_0x6be149,_0x290f24){const _0x327b36=this['_editor'],{width:_0x5ecb7a,height:_0xda746b}=S(_0x6be149,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x521376,imageSources:_0x5d40fc}=C(_0x6be149,_0x5ecb7a);_0x327b36['model']['change'](_0x15bb08=>{if('$graveyard'===_0x102401['root']['rootName']){_0x327b36['execute']('insertImage',{'imageType':_0x102401['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x102401['getAttributes']()),'uploadcareImageId':_0x290f24,'src':_0x521376,'sources':_0x5d40fc,'width':_0x5ecb7a,'height':_0xda746b}});const _0x448ad6=_0x102401['getChildren']();_0x102401=_0x327b36['model']['document']['selection']['getSelectedElement']();for(const _0x90169f of _0x448ad6)_0x15bb08['append'](_0x15bb08['cloneElement'](_0x90169f),_0x102401);}else _0x15bb08['setSelection'](_0x102401,'on'),_0x327b36['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x102401['getAttributes']()),'uploadcareImageId':_0x290f24,'src':_0x521376,'sources':_0x5d40fc,'width':_0x5ecb7a,'height':_0xda746b},_0x102401);_0x15bb08['setSelection'](_0x102401,'on');});}async['_getImageAsFile'](_0x67ec34){const _0x419e16=_0x2eae91['window'],_0x2c41af=_0x2eae91['document']['location']['href'],_0x5b9239=new _0x419e16['URL'](_0x67ec34['getAttribute']('src'),_0x2c41af);if('data:'===_0x5b9239['protocol']){const _0x565739=_0x5b9239['href']['split'](','),_0x182738=_0x565739[0x0]['match'](/:(.*?);/)[0x1],_0x5dea07=_0x182738['split']('/')[0x1],_0x5611bf=_0x419e16['atob'](_0x565739[_0x565739['length']-0x1]);let _0x217a67=_0x5611bf['length'];const _0x7af769=new _0x419e16['Uint8Array'](_0x217a67);for(;_0x217a67--;)_0x7af769[_0x217a67]=_0x5611bf['charCodeAt'](_0x217a67);return new _0x419e16['File']([_0x7af769],'image.'+_0x5dea07,{'type':_0x182738});}const _0x45eb17=_0x5b9239['href']['split']('/'),_0x533822=_0x45eb17[_0x45eb17['length']-0x1],_0x384841=_0x533822['split']('.')[0x1];return _0x419e16['fetch'](_0x5b9239['href'])['then'](_0x3a72de=>_0x3a72de['clone']()['blob']())['then'](_0x177b5f=>new _0x419e16['File']([_0x177b5f],_0x533822,{'type':'image/'+_0x384841}));}}class O extends _0x16469f{['imageEditController'];static get['requires'](){return[_0x7b8af8];}['_isEditable'];constructor(_0x145ce0){super(_0x145ce0),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x13d168){const _0x292b7e=G(_0x13d168);return _0x2eef84=>!(!_0x2eef84||!_0x2eef84['is']('element','imageBlock')&&!_0x2eef84['is']('element','imageInline'))&&(!!_0x2eef84['hasAttribute']('uploadcareImageId')||!!_0x2eef84['hasAttribute']('src')&&_0x292b7e(_0x2eef84['getAttribute']('src')));}(_0x145ce0['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x49bafa=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x49bafa);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x71d236=this['editor']['model']['document']['selection']['getSelectedElement']();_0x71d236&&(_0x71d236['is']('element','imageBlock')||_0x71d236['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x7b8af8),_0x71d236),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x16469f{['refresh'](){const _0x5ae0ca=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5ae0ca&&(_0x5ae0ca['is']('element','imageBlock')||_0x5ae0ca['is']('element','imageInline')));}['execute'](_0x33652d){const _0xe7538d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x272d84=>{_0x272d84['setAttributes'](_0x33652d,_0xe7538d),_0x272d84['removeAttribute']('srcset',_0xe7538d),_0x272d84['removeAttribute']('sizes',_0xe7538d);});}}class m extends _0xccb4b0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x522708,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x36b7a5}=this;_0x36b7a5['commands']['add']('uploadcareImageEdit',new O(_0x36b7a5)),_0x36b7a5['commands']['add']('uploadcareImageReplace',new R(_0x36b7a5));}}class g extends _0xccb4b0{['_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 _0x3a7683=this['editor'];_0x3a7683['ui']['componentFactory']['add']('uploadcareImageEdit',_0x54a945=>{const _0x41fc66=_0x3a7683['commands']['get']('uploadcareImageEdit'),_0x1dea8c=new _0x2f6b57(_0x54a945),t=_0x54a945['t'];return _0x1dea8c['set']({'icon':_0x5ed823,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1dea8c['bind']('isEnabled')['to'](_0x41fc66),_0x1dea8c['bind']('isOn')['to'](_0x41fc66,'isActive'),this['listenTo'](_0x1dea8c,'execute',()=>{_0x3a7683['execute']('uploadcareImageEdit'),_0x3a7683['editing']['view']['focus']();}),_0x1dea8c;}),this['_initConfig']();}['_initConfig'](){const _0x4b0606=_0x26f354(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4b0606),this['listenTo'](this['editor'],'destroy',()=>{_0x4b0606['remove']();});}}class et extends _0xccb4b0{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x339043,Command as _0x14573d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x199e36,IconGooglePhotos as _0x56a69b,IconGoogleDrive as _0x53e3a7,IconFacebook as _0x17c720,IconDropbox as _0x3122b9,IconUploadcareLink as _0x4ca381,IconUploadcareImageUpload as _0x4fd634,IconError as _0x1739ee,IconUploadcareImageEdit as _0x3b7309}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x484084,MenuBarMenuListItemButtonView as _0x4157c7,View as _0x23aacc,FocusCycler as _0x442845,Dialog as _0x186400,DialogViewPosition as _0x288f04,SpinnerView as _0x567d03,IconView as _0x4da5ed,Notification as _0x4a053c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x215138,DomEmitterMixin as _0x5b4009,global as _0x5363bb,getAncestors as _0x9f6703,ObservableMixin as _0xc696a7,uid as _0x1175ee,createElement as _0x2c23d2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x13c371}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x22f80d,info as _0x5c830a}from'@uploadcare/upload-client';import*as _0xa82f3e from'@uploadcare/file-uploader';var i=function(_0x217ad9){return _0x217ad9['Local']='local',_0x217ad9['URL']='url',_0x217ad9['Dropbox']='dropbox',_0x217ad9['GDrive']='gdrive',_0x217ad9['Facebook']='facebook',_0x217ad9['GPhotos']='gphotos',_0x217ad9['OneDrive']='onedrive',_0x217ad9;}({});function _(_0x12fc0d,_0x224660,_0xdb4b67){const t=_0x12fc0d['t'],_0x22daed=_0x12fc0d['t'];switch(_0x224660){case i['Local']:return{'text':_0x22daed('Insert'===_0xdb4b67?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x22daed('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xdb4b67?_0x22daed('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x22daed('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xdb4b67?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xdb4b67?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xdb4b67?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xdb4b67?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xdb4b67?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x224660;}}class e extends _0x339043{['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 _0x2a78bd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5dcb35;for(const _0x26e351 in _0x2a78bd){const _0x4b80f5=_0x26e351,_0x645c40=_0x2a78bd[_0x4b80f5];if('uploadcareLicenseKeyValid'==_0x645c40||'uploadcareLicenseKeyInvalid'==_0x645c40||'uploadcareLicenseKeyExpired'==_0x645c40||'uploadcareLicenseKeyDomainLimit'==_0x645c40||'uploadcareLicenseKeyNotAllowed'==_0x645c40||'uploadcareLicenseKeyEvaluationLimit'==_0x645c40||'uploadcareLicenseKeyTrialLimit'==_0x645c40||'uploadcareLicenseKeyUsageLimit'==_0x645c40){delete _0x2a78bd[_0x4b80f5],_0x5dcb35=_0x645c40,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5dcb35&&_0x2a78bd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5dcb35&&_0x2a78bd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5dcb35&&_0x2a78bd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5dcb35&&_0x2a78bd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5dcb35&&_0x2a78bd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5dcb35&&_0x2a78bd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5dcb35&&_0x2a78bd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x278241}=this,_0x3cb3cb=_0x278241['commands']['get']('uploadcare');if(!_0x3cb3cb)return;const _0xb9f9e9=this['_normalizeConfigSourceList'](_0x278241['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x430bc2,_0x4fca59)=>{const _0x5c03e0=this['_getIntegrationKey'](_0x4fca59['type']);return _0x430bc2[_0x5c03e0]||(_0x430bc2[_0x5c03e0]=[]),_0x430bc2[_0x5c03e0]['push'](_0x4fca59),_0x430bc2;},{});_0x278241['plugins']['has']('ImageInsertUI')&&_0x278241['commands']['get']('uploadcare')&&Object['entries'](_0xb9f9e9)['forEach'](([_0x25a147,_0x5c6252])=>{_0x278241['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x25a147,'observable':()=>_0x3cb3cb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5c6252),'formViewCreator':()=>this['_createDropdownButtons'](_0x5c6252),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5c6252),'override':'assetManager'!==_0x25a147});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3b495c){const {locale:_0x5a5f13}=this['editor'];return _0x3b495c['map'](_0x4b1de2=>{const _0x3c5d0f=_(_0x5a5f13,_0x4b1de2,'Insert');switch(_0x4b1de2){case i['Local']:return{'icon':_0x4fd634,'type':i['Local'],..._0x3c5d0f};case i['URL']:return{'icon':_0x4ca381,'type':i['URL'],..._0x3c5d0f};case i['Dropbox']:return{'icon':_0x3122b9,'type':i['Dropbox'],..._0x3c5d0f};case i['Facebook']:return{'icon':_0x17c720,'type':i['Facebook'],..._0x3c5d0f};case i['GDrive']:return{'icon':_0x53e3a7,'type':i['GDrive'],..._0x3c5d0f};case i['GPhotos']:return{'icon':_0x56a69b,'type':i['GPhotos'],..._0x3c5d0f};case i['OneDrive']:return{'icon':_0x199e36,'type':i['OneDrive'],..._0x3c5d0f};}});}['_getIntegrationKey'](_0x4929a8){switch(_0x4929a8){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1d1ad1,_0x397a60){const _0x4ddf50=this['editor'],_0x3d9453=new _0x1d1ad1(_0x4ddf50['locale']),_0x3cd514=_0x4ddf50['commands']['get']('uploadcare');return _0x3d9453['bind']('isEnabled')['to'](_0x3cd514),_0x3d9453['on']('execute',()=>{_0x3cd514['execute'](_0x397a60);}),_0x3d9453;}['_createToolbarButton'](_0x2500b4){const {locale:_0xa75089}=this['editor'],_0x35f6e8=this['editor']['plugins']['get']('ImageInsertUI'),_0x5725c6=_0x2500b4[0x0],_0x359bf8=this['_createButton'](_0x484084,_0x5725c6['type']);return _0x359bf8['icon']=_0x5725c6['icon'],_0x359bf8['bind']('label')['to'](_0x35f6e8,'isImageSelected',_0x453b97=>_(_0xa75089,_0x5725c6['type'],_0x453b97?'Replace':'Insert')['text']),_0x359bf8['tooltip']=!0x0,_0x359bf8;}['_createDropdownButtons'](_0x5ec2a4){const {locale:_0x2e2664}=this['editor'],_0x1ab2c9=this['editor']['plugins']['get']('ImageInsertUI');return _0x5ec2a4['map'](_0x1a18e0=>{const _0x169cef=this['_createButton'](_0x484084,_0x1a18e0['type']);return _0x169cef['withText']=!0x0,_0x169cef['icon']=_0x1a18e0['icon'],_0x169cef['bind']('label')['to'](_0x1ab2c9,'isImageSelected',_0x423f7f=>_(_0x2e2664,_0x1a18e0['type'],_0x423f7f?'Replace':'Insert')['text']),_0x169cef;});}['_createMenuBarButtons'](_0x35d2bb){return _0x35d2bb['map'](_0x4f2c5e=>{const _0x24cb35=this['_createButton'](_0x4157c7,_0x4f2c5e['type']);return _0x24cb35['icon']=_0x4f2c5e['icon'],_0x24cb35['label']=_0x4f2c5e['shortText'],_0x24cb35;});}}class F extends _0x23aacc{['focusTracker'];['focusCycler'];constructor(_0x1a642e){super(_0x1a642e),this['focusTracker']=new _0x215138(),this['focusCycler']=new _0x442845({'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(_0x4703a5,_0x47bc5){super(_0x4703a5),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-'+_0x47bc5}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5955db,_0x3395ba){const _0x28eec3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5b3946=>_0x5b3946<=_0x3395ba)['map'](_0x52a8e6=>_0x5955db['replace'](/\/$/,'')+'/-/resize/'+_0x52a8e6+'x/\x20'+_0x52a8e6+'w');return{'imageFallbackUrl':_0x5955db,'imageSources':[{'srcset':_0x28eec3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3395ba+'px)\x20100vw,\x20'+_0x3395ba+'px','type':'image/webp'}]};}function S(_0x2f54e3,_0x1a25cf,_0x35ecef){const _0x16028d=_0x2f54e3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16028d?parseInt(_0x16028d[0x1],0xa):_0x1a25cf,'height':_0x16028d?parseInt(_0x16028d[0x2],0xa):_0x35ecef};}function p(_0x200f1c,_0x2bc960){const _0x3d0644=new(_0x5b4009())(),_0x225196=_0x200f1c['plugins']['get']('ImageUtils'),_0x2b9619=_0x200f1c['editing']['mapper']['toViewElement'](_0x2bc960),_0x54143e=_0x225196['findViewImgElement'](_0x2b9619),_0x5c67e9=_0x200f1c['editing']['view']['domConverter']['viewToDom'](_0x54143e),_0x211d06=_0x2bc960['getAttribute']('width'),_0x322b43=_0x2bc960['getAttribute']('height'),_0x51bbfe='image-processing';_0x200f1c['editing']['view']['change'](_0xff536c=>{_0xff536c['addClass'](_0x51bbfe,_0x2b9619),_0xff536c['setStyle']('aspect-ratio',_0x211d06+'/'+_0x322b43,_0x54143e);}),_0x3d0644['listenTo'](_0x5c67e9,'load',()=>{_0x3d0644['stopListening'](_0x5c67e9,'load'),_0x200f1c['editing']['view']['change'](_0x5b9d0b=>{_0x5b9d0b['removeClass'](_0x51bbfe,_0x2b9619),_0x5b9d0b['removeStyle']('aspect-ratio',_0x54143e);});});}function G(_0x4689c1){if(Array['isArray'](_0x4689c1)){const _0x4d1c32=_0x4689c1['map'](G);return _0x539bdd=>_0x4d1c32['some'](_0x1a382d=>_0x1a382d(_0x539bdd));}if('origin'==_0x4689c1){const _0x397ca9=_0x5363bb['window']['location']['origin'];return _0x29e9f7=>new URL(_0x29e9f7,_0x5363bb['document']['baseURI'])['origin']==_0x397ca9;}return'function'==typeof _0x4689c1?_0x4689c1:_0x4689c1 instanceof RegExp?_0x24d7f0=>!(!_0x24d7f0['match'](_0x4689c1)&&!_0x24d7f0['replace'](/^https?:\/\//,'')['match'](_0x4689c1)):()=>!0x1;}function A(_0x3440d8,_0x5ee51f){return _0x9f6703(_0x3440d8['target'])['includes'](_0x5ee51f);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xc696a7(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x334b32,_0x3ab0f2,_0x3e6e7b){super(),this['_editor']=_0x334b32,this['_editing']=_0x3ab0f2,this['_dialog']=_0x334b32['plugins']['get'](_0x186400),this['_api']=_0x3ab0f2['ctxElement']['getAPI'](),this['_type']=_0x3e6e7b,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:_0x266f11,model:_0x587a2b}=this['_editor'],_0x2503f9=_0x587a2b['document']['selection']['getSelectedElement'](),_0x42abe7=_0x2503f9&&(_0x2503f9['is']('element','imageBlock')||_0x2503f9['is']('element','imageInline'));this['_formView']=new x(_0x266f11,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4fd634,'title':_(_0x266f11,this['_type'],_0x42abe7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x288f04['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3a8ee3=>!A(_0x3a8ee3,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1921df}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x422948=>{const _0x3b519a=_0x1921df['length'];for(const _0x38737f of _0x1921df){const _0x2de5f4=_0x38737f===_0x1921df[_0x3b519a-0x1],{cdnUrl:_0x599050,fileInfo:_0x11f332}=_0x38737f;if(!_0x599050||!_0x11f332)continue;const {width:_0x1ff49e,height:_0x46dd68}=_0x11f332['imageInfo'],_0x14c8e8=S(_0x599050,_0x1ff49e,_0x46dd68),_0x3754bf=C(_0x599050,_0x14c8e8['width']),_0x4c9c44={'id':_0x11f332['uuid'],'type':'image','attributes':{'imageDimension':_0x14c8e8,..._0x3754bf}};this['_insertAsset'](_0x4c9c44,_0x2de5f4,_0x422948);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x54c75b=>{'idle'===_0x54c75b['detail']['status']&&!_0x54c75b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2898ec,_0x31a820,_0x1cfb30){const _0x514dac=this['_editor']['model']['document']['selection'],_0x42d42f=_0x514dac['getSelectedElement'](),_0x1f00c2=!(!_0x42d42f||!_0x42d42f['is']('element','imageInline'));_0x1cfb30['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2898ec,_0x1f00c2),_0x31a820||_0x1cfb30['setSelection'](_0x514dac['getLastPosition']());}['_insertImage'](_0x106771,_0x1a745f){const _0x227914=this['_editor'],{imageDimension:_0x3a88af,imageFallbackUrl:_0x37d63c,imageSources:_0x236b70}=_0x106771['attributes'];_0x227914['execute']('insertImage',{'imageType':_0x1a745f?'imageInline':null,'source':{'uploadcareImageId':_0x106771['id'],'src':_0x37d63c,'sources':_0x236b70,..._0x3a88af}});}}class w extends _0x14573d{['_editing'];['_controller']=null;static get['requires'](){return[_0x186400,o];}constructor(_0x635d1c){super(_0x635d1c),this['_editing']=_0x635d1c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x55c592){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x55c592);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x2e2022,..._0x35c08a}){return _0x22f80d(_0x2e2022,_0x35c08a);}static['getInfo'](_0x40f7c3,_0xb2c1cc){return _0x5c830a(_0x40f7c3,_0xb2c1cc);}}class f extends _0x339043{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x13c371,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x41929e=this['editor'];if(!!!_0x41929e['config']['get']('uploadcare'))return;_0x41929e['plugins']['get'](_0x13c371)['createUploadAdapter']=_0x342212=>new k(_0x342212,_0x41929e),_0x41929e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x32fe5e,{imageElement:_0xd24b8a,data:_0x12d084})=>{_0x41929e['model']['change'](_0x2692bb=>{_0x2692bb['setAttribute']('uploadcareImageId',_0x12d084['uploadcareImageId'],_0xd24b8a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x11efbd,_0x2e93d2){this['loader']=_0x11efbd,this['editor']=_0x2e93d2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xc9ffd=await this['loader']['file'];return j['upload']({'file':_0xc9ffd,'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':_0xff0e7c=>{_0xff0e7c&&_0xff0e7c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xff0e7c['value']);}})['then'](async _0x25cb0e=>{const {imageFallbackUrl:_0x4112d1,imageSources:_0x2ce782}=C(_0x25cb0e['cdnUrl'],_0x25cb0e['imageInfo']['width']);return{'uploadcareImageId':_0x25cb0e['uuid'],'default':_0x4112d1,'sources':_0x2ce782};})['catch'](()=>{const _0x348e39=t('Cannot\x20upload\x20file:')+('\x20'+_0xc9ffd['name']+'.');return Promise['reject'](_0x348e39);});}['abort'](){this['controller']['abort']();}}class o extends _0x339043{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x186400];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x584071){super(_0x584071),this['ucContextId']=_0x1175ee();}['init'](){const _0x2f38d9=this['editor'];_0x2f38d9['commands']['add']('uploadcare',new w(_0x2f38d9));}['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 _0x4e101e=_0x5363bb['document']['querySelector']('input[uploadcare-file-input]');_0x4e101e&&_0x4e101e['remove']();}),async function(_0x23fb21){const _0x373ba0=_0x2b9546([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]),_0x1d29b4=0x3d8d0df,_0x5f412f=0x3dfa517^_0x1d29b4,_0x4a0343=window[_0x2b9546([0x44,0x61,0x74,0x65])][_0x2b9546([0x6e,0x6f,0x77])](),_0x594b3c=_0x23fb21[_0x2b9546([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x499900=new window[(_0x2b9546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24ca14=>{_0x594b3c[_0x2b9546([0x6f,0x6e,0x63,0x65])](_0x2b9546([0x72,0x65,0x61,0x64,0x79]),_0x24ca14);}),_0x122916={[_0x2b9546([0x6b,0x74,0x79])]:_0x2b9546([0x45,0x43]),[_0x2b9546([0x75,0x73,0x65])]:_0x2b9546([0x73,0x69,0x67]),[_0x2b9546([0x63,0x72,0x76])]:_0x2b9546([0x50,0x2d,0x32,0x35,0x36]),[_0x2b9546([0x78])]:_0x2b9546([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]),[_0x2b9546([0x79])]:_0x2b9546([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]),[_0x2b9546([0x61,0x6c,0x67])]:_0x2b9546([0x45,0x53,0x32,0x35,0x36])},_0x1abf0d=_0x594b3c[_0x2b9546([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b9546([0x67,0x65,0x74])](_0x2b9546([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c5ac3(){let _0x4b165e,_0x2ecb18=null,_0xce6459=null;try{if(_0x1abf0d==_0x2b9546([0x47,0x50,0x4c]))return _0x2b9546([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b165e=_0x5cbbec(),!_0x4b165e)return _0x2b9546([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b165e[_0x2b9546([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xce6459=_0x49f6eb(_0x4b165e[_0x2b9546([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b165e[_0x2b9546([0x6a,0x74,0x69])])),await _0x2e8205()?_0x3d1983()?_0x5979de()?_0x2b9546([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5f2289()?(_0x4b165e[_0x2b9546([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b9546([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2ecb18=_0x12e60c(_0x2b9546([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b165e[_0x2b9546([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b9546([0x74,0x72,0x69,0x61,0x6c])&&(_0x2ecb18=_0x12e60c(_0x2b9546([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x518375()):_0x2b9546([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b9546([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b9546([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b9546([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5979de(){const _0x1bb3c4=[_0x2b9546([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b9546([0x74,0x72,0x69,0x61,0x6c])][_0x2b9546([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b165e[_0x2b9546([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a0343/0x3e8:0xe10*_0x5f412f;return _0x4b165e[_0x2b9546([0x65,0x78,0x70])]<_0x1bb3c4;}function _0x3d1983(){const _0x1a6b39=_0x4b165e[_0x2b9546([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1a6b39&&(!!_0x1a6b39[_0x2b9546([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9546([0x2a]))||!!_0x1a6b39[_0x2b9546([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9546([0x55,0x50,0x4c,0x43])));}function _0x5f2289(){const _0x53b402=_0x4b165e[_0x2b9546([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53b402||0x0==_0x53b402[_0x2b9546([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d0ae1}=new URL(window[_0x2b9546([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53b402[_0x2b9546([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d0ae1))return!0x0;const _0x4a5102=_0x1d0ae1[_0x2b9546([0x73,0x70,0x6c,0x69,0x74])](_0x2b9546([0x2e]));return _0x53b402[_0x2b9546([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18d528=>_0x18d528[_0x2b9546([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9546([0x2a])))[_0x2b9546([0x6d,0x61,0x70])](_0x2476e9=>_0x2476e9[_0x2b9546([0x73,0x70,0x6c,0x69,0x74])](_0x2b9546([0x2e])))[_0x2b9546([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48eb80=>_0x48eb80[_0x2b9546([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a5102[_0x2b9546([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b9546([0x6d,0x61,0x70])](_0x4ade6a=>Array(_0x4a5102[_0x2b9546([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ade6a[_0x2b9546([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b9546([0x66,0x69,0x6c,0x6c])](_0x4ade6a[0x0]===_0x2b9546([0x2a])?_0x2b9546([0x2a]):'')[_0x2b9546([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ade6a))[_0x2b9546([0x73,0x6f,0x6d,0x65])](_0x209e80=>_0x4a5102[_0x2b9546([0x65,0x76,0x65,0x72,0x79])]((_0x2851a3,_0x57e988)=>_0x209e80[_0x57e988]===_0x2851a3||_0x209e80[_0x57e988]===_0x2b9546([0x2a])));}function _0x518375(){return _0x2ecb18&&_0xce6459?new window[(_0x2b9546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14f620,_0x51e97f)=>{_0x2ecb18[_0x2b9546([0x74,0x68,0x65,0x6e])](_0x14f620,_0x51e97f),_0xce6459[_0x2b9546([0x74,0x68,0x65,0x6e])](_0x6707a3=>{_0x6707a3!=_0x2b9546([0x56,0x61,0x6c,0x69,0x64])&&_0x14f620(_0x6707a3);},_0x51e97f);}):_0x2ecb18||_0xce6459||_0x2b9546([0x56,0x61,0x6c,0x69,0x64]);}}function _0x49f6eb(_0x9d9e36,_0x18863b){return new window[(_0x2b9546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x366307=>{if(_0xa746f5())return _0x366307(_0x2b9546([0x56,0x61,0x6c,0x69,0x64]));_0x5cc17a(),_0x594b3c[_0x2b9546([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b9546([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4034d6=!0x1;const _0x28a2f0=_0x1175ee();function _0x581362(_0x5af2b0){return!!_0x5af2b0&&(typeof _0x5af2b0===_0x2b9546([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5af2b0===_0x2b9546([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5af2b0[_0x2b9546([0x74,0x68,0x65,0x6e])]===_0x2b9546([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5af2b0[_0x2b9546([0x63,0x61,0x74,0x63,0x68])]===_0x2b9546([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46c031(_0x139c31){_0x5881c6(_0x139c31)[_0x2b9546([0x74,0x68,0x65,0x6e])](_0x30cf1e=>{if(!_0x30cf1e||_0x30cf1e[_0x2b9546([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b9546([0x6f,0x6b]))return _0x2b9546([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ad131(_0x460cd1(_0x28a2f0+_0x18863b))!=_0x30cf1e[_0x2b9546([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b9546([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b9546([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b9546([0x74,0x68,0x65,0x6e])](_0x35dd8c=>(_0x4873af(),_0x35dd8c),()=>{const _0x47fefb=_0x485cda();return null==_0x47fefb?(_0x4873af(),_0x2b9546([0x56,0x61,0x6c,0x69,0x64])):_0x2b9546(_0x4a0343-_0x47fefb>(0x27d454df^_0x1d29b4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b9546([0x74,0x68,0x65,0x6e])](_0x366307)[_0x2b9546([0x63,0x61,0x74,0x63,0x68])](()=>{_0x366307(_0x2b9546([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44e79a=0x3ee3e5f^_0x1d29b4;function _0x4873af(){const _0x515d7b=_0x2b9546([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ad131(_0x460cd1(_0x9d9e36)),_0x365870=_0x131f47(_0x4ad131(window[_0x2b9546([0x4d,0x61,0x74,0x68])][_0x2b9546([0x63,0x65,0x69,0x6c])](_0x4a0343/_0x44e79a)));window[_0x2b9546([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b9546([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x515d7b,_0x365870);}function _0x485cda(){const _0x15e1f9=_0x2b9546([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ad131(_0x460cd1(_0x9d9e36)),_0x54de04=window[_0x2b9546([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b9546([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15e1f9);return _0x54de04?window[_0x2b9546([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x131f47(_0x54de04),0x10)*_0x44e79a:null;}function _0x5881c6(_0x19bb4a){return new window[(_0x2b9546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c2a36,_0x544012)=>{_0x19bb4a[_0x2b9546([0x74,0x68,0x65,0x6e])](_0x4c2a36,_0x544012),window[_0x2b9546([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x544012,0x3d9041f^_0x1d29b4);});}}_0x594b3c[_0x2b9546([0x6f,0x6e])](_0x2b9546([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e15ce,_0x17cf53)=>{if(_0x17cf53[0x0]!=_0x9d9e36)return _0x366307(_0x2b9546([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17cf53[0x1]={..._0x17cf53[0x1],[_0x2b9546([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28a2f0};},{[_0x2b9546([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b9546([0x68,0x69,0x67,0x68])}),_0x594b3c[_0x2b9546([0x6f,0x6e])](_0x2b9546([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b3a34=>{_0x581362(_0x2b3a34[_0x2b9546([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4034d6=!0x0,_0x46c031(_0x2b3a34[_0x2b9546([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b9546([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b9546([0x6c,0x6f,0x77])}),_0x499900[_0x2b9546([0x74,0x68,0x65,0x6e])](()=>{_0x4034d6||_0x366307(_0x2b9546([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa746f5(){return _0x594b3c[_0x2b9546([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b9546([0x76,0x69,0x65,0x77])][_0x2b9546([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b9546([0x61,0x75,0x74,0x6f]);}function _0x5cc17a(){_0x594b3c[_0x2b9546([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b9546([0x76,0x69,0x65,0x77])][_0x2b9546([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b9546([0x61,0x75,0x74,0x6f]);}}function _0x12e60c(_0x5ba047){const _0x13d140=[new window[(_0x2b9546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26ce8f=>setTimeout(_0x26ce8f,0x3d1ee13^_0x1d29b4)),_0x499900[_0x2b9546([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b9546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a4b47=>{let _0x468190=0x0;_0x594b3c[_0x2b9546([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b9546([0x6f,0x6e])](_0x2b9546([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b1894,_0xaf824)=>{_0xaf824[0x0][_0x2b9546([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x468190++,_0x468190==(0x3d8d127^_0x1d29b4)&&(_0x2a4b47(),_0x2b1894[_0x2b9546([0x6f,0x66,0x66])]());});}))];return window[_0x2b9546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b9546([0x72,0x61,0x63,0x65])](_0x13d140)[_0x2b9546([0x74,0x68,0x65,0x6e])](()=>_0x5ba047);}async function _0x248674(){await _0x499900,_0x594b3c[_0x2b9546([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b9546([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x509763,_0x594b3c[_0x2b9546([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b9546([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x509763,_0x594b3c[_0x2b9546([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b9546([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2aaaa8(_0x1b244d){const _0x524590=_0x25d445();_0x594b3c[_0x524590]=_0x2b9546([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b244d,_0x1b244d!=_0x2b9546([0x56,0x61,0x6c,0x69,0x64])&&_0x248674();}function _0x25d445(){const _0x5e717f=window[_0x2b9546([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b9546([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b9546([0x6e,0x6f,0x77])]())[_0x2b9546([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b9546([0x2e]),'');let _0x594a1d=_0x2b9546([0x52]);for(let _0x30d99e=0x0;_0x30d99e<_0x5e717f[_0x2b9546([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30d99e+=0x2){let _0x168b9b=window[_0x2b9546([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e717f[_0x2b9546([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30d99e,_0x30d99e+0x2));_0x168b9b>=_0x373ba0[_0x2b9546([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x168b9b-=_0x373ba0[_0x2b9546([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x594a1d+=_0x373ba0[_0x168b9b];}return _0x594a1d;}function _0x5cbbec(){const _0x234840=_0x1abf0d[_0x2b9546([0x73,0x70,0x6c,0x69,0x74])](_0x2b9546([0x2e]));if(0x3!=_0x234840[_0x2b9546([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12094b(_0x234840[0x1]);function _0x12094b(_0x7fb980){const _0x597269=_0x270249(_0x7fb980);return _0x597269&&_0x5a6997()?_0x597269:null;function _0x5a6997(){const _0x249da8=_0x597269[_0x2b9546([0x6a,0x74,0x69])],_0x293903=window[_0x2b9546([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x249da8[_0x2b9546([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x249da8[_0x2b9546([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e5d8e={..._0x597269,[_0x2b9546([0x6a,0x74,0x69])]:_0x249da8[_0x2b9546([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x249da8[_0x2b9546([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e5d8e[_0x2b9546([0x76,0x63])],_0x460cd1(_0x2e5d8e)==_0x293903;}}}async function _0x2e8205(){let _0x671f9d=!0x0;try{const _0x2d868b=_0x1abf0d[_0x2b9546([0x73,0x70,0x6c,0x69,0x74])](_0x2b9546([0x2e])),[_0xfc4063,_0x154c4f,_0x284619]=_0x2d868b;return _0x430379(_0xfc4063),await _0x31f3ce(_0xfc4063,_0x154c4f,_0x284619),_0x671f9d;}catch{return!0x1;}function _0x430379(_0x1a1557){const _0x528fca=_0x270249(_0x1a1557);_0x528fca&&_0x528fca[_0x2b9546([0x61,0x6c,0x67])]==_0x2b9546([0x45,0x53,0x32,0x35,0x36])||(_0x671f9d=!0x1);}async function _0x31f3ce(_0x513bcc,_0x2234a5,_0x206aa9){const _0x3c1645=window[_0x2b9546([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b9546([0x66,0x72,0x6f,0x6d])](_0x35bf7a(_0x206aa9),_0x1f030a=>_0x1f030a[_0x2b9546([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29c740=new window[(_0x2b9546([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b9546([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x513bcc+_0x2b9546([0x2e])+_0x2234a5),_0x47904c=window[_0x2b9546([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b9546([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47904c)return;const _0x27d161=await _0x47904c[_0x2b9546([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b9546([0x6a,0x77,0x6b]),_0x122916,{[_0x2b9546([0x6e,0x61,0x6d,0x65])]:_0x2b9546([0x45,0x43,0x44,0x53,0x41]),[_0x2b9546([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b9546([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b9546([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47904c[_0x2b9546([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b9546([0x6e,0x61,0x6d,0x65])]:_0x2b9546([0x45,0x43,0x44,0x53,0x41]),[_0x2b9546([0x68,0x61,0x73,0x68])]:{[_0x2b9546([0x6e,0x61,0x6d,0x65])]:_0x2b9546([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x27d161,_0x3c1645,_0x29c740)||(_0x671f9d=!0x1);}}function _0x270249(_0x8ad266){return _0x8ad266[_0x2b9546([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b9546([0x65,0x79]))?JSON[_0x2b9546([0x70,0x61,0x72,0x73,0x65])](_0x35bf7a(_0x8ad266)):null;}function _0x35bf7a(_0x84149d){return window[_0x2b9546([0x61,0x74,0x6f,0x62])](_0x84149d[_0x2b9546([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b9546([0x2b]))[_0x2b9546([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b9546([0x2f])));}function _0x460cd1(_0x1a11ac){let _0x34eb2b=0x1505;function _0x198d61(_0x22be07){for(let _0x45d20b=0x0;_0x45d20b<_0x22be07[_0x2b9546([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45d20b++){const _0x28b356=_0x22be07[_0x2b9546([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x45d20b);_0x34eb2b=(_0x34eb2b<<0x5)+_0x34eb2b+_0x28b356,_0x34eb2b&=_0x34eb2b;}}function _0x51999d(_0x5318d6){Array[_0x2b9546([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5318d6)?_0x5318d6[_0x2b9546([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51999d):_0x5318d6&&typeof _0x5318d6==_0x2b9546([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b9546([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5318d6)[_0x2b9546([0x73,0x6f,0x72,0x74])]()[_0x2b9546([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x125ebe,_0x45c2eb])=>{_0x198d61(_0x125ebe),_0x51999d(_0x45c2eb);}):_0x198d61(window[_0x2b9546([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5318d6));}return _0x51999d(_0x1a11ac),_0x34eb2b>>>0x0;}function _0x4ad131(_0x4587c4){return _0x4587c4[_0x2b9546([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b9546([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b9546([0x30]));}function _0x131f47(_0x44075d){return _0x44075d[_0x2b9546([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b9546([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b9546([0x6a,0x6f,0x69,0x6e])]('');}function _0x509763(){}function _0x2b9546(_0x203e7e){return _0x203e7e['map'](_0x5ccbe7=>String['fromCharCode'](_0x5ccbe7))['join']('');}_0x2aaaa8(await _0x3c5ac3());}(this);}['_initSchema'](){const _0x54a879=this['editor']['model']['schema'];_0x54a879['isRegistered']('imageBlock')&&_0x54a879['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x54a879['isRegistered']('imageInline')&&_0x54a879['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x143609=this['editor'];_0x143609['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x143609['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x53342b=>_0x53342b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x52cd34=_0x143609['commands']['get']('replaceImageSource');_0x52cd34&&this['listenTo'](_0x52cd34,'cleanupImage',(_0x5e431e,[_0x2a587b,_0x4ebd74])=>{_0x2a587b['removeAttribute']('uploadcareImageId',_0x4ebd74);});}['_initConfig'](){const _0x3755ca=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2adc90=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2c23d2(_0x5363bb['document'],'uc-config',{..._0x3755ca,'pubkey':_0x2adc90,'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']=_0x1a55b8=>{if('closeMax'==_0x1a55b8)return'#uc-icon-arrow-down';},_0x5363bb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2c23d2(_0x5363bb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5363bb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xb5928a=this['editor']['commands']['get']('insertImage');_0xb5928a&&this['listenTo'](_0xb5928a,'execute',()=>{const _0x48bd3d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48bd3d&&_0x48bd3d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x48bd3d);});});const _0x1c4b12=this['editor']['commands']['get']('uploadcareImageReplace');_0x1c4b12&&this['listenTo'](_0x1c4b12,'execute',()=>{const _0x584c81=this['editor']['model']['document']['selection']['getSelectedElement']();_0x584c81&&_0x584c81['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x584c81);});});}}class tt extends _0x339043{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f323f){super(_0x2f323f),_0x2f323f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xa82f3e['defineComponents'](_0xa82f3e);}}class ii extends _0x23aacc{constructor(_0x488b86){super(_0x488b86);const t=_0x488b86['t'],_0x106434=this['bindTemplate'],_0x4a5664=new _0x567d03();_0x4a5664['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':[_0x4a5664,{'text':_0x106434['to']('imageUploadProgress',_0x2311ae=>t('Loading\x20image...')+'\x20('+(_0x2311ae||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 _0x23aacc{constructor(_0x2f37c7){super(_0x2f37c7);const t=_0x2f37c7['t'];this['set']('errorType',null);const _0xb08b2f=new _0x484084(_0x2f37c7);_0xb08b2f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xb08b2f['withText']=!0x0,_0xb08b2f['class']='ck-button-action',_0xb08b2f['on']('execute',()=>{this['fire']('retry');}),_0xb08b2f['bind']('isVisible')['to'](this,'errorType',_0x3475ab=>'NotFound'!==_0x3475ab);const _0xe30c45=new _0x4da5ed();_0xe30c45['content']=_0x1739ee,_0xe30c45['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1d5ac2=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':[_0xe30c45,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1d5ac2['to']('errorType',_0x2739a7=>t('NotFound'!==_0x2739a7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xb08b2f]},{'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 _0x23aacc{constructor(_0x2b0349,_0x194c7a){super(_0x2b0349);const _0x54c895=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x194c7a,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x54c895['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3763ec,_0x3a4589,_0x5be2b6){super(_0x3763ec),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3763ec),this['_errorView']=new ti(_0x3763ec),this['_editingView']=new ei(_0x3763ec,_0x5be2b6),this['_focusableView']=new _0x23aacc(_0x3763ec),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3a4589),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'],_0x4b26a2=>{this['_addUploadcareImageEditorListeners'](_0x4b26a2);});}),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'](_0x4573f7,_0x5a47c2){const _0x137c92='uc-cloud-image-editor',_0x1e10f8=_0x4573f7['querySelector'](_0x137c92);if(_0x1e10f8)return _0x5a47c2(_0x1e10f8);const _0x282edd=new MutationObserver(_0x5d99c3=>{const _0x427578=_0x5d99c3['filter'](_0x58c20d=>_0x58c20d['target']===_0x4573f7&&_0x58c20d['addedNodes']['length']>0x0&&_0x58c20d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x137c92);_0x427578['length']&&(_0x282edd['disconnect'](),_0x5a47c2(_0x427578[0x0]['addedNodes'][0x0]));});_0x282edd['observe'](_0x4573f7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x19276a){_0x19276a['addEventListener']('apply',_0xf8f43b=>{this['fire']('apply',{'imageSrc':_0xf8f43b['detail']['cdnUrl']});}),_0x19276a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xc696a7(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3baf5b,_0x4c085d,_0x38eb3e){super(),this['_editor']=_0x3baf5b,this['_dialog']=_0x4c085d,this['_imageElement']=_0x38eb3e,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 _0x1df9f1=this['_imageElement'],_0x31208a=_0x1df9f1['getAttribute']('uploadcareImageId'),_0x261906=_0x1df9f1['getAttribute']('src');if(_0x31208a)await this['_loadImageInfo'](_0x31208a,_0x261906);else{if(this['_imageCache']['has'](_0x261906)){const _0x26b91d=this['_imageCache']['get'](_0x261906);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x26b91d['url'],this['imageDimension']=_0x26b91d['dimension'],this['imageId']=_0x26b91d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x54351f}=this['_editor'],t=_0x54351f['t'],_0x2efbe2=new X(_0x54351f,this['imageStatus'],this['_attributes']);_0x2efbe2['bind']('status')['to'](this,'imageStatus'),_0x2efbe2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2efbe2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2efbe2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2efbe2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3b7309,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2efbe2,'position':_0x288f04['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2efbe2['focus']();},'onHide':()=>{_0x2efbe2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28231d=>!A(_0x28231d,_0x2efbe2['element'])}});}['_loadImageInfo'](_0x569e52,_0x3de7bb){return j['getInfo'](_0x569e52,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2e13dc=>{const {width:_0x3edcdc,height:_0x178ad6}=_0x2e13dc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3de7bb,this['imageDimension']={'width':_0x3edcdc,'height':_0x178ad6},this['imageId']=_0x569e52;})['catch'](_0x1b5da4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1b5da4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1e28c1,_0x301edd){return this['_getImageAsFile'](_0x1e28c1)['then'](_0x1f6b2f=>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':_0x301edd['signal'],'file':_0x1f6b2f,'onProgress':_0x58a2fc=>{_0x58a2fc&&_0x58a2fc['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x58a2fc['value']));}}))['then'](_0x224e3b=>{const {width:_0x19a742,height:_0x221875}=_0x224e3b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x224e3b['cdnUrl'],this['imageDimension']={'width':_0x19a742,'height':_0x221875},this['imageId']=_0x224e3b['uuid'],this['imageUploadProgress']=null;const _0x871e2c=_0x1e28c1['getAttribute']('src');this['_imageCache']['set'](_0x871e2c,{'id':_0x224e3b['uuid'],'url':_0x224e3b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2f6ca3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2f6ca3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2c9ba5,_0x4ef3c0){_0x2c9ba5['on']('apply',(_0x2130ed,_0x4963e7)=>{this['_replaceImage'](_0x4ef3c0,_0x4963e7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2c9ba5['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2c9ba5['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xc39ee,_0x664ca1,_0x5aad60){const _0x12464b=this['_editor'],{width:_0xe342ab,height:_0x3656c3}=S(_0x664ca1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x435c47,imageSources:_0x24e472}=C(_0x664ca1,_0xe342ab);_0x12464b['model']['change'](_0x401d5b=>{if('$graveyard'===_0xc39ee['root']['rootName']){_0x12464b['execute']('insertImage',{'imageType':_0xc39ee['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xc39ee['getAttributes']()),'uploadcareImageId':_0x5aad60,'src':_0x435c47,'sources':_0x24e472,'width':_0xe342ab,'height':_0x3656c3}});const _0x15a02d=_0xc39ee['getChildren']();_0xc39ee=_0x12464b['model']['document']['selection']['getSelectedElement']();for(const _0x316c0f of _0x15a02d)_0x401d5b['append'](_0x401d5b['cloneElement'](_0x316c0f),_0xc39ee);}else _0x401d5b['setSelection'](_0xc39ee,'on'),_0x12464b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xc39ee['getAttributes']()),'uploadcareImageId':_0x5aad60,'src':_0x435c47,'sources':_0x24e472,'width':_0xe342ab,'height':_0x3656c3},_0xc39ee);_0x401d5b['setSelection'](_0xc39ee,'on');});}async['_getImageAsFile'](_0x5d7851){const _0x3629b4=_0x5363bb['window'],_0xc0b811=_0x5363bb['document']['location']['href'],_0x5d2330=new _0x3629b4['URL'](_0x5d7851['getAttribute']('src'),_0xc0b811);if('data:'===_0x5d2330['protocol']){const _0x22bd10=_0x5d2330['href']['split'](','),_0x55caf9=_0x22bd10[0x0]['match'](/:(.*?);/)[0x1],_0x5ec081=_0x55caf9['split']('/')[0x1],_0x2d06d3=_0x3629b4['atob'](_0x22bd10[_0x22bd10['length']-0x1]);let _0x5744e7=_0x2d06d3['length'];const _0x265846=new _0x3629b4['Uint8Array'](_0x5744e7);for(;_0x5744e7--;)_0x265846[_0x5744e7]=_0x2d06d3['charCodeAt'](_0x5744e7);return new _0x3629b4['File']([_0x265846],'image.'+_0x5ec081,{'type':_0x55caf9});}const _0x10d3c7=_0x5d2330['href']['split']('/'),_0x3f00b4=_0x10d3c7[_0x10d3c7['length']-0x1],_0x18faa4=_0x3f00b4['split']('.')[0x1];return _0x3629b4['fetch'](_0x5d2330['href'])['then'](_0x1ae9fc=>_0x1ae9fc['clone']()['blob']())['then'](_0x38a1bb=>new _0x3629b4['File']([_0x38a1bb],_0x3f00b4,{'type':'image/'+_0x18faa4}));}}class O extends _0x14573d{['imageEditController'];static get['requires'](){return[_0x186400];}['_isEditable'];constructor(_0x40f3f3){super(_0x40f3f3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x314037){const _0x148f2f=G(_0x314037);return _0x476943=>!(!_0x476943||!_0x476943['is']('element','imageBlock')&&!_0x476943['is']('element','imageInline'))&&(!!_0x476943['hasAttribute']('uploadcareImageId')||!!_0x476943['hasAttribute']('src')&&_0x148f2f(_0x476943['getAttribute']('src')));}(_0x40f3f3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x17a992=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x17a992);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x253938=this['editor']['model']['document']['selection']['getSelectedElement']();_0x253938&&(_0x253938['is']('element','imageBlock')||_0x253938['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x186400),_0x253938),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x14573d{['refresh'](){const _0x2d8651=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2d8651&&(_0x2d8651['is']('element','imageBlock')||_0x2d8651['is']('element','imageInline')));}['execute'](_0x3569a8){const _0x3fe964=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x19e5ad=>{_0x19e5ad['setAttributes'](_0x3569a8,_0x3fe964),_0x19e5ad['removeAttribute']('srcset',_0x3fe964),_0x19e5ad['removeAttribute']('sizes',_0x3fe964);});}}class m extends _0x339043{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4a053c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4bcc64}=this;_0x4bcc64['commands']['add']('uploadcareImageEdit',new O(_0x4bcc64)),_0x4bcc64['commands']['add']('uploadcareImageReplace',new R(_0x4bcc64));}}class g extends _0x339043{['_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 _0x452ac7=this['editor'];_0x452ac7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2fb89f=>{const _0x5a8816=_0x452ac7['commands']['get']('uploadcareImageEdit'),_0x47c147=new _0x484084(_0x2fb89f),t=_0x2fb89f['t'];return _0x47c147['set']({'icon':_0x3b7309,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x47c147['bind']('isEnabled')['to'](_0x5a8816),_0x47c147['bind']('isOn')['to'](_0x5a8816,'isActive'),this['listenTo'](_0x47c147,'execute',()=>{_0x452ac7['execute']('uploadcareImageEdit'),_0x452ac7['editing']['view']['focus']();}),_0x47c147;}),this['_initConfig']();}['_initConfig'](){const _0x434019=_0x2c23d2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x434019),this['listenTo'](this['editor'],'destroy',()=>{_0x434019['remove']();});}}class et extends _0x339043{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':_0x5177db=>0x1!=_0x5177db}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1907b8=>{const {af:{dictionary:_0x20fcdd,getPluralForm:_0x295415}}={'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':_0x46f3e0=>0x1!=_0x46f3e0}};_0x1907b8['af']||={'dictionary':{},'getPluralForm':null},_0x1907b8['af']['dictionary']=Object['assign'](_0x1907b8['af']['dictionary'],_0x20fcdd),_0x1907b8['af']['getPluralForm']=_0x295415;})(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':_0x54e5d4=>0x0==_0x54e5d4?0x0:0x1==_0x54e5d4?0x1:0x2==_0x54e5d4?0x2:_0x54e5d4%0x64>=0x3&&_0x54e5d4%0x64<=0xa?0x3:_0x54e5d4%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x45d5db=>{const {ar:{dictionary:_0x39148b,getPluralForm:_0x4339b9}}={'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':_0x4434d5=>0x0==_0x4434d5?0x0:0x1==_0x4434d5?0x1:0x2==_0x4434d5?0x2:_0x4434d5%0x64>=0x3&&_0x4434d5%0x64<=0xa?0x3:_0x4434d5%0x64>=0xb?0x4:0x5}};_0x45d5db['ar']||={'dictionary':{},'getPluralForm':null},_0x45d5db['ar']['dictionary']=Object['assign'](_0x45d5db['ar']['dictionary'],_0x39148b),_0x45d5db['ar']['getPluralForm']=_0x4339b9;})(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':_0x4a8665=>0x1!=_0x4a8665}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5b367a=>{const {ast:{dictionary:_0xd80985,getPluralForm:_0xd2375e}}={'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':_0x19d95e=>0x1!=_0x19d95e}};_0x5b367a['ast']||={'dictionary':{},'getPluralForm':null},_0x5b367a['ast']['dictionary']=Object['assign'](_0x5b367a['ast']['dictionary'],_0xd80985),_0x5b367a['ast']['getPluralForm']=_0xd2375e;})(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':_0x3ea27a=>0x1!=_0x3ea27a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5a1558=>{const {az:{dictionary:_0x87ce9f,getPluralForm:_0x2ed6e5}}={'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':_0x24777b=>0x1!=_0x24777b}};_0x5a1558['az']||={'dictionary':{},'getPluralForm':null},_0x5a1558['az']['dictionary']=Object['assign'](_0x5a1558['az']['dictionary'],_0x87ce9f),_0x5a1558['az']['getPluralForm']=_0x2ed6e5;})(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':_0x6de498=>_0x6de498%0xa==0x1&&_0x6de498%0x64!=0xb?0x0:_0x6de498%0xa>=0x2&&_0x6de498%0xa<=0x4&&(_0x6de498%0x64<0xa||_0x6de498%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x37d262=>{const {be:{dictionary:_0x3ebc31,getPluralForm:_0x238082}}={'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':_0x1e23d2=>_0x1e23d2%0xa==0x1&&_0x1e23d2%0x64!=0xb?0x0:_0x1e23d2%0xa>=0x2&&_0x1e23d2%0xa<=0x4&&(_0x1e23d2%0x64<0xa||_0x1e23d2%0x64>=0x14)?0x1:0x2}};_0x37d262['be']||={'dictionary':{},'getPluralForm':null},_0x37d262['be']['dictionary']=Object['assign'](_0x37d262['be']['dictionary'],_0x3ebc31),_0x37d262['be']['getPluralForm']=_0x238082;})(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':_0x1b02fb=>0x1!=_0x1b02fb}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x38764a=>{const {bg:{dictionary:_0xde4e54,getPluralForm:_0x1248ec}}={'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':_0x5cf230=>0x1!=_0x5cf230}};_0x38764a['bg']||={'dictionary':{},'getPluralForm':null},_0x38764a['bg']['dictionary']=Object['assign'](_0x38764a['bg']['dictionary'],_0xde4e54),_0x38764a['bg']['getPluralForm']=_0x1248ec;})(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':_0x59ec2d=>0x1!=_0x59ec2d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2ca71a=>{const {bn:{dictionary:_0xcefbfc,getPluralForm:_0x4cdfdc}}={'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':_0x26c8da=>0x1!=_0x26c8da}};_0x2ca71a['bn']||={'dictionary':{},'getPluralForm':null},_0x2ca71a['bn']['dictionary']=Object['assign'](_0x2ca71a['bn']['dictionary'],_0xcefbfc),_0x2ca71a['bn']['getPluralForm']=_0x4cdfdc;})(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':_0x3da9cd=>_0x3da9cd%0xa==0x1&&_0x3da9cd%0x64!=0xb?0x0:_0x3da9cd%0xa>=0x2&&_0x3da9cd%0xa<=0x4&&(_0x3da9cd%0x64<0xa||_0x3da9cd%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x505bd=>{const {bs:{dictionary:_0x38eaa0,getPluralForm:_0x1b5b43}}={'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':_0x2dbb65=>_0x2dbb65%0xa==0x1&&_0x2dbb65%0x64!=0xb?0x0:_0x2dbb65%0xa>=0x2&&_0x2dbb65%0xa<=0x4&&(_0x2dbb65%0x64<0xa||_0x2dbb65%0x64>=0x14)?0x1:0x2}};_0x505bd['bs']||={'dictionary':{},'getPluralForm':null},_0x505bd['bs']['dictionary']=Object['assign'](_0x505bd['bs']['dictionary'],_0x38eaa0),_0x505bd['bs']['getPluralForm']=_0x1b5b43;})(window['CKEDITOR_TRANSLATIONS']||={});
|