@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250406.0 → 0.0.0-nightly-20250408.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/translations/be.js +1 -0
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.d.ts +8 -0
- package/dist/translations/be.js +23 -0
- package/dist/translations/be.umd.js +23 -0
- 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/lang/translations/be.po +100 -0
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1dd4a0,Command as _0x3f38b4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4635ec,IconGooglePhotos as _0x5114cc,IconGoogleDrive as _0x4bc24a,IconFacebook as _0x1724ea,IconDropbox as _0x3f6ebe,IconUploadcareLink as _0x2542bf,IconUploadcareImageUpload as _0x511ef4,IconError as et,IconUploadcareImageEdit as _0x56a8ab}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x16b6ef,MenuBarMenuListItemButtonView as _0x4ea981,View as _0x1fa2e2,FocusCycler as _0x47f75a,Dialog as _0x5c5908,DialogViewPosition as _0x1c3d19,SpinnerView as _0x11ebe3,IconView as at,Notification as _0x43e758}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4569b8,DomEmitterMixin as _0x3626f0,global as _0x1cff4f,getAncestors as _0x16f5be,ObservableMixin as _0x31b995,createElement as _0x379973,uid as _0x4c5b6b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3ac3a5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x40ee51,info as _0x2d12c3}from'@uploadcare/upload-client';import*as _0x44de83 from'@uploadcare/file-uploader';var o=function(_0x18275c){return _0x18275c['Local']='local',_0x18275c['URL']='url',_0x18275c['Dropbox']='dropbox',_0x18275c['GDrive']='gdrive',_0x18275c['Facebook']='facebook',_0x18275c['GPhotos']='gphotos',_0x18275c['OneDrive']='onedrive',_0x18275c;}({});function _(_0x4664aa,_0x4f4380,_0x404f28){const t=_0x4664aa['t'],_0x2d0237=_0x4664aa['t'];switch(_0x4f4380){case o['Local']:return{'text':_0x2d0237('Insert'===_0x404f28?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2d0237('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x404f28?_0x2d0237('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2d0237('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4f4380;}}class e extends _0x1dd4a0{['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 _0x5c6ef9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34daf3;for(const _0x369c78 in _0x5c6ef9){const _0x1eb2f1=_0x369c78,_0x339ffe=_0x5c6ef9[_0x1eb2f1];if('uploadcareLicenseKeyValid'==_0x339ffe||'uploadcareLicenseKeyInvalid'==_0x339ffe||'uploadcareLicenseKeyExpired'==_0x339ffe||'uploadcareLicenseKeyDomainLimit'==_0x339ffe||'uploadcareLicenseKeyNotAllowed'==_0x339ffe||'uploadcareLicenseKeyEvaluationLimit'==_0x339ffe||'uploadcareLicenseKeyTrialLimit'==_0x339ffe||'uploadcareLicenseKeyUsageLimit'==_0x339ffe){delete _0x5c6ef9[_0x1eb2f1],_0x34daf3=_0x339ffe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x24db7d}=this,_0x28f5a7=_0x24db7d['commands']['get']('uploadcare');if(!_0x28f5a7)return;const _0x18e1c9=this['_normalizeConfigSourceList'](_0x24db7d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x599e63,_0x15a01b)=>{const _0x58595b=this['_getIntegrationKey'](_0x15a01b['type']);return _0x599e63[_0x58595b]||(_0x599e63[_0x58595b]=[]),_0x599e63[_0x58595b]['push'](_0x15a01b),_0x599e63;},{});_0x24db7d['plugins']['has']('ImageInsertUI')&&_0x24db7d['commands']['get']('uploadcare')&&Object['entries'](_0x18e1c9)['forEach'](([_0x1ade82,_0x11ee8b])=>{_0x24db7d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1ade82,'observable':()=>_0x28f5a7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x11ee8b),'formViewCreator':()=>this['_createDropdownButtons'](_0x11ee8b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x11ee8b),'override':'assetManager'!==_0x1ade82});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3c80dd){const {locale:_0x3a696b}=this['editor'];return _0x3c80dd['map'](_0x47ace3=>{const _0x40fa1b=_(_0x3a696b,_0x47ace3,'Insert');switch(_0x47ace3){case o['Local']:return{'icon':_0x511ef4,'type':o['Local'],..._0x40fa1b};case o['URL']:return{'icon':_0x2542bf,'type':o['URL'],..._0x40fa1b};case o['Dropbox']:return{'icon':_0x3f6ebe,'type':o['Dropbox'],..._0x40fa1b};case o['Facebook']:return{'icon':_0x1724ea,'type':o['Facebook'],..._0x40fa1b};case o['GDrive']:return{'icon':_0x4bc24a,'type':o['GDrive'],..._0x40fa1b};case o['GPhotos']:return{'icon':_0x5114cc,'type':o['GPhotos'],..._0x40fa1b};case o['OneDrive']:return{'icon':_0x4635ec,'type':o['OneDrive'],..._0x40fa1b};}});}['_getIntegrationKey'](_0x2ce3ff){switch(_0x2ce3ff){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4a7585,_0x2babdd){const _0xedcd72=this['editor'],_0x150ce1=new _0x4a7585(_0xedcd72['locale']),_0x6a59ae=_0xedcd72['commands']['get']('uploadcare');return _0x150ce1['bind']('isEnabled')['to'](_0x6a59ae),_0x150ce1['on']('execute',()=>{_0x6a59ae['execute'](_0x2babdd);}),_0x150ce1;}['_createToolbarButton'](_0x56ae6a){const {locale:_0xac7d54}=this['editor'],_0x1aed11=this['editor']['plugins']['get']('ImageInsertUI'),_0x2be731=_0x56ae6a[0x0],_0x16edba=this['_createButton'](_0x16b6ef,_0x2be731['type']);return _0x16edba['icon']=_0x2be731['icon'],_0x16edba['bind']('label')['to'](_0x1aed11,'isImageSelected',_0x246d04=>_(_0xac7d54,_0x2be731['type'],_0x246d04?'Replace':'Insert')['text']),_0x16edba['tooltip']=!0x0,_0x16edba;}['_createDropdownButtons'](_0x598ccc){const {locale:_0x311086}=this['editor'],_0x52d8c1=this['editor']['plugins']['get']('ImageInsertUI');return _0x598ccc['map'](_0x31c46b=>{const _0x4b1816=this['_createButton'](_0x16b6ef,_0x31c46b['type']);return _0x4b1816['withText']=!0x0,_0x4b1816['icon']=_0x31c46b['icon'],_0x4b1816['bind']('label')['to'](_0x52d8c1,'isImageSelected',_0x51ad66=>_(_0x311086,_0x31c46b['type'],_0x51ad66?'Replace':'Insert')['text']),_0x4b1816;});}['_createMenuBarButtons'](_0x3192b3){return _0x3192b3['map'](_0x5b7d5f=>{const _0x4039f1=this['_createButton'](_0x4ea981,_0x5b7d5f['type']);return _0x4039f1['icon']=_0x5b7d5f['icon'],_0x4039f1['label']=_0x5b7d5f['shortText'],_0x4039f1;});}}class q extends _0x1fa2e2{['focusTracker'];['focusCycler'];constructor(_0x4c64d2){super(_0x4c64d2),this['focusTracker']=new _0x4569b8(),this['focusCycler']=new _0x47f75a({'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 S extends q{constructor(_0x670eae){super(_0x670eae),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x5cbcfd,_0x5e397a){const _0x99959=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2f7e47=>_0x2f7e47<=_0x5e397a)['map'](_0x116375=>_0x5cbcfd['replace'](/\/$/,'')+'/-/resize/'+_0x116375+'x/\x20'+_0x116375+'w');return{'imageFallbackUrl':_0x5cbcfd,'imageSources':[{'srcset':_0x99959['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5e397a+'px)\x20100vw,\x20'+_0x5e397a+'px','type':'image/webp'}]};}function A(_0xa2af93,_0x5d40d3,_0x5c658b){const _0x22a137=_0xa2af93['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x22a137?parseInt(_0x22a137[0x1],0xa):_0x5d40d3,'height':_0x22a137?parseInt(_0x22a137[0x2],0xa):_0x5c658b};}function m(_0x9c870c,_0x555675){const _0x3cb6c5=Object['create'](_0x3626f0),_0x4983c5=_0x9c870c['plugins']['get']('ImageUtils'),_0x47aeef=_0x9c870c['editing']['mapper']['toViewElement'](_0x555675),_0x32aad4=_0x4983c5['findViewImgElement'](_0x47aeef),_0x56be74=_0x9c870c['editing']['view']['domConverter']['viewToDom'](_0x32aad4),_0x26cbad=_0x555675['getAttribute']('width'),_0x4a63cf=_0x555675['getAttribute']('height'),_0x4f8003='image-processing';_0x9c870c['editing']['view']['change'](_0x329590=>{_0x329590['addClass'](_0x4f8003,_0x47aeef),_0x329590['setStyle']('aspect-ratio',_0x26cbad+'/'+_0x4a63cf,_0x32aad4);}),_0x3cb6c5['listenTo'](_0x56be74,'load',()=>{_0x3cb6c5['stopListening'](_0x56be74,'load'),_0x9c870c['editing']['view']['change'](_0x400509=>{_0x400509['removeClass'](_0x4f8003,_0x47aeef),_0x400509['removeStyle']('aspect-ratio',_0x32aad4);});});}function V(_0x33459f){if(Array['isArray'](_0x33459f)){const _0x59073b=_0x33459f['map'](V);return _0x33d372=>_0x59073b['some'](_0x3f407e=>_0x3f407e(_0x33d372));}if('origin'==_0x33459f){const _0x59d4f8=_0x1cff4f['window']['location']['origin'];return _0x4149e9=>new URL(_0x4149e9,_0x1cff4f['document']['baseURI'])['origin']==_0x59d4f8;}return'function'==typeof _0x33459f?_0x33459f:_0x33459f instanceof RegExp?_0x3fc669=>!(!_0x3fc669['match'](_0x33459f)&&!_0x3fc669['replace'](/^https?:\/\//,'')['match'](_0x33459f)):()=>!0x1;}function F(_0x2ff5ce,_0x2ec18e){return _0x16f5be(_0x2ff5ce['target'])['includes'](_0x2ec18e);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x31b995(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xd61ffc,_0x4d3d36,_0x5ae613){super(),this['_editor']=_0xd61ffc,this['_editing']=_0x4d3d36,this['_dialog']=_0xd61ffc['plugins']['get'](_0x5c5908),this['_api']=_0x4d3d36['ctxElement']['getAPI'](),this['_type']=_0x5ae613,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:_0x1a2d6b,model:_0x5c0780}=this['_editor'],_0x63e331=_0x5c0780['document']['selection']['getSelectedElement'](),_0x1cdade=_0x63e331&&(_0x63e331['is']('element','imageBlock')||_0x63e331['is']('element','imageInline'));this['_formView']=new S(_0x1a2d6b),this['_dialog']['show']({'id':'uploadCare','icon':_0x511ef4,'title':_(_0x1a2d6b,this['_type'],_0x1cdade?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1c3d19['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x36a11f=>!F(_0x36a11f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3874ed}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x54f9c9=>{const _0x3a6dd2=_0x3874ed['length'];for(const _0x4aa22a of _0x3874ed){const _0x51b5a8=_0x4aa22a===_0x3874ed[_0x3a6dd2-0x1],{cdnUrl:_0x54b33c,fileInfo:_0x157349}=_0x4aa22a;if(!_0x54b33c||!_0x157349)continue;const {width:_0x3485fd,height:_0x3c31ef}=_0x157349['imageInfo'],_0x1af81e=A(_0x54b33c,_0x3485fd,_0x3c31ef),_0x49aca7=E(_0x54b33c,_0x1af81e['width']),_0x35d3bd={'id':_0x157349['uuid'],'type':'image','attributes':{'imageDimension':_0x1af81e,..._0x49aca7}};this['_insertAsset'](_0x35d3bd,_0x51b5a8,_0x54f9c9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x22ec39=>{'idle'===_0x22ec39['detail']['status']&&!_0x22ec39['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4015a9,_0x35e60c,_0x204fae){const _0xe4f2e2=this['_editor']['model']['document']['selection'],_0x432264=_0xe4f2e2['getSelectedElement'](),_0x5b0879=!(!_0x432264||!_0x432264['is']('element','imageInline'));_0x204fae['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4015a9,_0x5b0879),_0x35e60c||_0x204fae['setSelection'](_0xe4f2e2['getLastPosition']());}['_insertImage'](_0x239fcf,_0x2b502b){const _0xb1fa61=this['_editor'],{imageDimension:_0x57a5fa,imageFallbackUrl:_0x27a583,imageSources:_0x8c6962}=_0x239fcf['attributes'];_0xb1fa61['execute']('insertImage',{'imageType':_0x2b502b?'imageInline':null,'source':{'uploadcareImageId':_0x239fcf['id'],'src':_0x27a583,'sources':_0x8c6962,..._0x57a5fa}});}}class n extends _0x3f38b4{['_editing'];['_controller']=null;static get['requires'](){return[_0x5c5908,i];}constructor(_0x149f28){super(_0x149f28),this['_editing']=_0x149f28['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2115ae){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2115ae);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1b6250,publicKey:_0xf3c293,signal:_0x39bd3d,onProgress:_0x56196c}){return _0x40ee51(_0x1b6250,{'publicKey':_0xf3c293,'store':'auto','signal':_0x39bd3d,'onProgress':_0x56196c});}static['getInfo'](_0x1f7336,_0x48d234){return _0x2d12c3(_0x1f7336,_0x48d234);}}class p extends _0x1dd4a0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3ac3a5,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x8c4cde=this['editor'];if(!!!_0x8c4cde['config']['get']('uploadcare'))return;_0x8c4cde['plugins']['get'](_0x3ac3a5)['createUploadAdapter']=_0x1136e7=>new x(_0x1136e7,_0x8c4cde),_0x8c4cde['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x344fa0,{imageElement:_0x4bdbe3,data:_0x4a5d47})=>{_0x8c4cde['model']['change'](_0x3d1d90=>{_0x3d1d90['setAttribute']('uploadcareImageId',_0x4a5d47['uploadcareImageId'],_0x4bdbe3);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x557b78,_0x1eabeb){this['loader']=_0x557b78,this['editor']=_0x1eabeb,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1af6cd=this['editor']['config']['get']('uploadcare.pubkey'),_0x341486=await this['loader']['file'];return C['upload']({'file':_0x341486,'publicKey':_0x1af6cd,'signal':this['controller']['signal'],'onProgress':_0x410561=>{_0x410561&&_0x410561['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x410561['value']);}})['then'](async _0x484416=>{const {imageFallbackUrl:_0x326d53,imageSources:_0x133d97}=E(_0x484416['cdnUrl'],_0x484416['imageInfo']['width']);return{'uploadcareImageId':_0x484416['uuid'],'default':_0x326d53,'sources':_0x133d97};})['catch'](()=>{const _0x21de68=t('Cannot\x20upload\x20file:')+('\x20'+_0x341486['name']+'.');return Promise['reject'](_0x21de68);});}['abort'](){this['controller']['abort']();}}class i extends _0x1dd4a0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x5c5908];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x96568a=this['editor'];_0x96568a['commands']['add']('uploadcare',new n(_0x96568a));}['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 _0x5d0e5e=_0x1cff4f['document']['querySelector']('input[uploadcare-file-input]');_0x5d0e5e&&_0x5d0e5e['remove']();}),async function(_0x299808){const _0x2809a2=_0x2296f5([0x4f,0x7a,0x6c,0x5a,0x30,0x56,0x52,0x49,0x39,0x50,0x4e,0x54,0x66,0x31,0x36,0x53,0x78,0x43,0x35,0x69,0x63,0x6b,0x4d,0x4c,0x55,0x46,0x73,0x71,0x79,0x41,0x58,0x6e,0x6a,0x67,0x47,0x61,0x76,0x37,0x48,0x32,0x72,0x33,0x6f,0x44,0x65,0x4b,0x4a,0x34,0x75,0x64,0x57,0x68,0x6d,0x59,0x51,0x42,0x45,0x62,0x38,0x77,0x70,0x74]),_0x30a921=0x3bcbc51c,_0x239c79=0x3bcca15c^_0x30a921,_0xdf3596=window[_0x2296f5([0x44,0x61,0x74,0x65])][_0x2296f5([0x6e,0x6f,0x77])](),_0x3bc9ba=_0x299808[_0x2296f5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b3e9d=new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32904a=>{_0x3bc9ba[_0x2296f5([0x6f,0x6e,0x63,0x65])](_0x2296f5([0x72,0x65,0x61,0x64,0x79]),_0x32904a);}),_0x10a639={[_0x2296f5([0x6b,0x74,0x79])]:_0x2296f5([0x45,0x43]),[_0x2296f5([0x75,0x73,0x65])]:_0x2296f5([0x73,0x69,0x67]),[_0x2296f5([0x63,0x72,0x76])]:_0x2296f5([0x50,0x2d,0x32,0x35,0x36]),[_0x2296f5([0x78])]:_0x2296f5([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]),[_0x2296f5([0x79])]:_0x2296f5([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]),[_0x2296f5([0x61,0x6c,0x67])]:_0x2296f5([0x45,0x53,0x32,0x35,0x36])},_0x4e016a=_0x3bc9ba[_0x2296f5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2296f5([0x67,0x65,0x74])](_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52f8a5(){let _0x5c00ed,_0x449399=null,_0x1660dd=null;try{if(_0x4e016a==_0x2296f5([0x47,0x50,0x4c]))return _0x2296f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c00ed=_0x27f7da(),!_0x5c00ed)return _0x2296f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c00ed[_0x2296f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1660dd=_0x23462e(_0x5c00ed[_0x2296f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c00ed[_0x2296f5([0x6a,0x74,0x69])])),await _0x2c084e()?_0x4e61f3()?_0x400561()?_0x2296f5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1831f8()?(_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2296f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x449399=_0x374308(_0x2296f5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2296f5([0x74,0x72,0x69,0x61,0x6c])&&(_0x449399=_0x374308(_0x2296f5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x24e63f()):_0x2296f5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2296f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2296f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4a2790){return _0x2296f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x400561(){const _0x51aac7=[_0x2296f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2296f5([0x74,0x72,0x69,0x61,0x6c])][_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xdf3596/0x3e8:0xe10*_0x239c79;return _0x5c00ed[_0x2296f5([0x65,0x78,0x70])]<_0x51aac7;}function _0x4e61f3(){const _0x36ce85=_0x5c00ed[_0x2296f5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x36ce85&&(!!_0x36ce85[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2296f5([0x2a]))||!!_0x36ce85[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2296f5([0x55,0x50,0x4c,0x43])));}function _0x1831f8(){const _0x3d1391=_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d1391||0x0==_0x3d1391[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc992f4}=new URL(window[_0x2296f5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d1391[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc992f4))return!0x0;const _0x3470c4=_0xc992f4[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e]));return _0x3d1391[_0x2296f5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b8ad3=>_0x2b8ad3[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2296f5([0x2a])))[_0x2296f5([0x6d,0x61,0x70])](_0x3abc04=>_0x3abc04[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e])))[_0x2296f5([0x73,0x6f,0x6d,0x65])](_0x5a7a95=>_0x3470c4[_0x2296f5([0x65,0x76,0x65,0x72,0x79])]((_0x5cdd18,_0x26a624)=>_0x5a7a95[_0x26a624]===_0x5cdd18||_0x5a7a95[_0x26a624]===_0x2296f5([0x2a])));}function _0x24e63f(){return _0x449399&&_0x1660dd?new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c8751,_0x216f8d)=>{_0x449399[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x3c8751,_0x216f8d),_0x1660dd[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x447fb8=>{_0x447fb8!=_0x2296f5([0x56,0x61,0x6c,0x69,0x64])&&_0x3c8751(_0x447fb8);},_0x216f8d);}):_0x449399||_0x1660dd||_0x2296f5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23462e(_0x286e17,_0x5bb5a6){return new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x92571f=>{if(_0xc2d07b())return _0x92571f(_0x2296f5([0x56,0x61,0x6c,0x69,0x64]));_0x1907ab(),_0x3bc9ba[_0x2296f5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2296f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4f5d15=!0x1;const _0x3e5327=_0x4c5b6b();function _0x559e55(_0x437e45){return!!_0x437e45&&(typeof _0x437e45===_0x2296f5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x437e45===_0x2296f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x437e45[_0x2296f5([0x74,0x68,0x65,0x6e])]===_0x2296f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x437e45[_0x2296f5([0x63,0x61,0x74,0x63,0x68])]===_0x2296f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4be237(_0x5abaaf){_0x34ed4d(_0x5abaaf)[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x55ce11=>{if(!_0x55ce11||_0x55ce11[_0x2296f5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2296f5([0x6f,0x6b]))return _0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xec165a(_0x2d87d7(_0x3e5327+_0x5bb5a6))!=_0x55ce11[_0x2296f5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2296f5([0x56,0x61,0x6c,0x69,0x64]);})[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x41a0ec=>(_0x25d563(),_0x41a0ec),()=>{const _0x57581a=_0x32420e();return null==_0x57581a?(_0x25d563(),_0x2296f5([0x56,0x61,0x6c,0x69,0x64])):_0x2296f5(_0xdf3596-_0x57581a>(0x1fc7411c^_0x30a921)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x92571f)[_0x2296f5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x92571f(_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39fe39=0x3bfd2b9c^_0x30a921;function _0x25d563(){const _0x4ded9b=_0x2296f5([0x6c,0x6c,0x63,0x74,0x2d])+_0xec165a(_0x2d87d7(_0x286e17)),_0x2c1fb3=_0x3ecc64(_0xec165a(window[_0x2296f5([0x4d,0x61,0x74,0x68])][_0x2296f5([0x63,0x65,0x69,0x6c])](_0xdf3596/_0x39fe39)));window[_0x2296f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2296f5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ded9b,_0x2c1fb3);}function _0x32420e(){const _0x44b4c=_0x2296f5([0x6c,0x6c,0x63,0x74,0x2d])+_0xec165a(_0x2d87d7(_0x286e17)),_0x3d8aa1=window[_0x2296f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2296f5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44b4c);return _0x3d8aa1?window[_0x2296f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ecc64(_0x3d8aa1),0x10)*_0x39fe39:null;}function _0x34ed4d(_0x25ed76){return new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4990b8,_0xa29e66)=>{_0x25ed76[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x4990b8,_0xa29e66),window[_0x2296f5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa29e66,0x3bca11dc^_0x30a921);});}}_0x3bc9ba[_0x2296f5([0x6f,0x6e])](_0x2296f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x594111,_0x528abb)=>{if(_0x528abb[0x0]!=_0x286e17)return _0x92571f(_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x528abb[0x1]={..._0x528abb[0x1],[_0x2296f5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e5327};},{[_0x2296f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2296f5([0x68,0x69,0x67,0x68])}),_0x3bc9ba[_0x2296f5([0x6f,0x6e])](_0x2296f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bb89d=>{_0x559e55(_0x2bb89d[_0x2296f5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4f5d15=!0x0,_0x4be237(_0x2bb89d[_0x2296f5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2296f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2296f5([0x6c,0x6f,0x77])}),_0x1b3e9d[_0x2296f5([0x74,0x68,0x65,0x6e])](()=>{_0x4f5d15||_0x92571f(_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc2d07b(){return _0x3bc9ba[_0x2296f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2296f5([0x76,0x69,0x65,0x77])][_0x2296f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2296f5([0x61,0x75,0x74,0x6f]);}function _0x1907ab(){_0x3bc9ba[_0x2296f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2296f5([0x76,0x69,0x65,0x77])][_0x2296f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2296f5([0x61,0x75,0x74,0x6f]);}}function _0x374308(_0x3bc433){const _0x3a0323=[new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28bb29=>setTimeout(_0x28bb29,0x3bc2fbd0^_0x30a921)),_0x1b3e9d[_0x2296f5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x261653=>{let _0x6600a5=0x0;_0x3bc9ba[_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2296f5([0x6f,0x6e])](_0x2296f5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x226a6f,_0x1958ca)=>{_0x1958ca[0x0][_0x2296f5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6600a5++,_0x6600a5==(0x3bcbc4e4^_0x30a921)&&(_0x261653(),_0x226a6f[_0x2296f5([0x6f,0x66,0x66])]());});}))];return window[_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2296f5([0x72,0x61,0x63,0x65])](_0x3a0323)[_0x2296f5([0x74,0x68,0x65,0x6e])](()=>_0x3bc433);}async function _0xe6f264(){await _0x1b3e9d,_0x3bc9ba[_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2296f5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c272a,_0x3bc9ba[_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2296f5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c272a,_0x3bc9ba[_0x2296f5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x273394(_0x4a4b5a){const _0x6ebdee=_0x202764();_0x3bc9ba[_0x6ebdee]=_0x2296f5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4a4b5a,_0x4a4b5a!=_0x2296f5([0x56,0x61,0x6c,0x69,0x64])&&_0xe6f264();}function _0x202764(){const _0x23efcc=window[_0x2296f5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2296f5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2296f5([0x6e,0x6f,0x77])]())[_0x2296f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2296f5([0x2e]),'');let _0x5c5c7a=_0x2296f5([0x4f]);for(let _0x1ae4c5=0x0;_0x1ae4c5<_0x23efcc[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ae4c5+=0x2){let _0x3fe59d=window[_0x2296f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23efcc[_0x2296f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ae4c5,_0x1ae4c5+0x2));_0x3fe59d>=_0x2809a2[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3fe59d-=_0x2809a2[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c5c7a+=_0x2809a2[_0x3fe59d];}return _0x5c5c7a;}function _0x27f7da(){const _0xbef4cd=_0x4e016a[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e]));if(0x3!=_0xbef4cd[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x191320(_0xbef4cd[0x1]);function _0x191320(_0x2fecc6){const _0x14dc51=_0xedf7f4(_0x2fecc6);return _0x14dc51&&_0x5c7027()?_0x14dc51:null;function _0x5c7027(){const _0x5dbbc7=_0x14dc51[_0x2296f5([0x6a,0x74,0x69])],_0x12857e=window[_0x2296f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dbbc7[_0x2296f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dbbc7[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc25daa={..._0x14dc51,[_0x2296f5([0x6a,0x74,0x69])]:_0x5dbbc7[_0x2296f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dbbc7[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc25daa[_0x2296f5([0x76,0x63])],_0x2d87d7(_0xc25daa)==_0x12857e;}}}async function _0x2c084e(){let _0x672588=!0x0;try{const _0x6509f9=_0x4e016a[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e])),[_0x1effe2,_0x49f419,_0x32415b]=_0x6509f9;return _0x56adde(_0x1effe2),await _0x57e4d8(_0x1effe2,_0x49f419,_0x32415b),_0x672588;}catch(_0x48fa90){return!0x1;}function _0x56adde(_0x36610e){const _0x1f58a8=_0xedf7f4(_0x36610e);_0x1f58a8&&_0x1f58a8[_0x2296f5([0x61,0x6c,0x67])]==_0x2296f5([0x45,0x53,0x32,0x35,0x36])||(_0x672588=!0x1);}async function _0x57e4d8(_0x157fd0,_0x4e7e3f,_0x1aa553){const _0x352362=window[_0x2296f5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2296f5([0x66,0x72,0x6f,0x6d])](_0x498867(_0x1aa553),_0x165395=>_0x165395[_0x2296f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x504df3=new window[(_0x2296f5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2296f5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x157fd0+_0x2296f5([0x2e])+_0x4e7e3f),_0x6fb1c=window[_0x2296f5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2296f5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6fb1c)return;const _0x1a776f=await _0x6fb1c[_0x2296f5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2296f5([0x6a,0x77,0x6b]),_0x10a639,{[_0x2296f5([0x6e,0x61,0x6d,0x65])]:_0x2296f5([0x45,0x43,0x44,0x53,0x41]),[_0x2296f5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2296f5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2296f5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6fb1c[_0x2296f5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2296f5([0x6e,0x61,0x6d,0x65])]:_0x2296f5([0x45,0x43,0x44,0x53,0x41]),[_0x2296f5([0x68,0x61,0x73,0x68])]:{[_0x2296f5([0x6e,0x61,0x6d,0x65])]:_0x2296f5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a776f,_0x352362,_0x504df3)||(_0x672588=!0x1);}}function _0xedf7f4(_0x50796e){return _0x50796e[_0x2296f5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2296f5([0x65,0x79]))?JSON[_0x2296f5([0x70,0x61,0x72,0x73,0x65])](_0x498867(_0x50796e)):null;}function _0x498867(_0x24fb9c){return window[_0x2296f5([0x61,0x74,0x6f,0x62])](_0x24fb9c[_0x2296f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2296f5([0x2b]))[_0x2296f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2296f5([0x2f])));}function _0x2d87d7(_0x129d6c){let _0x5542da=0x1505;function _0x398712(_0x40129d){for(let _0x2c8a4b=0x0;_0x2c8a4b<_0x40129d[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c8a4b++){const _0x353f58=_0x40129d[_0x2296f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c8a4b);_0x5542da=(_0x5542da<<0x5)+_0x5542da+_0x353f58,_0x5542da&=_0x5542da;}}function _0x115170(_0x1562bc){Array[_0x2296f5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1562bc)?_0x1562bc[_0x2296f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x115170):_0x1562bc&&typeof _0x1562bc==_0x2296f5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2296f5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1562bc)[_0x2296f5([0x73,0x6f,0x72,0x74])]()[_0x2296f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xdeed05,_0x322595])=>{_0x398712(_0xdeed05),_0x115170(_0x322595);}):_0x398712(window[_0x2296f5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1562bc));}return _0x115170(_0x129d6c),_0x5542da>>>0x0;}function _0xec165a(_0x2fed1e){return _0x2fed1e[_0x2296f5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2296f5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2296f5([0x30]));}function _0x3ecc64(_0x3a1142){return _0x3a1142[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2296f5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2296f5([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c272a(){}function _0x2296f5(_0x475217){return _0x475217['map'](_0x44f032=>String['fromCharCode'](_0x44f032))['join']('');}_0x273394(await _0x52f8a5());}(this);}['_initSchema'](){const _0x26ce7a=this['editor']['model']['schema'];_0x26ce7a['isRegistered']('imageBlock')&&_0x26ce7a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x26ce7a['isRegistered']('imageInline')&&_0x26ce7a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4d6fb3=this['editor'];_0x4d6fb3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4d6fb3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4eb29=>_0x4eb29['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4e14e6=_0x4d6fb3['commands']['get']('replaceImageSource');_0x4e14e6&&this['listenTo'](_0x4e14e6,'cleanupImage',(_0x2dad59,[_0x1c5ede,_0x4ccf86])=>{_0x1c5ede['removeAttribute']('uploadcareImageId',_0x4ccf86);});}['_initConfig'](){const _0x59266a=this['editor']['config']['get']('uploadcare.uploader')||{},_0xc14d05=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x379973(_0x1cff4f['document'],'uc-config',{..._0x59266a,'pubkey':_0xc14d05,'ctx-name':'uploader','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']=_0x13927e=>{if('closeMax'==_0x13927e)return'#uc-icon-arrow-down';},_0x1cff4f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x379973(_0x1cff4f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1cff4f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x53f16e=this['editor']['commands']['get']('insertImage');_0x53f16e&&this['listenTo'](_0x53f16e,'execute',()=>{const _0x24d448=this['editor']['model']['document']['selection']['getSelectedElement']();_0x24d448&&_0x24d448['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x24d448);});});const _0x4ee7a8=this['editor']['commands']['get']('uploadcareImageReplace');_0x4ee7a8&&this['listenTo'](_0x4ee7a8,'execute',()=>{const _0x595132=this['editor']['model']['document']['selection']['getSelectedElement']();_0x595132&&_0x595132['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x595132);});});}}class u extends _0x1dd4a0{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3499ec){super(_0x3499ec),_0x3499ec['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x44de83['defineComponents'](_0x44de83);}}class ta extends _0x1fa2e2{constructor(_0x2d7ba7){super(_0x2d7ba7);const t=_0x2d7ba7['t'],_0x27ce46=this['bindTemplate'],_0x513e5f=new _0x11ebe3();_0x513e5f['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':[_0x513e5f,{'text':_0x27ce46['to']('imageUploadProgress',_0x3fdded=>t('Loading\x20image...')+'\x20('+(_0x3fdded||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 rt extends _0x1fa2e2{constructor(_0x410c87){super(_0x410c87);const t=_0x410c87['t'];this['set']('errorType',null);const _0x583d53=new _0x16b6ef(_0x410c87);_0x583d53['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x583d53['withText']=!0x0,_0x583d53['class']='ck-button-action',_0x583d53['on']('execute',()=>{this['fire']('retry');}),_0x583d53['bind']('isVisible')['to'](this,'errorType',_0x3114ab=>'NotFound'!==_0x3114ab);const _0x3ed5b0=new at();_0x3ed5b0['content']=et,_0x3ed5b0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x11415e=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':[_0x3ed5b0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x11415e['to']('errorType',_0x4db2cb=>t('NotFound'!==_0x4db2cb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x583d53]},{'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 tt extends _0x1fa2e2{constructor(_0x17391b,_0x1863ff){super(_0x17391b);const _0x29436d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1863ff,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x29436d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2ffe31,_0x23f942,_0x2d3b6f){super(_0x2ffe31),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2ffe31),this['_errorView']=new rt(_0x2ffe31),this['_editingView']=new tt(_0x2ffe31,_0x2d3b6f),this['_focusableView']=new _0x1fa2e2(_0x2ffe31),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x23f942),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'],_0x23f2d8=>{this['_addUploadcareImageEditorListeners'](_0x23f2d8);});}),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'](_0x2395c5,_0x38ff9a){const _0x5ebbe4='uc-cloud-image-editor',_0x25d9e9=_0x2395c5['querySelector'](_0x5ebbe4);if(_0x25d9e9)return _0x38ff9a(_0x25d9e9);const _0x58a3be=new MutationObserver(_0x4f073c=>{const _0x5d9bcf=_0x4f073c['filter'](_0x502e95=>_0x502e95['target']===_0x2395c5&&_0x502e95['addedNodes']['length']>0x0&&_0x502e95['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5ebbe4);_0x5d9bcf['length']&&(_0x58a3be['disconnect'](),_0x38ff9a(_0x5d9bcf[0x0]['addedNodes'][0x0]));});_0x58a3be['observe'](_0x2395c5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x42d7ba){_0x42d7ba['addEventListener']('apply',_0x1e88ea=>{this['fire']('apply',{'imageSrc':_0x1e88ea['detail']['cdnUrl']});}),_0x42d7ba['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x31b995(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5302a5,_0xbc0ae5,_0x8371d6){super(),this['_editor']=_0x5302a5,this['_dialog']=_0xbc0ae5,this['_imageElement']=_0x8371d6,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 _0x52a2dd=this['_imageElement'],_0x10ae4a=_0x52a2dd['getAttribute']('uploadcareImageId'),_0xef33f8=_0x52a2dd['getAttribute']('src');if(_0x10ae4a)await this['_loadImageInfo'](_0x10ae4a,_0xef33f8);else{if(this['_imageCache']['has'](_0xef33f8)){const _0x544db0=this['_imageCache']['get'](_0xef33f8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x544db0['url'],this['imageDimension']=_0x544db0['dimension'],this['imageId']=_0x544db0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x47073b}=this['_editor'],t=_0x47073b['t'],_0x8b1491=new Z(_0x47073b,this['imageStatus'],this['_attributes']);_0x8b1491['bind']('status')['to'](this,'imageStatus'),_0x8b1491['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x8b1491['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x8b1491['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x8b1491,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x56a8ab,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x8b1491,'position':_0x1c3d19['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x8b1491['focus']();},'onHide':()=>{_0x8b1491['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x588a12=>!F(_0x588a12,_0x8b1491['element'])}});}['_loadImageInfo'](_0x3aa8e8,_0x2d2c6e){return C['getInfo'](_0x3aa8e8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x549c70=>{const {width:_0x5ecaa7,height:_0x44c8b8}=_0x549c70['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d2c6e,this['imageDimension']={'width':_0x5ecaa7,'height':_0x44c8b8},this['imageId']=_0x3aa8e8;})['catch'](_0xcae8a2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xcae8a2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x52ba99,_0x40df70){return this['_getImageAsFile'](_0x52ba99)['then'](_0xca12f7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x40df70['signal'],'file':_0xca12f7,'onProgress':_0x3d6f68=>{_0x3d6f68&&_0x3d6f68['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3d6f68['value']));}}))['then'](_0x14955c=>{const {width:_0x359d1a,height:_0x32ceef}=_0x14955c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14955c['cdnUrl'],this['imageDimension']={'width':_0x359d1a,'height':_0x32ceef},this['imageId']=_0x14955c['uuid'],this['imageUploadProgress']=null;const _0x3f0b7e=_0x52ba99['getAttribute']('src');this['_imageCache']['set'](_0x3f0b7e,{'id':_0x14955c['uuid'],'url':_0x14955c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x46bde6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x46bde6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xd19539,_0x5e0b6f){_0xd19539['on']('apply',(_0x57b3f4,_0x20e8cd)=>{this['_replaceImage'](_0x5e0b6f,_0x20e8cd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xd19539['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xd19539['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3fe5c9,_0x39ba6f,_0x366895){const _0x9da0e4=this['_editor'],{width:_0x258452,height:_0x59bff1}=A(_0x39ba6f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x16a1a4,imageSources:_0x19299e}=E(_0x39ba6f,_0x258452);_0x9da0e4['model']['change'](_0xf7d8d7=>{if('$graveyard'===_0x3fe5c9['root']['rootName']){_0x9da0e4['execute']('insertImage',{'imageType':_0x3fe5c9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3fe5c9['getAttributes']()),'uploadcareImageId':_0x366895,'src':_0x16a1a4,'sources':_0x19299e,'width':_0x258452,'height':_0x59bff1}});const _0x510199=_0x3fe5c9['getChildren']();_0x3fe5c9=_0x9da0e4['model']['document']['selection']['getSelectedElement']();for(const _0x599273 of _0x510199)_0xf7d8d7['append'](_0xf7d8d7['cloneElement'](_0x599273),_0x3fe5c9);}else _0xf7d8d7['setSelection'](_0x3fe5c9,'on'),_0x9da0e4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3fe5c9['getAttributes']()),'uploadcareImageId':_0x366895,'src':_0x16a1a4,'sources':_0x19299e,'width':_0x258452,'height':_0x59bff1},_0x3fe5c9);_0xf7d8d7['setSelection'](_0x3fe5c9,'on');});}async['_getImageAsFile'](_0x2f8747){const _0x3dfdb3=_0x1cff4f['window'],_0x3d5368=_0x1cff4f['document']['location']['href'],_0x124949=new _0x3dfdb3['URL'](_0x2f8747['getAttribute']('src'),_0x3d5368);if('data:'===_0x124949['protocol']){const _0x454616=_0x124949['href']['split'](','),_0x30b387=_0x454616[0x0]['match'](/:(.*?);/)[0x1],_0x432e81=_0x30b387['split']('/')[0x1],_0x30df7a=_0x3dfdb3['atob'](_0x454616[_0x454616['length']-0x1]);let _0x12e878=_0x30df7a['length'];const _0x3d73a6=new _0x3dfdb3['Uint8Array'](_0x12e878);for(;_0x12e878--;)_0x3d73a6[_0x12e878]=_0x30df7a['charCodeAt'](_0x12e878);return new _0x3dfdb3['File']([_0x3d73a6],'image.'+_0x432e81,{'type':_0x30b387});}const _0x19c1b3=_0x124949['href']['split']('/'),_0x16fbf4=_0x19c1b3[_0x19c1b3['length']-0x1],_0x110dac=_0x16fbf4['split']('.')[0x1];return _0x3dfdb3['fetch'](_0x124949['href'])['then'](_0x3b5034=>_0x3b5034['clone']()['blob']())['then'](_0x4f377f=>new _0x3dfdb3['File']([_0x4f377f],_0x16fbf4,{'type':'image/'+_0x110dac}));}}class J extends _0x3f38b4{['imageEditController'];static get['requires'](){return[_0x5c5908];}['_isEditable'];constructor(_0x99f578){super(_0x99f578),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x112ed3){const _0x3f448d=V(_0x112ed3);return _0x48b6aa=>!(!_0x48b6aa||!_0x48b6aa['is']('element','imageBlock')&&!_0x48b6aa['is']('element','imageInline'))&&(!!_0x48b6aa['hasAttribute']('uploadcareImageId')||!!_0x48b6aa['hasAttribute']('src')&&_0x3f448d(_0x48b6aa['getAttribute']('src')));}(_0x99f578['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5548b6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5548b6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x559455=this['editor']['model']['document']['selection']['getSelectedElement']();_0x559455&&(_0x559455['is']('element','imageBlock')||_0x559455['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x5c5908),_0x559455),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3f38b4{['refresh'](){const _0x26f0b7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x26f0b7&&(_0x26f0b7['is']('element','imageBlock')||_0x26f0b7['is']('element','imageInline')));}['execute'](_0x2e89f2){const _0x36a679=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x295ae0=>{_0x295ae0['setAttributes'](_0x2e89f2,_0x36a679),_0x295ae0['removeAttribute']('srcset',_0x36a679),_0x295ae0['removeAttribute']('sizes',_0x36a679);});}}class g extends _0x1dd4a0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x43e758,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x291ce8}=this;_0x291ce8['commands']['add']('uploadcareImageEdit',new J(_0x291ce8)),_0x291ce8['commands']['add']('uploadcareImageReplace',new O(_0x291ce8));}}class j extends _0x1dd4a0{['_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 _0xff4561=this['editor'];_0xff4561['ui']['componentFactory']['add']('uploadcareImageEdit',_0x100334=>{const _0x558767=_0xff4561['commands']['get']('uploadcareImageEdit'),_0x143343=new _0x16b6ef(_0x100334),t=_0x100334['t'];return _0x143343['set']({'icon':_0x56a8ab,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x143343['bind']('isEnabled')['to'](_0x558767),_0x143343['bind']('isOn')['to'](_0x558767,'isActive'),this['listenTo'](_0x143343,'execute',()=>{_0xff4561['execute']('uploadcareImageEdit'),_0xff4561['editing']['view']['focus']();}),_0x143343;}),this['_initConfig']();}['_initConfig'](){const _0x480b96=_0x379973(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x480b96),this['listenTo'](this['editor'],'destroy',()=>{_0x480b96['remove']();});}}class P extends _0x1dd4a0{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x4b5dae,Command as _0x2d6e30}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x428b39,IconGooglePhotos as _0x302235,IconGoogleDrive as _0x1c021a,IconFacebook as _0x1e7481,IconDropbox as _0x5b6241,IconUploadcareLink as _0x266494,IconUploadcareImageUpload as _0xcda05e,IconError as et,IconUploadcareImageEdit as _0x3286bc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5b135a,MenuBarMenuListItemButtonView as _0x3ad2a2,View as _0x59fe41,FocusCycler as _0x4bfb71,Dialog as _0x479dff,DialogViewPosition as _0x4d9a9c,SpinnerView as _0x297138,IconView as at,Notification as _0x1af4bd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5f26ab,DomEmitterMixin as _0xeef5d2,global as _0x384f3e,getAncestors as _0x4d0029,ObservableMixin as _0xdebd4b,createElement as _0x13355f,uid as _0x5198ba}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5b1e19}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3ba42e,info as _0x2d41ba}from'@uploadcare/upload-client';import*as _0x2dda33 from'@uploadcare/file-uploader';var o=function(_0xcc08b4){return _0xcc08b4['Local']='local',_0xcc08b4['URL']='url',_0xcc08b4['Dropbox']='dropbox',_0xcc08b4['GDrive']='gdrive',_0xcc08b4['Facebook']='facebook',_0xcc08b4['GPhotos']='gphotos',_0xcc08b4['OneDrive']='onedrive',_0xcc08b4;}({});function _(_0x11d347,_0x5c3d86,_0x1c0411){const t=_0x11d347['t'],_0x4762e5=_0x11d347['t'];switch(_0x5c3d86){case o['Local']:return{'text':_0x4762e5('Insert'===_0x1c0411?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4762e5('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x1c0411?_0x4762e5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4762e5('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x1c0411?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x1c0411?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x1c0411?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x1c0411?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x1c0411?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5c3d86;}}class e extends _0x4b5dae{['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 _0x446307=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2504fa;for(const _0x1c4f50 in _0x446307){const _0x45ffeb=_0x1c4f50,_0x489c36=_0x446307[_0x45ffeb];if('uploadcareLicenseKeyValid'==_0x489c36||'uploadcareLicenseKeyInvalid'==_0x489c36||'uploadcareLicenseKeyExpired'==_0x489c36||'uploadcareLicenseKeyDomainLimit'==_0x489c36||'uploadcareLicenseKeyNotAllowed'==_0x489c36||'uploadcareLicenseKeyEvaluationLimit'==_0x489c36||'uploadcareLicenseKeyTrialLimit'==_0x489c36||'uploadcareLicenseKeyUsageLimit'==_0x489c36){delete _0x446307[_0x45ffeb],_0x2504fa=_0x489c36,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2504fa&&_0x446307['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2504fa&&_0x446307['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2504fa&&_0x446307['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2504fa&&_0x446307['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2504fa&&_0x446307['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2504fa&&_0x446307['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2504fa&&_0x446307['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xe5d8d4}=this,_0x456e41=_0xe5d8d4['commands']['get']('uploadcare');if(!_0x456e41)return;const _0x2bf7d9=this['_normalizeConfigSourceList'](_0xe5d8d4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5c4a76,_0x4b72fb)=>{const _0x393623=this['_getIntegrationKey'](_0x4b72fb['type']);return _0x5c4a76[_0x393623]||(_0x5c4a76[_0x393623]=[]),_0x5c4a76[_0x393623]['push'](_0x4b72fb),_0x5c4a76;},{});_0xe5d8d4['plugins']['has']('ImageInsertUI')&&_0xe5d8d4['commands']['get']('uploadcare')&&Object['entries'](_0x2bf7d9)['forEach'](([_0x1d9122,_0x520f5f])=>{_0xe5d8d4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1d9122,'observable':()=>_0x456e41,'buttonViewCreator':()=>this['_createToolbarButton'](_0x520f5f),'formViewCreator':()=>this['_createDropdownButtons'](_0x520f5f),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x520f5f),'override':'assetManager'!==_0x1d9122});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x35cdea){const {locale:_0x40b472}=this['editor'];return _0x35cdea['map'](_0x52a3e0=>{const _0x33dc30=_(_0x40b472,_0x52a3e0,'Insert');switch(_0x52a3e0){case o['Local']:return{'icon':_0xcda05e,'type':o['Local'],..._0x33dc30};case o['URL']:return{'icon':_0x266494,'type':o['URL'],..._0x33dc30};case o['Dropbox']:return{'icon':_0x5b6241,'type':o['Dropbox'],..._0x33dc30};case o['Facebook']:return{'icon':_0x1e7481,'type':o['Facebook'],..._0x33dc30};case o['GDrive']:return{'icon':_0x1c021a,'type':o['GDrive'],..._0x33dc30};case o['GPhotos']:return{'icon':_0x302235,'type':o['GPhotos'],..._0x33dc30};case o['OneDrive']:return{'icon':_0x428b39,'type':o['OneDrive'],..._0x33dc30};}});}['_getIntegrationKey'](_0x449366){switch(_0x449366){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x58ef72,_0x5c7ce2){const _0x399027=this['editor'],_0xf9b879=new _0x58ef72(_0x399027['locale']),_0x20d71f=_0x399027['commands']['get']('uploadcare');return _0xf9b879['bind']('isEnabled')['to'](_0x20d71f),_0xf9b879['on']('execute',()=>{_0x20d71f['execute'](_0x5c7ce2);}),_0xf9b879;}['_createToolbarButton'](_0x5c1739){const {locale:_0x4ab98e}=this['editor'],_0x1cc5bc=this['editor']['plugins']['get']('ImageInsertUI'),_0x195d54=_0x5c1739[0x0],_0x5a8214=this['_createButton'](_0x5b135a,_0x195d54['type']);return _0x5a8214['icon']=_0x195d54['icon'],_0x5a8214['bind']('label')['to'](_0x1cc5bc,'isImageSelected',_0x459598=>_(_0x4ab98e,_0x195d54['type'],_0x459598?'Replace':'Insert')['text']),_0x5a8214['tooltip']=!0x0,_0x5a8214;}['_createDropdownButtons'](_0x37924b){const {locale:_0x1c155e}=this['editor'],_0x227070=this['editor']['plugins']['get']('ImageInsertUI');return _0x37924b['map'](_0x3becaa=>{const _0x62820a=this['_createButton'](_0x5b135a,_0x3becaa['type']);return _0x62820a['withText']=!0x0,_0x62820a['icon']=_0x3becaa['icon'],_0x62820a['bind']('label')['to'](_0x227070,'isImageSelected',_0x421d0a=>_(_0x1c155e,_0x3becaa['type'],_0x421d0a?'Replace':'Insert')['text']),_0x62820a;});}['_createMenuBarButtons'](_0x3b7b03){return _0x3b7b03['map'](_0x3c5353=>{const _0x9a10ff=this['_createButton'](_0x3ad2a2,_0x3c5353['type']);return _0x9a10ff['icon']=_0x3c5353['icon'],_0x9a10ff['label']=_0x3c5353['shortText'],_0x9a10ff;});}}class q extends _0x59fe41{['focusTracker'];['focusCycler'];constructor(_0x578d79){super(_0x578d79),this['focusTracker']=new _0x5f26ab(),this['focusCycler']=new _0x4bfb71({'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 S extends q{constructor(_0x60e345){super(_0x60e345),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x13f255,_0x3bade0){const _0x5509dd=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3dbc40=>_0x3dbc40<=_0x3bade0)['map'](_0x127558=>_0x13f255['replace'](/\/$/,'')+'/-/resize/'+_0x127558+'x/\x20'+_0x127558+'w');return{'imageFallbackUrl':_0x13f255,'imageSources':[{'srcset':_0x5509dd['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3bade0+'px)\x20100vw,\x20'+_0x3bade0+'px','type':'image/webp'}]};}function A(_0x10e46d,_0x36556b,_0xac1e63){const _0x372037=_0x10e46d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x372037?parseInt(_0x372037[0x1],0xa):_0x36556b,'height':_0x372037?parseInt(_0x372037[0x2],0xa):_0xac1e63};}function m(_0x3426e0,_0x2b0436){const _0x32d303=Object['create'](_0xeef5d2),_0x17a490=_0x3426e0['plugins']['get']('ImageUtils'),_0x4b8ffa=_0x3426e0['editing']['mapper']['toViewElement'](_0x2b0436),_0x1497eb=_0x17a490['findViewImgElement'](_0x4b8ffa),_0x6686b1=_0x3426e0['editing']['view']['domConverter']['viewToDom'](_0x1497eb),_0x568ebb=_0x2b0436['getAttribute']('width'),_0x3c3738=_0x2b0436['getAttribute']('height'),_0x146943='image-processing';_0x3426e0['editing']['view']['change'](_0x6df7d=>{_0x6df7d['addClass'](_0x146943,_0x4b8ffa),_0x6df7d['setStyle']('aspect-ratio',_0x568ebb+'/'+_0x3c3738,_0x1497eb);}),_0x32d303['listenTo'](_0x6686b1,'load',()=>{_0x32d303['stopListening'](_0x6686b1,'load'),_0x3426e0['editing']['view']['change'](_0x51b55e=>{_0x51b55e['removeClass'](_0x146943,_0x4b8ffa),_0x51b55e['removeStyle']('aspect-ratio',_0x1497eb);});});}function V(_0x2155fc){if(Array['isArray'](_0x2155fc)){const _0x2d779b=_0x2155fc['map'](V);return _0x4e3c5c=>_0x2d779b['some'](_0x1f9dda=>_0x1f9dda(_0x4e3c5c));}if('origin'==_0x2155fc){const _0x21c00e=_0x384f3e['window']['location']['origin'];return _0x426714=>new URL(_0x426714,_0x384f3e['document']['baseURI'])['origin']==_0x21c00e;}return'function'==typeof _0x2155fc?_0x2155fc:_0x2155fc instanceof RegExp?_0x3730=>!(!_0x3730['match'](_0x2155fc)&&!_0x3730['replace'](/^https?:\/\//,'')['match'](_0x2155fc)):()=>!0x1;}function F(_0x3c3cad,_0xbcb2a2){return _0x4d0029(_0x3c3cad['target'])['includes'](_0xbcb2a2);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xdebd4b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1b311c,_0x5a92a3,_0x28c17c){super(),this['_editor']=_0x1b311c,this['_editing']=_0x5a92a3,this['_dialog']=_0x1b311c['plugins']['get'](_0x479dff),this['_api']=_0x5a92a3['ctxElement']['getAPI'](),this['_type']=_0x28c17c,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:_0x396261,model:_0xe968b8}=this['_editor'],_0x1b682f=_0xe968b8['document']['selection']['getSelectedElement'](),_0x1d8ce9=_0x1b682f&&(_0x1b682f['is']('element','imageBlock')||_0x1b682f['is']('element','imageInline'));this['_formView']=new S(_0x396261),this['_dialog']['show']({'id':'uploadCare','icon':_0xcda05e,'title':_(_0x396261,this['_type'],_0x1d8ce9?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4d9a9c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2880d3=>!F(_0x2880d3,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x50f77e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x191955=>{const _0x4ae014=_0x50f77e['length'];for(const _0x35b57a of _0x50f77e){const _0x3c4636=_0x35b57a===_0x50f77e[_0x4ae014-0x1],{cdnUrl:_0x5507b7,fileInfo:_0x2ed8bb}=_0x35b57a;if(!_0x5507b7||!_0x2ed8bb)continue;const {width:_0x5ac1c3,height:_0x49d6e5}=_0x2ed8bb['imageInfo'],_0x5e9151=A(_0x5507b7,_0x5ac1c3,_0x49d6e5),_0x4a33c8=E(_0x5507b7,_0x5e9151['width']),_0xe39a25={'id':_0x2ed8bb['uuid'],'type':'image','attributes':{'imageDimension':_0x5e9151,..._0x4a33c8}};this['_insertAsset'](_0xe39a25,_0x3c4636,_0x191955);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x27e8a9=>{'idle'===_0x27e8a9['detail']['status']&&!_0x27e8a9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4e8296,_0x406bbc,_0x4c99e7){const _0x223799=this['_editor']['model']['document']['selection'],_0x5b229d=_0x223799['getSelectedElement'](),_0x2c118d=!(!_0x5b229d||!_0x5b229d['is']('element','imageInline'));_0x4c99e7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4e8296,_0x2c118d),_0x406bbc||_0x4c99e7['setSelection'](_0x223799['getLastPosition']());}['_insertImage'](_0x5de709,_0x409760){const _0x1ea939=this['_editor'],{imageDimension:_0x58e1c2,imageFallbackUrl:_0x506503,imageSources:_0xfee8ba}=_0x5de709['attributes'];_0x1ea939['execute']('insertImage',{'imageType':_0x409760?'imageInline':null,'source':{'uploadcareImageId':_0x5de709['id'],'src':_0x506503,'sources':_0xfee8ba,..._0x58e1c2}});}}class n extends _0x2d6e30{['_editing'];['_controller']=null;static get['requires'](){return[_0x479dff,i];}constructor(_0x5b2251){super(_0x5b2251),this['_editing']=_0x5b2251['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x424c6e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x424c6e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x217bf7,publicKey:_0x151af9,signal:_0x402086,onProgress:_0x52e3c2}){return _0x3ba42e(_0x217bf7,{'publicKey':_0x151af9,'store':'auto','signal':_0x402086,'onProgress':_0x52e3c2});}static['getInfo'](_0x406b4d,_0x19406f){return _0x2d41ba(_0x406b4d,_0x19406f);}}class p extends _0x4b5dae{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5b1e19,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x11f621=this['editor'];if(!!!_0x11f621['config']['get']('uploadcare'))return;_0x11f621['plugins']['get'](_0x5b1e19)['createUploadAdapter']=_0x142dfd=>new x(_0x142dfd,_0x11f621),_0x11f621['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x451374,{imageElement:_0x380fd7,data:_0x201b01})=>{_0x11f621['model']['change'](_0xca8002=>{_0xca8002['setAttribute']('uploadcareImageId',_0x201b01['uploadcareImageId'],_0x380fd7);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x30ddb8,_0xc01fc7){this['loader']=_0x30ddb8,this['editor']=_0xc01fc7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x542d55=this['editor']['config']['get']('uploadcare.pubkey'),_0x2317a4=await this['loader']['file'];return C['upload']({'file':_0x2317a4,'publicKey':_0x542d55,'signal':this['controller']['signal'],'onProgress':_0x4581f6=>{_0x4581f6&&_0x4581f6['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4581f6['value']);}})['then'](async _0x540154=>{const {imageFallbackUrl:_0x378c14,imageSources:_0x58f8ec}=E(_0x540154['cdnUrl'],_0x540154['imageInfo']['width']);return{'uploadcareImageId':_0x540154['uuid'],'default':_0x378c14,'sources':_0x58f8ec};})['catch'](()=>{const _0x5ac073=t('Cannot\x20upload\x20file:')+('\x20'+_0x2317a4['name']+'.');return Promise['reject'](_0x5ac073);});}['abort'](){this['controller']['abort']();}}class i extends _0x4b5dae{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x479dff];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4a151e=this['editor'];_0x4a151e['commands']['add']('uploadcare',new n(_0x4a151e));}['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 _0x83e14c=_0x384f3e['document']['querySelector']('input[uploadcare-file-input]');_0x83e14c&&_0x83e14c['remove']();}),async function(_0x2262b1){const _0x33d361=_0x2c066a([0x48,0x46,0x66,0x71,0x30,0x58,0x77,0x4f,0x38,0x39,0x75,0x63,0x70,0x37,0x55,0x32,0x6d,0x59,0x69,0x7a,0x41,0x5a,0x65,0x47,0x4e,0x6a,0x50,0x79,0x44,0x68,0x6f,0x52,0x49,0x61,0x78,0x6b,0x4d,0x34,0x6c,0x56,0x62,0x76,0x45,0x4a,0x43,0x4c,0x73,0x53,0x6e,0x54,0x74,0x42,0x51,0x64,0x35,0x57,0x67,0x31,0x72,0x4b,0x36,0x33]),_0x1f41a1=0x6c05469,_0x570495=0x6c73019^_0x1f41a1,_0x1e3c0c=window[_0x2c066a([0x44,0x61,0x74,0x65])][_0x2c066a([0x6e,0x6f,0x77])](),_0x53d87a=_0x2262b1[_0x2c066a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2913b2=new window[(_0x2c066a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cb662=>{_0x53d87a[_0x2c066a([0x6f,0x6e,0x63,0x65])](_0x2c066a([0x72,0x65,0x61,0x64,0x79]),_0x5cb662);}),_0x43fd66={[_0x2c066a([0x6b,0x74,0x79])]:_0x2c066a([0x45,0x43]),[_0x2c066a([0x75,0x73,0x65])]:_0x2c066a([0x73,0x69,0x67]),[_0x2c066a([0x63,0x72,0x76])]:_0x2c066a([0x50,0x2d,0x32,0x35,0x36]),[_0x2c066a([0x78])]:_0x2c066a([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]),[_0x2c066a([0x79])]:_0x2c066a([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]),[_0x2c066a([0x61,0x6c,0x67])]:_0x2c066a([0x45,0x53,0x32,0x35,0x36])},_0x1c5243=_0x53d87a[_0x2c066a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c066a([0x67,0x65,0x74])](_0x2c066a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2f5a19(){let _0x3cbb70,_0x32612f=null,_0xfbaac=null;try{if(_0x1c5243==_0x2c066a([0x47,0x50,0x4c]))return _0x2c066a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3cbb70=_0x1846e5(),!_0x3cbb70)return _0x2c066a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3cbb70[_0x2c066a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xfbaac=_0x3a7745(_0x3cbb70[_0x2c066a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3cbb70[_0x2c066a([0x6a,0x74,0x69])])),await _0x9e2b8f()?_0x2fbc46()?_0x21990d()?_0x2c066a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x892044()?(_0x3cbb70[_0x2c066a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c066a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32612f=_0x1b8fa8(_0x2c066a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3cbb70[_0x2c066a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c066a([0x74,0x72,0x69,0x61,0x6c])&&(_0x32612f=_0x1b8fa8(_0x2c066a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x149397()):_0x2c066a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c066a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c066a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x52c35d){return _0x2c066a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x21990d(){const _0x343b52=[_0x2c066a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c066a([0x74,0x72,0x69,0x61,0x6c])][_0x2c066a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cbb70[_0x2c066a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e3c0c/0x3e8:0xe10*_0x570495;return _0x3cbb70[_0x2c066a([0x65,0x78,0x70])]<_0x343b52;}function _0x2fbc46(){const _0x565618=_0x3cbb70[_0x2c066a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x565618&&(!!_0x565618[_0x2c066a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c066a([0x2a]))||!!_0x565618[_0x2c066a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c066a([0x55,0x50,0x4c,0x43])));}function _0x892044(){const _0x47fbc4=_0x3cbb70[_0x2c066a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47fbc4||0x0==_0x47fbc4[_0x2c066a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ce7bc}=new URL(window[_0x2c066a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47fbc4[_0x2c066a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ce7bc))return!0x0;const _0x48f839=_0x4ce7bc[_0x2c066a([0x73,0x70,0x6c,0x69,0x74])](_0x2c066a([0x2e]));return _0x47fbc4[_0x2c066a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x547480=>_0x547480[_0x2c066a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c066a([0x2a])))[_0x2c066a([0x6d,0x61,0x70])](_0x47ee44=>_0x47ee44[_0x2c066a([0x73,0x70,0x6c,0x69,0x74])](_0x2c066a([0x2e])))[_0x2c066a([0x73,0x6f,0x6d,0x65])](_0x538cc0=>_0x48f839[_0x2c066a([0x65,0x76,0x65,0x72,0x79])]((_0x3ae020,_0x2c7d2e)=>_0x538cc0[_0x2c7d2e]===_0x3ae020||_0x538cc0[_0x2c7d2e]===_0x2c066a([0x2a])));}function _0x149397(){return _0x32612f&&_0xfbaac?new window[(_0x2c066a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c5399,_0x5217f0)=>{_0x32612f[_0x2c066a([0x74,0x68,0x65,0x6e])](_0x1c5399,_0x5217f0),_0xfbaac[_0x2c066a([0x74,0x68,0x65,0x6e])](_0x300cba=>{_0x300cba!=_0x2c066a([0x56,0x61,0x6c,0x69,0x64])&&_0x1c5399(_0x300cba);},_0x5217f0);}):_0x32612f||_0xfbaac||_0x2c066a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a7745(_0x39e203,_0x1603db){return new window[(_0x2c066a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32a328=>{if(_0x1a0502())return _0x32a328(_0x2c066a([0x56,0x61,0x6c,0x69,0x64]));_0x3a5aaf(),_0x53d87a[_0x2c066a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c066a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x76162a=!0x1;const _0x541e0a=_0x5198ba();function _0x3613e4(_0x4f9e1f){return!!_0x4f9e1f&&(typeof _0x4f9e1f===_0x2c066a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f9e1f===_0x2c066a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f9e1f[_0x2c066a([0x74,0x68,0x65,0x6e])]===_0x2c066a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f9e1f[_0x2c066a([0x63,0x61,0x74,0x63,0x68])]===_0x2c066a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x43f9ae(_0x31d2af){_0x4f8722(_0x31d2af)[_0x2c066a([0x74,0x68,0x65,0x6e])](_0x1bc3da=>{if(!_0x1bc3da||_0x1bc3da[_0x2c066a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c066a([0x6f,0x6b]))return _0x2c066a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x114e39(_0x3c74de(_0x541e0a+_0x1603db))!=_0x1bc3da[_0x2c066a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c066a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c066a([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c066a([0x74,0x68,0x65,0x6e])](_0x568af9=>(_0x914631(),_0x568af9),()=>{const _0x50baf2=_0x299073();return null==_0x50baf2?(_0x914631(),_0x2c066a([0x56,0x61,0x6c,0x69,0x64])):_0x2c066a(_0x1e3c0c-_0x50baf2>(0x22ccd069^_0x1f41a1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c066a([0x74,0x68,0x65,0x6e])](_0x32a328)[_0x2c066a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x32a328(_0x2c066a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2655f9=0x6f6bae9^_0x1f41a1;function _0x914631(){const _0xb67292=_0x2c066a([0x6c,0x6c,0x63,0x74,0x2d])+_0x114e39(_0x3c74de(_0x39e203)),_0x340d8e=_0x5bc88e(_0x114e39(window[_0x2c066a([0x4d,0x61,0x74,0x68])][_0x2c066a([0x63,0x65,0x69,0x6c])](_0x1e3c0c/_0x2655f9)));window[_0x2c066a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c066a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb67292,_0x340d8e);}function _0x299073(){const _0x3b6b6d=_0x2c066a([0x6c,0x6c,0x63,0x74,0x2d])+_0x114e39(_0x3c74de(_0x39e203)),_0x54b6ce=window[_0x2c066a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c066a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b6b6d);return _0x54b6ce?window[_0x2c066a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bc88e(_0x54b6ce),0x10)*_0x2655f9:null;}function _0x4f8722(_0x3e09bb){return new window[(_0x2c066a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ba9c0,_0x57433a)=>{_0x3e09bb[_0x2c066a([0x74,0x68,0x65,0x6e])](_0x1ba9c0,_0x57433a),window[_0x2c066a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x57433a,0x6c180a9^_0x1f41a1);});}}_0x53d87a[_0x2c066a([0x6f,0x6e])](_0x2c066a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43d093,_0xaac5a)=>{if(_0xaac5a[0x0]!=_0x39e203)return _0x32a328(_0x2c066a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xaac5a[0x1]={..._0xaac5a[0x1],[_0x2c066a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x541e0a};},{[_0x2c066a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c066a([0x68,0x69,0x67,0x68])}),_0x53d87a[_0x2c066a([0x6f,0x6e])](_0x2c066a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e3328=>{_0x3613e4(_0x4e3328[_0x2c066a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x76162a=!0x0,_0x43f9ae(_0x4e3328[_0x2c066a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c066a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c066a([0x6c,0x6f,0x77])}),_0x2913b2[_0x2c066a([0x74,0x68,0x65,0x6e])](()=>{_0x76162a||_0x32a328(_0x2c066a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a0502(){return _0x53d87a[_0x2c066a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c066a([0x76,0x69,0x65,0x77])][_0x2c066a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c066a([0x61,0x75,0x74,0x6f]);}function _0x3a5aaf(){_0x53d87a[_0x2c066a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c066a([0x76,0x69,0x65,0x77])][_0x2c066a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c066a([0x61,0x75,0x74,0x6f]);}}function _0x1b8fa8(_0x564a67){const _0x35e3b3=[new window[(_0x2c066a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36f34f=>setTimeout(_0x36f34f,0x6c96aa5^_0x1f41a1)),_0x2913b2[_0x2c066a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c066a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xde45b=>{let _0xd7fda6=0x0;_0x53d87a[_0x2c066a([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c066a([0x6f,0x6e])](_0x2c066a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ed771,_0x3b510)=>{_0x3b510[0x0][_0x2c066a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd7fda6++,_0xd7fda6==(0x6c05591^_0x1f41a1)&&(_0xde45b(),_0x1ed771[_0x2c066a([0x6f,0x66,0x66])]());});}))];return window[_0x2c066a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c066a([0x72,0x61,0x63,0x65])](_0x35e3b3)[_0x2c066a([0x74,0x68,0x65,0x6e])](()=>_0x564a67);}async function _0x46b000(){await _0x2913b2,_0x53d87a[_0x2c066a([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c066a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8e5d5a,_0x53d87a[_0x2c066a([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c066a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8e5d5a,_0x53d87a[_0x2c066a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c066a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xe046c6(_0x4e0f7d){const _0x4436b5=_0x1a518b();_0x53d87a[_0x4436b5]=_0x2c066a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e0f7d,_0x4e0f7d!=_0x2c066a([0x56,0x61,0x6c,0x69,0x64])&&_0x46b000();}function _0x1a518b(){const _0x412bf2=window[_0x2c066a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c066a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c066a([0x6e,0x6f,0x77])]())[_0x2c066a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c066a([0x2e]),'');let _0x3d4f7c=_0x2c066a([0x48]);for(let _0x1eb21f=0x0;_0x1eb21f<_0x412bf2[_0x2c066a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1eb21f+=0x2){let _0x21bed9=window[_0x2c066a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x412bf2[_0x2c066a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1eb21f,_0x1eb21f+0x2));_0x21bed9>=_0x33d361[_0x2c066a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x21bed9-=_0x33d361[_0x2c066a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d4f7c+=_0x33d361[_0x21bed9];}return _0x3d4f7c;}function _0x1846e5(){const _0xbf7fba=_0x1c5243[_0x2c066a([0x73,0x70,0x6c,0x69,0x74])](_0x2c066a([0x2e]));if(0x3!=_0xbf7fba[_0x2c066a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd1534c(_0xbf7fba[0x1]);function _0xd1534c(_0x4ab5e5){const _0x3fb2d7=_0x3ffdcc(_0x4ab5e5);return _0x3fb2d7&&_0x1789d5()?_0x3fb2d7:null;function _0x1789d5(){const _0x2f0901=_0x3fb2d7[_0x2c066a([0x6a,0x74,0x69])],_0x23d705=window[_0x2c066a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f0901[_0x2c066a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f0901[_0x2c066a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f68f6={..._0x3fb2d7,[_0x2c066a([0x6a,0x74,0x69])]:_0x2f0901[_0x2c066a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f0901[_0x2c066a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f68f6[_0x2c066a([0x76,0x63])],_0x3c74de(_0x2f68f6)==_0x23d705;}}}async function _0x9e2b8f(){let _0x4235b9=!0x0;try{const _0x288691=_0x1c5243[_0x2c066a([0x73,0x70,0x6c,0x69,0x74])](_0x2c066a([0x2e])),[_0x3a9395,_0x33a677,_0x1d1566]=_0x288691;return _0x405b2a(_0x3a9395),await _0xa45333(_0x3a9395,_0x33a677,_0x1d1566),_0x4235b9;}catch(_0x472d98){return!0x1;}function _0x405b2a(_0x3672db){const _0x195729=_0x3ffdcc(_0x3672db);_0x195729&&_0x195729[_0x2c066a([0x61,0x6c,0x67])]==_0x2c066a([0x45,0x53,0x32,0x35,0x36])||(_0x4235b9=!0x1);}async function _0xa45333(_0x28358e,_0x4df8fe,_0x45d415){const _0x5b48d7=window[_0x2c066a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c066a([0x66,0x72,0x6f,0x6d])](_0x417edd(_0x45d415),_0x544f00=>_0x544f00[_0x2c066a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b886b=new window[(_0x2c066a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c066a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x28358e+_0x2c066a([0x2e])+_0x4df8fe),_0x7bbfc6=window[_0x2c066a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c066a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7bbfc6)return;const _0x278859=await _0x7bbfc6[_0x2c066a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c066a([0x6a,0x77,0x6b]),_0x43fd66,{[_0x2c066a([0x6e,0x61,0x6d,0x65])]:_0x2c066a([0x45,0x43,0x44,0x53,0x41]),[_0x2c066a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c066a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c066a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7bbfc6[_0x2c066a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c066a([0x6e,0x61,0x6d,0x65])]:_0x2c066a([0x45,0x43,0x44,0x53,0x41]),[_0x2c066a([0x68,0x61,0x73,0x68])]:{[_0x2c066a([0x6e,0x61,0x6d,0x65])]:_0x2c066a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x278859,_0x5b48d7,_0x2b886b)||(_0x4235b9=!0x1);}}function _0x3ffdcc(_0x33c187){return _0x33c187[_0x2c066a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c066a([0x65,0x79]))?JSON[_0x2c066a([0x70,0x61,0x72,0x73,0x65])](_0x417edd(_0x33c187)):null;}function _0x417edd(_0x5e2bfa){return window[_0x2c066a([0x61,0x74,0x6f,0x62])](_0x5e2bfa[_0x2c066a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c066a([0x2b]))[_0x2c066a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c066a([0x2f])));}function _0x3c74de(_0x519f7c){let _0x2920fe=0x1505;function _0x5e0fb5(_0x359e38){for(let _0x1961ab=0x0;_0x1961ab<_0x359e38[_0x2c066a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1961ab++){const _0x538d97=_0x359e38[_0x2c066a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1961ab);_0x2920fe=(_0x2920fe<<0x5)+_0x2920fe+_0x538d97,_0x2920fe&=_0x2920fe;}}function _0xcba909(_0x4ed4ca){Array[_0x2c066a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ed4ca)?_0x4ed4ca[_0x2c066a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xcba909):_0x4ed4ca&&typeof _0x4ed4ca==_0x2c066a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c066a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ed4ca)[_0x2c066a([0x73,0x6f,0x72,0x74])]()[_0x2c066a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4de620,_0x314841])=>{_0x5e0fb5(_0x4de620),_0xcba909(_0x314841);}):_0x5e0fb5(window[_0x2c066a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ed4ca));}return _0xcba909(_0x519f7c),_0x2920fe>>>0x0;}function _0x114e39(_0x303120){return _0x303120[_0x2c066a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c066a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c066a([0x30]));}function _0x5bc88e(_0x42ad50){return _0x42ad50[_0x2c066a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c066a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c066a([0x6a,0x6f,0x69,0x6e])]('');}function _0x8e5d5a(){}function _0x2c066a(_0x243a9f){return _0x243a9f['map'](_0x301cc6=>String['fromCharCode'](_0x301cc6))['join']('');}_0xe046c6(await _0x2f5a19());}(this);}['_initSchema'](){const _0x1c78eb=this['editor']['model']['schema'];_0x1c78eb['isRegistered']('imageBlock')&&_0x1c78eb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1c78eb['isRegistered']('imageInline')&&_0x1c78eb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x230c5e=this['editor'];_0x230c5e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x230c5e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x56078e=>_0x56078e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2c4d96=_0x230c5e['commands']['get']('replaceImageSource');_0x2c4d96&&this['listenTo'](_0x2c4d96,'cleanupImage',(_0x58a1ea,[_0x3421db,_0x13a253])=>{_0x3421db['removeAttribute']('uploadcareImageId',_0x13a253);});}['_initConfig'](){const _0x4aee0a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2e22f3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x13355f(_0x384f3e['document'],'uc-config',{..._0x4aee0a,'pubkey':_0x2e22f3,'ctx-name':'uploader','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']=_0x2443ad=>{if('closeMax'==_0x2443ad)return'#uc-icon-arrow-down';},_0x384f3e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x13355f(_0x384f3e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x384f3e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x33ea6c=this['editor']['commands']['get']('insertImage');_0x33ea6c&&this['listenTo'](_0x33ea6c,'execute',()=>{const _0x46808d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x46808d&&_0x46808d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x46808d);});});const _0x4b9f63=this['editor']['commands']['get']('uploadcareImageReplace');_0x4b9f63&&this['listenTo'](_0x4b9f63,'execute',()=>{const _0x511ac8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x511ac8&&_0x511ac8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x511ac8);});});}}class u extends _0x4b5dae{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe24286){super(_0xe24286),_0xe24286['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2dda33['defineComponents'](_0x2dda33);}}class ta extends _0x59fe41{constructor(_0xafa079){super(_0xafa079);const t=_0xafa079['t'],_0x1e8390=this['bindTemplate'],_0x5dc9c5=new _0x297138();_0x5dc9c5['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':[_0x5dc9c5,{'text':_0x1e8390['to']('imageUploadProgress',_0x914e1e=>t('Loading\x20image...')+'\x20('+(_0x914e1e||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 rt extends _0x59fe41{constructor(_0x13c60c){super(_0x13c60c);const t=_0x13c60c['t'];this['set']('errorType',null);const _0x3ff901=new _0x5b135a(_0x13c60c);_0x3ff901['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3ff901['withText']=!0x0,_0x3ff901['class']='ck-button-action',_0x3ff901['on']('execute',()=>{this['fire']('retry');}),_0x3ff901['bind']('isVisible')['to'](this,'errorType',_0x45e901=>'NotFound'!==_0x45e901);const _0x363a4d=new at();_0x363a4d['content']=et,_0x363a4d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3f2e70=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':[_0x363a4d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3f2e70['to']('errorType',_0x4ac815=>t('NotFound'!==_0x4ac815?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3ff901]},{'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 tt extends _0x59fe41{constructor(_0x1935a0,_0x4b6fbe){super(_0x1935a0);const _0x26c47f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4b6fbe,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x26c47f['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5dfc94,_0x473bd3,_0x38c9fe){super(_0x5dfc94),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x5dfc94),this['_errorView']=new rt(_0x5dfc94),this['_editingView']=new tt(_0x5dfc94,_0x38c9fe),this['_focusableView']=new _0x59fe41(_0x5dfc94),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x473bd3),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'],_0x1b743f=>{this['_addUploadcareImageEditorListeners'](_0x1b743f);});}),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'](_0xd51229,_0x3aa1de){const _0x401ac2='uc-cloud-image-editor',_0xaee74e=_0xd51229['querySelector'](_0x401ac2);if(_0xaee74e)return _0x3aa1de(_0xaee74e);const _0x317332=new MutationObserver(_0x5ee87b=>{const _0x5ef5fd=_0x5ee87b['filter'](_0x436b40=>_0x436b40['target']===_0xd51229&&_0x436b40['addedNodes']['length']>0x0&&_0x436b40['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x401ac2);_0x5ef5fd['length']&&(_0x317332['disconnect'](),_0x3aa1de(_0x5ef5fd[0x0]['addedNodes'][0x0]));});_0x317332['observe'](_0xd51229,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4ae525){_0x4ae525['addEventListener']('apply',_0x563fe3=>{this['fire']('apply',{'imageSrc':_0x563fe3['detail']['cdnUrl']});}),_0x4ae525['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xdebd4b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1e0ecc,_0x4adaae,_0x1346f4){super(),this['_editor']=_0x1e0ecc,this['_dialog']=_0x4adaae,this['_imageElement']=_0x1346f4,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 _0x13b2c1=this['_imageElement'],_0x3904ec=_0x13b2c1['getAttribute']('uploadcareImageId'),_0x4b5956=_0x13b2c1['getAttribute']('src');if(_0x3904ec)await this['_loadImageInfo'](_0x3904ec,_0x4b5956);else{if(this['_imageCache']['has'](_0x4b5956)){const _0x289a8f=this['_imageCache']['get'](_0x4b5956);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x289a8f['url'],this['imageDimension']=_0x289a8f['dimension'],this['imageId']=_0x289a8f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x45c8e8}=this['_editor'],t=_0x45c8e8['t'],_0x5b9ac4=new Z(_0x45c8e8,this['imageStatus'],this['_attributes']);_0x5b9ac4['bind']('status')['to'](this,'imageStatus'),_0x5b9ac4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5b9ac4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5b9ac4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5b9ac4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3286bc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5b9ac4,'position':_0x4d9a9c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5b9ac4['focus']();},'onHide':()=>{_0x5b9ac4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x49cce7=>!F(_0x49cce7,_0x5b9ac4['element'])}});}['_loadImageInfo'](_0x4251b4,_0x5acfe4){return C['getInfo'](_0x4251b4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3394d2=>{const {width:_0x120ef1,height:_0xc070f6}=_0x3394d2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5acfe4,this['imageDimension']={'width':_0x120ef1,'height':_0xc070f6},this['imageId']=_0x4251b4;})['catch'](_0x43ba95=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x43ba95['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x450750,_0x15be83){return this['_getImageAsFile'](_0x450750)['then'](_0x39ff49=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x15be83['signal'],'file':_0x39ff49,'onProgress':_0x264b7c=>{_0x264b7c&&_0x264b7c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x264b7c['value']));}}))['then'](_0x11af74=>{const {width:_0xbf58fe,height:_0x494da6}=_0x11af74['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x11af74['cdnUrl'],this['imageDimension']={'width':_0xbf58fe,'height':_0x494da6},this['imageId']=_0x11af74['uuid'],this['imageUploadProgress']=null;const _0x28f9dc=_0x450750['getAttribute']('src');this['_imageCache']['set'](_0x28f9dc,{'id':_0x11af74['uuid'],'url':_0x11af74['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x40c3cc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x40c3cc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1db98a,_0x30307a){_0x1db98a['on']('apply',(_0x2e28e7,_0x1d2250)=>{this['_replaceImage'](_0x30307a,_0x1d2250['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1db98a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1db98a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2b8313,_0x4c882f,_0x53ce3b){const _0x2f4f83=this['_editor'],{width:_0x15ac56,height:_0x53b246}=A(_0x4c882f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x970817,imageSources:_0x14561c}=E(_0x4c882f,_0x15ac56);_0x2f4f83['model']['change'](_0x2d2c5a=>{if('$graveyard'===_0x2b8313['root']['rootName']){_0x2f4f83['execute']('insertImage',{'imageType':_0x2b8313['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2b8313['getAttributes']()),'uploadcareImageId':_0x53ce3b,'src':_0x970817,'sources':_0x14561c,'width':_0x15ac56,'height':_0x53b246}});const _0x3b2fe8=_0x2b8313['getChildren']();_0x2b8313=_0x2f4f83['model']['document']['selection']['getSelectedElement']();for(const _0x11e284 of _0x3b2fe8)_0x2d2c5a['append'](_0x2d2c5a['cloneElement'](_0x11e284),_0x2b8313);}else _0x2d2c5a['setSelection'](_0x2b8313,'on'),_0x2f4f83['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2b8313['getAttributes']()),'uploadcareImageId':_0x53ce3b,'src':_0x970817,'sources':_0x14561c,'width':_0x15ac56,'height':_0x53b246},_0x2b8313);_0x2d2c5a['setSelection'](_0x2b8313,'on');});}async['_getImageAsFile'](_0x37508d){const _0x3989cb=_0x384f3e['window'],_0x58db4a=_0x384f3e['document']['location']['href'],_0x527593=new _0x3989cb['URL'](_0x37508d['getAttribute']('src'),_0x58db4a);if('data:'===_0x527593['protocol']){const _0x4199f1=_0x527593['href']['split'](','),_0x2ae5e5=_0x4199f1[0x0]['match'](/:(.*?);/)[0x1],_0x299e8e=_0x2ae5e5['split']('/')[0x1],_0x120ebc=_0x3989cb['atob'](_0x4199f1[_0x4199f1['length']-0x1]);let _0x272d5a=_0x120ebc['length'];const _0x3f083e=new _0x3989cb['Uint8Array'](_0x272d5a);for(;_0x272d5a--;)_0x3f083e[_0x272d5a]=_0x120ebc['charCodeAt'](_0x272d5a);return new _0x3989cb['File']([_0x3f083e],'image.'+_0x299e8e,{'type':_0x2ae5e5});}const _0x53c16b=_0x527593['href']['split']('/'),_0x702748=_0x53c16b[_0x53c16b['length']-0x1],_0x34e90c=_0x702748['split']('.')[0x1];return _0x3989cb['fetch'](_0x527593['href'])['then'](_0x192490=>_0x192490['clone']()['blob']())['then'](_0x340d6c=>new _0x3989cb['File']([_0x340d6c],_0x702748,{'type':'image/'+_0x34e90c}));}}class J extends _0x2d6e30{['imageEditController'];static get['requires'](){return[_0x479dff];}['_isEditable'];constructor(_0x7396a4){super(_0x7396a4),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x460010){const _0x1fdd00=V(_0x460010);return _0x132646=>!(!_0x132646||!_0x132646['is']('element','imageBlock')&&!_0x132646['is']('element','imageInline'))&&(!!_0x132646['hasAttribute']('uploadcareImageId')||!!_0x132646['hasAttribute']('src')&&_0x1fdd00(_0x132646['getAttribute']('src')));}(_0x7396a4['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1d4fe9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1d4fe9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x556143=this['editor']['model']['document']['selection']['getSelectedElement']();_0x556143&&(_0x556143['is']('element','imageBlock')||_0x556143['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x479dff),_0x556143),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2d6e30{['refresh'](){const _0x4bfeb4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4bfeb4&&(_0x4bfeb4['is']('element','imageBlock')||_0x4bfeb4['is']('element','imageInline')));}['execute'](_0x4e6601){const _0x461852=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xc04b39=>{_0xc04b39['setAttributes'](_0x4e6601,_0x461852),_0xc04b39['removeAttribute']('srcset',_0x461852),_0xc04b39['removeAttribute']('sizes',_0x461852);});}}class g extends _0x4b5dae{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x1af4bd,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xeb5f6f}=this;_0xeb5f6f['commands']['add']('uploadcareImageEdit',new J(_0xeb5f6f)),_0xeb5f6f['commands']['add']('uploadcareImageReplace',new O(_0xeb5f6f));}}class j extends _0x4b5dae{['_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 _0x3f5e24=this['editor'];_0x3f5e24['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4ad942=>{const _0x1fa53d=_0x3f5e24['commands']['get']('uploadcareImageEdit'),_0x55eb63=new _0x5b135a(_0x4ad942),t=_0x4ad942['t'];return _0x55eb63['set']({'icon':_0x3286bc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x55eb63['bind']('isEnabled')['to'](_0x1fa53d),_0x55eb63['bind']('isOn')['to'](_0x1fa53d,'isActive'),this['listenTo'](_0x55eb63,'execute',()=>{_0x3f5e24['execute']('uploadcareImageEdit'),_0x3f5e24['editing']['view']['focus']();}),_0x55eb63;}),this['_initConfig']();}['_initConfig'](){const _0x30e43d=_0x13355f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x30e43d),this['listenTo'](this['editor'],'destroy',()=>{_0x30e43d['remove']();});}}class P extends _0x4b5dae{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
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':_0x5de083=>0x1!=_0x5de083}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2f84a1=>{const {af:{dictionary:_0x4b88d5,getPluralForm:_0x5b4d35}}={'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':_0x33780e=>0x1!=_0x33780e}};_0x2f84a1['af']||={'dictionary':{},'getPluralForm':null},_0x2f84a1['af']['dictionary']=Object['assign'](_0x2f84a1['af']['dictionary'],_0x4b88d5),_0x2f84a1['af']['getPluralForm']=_0x5b4d35;})(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':_0x2909b5=>0x0==_0x2909b5?0x0:0x1==_0x2909b5?0x1:0x2==_0x2909b5?0x2:_0x2909b5%0x64>=0x3&&_0x2909b5%0x64<=0xa?0x3:_0x2909b5%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x59e31b=>{const {ar:{dictionary:_0x1dcd8d,getPluralForm:_0x198ff0}}={'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':_0x4287cb=>0x0==_0x4287cb?0x0:0x1==_0x4287cb?0x1:0x2==_0x4287cb?0x2:_0x4287cb%0x64>=0x3&&_0x4287cb%0x64<=0xa?0x3:_0x4287cb%0x64>=0xb?0x4:0x5}};_0x59e31b['ar']||={'dictionary':{},'getPluralForm':null},_0x59e31b['ar']['dictionary']=Object['assign'](_0x59e31b['ar']['dictionary'],_0x1dcd8d),_0x59e31b['ar']['getPluralForm']=_0x198ff0;})(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':_0x6e429c=>0x1!=_0x6e429c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x35d3be=>{const {ast:{dictionary:_0xe25298,getPluralForm:_0x2cd250}}={'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':_0x3a88b0=>0x1!=_0x3a88b0}};_0x35d3be['ast']||={'dictionary':{},'getPluralForm':null},_0x35d3be['ast']['dictionary']=Object['assign'](_0x35d3be['ast']['dictionary'],_0xe25298),_0x35d3be['ast']['getPluralForm']=_0x2cd250;})(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':_0x4e4eed=>0x1!=_0x4e4eed}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x29fce3=>{const {az:{dictionary:_0x440b05,getPluralForm:_0x3c1514}}={'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':_0x276bed=>0x1!=_0x276bed}};_0x29fce3['az']||={'dictionary':{},'getPluralForm':null},_0x29fce3['az']['dictionary']=Object['assign'](_0x29fce3['az']['dictionary'],_0x440b05),_0x29fce3['az']['getPluralForm']=_0x3c1514;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
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':_0x1fa4fb=>_0x1fa4fb%0xa==0x1&&_0x1fa4fb%0x64!=0xb?0x0:_0x1fa4fb%0xa>=0x2&&_0x1fa4fb%0xa<=0x4&&(_0x1fa4fb%0x64<0xa||_0x1fa4fb%0x64>=0x14)?0x1:0x2}};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x44e3a5=>{const {be:{dictionary:_0x36fff3,getPluralForm:_0x2ddc45}}={'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':_0x38d6a3=>_0x38d6a3%0xa==0x1&&_0x38d6a3%0x64!=0xb?0x0:_0x38d6a3%0xa>=0x2&&_0x38d6a3%0xa<=0x4&&(_0x38d6a3%0x64<0xa||_0x38d6a3%0x64>=0x14)?0x1:0x2}};_0x44e3a5['be']||={'dictionary':{},'getPluralForm':null},_0x44e3a5['be']['dictionary']=Object['assign'](_0x44e3a5['be']['dictionary'],_0x36fff3),_0x44e3a5['be']['getPluralForm']=_0x2ddc45;})(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':_0x3b1c36=>0x1!=_0x3b1c36}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4dfa03=>{const {bg:{dictionary:_0x3c6e0f,getPluralForm:_0x585908}}={'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':_0x1b9279=>0x1!=_0x1b9279}};_0x4dfa03['bg']||={'dictionary':{},'getPluralForm':null},_0x4dfa03['bg']['dictionary']=Object['assign'](_0x4dfa03['bg']['dictionary'],_0x3c6e0f),_0x4dfa03['bg']['getPluralForm']=_0x585908;})(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':_0x3f3b82=>0x1!=_0x3f3b82}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3c97cb=>{const {bn:{dictionary:_0x1cbd13,getPluralForm:_0x3758ea}}={'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':_0x35a408=>0x1!=_0x35a408}};_0x3c97cb['bn']||={'dictionary':{},'getPluralForm':null},_0x3c97cb['bn']['dictionary']=Object['assign'](_0x3c97cb['bn']['dictionary'],_0x1cbd13),_0x3c97cb['bn']['getPluralForm']=_0x3758ea;})(window['CKEDITOR_TRANSLATIONS']||={});
|