@ckeditor/ckeditor5-uploadcare 48.0.0-alpha.4 → 48.0.0-alpha.5
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/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 +8 -8
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x20cce4,Command as _0x39f285}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x12852f,IconGooglePhotos as _0x4451cf,IconGoogleDrive as _0x29d5e3,IconFacebook as _0x3d9ec4,IconDropbox as _0x2ef066,IconUploadcareLink as _0x2c5f10,IconUploadcareImageUpload as _0x547b7c,IconError as _0x3376b8,IconUploadcareImageEdit as _0x35592e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x121de2,MenuBarMenuListItemButtonView as _0x2d1277,View as _0x295101,FocusCycler as _0x293a7a,Dialog as _0x4b0eef,DialogViewPosition as _0x1384b6,SpinnerView as _0x40ab07,IconView as _0x36209b,Notification as _0x4d4cbd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x51ee28,DomEmitterMixin as _0x2d50dd,global as _0x268822,getAncestors as _0x569d09,ObservableMixin as _0x492ba4,uid as _0x3b9c2f,createElement as _0x2d1cfc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ImageUploadEditing as _0x529657,ImageUploadProgress as _0xf1fff3,PictureEditing as _0x18cca6,ImageUtils as _0x308f32,ImageEditing as _0x555ed6}from'@ckeditor/ckeditor5-image/dist/index.js';import{FileRepository as _0x473012}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x14d5b0,info as _0x5c614d}from'@uploadcare/upload-client';import*as _0x46c3a1 from'@uploadcare/file-uploader';var D=function(_0x3bd3d7){return _0x3bd3d7['Local']='local',_0x3bd3d7['URL']='url',_0x3bd3d7['Dropbox']='dropbox',_0x3bd3d7['GDrive']='gdrive',_0x3bd3d7['Facebook']='facebook',_0x3bd3d7['GPhotos']='gphotos',_0x3bd3d7['OneDrive']='onedrive',_0x3bd3d7;}({});function F(_0x3e0e86,_0x18f4da,_0x3fa5d1){const t=_0x3e0e86['t'],_0x2d6c9d=_0x3e0e86['t'];switch(_0x18f4da){case D['Local']:return{'text':_0x2d6c9d('Insert'===_0x3fa5d1?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2d6c9d('From\x20computer')};case D['URL']:return{'text':'Insert'===_0x3fa5d1?_0x2d6c9d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2d6c9d('Via\x20URL')};case D['Dropbox']:return{'text':t('Insert'===_0x3fa5d1?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case D['Facebook']:return{'text':t('Insert'===_0x3fa5d1?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case D['GDrive']:return{'text':t('Insert'===_0x3fa5d1?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case D['GPhotos']:return{'text':t('Insert'===_0x3fa5d1?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case D['OneDrive']:return{'text':t('Insert'===_0x3fa5d1?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x18f4da;}}class $ extends _0x20cce4{['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 _0x53b460=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x214648;for(const _0x2c6b82 in _0x53b460){const _0x5c402b=_0x2c6b82,_0x49567b=_0x53b460[_0x5c402b];if('uploadcareLicenseKeyValid'==_0x49567b||'uploadcareLicenseKeyInvalid'==_0x49567b||'uploadcareLicenseKeyExpired'==_0x49567b||'uploadcareLicenseKeyDomainLimit'==_0x49567b||'uploadcareLicenseKeyNotAllowed'==_0x49567b||'uploadcareLicenseKeyEvaluationLimit'==_0x49567b||'uploadcareLicenseKeyUsageLimit'==_0x49567b){delete _0x53b460[_0x5c402b],_0x214648=_0x49567b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x214648&&_0x53b460['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x214648&&_0x53b460['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x214648&&_0x53b460['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x214648&&_0x53b460['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x214648&&_0x53b460['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x214648&&_0x53b460['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x474f14}=this,_0x26fa18=_0x474f14['commands']['get']('uploadcare');if(!_0x26fa18)return;const _0x14b007=this['_normalizeConfigSourceList'](_0x474f14['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3cf2a3,_0x4db306)=>{const _0x289e8c=this['_getIntegrationKey'](_0x4db306['type']);return _0x3cf2a3[_0x289e8c]||(_0x3cf2a3[_0x289e8c]=[]),_0x3cf2a3[_0x289e8c]['push'](_0x4db306),_0x3cf2a3;},{});_0x474f14['plugins']['has']('ImageInsertUI')&&_0x474f14['commands']['get']('uploadcare')&&Object['entries'](_0x14b007)['forEach'](([_0x156c75,_0x12cad1])=>{_0x474f14['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x156c75,'observable':()=>_0x26fa18,'buttonViewCreator':()=>this['_createToolbarButton'](_0x12cad1),'formViewCreator':()=>this['_createDropdownButtons'](_0x12cad1),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x12cad1),'override':'assetManager'!==_0x156c75});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x50e2c8){const {locale:_0x3dda0c}=this['editor'];return _0x50e2c8['map'](_0x106951=>{const _0xedbfc9=F(_0x3dda0c,_0x106951,'Insert');switch(_0x106951){case D['Local']:return{'icon':_0x547b7c,'type':D['Local'],..._0xedbfc9};case D['URL']:return{'icon':_0x2c5f10,'type':D['URL'],..._0xedbfc9};case D['Dropbox']:return{'icon':_0x2ef066,'type':D['Dropbox'],..._0xedbfc9};case D['Facebook']:return{'icon':_0x3d9ec4,'type':D['Facebook'],..._0xedbfc9};case D['GDrive']:return{'icon':_0x29d5e3,'type':D['GDrive'],..._0xedbfc9};case D['GPhotos']:return{'icon':_0x4451cf,'type':D['GPhotos'],..._0xedbfc9};case D['OneDrive']:return{'icon':_0x12852f,'type':D['OneDrive'],..._0xedbfc9};}});}['_getIntegrationKey'](_0x1a2d46){switch(_0x1a2d46){case D['Local']:return'upload';case D['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4c6233,_0x47c671){const _0x1126da=this['editor'],_0x3a6eb3=new _0x4c6233(_0x1126da['locale']),_0xa5b847=_0x1126da['commands']['get']('uploadcare');return _0x3a6eb3['bind']('isEnabled')['to'](_0xa5b847),_0x3a6eb3['on']('execute',()=>{_0xa5b847['execute'](_0x47c671);}),_0x3a6eb3;}['_createToolbarButton'](_0x82dceb){const {locale:_0x55153e}=this['editor'],_0xecc07c=this['editor']['plugins']['get']('ImageInsertUI'),_0x4216b6=_0x82dceb[0x0],_0x2bfe3b=this['_createButton'](_0x121de2,_0x4216b6['type']);return _0x2bfe3b['icon']=_0x4216b6['icon'],_0x2bfe3b['bind']('label')['to'](_0xecc07c,'isImageSelected',_0xa1bcba=>F(_0x55153e,_0x4216b6['type'],_0xa1bcba?'Replace':'Insert')['text']),_0x2bfe3b['tooltip']=!0x0,_0x2bfe3b;}['_createDropdownButtons'](_0x3638b2){const {locale:_0x10fbf5}=this['editor'],_0x2ae752=this['editor']['plugins']['get']('ImageInsertUI');return _0x3638b2['map'](_0x225adb=>{const _0x51d33b=this['_createButton'](_0x121de2,_0x225adb['type']);return _0x51d33b['withText']=!0x0,_0x51d33b['icon']=_0x225adb['icon'],_0x51d33b['bind']('label')['to'](_0x2ae752,'isImageSelected',_0x194848=>F(_0x10fbf5,_0x225adb['type'],_0x194848?'Replace':'Insert')['text']),_0x51d33b;});}['_createMenuBarButtons'](_0x5d91db){return _0x5d91db['map'](_0x29c7bb=>{const _0x12afa1=this['_createButton'](_0x2d1277,_0x29c7bb['type']);return _0x12afa1['icon']=_0x29c7bb['icon'],_0x12afa1['label']=_0x29c7bb['shortText'],_0x12afa1;});}}class B extends _0x295101{['focusTracker'];['focusCycler'];constructor(_0xa1656e){super(_0xa1656e),this['focusTracker']=new _0x51ee28(),this['focusCycler']=new _0x293a7a({'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 V extends B{constructor(_0x4df9b4,_0x4f8a00){super(_0x4df9b4),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-'+_0x4f8a00}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function j(_0x38261d,_0x433d73){const _0x55e0d7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4a19a5=>_0x4a19a5<=_0x433d73)['map'](_0x21002a=>_0x38261d['replace'](/\/$/,'')+'/-/resize/'+_0x21002a+'x/\x20'+_0x21002a+'w');return{'imageFallbackUrl':_0x38261d,'imageSources':[{'srcset':_0x55e0d7['join'](',\x20'),'sizes':'(max-width:\x20'+_0x433d73+'px)\x20100vw,\x20'+_0x433d73+'px','type':'image/webp'}]};}function M(_0x28a9cd,_0x13f584,_0x16a71c){const _0x5cd9d7=_0x28a9cd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5cd9d7?parseInt(_0x5cd9d7[0x1],0xa):_0x13f584,'height':_0x5cd9d7?parseInt(_0x5cd9d7[0x2],0xa):_0x16a71c};}function q(_0x3bbada,_0x196960){const _0x32b58a=new(_0x2d50dd())(),_0x366e84=_0x3bbada['plugins']['get']('ImageUtils'),_0x556e56=_0x3bbada['editing']['mapper']['toViewElement'](_0x196960),_0x13be05=_0x366e84['findViewImgElement'](_0x556e56),_0x951480=_0x3bbada['editing']['view']['domConverter']['viewToDom'](_0x13be05),_0xa059a=_0x196960['getAttribute']('width'),_0x277bec=_0x196960['getAttribute']('height'),_0x5a58f4='image-processing';_0x3bbada['editing']['view']['change'](_0x30ad9a=>{_0x30ad9a['addClass'](_0x5a58f4,_0x556e56),_0x30ad9a['setStyle']('aspect-ratio',_0xa059a+'/'+_0x277bec,_0x13be05);}),_0x32b58a['listenTo'](_0x951480,'load',()=>{_0x32b58a['stopListening'](_0x951480,'load'),_0x3bbada['editing']['view']['change'](_0x8bf070=>{_0x8bf070['removeClass'](_0x5a58f4,_0x556e56),_0x8bf070['removeStyle']('aspect-ratio',_0x13be05);});});}function W(_0x55f24a){if(Array['isArray'](_0x55f24a)){const _0xa7f90f=_0x55f24a['map'](W);return _0x82159e=>_0xa7f90f['some'](_0x2b4ca6=>_0x2b4ca6(_0x82159e));}if('origin'==_0x55f24a){const _0x53e613=_0x268822['window']['location']['origin'];return _0x2d3ec1=>new URL(_0x2d3ec1,_0x268822['document']['baseURI'])['origin']==_0x53e613;}return'function'==typeof _0x55f24a?_0x55f24a:_0x55f24a instanceof RegExp?_0x4308be=>!(!_0x4308be['match'](_0x55f24a)&&!_0x4308be['replace'](/^https?:\/\//,'')['match'](_0x55f24a)):()=>!0x1;}function G(_0x30d9ed,_0x312ee2){return _0x569d09(_0x30d9ed['target'])['includes'](_0x312ee2);}class z extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x492ba4(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x19e9fc,_0x484dd5,_0x77f264){super(),this['_editor']=_0x19e9fc,this['_editing']=_0x484dd5,this['_dialog']=_0x19e9fc['plugins']['get'](_0x4b0eef),this['_api']=_0x484dd5['ctxElement']['getAPI'](),this['_type']=_0x77f264,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:_0x529273,model:_0x3bc444}=this['_editor'],_0x658d31=_0x3bc444['document']['selection']['getSelectedElement'](),_0x19d82e=_0x658d31&&(_0x658d31['is']('element','imageBlock')||_0x658d31['is']('element','imageInline'));this['_formView']=new V(_0x529273,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x547b7c,'title':F(_0x529273,this['_type'],_0x19d82e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1384b6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2e80bf=>!G(_0x2e80bf,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xb7936a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1d7427=>{const _0x9d1514=_0xb7936a['length'];for(const _0x50279d of _0xb7936a){const _0x319266=_0x50279d===_0xb7936a[_0x9d1514-0x1],{cdnUrl:_0x2200a5,fileInfo:_0x21ffbc}=_0x50279d;if(!_0x2200a5||!_0x21ffbc)continue;const {width:_0x3ad484,height:_0x19d383}=_0x21ffbc['imageInfo'],_0x38a18e=M(_0x2200a5,_0x3ad484,_0x19d383),_0x50cba5=j(_0x2200a5,_0x38a18e['width']),_0x4abaf5={'id':_0x21ffbc['uuid'],'type':'image','attributes':{'imageDimension':_0x38a18e,..._0x50cba5}};this['_insertAsset'](_0x4abaf5,_0x319266,_0x1d7427);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2617ff=>{'idle'===_0x2617ff['detail']['status']&&!_0x2617ff['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===D['Local']?this['_api']['setCurrentActivity'](D['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2d6962,_0xa743a3,_0x1040a8){const _0x40f741=this['_editor']['model']['document']['selection'],_0x461352=_0x40f741['getSelectedElement'](),_0x3c6fe6=!(!_0x461352||!_0x461352['is']('element','imageInline'));_0x1040a8['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2d6962,_0x3c6fe6),_0xa743a3||_0x1040a8['setSelection'](_0x40f741['getLastPosition']());}['_insertImage'](_0x515a4a,_0x1a95b2){const _0x10304d=this['_editor'],{imageDimension:_0xccbf0b,imageFallbackUrl:_0x59bc98,imageSources:_0x31bf9d}=_0x515a4a['attributes'];_0x10304d['execute']('insertImage',{'imageType':_0x1a95b2?'imageInline':null,'source':{'uploadcareImageId':_0x515a4a['id'],'src':_0x59bc98,'sources':_0x31bf9d,..._0xccbf0b}});}}class H extends _0x39f285{['_editing'];['_controller']=null;static get['requires'](){return[_0x4b0eef,X];}constructor(_0x864465){super(_0x864465),this['_editing']=_0x864465['plugins']['get'](X);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x56c76c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new z(this['editor'],this['_editing'],_0x56c76c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class J{static['upload']({file:_0x416caf,..._0x20998f}){return _0x14d5b0(_0x416caf,_0x20998f);}static['getInfo'](_0x4e3b48,_0x11ed02){return _0x5c614d(_0x4e3b48,_0x11ed02);}}class Z extends _0x20cce4{static get['requires'](){return[_0x529657,_0xf1fff3,_0x473012,X];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3906d6=this['editor'];if(!!!_0x3906d6['config']['get']('uploadcare'))return;_0x3906d6['plugins']['get'](_0x473012)['createUploadAdapter']=_0x26b3d3=>new Q(_0x26b3d3,_0x3906d6),_0x3906d6['plugins']['get'](_0x529657)['on']('uploadComplete',(_0x5c3471,{imageElement:_0x152790,data:_0x4806b0})=>{_0x3906d6['model']['change'](_0x3ef694=>{_0x3ef694['setAttribute']('uploadcareImageId',_0x4806b0['uploadcareImageId'],_0x152790);});});}}class Q{['loader'];['editor'];['controller'];constructor(_0x35e24b,_0x3445a5){this['loader']=_0x35e24b,this['editor']=_0x3445a5,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x20978a=await this['loader']['file'];return J['upload']({'file':_0x20978a,'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':_0x390b6f=>{_0x390b6f&&_0x390b6f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x390b6f['value']);}})['then'](async _0x28728e=>{const {imageFallbackUrl:_0x760213,imageSources:_0x5f511f}=j(_0x28728e['cdnUrl'],_0x28728e['imageInfo']['width']);return{'uploadcareImageId':_0x28728e['uuid'],'default':_0x760213,'sources':_0x5f511f};})['catch'](()=>{const _0x2a78f6=t('Cannot\x20upload\x20file:')+('\x20'+_0x20978a['name']+'.');return Promise['reject'](_0x2a78f6);});}['abort'](){this['controller']['abort']();}}class X extends _0x20cce4{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x18cca6,Z,_0x4b0eef];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5a689d){super(_0x5a689d),this['ucContextId']=_0x3b9c2f();}['init'](){const _0x4bc736=this['editor'];_0x4bc736['commands']['add']('uploadcare',new H(_0x4bc736));}['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 _0x4b8cb3=_0x268822['document']['querySelector']('input[uploadcare-file-input]');_0x4b8cb3&&_0x4b8cb3['remove']();}),async function(_0x5efaeb){const _0x4fa1a2=_0x32953f([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5ae5aa=0x535f8c3a,_0x3116ea=0x53580912^_0x5ae5aa,_0x3e90f4=window[_0x32953f([0x44,0x61,0x74,0x65])][_0x32953f([0x6e,0x6f,0x77])](),_0x4b6ae2=_0x5efaeb[_0x32953f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a129c=new window[(_0x32953f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34abf2=>{_0x4b6ae2[_0x32953f([0x6f,0x6e,0x63,0x65])](_0x32953f([0x72,0x65,0x61,0x64,0x79]),_0x34abf2);}),_0x3bda50={[_0x32953f([0x6b,0x74,0x79])]:_0x32953f([0x45,0x43]),[_0x32953f([0x75,0x73,0x65])]:_0x32953f([0x73,0x69,0x67]),[_0x32953f([0x63,0x72,0x76])]:_0x32953f([0x50,0x2d,0x32,0x35,0x36]),[_0x32953f([0x78])]:_0x32953f([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]),[_0x32953f([0x79])]:_0x32953f([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]),[_0x32953f([0x61,0x6c,0x67])]:_0x32953f([0x45,0x53,0x32,0x35,0x36])},_0x3a962f=_0x4b6ae2[_0x32953f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32953f([0x67,0x65,0x74])](_0x32953f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b7bff(){let _0x10031a,_0x392210=null,_0x59ef8a=null;try{if(_0x3a962f==_0x32953f([0x47,0x50,0x4c]))return _0x32953f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x10031a=_0x6e40cf(),!_0x10031a)return _0x32953f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x10031a[_0x32953f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x59ef8a=_0xd21740(_0x10031a[_0x32953f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x10031a[_0x32953f([0x6a,0x74,0x69])])),await _0x3d2b6a()?_0x9e48c2()?_0x34dec2()?_0x32953f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1580ea()?(_0x10031a[_0x32953f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32953f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x392210=_0x1711e8(_0x32953f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x43bda0()):_0x32953f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32953f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32953f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32953f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x34dec2(){const _0x17afee=[_0x32953f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32953f([0x74,0x72,0x69,0x61,0x6c])][_0x32953f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10031a[_0x32953f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e90f4/0x3e8:0xe10*_0x3116ea;return _0x10031a[_0x32953f([0x65,0x78,0x70])]<_0x17afee;}function _0x9e48c2(){const _0x302554=_0x10031a[_0x32953f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x302554&&(!!_0x302554[_0x32953f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32953f([0x2a]))||!!_0x302554[_0x32953f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32953f([0x55,0x50,0x4c,0x43])));}function _0x1580ea(){const _0x37f0ce=_0x10031a[_0x32953f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37f0ce||0x0==_0x37f0ce[_0x32953f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ed277}=new URL(window[_0x32953f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37f0ce[_0x32953f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ed277))return!0x0;const _0x4aa3f3=_0x3ed277[_0x32953f([0x73,0x70,0x6c,0x69,0x74])](_0x32953f([0x2e]));return _0x37f0ce[_0x32953f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c0770=>_0x4c0770[_0x32953f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32953f([0x2a])))[_0x32953f([0x6d,0x61,0x70])](_0x40ea50=>_0x40ea50[_0x32953f([0x73,0x70,0x6c,0x69,0x74])](_0x32953f([0x2e])))[_0x32953f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x425226=>_0x425226[_0x32953f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4aa3f3[_0x32953f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32953f([0x6d,0x61,0x70])](_0x1aef42=>Array(_0x4aa3f3[_0x32953f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1aef42[_0x32953f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32953f([0x66,0x69,0x6c,0x6c])](_0x1aef42[0x0]===_0x32953f([0x2a])?_0x32953f([0x2a]):'')[_0x32953f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1aef42))[_0x32953f([0x73,0x6f,0x6d,0x65])](_0x5af099=>_0x4aa3f3[_0x32953f([0x65,0x76,0x65,0x72,0x79])]((_0x4fa826,_0x4857cb)=>_0x5af099[_0x4857cb]===_0x4fa826||_0x5af099[_0x4857cb]===_0x32953f([0x2a])));}function _0x43bda0(){return _0x392210&&_0x59ef8a?new window[(_0x32953f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c7d7c,_0x58f327)=>{_0x392210[_0x32953f([0x74,0x68,0x65,0x6e])](_0x1c7d7c,_0x58f327),_0x59ef8a[_0x32953f([0x74,0x68,0x65,0x6e])](_0x41c787=>{_0x41c787!=_0x32953f([0x56,0x61,0x6c,0x69,0x64])&&_0x1c7d7c(_0x41c787);},_0x58f327);}):_0x392210||_0x59ef8a||_0x32953f([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd21740(_0x2b39ac,_0x4f021c){return new window[(_0x32953f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d7969=>{if(_0x3bd8b9())return _0x4d7969(_0x32953f([0x56,0x61,0x6c,0x69,0x64]));_0x32b797(),_0x4b6ae2[_0x32953f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32953f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ed5a5=!0x1;const _0x560f68=_0x3b9c2f();function _0x1b37ad(_0x45f11c){return!!_0x45f11c&&(typeof _0x45f11c===_0x32953f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45f11c===_0x32953f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45f11c[_0x32953f([0x74,0x68,0x65,0x6e])]===_0x32953f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45f11c[_0x32953f([0x63,0x61,0x74,0x63,0x68])]===_0x32953f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x116dcb(_0x459ead){_0x98263f(_0x459ead)[_0x32953f([0x74,0x68,0x65,0x6e])](_0x3fe987=>{if(!_0x3fe987||_0x3fe987[_0x32953f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32953f([0x6f,0x6b]))return _0x32953f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25670b(_0x362638(_0x560f68+_0x4f021c))!=_0x3fe987[_0x32953f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32953f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32953f([0x56,0x61,0x6c,0x69,0x64]);})[_0x32953f([0x74,0x68,0x65,0x6e])](_0x1561e6=>(_0x58fff2(),_0x1561e6),()=>{const _0x43237d=_0x2ecd17();return null==_0x43237d?(_0x58fff2(),_0x32953f([0x56,0x61,0x6c,0x69,0x64])):_0x32953f(_0x3e90f4-_0x43237d>(0x7753083a^_0x5ae5aa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32953f([0x74,0x68,0x65,0x6e])](_0x4d7969)[_0x32953f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d7969(_0x32953f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7fb35b=0x536962ba^_0x5ae5aa;function _0x58fff2(){const _0x1fd79a=_0x32953f([0x6c,0x6c,0x63,0x74,0x2d])+_0x25670b(_0x362638(_0x2b39ac)),_0x17553c=_0x250c6a(_0x25670b(window[_0x32953f([0x4d,0x61,0x74,0x68])][_0x32953f([0x63,0x65,0x69,0x6c])](_0x3e90f4/_0x7fb35b)));window[_0x32953f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32953f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1fd79a,_0x17553c);}function _0x2ecd17(){const _0x54fc01=_0x32953f([0x6c,0x6c,0x63,0x74,0x2d])+_0x25670b(_0x362638(_0x2b39ac)),_0x4cd57a=window[_0x32953f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32953f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54fc01);return _0x4cd57a?window[_0x32953f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x250c6a(_0x4cd57a),0x10)*_0x7fb35b:null;}function _0x98263f(_0x48836c){return new window[(_0x32953f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44d59e,_0x47be30)=>{_0x48836c[_0x32953f([0x74,0x68,0x65,0x6e])](_0x44d59e,_0x47be30),window[_0x32953f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x47be30,0x535e58fa^_0x5ae5aa);});}}_0x4b6ae2[_0x32953f([0x6f,0x6e])](_0x32953f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ca4d4,_0x3958b0)=>{if(_0x3958b0[0x0]!=_0x2b39ac)return _0x4d7969(_0x32953f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3958b0[0x1]={..._0x3958b0[0x1],[_0x32953f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x560f68};},{[_0x32953f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32953f([0x68,0x69,0x67,0x68])}),_0x4b6ae2[_0x32953f([0x6f,0x6e])](_0x32953f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x33272b=>{_0x1b37ad(_0x33272b[_0x32953f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ed5a5=!0x0,_0x116dcb(_0x33272b[_0x32953f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32953f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32953f([0x6c,0x6f,0x77])}),_0x5a129c[_0x32953f([0x74,0x68,0x65,0x6e])](()=>{_0x2ed5a5||_0x4d7969(_0x32953f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3bd8b9(){return _0x4b6ae2[_0x32953f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32953f([0x76,0x69,0x65,0x77])][_0x32953f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32953f([0x61,0x75,0x74,0x6f]);}function _0x32b797(){_0x4b6ae2[_0x32953f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32953f([0x76,0x69,0x65,0x77])][_0x32953f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32953f([0x61,0x75,0x74,0x6f]);}}function _0x1711e8(_0x53b6a8){const _0x3b46a1=[new window[(_0x32953f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c8081=>setTimeout(_0x5c8081,0x5356b2f6^_0x5ae5aa)),_0x5a129c[_0x32953f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32953f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bf36d=>{let _0x5dc8cc=0x0;_0x4b6ae2[_0x32953f([0x6d,0x6f,0x64,0x65,0x6c])][_0x32953f([0x6f,0x6e])](_0x32953f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1956bd,_0x252e6e)=>{_0x252e6e[0x0][_0x32953f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5dc8cc++,_0x5dc8cc==(0x535f89d2^_0x5ae5aa)&&(_0x4bf36d(),_0x1956bd[_0x32953f([0x6f,0x66,0x66])]());});}))];return window[_0x32953f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32953f([0x72,0x61,0x63,0x65])](_0x3b46a1)[_0x32953f([0x74,0x68,0x65,0x6e])](()=>_0x53b6a8);}async function _0xd5b31f(){await _0x5a129c,_0x4b6ae2[_0x32953f([0x6d,0x6f,0x64,0x65,0x6c])][_0x32953f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x462682,_0x4b6ae2[_0x32953f([0x6d,0x6f,0x64,0x65,0x6c])][_0x32953f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x462682,_0x4b6ae2[_0x32953f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32953f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa5fad9(_0x30777b){const _0xf992c4=_0x14c986();_0x4b6ae2[_0xf992c4]=_0x32953f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x30777b,_0x30777b!=_0x32953f([0x56,0x61,0x6c,0x69,0x64])&&_0xd5b31f();}function _0x14c986(){const _0x3435fc=window[_0x32953f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32953f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32953f([0x6e,0x6f,0x77])]())[_0x32953f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32953f([0x2e]),'');let _0x30ef4d=_0x32953f([0x68]);for(let _0x1fef91=0x0;_0x1fef91<_0x3435fc[_0x32953f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fef91+=0x2){let _0x23a0e7=window[_0x32953f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3435fc[_0x32953f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fef91,_0x1fef91+0x2));_0x23a0e7>=_0x4fa1a2[_0x32953f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x23a0e7-=_0x4fa1a2[_0x32953f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30ef4d+=_0x4fa1a2[_0x23a0e7];}return _0x30ef4d;}function _0x6e40cf(){const _0x3df720=_0x3a962f[_0x32953f([0x73,0x70,0x6c,0x69,0x74])](_0x32953f([0x2e]));if(0x3!=_0x3df720[_0x32953f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x506adc(_0x3df720[0x1]);function _0x506adc(_0x40bccb){const _0x455ee1=_0x3dcc18(_0x40bccb);return _0x455ee1&&_0x188ce9()?_0x455ee1:null;function _0x188ce9(){const _0x28ad5f=_0x455ee1[_0x32953f([0x6a,0x74,0x69])],_0x4c2ff1=window[_0x32953f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28ad5f[_0x32953f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28ad5f[_0x32953f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3c079c={..._0x455ee1,[_0x32953f([0x6a,0x74,0x69])]:_0x28ad5f[_0x32953f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x28ad5f[_0x32953f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3c079c[_0x32953f([0x76,0x63])],_0x362638(_0x3c079c)==_0x4c2ff1;}}}async function _0x3d2b6a(){let _0x1293f4=!0x0;try{const _0x3ea9ea=_0x3a962f[_0x32953f([0x73,0x70,0x6c,0x69,0x74])](_0x32953f([0x2e])),[_0x32e665,_0x5a62f7,_0x2d488a]=_0x3ea9ea;return _0x382015(_0x32e665),await _0x57ac96(_0x32e665,_0x5a62f7,_0x2d488a),_0x1293f4;}catch{return!0x1;}function _0x382015(_0x20e3b0){const _0x3a272b=_0x3dcc18(_0x20e3b0);_0x3a272b&&_0x3a272b[_0x32953f([0x61,0x6c,0x67])]==_0x32953f([0x45,0x53,0x32,0x35,0x36])||(_0x1293f4=!0x1);}async function _0x57ac96(_0x1ffbec,_0x54af7e,_0x5a46b4){const _0x281b21=window[_0x32953f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32953f([0x66,0x72,0x6f,0x6d])](_0x430ab0(_0x5a46b4),_0x3390eb=>_0x3390eb[_0x32953f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36434e=new window[(_0x32953f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32953f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ffbec+_0x32953f([0x2e])+_0x54af7e),_0xe84a7=window[_0x32953f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32953f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe84a7)return;const _0x1aaa0d=await _0xe84a7[_0x32953f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32953f([0x6a,0x77,0x6b]),_0x3bda50,{[_0x32953f([0x6e,0x61,0x6d,0x65])]:_0x32953f([0x45,0x43,0x44,0x53,0x41]),[_0x32953f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32953f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32953f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe84a7[_0x32953f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32953f([0x6e,0x61,0x6d,0x65])]:_0x32953f([0x45,0x43,0x44,0x53,0x41]),[_0x32953f([0x68,0x61,0x73,0x68])]:{[_0x32953f([0x6e,0x61,0x6d,0x65])]:_0x32953f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1aaa0d,_0x281b21,_0x36434e)||(_0x1293f4=!0x1);}}function _0x3dcc18(_0x3cc5ba){return _0x3cc5ba[_0x32953f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32953f([0x65,0x79]))?JSON[_0x32953f([0x70,0x61,0x72,0x73,0x65])](_0x430ab0(_0x3cc5ba)):null;}function _0x430ab0(_0x246fb8){return window[_0x32953f([0x61,0x74,0x6f,0x62])](_0x246fb8[_0x32953f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32953f([0x2b]))[_0x32953f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32953f([0x2f])));}function _0x362638(_0x57bf55){let _0xc068f1=0x1505;function _0x2b5f7f(_0x42f2bb){for(let _0xff77d8=0x0;_0xff77d8<_0x42f2bb[_0x32953f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xff77d8++){const _0x1210ee=_0x42f2bb[_0x32953f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xff77d8);_0xc068f1=(_0xc068f1<<0x5)+_0xc068f1+_0x1210ee,_0xc068f1&=_0xc068f1;}}function _0x26ad0f(_0x2571e0){Array[_0x32953f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2571e0)?_0x2571e0[_0x32953f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x26ad0f):_0x2571e0&&typeof _0x2571e0==_0x32953f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32953f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2571e0)[_0x32953f([0x73,0x6f,0x72,0x74])]()[_0x32953f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ed01f,_0x1feb15])=>{_0x2b5f7f(_0x5ed01f),_0x26ad0f(_0x1feb15);}):_0x2b5f7f(window[_0x32953f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2571e0));}return _0x26ad0f(_0x57bf55),_0xc068f1>>>0x0;}function _0x25670b(_0x160939){return _0x160939[_0x32953f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32953f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32953f([0x30]));}function _0x250c6a(_0xefa9c5){return _0xefa9c5[_0x32953f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32953f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32953f([0x6a,0x6f,0x69,0x6e])]('');}function _0x462682(){}function _0x32953f(_0x289aad){return _0x289aad['map'](_0xdc9832=>String['fromCharCode'](_0xdc9832))['join']('');}_0xa5fad9(await _0x4b7bff());}(this);}['_initSchema'](){const _0x517ebf=this['editor']['model']['schema'];_0x517ebf['isRegistered']('imageBlock')&&_0x517ebf['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x517ebf['isRegistered']('imageInline')&&_0x517ebf['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xf51da5=this['editor'];_0xf51da5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xf51da5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3f8b91=>_0x3f8b91['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x38bf3f=_0xf51da5['commands']['get']('replaceImageSource');_0x38bf3f&&this['listenTo'](_0x38bf3f,'cleanupImage',(_0x1f28b8,[_0x57f351,_0x5e619a])=>{_0x57f351['removeAttribute']('uploadcareImageId',_0x5e619a);});}['_initConfig'](){const _0x3d9a79=this['editor']['config']['get']('uploadcare.uploader')||{},_0x13e72a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2d1cfc(_0x268822['document'],'uc-config',{..._0x3d9a79,'pubkey':_0x13e72a,'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']=_0x580e08=>{if('closeMax'==_0x580e08)return'#uc-icon-arrow-down';},_0x268822['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2d1cfc(_0x268822['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x268822['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3dd84e=this['editor']['commands']['get']('insertImage');_0x3dd84e&&this['listenTo'](_0x3dd84e,'execute',()=>{const _0x1fef56=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1fef56&&_0x1fef56['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x1fef56);});});const _0xadd0b3=this['editor']['commands']['get']('uploadcareImageReplace');_0xadd0b3&&this['listenTo'](_0xadd0b3,'execute',()=>{const _0x2dbe13=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2dbe13&&_0x2dbe13['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x2dbe13);});});}}class Y extends _0x20cce4{static get['requires'](){return[X,$];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59f230){super(_0x59f230),_0x59f230['config']['define']('uploadcare.uploader.sourceList',[D['Local'],D['URL']]),_0x46c3a1['defineComponents'](_0x46c3a1),this['_defineLocale']();}['_defineLocale'](){const _0x49049f=this['editor']['config']['get']('uploadcare.locale'),_0x27e0f9=this['editor']['locale']['contentLanguage'];_0x49049f&&_0x46c3a1['defineLocale'](_0x27e0f9,_0x49049f);}}class tt extends _0x295101{constructor(_0x20912c){super(_0x20912c);const t=_0x20912c['t'],_0x4d25d4=this['bindTemplate'],_0x3462ca=new _0x40ab07();_0x3462ca['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':[_0x3462ca,{'text':_0x4d25d4['to']('imageUploadProgress',_0x674e71=>t('Loading\x20image...')+'\x20('+(_0x674e71||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 et extends _0x295101{constructor(_0x30cd32){super(_0x30cd32);const t=_0x30cd32['t'];this['set']('errorType',null);const _0xf154c6=new _0x121de2(_0x30cd32);_0xf154c6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xf154c6['withText']=!0x0,_0xf154c6['class']='ck-button-action',_0xf154c6['on']('execute',()=>{this['fire']('retry');}),_0xf154c6['bind']('isVisible')['to'](this,'errorType',_0x279393=>'NotFound'!==_0x279393);const _0x22e745=new _0x36209b();_0x22e745['content']=_0x3376b8,_0x22e745['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x421a53=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':[_0x22e745,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x421a53['to']('errorType',_0x5dd67f=>t('NotFound'!==_0x5dd67f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xf154c6]},{'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 it extends _0x295101{constructor(_0x30bf0c,_0x54e785){super(_0x30bf0c);const _0x392b40=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x54e785,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x392b40['to']('imageSrc')}});}}class st extends B{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5bb053,_0x2cbf91,_0x1eba9b){super(_0x5bb053),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x5bb053),this['_errorView']=new et(_0x5bb053),this['_editingView']=new it(_0x5bb053,_0x1eba9b),this['_focusableView']=new _0x295101(_0x5bb053),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2cbf91),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'],_0x29dc71=>{this['_addUploadcareImageEditorListeners'](_0x29dc71);});}),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'](_0x26b424,_0x4a05b4){const _0xf64929='uc-cloud-image-editor',_0x5111d8=_0x26b424['querySelector'](_0xf64929);if(_0x5111d8)return _0x4a05b4(_0x5111d8);const _0xc4b9f6=new MutationObserver(_0x26693f=>{const _0x3a6971=_0x26693f['filter'](_0x210826=>_0x210826['target']===_0x26b424&&_0x210826['addedNodes']['length']>0x0&&_0x210826['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xf64929);_0x3a6971['length']&&(_0xc4b9f6['disconnect'](),_0x4a05b4(_0x3a6971[0x0]['addedNodes'][0x0]));});_0xc4b9f6['observe'](_0x26b424,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1dd56f){_0x1dd56f['addEventListener']('apply',_0x12b84c=>{this['fire']('apply',{'imageSrc':_0x12b84c['detail']['cdnUrl']});}),_0x1dd56f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class nt extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x492ba4(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3927d1,_0xf6dbf0,_0x4cf8bb){super(),this['_editor']=_0x3927d1,this['_dialog']=_0xf6dbf0,this['_imageElement']=_0x4cf8bb,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 _0x546b79=this['_imageElement'],_0x2fdd93=_0x546b79['getAttribute']('uploadcareImageId'),_0xe11259=_0x546b79['getAttribute']('src');if(_0x2fdd93)await this['_loadImageInfo'](_0x2fdd93,_0xe11259);else{if(this['_imageCache']['has'](_0xe11259)){const _0x35d6aa=this['_imageCache']['get'](_0xe11259);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x35d6aa['url'],this['imageDimension']=_0x35d6aa['dimension'],this['imageId']=_0x35d6aa['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2796f3}=this['_editor'],t=_0x2796f3['t'],_0x588d05=new st(_0x2796f3,this['imageStatus'],this['_attributes']);_0x588d05['bind']('status')['to'](this,'imageStatus'),_0x588d05['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x588d05['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x588d05['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x588d05,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x35592e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x588d05,'position':_0x1384b6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x588d05['focus']();},'onHide':()=>{_0x588d05['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x715895=>!G(_0x715895,_0x588d05['element'])}});}['_loadImageInfo'](_0x1a3750,_0xeb8a9c){return J['getInfo'](_0x1a3750,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x447ca8=>{const {width:_0x2563b2,height:_0x24df80}=_0x447ca8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xeb8a9c,this['imageDimension']={'width':_0x2563b2,'height':_0x24df80},this['imageId']=_0x1a3750;})['catch'](_0x2e504f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2e504f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xf6e3ec,_0x30ec9a){return this['_getImageAsFile'](_0xf6e3ec)['then'](_0x2e18a8=>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':_0x30ec9a['signal'],'file':_0x2e18a8,'onProgress':_0x432af8=>{_0x432af8&&_0x432af8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x432af8['value']));}}))['then'](_0x3ae8d0=>{const {width:_0x1ad287,height:_0x27627c}=_0x3ae8d0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3ae8d0['cdnUrl'],this['imageDimension']={'width':_0x1ad287,'height':_0x27627c},this['imageId']=_0x3ae8d0['uuid'],this['imageUploadProgress']=null;const _0x5861ca=_0xf6e3ec['getAttribute']('src');this['_imageCache']['set'](_0x5861ca,{'id':_0x3ae8d0['uuid'],'url':_0x3ae8d0['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3062e7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3062e7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x14a4e2,_0x4071d2){_0x14a4e2['on']('apply',(_0xae29c2,_0x31c213)=>{this['_replaceImage'](_0x4071d2,_0x31c213['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x14a4e2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x14a4e2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x40e262,_0x22f29f,_0x4c5ce9){const _0x508a22=this['_editor'],{width:_0x5aaacb,height:_0x38cce4}=M(_0x22f29f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x19cb13,imageSources:_0x174ab1}=j(_0x22f29f,_0x5aaacb);_0x508a22['model']['change'](_0x388a10=>{if('$graveyard'===_0x40e262['root']['rootName']){_0x508a22['execute']('insertImage',{'imageType':_0x40e262['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x40e262['getAttributes']()),'uploadcareImageId':_0x4c5ce9,'src':_0x19cb13,'sources':_0x174ab1,'width':_0x5aaacb,'height':_0x38cce4}});const _0x539191=_0x40e262['getChildren']();_0x40e262=_0x508a22['model']['document']['selection']['getSelectedElement']();for(const _0x39774e of _0x539191)_0x388a10['append'](_0x388a10['cloneElement'](_0x39774e),_0x40e262);}else _0x388a10['setSelection'](_0x40e262,'on'),_0x508a22['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x40e262['getAttributes']()),'uploadcareImageId':_0x4c5ce9,'src':_0x19cb13,'sources':_0x174ab1,'width':_0x5aaacb,'height':_0x38cce4},_0x40e262);_0x388a10['setSelection'](_0x40e262,'on');});}async['_getImageAsFile'](_0x368af4){const _0x4f9b6a=_0x268822['window'],_0x61637d=_0x268822['document']['location']['href'],_0x166d9c=new _0x4f9b6a['URL'](_0x368af4['getAttribute']('src'),_0x61637d);if('data:'===_0x166d9c['protocol']){const _0x20548b=_0x166d9c['href']['split'](','),_0x4def9b=_0x20548b[0x0]['match'](/:(.*?);/)[0x1],_0x307677=_0x4def9b['split']('/')[0x1],_0x4b0e2b=_0x4f9b6a['atob'](_0x20548b[_0x20548b['length']-0x1]);let _0x3a1d16=_0x4b0e2b['length'];const _0x347a0e=new _0x4f9b6a['Uint8Array'](_0x3a1d16);for(;_0x3a1d16--;)_0x347a0e[_0x3a1d16]=_0x4b0e2b['charCodeAt'](_0x3a1d16);return new _0x4f9b6a['File']([_0x347a0e],'image.'+_0x307677,{'type':_0x4def9b});}const _0x318603=_0x166d9c['href']['split']('/'),_0xa8b736=_0x318603[_0x318603['length']-0x1],_0x3252b6=_0xa8b736['split']('.')[0x1];return _0x4f9b6a['fetch'](_0x166d9c['href'])['then'](_0x5e743c=>_0x5e743c['clone']()['blob']())['then'](_0x4fe32e=>new _0x4f9b6a['File']([_0x4fe32e],_0xa8b736,{'type':'image/'+_0x3252b6}));}}class rt extends _0x39f285{['imageEditController'];static get['requires'](){return[_0x4b0eef];}['_isEditable'];constructor(_0x288e9f){super(_0x288e9f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4f82d6){const _0x8199d4=W(_0x4f82d6);return _0x31288b=>!(!_0x31288b||!_0x31288b['is']('element','imageBlock')&&!_0x31288b['is']('element','imageInline'))&&(!!_0x31288b['hasAttribute']('uploadcareImageId')||!!_0x31288b['hasAttribute']('src')&&_0x8199d4(_0x31288b['getAttribute']('src')));}(_0x288e9f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2d2da7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2d2da7);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x49527c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49527c&&(_0x49527c['is']('element','imageBlock')||_0x49527c['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x4b0eef),_0x49527c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class at extends _0x39f285{['refresh'](){const _0x302a3e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x302a3e&&(_0x302a3e['is']('element','imageBlock')||_0x302a3e['is']('element','imageInline')));}['execute'](_0x1a1c08){const _0x46ec59=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x462f4e=>{_0x462f4e['setAttributes'](_0x1a1c08,_0x46ec59),_0x462f4e['removeAttribute']('srcset',_0x46ec59),_0x462f4e['removeAttribute']('sizes',_0x46ec59);});}}class ot extends _0x20cce4{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[X,_0x4d4cbd,_0x308f32,_0x555ed6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x26c718}=this;_0x26c718['commands']['add']('uploadcareImageEdit',new rt(_0x26c718)),_0x26c718['commands']['add']('uploadcareImageReplace',new at(_0x26c718));}}class ct extends _0x20cce4{['_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 _0x58c57a=this['editor'];_0x58c57a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x6bacbf=>{const _0x2286f1=_0x58c57a['commands']['get']('uploadcareImageEdit'),_0x3526cf=new _0x121de2(_0x6bacbf),t=_0x6bacbf['t'];return _0x3526cf['set']({'icon':_0x35592e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3526cf['bind']('isEnabled')['to'](_0x2286f1),_0x3526cf['bind']('isOn')['to'](_0x2286f1,'isActive'),this['listenTo'](_0x3526cf,'execute',()=>{_0x58c57a['execute']('uploadcareImageEdit'),_0x58c57a['editing']['view']['focus']();}),_0x3526cf;}),this['_initConfig']();}['_initConfig'](){const _0x509305=_0x2d1cfc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x509305),this['listenTo'](this['editor'],'destroy',()=>{_0x509305['remove']();});}}class lt extends _0x20cce4{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[ot,ct];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Y as Uploadcare,H as UploadcareCommand,X as UploadcareEditing,lt as UploadcareImageEdit,rt as UploadcareImageEditCommand,ot as UploadcareImageEditEditing,ct as UploadcareImageEditUI,$ as UploadcareUI,Z as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x16ae28,Command as _0x585727}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3bf8b6,IconGooglePhotos as _0x2a87fc,IconGoogleDrive as _0x4096fa,IconFacebook as _0xb5ba72,IconDropbox as _0x45f326,IconUploadcareLink as _0x4118f8,IconUploadcareImageUpload as _0x49ca52,IconError as _0x325d08,IconUploadcareImageEdit as _0x2915c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x54ba68,MenuBarMenuListItemButtonView as _0x2ac8ae,View as _0xcc56c0,FocusCycler as _0x1cf7fd,Dialog as _0x3c82e2,DialogViewPosition as _0x1a6285,SpinnerView as _0x10f46f,IconView as _0x26dddd,Notification as _0x4003d7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x562639,DomEmitterMixin as _0x5debc8,global as _0x485d39,getAncestors as _0x339450,ObservableMixin as _0x262fdd,uid as _0x484999,createElement as _0x350c77}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ImageUploadEditing as _0x440dc2,ImageUploadProgress as _0x91a180,PictureEditing as _0x3981bc,ImageUtils as _0xc2ffa1,ImageEditing as _0x3369a4}from'@ckeditor/ckeditor5-image/dist/index.js';import{FileRepository as _0x487fc0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x10f260,info as _0x500839}from'@uploadcare/upload-client';import*as _0x1f903f from'@uploadcare/file-uploader';var D=function(_0x3284dc){return _0x3284dc['Local']='local',_0x3284dc['URL']='url',_0x3284dc['Dropbox']='dropbox',_0x3284dc['GDrive']='gdrive',_0x3284dc['Facebook']='facebook',_0x3284dc['GPhotos']='gphotos',_0x3284dc['OneDrive']='onedrive',_0x3284dc;}({});function F(_0xe7bfbd,_0x21117d,_0x436b3e){const t=_0xe7bfbd['t'],_0x5d4b81=_0xe7bfbd['t'];switch(_0x21117d){case D['Local']:return{'text':_0x5d4b81('Insert'===_0x436b3e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5d4b81('From\x20computer')};case D['URL']:return{'text':'Insert'===_0x436b3e?_0x5d4b81('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5d4b81('Via\x20URL')};case D['Dropbox']:return{'text':t('Insert'===_0x436b3e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case D['Facebook']:return{'text':t('Insert'===_0x436b3e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case D['GDrive']:return{'text':t('Insert'===_0x436b3e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case D['GPhotos']:return{'text':t('Insert'===_0x436b3e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case D['OneDrive']:return{'text':t('Insert'===_0x436b3e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x21117d;}}class $ extends _0x16ae28{['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 _0x1144a6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d9eff;for(const _0x1fd17c in _0x1144a6){const _0x3575f5=_0x1fd17c,_0x1e7f4e=_0x1144a6[_0x3575f5];if('uploadcareLicenseKeyValid'==_0x1e7f4e||'uploadcareLicenseKeyInvalid'==_0x1e7f4e||'uploadcareLicenseKeyExpired'==_0x1e7f4e||'uploadcareLicenseKeyDomainLimit'==_0x1e7f4e||'uploadcareLicenseKeyNotAllowed'==_0x1e7f4e||'uploadcareLicenseKeyEvaluationLimit'==_0x1e7f4e||'uploadcareLicenseKeyUsageLimit'==_0x1e7f4e){delete _0x1144a6[_0x3575f5],_0x1d9eff=_0x1e7f4e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1d9eff&&_0x1144a6['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1d9eff&&_0x1144a6['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1d9eff&&_0x1144a6['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1d9eff&&_0x1144a6['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1d9eff&&_0x1144a6['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1d9eff&&_0x1144a6['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4571d3}=this,_0x3788b4=_0x4571d3['commands']['get']('uploadcare');if(!_0x3788b4)return;const _0x4e8b95=this['_normalizeConfigSourceList'](_0x4571d3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x593519,_0x3b5a65)=>{const _0x5c9aba=this['_getIntegrationKey'](_0x3b5a65['type']);return _0x593519[_0x5c9aba]||(_0x593519[_0x5c9aba]=[]),_0x593519[_0x5c9aba]['push'](_0x3b5a65),_0x593519;},{});_0x4571d3['plugins']['has']('ImageInsertUI')&&_0x4571d3['commands']['get']('uploadcare')&&Object['entries'](_0x4e8b95)['forEach'](([_0x19af31,_0x1afe6c])=>{_0x4571d3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x19af31,'observable':()=>_0x3788b4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1afe6c),'formViewCreator':()=>this['_createDropdownButtons'](_0x1afe6c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1afe6c),'override':'assetManager'!==_0x19af31});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x182a42){const {locale:_0x458808}=this['editor'];return _0x182a42['map'](_0x2b2a14=>{const _0x466a57=F(_0x458808,_0x2b2a14,'Insert');switch(_0x2b2a14){case D['Local']:return{'icon':_0x49ca52,'type':D['Local'],..._0x466a57};case D['URL']:return{'icon':_0x4118f8,'type':D['URL'],..._0x466a57};case D['Dropbox']:return{'icon':_0x45f326,'type':D['Dropbox'],..._0x466a57};case D['Facebook']:return{'icon':_0xb5ba72,'type':D['Facebook'],..._0x466a57};case D['GDrive']:return{'icon':_0x4096fa,'type':D['GDrive'],..._0x466a57};case D['GPhotos']:return{'icon':_0x2a87fc,'type':D['GPhotos'],..._0x466a57};case D['OneDrive']:return{'icon':_0x3bf8b6,'type':D['OneDrive'],..._0x466a57};}});}['_getIntegrationKey'](_0x4ef3bc){switch(_0x4ef3bc){case D['Local']:return'upload';case D['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x11ea43,_0x1aeb18){const _0xd9c8c0=this['editor'],_0x3e032a=new _0x11ea43(_0xd9c8c0['locale']),_0xe3395e=_0xd9c8c0['commands']['get']('uploadcare');return _0x3e032a['bind']('isEnabled')['to'](_0xe3395e),_0x3e032a['on']('execute',()=>{_0xe3395e['execute'](_0x1aeb18);}),_0x3e032a;}['_createToolbarButton'](_0x3bd11c){const {locale:_0x3925fc}=this['editor'],_0x233604=this['editor']['plugins']['get']('ImageInsertUI'),_0x1c42cc=_0x3bd11c[0x0],_0x24d59b=this['_createButton'](_0x54ba68,_0x1c42cc['type']);return _0x24d59b['icon']=_0x1c42cc['icon'],_0x24d59b['bind']('label')['to'](_0x233604,'isImageSelected',_0x1fedb6=>F(_0x3925fc,_0x1c42cc['type'],_0x1fedb6?'Replace':'Insert')['text']),_0x24d59b['tooltip']=!0x0,_0x24d59b;}['_createDropdownButtons'](_0x5d76a1){const {locale:_0x3b5e31}=this['editor'],_0x96fa3b=this['editor']['plugins']['get']('ImageInsertUI');return _0x5d76a1['map'](_0x3a4d65=>{const _0x517604=this['_createButton'](_0x54ba68,_0x3a4d65['type']);return _0x517604['withText']=!0x0,_0x517604['icon']=_0x3a4d65['icon'],_0x517604['bind']('label')['to'](_0x96fa3b,'isImageSelected',_0x57d356=>F(_0x3b5e31,_0x3a4d65['type'],_0x57d356?'Replace':'Insert')['text']),_0x517604;});}['_createMenuBarButtons'](_0x1d8ab3){return _0x1d8ab3['map'](_0xab88f8=>{const _0x39d7f0=this['_createButton'](_0x2ac8ae,_0xab88f8['type']);return _0x39d7f0['icon']=_0xab88f8['icon'],_0x39d7f0['label']=_0xab88f8['shortText'],_0x39d7f0;});}}class B extends _0xcc56c0{['focusTracker'];['focusCycler'];constructor(_0x59ccca){super(_0x59ccca),this['focusTracker']=new _0x562639(),this['focusCycler']=new _0x1cf7fd({'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 V extends B{constructor(_0x3282a7,_0x337e24){super(_0x3282a7),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-'+_0x337e24}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function j(_0x4d9d3d,_0x536200){const _0x43e09e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x190b01=>_0x190b01<=_0x536200)['map'](_0x248d04=>_0x4d9d3d['replace'](/\/$/,'')+'/-/resize/'+_0x248d04+'x/\x20'+_0x248d04+'w');return{'imageFallbackUrl':_0x4d9d3d,'imageSources':[{'srcset':_0x43e09e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x536200+'px)\x20100vw,\x20'+_0x536200+'px','type':'image/webp'}]};}function M(_0x458a8c,_0x261619,_0x3f34ca){const _0x58ec03=_0x458a8c['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x58ec03?parseInt(_0x58ec03[0x1],0xa):_0x261619,'height':_0x58ec03?parseInt(_0x58ec03[0x2],0xa):_0x3f34ca};}function q(_0x45435a,_0xa458c3){const _0x58c67f=new(_0x5debc8())(),_0x146599=_0x45435a['plugins']['get']('ImageUtils'),_0x457f12=_0x45435a['editing']['mapper']['toViewElement'](_0xa458c3),_0x4efd39=_0x146599['findViewImgElement'](_0x457f12),_0x64a4b7=_0x45435a['editing']['view']['domConverter']['viewToDom'](_0x4efd39),_0x124f21=_0xa458c3['getAttribute']('width'),_0x10daee=_0xa458c3['getAttribute']('height'),_0x4f554a='image-processing';_0x45435a['editing']['view']['change'](_0x24b4a4=>{_0x24b4a4['addClass'](_0x4f554a,_0x457f12),_0x24b4a4['setStyle']('aspect-ratio',_0x124f21+'/'+_0x10daee,_0x4efd39);}),_0x58c67f['listenTo'](_0x64a4b7,'load',()=>{_0x58c67f['stopListening'](_0x64a4b7,'load'),_0x45435a['editing']['view']['change'](_0x29eec6=>{_0x29eec6['removeClass'](_0x4f554a,_0x457f12),_0x29eec6['removeStyle']('aspect-ratio',_0x4efd39);});});}function W(_0x1ea289){if(Array['isArray'](_0x1ea289)){const _0x3b0ef6=_0x1ea289['map'](W);return _0x1fcf7=>_0x3b0ef6['some'](_0x54f33f=>_0x54f33f(_0x1fcf7));}if('origin'==_0x1ea289){const _0x556fec=_0x485d39['window']['location']['origin'];return _0x1c15ef=>new URL(_0x1c15ef,_0x485d39['document']['baseURI'])['origin']==_0x556fec;}return'function'==typeof _0x1ea289?_0x1ea289:_0x1ea289 instanceof RegExp?_0x1bcd09=>!(!_0x1bcd09['match'](_0x1ea289)&&!_0x1bcd09['replace'](/^https?:\/\//,'')['match'](_0x1ea289)):()=>!0x1;}function G(_0x4604d2,_0x14c204){return _0x339450(_0x4604d2['target'])['includes'](_0x14c204);}class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x262fdd(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x890a8a,_0x229601,_0x325ddd){super(),this['_editor']=_0x890a8a,this['_editing']=_0x229601,this['_dialog']=_0x890a8a['plugins']['get'](_0x3c82e2),this['_api']=_0x229601['ctxElement']['getAPI'](),this['_type']=_0x325ddd,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:_0x586fd9,model:_0x171e64}=this['_editor'],_0x4954e8=_0x171e64['document']['selection']['getSelectedElement'](),_0x1333fc=_0x4954e8&&(_0x4954e8['is']('element','imageBlock')||_0x4954e8['is']('element','imageInline'));this['_formView']=new V(_0x586fd9,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x49ca52,'title':F(_0x586fd9,this['_type'],_0x1333fc?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1a6285['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x418735=>!G(_0x418735,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x323e88}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x726663=>{const _0x7fd317=_0x323e88['length'];for(const _0x27fb59 of _0x323e88){const _0x37fe2c=_0x27fb59===_0x323e88[_0x7fd317-0x1],{cdnUrl:_0x5173fb,fileInfo:_0x286d1c}=_0x27fb59;if(!_0x5173fb||!_0x286d1c)continue;const {width:_0xe40a14,height:_0x5dfe9b}=_0x286d1c['imageInfo'],_0x53661d=M(_0x5173fb,_0xe40a14,_0x5dfe9b),_0x3fb413=j(_0x5173fb,_0x53661d['width']),_0x1b7100={'id':_0x286d1c['uuid'],'type':'image','attributes':{'imageDimension':_0x53661d,..._0x3fb413}};this['_insertAsset'](_0x1b7100,_0x37fe2c,_0x726663);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x7f385b=>{'idle'===_0x7f385b['detail']['status']&&!_0x7f385b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===D['Local']?this['_api']['setCurrentActivity'](D['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1a5004,_0x5cef6b,_0x208da4){const _0x50c089=this['_editor']['model']['document']['selection'],_0x450e71=_0x50c089['getSelectedElement'](),_0x2c6289=!(!_0x450e71||!_0x450e71['is']('element','imageInline'));_0x208da4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1a5004,_0x2c6289),_0x5cef6b||_0x208da4['setSelection'](_0x50c089['getLastPosition']());}['_insertImage'](_0x3b8789,_0x424196){const _0x281c77=this['_editor'],{imageDimension:_0x4d3a3e,imageFallbackUrl:_0x4f08cd,imageSources:_0x56add9}=_0x3b8789['attributes'];_0x281c77['execute']('insertImage',{'imageType':_0x424196?'imageInline':null,'source':{'uploadcareImageId':_0x3b8789['id'],'src':_0x4f08cd,'sources':_0x56add9,..._0x4d3a3e}});}}class H extends _0x585727{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c82e2,X];}constructor(_0x5decd5){super(_0x5decd5),this['_editing']=_0x5decd5['plugins']['get'](X);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xf466d9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new z(this['editor'],this['_editing'],_0xf466d9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class J{static['upload']({file:_0x1a4533,..._0xd26018}){return _0x10f260(_0x1a4533,_0xd26018);}static['getInfo'](_0x15526b,_0x500929){return _0x500839(_0x15526b,_0x500929);}}class Z extends _0x16ae28{static get['requires'](){return[_0x440dc2,_0x91a180,_0x487fc0,X];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xadb77d=this['editor'];if(!!!_0xadb77d['config']['get']('uploadcare'))return;_0xadb77d['plugins']['get'](_0x487fc0)['createUploadAdapter']=_0x3fc06e=>new Q(_0x3fc06e,_0xadb77d),_0xadb77d['plugins']['get'](_0x440dc2)['on']('uploadComplete',(_0x996bcf,{imageElement:_0xc295a4,data:_0x5678e4})=>{_0xadb77d['model']['change'](_0x4522f9=>{_0x4522f9['setAttribute']('uploadcareImageId',_0x5678e4['uploadcareImageId'],_0xc295a4);});});}}class Q{['loader'];['editor'];['controller'];constructor(_0x50781f,_0x2ff192){this['loader']=_0x50781f,this['editor']=_0x2ff192,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x43d08b=await this['loader']['file'];return J['upload']({'file':_0x43d08b,'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':_0x3d02e9=>{_0x3d02e9&&_0x3d02e9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3d02e9['value']);}})['then'](async _0x3fa4dc=>{const {imageFallbackUrl:_0x5b4fd5,imageSources:_0x45f292}=j(_0x3fa4dc['cdnUrl'],_0x3fa4dc['imageInfo']['width']);return{'uploadcareImageId':_0x3fa4dc['uuid'],'default':_0x5b4fd5,'sources':_0x45f292};})['catch'](()=>{const _0x187c79=t('Cannot\x20upload\x20file:')+('\x20'+_0x43d08b['name']+'.');return Promise['reject'](_0x187c79);});}['abort'](){this['controller']['abort']();}}class X extends _0x16ae28{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x3981bc,Z,_0x3c82e2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x457b61){super(_0x457b61),this['ucContextId']=_0x484999();}['init'](){const _0x42d2ad=this['editor'];_0x42d2ad['commands']['add']('uploadcare',new H(_0x42d2ad));}['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 _0x153aa4=_0x485d39['document']['querySelector']('input[uploadcare-file-input]');_0x153aa4&&_0x153aa4['remove']();}),async function(_0x2c26e6){const _0x2d5a62=_0x41e68f([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x27748a=0x535f8c3a,_0x431826=0x5358097a^_0x27748a,_0x5b2b26=window[_0x41e68f([0x44,0x61,0x74,0x65])][_0x41e68f([0x6e,0x6f,0x77])](),_0x42e210=_0x2c26e6[_0x41e68f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53fa0b=new window[(_0x41e68f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16b0c9=>{_0x42e210[_0x41e68f([0x6f,0x6e,0x63,0x65])](_0x41e68f([0x72,0x65,0x61,0x64,0x79]),_0x16b0c9);}),_0x19953e={[_0x41e68f([0x6b,0x74,0x79])]:_0x41e68f([0x45,0x43]),[_0x41e68f([0x75,0x73,0x65])]:_0x41e68f([0x73,0x69,0x67]),[_0x41e68f([0x63,0x72,0x76])]:_0x41e68f([0x50,0x2d,0x32,0x35,0x36]),[_0x41e68f([0x78])]:_0x41e68f([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]),[_0x41e68f([0x79])]:_0x41e68f([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]),[_0x41e68f([0x61,0x6c,0x67])]:_0x41e68f([0x45,0x53,0x32,0x35,0x36])},_0x18e3c8=_0x42e210[_0x41e68f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x41e68f([0x67,0x65,0x74])](_0x41e68f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x25d47c(){let _0x277041,_0x213ac6=null,_0x370f79=null;try{if(_0x18e3c8==_0x41e68f([0x47,0x50,0x4c]))return _0x41e68f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x277041=_0x456716(),!_0x277041)return _0x41e68f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x277041[_0x41e68f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x370f79=_0x5b5344(_0x277041[_0x41e68f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x277041[_0x41e68f([0x6a,0x74,0x69])])),await _0x200efe()?_0x5887f3()?_0x6f6d29()?_0x41e68f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x159aa0()?(_0x277041[_0x41e68f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41e68f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x213ac6=_0x155437(_0x41e68f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x42f3b7()):_0x41e68f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x41e68f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x41e68f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x41e68f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6f6d29(){const _0x52d72d=[_0x41e68f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x41e68f([0x74,0x72,0x69,0x61,0x6c])][_0x41e68f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x277041[_0x41e68f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b2b26/0x3e8:0xe10*_0x431826;return _0x277041[_0x41e68f([0x65,0x78,0x70])]<_0x52d72d;}function _0x5887f3(){const _0x429dc3=_0x277041[_0x41e68f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x429dc3&&(!!_0x429dc3[_0x41e68f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41e68f([0x2a]))||!!_0x429dc3[_0x41e68f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41e68f([0x55,0x50,0x4c,0x43])));}function _0x159aa0(){const _0x157a4c=_0x277041[_0x41e68f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x157a4c||0x0==_0x157a4c[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xdcad78}=new URL(window[_0x41e68f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x157a4c[_0x41e68f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdcad78))return!0x0;const _0x332023=_0xdcad78[_0x41e68f([0x73,0x70,0x6c,0x69,0x74])](_0x41e68f([0x2e]));return _0x157a4c[_0x41e68f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6381b=>_0x6381b[_0x41e68f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41e68f([0x2a])))[_0x41e68f([0x6d,0x61,0x70])](_0x473865=>_0x473865[_0x41e68f([0x73,0x70,0x6c,0x69,0x74])](_0x41e68f([0x2e])))[_0x41e68f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45f6af=>_0x45f6af[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x332023[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41e68f([0x6d,0x61,0x70])](_0x58ebf5=>Array(_0x332023[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58ebf5[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41e68f([0x66,0x69,0x6c,0x6c])](_0x58ebf5[0x0]===_0x41e68f([0x2a])?_0x41e68f([0x2a]):'')[_0x41e68f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58ebf5))[_0x41e68f([0x73,0x6f,0x6d,0x65])](_0x399b0f=>_0x332023[_0x41e68f([0x65,0x76,0x65,0x72,0x79])]((_0x2459c6,_0x4adabc)=>_0x399b0f[_0x4adabc]===_0x2459c6||_0x399b0f[_0x4adabc]===_0x41e68f([0x2a])));}function _0x42f3b7(){return _0x213ac6&&_0x370f79?new window[(_0x41e68f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf0a07,_0x34cf87)=>{_0x213ac6[_0x41e68f([0x74,0x68,0x65,0x6e])](_0xf0a07,_0x34cf87),_0x370f79[_0x41e68f([0x74,0x68,0x65,0x6e])](_0x19227b=>{_0x19227b!=_0x41e68f([0x56,0x61,0x6c,0x69,0x64])&&_0xf0a07(_0x19227b);},_0x34cf87);}):_0x213ac6||_0x370f79||_0x41e68f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b5344(_0x4557e8,_0x3d1d13){return new window[(_0x41e68f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd65df4=>{if(_0x57e382())return _0xd65df4(_0x41e68f([0x56,0x61,0x6c,0x69,0x64]));_0xbf152e(),_0x42e210[_0x41e68f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x41e68f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x153a81=!0x1;const _0x642dbd=_0x484999();function _0x1ecc73(_0x258192){return!!_0x258192&&(typeof _0x258192===_0x41e68f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x258192===_0x41e68f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x258192[_0x41e68f([0x74,0x68,0x65,0x6e])]===_0x41e68f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x258192[_0x41e68f([0x63,0x61,0x74,0x63,0x68])]===_0x41e68f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c5c25(_0x59e0e0){_0x423403(_0x59e0e0)[_0x41e68f([0x74,0x68,0x65,0x6e])](_0x4eb455=>{if(!_0x4eb455||_0x4eb455[_0x41e68f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x41e68f([0x6f,0x6b]))return _0x41e68f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x37f503(_0x1bae25(_0x642dbd+_0x3d1d13))!=_0x4eb455[_0x41e68f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x41e68f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x41e68f([0x56,0x61,0x6c,0x69,0x64]);})[_0x41e68f([0x74,0x68,0x65,0x6e])](_0x1545f0=>(_0x294d92(),_0x1545f0),()=>{const _0x44e432=_0x1be4bf();return null==_0x44e432?(_0x294d92(),_0x41e68f([0x56,0x61,0x6c,0x69,0x64])):_0x41e68f(_0x5b2b26-_0x44e432>(0x7753083a^_0x27748a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x41e68f([0x74,0x68,0x65,0x6e])](_0xd65df4)[_0x41e68f([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd65df4(_0x41e68f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4952ac=0x536962ba^_0x27748a;function _0x294d92(){const _0x4f8040=_0x41e68f([0x6c,0x6c,0x63,0x74,0x2d])+_0x37f503(_0x1bae25(_0x4557e8)),_0x461c5d=_0x3a5b8b(_0x37f503(window[_0x41e68f([0x4d,0x61,0x74,0x68])][_0x41e68f([0x63,0x65,0x69,0x6c])](_0x5b2b26/_0x4952ac)));window[_0x41e68f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41e68f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f8040,_0x461c5d);}function _0x1be4bf(){const _0xec8940=_0x41e68f([0x6c,0x6c,0x63,0x74,0x2d])+_0x37f503(_0x1bae25(_0x4557e8)),_0xcb601=window[_0x41e68f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41e68f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xec8940);return _0xcb601?window[_0x41e68f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a5b8b(_0xcb601),0x10)*_0x4952ac:null;}function _0x423403(_0x3f3083){return new window[(_0x41e68f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10e2cb,_0x21237f)=>{_0x3f3083[_0x41e68f([0x74,0x68,0x65,0x6e])](_0x10e2cb,_0x21237f),window[_0x41e68f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21237f,0x535e58fa^_0x27748a);});}}_0x42e210[_0x41e68f([0x6f,0x6e])](_0x41e68f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5dd3b0,_0x16957a)=>{if(_0x16957a[0x0]!=_0x4557e8)return _0xd65df4(_0x41e68f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16957a[0x1]={..._0x16957a[0x1],[_0x41e68f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x642dbd};},{[_0x41e68f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41e68f([0x68,0x69,0x67,0x68])}),_0x42e210[_0x41e68f([0x6f,0x6e])](_0x41e68f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x545330=>{_0x1ecc73(_0x545330[_0x41e68f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x153a81=!0x0,_0x2c5c25(_0x545330[_0x41e68f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x41e68f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41e68f([0x6c,0x6f,0x77])}),_0x53fa0b[_0x41e68f([0x74,0x68,0x65,0x6e])](()=>{_0x153a81||_0xd65df4(_0x41e68f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x57e382(){return _0x42e210[_0x41e68f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41e68f([0x76,0x69,0x65,0x77])][_0x41e68f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x41e68f([0x61,0x75,0x74,0x6f]);}function _0xbf152e(){_0x42e210[_0x41e68f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41e68f([0x76,0x69,0x65,0x77])][_0x41e68f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41e68f([0x61,0x75,0x74,0x6f]);}}function _0x155437(_0x138ecd){const _0x2ae5a6=[new window[(_0x41e68f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33f3ab=>setTimeout(_0x33f3ab,0x5356b2f6^_0x27748a)),_0x53fa0b[_0x41e68f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x41e68f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107b49=>{let _0x2cb0e0=0x0;_0x42e210[_0x41e68f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41e68f([0x6f,0x6e])](_0x41e68f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x58fa7c,_0x1160c5)=>{_0x1160c5[0x0][_0x41e68f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2cb0e0++,_0x2cb0e0==(0x535f89d2^_0x27748a)&&(_0x107b49(),_0x58fa7c[_0x41e68f([0x6f,0x66,0x66])]());});}))];return window[_0x41e68f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41e68f([0x72,0x61,0x63,0x65])](_0x2ae5a6)[_0x41e68f([0x74,0x68,0x65,0x6e])](()=>_0x138ecd);}async function _0x312c3d(){await _0x53fa0b,_0x42e210[_0x41e68f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41e68f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x201019,_0x42e210[_0x41e68f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41e68f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x201019,_0x42e210[_0x41e68f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x41e68f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x332bc9(_0x578066){const _0x482b2a=_0x7261b3();_0x42e210[_0x482b2a]=_0x41e68f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x578066,_0x578066!=_0x41e68f([0x56,0x61,0x6c,0x69,0x64])&&_0x312c3d();}function _0x7261b3(){const _0x54603f=window[_0x41e68f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x41e68f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x41e68f([0x6e,0x6f,0x77])]())[_0x41e68f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x41e68f([0x2e]),'');let _0x2e8a85=_0x41e68f([0x68]);for(let _0x1f3d67=0x0;_0x1f3d67<_0x54603f[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f3d67+=0x2){let _0x4805d6=window[_0x41e68f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54603f[_0x41e68f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f3d67,_0x1f3d67+0x2));_0x4805d6>=_0x2d5a62[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4805d6-=_0x2d5a62[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e8a85+=_0x2d5a62[_0x4805d6];}return _0x2e8a85;}function _0x456716(){const _0x1f10a7=_0x18e3c8[_0x41e68f([0x73,0x70,0x6c,0x69,0x74])](_0x41e68f([0x2e]));if(0x3!=_0x1f10a7[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ca4bd(_0x1f10a7[0x1]);function _0x2ca4bd(_0x2515b4){const _0x3e0534=_0x2f71a6(_0x2515b4);return _0x3e0534&&_0x35d69e()?_0x3e0534:null;function _0x35d69e(){const _0x24f45d=_0x3e0534[_0x41e68f([0x6a,0x74,0x69])],_0xe47252=window[_0x41e68f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24f45d[_0x41e68f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24f45d[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b68c2={..._0x3e0534,[_0x41e68f([0x6a,0x74,0x69])]:_0x24f45d[_0x41e68f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24f45d[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b68c2[_0x41e68f([0x76,0x63])],_0x1bae25(_0x2b68c2)==_0xe47252;}}}async function _0x200efe(){let _0x187bbb=!0x0;try{const _0x1d3c71=_0x18e3c8[_0x41e68f([0x73,0x70,0x6c,0x69,0x74])](_0x41e68f([0x2e])),[_0x5aac85,_0x5b8537,_0x16b560]=_0x1d3c71;return _0x20a471(_0x5aac85),await _0x2e41fd(_0x5aac85,_0x5b8537,_0x16b560),_0x187bbb;}catch{return!0x1;}function _0x20a471(_0x1944d1){const _0x37d790=_0x2f71a6(_0x1944d1);_0x37d790&&_0x37d790[_0x41e68f([0x61,0x6c,0x67])]==_0x41e68f([0x45,0x53,0x32,0x35,0x36])||(_0x187bbb=!0x1);}async function _0x2e41fd(_0x2567be,_0x4c7dc0,_0x26d252){const _0x24a98a=window[_0x41e68f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x41e68f([0x66,0x72,0x6f,0x6d])](_0x374b85(_0x26d252),_0x3e210f=>_0x3e210f[_0x41e68f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37fc83=new window[(_0x41e68f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x41e68f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2567be+_0x41e68f([0x2e])+_0x4c7dc0),_0x30c0d2=window[_0x41e68f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x41e68f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30c0d2)return;const _0x25025d=await _0x30c0d2[_0x41e68f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x41e68f([0x6a,0x77,0x6b]),_0x19953e,{[_0x41e68f([0x6e,0x61,0x6d,0x65])]:_0x41e68f([0x45,0x43,0x44,0x53,0x41]),[_0x41e68f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x41e68f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x41e68f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30c0d2[_0x41e68f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x41e68f([0x6e,0x61,0x6d,0x65])]:_0x41e68f([0x45,0x43,0x44,0x53,0x41]),[_0x41e68f([0x68,0x61,0x73,0x68])]:{[_0x41e68f([0x6e,0x61,0x6d,0x65])]:_0x41e68f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25025d,_0x24a98a,_0x37fc83)||(_0x187bbb=!0x1);}}function _0x2f71a6(_0x5ae270){return _0x5ae270[_0x41e68f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x41e68f([0x65,0x79]))?JSON[_0x41e68f([0x70,0x61,0x72,0x73,0x65])](_0x374b85(_0x5ae270)):null;}function _0x374b85(_0x26fe0b){return window[_0x41e68f([0x61,0x74,0x6f,0x62])](_0x26fe0b[_0x41e68f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x41e68f([0x2b]))[_0x41e68f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x41e68f([0x2f])));}function _0x1bae25(_0x182c8a){let _0x3e36f5=0x1505;function _0x1a80d8(_0x178b5c){for(let _0x22d59a=0x0;_0x22d59a<_0x178b5c[_0x41e68f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22d59a++){const _0x465559=_0x178b5c[_0x41e68f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x22d59a);_0x3e36f5=(_0x3e36f5<<0x5)+_0x3e36f5+_0x465559,_0x3e36f5&=_0x3e36f5;}}function _0x215f9e(_0x290536){Array[_0x41e68f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x290536)?_0x290536[_0x41e68f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x215f9e):_0x290536&&typeof _0x290536==_0x41e68f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x41e68f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x290536)[_0x41e68f([0x73,0x6f,0x72,0x74])]()[_0x41e68f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55e87f,_0x2fd93b])=>{_0x1a80d8(_0x55e87f),_0x215f9e(_0x2fd93b);}):_0x1a80d8(window[_0x41e68f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x290536));}return _0x215f9e(_0x182c8a),_0x3e36f5>>>0x0;}function _0x37f503(_0x5f56b1){return _0x5f56b1[_0x41e68f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x41e68f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x41e68f([0x30]));}function _0x3a5b8b(_0x3d713c){return _0x3d713c[_0x41e68f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x41e68f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x41e68f([0x6a,0x6f,0x69,0x6e])]('');}function _0x201019(){}function _0x41e68f(_0x59b3fa){return _0x59b3fa['map'](_0xa520dd=>String['fromCharCode'](_0xa520dd))['join']('');}_0x332bc9(await _0x25d47c());}(this);}['_initSchema'](){const _0x33e48b=this['editor']['model']['schema'];_0x33e48b['isRegistered']('imageBlock')&&_0x33e48b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x33e48b['isRegistered']('imageInline')&&_0x33e48b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x166e06=this['editor'];_0x166e06['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x166e06['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x384a3f=>_0x384a3f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x9ebad9=_0x166e06['commands']['get']('replaceImageSource');_0x9ebad9&&this['listenTo'](_0x9ebad9,'cleanupImage',(_0x926c62,[_0x327bd0,_0x29b426])=>{_0x327bd0['removeAttribute']('uploadcareImageId',_0x29b426);});}['_initConfig'](){const _0x397c9f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x56182c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x350c77(_0x485d39['document'],'uc-config',{..._0x397c9f,'pubkey':_0x56182c,'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']=_0x55ebae=>{if('closeMax'==_0x55ebae)return'#uc-icon-arrow-down';},_0x485d39['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x350c77(_0x485d39['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x485d39['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x35146b=this['editor']['commands']['get']('insertImage');_0x35146b&&this['listenTo'](_0x35146b,'execute',()=>{const _0x2c902b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2c902b&&_0x2c902b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x2c902b);});});const _0x52dd1e=this['editor']['commands']['get']('uploadcareImageReplace');_0x52dd1e&&this['listenTo'](_0x52dd1e,'execute',()=>{const _0x33b31e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x33b31e&&_0x33b31e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x33b31e);});});}}class Y extends _0x16ae28{static get['requires'](){return[X,$];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3406e3){super(_0x3406e3),_0x3406e3['config']['define']('uploadcare.uploader.sourceList',[D['Local'],D['URL']]),_0x1f903f['defineComponents'](_0x1f903f),this['_defineLocale']();}['_defineLocale'](){const _0x54498a=this['editor']['config']['get']('uploadcare.locale'),_0xb8c551=this['editor']['locale']['contentLanguage'];_0x54498a&&_0x1f903f['defineLocale'](_0xb8c551,_0x54498a);}}class tt extends _0xcc56c0{constructor(_0x181f8d){super(_0x181f8d);const t=_0x181f8d['t'],_0x31a343=this['bindTemplate'],_0x2510c7=new _0x10f46f();_0x2510c7['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':[_0x2510c7,{'text':_0x31a343['to']('imageUploadProgress',_0x43241b=>t('Loading\x20image...')+'\x20('+(_0x43241b||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 et extends _0xcc56c0{constructor(_0x292f09){super(_0x292f09);const t=_0x292f09['t'];this['set']('errorType',null);const _0x1ba5c8=new _0x54ba68(_0x292f09);_0x1ba5c8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1ba5c8['withText']=!0x0,_0x1ba5c8['class']='ck-button-action',_0x1ba5c8['on']('execute',()=>{this['fire']('retry');}),_0x1ba5c8['bind']('isVisible')['to'](this,'errorType',_0x4465ef=>'NotFound'!==_0x4465ef);const _0x4b60e5=new _0x26dddd();_0x4b60e5['content']=_0x325d08,_0x4b60e5['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x16ec8c=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':[_0x4b60e5,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x16ec8c['to']('errorType',_0x3f1303=>t('NotFound'!==_0x3f1303?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1ba5c8]},{'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 it extends _0xcc56c0{constructor(_0x5d027d,_0x4834bc){super(_0x5d027d);const _0x5b874e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4834bc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5b874e['to']('imageSrc')}});}}class st extends B{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4d400d,_0x167207,_0x1d2c1f){super(_0x4d400d),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x4d400d),this['_errorView']=new et(_0x4d400d),this['_editingView']=new it(_0x4d400d,_0x1d2c1f),this['_focusableView']=new _0xcc56c0(_0x4d400d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x167207),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'],_0x22a938=>{this['_addUploadcareImageEditorListeners'](_0x22a938);});}),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'](_0x2e7cd0,_0x3ed2c2){const _0x98359d='uc-cloud-image-editor',_0x4fbd68=_0x2e7cd0['querySelector'](_0x98359d);if(_0x4fbd68)return _0x3ed2c2(_0x4fbd68);const _0x22294d=new MutationObserver(_0x25f347=>{const _0x14ceba=_0x25f347['filter'](_0x507b43=>_0x507b43['target']===_0x2e7cd0&&_0x507b43['addedNodes']['length']>0x0&&_0x507b43['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x98359d);_0x14ceba['length']&&(_0x22294d['disconnect'](),_0x3ed2c2(_0x14ceba[0x0]['addedNodes'][0x0]));});_0x22294d['observe'](_0x2e7cd0,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3442d7){_0x3442d7['addEventListener']('apply',_0x53cb25=>{this['fire']('apply',{'imageSrc':_0x53cb25['detail']['cdnUrl']});}),_0x3442d7['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class nt extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x262fdd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1c49d2,_0xd17374,_0x42ec9e){super(),this['_editor']=_0x1c49d2,this['_dialog']=_0xd17374,this['_imageElement']=_0x42ec9e,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 _0x580d50=this['_imageElement'],_0x2ce450=_0x580d50['getAttribute']('uploadcareImageId'),_0x4bb9c2=_0x580d50['getAttribute']('src');if(_0x2ce450)await this['_loadImageInfo'](_0x2ce450,_0x4bb9c2);else{if(this['_imageCache']['has'](_0x4bb9c2)){const _0x18a19a=this['_imageCache']['get'](_0x4bb9c2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x18a19a['url'],this['imageDimension']=_0x18a19a['dimension'],this['imageId']=_0x18a19a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1be55d}=this['_editor'],t=_0x1be55d['t'],_0x59d024=new st(_0x1be55d,this['imageStatus'],this['_attributes']);_0x59d024['bind']('status')['to'](this,'imageStatus'),_0x59d024['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x59d024['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x59d024['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x59d024,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2915c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x59d024,'position':_0x1a6285['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x59d024['focus']();},'onHide':()=>{_0x59d024['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e0ab2=>!G(_0x5e0ab2,_0x59d024['element'])}});}['_loadImageInfo'](_0x4f1898,_0x262e2f){return J['getInfo'](_0x4f1898,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x526747=>{const {width:_0x102fb3,height:_0xe23c25}=_0x526747['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x262e2f,this['imageDimension']={'width':_0x102fb3,'height':_0xe23c25},this['imageId']=_0x4f1898;})['catch'](_0x3e65ad=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e65ad['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x590d3c,_0x4abc0e){return this['_getImageAsFile'](_0x590d3c)['then'](_0x132402=>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':_0x4abc0e['signal'],'file':_0x132402,'onProgress':_0xb8b12=>{_0xb8b12&&_0xb8b12['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xb8b12['value']));}}))['then'](_0x1cac0d=>{const {width:_0x59509a,height:_0xd43e2a}=_0x1cac0d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1cac0d['cdnUrl'],this['imageDimension']={'width':_0x59509a,'height':_0xd43e2a},this['imageId']=_0x1cac0d['uuid'],this['imageUploadProgress']=null;const _0x5aa0a1=_0x590d3c['getAttribute']('src');this['_imageCache']['set'](_0x5aa0a1,{'id':_0x1cac0d['uuid'],'url':_0x1cac0d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2b848f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2b848f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x291e2f,_0x363548){_0x291e2f['on']('apply',(_0x4981e4,_0x488266)=>{this['_replaceImage'](_0x363548,_0x488266['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x291e2f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x291e2f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2bc5a7,_0x3825f1,_0x19fa79){const _0x8009f1=this['_editor'],{width:_0xa8d4db,height:_0xea36c5}=M(_0x3825f1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3b9420,imageSources:_0x4f3d6c}=j(_0x3825f1,_0xa8d4db);_0x8009f1['model']['change'](_0x416742=>{if('$graveyard'===_0x2bc5a7['root']['rootName']){_0x8009f1['execute']('insertImage',{'imageType':_0x2bc5a7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2bc5a7['getAttributes']()),'uploadcareImageId':_0x19fa79,'src':_0x3b9420,'sources':_0x4f3d6c,'width':_0xa8d4db,'height':_0xea36c5}});const _0x13d7c7=_0x2bc5a7['getChildren']();_0x2bc5a7=_0x8009f1['model']['document']['selection']['getSelectedElement']();for(const _0x2a611b of _0x13d7c7)_0x416742['append'](_0x416742['cloneElement'](_0x2a611b),_0x2bc5a7);}else _0x416742['setSelection'](_0x2bc5a7,'on'),_0x8009f1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2bc5a7['getAttributes']()),'uploadcareImageId':_0x19fa79,'src':_0x3b9420,'sources':_0x4f3d6c,'width':_0xa8d4db,'height':_0xea36c5},_0x2bc5a7);_0x416742['setSelection'](_0x2bc5a7,'on');});}async['_getImageAsFile'](_0x411128){const _0x4409d4=_0x485d39['window'],_0xaf235e=_0x485d39['document']['location']['href'],_0x16856b=new _0x4409d4['URL'](_0x411128['getAttribute']('src'),_0xaf235e);if('data:'===_0x16856b['protocol']){const _0x5f114b=_0x16856b['href']['split'](','),_0x33c914=_0x5f114b[0x0]['match'](/:(.*?);/)[0x1],_0x144060=_0x33c914['split']('/')[0x1],_0x2bf015=_0x4409d4['atob'](_0x5f114b[_0x5f114b['length']-0x1]);let _0x1a8e87=_0x2bf015['length'];const _0x4ee5cb=new _0x4409d4['Uint8Array'](_0x1a8e87);for(;_0x1a8e87--;)_0x4ee5cb[_0x1a8e87]=_0x2bf015['charCodeAt'](_0x1a8e87);return new _0x4409d4['File']([_0x4ee5cb],'image.'+_0x144060,{'type':_0x33c914});}const _0x4e493b=_0x16856b['href']['split']('/'),_0x4545cf=_0x4e493b[_0x4e493b['length']-0x1],_0x4a6fcc=_0x4545cf['split']('.')[0x1];return _0x4409d4['fetch'](_0x16856b['href'])['then'](_0xc367bc=>_0xc367bc['clone']()['blob']())['then'](_0x46e7cc=>new _0x4409d4['File']([_0x46e7cc],_0x4545cf,{'type':'image/'+_0x4a6fcc}));}}class rt extends _0x585727{['imageEditController'];static get['requires'](){return[_0x3c82e2];}['_isEditable'];constructor(_0x52add3){super(_0x52add3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2f455d){const _0x10348f=W(_0x2f455d);return _0x51f02f=>!(!_0x51f02f||!_0x51f02f['is']('element','imageBlock')&&!_0x51f02f['is']('element','imageInline'))&&(!!_0x51f02f['hasAttribute']('uploadcareImageId')||!!_0x51f02f['hasAttribute']('src')&&_0x10348f(_0x51f02f['getAttribute']('src')));}(_0x52add3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x23a21a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x23a21a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5ccf7b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5ccf7b&&(_0x5ccf7b['is']('element','imageBlock')||_0x5ccf7b['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x3c82e2),_0x5ccf7b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class at extends _0x585727{['refresh'](){const _0x2e3685=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2e3685&&(_0x2e3685['is']('element','imageBlock')||_0x2e3685['is']('element','imageInline')));}['execute'](_0x50359a){const _0x3c4ae2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3f827c=>{_0x3f827c['setAttributes'](_0x50359a,_0x3c4ae2),_0x3f827c['removeAttribute']('srcset',_0x3c4ae2),_0x3f827c['removeAttribute']('sizes',_0x3c4ae2);});}}class ot extends _0x16ae28{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[X,_0x4003d7,_0xc2ffa1,_0x3369a4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4617a8}=this;_0x4617a8['commands']['add']('uploadcareImageEdit',new rt(_0x4617a8)),_0x4617a8['commands']['add']('uploadcareImageReplace',new at(_0x4617a8));}}class ct extends _0x16ae28{['_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 _0x300c1d=this['editor'];_0x300c1d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x33f852=>{const _0x1bf55f=_0x300c1d['commands']['get']('uploadcareImageEdit'),_0x160ae1=new _0x54ba68(_0x33f852),t=_0x33f852['t'];return _0x160ae1['set']({'icon':_0x2915c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x160ae1['bind']('isEnabled')['to'](_0x1bf55f),_0x160ae1['bind']('isOn')['to'](_0x1bf55f,'isActive'),this['listenTo'](_0x160ae1,'execute',()=>{_0x300c1d['execute']('uploadcareImageEdit'),_0x300c1d['editing']['view']['focus']();}),_0x160ae1;}),this['_initConfig']();}['_initConfig'](){const _0x33f2bd=_0x350c77(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x33f2bd),this['listenTo'](this['editor'],'destroy',()=>{_0x33f2bd['remove']();});}}class lt extends _0x16ae28{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[ot,ct];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Y as Uploadcare,H as UploadcareCommand,X as UploadcareEditing,lt as UploadcareImageEdit,rt as UploadcareImageEditCommand,ot as UploadcareImageEditEditing,ct as UploadcareImageEditUI,$ as UploadcareUI,Z 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':_0xb5c399=>0x1!=_0xb5c399}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x101dd5=>{const {af:{dictionary:_0x556aa0,getPluralForm:_0x31a9b3}}={'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':_0x54f515=>0x1!=_0x54f515}};_0x101dd5['af']||={'dictionary':{},'getPluralForm':null},_0x101dd5['af']['dictionary']=Object['assign'](_0x101dd5['af']['dictionary'],_0x556aa0),_0x101dd5['af']['getPluralForm']=_0x31a9b3;})(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':_0x32682=>0x0==_0x32682?0x0:0x1==_0x32682?0x1:0x2==_0x32682?0x2:_0x32682%0x64>=0x3&&_0x32682%0x64<=0xa?0x3:_0x32682%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x16acff=>{const {ar:{dictionary:_0x58ce36,getPluralForm:_0x1c7b0b}}={'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':_0x24dbd9=>0x0==_0x24dbd9?0x0:0x1==_0x24dbd9?0x1:0x2==_0x24dbd9?0x2:_0x24dbd9%0x64>=0x3&&_0x24dbd9%0x64<=0xa?0x3:_0x24dbd9%0x64>=0xb?0x4:0x5}};_0x16acff['ar']||={'dictionary':{},'getPluralForm':null},_0x16acff['ar']['dictionary']=Object['assign'](_0x16acff['ar']['dictionary'],_0x58ce36),_0x16acff['ar']['getPluralForm']=_0x1c7b0b;})(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':_0x47e289=>0x1!=_0x47e289}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x442247=>{const {ast:{dictionary:_0x20ffba,getPluralForm:_0x486f4f}}={'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':_0x266502=>0x1!=_0x266502}};_0x442247['ast']||={'dictionary':{},'getPluralForm':null},_0x442247['ast']['dictionary']=Object['assign'](_0x442247['ast']['dictionary'],_0x20ffba),_0x442247['ast']['getPluralForm']=_0x486f4f;})(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':_0x262149=>0x1!=_0x262149}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5dc918=>{const {az:{dictionary:_0x2c15be,getPluralForm:_0x2addf4}}={'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':_0x434dc0=>0x1!=_0x434dc0}};_0x5dc918['az']||={'dictionary':{},'getPluralForm':null},_0x5dc918['az']['dictionary']=Object['assign'](_0x5dc918['az']['dictionary'],_0x2c15be),_0x5dc918['az']['getPluralForm']=_0x2addf4;})(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':_0x55a25b=>_0x55a25b%0xa==0x1&&_0x55a25b%0x64!=0xb?0x0:_0x55a25b%0xa>=0x2&&_0x55a25b%0xa<=0x4&&(_0x55a25b%0x64<0xa||_0x55a25b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x296c0b=>{const {be:{dictionary:_0x3b2d29,getPluralForm:_0x80606c}}={'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':_0x73984e=>_0x73984e%0xa==0x1&&_0x73984e%0x64!=0xb?0x0:_0x73984e%0xa>=0x2&&_0x73984e%0xa<=0x4&&(_0x73984e%0x64<0xa||_0x73984e%0x64>=0x14)?0x1:0x2}};_0x296c0b['be']||={'dictionary':{},'getPluralForm':null},_0x296c0b['be']['dictionary']=Object['assign'](_0x296c0b['be']['dictionary'],_0x3b2d29),_0x296c0b['be']['getPluralForm']=_0x80606c;})(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':_0x3907c=>0x1!=_0x3907c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x641bb4=>{const {bg:{dictionary:_0x30d123,getPluralForm:_0x2e84c9}}={'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':_0x3a4378=>0x1!=_0x3a4378}};_0x641bb4['bg']||={'dictionary':{},'getPluralForm':null},_0x641bb4['bg']['dictionary']=Object['assign'](_0x641bb4['bg']['dictionary'],_0x30d123),_0x641bb4['bg']['getPluralForm']=_0x2e84c9;})(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':_0x2c5bfa=>0x1!=_0x2c5bfa}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x23bce5=>{const {bn:{dictionary:_0xe50f57,getPluralForm:_0x9b4d51}}={'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':_0x517330=>0x1!=_0x517330}};_0x23bce5['bn']||={'dictionary':{},'getPluralForm':null},_0x23bce5['bn']['dictionary']=Object['assign'](_0x23bce5['bn']['dictionary'],_0xe50f57),_0x23bce5['bn']['getPluralForm']=_0x9b4d51;})(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':_0x45417c=>_0x45417c%0xa==0x1&&_0x45417c%0x64!=0xb?0x0:_0x45417c%0xa>=0x2&&_0x45417c%0xa<=0x4&&(_0x45417c%0x64<0xa||_0x45417c%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1968f7=>{const {bs:{dictionary:_0x52530f,getPluralForm:_0x1b8c0d}}={'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':_0x252e3f=>_0x252e3f%0xa==0x1&&_0x252e3f%0x64!=0xb?0x0:_0x252e3f%0xa>=0x2&&_0x252e3f%0xa<=0x4&&(_0x252e3f%0x64<0xa||_0x252e3f%0x64>=0x14)?0x1:0x2}};_0x1968f7['bs']||={'dictionary':{},'getPluralForm':null},_0x1968f7['bs']['dictionary']=Object['assign'](_0x1968f7['bs']['dictionary'],_0x52530f),_0x1968f7['bs']['getPluralForm']=_0x1b8c0d;})(window['CKEDITOR_TRANSLATIONS']||={});
|