@ckeditor/ckeditor5-uploadcare 47.3.0-alpha.5 → 47.3.0-alpha.6
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 _0x40f43f,Command as _0x49e9af}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3df212,IconGooglePhotos as _0x1b839,IconGoogleDrive as _0x2bdbef,IconFacebook as _0x19482d,IconDropbox as _0x3a5f21,IconUploadcareLink as _0x2983fa,IconUploadcareImageUpload as _0x38c2f1,IconError as _0x3c6794,IconUploadcareImageEdit as _0x1cc838}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x36a838,MenuBarMenuListItemButtonView as _0x11e3cd,View as _0x195d43,FocusCycler as _0x18943b,Dialog as _0x4b34c2,DialogViewPosition as _0x5e892f,SpinnerView as _0x36c641,IconView as _0x426fea,Notification as _0x5ddf90}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2531fb,DomEmitterMixin as _0x448f34,global as _0x18ade0,getAncestors as _0x2dd113,ObservableMixin as _0x59caef,uid as _0x1013be,createElement as _0x5e85be}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3225a5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xc0835e,info as _0x399194}from'@uploadcare/upload-client';import*as _0x20eee4 from'@uploadcare/file-uploader';var i=function(_0x2c9cf4){return _0x2c9cf4['Local']='local',_0x2c9cf4['URL']='url',_0x2c9cf4['Dropbox']='dropbox',_0x2c9cf4['GDrive']='gdrive',_0x2c9cf4['Facebook']='facebook',_0x2c9cf4['GPhotos']='gphotos',_0x2c9cf4['OneDrive']='onedrive',_0x2c9cf4;}({});function _(_0x5c41a5,_0x18409c,_0x38c846){const t=_0x5c41a5['t'],_0x442df8=_0x5c41a5['t'];switch(_0x18409c){case i['Local']:return{'text':_0x442df8('Insert'===_0x38c846?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x442df8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x38c846?_0x442df8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x442df8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x18409c;}}class e extends _0x40f43f{['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 _0xd64b3c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57be16;for(const _0x40dacc in _0xd64b3c){const _0x8483e1=_0x40dacc,_0x5ac442=_0xd64b3c[_0x8483e1];if('uploadcareLicenseKeyValid'==_0x5ac442||'uploadcareLicenseKeyInvalid'==_0x5ac442||'uploadcareLicenseKeyExpired'==_0x5ac442||'uploadcareLicenseKeyDomainLimit'==_0x5ac442||'uploadcareLicenseKeyNotAllowed'==_0x5ac442||'uploadcareLicenseKeyEvaluationLimit'==_0x5ac442||'uploadcareLicenseKeyTrialLimit'==_0x5ac442||'uploadcareLicenseKeyUsageLimit'==_0x5ac442){delete _0xd64b3c[_0x8483e1],_0x57be16=_0x5ac442,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x57be16&&_0xd64b3c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x57be16&&_0xd64b3c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x57be16&&_0xd64b3c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x57be16&&_0xd64b3c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x57be16&&_0xd64b3c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x57be16&&_0xd64b3c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x57be16&&_0xd64b3c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x190c07}=this,_0x3999d3=_0x190c07['commands']['get']('uploadcare');if(!_0x3999d3)return;const _0x5c1a14=this['_normalizeConfigSourceList'](_0x190c07['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x151043,_0x3c1cbb)=>{const _0x3da393=this['_getIntegrationKey'](_0x3c1cbb['type']);return _0x151043[_0x3da393]||(_0x151043[_0x3da393]=[]),_0x151043[_0x3da393]['push'](_0x3c1cbb),_0x151043;},{});_0x190c07['plugins']['has']('ImageInsertUI')&&_0x190c07['commands']['get']('uploadcare')&&Object['entries'](_0x5c1a14)['forEach'](([_0x17066e,_0x3a6ff9])=>{_0x190c07['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x17066e,'observable':()=>_0x3999d3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3a6ff9),'formViewCreator':()=>this['_createDropdownButtons'](_0x3a6ff9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3a6ff9),'override':'assetManager'!==_0x17066e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3bb7a0){const {locale:_0x1c5426}=this['editor'];return _0x3bb7a0['map'](_0x231e64=>{const _0x11e16f=_(_0x1c5426,_0x231e64,'Insert');switch(_0x231e64){case i['Local']:return{'icon':_0x38c2f1,'type':i['Local'],..._0x11e16f};case i['URL']:return{'icon':_0x2983fa,'type':i['URL'],..._0x11e16f};case i['Dropbox']:return{'icon':_0x3a5f21,'type':i['Dropbox'],..._0x11e16f};case i['Facebook']:return{'icon':_0x19482d,'type':i['Facebook'],..._0x11e16f};case i['GDrive']:return{'icon':_0x2bdbef,'type':i['GDrive'],..._0x11e16f};case i['GPhotos']:return{'icon':_0x1b839,'type':i['GPhotos'],..._0x11e16f};case i['OneDrive']:return{'icon':_0x3df212,'type':i['OneDrive'],..._0x11e16f};}});}['_getIntegrationKey'](_0x5d3d62){switch(_0x5d3d62){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5041fe,_0x40a9bc){const _0x160b46=this['editor'],_0x18e129=new _0x5041fe(_0x160b46['locale']),_0x547c8a=_0x160b46['commands']['get']('uploadcare');return _0x18e129['bind']('isEnabled')['to'](_0x547c8a),_0x18e129['on']('execute',()=>{_0x547c8a['execute'](_0x40a9bc);}),_0x18e129;}['_createToolbarButton'](_0x1fda36){const {locale:_0x5ce376}=this['editor'],_0x32d9bd=this['editor']['plugins']['get']('ImageInsertUI'),_0x2559b2=_0x1fda36[0x0],_0x5d25e6=this['_createButton'](_0x36a838,_0x2559b2['type']);return _0x5d25e6['icon']=_0x2559b2['icon'],_0x5d25e6['bind']('label')['to'](_0x32d9bd,'isImageSelected',_0x49ab39=>_(_0x5ce376,_0x2559b2['type'],_0x49ab39?'Replace':'Insert')['text']),_0x5d25e6['tooltip']=!0x0,_0x5d25e6;}['_createDropdownButtons'](_0x1da68a){const {locale:_0x232400}=this['editor'],_0x5665bf=this['editor']['plugins']['get']('ImageInsertUI');return _0x1da68a['map'](_0xb7a472=>{const _0x2ac622=this['_createButton'](_0x36a838,_0xb7a472['type']);return _0x2ac622['withText']=!0x0,_0x2ac622['icon']=_0xb7a472['icon'],_0x2ac622['bind']('label')['to'](_0x5665bf,'isImageSelected',_0x5df7fd=>_(_0x232400,_0xb7a472['type'],_0x5df7fd?'Replace':'Insert')['text']),_0x2ac622;});}['_createMenuBarButtons'](_0xe5c961){return _0xe5c961['map'](_0xe7f346=>{const _0x4ec638=this['_createButton'](_0x11e3cd,_0xe7f346['type']);return _0x4ec638['icon']=_0xe7f346['icon'],_0x4ec638['label']=_0xe7f346['shortText'],_0x4ec638;});}}class F extends _0x195d43{['focusTracker'];['focusCycler'];constructor(_0x11f4cf){super(_0x11f4cf),this['focusTracker']=new _0x2531fb(),this['focusCycler']=new _0x18943b({'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(_0x1bdbfb,_0x190287){super(_0x1bdbfb),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-'+_0x190287}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x33958b,_0x2eb1e8){const _0x415d5e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x45fbc5=>_0x45fbc5<=_0x2eb1e8)['map'](_0x11674c=>_0x33958b['replace'](/\/$/,'')+'/-/resize/'+_0x11674c+'x/\x20'+_0x11674c+'w');return{'imageFallbackUrl':_0x33958b,'imageSources':[{'srcset':_0x415d5e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2eb1e8+'px)\x20100vw,\x20'+_0x2eb1e8+'px','type':'image/webp'}]};}function S(_0x185569,_0x1cd5b2,_0x2b6990){const _0x90a046=_0x185569['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x90a046?parseInt(_0x90a046[0x1],0xa):_0x1cd5b2,'height':_0x90a046?parseInt(_0x90a046[0x2],0xa):_0x2b6990};}function p(_0x4a3b55,_0x19cc1d){const _0x4981a1=new(_0x448f34())(),_0x76eff=_0x4a3b55['plugins']['get']('ImageUtils'),_0x25f44e=_0x4a3b55['editing']['mapper']['toViewElement'](_0x19cc1d),_0x4b0176=_0x76eff['findViewImgElement'](_0x25f44e),_0x14d072=_0x4a3b55['editing']['view']['domConverter']['viewToDom'](_0x4b0176),_0x237b9a=_0x19cc1d['getAttribute']('width'),_0x1427f2=_0x19cc1d['getAttribute']('height'),_0x4b9ee2='image-processing';_0x4a3b55['editing']['view']['change'](_0x5d81f8=>{_0x5d81f8['addClass'](_0x4b9ee2,_0x25f44e),_0x5d81f8['setStyle']('aspect-ratio',_0x237b9a+'/'+_0x1427f2,_0x4b0176);}),_0x4981a1['listenTo'](_0x14d072,'load',()=>{_0x4981a1['stopListening'](_0x14d072,'load'),_0x4a3b55['editing']['view']['change'](_0x32db8b=>{_0x32db8b['removeClass'](_0x4b9ee2,_0x25f44e),_0x32db8b['removeStyle']('aspect-ratio',_0x4b0176);});});}function G(_0x4c34d4){if(Array['isArray'](_0x4c34d4)){const _0x579c35=_0x4c34d4['map'](G);return _0x58945f=>_0x579c35['some'](_0x32777a=>_0x32777a(_0x58945f));}if('origin'==_0x4c34d4){const _0x1694c0=_0x18ade0['window']['location']['origin'];return _0x1a6d31=>new URL(_0x1a6d31,_0x18ade0['document']['baseURI'])['origin']==_0x1694c0;}return'function'==typeof _0x4c34d4?_0x4c34d4:_0x4c34d4 instanceof RegExp?_0x4c89d3=>!(!_0x4c89d3['match'](_0x4c34d4)&&!_0x4c89d3['replace'](/^https?:\/\//,'')['match'](_0x4c34d4)):()=>!0x1;}function A(_0x1fcaee,_0x7a079b){return _0x2dd113(_0x1fcaee['target'])['includes'](_0x7a079b);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x59caef(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4c61d8,_0x5a5787,_0x4d71d9){super(),this['_editor']=_0x4c61d8,this['_editing']=_0x5a5787,this['_dialog']=_0x4c61d8['plugins']['get'](_0x4b34c2),this['_api']=_0x5a5787['ctxElement']['getAPI'](),this['_type']=_0x4d71d9,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:_0x3d1c7d,model:_0x1b43aa}=this['_editor'],_0x449123=_0x1b43aa['document']['selection']['getSelectedElement'](),_0x65cbe=_0x449123&&(_0x449123['is']('element','imageBlock')||_0x449123['is']('element','imageInline'));this['_formView']=new x(_0x3d1c7d,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x38c2f1,'title':_(_0x3d1c7d,this['_type'],_0x65cbe?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5e892f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5a242a=>!A(_0x5a242a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x196fee}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x449656=>{const _0x12f1dc=_0x196fee['length'];for(const _0x27c9d9 of _0x196fee){const _0x5c6507=_0x27c9d9===_0x196fee[_0x12f1dc-0x1],{cdnUrl:_0x216e70,fileInfo:_0x367791}=_0x27c9d9;if(!_0x216e70||!_0x367791)continue;const {width:_0x414ea6,height:_0x459c9c}=_0x367791['imageInfo'],_0x22d53f=S(_0x216e70,_0x414ea6,_0x459c9c),_0x36c5dc=C(_0x216e70,_0x22d53f['width']),_0xd85ee6={'id':_0x367791['uuid'],'type':'image','attributes':{'imageDimension':_0x22d53f,..._0x36c5dc}};this['_insertAsset'](_0xd85ee6,_0x5c6507,_0x449656);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5d562b=>{'idle'===_0x5d562b['detail']['status']&&!_0x5d562b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1a20de,_0x3d7d84,_0x48fcc0){const _0x55c408=this['_editor']['model']['document']['selection'],_0x470432=_0x55c408['getSelectedElement'](),_0x3c5225=!(!_0x470432||!_0x470432['is']('element','imageInline'));_0x48fcc0['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1a20de,_0x3c5225),_0x3d7d84||_0x48fcc0['setSelection'](_0x55c408['getLastPosition']());}['_insertImage'](_0xea480a,_0x1946a4){const _0x4738ba=this['_editor'],{imageDimension:_0x3dc158,imageFallbackUrl:_0x4fea3a,imageSources:_0x15a5cd}=_0xea480a['attributes'];_0x4738ba['execute']('insertImage',{'imageType':_0x1946a4?'imageInline':null,'source':{'uploadcareImageId':_0xea480a['id'],'src':_0x4fea3a,'sources':_0x15a5cd,..._0x3dc158}});}}class w extends _0x49e9af{['_editing'];['_controller']=null;static get['requires'](){return[_0x4b34c2,o];}constructor(_0x4e302e){super(_0x4e302e),this['_editing']=_0x4e302e['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2e1769){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2e1769);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x28fa71,..._0x55c047}){return _0xc0835e(_0x28fa71,_0x55c047);}static['getInfo'](_0x3259d1,_0x37569e){return _0x399194(_0x3259d1,_0x37569e);}}class f extends _0x40f43f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3225a5,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x18ed8a=this['editor'];if(!!!_0x18ed8a['config']['get']('uploadcare'))return;_0x18ed8a['plugins']['get'](_0x3225a5)['createUploadAdapter']=_0x4783b9=>new k(_0x4783b9,_0x18ed8a),_0x18ed8a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2bf1dc,{imageElement:_0x2186a,data:_0x4d00c4})=>{_0x18ed8a['model']['change'](_0x277b04=>{_0x277b04['setAttribute']('uploadcareImageId',_0x4d00c4['uploadcareImageId'],_0x2186a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4ebc03,_0x465dec){this['loader']=_0x4ebc03,this['editor']=_0x465dec,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x80d3b3=await this['loader']['file'];return j['upload']({'file':_0x80d3b3,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3b1002=>{_0x3b1002&&_0x3b1002['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3b1002['value']);}})['then'](async _0x579450=>{const {imageFallbackUrl:_0x145c62,imageSources:_0x33c4d5}=C(_0x579450['cdnUrl'],_0x579450['imageInfo']['width']);return{'uploadcareImageId':_0x579450['uuid'],'default':_0x145c62,'sources':_0x33c4d5};})['catch'](()=>{const _0x48f5c9=t('Cannot\x20upload\x20file:')+('\x20'+_0x80d3b3['name']+'.');return Promise['reject'](_0x48f5c9);});}['abort'](){this['controller']['abort']();}}class o extends _0x40f43f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4b34c2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x504e83){super(_0x504e83),this['ucContextId']=_0x1013be();}['init'](){const _0x52f231=this['editor'];_0x52f231['commands']['add']('uploadcare',new w(_0x52f231));}['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 _0xa5a213=_0x18ade0['document']['querySelector']('input[uploadcare-file-input]');_0xa5a213&&_0xa5a213['remove']();}),async function(_0x4e827b){const _0x545a4f=_0x3b6f8f([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xb40f33=0x535f8c3a,_0x209067=0x5358f692^_0xb40f33,_0x2614bc=window[_0x3b6f8f([0x44,0x61,0x74,0x65])][_0x3b6f8f([0x6e,0x6f,0x77])](),_0x22a6d7=_0x4e827b[_0x3b6f8f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f0fe9=new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x341908=>{_0x22a6d7[_0x3b6f8f([0x6f,0x6e,0x63,0x65])](_0x3b6f8f([0x72,0x65,0x61,0x64,0x79]),_0x341908);}),_0x51028e={[_0x3b6f8f([0x6b,0x74,0x79])]:_0x3b6f8f([0x45,0x43]),[_0x3b6f8f([0x75,0x73,0x65])]:_0x3b6f8f([0x73,0x69,0x67]),[_0x3b6f8f([0x63,0x72,0x76])]:_0x3b6f8f([0x50,0x2d,0x32,0x35,0x36]),[_0x3b6f8f([0x78])]:_0x3b6f8f([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]),[_0x3b6f8f([0x79])]:_0x3b6f8f([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]),[_0x3b6f8f([0x61,0x6c,0x67])]:_0x3b6f8f([0x45,0x53,0x32,0x35,0x36])},_0x37fe2c=_0x22a6d7[_0x3b6f8f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b6f8f([0x67,0x65,0x74])](_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6c8e11(){let _0x504f49,_0x5128e6=null,_0x21fa66=null;try{if(_0x37fe2c==_0x3b6f8f([0x47,0x50,0x4c]))return _0x3b6f8f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x504f49=_0x1d9096(),!_0x504f49)return _0x3b6f8f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x504f49[_0x3b6f8f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21fa66=_0x46914d(_0x504f49[_0x3b6f8f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x504f49[_0x3b6f8f([0x6a,0x74,0x69])])),await _0x3d69a0()?_0x101562()?_0x500924()?_0x3b6f8f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40696f()?(_0x504f49[_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b6f8f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5128e6=_0xd411ce(_0x3b6f8f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x504f49[_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b6f8f([0x74,0x72,0x69,0x61,0x6c])&&(_0x5128e6=_0xd411ce(_0x3b6f8f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x125ac6()):_0x3b6f8f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b6f8f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b6f8f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b6f8f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x500924(){const _0x43185d=[_0x3b6f8f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b6f8f([0x74,0x72,0x69,0x61,0x6c])][_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x504f49[_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2614bc/0x3e8:0xe10*_0x209067;return _0x504f49[_0x3b6f8f([0x65,0x78,0x70])]<_0x43185d;}function _0x101562(){const _0x41747c=_0x504f49[_0x3b6f8f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x41747c&&(!!_0x41747c[_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b6f8f([0x2a]))||!!_0x41747c[_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b6f8f([0x55,0x50,0x4c,0x43])));}function _0x40696f(){const _0x318aa0=_0x504f49[_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x318aa0||0x0==_0x318aa0[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46928a}=new URL(window[_0x3b6f8f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x318aa0[_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46928a))return!0x0;const _0x328598=_0x46928a[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])](_0x3b6f8f([0x2e]));return _0x318aa0[_0x3b6f8f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c9909=>_0x2c9909[_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b6f8f([0x2a])))[_0x3b6f8f([0x6d,0x61,0x70])](_0x12e172=>_0x12e172[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])](_0x3b6f8f([0x2e])))[_0x3b6f8f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19f4f0=>_0x19f4f0[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x328598[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b6f8f([0x6d,0x61,0x70])](_0x265269=>Array(_0x328598[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x265269[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b6f8f([0x66,0x69,0x6c,0x6c])](_0x265269[0x0]===_0x3b6f8f([0x2a])?_0x3b6f8f([0x2a]):'')[_0x3b6f8f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x265269))[_0x3b6f8f([0x73,0x6f,0x6d,0x65])](_0x184193=>_0x328598[_0x3b6f8f([0x65,0x76,0x65,0x72,0x79])]((_0x5ec563,_0x4caf1a)=>_0x184193[_0x4caf1a]===_0x5ec563||_0x184193[_0x4caf1a]===_0x3b6f8f([0x2a])));}function _0x125ac6(){return _0x5128e6&&_0x21fa66?new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44d0cd,_0x4de796)=>{_0x5128e6[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x44d0cd,_0x4de796),_0x21fa66[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x1958c6=>{_0x1958c6!=_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64])&&_0x44d0cd(_0x1958c6);},_0x4de796);}):_0x5128e6||_0x21fa66||_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x46914d(_0x2577e4,_0x1855ab){return new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ff8df=>{if(_0x1094b8())return _0x2ff8df(_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64]));_0x42bc40(),_0x22a6d7[_0x3b6f8f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b6f8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa526fc=!0x1;const _0x3750f8=_0x1013be();function _0x342a77(_0x15bd49){return!!_0x15bd49&&(typeof _0x15bd49===_0x3b6f8f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15bd49===_0x3b6f8f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15bd49[_0x3b6f8f([0x74,0x68,0x65,0x6e])]===_0x3b6f8f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15bd49[_0x3b6f8f([0x63,0x61,0x74,0x63,0x68])]===_0x3b6f8f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59677e(_0x51fabc){_0x16cdf4(_0x51fabc)[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x435331=>{if(!_0x435331||_0x435331[_0x3b6f8f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b6f8f([0x6f,0x6b]))return _0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xff786a(_0x35438c(_0x3750f8+_0x1855ab))!=_0x435331[_0x3b6f8f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x90fa43=>(_0x599b83(),_0x90fa43),()=>{const _0x125cdd=_0x5809f8();return null==_0x125cdd?(_0x599b83(),_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64])):_0x3b6f8f(_0x2614bc-_0x125cdd>(0x7753083a^_0xb40f33)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x2ff8df)[_0x3b6f8f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ff8df(_0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6d21ed=0x536962ba^_0xb40f33;function _0x599b83(){const _0x258237=_0x3b6f8f([0x6c,0x6c,0x63,0x74,0x2d])+_0xff786a(_0x35438c(_0x2577e4)),_0x130ccc=_0x4b1ccb(_0xff786a(window[_0x3b6f8f([0x4d,0x61,0x74,0x68])][_0x3b6f8f([0x63,0x65,0x69,0x6c])](_0x2614bc/_0x6d21ed)));window[_0x3b6f8f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b6f8f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x258237,_0x130ccc);}function _0x5809f8(){const _0x57af48=_0x3b6f8f([0x6c,0x6c,0x63,0x74,0x2d])+_0xff786a(_0x35438c(_0x2577e4)),_0x8b950e=window[_0x3b6f8f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b6f8f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57af48);return _0x8b950e?window[_0x3b6f8f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b1ccb(_0x8b950e),0x10)*_0x6d21ed:null;}function _0x16cdf4(_0x5ae21b){return new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37140d,_0x2499af)=>{_0x5ae21b[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x37140d,_0x2499af),window[_0x3b6f8f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2499af,0x535e58fa^_0xb40f33);});}}_0x22a6d7[_0x3b6f8f([0x6f,0x6e])](_0x3b6f8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1fc711,_0x10d2dc)=>{if(_0x10d2dc[0x0]!=_0x2577e4)return _0x2ff8df(_0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10d2dc[0x1]={..._0x10d2dc[0x1],[_0x3b6f8f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3750f8};},{[_0x3b6f8f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b6f8f([0x68,0x69,0x67,0x68])}),_0x22a6d7[_0x3b6f8f([0x6f,0x6e])](_0x3b6f8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3de52b=>{_0x342a77(_0x3de52b[_0x3b6f8f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa526fc=!0x0,_0x59677e(_0x3de52b[_0x3b6f8f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b6f8f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b6f8f([0x6c,0x6f,0x77])}),_0x4f0fe9[_0x3b6f8f([0x74,0x68,0x65,0x6e])](()=>{_0xa526fc||_0x2ff8df(_0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1094b8(){return _0x22a6d7[_0x3b6f8f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b6f8f([0x76,0x69,0x65,0x77])][_0x3b6f8f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b6f8f([0x61,0x75,0x74,0x6f]);}function _0x42bc40(){_0x22a6d7[_0x3b6f8f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b6f8f([0x76,0x69,0x65,0x77])][_0x3b6f8f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b6f8f([0x61,0x75,0x74,0x6f]);}}function _0xd411ce(_0x3a26da){const _0x404e43=[new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d9fb3=>setTimeout(_0x4d9fb3,0x5356b2f6^_0xb40f33)),_0x4f0fe9[_0x3b6f8f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f86eb=>{let _0xb24734=0x0;_0x22a6d7[_0x3b6f8f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b6f8f([0x6f,0x6e])](_0x3b6f8f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38f3a9,_0x257def)=>{_0x257def[0x0][_0x3b6f8f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb24734++,_0xb24734==(0x535f8dc2^_0xb40f33)&&(_0x2f86eb(),_0x38f3a9[_0x3b6f8f([0x6f,0x66,0x66])]());});}))];return window[_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b6f8f([0x72,0x61,0x63,0x65])](_0x404e43)[_0x3b6f8f([0x74,0x68,0x65,0x6e])](()=>_0x3a26da);}async function _0x33996f(){await _0x4f0fe9,_0x22a6d7[_0x3b6f8f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b6f8f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e8d64,_0x22a6d7[_0x3b6f8f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b6f8f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e8d64,_0x22a6d7[_0x3b6f8f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b6f8f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c0906(_0x1d4d07){const _0x5e0408=_0x49853a();_0x22a6d7[_0x5e0408]=_0x3b6f8f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d4d07,_0x1d4d07!=_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64])&&_0x33996f();}function _0x49853a(){const _0x112bc6=window[_0x3b6f8f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b6f8f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b6f8f([0x6e,0x6f,0x77])]())[_0x3b6f8f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b6f8f([0x2e]),'');let _0x5bffdb=_0x3b6f8f([0x68]);for(let _0x10be71=0x0;_0x10be71<_0x112bc6[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10be71+=0x2){let _0x10a2bd=window[_0x3b6f8f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x112bc6[_0x3b6f8f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10be71,_0x10be71+0x2));_0x10a2bd>=_0x545a4f[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x10a2bd-=_0x545a4f[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5bffdb+=_0x545a4f[_0x10a2bd];}return _0x5bffdb;}function _0x1d9096(){const _0x4753ce=_0x37fe2c[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])](_0x3b6f8f([0x2e]));if(0x3!=_0x4753ce[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x140eee(_0x4753ce[0x1]);function _0x140eee(_0x345e5d){const _0x4f7448=_0x17f195(_0x345e5d);return _0x4f7448&&_0x53e970()?_0x4f7448:null;function _0x53e970(){const _0x41d135=_0x4f7448[_0x3b6f8f([0x6a,0x74,0x69])],_0x2d08b2=window[_0x3b6f8f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41d135[_0x3b6f8f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41d135[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b9585={..._0x4f7448,[_0x3b6f8f([0x6a,0x74,0x69])]:_0x41d135[_0x3b6f8f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41d135[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b9585[_0x3b6f8f([0x76,0x63])],_0x35438c(_0x2b9585)==_0x2d08b2;}}}async function _0x3d69a0(){let _0x4eb71c=!0x0;try{const _0x3b3c25=_0x37fe2c[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])](_0x3b6f8f([0x2e])),[_0x1948eb,_0x2a76a9,_0x443ad3]=_0x3b3c25;return _0x43adb2(_0x1948eb),await _0x62cdac(_0x1948eb,_0x2a76a9,_0x443ad3),_0x4eb71c;}catch{return!0x1;}function _0x43adb2(_0x5d5cab){const _0x4bedc9=_0x17f195(_0x5d5cab);_0x4bedc9&&_0x4bedc9[_0x3b6f8f([0x61,0x6c,0x67])]==_0x3b6f8f([0x45,0x53,0x32,0x35,0x36])||(_0x4eb71c=!0x1);}async function _0x62cdac(_0x4ba9f8,_0x5121bb,_0x295e6e){const _0x5e1515=window[_0x3b6f8f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b6f8f([0x66,0x72,0x6f,0x6d])](_0xfedfd6(_0x295e6e),_0x5386e5=>_0x5386e5[_0x3b6f8f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcfacf=new window[(_0x3b6f8f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b6f8f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ba9f8+_0x3b6f8f([0x2e])+_0x5121bb),_0x9795c=window[_0x3b6f8f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b6f8f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9795c)return;const _0x23df5f=await _0x9795c[_0x3b6f8f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b6f8f([0x6a,0x77,0x6b]),_0x51028e,{[_0x3b6f8f([0x6e,0x61,0x6d,0x65])]:_0x3b6f8f([0x45,0x43,0x44,0x53,0x41]),[_0x3b6f8f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b6f8f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b6f8f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9795c[_0x3b6f8f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b6f8f([0x6e,0x61,0x6d,0x65])]:_0x3b6f8f([0x45,0x43,0x44,0x53,0x41]),[_0x3b6f8f([0x68,0x61,0x73,0x68])]:{[_0x3b6f8f([0x6e,0x61,0x6d,0x65])]:_0x3b6f8f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23df5f,_0x5e1515,_0xcfacf)||(_0x4eb71c=!0x1);}}function _0x17f195(_0x286233){return _0x286233[_0x3b6f8f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b6f8f([0x65,0x79]))?JSON[_0x3b6f8f([0x70,0x61,0x72,0x73,0x65])](_0xfedfd6(_0x286233)):null;}function _0xfedfd6(_0x4039a7){return window[_0x3b6f8f([0x61,0x74,0x6f,0x62])](_0x4039a7[_0x3b6f8f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b6f8f([0x2b]))[_0x3b6f8f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b6f8f([0x2f])));}function _0x35438c(_0x29aae4){let _0x5cb5cb=0x1505;function _0x3ff7fd(_0x45608f){for(let _0x2cd131=0x0;_0x2cd131<_0x45608f[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cd131++){const _0x261826=_0x45608f[_0x3b6f8f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2cd131);_0x5cb5cb=(_0x5cb5cb<<0x5)+_0x5cb5cb+_0x261826,_0x5cb5cb&=_0x5cb5cb;}}function _0x39e9d9(_0x10db22){Array[_0x3b6f8f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10db22)?_0x10db22[_0x3b6f8f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39e9d9):_0x10db22&&typeof _0x10db22==_0x3b6f8f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b6f8f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10db22)[_0x3b6f8f([0x73,0x6f,0x72,0x74])]()[_0x3b6f8f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x18533a,_0x573366])=>{_0x3ff7fd(_0x18533a),_0x39e9d9(_0x573366);}):_0x3ff7fd(window[_0x3b6f8f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10db22));}return _0x39e9d9(_0x29aae4),_0x5cb5cb>>>0x0;}function _0xff786a(_0x12752f){return _0x12752f[_0x3b6f8f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b6f8f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b6f8f([0x30]));}function _0x4b1ccb(_0x2b202a){return _0x2b202a[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b6f8f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b6f8f([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e8d64(){}function _0x3b6f8f(_0x57a4a9){return _0x57a4a9['map'](_0x4b8537=>String['fromCharCode'](_0x4b8537))['join']('');}_0x1c0906(await _0x6c8e11());}(this);}['_initSchema'](){const _0x460939=this['editor']['model']['schema'];_0x460939['isRegistered']('imageBlock')&&_0x460939['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x460939['isRegistered']('imageInline')&&_0x460939['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x169ff9=this['editor'];_0x169ff9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x169ff9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4fc193=>_0x4fc193['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5146a3=_0x169ff9['commands']['get']('replaceImageSource');_0x5146a3&&this['listenTo'](_0x5146a3,'cleanupImage',(_0x262d33,[_0x587374,_0x6e830b])=>{_0x587374['removeAttribute']('uploadcareImageId',_0x6e830b);});}['_initConfig'](){const _0x17d163=this['editor']['config']['get']('uploadcare.uploader')||{},_0x56bfad=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5e85be(_0x18ade0['document'],'uc-config',{..._0x17d163,'pubkey':_0x56bfad,'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']=_0x33bf52=>{if('closeMax'==_0x33bf52)return'#uc-icon-arrow-down';},_0x18ade0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5e85be(_0x18ade0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x18ade0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4424bf=this['editor']['commands']['get']('insertImage');_0x4424bf&&this['listenTo'](_0x4424bf,'execute',()=>{const _0x2ba8c8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2ba8c8&&_0x2ba8c8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2ba8c8);});});const _0x167ec5=this['editor']['commands']['get']('uploadcareImageReplace');_0x167ec5&&this['listenTo'](_0x167ec5,'execute',()=>{const _0x1fddbe=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1fddbe&&_0x1fddbe['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1fddbe);});});}}class tt extends _0x40f43f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5fdc71){super(_0x5fdc71),_0x5fdc71['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x20eee4['defineComponents'](_0x20eee4),this['_defineLocale']();}['_defineLocale'](){const _0x15dd11=this['editor']['config']['get']('uploadcare.locale'),_0xb30bc7=this['editor']['locale']['contentLanguage'];_0x15dd11&&_0x20eee4['defineLocale'](_0xb30bc7,_0x15dd11);}}class ii extends _0x195d43{constructor(_0x1850f7){super(_0x1850f7);const t=_0x1850f7['t'],_0x4bbd0b=this['bindTemplate'],_0x5b93bf=new _0x36c641();_0x5b93bf['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':[_0x5b93bf,{'text':_0x4bbd0b['to']('imageUploadProgress',_0x1c7151=>t('Loading\x20image...')+'\x20('+(_0x1c7151||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 _0x195d43{constructor(_0x27fe78){super(_0x27fe78);const t=_0x27fe78['t'];this['set']('errorType',null);const _0x2ea6e1=new _0x36a838(_0x27fe78);_0x2ea6e1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2ea6e1['withText']=!0x0,_0x2ea6e1['class']='ck-button-action',_0x2ea6e1['on']('execute',()=>{this['fire']('retry');}),_0x2ea6e1['bind']('isVisible')['to'](this,'errorType',_0x3d07e0=>'NotFound'!==_0x3d07e0);const _0x5087ec=new _0x426fea();_0x5087ec['content']=_0x3c6794,_0x5087ec['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x252aa1=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':[_0x5087ec,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x252aa1['to']('errorType',_0x522f31=>t('NotFound'!==_0x522f31?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2ea6e1]},{'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 _0x195d43{constructor(_0x37b06f,_0x3080a1){super(_0x37b06f);const _0x15a1a2=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3080a1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x15a1a2['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x250ab0,_0x507cf8,_0x5ccf01){super(_0x250ab0),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x250ab0),this['_errorView']=new ti(_0x250ab0),this['_editingView']=new ei(_0x250ab0,_0x5ccf01),this['_focusableView']=new _0x195d43(_0x250ab0),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x507cf8),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'],_0x3cd386=>{this['_addUploadcareImageEditorListeners'](_0x3cd386);});}),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'](_0x3188e5,_0xd75330){const _0x430419='uc-cloud-image-editor',_0x1f9af5=_0x3188e5['querySelector'](_0x430419);if(_0x1f9af5)return _0xd75330(_0x1f9af5);const _0x5ce475=new MutationObserver(_0x2572d5=>{const _0x294761=_0x2572d5['filter'](_0x1e6540=>_0x1e6540['target']===_0x3188e5&&_0x1e6540['addedNodes']['length']>0x0&&_0x1e6540['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x430419);_0x294761['length']&&(_0x5ce475['disconnect'](),_0xd75330(_0x294761[0x0]['addedNodes'][0x0]));});_0x5ce475['observe'](_0x3188e5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x589b8b){_0x589b8b['addEventListener']('apply',_0x139cbc=>{this['fire']('apply',{'imageSrc':_0x139cbc['detail']['cdnUrl']});}),_0x589b8b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x59caef(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4433ad,_0x243c12,_0x2e81fa){super(),this['_editor']=_0x4433ad,this['_dialog']=_0x243c12,this['_imageElement']=_0x2e81fa,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 _0x313a70=this['_imageElement'],_0x1ef8da=_0x313a70['getAttribute']('uploadcareImageId'),_0x48eb00=_0x313a70['getAttribute']('src');if(_0x1ef8da)await this['_loadImageInfo'](_0x1ef8da,_0x48eb00);else{if(this['_imageCache']['has'](_0x48eb00)){const _0x21a9cc=this['_imageCache']['get'](_0x48eb00);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x21a9cc['url'],this['imageDimension']=_0x21a9cc['dimension'],this['imageId']=_0x21a9cc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x315397}=this['_editor'],t=_0x315397['t'],_0x1a1e36=new X(_0x315397,this['imageStatus'],this['_attributes']);_0x1a1e36['bind']('status')['to'](this,'imageStatus'),_0x1a1e36['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1a1e36['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1a1e36['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1a1e36,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1cc838,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1a1e36,'position':_0x5e892f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1a1e36['focus']();},'onHide':()=>{_0x1a1e36['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2d4548=>!A(_0x2d4548,_0x1a1e36['element'])}});}['_loadImageInfo'](_0x10006c,_0x31952e){return j['getInfo'](_0x10006c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3f7401=>{const {width:_0x467575,height:_0x512f7b}=_0x3f7401['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31952e,this['imageDimension']={'width':_0x467575,'height':_0x512f7b},this['imageId']=_0x10006c;})['catch'](_0x5eee6e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5eee6e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xf554b2,_0x145d0b){return this['_getImageAsFile'](_0xf554b2)['then'](_0xf7849=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x145d0b['signal'],'file':_0xf7849,'onProgress':_0x167c8c=>{_0x167c8c&&_0x167c8c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x167c8c['value']));}}))['then'](_0x2fc06b=>{const {width:_0x355d3f,height:_0x4c145c}=_0x2fc06b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2fc06b['cdnUrl'],this['imageDimension']={'width':_0x355d3f,'height':_0x4c145c},this['imageId']=_0x2fc06b['uuid'],this['imageUploadProgress']=null;const _0x251aba=_0xf554b2['getAttribute']('src');this['_imageCache']['set'](_0x251aba,{'id':_0x2fc06b['uuid'],'url':_0x2fc06b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x432bf2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x432bf2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4f6ad8,_0x4567d7){_0x4f6ad8['on']('apply',(_0x34b683,_0x2ba5b0)=>{this['_replaceImage'](_0x4567d7,_0x2ba5b0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4f6ad8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4f6ad8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x32bc1c,_0x21e320,_0x4ee75a){const _0x4f286d=this['_editor'],{width:_0x11b3c4,height:_0x34ad2c}=S(_0x21e320,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4c9778,imageSources:_0x16feb1}=C(_0x21e320,_0x11b3c4);_0x4f286d['model']['change'](_0x495deb=>{if('$graveyard'===_0x32bc1c['root']['rootName']){_0x4f286d['execute']('insertImage',{'imageType':_0x32bc1c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x32bc1c['getAttributes']()),'uploadcareImageId':_0x4ee75a,'src':_0x4c9778,'sources':_0x16feb1,'width':_0x11b3c4,'height':_0x34ad2c}});const _0x345205=_0x32bc1c['getChildren']();_0x32bc1c=_0x4f286d['model']['document']['selection']['getSelectedElement']();for(const _0x5c4041 of _0x345205)_0x495deb['append'](_0x495deb['cloneElement'](_0x5c4041),_0x32bc1c);}else _0x495deb['setSelection'](_0x32bc1c,'on'),_0x4f286d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x32bc1c['getAttributes']()),'uploadcareImageId':_0x4ee75a,'src':_0x4c9778,'sources':_0x16feb1,'width':_0x11b3c4,'height':_0x34ad2c},_0x32bc1c);_0x495deb['setSelection'](_0x32bc1c,'on');});}async['_getImageAsFile'](_0x4fed0d){const _0x203ab1=_0x18ade0['window'],_0x5d4205=_0x18ade0['document']['location']['href'],_0x473f75=new _0x203ab1['URL'](_0x4fed0d['getAttribute']('src'),_0x5d4205);if('data:'===_0x473f75['protocol']){const _0xebeffa=_0x473f75['href']['split'](','),_0x2aa735=_0xebeffa[0x0]['match'](/:(.*?);/)[0x1],_0x538d83=_0x2aa735['split']('/')[0x1],_0x2dc595=_0x203ab1['atob'](_0xebeffa[_0xebeffa['length']-0x1]);let _0x2522a5=_0x2dc595['length'];const _0x8f0a11=new _0x203ab1['Uint8Array'](_0x2522a5);for(;_0x2522a5--;)_0x8f0a11[_0x2522a5]=_0x2dc595['charCodeAt'](_0x2522a5);return new _0x203ab1['File']([_0x8f0a11],'image.'+_0x538d83,{'type':_0x2aa735});}const _0x5a1dac=_0x473f75['href']['split']('/'),_0x32d92f=_0x5a1dac[_0x5a1dac['length']-0x1],_0x2a126b=_0x32d92f['split']('.')[0x1];return _0x203ab1['fetch'](_0x473f75['href'])['then'](_0x3954c2=>_0x3954c2['clone']()['blob']())['then'](_0x3051f6=>new _0x203ab1['File']([_0x3051f6],_0x32d92f,{'type':'image/'+_0x2a126b}));}}class O extends _0x49e9af{['imageEditController'];static get['requires'](){return[_0x4b34c2];}['_isEditable'];constructor(_0x1a46b1){super(_0x1a46b1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x22b057){const _0x477e98=G(_0x22b057);return _0x1d7cf5=>!(!_0x1d7cf5||!_0x1d7cf5['is']('element','imageBlock')&&!_0x1d7cf5['is']('element','imageInline'))&&(!!_0x1d7cf5['hasAttribute']('uploadcareImageId')||!!_0x1d7cf5['hasAttribute']('src')&&_0x477e98(_0x1d7cf5['getAttribute']('src')));}(_0x1a46b1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5b225a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5b225a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x325935=this['editor']['model']['document']['selection']['getSelectedElement']();_0x325935&&(_0x325935['is']('element','imageBlock')||_0x325935['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4b34c2),_0x325935),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x49e9af{['refresh'](){const _0x492084=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x492084&&(_0x492084['is']('element','imageBlock')||_0x492084['is']('element','imageInline')));}['execute'](_0x2c04bb){const _0x4bc610=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5ede49=>{_0x5ede49['setAttributes'](_0x2c04bb,_0x4bc610),_0x5ede49['removeAttribute']('srcset',_0x4bc610),_0x5ede49['removeAttribute']('sizes',_0x4bc610);});}}class m extends _0x40f43f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5ddf90,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3107d4}=this;_0x3107d4['commands']['add']('uploadcareImageEdit',new O(_0x3107d4)),_0x3107d4['commands']['add']('uploadcareImageReplace',new R(_0x3107d4));}}class g extends _0x40f43f{['_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 _0x1ef6db=this['editor'];_0x1ef6db['ui']['componentFactory']['add']('uploadcareImageEdit',_0x32207f=>{const _0x490560=_0x1ef6db['commands']['get']('uploadcareImageEdit'),_0x5d9edf=new _0x36a838(_0x32207f),t=_0x32207f['t'];return _0x5d9edf['set']({'icon':_0x1cc838,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5d9edf['bind']('isEnabled')['to'](_0x490560),_0x5d9edf['bind']('isOn')['to'](_0x490560,'isActive'),this['listenTo'](_0x5d9edf,'execute',()=>{_0x1ef6db['execute']('uploadcareImageEdit'),_0x1ef6db['editing']['view']['focus']();}),_0x5d9edf;}),this['_initConfig']();}['_initConfig'](){const _0x3f087d=_0x5e85be(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3f087d),this['listenTo'](this['editor'],'destroy',()=>{_0x3f087d['remove']();});}}class et extends _0x40f43f{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 _0x17cd1e,Command as _0xdd9173}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1ba22e,IconGooglePhotos as _0x3ee3c8,IconGoogleDrive as _0x5b03f6,IconFacebook as _0x552d59,IconDropbox as _0x11eff6,IconUploadcareLink as _0x40726e,IconUploadcareImageUpload as _0xd2cf37,IconError as _0x394e39,IconUploadcareImageEdit as _0x2fca44}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x7a9863,MenuBarMenuListItemButtonView as _0x16ae6c,View as _0x425952,FocusCycler as _0x52cb88,Dialog as _0x2e3fff,DialogViewPosition as _0x1676f1,SpinnerView as _0x3db628,IconView as _0x3a706b,Notification as _0x2a969a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4a0bca,DomEmitterMixin as _0x388ecf,global as _0x1f4901,getAncestors as _0x2694dd,ObservableMixin as _0x18bc34,uid as _0x2b7e98,createElement as _0x4db309}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x239bc2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x6b88c4,info as _0x321ffa}from'@uploadcare/upload-client';import*as _0x3ae175 from'@uploadcare/file-uploader';var i=function(_0x9f9aff){return _0x9f9aff['Local']='local',_0x9f9aff['URL']='url',_0x9f9aff['Dropbox']='dropbox',_0x9f9aff['GDrive']='gdrive',_0x9f9aff['Facebook']='facebook',_0x9f9aff['GPhotos']='gphotos',_0x9f9aff['OneDrive']='onedrive',_0x9f9aff;}({});function _(_0x2d4d20,_0x287496,_0x590a48){const t=_0x2d4d20['t'],_0x1b3db0=_0x2d4d20['t'];switch(_0x287496){case i['Local']:return{'text':_0x1b3db0('Insert'===_0x590a48?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1b3db0('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x590a48?_0x1b3db0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1b3db0('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x287496;}}class e extends _0x17cd1e{['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 _0x545bdf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x548df0;for(const _0x4e84af in _0x545bdf){const _0xcf319=_0x4e84af,_0x37b823=_0x545bdf[_0xcf319];if('uploadcareLicenseKeyValid'==_0x37b823||'uploadcareLicenseKeyInvalid'==_0x37b823||'uploadcareLicenseKeyExpired'==_0x37b823||'uploadcareLicenseKeyDomainLimit'==_0x37b823||'uploadcareLicenseKeyNotAllowed'==_0x37b823||'uploadcareLicenseKeyEvaluationLimit'==_0x37b823||'uploadcareLicenseKeyTrialLimit'==_0x37b823||'uploadcareLicenseKeyUsageLimit'==_0x37b823){delete _0x545bdf[_0xcf319],_0x548df0=_0x37b823,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x548df0&&_0x545bdf['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x548df0&&_0x545bdf['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x548df0&&_0x545bdf['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x548df0&&_0x545bdf['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x548df0&&_0x545bdf['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x548df0&&_0x545bdf['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x548df0&&_0x545bdf['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x571665}=this,_0x25a051=_0x571665['commands']['get']('uploadcare');if(!_0x25a051)return;const _0x5943f9=this['_normalizeConfigSourceList'](_0x571665['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x543094,_0x2e053a)=>{const _0x1fed2b=this['_getIntegrationKey'](_0x2e053a['type']);return _0x543094[_0x1fed2b]||(_0x543094[_0x1fed2b]=[]),_0x543094[_0x1fed2b]['push'](_0x2e053a),_0x543094;},{});_0x571665['plugins']['has']('ImageInsertUI')&&_0x571665['commands']['get']('uploadcare')&&Object['entries'](_0x5943f9)['forEach'](([_0x3fd333,_0x1ffe62])=>{_0x571665['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3fd333,'observable':()=>_0x25a051,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1ffe62),'formViewCreator':()=>this['_createDropdownButtons'](_0x1ffe62),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1ffe62),'override':'assetManager'!==_0x3fd333});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x42a560){const {locale:_0x2ff903}=this['editor'];return _0x42a560['map'](_0x371c63=>{const _0x456e25=_(_0x2ff903,_0x371c63,'Insert');switch(_0x371c63){case i['Local']:return{'icon':_0xd2cf37,'type':i['Local'],..._0x456e25};case i['URL']:return{'icon':_0x40726e,'type':i['URL'],..._0x456e25};case i['Dropbox']:return{'icon':_0x11eff6,'type':i['Dropbox'],..._0x456e25};case i['Facebook']:return{'icon':_0x552d59,'type':i['Facebook'],..._0x456e25};case i['GDrive']:return{'icon':_0x5b03f6,'type':i['GDrive'],..._0x456e25};case i['GPhotos']:return{'icon':_0x3ee3c8,'type':i['GPhotos'],..._0x456e25};case i['OneDrive']:return{'icon':_0x1ba22e,'type':i['OneDrive'],..._0x456e25};}});}['_getIntegrationKey'](_0x50db15){switch(_0x50db15){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x440912,_0x28cc85){const _0x2e194c=this['editor'],_0x38d870=new _0x440912(_0x2e194c['locale']),_0xea3cea=_0x2e194c['commands']['get']('uploadcare');return _0x38d870['bind']('isEnabled')['to'](_0xea3cea),_0x38d870['on']('execute',()=>{_0xea3cea['execute'](_0x28cc85);}),_0x38d870;}['_createToolbarButton'](_0x668f42){const {locale:_0x310a69}=this['editor'],_0x11900e=this['editor']['plugins']['get']('ImageInsertUI'),_0x16786d=_0x668f42[0x0],_0x30754c=this['_createButton'](_0x7a9863,_0x16786d['type']);return _0x30754c['icon']=_0x16786d['icon'],_0x30754c['bind']('label')['to'](_0x11900e,'isImageSelected',_0x8b099=>_(_0x310a69,_0x16786d['type'],_0x8b099?'Replace':'Insert')['text']),_0x30754c['tooltip']=!0x0,_0x30754c;}['_createDropdownButtons'](_0x48afdd){const {locale:_0x437b3c}=this['editor'],_0x150c9a=this['editor']['plugins']['get']('ImageInsertUI');return _0x48afdd['map'](_0x5ad342=>{const _0x92d4ee=this['_createButton'](_0x7a9863,_0x5ad342['type']);return _0x92d4ee['withText']=!0x0,_0x92d4ee['icon']=_0x5ad342['icon'],_0x92d4ee['bind']('label')['to'](_0x150c9a,'isImageSelected',_0x3916a9=>_(_0x437b3c,_0x5ad342['type'],_0x3916a9?'Replace':'Insert')['text']),_0x92d4ee;});}['_createMenuBarButtons'](_0x7ffbc2){return _0x7ffbc2['map'](_0x55edc3=>{const _0x3c18b8=this['_createButton'](_0x16ae6c,_0x55edc3['type']);return _0x3c18b8['icon']=_0x55edc3['icon'],_0x3c18b8['label']=_0x55edc3['shortText'],_0x3c18b8;});}}class W extends _0x425952{['focusTracker'];['focusCycler'];constructor(_0x22540b){super(_0x22540b),this['focusTracker']=new _0x4a0bca(),this['focusCycler']=new _0x52cb88({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class R extends W{constructor(_0x1dd404,_0x1c5881){super(_0x1dd404),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-'+_0x1c5881}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1565f6,_0x56a0d0){const _0x2f30bd=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xb347d9=>_0xb347d9<=_0x56a0d0)['map'](_0xf62524=>_0x1565f6['replace'](/\/$/,'')+'/-/resize/'+_0xf62524+'x/\x20'+_0xf62524+'w');return{'imageFallbackUrl':_0x1565f6,'imageSources':[{'srcset':_0x2f30bd['join'](',\x20'),'sizes':'(max-width:\x20'+_0x56a0d0+'px)\x20100vw,\x20'+_0x56a0d0+'px','type':'image/webp'}]};}function V(_0x40bcb1,_0x4cc3d8,_0x543855){const _0x56e471=_0x40bcb1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x56e471?parseInt(_0x56e471[0x1],0xa):_0x4cc3d8,'height':_0x56e471?parseInt(_0x56e471[0x2],0xa):_0x543855};}function p(_0x5dfc7b,_0x229242){const _0x50c136=new(_0x388ecf())(),_0x2a9b32=_0x5dfc7b['plugins']['get']('ImageUtils'),_0x2d5aeb=_0x5dfc7b['editing']['mapper']['toViewElement'](_0x229242),_0x59b199=_0x2a9b32['findViewImgElement'](_0x2d5aeb),_0x129697=_0x5dfc7b['editing']['view']['domConverter']['viewToDom'](_0x59b199),_0x1612c3=_0x229242['getAttribute']('width'),_0x5313e7=_0x229242['getAttribute']('height'),_0x2e6bb9='image-processing';_0x5dfc7b['editing']['view']['change'](_0x3dfd3f=>{_0x3dfd3f['addClass'](_0x2e6bb9,_0x2d5aeb),_0x3dfd3f['setStyle']('aspect-ratio',_0x1612c3+'/'+_0x5313e7,_0x59b199);}),_0x50c136['listenTo'](_0x129697,'load',()=>{_0x50c136['stopListening'](_0x129697,'load'),_0x5dfc7b['editing']['view']['change'](_0x14499c=>{_0x14499c['removeClass'](_0x2e6bb9,_0x2d5aeb),_0x14499c['removeStyle']('aspect-ratio',_0x59b199);});});}function z(_0x56df3b){if(Array['isArray'](_0x56df3b)){const _0x3a0923=_0x56df3b['map'](z);return _0x54793f=>_0x3a0923['some'](_0x61371=>_0x61371(_0x54793f));}if('origin'==_0x56df3b){const _0x5ecc7e=_0x1f4901['window']['location']['origin'];return _0x510c31=>new URL(_0x510c31,_0x1f4901['document']['baseURI'])['origin']==_0x5ecc7e;}return'function'==typeof _0x56df3b?_0x56df3b:_0x56df3b instanceof RegExp?_0x5e0398=>!(!_0x5e0398['match'](_0x56df3b)&&!_0x5e0398['replace'](/^https?:\/\//,'')['match'](_0x56df3b)):()=>!0x1;}function Q(_0x153fbf,_0x31798f){return _0x2694dd(_0x153fbf['target'])['includes'](_0x31798f);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x18bc34(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4f8057,_0x4a82b9,_0x1acf38){super(),this['_editor']=_0x4f8057,this['_editing']=_0x4a82b9,this['_dialog']=_0x4f8057['plugins']['get'](_0x2e3fff),this['_api']=_0x4a82b9['ctxElement']['getAPI'](),this['_type']=_0x1acf38,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:_0xc8a365,model:_0x4c67d0}=this['_editor'],_0x5525cb=_0x4c67d0['document']['selection']['getSelectedElement'](),_0x28e536=_0x5525cb&&(_0x5525cb['is']('element','imageBlock')||_0x5525cb['is']('element','imageInline'));this['_formView']=new R(_0xc8a365,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xd2cf37,'title':_(_0xc8a365,this['_type'],_0x28e536?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1676f1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51d0f4=>!Q(_0x51d0f4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5e09b3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x24d602=>{const _0x441ae6=_0x5e09b3['length'];for(const _0x5bce4a of _0x5e09b3){const _0x7d4881=_0x5bce4a===_0x5e09b3[_0x441ae6-0x1],{cdnUrl:_0x1e5bfc,fileInfo:_0x304b5d}=_0x5bce4a;if(!_0x1e5bfc||!_0x304b5d)continue;const {width:_0x5640cd,height:_0x3faf9a}=_0x304b5d['imageInfo'],_0x24bb64=V(_0x1e5bfc,_0x5640cd,_0x3faf9a),_0x22c29d=C(_0x1e5bfc,_0x24bb64['width']),_0x41b1db={'id':_0x304b5d['uuid'],'type':'image','attributes':{'imageDimension':_0x24bb64,..._0x22c29d}};this['_insertAsset'](_0x41b1db,_0x7d4881,_0x24d602);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x28713f=>{'idle'===_0x28713f['detail']['status']&&!_0x28713f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x850a0f,_0x5d0764,_0x8416bc){const _0x52a536=this['_editor']['model']['document']['selection'],_0x138354=_0x52a536['getSelectedElement'](),_0xea0f63=!(!_0x138354||!_0x138354['is']('element','imageInline'));_0x8416bc['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x850a0f,_0xea0f63),_0x5d0764||_0x8416bc['setSelection'](_0x52a536['getLastPosition']());}['_insertImage'](_0x32b35a,_0x186e38){const _0xdf3a9b=this['_editor'],{imageDimension:_0x2a94f8,imageFallbackUrl:_0x2465cc,imageSources:_0x5b4171}=_0x32b35a['attributes'];_0xdf3a9b['execute']('insertImage',{'imageType':_0x186e38?'imageInline':null,'source':{'uploadcareImageId':_0x32b35a['id'],'src':_0x2465cc,'sources':_0x5b4171,..._0x2a94f8}});}}class w extends _0xdd9173{['_editing'];['_controller']=null;static get['requires'](){return[_0x2e3fff,o];}constructor(_0x1a5a96){super(_0x1a5a96),this['_editing']=_0x1a5a96['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5a9504){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5a9504);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xbece0c,..._0x2e3c4e}){return _0x6b88c4(_0xbece0c,_0x2e3c4e);}static['getInfo'](_0x159e89,_0x48d029){return _0x321ffa(_0x159e89,_0x48d029);}}class f extends _0x17cd1e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x239bc2,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x328c21=this['editor'];if(!!!_0x328c21['config']['get']('uploadcare'))return;_0x328c21['plugins']['get'](_0x239bc2)['createUploadAdapter']=_0x2c6b7e=>new k(_0x2c6b7e,_0x328c21),_0x328c21['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x55d8fb,{imageElement:_0x46882f,data:_0x1d36d8})=>{_0x328c21['model']['change'](_0xd09ad7=>{_0xd09ad7['setAttribute']('uploadcareImageId',_0x1d36d8['uploadcareImageId'],_0x46882f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1b5213,_0x386502){this['loader']=_0x1b5213,this['editor']=_0x386502,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5c9926=await this['loader']['file'];return j['upload']({'file':_0x5c9926,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3c79ab=>{_0x3c79ab&&_0x3c79ab['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3c79ab['value']);}})['then'](async _0x4489d4=>{const {imageFallbackUrl:_0x46384e,imageSources:_0x483560}=C(_0x4489d4['cdnUrl'],_0x4489d4['imageInfo']['width']);return{'uploadcareImageId':_0x4489d4['uuid'],'default':_0x46384e,'sources':_0x483560};})['catch'](()=>{const _0x282127=t('Cannot\x20upload\x20file:')+('\x20'+_0x5c9926['name']+'.');return Promise['reject'](_0x282127);});}['abort'](){this['controller']['abort']();}}class o extends _0x17cd1e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2e3fff];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3ef7ff){super(_0x3ef7ff),this['ucContextId']=_0x2b7e98();}['init'](){const _0x82b46e=this['editor'];_0x82b46e['commands']['add']('uploadcare',new w(_0x82b46e));}['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 _0xfbf656=_0x1f4901['document']['querySelector']('input[uploadcare-file-input]');_0xfbf656&&_0xfbf656['remove']();}),async function(_0x25cf8a){const _0x10d2c4=_0x5f49e8([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x12ed3c=0x535f8c3a,_0x16a5f1=0x5358f6fa^_0x12ed3c,_0x12eca4=window[_0x5f49e8([0x44,0x61,0x74,0x65])][_0x5f49e8([0x6e,0x6f,0x77])](),_0x251dec=_0x25cf8a[_0x5f49e8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x302e95=new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xadc4bf=>{_0x251dec[_0x5f49e8([0x6f,0x6e,0x63,0x65])](_0x5f49e8([0x72,0x65,0x61,0x64,0x79]),_0xadc4bf);}),_0x4ffcbb={[_0x5f49e8([0x6b,0x74,0x79])]:_0x5f49e8([0x45,0x43]),[_0x5f49e8([0x75,0x73,0x65])]:_0x5f49e8([0x73,0x69,0x67]),[_0x5f49e8([0x63,0x72,0x76])]:_0x5f49e8([0x50,0x2d,0x32,0x35,0x36]),[_0x5f49e8([0x78])]:_0x5f49e8([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]),[_0x5f49e8([0x79])]:_0x5f49e8([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]),[_0x5f49e8([0x61,0x6c,0x67])]:_0x5f49e8([0x45,0x53,0x32,0x35,0x36])},_0x4a856b=_0x251dec[_0x5f49e8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f49e8([0x67,0x65,0x74])](_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x553337(){let _0x4edddf,_0x547cba=null,_0x43533c=null;try{if(_0x4a856b==_0x5f49e8([0x47,0x50,0x4c]))return _0x5f49e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4edddf=_0x5a92ac(),!_0x4edddf)return _0x5f49e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4edddf[_0x5f49e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43533c=_0x42afe9(_0x4edddf[_0x5f49e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4edddf[_0x5f49e8([0x6a,0x74,0x69])])),await _0x1cdc34()?_0x2ee114()?_0xc80482()?_0x5f49e8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45ad5b()?(_0x4edddf[_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f49e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x547cba=_0xb3c32f(_0x5f49e8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4edddf[_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f49e8([0x74,0x72,0x69,0x61,0x6c])&&(_0x547cba=_0xb3c32f(_0x5f49e8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x327ab5()):_0x5f49e8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f49e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f49e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5f49e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xc80482(){const _0x35feea=[_0x5f49e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f49e8([0x74,0x72,0x69,0x61,0x6c])][_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4edddf[_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12eca4/0x3e8:0xe10*_0x16a5f1;return _0x4edddf[_0x5f49e8([0x65,0x78,0x70])]<_0x35feea;}function _0x2ee114(){const _0x46ddb2=_0x4edddf[_0x5f49e8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x46ddb2&&(!!_0x46ddb2[_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49e8([0x2a]))||!!_0x46ddb2[_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49e8([0x55,0x50,0x4c,0x43])));}function _0x45ad5b(){const _0x194bad=_0x4edddf[_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x194bad||0x0==_0x194bad[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xafaa93}=new URL(window[_0x5f49e8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x194bad[_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xafaa93))return!0x0;const _0xd31ae0=_0xafaa93[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])](_0x5f49e8([0x2e]));return _0x194bad[_0x5f49e8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a129b=>_0x3a129b[_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49e8([0x2a])))[_0x5f49e8([0x6d,0x61,0x70])](_0x7904fa=>_0x7904fa[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])](_0x5f49e8([0x2e])))[_0x5f49e8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x520c6f=>_0x520c6f[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd31ae0[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5f49e8([0x6d,0x61,0x70])](_0x10fb1d=>Array(_0xd31ae0[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x10fb1d[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5f49e8([0x66,0x69,0x6c,0x6c])](_0x10fb1d[0x0]===_0x5f49e8([0x2a])?_0x5f49e8([0x2a]):'')[_0x5f49e8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x10fb1d))[_0x5f49e8([0x73,0x6f,0x6d,0x65])](_0x45b2d0=>_0xd31ae0[_0x5f49e8([0x65,0x76,0x65,0x72,0x79])]((_0x22d9e6,_0x4127ad)=>_0x45b2d0[_0x4127ad]===_0x22d9e6||_0x45b2d0[_0x4127ad]===_0x5f49e8([0x2a])));}function _0x327ab5(){return _0x547cba&&_0x43533c?new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x539c7f,_0x35399b)=>{_0x547cba[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x539c7f,_0x35399b),_0x43533c[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x2369bd=>{_0x2369bd!=_0x5f49e8([0x56,0x61,0x6c,0x69,0x64])&&_0x539c7f(_0x2369bd);},_0x35399b);}):_0x547cba||_0x43533c||_0x5f49e8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42afe9(_0xc54325,_0x3c2c48){return new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bb29c=>{if(_0x538707())return _0x4bb29c(_0x5f49e8([0x56,0x61,0x6c,0x69,0x64]));_0x13a4c6(),_0x251dec[_0x5f49e8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f49e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x806de9=!0x1;const _0x58fd54=_0x2b7e98();function _0x304926(_0x183ed4){return!!_0x183ed4&&(typeof _0x183ed4===_0x5f49e8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x183ed4===_0x5f49e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x183ed4[_0x5f49e8([0x74,0x68,0x65,0x6e])]===_0x5f49e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x183ed4[_0x5f49e8([0x63,0x61,0x74,0x63,0x68])]===_0x5f49e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c3f18(_0x47a769){_0x1f8c60(_0x47a769)[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x3fe56d=>{if(!_0x3fe56d||_0x3fe56d[_0x5f49e8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f49e8([0x6f,0x6b]))return _0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x370022(_0x4bbf80(_0x58fd54+_0x3c2c48))!=_0x3fe56d[_0x5f49e8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f49e8([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x56cda1=>(_0xd8aecc(),_0x56cda1),()=>{const _0x3407e0=_0x3f7f47();return null==_0x3407e0?(_0xd8aecc(),_0x5f49e8([0x56,0x61,0x6c,0x69,0x64])):_0x5f49e8(_0x12eca4-_0x3407e0>(0x7753083a^_0x12ed3c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x4bb29c)[_0x5f49e8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4bb29c(_0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ed4df=0x536962ba^_0x12ed3c;function _0xd8aecc(){const _0x2ee4a2=_0x5f49e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x370022(_0x4bbf80(_0xc54325)),_0x416360=_0x14a78f(_0x370022(window[_0x5f49e8([0x4d,0x61,0x74,0x68])][_0x5f49e8([0x63,0x65,0x69,0x6c])](_0x12eca4/_0x4ed4df)));window[_0x5f49e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f49e8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ee4a2,_0x416360);}function _0x3f7f47(){const _0x31a9e4=_0x5f49e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x370022(_0x4bbf80(_0xc54325)),_0x2e535d=window[_0x5f49e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f49e8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31a9e4);return _0x2e535d?window[_0x5f49e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14a78f(_0x2e535d),0x10)*_0x4ed4df:null;}function _0x1f8c60(_0x4e65e3){return new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44de70,_0x1bea86)=>{_0x4e65e3[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x44de70,_0x1bea86),window[_0x5f49e8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1bea86,0x535e58fa^_0x12ed3c);});}}_0x251dec[_0x5f49e8([0x6f,0x6e])](_0x5f49e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51e27c,_0x5dd0cb)=>{if(_0x5dd0cb[0x0]!=_0xc54325)return _0x4bb29c(_0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5dd0cb[0x1]={..._0x5dd0cb[0x1],[_0x5f49e8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58fd54};},{[_0x5f49e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f49e8([0x68,0x69,0x67,0x68])}),_0x251dec[_0x5f49e8([0x6f,0x6e])](_0x5f49e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb9e921=>{_0x304926(_0xb9e921[_0x5f49e8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x806de9=!0x0,_0x2c3f18(_0xb9e921[_0x5f49e8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f49e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f49e8([0x6c,0x6f,0x77])}),_0x302e95[_0x5f49e8([0x74,0x68,0x65,0x6e])](()=>{_0x806de9||_0x4bb29c(_0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x538707(){return _0x251dec[_0x5f49e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f49e8([0x76,0x69,0x65,0x77])][_0x5f49e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f49e8([0x61,0x75,0x74,0x6f]);}function _0x13a4c6(){_0x251dec[_0x5f49e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f49e8([0x76,0x69,0x65,0x77])][_0x5f49e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f49e8([0x61,0x75,0x74,0x6f]);}}function _0xb3c32f(_0x221ac2){const _0x3206f6=[new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x432724=>setTimeout(_0x432724,0x5356b2f6^_0x12ed3c)),_0x302e95[_0x5f49e8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ac5af=>{let _0xf41177=0x0;_0x251dec[_0x5f49e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49e8([0x6f,0x6e])](_0x5f49e8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1736e8,_0x27606e)=>{_0x27606e[0x0][_0x5f49e8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf41177++,_0xf41177==(0x535f8dc2^_0x12ed3c)&&(_0x5ac5af(),_0x1736e8[_0x5f49e8([0x6f,0x66,0x66])]());});}))];return window[_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f49e8([0x72,0x61,0x63,0x65])](_0x3206f6)[_0x5f49e8([0x74,0x68,0x65,0x6e])](()=>_0x221ac2);}async function _0xe40a24(){await _0x302e95,_0x251dec[_0x5f49e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49e8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4009a2,_0x251dec[_0x5f49e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49e8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4009a2,_0x251dec[_0x5f49e8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f49e8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16190d(_0x1a79af){const _0x1413a2=_0x1ea24f();_0x251dec[_0x1413a2]=_0x5f49e8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a79af,_0x1a79af!=_0x5f49e8([0x56,0x61,0x6c,0x69,0x64])&&_0xe40a24();}function _0x1ea24f(){const _0x4d5b7a=window[_0x5f49e8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f49e8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f49e8([0x6e,0x6f,0x77])]())[_0x5f49e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f49e8([0x2e]),'');let _0x119903=_0x5f49e8([0x68]);for(let _0x178a40=0x0;_0x178a40<_0x4d5b7a[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x178a40+=0x2){let _0x51dae4=window[_0x5f49e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d5b7a[_0x5f49e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x178a40,_0x178a40+0x2));_0x51dae4>=_0x10d2c4[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51dae4-=_0x10d2c4[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x119903+=_0x10d2c4[_0x51dae4];}return _0x119903;}function _0x5a92ac(){const _0x3b96be=_0x4a856b[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])](_0x5f49e8([0x2e]));if(0x3!=_0x3b96be[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4115a6(_0x3b96be[0x1]);function _0x4115a6(_0x578aad){const _0x3ad95c=_0x425683(_0x578aad);return _0x3ad95c&&_0x245382()?_0x3ad95c:null;function _0x245382(){const _0xa55071=_0x3ad95c[_0x5f49e8([0x6a,0x74,0x69])],_0x2dcb1c=window[_0x5f49e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa55071[_0x5f49e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa55071[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3bae83={..._0x3ad95c,[_0x5f49e8([0x6a,0x74,0x69])]:_0xa55071[_0x5f49e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa55071[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3bae83[_0x5f49e8([0x76,0x63])],_0x4bbf80(_0x3bae83)==_0x2dcb1c;}}}async function _0x1cdc34(){let _0x4e8ec4=!0x0;try{const _0xf5d10e=_0x4a856b[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])](_0x5f49e8([0x2e])),[_0x10c0d2,_0x4ac3a8,_0x941013]=_0xf5d10e;return _0x325519(_0x10c0d2),await _0x237b85(_0x10c0d2,_0x4ac3a8,_0x941013),_0x4e8ec4;}catch{return!0x1;}function _0x325519(_0x4835ea){const _0x234601=_0x425683(_0x4835ea);_0x234601&&_0x234601[_0x5f49e8([0x61,0x6c,0x67])]==_0x5f49e8([0x45,0x53,0x32,0x35,0x36])||(_0x4e8ec4=!0x1);}async function _0x237b85(_0x39da03,_0x2793cc,_0x33f66f){const _0x4455b6=window[_0x5f49e8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f49e8([0x66,0x72,0x6f,0x6d])](_0x240ec0(_0x33f66f),_0x571aa2=>_0x571aa2[_0x5f49e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x51c608=new window[(_0x5f49e8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f49e8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39da03+_0x5f49e8([0x2e])+_0x2793cc),_0x143e02=window[_0x5f49e8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f49e8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x143e02)return;const _0x40da0c=await _0x143e02[_0x5f49e8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f49e8([0x6a,0x77,0x6b]),_0x4ffcbb,{[_0x5f49e8([0x6e,0x61,0x6d,0x65])]:_0x5f49e8([0x45,0x43,0x44,0x53,0x41]),[_0x5f49e8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f49e8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f49e8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x143e02[_0x5f49e8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f49e8([0x6e,0x61,0x6d,0x65])]:_0x5f49e8([0x45,0x43,0x44,0x53,0x41]),[_0x5f49e8([0x68,0x61,0x73,0x68])]:{[_0x5f49e8([0x6e,0x61,0x6d,0x65])]:_0x5f49e8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40da0c,_0x4455b6,_0x51c608)||(_0x4e8ec4=!0x1);}}function _0x425683(_0x6ab02a){return _0x6ab02a[_0x5f49e8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f49e8([0x65,0x79]))?JSON[_0x5f49e8([0x70,0x61,0x72,0x73,0x65])](_0x240ec0(_0x6ab02a)):null;}function _0x240ec0(_0xeb3496){return window[_0x5f49e8([0x61,0x74,0x6f,0x62])](_0xeb3496[_0x5f49e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f49e8([0x2b]))[_0x5f49e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f49e8([0x2f])));}function _0x4bbf80(_0x238158){let _0x4f425b=0x1505;function _0x2853d2(_0x725dc2){for(let _0x5c0351=0x0;_0x5c0351<_0x725dc2[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c0351++){const _0x388671=_0x725dc2[_0x5f49e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c0351);_0x4f425b=(_0x4f425b<<0x5)+_0x4f425b+_0x388671,_0x4f425b&=_0x4f425b;}}function _0x5a26e7(_0x1f814c){Array[_0x5f49e8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f814c)?_0x1f814c[_0x5f49e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a26e7):_0x1f814c&&typeof _0x1f814c==_0x5f49e8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f49e8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f814c)[_0x5f49e8([0x73,0x6f,0x72,0x74])]()[_0x5f49e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ad473,_0x55b493])=>{_0x2853d2(_0x1ad473),_0x5a26e7(_0x55b493);}):_0x2853d2(window[_0x5f49e8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f814c));}return _0x5a26e7(_0x238158),_0x4f425b>>>0x0;}function _0x370022(_0x3d7bbf){return _0x3d7bbf[_0x5f49e8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f49e8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f49e8([0x30]));}function _0x14a78f(_0x56ab41){return _0x56ab41[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f49e8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f49e8([0x6a,0x6f,0x69,0x6e])]('');}function _0x4009a2(){}function _0x5f49e8(_0x5a8a35){return _0x5a8a35['map'](_0x5cb202=>String['fromCharCode'](_0x5cb202))['join']('');}_0x16190d(await _0x553337());}(this);}['_initSchema'](){const _0x552feb=this['editor']['model']['schema'];_0x552feb['isRegistered']('imageBlock')&&_0x552feb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x552feb['isRegistered']('imageInline')&&_0x552feb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5cd44f=this['editor'];_0x5cd44f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5cd44f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2b01d9=>_0x2b01d9['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x441a20=_0x5cd44f['commands']['get']('replaceImageSource');_0x441a20&&this['listenTo'](_0x441a20,'cleanupImage',(_0x42fcb9,[_0x564db4,_0x261ae4])=>{_0x564db4['removeAttribute']('uploadcareImageId',_0x261ae4);});}['_initConfig'](){const _0x47abf1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x276d42=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4db309(_0x1f4901['document'],'uc-config',{..._0x47abf1,'pubkey':_0x276d42,'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']=_0x5317e4=>{if('closeMax'==_0x5317e4)return'#uc-icon-arrow-down';},_0x1f4901['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4db309(_0x1f4901['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1f4901['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x398d03=this['editor']['commands']['get']('insertImage');_0x398d03&&this['listenTo'](_0x398d03,'execute',()=>{const _0x13a06d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x13a06d&&_0x13a06d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x13a06d);});});const _0x5752d9=this['editor']['commands']['get']('uploadcareImageReplace');_0x5752d9&&this['listenTo'](_0x5752d9,'execute',()=>{const _0x5ee02c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5ee02c&&_0x5ee02c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5ee02c);});});}}class tt extends _0x17cd1e{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1875a6){super(_0x1875a6),_0x1875a6['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3ae175['defineComponents'](_0x3ae175),this['_defineLocale']();}['_defineLocale'](){const _0x4b4823=this['editor']['config']['get']('uploadcare.locale'),_0x59fd8d=this['editor']['locale']['contentLanguage'];_0x4b4823&&_0x3ae175['defineLocale'](_0x59fd8d,_0x4b4823);}}class ii extends _0x425952{constructor(_0x5ba07c){super(_0x5ba07c);const t=_0x5ba07c['t'],_0x3055bd=this['bindTemplate'],_0x249481=new _0x3db628();_0x249481['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':[_0x249481,{'text':_0x3055bd['to']('imageUploadProgress',_0x48899d=>t('Loading\x20image...')+'\x20('+(_0x48899d||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 _0x425952{constructor(_0x590d1a){super(_0x590d1a);const t=_0x590d1a['t'];this['set']('errorType',null);const _0x3ad669=new _0x7a9863(_0x590d1a);_0x3ad669['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3ad669['withText']=!0x0,_0x3ad669['class']='ck-button-action',_0x3ad669['on']('execute',()=>{this['fire']('retry');}),_0x3ad669['bind']('isVisible')['to'](this,'errorType',_0x5064f3=>'NotFound'!==_0x5064f3);const _0x22dc14=new _0x3a706b();_0x22dc14['content']=_0x394e39,_0x22dc14['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x16ea45=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':[_0x22dc14,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x16ea45['to']('errorType',_0x5cc6ed=>t('NotFound'!==_0x5cc6ed?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3ad669]},{'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 _0x425952{constructor(_0x162a91,_0x5610d7){super(_0x162a91);const _0x227f9d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5610d7,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x227f9d['to']('imageSrc')}});}}class X extends W{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x398370,_0x2fca02,_0x53921a){super(_0x398370),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x398370),this['_errorView']=new ti(_0x398370),this['_editingView']=new ei(_0x398370,_0x53921a),this['_focusableView']=new _0x425952(_0x398370),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2fca02),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'],_0x108195=>{this['_addUploadcareImageEditorListeners'](_0x108195);});}),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'](_0x47718f,_0x47f156){const _0x43e5d4='uc-cloud-image-editor',_0x34573e=_0x47718f['querySelector'](_0x43e5d4);if(_0x34573e)return _0x47f156(_0x34573e);const _0x282ab8=new MutationObserver(_0x3e0930=>{const _0x2079eb=_0x3e0930['filter'](_0x509e73=>_0x509e73['target']===_0x47718f&&_0x509e73['addedNodes']['length']>0x0&&_0x509e73['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43e5d4);_0x2079eb['length']&&(_0x282ab8['disconnect'](),_0x47f156(_0x2079eb[0x0]['addedNodes'][0x0]));});_0x282ab8['observe'](_0x47718f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x13ffd1){_0x13ffd1['addEventListener']('apply',_0x49c44f=>{this['fire']('apply',{'imageSrc':_0x49c44f['detail']['cdnUrl']});}),_0x13ffd1['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x18bc34(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x58096c,_0x59898a,_0x12470d){super(),this['_editor']=_0x58096c,this['_dialog']=_0x59898a,this['_imageElement']=_0x12470d,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 _0x2a77ed=this['_imageElement'],_0x5efdda=_0x2a77ed['getAttribute']('uploadcareImageId'),_0x141e09=_0x2a77ed['getAttribute']('src');if(_0x5efdda)await this['_loadImageInfo'](_0x5efdda,_0x141e09);else{if(this['_imageCache']['has'](_0x141e09)){const _0x1b3e4e=this['_imageCache']['get'](_0x141e09);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b3e4e['url'],this['imageDimension']=_0x1b3e4e['dimension'],this['imageId']=_0x1b3e4e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x346c58}=this['_editor'],t=_0x346c58['t'],_0x435634=new X(_0x346c58,this['imageStatus'],this['_attributes']);_0x435634['bind']('status')['to'](this,'imageStatus'),_0x435634['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x435634['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x435634['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x435634,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2fca44,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x435634,'position':_0x1676f1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x435634['focus']();},'onHide':()=>{_0x435634['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x233ce0=>!Q(_0x233ce0,_0x435634['element'])}});}['_loadImageInfo'](_0x2c4bce,_0x129d04){return j['getInfo'](_0x2c4bce,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x551a8e=>{const {width:_0x100985,height:_0x27bccc}=_0x551a8e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x129d04,this['imageDimension']={'width':_0x100985,'height':_0x27bccc},this['imageId']=_0x2c4bce;})['catch'](_0x502d45=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x502d45['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xa1eb34,_0x93a1c1){return this['_getImageAsFile'](_0xa1eb34)['then'](_0x17ee7d=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x93a1c1['signal'],'file':_0x17ee7d,'onProgress':_0x34ce63=>{_0x34ce63&&_0x34ce63['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x34ce63['value']));}}))['then'](_0x56ea02=>{const {width:_0xccd9e8,height:_0x502fb6}=_0x56ea02['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56ea02['cdnUrl'],this['imageDimension']={'width':_0xccd9e8,'height':_0x502fb6},this['imageId']=_0x56ea02['uuid'],this['imageUploadProgress']=null;const _0x1877f2=_0xa1eb34['getAttribute']('src');this['_imageCache']['set'](_0x1877f2,{'id':_0x56ea02['uuid'],'url':_0x56ea02['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3e12cd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e12cd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x76a11e,_0x1f8e54){_0x76a11e['on']('apply',(_0x40fa32,_0x503c60)=>{this['_replaceImage'](_0x1f8e54,_0x503c60['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x76a11e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x76a11e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x49e13b,_0x1d622b,_0x30f00e){const _0x46c2c6=this['_editor'],{width:_0x29ff1e,height:_0x34d685}=V(_0x1d622b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x489a19,imageSources:_0x2e5962}=C(_0x1d622b,_0x29ff1e);_0x46c2c6['model']['change'](_0x77ebcd=>{if('$graveyard'===_0x49e13b['root']['rootName']){_0x46c2c6['execute']('insertImage',{'imageType':_0x49e13b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x49e13b['getAttributes']()),'uploadcareImageId':_0x30f00e,'src':_0x489a19,'sources':_0x2e5962,'width':_0x29ff1e,'height':_0x34d685}});const _0x286f92=_0x49e13b['getChildren']();_0x49e13b=_0x46c2c6['model']['document']['selection']['getSelectedElement']();for(const _0x50ece7 of _0x286f92)_0x77ebcd['append'](_0x77ebcd['cloneElement'](_0x50ece7),_0x49e13b);}else _0x77ebcd['setSelection'](_0x49e13b,'on'),_0x46c2c6['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x49e13b['getAttributes']()),'uploadcareImageId':_0x30f00e,'src':_0x489a19,'sources':_0x2e5962,'width':_0x29ff1e,'height':_0x34d685},_0x49e13b);_0x77ebcd['setSelection'](_0x49e13b,'on');});}async['_getImageAsFile'](_0x30c046){const _0x9c3f82=_0x1f4901['window'],_0x4b0505=_0x1f4901['document']['location']['href'],_0x1b5e46=new _0x9c3f82['URL'](_0x30c046['getAttribute']('src'),_0x4b0505);if('data:'===_0x1b5e46['protocol']){const _0x217af8=_0x1b5e46['href']['split'](','),_0x22a4ae=_0x217af8[0x0]['match'](/:(.*?);/)[0x1],_0x3d6a8b=_0x22a4ae['split']('/')[0x1],_0x4000a5=_0x9c3f82['atob'](_0x217af8[_0x217af8['length']-0x1]);let _0x3f3974=_0x4000a5['length'];const _0x226f2e=new _0x9c3f82['Uint8Array'](_0x3f3974);for(;_0x3f3974--;)_0x226f2e[_0x3f3974]=_0x4000a5['charCodeAt'](_0x3f3974);return new _0x9c3f82['File']([_0x226f2e],'image.'+_0x3d6a8b,{'type':_0x22a4ae});}const _0x3d198a=_0x1b5e46['href']['split']('/'),_0x2b4b5e=_0x3d198a[_0x3d198a['length']-0x1],_0x5ed919=_0x2b4b5e['split']('.')[0x1];return _0x9c3f82['fetch'](_0x1b5e46['href'])['then'](_0x27a1be=>_0x27a1be['clone']()['blob']())['then'](_0x16b812=>new _0x9c3f82['File']([_0x16b812],_0x2b4b5e,{'type':'image/'+_0x5ed919}));}}class N extends _0xdd9173{['imageEditController'];static get['requires'](){return[_0x2e3fff];}['_isEditable'];constructor(_0x5841bc){super(_0x5841bc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x19ccc0){const _0x220ceb=z(_0x19ccc0);return _0x4cc761=>!(!_0x4cc761||!_0x4cc761['is']('element','imageBlock')&&!_0x4cc761['is']('element','imageInline'))&&(!!_0x4cc761['hasAttribute']('uploadcareImageId')||!!_0x4cc761['hasAttribute']('src')&&_0x220ceb(_0x4cc761['getAttribute']('src')));}(_0x5841bc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1115b8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1115b8);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3ea1c9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ea1c9&&(_0x3ea1c9['is']('element','imageBlock')||_0x3ea1c9['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2e3fff),_0x3ea1c9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xdd9173{['refresh'](){const _0x6c4e6e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x6c4e6e&&(_0x6c4e6e['is']('element','imageBlock')||_0x6c4e6e['is']('element','imageInline')));}['execute'](_0x1a76af){const _0x44e44e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x724f08=>{_0x724f08['setAttributes'](_0x1a76af,_0x44e44e),_0x724f08['removeAttribute']('srcset',_0x44e44e),_0x724f08['removeAttribute']('sizes',_0x44e44e);});}}class m extends _0x17cd1e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2a969a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x22b098}=this;_0x22b098['commands']['add']('uploadcareImageEdit',new N(_0x22b098)),_0x22b098['commands']['add']('uploadcareImageReplace',new O(_0x22b098));}}class g extends _0x17cd1e{['_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 _0x5df493=this['editor'];_0x5df493['ui']['componentFactory']['add']('uploadcareImageEdit',_0x221d56=>{const _0x19d827=_0x5df493['commands']['get']('uploadcareImageEdit'),_0x53858f=new _0x7a9863(_0x221d56),t=_0x221d56['t'];return _0x53858f['set']({'icon':_0x2fca44,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x53858f['bind']('isEnabled')['to'](_0x19d827),_0x53858f['bind']('isOn')['to'](_0x19d827,'isActive'),this['listenTo'](_0x53858f,'execute',()=>{_0x5df493['execute']('uploadcareImageEdit'),_0x5df493['editing']['view']['focus']();}),_0x53858f;}),this['_initConfig']();}['_initConfig'](){const _0x5264bf=_0x4db309(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5264bf),this['listenTo'](this['editor'],'destroy',()=>{_0x5264bf['remove']();});}}class et extends _0x17cd1e{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x5efe09=>0x1!=_0x5efe09}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x35372e=>{const {af:{dictionary:_0x3667cb,getPluralForm:_0x8338e6}}={'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':_0x46dd2c=>0x1!=_0x46dd2c}};_0x35372e['af']||={'dictionary':{},'getPluralForm':null},_0x35372e['af']['dictionary']=Object['assign'](_0x35372e['af']['dictionary'],_0x3667cb),_0x35372e['af']['getPluralForm']=_0x8338e6;})(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':_0x47435d=>0x0==_0x47435d?0x0:0x1==_0x47435d?0x1:0x2==_0x47435d?0x2:_0x47435d%0x64>=0x3&&_0x47435d%0x64<=0xa?0x3:_0x47435d%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x12a35b=>{const {ar:{dictionary:_0x50872c,getPluralForm:_0x205799}}={'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':_0x4a9d04=>0x0==_0x4a9d04?0x0:0x1==_0x4a9d04?0x1:0x2==_0x4a9d04?0x2:_0x4a9d04%0x64>=0x3&&_0x4a9d04%0x64<=0xa?0x3:_0x4a9d04%0x64>=0xb?0x4:0x5}};_0x12a35b['ar']||={'dictionary':{},'getPluralForm':null},_0x12a35b['ar']['dictionary']=Object['assign'](_0x12a35b['ar']['dictionary'],_0x50872c),_0x12a35b['ar']['getPluralForm']=_0x205799;})(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':_0x1ceddd=>0x1!=_0x1ceddd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x20bf68=>{const {ast:{dictionary:_0x50fa3d,getPluralForm:_0x4d015c}}={'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':_0xb2ec5c=>0x1!=_0xb2ec5c}};_0x20bf68['ast']||={'dictionary':{},'getPluralForm':null},_0x20bf68['ast']['dictionary']=Object['assign'](_0x20bf68['ast']['dictionary'],_0x50fa3d),_0x20bf68['ast']['getPluralForm']=_0x4d015c;})(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':_0x5b5f05=>0x1!=_0x5b5f05}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2450e4=>{const {az:{dictionary:_0x4e74dc,getPluralForm:_0x1d5a4f}}={'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':_0x469e56=>0x1!=_0x469e56}};_0x2450e4['az']||={'dictionary':{},'getPluralForm':null},_0x2450e4['az']['dictionary']=Object['assign'](_0x2450e4['az']['dictionary'],_0x4e74dc),_0x2450e4['az']['getPluralForm']=_0x1d5a4f;})(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':_0x48e918=>_0x48e918%0xa==0x1&&_0x48e918%0x64!=0xb?0x0:_0x48e918%0xa>=0x2&&_0x48e918%0xa<=0x4&&(_0x48e918%0x64<0xa||_0x48e918%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x30d719=>{const {be:{dictionary:_0x494577,getPluralForm:_0x16c7c4}}={'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':_0x26548c=>_0x26548c%0xa==0x1&&_0x26548c%0x64!=0xb?0x0:_0x26548c%0xa>=0x2&&_0x26548c%0xa<=0x4&&(_0x26548c%0x64<0xa||_0x26548c%0x64>=0x14)?0x1:0x2}};_0x30d719['be']||={'dictionary':{},'getPluralForm':null},_0x30d719['be']['dictionary']=Object['assign'](_0x30d719['be']['dictionary'],_0x494577),_0x30d719['be']['getPluralForm']=_0x16c7c4;})(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':_0x3f5de1=>0x1!=_0x3f5de1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x333571=>{const {bg:{dictionary:_0x34645b,getPluralForm:_0xeb1a67}}={'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':_0x38fc33=>0x1!=_0x38fc33}};_0x333571['bg']||={'dictionary':{},'getPluralForm':null},_0x333571['bg']['dictionary']=Object['assign'](_0x333571['bg']['dictionary'],_0x34645b),_0x333571['bg']['getPluralForm']=_0xeb1a67;})(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':_0x29af48=>0x1!=_0x29af48}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3b9abe=>{const {bn:{dictionary:_0x1c1be6,getPluralForm:_0x347d1e}}={'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':_0x1cfecf=>0x1!=_0x1cfecf}};_0x3b9abe['bn']||={'dictionary':{},'getPluralForm':null},_0x3b9abe['bn']['dictionary']=Object['assign'](_0x3b9abe['bn']['dictionary'],_0x1c1be6),_0x3b9abe['bn']['getPluralForm']=_0x347d1e;})(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':_0x7c492c=>_0x7c492c%0xa==0x1&&_0x7c492c%0x64!=0xb?0x0:_0x7c492c%0xa>=0x2&&_0x7c492c%0xa<=0x4&&(_0x7c492c%0x64<0xa||_0x7c492c%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3ffb1d=>{const {bs:{dictionary:_0x20c7b6,getPluralForm:_0x256f0b}}={'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':_0xf40109=>_0xf40109%0xa==0x1&&_0xf40109%0x64!=0xb?0x0:_0xf40109%0xa>=0x2&&_0xf40109%0xa<=0x4&&(_0xf40109%0x64<0xa||_0xf40109%0x64>=0x14)?0x1:0x2}};_0x3ffb1d['bs']||={'dictionary':{},'getPluralForm':null},_0x3ffb1d['bs']['dictionary']=Object['assign'](_0x3ffb1d['bs']['dictionary'],_0x20c7b6),_0x3ffb1d['bs']['getPluralForm']=_0x256f0b;})(window['CKEDITOR_TRANSLATIONS']||={});
|