@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260122.0 → 0.0.0-nightly-next-20260123.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x43e20b,Command as _0x2f742b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xbdfff6,IconGooglePhotos as _0x26a327,IconGoogleDrive as _0x4261ae,IconFacebook as _0x292c7b,IconDropbox as _0x3a06bc,IconUploadcareLink as _0x1c614f,IconUploadcareImageUpload as _0x261f2a,IconError as _0x478afb,IconUploadcareImageEdit as _0x1e48c2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x547574,MenuBarMenuListItemButtonView as _0x3720a3,View as _0x3d7314,FocusCycler as _0x36389c,Dialog as _0x5a8c70,DialogViewPosition as _0x213fe5,SpinnerView as _0x8bc8c2,IconView as _0x58cd42,Notification as _0xd4ff4d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2bdf21,DomEmitterMixin as _0x2d4279,global as _0x4132cc,getAncestors as _0x584b86,ObservableMixin as _0x53f7df,uid as _0x45265f,createElement as _0x2598b2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2421b9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x436e0a,info as _0x54e229}from'@uploadcare/upload-client';import*as _0x3b54fd from'@uploadcare/file-uploader';var S=function(_0x34de20){return _0x34de20['Local']='local',_0x34de20['URL']='url',_0x34de20['Dropbox']='dropbox',_0x34de20['GDrive']='gdrive',_0x34de20['Facebook']='facebook',_0x34de20['GPhotos']='gphotos',_0x34de20['OneDrive']='onedrive',_0x34de20;}({});function T(_0x4ce684,_0x5de1c6,_0x3c57cd){const t=_0x4ce684['t'],_0xf296cc=_0x4ce684['t'];switch(_0x5de1c6){case S['Local']:return{'text':_0xf296cc('Insert'===_0x3c57cd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xf296cc('From\x20computer')};case S['URL']:return{'text':'Insert'===_0x3c57cd?_0xf296cc('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xf296cc('Via\x20URL')};case S['Dropbox']:return{'text':t('Insert'===_0x3c57cd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case S['Facebook']:return{'text':t('Insert'===_0x3c57cd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case S['GDrive']:return{'text':t('Insert'===_0x3c57cd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case S['GPhotos']:return{'text':t('Insert'===_0x3c57cd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case S['OneDrive']:return{'text':t('Insert'===_0x3c57cd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5de1c6;}}class A extends _0x43e20b{['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 _0x47dd3b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39e445;for(const _0x931a4a in _0x47dd3b){const _0x316257=_0x931a4a,_0x285a99=_0x47dd3b[_0x316257];if('uploadcareLicenseKeyValid'==_0x285a99||'uploadcareLicenseKeyInvalid'==_0x285a99||'uploadcareLicenseKeyExpired'==_0x285a99||'uploadcareLicenseKeyDomainLimit'==_0x285a99||'uploadcareLicenseKeyNotAllowed'==_0x285a99||'uploadcareLicenseKeyEvaluationLimit'==_0x285a99||'uploadcareLicenseKeyUsageLimit'==_0x285a99){delete _0x47dd3b[_0x316257],_0x39e445=_0x285a99,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x39e445&&_0x47dd3b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x39e445&&_0x47dd3b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x39e445&&_0x47dd3b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x39e445&&_0x47dd3b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x39e445&&_0x47dd3b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x39e445&&_0x47dd3b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x287ef9}=this,_0x19065d=_0x287ef9['commands']['get']('uploadcare');if(!_0x19065d)return;const _0x26ed02=this['_normalizeConfigSourceList'](_0x287ef9['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3fbbfe,_0x1acbae)=>{const _0x2db2f6=this['_getIntegrationKey'](_0x1acbae['type']);return _0x3fbbfe[_0x2db2f6]||(_0x3fbbfe[_0x2db2f6]=[]),_0x3fbbfe[_0x2db2f6]['push'](_0x1acbae),_0x3fbbfe;},{});_0x287ef9['plugins']['has']('ImageInsertUI')&&_0x287ef9['commands']['get']('uploadcare')&&Object['entries'](_0x26ed02)['forEach'](([_0x32d7a8,_0x5f41c8])=>{_0x287ef9['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x32d7a8,'observable':()=>_0x19065d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5f41c8),'formViewCreator':()=>this['_createDropdownButtons'](_0x5f41c8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5f41c8),'override':'assetManager'!==_0x32d7a8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2dbc37){const {locale:_0x5de33b}=this['editor'];return _0x2dbc37['map'](_0x58ca97=>{const _0x317667=T(_0x5de33b,_0x58ca97,'Insert');switch(_0x58ca97){case S['Local']:return{'icon':_0x261f2a,'type':S['Local'],..._0x317667};case S['URL']:return{'icon':_0x1c614f,'type':S['URL'],..._0x317667};case S['Dropbox']:return{'icon':_0x3a06bc,'type':S['Dropbox'],..._0x317667};case S['Facebook']:return{'icon':_0x292c7b,'type':S['Facebook'],..._0x317667};case S['GDrive']:return{'icon':_0x4261ae,'type':S['GDrive'],..._0x317667};case S['GPhotos']:return{'icon':_0x26a327,'type':S['GPhotos'],..._0x317667};case S['OneDrive']:return{'icon':_0xbdfff6,'type':S['OneDrive'],..._0x317667};}});}['_getIntegrationKey'](_0x2690fa){switch(_0x2690fa){case S['Local']:return'upload';case S['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x51c49b,_0x196e4e){const _0x50ddbd=this['editor'],_0x585c43=new _0x51c49b(_0x50ddbd['locale']),_0x3d9aa5=_0x50ddbd['commands']['get']('uploadcare');return _0x585c43['bind']('isEnabled')['to'](_0x3d9aa5),_0x585c43['on']('execute',()=>{_0x3d9aa5['execute'](_0x196e4e);}),_0x585c43;}['_createToolbarButton'](_0x1a6e05){const {locale:_0x304c8c}=this['editor'],_0x1cd32a=this['editor']['plugins']['get']('ImageInsertUI'),_0x3c626b=_0x1a6e05[0x0],_0x46f968=this['_createButton'](_0x547574,_0x3c626b['type']);return _0x46f968['icon']=_0x3c626b['icon'],_0x46f968['bind']('label')['to'](_0x1cd32a,'isImageSelected',_0x4991d0=>T(_0x304c8c,_0x3c626b['type'],_0x4991d0?'Replace':'Insert')['text']),_0x46f968['tooltip']=!0x0,_0x46f968;}['_createDropdownButtons'](_0x8c7027){const {locale:_0x591234}=this['editor'],_0x3b68c4=this['editor']['plugins']['get']('ImageInsertUI');return _0x8c7027['map'](_0x20e3c0=>{const _0x2eba0d=this['_createButton'](_0x547574,_0x20e3c0['type']);return _0x2eba0d['withText']=!0x0,_0x2eba0d['icon']=_0x20e3c0['icon'],_0x2eba0d['bind']('label')['to'](_0x3b68c4,'isImageSelected',_0x41dd70=>T(_0x591234,_0x20e3c0['type'],_0x41dd70?'Replace':'Insert')['text']),_0x2eba0d;});}['_createMenuBarButtons'](_0x70db8e){return _0x70db8e['map'](_0x259903=>{const _0x159c0e=this['_createButton'](_0x3720a3,_0x259903['type']);return _0x159c0e['icon']=_0x259903['icon'],_0x159c0e['label']=_0x259903['shortText'],_0x159c0e;});}}class K extends _0x3d7314{['focusTracker'];['focusCycler'];constructor(_0x40f998){super(_0x40f998),this['focusTracker']=new _0x2bdf21(),this['focusCycler']=new _0x36389c({'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 O extends K{constructor(_0x3b0628,_0x1943f1){super(_0x3b0628),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-'+_0x1943f1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x52bb8f,_0x2f504b){const _0x3957ca=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1066d3=>_0x1066d3<=_0x2f504b)['map'](_0x1c29ef=>_0x52bb8f['replace'](/\/$/,'')+'/-/resize/'+_0x1c29ef+'x/\x20'+_0x1c29ef+'w');return{'imageFallbackUrl':_0x52bb8f,'imageSources':[{'srcset':_0x3957ca['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2f504b+'px)\x20100vw,\x20'+_0x2f504b+'px','type':'image/webp'}]};}function F(_0x3fc848,_0x48317d,_0x5efb28){const _0x57da1d=_0x3fc848['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x57da1d?parseInt(_0x57da1d[0x1],0xa):_0x48317d,'height':_0x57da1d?parseInt(_0x57da1d[0x2],0xa):_0x5efb28};}function $(_0x48f6af,_0x4e6a7f){const _0x4b7283=new(_0x2d4279())(),_0x289e1b=_0x48f6af['plugins']['get']('ImageUtils'),_0x3ebd89=_0x48f6af['editing']['mapper']['toViewElement'](_0x4e6a7f),_0x3dfe07=_0x289e1b['findViewImgElement'](_0x3ebd89),_0x7f2c1=_0x48f6af['editing']['view']['domConverter']['viewToDom'](_0x3dfe07),_0x1b045f=_0x4e6a7f['getAttribute']('width'),_0x5938b0=_0x4e6a7f['getAttribute']('height'),_0x529a72='image-processing';_0x48f6af['editing']['view']['change'](_0x13d49a=>{_0x13d49a['addClass'](_0x529a72,_0x3ebd89),_0x13d49a['setStyle']('aspect-ratio',_0x1b045f+'/'+_0x5938b0,_0x3dfe07);}),_0x4b7283['listenTo'](_0x7f2c1,'load',()=>{_0x4b7283['stopListening'](_0x7f2c1,'load'),_0x48f6af['editing']['view']['change'](_0xaab154=>{_0xaab154['removeClass'](_0x529a72,_0x3ebd89),_0xaab154['removeStyle']('aspect-ratio',_0x3dfe07);});});}function B(_0x2d7a79){if(Array['isArray'](_0x2d7a79)){const _0x236ff7=_0x2d7a79['map'](B);return _0x30dc82=>_0x236ff7['some'](_0x1be483=>_0x1be483(_0x30dc82));}if('origin'==_0x2d7a79){const _0x37e8be=_0x4132cc['window']['location']['origin'];return _0x58d1e4=>new URL(_0x58d1e4,_0x4132cc['document']['baseURI'])['origin']==_0x37e8be;}return'function'==typeof _0x2d7a79?_0x2d7a79:_0x2d7a79 instanceof RegExp?_0x51d80b=>!(!_0x51d80b['match'](_0x2d7a79)&&!_0x51d80b['replace'](/^https?:\/\//,'')['match'](_0x2d7a79)):()=>!0x1;}function V(_0x41e69f,_0x393df0){return _0x584b86(_0x41e69f['target'])['includes'](_0x393df0);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x53f7df(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2702ed,_0x1dfdf6,_0x14cc4f){super(),this['_editor']=_0x2702ed,this['_editing']=_0x1dfdf6,this['_dialog']=_0x2702ed['plugins']['get'](_0x5a8c70),this['_api']=_0x1dfdf6['ctxElement']['getAPI'](),this['_type']=_0x14cc4f,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:_0x407141,model:_0x1b8819}=this['_editor'],_0x19d049=_0x1b8819['document']['selection']['getSelectedElement'](),_0x2d0001=_0x19d049&&(_0x19d049['is']('element','imageBlock')||_0x19d049['is']('element','imageInline'));this['_formView']=new O(_0x407141,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x261f2a,'title':T(_0x407141,this['_type'],_0x2d0001?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x213fe5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x522fec=>!V(_0x522fec,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x23dfa3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4cc304=>{const _0x374db9=_0x23dfa3['length'];for(const _0x4ca2a6 of _0x23dfa3){const _0x28398a=_0x4ca2a6===_0x23dfa3[_0x374db9-0x1],{cdnUrl:_0x2fb809,fileInfo:_0x4d1168}=_0x4ca2a6;if(!_0x2fb809||!_0x4d1168)continue;const {width:_0x5abad6,height:_0x3814cc}=_0x4d1168['imageInfo'],_0x3dd36e=F(_0x2fb809,_0x5abad6,_0x3814cc),_0x10f820=D(_0x2fb809,_0x3dd36e['width']),_0x2ec16b={'id':_0x4d1168['uuid'],'type':'image','attributes':{'imageDimension':_0x3dd36e,..._0x10f820}};this['_insertAsset'](_0x2ec16b,_0x28398a,_0x4cc304);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x371fe9=>{'idle'===_0x371fe9['detail']['status']&&!_0x371fe9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===S['Local']?this['_api']['setCurrentActivity'](S['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x28cb36,_0x5bc6e0,_0x20a1ee){const _0x548f94=this['_editor']['model']['document']['selection'],_0x71ee69=_0x548f94['getSelectedElement'](),_0x5b9730=!(!_0x71ee69||!_0x71ee69['is']('element','imageInline'));_0x20a1ee['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x28cb36,_0x5b9730),_0x5bc6e0||_0x20a1ee['setSelection'](_0x548f94['getLastPosition']());}['_insertImage'](_0x1403db,_0x180757){const _0x463374=this['_editor'],{imageDimension:_0x441d14,imageFallbackUrl:_0xa4c5dd,imageSources:_0x1516c3}=_0x1403db['attributes'];_0x463374['execute']('insertImage',{'imageType':_0x180757?'imageInline':null,'source':{'uploadcareImageId':_0x1403db['id'],'src':_0xa4c5dd,'sources':_0x1516c3,..._0x441d14}});}}class M extends _0x2f742b{['_editing'];['_controller']=null;static get['requires'](){return[_0x5a8c70,z];}constructor(_0x4d948e){super(_0x4d948e),this['_editing']=_0x4d948e['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1085be){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0x1085be);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x4fc0df,..._0x42563e}){return _0x436e0a(_0x4fc0df,_0x42563e);}static['getInfo'](_0x5e6210,_0x113f67){return _0x54e229(_0x5e6210,_0x113f67);}}class W extends _0x43e20b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2421b9,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2fec51=this['editor'];if(!!!_0x2fec51['config']['get']('uploadcare'))return;_0x2fec51['plugins']['get'](_0x2421b9)['createUploadAdapter']=_0x1c3533=>new G(_0x1c3533,_0x2fec51),_0x2fec51['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x42a795,{imageElement:_0x248f73,data:_0x2f6c8a})=>{_0x2fec51['model']['change'](_0x5e3ad5=>{_0x5e3ad5['setAttribute']('uploadcareImageId',_0x2f6c8a['uploadcareImageId'],_0x248f73);});});}}class G{['loader'];['editor'];['controller'];constructor(_0x4feb,_0x20928c){this['loader']=_0x4feb,this['editor']=_0x20928c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x27250c=await this['loader']['file'];return q['upload']({'file':_0x27250c,'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':_0x1b431c=>{_0x1b431c&&_0x1b431c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1b431c['value']);}})['then'](async _0x38c985=>{const {imageFallbackUrl:_0x42f1ca,imageSources:_0x3693ef}=D(_0x38c985['cdnUrl'],_0x38c985['imageInfo']['width']);return{'uploadcareImageId':_0x38c985['uuid'],'default':_0x42f1ca,'sources':_0x3693ef};})['catch'](()=>{const _0x2b70dc=t('Cannot\x20upload\x20file:')+('\x20'+_0x27250c['name']+'.');return Promise['reject'](_0x2b70dc);});}['abort'](){this['controller']['abort']();}}class z extends _0x43e20b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x5a8c70];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4df0fd){super(_0x4df0fd),this['ucContextId']=_0x45265f();}['init'](){const _0x436b8a=this['editor'];_0x436b8a['commands']['add']('uploadcare',new M(_0x436b8a));}['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 _0xacdb3d=_0x4132cc['document']['querySelector']('input[uploadcare-file-input]');_0xacdb3d&&_0xacdb3d['remove']();}),async function(_0x237220){const _0x1d6b9a=_0x127d57([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]),_0x2c3ea4=0x535f8c3a,_0x1d1322=0x5358f3b2^_0x2c3ea4,_0x171b27=window[_0x127d57([0x44,0x61,0x74,0x65])][_0x127d57([0x6e,0x6f,0x77])](),_0x109a93=_0x237220[_0x127d57([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x246ed7=new window[(_0x127d57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bd47c=>{_0x109a93[_0x127d57([0x6f,0x6e,0x63,0x65])](_0x127d57([0x72,0x65,0x61,0x64,0x79]),_0x4bd47c);}),_0x254fde={[_0x127d57([0x6b,0x74,0x79])]:_0x127d57([0x45,0x43]),[_0x127d57([0x75,0x73,0x65])]:_0x127d57([0x73,0x69,0x67]),[_0x127d57([0x63,0x72,0x76])]:_0x127d57([0x50,0x2d,0x32,0x35,0x36]),[_0x127d57([0x78])]:_0x127d57([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]),[_0x127d57([0x79])]:_0x127d57([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]),[_0x127d57([0x61,0x6c,0x67])]:_0x127d57([0x45,0x53,0x32,0x35,0x36])},_0x940414=_0x109a93[_0x127d57([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x127d57([0x67,0x65,0x74])](_0x127d57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4edbd7(){let _0x1b0a56,_0x44055a=null,_0x389183=null;try{if(_0x940414==_0x127d57([0x47,0x50,0x4c]))return _0x127d57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b0a56=_0x43d55e(),!_0x1b0a56)return _0x127d57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b0a56[_0x127d57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x389183=_0x497de2(_0x1b0a56[_0x127d57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b0a56[_0x127d57([0x6a,0x74,0x69])])),await _0x2891fb()?_0x4af91e()?_0x27076a()?_0x127d57([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c79ce()?(_0x1b0a56[_0x127d57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x127d57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44055a=_0x3e400d(_0x127d57([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x6ac0f9()):_0x127d57([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x127d57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x127d57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x127d57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x27076a(){const _0x4f900e=[_0x127d57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x127d57([0x74,0x72,0x69,0x61,0x6c])][_0x127d57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b0a56[_0x127d57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x171b27/0x3e8:0xe10*_0x1d1322;return _0x1b0a56[_0x127d57([0x65,0x78,0x70])]<_0x4f900e;}function _0x4af91e(){const _0x5b823f=_0x1b0a56[_0x127d57([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b823f&&(!!_0x5b823f[_0x127d57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x127d57([0x2a]))||!!_0x5b823f[_0x127d57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x127d57([0x55,0x50,0x4c,0x43])));}function _0x2c79ce(){const _0xf3693c=_0x1b0a56[_0x127d57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf3693c||0x0==_0xf3693c[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38522e}=new URL(window[_0x127d57([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf3693c[_0x127d57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38522e))return!0x0;const _0x36994d=_0x38522e[_0x127d57([0x73,0x70,0x6c,0x69,0x74])](_0x127d57([0x2e]));return _0xf3693c[_0x127d57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a4960=>_0x1a4960[_0x127d57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x127d57([0x2a])))[_0x127d57([0x6d,0x61,0x70])](_0x506e5b=>_0x506e5b[_0x127d57([0x73,0x70,0x6c,0x69,0x74])](_0x127d57([0x2e])))[_0x127d57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43d55c=>_0x43d55c[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36994d[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x127d57([0x6d,0x61,0x70])](_0x40586a=>Array(_0x36994d[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x40586a[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x127d57([0x66,0x69,0x6c,0x6c])](_0x40586a[0x0]===_0x127d57([0x2a])?_0x127d57([0x2a]):'')[_0x127d57([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x40586a))[_0x127d57([0x73,0x6f,0x6d,0x65])](_0x51cf0b=>_0x36994d[_0x127d57([0x65,0x76,0x65,0x72,0x79])]((_0x34c662,_0x16e165)=>_0x51cf0b[_0x16e165]===_0x34c662||_0x51cf0b[_0x16e165]===_0x127d57([0x2a])));}function _0x6ac0f9(){return _0x44055a&&_0x389183?new window[(_0x127d57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53ac22,_0x308347)=>{_0x44055a[_0x127d57([0x74,0x68,0x65,0x6e])](_0x53ac22,_0x308347),_0x389183[_0x127d57([0x74,0x68,0x65,0x6e])](_0x3c3309=>{_0x3c3309!=_0x127d57([0x56,0x61,0x6c,0x69,0x64])&&_0x53ac22(_0x3c3309);},_0x308347);}):_0x44055a||_0x389183||_0x127d57([0x56,0x61,0x6c,0x69,0x64]);}}function _0x497de2(_0x1f52fe,_0x99f08){return new window[(_0x127d57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c7c25=>{if(_0x518f25())return _0x2c7c25(_0x127d57([0x56,0x61,0x6c,0x69,0x64]));_0x1bf1cf(),_0x109a93[_0x127d57([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x127d57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31e3f0=!0x1;const _0xaa9807=_0x45265f();function _0x23b64e(_0x522859){return!!_0x522859&&(typeof _0x522859===_0x127d57([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x522859===_0x127d57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x522859[_0x127d57([0x74,0x68,0x65,0x6e])]===_0x127d57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x522859[_0x127d57([0x63,0x61,0x74,0x63,0x68])]===_0x127d57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x37c506(_0x418d60){_0x26ead0(_0x418d60)[_0x127d57([0x74,0x68,0x65,0x6e])](_0x31ad6d=>{if(!_0x31ad6d||_0x31ad6d[_0x127d57([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x127d57([0x6f,0x6b]))return _0x127d57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4326ce(_0x465325(_0xaa9807+_0x99f08))!=_0x31ad6d[_0x127d57([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x127d57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x127d57([0x56,0x61,0x6c,0x69,0x64]);})[_0x127d57([0x74,0x68,0x65,0x6e])](_0x330c6e=>(_0x150dec(),_0x330c6e),()=>{const _0x498e81=_0x33e8aa();return null==_0x498e81?(_0x150dec(),_0x127d57([0x56,0x61,0x6c,0x69,0x64])):_0x127d57(_0x171b27-_0x498e81>(0x7753083a^_0x2c3ea4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x127d57([0x74,0x68,0x65,0x6e])](_0x2c7c25)[_0x127d57([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c7c25(_0x127d57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x111e1b=0x536962ba^_0x2c3ea4;function _0x150dec(){const _0x310a15=_0x127d57([0x6c,0x6c,0x63,0x74,0x2d])+_0x4326ce(_0x465325(_0x1f52fe)),_0x52259c=_0x3949c4(_0x4326ce(window[_0x127d57([0x4d,0x61,0x74,0x68])][_0x127d57([0x63,0x65,0x69,0x6c])](_0x171b27/_0x111e1b)));window[_0x127d57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x127d57([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x310a15,_0x52259c);}function _0x33e8aa(){const _0x2bc4b2=_0x127d57([0x6c,0x6c,0x63,0x74,0x2d])+_0x4326ce(_0x465325(_0x1f52fe)),_0x408416=window[_0x127d57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x127d57([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2bc4b2);return _0x408416?window[_0x127d57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3949c4(_0x408416),0x10)*_0x111e1b:null;}function _0x26ead0(_0x39a286){return new window[(_0x127d57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5dc8cb,_0x4f0cbb)=>{_0x39a286[_0x127d57([0x74,0x68,0x65,0x6e])](_0x5dc8cb,_0x4f0cbb),window[_0x127d57([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f0cbb,0x535e58fa^_0x2c3ea4);});}}_0x109a93[_0x127d57([0x6f,0x6e])](_0x127d57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5baeb3,_0x185686)=>{if(_0x185686[0x0]!=_0x1f52fe)return _0x2c7c25(_0x127d57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x185686[0x1]={..._0x185686[0x1],[_0x127d57([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xaa9807};},{[_0x127d57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x127d57([0x68,0x69,0x67,0x68])}),_0x109a93[_0x127d57([0x6f,0x6e])](_0x127d57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39d5fc=>{_0x23b64e(_0x39d5fc[_0x127d57([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31e3f0=!0x0,_0x37c506(_0x39d5fc[_0x127d57([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x127d57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x127d57([0x6c,0x6f,0x77])}),_0x246ed7[_0x127d57([0x74,0x68,0x65,0x6e])](()=>{_0x31e3f0||_0x2c7c25(_0x127d57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x518f25(){return _0x109a93[_0x127d57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x127d57([0x76,0x69,0x65,0x77])][_0x127d57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x127d57([0x61,0x75,0x74,0x6f]);}function _0x1bf1cf(){_0x109a93[_0x127d57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x127d57([0x76,0x69,0x65,0x77])][_0x127d57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x127d57([0x61,0x75,0x74,0x6f]);}}function _0x3e400d(_0x34ccd2){const _0x26bb02=[new window[(_0x127d57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x76f07c=>setTimeout(_0x76f07c,0x5356b2f6^_0x2c3ea4)),_0x246ed7[_0x127d57([0x74,0x68,0x65,0x6e])](()=>new window[(_0x127d57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54df2d=>{let _0x102149=0x0;_0x109a93[_0x127d57([0x6d,0x6f,0x64,0x65,0x6c])][_0x127d57([0x6f,0x6e])](_0x127d57([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26e4fd,_0x437f0d)=>{_0x437f0d[0x0][_0x127d57([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x102149++,_0x102149==(0x535f89d2^_0x2c3ea4)&&(_0x54df2d(),_0x26e4fd[_0x127d57([0x6f,0x66,0x66])]());});}))];return window[_0x127d57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x127d57([0x72,0x61,0x63,0x65])](_0x26bb02)[_0x127d57([0x74,0x68,0x65,0x6e])](()=>_0x34ccd2);}async function _0x4b831f(){await _0x246ed7,_0x109a93[_0x127d57([0x6d,0x6f,0x64,0x65,0x6c])][_0x127d57([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x307ae3,_0x109a93[_0x127d57([0x6d,0x6f,0x64,0x65,0x6c])][_0x127d57([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x307ae3,_0x109a93[_0x127d57([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x127d57([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5018cf(_0x1375f1){const _0x24c118=_0x142d56();_0x109a93[_0x24c118]=_0x127d57([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1375f1,_0x1375f1!=_0x127d57([0x56,0x61,0x6c,0x69,0x64])&&_0x4b831f();}function _0x142d56(){const _0x4e6c5b=window[_0x127d57([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x127d57([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x127d57([0x6e,0x6f,0x77])]())[_0x127d57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x127d57([0x2e]),'');let _0x314f88=_0x127d57([0x68]);for(let _0x363c92=0x0;_0x363c92<_0x4e6c5b[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x363c92+=0x2){let _0x569dd7=window[_0x127d57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e6c5b[_0x127d57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x363c92,_0x363c92+0x2));_0x569dd7>=_0x1d6b9a[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x569dd7-=_0x1d6b9a[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x314f88+=_0x1d6b9a[_0x569dd7];}return _0x314f88;}function _0x43d55e(){const _0x56ff02=_0x940414[_0x127d57([0x73,0x70,0x6c,0x69,0x74])](_0x127d57([0x2e]));if(0x3!=_0x56ff02[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x19beeb(_0x56ff02[0x1]);function _0x19beeb(_0x15290e){const _0x3ca921=_0x3a7475(_0x15290e);return _0x3ca921&&_0x1f3c1a()?_0x3ca921:null;function _0x1f3c1a(){const _0x2250d2=_0x3ca921[_0x127d57([0x6a,0x74,0x69])],_0x3180c7=window[_0x127d57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2250d2[_0x127d57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2250d2[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e3427={..._0x3ca921,[_0x127d57([0x6a,0x74,0x69])]:_0x2250d2[_0x127d57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2250d2[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e3427[_0x127d57([0x76,0x63])],_0x465325(_0x3e3427)==_0x3180c7;}}}async function _0x2891fb(){let _0x339d38=!0x0;try{const _0x5c75c3=_0x940414[_0x127d57([0x73,0x70,0x6c,0x69,0x74])](_0x127d57([0x2e])),[_0x5a64b6,_0x24ed69,_0x217150]=_0x5c75c3;return _0x5482f9(_0x5a64b6),await _0xefe2e2(_0x5a64b6,_0x24ed69,_0x217150),_0x339d38;}catch{return!0x1;}function _0x5482f9(_0x187333){const _0x1196cb=_0x3a7475(_0x187333);_0x1196cb&&_0x1196cb[_0x127d57([0x61,0x6c,0x67])]==_0x127d57([0x45,0x53,0x32,0x35,0x36])||(_0x339d38=!0x1);}async function _0xefe2e2(_0x51a16e,_0x228dd9,_0x161a56){const _0xb55cc4=window[_0x127d57([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x127d57([0x66,0x72,0x6f,0x6d])](_0x38b7ff(_0x161a56),_0x16f7f8=>_0x16f7f8[_0x127d57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35858b=new window[(_0x127d57([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x127d57([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51a16e+_0x127d57([0x2e])+_0x228dd9),_0x1d49d3=window[_0x127d57([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x127d57([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d49d3)return;const _0xe7888b=await _0x1d49d3[_0x127d57([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x127d57([0x6a,0x77,0x6b]),_0x254fde,{[_0x127d57([0x6e,0x61,0x6d,0x65])]:_0x127d57([0x45,0x43,0x44,0x53,0x41]),[_0x127d57([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x127d57([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x127d57([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d49d3[_0x127d57([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x127d57([0x6e,0x61,0x6d,0x65])]:_0x127d57([0x45,0x43,0x44,0x53,0x41]),[_0x127d57([0x68,0x61,0x73,0x68])]:{[_0x127d57([0x6e,0x61,0x6d,0x65])]:_0x127d57([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe7888b,_0xb55cc4,_0x35858b)||(_0x339d38=!0x1);}}function _0x3a7475(_0xbc075f){return _0xbc075f[_0x127d57([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x127d57([0x65,0x79]))?JSON[_0x127d57([0x70,0x61,0x72,0x73,0x65])](_0x38b7ff(_0xbc075f)):null;}function _0x38b7ff(_0x590a6c){return window[_0x127d57([0x61,0x74,0x6f,0x62])](_0x590a6c[_0x127d57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x127d57([0x2b]))[_0x127d57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x127d57([0x2f])));}function _0x465325(_0x1ff298){let _0x91ccd1=0x1505;function _0x12d86e(_0x403076){for(let _0x38f4ba=0x0;_0x38f4ba<_0x403076[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38f4ba++){const _0x2eaef8=_0x403076[_0x127d57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x38f4ba);_0x91ccd1=(_0x91ccd1<<0x5)+_0x91ccd1+_0x2eaef8,_0x91ccd1&=_0x91ccd1;}}function _0x4d6ee7(_0xf67b4c){Array[_0x127d57([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf67b4c)?_0xf67b4c[_0x127d57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4d6ee7):_0xf67b4c&&typeof _0xf67b4c==_0x127d57([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x127d57([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf67b4c)[_0x127d57([0x73,0x6f,0x72,0x74])]()[_0x127d57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f3709,_0x139257])=>{_0x12d86e(_0x1f3709),_0x4d6ee7(_0x139257);}):_0x12d86e(window[_0x127d57([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf67b4c));}return _0x4d6ee7(_0x1ff298),_0x91ccd1>>>0x0;}function _0x4326ce(_0x27a38c){return _0x27a38c[_0x127d57([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x127d57([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x127d57([0x30]));}function _0x3949c4(_0x3595ae){return _0x3595ae[_0x127d57([0x73,0x70,0x6c,0x69,0x74])]('')[_0x127d57([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x127d57([0x6a,0x6f,0x69,0x6e])]('');}function _0x307ae3(){}function _0x127d57(_0x35fa4e){return _0x35fa4e['map'](_0x31fe53=>String['fromCharCode'](_0x31fe53))['join']('');}_0x5018cf(await _0x4edbd7());}(this);}['_initSchema'](){const _0x410c0b=this['editor']['model']['schema'];_0x410c0b['isRegistered']('imageBlock')&&_0x410c0b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x410c0b['isRegistered']('imageInline')&&_0x410c0b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3ab3ed=this['editor'];_0x3ab3ed['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3ab3ed['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5ecbdb=>_0x5ecbdb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x30afab=_0x3ab3ed['commands']['get']('replaceImageSource');_0x30afab&&this['listenTo'](_0x30afab,'cleanupImage',(_0x5084ff,[_0x33074d,_0x488004])=>{_0x33074d['removeAttribute']('uploadcareImageId',_0x488004);});}['_initConfig'](){const _0x54cac7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x243e21=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2598b2(_0x4132cc['document'],'uc-config',{..._0x54cac7,'pubkey':_0x243e21,'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']=_0x8c131b=>{if('closeMax'==_0x8c131b)return'#uc-icon-arrow-down';},_0x4132cc['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2598b2(_0x4132cc['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4132cc['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1ac574=this['editor']['commands']['get']('insertImage');_0x1ac574&&this['listenTo'](_0x1ac574,'execute',()=>{const _0xf2d5e5=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf2d5e5&&_0xf2d5e5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0xf2d5e5);});});const _0x21be1a=this['editor']['commands']['get']('uploadcareImageReplace');_0x21be1a&&this['listenTo'](_0x21be1a,'execute',()=>{const _0x357f13=this['editor']['model']['document']['selection']['getSelectedElement']();_0x357f13&&_0x357f13['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x357f13);});});}}class H extends _0x43e20b{static get['requires'](){return[z,A];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44d618){super(_0x44d618),_0x44d618['config']['define']('uploadcare.uploader.sourceList',[S['Local'],S['URL']]),_0x3b54fd['defineComponents'](_0x3b54fd),this['_defineLocale']();}['_defineLocale'](){const _0x349af6=this['editor']['config']['get']('uploadcare.locale'),_0xe7a2c8=this['editor']['locale']['contentLanguage'];_0x349af6&&_0x3b54fd['defineLocale'](_0xe7a2c8,_0x349af6);}}class J extends _0x3d7314{constructor(_0x517114){super(_0x517114);const t=_0x517114['t'],_0x371a99=this['bindTemplate'],_0x5a07ef=new _0x8bc8c2();_0x5a07ef['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':[_0x5a07ef,{'text':_0x371a99['to']('imageUploadProgress',_0x5d8b95=>t('Loading\x20image...')+'\x20('+(_0x5d8b95||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 Z extends _0x3d7314{constructor(_0x4ee6e4){super(_0x4ee6e4);const t=_0x4ee6e4['t'];this['set']('errorType',null);const _0x5f55d8=new _0x547574(_0x4ee6e4);_0x5f55d8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5f55d8['withText']=!0x0,_0x5f55d8['class']='ck-button-action',_0x5f55d8['on']('execute',()=>{this['fire']('retry');}),_0x5f55d8['bind']('isVisible')['to'](this,'errorType',_0x4abac2=>'NotFound'!==_0x4abac2);const _0x2ac208=new _0x58cd42();_0x2ac208['content']=_0x478afb,_0x2ac208['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x32d0d6=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':[_0x2ac208,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x32d0d6['to']('errorType',_0x64e0c3=>t('NotFound'!==_0x64e0c3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5f55d8]},{'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 Q extends _0x3d7314{constructor(_0x398fa0,_0x49d0a4){super(_0x398fa0);const _0x28a7a3=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x49d0a4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x28a7a3['to']('imageSrc')}});}}class X extends K{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2df046,_0x394dd3,_0x34bf6d){super(_0x2df046),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0x2df046),this['_errorView']=new Z(_0x2df046),this['_editingView']=new Q(_0x2df046,_0x34bf6d),this['_focusableView']=new _0x3d7314(_0x2df046),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x394dd3),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'],_0x3b8cf0=>{this['_addUploadcareImageEditorListeners'](_0x3b8cf0);});}),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'](_0x5bb6bc,_0x2a9b77){const _0x4a6d81='uc-cloud-image-editor',_0x21aa50=_0x5bb6bc['querySelector'](_0x4a6d81);if(_0x21aa50)return _0x2a9b77(_0x21aa50);const _0x2bc14d=new MutationObserver(_0x3f38d8=>{const _0x9b1606=_0x3f38d8['filter'](_0x295031=>_0x295031['target']===_0x5bb6bc&&_0x295031['addedNodes']['length']>0x0&&_0x295031['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4a6d81);_0x9b1606['length']&&(_0x2bc14d['disconnect'](),_0x2a9b77(_0x9b1606[0x0]['addedNodes'][0x0]));});_0x2bc14d['observe'](_0x5bb6bc,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x105e9e){_0x105e9e['addEventListener']('apply',_0xc2adc8=>{this['fire']('apply',{'imageSrc':_0xc2adc8['detail']['cdnUrl']});}),_0x105e9e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x53f7df(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2ed0d6,_0x246be1,_0x4b154e){super(),this['_editor']=_0x2ed0d6,this['_dialog']=_0x246be1,this['_imageElement']=_0x4b154e,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 _0x4036c2=this['_imageElement'],_0x1f1dc3=_0x4036c2['getAttribute']('uploadcareImageId'),_0x4fe454=_0x4036c2['getAttribute']('src');if(_0x1f1dc3)await this['_loadImageInfo'](_0x1f1dc3,_0x4fe454);else{if(this['_imageCache']['has'](_0x4fe454)){const _0x31b77c=this['_imageCache']['get'](_0x4fe454);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31b77c['url'],this['imageDimension']=_0x31b77c['dimension'],this['imageId']=_0x31b77c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2823af}=this['_editor'],t=_0x2823af['t'],_0x410db6=new X(_0x2823af,this['imageStatus'],this['_attributes']);_0x410db6['bind']('status')['to'](this,'imageStatus'),_0x410db6['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x410db6['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x410db6['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x410db6,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1e48c2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x410db6,'position':_0x213fe5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x410db6['focus']();},'onHide':()=>{_0x410db6['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x11e854=>!V(_0x11e854,_0x410db6['element'])}});}['_loadImageInfo'](_0x40fea5,_0x3af6d9){return q['getInfo'](_0x40fea5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x19bf87=>{const {width:_0x2e01dd,height:_0x1bf649}=_0x19bf87['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3af6d9,this['imageDimension']={'width':_0x2e01dd,'height':_0x1bf649},this['imageId']=_0x40fea5;})['catch'](_0x5edbe8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5edbe8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x26f116,_0x582a2e){return this['_getImageAsFile'](_0x26f116)['then'](_0x1a9ad4=>q['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':_0x582a2e['signal'],'file':_0x1a9ad4,'onProgress':_0x560e5a=>{_0x560e5a&&_0x560e5a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x560e5a['value']));}}))['then'](_0x50a536=>{const {width:_0x1fc4b4,height:_0x54deba}=_0x50a536['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50a536['cdnUrl'],this['imageDimension']={'width':_0x1fc4b4,'height':_0x54deba},this['imageId']=_0x50a536['uuid'],this['imageUploadProgress']=null;const _0x4217c2=_0x26f116['getAttribute']('src');this['_imageCache']['set'](_0x4217c2,{'id':_0x50a536['uuid'],'url':_0x50a536['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x60bf59=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x60bf59['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x435bea,_0xdcb9ac){_0x435bea['on']('apply',(_0x3f0880,_0x26aaba)=>{this['_replaceImage'](_0xdcb9ac,_0x26aaba['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x435bea['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x435bea['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x50c04c,_0x38b387,_0x449027){const _0x4dde9b=this['_editor'],{width:_0x4a089d,height:_0x56cc9a}=F(_0x38b387,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x409e3b,imageSources:_0x718691}=D(_0x38b387,_0x4a089d);_0x4dde9b['model']['change'](_0x597565=>{if('$graveyard'===_0x50c04c['root']['rootName']){_0x4dde9b['execute']('insertImage',{'imageType':_0x50c04c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x50c04c['getAttributes']()),'uploadcareImageId':_0x449027,'src':_0x409e3b,'sources':_0x718691,'width':_0x4a089d,'height':_0x56cc9a}});const _0x291b21=_0x50c04c['getChildren']();_0x50c04c=_0x4dde9b['model']['document']['selection']['getSelectedElement']();for(const _0x65819f of _0x291b21)_0x597565['append'](_0x597565['cloneElement'](_0x65819f),_0x50c04c);}else _0x597565['setSelection'](_0x50c04c,'on'),_0x4dde9b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x50c04c['getAttributes']()),'uploadcareImageId':_0x449027,'src':_0x409e3b,'sources':_0x718691,'width':_0x4a089d,'height':_0x56cc9a},_0x50c04c);_0x597565['setSelection'](_0x50c04c,'on');});}async['_getImageAsFile'](_0xfe343f){const _0x3d6027=_0x4132cc['window'],_0x4de2ea=_0x4132cc['document']['location']['href'],_0x3a6793=new _0x3d6027['URL'](_0xfe343f['getAttribute']('src'),_0x4de2ea);if('data:'===_0x3a6793['protocol']){const _0x4cd966=_0x3a6793['href']['split'](','),_0x566ebf=_0x4cd966[0x0]['match'](/:(.*?);/)[0x1],_0x3d6308=_0x566ebf['split']('/')[0x1],_0x3bc134=_0x3d6027['atob'](_0x4cd966[_0x4cd966['length']-0x1]);let _0x3e71ef=_0x3bc134['length'];const _0x1213d9=new _0x3d6027['Uint8Array'](_0x3e71ef);for(;_0x3e71ef--;)_0x1213d9[_0x3e71ef]=_0x3bc134['charCodeAt'](_0x3e71ef);return new _0x3d6027['File']([_0x1213d9],'image.'+_0x3d6308,{'type':_0x566ebf});}const _0x9f888f=_0x3a6793['href']['split']('/'),_0x6606f4=_0x9f888f[_0x9f888f['length']-0x1],_0x27872c=_0x6606f4['split']('.')[0x1];return _0x3d6027['fetch'](_0x3a6793['href'])['then'](_0x1cd1d4=>_0x1cd1d4['clone']()['blob']())['then'](_0x4283cd=>new _0x3d6027['File']([_0x4283cd],_0x6606f4,{'type':'image/'+_0x27872c}));}}class tt extends _0x2f742b{['imageEditController'];static get['requires'](){return[_0x5a8c70];}['_isEditable'];constructor(_0x5ab750){super(_0x5ab750),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x49c09e){const _0x50fb8c=B(_0x49c09e);return _0x36e744=>!(!_0x36e744||!_0x36e744['is']('element','imageBlock')&&!_0x36e744['is']('element','imageInline'))&&(!!_0x36e744['hasAttribute']('uploadcareImageId')||!!_0x36e744['hasAttribute']('src')&&_0x50fb8c(_0x36e744['getAttribute']('src')));}(_0x5ab750['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x584ea8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x584ea8);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x27efd1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x27efd1&&(_0x27efd1['is']('element','imageBlock')||_0x27efd1['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x5a8c70),_0x27efd1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x2f742b{['refresh'](){const _0x219c87=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x219c87&&(_0x219c87['is']('element','imageBlock')||_0x219c87['is']('element','imageInline')));}['execute'](_0x46709f){const _0x3870c0=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x36942d=>{_0x36942d['setAttributes'](_0x46709f,_0x3870c0),_0x36942d['removeAttribute']('srcset',_0x3870c0),_0x36942d['removeAttribute']('sizes',_0x3870c0);});}}class it extends _0x43e20b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0xd4ff4d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x373c0c}=this;_0x373c0c['commands']['add']('uploadcareImageEdit',new tt(_0x373c0c)),_0x373c0c['commands']['add']('uploadcareImageReplace',new et(_0x373c0c));}}class st extends _0x43e20b{['_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 _0x2b235d=this['editor'];_0x2b235d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x114897=>{const _0x1ef091=_0x2b235d['commands']['get']('uploadcareImageEdit'),_0x265969=new _0x547574(_0x114897),t=_0x114897['t'];return _0x265969['set']({'icon':_0x1e48c2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x265969['bind']('isEnabled')['to'](_0x1ef091),_0x265969['bind']('isOn')['to'](_0x1ef091,'isActive'),this['listenTo'](_0x265969,'execute',()=>{_0x2b235d['execute']('uploadcareImageEdit'),_0x2b235d['editing']['view']['focus']();}),_0x265969;}),this['_initConfig']();}['_initConfig'](){const _0x5bf3c3=_0x2598b2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5bf3c3),this['listenTo'](this['editor'],'destroy',()=>{_0x5bf3c3['remove']();});}}class nt extends _0x43e20b{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[it,st];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{H as Uploadcare,M as UploadcareCommand,z as UploadcareEditing,nt as UploadcareImageEdit,tt as UploadcareImageEditCommand,it as UploadcareImageEditEditing,st as UploadcareImageEditUI,A as UploadcareUI,W as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x241860,Command as _0x5980df}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x56b118,IconGooglePhotos as _0x28a282,IconGoogleDrive as _0x346120,IconFacebook as _0x40bfe7,IconDropbox as _0x2fe8b2,IconUploadcareLink as _0x50a565,IconUploadcareImageUpload as _0x865cf3,IconError as _0x41012d,IconUploadcareImageEdit as _0x182a19}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x261f0d,MenuBarMenuListItemButtonView as _0x297525,View as _0x3f8953,FocusCycler as _0x28ac56,Dialog as _0x1814e4,DialogViewPosition as _0x1bf303,SpinnerView as _0x14287f,IconView as _0x22bbeb,Notification as _0x5107b8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x16d64c,DomEmitterMixin as _0x3fe8f8,global as _0xca5948,getAncestors as _0x417cbe,ObservableMixin as _0xcab798,uid as _0x594f4b,createElement as _0x224752}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x336a6a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x277534,info as _0x3e696}from'@uploadcare/upload-client';import*as _0x2e6e5a from'@uploadcare/file-uploader';var S=function(_0xbb1ca2){return _0xbb1ca2['Local']='local',_0xbb1ca2['URL']='url',_0xbb1ca2['Dropbox']='dropbox',_0xbb1ca2['GDrive']='gdrive',_0xbb1ca2['Facebook']='facebook',_0xbb1ca2['GPhotos']='gphotos',_0xbb1ca2['OneDrive']='onedrive',_0xbb1ca2;}({});function T(_0x37fd25,_0x20f1aa,_0x38003a){const t=_0x37fd25['t'],_0x19ffc4=_0x37fd25['t'];switch(_0x20f1aa){case S['Local']:return{'text':_0x19ffc4('Insert'===_0x38003a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x19ffc4('From\x20computer')};case S['URL']:return{'text':'Insert'===_0x38003a?_0x19ffc4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x19ffc4('Via\x20URL')};case S['Dropbox']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case S['Facebook']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case S['GDrive']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case S['GPhotos']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case S['OneDrive']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x20f1aa;}}class A extends _0x241860{['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 _0x5f3f5c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x439b8c;for(const _0x7e6aa3 in _0x5f3f5c){const _0x3374d3=_0x7e6aa3,_0x33480b=_0x5f3f5c[_0x3374d3];if('uploadcareLicenseKeyValid'==_0x33480b||'uploadcareLicenseKeyInvalid'==_0x33480b||'uploadcareLicenseKeyExpired'==_0x33480b||'uploadcareLicenseKeyDomainLimit'==_0x33480b||'uploadcareLicenseKeyNotAllowed'==_0x33480b||'uploadcareLicenseKeyEvaluationLimit'==_0x33480b||'uploadcareLicenseKeyUsageLimit'==_0x33480b){delete _0x5f3f5c[_0x3374d3],_0x439b8c=_0x33480b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2c6dc7}=this,_0x37ab8a=_0x2c6dc7['commands']['get']('uploadcare');if(!_0x37ab8a)return;const _0x321f14=this['_normalizeConfigSourceList'](_0x2c6dc7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2fbde4,_0x1ec259)=>{const _0x378233=this['_getIntegrationKey'](_0x1ec259['type']);return _0x2fbde4[_0x378233]||(_0x2fbde4[_0x378233]=[]),_0x2fbde4[_0x378233]['push'](_0x1ec259),_0x2fbde4;},{});_0x2c6dc7['plugins']['has']('ImageInsertUI')&&_0x2c6dc7['commands']['get']('uploadcare')&&Object['entries'](_0x321f14)['forEach'](([_0x6ecfe1,_0x5a78ca])=>{_0x2c6dc7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x6ecfe1,'observable':()=>_0x37ab8a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5a78ca),'formViewCreator':()=>this['_createDropdownButtons'](_0x5a78ca),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5a78ca),'override':'assetManager'!==_0x6ecfe1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x11e8a6){const {locale:_0x50be12}=this['editor'];return _0x11e8a6['map'](_0x5818fd=>{const _0x10f7a7=T(_0x50be12,_0x5818fd,'Insert');switch(_0x5818fd){case S['Local']:return{'icon':_0x865cf3,'type':S['Local'],..._0x10f7a7};case S['URL']:return{'icon':_0x50a565,'type':S['URL'],..._0x10f7a7};case S['Dropbox']:return{'icon':_0x2fe8b2,'type':S['Dropbox'],..._0x10f7a7};case S['Facebook']:return{'icon':_0x40bfe7,'type':S['Facebook'],..._0x10f7a7};case S['GDrive']:return{'icon':_0x346120,'type':S['GDrive'],..._0x10f7a7};case S['GPhotos']:return{'icon':_0x28a282,'type':S['GPhotos'],..._0x10f7a7};case S['OneDrive']:return{'icon':_0x56b118,'type':S['OneDrive'],..._0x10f7a7};}});}['_getIntegrationKey'](_0x16c60f){switch(_0x16c60f){case S['Local']:return'upload';case S['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x45032a,_0x223d09){const _0x37ab8c=this['editor'],_0xcae66d=new _0x45032a(_0x37ab8c['locale']),_0x131e79=_0x37ab8c['commands']['get']('uploadcare');return _0xcae66d['bind']('isEnabled')['to'](_0x131e79),_0xcae66d['on']('execute',()=>{_0x131e79['execute'](_0x223d09);}),_0xcae66d;}['_createToolbarButton'](_0x249c0d){const {locale:_0x12bb1b}=this['editor'],_0x35b8cb=this['editor']['plugins']['get']('ImageInsertUI'),_0x26c45e=_0x249c0d[0x0],_0x1d7b12=this['_createButton'](_0x261f0d,_0x26c45e['type']);return _0x1d7b12['icon']=_0x26c45e['icon'],_0x1d7b12['bind']('label')['to'](_0x35b8cb,'isImageSelected',_0x2928e4=>T(_0x12bb1b,_0x26c45e['type'],_0x2928e4?'Replace':'Insert')['text']),_0x1d7b12['tooltip']=!0x0,_0x1d7b12;}['_createDropdownButtons'](_0x383cd9){const {locale:_0x37faaf}=this['editor'],_0x31da71=this['editor']['plugins']['get']('ImageInsertUI');return _0x383cd9['map'](_0x4567d3=>{const _0x1ea454=this['_createButton'](_0x261f0d,_0x4567d3['type']);return _0x1ea454['withText']=!0x0,_0x1ea454['icon']=_0x4567d3['icon'],_0x1ea454['bind']('label')['to'](_0x31da71,'isImageSelected',_0x2ec670=>T(_0x37faaf,_0x4567d3['type'],_0x2ec670?'Replace':'Insert')['text']),_0x1ea454;});}['_createMenuBarButtons'](_0x22466b){return _0x22466b['map'](_0x9df313=>{const _0x219c71=this['_createButton'](_0x297525,_0x9df313['type']);return _0x219c71['icon']=_0x9df313['icon'],_0x219c71['label']=_0x9df313['shortText'],_0x219c71;});}}class K extends _0x3f8953{['focusTracker'];['focusCycler'];constructor(_0x20cfc3){super(_0x20cfc3),this['focusTracker']=new _0x16d64c(),this['focusCycler']=new _0x28ac56({'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 O extends K{constructor(_0x290538,_0x4025ed){super(_0x290538),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-'+_0x4025ed}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x2a959a,_0x3855d6){const _0x53dff1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x273536=>_0x273536<=_0x3855d6)['map'](_0x1ed43d=>_0x2a959a['replace'](/\/$/,'')+'/-/resize/'+_0x1ed43d+'x/\x20'+_0x1ed43d+'w');return{'imageFallbackUrl':_0x2a959a,'imageSources':[{'srcset':_0x53dff1['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3855d6+'px)\x20100vw,\x20'+_0x3855d6+'px','type':'image/webp'}]};}function F(_0x421547,_0x464e85,_0x556cbc){const _0x51c5ac=_0x421547['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x51c5ac?parseInt(_0x51c5ac[0x1],0xa):_0x464e85,'height':_0x51c5ac?parseInt(_0x51c5ac[0x2],0xa):_0x556cbc};}function $(_0x12b653,_0x3cd668){const _0x1d09fb=new(_0x3fe8f8())(),_0x5871a1=_0x12b653['plugins']['get']('ImageUtils'),_0x31826f=_0x12b653['editing']['mapper']['toViewElement'](_0x3cd668),_0x30a7f2=_0x5871a1['findViewImgElement'](_0x31826f),_0x5df969=_0x12b653['editing']['view']['domConverter']['viewToDom'](_0x30a7f2),_0x3f88d5=_0x3cd668['getAttribute']('width'),_0xa7968=_0x3cd668['getAttribute']('height'),_0x5020d8='image-processing';_0x12b653['editing']['view']['change'](_0x474837=>{_0x474837['addClass'](_0x5020d8,_0x31826f),_0x474837['setStyle']('aspect-ratio',_0x3f88d5+'/'+_0xa7968,_0x30a7f2);}),_0x1d09fb['listenTo'](_0x5df969,'load',()=>{_0x1d09fb['stopListening'](_0x5df969,'load'),_0x12b653['editing']['view']['change'](_0x363212=>{_0x363212['removeClass'](_0x5020d8,_0x31826f),_0x363212['removeStyle']('aspect-ratio',_0x30a7f2);});});}function B(_0x39dc6f){if(Array['isArray'](_0x39dc6f)){const _0x173dbe=_0x39dc6f['map'](B);return _0xa0ed26=>_0x173dbe['some'](_0x32603a=>_0x32603a(_0xa0ed26));}if('origin'==_0x39dc6f){const _0x38f176=_0xca5948['window']['location']['origin'];return _0x29c168=>new URL(_0x29c168,_0xca5948['document']['baseURI'])['origin']==_0x38f176;}return'function'==typeof _0x39dc6f?_0x39dc6f:_0x39dc6f instanceof RegExp?_0x3f2692=>!(!_0x3f2692['match'](_0x39dc6f)&&!_0x3f2692['replace'](/^https?:\/\//,'')['match'](_0x39dc6f)):()=>!0x1;}function V(_0x199547,_0x1ca8d3){return _0x417cbe(_0x199547['target'])['includes'](_0x1ca8d3);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xcab798(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x407fe7,_0x1dbba0,_0x13a013){super(),this['_editor']=_0x407fe7,this['_editing']=_0x1dbba0,this['_dialog']=_0x407fe7['plugins']['get'](_0x1814e4),this['_api']=_0x1dbba0['ctxElement']['getAPI'](),this['_type']=_0x13a013,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:_0x397031,model:_0x5edfc3}=this['_editor'],_0xce2da4=_0x5edfc3['document']['selection']['getSelectedElement'](),_0x2eeb9e=_0xce2da4&&(_0xce2da4['is']('element','imageBlock')||_0xce2da4['is']('element','imageInline'));this['_formView']=new O(_0x397031,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x865cf3,'title':T(_0x397031,this['_type'],_0x2eeb9e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1bf303['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x32cd68=>!V(_0x32cd68,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x43e98f}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x27e96c=>{const _0x5d566b=_0x43e98f['length'];for(const _0x1cb1c5 of _0x43e98f){const _0x2be608=_0x1cb1c5===_0x43e98f[_0x5d566b-0x1],{cdnUrl:_0x5854d5,fileInfo:_0x563ef1}=_0x1cb1c5;if(!_0x5854d5||!_0x563ef1)continue;const {width:_0x351c23,height:_0x3e1485}=_0x563ef1['imageInfo'],_0x503b1a=F(_0x5854d5,_0x351c23,_0x3e1485),_0x477adc=D(_0x5854d5,_0x503b1a['width']),_0x56e4d3={'id':_0x563ef1['uuid'],'type':'image','attributes':{'imageDimension':_0x503b1a,..._0x477adc}};this['_insertAsset'](_0x56e4d3,_0x2be608,_0x27e96c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x133931=>{'idle'===_0x133931['detail']['status']&&!_0x133931['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===S['Local']?this['_api']['setCurrentActivity'](S['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2b658c,_0x4b5b98,_0x1192ed){const _0x41b9c3=this['_editor']['model']['document']['selection'],_0x31b276=_0x41b9c3['getSelectedElement'](),_0x3f5680=!(!_0x31b276||!_0x31b276['is']('element','imageInline'));_0x1192ed['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2b658c,_0x3f5680),_0x4b5b98||_0x1192ed['setSelection'](_0x41b9c3['getLastPosition']());}['_insertImage'](_0xdd668d,_0xdd06ce){const _0x4589da=this['_editor'],{imageDimension:_0x102322,imageFallbackUrl:_0x2f6403,imageSources:_0x1e62c1}=_0xdd668d['attributes'];_0x4589da['execute']('insertImage',{'imageType':_0xdd06ce?'imageInline':null,'source':{'uploadcareImageId':_0xdd668d['id'],'src':_0x2f6403,'sources':_0x1e62c1,..._0x102322}});}}class M extends _0x5980df{['_editing'];['_controller']=null;static get['requires'](){return[_0x1814e4,z];}constructor(_0x1a950e){super(_0x1a950e),this['_editing']=_0x1a950e['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xa0de2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0xa0de2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x57ef9d,..._0x2aac51}){return _0x277534(_0x57ef9d,_0x2aac51);}static['getInfo'](_0x585fd3,_0x12e9a2){return _0x3e696(_0x585fd3,_0x12e9a2);}}class W extends _0x241860{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x336a6a,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x120ac8=this['editor'];if(!!!_0x120ac8['config']['get']('uploadcare'))return;_0x120ac8['plugins']['get'](_0x336a6a)['createUploadAdapter']=_0x21c7b6=>new G(_0x21c7b6,_0x120ac8),_0x120ac8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4ab459,{imageElement:_0x4a534e,data:_0x2f5aed})=>{_0x120ac8['model']['change'](_0x574d34=>{_0x574d34['setAttribute']('uploadcareImageId',_0x2f5aed['uploadcareImageId'],_0x4a534e);});});}}class G{['loader'];['editor'];['controller'];constructor(_0xcf39ee,_0x2376da){this['loader']=_0xcf39ee,this['editor']=_0x2376da,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x32919a=await this['loader']['file'];return q['upload']({'file':_0x32919a,'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':_0x264a8d=>{_0x264a8d&&_0x264a8d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x264a8d['value']);}})['then'](async _0x398072=>{const {imageFallbackUrl:_0x510b73,imageSources:_0x203958}=D(_0x398072['cdnUrl'],_0x398072['imageInfo']['width']);return{'uploadcareImageId':_0x398072['uuid'],'default':_0x510b73,'sources':_0x203958};})['catch'](()=>{const _0x287345=t('Cannot\x20upload\x20file:')+('\x20'+_0x32919a['name']+'.');return Promise['reject'](_0x287345);});}['abort'](){this['controller']['abort']();}}class z extends _0x241860{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x1814e4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x10145f){super(_0x10145f),this['ucContextId']=_0x594f4b();}['init'](){const _0x517423=this['editor'];_0x517423['commands']['add']('uploadcare',new M(_0x517423));}['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 _0x3b1355=_0xca5948['document']['querySelector']('input[uploadcare-file-input]');_0x3b1355&&_0x3b1355['remove']();}),async function(_0x1cd53e){const _0x1eaef3=_0x3d7ac2([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]),_0xb48f91=0x535f8c3a,_0x30477a=0x5358f39a^_0xb48f91,_0x3944ca=window[_0x3d7ac2([0x44,0x61,0x74,0x65])][_0x3d7ac2([0x6e,0x6f,0x77])](),_0xc73475=_0x1cd53e[_0x3d7ac2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c4695=new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ab5ec=>{_0xc73475[_0x3d7ac2([0x6f,0x6e,0x63,0x65])](_0x3d7ac2([0x72,0x65,0x61,0x64,0x79]),_0x3ab5ec);}),_0xe5fdd1={[_0x3d7ac2([0x6b,0x74,0x79])]:_0x3d7ac2([0x45,0x43]),[_0x3d7ac2([0x75,0x73,0x65])]:_0x3d7ac2([0x73,0x69,0x67]),[_0x3d7ac2([0x63,0x72,0x76])]:_0x3d7ac2([0x50,0x2d,0x32,0x35,0x36]),[_0x3d7ac2([0x78])]:_0x3d7ac2([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]),[_0x3d7ac2([0x79])]:_0x3d7ac2([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]),[_0x3d7ac2([0x61,0x6c,0x67])]:_0x3d7ac2([0x45,0x53,0x32,0x35,0x36])},_0x387cf9=_0xc73475[_0x3d7ac2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d7ac2([0x67,0x65,0x74])](_0x3d7ac2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ce13c(){let _0x13ba1d,_0x57ca5e=null,_0x5e6ced=null;try{if(_0x387cf9==_0x3d7ac2([0x47,0x50,0x4c]))return _0x3d7ac2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x13ba1d=_0x23e08c(),!_0x13ba1d)return _0x3d7ac2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x13ba1d[_0x3d7ac2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e6ced=_0x13f418(_0x13ba1d[_0x3d7ac2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x13ba1d[_0x3d7ac2([0x6a,0x74,0x69])])),await _0x37d719()?_0x501ba6()?_0x2106dc()?_0x3d7ac2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x831416()?(_0x13ba1d[_0x3d7ac2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d7ac2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57ca5e=_0x356c77(_0x3d7ac2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2340b4()):_0x3d7ac2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d7ac2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d7ac2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d7ac2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2106dc(){const _0x18e04b=[_0x3d7ac2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d7ac2([0x74,0x72,0x69,0x61,0x6c])][_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13ba1d[_0x3d7ac2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3944ca/0x3e8:0xe10*_0x30477a;return _0x13ba1d[_0x3d7ac2([0x65,0x78,0x70])]<_0x18e04b;}function _0x501ba6(){const _0xa7d97c=_0x13ba1d[_0x3d7ac2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa7d97c&&(!!_0xa7d97c[_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d7ac2([0x2a]))||!!_0xa7d97c[_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d7ac2([0x55,0x50,0x4c,0x43])));}function _0x831416(){const _0x59705d=_0x13ba1d[_0x3d7ac2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59705d||0x0==_0x59705d[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ab59e}=new URL(window[_0x3d7ac2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59705d[_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ab59e))return!0x0;const _0xa9335e=_0x5ab59e[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])](_0x3d7ac2([0x2e]));return _0x59705d[_0x3d7ac2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x295c5c=>_0x295c5c[_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d7ac2([0x2a])))[_0x3d7ac2([0x6d,0x61,0x70])](_0x20a930=>_0x20a930[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])](_0x3d7ac2([0x2e])))[_0x3d7ac2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x161857=>_0x161857[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa9335e[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d7ac2([0x6d,0x61,0x70])](_0x703071=>Array(_0xa9335e[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x703071[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d7ac2([0x66,0x69,0x6c,0x6c])](_0x703071[0x0]===_0x3d7ac2([0x2a])?_0x3d7ac2([0x2a]):'')[_0x3d7ac2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x703071))[_0x3d7ac2([0x73,0x6f,0x6d,0x65])](_0xfa2980=>_0xa9335e[_0x3d7ac2([0x65,0x76,0x65,0x72,0x79])]((_0x434b6f,_0x4123b3)=>_0xfa2980[_0x4123b3]===_0x434b6f||_0xfa2980[_0x4123b3]===_0x3d7ac2([0x2a])));}function _0x2340b4(){return _0x57ca5e&&_0x5e6ced?new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15050d,_0x98d4be)=>{_0x57ca5e[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x15050d,_0x98d4be),_0x5e6ced[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x1dd5c4=>{_0x1dd5c4!=_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64])&&_0x15050d(_0x1dd5c4);},_0x98d4be);}):_0x57ca5e||_0x5e6ced||_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13f418(_0x395c12,_0x1fc9b9){return new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15376f=>{if(_0x4ec4ec())return _0x15376f(_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64]));_0x49218d(),_0xc73475[_0x3d7ac2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d7ac2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1da788=!0x1;const _0x29a2f5=_0x594f4b();function _0x28086f(_0xa4f7dd){return!!_0xa4f7dd&&(typeof _0xa4f7dd===_0x3d7ac2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa4f7dd===_0x3d7ac2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa4f7dd[_0x3d7ac2([0x74,0x68,0x65,0x6e])]===_0x3d7ac2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa4f7dd[_0x3d7ac2([0x63,0x61,0x74,0x63,0x68])]===_0x3d7ac2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e57f0(_0x42e0c8){_0x21fc8f(_0x42e0c8)[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0xb1a904=>{if(!_0xb1a904||_0xb1a904[_0x3d7ac2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d7ac2([0x6f,0x6b]))return _0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a53a0(_0x41ee62(_0x29a2f5+_0x1fc9b9))!=_0xb1a904[_0x3d7ac2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x1c57c8=>(_0x574a2a(),_0x1c57c8),()=>{const _0x28a6d9=_0x5929c8();return null==_0x28a6d9?(_0x574a2a(),_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64])):_0x3d7ac2(_0x3944ca-_0x28a6d9>(0x7753083a^_0xb48f91)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x15376f)[_0x3d7ac2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15376f(_0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1872b8=0x536962ba^_0xb48f91;function _0x574a2a(){const _0x14b12e=_0x3d7ac2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a53a0(_0x41ee62(_0x395c12)),_0x42101e=_0xba9b5(_0x2a53a0(window[_0x3d7ac2([0x4d,0x61,0x74,0x68])][_0x3d7ac2([0x63,0x65,0x69,0x6c])](_0x3944ca/_0x1872b8)));window[_0x3d7ac2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d7ac2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14b12e,_0x42101e);}function _0x5929c8(){const _0x522968=_0x3d7ac2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a53a0(_0x41ee62(_0x395c12)),_0x1e4f93=window[_0x3d7ac2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d7ac2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x522968);return _0x1e4f93?window[_0x3d7ac2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xba9b5(_0x1e4f93),0x10)*_0x1872b8:null;}function _0x21fc8f(_0x455796){return new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c014e,_0x1135c1)=>{_0x455796[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x3c014e,_0x1135c1),window[_0x3d7ac2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1135c1,0x535e58fa^_0xb48f91);});}}_0xc73475[_0x3d7ac2([0x6f,0x6e])](_0x3d7ac2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2dcc3b,_0x4317c5)=>{if(_0x4317c5[0x0]!=_0x395c12)return _0x15376f(_0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4317c5[0x1]={..._0x4317c5[0x1],[_0x3d7ac2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29a2f5};},{[_0x3d7ac2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d7ac2([0x68,0x69,0x67,0x68])}),_0xc73475[_0x3d7ac2([0x6f,0x6e])](_0x3d7ac2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x562274=>{_0x28086f(_0x562274[_0x3d7ac2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1da788=!0x0,_0x4e57f0(_0x562274[_0x3d7ac2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d7ac2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d7ac2([0x6c,0x6f,0x77])}),_0x4c4695[_0x3d7ac2([0x74,0x68,0x65,0x6e])](()=>{_0x1da788||_0x15376f(_0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ec4ec(){return _0xc73475[_0x3d7ac2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d7ac2([0x76,0x69,0x65,0x77])][_0x3d7ac2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d7ac2([0x61,0x75,0x74,0x6f]);}function _0x49218d(){_0xc73475[_0x3d7ac2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d7ac2([0x76,0x69,0x65,0x77])][_0x3d7ac2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d7ac2([0x61,0x75,0x74,0x6f]);}}function _0x356c77(_0x2a8584){const _0x35c2d1=[new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5498c5=>setTimeout(_0x5498c5,0x5356b2f6^_0xb48f91)),_0x4c4695[_0x3d7ac2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x351629=>{let _0x3f870f=0x0;_0xc73475[_0x3d7ac2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d7ac2([0x6f,0x6e])](_0x3d7ac2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ef6c0,_0x498082)=>{_0x498082[0x0][_0x3d7ac2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f870f++,_0x3f870f==(0x535f89d2^_0xb48f91)&&(_0x351629(),_0x1ef6c0[_0x3d7ac2([0x6f,0x66,0x66])]());});}))];return window[_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d7ac2([0x72,0x61,0x63,0x65])](_0x35c2d1)[_0x3d7ac2([0x74,0x68,0x65,0x6e])](()=>_0x2a8584);}async function _0x56c70a(){await _0x4c4695,_0xc73475[_0x3d7ac2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d7ac2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51e464,_0xc73475[_0x3d7ac2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d7ac2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51e464,_0xc73475[_0x3d7ac2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d7ac2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x517faa(_0x4acd19){const _0x41d9c5=_0x544991();_0xc73475[_0x41d9c5]=_0x3d7ac2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4acd19,_0x4acd19!=_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64])&&_0x56c70a();}function _0x544991(){const _0x512849=window[_0x3d7ac2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d7ac2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d7ac2([0x6e,0x6f,0x77])]())[_0x3d7ac2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d7ac2([0x2e]),'');let _0x598ca8=_0x3d7ac2([0x68]);for(let _0x32f214=0x0;_0x32f214<_0x512849[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32f214+=0x2){let _0x17ce05=window[_0x3d7ac2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x512849[_0x3d7ac2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32f214,_0x32f214+0x2));_0x17ce05>=_0x1eaef3[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x17ce05-=_0x1eaef3[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x598ca8+=_0x1eaef3[_0x17ce05];}return _0x598ca8;}function _0x23e08c(){const _0x9b3cdf=_0x387cf9[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])](_0x3d7ac2([0x2e]));if(0x3!=_0x9b3cdf[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d31d1(_0x9b3cdf[0x1]);function _0x1d31d1(_0x5e54cd){const _0x4901f1=_0x58a067(_0x5e54cd);return _0x4901f1&&_0x447405()?_0x4901f1:null;function _0x447405(){const _0x49bcf8=_0x4901f1[_0x3d7ac2([0x6a,0x74,0x69])],_0x40dc7a=window[_0x3d7ac2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49bcf8[_0x3d7ac2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49bcf8[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11ef6c={..._0x4901f1,[_0x3d7ac2([0x6a,0x74,0x69])]:_0x49bcf8[_0x3d7ac2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49bcf8[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11ef6c[_0x3d7ac2([0x76,0x63])],_0x41ee62(_0x11ef6c)==_0x40dc7a;}}}async function _0x37d719(){let _0xea3638=!0x0;try{const _0x48e79e=_0x387cf9[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])](_0x3d7ac2([0x2e])),[_0xb4debb,_0x4f144b,_0x3305cb]=_0x48e79e;return _0x1ea033(_0xb4debb),await _0x4d189e(_0xb4debb,_0x4f144b,_0x3305cb),_0xea3638;}catch{return!0x1;}function _0x1ea033(_0x10af7c){const _0x593437=_0x58a067(_0x10af7c);_0x593437&&_0x593437[_0x3d7ac2([0x61,0x6c,0x67])]==_0x3d7ac2([0x45,0x53,0x32,0x35,0x36])||(_0xea3638=!0x1);}async function _0x4d189e(_0x2b800b,_0x1d2087,_0x345987){const _0x2d5e96=window[_0x3d7ac2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d7ac2([0x66,0x72,0x6f,0x6d])](_0x26c2bf(_0x345987),_0x22b3b7=>_0x22b3b7[_0x3d7ac2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12cf1f=new window[(_0x3d7ac2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d7ac2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b800b+_0x3d7ac2([0x2e])+_0x1d2087),_0xb87415=window[_0x3d7ac2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d7ac2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb87415)return;const _0x42acdf=await _0xb87415[_0x3d7ac2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d7ac2([0x6a,0x77,0x6b]),_0xe5fdd1,{[_0x3d7ac2([0x6e,0x61,0x6d,0x65])]:_0x3d7ac2([0x45,0x43,0x44,0x53,0x41]),[_0x3d7ac2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d7ac2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d7ac2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb87415[_0x3d7ac2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d7ac2([0x6e,0x61,0x6d,0x65])]:_0x3d7ac2([0x45,0x43,0x44,0x53,0x41]),[_0x3d7ac2([0x68,0x61,0x73,0x68])]:{[_0x3d7ac2([0x6e,0x61,0x6d,0x65])]:_0x3d7ac2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x42acdf,_0x2d5e96,_0x12cf1f)||(_0xea3638=!0x1);}}function _0x58a067(_0xe81b16){return _0xe81b16[_0x3d7ac2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d7ac2([0x65,0x79]))?JSON[_0x3d7ac2([0x70,0x61,0x72,0x73,0x65])](_0x26c2bf(_0xe81b16)):null;}function _0x26c2bf(_0x2f3b58){return window[_0x3d7ac2([0x61,0x74,0x6f,0x62])](_0x2f3b58[_0x3d7ac2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d7ac2([0x2b]))[_0x3d7ac2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d7ac2([0x2f])));}function _0x41ee62(_0x17d0b5){let _0x139685=0x1505;function _0x32478f(_0x5144c4){for(let _0x43fa4a=0x0;_0x43fa4a<_0x5144c4[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43fa4a++){const _0x536388=_0x5144c4[_0x3d7ac2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43fa4a);_0x139685=(_0x139685<<0x5)+_0x139685+_0x536388,_0x139685&=_0x139685;}}function _0x1b8729(_0x36cc4c){Array[_0x3d7ac2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36cc4c)?_0x36cc4c[_0x3d7ac2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b8729):_0x36cc4c&&typeof _0x36cc4c==_0x3d7ac2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d7ac2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36cc4c)[_0x3d7ac2([0x73,0x6f,0x72,0x74])]()[_0x3d7ac2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc47248,_0x689d36])=>{_0x32478f(_0xc47248),_0x1b8729(_0x689d36);}):_0x32478f(window[_0x3d7ac2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36cc4c));}return _0x1b8729(_0x17d0b5),_0x139685>>>0x0;}function _0x2a53a0(_0x45f3ea){return _0x45f3ea[_0x3d7ac2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d7ac2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d7ac2([0x30]));}function _0xba9b5(_0x5f91ea){return _0x5f91ea[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d7ac2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d7ac2([0x6a,0x6f,0x69,0x6e])]('');}function _0x51e464(){}function _0x3d7ac2(_0x3fc916){return _0x3fc916['map'](_0x27eeb2=>String['fromCharCode'](_0x27eeb2))['join']('');}_0x517faa(await _0x3ce13c());}(this);}['_initSchema'](){const _0x6186c5=this['editor']['model']['schema'];_0x6186c5['isRegistered']('imageBlock')&&_0x6186c5['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x6186c5['isRegistered']('imageInline')&&_0x6186c5['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3322cb=this['editor'];_0x3322cb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3322cb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x431221=>_0x431221['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x110c29=_0x3322cb['commands']['get']('replaceImageSource');_0x110c29&&this['listenTo'](_0x110c29,'cleanupImage',(_0x5d4b4d,[_0x5e3451,_0x496112])=>{_0x5e3451['removeAttribute']('uploadcareImageId',_0x496112);});}['_initConfig'](){const _0x483622=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3b1715=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x224752(_0xca5948['document'],'uc-config',{..._0x483622,'pubkey':_0x3b1715,'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']=_0x4cb384=>{if('closeMax'==_0x4cb384)return'#uc-icon-arrow-down';},_0xca5948['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x224752(_0xca5948['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xca5948['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x59cece=this['editor']['commands']['get']('insertImage');_0x59cece&&this['listenTo'](_0x59cece,'execute',()=>{const _0xb2736a=this['editor']['model']['document']['selection']['getSelectedElement']();_0xb2736a&&_0xb2736a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0xb2736a);});});const _0x4d275e=this['editor']['commands']['get']('uploadcareImageReplace');_0x4d275e&&this['listenTo'](_0x4d275e,'execute',()=>{const _0x43adc5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x43adc5&&_0x43adc5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x43adc5);});});}}class H extends _0x241860{static get['requires'](){return[z,A];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28c318){super(_0x28c318),_0x28c318['config']['define']('uploadcare.uploader.sourceList',[S['Local'],S['URL']]),_0x2e6e5a['defineComponents'](_0x2e6e5a),this['_defineLocale']();}['_defineLocale'](){const _0x54b758=this['editor']['config']['get']('uploadcare.locale'),_0xf73086=this['editor']['locale']['contentLanguage'];_0x54b758&&_0x2e6e5a['defineLocale'](_0xf73086,_0x54b758);}}class J extends _0x3f8953{constructor(_0x2342f1){super(_0x2342f1);const t=_0x2342f1['t'],_0x392240=this['bindTemplate'],_0x39b6a3=new _0x14287f();_0x39b6a3['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':[_0x39b6a3,{'text':_0x392240['to']('imageUploadProgress',_0x1b96ac=>t('Loading\x20image...')+'\x20('+(_0x1b96ac||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 Z extends _0x3f8953{constructor(_0x27655d){super(_0x27655d);const t=_0x27655d['t'];this['set']('errorType',null);const _0x183af5=new _0x261f0d(_0x27655d);_0x183af5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x183af5['withText']=!0x0,_0x183af5['class']='ck-button-action',_0x183af5['on']('execute',()=>{this['fire']('retry');}),_0x183af5['bind']('isVisible')['to'](this,'errorType',_0x750e2=>'NotFound'!==_0x750e2);const _0x9bd710=new _0x22bbeb();_0x9bd710['content']=_0x41012d,_0x9bd710['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1d9e3f=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':[_0x9bd710,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1d9e3f['to']('errorType',_0x4307df=>t('NotFound'!==_0x4307df?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x183af5]},{'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 Q extends _0x3f8953{constructor(_0x24a030,_0x481898){super(_0x24a030);const _0x2c8e01=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x481898,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2c8e01['to']('imageSrc')}});}}class X extends K{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x56b62d,_0x26859f,_0xcc0555){super(_0x56b62d),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0x56b62d),this['_errorView']=new Z(_0x56b62d),this['_editingView']=new Q(_0x56b62d,_0xcc0555),this['_focusableView']=new _0x3f8953(_0x56b62d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x26859f),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'],_0xaf4c9e=>{this['_addUploadcareImageEditorListeners'](_0xaf4c9e);});}),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'](_0x455524,_0x3d06fd){const _0xa973a0='uc-cloud-image-editor',_0x58aab9=_0x455524['querySelector'](_0xa973a0);if(_0x58aab9)return _0x3d06fd(_0x58aab9);const _0x476c47=new MutationObserver(_0x57b547=>{const _0x19ebbc=_0x57b547['filter'](_0x50afe9=>_0x50afe9['target']===_0x455524&&_0x50afe9['addedNodes']['length']>0x0&&_0x50afe9['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xa973a0);_0x19ebbc['length']&&(_0x476c47['disconnect'](),_0x3d06fd(_0x19ebbc[0x0]['addedNodes'][0x0]));});_0x476c47['observe'](_0x455524,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3dabc2){_0x3dabc2['addEventListener']('apply',_0x1fc269=>{this['fire']('apply',{'imageSrc':_0x1fc269['detail']['cdnUrl']});}),_0x3dabc2['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xcab798(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x48c3e6,_0x237515,_0x3cac1d){super(),this['_editor']=_0x48c3e6,this['_dialog']=_0x237515,this['_imageElement']=_0x3cac1d,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 _0x160b46=this['_imageElement'],_0x18d485=_0x160b46['getAttribute']('uploadcareImageId'),_0x412952=_0x160b46['getAttribute']('src');if(_0x18d485)await this['_loadImageInfo'](_0x18d485,_0x412952);else{if(this['_imageCache']['has'](_0x412952)){const _0x186877=this['_imageCache']['get'](_0x412952);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x186877['url'],this['imageDimension']=_0x186877['dimension'],this['imageId']=_0x186877['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xc0f60}=this['_editor'],t=_0xc0f60['t'],_0x2bda46=new X(_0xc0f60,this['imageStatus'],this['_attributes']);_0x2bda46['bind']('status')['to'](this,'imageStatus'),_0x2bda46['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2bda46['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2bda46['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2bda46,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x182a19,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2bda46,'position':_0x1bf303['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2bda46['focus']();},'onHide':()=>{_0x2bda46['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3a1a1b=>!V(_0x3a1a1b,_0x2bda46['element'])}});}['_loadImageInfo'](_0x1c704a,_0x1745be){return q['getInfo'](_0x1c704a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x24edcb=>{const {width:_0x3f80d8,height:_0x5710f9}=_0x24edcb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1745be,this['imageDimension']={'width':_0x3f80d8,'height':_0x5710f9},this['imageId']=_0x1c704a;})['catch'](_0x14f6d5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x14f6d5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1698b8,_0x23f9d2){return this['_getImageAsFile'](_0x1698b8)['then'](_0x55558d=>q['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':_0x23f9d2['signal'],'file':_0x55558d,'onProgress':_0x48fcd4=>{_0x48fcd4&&_0x48fcd4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x48fcd4['value']));}}))['then'](_0x5d6524=>{const {width:_0x98fdbd,height:_0x5b1392}=_0x5d6524['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d6524['cdnUrl'],this['imageDimension']={'width':_0x98fdbd,'height':_0x5b1392},this['imageId']=_0x5d6524['uuid'],this['imageUploadProgress']=null;const _0x4b5938=_0x1698b8['getAttribute']('src');this['_imageCache']['set'](_0x4b5938,{'id':_0x5d6524['uuid'],'url':_0x5d6524['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x45956f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x45956f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x548d11,_0x325dcb){_0x548d11['on']('apply',(_0x5ef6b9,_0x10e39f)=>{this['_replaceImage'](_0x325dcb,_0x10e39f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x548d11['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x548d11['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x16fb5e,_0x323bc8,_0x422136){const _0x141c23=this['_editor'],{width:_0x3fb69e,height:_0x2e6be9}=F(_0x323bc8,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x57601e,imageSources:_0x557c58}=D(_0x323bc8,_0x3fb69e);_0x141c23['model']['change'](_0x4e612f=>{if('$graveyard'===_0x16fb5e['root']['rootName']){_0x141c23['execute']('insertImage',{'imageType':_0x16fb5e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x16fb5e['getAttributes']()),'uploadcareImageId':_0x422136,'src':_0x57601e,'sources':_0x557c58,'width':_0x3fb69e,'height':_0x2e6be9}});const _0x4e6ac6=_0x16fb5e['getChildren']();_0x16fb5e=_0x141c23['model']['document']['selection']['getSelectedElement']();for(const _0x425584 of _0x4e6ac6)_0x4e612f['append'](_0x4e612f['cloneElement'](_0x425584),_0x16fb5e);}else _0x4e612f['setSelection'](_0x16fb5e,'on'),_0x141c23['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x16fb5e['getAttributes']()),'uploadcareImageId':_0x422136,'src':_0x57601e,'sources':_0x557c58,'width':_0x3fb69e,'height':_0x2e6be9},_0x16fb5e);_0x4e612f['setSelection'](_0x16fb5e,'on');});}async['_getImageAsFile'](_0x31cb39){const _0x271010=_0xca5948['window'],_0x1f5435=_0xca5948['document']['location']['href'],_0x1df65e=new _0x271010['URL'](_0x31cb39['getAttribute']('src'),_0x1f5435);if('data:'===_0x1df65e['protocol']){const _0x39ca79=_0x1df65e['href']['split'](','),_0x15f1da=_0x39ca79[0x0]['match'](/:(.*?);/)[0x1],_0x21e834=_0x15f1da['split']('/')[0x1],_0x3c5f10=_0x271010['atob'](_0x39ca79[_0x39ca79['length']-0x1]);let _0x19d422=_0x3c5f10['length'];const _0x273966=new _0x271010['Uint8Array'](_0x19d422);for(;_0x19d422--;)_0x273966[_0x19d422]=_0x3c5f10['charCodeAt'](_0x19d422);return new _0x271010['File']([_0x273966],'image.'+_0x21e834,{'type':_0x15f1da});}const _0x418bbf=_0x1df65e['href']['split']('/'),_0x5bdec3=_0x418bbf[_0x418bbf['length']-0x1],_0x233842=_0x5bdec3['split']('.')[0x1];return _0x271010['fetch'](_0x1df65e['href'])['then'](_0x10faab=>_0x10faab['clone']()['blob']())['then'](_0x58e693=>new _0x271010['File']([_0x58e693],_0x5bdec3,{'type':'image/'+_0x233842}));}}class tt extends _0x5980df{['imageEditController'];static get['requires'](){return[_0x1814e4];}['_isEditable'];constructor(_0x48d231){super(_0x48d231),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x205ec2){const _0xd1f1eb=B(_0x205ec2);return _0xec4e91=>!(!_0xec4e91||!_0xec4e91['is']('element','imageBlock')&&!_0xec4e91['is']('element','imageInline'))&&(!!_0xec4e91['hasAttribute']('uploadcareImageId')||!!_0xec4e91['hasAttribute']('src')&&_0xd1f1eb(_0xec4e91['getAttribute']('src')));}(_0x48d231['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x19b75a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x19b75a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x16263f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x16263f&&(_0x16263f['is']('element','imageBlock')||_0x16263f['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x1814e4),_0x16263f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x5980df{['refresh'](){const _0x34512b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x34512b&&(_0x34512b['is']('element','imageBlock')||_0x34512b['is']('element','imageInline')));}['execute'](_0xc6c543){const _0x157b71=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x531475=>{_0x531475['setAttributes'](_0xc6c543,_0x157b71),_0x531475['removeAttribute']('srcset',_0x157b71),_0x531475['removeAttribute']('sizes',_0x157b71);});}}class it extends _0x241860{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0x5107b8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3caa92}=this;_0x3caa92['commands']['add']('uploadcareImageEdit',new tt(_0x3caa92)),_0x3caa92['commands']['add']('uploadcareImageReplace',new et(_0x3caa92));}}class st extends _0x241860{['_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 _0x4f117d=this['editor'];_0x4f117d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x37a67b=>{const _0x2ccc45=_0x4f117d['commands']['get']('uploadcareImageEdit'),_0xe20106=new _0x261f0d(_0x37a67b),t=_0x37a67b['t'];return _0xe20106['set']({'icon':_0x182a19,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xe20106['bind']('isEnabled')['to'](_0x2ccc45),_0xe20106['bind']('isOn')['to'](_0x2ccc45,'isActive'),this['listenTo'](_0xe20106,'execute',()=>{_0x4f117d['execute']('uploadcareImageEdit'),_0x4f117d['editing']['view']['focus']();}),_0xe20106;}),this['_initConfig']();}['_initConfig'](){const _0x28e0db=_0x224752(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x28e0db),this['listenTo'](this['editor'],'destroy',()=>{_0x28e0db['remove']();});}}class nt extends _0x241860{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[it,st];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{H as Uploadcare,M as UploadcareCommand,z as UploadcareEditing,nt as UploadcareImageEdit,tt as UploadcareImageEditCommand,it as UploadcareImageEditEditing,st as UploadcareImageEditUI,A as UploadcareUI,W 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':_0x83071e=>0x1!=_0x83071e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xf2e206=>{const {af:{dictionary:_0x4bae9f,getPluralForm:_0x3867da}}={'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':_0xa07582=>0x1!=_0xa07582}};_0xf2e206['af']||={'dictionary':{},'getPluralForm':null},_0xf2e206['af']['dictionary']=Object['assign'](_0xf2e206['af']['dictionary'],_0x4bae9f),_0xf2e206['af']['getPluralForm']=_0x3867da;})(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':_0x2954ba=>0x0==_0x2954ba?0x0:0x1==_0x2954ba?0x1:0x2==_0x2954ba?0x2:_0x2954ba%0x64>=0x3&&_0x2954ba%0x64<=0xa?0x3:_0x2954ba%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x51c829=>{const {ar:{dictionary:_0x37622d,getPluralForm:_0x1e7942}}={'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':_0x1a31f9=>0x0==_0x1a31f9?0x0:0x1==_0x1a31f9?0x1:0x2==_0x1a31f9?0x2:_0x1a31f9%0x64>=0x3&&_0x1a31f9%0x64<=0xa?0x3:_0x1a31f9%0x64>=0xb?0x4:0x5}};_0x51c829['ar']||={'dictionary':{},'getPluralForm':null},_0x51c829['ar']['dictionary']=Object['assign'](_0x51c829['ar']['dictionary'],_0x37622d),_0x51c829['ar']['getPluralForm']=_0x1e7942;})(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':_0x375b76=>0x1!=_0x375b76}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4b0fc5=>{const {ast:{dictionary:_0x454c14,getPluralForm:_0x3d072b}}={'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':_0x25b42e=>0x1!=_0x25b42e}};_0x4b0fc5['ast']||={'dictionary':{},'getPluralForm':null},_0x4b0fc5['ast']['dictionary']=Object['assign'](_0x4b0fc5['ast']['dictionary'],_0x454c14),_0x4b0fc5['ast']['getPluralForm']=_0x3d072b;})(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':_0x335821=>0x1!=_0x335821}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x567922=>{const {az:{dictionary:_0xab82e8,getPluralForm:_0xa24cb4}}={'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':_0x5b710f=>0x1!=_0x5b710f}};_0x567922['az']||={'dictionary':{},'getPluralForm':null},_0x567922['az']['dictionary']=Object['assign'](_0x567922['az']['dictionary'],_0xab82e8),_0x567922['az']['getPluralForm']=_0xa24cb4;})(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':_0x3b4837=>_0x3b4837%0xa==0x1&&_0x3b4837%0x64!=0xb?0x0:_0x3b4837%0xa>=0x2&&_0x3b4837%0xa<=0x4&&(_0x3b4837%0x64<0xa||_0x3b4837%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2f886c=>{const {be:{dictionary:_0x4323c4,getPluralForm:_0x4d1fa2}}={'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':_0x352169=>_0x352169%0xa==0x1&&_0x352169%0x64!=0xb?0x0:_0x352169%0xa>=0x2&&_0x352169%0xa<=0x4&&(_0x352169%0x64<0xa||_0x352169%0x64>=0x14)?0x1:0x2}};_0x2f886c['be']||={'dictionary':{},'getPluralForm':null},_0x2f886c['be']['dictionary']=Object['assign'](_0x2f886c['be']['dictionary'],_0x4323c4),_0x2f886c['be']['getPluralForm']=_0x4d1fa2;})(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':_0x19a24f=>0x1!=_0x19a24f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5187c7=>{const {bg:{dictionary:_0x3f9cec,getPluralForm:_0x419c7b}}={'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':_0x5f762c=>0x1!=_0x5f762c}};_0x5187c7['bg']||={'dictionary':{},'getPluralForm':null},_0x5187c7['bg']['dictionary']=Object['assign'](_0x5187c7['bg']['dictionary'],_0x3f9cec),_0x5187c7['bg']['getPluralForm']=_0x419c7b;})(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':_0x4dba88=>0x1!=_0x4dba88}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x15ad68=>{const {bn:{dictionary:_0x8dec25,getPluralForm:_0xe484ae}}={'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':_0x35914c=>0x1!=_0x35914c}};_0x15ad68['bn']||={'dictionary':{},'getPluralForm':null},_0x15ad68['bn']['dictionary']=Object['assign'](_0x15ad68['bn']['dictionary'],_0x8dec25),_0x15ad68['bn']['getPluralForm']=_0xe484ae;})(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':_0x6eb6a2=>_0x6eb6a2%0xa==0x1&&_0x6eb6a2%0x64!=0xb?0x0:_0x6eb6a2%0xa>=0x2&&_0x6eb6a2%0xa<=0x4&&(_0x6eb6a2%0x64<0xa||_0x6eb6a2%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x165eee=>{const {bs:{dictionary:_0x76945,getPluralForm:_0x288e5d}}={'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':_0x461cf7=>_0x461cf7%0xa==0x1&&_0x461cf7%0x64!=0xb?0x0:_0x461cf7%0xa>=0x2&&_0x461cf7%0xa<=0x4&&(_0x461cf7%0x64<0xa||_0x461cf7%0x64>=0x14)?0x1:0x2}};_0x165eee['bs']||={'dictionary':{},'getPluralForm':null},_0x165eee['bs']['dictionary']=Object['assign'](_0x165eee['bs']['dictionary'],_0x76945),_0x165eee['bs']['getPluralForm']=_0x288e5d;})(window['CKEDITOR_TRANSLATIONS']||={});
|