@ckeditor/ckeditor5-uploadcare 47.0.0-alpha.2 → 47.0.0-alpha.3
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 _0x5bfe0c,Command as _0x4c1c6d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1e45e4,IconGooglePhotos as _0x32f635,IconGoogleDrive as _0x142197,IconFacebook as _0x2c2c11,IconDropbox as _0x50affa,IconUploadcareLink as _0x10d1c3,IconUploadcareImageUpload as _0x18365a,IconError as _0x35b2ba,IconUploadcareImageEdit as _0x3e6297}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x423e3c,MenuBarMenuListItemButtonView as _0x1161a5,View as _0x4e80b5,FocusCycler as _0x11b58a,Dialog as _0x26cbc5,DialogViewPosition as _0x21f318,SpinnerView as _0x2b7c29,IconView as _0x1f5962,Notification as _0x1784a8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x24d962,DomEmitterMixin as _0xa78e4a,global as _0x114eac,getAncestors as _0x57640a,ObservableMixin as _0x54ab8e,uid as _0x5b9632,createElement as _0x3bf792}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x59647a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1b1d23,info as _0x50bf52}from'@uploadcare/upload-client';import*as _0x2f4d27 from'@uploadcare/file-uploader';var i=function(_0x4f41b5){return _0x4f41b5['Local']='local',_0x4f41b5['URL']='url',_0x4f41b5['Dropbox']='dropbox',_0x4f41b5['GDrive']='gdrive',_0x4f41b5['Facebook']='facebook',_0x4f41b5['GPhotos']='gphotos',_0x4f41b5['OneDrive']='onedrive',_0x4f41b5;}({});function _(_0x5580b7,_0x5f5380,_0x53dc85){const t=_0x5580b7['t'],_0x37219d=_0x5580b7['t'];switch(_0x5f5380){case i['Local']:return{'text':_0x37219d('Insert'===_0x53dc85?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x37219d('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x53dc85?_0x37219d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x37219d('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x53dc85?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x53dc85?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x53dc85?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x53dc85?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x53dc85?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5f5380;}}class e extends _0x5bfe0c{['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 _0x11677b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x491359;for(const _0x51e987 in _0x11677b){const _0x18b210=_0x51e987,_0x282afb=_0x11677b[_0x18b210];if('uploadcareLicenseKeyValid'==_0x282afb||'uploadcareLicenseKeyInvalid'==_0x282afb||'uploadcareLicenseKeyExpired'==_0x282afb||'uploadcareLicenseKeyDomainLimit'==_0x282afb||'uploadcareLicenseKeyNotAllowed'==_0x282afb||'uploadcareLicenseKeyEvaluationLimit'==_0x282afb||'uploadcareLicenseKeyTrialLimit'==_0x282afb||'uploadcareLicenseKeyUsageLimit'==_0x282afb){delete _0x11677b[_0x18b210],_0x491359=_0x282afb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x491359&&_0x11677b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x491359&&_0x11677b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x491359&&_0x11677b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x491359&&_0x11677b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x491359&&_0x11677b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x491359&&_0x11677b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x491359&&_0x11677b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4528b3}=this,_0x427013=_0x4528b3['commands']['get']('uploadcare');if(!_0x427013)return;const _0x26cc3a=this['_normalizeConfigSourceList'](_0x4528b3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5ab730,_0x1474f7)=>{const _0x30db92=this['_getIntegrationKey'](_0x1474f7['type']);return _0x5ab730[_0x30db92]||(_0x5ab730[_0x30db92]=[]),_0x5ab730[_0x30db92]['push'](_0x1474f7),_0x5ab730;},{});_0x4528b3['plugins']['has']('ImageInsertUI')&&_0x4528b3['commands']['get']('uploadcare')&&Object['entries'](_0x26cc3a)['forEach'](([_0x7edd83,_0x23234d])=>{_0x4528b3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x7edd83,'observable':()=>_0x427013,'buttonViewCreator':()=>this['_createToolbarButton'](_0x23234d),'formViewCreator':()=>this['_createDropdownButtons'](_0x23234d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x23234d),'override':'assetManager'!==_0x7edd83});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3e4042){const {locale:_0x39fe42}=this['editor'];return _0x3e4042['map'](_0x3571aa=>{const _0x221083=_(_0x39fe42,_0x3571aa,'Insert');switch(_0x3571aa){case i['Local']:return{'icon':_0x18365a,'type':i['Local'],..._0x221083};case i['URL']:return{'icon':_0x10d1c3,'type':i['URL'],..._0x221083};case i['Dropbox']:return{'icon':_0x50affa,'type':i['Dropbox'],..._0x221083};case i['Facebook']:return{'icon':_0x2c2c11,'type':i['Facebook'],..._0x221083};case i['GDrive']:return{'icon':_0x142197,'type':i['GDrive'],..._0x221083};case i['GPhotos']:return{'icon':_0x32f635,'type':i['GPhotos'],..._0x221083};case i['OneDrive']:return{'icon':_0x1e45e4,'type':i['OneDrive'],..._0x221083};}});}['_getIntegrationKey'](_0x319a09){switch(_0x319a09){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x424cf4,_0x2dda05){const _0x5d5c0a=this['editor'],_0x4f68e8=new _0x424cf4(_0x5d5c0a['locale']),_0xe1d9c5=_0x5d5c0a['commands']['get']('uploadcare');return _0x4f68e8['bind']('isEnabled')['to'](_0xe1d9c5),_0x4f68e8['on']('execute',()=>{_0xe1d9c5['execute'](_0x2dda05);}),_0x4f68e8;}['_createToolbarButton'](_0x44c145){const {locale:_0x65c75b}=this['editor'],_0x5516c0=this['editor']['plugins']['get']('ImageInsertUI'),_0x3c4198=_0x44c145[0x0],_0x582311=this['_createButton'](_0x423e3c,_0x3c4198['type']);return _0x582311['icon']=_0x3c4198['icon'],_0x582311['bind']('label')['to'](_0x5516c0,'isImageSelected',_0x1155eb=>_(_0x65c75b,_0x3c4198['type'],_0x1155eb?'Replace':'Insert')['text']),_0x582311['tooltip']=!0x0,_0x582311;}['_createDropdownButtons'](_0x410ffa){const {locale:_0x877358}=this['editor'],_0x645b8e=this['editor']['plugins']['get']('ImageInsertUI');return _0x410ffa['map'](_0x1bfe6a=>{const _0x17badf=this['_createButton'](_0x423e3c,_0x1bfe6a['type']);return _0x17badf['withText']=!0x0,_0x17badf['icon']=_0x1bfe6a['icon'],_0x17badf['bind']('label')['to'](_0x645b8e,'isImageSelected',_0x5c895c=>_(_0x877358,_0x1bfe6a['type'],_0x5c895c?'Replace':'Insert')['text']),_0x17badf;});}['_createMenuBarButtons'](_0xb93986){return _0xb93986['map'](_0xb6f9b3=>{const _0xad640e=this['_createButton'](_0x1161a5,_0xb6f9b3['type']);return _0xad640e['icon']=_0xb6f9b3['icon'],_0xad640e['label']=_0xb6f9b3['shortText'],_0xad640e;});}}class F extends _0x4e80b5{['focusTracker'];['focusCycler'];constructor(_0xe723bc){super(_0xe723bc),this['focusTracker']=new _0x24d962(),this['focusCycler']=new _0x11b58a({'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(_0x8eebcf,_0x106562){super(_0x8eebcf),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-'+_0x106562}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x51000d,_0x3db196){const _0x5d622c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x75e287=>_0x75e287<=_0x3db196)['map'](_0xe8a69=>_0x51000d['replace'](/\/$/,'')+'/-/resize/'+_0xe8a69+'x/\x20'+_0xe8a69+'w');return{'imageFallbackUrl':_0x51000d,'imageSources':[{'srcset':_0x5d622c['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3db196+'px)\x20100vw,\x20'+_0x3db196+'px','type':'image/webp'}]};}function S(_0x48b28a,_0x5ee7fe,_0x1f9849){const _0x4b5157=_0x48b28a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4b5157?parseInt(_0x4b5157[0x1],0xa):_0x5ee7fe,'height':_0x4b5157?parseInt(_0x4b5157[0x2],0xa):_0x1f9849};}function p(_0x16c93f,_0x545035){const _0x19ab8d=new(_0xa78e4a())(),_0x18cfb9=_0x16c93f['plugins']['get']('ImageUtils'),_0x2928a1=_0x16c93f['editing']['mapper']['toViewElement'](_0x545035),_0x312649=_0x18cfb9['findViewImgElement'](_0x2928a1),_0x5593af=_0x16c93f['editing']['view']['domConverter']['viewToDom'](_0x312649),_0x5976=_0x545035['getAttribute']('width'),_0x492ed8=_0x545035['getAttribute']('height'),_0x183116='image-processing';_0x16c93f['editing']['view']['change'](_0x2f961a=>{_0x2f961a['addClass'](_0x183116,_0x2928a1),_0x2f961a['setStyle']('aspect-ratio',_0x5976+'/'+_0x492ed8,_0x312649);}),_0x19ab8d['listenTo'](_0x5593af,'load',()=>{_0x19ab8d['stopListening'](_0x5593af,'load'),_0x16c93f['editing']['view']['change'](_0x356491=>{_0x356491['removeClass'](_0x183116,_0x2928a1),_0x356491['removeStyle']('aspect-ratio',_0x312649);});});}function G(_0x43b16d){if(Array['isArray'](_0x43b16d)){const _0x24ac30=_0x43b16d['map'](G);return _0x57479b=>_0x24ac30['some'](_0x239cd0=>_0x239cd0(_0x57479b));}if('origin'==_0x43b16d){const _0x3951da=_0x114eac['window']['location']['origin'];return _0x628c11=>new URL(_0x628c11,_0x114eac['document']['baseURI'])['origin']==_0x3951da;}return'function'==typeof _0x43b16d?_0x43b16d:_0x43b16d instanceof RegExp?_0x1e1cb8=>!(!_0x1e1cb8['match'](_0x43b16d)&&!_0x1e1cb8['replace'](/^https?:\/\//,'')['match'](_0x43b16d)):()=>!0x1;}function A(_0x51f25f,_0x416607){return _0x57640a(_0x51f25f['target'])['includes'](_0x416607);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x54ab8e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x9f1ab,_0x5ee21b,_0x1db5ec){super(),this['_editor']=_0x9f1ab,this['_editing']=_0x5ee21b,this['_dialog']=_0x9f1ab['plugins']['get'](_0x26cbc5),this['_api']=_0x5ee21b['ctxElement']['getAPI'](),this['_type']=_0x1db5ec,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:_0x288705,model:_0x1df790}=this['_editor'],_0x1b8db0=_0x1df790['document']['selection']['getSelectedElement'](),_0x19a536=_0x1b8db0&&(_0x1b8db0['is']('element','imageBlock')||_0x1b8db0['is']('element','imageInline'));this['_formView']=new x(_0x288705,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x18365a,'title':_(_0x288705,this['_type'],_0x19a536?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x21f318['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x44a494=>!A(_0x44a494,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4b01c0}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x102c55=>{const _0x3fa031=_0x4b01c0['length'];for(const _0x1c8ba5 of _0x4b01c0){const _0x40e374=_0x1c8ba5===_0x4b01c0[_0x3fa031-0x1],{cdnUrl:_0xd96289,fileInfo:_0x9997c6}=_0x1c8ba5;if(!_0xd96289||!_0x9997c6)continue;const {width:_0x892bdf,height:_0x287b1c}=_0x9997c6['imageInfo'],_0x1c9e64=S(_0xd96289,_0x892bdf,_0x287b1c),_0x3a111f=C(_0xd96289,_0x1c9e64['width']),_0x227971={'id':_0x9997c6['uuid'],'type':'image','attributes':{'imageDimension':_0x1c9e64,..._0x3a111f}};this['_insertAsset'](_0x227971,_0x40e374,_0x102c55);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2d41bc=>{'idle'===_0x2d41bc['detail']['status']&&!_0x2d41bc['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3cc5e,_0x176cd1,_0x11d9d1){const _0x9662b=this['_editor']['model']['document']['selection'],_0xb7cb8d=_0x9662b['getSelectedElement'](),_0x56b88a=!(!_0xb7cb8d||!_0xb7cb8d['is']('element','imageInline'));_0x11d9d1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3cc5e,_0x56b88a),_0x176cd1||_0x11d9d1['setSelection'](_0x9662b['getLastPosition']());}['_insertImage'](_0x52d9db,_0x56347e){const _0x578f34=this['_editor'],{imageDimension:_0x4da631,imageFallbackUrl:_0x5abe00,imageSources:_0x2c40ff}=_0x52d9db['attributes'];_0x578f34['execute']('insertImage',{'imageType':_0x56347e?'imageInline':null,'source':{'uploadcareImageId':_0x52d9db['id'],'src':_0x5abe00,'sources':_0x2c40ff,..._0x4da631}});}}class w extends _0x4c1c6d{['_editing'];['_controller']=null;static get['requires'](){return[_0x26cbc5,o];}constructor(_0x1039dd){super(_0x1039dd),this['_editing']=_0x1039dd['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3b47cb){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3b47cb);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4dcf07,..._0x28dcd2}){return _0x1b1d23(_0x4dcf07,_0x28dcd2);}static['getInfo'](_0x26b164,_0x38f688){return _0x50bf52(_0x26b164,_0x38f688);}}class f extends _0x5bfe0c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x59647a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x331088=this['editor'];if(!!!_0x331088['config']['get']('uploadcare'))return;_0x331088['plugins']['get'](_0x59647a)['createUploadAdapter']=_0x5f5cbf=>new k(_0x5f5cbf,_0x331088),_0x331088['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x483d85,{imageElement:_0x4633e3,data:_0x9682f8})=>{_0x331088['model']['change'](_0x3ef603=>{_0x3ef603['setAttribute']('uploadcareImageId',_0x9682f8['uploadcareImageId'],_0x4633e3);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x35c550,_0x3d1320){this['loader']=_0x35c550,this['editor']=_0x3d1320,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2ac324=await this['loader']['file'];return j['upload']({'file':_0x2ac324,'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':_0xead1d0=>{_0xead1d0&&_0xead1d0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xead1d0['value']);}})['then'](async _0xb70b90=>{const {imageFallbackUrl:_0x43dad3,imageSources:_0x317b42}=C(_0xb70b90['cdnUrl'],_0xb70b90['imageInfo']['width']);return{'uploadcareImageId':_0xb70b90['uuid'],'default':_0x43dad3,'sources':_0x317b42};})['catch'](()=>{const _0x41663c=t('Cannot\x20upload\x20file:')+('\x20'+_0x2ac324['name']+'.');return Promise['reject'](_0x41663c);});}['abort'](){this['controller']['abort']();}}class o extends _0x5bfe0c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x26cbc5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x50d943){super(_0x50d943),this['ucContextId']=_0x5b9632();}['init'](){const _0xd21ca8=this['editor'];_0xd21ca8['commands']['add']('uploadcare',new w(_0xd21ca8));}['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 _0x377d4f=_0x114eac['document']['querySelector']('input[uploadcare-file-input]');_0x377d4f&&_0x377d4f['remove']();}),async function(_0x38c1e6){const _0x4407cd=_0x2f428e([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]),_0x1035d2=0x3d8d0df,_0x27a719=0x3dfa4a7^_0x1035d2,_0x2666da=window[_0x2f428e([0x44,0x61,0x74,0x65])][_0x2f428e([0x6e,0x6f,0x77])](),_0x3a1b5b=_0x38c1e6[_0x2f428e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a0f03=new window[(_0x2f428e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b83d3=>{_0x3a1b5b[_0x2f428e([0x6f,0x6e,0x63,0x65])](_0x2f428e([0x72,0x65,0x61,0x64,0x79]),_0x3b83d3);}),_0x38a419={[_0x2f428e([0x6b,0x74,0x79])]:_0x2f428e([0x45,0x43]),[_0x2f428e([0x75,0x73,0x65])]:_0x2f428e([0x73,0x69,0x67]),[_0x2f428e([0x63,0x72,0x76])]:_0x2f428e([0x50,0x2d,0x32,0x35,0x36]),[_0x2f428e([0x78])]:_0x2f428e([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]),[_0x2f428e([0x79])]:_0x2f428e([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]),[_0x2f428e([0x61,0x6c,0x67])]:_0x2f428e([0x45,0x53,0x32,0x35,0x36])},_0x50f9ce=_0x3a1b5b[_0x2f428e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f428e([0x67,0x65,0x74])](_0x2f428e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40054d(){let _0x3e12cb,_0x176803=null,_0x1bc2b2=null;try{if(_0x50f9ce==_0x2f428e([0x47,0x50,0x4c]))return _0x2f428e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e12cb=_0x26f798(),!_0x3e12cb)return _0x2f428e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e12cb[_0x2f428e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bc2b2=_0x40c068(_0x3e12cb[_0x2f428e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e12cb[_0x2f428e([0x6a,0x74,0x69])])),await _0x9873c9()?_0x32ea6f()?_0x1f03a1()?_0x2f428e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3ecc8a()?(_0x3e12cb[_0x2f428e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f428e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x176803=_0x45fa5b(_0x2f428e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e12cb[_0x2f428e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f428e([0x74,0x72,0x69,0x61,0x6c])&&(_0x176803=_0x45fa5b(_0x2f428e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x570974()):_0x2f428e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f428e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f428e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f428e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f03a1(){const _0x4c96aa=[_0x2f428e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f428e([0x74,0x72,0x69,0x61,0x6c])][_0x2f428e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e12cb[_0x2f428e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2666da/0x3e8:0xe10*_0x27a719;return _0x3e12cb[_0x2f428e([0x65,0x78,0x70])]<_0x4c96aa;}function _0x32ea6f(){const _0x238633=_0x3e12cb[_0x2f428e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x238633&&(!!_0x238633[_0x2f428e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f428e([0x2a]))||!!_0x238633[_0x2f428e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f428e([0x55,0x50,0x4c,0x43])));}function _0x3ecc8a(){const _0x170d60=_0x3e12cb[_0x2f428e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x170d60||0x0==_0x170d60[_0x2f428e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x497fe9}=new URL(window[_0x2f428e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x170d60[_0x2f428e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x497fe9))return!0x0;const _0x5b6cc0=_0x497fe9[_0x2f428e([0x73,0x70,0x6c,0x69,0x74])](_0x2f428e([0x2e]));return _0x170d60[_0x2f428e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31ee37=>_0x31ee37[_0x2f428e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f428e([0x2a])))[_0x2f428e([0x6d,0x61,0x70])](_0x79deee=>_0x79deee[_0x2f428e([0x73,0x70,0x6c,0x69,0x74])](_0x2f428e([0x2e])))[_0x2f428e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b5fdd=>_0x3b5fdd[_0x2f428e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b6cc0[_0x2f428e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f428e([0x6d,0x61,0x70])](_0x3bb774=>Array(_0x5b6cc0[_0x2f428e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3bb774[_0x2f428e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f428e([0x66,0x69,0x6c,0x6c])](_0x3bb774[0x0]===_0x2f428e([0x2a])?_0x2f428e([0x2a]):'')[_0x2f428e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3bb774))[_0x2f428e([0x73,0x6f,0x6d,0x65])](_0x104763=>_0x5b6cc0[_0x2f428e([0x65,0x76,0x65,0x72,0x79])]((_0x2b020a,_0x4c8af8)=>_0x104763[_0x4c8af8]===_0x2b020a||_0x104763[_0x4c8af8]===_0x2f428e([0x2a])));}function _0x570974(){return _0x176803&&_0x1bc2b2?new window[(_0x2f428e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51dfdd,_0x4085ab)=>{_0x176803[_0x2f428e([0x74,0x68,0x65,0x6e])](_0x51dfdd,_0x4085ab),_0x1bc2b2[_0x2f428e([0x74,0x68,0x65,0x6e])](_0x484f9b=>{_0x484f9b!=_0x2f428e([0x56,0x61,0x6c,0x69,0x64])&&_0x51dfdd(_0x484f9b);},_0x4085ab);}):_0x176803||_0x1bc2b2||_0x2f428e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40c068(_0x4f9e45,_0x5aaf2f){return new window[(_0x2f428e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a04b8=>{if(_0x469112())return _0x4a04b8(_0x2f428e([0x56,0x61,0x6c,0x69,0x64]));_0x599401(),_0x3a1b5b[_0x2f428e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f428e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x86b897=!0x1;const _0x41ed9a=_0x5b9632();function _0xaba758(_0x5ef4a9){return!!_0x5ef4a9&&(typeof _0x5ef4a9===_0x2f428e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ef4a9===_0x2f428e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ef4a9[_0x2f428e([0x74,0x68,0x65,0x6e])]===_0x2f428e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ef4a9[_0x2f428e([0x63,0x61,0x74,0x63,0x68])]===_0x2f428e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c088c(_0x3224b3){_0x1eec87(_0x3224b3)[_0x2f428e([0x74,0x68,0x65,0x6e])](_0x56270b=>{if(!_0x56270b||_0x56270b[_0x2f428e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f428e([0x6f,0x6b]))return _0x2f428e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3737ca(_0x1fb6aa(_0x41ed9a+_0x5aaf2f))!=_0x56270b[_0x2f428e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f428e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f428e([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f428e([0x74,0x68,0x65,0x6e])](_0x19ef7b=>(_0x34e354(),_0x19ef7b),()=>{const _0x18ed1b=_0x184023();return null==_0x18ed1b?(_0x34e354(),_0x2f428e([0x56,0x61,0x6c,0x69,0x64])):_0x2f428e(_0x2666da-_0x18ed1b>(0x27d454df^_0x1035d2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f428e([0x74,0x68,0x65,0x6e])](_0x4a04b8)[_0x2f428e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a04b8(_0x2f428e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4dee36=0x3ee3e5f^_0x1035d2;function _0x34e354(){const _0x150543=_0x2f428e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3737ca(_0x1fb6aa(_0x4f9e45)),_0x594276=_0x1fb6f8(_0x3737ca(window[_0x2f428e([0x4d,0x61,0x74,0x68])][_0x2f428e([0x63,0x65,0x69,0x6c])](_0x2666da/_0x4dee36)));window[_0x2f428e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f428e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x150543,_0x594276);}function _0x184023(){const _0x4407a6=_0x2f428e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3737ca(_0x1fb6aa(_0x4f9e45)),_0x185f1d=window[_0x2f428e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f428e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4407a6);return _0x185f1d?window[_0x2f428e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fb6f8(_0x185f1d),0x10)*_0x4dee36:null;}function _0x1eec87(_0x125128){return new window[(_0x2f428e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c8d85,_0x439d85)=>{_0x125128[_0x2f428e([0x74,0x68,0x65,0x6e])](_0x4c8d85,_0x439d85),window[_0x2f428e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x439d85,0x3d9041f^_0x1035d2);});}}_0x3a1b5b[_0x2f428e([0x6f,0x6e])](_0x2f428e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5afd66,_0x343a53)=>{if(_0x343a53[0x0]!=_0x4f9e45)return _0x4a04b8(_0x2f428e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x343a53[0x1]={..._0x343a53[0x1],[_0x2f428e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41ed9a};},{[_0x2f428e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f428e([0x68,0x69,0x67,0x68])}),_0x3a1b5b[_0x2f428e([0x6f,0x6e])](_0x2f428e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a0356=>{_0xaba758(_0x1a0356[_0x2f428e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x86b897=!0x0,_0x4c088c(_0x1a0356[_0x2f428e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f428e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f428e([0x6c,0x6f,0x77])}),_0x2a0f03[_0x2f428e([0x74,0x68,0x65,0x6e])](()=>{_0x86b897||_0x4a04b8(_0x2f428e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x469112(){return _0x3a1b5b[_0x2f428e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f428e([0x76,0x69,0x65,0x77])][_0x2f428e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f428e([0x61,0x75,0x74,0x6f]);}function _0x599401(){_0x3a1b5b[_0x2f428e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f428e([0x76,0x69,0x65,0x77])][_0x2f428e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f428e([0x61,0x75,0x74,0x6f]);}}function _0x45fa5b(_0x25958a){const _0x3a792e=[new window[(_0x2f428e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c0530=>setTimeout(_0x3c0530,0x3d1ee13^_0x1035d2)),_0x2a0f03[_0x2f428e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f428e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2129c4=>{let _0x57fcc6=0x0;_0x3a1b5b[_0x2f428e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f428e([0x6f,0x6e])](_0x2f428e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x911247,_0x485962)=>{_0x485962[0x0][_0x2f428e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x57fcc6++,_0x57fcc6==(0x3d8d127^_0x1035d2)&&(_0x2129c4(),_0x911247[_0x2f428e([0x6f,0x66,0x66])]());});}))];return window[_0x2f428e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f428e([0x72,0x61,0x63,0x65])](_0x3a792e)[_0x2f428e([0x74,0x68,0x65,0x6e])](()=>_0x25958a);}async function _0x2a2cdc(){await _0x2a0f03,_0x3a1b5b[_0x2f428e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f428e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x29c30d,_0x3a1b5b[_0x2f428e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f428e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x29c30d,_0x3a1b5b[_0x2f428e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f428e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x251bd8(_0x3e317f){const _0x501ad0=_0x10d322();_0x3a1b5b[_0x501ad0]=_0x2f428e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e317f,_0x3e317f!=_0x2f428e([0x56,0x61,0x6c,0x69,0x64])&&_0x2a2cdc();}function _0x10d322(){const _0x3574c2=window[_0x2f428e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f428e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f428e([0x6e,0x6f,0x77])]())[_0x2f428e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f428e([0x2e]),'');let _0x2f7e48=_0x2f428e([0x52]);for(let _0x38615f=0x0;_0x38615f<_0x3574c2[_0x2f428e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38615f+=0x2){let _0x3a7831=window[_0x2f428e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3574c2[_0x2f428e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38615f,_0x38615f+0x2));_0x3a7831>=_0x4407cd[_0x2f428e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3a7831-=_0x4407cd[_0x2f428e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f7e48+=_0x4407cd[_0x3a7831];}return _0x2f7e48;}function _0x26f798(){const _0x27e443=_0x50f9ce[_0x2f428e([0x73,0x70,0x6c,0x69,0x74])](_0x2f428e([0x2e]));if(0x3!=_0x27e443[_0x2f428e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xdb8f21(_0x27e443[0x1]);function _0xdb8f21(_0x11a531){const _0x228ccf=_0x943cb9(_0x11a531);return _0x228ccf&&_0x481460()?_0x228ccf:null;function _0x481460(){const _0x222aad=_0x228ccf[_0x2f428e([0x6a,0x74,0x69])],_0x524b3c=window[_0x2f428e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x222aad[_0x2f428e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x222aad[_0x2f428e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20240f={..._0x228ccf,[_0x2f428e([0x6a,0x74,0x69])]:_0x222aad[_0x2f428e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x222aad[_0x2f428e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20240f[_0x2f428e([0x76,0x63])],_0x1fb6aa(_0x20240f)==_0x524b3c;}}}async function _0x9873c9(){let _0x5b6792=!0x0;try{const _0x12175f=_0x50f9ce[_0x2f428e([0x73,0x70,0x6c,0x69,0x74])](_0x2f428e([0x2e])),[_0x228034,_0x49a8de,_0x30a34f]=_0x12175f;return _0x2de699(_0x228034),await _0x1d80e4(_0x228034,_0x49a8de,_0x30a34f),_0x5b6792;}catch{return!0x1;}function _0x2de699(_0x3064f0){const _0x41db05=_0x943cb9(_0x3064f0);_0x41db05&&_0x41db05[_0x2f428e([0x61,0x6c,0x67])]==_0x2f428e([0x45,0x53,0x32,0x35,0x36])||(_0x5b6792=!0x1);}async function _0x1d80e4(_0x319e62,_0x399e4d,_0x38c831){const _0x236e02=window[_0x2f428e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f428e([0x66,0x72,0x6f,0x6d])](_0x45bec6(_0x38c831),_0x77e1df=>_0x77e1df[_0x2f428e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b38f8=new window[(_0x2f428e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f428e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x319e62+_0x2f428e([0x2e])+_0x399e4d),_0x47cdcb=window[_0x2f428e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f428e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47cdcb)return;const _0x1fd0e3=await _0x47cdcb[_0x2f428e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f428e([0x6a,0x77,0x6b]),_0x38a419,{[_0x2f428e([0x6e,0x61,0x6d,0x65])]:_0x2f428e([0x45,0x43,0x44,0x53,0x41]),[_0x2f428e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f428e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f428e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47cdcb[_0x2f428e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f428e([0x6e,0x61,0x6d,0x65])]:_0x2f428e([0x45,0x43,0x44,0x53,0x41]),[_0x2f428e([0x68,0x61,0x73,0x68])]:{[_0x2f428e([0x6e,0x61,0x6d,0x65])]:_0x2f428e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1fd0e3,_0x236e02,_0x2b38f8)||(_0x5b6792=!0x1);}}function _0x943cb9(_0x23e9f8){return _0x23e9f8[_0x2f428e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f428e([0x65,0x79]))?JSON[_0x2f428e([0x70,0x61,0x72,0x73,0x65])](_0x45bec6(_0x23e9f8)):null;}function _0x45bec6(_0x5c8103){return window[_0x2f428e([0x61,0x74,0x6f,0x62])](_0x5c8103[_0x2f428e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f428e([0x2b]))[_0x2f428e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f428e([0x2f])));}function _0x1fb6aa(_0x10e153){let _0x12507e=0x1505;function _0x198dc9(_0x7c64b2){for(let _0xb3224c=0x0;_0xb3224c<_0x7c64b2[_0x2f428e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb3224c++){const _0x2ace4e=_0x7c64b2[_0x2f428e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xb3224c);_0x12507e=(_0x12507e<<0x5)+_0x12507e+_0x2ace4e,_0x12507e&=_0x12507e;}}function _0x3b8afd(_0x3d4ad9){Array[_0x2f428e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d4ad9)?_0x3d4ad9[_0x2f428e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b8afd):_0x3d4ad9&&typeof _0x3d4ad9==_0x2f428e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f428e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d4ad9)[_0x2f428e([0x73,0x6f,0x72,0x74])]()[_0x2f428e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd96fcd,_0x36ee3b])=>{_0x198dc9(_0xd96fcd),_0x3b8afd(_0x36ee3b);}):_0x198dc9(window[_0x2f428e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d4ad9));}return _0x3b8afd(_0x10e153),_0x12507e>>>0x0;}function _0x3737ca(_0x2d9a49){return _0x2d9a49[_0x2f428e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f428e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f428e([0x30]));}function _0x1fb6f8(_0x5409ec){return _0x5409ec[_0x2f428e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f428e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f428e([0x6a,0x6f,0x69,0x6e])]('');}function _0x29c30d(){}function _0x2f428e(_0x2fd75e){return _0x2fd75e['map'](_0x2670b5=>String['fromCharCode'](_0x2670b5))['join']('');}_0x251bd8(await _0x40054d());}(this);}['_initSchema'](){const _0x4af14f=this['editor']['model']['schema'];_0x4af14f['isRegistered']('imageBlock')&&_0x4af14f['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4af14f['isRegistered']('imageInline')&&_0x4af14f['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x28ebb2=this['editor'];_0x28ebb2['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x28ebb2['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x75b08e=>_0x75b08e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x29d262=_0x28ebb2['commands']['get']('replaceImageSource');_0x29d262&&this['listenTo'](_0x29d262,'cleanupImage',(_0x228c98,[_0x115744,_0xe59c95])=>{_0x115744['removeAttribute']('uploadcareImageId',_0xe59c95);});}['_initConfig'](){const _0x5ccf56=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2b1977=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3bf792(_0x114eac['document'],'uc-config',{..._0x5ccf56,'pubkey':_0x2b1977,'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']=_0x129a8b=>{if('closeMax'==_0x129a8b)return'#uc-icon-arrow-down';},_0x114eac['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3bf792(_0x114eac['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x114eac['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2395a6=this['editor']['commands']['get']('insertImage');_0x2395a6&&this['listenTo'](_0x2395a6,'execute',()=>{const _0x58f237=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58f237&&_0x58f237['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x58f237);});});const _0x1abafd=this['editor']['commands']['get']('uploadcareImageReplace');_0x1abafd&&this['listenTo'](_0x1abafd,'execute',()=>{const _0x2c2f73=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2c2f73&&_0x2c2f73['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2c2f73);});});}}class tt extends _0x5bfe0c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8ef326){super(_0x8ef326),_0x8ef326['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2f4d27['defineComponents'](_0x2f4d27);}}class ii extends _0x4e80b5{constructor(_0x5d0215){super(_0x5d0215);const t=_0x5d0215['t'],_0x1457cd=this['bindTemplate'],_0x1fd66b=new _0x2b7c29();_0x1fd66b['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':[_0x1fd66b,{'text':_0x1457cd['to']('imageUploadProgress',_0x3419d2=>t('Loading\x20image...')+'\x20('+(_0x3419d2||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 _0x4e80b5{constructor(_0x48fa50){super(_0x48fa50);const t=_0x48fa50['t'];this['set']('errorType',null);const _0x1a67b5=new _0x423e3c(_0x48fa50);_0x1a67b5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1a67b5['withText']=!0x0,_0x1a67b5['class']='ck-button-action',_0x1a67b5['on']('execute',()=>{this['fire']('retry');}),_0x1a67b5['bind']('isVisible')['to'](this,'errorType',_0x35a790=>'NotFound'!==_0x35a790);const _0x2f9043=new _0x1f5962();_0x2f9043['content']=_0x35b2ba,_0x2f9043['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4c5c3c=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':[_0x2f9043,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4c5c3c['to']('errorType',_0x17b360=>t('NotFound'!==_0x17b360?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1a67b5]},{'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 _0x4e80b5{constructor(_0x74fe95,_0x588e3f){super(_0x74fe95);const _0x388128=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x588e3f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x388128['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xc637c9,_0x40b8c1,_0xfa39b8){super(_0xc637c9),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xc637c9),this['_errorView']=new ti(_0xc637c9),this['_editingView']=new ei(_0xc637c9,_0xfa39b8),this['_focusableView']=new _0x4e80b5(_0xc637c9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x40b8c1),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'],_0x27d567=>{this['_addUploadcareImageEditorListeners'](_0x27d567);});}),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'](_0x46d587,_0x52a832){const _0x5bc761='uc-cloud-image-editor',_0x556cc1=_0x46d587['querySelector'](_0x5bc761);if(_0x556cc1)return _0x52a832(_0x556cc1);const _0x501ef4=new MutationObserver(_0x147b5c=>{const _0x41d61e=_0x147b5c['filter'](_0x2178d6=>_0x2178d6['target']===_0x46d587&&_0x2178d6['addedNodes']['length']>0x0&&_0x2178d6['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5bc761);_0x41d61e['length']&&(_0x501ef4['disconnect'](),_0x52a832(_0x41d61e[0x0]['addedNodes'][0x0]));});_0x501ef4['observe'](_0x46d587,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x260bc0){_0x260bc0['addEventListener']('apply',_0x236f8d=>{this['fire']('apply',{'imageSrc':_0x236f8d['detail']['cdnUrl']});}),_0x260bc0['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x54ab8e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3635d9,_0x5945fd,_0x3f6e66){super(),this['_editor']=_0x3635d9,this['_dialog']=_0x5945fd,this['_imageElement']=_0x3f6e66,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 _0x424cc0=this['_imageElement'],_0x38abb3=_0x424cc0['getAttribute']('uploadcareImageId'),_0x4badb8=_0x424cc0['getAttribute']('src');if(_0x38abb3)await this['_loadImageInfo'](_0x38abb3,_0x4badb8);else{if(this['_imageCache']['has'](_0x4badb8)){const _0x21675b=this['_imageCache']['get'](_0x4badb8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x21675b['url'],this['imageDimension']=_0x21675b['dimension'],this['imageId']=_0x21675b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x535b8f}=this['_editor'],t=_0x535b8f['t'],_0x51350d=new X(_0x535b8f,this['imageStatus'],this['_attributes']);_0x51350d['bind']('status')['to'](this,'imageStatus'),_0x51350d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x51350d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x51350d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x51350d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3e6297,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x51350d,'position':_0x21f318['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x51350d['focus']();},'onHide':()=>{_0x51350d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x25544c=>!A(_0x25544c,_0x51350d['element'])}});}['_loadImageInfo'](_0x13f5fc,_0x402030){return j['getInfo'](_0x13f5fc,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3e4038=>{const {width:_0x1a7972,height:_0x438724}=_0x3e4038['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x402030,this['imageDimension']={'width':_0x1a7972,'height':_0x438724},this['imageId']=_0x13f5fc;})['catch'](_0x3328a6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3328a6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xd6fcb6,_0x3091db){return this['_getImageAsFile'](_0xd6fcb6)['then'](_0xe54c43=>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':_0x3091db['signal'],'file':_0xe54c43,'onProgress':_0x319ebf=>{_0x319ebf&&_0x319ebf['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x319ebf['value']));}}))['then'](_0x54b72f=>{const {width:_0x459f14,height:_0x4646b2}=_0x54b72f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x54b72f['cdnUrl'],this['imageDimension']={'width':_0x459f14,'height':_0x4646b2},this['imageId']=_0x54b72f['uuid'],this['imageUploadProgress']=null;const _0x462d5b=_0xd6fcb6['getAttribute']('src');this['_imageCache']['set'](_0x462d5b,{'id':_0x54b72f['uuid'],'url':_0x54b72f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3f67eb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f67eb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x354cbf,_0x3d0972){_0x354cbf['on']('apply',(_0x3a93b6,_0x4ff7a4)=>{this['_replaceImage'](_0x3d0972,_0x4ff7a4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x354cbf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x354cbf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3d25eb,_0x5b8d99,_0x26d5bc){const _0x3eb463=this['_editor'],{width:_0x3a6303,height:_0x40c769}=S(_0x5b8d99,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x25b391,imageSources:_0x290e21}=C(_0x5b8d99,_0x3a6303);_0x3eb463['model']['change'](_0x20e21a=>{if('$graveyard'===_0x3d25eb['root']['rootName']){_0x3eb463['execute']('insertImage',{'imageType':_0x3d25eb['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3d25eb['getAttributes']()),'uploadcareImageId':_0x26d5bc,'src':_0x25b391,'sources':_0x290e21,'width':_0x3a6303,'height':_0x40c769}});const _0x127f52=_0x3d25eb['getChildren']();_0x3d25eb=_0x3eb463['model']['document']['selection']['getSelectedElement']();for(const _0x175f69 of _0x127f52)_0x20e21a['append'](_0x20e21a['cloneElement'](_0x175f69),_0x3d25eb);}else _0x20e21a['setSelection'](_0x3d25eb,'on'),_0x3eb463['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3d25eb['getAttributes']()),'uploadcareImageId':_0x26d5bc,'src':_0x25b391,'sources':_0x290e21,'width':_0x3a6303,'height':_0x40c769},_0x3d25eb);_0x20e21a['setSelection'](_0x3d25eb,'on');});}async['_getImageAsFile'](_0x1b5b50){const _0x982296=_0x114eac['window'],_0x215668=_0x114eac['document']['location']['href'],_0x593de4=new _0x982296['URL'](_0x1b5b50['getAttribute']('src'),_0x215668);if('data:'===_0x593de4['protocol']){const _0x14ccc3=_0x593de4['href']['split'](','),_0x260e93=_0x14ccc3[0x0]['match'](/:(.*?);/)[0x1],_0x2dec0f=_0x260e93['split']('/')[0x1],_0x15d13e=_0x982296['atob'](_0x14ccc3[_0x14ccc3['length']-0x1]);let _0x360194=_0x15d13e['length'];const _0x30f079=new _0x982296['Uint8Array'](_0x360194);for(;_0x360194--;)_0x30f079[_0x360194]=_0x15d13e['charCodeAt'](_0x360194);return new _0x982296['File']([_0x30f079],'image.'+_0x2dec0f,{'type':_0x260e93});}const _0x3d513a=_0x593de4['href']['split']('/'),_0x382486=_0x3d513a[_0x3d513a['length']-0x1],_0x119b8c=_0x382486['split']('.')[0x1];return _0x982296['fetch'](_0x593de4['href'])['then'](_0x19bb63=>_0x19bb63['clone']()['blob']())['then'](_0x2cdd01=>new _0x982296['File']([_0x2cdd01],_0x382486,{'type':'image/'+_0x119b8c}));}}class O extends _0x4c1c6d{['imageEditController'];static get['requires'](){return[_0x26cbc5];}['_isEditable'];constructor(_0x4c9f12){super(_0x4c9f12),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x198bca){const _0x1480ab=G(_0x198bca);return _0x532065=>!(!_0x532065||!_0x532065['is']('element','imageBlock')&&!_0x532065['is']('element','imageInline'))&&(!!_0x532065['hasAttribute']('uploadcareImageId')||!!_0x532065['hasAttribute']('src')&&_0x1480ab(_0x532065['getAttribute']('src')));}(_0x4c9f12['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x18772b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x18772b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3094ca=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3094ca&&(_0x3094ca['is']('element','imageBlock')||_0x3094ca['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x26cbc5),_0x3094ca),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4c1c6d{['refresh'](){const _0x335d55=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x335d55&&(_0x335d55['is']('element','imageBlock')||_0x335d55['is']('element','imageInline')));}['execute'](_0x10d754){const _0x4b5af4=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3163e3=>{_0x3163e3['setAttributes'](_0x10d754,_0x4b5af4),_0x3163e3['removeAttribute']('srcset',_0x4b5af4),_0x3163e3['removeAttribute']('sizes',_0x4b5af4);});}}class m extends _0x5bfe0c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1784a8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xcf450c}=this;_0xcf450c['commands']['add']('uploadcareImageEdit',new O(_0xcf450c)),_0xcf450c['commands']['add']('uploadcareImageReplace',new R(_0xcf450c));}}class g extends _0x5bfe0c{['_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 _0xb3d4d6=this['editor'];_0xb3d4d6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1c3ffa=>{const _0x1a517d=_0xb3d4d6['commands']['get']('uploadcareImageEdit'),_0x5094ed=new _0x423e3c(_0x1c3ffa),t=_0x1c3ffa['t'];return _0x5094ed['set']({'icon':_0x3e6297,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5094ed['bind']('isEnabled')['to'](_0x1a517d),_0x5094ed['bind']('isOn')['to'](_0x1a517d,'isActive'),this['listenTo'](_0x5094ed,'execute',()=>{_0xb3d4d6['execute']('uploadcareImageEdit'),_0xb3d4d6['editing']['view']['focus']();}),_0x5094ed;}),this['_initConfig']();}['_initConfig'](){const _0x10ff91=_0x3bf792(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x10ff91),this['listenTo'](this['editor'],'destroy',()=>{_0x10ff91['remove']();});}}class et extends _0x5bfe0c{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 _0x47bb67,Command as _0x330377}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1162a8,IconGooglePhotos as _0x49acab,IconGoogleDrive as _0x203d8b,IconFacebook as _0x3a6d29,IconDropbox as _0x3d13d0,IconUploadcareLink as _0x307349,IconUploadcareImageUpload as _0x3d4fa7,IconError as _0x2992eb,IconUploadcareImageEdit as _0xe7efea}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x154fa4,MenuBarMenuListItemButtonView as _0x852674,View as _0xcf99be,FocusCycler as _0x30242d,Dialog as _0x145263,DialogViewPosition as _0xe0a98f,SpinnerView as _0x303e36,IconView as _0x1478af,Notification as _0x402c1e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x45b66f,DomEmitterMixin as _0x5a183c,global as _0x218d30,getAncestors as _0x592e8d,ObservableMixin as _0x39823a,uid as _0x2717a9,createElement as _0x1004e0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x54ba01}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5734e0,info as _0x2976a8}from'@uploadcare/upload-client';import*as _0x442ec4 from'@uploadcare/file-uploader';var i=function(_0x50c0f5){return _0x50c0f5['Local']='local',_0x50c0f5['URL']='url',_0x50c0f5['Dropbox']='dropbox',_0x50c0f5['GDrive']='gdrive',_0x50c0f5['Facebook']='facebook',_0x50c0f5['GPhotos']='gphotos',_0x50c0f5['OneDrive']='onedrive',_0x50c0f5;}({});function _(_0x41023c,_0xfe2a62,_0x18a2b8){const t=_0x41023c['t'],_0x4d1713=_0x41023c['t'];switch(_0xfe2a62){case i['Local']:return{'text':_0x4d1713('Insert'===_0x18a2b8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d1713('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x18a2b8?_0x4d1713('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d1713('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x18a2b8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x18a2b8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x18a2b8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x18a2b8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x18a2b8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xfe2a62;}}class e extends _0x47bb67{['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 _0x1ece4a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2dbb00;for(const _0x5062a2 in _0x1ece4a){const _0xd56f98=_0x5062a2,_0x38f14d=_0x1ece4a[_0xd56f98];if('uploadcareLicenseKeyValid'==_0x38f14d||'uploadcareLicenseKeyInvalid'==_0x38f14d||'uploadcareLicenseKeyExpired'==_0x38f14d||'uploadcareLicenseKeyDomainLimit'==_0x38f14d||'uploadcareLicenseKeyNotAllowed'==_0x38f14d||'uploadcareLicenseKeyEvaluationLimit'==_0x38f14d||'uploadcareLicenseKeyTrialLimit'==_0x38f14d||'uploadcareLicenseKeyUsageLimit'==_0x38f14d){delete _0x1ece4a[_0xd56f98],_0x2dbb00=_0x38f14d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2dbb00&&_0x1ece4a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2dbb00&&_0x1ece4a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2dbb00&&_0x1ece4a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2dbb00&&_0x1ece4a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2dbb00&&_0x1ece4a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2dbb00&&_0x1ece4a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2dbb00&&_0x1ece4a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4bdd0a}=this,_0x39f409=_0x4bdd0a['commands']['get']('uploadcare');if(!_0x39f409)return;const _0x3f3d37=this['_normalizeConfigSourceList'](_0x4bdd0a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2a10a2,_0xa1df78)=>{const _0x6d0244=this['_getIntegrationKey'](_0xa1df78['type']);return _0x2a10a2[_0x6d0244]||(_0x2a10a2[_0x6d0244]=[]),_0x2a10a2[_0x6d0244]['push'](_0xa1df78),_0x2a10a2;},{});_0x4bdd0a['plugins']['has']('ImageInsertUI')&&_0x4bdd0a['commands']['get']('uploadcare')&&Object['entries'](_0x3f3d37)['forEach'](([_0x1ece18,_0x3615f8])=>{_0x4bdd0a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1ece18,'observable':()=>_0x39f409,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3615f8),'formViewCreator':()=>this['_createDropdownButtons'](_0x3615f8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3615f8),'override':'assetManager'!==_0x1ece18});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x9d8807){const {locale:_0x4b02fa}=this['editor'];return _0x9d8807['map'](_0x17fd67=>{const _0x390198=_(_0x4b02fa,_0x17fd67,'Insert');switch(_0x17fd67){case i['Local']:return{'icon':_0x3d4fa7,'type':i['Local'],..._0x390198};case i['URL']:return{'icon':_0x307349,'type':i['URL'],..._0x390198};case i['Dropbox']:return{'icon':_0x3d13d0,'type':i['Dropbox'],..._0x390198};case i['Facebook']:return{'icon':_0x3a6d29,'type':i['Facebook'],..._0x390198};case i['GDrive']:return{'icon':_0x203d8b,'type':i['GDrive'],..._0x390198};case i['GPhotos']:return{'icon':_0x49acab,'type':i['GPhotos'],..._0x390198};case i['OneDrive']:return{'icon':_0x1162a8,'type':i['OneDrive'],..._0x390198};}});}['_getIntegrationKey'](_0x206fd5){switch(_0x206fd5){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4ddb5b,_0x2dce81){const _0x4d749b=this['editor'],_0x482c14=new _0x4ddb5b(_0x4d749b['locale']),_0x5c4ba1=_0x4d749b['commands']['get']('uploadcare');return _0x482c14['bind']('isEnabled')['to'](_0x5c4ba1),_0x482c14['on']('execute',()=>{_0x5c4ba1['execute'](_0x2dce81);}),_0x482c14;}['_createToolbarButton'](_0x301f44){const {locale:_0x1f480e}=this['editor'],_0x5dc6cb=this['editor']['plugins']['get']('ImageInsertUI'),_0x1cc724=_0x301f44[0x0],_0x2965e7=this['_createButton'](_0x154fa4,_0x1cc724['type']);return _0x2965e7['icon']=_0x1cc724['icon'],_0x2965e7['bind']('label')['to'](_0x5dc6cb,'isImageSelected',_0x6227b2=>_(_0x1f480e,_0x1cc724['type'],_0x6227b2?'Replace':'Insert')['text']),_0x2965e7['tooltip']=!0x0,_0x2965e7;}['_createDropdownButtons'](_0x3f2316){const {locale:_0x53b3cb}=this['editor'],_0x543395=this['editor']['plugins']['get']('ImageInsertUI');return _0x3f2316['map'](_0x15d619=>{const _0x4f03be=this['_createButton'](_0x154fa4,_0x15d619['type']);return _0x4f03be['withText']=!0x0,_0x4f03be['icon']=_0x15d619['icon'],_0x4f03be['bind']('label')['to'](_0x543395,'isImageSelected',_0xe5c832=>_(_0x53b3cb,_0x15d619['type'],_0xe5c832?'Replace':'Insert')['text']),_0x4f03be;});}['_createMenuBarButtons'](_0x1298a1){return _0x1298a1['map'](_0x3fd76f=>{const _0x222c06=this['_createButton'](_0x852674,_0x3fd76f['type']);return _0x222c06['icon']=_0x3fd76f['icon'],_0x222c06['label']=_0x3fd76f['shortText'],_0x222c06;});}}class F extends _0xcf99be{['focusTracker'];['focusCycler'];constructor(_0x40600b){super(_0x40600b),this['focusTracker']=new _0x45b66f(),this['focusCycler']=new _0x30242d({'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(_0x581b65,_0x5f4ba6){super(_0x581b65),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-'+_0x5f4ba6}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3efa64,_0x49c0b4){const _0xfd0242=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x40baf4=>_0x40baf4<=_0x49c0b4)['map'](_0x1fe9e2=>_0x3efa64['replace'](/\/$/,'')+'/-/resize/'+_0x1fe9e2+'x/\x20'+_0x1fe9e2+'w');return{'imageFallbackUrl':_0x3efa64,'imageSources':[{'srcset':_0xfd0242['join'](',\x20'),'sizes':'(max-width:\x20'+_0x49c0b4+'px)\x20100vw,\x20'+_0x49c0b4+'px','type':'image/webp'}]};}function S(_0x4573a1,_0xd6f838,_0xeb0ade){const _0x34c9a6=_0x4573a1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x34c9a6?parseInt(_0x34c9a6[0x1],0xa):_0xd6f838,'height':_0x34c9a6?parseInt(_0x34c9a6[0x2],0xa):_0xeb0ade};}function p(_0x380501,_0x14d74b){const _0x3502c9=new(_0x5a183c())(),_0x15a936=_0x380501['plugins']['get']('ImageUtils'),_0x583aad=_0x380501['editing']['mapper']['toViewElement'](_0x14d74b),_0x1141a4=_0x15a936['findViewImgElement'](_0x583aad),_0x59e4a1=_0x380501['editing']['view']['domConverter']['viewToDom'](_0x1141a4),_0x1b0d6e=_0x14d74b['getAttribute']('width'),_0x17a082=_0x14d74b['getAttribute']('height'),_0x1922c0='image-processing';_0x380501['editing']['view']['change'](_0x5df768=>{_0x5df768['addClass'](_0x1922c0,_0x583aad),_0x5df768['setStyle']('aspect-ratio',_0x1b0d6e+'/'+_0x17a082,_0x1141a4);}),_0x3502c9['listenTo'](_0x59e4a1,'load',()=>{_0x3502c9['stopListening'](_0x59e4a1,'load'),_0x380501['editing']['view']['change'](_0x1876ae=>{_0x1876ae['removeClass'](_0x1922c0,_0x583aad),_0x1876ae['removeStyle']('aspect-ratio',_0x1141a4);});});}function G(_0x487e69){if(Array['isArray'](_0x487e69)){const _0x294ff4=_0x487e69['map'](G);return _0x51ba3d=>_0x294ff4['some'](_0x3119e6=>_0x3119e6(_0x51ba3d));}if('origin'==_0x487e69){const _0xeec376=_0x218d30['window']['location']['origin'];return _0xf12f1c=>new URL(_0xf12f1c,_0x218d30['document']['baseURI'])['origin']==_0xeec376;}return'function'==typeof _0x487e69?_0x487e69:_0x487e69 instanceof RegExp?_0x1840c9=>!(!_0x1840c9['match'](_0x487e69)&&!_0x1840c9['replace'](/^https?:\/\//,'')['match'](_0x487e69)):()=>!0x1;}function A(_0x5db839,_0x45ea54){return _0x592e8d(_0x5db839['target'])['includes'](_0x45ea54);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x39823a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x44f553,_0x3488e4,_0x253f9c){super(),this['_editor']=_0x44f553,this['_editing']=_0x3488e4,this['_dialog']=_0x44f553['plugins']['get'](_0x145263),this['_api']=_0x3488e4['ctxElement']['getAPI'](),this['_type']=_0x253f9c,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:_0x512843,model:_0x129e4c}=this['_editor'],_0x30c3c3=_0x129e4c['document']['selection']['getSelectedElement'](),_0x5ce6f4=_0x30c3c3&&(_0x30c3c3['is']('element','imageBlock')||_0x30c3c3['is']('element','imageInline'));this['_formView']=new x(_0x512843,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3d4fa7,'title':_(_0x512843,this['_type'],_0x5ce6f4?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xe0a98f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4551ec=>!A(_0x4551ec,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4d9376}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x295a95=>{const _0x96f40c=_0x4d9376['length'];for(const _0x578b1e of _0x4d9376){const _0x93cdb=_0x578b1e===_0x4d9376[_0x96f40c-0x1],{cdnUrl:_0x49726e,fileInfo:_0x45671b}=_0x578b1e;if(!_0x49726e||!_0x45671b)continue;const {width:_0x4784aa,height:_0x1e7b37}=_0x45671b['imageInfo'],_0x1032b1=S(_0x49726e,_0x4784aa,_0x1e7b37),_0x2d12bb=C(_0x49726e,_0x1032b1['width']),_0x3e173c={'id':_0x45671b['uuid'],'type':'image','attributes':{'imageDimension':_0x1032b1,..._0x2d12bb}};this['_insertAsset'](_0x3e173c,_0x93cdb,_0x295a95);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x7878d3=>{'idle'===_0x7878d3['detail']['status']&&!_0x7878d3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2de71d,_0x2d1726,_0x40f183){const _0x3bccb0=this['_editor']['model']['document']['selection'],_0x41ce85=_0x3bccb0['getSelectedElement'](),_0x4caef5=!(!_0x41ce85||!_0x41ce85['is']('element','imageInline'));_0x40f183['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2de71d,_0x4caef5),_0x2d1726||_0x40f183['setSelection'](_0x3bccb0['getLastPosition']());}['_insertImage'](_0x36a1e6,_0x4db19d){const _0x586dd8=this['_editor'],{imageDimension:_0x19500f,imageFallbackUrl:_0x2df59e,imageSources:_0x3fa48b}=_0x36a1e6['attributes'];_0x586dd8['execute']('insertImage',{'imageType':_0x4db19d?'imageInline':null,'source':{'uploadcareImageId':_0x36a1e6['id'],'src':_0x2df59e,'sources':_0x3fa48b,..._0x19500f}});}}class w extends _0x330377{['_editing'];['_controller']=null;static get['requires'](){return[_0x145263,o];}constructor(_0x1bdc53){super(_0x1bdc53),this['_editing']=_0x1bdc53['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5ed174){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5ed174);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x967b85,..._0x5841b6}){return _0x5734e0(_0x967b85,_0x5841b6);}static['getInfo'](_0x47e569,_0x9aa548){return _0x2976a8(_0x47e569,_0x9aa548);}}class f extends _0x47bb67{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x54ba01,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2a15b5=this['editor'];if(!!!_0x2a15b5['config']['get']('uploadcare'))return;_0x2a15b5['plugins']['get'](_0x54ba01)['createUploadAdapter']=_0x41834f=>new k(_0x41834f,_0x2a15b5),_0x2a15b5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x29d9b0,{imageElement:_0x3fede0,data:_0x287f23})=>{_0x2a15b5['model']['change'](_0x37cd1c=>{_0x37cd1c['setAttribute']('uploadcareImageId',_0x287f23['uploadcareImageId'],_0x3fede0);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xeac193,_0x27a069){this['loader']=_0xeac193,this['editor']=_0x27a069,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xd0e17b=await this['loader']['file'];return j['upload']({'file':_0xd0e17b,'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':_0x289182=>{_0x289182&&_0x289182['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x289182['value']);}})['then'](async _0x165a3c=>{const {imageFallbackUrl:_0x2d3abf,imageSources:_0x5eab3d}=C(_0x165a3c['cdnUrl'],_0x165a3c['imageInfo']['width']);return{'uploadcareImageId':_0x165a3c['uuid'],'default':_0x2d3abf,'sources':_0x5eab3d};})['catch'](()=>{const _0x327853=t('Cannot\x20upload\x20file:')+('\x20'+_0xd0e17b['name']+'.');return Promise['reject'](_0x327853);});}['abort'](){this['controller']['abort']();}}class o extends _0x47bb67{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x145263];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1daae3){super(_0x1daae3),this['ucContextId']=_0x2717a9();}['init'](){const _0x5da9b8=this['editor'];_0x5da9b8['commands']['add']('uploadcare',new w(_0x5da9b8));}['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 _0x40afa0=_0x218d30['document']['querySelector']('input[uploadcare-file-input]');_0x40afa0&&_0x40afa0['remove']();}),async function(_0x348677){const _0x49bdea=_0x286365([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]),_0x18d82d=0x3d8d0df,_0x31a98e=0x3dfa44f^_0x18d82d,_0x1c5768=window[_0x286365([0x44,0x61,0x74,0x65])][_0x286365([0x6e,0x6f,0x77])](),_0x3cd501=_0x348677[_0x286365([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c9351=new window[(_0x286365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a3201=>{_0x3cd501[_0x286365([0x6f,0x6e,0x63,0x65])](_0x286365([0x72,0x65,0x61,0x64,0x79]),_0x5a3201);}),_0x57f459={[_0x286365([0x6b,0x74,0x79])]:_0x286365([0x45,0x43]),[_0x286365([0x75,0x73,0x65])]:_0x286365([0x73,0x69,0x67]),[_0x286365([0x63,0x72,0x76])]:_0x286365([0x50,0x2d,0x32,0x35,0x36]),[_0x286365([0x78])]:_0x286365([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]),[_0x286365([0x79])]:_0x286365([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]),[_0x286365([0x61,0x6c,0x67])]:_0x286365([0x45,0x53,0x32,0x35,0x36])},_0x4eb100=_0x3cd501[_0x286365([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x286365([0x67,0x65,0x74])](_0x286365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5f173f(){let _0x5f26e0,_0x4cab67=null,_0x33fc0c=null;try{if(_0x4eb100==_0x286365([0x47,0x50,0x4c]))return _0x286365([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f26e0=_0x3e21d2(),!_0x5f26e0)return _0x286365([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f26e0[_0x286365([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x33fc0c=_0xa02c01(_0x5f26e0[_0x286365([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f26e0[_0x286365([0x6a,0x74,0x69])])),await _0x23d7dd()?_0x2259ce()?_0x50ef22()?_0x286365([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xda69f2()?(_0x5f26e0[_0x286365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x286365([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4cab67=_0x2d8d35(_0x286365([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5f26e0[_0x286365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x286365([0x74,0x72,0x69,0x61,0x6c])&&(_0x4cab67=_0x2d8d35(_0x286365([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9c83b6()):_0x286365([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x286365([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x286365([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x286365([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50ef22(){const _0x3baf8c=[_0x286365([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x286365([0x74,0x72,0x69,0x61,0x6c])][_0x286365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f26e0[_0x286365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c5768/0x3e8:0xe10*_0x31a98e;return _0x5f26e0[_0x286365([0x65,0x78,0x70])]<_0x3baf8c;}function _0x2259ce(){const _0x15e0ac=_0x5f26e0[_0x286365([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15e0ac&&(!!_0x15e0ac[_0x286365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286365([0x2a]))||!!_0x15e0ac[_0x286365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286365([0x55,0x50,0x4c,0x43])));}function _0xda69f2(){const _0x50c826=_0x5f26e0[_0x286365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50c826||0x0==_0x50c826[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3815f7}=new URL(window[_0x286365([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50c826[_0x286365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3815f7))return!0x0;const _0x27c9c4=_0x3815f7[_0x286365([0x73,0x70,0x6c,0x69,0x74])](_0x286365([0x2e]));return _0x50c826[_0x286365([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58b6a2=>_0x58b6a2[_0x286365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286365([0x2a])))[_0x286365([0x6d,0x61,0x70])](_0x53ebc5=>_0x53ebc5[_0x286365([0x73,0x70,0x6c,0x69,0x74])](_0x286365([0x2e])))[_0x286365([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x258ad5=>_0x258ad5[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x27c9c4[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x286365([0x6d,0x61,0x70])](_0x3e452c=>Array(_0x27c9c4[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3e452c[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x286365([0x66,0x69,0x6c,0x6c])](_0x3e452c[0x0]===_0x286365([0x2a])?_0x286365([0x2a]):'')[_0x286365([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3e452c))[_0x286365([0x73,0x6f,0x6d,0x65])](_0x7d2c8f=>_0x27c9c4[_0x286365([0x65,0x76,0x65,0x72,0x79])]((_0x363d89,_0x5d61af)=>_0x7d2c8f[_0x5d61af]===_0x363d89||_0x7d2c8f[_0x5d61af]===_0x286365([0x2a])));}function _0x9c83b6(){return _0x4cab67&&_0x33fc0c?new window[(_0x286365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6ddb29,_0x25bed6)=>{_0x4cab67[_0x286365([0x74,0x68,0x65,0x6e])](_0x6ddb29,_0x25bed6),_0x33fc0c[_0x286365([0x74,0x68,0x65,0x6e])](_0xf405d9=>{_0xf405d9!=_0x286365([0x56,0x61,0x6c,0x69,0x64])&&_0x6ddb29(_0xf405d9);},_0x25bed6);}):_0x4cab67||_0x33fc0c||_0x286365([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa02c01(_0x53b613,_0x233203){return new window[(_0x286365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dbe9c=>{if(_0x3736bf())return _0x2dbe9c(_0x286365([0x56,0x61,0x6c,0x69,0x64]));_0x7d958f(),_0x3cd501[_0x286365([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x286365([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x426a85=!0x1;const _0x5a9d19=_0x2717a9();function _0xf8bbed(_0x5849c0){return!!_0x5849c0&&(typeof _0x5849c0===_0x286365([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5849c0===_0x286365([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5849c0[_0x286365([0x74,0x68,0x65,0x6e])]===_0x286365([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5849c0[_0x286365([0x63,0x61,0x74,0x63,0x68])]===_0x286365([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x149e65(_0x382f47){_0x30388c(_0x382f47)[_0x286365([0x74,0x68,0x65,0x6e])](_0xdf51b9=>{if(!_0xdf51b9||_0xdf51b9[_0x286365([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x286365([0x6f,0x6b]))return _0x286365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c7240(_0xec3054(_0x5a9d19+_0x233203))!=_0xdf51b9[_0x286365([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x286365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x286365([0x56,0x61,0x6c,0x69,0x64]);})[_0x286365([0x74,0x68,0x65,0x6e])](_0x5241e6=>(_0x52cf74(),_0x5241e6),()=>{const _0x2c9885=_0x40a15f();return null==_0x2c9885?(_0x52cf74(),_0x286365([0x56,0x61,0x6c,0x69,0x64])):_0x286365(_0x1c5768-_0x2c9885>(0x27d454df^_0x18d82d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x286365([0x74,0x68,0x65,0x6e])](_0x2dbe9c)[_0x286365([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dbe9c(_0x286365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a976c=0x3ee3e5f^_0x18d82d;function _0x52cf74(){const _0x2acef1=_0x286365([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c7240(_0xec3054(_0x53b613)),_0x26154a=_0x2db772(_0x1c7240(window[_0x286365([0x4d,0x61,0x74,0x68])][_0x286365([0x63,0x65,0x69,0x6c])](_0x1c5768/_0x4a976c)));window[_0x286365([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x286365([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2acef1,_0x26154a);}function _0x40a15f(){const _0x358e02=_0x286365([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c7240(_0xec3054(_0x53b613)),_0x5048e2=window[_0x286365([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x286365([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x358e02);return _0x5048e2?window[_0x286365([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2db772(_0x5048e2),0x10)*_0x4a976c:null;}function _0x30388c(_0x159088){return new window[(_0x286365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x83a249,_0x3af955)=>{_0x159088[_0x286365([0x74,0x68,0x65,0x6e])](_0x83a249,_0x3af955),window[_0x286365([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3af955,0x3d9041f^_0x18d82d);});}}_0x3cd501[_0x286365([0x6f,0x6e])](_0x286365([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b2c75,_0x1f6016)=>{if(_0x1f6016[0x0]!=_0x53b613)return _0x2dbe9c(_0x286365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f6016[0x1]={..._0x1f6016[0x1],[_0x286365([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a9d19};},{[_0x286365([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x286365([0x68,0x69,0x67,0x68])}),_0x3cd501[_0x286365([0x6f,0x6e])](_0x286365([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x23b54a=>{_0xf8bbed(_0x23b54a[_0x286365([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x426a85=!0x0,_0x149e65(_0x23b54a[_0x286365([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x286365([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x286365([0x6c,0x6f,0x77])}),_0x5c9351[_0x286365([0x74,0x68,0x65,0x6e])](()=>{_0x426a85||_0x2dbe9c(_0x286365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3736bf(){return _0x3cd501[_0x286365([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x286365([0x76,0x69,0x65,0x77])][_0x286365([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x286365([0x61,0x75,0x74,0x6f]);}function _0x7d958f(){_0x3cd501[_0x286365([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x286365([0x76,0x69,0x65,0x77])][_0x286365([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x286365([0x61,0x75,0x74,0x6f]);}}function _0x2d8d35(_0x2c69fd){const _0x323955=[new window[(_0x286365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19d664=>setTimeout(_0x19d664,0x3d1ee13^_0x18d82d)),_0x5c9351[_0x286365([0x74,0x68,0x65,0x6e])](()=>new window[(_0x286365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d70a9=>{let _0x5cd452=0x0;_0x3cd501[_0x286365([0x6d,0x6f,0x64,0x65,0x6c])][_0x286365([0x6f,0x6e])](_0x286365([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1498a6,_0x58ddce)=>{_0x58ddce[0x0][_0x286365([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5cd452++,_0x5cd452==(0x3d8d127^_0x18d82d)&&(_0x5d70a9(),_0x1498a6[_0x286365([0x6f,0x66,0x66])]());});}))];return window[_0x286365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x286365([0x72,0x61,0x63,0x65])](_0x323955)[_0x286365([0x74,0x68,0x65,0x6e])](()=>_0x2c69fd);}async function _0x1bf3f0(){await _0x5c9351,_0x3cd501[_0x286365([0x6d,0x6f,0x64,0x65,0x6c])][_0x286365([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1bed62,_0x3cd501[_0x286365([0x6d,0x6f,0x64,0x65,0x6c])][_0x286365([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1bed62,_0x3cd501[_0x286365([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x286365([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1a4d0a(_0x3f2708){const _0x112dda=_0x473e5c();_0x3cd501[_0x112dda]=_0x286365([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f2708,_0x3f2708!=_0x286365([0x56,0x61,0x6c,0x69,0x64])&&_0x1bf3f0();}function _0x473e5c(){const _0x3afa98=window[_0x286365([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x286365([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x286365([0x6e,0x6f,0x77])]())[_0x286365([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x286365([0x2e]),'');let _0x2b0dc0=_0x286365([0x52]);for(let _0x3e965d=0x0;_0x3e965d<_0x3afa98[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e965d+=0x2){let _0xe2996=window[_0x286365([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3afa98[_0x286365([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e965d,_0x3e965d+0x2));_0xe2996>=_0x49bdea[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe2996-=_0x49bdea[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b0dc0+=_0x49bdea[_0xe2996];}return _0x2b0dc0;}function _0x3e21d2(){const _0x353de0=_0x4eb100[_0x286365([0x73,0x70,0x6c,0x69,0x74])](_0x286365([0x2e]));if(0x3!=_0x353de0[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40b033(_0x353de0[0x1]);function _0x40b033(_0x3f2d1a){const _0x25b054=_0x155da7(_0x3f2d1a);return _0x25b054&&_0x11540e()?_0x25b054:null;function _0x11540e(){const _0x2a0aec=_0x25b054[_0x286365([0x6a,0x74,0x69])],_0x2932fa=window[_0x286365([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a0aec[_0x286365([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a0aec[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1948de={..._0x25b054,[_0x286365([0x6a,0x74,0x69])]:_0x2a0aec[_0x286365([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2a0aec[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1948de[_0x286365([0x76,0x63])],_0xec3054(_0x1948de)==_0x2932fa;}}}async function _0x23d7dd(){let _0x27ab05=!0x0;try{const _0x27a2a0=_0x4eb100[_0x286365([0x73,0x70,0x6c,0x69,0x74])](_0x286365([0x2e])),[_0xb4053a,_0x5134e4,_0x51349a]=_0x27a2a0;return _0x22fe47(_0xb4053a),await _0x3fd587(_0xb4053a,_0x5134e4,_0x51349a),_0x27ab05;}catch{return!0x1;}function _0x22fe47(_0x39bee6){const _0x545736=_0x155da7(_0x39bee6);_0x545736&&_0x545736[_0x286365([0x61,0x6c,0x67])]==_0x286365([0x45,0x53,0x32,0x35,0x36])||(_0x27ab05=!0x1);}async function _0x3fd587(_0x4e8e4b,_0x193924,_0x2e9417){const _0x345601=window[_0x286365([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x286365([0x66,0x72,0x6f,0x6d])](_0x4ddcd6(_0x2e9417),_0x3603cc=>_0x3603cc[_0x286365([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32c4f9=new window[(_0x286365([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x286365([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e8e4b+_0x286365([0x2e])+_0x193924),_0x53a40b=window[_0x286365([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x286365([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53a40b)return;const _0x46767f=await _0x53a40b[_0x286365([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x286365([0x6a,0x77,0x6b]),_0x57f459,{[_0x286365([0x6e,0x61,0x6d,0x65])]:_0x286365([0x45,0x43,0x44,0x53,0x41]),[_0x286365([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x286365([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x286365([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53a40b[_0x286365([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x286365([0x6e,0x61,0x6d,0x65])]:_0x286365([0x45,0x43,0x44,0x53,0x41]),[_0x286365([0x68,0x61,0x73,0x68])]:{[_0x286365([0x6e,0x61,0x6d,0x65])]:_0x286365([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46767f,_0x345601,_0x32c4f9)||(_0x27ab05=!0x1);}}function _0x155da7(_0x2c194b){return _0x2c194b[_0x286365([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x286365([0x65,0x79]))?JSON[_0x286365([0x70,0x61,0x72,0x73,0x65])](_0x4ddcd6(_0x2c194b)):null;}function _0x4ddcd6(_0x3724b0){return window[_0x286365([0x61,0x74,0x6f,0x62])](_0x3724b0[_0x286365([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x286365([0x2b]))[_0x286365([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x286365([0x2f])));}function _0xec3054(_0x35b596){let _0x3e9368=0x1505;function _0x28d248(_0x2f389d){for(let _0x3254ef=0x0;_0x3254ef<_0x2f389d[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3254ef++){const _0x284d5b=_0x2f389d[_0x286365([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3254ef);_0x3e9368=(_0x3e9368<<0x5)+_0x3e9368+_0x284d5b,_0x3e9368&=_0x3e9368;}}function _0x32973f(_0x3b701f){Array[_0x286365([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b701f)?_0x3b701f[_0x286365([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32973f):_0x3b701f&&typeof _0x3b701f==_0x286365([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x286365([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b701f)[_0x286365([0x73,0x6f,0x72,0x74])]()[_0x286365([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56c28a,_0x197252])=>{_0x28d248(_0x56c28a),_0x32973f(_0x197252);}):_0x28d248(window[_0x286365([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b701f));}return _0x32973f(_0x35b596),_0x3e9368>>>0x0;}function _0x1c7240(_0x85e5cc){return _0x85e5cc[_0x286365([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x286365([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x286365([0x30]));}function _0x2db772(_0x5274a4){return _0x5274a4[_0x286365([0x73,0x70,0x6c,0x69,0x74])]('')[_0x286365([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x286365([0x6a,0x6f,0x69,0x6e])]('');}function _0x1bed62(){}function _0x286365(_0x12ece5){return _0x12ece5['map'](_0x204ea5=>String['fromCharCode'](_0x204ea5))['join']('');}_0x1a4d0a(await _0x5f173f());}(this);}['_initSchema'](){const _0xef49df=this['editor']['model']['schema'];_0xef49df['isRegistered']('imageBlock')&&_0xef49df['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xef49df['isRegistered']('imageInline')&&_0xef49df['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3cb67b=this['editor'];_0x3cb67b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3cb67b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x30a921=>_0x30a921['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x549104=_0x3cb67b['commands']['get']('replaceImageSource');_0x549104&&this['listenTo'](_0x549104,'cleanupImage',(_0x53cc19,[_0x27036e,_0x26a05c])=>{_0x27036e['removeAttribute']('uploadcareImageId',_0x26a05c);});}['_initConfig'](){const _0x490d90=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2b79a6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1004e0(_0x218d30['document'],'uc-config',{..._0x490d90,'pubkey':_0x2b79a6,'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']=_0xf697b=>{if('closeMax'==_0xf697b)return'#uc-icon-arrow-down';},_0x218d30['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1004e0(_0x218d30['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x218d30['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2802f0=this['editor']['commands']['get']('insertImage');_0x2802f0&&this['listenTo'](_0x2802f0,'execute',()=>{const _0x1a6dc9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a6dc9&&_0x1a6dc9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1a6dc9);});});const _0x3ee446=this['editor']['commands']['get']('uploadcareImageReplace');_0x3ee446&&this['listenTo'](_0x3ee446,'execute',()=>{const _0x2f6f03=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f6f03&&_0x2f6f03['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2f6f03);});});}}class tt extends _0x47bb67{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x158381){super(_0x158381),_0x158381['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x442ec4['defineComponents'](_0x442ec4);}}class ii extends _0xcf99be{constructor(_0x2ffe9f){super(_0x2ffe9f);const t=_0x2ffe9f['t'],_0x5f56c7=this['bindTemplate'],_0x41fcca=new _0x303e36();_0x41fcca['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':[_0x41fcca,{'text':_0x5f56c7['to']('imageUploadProgress',_0x51b30a=>t('Loading\x20image...')+'\x20('+(_0x51b30a||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 _0xcf99be{constructor(_0x1fac35){super(_0x1fac35);const t=_0x1fac35['t'];this['set']('errorType',null);const _0x389850=new _0x154fa4(_0x1fac35);_0x389850['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x389850['withText']=!0x0,_0x389850['class']='ck-button-action',_0x389850['on']('execute',()=>{this['fire']('retry');}),_0x389850['bind']('isVisible')['to'](this,'errorType',_0x243d89=>'NotFound'!==_0x243d89);const _0x21f07a=new _0x1478af();_0x21f07a['content']=_0x2992eb,_0x21f07a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x374f70=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':[_0x21f07a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x374f70['to']('errorType',_0x36ffda=>t('NotFound'!==_0x36ffda?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x389850]},{'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 _0xcf99be{constructor(_0x9397e0,_0x594741){super(_0x9397e0);const _0x201fe7=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x594741,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x201fe7['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x526dfb,_0x2edb72,_0x44e409){super(_0x526dfb),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x526dfb),this['_errorView']=new ti(_0x526dfb),this['_editingView']=new ei(_0x526dfb,_0x44e409),this['_focusableView']=new _0xcf99be(_0x526dfb),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2edb72),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'],_0x45d51c=>{this['_addUploadcareImageEditorListeners'](_0x45d51c);});}),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'](_0x5eda09,_0x3f6cb2){const _0x18553c='uc-cloud-image-editor',_0x5593d5=_0x5eda09['querySelector'](_0x18553c);if(_0x5593d5)return _0x3f6cb2(_0x5593d5);const _0x1185e8=new MutationObserver(_0x411016=>{const _0x1481e6=_0x411016['filter'](_0x169c03=>_0x169c03['target']===_0x5eda09&&_0x169c03['addedNodes']['length']>0x0&&_0x169c03['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x18553c);_0x1481e6['length']&&(_0x1185e8['disconnect'](),_0x3f6cb2(_0x1481e6[0x0]['addedNodes'][0x0]));});_0x1185e8['observe'](_0x5eda09,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5c5656){_0x5c5656['addEventListener']('apply',_0xd90c25=>{this['fire']('apply',{'imageSrc':_0xd90c25['detail']['cdnUrl']});}),_0x5c5656['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x39823a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x593b02,_0x1a0f99,_0x3d31be){super(),this['_editor']=_0x593b02,this['_dialog']=_0x1a0f99,this['_imageElement']=_0x3d31be,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 _0xa6094f=this['_imageElement'],_0x15564d=_0xa6094f['getAttribute']('uploadcareImageId'),_0x450569=_0xa6094f['getAttribute']('src');if(_0x15564d)await this['_loadImageInfo'](_0x15564d,_0x450569);else{if(this['_imageCache']['has'](_0x450569)){const _0x562981=this['_imageCache']['get'](_0x450569);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x562981['url'],this['imageDimension']=_0x562981['dimension'],this['imageId']=_0x562981['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5a4d48}=this['_editor'],t=_0x5a4d48['t'],_0x4df7d1=new X(_0x5a4d48,this['imageStatus'],this['_attributes']);_0x4df7d1['bind']('status')['to'](this,'imageStatus'),_0x4df7d1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4df7d1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4df7d1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4df7d1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xe7efea,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4df7d1,'position':_0xe0a98f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4df7d1['focus']();},'onHide':()=>{_0x4df7d1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x300393=>!A(_0x300393,_0x4df7d1['element'])}});}['_loadImageInfo'](_0xb8b686,_0x4057e2){return j['getInfo'](_0xb8b686,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2c2d59=>{const {width:_0x2340bb,height:_0x24ef0f}=_0x2c2d59['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4057e2,this['imageDimension']={'width':_0x2340bb,'height':_0x24ef0f},this['imageId']=_0xb8b686;})['catch'](_0x34d044=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x34d044['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4f8752,_0x3d0870){return this['_getImageAsFile'](_0x4f8752)['then'](_0x2222a7=>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':_0x3d0870['signal'],'file':_0x2222a7,'onProgress':_0x22a9d8=>{_0x22a9d8&&_0x22a9d8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x22a9d8['value']));}}))['then'](_0x443a32=>{const {width:_0x456565,height:_0x3fe90b}=_0x443a32['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x443a32['cdnUrl'],this['imageDimension']={'width':_0x456565,'height':_0x3fe90b},this['imageId']=_0x443a32['uuid'],this['imageUploadProgress']=null;const _0x78290=_0x4f8752['getAttribute']('src');this['_imageCache']['set'](_0x78290,{'id':_0x443a32['uuid'],'url':_0x443a32['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x43216a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x43216a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x579f09,_0x567ed4){_0x579f09['on']('apply',(_0x454bd3,_0x24a4ef)=>{this['_replaceImage'](_0x567ed4,_0x24a4ef['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x579f09['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x579f09['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x44543c,_0x39b820,_0x3f02dd){const _0x24ee4d=this['_editor'],{width:_0x45823c,height:_0xc01158}=S(_0x39b820,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xa101ea,imageSources:_0x49c679}=C(_0x39b820,_0x45823c);_0x24ee4d['model']['change'](_0x176042=>{if('$graveyard'===_0x44543c['root']['rootName']){_0x24ee4d['execute']('insertImage',{'imageType':_0x44543c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x44543c['getAttributes']()),'uploadcareImageId':_0x3f02dd,'src':_0xa101ea,'sources':_0x49c679,'width':_0x45823c,'height':_0xc01158}});const _0xfc1436=_0x44543c['getChildren']();_0x44543c=_0x24ee4d['model']['document']['selection']['getSelectedElement']();for(const _0x5a998c of _0xfc1436)_0x176042['append'](_0x176042['cloneElement'](_0x5a998c),_0x44543c);}else _0x176042['setSelection'](_0x44543c,'on'),_0x24ee4d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x44543c['getAttributes']()),'uploadcareImageId':_0x3f02dd,'src':_0xa101ea,'sources':_0x49c679,'width':_0x45823c,'height':_0xc01158},_0x44543c);_0x176042['setSelection'](_0x44543c,'on');});}async['_getImageAsFile'](_0x5e562c){const _0x1e6564=_0x218d30['window'],_0x1d62ce=_0x218d30['document']['location']['href'],_0x5ce026=new _0x1e6564['URL'](_0x5e562c['getAttribute']('src'),_0x1d62ce);if('data:'===_0x5ce026['protocol']){const _0x415bc1=_0x5ce026['href']['split'](','),_0x1392c6=_0x415bc1[0x0]['match'](/:(.*?);/)[0x1],_0x8278ac=_0x1392c6['split']('/')[0x1],_0x32286=_0x1e6564['atob'](_0x415bc1[_0x415bc1['length']-0x1]);let _0x593d0=_0x32286['length'];const _0x114823=new _0x1e6564['Uint8Array'](_0x593d0);for(;_0x593d0--;)_0x114823[_0x593d0]=_0x32286['charCodeAt'](_0x593d0);return new _0x1e6564['File']([_0x114823],'image.'+_0x8278ac,{'type':_0x1392c6});}const _0x1317df=_0x5ce026['href']['split']('/'),_0x215521=_0x1317df[_0x1317df['length']-0x1],_0x2dd12f=_0x215521['split']('.')[0x1];return _0x1e6564['fetch'](_0x5ce026['href'])['then'](_0xf3e7a7=>_0xf3e7a7['clone']()['blob']())['then'](_0x5c6f4a=>new _0x1e6564['File']([_0x5c6f4a],_0x215521,{'type':'image/'+_0x2dd12f}));}}class O extends _0x330377{['imageEditController'];static get['requires'](){return[_0x145263];}['_isEditable'];constructor(_0x587651){super(_0x587651),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5af476){const _0x41adb2=G(_0x5af476);return _0x2730fd=>!(!_0x2730fd||!_0x2730fd['is']('element','imageBlock')&&!_0x2730fd['is']('element','imageInline'))&&(!!_0x2730fd['hasAttribute']('uploadcareImageId')||!!_0x2730fd['hasAttribute']('src')&&_0x41adb2(_0x2730fd['getAttribute']('src')));}(_0x587651['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x210d77=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x210d77);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x52168d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x52168d&&(_0x52168d['is']('element','imageBlock')||_0x52168d['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x145263),_0x52168d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x330377{['refresh'](){const _0x136dbe=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x136dbe&&(_0x136dbe['is']('element','imageBlock')||_0x136dbe['is']('element','imageInline')));}['execute'](_0x5ec3da){const _0x4ff6cd=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4b1c07=>{_0x4b1c07['setAttributes'](_0x5ec3da,_0x4ff6cd),_0x4b1c07['removeAttribute']('srcset',_0x4ff6cd),_0x4b1c07['removeAttribute']('sizes',_0x4ff6cd);});}}class m extends _0x47bb67{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x402c1e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c4f1f}=this;_0x4c4f1f['commands']['add']('uploadcareImageEdit',new O(_0x4c4f1f)),_0x4c4f1f['commands']['add']('uploadcareImageReplace',new R(_0x4c4f1f));}}class g extends _0x47bb67{['_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 _0x32336d=this['editor'];_0x32336d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1db284=>{const _0xa36bb2=_0x32336d['commands']['get']('uploadcareImageEdit'),_0x4d0462=new _0x154fa4(_0x1db284),t=_0x1db284['t'];return _0x4d0462['set']({'icon':_0xe7efea,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4d0462['bind']('isEnabled')['to'](_0xa36bb2),_0x4d0462['bind']('isOn')['to'](_0xa36bb2,'isActive'),this['listenTo'](_0x4d0462,'execute',()=>{_0x32336d['execute']('uploadcareImageEdit'),_0x32336d['editing']['view']['focus']();}),_0x4d0462;}),this['_initConfig']();}['_initConfig'](){const _0x213f9f=_0x1004e0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x213f9f),this['listenTo'](this['editor'],'destroy',()=>{_0x213f9f['remove']();});}}class et extends _0x47bb67{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':_0x9cc338=>0x1!=_0x9cc338}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x442c20=>{const {af:{dictionary:_0x28089d,getPluralForm:_0xafa47c}}={'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':_0x5c9611=>0x1!=_0x5c9611}};_0x442c20['af']||={'dictionary':{},'getPluralForm':null},_0x442c20['af']['dictionary']=Object['assign'](_0x442c20['af']['dictionary'],_0x28089d),_0x442c20['af']['getPluralForm']=_0xafa47c;})(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':_0x1a09d7=>0x0==_0x1a09d7?0x0:0x1==_0x1a09d7?0x1:0x2==_0x1a09d7?0x2:_0x1a09d7%0x64>=0x3&&_0x1a09d7%0x64<=0xa?0x3:_0x1a09d7%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x36f675=>{const {ar:{dictionary:_0x21c48c,getPluralForm:_0x5c39bc}}={'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':_0x5705a7=>0x0==_0x5705a7?0x0:0x1==_0x5705a7?0x1:0x2==_0x5705a7?0x2:_0x5705a7%0x64>=0x3&&_0x5705a7%0x64<=0xa?0x3:_0x5705a7%0x64>=0xb?0x4:0x5}};_0x36f675['ar']||={'dictionary':{},'getPluralForm':null},_0x36f675['ar']['dictionary']=Object['assign'](_0x36f675['ar']['dictionary'],_0x21c48c),_0x36f675['ar']['getPluralForm']=_0x5c39bc;})(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':_0xc16843=>0x1!=_0xc16843}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x508a79=>{const {ast:{dictionary:_0x75acd,getPluralForm:_0x226d31}}={'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':_0x46e60f=>0x1!=_0x46e60f}};_0x508a79['ast']||={'dictionary':{},'getPluralForm':null},_0x508a79['ast']['dictionary']=Object['assign'](_0x508a79['ast']['dictionary'],_0x75acd),_0x508a79['ast']['getPluralForm']=_0x226d31;})(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':_0x323e8b=>0x1!=_0x323e8b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xf1a32c=>{const {az:{dictionary:_0xb66bf7,getPluralForm:_0x5e12b1}}={'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':_0x186024=>0x1!=_0x186024}};_0xf1a32c['az']||={'dictionary':{},'getPluralForm':null},_0xf1a32c['az']['dictionary']=Object['assign'](_0xf1a32c['az']['dictionary'],_0xb66bf7),_0xf1a32c['az']['getPluralForm']=_0x5e12b1;})(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':_0x2bbf76=>_0x2bbf76%0xa==0x1&&_0x2bbf76%0x64!=0xb?0x0:_0x2bbf76%0xa>=0x2&&_0x2bbf76%0xa<=0x4&&(_0x2bbf76%0x64<0xa||_0x2bbf76%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x26a612=>{const {be:{dictionary:_0x3c2d07,getPluralForm:_0x8efb1c}}={'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':_0x2ad96b=>_0x2ad96b%0xa==0x1&&_0x2ad96b%0x64!=0xb?0x0:_0x2ad96b%0xa>=0x2&&_0x2ad96b%0xa<=0x4&&(_0x2ad96b%0x64<0xa||_0x2ad96b%0x64>=0x14)?0x1:0x2}};_0x26a612['be']||={'dictionary':{},'getPluralForm':null},_0x26a612['be']['dictionary']=Object['assign'](_0x26a612['be']['dictionary'],_0x3c2d07),_0x26a612['be']['getPluralForm']=_0x8efb1c;})(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':_0x234525=>0x1!=_0x234525}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x584160=>{const {bg:{dictionary:_0x1a7ebc,getPluralForm:_0x4158df}}={'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':_0x2c06f7=>0x1!=_0x2c06f7}};_0x584160['bg']||={'dictionary':{},'getPluralForm':null},_0x584160['bg']['dictionary']=Object['assign'](_0x584160['bg']['dictionary'],_0x1a7ebc),_0x584160['bg']['getPluralForm']=_0x4158df;})(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':_0x2883b4=>0x1!=_0x2883b4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2afa01=>{const {bn:{dictionary:_0x4f3a65,getPluralForm:_0x5c4f68}}={'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':_0x59a92d=>0x1!=_0x59a92d}};_0x2afa01['bn']||={'dictionary':{},'getPluralForm':null},_0x2afa01['bn']['dictionary']=Object['assign'](_0x2afa01['bn']['dictionary'],_0x4f3a65),_0x2afa01['bn']['getPluralForm']=_0x5c4f68;})(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':_0x280620=>_0x280620%0xa==0x1&&_0x280620%0x64!=0xb?0x0:_0x280620%0xa>=0x2&&_0x280620%0xa<=0x4&&(_0x280620%0x64<0xa||_0x280620%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xc3fc1e=>{const {bs:{dictionary:_0x135643,getPluralForm:_0x113af6}}={'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':_0x2505ff=>_0x2505ff%0xa==0x1&&_0x2505ff%0x64!=0xb?0x0:_0x2505ff%0xa>=0x2&&_0x2505ff%0xa<=0x4&&(_0x2505ff%0x64<0xa||_0x2505ff%0x64>=0x14)?0x1:0x2}};_0xc3fc1e['bs']||={'dictionary':{},'getPluralForm':null},_0xc3fc1e['bs']['dictionary']=Object['assign'](_0xc3fc1e['bs']['dictionary'],_0x135643),_0xc3fc1e['bs']['getPluralForm']=_0x113af6;})(window['CKEDITOR_TRANSLATIONS']||={});
|