@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250919.0 → 0.0.0-nightly-20250920.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x2a521b,Command as _0x2c632f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xa15be5,IconGooglePhotos as _0x33d5df,IconGoogleDrive as _0x4791bb,IconFacebook as _0x338df6,IconDropbox as _0x16301c,IconUploadcareLink as _0x4e4d18,IconUploadcareImageUpload as _0x532981,IconError as _0x1b0381,IconUploadcareImageEdit as _0x2dbca0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x56ed90,MenuBarMenuListItemButtonView as _0x18715f,View as _0x4063f5,FocusCycler as _0x2b74ed,Dialog as _0x25cee6,DialogViewPosition as _0x4ad98b,SpinnerView as _0x197970,IconView as _0x290852,Notification as _0xd13ee9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x28821a,DomEmitterMixin as _0x16e23e,global as _0x51a4b5,getAncestors as _0x391c4f,ObservableMixin as _0x484d96,uid as _0x497268,createElement as _0x3d23bd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x379592}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x543ced,info as _0x2d9589}from'@uploadcare/upload-client';import*as _0x528d10 from'@uploadcare/file-uploader';var i=function(_0x195d0a){return _0x195d0a['Local']='local',_0x195d0a['URL']='url',_0x195d0a['Dropbox']='dropbox',_0x195d0a['GDrive']='gdrive',_0x195d0a['Facebook']='facebook',_0x195d0a['GPhotos']='gphotos',_0x195d0a['OneDrive']='onedrive',_0x195d0a;}({});function _(_0x472e07,_0x3acf66,_0x224e14){const t=_0x472e07['t'],_0x339c9e=_0x472e07['t'];switch(_0x3acf66){case i['Local']:return{'text':_0x339c9e('Insert'===_0x224e14?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x339c9e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x224e14?_0x339c9e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x339c9e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x224e14?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x224e14?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x224e14?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x224e14?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x224e14?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3acf66;}}class e extends _0x2a521b{['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 _0x407c42=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b9e91;for(const _0x25eb71 in _0x407c42){const _0x2d187c=_0x25eb71,_0x1ad288=_0x407c42[_0x2d187c];if('uploadcareLicenseKeyValid'==_0x1ad288||'uploadcareLicenseKeyInvalid'==_0x1ad288||'uploadcareLicenseKeyExpired'==_0x1ad288||'uploadcareLicenseKeyDomainLimit'==_0x1ad288||'uploadcareLicenseKeyNotAllowed'==_0x1ad288||'uploadcareLicenseKeyEvaluationLimit'==_0x1ad288||'uploadcareLicenseKeyTrialLimit'==_0x1ad288||'uploadcareLicenseKeyUsageLimit'==_0x1ad288){delete _0x407c42[_0x2d187c],_0x3b9e91=_0x1ad288,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3b9e91&&_0x407c42['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3b9e91&&_0x407c42['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3b9e91&&_0x407c42['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3b9e91&&_0x407c42['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3b9e91&&_0x407c42['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3b9e91&&_0x407c42['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3b9e91&&_0x407c42['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x181e03}=this,_0x125686=_0x181e03['commands']['get']('uploadcare');if(!_0x125686)return;const _0x280f50=this['_normalizeConfigSourceList'](_0x181e03['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x24babb,_0x5c0041)=>{const _0x223663=this['_getIntegrationKey'](_0x5c0041['type']);return _0x24babb[_0x223663]||(_0x24babb[_0x223663]=[]),_0x24babb[_0x223663]['push'](_0x5c0041),_0x24babb;},{});_0x181e03['plugins']['has']('ImageInsertUI')&&_0x181e03['commands']['get']('uploadcare')&&Object['entries'](_0x280f50)['forEach'](([_0x55e434,_0x3c832d])=>{_0x181e03['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x55e434,'observable':()=>_0x125686,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3c832d),'formViewCreator':()=>this['_createDropdownButtons'](_0x3c832d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3c832d),'override':'assetManager'!==_0x55e434});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1b91df){const {locale:_0x31a44a}=this['editor'];return _0x1b91df['map'](_0x6b50cd=>{const _0x3a55db=_(_0x31a44a,_0x6b50cd,'Insert');switch(_0x6b50cd){case i['Local']:return{'icon':_0x532981,'type':i['Local'],..._0x3a55db};case i['URL']:return{'icon':_0x4e4d18,'type':i['URL'],..._0x3a55db};case i['Dropbox']:return{'icon':_0x16301c,'type':i['Dropbox'],..._0x3a55db};case i['Facebook']:return{'icon':_0x338df6,'type':i['Facebook'],..._0x3a55db};case i['GDrive']:return{'icon':_0x4791bb,'type':i['GDrive'],..._0x3a55db};case i['GPhotos']:return{'icon':_0x33d5df,'type':i['GPhotos'],..._0x3a55db};case i['OneDrive']:return{'icon':_0xa15be5,'type':i['OneDrive'],..._0x3a55db};}});}['_getIntegrationKey'](_0x41706c){switch(_0x41706c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x210bb9,_0x3ad2ab){const _0x4e7b27=this['editor'],_0xca033e=new _0x210bb9(_0x4e7b27['locale']),_0x407561=_0x4e7b27['commands']['get']('uploadcare');return _0xca033e['bind']('isEnabled')['to'](_0x407561),_0xca033e['on']('execute',()=>{_0x407561['execute'](_0x3ad2ab);}),_0xca033e;}['_createToolbarButton'](_0x39e2b6){const {locale:_0x4c271e}=this['editor'],_0x4c1870=this['editor']['plugins']['get']('ImageInsertUI'),_0x2fee34=_0x39e2b6[0x0],_0x2b571a=this['_createButton'](_0x56ed90,_0x2fee34['type']);return _0x2b571a['icon']=_0x2fee34['icon'],_0x2b571a['bind']('label')['to'](_0x4c1870,'isImageSelected',_0x3108ca=>_(_0x4c271e,_0x2fee34['type'],_0x3108ca?'Replace':'Insert')['text']),_0x2b571a['tooltip']=!0x0,_0x2b571a;}['_createDropdownButtons'](_0x4d2f86){const {locale:_0x5c1638}=this['editor'],_0x1bb672=this['editor']['plugins']['get']('ImageInsertUI');return _0x4d2f86['map'](_0x1bf3e4=>{const _0x377203=this['_createButton'](_0x56ed90,_0x1bf3e4['type']);return _0x377203['withText']=!0x0,_0x377203['icon']=_0x1bf3e4['icon'],_0x377203['bind']('label')['to'](_0x1bb672,'isImageSelected',_0x43ec24=>_(_0x5c1638,_0x1bf3e4['type'],_0x43ec24?'Replace':'Insert')['text']),_0x377203;});}['_createMenuBarButtons'](_0xecc2d5){return _0xecc2d5['map'](_0x3685e5=>{const _0xc04353=this['_createButton'](_0x18715f,_0x3685e5['type']);return _0xc04353['icon']=_0x3685e5['icon'],_0xc04353['label']=_0x3685e5['shortText'],_0xc04353;});}}class F extends _0x4063f5{['focusTracker'];['focusCycler'];constructor(_0x112cf9){super(_0x112cf9),this['focusTracker']=new _0x28821a(),this['focusCycler']=new _0x2b74ed({'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(_0x1fdef3,_0x56ab84){super(_0x1fdef3),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-'+_0x56ab84}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5b0dbf,_0x511b27){const _0x23e6b7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4fa73f=>_0x4fa73f<=_0x511b27)['map'](_0x14e330=>_0x5b0dbf['replace'](/\/$/,'')+'/-/resize/'+_0x14e330+'x/\x20'+_0x14e330+'w');return{'imageFallbackUrl':_0x5b0dbf,'imageSources':[{'srcset':_0x23e6b7['join'](',\x20'),'sizes':'(max-width:\x20'+_0x511b27+'px)\x20100vw,\x20'+_0x511b27+'px','type':'image/webp'}]};}function S(_0x2939a4,_0x58b64a,_0x3569b7){const _0x109b65=_0x2939a4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x109b65?parseInt(_0x109b65[0x1],0xa):_0x58b64a,'height':_0x109b65?parseInt(_0x109b65[0x2],0xa):_0x3569b7};}function p(_0x24c8db,_0xeefb99){const _0x8e2374=new(_0x16e23e())(),_0x2507dd=_0x24c8db['plugins']['get']('ImageUtils'),_0x331e49=_0x24c8db['editing']['mapper']['toViewElement'](_0xeefb99),_0x3cf363=_0x2507dd['findViewImgElement'](_0x331e49),_0x1fea24=_0x24c8db['editing']['view']['domConverter']['viewToDom'](_0x3cf363),_0x5277fe=_0xeefb99['getAttribute']('width'),_0x52fa99=_0xeefb99['getAttribute']('height'),_0x2f9cd0='image-processing';_0x24c8db['editing']['view']['change'](_0x1861e7=>{_0x1861e7['addClass'](_0x2f9cd0,_0x331e49),_0x1861e7['setStyle']('aspect-ratio',_0x5277fe+'/'+_0x52fa99,_0x3cf363);}),_0x8e2374['listenTo'](_0x1fea24,'load',()=>{_0x8e2374['stopListening'](_0x1fea24,'load'),_0x24c8db['editing']['view']['change'](_0x855367=>{_0x855367['removeClass'](_0x2f9cd0,_0x331e49),_0x855367['removeStyle']('aspect-ratio',_0x3cf363);});});}function G(_0x5e6295){if(Array['isArray'](_0x5e6295)){const _0x33f8a1=_0x5e6295['map'](G);return _0x1848de=>_0x33f8a1['some'](_0x53994e=>_0x53994e(_0x1848de));}if('origin'==_0x5e6295){const _0x3903af=_0x51a4b5['window']['location']['origin'];return _0x576162=>new URL(_0x576162,_0x51a4b5['document']['baseURI'])['origin']==_0x3903af;}return'function'==typeof _0x5e6295?_0x5e6295:_0x5e6295 instanceof RegExp?_0xe5bb3=>!(!_0xe5bb3['match'](_0x5e6295)&&!_0xe5bb3['replace'](/^https?:\/\//,'')['match'](_0x5e6295)):()=>!0x1;}function A(_0x8c331b,_0x14d32a){return _0x391c4f(_0x8c331b['target'])['includes'](_0x14d32a);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x484d96(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4eab88,_0x3744f3,_0xc6300){super(),this['_editor']=_0x4eab88,this['_editing']=_0x3744f3,this['_dialog']=_0x4eab88['plugins']['get'](_0x25cee6),this['_api']=_0x3744f3['ctxElement']['getAPI'](),this['_type']=_0xc6300,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:_0x19ea13,model:_0x1ecb01}=this['_editor'],_0xff84c2=_0x1ecb01['document']['selection']['getSelectedElement'](),_0x2ab458=_0xff84c2&&(_0xff84c2['is']('element','imageBlock')||_0xff84c2['is']('element','imageInline'));this['_formView']=new x(_0x19ea13,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x532981,'title':_(_0x19ea13,this['_type'],_0x2ab458?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4ad98b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4c6992=>!A(_0x4c6992,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x580368}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4fbb16=>{const _0x3df337=_0x580368['length'];for(const _0x33a311 of _0x580368){const _0xb54b15=_0x33a311===_0x580368[_0x3df337-0x1],{cdnUrl:_0x318088,fileInfo:_0x3f9f74}=_0x33a311;if(!_0x318088||!_0x3f9f74)continue;const {width:_0x4c857f,height:_0x2f0375}=_0x3f9f74['imageInfo'],_0x174a78=S(_0x318088,_0x4c857f,_0x2f0375),_0x48b7ec=C(_0x318088,_0x174a78['width']),_0x3ec3c9={'id':_0x3f9f74['uuid'],'type':'image','attributes':{'imageDimension':_0x174a78,..._0x48b7ec}};this['_insertAsset'](_0x3ec3c9,_0xb54b15,_0x4fbb16);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5afe06=>{'idle'===_0x5afe06['detail']['status']&&!_0x5afe06['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x363f59,_0x4d5da5,_0x471a82){const _0x531d6e=this['_editor']['model']['document']['selection'],_0x18d656=_0x531d6e['getSelectedElement'](),_0x81266=!(!_0x18d656||!_0x18d656['is']('element','imageInline'));_0x471a82['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x363f59,_0x81266),_0x4d5da5||_0x471a82['setSelection'](_0x531d6e['getLastPosition']());}['_insertImage'](_0x12fb2d,_0x3a630a){const _0x1b5263=this['_editor'],{imageDimension:_0x4936a0,imageFallbackUrl:_0x356672,imageSources:_0x1ccb7d}=_0x12fb2d['attributes'];_0x1b5263['execute']('insertImage',{'imageType':_0x3a630a?'imageInline':null,'source':{'uploadcareImageId':_0x12fb2d['id'],'src':_0x356672,'sources':_0x1ccb7d,..._0x4936a0}});}}class w extends _0x2c632f{['_editing'];['_controller']=null;static get['requires'](){return[_0x25cee6,o];}constructor(_0x253ac4){super(_0x253ac4),this['_editing']=_0x253ac4['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x129f1c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x129f1c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3f86b6,..._0x4200d4}){return _0x543ced(_0x3f86b6,_0x4200d4);}static['getInfo'](_0x1fb992,_0x394f30){return _0x2d9589(_0x1fb992,_0x394f30);}}class f extends _0x2a521b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x379592,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x25b1fa=this['editor'];if(!!!_0x25b1fa['config']['get']('uploadcare'))return;_0x25b1fa['plugins']['get'](_0x379592)['createUploadAdapter']=_0x3d2757=>new k(_0x3d2757,_0x25b1fa),_0x25b1fa['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5d4b45,{imageElement:_0x526de4,data:_0x465f32})=>{_0x25b1fa['model']['change'](_0x1d7089=>{_0x1d7089['setAttribute']('uploadcareImageId',_0x465f32['uploadcareImageId'],_0x526de4);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x236bb5,_0x469244){this['loader']=_0x236bb5,this['editor']=_0x469244,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4bdd82=await this['loader']['file'];return j['upload']({'file':_0x4bdd82,'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':_0x5812d8=>{_0x5812d8&&_0x5812d8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5812d8['value']);}})['then'](async _0x52d150=>{const {imageFallbackUrl:_0x50d276,imageSources:_0x3c947a}=C(_0x52d150['cdnUrl'],_0x52d150['imageInfo']['width']);return{'uploadcareImageId':_0x52d150['uuid'],'default':_0x50d276,'sources':_0x3c947a};})['catch'](()=>{const _0x578a7c=t('Cannot\x20upload\x20file:')+('\x20'+_0x4bdd82['name']+'.');return Promise['reject'](_0x578a7c);});}['abort'](){this['controller']['abort']();}}class o extends _0x2a521b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x25cee6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x26320b){super(_0x26320b),this['ucContextId']=_0x497268();}['init'](){const _0x14c0f3=this['editor'];_0x14c0f3['commands']['add']('uploadcare',new w(_0x14c0f3));}['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 _0x39b547=_0x51a4b5['document']['querySelector']('input[uploadcare-file-input]');_0x39b547&&_0x39b547['remove']();}),async function(_0x38de05){const _0x2426d7=_0x598cab([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]),_0x3ae703=0x3d8d0df,_0x44aaa9=0x3dfa30f^_0x3ae703,_0x3ee1b7=window[_0x598cab([0x44,0x61,0x74,0x65])][_0x598cab([0x6e,0x6f,0x77])](),_0x561ec2=_0x38de05[_0x598cab([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6c714=new window[(_0x598cab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33a33d=>{_0x561ec2[_0x598cab([0x6f,0x6e,0x63,0x65])](_0x598cab([0x72,0x65,0x61,0x64,0x79]),_0x33a33d);}),_0x2a74ce={[_0x598cab([0x6b,0x74,0x79])]:_0x598cab([0x45,0x43]),[_0x598cab([0x75,0x73,0x65])]:_0x598cab([0x73,0x69,0x67]),[_0x598cab([0x63,0x72,0x76])]:_0x598cab([0x50,0x2d,0x32,0x35,0x36]),[_0x598cab([0x78])]:_0x598cab([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]),[_0x598cab([0x79])]:_0x598cab([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]),[_0x598cab([0x61,0x6c,0x67])]:_0x598cab([0x45,0x53,0x32,0x35,0x36])},_0x46a91e=_0x561ec2[_0x598cab([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x598cab([0x67,0x65,0x74])](_0x598cab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1bf26d(){let _0xad0e0a,_0x48981f=null,_0x474c69=null;try{if(_0x46a91e==_0x598cab([0x47,0x50,0x4c]))return _0x598cab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xad0e0a=_0x4b69e2(),!_0xad0e0a)return _0x598cab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xad0e0a[_0x598cab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x474c69=_0x41c8eb(_0xad0e0a[_0x598cab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xad0e0a[_0x598cab([0x6a,0x74,0x69])])),await _0x2377c0()?_0x7a86be()?_0x1da935()?_0x598cab([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x258e23()?(_0xad0e0a[_0x598cab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x598cab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x48981f=_0x4f001d(_0x598cab([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xad0e0a[_0x598cab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x598cab([0x74,0x72,0x69,0x61,0x6c])&&(_0x48981f=_0x4f001d(_0x598cab([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x527834()):_0x598cab([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x598cab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x598cab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x598cab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1da935(){const _0x5795c8=[_0x598cab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x598cab([0x74,0x72,0x69,0x61,0x6c])][_0x598cab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xad0e0a[_0x598cab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ee1b7/0x3e8:0xe10*_0x44aaa9;return _0xad0e0a[_0x598cab([0x65,0x78,0x70])]<_0x5795c8;}function _0x7a86be(){const _0x42dbac=_0xad0e0a[_0x598cab([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42dbac&&(!!_0x42dbac[_0x598cab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598cab([0x2a]))||!!_0x42dbac[_0x598cab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598cab([0x55,0x50,0x4c,0x43])));}function _0x258e23(){const _0x1b24c5=_0xad0e0a[_0x598cab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b24c5||0x0==_0x1b24c5[_0x598cab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59658a}=new URL(window[_0x598cab([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b24c5[_0x598cab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59658a))return!0x0;const _0x31361b=_0x59658a[_0x598cab([0x73,0x70,0x6c,0x69,0x74])](_0x598cab([0x2e]));return _0x1b24c5[_0x598cab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ad9be=>_0x1ad9be[_0x598cab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598cab([0x2a])))[_0x598cab([0x6d,0x61,0x70])](_0x82c4f4=>_0x82c4f4[_0x598cab([0x73,0x70,0x6c,0x69,0x74])](_0x598cab([0x2e])))[_0x598cab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x482534=>_0x482534[_0x598cab([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x31361b[_0x598cab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x598cab([0x6d,0x61,0x70])](_0x181312=>Array(_0x31361b[_0x598cab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x181312[_0x598cab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x598cab([0x66,0x69,0x6c,0x6c])](_0x181312[0x0]===_0x598cab([0x2a])?_0x598cab([0x2a]):'')[_0x598cab([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x181312))[_0x598cab([0x73,0x6f,0x6d,0x65])](_0x289cbc=>_0x31361b[_0x598cab([0x65,0x76,0x65,0x72,0x79])]((_0xb355c0,_0xeec07f)=>_0x289cbc[_0xeec07f]===_0xb355c0||_0x289cbc[_0xeec07f]===_0x598cab([0x2a])));}function _0x527834(){return _0x48981f&&_0x474c69?new window[(_0x598cab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x347e71,_0x128ebe)=>{_0x48981f[_0x598cab([0x74,0x68,0x65,0x6e])](_0x347e71,_0x128ebe),_0x474c69[_0x598cab([0x74,0x68,0x65,0x6e])](_0x49b906=>{_0x49b906!=_0x598cab([0x56,0x61,0x6c,0x69,0x64])&&_0x347e71(_0x49b906);},_0x128ebe);}):_0x48981f||_0x474c69||_0x598cab([0x56,0x61,0x6c,0x69,0x64]);}}function _0x41c8eb(_0x252d33,_0x1f17f5){return new window[(_0x598cab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x87727a=>{if(_0x1daa2c())return _0x87727a(_0x598cab([0x56,0x61,0x6c,0x69,0x64]));_0xa1ac50(),_0x561ec2[_0x598cab([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x598cab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5f0c63=!0x1;const _0x277d4d=_0x497268();function _0x5b65e4(_0x3eedfc){return!!_0x3eedfc&&(typeof _0x3eedfc===_0x598cab([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3eedfc===_0x598cab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3eedfc[_0x598cab([0x74,0x68,0x65,0x6e])]===_0x598cab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3eedfc[_0x598cab([0x63,0x61,0x74,0x63,0x68])]===_0x598cab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51fa9d(_0x26286a){_0x151f6e(_0x26286a)[_0x598cab([0x74,0x68,0x65,0x6e])](_0xf2e954=>{if(!_0xf2e954||_0xf2e954[_0x598cab([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x598cab([0x6f,0x6b]))return _0x598cab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b7735(_0x3b8719(_0x277d4d+_0x1f17f5))!=_0xf2e954[_0x598cab([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x598cab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x598cab([0x56,0x61,0x6c,0x69,0x64]);})[_0x598cab([0x74,0x68,0x65,0x6e])](_0x29779b=>(_0x141616(),_0x29779b),()=>{const _0x3f0e3e=_0x588a54();return null==_0x3f0e3e?(_0x141616(),_0x598cab([0x56,0x61,0x6c,0x69,0x64])):_0x598cab(_0x3ee1b7-_0x3f0e3e>(0x27d454df^_0x3ae703)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x598cab([0x74,0x68,0x65,0x6e])](_0x87727a)[_0x598cab([0x63,0x61,0x74,0x63,0x68])](()=>{_0x87727a(_0x598cab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35eeb7=0x3ee3e5f^_0x3ae703;function _0x141616(){const _0x213ae3=_0x598cab([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b7735(_0x3b8719(_0x252d33)),_0x12cdc9=_0xbf3fd8(_0x1b7735(window[_0x598cab([0x4d,0x61,0x74,0x68])][_0x598cab([0x63,0x65,0x69,0x6c])](_0x3ee1b7/_0x35eeb7)));window[_0x598cab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x598cab([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x213ae3,_0x12cdc9);}function _0x588a54(){const _0x48608b=_0x598cab([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b7735(_0x3b8719(_0x252d33)),_0x3feb76=window[_0x598cab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x598cab([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48608b);return _0x3feb76?window[_0x598cab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbf3fd8(_0x3feb76),0x10)*_0x35eeb7:null;}function _0x151f6e(_0x412b19){return new window[(_0x598cab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22dba8,_0xc3cd43)=>{_0x412b19[_0x598cab([0x74,0x68,0x65,0x6e])](_0x22dba8,_0xc3cd43),window[_0x598cab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc3cd43,0x3d9041f^_0x3ae703);});}}_0x561ec2[_0x598cab([0x6f,0x6e])](_0x598cab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5efe1f,_0x24fc79)=>{if(_0x24fc79[0x0]!=_0x252d33)return _0x87727a(_0x598cab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x24fc79[0x1]={..._0x24fc79[0x1],[_0x598cab([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x277d4d};},{[_0x598cab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x598cab([0x68,0x69,0x67,0x68])}),_0x561ec2[_0x598cab([0x6f,0x6e])](_0x598cab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1798c4=>{_0x5b65e4(_0x1798c4[_0x598cab([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5f0c63=!0x0,_0x51fa9d(_0x1798c4[_0x598cab([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x598cab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x598cab([0x6c,0x6f,0x77])}),_0x6c714[_0x598cab([0x74,0x68,0x65,0x6e])](()=>{_0x5f0c63||_0x87727a(_0x598cab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1daa2c(){return _0x561ec2[_0x598cab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x598cab([0x76,0x69,0x65,0x77])][_0x598cab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x598cab([0x61,0x75,0x74,0x6f]);}function _0xa1ac50(){_0x561ec2[_0x598cab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x598cab([0x76,0x69,0x65,0x77])][_0x598cab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x598cab([0x61,0x75,0x74,0x6f]);}}function _0x4f001d(_0x4f0276){const _0x1a5bf6=[new window[(_0x598cab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x518d34=>setTimeout(_0x518d34,0x3d1ee13^_0x3ae703)),_0x6c714[_0x598cab([0x74,0x68,0x65,0x6e])](()=>new window[(_0x598cab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2919e6=>{let _0x14cce9=0x0;_0x561ec2[_0x598cab([0x6d,0x6f,0x64,0x65,0x6c])][_0x598cab([0x6f,0x6e])](_0x598cab([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54f746,_0x71cbd3)=>{_0x71cbd3[0x0][_0x598cab([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14cce9++,_0x14cce9==(0x3d8d127^_0x3ae703)&&(_0x2919e6(),_0x54f746[_0x598cab([0x6f,0x66,0x66])]());});}))];return window[_0x598cab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x598cab([0x72,0x61,0x63,0x65])](_0x1a5bf6)[_0x598cab([0x74,0x68,0x65,0x6e])](()=>_0x4f0276);}async function _0x1bb027(){await _0x6c714,_0x561ec2[_0x598cab([0x6d,0x6f,0x64,0x65,0x6c])][_0x598cab([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f6426,_0x561ec2[_0x598cab([0x6d,0x6f,0x64,0x65,0x6c])][_0x598cab([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f6426,_0x561ec2[_0x598cab([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x598cab([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1838a5(_0x4f3412){const _0x111285=_0x4dc93a();_0x561ec2[_0x111285]=_0x598cab([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f3412,_0x4f3412!=_0x598cab([0x56,0x61,0x6c,0x69,0x64])&&_0x1bb027();}function _0x4dc93a(){const _0x12752c=window[_0x598cab([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x598cab([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x598cab([0x6e,0x6f,0x77])]())[_0x598cab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x598cab([0x2e]),'');let _0x1b6297=_0x598cab([0x52]);for(let _0x427573=0x0;_0x427573<_0x12752c[_0x598cab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x427573+=0x2){let _0x5519fc=window[_0x598cab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12752c[_0x598cab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x427573,_0x427573+0x2));_0x5519fc>=_0x2426d7[_0x598cab([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5519fc-=_0x2426d7[_0x598cab([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b6297+=_0x2426d7[_0x5519fc];}return _0x1b6297;}function _0x4b69e2(){const _0x1b14d2=_0x46a91e[_0x598cab([0x73,0x70,0x6c,0x69,0x74])](_0x598cab([0x2e]));if(0x3!=_0x1b14d2[_0x598cab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x46931d(_0x1b14d2[0x1]);function _0x46931d(_0x1b9b87){const _0x1e0994=_0x1f7379(_0x1b9b87);return _0x1e0994&&_0x9a314e()?_0x1e0994:null;function _0x9a314e(){const _0x183811=_0x1e0994[_0x598cab([0x6a,0x74,0x69])],_0x2a98a9=window[_0x598cab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x183811[_0x598cab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x183811[_0x598cab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xda3c6c={..._0x1e0994,[_0x598cab([0x6a,0x74,0x69])]:_0x183811[_0x598cab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x183811[_0x598cab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xda3c6c[_0x598cab([0x76,0x63])],_0x3b8719(_0xda3c6c)==_0x2a98a9;}}}async function _0x2377c0(){let _0x4b2087=!0x0;try{const _0x202495=_0x46a91e[_0x598cab([0x73,0x70,0x6c,0x69,0x74])](_0x598cab([0x2e])),[_0x50e748,_0x447d5c,_0x96a32e]=_0x202495;return _0x544a3a(_0x50e748),await _0x3d4bfc(_0x50e748,_0x447d5c,_0x96a32e),_0x4b2087;}catch{return!0x1;}function _0x544a3a(_0x4ea0cf){const _0x364e7c=_0x1f7379(_0x4ea0cf);_0x364e7c&&_0x364e7c[_0x598cab([0x61,0x6c,0x67])]==_0x598cab([0x45,0x53,0x32,0x35,0x36])||(_0x4b2087=!0x1);}async function _0x3d4bfc(_0xb5f50a,_0x106517,_0x2edccd){const _0xfd2793=window[_0x598cab([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x598cab([0x66,0x72,0x6f,0x6d])](_0x2a94f9(_0x2edccd),_0x509e19=>_0x509e19[_0x598cab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3925bc=new window[(_0x598cab([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x598cab([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xb5f50a+_0x598cab([0x2e])+_0x106517),_0x472a61=window[_0x598cab([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x598cab([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x472a61)return;const _0x252fa4=await _0x472a61[_0x598cab([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x598cab([0x6a,0x77,0x6b]),_0x2a74ce,{[_0x598cab([0x6e,0x61,0x6d,0x65])]:_0x598cab([0x45,0x43,0x44,0x53,0x41]),[_0x598cab([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x598cab([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x598cab([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x472a61[_0x598cab([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x598cab([0x6e,0x61,0x6d,0x65])]:_0x598cab([0x45,0x43,0x44,0x53,0x41]),[_0x598cab([0x68,0x61,0x73,0x68])]:{[_0x598cab([0x6e,0x61,0x6d,0x65])]:_0x598cab([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x252fa4,_0xfd2793,_0x3925bc)||(_0x4b2087=!0x1);}}function _0x1f7379(_0x3d3add){return _0x3d3add[_0x598cab([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x598cab([0x65,0x79]))?JSON[_0x598cab([0x70,0x61,0x72,0x73,0x65])](_0x2a94f9(_0x3d3add)):null;}function _0x2a94f9(_0x4324a5){return window[_0x598cab([0x61,0x74,0x6f,0x62])](_0x4324a5[_0x598cab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x598cab([0x2b]))[_0x598cab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x598cab([0x2f])));}function _0x3b8719(_0x58b6b4){let _0x2aa315=0x1505;function _0x4f7bb1(_0x4cf7f8){for(let _0xbd38c1=0x0;_0xbd38c1<_0x4cf7f8[_0x598cab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbd38c1++){const _0xcff919=_0x4cf7f8[_0x598cab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xbd38c1);_0x2aa315=(_0x2aa315<<0x5)+_0x2aa315+_0xcff919,_0x2aa315&=_0x2aa315;}}function _0x42e86d(_0x3e4301){Array[_0x598cab([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e4301)?_0x3e4301[_0x598cab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x42e86d):_0x3e4301&&typeof _0x3e4301==_0x598cab([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x598cab([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e4301)[_0x598cab([0x73,0x6f,0x72,0x74])]()[_0x598cab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x193c62,_0x3c16f4])=>{_0x4f7bb1(_0x193c62),_0x42e86d(_0x3c16f4);}):_0x4f7bb1(window[_0x598cab([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e4301));}return _0x42e86d(_0x58b6b4),_0x2aa315>>>0x0;}function _0x1b7735(_0x833134){return _0x833134[_0x598cab([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x598cab([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x598cab([0x30]));}function _0xbf3fd8(_0x23147d){return _0x23147d[_0x598cab([0x73,0x70,0x6c,0x69,0x74])]('')[_0x598cab([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x598cab([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f6426(){}function _0x598cab(_0x7f328b){return _0x7f328b['map'](_0x535282=>String['fromCharCode'](_0x535282))['join']('');}_0x1838a5(await _0x1bf26d());}(this);}['_initSchema'](){const _0x1d42b9=this['editor']['model']['schema'];_0x1d42b9['isRegistered']('imageBlock')&&_0x1d42b9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1d42b9['isRegistered']('imageInline')&&_0x1d42b9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x592c81=this['editor'];_0x592c81['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x592c81['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5cbb8d=>_0x5cbb8d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x510ee6=_0x592c81['commands']['get']('replaceImageSource');_0x510ee6&&this['listenTo'](_0x510ee6,'cleanupImage',(_0x44757f,[_0x1baa21,_0x59e9ae])=>{_0x1baa21['removeAttribute']('uploadcareImageId',_0x59e9ae);});}['_initConfig'](){const _0x18956b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x17877d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3d23bd(_0x51a4b5['document'],'uc-config',{..._0x18956b,'pubkey':_0x17877d,'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']=_0x5b79c1=>{if('closeMax'==_0x5b79c1)return'#uc-icon-arrow-down';},_0x51a4b5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3d23bd(_0x51a4b5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x51a4b5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x13c954=this['editor']['commands']['get']('insertImage');_0x13c954&&this['listenTo'](_0x13c954,'execute',()=>{const _0x504e34=this['editor']['model']['document']['selection']['getSelectedElement']();_0x504e34&&_0x504e34['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x504e34);});});const _0x4fdac2=this['editor']['commands']['get']('uploadcareImageReplace');_0x4fdac2&&this['listenTo'](_0x4fdac2,'execute',()=>{const _0x413c8a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x413c8a&&_0x413c8a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x413c8a);});});}}class tt extends _0x2a521b{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x439cea){super(_0x439cea),_0x439cea['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x528d10['defineComponents'](_0x528d10);}}class ii extends _0x4063f5{constructor(_0x39f730){super(_0x39f730);const t=_0x39f730['t'],_0x39c050=this['bindTemplate'],_0x5e38a3=new _0x197970();_0x5e38a3['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':[_0x5e38a3,{'text':_0x39c050['to']('imageUploadProgress',_0x3e0768=>t('Loading\x20image...')+'\x20('+(_0x3e0768||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 _0x4063f5{constructor(_0x1672de){super(_0x1672de);const t=_0x1672de['t'];this['set']('errorType',null);const _0x3bd005=new _0x56ed90(_0x1672de);_0x3bd005['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3bd005['withText']=!0x0,_0x3bd005['class']='ck-button-action',_0x3bd005['on']('execute',()=>{this['fire']('retry');}),_0x3bd005['bind']('isVisible')['to'](this,'errorType',_0x432092=>'NotFound'!==_0x432092);const _0xbb7f65=new _0x290852();_0xbb7f65['content']=_0x1b0381,_0xbb7f65['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4729a2=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':[_0xbb7f65,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4729a2['to']('errorType',_0x3febc0=>t('NotFound'!==_0x3febc0?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3bd005]},{'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 _0x4063f5{constructor(_0x3f0162,_0x1485a4){super(_0x3f0162);const _0x145dc0=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1485a4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x145dc0['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2d8b85,_0x17c37d,_0x31ca95){super(_0x2d8b85),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2d8b85),this['_errorView']=new ti(_0x2d8b85),this['_editingView']=new ei(_0x2d8b85,_0x31ca95),this['_focusableView']=new _0x4063f5(_0x2d8b85),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x17c37d),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'],_0x1898c9=>{this['_addUploadcareImageEditorListeners'](_0x1898c9);});}),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'](_0x1f4a8d,_0x1bbc48){const _0x587648='uc-cloud-image-editor',_0x43d4c8=_0x1f4a8d['querySelector'](_0x587648);if(_0x43d4c8)return _0x1bbc48(_0x43d4c8);const _0x5a63c2=new MutationObserver(_0x260555=>{const _0xa8e92e=_0x260555['filter'](_0x1e9a33=>_0x1e9a33['target']===_0x1f4a8d&&_0x1e9a33['addedNodes']['length']>0x0&&_0x1e9a33['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x587648);_0xa8e92e['length']&&(_0x5a63c2['disconnect'](),_0x1bbc48(_0xa8e92e[0x0]['addedNodes'][0x0]));});_0x5a63c2['observe'](_0x1f4a8d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x337ea9){_0x337ea9['addEventListener']('apply',_0x49688b=>{this['fire']('apply',{'imageSrc':_0x49688b['detail']['cdnUrl']});}),_0x337ea9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x484d96(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2c0c8f,_0x26f006,_0x528d26){super(),this['_editor']=_0x2c0c8f,this['_dialog']=_0x26f006,this['_imageElement']=_0x528d26,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 _0x109797=this['_imageElement'],_0xb0039d=_0x109797['getAttribute']('uploadcareImageId'),_0x1698c3=_0x109797['getAttribute']('src');if(_0xb0039d)await this['_loadImageInfo'](_0xb0039d,_0x1698c3);else{if(this['_imageCache']['has'](_0x1698c3)){const _0x1a4a60=this['_imageCache']['get'](_0x1698c3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a4a60['url'],this['imageDimension']=_0x1a4a60['dimension'],this['imageId']=_0x1a4a60['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1bc7bd}=this['_editor'],t=_0x1bc7bd['t'],_0x297a8c=new X(_0x1bc7bd,this['imageStatus'],this['_attributes']);_0x297a8c['bind']('status')['to'](this,'imageStatus'),_0x297a8c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x297a8c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x297a8c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x297a8c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2dbca0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x297a8c,'position':_0x4ad98b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x297a8c['focus']();},'onHide':()=>{_0x297a8c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x597a68=>!A(_0x597a68,_0x297a8c['element'])}});}['_loadImageInfo'](_0x39abce,_0x1ebefe){return j['getInfo'](_0x39abce,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2d3415=>{const {width:_0x3bf2d5,height:_0x1746fa}=_0x2d3415['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ebefe,this['imageDimension']={'width':_0x3bf2d5,'height':_0x1746fa},this['imageId']=_0x39abce;})['catch'](_0x49880e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x49880e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x28f4e9,_0x18a529){return this['_getImageAsFile'](_0x28f4e9)['then'](_0xabbe54=>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':_0x18a529['signal'],'file':_0xabbe54,'onProgress':_0xbe084b=>{_0xbe084b&&_0xbe084b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xbe084b['value']));}}))['then'](_0x51ef62=>{const {width:_0x3b4cd2,height:_0x54b789}=_0x51ef62['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51ef62['cdnUrl'],this['imageDimension']={'width':_0x3b4cd2,'height':_0x54b789},this['imageId']=_0x51ef62['uuid'],this['imageUploadProgress']=null;const _0x285767=_0x28f4e9['getAttribute']('src');this['_imageCache']['set'](_0x285767,{'id':_0x51ef62['uuid'],'url':_0x51ef62['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x201e9e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x201e9e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x549c44,_0x51de97){_0x549c44['on']('apply',(_0x57627f,_0x276ca5)=>{this['_replaceImage'](_0x51de97,_0x276ca5['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x549c44['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x549c44['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x55f7e7,_0x4dd6c5,_0x1aadd5){const _0x54c6c8=this['_editor'],{width:_0x12f7a3,height:_0x45bcc5}=S(_0x4dd6c5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x374154,imageSources:_0x2eb144}=C(_0x4dd6c5,_0x12f7a3);_0x54c6c8['model']['change'](_0x504d22=>{if('$graveyard'===_0x55f7e7['root']['rootName']){_0x54c6c8['execute']('insertImage',{'imageType':_0x55f7e7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x55f7e7['getAttributes']()),'uploadcareImageId':_0x1aadd5,'src':_0x374154,'sources':_0x2eb144,'width':_0x12f7a3,'height':_0x45bcc5}});const _0x333add=_0x55f7e7['getChildren']();_0x55f7e7=_0x54c6c8['model']['document']['selection']['getSelectedElement']();for(const _0x1dbd64 of _0x333add)_0x504d22['append'](_0x504d22['cloneElement'](_0x1dbd64),_0x55f7e7);}else _0x504d22['setSelection'](_0x55f7e7,'on'),_0x54c6c8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x55f7e7['getAttributes']()),'uploadcareImageId':_0x1aadd5,'src':_0x374154,'sources':_0x2eb144,'width':_0x12f7a3,'height':_0x45bcc5},_0x55f7e7);_0x504d22['setSelection'](_0x55f7e7,'on');});}async['_getImageAsFile'](_0x2fe004){const _0x11116e=_0x51a4b5['window'],_0x206df2=_0x51a4b5['document']['location']['href'],_0x3ec515=new _0x11116e['URL'](_0x2fe004['getAttribute']('src'),_0x206df2);if('data:'===_0x3ec515['protocol']){const _0x461cfd=_0x3ec515['href']['split'](','),_0x3db763=_0x461cfd[0x0]['match'](/:(.*?);/)[0x1],_0x2c7191=_0x3db763['split']('/')[0x1],_0x44f1eb=_0x11116e['atob'](_0x461cfd[_0x461cfd['length']-0x1]);let _0xaff1f7=_0x44f1eb['length'];const _0x41689f=new _0x11116e['Uint8Array'](_0xaff1f7);for(;_0xaff1f7--;)_0x41689f[_0xaff1f7]=_0x44f1eb['charCodeAt'](_0xaff1f7);return new _0x11116e['File']([_0x41689f],'image.'+_0x2c7191,{'type':_0x3db763});}const _0x6cb65=_0x3ec515['href']['split']('/'),_0x536c34=_0x6cb65[_0x6cb65['length']-0x1],_0x20d1f1=_0x536c34['split']('.')[0x1];return _0x11116e['fetch'](_0x3ec515['href'])['then'](_0xe8f187=>_0xe8f187['clone']()['blob']())['then'](_0x16aa29=>new _0x11116e['File']([_0x16aa29],_0x536c34,{'type':'image/'+_0x20d1f1}));}}class O extends _0x2c632f{['imageEditController'];static get['requires'](){return[_0x25cee6];}['_isEditable'];constructor(_0x50f4ca){super(_0x50f4ca),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x35cbc2){const _0xd0dd06=G(_0x35cbc2);return _0x3cbd22=>!(!_0x3cbd22||!_0x3cbd22['is']('element','imageBlock')&&!_0x3cbd22['is']('element','imageInline'))&&(!!_0x3cbd22['hasAttribute']('uploadcareImageId')||!!_0x3cbd22['hasAttribute']('src')&&_0xd0dd06(_0x3cbd22['getAttribute']('src')));}(_0x50f4ca['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5b6c6f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5b6c6f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2aad36=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2aad36&&(_0x2aad36['is']('element','imageBlock')||_0x2aad36['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x25cee6),_0x2aad36),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x2c632f{['refresh'](){const _0xf2dbec=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xf2dbec&&(_0xf2dbec['is']('element','imageBlock')||_0xf2dbec['is']('element','imageInline')));}['execute'](_0x55626d){const _0x1a4d67=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x25bc0f=>{_0x25bc0f['setAttributes'](_0x55626d,_0x1a4d67),_0x25bc0f['removeAttribute']('srcset',_0x1a4d67),_0x25bc0f['removeAttribute']('sizes',_0x1a4d67);});}}class m extends _0x2a521b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xd13ee9,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x35c819}=this;_0x35c819['commands']['add']('uploadcareImageEdit',new O(_0x35c819)),_0x35c819['commands']['add']('uploadcareImageReplace',new R(_0x35c819));}}class g extends _0x2a521b{['_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 _0x1b6e61=this['editor'];_0x1b6e61['ui']['componentFactory']['add']('uploadcareImageEdit',_0x349adb=>{const _0x4b035b=_0x1b6e61['commands']['get']('uploadcareImageEdit'),_0x4658bc=new _0x56ed90(_0x349adb),t=_0x349adb['t'];return _0x4658bc['set']({'icon':_0x2dbca0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4658bc['bind']('isEnabled')['to'](_0x4b035b),_0x4658bc['bind']('isOn')['to'](_0x4b035b,'isActive'),this['listenTo'](_0x4658bc,'execute',()=>{_0x1b6e61['execute']('uploadcareImageEdit'),_0x1b6e61['editing']['view']['focus']();}),_0x4658bc;}),this['_initConfig']();}['_initConfig'](){const _0x5e4880=_0x3d23bd(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5e4880),this['listenTo'](this['editor'],'destroy',()=>{_0x5e4880['remove']();});}}class et extends _0x2a521b{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 _0x108b89,Command as _0x33bd10}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x8a6980,IconGooglePhotos as _0x32845b,IconGoogleDrive as _0x4cf376,IconFacebook as _0x30d35a,IconDropbox as _0x14879a,IconUploadcareLink as _0x107ab1,IconUploadcareImageUpload as _0x5299d2,IconError as _0x4da509,IconUploadcareImageEdit as _0x1e82f3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xd4b68c,MenuBarMenuListItemButtonView as _0x21602b,View as _0x2ff5d5,FocusCycler as _0x4fd6e0,Dialog as _0x11b1e1,DialogViewPosition as _0x31fe82,SpinnerView as _0x88d7a6,IconView as _0xeb9607,Notification as _0x293896}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x42b0cf,DomEmitterMixin as _0x596efd,global as _0x255c88,getAncestors as _0x53174c,ObservableMixin as _0x5d44f0,uid as _0x19b48d,createElement as _0x28a297}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x40e81f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1a72e0,info as _0x4565d4}from'@uploadcare/upload-client';import*as _0xb07fa0 from'@uploadcare/file-uploader';var i=function(_0x5d1595){return _0x5d1595['Local']='local',_0x5d1595['URL']='url',_0x5d1595['Dropbox']='dropbox',_0x5d1595['GDrive']='gdrive',_0x5d1595['Facebook']='facebook',_0x5d1595['GPhotos']='gphotos',_0x5d1595['OneDrive']='onedrive',_0x5d1595;}({});function _(_0x485eee,_0x2d0945,_0xcdeebd){const t=_0x485eee['t'],_0x5b7cff=_0x485eee['t'];switch(_0x2d0945){case i['Local']:return{'text':_0x5b7cff('Insert'===_0xcdeebd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5b7cff('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xcdeebd?_0x5b7cff('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5b7cff('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2d0945;}}class e extends _0x108b89{['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 _0x232cff=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x49b099;for(const _0x3f6392 in _0x232cff){const _0x34bba2=_0x3f6392,_0xf6d923=_0x232cff[_0x34bba2];if('uploadcareLicenseKeyValid'==_0xf6d923||'uploadcareLicenseKeyInvalid'==_0xf6d923||'uploadcareLicenseKeyExpired'==_0xf6d923||'uploadcareLicenseKeyDomainLimit'==_0xf6d923||'uploadcareLicenseKeyNotAllowed'==_0xf6d923||'uploadcareLicenseKeyEvaluationLimit'==_0xf6d923||'uploadcareLicenseKeyTrialLimit'==_0xf6d923||'uploadcareLicenseKeyUsageLimit'==_0xf6d923){delete _0x232cff[_0x34bba2],_0x49b099=_0xf6d923,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x49b099&&_0x232cff['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x49b099&&_0x232cff['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x49b099&&_0x232cff['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x49b099&&_0x232cff['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x49b099&&_0x232cff['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x49b099&&_0x232cff['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x49b099&&_0x232cff['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5211ff}=this,_0x11cb94=_0x5211ff['commands']['get']('uploadcare');if(!_0x11cb94)return;const _0x28aa91=this['_normalizeConfigSourceList'](_0x5211ff['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2dc76b,_0x464b61)=>{const _0xc51c51=this['_getIntegrationKey'](_0x464b61['type']);return _0x2dc76b[_0xc51c51]||(_0x2dc76b[_0xc51c51]=[]),_0x2dc76b[_0xc51c51]['push'](_0x464b61),_0x2dc76b;},{});_0x5211ff['plugins']['has']('ImageInsertUI')&&_0x5211ff['commands']['get']('uploadcare')&&Object['entries'](_0x28aa91)['forEach'](([_0x26d9c6,_0x5c58d0])=>{_0x5211ff['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x26d9c6,'observable':()=>_0x11cb94,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5c58d0),'formViewCreator':()=>this['_createDropdownButtons'](_0x5c58d0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5c58d0),'override':'assetManager'!==_0x26d9c6});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2fe786){const {locale:_0x55f941}=this['editor'];return _0x2fe786['map'](_0x1e6b86=>{const _0x5db8ec=_(_0x55f941,_0x1e6b86,'Insert');switch(_0x1e6b86){case i['Local']:return{'icon':_0x5299d2,'type':i['Local'],..._0x5db8ec};case i['URL']:return{'icon':_0x107ab1,'type':i['URL'],..._0x5db8ec};case i['Dropbox']:return{'icon':_0x14879a,'type':i['Dropbox'],..._0x5db8ec};case i['Facebook']:return{'icon':_0x30d35a,'type':i['Facebook'],..._0x5db8ec};case i['GDrive']:return{'icon':_0x4cf376,'type':i['GDrive'],..._0x5db8ec};case i['GPhotos']:return{'icon':_0x32845b,'type':i['GPhotos'],..._0x5db8ec};case i['OneDrive']:return{'icon':_0x8a6980,'type':i['OneDrive'],..._0x5db8ec};}});}['_getIntegrationKey'](_0x3ce3df){switch(_0x3ce3df){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1df32b,_0x5e717c){const _0x2cf2a9=this['editor'],_0x768ccb=new _0x1df32b(_0x2cf2a9['locale']),_0x171c07=_0x2cf2a9['commands']['get']('uploadcare');return _0x768ccb['bind']('isEnabled')['to'](_0x171c07),_0x768ccb['on']('execute',()=>{_0x171c07['execute'](_0x5e717c);}),_0x768ccb;}['_createToolbarButton'](_0x307d2b){const {locale:_0x3e953a}=this['editor'],_0x35a573=this['editor']['plugins']['get']('ImageInsertUI'),_0x3aa6af=_0x307d2b[0x0],_0x2d7080=this['_createButton'](_0xd4b68c,_0x3aa6af['type']);return _0x2d7080['icon']=_0x3aa6af['icon'],_0x2d7080['bind']('label')['to'](_0x35a573,'isImageSelected',_0x687a02=>_(_0x3e953a,_0x3aa6af['type'],_0x687a02?'Replace':'Insert')['text']),_0x2d7080['tooltip']=!0x0,_0x2d7080;}['_createDropdownButtons'](_0x5dcc20){const {locale:_0x1acba2}=this['editor'],_0x227e67=this['editor']['plugins']['get']('ImageInsertUI');return _0x5dcc20['map'](_0xe9321c=>{const _0x14e146=this['_createButton'](_0xd4b68c,_0xe9321c['type']);return _0x14e146['withText']=!0x0,_0x14e146['icon']=_0xe9321c['icon'],_0x14e146['bind']('label')['to'](_0x227e67,'isImageSelected',_0x376d95=>_(_0x1acba2,_0xe9321c['type'],_0x376d95?'Replace':'Insert')['text']),_0x14e146;});}['_createMenuBarButtons'](_0x3189d3){return _0x3189d3['map'](_0x3b5fa6=>{const _0x2c1313=this['_createButton'](_0x21602b,_0x3b5fa6['type']);return _0x2c1313['icon']=_0x3b5fa6['icon'],_0x2c1313['label']=_0x3b5fa6['shortText'],_0x2c1313;});}}class F extends _0x2ff5d5{['focusTracker'];['focusCycler'];constructor(_0x5725ed){super(_0x5725ed),this['focusTracker']=new _0x42b0cf(),this['focusCycler']=new _0x4fd6e0({'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(_0x7d8794,_0x276c96){super(_0x7d8794),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-'+_0x276c96}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x585ea5,_0xa6a661){const _0x228ea0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x312950=>_0x312950<=_0xa6a661)['map'](_0x895fde=>_0x585ea5['replace'](/\/$/,'')+'/-/resize/'+_0x895fde+'x/\x20'+_0x895fde+'w');return{'imageFallbackUrl':_0x585ea5,'imageSources':[{'srcset':_0x228ea0['join'](',\x20'),'sizes':'(max-width:\x20'+_0xa6a661+'px)\x20100vw,\x20'+_0xa6a661+'px','type':'image/webp'}]};}function S(_0x202fec,_0xae859a,_0xf2351c){const _0x1c0a52=_0x202fec['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1c0a52?parseInt(_0x1c0a52[0x1],0xa):_0xae859a,'height':_0x1c0a52?parseInt(_0x1c0a52[0x2],0xa):_0xf2351c};}function p(_0x1f8a47,_0x1a5100){const _0x209d6c=new(_0x596efd())(),_0x2502cf=_0x1f8a47['plugins']['get']('ImageUtils'),_0x3a8ede=_0x1f8a47['editing']['mapper']['toViewElement'](_0x1a5100),_0x47b15e=_0x2502cf['findViewImgElement'](_0x3a8ede),_0x31f6f9=_0x1f8a47['editing']['view']['domConverter']['viewToDom'](_0x47b15e),_0x50db90=_0x1a5100['getAttribute']('width'),_0x3c9214=_0x1a5100['getAttribute']('height'),_0x36ff0a='image-processing';_0x1f8a47['editing']['view']['change'](_0x3d371a=>{_0x3d371a['addClass'](_0x36ff0a,_0x3a8ede),_0x3d371a['setStyle']('aspect-ratio',_0x50db90+'/'+_0x3c9214,_0x47b15e);}),_0x209d6c['listenTo'](_0x31f6f9,'load',()=>{_0x209d6c['stopListening'](_0x31f6f9,'load'),_0x1f8a47['editing']['view']['change'](_0x28dd8b=>{_0x28dd8b['removeClass'](_0x36ff0a,_0x3a8ede),_0x28dd8b['removeStyle']('aspect-ratio',_0x47b15e);});});}function G(_0xf37830){if(Array['isArray'](_0xf37830)){const _0x83dd12=_0xf37830['map'](G);return _0x2b540b=>_0x83dd12['some'](_0x2c5ffe=>_0x2c5ffe(_0x2b540b));}if('origin'==_0xf37830){const _0x251056=_0x255c88['window']['location']['origin'];return _0xe7a983=>new URL(_0xe7a983,_0x255c88['document']['baseURI'])['origin']==_0x251056;}return'function'==typeof _0xf37830?_0xf37830:_0xf37830 instanceof RegExp?_0x239e6e=>!(!_0x239e6e['match'](_0xf37830)&&!_0x239e6e['replace'](/^https?:\/\//,'')['match'](_0xf37830)):()=>!0x1;}function A(_0x418189,_0x42ec23){return _0x53174c(_0x418189['target'])['includes'](_0x42ec23);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d44f0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x437de9,_0x2ff38c,_0x3823d2){super(),this['_editor']=_0x437de9,this['_editing']=_0x2ff38c,this['_dialog']=_0x437de9['plugins']['get'](_0x11b1e1),this['_api']=_0x2ff38c['ctxElement']['getAPI'](),this['_type']=_0x3823d2,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:_0x35ba8a,model:_0x29848a}=this['_editor'],_0x41188f=_0x29848a['document']['selection']['getSelectedElement'](),_0x1882ed=_0x41188f&&(_0x41188f['is']('element','imageBlock')||_0x41188f['is']('element','imageInline'));this['_formView']=new x(_0x35ba8a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5299d2,'title':_(_0x35ba8a,this['_type'],_0x1882ed?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x31fe82['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4dd9e4=>!A(_0x4dd9e4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x12e96b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1028f2=>{const _0x23f784=_0x12e96b['length'];for(const _0x21f43e of _0x12e96b){const _0xf5fed4=_0x21f43e===_0x12e96b[_0x23f784-0x1],{cdnUrl:_0x537afd,fileInfo:_0x230250}=_0x21f43e;if(!_0x537afd||!_0x230250)continue;const {width:_0x161da5,height:_0x425d63}=_0x230250['imageInfo'],_0x46e517=S(_0x537afd,_0x161da5,_0x425d63),_0x467dad=C(_0x537afd,_0x46e517['width']),_0x24e556={'id':_0x230250['uuid'],'type':'image','attributes':{'imageDimension':_0x46e517,..._0x467dad}};this['_insertAsset'](_0x24e556,_0xf5fed4,_0x1028f2);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x42158d=>{'idle'===_0x42158d['detail']['status']&&!_0x42158d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x109f37,_0x5c1ce8,_0x5e2d7b){const _0xaf10a3=this['_editor']['model']['document']['selection'],_0x99dc46=_0xaf10a3['getSelectedElement'](),_0x19f9ac=!(!_0x99dc46||!_0x99dc46['is']('element','imageInline'));_0x5e2d7b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x109f37,_0x19f9ac),_0x5c1ce8||_0x5e2d7b['setSelection'](_0xaf10a3['getLastPosition']());}['_insertImage'](_0x3b235d,_0x482b00){const _0x466abe=this['_editor'],{imageDimension:_0x28b29d,imageFallbackUrl:_0x5b526f,imageSources:_0x49ee17}=_0x3b235d['attributes'];_0x466abe['execute']('insertImage',{'imageType':_0x482b00?'imageInline':null,'source':{'uploadcareImageId':_0x3b235d['id'],'src':_0x5b526f,'sources':_0x49ee17,..._0x28b29d}});}}class w extends _0x33bd10{['_editing'];['_controller']=null;static get['requires'](){return[_0x11b1e1,o];}constructor(_0x5c7437){super(_0x5c7437),this['_editing']=_0x5c7437['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2cb995){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2cb995);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xcb4033,..._0x3af75d}){return _0x1a72e0(_0xcb4033,_0x3af75d);}static['getInfo'](_0x3a83ec,_0x139f20){return _0x4565d4(_0x3a83ec,_0x139f20);}}class f extends _0x108b89{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x40e81f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x583125=this['editor'];if(!!!_0x583125['config']['get']('uploadcare'))return;_0x583125['plugins']['get'](_0x40e81f)['createUploadAdapter']=_0x59a479=>new k(_0x59a479,_0x583125),_0x583125['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x32e1ab,{imageElement:_0x4a2ad4,data:_0x4ddc94})=>{_0x583125['model']['change'](_0x33ca31=>{_0x33ca31['setAttribute']('uploadcareImageId',_0x4ddc94['uploadcareImageId'],_0x4a2ad4);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5a661d,_0x54cc0f){this['loader']=_0x5a661d,this['editor']=_0x54cc0f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x9d89f7=await this['loader']['file'];return j['upload']({'file':_0x9d89f7,'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':_0x48eb25=>{_0x48eb25&&_0x48eb25['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x48eb25['value']);}})['then'](async _0x4180dd=>{const {imageFallbackUrl:_0x552b03,imageSources:_0x2a2804}=C(_0x4180dd['cdnUrl'],_0x4180dd['imageInfo']['width']);return{'uploadcareImageId':_0x4180dd['uuid'],'default':_0x552b03,'sources':_0x2a2804};})['catch'](()=>{const _0x3fb6b0=t('Cannot\x20upload\x20file:')+('\x20'+_0x9d89f7['name']+'.');return Promise['reject'](_0x3fb6b0);});}['abort'](){this['controller']['abort']();}}class o extends _0x108b89{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x11b1e1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3ca3ac){super(_0x3ca3ac),this['ucContextId']=_0x19b48d();}['init'](){const _0x45f9d6=this['editor'];_0x45f9d6['commands']['add']('uploadcare',new w(_0x45f9d6));}['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 _0x1aa8b4=_0x255c88['document']['querySelector']('input[uploadcare-file-input]');_0x1aa8b4&&_0x1aa8b4['remove']();}),async function(_0x9073b3){const _0x330121=_0x1477b4([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]),_0x47c2f2=0x3d8d0df,_0x2e03cc=0x3dfa337^_0x47c2f2,_0x3fe41a=window[_0x1477b4([0x44,0x61,0x74,0x65])][_0x1477b4([0x6e,0x6f,0x77])](),_0x1d33d2=_0x9073b3[_0x1477b4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c9a0d=new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23063b=>{_0x1d33d2[_0x1477b4([0x6f,0x6e,0x63,0x65])](_0x1477b4([0x72,0x65,0x61,0x64,0x79]),_0x23063b);}),_0x166697={[_0x1477b4([0x6b,0x74,0x79])]:_0x1477b4([0x45,0x43]),[_0x1477b4([0x75,0x73,0x65])]:_0x1477b4([0x73,0x69,0x67]),[_0x1477b4([0x63,0x72,0x76])]:_0x1477b4([0x50,0x2d,0x32,0x35,0x36]),[_0x1477b4([0x78])]:_0x1477b4([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]),[_0x1477b4([0x79])]:_0x1477b4([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]),[_0x1477b4([0x61,0x6c,0x67])]:_0x1477b4([0x45,0x53,0x32,0x35,0x36])},_0x46755a=_0x1d33d2[_0x1477b4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1477b4([0x67,0x65,0x74])](_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d33c3(){let _0x17a9f4,_0x59e565=null,_0x58dd0e=null;try{if(_0x46755a==_0x1477b4([0x47,0x50,0x4c]))return _0x1477b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17a9f4=_0x5084ea(),!_0x17a9f4)return _0x1477b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17a9f4[_0x1477b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x58dd0e=_0x507b98(_0x17a9f4[_0x1477b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17a9f4[_0x1477b4([0x6a,0x74,0x69])])),await _0x363e77()?_0x607500()?_0x291b44()?_0x1477b4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x485255()?(_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1477b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59e565=_0x378169(_0x1477b4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1477b4([0x74,0x72,0x69,0x61,0x6c])&&(_0x59e565=_0x378169(_0x1477b4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x487e5f()):_0x1477b4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1477b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1477b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1477b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x291b44(){const _0x25cda6=[_0x1477b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1477b4([0x74,0x72,0x69,0x61,0x6c])][_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fe41a/0x3e8:0xe10*_0x2e03cc;return _0x17a9f4[_0x1477b4([0x65,0x78,0x70])]<_0x25cda6;}function _0x607500(){const _0x1d9d08=_0x17a9f4[_0x1477b4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1d9d08&&(!!_0x1d9d08[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1477b4([0x2a]))||!!_0x1d9d08[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1477b4([0x55,0x50,0x4c,0x43])));}function _0x485255(){const _0x242e30=_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x242e30||0x0==_0x242e30[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44fa73}=new URL(window[_0x1477b4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x242e30[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44fa73))return!0x0;const _0x2a39f1=_0x44fa73[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e]));return _0x242e30[_0x1477b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f4f64=>_0x3f4f64[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1477b4([0x2a])))[_0x1477b4([0x6d,0x61,0x70])](_0x467103=>_0x467103[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e])))[_0x1477b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x171ab7=>_0x171ab7[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2a39f1[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1477b4([0x6d,0x61,0x70])](_0xc098c4=>Array(_0x2a39f1[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc098c4[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1477b4([0x66,0x69,0x6c,0x6c])](_0xc098c4[0x0]===_0x1477b4([0x2a])?_0x1477b4([0x2a]):'')[_0x1477b4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc098c4))[_0x1477b4([0x73,0x6f,0x6d,0x65])](_0x13a190=>_0x2a39f1[_0x1477b4([0x65,0x76,0x65,0x72,0x79])]((_0x596b83,_0x3b3c81)=>_0x13a190[_0x3b3c81]===_0x596b83||_0x13a190[_0x3b3c81]===_0x1477b4([0x2a])));}function _0x487e5f(){return _0x59e565&&_0x58dd0e?new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x116067,_0x30abc9)=>{_0x59e565[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x116067,_0x30abc9),_0x58dd0e[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x211194=>{_0x211194!=_0x1477b4([0x56,0x61,0x6c,0x69,0x64])&&_0x116067(_0x211194);},_0x30abc9);}):_0x59e565||_0x58dd0e||_0x1477b4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x507b98(_0x421121,_0x27a54d){return new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x127730=>{if(_0x28aaf7())return _0x127730(_0x1477b4([0x56,0x61,0x6c,0x69,0x64]));_0x48a339(),_0x1d33d2[_0x1477b4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1477b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31608c=!0x1;const _0x5a0d76=_0x19b48d();function _0x3552da(_0xb2b050){return!!_0xb2b050&&(typeof _0xb2b050===_0x1477b4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb2b050===_0x1477b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb2b050[_0x1477b4([0x74,0x68,0x65,0x6e])]===_0x1477b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb2b050[_0x1477b4([0x63,0x61,0x74,0x63,0x68])]===_0x1477b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x365974(_0x6d1371){_0x3ff4af(_0x6d1371)[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x2f9df2=>{if(!_0x2f9df2||_0x2f9df2[_0x1477b4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1477b4([0x6f,0x6b]))return _0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45bb61(_0x2c2904(_0x5a0d76+_0x27a54d))!=_0x2f9df2[_0x1477b4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1477b4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x4b9094=>(_0x4bb0a6(),_0x4b9094),()=>{const _0x39f036=_0x2be099();return null==_0x39f036?(_0x4bb0a6(),_0x1477b4([0x56,0x61,0x6c,0x69,0x64])):_0x1477b4(_0x3fe41a-_0x39f036>(0x27d454df^_0x47c2f2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x127730)[_0x1477b4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x127730(_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x336ddf=0x3ee3e5f^_0x47c2f2;function _0x4bb0a6(){const _0x1bb0d0=_0x1477b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x45bb61(_0x2c2904(_0x421121)),_0x18e725=_0x27bad1(_0x45bb61(window[_0x1477b4([0x4d,0x61,0x74,0x68])][_0x1477b4([0x63,0x65,0x69,0x6c])](_0x3fe41a/_0x336ddf)));window[_0x1477b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1477b4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bb0d0,_0x18e725);}function _0x2be099(){const _0x14cfa2=_0x1477b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x45bb61(_0x2c2904(_0x421121)),_0xab7e18=window[_0x1477b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1477b4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14cfa2);return _0xab7e18?window[_0x1477b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27bad1(_0xab7e18),0x10)*_0x336ddf:null;}function _0x3ff4af(_0x2917a0){return new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16dd05,_0x1f0e1f)=>{_0x2917a0[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x16dd05,_0x1f0e1f),window[_0x1477b4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f0e1f,0x3d9041f^_0x47c2f2);});}}_0x1d33d2[_0x1477b4([0x6f,0x6e])](_0x1477b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x95c10a,_0x5d7008)=>{if(_0x5d7008[0x0]!=_0x421121)return _0x127730(_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d7008[0x1]={..._0x5d7008[0x1],[_0x1477b4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a0d76};},{[_0x1477b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1477b4([0x68,0x69,0x67,0x68])}),_0x1d33d2[_0x1477b4([0x6f,0x6e])](_0x1477b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x186897=>{_0x3552da(_0x186897[_0x1477b4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31608c=!0x0,_0x365974(_0x186897[_0x1477b4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1477b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1477b4([0x6c,0x6f,0x77])}),_0x1c9a0d[_0x1477b4([0x74,0x68,0x65,0x6e])](()=>{_0x31608c||_0x127730(_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x28aaf7(){return _0x1d33d2[_0x1477b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1477b4([0x76,0x69,0x65,0x77])][_0x1477b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1477b4([0x61,0x75,0x74,0x6f]);}function _0x48a339(){_0x1d33d2[_0x1477b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1477b4([0x76,0x69,0x65,0x77])][_0x1477b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1477b4([0x61,0x75,0x74,0x6f]);}}function _0x378169(_0x4a15be){const _0x5c80df=[new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x69eb78=>setTimeout(_0x69eb78,0x3d1ee13^_0x47c2f2)),_0x1c9a0d[_0x1477b4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x584237=>{let _0x301a54=0x0;_0x1d33d2[_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1477b4([0x6f,0x6e])](_0x1477b4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x368ae7,_0x16e1ec)=>{_0x16e1ec[0x0][_0x1477b4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x301a54++,_0x301a54==(0x3d8d127^_0x47c2f2)&&(_0x584237(),_0x368ae7[_0x1477b4([0x6f,0x66,0x66])]());});}))];return window[_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1477b4([0x72,0x61,0x63,0x65])](_0x5c80df)[_0x1477b4([0x74,0x68,0x65,0x6e])](()=>_0x4a15be);}async function _0x138b47(){await _0x1c9a0d,_0x1d33d2[_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1477b4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58fe4e,_0x1d33d2[_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1477b4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58fe4e,_0x1d33d2[_0x1477b4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ed7aa(_0x5cf009){const _0x33de44=_0x4a8a6c();_0x1d33d2[_0x33de44]=_0x1477b4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5cf009,_0x5cf009!=_0x1477b4([0x56,0x61,0x6c,0x69,0x64])&&_0x138b47();}function _0x4a8a6c(){const _0x3036fa=window[_0x1477b4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1477b4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1477b4([0x6e,0x6f,0x77])]())[_0x1477b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1477b4([0x2e]),'');let _0x59997c=_0x1477b4([0x52]);for(let _0xcbf5ec=0x0;_0xcbf5ec<_0x3036fa[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcbf5ec+=0x2){let _0x560e90=window[_0x1477b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3036fa[_0x1477b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcbf5ec,_0xcbf5ec+0x2));_0x560e90>=_0x330121[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x560e90-=_0x330121[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59997c+=_0x330121[_0x560e90];}return _0x59997c;}function _0x5084ea(){const _0x352af1=_0x46755a[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e]));if(0x3!=_0x352af1[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43b727(_0x352af1[0x1]);function _0x43b727(_0x2a6de0){const _0x136345=_0x239ee6(_0x2a6de0);return _0x136345&&_0xf89870()?_0x136345:null;function _0xf89870(){const _0x212f47=_0x136345[_0x1477b4([0x6a,0x74,0x69])],_0x549d14=window[_0x1477b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x212f47[_0x1477b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x212f47[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36f0a8={..._0x136345,[_0x1477b4([0x6a,0x74,0x69])]:_0x212f47[_0x1477b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x212f47[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36f0a8[_0x1477b4([0x76,0x63])],_0x2c2904(_0x36f0a8)==_0x549d14;}}}async function _0x363e77(){let _0x270251=!0x0;try{const _0x42abb6=_0x46755a[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e])),[_0x577eff,_0x3c3d06,_0x3a0c2a]=_0x42abb6;return _0x28ef6f(_0x577eff),await _0x15a183(_0x577eff,_0x3c3d06,_0x3a0c2a),_0x270251;}catch{return!0x1;}function _0x28ef6f(_0x5b6f8e){const _0x26ac7b=_0x239ee6(_0x5b6f8e);_0x26ac7b&&_0x26ac7b[_0x1477b4([0x61,0x6c,0x67])]==_0x1477b4([0x45,0x53,0x32,0x35,0x36])||(_0x270251=!0x1);}async function _0x15a183(_0x196ca3,_0x10bf6f,_0x4bafc6){const _0x615366=window[_0x1477b4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1477b4([0x66,0x72,0x6f,0x6d])](_0x200161(_0x4bafc6),_0x6625fc=>_0x6625fc[_0x1477b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x165321=new window[(_0x1477b4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1477b4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x196ca3+_0x1477b4([0x2e])+_0x10bf6f),_0x1007f6=window[_0x1477b4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1477b4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1007f6)return;const _0x232952=await _0x1007f6[_0x1477b4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1477b4([0x6a,0x77,0x6b]),_0x166697,{[_0x1477b4([0x6e,0x61,0x6d,0x65])]:_0x1477b4([0x45,0x43,0x44,0x53,0x41]),[_0x1477b4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1477b4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1477b4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1007f6[_0x1477b4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1477b4([0x6e,0x61,0x6d,0x65])]:_0x1477b4([0x45,0x43,0x44,0x53,0x41]),[_0x1477b4([0x68,0x61,0x73,0x68])]:{[_0x1477b4([0x6e,0x61,0x6d,0x65])]:_0x1477b4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x232952,_0x615366,_0x165321)||(_0x270251=!0x1);}}function _0x239ee6(_0x3cb163){return _0x3cb163[_0x1477b4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1477b4([0x65,0x79]))?JSON[_0x1477b4([0x70,0x61,0x72,0x73,0x65])](_0x200161(_0x3cb163)):null;}function _0x200161(_0xc91dd2){return window[_0x1477b4([0x61,0x74,0x6f,0x62])](_0xc91dd2[_0x1477b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1477b4([0x2b]))[_0x1477b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1477b4([0x2f])));}function _0x2c2904(_0x2393b5){let _0x124f6e=0x1505;function _0x4f2427(_0x182015){for(let _0x4e49e8=0x0;_0x4e49e8<_0x182015[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e49e8++){const _0x7f016f=_0x182015[_0x1477b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e49e8);_0x124f6e=(_0x124f6e<<0x5)+_0x124f6e+_0x7f016f,_0x124f6e&=_0x124f6e;}}function _0x4bbf98(_0x43c380){Array[_0x1477b4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43c380)?_0x43c380[_0x1477b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bbf98):_0x43c380&&typeof _0x43c380==_0x1477b4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1477b4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43c380)[_0x1477b4([0x73,0x6f,0x72,0x74])]()[_0x1477b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3dd54d,_0x2e6d7a])=>{_0x4f2427(_0x3dd54d),_0x4bbf98(_0x2e6d7a);}):_0x4f2427(window[_0x1477b4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43c380));}return _0x4bbf98(_0x2393b5),_0x124f6e>>>0x0;}function _0x45bb61(_0x3725eb){return _0x3725eb[_0x1477b4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1477b4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1477b4([0x30]));}function _0x27bad1(_0x3c7324){return _0x3c7324[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1477b4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1477b4([0x6a,0x6f,0x69,0x6e])]('');}function _0x58fe4e(){}function _0x1477b4(_0x5e3afd){return _0x5e3afd['map'](_0x2a0419=>String['fromCharCode'](_0x2a0419))['join']('');}_0x5ed7aa(await _0x4d33c3());}(this);}['_initSchema'](){const _0x311e3b=this['editor']['model']['schema'];_0x311e3b['isRegistered']('imageBlock')&&_0x311e3b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x311e3b['isRegistered']('imageInline')&&_0x311e3b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2b3016=this['editor'];_0x2b3016['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2b3016['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1dcd4a=>_0x1dcd4a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xf5eab2=_0x2b3016['commands']['get']('replaceImageSource');_0xf5eab2&&this['listenTo'](_0xf5eab2,'cleanupImage',(_0x37d651,[_0x480f5f,_0x41f8b3])=>{_0x480f5f['removeAttribute']('uploadcareImageId',_0x41f8b3);});}['_initConfig'](){const _0x562eeb=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1299fd=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x28a297(_0x255c88['document'],'uc-config',{..._0x562eeb,'pubkey':_0x1299fd,'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']=_0x552fbd=>{if('closeMax'==_0x552fbd)return'#uc-icon-arrow-down';},_0x255c88['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x28a297(_0x255c88['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x255c88['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x54b806=this['editor']['commands']['get']('insertImage');_0x54b806&&this['listenTo'](_0x54b806,'execute',()=>{const _0x1d3573=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1d3573&&_0x1d3573['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1d3573);});});const _0x2012f3=this['editor']['commands']['get']('uploadcareImageReplace');_0x2012f3&&this['listenTo'](_0x2012f3,'execute',()=>{const _0x13a747=this['editor']['model']['document']['selection']['getSelectedElement']();_0x13a747&&_0x13a747['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x13a747);});});}}class tt extends _0x108b89{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51d265){super(_0x51d265),_0x51d265['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xb07fa0['defineComponents'](_0xb07fa0);}}class ii extends _0x2ff5d5{constructor(_0xbdfe7a){super(_0xbdfe7a);const t=_0xbdfe7a['t'],_0x40c480=this['bindTemplate'],_0x50b219=new _0x88d7a6();_0x50b219['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':[_0x50b219,{'text':_0x40c480['to']('imageUploadProgress',_0x3ff03e=>t('Loading\x20image...')+'\x20('+(_0x3ff03e||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 _0x2ff5d5{constructor(_0x7e2173){super(_0x7e2173);const t=_0x7e2173['t'];this['set']('errorType',null);const _0x5889dc=new _0xd4b68c(_0x7e2173);_0x5889dc['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5889dc['withText']=!0x0,_0x5889dc['class']='ck-button-action',_0x5889dc['on']('execute',()=>{this['fire']('retry');}),_0x5889dc['bind']('isVisible')['to'](this,'errorType',_0x5d414a=>'NotFound'!==_0x5d414a);const _0x579cb6=new _0xeb9607();_0x579cb6['content']=_0x4da509,_0x579cb6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x36fa8e=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':[_0x579cb6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x36fa8e['to']('errorType',_0x425367=>t('NotFound'!==_0x425367?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5889dc]},{'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 _0x2ff5d5{constructor(_0x16b3ae,_0x524bd7){super(_0x16b3ae);const _0x1c57d3=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x524bd7,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1c57d3['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x409292,_0x45fc3e,_0x45d599){super(_0x409292),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x409292),this['_errorView']=new ti(_0x409292),this['_editingView']=new ei(_0x409292,_0x45d599),this['_focusableView']=new _0x2ff5d5(_0x409292),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x45fc3e),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'],_0x462a55=>{this['_addUploadcareImageEditorListeners'](_0x462a55);});}),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'](_0x19247d,_0xc2674b){const _0x167425='uc-cloud-image-editor',_0x611270=_0x19247d['querySelector'](_0x167425);if(_0x611270)return _0xc2674b(_0x611270);const _0x552e20=new MutationObserver(_0x1eda8b=>{const _0x101578=_0x1eda8b['filter'](_0x16f3bc=>_0x16f3bc['target']===_0x19247d&&_0x16f3bc['addedNodes']['length']>0x0&&_0x16f3bc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x167425);_0x101578['length']&&(_0x552e20['disconnect'](),_0xc2674b(_0x101578[0x0]['addedNodes'][0x0]));});_0x552e20['observe'](_0x19247d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x50934d){_0x50934d['addEventListener']('apply',_0x551867=>{this['fire']('apply',{'imageSrc':_0x551867['detail']['cdnUrl']});}),_0x50934d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5d44f0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xb3d916,_0x575cf1,_0x56351a){super(),this['_editor']=_0xb3d916,this['_dialog']=_0x575cf1,this['_imageElement']=_0x56351a,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 _0x505c9e=this['_imageElement'],_0x4defb2=_0x505c9e['getAttribute']('uploadcareImageId'),_0x297844=_0x505c9e['getAttribute']('src');if(_0x4defb2)await this['_loadImageInfo'](_0x4defb2,_0x297844);else{if(this['_imageCache']['has'](_0x297844)){const _0x38d3c5=this['_imageCache']['get'](_0x297844);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38d3c5['url'],this['imageDimension']=_0x38d3c5['dimension'],this['imageId']=_0x38d3c5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x30fe39}=this['_editor'],t=_0x30fe39['t'],_0xa55a54=new X(_0x30fe39,this['imageStatus'],this['_attributes']);_0xa55a54['bind']('status')['to'](this,'imageStatus'),_0xa55a54['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xa55a54['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xa55a54['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xa55a54,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1e82f3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xa55a54,'position':_0x31fe82['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xa55a54['focus']();},'onHide':()=>{_0xa55a54['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3102d2=>!A(_0x3102d2,_0xa55a54['element'])}});}['_loadImageInfo'](_0x273d2d,_0x4e1a75){return j['getInfo'](_0x273d2d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3a6938=>{const {width:_0x3b5493,height:_0x1eea11}=_0x3a6938['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e1a75,this['imageDimension']={'width':_0x3b5493,'height':_0x1eea11},this['imageId']=_0x273d2d;})['catch'](_0x2c53cf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c53cf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x462193,_0x2a4fdf){return this['_getImageAsFile'](_0x462193)['then'](_0x5dd178=>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':_0x2a4fdf['signal'],'file':_0x5dd178,'onProgress':_0x2c5f9a=>{_0x2c5f9a&&_0x2c5f9a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2c5f9a['value']));}}))['then'](_0x173999=>{const {width:_0x1ca504,height:_0x4fd69c}=_0x173999['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x173999['cdnUrl'],this['imageDimension']={'width':_0x1ca504,'height':_0x4fd69c},this['imageId']=_0x173999['uuid'],this['imageUploadProgress']=null;const _0x56a1d4=_0x462193['getAttribute']('src');this['_imageCache']['set'](_0x56a1d4,{'id':_0x173999['uuid'],'url':_0x173999['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3c0fdd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3c0fdd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x54e850,_0x1a9a4b){_0x54e850['on']('apply',(_0x11f7ac,_0x284734)=>{this['_replaceImage'](_0x1a9a4b,_0x284734['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x54e850['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x54e850['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2ef11b,_0x449f6a,_0x2cb921){const _0x57393f=this['_editor'],{width:_0x287b01,height:_0x1c94d3}=S(_0x449f6a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x33e578,imageSources:_0x3b8084}=C(_0x449f6a,_0x287b01);_0x57393f['model']['change'](_0x10d538=>{if('$graveyard'===_0x2ef11b['root']['rootName']){_0x57393f['execute']('insertImage',{'imageType':_0x2ef11b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2ef11b['getAttributes']()),'uploadcareImageId':_0x2cb921,'src':_0x33e578,'sources':_0x3b8084,'width':_0x287b01,'height':_0x1c94d3}});const _0x2633c6=_0x2ef11b['getChildren']();_0x2ef11b=_0x57393f['model']['document']['selection']['getSelectedElement']();for(const _0x35c621 of _0x2633c6)_0x10d538['append'](_0x10d538['cloneElement'](_0x35c621),_0x2ef11b);}else _0x10d538['setSelection'](_0x2ef11b,'on'),_0x57393f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2ef11b['getAttributes']()),'uploadcareImageId':_0x2cb921,'src':_0x33e578,'sources':_0x3b8084,'width':_0x287b01,'height':_0x1c94d3},_0x2ef11b);_0x10d538['setSelection'](_0x2ef11b,'on');});}async['_getImageAsFile'](_0x172263){const _0x1d6402=_0x255c88['window'],_0x4ebbab=_0x255c88['document']['location']['href'],_0x88763d=new _0x1d6402['URL'](_0x172263['getAttribute']('src'),_0x4ebbab);if('data:'===_0x88763d['protocol']){const _0x256361=_0x88763d['href']['split'](','),_0x310169=_0x256361[0x0]['match'](/:(.*?);/)[0x1],_0x460c39=_0x310169['split']('/')[0x1],_0x2b65b9=_0x1d6402['atob'](_0x256361[_0x256361['length']-0x1]);let _0x52b245=_0x2b65b9['length'];const _0x21517b=new _0x1d6402['Uint8Array'](_0x52b245);for(;_0x52b245--;)_0x21517b[_0x52b245]=_0x2b65b9['charCodeAt'](_0x52b245);return new _0x1d6402['File']([_0x21517b],'image.'+_0x460c39,{'type':_0x310169});}const _0x1b5645=_0x88763d['href']['split']('/'),_0x551374=_0x1b5645[_0x1b5645['length']-0x1],_0x35fcf7=_0x551374['split']('.')[0x1];return _0x1d6402['fetch'](_0x88763d['href'])['then'](_0x4c6958=>_0x4c6958['clone']()['blob']())['then'](_0x193b20=>new _0x1d6402['File']([_0x193b20],_0x551374,{'type':'image/'+_0x35fcf7}));}}class O extends _0x33bd10{['imageEditController'];static get['requires'](){return[_0x11b1e1];}['_isEditable'];constructor(_0x24e2cb){super(_0x24e2cb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2f1ee3){const _0x1ced89=G(_0x2f1ee3);return _0x2f554f=>!(!_0x2f554f||!_0x2f554f['is']('element','imageBlock')&&!_0x2f554f['is']('element','imageInline'))&&(!!_0x2f554f['hasAttribute']('uploadcareImageId')||!!_0x2f554f['hasAttribute']('src')&&_0x1ced89(_0x2f554f['getAttribute']('src')));}(_0x24e2cb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x17e57c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x17e57c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5b2d4a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5b2d4a&&(_0x5b2d4a['is']('element','imageBlock')||_0x5b2d4a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x11b1e1),_0x5b2d4a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x33bd10{['refresh'](){const _0x1d4b2f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1d4b2f&&(_0x1d4b2f['is']('element','imageBlock')||_0x1d4b2f['is']('element','imageInline')));}['execute'](_0x4f9cd2){const _0x4c22f9=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2123d7=>{_0x2123d7['setAttributes'](_0x4f9cd2,_0x4c22f9),_0x2123d7['removeAttribute']('srcset',_0x4c22f9),_0x2123d7['removeAttribute']('sizes',_0x4c22f9);});}}class m extends _0x108b89{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x293896,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ee921}=this;_0x4ee921['commands']['add']('uploadcareImageEdit',new O(_0x4ee921)),_0x4ee921['commands']['add']('uploadcareImageReplace',new R(_0x4ee921));}}class g extends _0x108b89{['_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 _0x2f0c99=this['editor'];_0x2f0c99['ui']['componentFactory']['add']('uploadcareImageEdit',_0x998bfb=>{const _0x11ee8d=_0x2f0c99['commands']['get']('uploadcareImageEdit'),_0x3355bb=new _0xd4b68c(_0x998bfb),t=_0x998bfb['t'];return _0x3355bb['set']({'icon':_0x1e82f3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3355bb['bind']('isEnabled')['to'](_0x11ee8d),_0x3355bb['bind']('isOn')['to'](_0x11ee8d,'isActive'),this['listenTo'](_0x3355bb,'execute',()=>{_0x2f0c99['execute']('uploadcareImageEdit'),_0x2f0c99['editing']['view']['focus']();}),_0x3355bb;}),this['_initConfig']();}['_initConfig'](){const _0x1d1727=_0x28a297(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d1727),this['listenTo'](this['editor'],'destroy',()=>{_0x1d1727['remove']();});}}class et extends _0x108b89{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':_0x43d1b=>0x1!=_0x43d1b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xa9031b=>{const {af:{dictionary:_0x58b14c,getPluralForm:_0x5172d0}}={'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':_0x3a8ab7=>0x1!=_0x3a8ab7}};_0xa9031b['af']||={'dictionary':{},'getPluralForm':null},_0xa9031b['af']['dictionary']=Object['assign'](_0xa9031b['af']['dictionary'],_0x58b14c),_0xa9031b['af']['getPluralForm']=_0x5172d0;})(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':_0x2e2e74=>0x0==_0x2e2e74?0x0:0x1==_0x2e2e74?0x1:0x2==_0x2e2e74?0x2:_0x2e2e74%0x64>=0x3&&_0x2e2e74%0x64<=0xa?0x3:_0x2e2e74%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3c99b4=>{const {ar:{dictionary:_0x4ea28a,getPluralForm:_0x4f198f}}={'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':_0x1a8f91=>0x0==_0x1a8f91?0x0:0x1==_0x1a8f91?0x1:0x2==_0x1a8f91?0x2:_0x1a8f91%0x64>=0x3&&_0x1a8f91%0x64<=0xa?0x3:_0x1a8f91%0x64>=0xb?0x4:0x5}};_0x3c99b4['ar']||={'dictionary':{},'getPluralForm':null},_0x3c99b4['ar']['dictionary']=Object['assign'](_0x3c99b4['ar']['dictionary'],_0x4ea28a),_0x3c99b4['ar']['getPluralForm']=_0x4f198f;})(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':_0x51fcac=>0x1!=_0x51fcac}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1eff6a=>{const {ast:{dictionary:_0x276ee1,getPluralForm:_0x3a3376}}={'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':_0x4c2051=>0x1!=_0x4c2051}};_0x1eff6a['ast']||={'dictionary':{},'getPluralForm':null},_0x1eff6a['ast']['dictionary']=Object['assign'](_0x1eff6a['ast']['dictionary'],_0x276ee1),_0x1eff6a['ast']['getPluralForm']=_0x3a3376;})(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':_0x4b63a4=>0x1!=_0x4b63a4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2f4785=>{const {az:{dictionary:_0x380133,getPluralForm:_0x180bfc}}={'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':_0x550a25=>0x1!=_0x550a25}};_0x2f4785['az']||={'dictionary':{},'getPluralForm':null},_0x2f4785['az']['dictionary']=Object['assign'](_0x2f4785['az']['dictionary'],_0x380133),_0x2f4785['az']['getPluralForm']=_0x180bfc;})(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':_0x27ea6f=>_0x27ea6f%0xa==0x1&&_0x27ea6f%0x64!=0xb?0x0:_0x27ea6f%0xa>=0x2&&_0x27ea6f%0xa<=0x4&&(_0x27ea6f%0x64<0xa||_0x27ea6f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3b0b70=>{const {be:{dictionary:_0x5bd25b,getPluralForm:_0x6f2f3e}}={'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':_0x19cca9=>_0x19cca9%0xa==0x1&&_0x19cca9%0x64!=0xb?0x0:_0x19cca9%0xa>=0x2&&_0x19cca9%0xa<=0x4&&(_0x19cca9%0x64<0xa||_0x19cca9%0x64>=0x14)?0x1:0x2}};_0x3b0b70['be']||={'dictionary':{},'getPluralForm':null},_0x3b0b70['be']['dictionary']=Object['assign'](_0x3b0b70['be']['dictionary'],_0x5bd25b),_0x3b0b70['be']['getPluralForm']=_0x6f2f3e;})(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':_0x5de258=>0x1!=_0x5de258}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5b062a=>{const {bg:{dictionary:_0x4fa21a,getPluralForm:_0x59b709}}={'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':_0x4a9852=>0x1!=_0x4a9852}};_0x5b062a['bg']||={'dictionary':{},'getPluralForm':null},_0x5b062a['bg']['dictionary']=Object['assign'](_0x5b062a['bg']['dictionary'],_0x4fa21a),_0x5b062a['bg']['getPluralForm']=_0x59b709;})(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':_0x3e4ae3=>0x1!=_0x3e4ae3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x57506e=>{const {bn:{dictionary:_0x1173e0,getPluralForm:_0x278eda}}={'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':_0x46b3d9=>0x1!=_0x46b3d9}};_0x57506e['bn']||={'dictionary':{},'getPluralForm':null},_0x57506e['bn']['dictionary']=Object['assign'](_0x57506e['bn']['dictionary'],_0x1173e0),_0x57506e['bn']['getPluralForm']=_0x278eda;})(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':_0x22a54b=>_0x22a54b%0xa==0x1&&_0x22a54b%0x64!=0xb?0x0:_0x22a54b%0xa>=0x2&&_0x22a54b%0xa<=0x4&&(_0x22a54b%0x64<0xa||_0x22a54b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e6373=>{const {bs:{dictionary:_0x39ab16,getPluralForm:_0x21551e}}={'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':_0x33dd6a=>_0x33dd6a%0xa==0x1&&_0x33dd6a%0x64!=0xb?0x0:_0x33dd6a%0xa>=0x2&&_0x33dd6a%0xa<=0x4&&(_0x33dd6a%0x64<0xa||_0x33dd6a%0x64>=0x14)?0x1:0x2}};_0x1e6373['bs']||={'dictionary':{},'getPluralForm':null},_0x1e6373['bs']['dictionary']=Object['assign'](_0x1e6373['bs']['dictionary'],_0x39ab16),_0x1e6373['bs']['getPluralForm']=_0x21551e;})(window['CKEDITOR_TRANSLATIONS']||={});
|