@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250919.0 → 0.0.0-nightly-20250921.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 _0x7e36d9,Command as _0x131bcf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x55b81b,IconGooglePhotos as _0x271b90,IconGoogleDrive as _0x5c6253,IconFacebook as _0x3abd6b,IconDropbox as _0x239cc5,IconUploadcareLink as _0x4e0ca1,IconUploadcareImageUpload as _0x2a6800,IconError as _0x281f89,IconUploadcareImageEdit as _0x37f45c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x19dd91,MenuBarMenuListItemButtonView as _0x50613f,View as _0x3511ae,FocusCycler as _0x20728b,Dialog as _0x43377a,DialogViewPosition as _0x5e8274,SpinnerView as _0x51ce7b,IconView as _0x3e32d6,Notification as _0x238cd8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2fc920,DomEmitterMixin as _0x4b25ed,global as _0x4a05f8,getAncestors as _0x10f532,ObservableMixin as _0x4a7605,uid as _0x14e977,createElement as _0x389e16}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x510314}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5a5fe5,info as _0x3273c8}from'@uploadcare/upload-client';import*as _0x10d61a from'@uploadcare/file-uploader';var i=function(_0x38692f){return _0x38692f['Local']='local',_0x38692f['URL']='url',_0x38692f['Dropbox']='dropbox',_0x38692f['GDrive']='gdrive',_0x38692f['Facebook']='facebook',_0x38692f['GPhotos']='gphotos',_0x38692f['OneDrive']='onedrive',_0x38692f;}({});function _(_0x1e049c,_0x6d8a6c,_0x3a7f22){const t=_0x1e049c['t'],_0x7c8a5=_0x1e049c['t'];switch(_0x6d8a6c){case i['Local']:return{'text':_0x7c8a5('Insert'===_0x3a7f22?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x7c8a5('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3a7f22?_0x7c8a5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x7c8a5('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x6d8a6c;}}class e extends _0x7e36d9{['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 _0x315321=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x79a999;for(const _0x58dd4a in _0x315321){const _0x217333=_0x58dd4a,_0x2e0bdf=_0x315321[_0x217333];if('uploadcareLicenseKeyValid'==_0x2e0bdf||'uploadcareLicenseKeyInvalid'==_0x2e0bdf||'uploadcareLicenseKeyExpired'==_0x2e0bdf||'uploadcareLicenseKeyDomainLimit'==_0x2e0bdf||'uploadcareLicenseKeyNotAllowed'==_0x2e0bdf||'uploadcareLicenseKeyEvaluationLimit'==_0x2e0bdf||'uploadcareLicenseKeyTrialLimit'==_0x2e0bdf||'uploadcareLicenseKeyUsageLimit'==_0x2e0bdf){delete _0x315321[_0x217333],_0x79a999=_0x2e0bdf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x79a999&&_0x315321['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x79a999&&_0x315321['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x79a999&&_0x315321['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x79a999&&_0x315321['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x79a999&&_0x315321['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x79a999&&_0x315321['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x79a999&&_0x315321['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2e4965}=this,_0x3df0f7=_0x2e4965['commands']['get']('uploadcare');if(!_0x3df0f7)return;const _0x434873=this['_normalizeConfigSourceList'](_0x2e4965['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x54a60e,_0x3e3fc6)=>{const _0x155934=this['_getIntegrationKey'](_0x3e3fc6['type']);return _0x54a60e[_0x155934]||(_0x54a60e[_0x155934]=[]),_0x54a60e[_0x155934]['push'](_0x3e3fc6),_0x54a60e;},{});_0x2e4965['plugins']['has']('ImageInsertUI')&&_0x2e4965['commands']['get']('uploadcare')&&Object['entries'](_0x434873)['forEach'](([_0x25f217,_0x1dec62])=>{_0x2e4965['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x25f217,'observable':()=>_0x3df0f7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1dec62),'formViewCreator':()=>this['_createDropdownButtons'](_0x1dec62),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1dec62),'override':'assetManager'!==_0x25f217});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x378142){const {locale:_0x1ef480}=this['editor'];return _0x378142['map'](_0x51144b=>{const _0x264ed4=_(_0x1ef480,_0x51144b,'Insert');switch(_0x51144b){case i['Local']:return{'icon':_0x2a6800,'type':i['Local'],..._0x264ed4};case i['URL']:return{'icon':_0x4e0ca1,'type':i['URL'],..._0x264ed4};case i['Dropbox']:return{'icon':_0x239cc5,'type':i['Dropbox'],..._0x264ed4};case i['Facebook']:return{'icon':_0x3abd6b,'type':i['Facebook'],..._0x264ed4};case i['GDrive']:return{'icon':_0x5c6253,'type':i['GDrive'],..._0x264ed4};case i['GPhotos']:return{'icon':_0x271b90,'type':i['GPhotos'],..._0x264ed4};case i['OneDrive']:return{'icon':_0x55b81b,'type':i['OneDrive'],..._0x264ed4};}});}['_getIntegrationKey'](_0x3d8074){switch(_0x3d8074){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x73061,_0x2c5b04){const _0x4ed196=this['editor'],_0x265a16=new _0x73061(_0x4ed196['locale']),_0x204c8b=_0x4ed196['commands']['get']('uploadcare');return _0x265a16['bind']('isEnabled')['to'](_0x204c8b),_0x265a16['on']('execute',()=>{_0x204c8b['execute'](_0x2c5b04);}),_0x265a16;}['_createToolbarButton'](_0x1dc0ba){const {locale:_0x3b0177}=this['editor'],_0x41c3ec=this['editor']['plugins']['get']('ImageInsertUI'),_0x20a138=_0x1dc0ba[0x0],_0x520d86=this['_createButton'](_0x19dd91,_0x20a138['type']);return _0x520d86['icon']=_0x20a138['icon'],_0x520d86['bind']('label')['to'](_0x41c3ec,'isImageSelected',_0x473682=>_(_0x3b0177,_0x20a138['type'],_0x473682?'Replace':'Insert')['text']),_0x520d86['tooltip']=!0x0,_0x520d86;}['_createDropdownButtons'](_0x4daaca){const {locale:_0x18f6d9}=this['editor'],_0x138cfd=this['editor']['plugins']['get']('ImageInsertUI');return _0x4daaca['map'](_0x2a4279=>{const _0x2ef012=this['_createButton'](_0x19dd91,_0x2a4279['type']);return _0x2ef012['withText']=!0x0,_0x2ef012['icon']=_0x2a4279['icon'],_0x2ef012['bind']('label')['to'](_0x138cfd,'isImageSelected',_0x38a77a=>_(_0x18f6d9,_0x2a4279['type'],_0x38a77a?'Replace':'Insert')['text']),_0x2ef012;});}['_createMenuBarButtons'](_0x2905b4){return _0x2905b4['map'](_0x3d4d01=>{const _0x4095d7=this['_createButton'](_0x50613f,_0x3d4d01['type']);return _0x4095d7['icon']=_0x3d4d01['icon'],_0x4095d7['label']=_0x3d4d01['shortText'],_0x4095d7;});}}class W extends _0x3511ae{['focusTracker'];['focusCycler'];constructor(_0x5c65ae){super(_0x5c65ae),this['focusTracker']=new _0x2fc920(),this['focusCycler']=new _0x20728b({'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 R extends W{constructor(_0x522f5e,_0x37c18d){super(_0x522f5e),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-'+_0x37c18d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x284c07,_0x3adeb1){const _0x319cd8=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5d11f2=>_0x5d11f2<=_0x3adeb1)['map'](_0x8a5345=>_0x284c07['replace'](/\/$/,'')+'/-/resize/'+_0x8a5345+'x/\x20'+_0x8a5345+'w');return{'imageFallbackUrl':_0x284c07,'imageSources':[{'srcset':_0x319cd8['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3adeb1+'px)\x20100vw,\x20'+_0x3adeb1+'px','type':'image/webp'}]};}function V(_0x3bdfda,_0x52699c,_0x278183){const _0x22d5bc=_0x3bdfda['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x22d5bc?parseInt(_0x22d5bc[0x1],0xa):_0x52699c,'height':_0x22d5bc?parseInt(_0x22d5bc[0x2],0xa):_0x278183};}function p(_0x3c0730,_0x2e7a45){const _0xcbe2c6=new(_0x4b25ed())(),_0x1b6b3f=_0x3c0730['plugins']['get']('ImageUtils'),_0x16011d=_0x3c0730['editing']['mapper']['toViewElement'](_0x2e7a45),_0x84c1c1=_0x1b6b3f['findViewImgElement'](_0x16011d),_0x3caf3e=_0x3c0730['editing']['view']['domConverter']['viewToDom'](_0x84c1c1),_0x5f1a3d=_0x2e7a45['getAttribute']('width'),_0x8f7359=_0x2e7a45['getAttribute']('height'),_0x5cb506='image-processing';_0x3c0730['editing']['view']['change'](_0xe8a78=>{_0xe8a78['addClass'](_0x5cb506,_0x16011d),_0xe8a78['setStyle']('aspect-ratio',_0x5f1a3d+'/'+_0x8f7359,_0x84c1c1);}),_0xcbe2c6['listenTo'](_0x3caf3e,'load',()=>{_0xcbe2c6['stopListening'](_0x3caf3e,'load'),_0x3c0730['editing']['view']['change'](_0x2b914d=>{_0x2b914d['removeClass'](_0x5cb506,_0x16011d),_0x2b914d['removeStyle']('aspect-ratio',_0x84c1c1);});});}function z(_0x435c27){if(Array['isArray'](_0x435c27)){const _0x5eb5f4=_0x435c27['map'](z);return _0x4a9cd7=>_0x5eb5f4['some'](_0x346045=>_0x346045(_0x4a9cd7));}if('origin'==_0x435c27){const _0x5e295c=_0x4a05f8['window']['location']['origin'];return _0x54361c=>new URL(_0x54361c,_0x4a05f8['document']['baseURI'])['origin']==_0x5e295c;}return'function'==typeof _0x435c27?_0x435c27:_0x435c27 instanceof RegExp?_0x2fab6b=>!(!_0x2fab6b['match'](_0x435c27)&&!_0x2fab6b['replace'](/^https?:\/\//,'')['match'](_0x435c27)):()=>!0x1;}function Q(_0xa1a198,_0x28e0){return _0x10f532(_0xa1a198['target'])['includes'](_0x28e0);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4a7605(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3f8018,_0x4b48b4,_0x4edf4a){super(),this['_editor']=_0x3f8018,this['_editing']=_0x4b48b4,this['_dialog']=_0x3f8018['plugins']['get'](_0x43377a),this['_api']=_0x4b48b4['ctxElement']['getAPI'](),this['_type']=_0x4edf4a,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:_0x5ea629,model:_0x188e21}=this['_editor'],_0x4fa82=_0x188e21['document']['selection']['getSelectedElement'](),_0x4012e9=_0x4fa82&&(_0x4fa82['is']('element','imageBlock')||_0x4fa82['is']('element','imageInline'));this['_formView']=new R(_0x5ea629,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2a6800,'title':_(_0x5ea629,this['_type'],_0x4012e9?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5e8274['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4ae52e=>!Q(_0x4ae52e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x285654}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5b15f0=>{const _0x5d964a=_0x285654['length'];for(const _0x4e95d8 of _0x285654){const _0x3718d0=_0x4e95d8===_0x285654[_0x5d964a-0x1],{cdnUrl:_0x5593e0,fileInfo:_0x1924dd}=_0x4e95d8;if(!_0x5593e0||!_0x1924dd)continue;const {width:_0x4c02c6,height:_0x4b6b92}=_0x1924dd['imageInfo'],_0x58b153=V(_0x5593e0,_0x4c02c6,_0x4b6b92),_0x3cdb49=C(_0x5593e0,_0x58b153['width']),_0x3c7d3d={'id':_0x1924dd['uuid'],'type':'image','attributes':{'imageDimension':_0x58b153,..._0x3cdb49}};this['_insertAsset'](_0x3c7d3d,_0x3718d0,_0x5b15f0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1c58b2=>{'idle'===_0x1c58b2['detail']['status']&&!_0x1c58b2['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x11603b,_0x22399f,_0xfd1ff1){const _0x5e0f5d=this['_editor']['model']['document']['selection'],_0x52a551=_0x5e0f5d['getSelectedElement'](),_0x12033b=!(!_0x52a551||!_0x52a551['is']('element','imageInline'));_0xfd1ff1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x11603b,_0x12033b),_0x22399f||_0xfd1ff1['setSelection'](_0x5e0f5d['getLastPosition']());}['_insertImage'](_0x40b40e,_0x4f5a86){const _0x1c675c=this['_editor'],{imageDimension:_0x4ad7f0,imageFallbackUrl:_0x2896bd,imageSources:_0x12c59f}=_0x40b40e['attributes'];_0x1c675c['execute']('insertImage',{'imageType':_0x4f5a86?'imageInline':null,'source':{'uploadcareImageId':_0x40b40e['id'],'src':_0x2896bd,'sources':_0x12c59f,..._0x4ad7f0}});}}class w extends _0x131bcf{['_editing'];['_controller']=null;static get['requires'](){return[_0x43377a,o];}constructor(_0x4a5b9d){super(_0x4a5b9d),this['_editing']=_0x4a5b9d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x162058){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x162058);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x48bb36,..._0x1d0858}){return _0x5a5fe5(_0x48bb36,_0x1d0858);}static['getInfo'](_0x550fa1,_0x4f09f2){return _0x3273c8(_0x550fa1,_0x4f09f2);}}class f extends _0x7e36d9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x510314,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4a9ef6=this['editor'];if(!!!_0x4a9ef6['config']['get']('uploadcare'))return;_0x4a9ef6['plugins']['get'](_0x510314)['createUploadAdapter']=_0x1a139f=>new k(_0x1a139f,_0x4a9ef6),_0x4a9ef6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2bf82e,{imageElement:_0x2df768,data:_0x147125})=>{_0x4a9ef6['model']['change'](_0x41c6ee=>{_0x41c6ee['setAttribute']('uploadcareImageId',_0x147125['uploadcareImageId'],_0x2df768);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5dc5f1,_0x43d11){this['loader']=_0x5dc5f1,this['editor']=_0x43d11,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x20a9e4=await this['loader']['file'];return j['upload']({'file':_0x20a9e4,'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':_0x319d84=>{_0x319d84&&_0x319d84['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x319d84['value']);}})['then'](async _0x383f07=>{const {imageFallbackUrl:_0x5782b0,imageSources:_0x2be460}=C(_0x383f07['cdnUrl'],_0x383f07['imageInfo']['width']);return{'uploadcareImageId':_0x383f07['uuid'],'default':_0x5782b0,'sources':_0x2be460};})['catch'](()=>{const _0x36402f=t('Cannot\x20upload\x20file:')+('\x20'+_0x20a9e4['name']+'.');return Promise['reject'](_0x36402f);});}['abort'](){this['controller']['abort']();}}class o extends _0x7e36d9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x43377a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x28af52){super(_0x28af52),this['ucContextId']=_0x14e977();}['init'](){const _0x1c2d3b=this['editor'];_0x1c2d3b['commands']['add']('uploadcare',new w(_0x1c2d3b));}['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 _0x122781=_0x4a05f8['document']['querySelector']('input[uploadcare-file-input]');_0x122781&&_0x122781['remove']();}),async function(_0x13eb09){const _0x59ec2b=_0x22ac9d([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]),_0x215335=0x3d8d0df,_0x2c55f9=0x3dfa4df^_0x215335,_0x58d979=window[_0x22ac9d([0x44,0x61,0x74,0x65])][_0x22ac9d([0x6e,0x6f,0x77])](),_0x1a6ec8=_0x13eb09[_0x22ac9d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30dc26=new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c4953=>{_0x1a6ec8[_0x22ac9d([0x6f,0x6e,0x63,0x65])](_0x22ac9d([0x72,0x65,0x61,0x64,0x79]),_0x3c4953);}),_0x5a4da2={[_0x22ac9d([0x6b,0x74,0x79])]:_0x22ac9d([0x45,0x43]),[_0x22ac9d([0x75,0x73,0x65])]:_0x22ac9d([0x73,0x69,0x67]),[_0x22ac9d([0x63,0x72,0x76])]:_0x22ac9d([0x50,0x2d,0x32,0x35,0x36]),[_0x22ac9d([0x78])]:_0x22ac9d([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]),[_0x22ac9d([0x79])]:_0x22ac9d([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]),[_0x22ac9d([0x61,0x6c,0x67])]:_0x22ac9d([0x45,0x53,0x32,0x35,0x36])},_0x3bfe59=_0x1a6ec8[_0x22ac9d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22ac9d([0x67,0x65,0x74])](_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47d1af(){let _0x4464cb,_0x534fb2=null,_0x429e8a=null;try{if(_0x3bfe59==_0x22ac9d([0x47,0x50,0x4c]))return _0x22ac9d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4464cb=_0x4e131c(),!_0x4464cb)return _0x22ac9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4464cb[_0x22ac9d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x429e8a=_0x456629(_0x4464cb[_0x22ac9d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4464cb[_0x22ac9d([0x6a,0x74,0x69])])),await _0x26253f()?_0x521af0()?_0x45b9e8()?_0x22ac9d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36023d()?(_0x4464cb[_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22ac9d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x534fb2=_0x28e570(_0x22ac9d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4464cb[_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22ac9d([0x74,0x72,0x69,0x61,0x6c])&&(_0x534fb2=_0x28e570(_0x22ac9d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3edd4e()):_0x22ac9d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22ac9d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22ac9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x22ac9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45b9e8(){const _0x3dd6e4=[_0x22ac9d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22ac9d([0x74,0x72,0x69,0x61,0x6c])][_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4464cb[_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58d979/0x3e8:0xe10*_0x2c55f9;return _0x4464cb[_0x22ac9d([0x65,0x78,0x70])]<_0x3dd6e4;}function _0x521af0(){const _0x566ecb=_0x4464cb[_0x22ac9d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x566ecb&&(!!_0x566ecb[_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ac9d([0x2a]))||!!_0x566ecb[_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ac9d([0x55,0x50,0x4c,0x43])));}function _0x36023d(){const _0x216b57=_0x4464cb[_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x216b57||0x0==_0x216b57[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc25dc9}=new URL(window[_0x22ac9d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x216b57[_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc25dc9))return!0x0;const _0xa241cd=_0xc25dc9[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])](_0x22ac9d([0x2e]));return _0x216b57[_0x22ac9d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29c484=>_0x29c484[_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ac9d([0x2a])))[_0x22ac9d([0x6d,0x61,0x70])](_0x3baefd=>_0x3baefd[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])](_0x22ac9d([0x2e])))[_0x22ac9d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x390d49=>_0x390d49[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa241cd[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22ac9d([0x6d,0x61,0x70])](_0x15afd0=>Array(_0xa241cd[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x15afd0[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22ac9d([0x66,0x69,0x6c,0x6c])](_0x15afd0[0x0]===_0x22ac9d([0x2a])?_0x22ac9d([0x2a]):'')[_0x22ac9d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x15afd0))[_0x22ac9d([0x73,0x6f,0x6d,0x65])](_0x167646=>_0xa241cd[_0x22ac9d([0x65,0x76,0x65,0x72,0x79])]((_0xbfcf7d,_0x2c4530)=>_0x167646[_0x2c4530]===_0xbfcf7d||_0x167646[_0x2c4530]===_0x22ac9d([0x2a])));}function _0x3edd4e(){return _0x534fb2&&_0x429e8a?new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d6795,_0x201614)=>{_0x534fb2[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x2d6795,_0x201614),_0x429e8a[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x58806f=>{_0x58806f!=_0x22ac9d([0x56,0x61,0x6c,0x69,0x64])&&_0x2d6795(_0x58806f);},_0x201614);}):_0x534fb2||_0x429e8a||_0x22ac9d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x456629(_0x3abe4d,_0x2f26f8){return new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x282eb0=>{if(_0x5c103d())return _0x282eb0(_0x22ac9d([0x56,0x61,0x6c,0x69,0x64]));_0x5acf78(),_0x1a6ec8[_0x22ac9d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22ac9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e0534=!0x1;const _0x59e25a=_0x14e977();function _0x5936d4(_0x22acc8){return!!_0x22acc8&&(typeof _0x22acc8===_0x22ac9d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22acc8===_0x22ac9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22acc8[_0x22ac9d([0x74,0x68,0x65,0x6e])]===_0x22ac9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22acc8[_0x22ac9d([0x63,0x61,0x74,0x63,0x68])]===_0x22ac9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c41e7(_0x1c3ab7){_0x46701f(_0x1c3ab7)[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x503556=>{if(!_0x503556||_0x503556[_0x22ac9d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22ac9d([0x6f,0x6b]))return _0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x8af6d9(_0xb309a2(_0x59e25a+_0x2f26f8))!=_0x503556[_0x22ac9d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22ac9d([0x56,0x61,0x6c,0x69,0x64]);})[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0xc554ab=>(_0x5d5d6d(),_0xc554ab),()=>{const _0x4b7ffa=_0x517bd5();return null==_0x4b7ffa?(_0x5d5d6d(),_0x22ac9d([0x56,0x61,0x6c,0x69,0x64])):_0x22ac9d(_0x58d979-_0x4b7ffa>(0x27d454df^_0x215335)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x282eb0)[_0x22ac9d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x282eb0(_0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d612d=0x3ee3e5f^_0x215335;function _0x5d5d6d(){const _0x3e2243=_0x22ac9d([0x6c,0x6c,0x63,0x74,0x2d])+_0x8af6d9(_0xb309a2(_0x3abe4d)),_0x3fae5f=_0x326378(_0x8af6d9(window[_0x22ac9d([0x4d,0x61,0x74,0x68])][_0x22ac9d([0x63,0x65,0x69,0x6c])](_0x58d979/_0x3d612d)));window[_0x22ac9d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22ac9d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e2243,_0x3fae5f);}function _0x517bd5(){const _0x370e96=_0x22ac9d([0x6c,0x6c,0x63,0x74,0x2d])+_0x8af6d9(_0xb309a2(_0x3abe4d)),_0x1bb8b5=window[_0x22ac9d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22ac9d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x370e96);return _0x1bb8b5?window[_0x22ac9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x326378(_0x1bb8b5),0x10)*_0x3d612d:null;}function _0x46701f(_0x3a1086){return new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18e218,_0x20caa2)=>{_0x3a1086[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x18e218,_0x20caa2),window[_0x22ac9d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20caa2,0x3d9041f^_0x215335);});}}_0x1a6ec8[_0x22ac9d([0x6f,0x6e])](_0x22ac9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x454a8a,_0x20f6f7)=>{if(_0x20f6f7[0x0]!=_0x3abe4d)return _0x282eb0(_0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20f6f7[0x1]={..._0x20f6f7[0x1],[_0x22ac9d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59e25a};},{[_0x22ac9d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22ac9d([0x68,0x69,0x67,0x68])}),_0x1a6ec8[_0x22ac9d([0x6f,0x6e])](_0x22ac9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a8252=>{_0x5936d4(_0x2a8252[_0x22ac9d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e0534=!0x0,_0x2c41e7(_0x2a8252[_0x22ac9d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22ac9d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22ac9d([0x6c,0x6f,0x77])}),_0x30dc26[_0x22ac9d([0x74,0x68,0x65,0x6e])](()=>{_0x1e0534||_0x282eb0(_0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c103d(){return _0x1a6ec8[_0x22ac9d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ac9d([0x76,0x69,0x65,0x77])][_0x22ac9d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22ac9d([0x61,0x75,0x74,0x6f]);}function _0x5acf78(){_0x1a6ec8[_0x22ac9d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ac9d([0x76,0x69,0x65,0x77])][_0x22ac9d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22ac9d([0x61,0x75,0x74,0x6f]);}}function _0x28e570(_0x4748f8){const _0x591bbb=[new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fa158=>setTimeout(_0x2fa158,0x3d1ee13^_0x215335)),_0x30dc26[_0x22ac9d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfe9cf4=>{let _0x28e7fb=0x0;_0x1a6ec8[_0x22ac9d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ac9d([0x6f,0x6e])](_0x22ac9d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x363bdb,_0xb0509a)=>{_0xb0509a[0x0][_0x22ac9d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x28e7fb++,_0x28e7fb==(0x3d8d127^_0x215335)&&(_0xfe9cf4(),_0x363bdb[_0x22ac9d([0x6f,0x66,0x66])]());});}))];return window[_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22ac9d([0x72,0x61,0x63,0x65])](_0x591bbb)[_0x22ac9d([0x74,0x68,0x65,0x6e])](()=>_0x4748f8);}async function _0x5e670d(){await _0x30dc26,_0x1a6ec8[_0x22ac9d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ac9d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2477ba,_0x1a6ec8[_0x22ac9d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ac9d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2477ba,_0x1a6ec8[_0x22ac9d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22ac9d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x429a1f(_0x31f24b){const _0x238325=_0x80b8ea();_0x1a6ec8[_0x238325]=_0x22ac9d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31f24b,_0x31f24b!=_0x22ac9d([0x56,0x61,0x6c,0x69,0x64])&&_0x5e670d();}function _0x80b8ea(){const _0x29a516=window[_0x22ac9d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22ac9d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22ac9d([0x6e,0x6f,0x77])]())[_0x22ac9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22ac9d([0x2e]),'');let _0x26b5c7=_0x22ac9d([0x52]);for(let _0x270750=0x0;_0x270750<_0x29a516[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x270750+=0x2){let _0x43cc84=window[_0x22ac9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29a516[_0x22ac9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x270750,_0x270750+0x2));_0x43cc84>=_0x59ec2b[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43cc84-=_0x59ec2b[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26b5c7+=_0x59ec2b[_0x43cc84];}return _0x26b5c7;}function _0x4e131c(){const _0x55027=_0x3bfe59[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])](_0x22ac9d([0x2e]));if(0x3!=_0x55027[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4665be(_0x55027[0x1]);function _0x4665be(_0x490152){const _0x61cf50=_0x4fb778(_0x490152);return _0x61cf50&&_0xd1ca52()?_0x61cf50:null;function _0xd1ca52(){const _0x1792a8=_0x61cf50[_0x22ac9d([0x6a,0x74,0x69])],_0xedf601=window[_0x22ac9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1792a8[_0x22ac9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1792a8[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x526134={..._0x61cf50,[_0x22ac9d([0x6a,0x74,0x69])]:_0x1792a8[_0x22ac9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1792a8[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x526134[_0x22ac9d([0x76,0x63])],_0xb309a2(_0x526134)==_0xedf601;}}}async function _0x26253f(){let _0x191d7b=!0x0;try{const _0x72d98e=_0x3bfe59[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])](_0x22ac9d([0x2e])),[_0x2f0a81,_0x2ed514,_0x1e812e]=_0x72d98e;return _0x5453e9(_0x2f0a81),await _0x1cd124(_0x2f0a81,_0x2ed514,_0x1e812e),_0x191d7b;}catch{return!0x1;}function _0x5453e9(_0x51db91){const _0x594ed7=_0x4fb778(_0x51db91);_0x594ed7&&_0x594ed7[_0x22ac9d([0x61,0x6c,0x67])]==_0x22ac9d([0x45,0x53,0x32,0x35,0x36])||(_0x191d7b=!0x1);}async function _0x1cd124(_0x43e68c,_0x5e5f25,_0x2d4bbe){const _0x2bafcd=window[_0x22ac9d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22ac9d([0x66,0x72,0x6f,0x6d])](_0x5751b9(_0x2d4bbe),_0x1f870a=>_0x1f870a[_0x22ac9d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa498f7=new window[(_0x22ac9d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22ac9d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43e68c+_0x22ac9d([0x2e])+_0x5e5f25),_0x26ba30=window[_0x22ac9d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22ac9d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26ba30)return;const _0x9e871c=await _0x26ba30[_0x22ac9d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22ac9d([0x6a,0x77,0x6b]),_0x5a4da2,{[_0x22ac9d([0x6e,0x61,0x6d,0x65])]:_0x22ac9d([0x45,0x43,0x44,0x53,0x41]),[_0x22ac9d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22ac9d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22ac9d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26ba30[_0x22ac9d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22ac9d([0x6e,0x61,0x6d,0x65])]:_0x22ac9d([0x45,0x43,0x44,0x53,0x41]),[_0x22ac9d([0x68,0x61,0x73,0x68])]:{[_0x22ac9d([0x6e,0x61,0x6d,0x65])]:_0x22ac9d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9e871c,_0x2bafcd,_0xa498f7)||(_0x191d7b=!0x1);}}function _0x4fb778(_0x22cb97){return _0x22cb97[_0x22ac9d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22ac9d([0x65,0x79]))?JSON[_0x22ac9d([0x70,0x61,0x72,0x73,0x65])](_0x5751b9(_0x22cb97)):null;}function _0x5751b9(_0x40e5a6){return window[_0x22ac9d([0x61,0x74,0x6f,0x62])](_0x40e5a6[_0x22ac9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22ac9d([0x2b]))[_0x22ac9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22ac9d([0x2f])));}function _0xb309a2(_0x39010b){let _0x20d21a=0x1505;function _0x5dfc60(_0x42e89b){for(let _0x4a4a04=0x0;_0x4a4a04<_0x42e89b[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a4a04++){const _0xe76b8b=_0x42e89b[_0x22ac9d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a4a04);_0x20d21a=(_0x20d21a<<0x5)+_0x20d21a+_0xe76b8b,_0x20d21a&=_0x20d21a;}}function _0x15df91(_0x378cb4){Array[_0x22ac9d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x378cb4)?_0x378cb4[_0x22ac9d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15df91):_0x378cb4&&typeof _0x378cb4==_0x22ac9d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22ac9d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x378cb4)[_0x22ac9d([0x73,0x6f,0x72,0x74])]()[_0x22ac9d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e412c,_0x5c93ee])=>{_0x5dfc60(_0x2e412c),_0x15df91(_0x5c93ee);}):_0x5dfc60(window[_0x22ac9d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x378cb4));}return _0x15df91(_0x39010b),_0x20d21a>>>0x0;}function _0x8af6d9(_0x4a1a27){return _0x4a1a27[_0x22ac9d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22ac9d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22ac9d([0x30]));}function _0x326378(_0x2fab46){return _0x2fab46[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22ac9d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22ac9d([0x6a,0x6f,0x69,0x6e])]('');}function _0x2477ba(){}function _0x22ac9d(_0x4b6bf6){return _0x4b6bf6['map'](_0x59cf40=>String['fromCharCode'](_0x59cf40))['join']('');}_0x429a1f(await _0x47d1af());}(this);}['_initSchema'](){const _0x27db95=this['editor']['model']['schema'];_0x27db95['isRegistered']('imageBlock')&&_0x27db95['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x27db95['isRegistered']('imageInline')&&_0x27db95['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x9d9a99=this['editor'];_0x9d9a99['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x9d9a99['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x681083=>_0x681083['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e6fd3=_0x9d9a99['commands']['get']('replaceImageSource');_0x1e6fd3&&this['listenTo'](_0x1e6fd3,'cleanupImage',(_0x3e48cf,[_0x523c6c,_0xcf2fca])=>{_0x523c6c['removeAttribute']('uploadcareImageId',_0xcf2fca);});}['_initConfig'](){const _0x7dcffb=this['editor']['config']['get']('uploadcare.uploader')||{},_0x189b0b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x389e16(_0x4a05f8['document'],'uc-config',{..._0x7dcffb,'pubkey':_0x189b0b,'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']=_0x2ffb4b=>{if('closeMax'==_0x2ffb4b)return'#uc-icon-arrow-down';},_0x4a05f8['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x389e16(_0x4a05f8['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4a05f8['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5176ca=this['editor']['commands']['get']('insertImage');_0x5176ca&&this['listenTo'](_0x5176ca,'execute',()=>{const _0x25cf85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25cf85&&_0x25cf85['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x25cf85);});});const _0xf54c63=this['editor']['commands']['get']('uploadcareImageReplace');_0xf54c63&&this['listenTo'](_0xf54c63,'execute',()=>{const _0x26bcd0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x26bcd0&&_0x26bcd0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x26bcd0);});});}}class tt extends _0x7e36d9{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xeb4895){super(_0xeb4895),_0xeb4895['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x10d61a['defineComponents'](_0x10d61a);}}class ii extends _0x3511ae{constructor(_0x25df89){super(_0x25df89);const t=_0x25df89['t'],_0x3fb29b=this['bindTemplate'],_0x492d1c=new _0x51ce7b();_0x492d1c['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':[_0x492d1c,{'text':_0x3fb29b['to']('imageUploadProgress',_0x2ef0f9=>t('Loading\x20image...')+'\x20('+(_0x2ef0f9||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 _0x3511ae{constructor(_0x15e764){super(_0x15e764);const t=_0x15e764['t'];this['set']('errorType',null);const _0x793485=new _0x19dd91(_0x15e764);_0x793485['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x793485['withText']=!0x0,_0x793485['class']='ck-button-action',_0x793485['on']('execute',()=>{this['fire']('retry');}),_0x793485['bind']('isVisible')['to'](this,'errorType',_0x2d5566=>'NotFound'!==_0x2d5566);const _0x3b5bc7=new _0x3e32d6();_0x3b5bc7['content']=_0x281f89,_0x3b5bc7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x54a965=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':[_0x3b5bc7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x54a965['to']('errorType',_0x3df479=>t('NotFound'!==_0x3df479?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x793485]},{'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 _0x3511ae{constructor(_0x25893f,_0x2a39b5){super(_0x25893f);const _0x22fea2=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2a39b5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x22fea2['to']('imageSrc')}});}}class X extends W{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x25fce7,_0x281751,_0x2dff99){super(_0x25fce7),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x25fce7),this['_errorView']=new ti(_0x25fce7),this['_editingView']=new ei(_0x25fce7,_0x2dff99),this['_focusableView']=new _0x3511ae(_0x25fce7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x281751),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'],_0x13373d=>{this['_addUploadcareImageEditorListeners'](_0x13373d);});}),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'](_0x5d9e0e,_0x50cb54){const _0x5b9785='uc-cloud-image-editor',_0x37883e=_0x5d9e0e['querySelector'](_0x5b9785);if(_0x37883e)return _0x50cb54(_0x37883e);const _0x5da897=new MutationObserver(_0x319df8=>{const _0x390bab=_0x319df8['filter'](_0x38ac85=>_0x38ac85['target']===_0x5d9e0e&&_0x38ac85['addedNodes']['length']>0x0&&_0x38ac85['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5b9785);_0x390bab['length']&&(_0x5da897['disconnect'](),_0x50cb54(_0x390bab[0x0]['addedNodes'][0x0]));});_0x5da897['observe'](_0x5d9e0e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x132851){_0x132851['addEventListener']('apply',_0x4b77ad=>{this['fire']('apply',{'imageSrc':_0x4b77ad['detail']['cdnUrl']});}),_0x132851['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4a7605(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x40467e,_0x12b62e,_0x51564e){super(),this['_editor']=_0x40467e,this['_dialog']=_0x12b62e,this['_imageElement']=_0x51564e,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 _0x49ca35=this['_imageElement'],_0x2443f6=_0x49ca35['getAttribute']('uploadcareImageId'),_0x680803=_0x49ca35['getAttribute']('src');if(_0x2443f6)await this['_loadImageInfo'](_0x2443f6,_0x680803);else{if(this['_imageCache']['has'](_0x680803)){const _0x40f24e=this['_imageCache']['get'](_0x680803);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40f24e['url'],this['imageDimension']=_0x40f24e['dimension'],this['imageId']=_0x40f24e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2e163c}=this['_editor'],t=_0x2e163c['t'],_0x197634=new X(_0x2e163c,this['imageStatus'],this['_attributes']);_0x197634['bind']('status')['to'](this,'imageStatus'),_0x197634['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x197634['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x197634['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x197634,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x37f45c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x197634,'position':_0x5e8274['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x197634['focus']();},'onHide':()=>{_0x197634['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19a8b5=>!Q(_0x19a8b5,_0x197634['element'])}});}['_loadImageInfo'](_0x9b921f,_0x1eb093){return j['getInfo'](_0x9b921f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xc1984=>{const {width:_0x52bcc8,height:_0x503ddd}=_0xc1984['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1eb093,this['imageDimension']={'width':_0x52bcc8,'height':_0x503ddd},this['imageId']=_0x9b921f;})['catch'](_0x874632=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x874632['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4b5e55,_0xee2931){return this['_getImageAsFile'](_0x4b5e55)['then'](_0x582fa7=>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':_0xee2931['signal'],'file':_0x582fa7,'onProgress':_0x32ddfa=>{_0x32ddfa&&_0x32ddfa['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x32ddfa['value']));}}))['then'](_0x573984=>{const {width:_0x264e14,height:_0x2362c6}=_0x573984['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x573984['cdnUrl'],this['imageDimension']={'width':_0x264e14,'height':_0x2362c6},this['imageId']=_0x573984['uuid'],this['imageUploadProgress']=null;const _0xce286=_0x4b5e55['getAttribute']('src');this['_imageCache']['set'](_0xce286,{'id':_0x573984['uuid'],'url':_0x573984['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x152ebf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x152ebf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4f56b6,_0x5d15c7){_0x4f56b6['on']('apply',(_0x502511,_0x5ddddd)=>{this['_replaceImage'](_0x5d15c7,_0x5ddddd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4f56b6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4f56b6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xc6cbdb,_0x3c4f74,_0x2a5967){const _0x587336=this['_editor'],{width:_0x12c058,height:_0x35925f}=V(_0x3c4f74,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x358dab,imageSources:_0x5ced45}=C(_0x3c4f74,_0x12c058);_0x587336['model']['change'](_0x3f233f=>{if('$graveyard'===_0xc6cbdb['root']['rootName']){_0x587336['execute']('insertImage',{'imageType':_0xc6cbdb['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xc6cbdb['getAttributes']()),'uploadcareImageId':_0x2a5967,'src':_0x358dab,'sources':_0x5ced45,'width':_0x12c058,'height':_0x35925f}});const _0x4e6864=_0xc6cbdb['getChildren']();_0xc6cbdb=_0x587336['model']['document']['selection']['getSelectedElement']();for(const _0x263b17 of _0x4e6864)_0x3f233f['append'](_0x3f233f['cloneElement'](_0x263b17),_0xc6cbdb);}else _0x3f233f['setSelection'](_0xc6cbdb,'on'),_0x587336['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xc6cbdb['getAttributes']()),'uploadcareImageId':_0x2a5967,'src':_0x358dab,'sources':_0x5ced45,'width':_0x12c058,'height':_0x35925f},_0xc6cbdb);_0x3f233f['setSelection'](_0xc6cbdb,'on');});}async['_getImageAsFile'](_0x271333){const _0x24334d=_0x4a05f8['window'],_0x2e0381=_0x4a05f8['document']['location']['href'],_0x59c200=new _0x24334d['URL'](_0x271333['getAttribute']('src'),_0x2e0381);if('data:'===_0x59c200['protocol']){const _0x2819cc=_0x59c200['href']['split'](','),_0x3991c9=_0x2819cc[0x0]['match'](/:(.*?);/)[0x1],_0x58b456=_0x3991c9['split']('/')[0x1],_0x484780=_0x24334d['atob'](_0x2819cc[_0x2819cc['length']-0x1]);let _0x15bf64=_0x484780['length'];const _0x463066=new _0x24334d['Uint8Array'](_0x15bf64);for(;_0x15bf64--;)_0x463066[_0x15bf64]=_0x484780['charCodeAt'](_0x15bf64);return new _0x24334d['File']([_0x463066],'image.'+_0x58b456,{'type':_0x3991c9});}const _0x626bca=_0x59c200['href']['split']('/'),_0x220eaf=_0x626bca[_0x626bca['length']-0x1],_0x3fc069=_0x220eaf['split']('.')[0x1];return _0x24334d['fetch'](_0x59c200['href'])['then'](_0x4bdcce=>_0x4bdcce['clone']()['blob']())['then'](_0x3e3433=>new _0x24334d['File']([_0x3e3433],_0x220eaf,{'type':'image/'+_0x3fc069}));}}class N extends _0x131bcf{['imageEditController'];static get['requires'](){return[_0x43377a];}['_isEditable'];constructor(_0xbefd6e){super(_0xbefd6e),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x26b13b){const _0x49220e=z(_0x26b13b);return _0x55210c=>!(!_0x55210c||!_0x55210c['is']('element','imageBlock')&&!_0x55210c['is']('element','imageInline'))&&(!!_0x55210c['hasAttribute']('uploadcareImageId')||!!_0x55210c['hasAttribute']('src')&&_0x49220e(_0x55210c['getAttribute']('src')));}(_0xbefd6e['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x20cd7e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x20cd7e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xbb5332=this['editor']['model']['document']['selection']['getSelectedElement']();_0xbb5332&&(_0xbb5332['is']('element','imageBlock')||_0xbb5332['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x43377a),_0xbb5332),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x131bcf{['refresh'](){const _0xb4c597=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xb4c597&&(_0xb4c597['is']('element','imageBlock')||_0xb4c597['is']('element','imageInline')));}['execute'](_0x1a9905){const _0x5afa79=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xc29f4a=>{_0xc29f4a['setAttributes'](_0x1a9905,_0x5afa79),_0xc29f4a['removeAttribute']('srcset',_0x5afa79),_0xc29f4a['removeAttribute']('sizes',_0x5afa79);});}}class m extends _0x7e36d9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x238cd8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x416be8}=this;_0x416be8['commands']['add']('uploadcareImageEdit',new N(_0x416be8)),_0x416be8['commands']['add']('uploadcareImageReplace',new O(_0x416be8));}}class g extends _0x7e36d9{['_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 _0x2a9ace=this['editor'];_0x2a9ace['ui']['componentFactory']['add']('uploadcareImageEdit',_0x46099b=>{const _0x55de39=_0x2a9ace['commands']['get']('uploadcareImageEdit'),_0x3b7504=new _0x19dd91(_0x46099b),t=_0x46099b['t'];return _0x3b7504['set']({'icon':_0x37f45c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3b7504['bind']('isEnabled')['to'](_0x55de39),_0x3b7504['bind']('isOn')['to'](_0x55de39,'isActive'),this['listenTo'](_0x3b7504,'execute',()=>{_0x2a9ace['execute']('uploadcareImageEdit'),_0x2a9ace['editing']['view']['focus']();}),_0x3b7504;}),this['_initConfig']();}['_initConfig'](){const _0x53e613=_0x389e16(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x53e613),this['listenTo'](this['editor'],'destroy',()=>{_0x53e613['remove']();});}}class et extends _0x7e36d9{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
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']||={});
|