@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250707.0 → 0.0.0-nightly-20250709.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x13dee5,Command as _0x2238a1}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xf9d2e3,IconGooglePhotos as _0x4c33a5,IconGoogleDrive as _0x2c9c0b,IconFacebook as _0x38ef7c,IconDropbox as _0xeb9bdd,IconUploadcareLink as _0x19864a,IconUploadcareImageUpload as _0x4c2a3d,IconError as _0x27f870,IconUploadcareImageEdit as _0x1a6202}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4040c0,MenuBarMenuListItemButtonView as _0x34ecce,View as _0x1d1954,FocusCycler as _0x37b011,Dialog as _0x32df1c,DialogViewPosition as _0x44068c,SpinnerView as _0x421329,IconView as _0x37a4fe,Notification as _0x50102b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5e3156,DomEmitterMixin as _0x3d36c3,global as _0x3ac262,getAncestors as _0x24939d,ObservableMixin as _0x2d734c,uid as _0x1c4800,createElement as _0x564f8a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3ad206}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x578aab,info as _0x12117b}from'@uploadcare/upload-client';import*as _0x3ad904 from'@uploadcare/file-uploader';var i=function(_0xa1d57){return _0xa1d57['Local']='local',_0xa1d57['URL']='url',_0xa1d57['Dropbox']='dropbox',_0xa1d57['GDrive']='gdrive',_0xa1d57['Facebook']='facebook',_0xa1d57['GPhotos']='gphotos',_0xa1d57['OneDrive']='onedrive',_0xa1d57;}({});function _(_0x6a6970,_0x3b3f8d,_0x3c84e1){const t=_0x6a6970['t'],_0x5ee87c=_0x6a6970['t'];switch(_0x3b3f8d){case i['Local']:return{'text':_0x5ee87c('Insert'===_0x3c84e1?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5ee87c('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3c84e1?_0x5ee87c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5ee87c('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3c84e1?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3c84e1?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3c84e1?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3c84e1?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3c84e1?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3b3f8d;}}class e extends _0x13dee5{['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 _0x4d1e65=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5314a9;for(const _0x706f67 in _0x4d1e65){const _0x5f2dbd=_0x706f67,_0x33af65=_0x4d1e65[_0x5f2dbd];if('uploadcareLicenseKeyValid'==_0x33af65||'uploadcareLicenseKeyInvalid'==_0x33af65||'uploadcareLicenseKeyExpired'==_0x33af65||'uploadcareLicenseKeyDomainLimit'==_0x33af65||'uploadcareLicenseKeyNotAllowed'==_0x33af65||'uploadcareLicenseKeyEvaluationLimit'==_0x33af65||'uploadcareLicenseKeyTrialLimit'==_0x33af65||'uploadcareLicenseKeyUsageLimit'==_0x33af65){delete _0x4d1e65[_0x5f2dbd],_0x5314a9=_0x33af65,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5314a9&&_0x4d1e65['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5314a9&&_0x4d1e65['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5314a9&&_0x4d1e65['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5314a9&&_0x4d1e65['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5314a9&&_0x4d1e65['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5314a9&&_0x4d1e65['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5314a9&&_0x4d1e65['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xdd433b}=this,_0x26494b=_0xdd433b['commands']['get']('uploadcare');if(!_0x26494b)return;const _0x16b9e2=this['_normalizeConfigSourceList'](_0xdd433b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xb811b3,_0x30ed8a)=>{const _0x124edc=this['_getIntegrationKey'](_0x30ed8a['type']);return _0xb811b3[_0x124edc]||(_0xb811b3[_0x124edc]=[]),_0xb811b3[_0x124edc]['push'](_0x30ed8a),_0xb811b3;},{});_0xdd433b['plugins']['has']('ImageInsertUI')&&_0xdd433b['commands']['get']('uploadcare')&&Object['entries'](_0x16b9e2)['forEach'](([_0x976819,_0x4b4795])=>{_0xdd433b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x976819,'observable':()=>_0x26494b,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4b4795),'formViewCreator':()=>this['_createDropdownButtons'](_0x4b4795),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4b4795),'override':'assetManager'!==_0x976819});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4a4144){const {locale:_0x11ff01}=this['editor'];return _0x4a4144['map'](_0xce2f9e=>{const _0x26a929=_(_0x11ff01,_0xce2f9e,'Insert');switch(_0xce2f9e){case i['Local']:return{'icon':_0x4c2a3d,'type':i['Local'],..._0x26a929};case i['URL']:return{'icon':_0x19864a,'type':i['URL'],..._0x26a929};case i['Dropbox']:return{'icon':_0xeb9bdd,'type':i['Dropbox'],..._0x26a929};case i['Facebook']:return{'icon':_0x38ef7c,'type':i['Facebook'],..._0x26a929};case i['GDrive']:return{'icon':_0x2c9c0b,'type':i['GDrive'],..._0x26a929};case i['GPhotos']:return{'icon':_0x4c33a5,'type':i['GPhotos'],..._0x26a929};case i['OneDrive']:return{'icon':_0xf9d2e3,'type':i['OneDrive'],..._0x26a929};}});}['_getIntegrationKey'](_0x44dbb3){switch(_0x44dbb3){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x965d40,_0x374ec8){const _0x375228=this['editor'],_0x1fcd6e=new _0x965d40(_0x375228['locale']),_0xe04921=_0x375228['commands']['get']('uploadcare');return _0x1fcd6e['bind']('isEnabled')['to'](_0xe04921),_0x1fcd6e['on']('execute',()=>{_0xe04921['execute'](_0x374ec8);}),_0x1fcd6e;}['_createToolbarButton'](_0x2b2e22){const {locale:_0x2fcc4f}=this['editor'],_0x5d5b4b=this['editor']['plugins']['get']('ImageInsertUI'),_0x1dc5e4=_0x2b2e22[0x0],_0xd857a4=this['_createButton'](_0x4040c0,_0x1dc5e4['type']);return _0xd857a4['icon']=_0x1dc5e4['icon'],_0xd857a4['bind']('label')['to'](_0x5d5b4b,'isImageSelected',_0x5df605=>_(_0x2fcc4f,_0x1dc5e4['type'],_0x5df605?'Replace':'Insert')['text']),_0xd857a4['tooltip']=!0x0,_0xd857a4;}['_createDropdownButtons'](_0x2c184a){const {locale:_0x56e1fd}=this['editor'],_0x51d8fd=this['editor']['plugins']['get']('ImageInsertUI');return _0x2c184a['map'](_0x2922eb=>{const _0x115d6c=this['_createButton'](_0x4040c0,_0x2922eb['type']);return _0x115d6c['withText']=!0x0,_0x115d6c['icon']=_0x2922eb['icon'],_0x115d6c['bind']('label')['to'](_0x51d8fd,'isImageSelected',_0x2ddcbd=>_(_0x56e1fd,_0x2922eb['type'],_0x2ddcbd?'Replace':'Insert')['text']),_0x115d6c;});}['_createMenuBarButtons'](_0x44426a){return _0x44426a['map'](_0x4273bb=>{const _0xb0bb16=this['_createButton'](_0x34ecce,_0x4273bb['type']);return _0xb0bb16['icon']=_0x4273bb['icon'],_0xb0bb16['label']=_0x4273bb['shortText'],_0xb0bb16;});}}class F extends _0x1d1954{['focusTracker'];['focusCycler'];constructor(_0x1ff471){super(_0x1ff471),this['focusTracker']=new _0x5e3156(),this['focusCycler']=new _0x37b011({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x16aa00,_0x29eb19){super(_0x16aa00),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-'+_0x29eb19}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x2212c7,_0x348be0){const _0x4ece11=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4dd4ae=>_0x4dd4ae<=_0x348be0)['map'](_0x3f59d2=>_0x2212c7['replace'](/\/$/,'')+'/-/resize/'+_0x3f59d2+'x/\x20'+_0x3f59d2+'w');return{'imageFallbackUrl':_0x2212c7,'imageSources':[{'srcset':_0x4ece11['join'](',\x20'),'sizes':'(max-width:\x20'+_0x348be0+'px)\x20100vw,\x20'+_0x348be0+'px','type':'image/webp'}]};}function C(_0x43ac45,_0x3d13bd,_0x5967a9){const _0x4f7299=_0x43ac45['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4f7299?parseInt(_0x4f7299[0x1],0xa):_0x3d13bd,'height':_0x4f7299?parseInt(_0x4f7299[0x2],0xa):_0x5967a9};}function p(_0x56763f,_0x1ea1ab){const _0x2586a5=new(_0x3d36c3())(),_0x299a4c=_0x56763f['plugins']['get']('ImageUtils'),_0x36d2d3=_0x56763f['editing']['mapper']['toViewElement'](_0x1ea1ab),_0x37a49c=_0x299a4c['findViewImgElement'](_0x36d2d3),_0x40bba2=_0x56763f['editing']['view']['domConverter']['viewToDom'](_0x37a49c),_0x12e778=_0x1ea1ab['getAttribute']('width'),_0x110067=_0x1ea1ab['getAttribute']('height'),_0xf471ac='image-processing';_0x56763f['editing']['view']['change'](_0x63d242=>{_0x63d242['addClass'](_0xf471ac,_0x36d2d3),_0x63d242['setStyle']('aspect-ratio',_0x12e778+'/'+_0x110067,_0x37a49c);}),_0x2586a5['listenTo'](_0x40bba2,'load',()=>{_0x2586a5['stopListening'](_0x40bba2,'load'),_0x56763f['editing']['view']['change'](_0x22d220=>{_0x22d220['removeClass'](_0xf471ac,_0x36d2d3),_0x22d220['removeStyle']('aspect-ratio',_0x37a49c);});});}function G(_0x4b8659){if(Array['isArray'](_0x4b8659)){const _0x12e352=_0x4b8659['map'](G);return _0x4bba0a=>_0x12e352['some'](_0x32496a=>_0x32496a(_0x4bba0a));}if('origin'==_0x4b8659){const _0x117c6f=_0x3ac262['window']['location']['origin'];return _0x413c64=>new URL(_0x413c64,_0x3ac262['document']['baseURI'])['origin']==_0x117c6f;}return'function'==typeof _0x4b8659?_0x4b8659:_0x4b8659 instanceof RegExp?_0x49fb8d=>!(!_0x49fb8d['match'](_0x4b8659)&&!_0x49fb8d['replace'](/^https?:\/\//,'')['match'](_0x4b8659)):()=>!0x1;}function S(_0x9f79e5,_0x26b0a9){return _0x24939d(_0x9f79e5['target'])['includes'](_0x26b0a9);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2d734c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3ad649,_0x47598c,_0x2d8912){super(),this['_editor']=_0x3ad649,this['_editing']=_0x47598c,this['_dialog']=_0x3ad649['plugins']['get'](_0x32df1c),this['_api']=_0x47598c['ctxElement']['getAPI'](),this['_type']=_0x2d8912,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:_0x227ba2,model:_0x356d61}=this['_editor'],_0x37ed57=_0x356d61['document']['selection']['getSelectedElement'](),_0x377ccd=_0x37ed57&&(_0x37ed57['is']('element','imageBlock')||_0x37ed57['is']('element','imageInline'));this['_formView']=new x(_0x227ba2,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4c2a3d,'title':_(_0x227ba2,this['_type'],_0x377ccd?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x44068c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x180c6a=>!S(_0x180c6a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2dbc74}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x24e664=>{const _0x11d527=_0x2dbc74['length'];for(const _0x50adc1 of _0x2dbc74){const _0x54039f=_0x50adc1===_0x2dbc74[_0x11d527-0x1],{cdnUrl:_0x5b20ae,fileInfo:_0x4de667}=_0x50adc1;if(!_0x5b20ae||!_0x4de667)continue;const {width:_0x5280a5,height:_0x4c4d80}=_0x4de667['imageInfo'],_0x3c9069=C(_0x5b20ae,_0x5280a5,_0x4c4d80),_0x54d128=k(_0x5b20ae,_0x3c9069['width']),_0x59fab0={'id':_0x4de667['uuid'],'type':'image','attributes':{'imageDimension':_0x3c9069,..._0x54d128}};this['_insertAsset'](_0x59fab0,_0x54039f,_0x24e664);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5f1495=>{'idle'===_0x5f1495['detail']['status']&&!_0x5f1495['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x557018,_0x287397,_0x1b4494){const _0x59fee6=this['_editor']['model']['document']['selection'],_0x2c0f4a=_0x59fee6['getSelectedElement'](),_0x5a7c16=!(!_0x2c0f4a||!_0x2c0f4a['is']('element','imageInline'));_0x1b4494['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x557018,_0x5a7c16),_0x287397||_0x1b4494['setSelection'](_0x59fee6['getLastPosition']());}['_insertImage'](_0x4065e6,_0x1b725e){const _0x3e0c05=this['_editor'],{imageDimension:_0x84efdc,imageFallbackUrl:_0x23efc4,imageSources:_0x847577}=_0x4065e6['attributes'];_0x3e0c05['execute']('insertImage',{'imageType':_0x1b725e?'imageInline':null,'source':{'uploadcareImageId':_0x4065e6['id'],'src':_0x23efc4,'sources':_0x847577,..._0x84efdc}});}}class w extends _0x2238a1{['_editing'];['_controller']=null;static get['requires'](){return[_0x32df1c,o];}constructor(_0x584c64){super(_0x584c64),this['_editing']=_0x584c64['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4a4ceb){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4a4ceb);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x11778a,publicKey:_0x59cb2f,signal:_0x40d88e,onProgress:_0x540f56}){return _0x578aab(_0x11778a,{'publicKey':_0x59cb2f,'store':'auto','signal':_0x40d88e,'onProgress':_0x540f56});}static['getInfo'](_0x3b6a26,_0x48e96f){return _0x12117b(_0x3b6a26,_0x48e96f);}}class f extends _0x13dee5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3ad206,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x7bd917=this['editor'];if(!!!_0x7bd917['config']['get']('uploadcare'))return;_0x7bd917['plugins']['get'](_0x3ad206)['createUploadAdapter']=_0x4fc795=>new A(_0x4fc795,_0x7bd917),_0x7bd917['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1c089b,{imageElement:_0x5b91bb,data:_0x88e922})=>{_0x7bd917['model']['change'](_0x575988=>{_0x575988['setAttribute']('uploadcareImageId',_0x88e922['uploadcareImageId'],_0x5b91bb);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x5308fa,_0x4abb6f){this['loader']=_0x5308fa,this['editor']=_0x4abb6f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1c878c=this['editor']['config']['get']('uploadcare.pubkey'),_0x1659e7=await this['loader']['file'];return j['upload']({'file':_0x1659e7,'publicKey':_0x1c878c,'signal':this['controller']['signal'],'onProgress':_0xadc9d7=>{_0xadc9d7&&_0xadc9d7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xadc9d7['value']);}})['then'](async _0x3e8224=>{const {imageFallbackUrl:_0x172f39,imageSources:_0x23390a}=k(_0x3e8224['cdnUrl'],_0x3e8224['imageInfo']['width']);return{'uploadcareImageId':_0x3e8224['uuid'],'default':_0x172f39,'sources':_0x23390a};})['catch'](()=>{const _0x3cb56b=t('Cannot\x20upload\x20file:')+('\x20'+_0x1659e7['name']+'.');return Promise['reject'](_0x3cb56b);});}['abort'](){this['controller']['abort']();}}class o extends _0x13dee5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x32df1c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x50376e){super(_0x50376e),this['ucContextId']=_0x1c4800();}['init'](){const _0x2a2635=this['editor'];_0x2a2635['commands']['add']('uploadcare',new w(_0x2a2635));}['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 _0xce385e=_0x3ac262['document']['querySelector']('input[uploadcare-file-input]');_0xce385e&&_0xce385e['remove']();}),async function(_0x34c1ea){const _0x1e765=_0xf66755([0x39,0x30,0x45,0x68,0x76,0x47,0x53,0x6d,0x4f,0x56,0x6b,0x65,0x57,0x73,0x33,0x50,0x34,0x69,0x43,0x46,0x62,0x4a,0x79,0x67,0x64,0x7a,0x35,0x44,0x71,0x59,0x58,0x70,0x42,0x36,0x77,0x6c,0x51,0x37,0x4e,0x66,0x54,0x72,0x55,0x6f,0x4b,0x6e,0x31,0x41,0x4d,0x48,0x6a,0x74,0x78,0x52,0x61,0x63,0x32,0x38,0x5a,0x75,0x4c,0x49]),_0x2ea1d5=0x271d5d9,_0x5602b6=0x276b939^_0x2ea1d5,_0x7fa89=window[_0xf66755([0x44,0x61,0x74,0x65])][_0xf66755([0x6e,0x6f,0x77])](),_0x521ecb=_0x34c1ea[_0xf66755([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1bcb2c=new window[(_0xf66755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x62364f=>{_0x521ecb[_0xf66755([0x6f,0x6e,0x63,0x65])](_0xf66755([0x72,0x65,0x61,0x64,0x79]),_0x62364f);}),_0x28ea09={[_0xf66755([0x6b,0x74,0x79])]:_0xf66755([0x45,0x43]),[_0xf66755([0x75,0x73,0x65])]:_0xf66755([0x73,0x69,0x67]),[_0xf66755([0x63,0x72,0x76])]:_0xf66755([0x50,0x2d,0x32,0x35,0x36]),[_0xf66755([0x78])]:_0xf66755([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]),[_0xf66755([0x79])]:_0xf66755([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]),[_0xf66755([0x61,0x6c,0x67])]:_0xf66755([0x45,0x53,0x32,0x35,0x36])},_0x3b3ff0=_0x521ecb[_0xf66755([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf66755([0x67,0x65,0x74])](_0xf66755([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x537588(){let _0x423dd3,_0x34caea=null,_0x1ffb18=null;try{if(_0x3b3ff0==_0xf66755([0x47,0x50,0x4c]))return _0xf66755([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x423dd3=_0x1637fa(),!_0x423dd3)return _0xf66755([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x423dd3[_0xf66755([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ffb18=_0xa10206(_0x423dd3[_0xf66755([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x423dd3[_0xf66755([0x6a,0x74,0x69])])),await _0x47f7e2()?_0x5ca747()?_0x499976()?_0xf66755([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x309000()?(_0x423dd3[_0xf66755([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf66755([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34caea=_0x428cb7(_0xf66755([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x423dd3[_0xf66755([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf66755([0x74,0x72,0x69,0x61,0x6c])&&(_0x34caea=_0x428cb7(_0xf66755([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4229f0()):_0xf66755([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf66755([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf66755([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf66755([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x499976(){const _0xc66b77=[_0xf66755([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf66755([0x74,0x72,0x69,0x61,0x6c])][_0xf66755([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x423dd3[_0xf66755([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7fa89/0x3e8:0xe10*_0x5602b6;return _0x423dd3[_0xf66755([0x65,0x78,0x70])]<_0xc66b77;}function _0x5ca747(){const _0x1ed6a3=_0x423dd3[_0xf66755([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1ed6a3&&(!!_0x1ed6a3[_0xf66755([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf66755([0x2a]))||!!_0x1ed6a3[_0xf66755([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf66755([0x55,0x50,0x4c,0x43])));}function _0x309000(){const _0x14fc0e=_0x423dd3[_0xf66755([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x14fc0e||0x0==_0x14fc0e[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c57ae}=new URL(window[_0xf66755([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x14fc0e[_0xf66755([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c57ae))return!0x0;const _0x1c0064=_0x5c57ae[_0xf66755([0x73,0x70,0x6c,0x69,0x74])](_0xf66755([0x2e]));return _0x14fc0e[_0xf66755([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21cdc9=>_0x21cdc9[_0xf66755([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf66755([0x2a])))[_0xf66755([0x6d,0x61,0x70])](_0x140896=>_0x140896[_0xf66755([0x73,0x70,0x6c,0x69,0x74])](_0xf66755([0x2e])))[_0xf66755([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a3309=>_0x4a3309[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1c0064[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf66755([0x6d,0x61,0x70])](_0x2363d2=>Array(_0x1c0064[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2363d2[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf66755([0x66,0x69,0x6c,0x6c])](_0x2363d2[0x0]===_0xf66755([0x2a])?_0xf66755([0x2a]):'')[_0xf66755([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2363d2))[_0xf66755([0x73,0x6f,0x6d,0x65])](_0x1340ad=>_0x1c0064[_0xf66755([0x65,0x76,0x65,0x72,0x79])]((_0x4ef18b,_0x1ab0cd)=>_0x1340ad[_0x1ab0cd]===_0x4ef18b||_0x1340ad[_0x1ab0cd]===_0xf66755([0x2a])));}function _0x4229f0(){return _0x34caea&&_0x1ffb18?new window[(_0xf66755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d0b7e,_0x17e564)=>{_0x34caea[_0xf66755([0x74,0x68,0x65,0x6e])](_0x3d0b7e,_0x17e564),_0x1ffb18[_0xf66755([0x74,0x68,0x65,0x6e])](_0x377030=>{_0x377030!=_0xf66755([0x56,0x61,0x6c,0x69,0x64])&&_0x3d0b7e(_0x377030);},_0x17e564);}):_0x34caea||_0x1ffb18||_0xf66755([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa10206(_0x54d73d,_0x5314b7){return new window[(_0xf66755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x493f2a=>{if(_0x386bdf())return _0x493f2a(_0xf66755([0x56,0x61,0x6c,0x69,0x64]));_0x1d317e(),_0x521ecb[_0xf66755([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf66755([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a78ca=!0x1;const _0x1e79cc=_0x1c4800();function _0x2ca1ee(_0xb36215){return!!_0xb36215&&(typeof _0xb36215===_0xf66755([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb36215===_0xf66755([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb36215[_0xf66755([0x74,0x68,0x65,0x6e])]===_0xf66755([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb36215[_0xf66755([0x63,0x61,0x74,0x63,0x68])]===_0xf66755([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x9a6de1(_0x23a66f){_0x40479e(_0x23a66f)[_0xf66755([0x74,0x68,0x65,0x6e])](_0xe608e7=>{if(!_0xe608e7||_0xe608e7[_0xf66755([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf66755([0x6f,0x6b]))return _0xf66755([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c43a4(_0x5198a9(_0x1e79cc+_0x5314b7))!=_0xe608e7[_0xf66755([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf66755([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf66755([0x56,0x61,0x6c,0x69,0x64]);})[_0xf66755([0x74,0x68,0x65,0x6e])](_0x589473=>(_0x3076be(),_0x589473),()=>{const _0x304252=_0x2bb210();return null==_0x304252?(_0x3076be(),_0xf66755([0x56,0x61,0x6c,0x69,0x64])):_0xf66755(_0x7fa89-_0x304252>(0x267d51d9^_0x2ea1d5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf66755([0x74,0x68,0x65,0x6e])](_0x493f2a)[_0xf66755([0x63,0x61,0x74,0x63,0x68])](()=>{_0x493f2a(_0xf66755([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d5289=0x2473b59^_0x2ea1d5;function _0x3076be(){const _0x3a3f2d=_0xf66755([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c43a4(_0x5198a9(_0x54d73d)),_0x5da7ae=_0x3e6a4e(_0x4c43a4(window[_0xf66755([0x4d,0x61,0x74,0x68])][_0xf66755([0x63,0x65,0x69,0x6c])](_0x7fa89/_0x1d5289)));window[_0xf66755([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf66755([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a3f2d,_0x5da7ae);}function _0x2bb210(){const _0x8acec3=_0xf66755([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c43a4(_0x5198a9(_0x54d73d)),_0x237e6f=window[_0xf66755([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf66755([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8acec3);return _0x237e6f?window[_0xf66755([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e6a4e(_0x237e6f),0x10)*_0x1d5289:null;}function _0x40479e(_0xdae0b7){return new window[(_0xf66755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50d012,_0x355729)=>{_0xdae0b7[_0xf66755([0x74,0x68,0x65,0x6e])](_0x50d012,_0x355729),window[_0xf66755([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x355729,0x2700119^_0x2ea1d5);});}}_0x521ecb[_0xf66755([0x6f,0x6e])](_0xf66755([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c7939,_0xe0816d)=>{if(_0xe0816d[0x0]!=_0x54d73d)return _0x493f2a(_0xf66755([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe0816d[0x1]={..._0xe0816d[0x1],[_0xf66755([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e79cc};},{[_0xf66755([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf66755([0x68,0x69,0x67,0x68])}),_0x521ecb[_0xf66755([0x6f,0x6e])](_0xf66755([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b2567=>{_0x2ca1ee(_0x3b2567[_0xf66755([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a78ca=!0x0,_0x9a6de1(_0x3b2567[_0xf66755([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf66755([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf66755([0x6c,0x6f,0x77])}),_0x1bcb2c[_0xf66755([0x74,0x68,0x65,0x6e])](()=>{_0x1a78ca||_0x493f2a(_0xf66755([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x386bdf(){return _0x521ecb[_0xf66755([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf66755([0x76,0x69,0x65,0x77])][_0xf66755([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf66755([0x61,0x75,0x74,0x6f]);}function _0x1d317e(){_0x521ecb[_0xf66755([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf66755([0x76,0x69,0x65,0x77])][_0xf66755([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf66755([0x61,0x75,0x74,0x6f]);}}function _0x428cb7(_0x331c7d){const _0x118684=[new window[(_0xf66755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x331254=>setTimeout(_0x331254,0x278eb15^_0x2ea1d5)),_0x1bcb2c[_0xf66755([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf66755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e728e=>{let _0x41abf1=0x0;_0x521ecb[_0xf66755([0x6d,0x6f,0x64,0x65,0x6c])][_0xf66755([0x6f,0x6e])](_0xf66755([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3161ab,_0x3c0d1b)=>{_0x3c0d1b[0x0][_0xf66755([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x41abf1++,_0x41abf1==(0x271d421^_0x2ea1d5)&&(_0x2e728e(),_0x3161ab[_0xf66755([0x6f,0x66,0x66])]());});}))];return window[_0xf66755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf66755([0x72,0x61,0x63,0x65])](_0x118684)[_0xf66755([0x74,0x68,0x65,0x6e])](()=>_0x331c7d);}async function _0x4c68a4(){await _0x1bcb2c,_0x521ecb[_0xf66755([0x6d,0x6f,0x64,0x65,0x6c])][_0xf66755([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26dcf2,_0x521ecb[_0xf66755([0x6d,0x6f,0x64,0x65,0x6c])][_0xf66755([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26dcf2,_0x521ecb[_0xf66755([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf66755([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x38c1f9(_0x107a2b){const _0x5070dd=_0x2cbfe1();_0x521ecb[_0x5070dd]=_0xf66755([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x107a2b,_0x107a2b!=_0xf66755([0x56,0x61,0x6c,0x69,0x64])&&_0x4c68a4();}function _0x2cbfe1(){const _0x1176f1=window[_0xf66755([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf66755([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf66755([0x6e,0x6f,0x77])]())[_0xf66755([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf66755([0x2e]),'');let _0x1a36ff=_0xf66755([0x45]);for(let _0x447510=0x0;_0x447510<_0x1176f1[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x447510+=0x2){let _0x45ee4c=window[_0xf66755([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1176f1[_0xf66755([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x447510,_0x447510+0x2));_0x45ee4c>=_0x1e765[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45ee4c-=_0x1e765[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a36ff+=_0x1e765[_0x45ee4c];}return _0x1a36ff;}function _0x1637fa(){const _0x8995a1=_0x3b3ff0[_0xf66755([0x73,0x70,0x6c,0x69,0x74])](_0xf66755([0x2e]));if(0x3!=_0x8995a1[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x29f405(_0x8995a1[0x1]);function _0x29f405(_0x278609){const _0x435637=_0x135f3d(_0x278609);return _0x435637&&_0x416340()?_0x435637:null;function _0x416340(){const _0x309122=_0x435637[_0xf66755([0x6a,0x74,0x69])],_0x175866=window[_0xf66755([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x309122[_0xf66755([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x309122[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xed5349={..._0x435637,[_0xf66755([0x6a,0x74,0x69])]:_0x309122[_0xf66755([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x309122[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xed5349[_0xf66755([0x76,0x63])],_0x5198a9(_0xed5349)==_0x175866;}}}async function _0x47f7e2(){let _0x3453e3=!0x0;try{const _0x1c5a73=_0x3b3ff0[_0xf66755([0x73,0x70,0x6c,0x69,0x74])](_0xf66755([0x2e])),[_0x3df88b,_0x24e395,_0x2df3d7]=_0x1c5a73;return _0x58b3b0(_0x3df88b),await _0xd62c15(_0x3df88b,_0x24e395,_0x2df3d7),_0x3453e3;}catch{return!0x1;}function _0x58b3b0(_0x39c6e8){const _0x5adbf0=_0x135f3d(_0x39c6e8);_0x5adbf0&&_0x5adbf0[_0xf66755([0x61,0x6c,0x67])]==_0xf66755([0x45,0x53,0x32,0x35,0x36])||(_0x3453e3=!0x1);}async function _0xd62c15(_0x176944,_0x51ea7e,_0x15cc56){const _0x3bbf09=window[_0xf66755([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf66755([0x66,0x72,0x6f,0x6d])](_0x455fca(_0x15cc56),_0x4598e8=>_0x4598e8[_0xf66755([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d5392=new window[(_0xf66755([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf66755([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x176944+_0xf66755([0x2e])+_0x51ea7e),_0x96143e=window[_0xf66755([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf66755([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x96143e)return;const _0x5ee135=await _0x96143e[_0xf66755([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf66755([0x6a,0x77,0x6b]),_0x28ea09,{[_0xf66755([0x6e,0x61,0x6d,0x65])]:_0xf66755([0x45,0x43,0x44,0x53,0x41]),[_0xf66755([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf66755([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf66755([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x96143e[_0xf66755([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf66755([0x6e,0x61,0x6d,0x65])]:_0xf66755([0x45,0x43,0x44,0x53,0x41]),[_0xf66755([0x68,0x61,0x73,0x68])]:{[_0xf66755([0x6e,0x61,0x6d,0x65])]:_0xf66755([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ee135,_0x3bbf09,_0x2d5392)||(_0x3453e3=!0x1);}}function _0x135f3d(_0x5ce43d){return _0x5ce43d[_0xf66755([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf66755([0x65,0x79]))?JSON[_0xf66755([0x70,0x61,0x72,0x73,0x65])](_0x455fca(_0x5ce43d)):null;}function _0x455fca(_0xf0a003){return window[_0xf66755([0x61,0x74,0x6f,0x62])](_0xf0a003[_0xf66755([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf66755([0x2b]))[_0xf66755([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf66755([0x2f])));}function _0x5198a9(_0x4198ad){let _0x1d7808=0x1505;function _0x457987(_0x4d6784){for(let _0x204a3f=0x0;_0x204a3f<_0x4d6784[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x204a3f++){const _0x2da0ae=_0x4d6784[_0xf66755([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x204a3f);_0x1d7808=(_0x1d7808<<0x5)+_0x1d7808+_0x2da0ae,_0x1d7808&=_0x1d7808;}}function _0x2e98d1(_0x1c4538){Array[_0xf66755([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c4538)?_0x1c4538[_0xf66755([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e98d1):_0x1c4538&&typeof _0x1c4538==_0xf66755([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf66755([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c4538)[_0xf66755([0x73,0x6f,0x72,0x74])]()[_0xf66755([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b9be4,_0x33e093])=>{_0x457987(_0x3b9be4),_0x2e98d1(_0x33e093);}):_0x457987(window[_0xf66755([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c4538));}return _0x2e98d1(_0x4198ad),_0x1d7808>>>0x0;}function _0x4c43a4(_0x57d337){return _0x57d337[_0xf66755([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf66755([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf66755([0x30]));}function _0x3e6a4e(_0x57a651){return _0x57a651[_0xf66755([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf66755([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf66755([0x6a,0x6f,0x69,0x6e])]('');}function _0x26dcf2(){}function _0xf66755(_0xc94e5c){return _0xc94e5c['map'](_0x1e88cf=>String['fromCharCode'](_0x1e88cf))['join']('');}_0x38c1f9(await _0x537588());}(this);}['_initSchema'](){const _0x42d85b=this['editor']['model']['schema'];_0x42d85b['isRegistered']('imageBlock')&&_0x42d85b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x42d85b['isRegistered']('imageInline')&&_0x42d85b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2498ea=this['editor'];_0x2498ea['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2498ea['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x301737=>_0x301737['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x14041c=_0x2498ea['commands']['get']('replaceImageSource');_0x14041c&&this['listenTo'](_0x14041c,'cleanupImage',(_0x63cf9e,[_0x5dbec2,_0x338ebf])=>{_0x5dbec2['removeAttribute']('uploadcareImageId',_0x338ebf);});}['_initConfig'](){const _0x22cbf9=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3c6531=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x564f8a(_0x3ac262['document'],'uc-config',{..._0x22cbf9,'pubkey':_0x3c6531,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x85d720=>{if('closeMax'==_0x85d720)return'#uc-icon-arrow-down';},_0x3ac262['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x564f8a(_0x3ac262['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3ac262['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x19c6f7=this['editor']['commands']['get']('insertImage');_0x19c6f7&&this['listenTo'](_0x19c6f7,'execute',()=>{const _0x2a8de6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a8de6&&_0x2a8de6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2a8de6);});});const _0xb9a1ab=this['editor']['commands']['get']('uploadcareImageReplace');_0xb9a1ab&&this['listenTo'](_0xb9a1ab,'execute',()=>{const _0x2027c4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2027c4&&_0x2027c4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2027c4);});});}}class tt extends _0x13dee5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4082c1){super(_0x4082c1),_0x4082c1['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3ad904['defineComponents'](_0x3ad904);}}class ii extends _0x1d1954{constructor(_0x59e9df){super(_0x59e9df);const t=_0x59e9df['t'],_0x4ed2f8=this['bindTemplate'],_0x468c7a=new _0x421329();_0x468c7a['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':[_0x468c7a,{'text':_0x4ed2f8['to']('imageUploadProgress',_0x36711d=>t('Loading\x20image...')+'\x20('+(_0x36711d||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x1d1954{constructor(_0x2f0c6a){super(_0x2f0c6a);const t=_0x2f0c6a['t'];this['set']('errorType',null);const _0x22e511=new _0x4040c0(_0x2f0c6a);_0x22e511['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x22e511['withText']=!0x0,_0x22e511['class']='ck-button-action',_0x22e511['on']('execute',()=>{this['fire']('retry');}),_0x22e511['bind']('isVisible')['to'](this,'errorType',_0x4ddb5b=>'NotFound'!==_0x4ddb5b);const _0x2128ec=new _0x37a4fe();_0x2128ec['content']=_0x27f870,_0x2128ec['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x125d1b=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':[_0x2128ec,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x125d1b['to']('errorType',_0xbb495=>t('NotFound'!==_0xbb495?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x22e511]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x1d1954{constructor(_0x22b283,_0x3fa382){super(_0x22b283);const _0x5d5fca=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3fa382,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5d5fca['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5d77ca,_0x103f6c,_0x459a54){super(_0x5d77ca),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5d77ca),this['_errorView']=new ti(_0x5d77ca),this['_editingView']=new ei(_0x5d77ca,_0x459a54),this['_focusableView']=new _0x1d1954(_0x5d77ca),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x103f6c),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'],_0x4567a1=>{this['_addUploadcareImageEditorListeners'](_0x4567a1);});}),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'](_0x4fc7f9,_0x378dfb){const _0x195473='uc-cloud-image-editor',_0x1da1ed=_0x4fc7f9['querySelector'](_0x195473);if(_0x1da1ed)return _0x378dfb(_0x1da1ed);const _0x12f41e=new MutationObserver(_0x526e29=>{const _0x2ba13f=_0x526e29['filter'](_0x19eac2=>_0x19eac2['target']===_0x4fc7f9&&_0x19eac2['addedNodes']['length']>0x0&&_0x19eac2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x195473);_0x2ba13f['length']&&(_0x12f41e['disconnect'](),_0x378dfb(_0x2ba13f[0x0]['addedNodes'][0x0]));});_0x12f41e['observe'](_0x4fc7f9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x54f3d1){_0x54f3d1['addEventListener']('apply',_0x538c7c=>{this['fire']('apply',{'imageSrc':_0x538c7c['detail']['cdnUrl']});}),_0x54f3d1['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2d734c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1cb674,_0x26d77e,_0x3759e9){super(),this['_editor']=_0x1cb674,this['_dialog']=_0x26d77e,this['_imageElement']=_0x3759e9,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 _0x459fcd=this['_imageElement'],_0x5dcec4=_0x459fcd['getAttribute']('uploadcareImageId'),_0x168ba2=_0x459fcd['getAttribute']('src');if(_0x5dcec4)await this['_loadImageInfo'](_0x5dcec4,_0x168ba2);else{if(this['_imageCache']['has'](_0x168ba2)){const _0x3d885d=this['_imageCache']['get'](_0x168ba2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d885d['url'],this['imageDimension']=_0x3d885d['dimension'],this['imageId']=_0x3d885d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4c5a4c}=this['_editor'],t=_0x4c5a4c['t'],_0x159e9a=new X(_0x4c5a4c,this['imageStatus'],this['_attributes']);_0x159e9a['bind']('status')['to'](this,'imageStatus'),_0x159e9a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x159e9a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x159e9a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x159e9a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1a6202,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x159e9a,'position':_0x44068c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x159e9a['focus']();},'onHide':()=>{_0x159e9a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4e4e97=>!S(_0x4e4e97,_0x159e9a['element'])}});}['_loadImageInfo'](_0x2a2317,_0x335ee0){return j['getInfo'](_0x2a2317,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xf0a16f=>{const {width:_0x8e879b,height:_0x207474}=_0xf0a16f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x335ee0,this['imageDimension']={'width':_0x8e879b,'height':_0x207474},this['imageId']=_0x2a2317;})['catch'](_0x59e53d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x59e53d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3b5881,_0x755cad){return this['_getImageAsFile'](_0x3b5881)['then'](_0xbd4a61=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x755cad['signal'],'file':_0xbd4a61,'onProgress':_0x23e6a5=>{_0x23e6a5&&_0x23e6a5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x23e6a5['value']));}}))['then'](_0x5b53b=>{const {width:_0x545b97,height:_0x3227e8}=_0x5b53b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b53b['cdnUrl'],this['imageDimension']={'width':_0x545b97,'height':_0x3227e8},this['imageId']=_0x5b53b['uuid'],this['imageUploadProgress']=null;const _0x25aa5c=_0x3b5881['getAttribute']('src');this['_imageCache']['set'](_0x25aa5c,{'id':_0x5b53b['uuid'],'url':_0x5b53b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x49d4aa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x49d4aa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x59da27,_0x5d1dd9){_0x59da27['on']('apply',(_0x5e45a0,_0x9e332d)=>{this['_replaceImage'](_0x5d1dd9,_0x9e332d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x59da27['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x59da27['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5ddc42,_0x115e46,_0x81091e){const _0xe8ab65=this['_editor'],{width:_0x738253,height:_0x438276}=C(_0x115e46,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4302a1,imageSources:_0x303abd}=k(_0x115e46,_0x738253);_0xe8ab65['model']['change'](_0x4e1faa=>{if('$graveyard'===_0x5ddc42['root']['rootName']){_0xe8ab65['execute']('insertImage',{'imageType':_0x5ddc42['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5ddc42['getAttributes']()),'uploadcareImageId':_0x81091e,'src':_0x4302a1,'sources':_0x303abd,'width':_0x738253,'height':_0x438276}});const _0x147bbd=_0x5ddc42['getChildren']();_0x5ddc42=_0xe8ab65['model']['document']['selection']['getSelectedElement']();for(const _0x54b022 of _0x147bbd)_0x4e1faa['append'](_0x4e1faa['cloneElement'](_0x54b022),_0x5ddc42);}else _0x4e1faa['setSelection'](_0x5ddc42,'on'),_0xe8ab65['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5ddc42['getAttributes']()),'uploadcareImageId':_0x81091e,'src':_0x4302a1,'sources':_0x303abd,'width':_0x738253,'height':_0x438276},_0x5ddc42);_0x4e1faa['setSelection'](_0x5ddc42,'on');});}async['_getImageAsFile'](_0x459137){const _0x19f3be=_0x3ac262['window'],_0x1aaa7f=_0x3ac262['document']['location']['href'],_0x25a38c=new _0x19f3be['URL'](_0x459137['getAttribute']('src'),_0x1aaa7f);if('data:'===_0x25a38c['protocol']){const _0x4abb97=_0x25a38c['href']['split'](','),_0x42d8d9=_0x4abb97[0x0]['match'](/:(.*?);/)[0x1],_0x44ff5a=_0x42d8d9['split']('/')[0x1],_0x2c35ed=_0x19f3be['atob'](_0x4abb97[_0x4abb97['length']-0x1]);let _0xca3bc4=_0x2c35ed['length'];const _0x15ef76=new _0x19f3be['Uint8Array'](_0xca3bc4);for(;_0xca3bc4--;)_0x15ef76[_0xca3bc4]=_0x2c35ed['charCodeAt'](_0xca3bc4);return new _0x19f3be['File']([_0x15ef76],'image.'+_0x44ff5a,{'type':_0x42d8d9});}const _0x42da00=_0x25a38c['href']['split']('/'),_0xe9b620=_0x42da00[_0x42da00['length']-0x1],_0x355fc5=_0xe9b620['split']('.')[0x1];return _0x19f3be['fetch'](_0x25a38c['href'])['then'](_0x5edaac=>_0x5edaac['clone']()['blob']())['then'](_0xd29145=>new _0x19f3be['File']([_0xd29145],_0xe9b620,{'type':'image/'+_0x355fc5}));}}class O extends _0x2238a1{['imageEditController'];static get['requires'](){return[_0x32df1c];}['_isEditable'];constructor(_0x3f911e){super(_0x3f911e),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4a3109){const _0x1af731=G(_0x4a3109);return _0x249e74=>!(!_0x249e74||!_0x249e74['is']('element','imageBlock')&&!_0x249e74['is']('element','imageInline'))&&(!!_0x249e74['hasAttribute']('uploadcareImageId')||!!_0x249e74['hasAttribute']('src')&&_0x1af731(_0x249e74['getAttribute']('src')));}(_0x3f911e['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3d451f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3d451f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x93cc57=this['editor']['model']['document']['selection']['getSelectedElement']();_0x93cc57&&(_0x93cc57['is']('element','imageBlock')||_0x93cc57['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x32df1c),_0x93cc57),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x2238a1{['refresh'](){const _0x113a2d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x113a2d&&(_0x113a2d['is']('element','imageBlock')||_0x113a2d['is']('element','imageInline')));}['execute'](_0x428f24){const _0xa8e114=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x21be6a=>{_0x21be6a['setAttributes'](_0x428f24,_0xa8e114),_0x21be6a['removeAttribute']('srcset',_0xa8e114),_0x21be6a['removeAttribute']('sizes',_0xa8e114);});}}class m extends _0x13dee5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x50102b,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x41e09b}=this;_0x41e09b['commands']['add']('uploadcareImageEdit',new O(_0x41e09b)),_0x41e09b['commands']['add']('uploadcareImageReplace',new R(_0x41e09b));}}class g extends _0x13dee5{['_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 _0xde1caf=this['editor'];_0xde1caf['ui']['componentFactory']['add']('uploadcareImageEdit',_0x85554d=>{const _0x54d4f5=_0xde1caf['commands']['get']('uploadcareImageEdit'),_0x5b9bb3=new _0x4040c0(_0x85554d),t=_0x85554d['t'];return _0x5b9bb3['set']({'icon':_0x1a6202,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5b9bb3['bind']('isEnabled')['to'](_0x54d4f5),_0x5b9bb3['bind']('isOn')['to'](_0x54d4f5,'isActive'),this['listenTo'](_0x5b9bb3,'execute',()=>{_0xde1caf['execute']('uploadcareImageEdit'),_0xde1caf['editing']['view']['focus']();}),_0x5b9bb3;}),this['_initConfig']();}['_initConfig'](){const _0x2d39ef=_0x564f8a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2d39ef),this['listenTo'](this['editor'],'destroy',()=>{_0x2d39ef['remove']();});}}class et extends _0x13dee5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0xf6a35a,Command as _0x4f7e6f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4b1496,IconGooglePhotos as _0x435b42,IconGoogleDrive as _0x21aafd,IconFacebook as _0x46aba7,IconDropbox as _0x4d4e4f,IconUploadcareLink as _0x8668da,IconUploadcareImageUpload as _0x236887,IconError as _0x5a770c,IconUploadcareImageEdit as _0x45e2a0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2b70cd,MenuBarMenuListItemButtonView as _0x51e882,View as _0x1e7c86,FocusCycler as _0x32b41a,Dialog as _0x1761c2,DialogViewPosition as _0x188ce3,SpinnerView as _0x3ee959,IconView as _0x37d76c,Notification as _0x1d0ead}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xab41e0,DomEmitterMixin as _0x1882d5,global as _0x46c507,getAncestors as _0x3d7977,ObservableMixin as _0x5d4e50,uid as _0x8ba1cf,createElement as _0x7c7a62}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x848664}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3cbacf,info as _0x3cc4a1}from'@uploadcare/upload-client';import*as _0x4ad440 from'@uploadcare/file-uploader';var i=function(_0x4eb177){return _0x4eb177['Local']='local',_0x4eb177['URL']='url',_0x4eb177['Dropbox']='dropbox',_0x4eb177['GDrive']='gdrive',_0x4eb177['Facebook']='facebook',_0x4eb177['GPhotos']='gphotos',_0x4eb177['OneDrive']='onedrive',_0x4eb177;}({});function _(_0x75d2f7,_0x29685b,_0x16bbd7){const t=_0x75d2f7['t'],_0x328b1=_0x75d2f7['t'];switch(_0x29685b){case i['Local']:return{'text':_0x328b1('Insert'===_0x16bbd7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x328b1('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x16bbd7?_0x328b1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x328b1('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x16bbd7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x16bbd7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x16bbd7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x16bbd7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x16bbd7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x29685b;}}class e extends _0xf6a35a{['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 _0x2dde39=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x59257b;for(const _0x279ab6 in _0x2dde39){const _0x1cdaaa=_0x279ab6,_0x2d287c=_0x2dde39[_0x1cdaaa];if('uploadcareLicenseKeyValid'==_0x2d287c||'uploadcareLicenseKeyInvalid'==_0x2d287c||'uploadcareLicenseKeyExpired'==_0x2d287c||'uploadcareLicenseKeyDomainLimit'==_0x2d287c||'uploadcareLicenseKeyNotAllowed'==_0x2d287c||'uploadcareLicenseKeyEvaluationLimit'==_0x2d287c||'uploadcareLicenseKeyTrialLimit'==_0x2d287c||'uploadcareLicenseKeyUsageLimit'==_0x2d287c){delete _0x2dde39[_0x1cdaaa],_0x59257b=_0x2d287c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x59257b&&_0x2dde39['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x59257b&&_0x2dde39['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x59257b&&_0x2dde39['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x59257b&&_0x2dde39['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x59257b&&_0x2dde39['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x59257b&&_0x2dde39['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x59257b&&_0x2dde39['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5e15ce}=this,_0x41904f=_0x5e15ce['commands']['get']('uploadcare');if(!_0x41904f)return;const _0x5e5353=this['_normalizeConfigSourceList'](_0x5e15ce['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1e2dde,_0x361f28)=>{const _0x13b1a1=this['_getIntegrationKey'](_0x361f28['type']);return _0x1e2dde[_0x13b1a1]||(_0x1e2dde[_0x13b1a1]=[]),_0x1e2dde[_0x13b1a1]['push'](_0x361f28),_0x1e2dde;},{});_0x5e15ce['plugins']['has']('ImageInsertUI')&&_0x5e15ce['commands']['get']('uploadcare')&&Object['entries'](_0x5e5353)['forEach'](([_0x319541,_0x1c3136])=>{_0x5e15ce['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x319541,'observable':()=>_0x41904f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1c3136),'formViewCreator':()=>this['_createDropdownButtons'](_0x1c3136),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1c3136),'override':'assetManager'!==_0x319541});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x220385){const {locale:_0x234307}=this['editor'];return _0x220385['map'](_0x25bbf9=>{const _0x22c66d=_(_0x234307,_0x25bbf9,'Insert');switch(_0x25bbf9){case i['Local']:return{'icon':_0x236887,'type':i['Local'],..._0x22c66d};case i['URL']:return{'icon':_0x8668da,'type':i['URL'],..._0x22c66d};case i['Dropbox']:return{'icon':_0x4d4e4f,'type':i['Dropbox'],..._0x22c66d};case i['Facebook']:return{'icon':_0x46aba7,'type':i['Facebook'],..._0x22c66d};case i['GDrive']:return{'icon':_0x21aafd,'type':i['GDrive'],..._0x22c66d};case i['GPhotos']:return{'icon':_0x435b42,'type':i['GPhotos'],..._0x22c66d};case i['OneDrive']:return{'icon':_0x4b1496,'type':i['OneDrive'],..._0x22c66d};}});}['_getIntegrationKey'](_0x1b66dd){switch(_0x1b66dd){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x456b05,_0x1d10d8){const _0x21df24=this['editor'],_0x288643=new _0x456b05(_0x21df24['locale']),_0x194b06=_0x21df24['commands']['get']('uploadcare');return _0x288643['bind']('isEnabled')['to'](_0x194b06),_0x288643['on']('execute',()=>{_0x194b06['execute'](_0x1d10d8);}),_0x288643;}['_createToolbarButton'](_0xe35c7c){const {locale:_0x3edb0e}=this['editor'],_0x12b129=this['editor']['plugins']['get']('ImageInsertUI'),_0x4938d0=_0xe35c7c[0x0],_0x5defbb=this['_createButton'](_0x2b70cd,_0x4938d0['type']);return _0x5defbb['icon']=_0x4938d0['icon'],_0x5defbb['bind']('label')['to'](_0x12b129,'isImageSelected',_0x1fbbe1=>_(_0x3edb0e,_0x4938d0['type'],_0x1fbbe1?'Replace':'Insert')['text']),_0x5defbb['tooltip']=!0x0,_0x5defbb;}['_createDropdownButtons'](_0x29d95e){const {locale:_0x22690f}=this['editor'],_0x9cdf19=this['editor']['plugins']['get']('ImageInsertUI');return _0x29d95e['map'](_0x4a896d=>{const _0x2390de=this['_createButton'](_0x2b70cd,_0x4a896d['type']);return _0x2390de['withText']=!0x0,_0x2390de['icon']=_0x4a896d['icon'],_0x2390de['bind']('label')['to'](_0x9cdf19,'isImageSelected',_0x3bc693=>_(_0x22690f,_0x4a896d['type'],_0x3bc693?'Replace':'Insert')['text']),_0x2390de;});}['_createMenuBarButtons'](_0x517bbd){return _0x517bbd['map'](_0x5c98a9=>{const _0x4459cd=this['_createButton'](_0x51e882,_0x5c98a9['type']);return _0x4459cd['icon']=_0x5c98a9['icon'],_0x4459cd['label']=_0x5c98a9['shortText'],_0x4459cd;});}}class F extends _0x1e7c86{['focusTracker'];['focusCycler'];constructor(_0x32018c){super(_0x32018c),this['focusTracker']=new _0xab41e0(),this['focusCycler']=new _0x32b41a({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x1e44f4,_0x4c1e8b){super(_0x1e44f4),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-'+_0x4c1e8b}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x396935,_0x3ba953){const _0x46f67d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x45bf90=>_0x45bf90<=_0x3ba953)['map'](_0x15bbb5=>_0x396935['replace'](/\/$/,'')+'/-/resize/'+_0x15bbb5+'x/\x20'+_0x15bbb5+'w');return{'imageFallbackUrl':_0x396935,'imageSources':[{'srcset':_0x46f67d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3ba953+'px)\x20100vw,\x20'+_0x3ba953+'px','type':'image/webp'}]};}function C(_0x5f3e06,_0x1aaaed,_0x278403){const _0x393e34=_0x5f3e06['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x393e34?parseInt(_0x393e34[0x1],0xa):_0x1aaaed,'height':_0x393e34?parseInt(_0x393e34[0x2],0xa):_0x278403};}function p(_0x5c2ad6,_0xc9d36d){const _0x35ec58=new(_0x1882d5())(),_0x217af0=_0x5c2ad6['plugins']['get']('ImageUtils'),_0xa6a81d=_0x5c2ad6['editing']['mapper']['toViewElement'](_0xc9d36d),_0x1b930f=_0x217af0['findViewImgElement'](_0xa6a81d),_0x79bd7e=_0x5c2ad6['editing']['view']['domConverter']['viewToDom'](_0x1b930f),_0x11fa33=_0xc9d36d['getAttribute']('width'),_0x592269=_0xc9d36d['getAttribute']('height'),_0xc30dce='image-processing';_0x5c2ad6['editing']['view']['change'](_0x2fc7b0=>{_0x2fc7b0['addClass'](_0xc30dce,_0xa6a81d),_0x2fc7b0['setStyle']('aspect-ratio',_0x11fa33+'/'+_0x592269,_0x1b930f);}),_0x35ec58['listenTo'](_0x79bd7e,'load',()=>{_0x35ec58['stopListening'](_0x79bd7e,'load'),_0x5c2ad6['editing']['view']['change'](_0x2b7d76=>{_0x2b7d76['removeClass'](_0xc30dce,_0xa6a81d),_0x2b7d76['removeStyle']('aspect-ratio',_0x1b930f);});});}function G(_0x3f93ac){if(Array['isArray'](_0x3f93ac)){const _0x5a50e8=_0x3f93ac['map'](G);return _0x2e8cbb=>_0x5a50e8['some'](_0x33c122=>_0x33c122(_0x2e8cbb));}if('origin'==_0x3f93ac){const _0x122e15=_0x46c507['window']['location']['origin'];return _0x1800c4=>new URL(_0x1800c4,_0x46c507['document']['baseURI'])['origin']==_0x122e15;}return'function'==typeof _0x3f93ac?_0x3f93ac:_0x3f93ac instanceof RegExp?_0x28ad85=>!(!_0x28ad85['match'](_0x3f93ac)&&!_0x28ad85['replace'](/^https?:\/\//,'')['match'](_0x3f93ac)):()=>!0x1;}function S(_0x390196,_0x2246ab){return _0x3d7977(_0x390196['target'])['includes'](_0x2246ab);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d4e50(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xb01e,_0x21a3bf,_0x594bd0){super(),this['_editor']=_0xb01e,this['_editing']=_0x21a3bf,this['_dialog']=_0xb01e['plugins']['get'](_0x1761c2),this['_api']=_0x21a3bf['ctxElement']['getAPI'](),this['_type']=_0x594bd0,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:_0xd699ea,model:_0x417654}=this['_editor'],_0x475393=_0x417654['document']['selection']['getSelectedElement'](),_0x4286df=_0x475393&&(_0x475393['is']('element','imageBlock')||_0x475393['is']('element','imageInline'));this['_formView']=new x(_0xd699ea,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x236887,'title':_(_0xd699ea,this['_type'],_0x4286df?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x188ce3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x395ef5=>!S(_0x395ef5,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x322369}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4a5537=>{const _0x16fb6e=_0x322369['length'];for(const _0x2c682d of _0x322369){const _0xafef17=_0x2c682d===_0x322369[_0x16fb6e-0x1],{cdnUrl:_0x1584b7,fileInfo:_0x5c0027}=_0x2c682d;if(!_0x1584b7||!_0x5c0027)continue;const {width:_0x25d155,height:_0x214d73}=_0x5c0027['imageInfo'],_0x59daef=C(_0x1584b7,_0x25d155,_0x214d73),_0x1be10c=k(_0x1584b7,_0x59daef['width']),_0x2e9fe9={'id':_0x5c0027['uuid'],'type':'image','attributes':{'imageDimension':_0x59daef,..._0x1be10c}};this['_insertAsset'](_0x2e9fe9,_0xafef17,_0x4a5537);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2ecfdc=>{'idle'===_0x2ecfdc['detail']['status']&&!_0x2ecfdc['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xbbd37f,_0x157e16,_0xf9e753){const _0x4e8e68=this['_editor']['model']['document']['selection'],_0x251bc1=_0x4e8e68['getSelectedElement'](),_0x55c96b=!(!_0x251bc1||!_0x251bc1['is']('element','imageInline'));_0xf9e753['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xbbd37f,_0x55c96b),_0x157e16||_0xf9e753['setSelection'](_0x4e8e68['getLastPosition']());}['_insertImage'](_0x20fa88,_0x383be8){const _0x273fe9=this['_editor'],{imageDimension:_0x599cb9,imageFallbackUrl:_0x3500a1,imageSources:_0x43aea9}=_0x20fa88['attributes'];_0x273fe9['execute']('insertImage',{'imageType':_0x383be8?'imageInline':null,'source':{'uploadcareImageId':_0x20fa88['id'],'src':_0x3500a1,'sources':_0x43aea9,..._0x599cb9}});}}class w extends _0x4f7e6f{['_editing'];['_controller']=null;static get['requires'](){return[_0x1761c2,o];}constructor(_0x2d349f){super(_0x2d349f),this['_editing']=_0x2d349f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5647a5){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5647a5);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x461b4b,publicKey:_0x3c8025,signal:_0x951ee4,onProgress:_0xc5734c}){return _0x3cbacf(_0x461b4b,{'publicKey':_0x3c8025,'store':'auto','signal':_0x951ee4,'onProgress':_0xc5734c});}static['getInfo'](_0x596e52,_0x1e6ec1){return _0x3cc4a1(_0x596e52,_0x1e6ec1);}}class f extends _0xf6a35a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x848664,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4e9fc6=this['editor'];if(!!!_0x4e9fc6['config']['get']('uploadcare'))return;_0x4e9fc6['plugins']['get'](_0x848664)['createUploadAdapter']=_0x3d46f1=>new A(_0x3d46f1,_0x4e9fc6),_0x4e9fc6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x272d77,{imageElement:_0x18b38b,data:_0x5afe6f})=>{_0x4e9fc6['model']['change'](_0x249cd2=>{_0x249cd2['setAttribute']('uploadcareImageId',_0x5afe6f['uploadcareImageId'],_0x18b38b);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x2c8d0f,_0x3ef2a8){this['loader']=_0x2c8d0f,this['editor']=_0x3ef2a8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x189ab8=this['editor']['config']['get']('uploadcare.pubkey'),_0x5799c9=await this['loader']['file'];return j['upload']({'file':_0x5799c9,'publicKey':_0x189ab8,'signal':this['controller']['signal'],'onProgress':_0x1309be=>{_0x1309be&&_0x1309be['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1309be['value']);}})['then'](async _0x527ac6=>{const {imageFallbackUrl:_0x27e644,imageSources:_0xe00b08}=k(_0x527ac6['cdnUrl'],_0x527ac6['imageInfo']['width']);return{'uploadcareImageId':_0x527ac6['uuid'],'default':_0x27e644,'sources':_0xe00b08};})['catch'](()=>{const _0x2ee285=t('Cannot\x20upload\x20file:')+('\x20'+_0x5799c9['name']+'.');return Promise['reject'](_0x2ee285);});}['abort'](){this['controller']['abort']();}}class o extends _0xf6a35a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1761c2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5aeeec){super(_0x5aeeec),this['ucContextId']=_0x8ba1cf();}['init'](){const _0x245caf=this['editor'];_0x245caf['commands']['add']('uploadcare',new w(_0x245caf));}['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 _0x3499bd=_0x46c507['document']['querySelector']('input[uploadcare-file-input]');_0x3499bd&&_0x3499bd['remove']();}),async function(_0x50c37b){const _0x10a281=_0xd6bc5d([0x78,0x45,0x57,0x61,0x4b,0x55,0x47,0x77,0x62,0x71,0x42,0x79,0x48,0x56,0x34,0x5a,0x67,0x64,0x43,0x58,0x53,0x37,0x66,0x4e,0x73,0x74,0x4f,0x33,0x4d,0x65,0x54,0x52,0x41,0x6b,0x46,0x69,0x36,0x4c,0x6e,0x70,0x49,0x59,0x75,0x76,0x72,0x7a,0x6a,0x44,0x39,0x31,0x63,0x6f,0x6c,0x32,0x6d,0x38,0x68,0x50,0x51,0x30,0x35,0x4a]),_0xcec27c=0x6f708ba4,_0x5e247d=0x6f77e6b4^_0xcec27c,_0x42e57f=window[_0xd6bc5d([0x44,0x61,0x74,0x65])][_0xd6bc5d([0x6e,0x6f,0x77])](),_0x17573b=_0x50c37b[_0xd6bc5d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19bfa6=new window[(_0xd6bc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5441e7=>{_0x17573b[_0xd6bc5d([0x6f,0x6e,0x63,0x65])](_0xd6bc5d([0x72,0x65,0x61,0x64,0x79]),_0x5441e7);}),_0x501942={[_0xd6bc5d([0x6b,0x74,0x79])]:_0xd6bc5d([0x45,0x43]),[_0xd6bc5d([0x75,0x73,0x65])]:_0xd6bc5d([0x73,0x69,0x67]),[_0xd6bc5d([0x63,0x72,0x76])]:_0xd6bc5d([0x50,0x2d,0x32,0x35,0x36]),[_0xd6bc5d([0x78])]:_0xd6bc5d([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]),[_0xd6bc5d([0x79])]:_0xd6bc5d([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]),[_0xd6bc5d([0x61,0x6c,0x67])]:_0xd6bc5d([0x45,0x53,0x32,0x35,0x36])},_0x4e76cb=_0x17573b[_0xd6bc5d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd6bc5d([0x67,0x65,0x74])](_0xd6bc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d2a65(){let _0x4bd36d,_0x2953b9=null,_0x2738aa=null;try{if(_0x4e76cb==_0xd6bc5d([0x47,0x50,0x4c]))return _0xd6bc5d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4bd36d=_0x51ba10(),!_0x4bd36d)return _0xd6bc5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4bd36d[_0xd6bc5d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2738aa=_0x247740(_0x4bd36d[_0xd6bc5d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4bd36d[_0xd6bc5d([0x6a,0x74,0x69])])),await _0xd21b75()?_0x1d6c79()?_0x184d74()?_0xd6bc5d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b90bc()?(_0x4bd36d[_0xd6bc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd6bc5d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2953b9=_0x4abb0c(_0xd6bc5d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4bd36d[_0xd6bc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd6bc5d([0x74,0x72,0x69,0x61,0x6c])&&(_0x2953b9=_0x4abb0c(_0xd6bc5d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ca431()):_0xd6bc5d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd6bc5d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd6bc5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd6bc5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x184d74(){const _0x3aa0fa=[_0xd6bc5d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd6bc5d([0x74,0x72,0x69,0x61,0x6c])][_0xd6bc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bd36d[_0xd6bc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42e57f/0x3e8:0xe10*_0x5e247d;return _0x4bd36d[_0xd6bc5d([0x65,0x78,0x70])]<_0x3aa0fa;}function _0x1d6c79(){const _0x39ea6d=_0x4bd36d[_0xd6bc5d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x39ea6d&&(!!_0x39ea6d[_0xd6bc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6bc5d([0x2a]))||!!_0x39ea6d[_0xd6bc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6bc5d([0x55,0x50,0x4c,0x43])));}function _0x5b90bc(){const _0x31863a=_0x4bd36d[_0xd6bc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31863a||0x0==_0x31863a[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53cd96}=new URL(window[_0xd6bc5d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31863a[_0xd6bc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53cd96))return!0x0;const _0x36e02d=_0x53cd96[_0xd6bc5d([0x73,0x70,0x6c,0x69,0x74])](_0xd6bc5d([0x2e]));return _0x31863a[_0xd6bc5d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a9313=>_0x4a9313[_0xd6bc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6bc5d([0x2a])))[_0xd6bc5d([0x6d,0x61,0x70])](_0x4fd0ad=>_0x4fd0ad[_0xd6bc5d([0x73,0x70,0x6c,0x69,0x74])](_0xd6bc5d([0x2e])))[_0xd6bc5d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37bd38=>_0x37bd38[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36e02d[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd6bc5d([0x6d,0x61,0x70])](_0x1e3bd9=>Array(_0x36e02d[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1e3bd9[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd6bc5d([0x66,0x69,0x6c,0x6c])](_0x1e3bd9[0x0]===_0xd6bc5d([0x2a])?_0xd6bc5d([0x2a]):'')[_0xd6bc5d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1e3bd9))[_0xd6bc5d([0x73,0x6f,0x6d,0x65])](_0x54555d=>_0x36e02d[_0xd6bc5d([0x65,0x76,0x65,0x72,0x79])]((_0x5111d0,_0x2ca36a)=>_0x54555d[_0x2ca36a]===_0x5111d0||_0x54555d[_0x2ca36a]===_0xd6bc5d([0x2a])));}function _0x4ca431(){return _0x2953b9&&_0x2738aa?new window[(_0xd6bc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52591e,_0x86ff44)=>{_0x2953b9[_0xd6bc5d([0x74,0x68,0x65,0x6e])](_0x52591e,_0x86ff44),_0x2738aa[_0xd6bc5d([0x74,0x68,0x65,0x6e])](_0x16d0ad=>{_0x16d0ad!=_0xd6bc5d([0x56,0x61,0x6c,0x69,0x64])&&_0x52591e(_0x16d0ad);},_0x86ff44);}):_0x2953b9||_0x2738aa||_0xd6bc5d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x247740(_0x50c85b,_0x87e34b){return new window[(_0xd6bc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dd206=>{if(_0x2df84f())return _0x2dd206(_0xd6bc5d([0x56,0x61,0x6c,0x69,0x64]));_0x47a6cd(),_0x17573b[_0xd6bc5d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd6bc5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x587cc0=!0x1;const _0x45c124=_0x8ba1cf();function _0x148e84(_0x41ff8d){return!!_0x41ff8d&&(typeof _0x41ff8d===_0xd6bc5d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41ff8d===_0xd6bc5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41ff8d[_0xd6bc5d([0x74,0x68,0x65,0x6e])]===_0xd6bc5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41ff8d[_0xd6bc5d([0x63,0x61,0x74,0x63,0x68])]===_0xd6bc5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x221415(_0x5d6e39){_0x1c6b18(_0x5d6e39)[_0xd6bc5d([0x74,0x68,0x65,0x6e])](_0x51071d=>{if(!_0x51071d||_0x51071d[_0xd6bc5d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd6bc5d([0x6f,0x6b]))return _0xd6bc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2dcb52(_0x6093c5(_0x45c124+_0x87e34b))!=_0x51071d[_0xd6bc5d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd6bc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd6bc5d([0x56,0x61,0x6c,0x69,0x64]);})[_0xd6bc5d([0x74,0x68,0x65,0x6e])](_0x2d76f5=>(_0x181db4(),_0x2d76f5),()=>{const _0x442d05=_0x39bda1();return null==_0x442d05?(_0x181db4(),_0xd6bc5d([0x56,0x61,0x6c,0x69,0x64])):_0xd6bc5d(_0x42e57f-_0x442d05>(0x4b7c0fa4^_0xcec27c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd6bc5d([0x74,0x68,0x65,0x6e])](_0x2dd206)[_0xd6bc5d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dd206(_0xd6bc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x14aa80=0x6f466524^_0xcec27c;function _0x181db4(){const _0x1dfd2=_0xd6bc5d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2dcb52(_0x6093c5(_0x50c85b)),_0x2beac2=_0x447e94(_0x2dcb52(window[_0xd6bc5d([0x4d,0x61,0x74,0x68])][_0xd6bc5d([0x63,0x65,0x69,0x6c])](_0x42e57f/_0x14aa80)));window[_0xd6bc5d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd6bc5d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dfd2,_0x2beac2);}function _0x39bda1(){const _0x51ff5d=_0xd6bc5d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2dcb52(_0x6093c5(_0x50c85b)),_0x540a32=window[_0xd6bc5d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd6bc5d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51ff5d);return _0x540a32?window[_0xd6bc5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x447e94(_0x540a32),0x10)*_0x14aa80:null;}function _0x1c6b18(_0x5b4e61){return new window[(_0xd6bc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x581a0f,_0x399336)=>{_0x5b4e61[_0xd6bc5d([0x74,0x68,0x65,0x6e])](_0x581a0f,_0x399336),window[_0xd6bc5d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x399336,0x6f715f64^_0xcec27c);});}}_0x17573b[_0xd6bc5d([0x6f,0x6e])](_0xd6bc5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57326a,_0xd71459)=>{if(_0xd71459[0x0]!=_0x50c85b)return _0x2dd206(_0xd6bc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd71459[0x1]={..._0xd71459[0x1],[_0xd6bc5d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45c124};},{[_0xd6bc5d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd6bc5d([0x68,0x69,0x67,0x68])}),_0x17573b[_0xd6bc5d([0x6f,0x6e])](_0xd6bc5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe825ab=>{_0x148e84(_0xe825ab[_0xd6bc5d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x587cc0=!0x0,_0x221415(_0xe825ab[_0xd6bc5d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd6bc5d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd6bc5d([0x6c,0x6f,0x77])}),_0x19bfa6[_0xd6bc5d([0x74,0x68,0x65,0x6e])](()=>{_0x587cc0||_0x2dd206(_0xd6bc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2df84f(){return _0x17573b[_0xd6bc5d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd6bc5d([0x76,0x69,0x65,0x77])][_0xd6bc5d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd6bc5d([0x61,0x75,0x74,0x6f]);}function _0x47a6cd(){_0x17573b[_0xd6bc5d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd6bc5d([0x76,0x69,0x65,0x77])][_0xd6bc5d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd6bc5d([0x61,0x75,0x74,0x6f]);}}function _0x4abb0c(_0x4bc481){const _0x1fc5d1=[new window[(_0xd6bc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3331c3=>setTimeout(_0x3331c3,0x6f79b568^_0xcec27c)),_0x19bfa6[_0xd6bc5d([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd6bc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c9ef9=>{let _0x59c5ff=0x0;_0x17573b[_0xd6bc5d([0x6d,0x6f,0x64,0x65,0x6c])][_0xd6bc5d([0x6f,0x6e])](_0xd6bc5d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54ce1e,_0x24e1d6)=>{_0x24e1d6[0x0][_0xd6bc5d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x59c5ff++,_0x59c5ff==(0x6f708a5c^_0xcec27c)&&(_0x5c9ef9(),_0x54ce1e[_0xd6bc5d([0x6f,0x66,0x66])]());});}))];return window[_0xd6bc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd6bc5d([0x72,0x61,0x63,0x65])](_0x1fc5d1)[_0xd6bc5d([0x74,0x68,0x65,0x6e])](()=>_0x4bc481);}async function _0x3e369e(){await _0x19bfa6,_0x17573b[_0xd6bc5d([0x6d,0x6f,0x64,0x65,0x6c])][_0xd6bc5d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5bfbbd,_0x17573b[_0xd6bc5d([0x6d,0x6f,0x64,0x65,0x6c])][_0xd6bc5d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5bfbbd,_0x17573b[_0xd6bc5d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd6bc5d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d5995(_0x404b64){const _0x29a974=_0xdf21eb();_0x17573b[_0x29a974]=_0xd6bc5d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x404b64,_0x404b64!=_0xd6bc5d([0x56,0x61,0x6c,0x69,0x64])&&_0x3e369e();}function _0xdf21eb(){const _0x1e3b2b=window[_0xd6bc5d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd6bc5d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd6bc5d([0x6e,0x6f,0x77])]())[_0xd6bc5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd6bc5d([0x2e]),'');let _0x41d2c5=_0xd6bc5d([0x78]);for(let _0x56d438=0x0;_0x56d438<_0x1e3b2b[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56d438+=0x2){let _0x14a850=window[_0xd6bc5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e3b2b[_0xd6bc5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56d438,_0x56d438+0x2));_0x14a850>=_0x10a281[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14a850-=_0x10a281[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41d2c5+=_0x10a281[_0x14a850];}return _0x41d2c5;}function _0x51ba10(){const _0x2d60ba=_0x4e76cb[_0xd6bc5d([0x73,0x70,0x6c,0x69,0x74])](_0xd6bc5d([0x2e]));if(0x3!=_0x2d60ba[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x394202(_0x2d60ba[0x1]);function _0x394202(_0x54b650){const _0x51fe78=_0x4bdf43(_0x54b650);return _0x51fe78&&_0x4fc885()?_0x51fe78:null;function _0x4fc885(){const _0x56f181=_0x51fe78[_0xd6bc5d([0x6a,0x74,0x69])],_0x3c0e4f=window[_0xd6bc5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56f181[_0xd6bc5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56f181[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x571bc1={..._0x51fe78,[_0xd6bc5d([0x6a,0x74,0x69])]:_0x56f181[_0xd6bc5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56f181[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x571bc1[_0xd6bc5d([0x76,0x63])],_0x6093c5(_0x571bc1)==_0x3c0e4f;}}}async function _0xd21b75(){let _0x4ca801=!0x0;try{const _0x48782d=_0x4e76cb[_0xd6bc5d([0x73,0x70,0x6c,0x69,0x74])](_0xd6bc5d([0x2e])),[_0x3db767,_0xa2d19,_0x98faa9]=_0x48782d;return _0x249ed4(_0x3db767),await _0x26c070(_0x3db767,_0xa2d19,_0x98faa9),_0x4ca801;}catch{return!0x1;}function _0x249ed4(_0x50b886){const _0x4fbfae=_0x4bdf43(_0x50b886);_0x4fbfae&&_0x4fbfae[_0xd6bc5d([0x61,0x6c,0x67])]==_0xd6bc5d([0x45,0x53,0x32,0x35,0x36])||(_0x4ca801=!0x1);}async function _0x26c070(_0x34c356,_0x38c50e,_0x40e18c){const _0x296a=window[_0xd6bc5d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd6bc5d([0x66,0x72,0x6f,0x6d])](_0x14559a(_0x40e18c),_0x17c718=>_0x17c718[_0xd6bc5d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b588c=new window[(_0xd6bc5d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd6bc5d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x34c356+_0xd6bc5d([0x2e])+_0x38c50e),_0x4744d2=window[_0xd6bc5d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd6bc5d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4744d2)return;const _0x338ce5=await _0x4744d2[_0xd6bc5d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd6bc5d([0x6a,0x77,0x6b]),_0x501942,{[_0xd6bc5d([0x6e,0x61,0x6d,0x65])]:_0xd6bc5d([0x45,0x43,0x44,0x53,0x41]),[_0xd6bc5d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd6bc5d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd6bc5d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4744d2[_0xd6bc5d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd6bc5d([0x6e,0x61,0x6d,0x65])]:_0xd6bc5d([0x45,0x43,0x44,0x53,0x41]),[_0xd6bc5d([0x68,0x61,0x73,0x68])]:{[_0xd6bc5d([0x6e,0x61,0x6d,0x65])]:_0xd6bc5d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x338ce5,_0x296a,_0x4b588c)||(_0x4ca801=!0x1);}}function _0x4bdf43(_0x27e9ad){return _0x27e9ad[_0xd6bc5d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd6bc5d([0x65,0x79]))?JSON[_0xd6bc5d([0x70,0x61,0x72,0x73,0x65])](_0x14559a(_0x27e9ad)):null;}function _0x14559a(_0x6d8041){return window[_0xd6bc5d([0x61,0x74,0x6f,0x62])](_0x6d8041[_0xd6bc5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd6bc5d([0x2b]))[_0xd6bc5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd6bc5d([0x2f])));}function _0x6093c5(_0x52056f){let _0x48930f=0x1505;function _0x3bda35(_0x25300e){for(let _0x1e0b87=0x0;_0x1e0b87<_0x25300e[_0xd6bc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e0b87++){const _0x4a519f=_0x25300e[_0xd6bc5d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e0b87);_0x48930f=(_0x48930f<<0x5)+_0x48930f+_0x4a519f,_0x48930f&=_0x48930f;}}function _0x278c96(_0x600d4a){Array[_0xd6bc5d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x600d4a)?_0x600d4a[_0xd6bc5d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x278c96):_0x600d4a&&typeof _0x600d4a==_0xd6bc5d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd6bc5d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x600d4a)[_0xd6bc5d([0x73,0x6f,0x72,0x74])]()[_0xd6bc5d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5f37a8,_0x4949d4])=>{_0x3bda35(_0x5f37a8),_0x278c96(_0x4949d4);}):_0x3bda35(window[_0xd6bc5d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x600d4a));}return _0x278c96(_0x52056f),_0x48930f>>>0x0;}function _0x2dcb52(_0x3683a2){return _0x3683a2[_0xd6bc5d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd6bc5d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd6bc5d([0x30]));}function _0x447e94(_0x4c3749){return _0x4c3749[_0xd6bc5d([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd6bc5d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd6bc5d([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bfbbd(){}function _0xd6bc5d(_0x2b7180){return _0x2b7180['map'](_0x4fcfdd=>String['fromCharCode'](_0x4fcfdd))['join']('');}_0x2d5995(await _0x5d2a65());}(this);}['_initSchema'](){const _0x47969d=this['editor']['model']['schema'];_0x47969d['isRegistered']('imageBlock')&&_0x47969d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x47969d['isRegistered']('imageInline')&&_0x47969d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4a310a=this['editor'];_0x4a310a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4a310a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3de7ad=>_0x3de7ad['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e69ae=_0x4a310a['commands']['get']('replaceImageSource');_0x1e69ae&&this['listenTo'](_0x1e69ae,'cleanupImage',(_0x4c4648,[_0x3f11b8,_0x38536b])=>{_0x3f11b8['removeAttribute']('uploadcareImageId',_0x38536b);});}['_initConfig'](){const _0x4af083=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4d44ee=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x7c7a62(_0x46c507['document'],'uc-config',{..._0x4af083,'pubkey':_0x4d44ee,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x20590a=>{if('closeMax'==_0x20590a)return'#uc-icon-arrow-down';},_0x46c507['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x7c7a62(_0x46c507['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x46c507['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5ef76c=this['editor']['commands']['get']('insertImage');_0x5ef76c&&this['listenTo'](_0x5ef76c,'execute',()=>{const _0x1696da=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1696da&&_0x1696da['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1696da);});});const _0x12b629=this['editor']['commands']['get']('uploadcareImageReplace');_0x12b629&&this['listenTo'](_0x12b629,'execute',()=>{const _0x58f140=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58f140&&_0x58f140['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x58f140);});});}}class tt extends _0xf6a35a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x91b96c){super(_0x91b96c),_0x91b96c['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4ad440['defineComponents'](_0x4ad440);}}class ii extends _0x1e7c86{constructor(_0x283e1b){super(_0x283e1b);const t=_0x283e1b['t'],_0x2249a2=this['bindTemplate'],_0x196e6d=new _0x3ee959();_0x196e6d['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':[_0x196e6d,{'text':_0x2249a2['to']('imageUploadProgress',_0x3ffdb2=>t('Loading\x20image...')+'\x20('+(_0x3ffdb2||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x1e7c86{constructor(_0x3064bd){super(_0x3064bd);const t=_0x3064bd['t'];this['set']('errorType',null);const _0x6f6eca=new _0x2b70cd(_0x3064bd);_0x6f6eca['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x6f6eca['withText']=!0x0,_0x6f6eca['class']='ck-button-action',_0x6f6eca['on']('execute',()=>{this['fire']('retry');}),_0x6f6eca['bind']('isVisible')['to'](this,'errorType',_0x4b9d7d=>'NotFound'!==_0x4b9d7d);const _0x153c69=new _0x37d76c();_0x153c69['content']=_0x5a770c,_0x153c69['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x382f90=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':[_0x153c69,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x382f90['to']('errorType',_0x3e4f8c=>t('NotFound'!==_0x3e4f8c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x6f6eca]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x1e7c86{constructor(_0xef741,_0x445c1a){super(_0xef741);const _0x48b109=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x445c1a,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x48b109['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3bd808,_0x1da022,_0xcc0780){super(_0x3bd808),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3bd808),this['_errorView']=new ti(_0x3bd808),this['_editingView']=new ei(_0x3bd808,_0xcc0780),this['_focusableView']=new _0x1e7c86(_0x3bd808),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1da022),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'],_0x445e1e=>{this['_addUploadcareImageEditorListeners'](_0x445e1e);});}),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'](_0xbcdcac,_0xc80965){const _0x4d672b='uc-cloud-image-editor',_0x169dd3=_0xbcdcac['querySelector'](_0x4d672b);if(_0x169dd3)return _0xc80965(_0x169dd3);const _0x532ab9=new MutationObserver(_0x479ef9=>{const _0x454d16=_0x479ef9['filter'](_0x480988=>_0x480988['target']===_0xbcdcac&&_0x480988['addedNodes']['length']>0x0&&_0x480988['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4d672b);_0x454d16['length']&&(_0x532ab9['disconnect'](),_0xc80965(_0x454d16[0x0]['addedNodes'][0x0]));});_0x532ab9['observe'](_0xbcdcac,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2dcf16){_0x2dcf16['addEventListener']('apply',_0xcb0c95=>{this['fire']('apply',{'imageSrc':_0xcb0c95['detail']['cdnUrl']});}),_0x2dcf16['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5d4e50(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x14fbfb,_0x174da7,_0x26287a){super(),this['_editor']=_0x14fbfb,this['_dialog']=_0x174da7,this['_imageElement']=_0x26287a,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 _0x156ce2=this['_imageElement'],_0x42005f=_0x156ce2['getAttribute']('uploadcareImageId'),_0x23bf0f=_0x156ce2['getAttribute']('src');if(_0x42005f)await this['_loadImageInfo'](_0x42005f,_0x23bf0f);else{if(this['_imageCache']['has'](_0x23bf0f)){const _0x114dc9=this['_imageCache']['get'](_0x23bf0f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x114dc9['url'],this['imageDimension']=_0x114dc9['dimension'],this['imageId']=_0x114dc9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x27b513}=this['_editor'],t=_0x27b513['t'],_0x5102a1=new X(_0x27b513,this['imageStatus'],this['_attributes']);_0x5102a1['bind']('status')['to'](this,'imageStatus'),_0x5102a1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5102a1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5102a1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5102a1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x45e2a0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5102a1,'position':_0x188ce3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5102a1['focus']();},'onHide':()=>{_0x5102a1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x537943=>!S(_0x537943,_0x5102a1['element'])}});}['_loadImageInfo'](_0x252379,_0x337c50){return j['getInfo'](_0x252379,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x37ec8e=>{const {width:_0x2c80c8,height:_0x5432a1}=_0x37ec8e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x337c50,this['imageDimension']={'width':_0x2c80c8,'height':_0x5432a1},this['imageId']=_0x252379;})['catch'](_0xc647cc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xc647cc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5e5492,_0x3c8812){return this['_getImageAsFile'](_0x5e5492)['then'](_0x36b4ba=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3c8812['signal'],'file':_0x36b4ba,'onProgress':_0x392b62=>{_0x392b62&&_0x392b62['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x392b62['value']));}}))['then'](_0x439ebb=>{const {width:_0x393ac9,height:_0x21c67e}=_0x439ebb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x439ebb['cdnUrl'],this['imageDimension']={'width':_0x393ac9,'height':_0x21c67e},this['imageId']=_0x439ebb['uuid'],this['imageUploadProgress']=null;const _0x7c64b1=_0x5e5492['getAttribute']('src');this['_imageCache']['set'](_0x7c64b1,{'id':_0x439ebb['uuid'],'url':_0x439ebb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x264d83=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x264d83['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4d6d6f,_0x24014c){_0x4d6d6f['on']('apply',(_0x207618,_0x191234)=>{this['_replaceImage'](_0x24014c,_0x191234['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4d6d6f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4d6d6f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x22ea41,_0x18d491,_0x397909){const _0x225d5a=this['_editor'],{width:_0x345127,height:_0x2e75ab}=C(_0x18d491,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x29e20a,imageSources:_0x678e2c}=k(_0x18d491,_0x345127);_0x225d5a['model']['change'](_0x216b63=>{if('$graveyard'===_0x22ea41['root']['rootName']){_0x225d5a['execute']('insertImage',{'imageType':_0x22ea41['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x22ea41['getAttributes']()),'uploadcareImageId':_0x397909,'src':_0x29e20a,'sources':_0x678e2c,'width':_0x345127,'height':_0x2e75ab}});const _0x132b6f=_0x22ea41['getChildren']();_0x22ea41=_0x225d5a['model']['document']['selection']['getSelectedElement']();for(const _0x556644 of _0x132b6f)_0x216b63['append'](_0x216b63['cloneElement'](_0x556644),_0x22ea41);}else _0x216b63['setSelection'](_0x22ea41,'on'),_0x225d5a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x22ea41['getAttributes']()),'uploadcareImageId':_0x397909,'src':_0x29e20a,'sources':_0x678e2c,'width':_0x345127,'height':_0x2e75ab},_0x22ea41);_0x216b63['setSelection'](_0x22ea41,'on');});}async['_getImageAsFile'](_0x4134f6){const _0x4e3933=_0x46c507['window'],_0x218915=_0x46c507['document']['location']['href'],_0x4303c2=new _0x4e3933['URL'](_0x4134f6['getAttribute']('src'),_0x218915);if('data:'===_0x4303c2['protocol']){const _0xdd83a8=_0x4303c2['href']['split'](','),_0x275584=_0xdd83a8[0x0]['match'](/:(.*?);/)[0x1],_0x11e9a3=_0x275584['split']('/')[0x1],_0x3c4146=_0x4e3933['atob'](_0xdd83a8[_0xdd83a8['length']-0x1]);let _0x391606=_0x3c4146['length'];const _0x453691=new _0x4e3933['Uint8Array'](_0x391606);for(;_0x391606--;)_0x453691[_0x391606]=_0x3c4146['charCodeAt'](_0x391606);return new _0x4e3933['File']([_0x453691],'image.'+_0x11e9a3,{'type':_0x275584});}const _0x58c2b3=_0x4303c2['href']['split']('/'),_0x469b2c=_0x58c2b3[_0x58c2b3['length']-0x1],_0x2d4c99=_0x469b2c['split']('.')[0x1];return _0x4e3933['fetch'](_0x4303c2['href'])['then'](_0x4ca88b=>_0x4ca88b['clone']()['blob']())['then'](_0x509ee9=>new _0x4e3933['File']([_0x509ee9],_0x469b2c,{'type':'image/'+_0x2d4c99}));}}class O extends _0x4f7e6f{['imageEditController'];static get['requires'](){return[_0x1761c2];}['_isEditable'];constructor(_0x14f79c){super(_0x14f79c),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x139580){const _0x4aadb7=G(_0x139580);return _0x267f6d=>!(!_0x267f6d||!_0x267f6d['is']('element','imageBlock')&&!_0x267f6d['is']('element','imageInline'))&&(!!_0x267f6d['hasAttribute']('uploadcareImageId')||!!_0x267f6d['hasAttribute']('src')&&_0x4aadb7(_0x267f6d['getAttribute']('src')));}(_0x14f79c['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3dbe63=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3dbe63);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x382dde=this['editor']['model']['document']['selection']['getSelectedElement']();_0x382dde&&(_0x382dde['is']('element','imageBlock')||_0x382dde['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1761c2),_0x382dde),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4f7e6f{['refresh'](){const _0x2727ed=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2727ed&&(_0x2727ed['is']('element','imageBlock')||_0x2727ed['is']('element','imageInline')));}['execute'](_0x216a5b){const _0x43a8ca=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4886fd=>{_0x4886fd['setAttributes'](_0x216a5b,_0x43a8ca),_0x4886fd['removeAttribute']('srcset',_0x43a8ca),_0x4886fd['removeAttribute']('sizes',_0x43a8ca);});}}class m extends _0xf6a35a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1d0ead,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x39a88b}=this;_0x39a88b['commands']['add']('uploadcareImageEdit',new O(_0x39a88b)),_0x39a88b['commands']['add']('uploadcareImageReplace',new R(_0x39a88b));}}class g extends _0xf6a35a{['_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 _0x1bfe39=this['editor'];_0x1bfe39['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2aff03=>{const _0x33f83d=_0x1bfe39['commands']['get']('uploadcareImageEdit'),_0x32b54b=new _0x2b70cd(_0x2aff03),t=_0x2aff03['t'];return _0x32b54b['set']({'icon':_0x45e2a0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x32b54b['bind']('isEnabled')['to'](_0x33f83d),_0x32b54b['bind']('isOn')['to'](_0x33f83d,'isActive'),this['listenTo'](_0x32b54b,'execute',()=>{_0x1bfe39['execute']('uploadcareImageEdit'),_0x1bfe39['editing']['view']['focus']();}),_0x32b54b;}),this['_initConfig']();}['_initConfig'](){const _0x198a7d=_0x7c7a62(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x198a7d),this['listenTo'](this['editor'],'destroy',()=>{_0x198a7d['remove']();});}}class et extends _0xf6a35a{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4981fd=>0x1!=_0x4981fd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xaa6e6b=>{const {af:{dictionary:_0x5995bb,getPluralForm:_0x2a9017}}={'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':_0x53c007=>0x1!=_0x53c007}};_0xaa6e6b['af']||={'dictionary':{},'getPluralForm':null},_0xaa6e6b['af']['dictionary']=Object['assign'](_0xaa6e6b['af']['dictionary'],_0x5995bb),_0xaa6e6b['af']['getPluralForm']=_0x2a9017;})(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':_0x255212=>0x0==_0x255212?0x0:0x1==_0x255212?0x1:0x2==_0x255212?0x2:_0x255212%0x64>=0x3&&_0x255212%0x64<=0xa?0x3:_0x255212%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x22dfaf=>{const {ar:{dictionary:_0x193e67,getPluralForm:_0x1ca611}}={'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':_0x31269c=>0x0==_0x31269c?0x0:0x1==_0x31269c?0x1:0x2==_0x31269c?0x2:_0x31269c%0x64>=0x3&&_0x31269c%0x64<=0xa?0x3:_0x31269c%0x64>=0xb?0x4:0x5}};_0x22dfaf['ar']||={'dictionary':{},'getPluralForm':null},_0x22dfaf['ar']['dictionary']=Object['assign'](_0x22dfaf['ar']['dictionary'],_0x193e67),_0x22dfaf['ar']['getPluralForm']=_0x1ca611;})(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':_0x4fa99e=>0x1!=_0x4fa99e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4e7083=>{const {ast:{dictionary:_0x4fe22d,getPluralForm:_0x423ec7}}={'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':_0x1bac69=>0x1!=_0x1bac69}};_0x4e7083['ast']||={'dictionary':{},'getPluralForm':null},_0x4e7083['ast']['dictionary']=Object['assign'](_0x4e7083['ast']['dictionary'],_0x4fe22d),_0x4e7083['ast']['getPluralForm']=_0x423ec7;})(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':_0x28cdee=>0x1!=_0x28cdee}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x359c57=>{const {az:{dictionary:_0x4ccf82,getPluralForm:_0x4b64bb}}={'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':_0xb8e41e=>0x1!=_0xb8e41e}};_0x359c57['az']||={'dictionary':{},'getPluralForm':null},_0x359c57['az']['dictionary']=Object['assign'](_0x359c57['az']['dictionary'],_0x4ccf82),_0x359c57['az']['getPluralForm']=_0x4b64bb;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3f1be6=>_0x3f1be6%0xa==0x1&&_0x3f1be6%0x64!=0xb?0x0:_0x3f1be6%0xa>=0x2&&_0x3f1be6%0xa<=0x4&&(_0x3f1be6%0x64<0xa||_0x3f1be6%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xf57b50=>{const {be:{dictionary:_0x577bdf,getPluralForm:_0xe228ae}}={'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':_0x3cd88d=>_0x3cd88d%0xa==0x1&&_0x3cd88d%0x64!=0xb?0x0:_0x3cd88d%0xa>=0x2&&_0x3cd88d%0xa<=0x4&&(_0x3cd88d%0x64<0xa||_0x3cd88d%0x64>=0x14)?0x1:0x2}};_0xf57b50['be']||={'dictionary':{},'getPluralForm':null},_0xf57b50['be']['dictionary']=Object['assign'](_0xf57b50['be']['dictionary'],_0x577bdf),_0xf57b50['be']['getPluralForm']=_0xe228ae;})(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':_0x1001c3=>0x1!=_0x1001c3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5af5d8=>{const {bg:{dictionary:_0x42e8ce,getPluralForm:_0x45bb7b}}={'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':_0x27e009=>0x1!=_0x27e009}};_0x5af5d8['bg']||={'dictionary':{},'getPluralForm':null},_0x5af5d8['bg']['dictionary']=Object['assign'](_0x5af5d8['bg']['dictionary'],_0x42e8ce),_0x5af5d8['bg']['getPluralForm']=_0x45bb7b;})(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':_0x46d20e=>0x1!=_0x46d20e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x57586e=>{const {bn:{dictionary:_0x415e08,getPluralForm:_0x3943c4}}={'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':_0x2e3252=>0x1!=_0x2e3252}};_0x57586e['bn']||={'dictionary':{},'getPluralForm':null},_0x57586e['bn']['dictionary']=Object['assign'](_0x57586e['bn']['dictionary'],_0x415e08),_0x57586e['bn']['getPluralForm']=_0x3943c4;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bs.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x58168c=>_0x58168c%0xa==0x1&&_0x58168c%0x64!=0xb?0x0:_0x58168c%0xa>=0x2&&_0x58168c%0xa<=0x4&&(_0x58168c%0x64<0xa||_0x58168c%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3f2727=>{const {bs:{dictionary:_0x1c08e8,getPluralForm:_0x4c747f}}={'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2008ce=>_0x2008ce%0xa==0x1&&_0x2008ce%0x64!=0xb?0x0:_0x2008ce%0xa>=0x2&&_0x2008ce%0xa<=0x4&&(_0x2008ce%0x64<0xa||_0x2008ce%0x64>=0x14)?0x1:0x2}};_0x3f2727['bs']||={'dictionary':{},'getPluralForm':null},_0x3f2727['bs']['dictionary']=Object['assign'](_0x3f2727['bs']['dictionary'],_0x1c08e8),_0x3f2727['bs']['getPluralForm']=_0x4c747f;})(window['CKEDITOR_TRANSLATIONS']||={});
|