@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251114.0 → 0.0.0-nightly-20251118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +6 -6
- 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 _0x2e1346,Command as _0x5f10c7}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x177780,IconGooglePhotos as _0x6ab589,IconGoogleDrive as _0x224637,IconFacebook as _0x46d578,IconDropbox as _0x29d2fc,IconUploadcareLink as _0x3e2703,IconUploadcareImageUpload as _0xe68c55,IconError as _0x103a2d,IconUploadcareImageEdit as _0x3d7be4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x28025c,MenuBarMenuListItemButtonView as _0x39d214,View as _0x118c5e,FocusCycler as _0x484482,Dialog as _0x122def,DialogViewPosition as _0x508150,SpinnerView as _0x30e125,IconView as _0x468bdb,Notification as _0x2d276e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x332d49,DomEmitterMixin as _0x5407fa,global as _0x5a0d9e,getAncestors as _0x18f953,ObservableMixin as _0xaa43ce,uid as _0x317a33,createElement as _0x5c324f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x228ca1}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3a1f7f,info as _0x293ca8}from'@uploadcare/upload-client';import*as _0x1c7d44 from'@uploadcare/file-uploader';var i=function(_0x2f93f3){return _0x2f93f3['Local']='local',_0x2f93f3['URL']='url',_0x2f93f3['Dropbox']='dropbox',_0x2f93f3['GDrive']='gdrive',_0x2f93f3['Facebook']='facebook',_0x2f93f3['GPhotos']='gphotos',_0x2f93f3['OneDrive']='onedrive',_0x2f93f3;}({});function _(_0x4315d4,_0x9f6aca,_0x30080a){const t=_0x4315d4['t'],_0xc58523=_0x4315d4['t'];switch(_0x9f6aca){case i['Local']:return{'text':_0xc58523('Insert'===_0x30080a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xc58523('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x30080a?_0xc58523('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xc58523('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x30080a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x30080a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x30080a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x30080a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x30080a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x9f6aca;}}class e extends _0x2e1346{['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 _0x4c236c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8a573a;for(const _0x5af3c3 in _0x4c236c){const _0x469560=_0x5af3c3,_0x2939ac=_0x4c236c[_0x469560];if('uploadcareLicenseKeyValid'==_0x2939ac||'uploadcareLicenseKeyInvalid'==_0x2939ac||'uploadcareLicenseKeyExpired'==_0x2939ac||'uploadcareLicenseKeyDomainLimit'==_0x2939ac||'uploadcareLicenseKeyNotAllowed'==_0x2939ac||'uploadcareLicenseKeyEvaluationLimit'==_0x2939ac||'uploadcareLicenseKeyTrialLimit'==_0x2939ac||'uploadcareLicenseKeyUsageLimit'==_0x2939ac){delete _0x4c236c[_0x469560],_0x8a573a=_0x2939ac,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x8a573a&&_0x4c236c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x8a573a&&_0x4c236c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x8a573a&&_0x4c236c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x8a573a&&_0x4c236c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x8a573a&&_0x4c236c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x8a573a&&_0x4c236c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x8a573a&&_0x4c236c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x29c144}=this,_0x27ac50=_0x29c144['commands']['get']('uploadcare');if(!_0x27ac50)return;const _0x27fcdc=this['_normalizeConfigSourceList'](_0x29c144['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3fbe5a,_0xd98746)=>{const _0x230e04=this['_getIntegrationKey'](_0xd98746['type']);return _0x3fbe5a[_0x230e04]||(_0x3fbe5a[_0x230e04]=[]),_0x3fbe5a[_0x230e04]['push'](_0xd98746),_0x3fbe5a;},{});_0x29c144['plugins']['has']('ImageInsertUI')&&_0x29c144['commands']['get']('uploadcare')&&Object['entries'](_0x27fcdc)['forEach'](([_0x7e71c4,_0x1b9fc0])=>{_0x29c144['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x7e71c4,'observable':()=>_0x27ac50,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1b9fc0),'formViewCreator':()=>this['_createDropdownButtons'](_0x1b9fc0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1b9fc0),'override':'assetManager'!==_0x7e71c4});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2f0fbd){const {locale:_0x163b16}=this['editor'];return _0x2f0fbd['map'](_0x5bda45=>{const _0x10e4fb=_(_0x163b16,_0x5bda45,'Insert');switch(_0x5bda45){case i['Local']:return{'icon':_0xe68c55,'type':i['Local'],..._0x10e4fb};case i['URL']:return{'icon':_0x3e2703,'type':i['URL'],..._0x10e4fb};case i['Dropbox']:return{'icon':_0x29d2fc,'type':i['Dropbox'],..._0x10e4fb};case i['Facebook']:return{'icon':_0x46d578,'type':i['Facebook'],..._0x10e4fb};case i['GDrive']:return{'icon':_0x224637,'type':i['GDrive'],..._0x10e4fb};case i['GPhotos']:return{'icon':_0x6ab589,'type':i['GPhotos'],..._0x10e4fb};case i['OneDrive']:return{'icon':_0x177780,'type':i['OneDrive'],..._0x10e4fb};}});}['_getIntegrationKey'](_0x26138d){switch(_0x26138d){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xb459fd,_0xf68957){const _0x38bcad=this['editor'],_0x2cd6b8=new _0xb459fd(_0x38bcad['locale']),_0x3085c1=_0x38bcad['commands']['get']('uploadcare');return _0x2cd6b8['bind']('isEnabled')['to'](_0x3085c1),_0x2cd6b8['on']('execute',()=>{_0x3085c1['execute'](_0xf68957);}),_0x2cd6b8;}['_createToolbarButton'](_0x52d14e){const {locale:_0x3bf68f}=this['editor'],_0x2502d2=this['editor']['plugins']['get']('ImageInsertUI'),_0x44c253=_0x52d14e[0x0],_0x3f83e9=this['_createButton'](_0x28025c,_0x44c253['type']);return _0x3f83e9['icon']=_0x44c253['icon'],_0x3f83e9['bind']('label')['to'](_0x2502d2,'isImageSelected',_0x5ad24c=>_(_0x3bf68f,_0x44c253['type'],_0x5ad24c?'Replace':'Insert')['text']),_0x3f83e9['tooltip']=!0x0,_0x3f83e9;}['_createDropdownButtons'](_0x3266fe){const {locale:_0x4d8a78}=this['editor'],_0x1d0972=this['editor']['plugins']['get']('ImageInsertUI');return _0x3266fe['map'](_0x2225b1=>{const _0x21854f=this['_createButton'](_0x28025c,_0x2225b1['type']);return _0x21854f['withText']=!0x0,_0x21854f['icon']=_0x2225b1['icon'],_0x21854f['bind']('label')['to'](_0x1d0972,'isImageSelected',_0xfeb01=>_(_0x4d8a78,_0x2225b1['type'],_0xfeb01?'Replace':'Insert')['text']),_0x21854f;});}['_createMenuBarButtons'](_0x44769b){return _0x44769b['map'](_0x2da410=>{const _0x2019c6=this['_createButton'](_0x39d214,_0x2da410['type']);return _0x2019c6['icon']=_0x2da410['icon'],_0x2019c6['label']=_0x2da410['shortText'],_0x2019c6;});}}class F extends _0x118c5e{['focusTracker'];['focusCycler'];constructor(_0xd3bb15){super(_0xd3bb15),this['focusTracker']=new _0x332d49(),this['focusCycler']=new _0x484482({'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(_0x3ca4ef,_0x4ac8ab){super(_0x3ca4ef),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-'+_0x4ac8ab}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x475d3c,_0x1983e4){const _0x1ebc31=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4b5293=>_0x4b5293<=_0x1983e4)['map'](_0x35c37e=>_0x475d3c['replace'](/\/$/,'')+'/-/resize/'+_0x35c37e+'x/\x20'+_0x35c37e+'w');return{'imageFallbackUrl':_0x475d3c,'imageSources':[{'srcset':_0x1ebc31['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1983e4+'px)\x20100vw,\x20'+_0x1983e4+'px','type':'image/webp'}]};}function S(_0x4f86a3,_0x12e427,_0x12a27a){const _0x33cf01=_0x4f86a3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x33cf01?parseInt(_0x33cf01[0x1],0xa):_0x12e427,'height':_0x33cf01?parseInt(_0x33cf01[0x2],0xa):_0x12a27a};}function p(_0x31e90f,_0x296232){const _0x230773=new(_0x5407fa())(),_0x1548c4=_0x31e90f['plugins']['get']('ImageUtils'),_0x4a754a=_0x31e90f['editing']['mapper']['toViewElement'](_0x296232),_0x371d1f=_0x1548c4['findViewImgElement'](_0x4a754a),_0x98f1f4=_0x31e90f['editing']['view']['domConverter']['viewToDom'](_0x371d1f),_0x1840a2=_0x296232['getAttribute']('width'),_0x4f2d37=_0x296232['getAttribute']('height'),_0x2c3a0c='image-processing';_0x31e90f['editing']['view']['change'](_0x52b909=>{_0x52b909['addClass'](_0x2c3a0c,_0x4a754a),_0x52b909['setStyle']('aspect-ratio',_0x1840a2+'/'+_0x4f2d37,_0x371d1f);}),_0x230773['listenTo'](_0x98f1f4,'load',()=>{_0x230773['stopListening'](_0x98f1f4,'load'),_0x31e90f['editing']['view']['change'](_0x4ac8b4=>{_0x4ac8b4['removeClass'](_0x2c3a0c,_0x4a754a),_0x4ac8b4['removeStyle']('aspect-ratio',_0x371d1f);});});}function z(_0x1527fc){if(Array['isArray'](_0x1527fc)){const _0x3fe532=_0x1527fc['map'](z);return _0x16e997=>_0x3fe532['some'](_0x39bbdc=>_0x39bbdc(_0x16e997));}if('origin'==_0x1527fc){const _0x32c8e5=_0x5a0d9e['window']['location']['origin'];return _0x59c065=>new URL(_0x59c065,_0x5a0d9e['document']['baseURI'])['origin']==_0x32c8e5;}return'function'==typeof _0x1527fc?_0x1527fc:_0x1527fc instanceof RegExp?_0x1701b8=>!(!_0x1701b8['match'](_0x1527fc)&&!_0x1701b8['replace'](/^https?:\/\//,'')['match'](_0x1527fc)):()=>!0x1;}function A(_0x16ec60,_0x10a20f){return _0x18f953(_0x16ec60['target'])['includes'](_0x10a20f);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xaa43ce(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xaad017,_0x5297d7,_0x3a2d62){super(),this['_editor']=_0xaad017,this['_editing']=_0x5297d7,this['_dialog']=_0xaad017['plugins']['get'](_0x122def),this['_api']=_0x5297d7['ctxElement']['getAPI'](),this['_type']=_0x3a2d62,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:_0x531460,model:_0x2e41b6}=this['_editor'],_0xb4e5d9=_0x2e41b6['document']['selection']['getSelectedElement'](),_0x214582=_0xb4e5d9&&(_0xb4e5d9['is']('element','imageBlock')||_0xb4e5d9['is']('element','imageInline'));this['_formView']=new x(_0x531460,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xe68c55,'title':_(_0x531460,this['_type'],_0x214582?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x508150['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x91ca14=>!A(_0x91ca14,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x19fb85}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x276931=>{const _0x3e6955=_0x19fb85['length'];for(const _0x49e501 of _0x19fb85){const _0x19b8f0=_0x49e501===_0x19fb85[_0x3e6955-0x1],{cdnUrl:_0x21d893,fileInfo:_0x19da7d}=_0x49e501;if(!_0x21d893||!_0x19da7d)continue;const {width:_0x41111e,height:_0x4b041e}=_0x19da7d['imageInfo'],_0x1ad463=S(_0x21d893,_0x41111e,_0x4b041e),_0x50b5fc=C(_0x21d893,_0x1ad463['width']),_0x447612={'id':_0x19da7d['uuid'],'type':'image','attributes':{'imageDimension':_0x1ad463,..._0x50b5fc}};this['_insertAsset'](_0x447612,_0x19b8f0,_0x276931);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1fe0af=>{'idle'===_0x1fe0af['detail']['status']&&!_0x1fe0af['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5d9e83,_0x3a81c4,_0x21aafe){const _0x5ea11a=this['_editor']['model']['document']['selection'],_0x4a7464=_0x5ea11a['getSelectedElement'](),_0x18234f=!(!_0x4a7464||!_0x4a7464['is']('element','imageInline'));_0x21aafe['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5d9e83,_0x18234f),_0x3a81c4||_0x21aafe['setSelection'](_0x5ea11a['getLastPosition']());}['_insertImage'](_0x277566,_0x4d0216){const _0x37f132=this['_editor'],{imageDimension:_0x54f695,imageFallbackUrl:_0x42f9d8,imageSources:_0xfcd4f4}=_0x277566['attributes'];_0x37f132['execute']('insertImage',{'imageType':_0x4d0216?'imageInline':null,'source':{'uploadcareImageId':_0x277566['id'],'src':_0x42f9d8,'sources':_0xfcd4f4,..._0x54f695}});}}class w extends _0x5f10c7{['_editing'];['_controller']=null;static get['requires'](){return[_0x122def,o];}constructor(_0x5aeac8){super(_0x5aeac8),this['_editing']=_0x5aeac8['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x29ae70){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x29ae70);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x26f469,..._0x285b60}){return _0x3a1f7f(_0x26f469,_0x285b60);}static['getInfo'](_0x34cf3b,_0x4dd21f){return _0x293ca8(_0x34cf3b,_0x4dd21f);}}class f extends _0x2e1346{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x228ca1,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1173a7=this['editor'];if(!!!_0x1173a7['config']['get']('uploadcare'))return;_0x1173a7['plugins']['get'](_0x228ca1)['createUploadAdapter']=_0x4ab30d=>new k(_0x4ab30d,_0x1173a7),_0x1173a7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x123675,{imageElement:_0x53db0e,data:_0x1ae92e})=>{_0x1173a7['model']['change'](_0x4a9fbf=>{_0x4a9fbf['setAttribute']('uploadcareImageId',_0x1ae92e['uploadcareImageId'],_0x53db0e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2028f0,_0xa53eee){this['loader']=_0x2028f0,this['editor']=_0xa53eee,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x11bd5b=await this['loader']['file'];return j['upload']({'file':_0x11bd5b,'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':_0x1b1173=>{_0x1b1173&&_0x1b1173['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1b1173['value']);}})['then'](async _0x1f2aa4=>{const {imageFallbackUrl:_0x920954,imageSources:_0x5bfdb1}=C(_0x1f2aa4['cdnUrl'],_0x1f2aa4['imageInfo']['width']);return{'uploadcareImageId':_0x1f2aa4['uuid'],'default':_0x920954,'sources':_0x5bfdb1};})['catch'](()=>{const _0x2eeff5=t('Cannot\x20upload\x20file:')+('\x20'+_0x11bd5b['name']+'.');return Promise['reject'](_0x2eeff5);});}['abort'](){this['controller']['abort']();}}class o extends _0x2e1346{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x122def];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x333e0f){super(_0x333e0f),this['ucContextId']=_0x317a33();}['init'](){const _0x479fed=this['editor'];_0x479fed['commands']['add']('uploadcare',new w(_0x479fed));}['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 _0x49e693=_0x5a0d9e['document']['querySelector']('input[uploadcare-file-input]');_0x49e693&&_0x49e693['remove']();}),async function(_0x4425f6){const _0x45f2ea=_0x42ce04([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]),_0x32e96f=0x535f8c3a,_0x4ee61f=0x5358f52a^_0x32e96f,_0x561b22=window[_0x42ce04([0x44,0x61,0x74,0x65])][_0x42ce04([0x6e,0x6f,0x77])](),_0x39f979=_0x4425f6[_0x42ce04([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c1917=new window[(_0x42ce04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x73bf95=>{_0x39f979[_0x42ce04([0x6f,0x6e,0x63,0x65])](_0x42ce04([0x72,0x65,0x61,0x64,0x79]),_0x73bf95);}),_0x4d3dab={[_0x42ce04([0x6b,0x74,0x79])]:_0x42ce04([0x45,0x43]),[_0x42ce04([0x75,0x73,0x65])]:_0x42ce04([0x73,0x69,0x67]),[_0x42ce04([0x63,0x72,0x76])]:_0x42ce04([0x50,0x2d,0x32,0x35,0x36]),[_0x42ce04([0x78])]:_0x42ce04([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]),[_0x42ce04([0x79])]:_0x42ce04([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]),[_0x42ce04([0x61,0x6c,0x67])]:_0x42ce04([0x45,0x53,0x32,0x35,0x36])},_0x4d0208=_0x39f979[_0x42ce04([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42ce04([0x67,0x65,0x74])](_0x42ce04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe81c38(){let _0x3e0eda,_0x1e667b=null,_0x1f651d=null;try{if(_0x4d0208==_0x42ce04([0x47,0x50,0x4c]))return _0x42ce04([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e0eda=_0x5ab78f(),!_0x3e0eda)return _0x42ce04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e0eda[_0x42ce04([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f651d=_0x1b53ac(_0x3e0eda[_0x42ce04([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e0eda[_0x42ce04([0x6a,0x74,0x69])])),await _0x5472aa()?_0x40fcf8()?_0x1cc65c()?_0x42ce04([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d258b()?(_0x3e0eda[_0x42ce04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42ce04([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e667b=_0x52f0d7(_0x42ce04([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e0eda[_0x42ce04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42ce04([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e667b=_0x52f0d7(_0x42ce04([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x399005()):_0x42ce04([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42ce04([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42ce04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42ce04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1cc65c(){const _0x272e6f=[_0x42ce04([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42ce04([0x74,0x72,0x69,0x61,0x6c])][_0x42ce04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0eda[_0x42ce04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x561b22/0x3e8:0xe10*_0x4ee61f;return _0x3e0eda[_0x42ce04([0x65,0x78,0x70])]<_0x272e6f;}function _0x40fcf8(){const _0x1429f1=_0x3e0eda[_0x42ce04([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1429f1&&(!!_0x1429f1[_0x42ce04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ce04([0x2a]))||!!_0x1429f1[_0x42ce04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ce04([0x55,0x50,0x4c,0x43])));}function _0x4d258b(){const _0x42eac0=_0x3e0eda[_0x42ce04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x42eac0||0x0==_0x42eac0[_0x42ce04([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42a639}=new URL(window[_0x42ce04([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x42eac0[_0x42ce04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a639))return!0x0;const _0x211e71=_0x42a639[_0x42ce04([0x73,0x70,0x6c,0x69,0x74])](_0x42ce04([0x2e]));return _0x42eac0[_0x42ce04([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd3cf29=>_0xd3cf29[_0x42ce04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ce04([0x2a])))[_0x42ce04([0x6d,0x61,0x70])](_0xa73a6f=>_0xa73a6f[_0x42ce04([0x73,0x70,0x6c,0x69,0x74])](_0x42ce04([0x2e])))[_0x42ce04([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x379d5a=>_0x379d5a[_0x42ce04([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x211e71[_0x42ce04([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42ce04([0x6d,0x61,0x70])](_0x2a3b4d=>Array(_0x211e71[_0x42ce04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a3b4d[_0x42ce04([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42ce04([0x66,0x69,0x6c,0x6c])](_0x2a3b4d[0x0]===_0x42ce04([0x2a])?_0x42ce04([0x2a]):'')[_0x42ce04([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a3b4d))[_0x42ce04([0x73,0x6f,0x6d,0x65])](_0x3d3afa=>_0x211e71[_0x42ce04([0x65,0x76,0x65,0x72,0x79])]((_0x185fc2,_0x446b86)=>_0x3d3afa[_0x446b86]===_0x185fc2||_0x3d3afa[_0x446b86]===_0x42ce04([0x2a])));}function _0x399005(){return _0x1e667b&&_0x1f651d?new window[(_0x42ce04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x320c88,_0x2e1481)=>{_0x1e667b[_0x42ce04([0x74,0x68,0x65,0x6e])](_0x320c88,_0x2e1481),_0x1f651d[_0x42ce04([0x74,0x68,0x65,0x6e])](_0x5caee1=>{_0x5caee1!=_0x42ce04([0x56,0x61,0x6c,0x69,0x64])&&_0x320c88(_0x5caee1);},_0x2e1481);}):_0x1e667b||_0x1f651d||_0x42ce04([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b53ac(_0x407922,_0x7c37c7){return new window[(_0x42ce04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x562672=>{if(_0x2c8971())return _0x562672(_0x42ce04([0x56,0x61,0x6c,0x69,0x64]));_0x160d8f(),_0x39f979[_0x42ce04([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42ce04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5743b9=!0x1;const _0xb31393=_0x317a33();function _0xd33dd(_0x3c3612){return!!_0x3c3612&&(typeof _0x3c3612===_0x42ce04([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c3612===_0x42ce04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c3612[_0x42ce04([0x74,0x68,0x65,0x6e])]===_0x42ce04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c3612[_0x42ce04([0x63,0x61,0x74,0x63,0x68])]===_0x42ce04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x21bcd8(_0x38763e){_0x598337(_0x38763e)[_0x42ce04([0x74,0x68,0x65,0x6e])](_0x32c65e=>{if(!_0x32c65e||_0x32c65e[_0x42ce04([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42ce04([0x6f,0x6b]))return _0x42ce04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x474b7e(_0x237657(_0xb31393+_0x7c37c7))!=_0x32c65e[_0x42ce04([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42ce04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42ce04([0x56,0x61,0x6c,0x69,0x64]);})[_0x42ce04([0x74,0x68,0x65,0x6e])](_0x5350a1=>(_0x126986(),_0x5350a1),()=>{const _0x1b7031=_0x53c1b6();return null==_0x1b7031?(_0x126986(),_0x42ce04([0x56,0x61,0x6c,0x69,0x64])):_0x42ce04(_0x561b22-_0x1b7031>(0x7753083a^_0x32e96f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42ce04([0x74,0x68,0x65,0x6e])](_0x562672)[_0x42ce04([0x63,0x61,0x74,0x63,0x68])](()=>{_0x562672(_0x42ce04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f7e1e=0x536962ba^_0x32e96f;function _0x126986(){const _0x1e0c16=_0x42ce04([0x6c,0x6c,0x63,0x74,0x2d])+_0x474b7e(_0x237657(_0x407922)),_0x170768=_0x1eebbd(_0x474b7e(window[_0x42ce04([0x4d,0x61,0x74,0x68])][_0x42ce04([0x63,0x65,0x69,0x6c])](_0x561b22/_0x4f7e1e)));window[_0x42ce04([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42ce04([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e0c16,_0x170768);}function _0x53c1b6(){const _0x15c44f=_0x42ce04([0x6c,0x6c,0x63,0x74,0x2d])+_0x474b7e(_0x237657(_0x407922)),_0x19d5b1=window[_0x42ce04([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42ce04([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15c44f);return _0x19d5b1?window[_0x42ce04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1eebbd(_0x19d5b1),0x10)*_0x4f7e1e:null;}function _0x598337(_0x3390da){return new window[(_0x42ce04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbef186,_0x2935fc)=>{_0x3390da[_0x42ce04([0x74,0x68,0x65,0x6e])](_0xbef186,_0x2935fc),window[_0x42ce04([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2935fc,0x535e58fa^_0x32e96f);});}}_0x39f979[_0x42ce04([0x6f,0x6e])](_0x42ce04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c782f,_0x5921f7)=>{if(_0x5921f7[0x0]!=_0x407922)return _0x562672(_0x42ce04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5921f7[0x1]={..._0x5921f7[0x1],[_0x42ce04([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb31393};},{[_0x42ce04([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42ce04([0x68,0x69,0x67,0x68])}),_0x39f979[_0x42ce04([0x6f,0x6e])](_0x42ce04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5aa9b6=>{_0xd33dd(_0x5aa9b6[_0x42ce04([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5743b9=!0x0,_0x21bcd8(_0x5aa9b6[_0x42ce04([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42ce04([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42ce04([0x6c,0x6f,0x77])}),_0x4c1917[_0x42ce04([0x74,0x68,0x65,0x6e])](()=>{_0x5743b9||_0x562672(_0x42ce04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c8971(){return _0x39f979[_0x42ce04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42ce04([0x76,0x69,0x65,0x77])][_0x42ce04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42ce04([0x61,0x75,0x74,0x6f]);}function _0x160d8f(){_0x39f979[_0x42ce04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42ce04([0x76,0x69,0x65,0x77])][_0x42ce04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42ce04([0x61,0x75,0x74,0x6f]);}}function _0x52f0d7(_0x279e9d){const _0x290aae=[new window[(_0x42ce04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34f46a=>setTimeout(_0x34f46a,0x5356b2f6^_0x32e96f)),_0x4c1917[_0x42ce04([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42ce04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fd079=>{let _0x35ce27=0x0;_0x39f979[_0x42ce04([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ce04([0x6f,0x6e])](_0x42ce04([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x33f37c,_0x344fe5)=>{_0x344fe5[0x0][_0x42ce04([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x35ce27++,_0x35ce27==(0x535f8dc2^_0x32e96f)&&(_0x3fd079(),_0x33f37c[_0x42ce04([0x6f,0x66,0x66])]());});}))];return window[_0x42ce04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42ce04([0x72,0x61,0x63,0x65])](_0x290aae)[_0x42ce04([0x74,0x68,0x65,0x6e])](()=>_0x279e9d);}async function _0x2f959f(){await _0x4c1917,_0x39f979[_0x42ce04([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ce04([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50a4bc,_0x39f979[_0x42ce04([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ce04([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50a4bc,_0x39f979[_0x42ce04([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42ce04([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x243663(_0x491359){const _0x141a08=_0x25e692();_0x39f979[_0x141a08]=_0x42ce04([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x491359,_0x491359!=_0x42ce04([0x56,0x61,0x6c,0x69,0x64])&&_0x2f959f();}function _0x25e692(){const _0x15d007=window[_0x42ce04([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42ce04([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42ce04([0x6e,0x6f,0x77])]())[_0x42ce04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42ce04([0x2e]),'');let _0x3e7dd8=_0x42ce04([0x68]);for(let _0x30cb34=0x0;_0x30cb34<_0x15d007[_0x42ce04([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30cb34+=0x2){let _0xf598f2=window[_0x42ce04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15d007[_0x42ce04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30cb34,_0x30cb34+0x2));_0xf598f2>=_0x45f2ea[_0x42ce04([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf598f2-=_0x45f2ea[_0x42ce04([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e7dd8+=_0x45f2ea[_0xf598f2];}return _0x3e7dd8;}function _0x5ab78f(){const _0x5066ae=_0x4d0208[_0x42ce04([0x73,0x70,0x6c,0x69,0x74])](_0x42ce04([0x2e]));if(0x3!=_0x5066ae[_0x42ce04([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x478376(_0x5066ae[0x1]);function _0x478376(_0x5391ed){const _0x589cb7=_0x3673a7(_0x5391ed);return _0x589cb7&&_0x1e0f25()?_0x589cb7:null;function _0x1e0f25(){const _0x294eb8=_0x589cb7[_0x42ce04([0x6a,0x74,0x69])],_0x5d058a=window[_0x42ce04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x294eb8[_0x42ce04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x294eb8[_0x42ce04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x278d6a={..._0x589cb7,[_0x42ce04([0x6a,0x74,0x69])]:_0x294eb8[_0x42ce04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x294eb8[_0x42ce04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x278d6a[_0x42ce04([0x76,0x63])],_0x237657(_0x278d6a)==_0x5d058a;}}}async function _0x5472aa(){let _0x5f081c=!0x0;try{const _0x5e5b9c=_0x4d0208[_0x42ce04([0x73,0x70,0x6c,0x69,0x74])](_0x42ce04([0x2e])),[_0x324dc0,_0x5087d5,_0x5f2a55]=_0x5e5b9c;return _0x1a3468(_0x324dc0),await _0xdc79b(_0x324dc0,_0x5087d5,_0x5f2a55),_0x5f081c;}catch{return!0x1;}function _0x1a3468(_0x40af1f){const _0x56bf1f=_0x3673a7(_0x40af1f);_0x56bf1f&&_0x56bf1f[_0x42ce04([0x61,0x6c,0x67])]==_0x42ce04([0x45,0x53,0x32,0x35,0x36])||(_0x5f081c=!0x1);}async function _0xdc79b(_0x1a0702,_0x3491ad,_0x4f50d3){const _0x4cb956=window[_0x42ce04([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42ce04([0x66,0x72,0x6f,0x6d])](_0x29643b(_0x4f50d3),_0x390e58=>_0x390e58[_0x42ce04([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x49a06a=new window[(_0x42ce04([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42ce04([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a0702+_0x42ce04([0x2e])+_0x3491ad),_0x34be48=window[_0x42ce04([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42ce04([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34be48)return;const _0x51dcb5=await _0x34be48[_0x42ce04([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42ce04([0x6a,0x77,0x6b]),_0x4d3dab,{[_0x42ce04([0x6e,0x61,0x6d,0x65])]:_0x42ce04([0x45,0x43,0x44,0x53,0x41]),[_0x42ce04([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42ce04([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42ce04([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34be48[_0x42ce04([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42ce04([0x6e,0x61,0x6d,0x65])]:_0x42ce04([0x45,0x43,0x44,0x53,0x41]),[_0x42ce04([0x68,0x61,0x73,0x68])]:{[_0x42ce04([0x6e,0x61,0x6d,0x65])]:_0x42ce04([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51dcb5,_0x4cb956,_0x49a06a)||(_0x5f081c=!0x1);}}function _0x3673a7(_0x3ad93f){return _0x3ad93f[_0x42ce04([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42ce04([0x65,0x79]))?JSON[_0x42ce04([0x70,0x61,0x72,0x73,0x65])](_0x29643b(_0x3ad93f)):null;}function _0x29643b(_0xf0dd73){return window[_0x42ce04([0x61,0x74,0x6f,0x62])](_0xf0dd73[_0x42ce04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42ce04([0x2b]))[_0x42ce04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42ce04([0x2f])));}function _0x237657(_0x4320e1){let _0x1551be=0x1505;function _0xd62413(_0x4ef4a8){for(let _0x33d123=0x0;_0x33d123<_0x4ef4a8[_0x42ce04([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33d123++){const _0x405d25=_0x4ef4a8[_0x42ce04([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33d123);_0x1551be=(_0x1551be<<0x5)+_0x1551be+_0x405d25,_0x1551be&=_0x1551be;}}function _0x94c8b4(_0x5b2d53){Array[_0x42ce04([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b2d53)?_0x5b2d53[_0x42ce04([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x94c8b4):_0x5b2d53&&typeof _0x5b2d53==_0x42ce04([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42ce04([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b2d53)[_0x42ce04([0x73,0x6f,0x72,0x74])]()[_0x42ce04([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30f49e,_0x1a4163])=>{_0xd62413(_0x30f49e),_0x94c8b4(_0x1a4163);}):_0xd62413(window[_0x42ce04([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b2d53));}return _0x94c8b4(_0x4320e1),_0x1551be>>>0x0;}function _0x474b7e(_0x195575){return _0x195575[_0x42ce04([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42ce04([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42ce04([0x30]));}function _0x1eebbd(_0x25b10a){return _0x25b10a[_0x42ce04([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42ce04([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42ce04([0x6a,0x6f,0x69,0x6e])]('');}function _0x50a4bc(){}function _0x42ce04(_0x43f818){return _0x43f818['map'](_0x555a7b=>String['fromCharCode'](_0x555a7b))['join']('');}_0x243663(await _0xe81c38());}(this);}['_initSchema'](){const _0x490f23=this['editor']['model']['schema'];_0x490f23['isRegistered']('imageBlock')&&_0x490f23['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x490f23['isRegistered']('imageInline')&&_0x490f23['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x50ee40=this['editor'];_0x50ee40['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x50ee40['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1c4bc5=>_0x1c4bc5['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x20131f=_0x50ee40['commands']['get']('replaceImageSource');_0x20131f&&this['listenTo'](_0x20131f,'cleanupImage',(_0x483771,[_0xfd46ad,_0x151167])=>{_0xfd46ad['removeAttribute']('uploadcareImageId',_0x151167);});}['_initConfig'](){const _0x2ae85f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x42da1e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5c324f(_0x5a0d9e['document'],'uc-config',{..._0x2ae85f,'pubkey':_0x42da1e,'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']=_0x280fe=>{if('closeMax'==_0x280fe)return'#uc-icon-arrow-down';},_0x5a0d9e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5c324f(_0x5a0d9e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5a0d9e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x273288=this['editor']['commands']['get']('insertImage');_0x273288&&this['listenTo'](_0x273288,'execute',()=>{const _0x3a3383=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3a3383&&_0x3a3383['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3a3383);});});const _0x337c4a=this['editor']['commands']['get']('uploadcareImageReplace');_0x337c4a&&this['listenTo'](_0x337c4a,'execute',()=>{const _0x26eb3a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x26eb3a&&_0x26eb3a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x26eb3a);});});}}class tt extends _0x2e1346{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15367c){super(_0x15367c),_0x15367c['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1c7d44['defineComponents'](_0x1c7d44),this['_defineLocale']();}['_defineLocale'](){const _0x12b5ca=this['editor']['config']['get']('uploadcare.locale'),_0x44f47f=this['editor']['locale']['contentLanguage'];_0x12b5ca&&_0x1c7d44['defineLocale'](_0x44f47f,_0x12b5ca);}}class ii extends _0x118c5e{constructor(_0x218a01){super(_0x218a01);const t=_0x218a01['t'],_0x3086c0=this['bindTemplate'],_0x449504=new _0x30e125();_0x449504['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':[_0x449504,{'text':_0x3086c0['to']('imageUploadProgress',_0x1f8faa=>t('Loading\x20image...')+'\x20('+(_0x1f8faa||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 _0x118c5e{constructor(_0x16dcc6){super(_0x16dcc6);const t=_0x16dcc6['t'];this['set']('errorType',null);const _0x171f2b=new _0x28025c(_0x16dcc6);_0x171f2b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x171f2b['withText']=!0x0,_0x171f2b['class']='ck-button-action',_0x171f2b['on']('execute',()=>{this['fire']('retry');}),_0x171f2b['bind']('isVisible')['to'](this,'errorType',_0x875924=>'NotFound'!==_0x875924);const _0x15d4e6=new _0x468bdb();_0x15d4e6['content']=_0x103a2d,_0x15d4e6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xee7676=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':[_0x15d4e6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xee7676['to']('errorType',_0x2468de=>t('NotFound'!==_0x2468de?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x171f2b]},{'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 _0x118c5e{constructor(_0x4fea73,_0xaf6f92){super(_0x4fea73);const _0x76a29a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xaf6f92,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x76a29a['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x924f9b,_0x5dd671,_0x1b3442){super(_0x924f9b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x924f9b),this['_errorView']=new ti(_0x924f9b),this['_editingView']=new ei(_0x924f9b,_0x1b3442),this['_focusableView']=new _0x118c5e(_0x924f9b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5dd671),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'],_0x292c04=>{this['_addUploadcareImageEditorListeners'](_0x292c04);});}),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'](_0x36aa2c,_0x10a062){const _0x3735f0='uc-cloud-image-editor',_0x2bc63a=_0x36aa2c['querySelector'](_0x3735f0);if(_0x2bc63a)return _0x10a062(_0x2bc63a);const _0xf914e2=new MutationObserver(_0x31245c=>{const _0x2876f9=_0x31245c['filter'](_0x478601=>_0x478601['target']===_0x36aa2c&&_0x478601['addedNodes']['length']>0x0&&_0x478601['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3735f0);_0x2876f9['length']&&(_0xf914e2['disconnect'](),_0x10a062(_0x2876f9[0x0]['addedNodes'][0x0]));});_0xf914e2['observe'](_0x36aa2c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x802af6){_0x802af6['addEventListener']('apply',_0x4ce5be=>{this['fire']('apply',{'imageSrc':_0x4ce5be['detail']['cdnUrl']});}),_0x802af6['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xaa43ce(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x12bbd1,_0x2aa581,_0x5375e6){super(),this['_editor']=_0x12bbd1,this['_dialog']=_0x2aa581,this['_imageElement']=_0x5375e6,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 _0x5b222f=this['_imageElement'],_0x783fcc=_0x5b222f['getAttribute']('uploadcareImageId'),_0x1b7131=_0x5b222f['getAttribute']('src');if(_0x783fcc)await this['_loadImageInfo'](_0x783fcc,_0x1b7131);else{if(this['_imageCache']['has'](_0x1b7131)){const _0x34dcda=this['_imageCache']['get'](_0x1b7131);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34dcda['url'],this['imageDimension']=_0x34dcda['dimension'],this['imageId']=_0x34dcda['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x51c72a}=this['_editor'],t=_0x51c72a['t'],_0x52223f=new X(_0x51c72a,this['imageStatus'],this['_attributes']);_0x52223f['bind']('status')['to'](this,'imageStatus'),_0x52223f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x52223f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x52223f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x52223f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3d7be4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x52223f,'position':_0x508150['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x52223f['focus']();},'onHide':()=>{_0x52223f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x559d52=>!A(_0x559d52,_0x52223f['element'])}});}['_loadImageInfo'](_0x2c2c0d,_0x5ae2e1){return j['getInfo'](_0x2c2c0d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3eefef=>{const {width:_0x907af0,height:_0x53539d}=_0x3eefef['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ae2e1,this['imageDimension']={'width':_0x907af0,'height':_0x53539d},this['imageId']=_0x2c2c0d;})['catch'](_0x169b4b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x169b4b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3c1bb6,_0x77d4f2){return this['_getImageAsFile'](_0x3c1bb6)['then'](_0x3e33eb=>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':_0x77d4f2['signal'],'file':_0x3e33eb,'onProgress':_0x9b88b4=>{_0x9b88b4&&_0x9b88b4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x9b88b4['value']));}}))['then'](_0x31b288=>{const {width:_0x47b3eb,height:_0x1b63c2}=_0x31b288['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31b288['cdnUrl'],this['imageDimension']={'width':_0x47b3eb,'height':_0x1b63c2},this['imageId']=_0x31b288['uuid'],this['imageUploadProgress']=null;const _0x4c93e3=_0x3c1bb6['getAttribute']('src');this['_imageCache']['set'](_0x4c93e3,{'id':_0x31b288['uuid'],'url':_0x31b288['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x151fe6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x151fe6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x186333,_0x1570bb){_0x186333['on']('apply',(_0x2394c8,_0x5893ca)=>{this['_replaceImage'](_0x1570bb,_0x5893ca['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x186333['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x186333['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4e74de,_0x35bf56,_0x1b5635){const _0x1bcad1=this['_editor'],{width:_0x432058,height:_0x50ed03}=S(_0x35bf56,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4f5fea,imageSources:_0x53f5f4}=C(_0x35bf56,_0x432058);_0x1bcad1['model']['change'](_0x48bc25=>{if('$graveyard'===_0x4e74de['root']['rootName']){_0x1bcad1['execute']('insertImage',{'imageType':_0x4e74de['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4e74de['getAttributes']()),'uploadcareImageId':_0x1b5635,'src':_0x4f5fea,'sources':_0x53f5f4,'width':_0x432058,'height':_0x50ed03}});const _0x170688=_0x4e74de['getChildren']();_0x4e74de=_0x1bcad1['model']['document']['selection']['getSelectedElement']();for(const _0x318c34 of _0x170688)_0x48bc25['append'](_0x48bc25['cloneElement'](_0x318c34),_0x4e74de);}else _0x48bc25['setSelection'](_0x4e74de,'on'),_0x1bcad1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4e74de['getAttributes']()),'uploadcareImageId':_0x1b5635,'src':_0x4f5fea,'sources':_0x53f5f4,'width':_0x432058,'height':_0x50ed03},_0x4e74de);_0x48bc25['setSelection'](_0x4e74de,'on');});}async['_getImageAsFile'](_0x37a1c8){const _0x460f62=_0x5a0d9e['window'],_0x48f9cc=_0x5a0d9e['document']['location']['href'],_0x11e179=new _0x460f62['URL'](_0x37a1c8['getAttribute']('src'),_0x48f9cc);if('data:'===_0x11e179['protocol']){const _0x20d401=_0x11e179['href']['split'](','),_0x246245=_0x20d401[0x0]['match'](/:(.*?);/)[0x1],_0x33ae19=_0x246245['split']('/')[0x1],_0x1f7e5a=_0x460f62['atob'](_0x20d401[_0x20d401['length']-0x1]);let _0x20c541=_0x1f7e5a['length'];const _0x2af246=new _0x460f62['Uint8Array'](_0x20c541);for(;_0x20c541--;)_0x2af246[_0x20c541]=_0x1f7e5a['charCodeAt'](_0x20c541);return new _0x460f62['File']([_0x2af246],'image.'+_0x33ae19,{'type':_0x246245});}const _0x3bbccc=_0x11e179['href']['split']('/'),_0x56a8ce=_0x3bbccc[_0x3bbccc['length']-0x1],_0xd3941d=_0x56a8ce['split']('.')[0x1];return _0x460f62['fetch'](_0x11e179['href'])['then'](_0x3190ee=>_0x3190ee['clone']()['blob']())['then'](_0x5f13a4=>new _0x460f62['File']([_0x5f13a4],_0x56a8ce,{'type':'image/'+_0xd3941d}));}}class Q extends _0x5f10c7{['imageEditController'];static get['requires'](){return[_0x122def];}['_isEditable'];constructor(_0x318a62){super(_0x318a62),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4a726b){const _0x3fc3f1=z(_0x4a726b);return _0x5eed49=>!(!_0x5eed49||!_0x5eed49['is']('element','imageBlock')&&!_0x5eed49['is']('element','imageInline'))&&(!!_0x5eed49['hasAttribute']('uploadcareImageId')||!!_0x5eed49['hasAttribute']('src')&&_0x3fc3f1(_0x5eed49['getAttribute']('src')));}(_0x318a62['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xb3a81d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xb3a81d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x768d41=this['editor']['model']['document']['selection']['getSelectedElement']();_0x768d41&&(_0x768d41['is']('element','imageBlock')||_0x768d41['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x122def),_0x768d41),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x5f10c7{['refresh'](){const _0x51c6ca=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x51c6ca&&(_0x51c6ca['is']('element','imageBlock')||_0x51c6ca['is']('element','imageInline')));}['execute'](_0x365f66){const _0x4ea58a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3a556a=>{_0x3a556a['setAttributes'](_0x365f66,_0x4ea58a),_0x3a556a['removeAttribute']('srcset',_0x4ea58a),_0x3a556a['removeAttribute']('sizes',_0x4ea58a);});}}class m extends _0x2e1346{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2d276e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1d6e99}=this;_0x1d6e99['commands']['add']('uploadcareImageEdit',new Q(_0x1d6e99)),_0x1d6e99['commands']['add']('uploadcareImageReplace',new V(_0x1d6e99));}}class g extends _0x2e1346{['_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 _0x589b1e=this['editor'];_0x589b1e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4f762e=>{const _0x55ce0a=_0x589b1e['commands']['get']('uploadcareImageEdit'),_0x184343=new _0x28025c(_0x4f762e),t=_0x4f762e['t'];return _0x184343['set']({'icon':_0x3d7be4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x184343['bind']('isEnabled')['to'](_0x55ce0a),_0x184343['bind']('isOn')['to'](_0x55ce0a,'isActive'),this['listenTo'](_0x184343,'execute',()=>{_0x589b1e['execute']('uploadcareImageEdit'),_0x589b1e['editing']['view']['focus']();}),_0x184343;}),this['_initConfig']();}['_initConfig'](){const _0x3f4674=_0x5c324f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3f4674),this['listenTo'](this['editor'],'destroy',()=>{_0x3f4674['remove']();});}}class et extends _0x2e1346{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,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x479979,Command as _0x3db3a6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2b3b97,IconGooglePhotos as _0x2eae24,IconGoogleDrive as _0x4429f1,IconFacebook as _0xc1845,IconDropbox as _0x31dc8b,IconUploadcareLink as _0x44bf4a,IconUploadcareImageUpload as _0x1d0115,IconError as _0x4ba6dc,IconUploadcareImageEdit as _0x24c263}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xbd337a,MenuBarMenuListItemButtonView as _0xd58cd3,View as _0x2ea199,FocusCycler as _0x301254,Dialog as _0x38e71a,DialogViewPosition as _0x4063cc,SpinnerView as _0x3a7ae2,IconView as _0x9e226,Notification as _0x142a89}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2a943c,DomEmitterMixin as _0xc4afaa,global as _0x493cad,getAncestors as _0x4b5ab1,ObservableMixin as _0x41c045,uid as _0x532179,createElement as _0xd25ff2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5c8dde}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4a33dc,info as _0x329464}from'@uploadcare/upload-client';import*as _0x2dc8be from'@uploadcare/file-uploader';var i=function(_0x2cc8cd){return _0x2cc8cd['Local']='local',_0x2cc8cd['URL']='url',_0x2cc8cd['Dropbox']='dropbox',_0x2cc8cd['GDrive']='gdrive',_0x2cc8cd['Facebook']='facebook',_0x2cc8cd['GPhotos']='gphotos',_0x2cc8cd['OneDrive']='onedrive',_0x2cc8cd;}({});function _(_0x1f6acb,_0x2b637b,_0x2e171d){const t=_0x1f6acb['t'],_0x11f4e0=_0x1f6acb['t'];switch(_0x2b637b){case i['Local']:return{'text':_0x11f4e0('Insert'===_0x2e171d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x11f4e0('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2e171d?_0x11f4e0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x11f4e0('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2e171d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2e171d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2e171d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2e171d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2e171d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2b637b;}}class e extends _0x479979{['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 _0x3b2c6d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57e11a;for(const _0x2d5a07 in _0x3b2c6d){const _0x54f928=_0x2d5a07,_0x307fd1=_0x3b2c6d[_0x54f928];if('uploadcareLicenseKeyValid'==_0x307fd1||'uploadcareLicenseKeyInvalid'==_0x307fd1||'uploadcareLicenseKeyExpired'==_0x307fd1||'uploadcareLicenseKeyDomainLimit'==_0x307fd1||'uploadcareLicenseKeyNotAllowed'==_0x307fd1||'uploadcareLicenseKeyEvaluationLimit'==_0x307fd1||'uploadcareLicenseKeyTrialLimit'==_0x307fd1||'uploadcareLicenseKeyUsageLimit'==_0x307fd1){delete _0x3b2c6d[_0x54f928],_0x57e11a=_0x307fd1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x57e11a&&_0x3b2c6d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x57e11a&&_0x3b2c6d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x57e11a&&_0x3b2c6d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x57e11a&&_0x3b2c6d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x57e11a&&_0x3b2c6d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x57e11a&&_0x3b2c6d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x57e11a&&_0x3b2c6d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xf8228a}=this,_0x3ba57a=_0xf8228a['commands']['get']('uploadcare');if(!_0x3ba57a)return;const _0x5dc5b9=this['_normalizeConfigSourceList'](_0xf8228a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x298505,_0x2c81d2)=>{const _0x3d98a5=this['_getIntegrationKey'](_0x2c81d2['type']);return _0x298505[_0x3d98a5]||(_0x298505[_0x3d98a5]=[]),_0x298505[_0x3d98a5]['push'](_0x2c81d2),_0x298505;},{});_0xf8228a['plugins']['has']('ImageInsertUI')&&_0xf8228a['commands']['get']('uploadcare')&&Object['entries'](_0x5dc5b9)['forEach'](([_0xf83831,_0x494d93])=>{_0xf8228a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xf83831,'observable':()=>_0x3ba57a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x494d93),'formViewCreator':()=>this['_createDropdownButtons'](_0x494d93),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x494d93),'override':'assetManager'!==_0xf83831});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x422cf2){const {locale:_0x53610e}=this['editor'];return _0x422cf2['map'](_0x230ecd=>{const _0x2ee01d=_(_0x53610e,_0x230ecd,'Insert');switch(_0x230ecd){case i['Local']:return{'icon':_0x1d0115,'type':i['Local'],..._0x2ee01d};case i['URL']:return{'icon':_0x44bf4a,'type':i['URL'],..._0x2ee01d};case i['Dropbox']:return{'icon':_0x31dc8b,'type':i['Dropbox'],..._0x2ee01d};case i['Facebook']:return{'icon':_0xc1845,'type':i['Facebook'],..._0x2ee01d};case i['GDrive']:return{'icon':_0x4429f1,'type':i['GDrive'],..._0x2ee01d};case i['GPhotos']:return{'icon':_0x2eae24,'type':i['GPhotos'],..._0x2ee01d};case i['OneDrive']:return{'icon':_0x2b3b97,'type':i['OneDrive'],..._0x2ee01d};}});}['_getIntegrationKey'](_0x47053f){switch(_0x47053f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x168ae0,_0x4b761a){const _0x1564be=this['editor'],_0x218eff=new _0x168ae0(_0x1564be['locale']),_0x4dbc25=_0x1564be['commands']['get']('uploadcare');return _0x218eff['bind']('isEnabled')['to'](_0x4dbc25),_0x218eff['on']('execute',()=>{_0x4dbc25['execute'](_0x4b761a);}),_0x218eff;}['_createToolbarButton'](_0x330fad){const {locale:_0x59f53c}=this['editor'],_0x4102fd=this['editor']['plugins']['get']('ImageInsertUI'),_0x46e36a=_0x330fad[0x0],_0x4dffef=this['_createButton'](_0xbd337a,_0x46e36a['type']);return _0x4dffef['icon']=_0x46e36a['icon'],_0x4dffef['bind']('label')['to'](_0x4102fd,'isImageSelected',_0x512320=>_(_0x59f53c,_0x46e36a['type'],_0x512320?'Replace':'Insert')['text']),_0x4dffef['tooltip']=!0x0,_0x4dffef;}['_createDropdownButtons'](_0x55c802){const {locale:_0x13023f}=this['editor'],_0x54483c=this['editor']['plugins']['get']('ImageInsertUI');return _0x55c802['map'](_0x74c3e1=>{const _0x54850f=this['_createButton'](_0xbd337a,_0x74c3e1['type']);return _0x54850f['withText']=!0x0,_0x54850f['icon']=_0x74c3e1['icon'],_0x54850f['bind']('label')['to'](_0x54483c,'isImageSelected',_0x42f15a=>_(_0x13023f,_0x74c3e1['type'],_0x42f15a?'Replace':'Insert')['text']),_0x54850f;});}['_createMenuBarButtons'](_0x21a9d0){return _0x21a9d0['map'](_0x38135d=>{const _0x2d401f=this['_createButton'](_0xd58cd3,_0x38135d['type']);return _0x2d401f['icon']=_0x38135d['icon'],_0x2d401f['label']=_0x38135d['shortText'],_0x2d401f;});}}class V extends _0x2ea199{['focusTracker'];['focusCycler'];constructor(_0x4d2713){super(_0x4d2713),this['focusTracker']=new _0x2a943c(),this['focusCycler']=new _0x301254({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x5ed65a,_0x55049d){super(_0x5ed65a),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-'+_0x55049d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2a0b8b,_0x3a892d){const _0x536903=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x462004=>_0x462004<=_0x3a892d)['map'](_0x16a93d=>_0x2a0b8b['replace'](/\/$/,'')+'/-/resize/'+_0x16a93d+'x/\x20'+_0x16a93d+'w');return{'imageFallbackUrl':_0x2a0b8b,'imageSources':[{'srcset':_0x536903['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3a892d+'px)\x20100vw,\x20'+_0x3a892d+'px','type':'image/webp'}]};}function F(_0x5c6405,_0x24dff5,_0x304d7e){const _0x2e46b7=_0x5c6405['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2e46b7?parseInt(_0x2e46b7[0x1],0xa):_0x24dff5,'height':_0x2e46b7?parseInt(_0x2e46b7[0x2],0xa):_0x304d7e};}function p(_0x4c94da,_0x37e8f1){const _0x54705a=new(_0xc4afaa())(),_0x411dd5=_0x4c94da['plugins']['get']('ImageUtils'),_0xbeba24=_0x4c94da['editing']['mapper']['toViewElement'](_0x37e8f1),_0x105c88=_0x411dd5['findViewImgElement'](_0xbeba24),_0x9e35d8=_0x4c94da['editing']['view']['domConverter']['viewToDom'](_0x105c88),_0x43a638=_0x37e8f1['getAttribute']('width'),_0x1e9aa1=_0x37e8f1['getAttribute']('height'),_0x3fbf6f='image-processing';_0x4c94da['editing']['view']['change'](_0x4b8deb=>{_0x4b8deb['addClass'](_0x3fbf6f,_0xbeba24),_0x4b8deb['setStyle']('aspect-ratio',_0x43a638+'/'+_0x1e9aa1,_0x105c88);}),_0x54705a['listenTo'](_0x9e35d8,'load',()=>{_0x54705a['stopListening'](_0x9e35d8,'load'),_0x4c94da['editing']['view']['change'](_0x51fcbd=>{_0x51fcbd['removeClass'](_0x3fbf6f,_0xbeba24),_0x51fcbd['removeStyle']('aspect-ratio',_0x105c88);});});}function R(_0x28608d){if(Array['isArray'](_0x28608d)){const _0x2e0efd=_0x28608d['map'](R);return _0x11b3ae=>_0x2e0efd['some'](_0x5e2d59=>_0x5e2d59(_0x11b3ae));}if('origin'==_0x28608d){const _0x45cdec=_0x493cad['window']['location']['origin'];return _0x44887d=>new URL(_0x44887d,_0x493cad['document']['baseURI'])['origin']==_0x45cdec;}return'function'==typeof _0x28608d?_0x28608d:_0x28608d instanceof RegExp?_0x2eefdf=>!(!_0x2eefdf['match'](_0x28608d)&&!_0x2eefdf['replace'](/^https?:\/\//,'')['match'](_0x28608d)):()=>!0x1;}function M(_0xa63909,_0x1ad845){return _0x4b5ab1(_0xa63909['target'])['includes'](_0x1ad845);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x41c045(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1eb303,_0x529969,_0x201a71){super(),this['_editor']=_0x1eb303,this['_editing']=_0x529969,this['_dialog']=_0x1eb303['plugins']['get'](_0x38e71a),this['_api']=_0x529969['ctxElement']['getAPI'](),this['_type']=_0x201a71,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:_0xfee1e8,model:_0x321527}=this['_editor'],_0x55db1b=_0x321527['document']['selection']['getSelectedElement'](),_0x3a30e0=_0x55db1b&&(_0x55db1b['is']('element','imageBlock')||_0x55db1b['is']('element','imageInline'));this['_formView']=new S(_0xfee1e8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1d0115,'title':_(_0xfee1e8,this['_type'],_0x3a30e0?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4063cc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1f12da=>!M(_0x1f12da,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3cc127}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x195455=>{const _0x1416fa=_0x3cc127['length'];for(const _0x538cd0 of _0x3cc127){const _0x107caa=_0x538cd0===_0x3cc127[_0x1416fa-0x1],{cdnUrl:_0x5a45de,fileInfo:_0x57467d}=_0x538cd0;if(!_0x5a45de||!_0x57467d)continue;const {width:_0x277684,height:_0x5a4150}=_0x57467d['imageInfo'],_0x397227=F(_0x5a45de,_0x277684,_0x5a4150),_0xce5c8=C(_0x5a45de,_0x397227['width']),_0x55aaf6={'id':_0x57467d['uuid'],'type':'image','attributes':{'imageDimension':_0x397227,..._0xce5c8}};this['_insertAsset'](_0x55aaf6,_0x107caa,_0x195455);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x440f89=>{'idle'===_0x440f89['detail']['status']&&!_0x440f89['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1b8b0f,_0x436d2d,_0x37377a){const _0x5b1861=this['_editor']['model']['document']['selection'],_0x8dc515=_0x5b1861['getSelectedElement'](),_0x29120b=!(!_0x8dc515||!_0x8dc515['is']('element','imageInline'));_0x37377a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1b8b0f,_0x29120b),_0x436d2d||_0x37377a['setSelection'](_0x5b1861['getLastPosition']());}['_insertImage'](_0x5c9a4f,_0x4fd510){const _0x36022b=this['_editor'],{imageDimension:_0x551b75,imageFallbackUrl:_0x1b72a8,imageSources:_0x1630b2}=_0x5c9a4f['attributes'];_0x36022b['execute']('insertImage',{'imageType':_0x4fd510?'imageInline':null,'source':{'uploadcareImageId':_0x5c9a4f['id'],'src':_0x1b72a8,'sources':_0x1630b2,..._0x551b75}});}}class w extends _0x3db3a6{['_editing'];['_controller']=null;static get['requires'](){return[_0x38e71a,o];}constructor(_0x485d7f){super(_0x485d7f),this['_editing']=_0x485d7f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x51f419){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x51f419);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4df71e,..._0xde7fd9}){return _0x4a33dc(_0x4df71e,_0xde7fd9);}static['getInfo'](_0xe7936b,_0x1e8b0c){return _0x329464(_0xe7936b,_0x1e8b0c);}}class f extends _0x479979{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5c8dde,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x16f592=this['editor'];if(!!!_0x16f592['config']['get']('uploadcare'))return;_0x16f592['plugins']['get'](_0x5c8dde)['createUploadAdapter']=_0x1ed525=>new k(_0x1ed525,_0x16f592),_0x16f592['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3b5b16,{imageElement:_0x3fe258,data:_0x4d6cb1})=>{_0x16f592['model']['change'](_0x3e21eb=>{_0x3e21eb['setAttribute']('uploadcareImageId',_0x4d6cb1['uploadcareImageId'],_0x3fe258);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x27e402,_0x40fe84){this['loader']=_0x27e402,this['editor']=_0x40fe84,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1be8ce=await this['loader']['file'];return j['upload']({'file':_0x1be8ce,'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':_0x59fee7=>{_0x59fee7&&_0x59fee7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x59fee7['value']);}})['then'](async _0x104a0d=>{const {imageFallbackUrl:_0x10c35e,imageSources:_0x413808}=C(_0x104a0d['cdnUrl'],_0x104a0d['imageInfo']['width']);return{'uploadcareImageId':_0x104a0d['uuid'],'default':_0x10c35e,'sources':_0x413808};})['catch'](()=>{const _0x50eb22=t('Cannot\x20upload\x20file:')+('\x20'+_0x1be8ce['name']+'.');return Promise['reject'](_0x50eb22);});}['abort'](){this['controller']['abort']();}}class o extends _0x479979{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x38e71a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5837d2){super(_0x5837d2),this['ucContextId']=_0x532179();}['init'](){const _0x569a10=this['editor'];_0x569a10['commands']['add']('uploadcare',new w(_0x569a10));}['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 _0x135b32=_0x493cad['document']['querySelector']('input[uploadcare-file-input]');_0x135b32&&_0x135b32['remove']();}),async function(_0x33504f){const _0x3ece5b=_0x1c3cda([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]),_0x4977ed=0x535f8c3a,_0x4e8ca2=0x5358f54a^_0x4977ed,_0x263049=window[_0x1c3cda([0x44,0x61,0x74,0x65])][_0x1c3cda([0x6e,0x6f,0x77])](),_0x3bdcc=_0x33504f[_0x1c3cda([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d1bd6=new window[(_0x1c3cda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x478e99=>{_0x3bdcc[_0x1c3cda([0x6f,0x6e,0x63,0x65])](_0x1c3cda([0x72,0x65,0x61,0x64,0x79]),_0x478e99);}),_0x1676b1={[_0x1c3cda([0x6b,0x74,0x79])]:_0x1c3cda([0x45,0x43]),[_0x1c3cda([0x75,0x73,0x65])]:_0x1c3cda([0x73,0x69,0x67]),[_0x1c3cda([0x63,0x72,0x76])]:_0x1c3cda([0x50,0x2d,0x32,0x35,0x36]),[_0x1c3cda([0x78])]:_0x1c3cda([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]),[_0x1c3cda([0x79])]:_0x1c3cda([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]),[_0x1c3cda([0x61,0x6c,0x67])]:_0x1c3cda([0x45,0x53,0x32,0x35,0x36])},_0x5960ea=_0x3bdcc[_0x1c3cda([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c3cda([0x67,0x65,0x74])](_0x1c3cda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58e804(){let _0x33e362,_0x401e9d=null,_0x488085=null;try{if(_0x5960ea==_0x1c3cda([0x47,0x50,0x4c]))return _0x1c3cda([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x33e362=_0x5dc651(),!_0x33e362)return _0x1c3cda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x33e362[_0x1c3cda([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x488085=_0x3eda81(_0x33e362[_0x1c3cda([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x33e362[_0x1c3cda([0x6a,0x74,0x69])])),await _0x20e5e2()?_0x2066fb()?_0x127087()?_0x1c3cda([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x279994()?(_0x33e362[_0x1c3cda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c3cda([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x401e9d=_0x373185(_0x1c3cda([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x33e362[_0x1c3cda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c3cda([0x74,0x72,0x69,0x61,0x6c])&&(_0x401e9d=_0x373185(_0x1c3cda([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30c58d()):_0x1c3cda([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c3cda([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c3cda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c3cda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x127087(){const _0x37291c=[_0x1c3cda([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c3cda([0x74,0x72,0x69,0x61,0x6c])][_0x1c3cda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33e362[_0x1c3cda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x263049/0x3e8:0xe10*_0x4e8ca2;return _0x33e362[_0x1c3cda([0x65,0x78,0x70])]<_0x37291c;}function _0x2066fb(){const _0x57a649=_0x33e362[_0x1c3cda([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x57a649&&(!!_0x57a649[_0x1c3cda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c3cda([0x2a]))||!!_0x57a649[_0x1c3cda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c3cda([0x55,0x50,0x4c,0x43])));}function _0x279994(){const _0x2ce7b8=_0x33e362[_0x1c3cda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ce7b8||0x0==_0x2ce7b8[_0x1c3cda([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x566b6e}=new URL(window[_0x1c3cda([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ce7b8[_0x1c3cda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x566b6e))return!0x0;const _0x191580=_0x566b6e[_0x1c3cda([0x73,0x70,0x6c,0x69,0x74])](_0x1c3cda([0x2e]));return _0x2ce7b8[_0x1c3cda([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4784a1=>_0x4784a1[_0x1c3cda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c3cda([0x2a])))[_0x1c3cda([0x6d,0x61,0x70])](_0x23fc45=>_0x23fc45[_0x1c3cda([0x73,0x70,0x6c,0x69,0x74])](_0x1c3cda([0x2e])))[_0x1c3cda([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x80b435=>_0x80b435[_0x1c3cda([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x191580[_0x1c3cda([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c3cda([0x6d,0x61,0x70])](_0x1fa094=>Array(_0x191580[_0x1c3cda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1fa094[_0x1c3cda([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c3cda([0x66,0x69,0x6c,0x6c])](_0x1fa094[0x0]===_0x1c3cda([0x2a])?_0x1c3cda([0x2a]):'')[_0x1c3cda([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1fa094))[_0x1c3cda([0x73,0x6f,0x6d,0x65])](_0x4bbca9=>_0x191580[_0x1c3cda([0x65,0x76,0x65,0x72,0x79])]((_0x240084,_0x176fbe)=>_0x4bbca9[_0x176fbe]===_0x240084||_0x4bbca9[_0x176fbe]===_0x1c3cda([0x2a])));}function _0x30c58d(){return _0x401e9d&&_0x488085?new window[(_0x1c3cda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2188d2,_0x5b7163)=>{_0x401e9d[_0x1c3cda([0x74,0x68,0x65,0x6e])](_0x2188d2,_0x5b7163),_0x488085[_0x1c3cda([0x74,0x68,0x65,0x6e])](_0x3638bd=>{_0x3638bd!=_0x1c3cda([0x56,0x61,0x6c,0x69,0x64])&&_0x2188d2(_0x3638bd);},_0x5b7163);}):_0x401e9d||_0x488085||_0x1c3cda([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3eda81(_0x3fa91b,_0x376cd8){return new window[(_0x1c3cda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1eb529=>{if(_0x3b4cb6())return _0x1eb529(_0x1c3cda([0x56,0x61,0x6c,0x69,0x64]));_0x11534a(),_0x3bdcc[_0x1c3cda([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c3cda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d3002=!0x1;const _0x37d57a=_0x532179();function _0x1450b8(_0x1879e9){return!!_0x1879e9&&(typeof _0x1879e9===_0x1c3cda([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1879e9===_0x1c3cda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1879e9[_0x1c3cda([0x74,0x68,0x65,0x6e])]===_0x1c3cda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1879e9[_0x1c3cda([0x63,0x61,0x74,0x63,0x68])]===_0x1c3cda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17811f(_0x1ac939){_0x4a3dcb(_0x1ac939)[_0x1c3cda([0x74,0x68,0x65,0x6e])](_0x1c4b37=>{if(!_0x1c4b37||_0x1c4b37[_0x1c3cda([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c3cda([0x6f,0x6b]))return _0x1c3cda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d1dbe(_0x504946(_0x37d57a+_0x376cd8))!=_0x1c4b37[_0x1c3cda([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c3cda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c3cda([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c3cda([0x74,0x68,0x65,0x6e])](_0x29ea16=>(_0x17c6a4(),_0x29ea16),()=>{const _0x283502=_0x33513e();return null==_0x283502?(_0x17c6a4(),_0x1c3cda([0x56,0x61,0x6c,0x69,0x64])):_0x1c3cda(_0x263049-_0x283502>(0x7753083a^_0x4977ed)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c3cda([0x74,0x68,0x65,0x6e])](_0x1eb529)[_0x1c3cda([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1eb529(_0x1c3cda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e7fac=0x536962ba^_0x4977ed;function _0x17c6a4(){const _0x4908e1=_0x1c3cda([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d1dbe(_0x504946(_0x3fa91b)),_0x530462=_0x42c7b8(_0x1d1dbe(window[_0x1c3cda([0x4d,0x61,0x74,0x68])][_0x1c3cda([0x63,0x65,0x69,0x6c])](_0x263049/_0x2e7fac)));window[_0x1c3cda([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c3cda([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4908e1,_0x530462);}function _0x33513e(){const _0x3a6a08=_0x1c3cda([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d1dbe(_0x504946(_0x3fa91b)),_0x2b94b4=window[_0x1c3cda([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c3cda([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a6a08);return _0x2b94b4?window[_0x1c3cda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42c7b8(_0x2b94b4),0x10)*_0x2e7fac:null;}function _0x4a3dcb(_0xbd554){return new window[(_0x1c3cda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x575f15,_0x1bd233)=>{_0xbd554[_0x1c3cda([0x74,0x68,0x65,0x6e])](_0x575f15,_0x1bd233),window[_0x1c3cda([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1bd233,0x535e58fa^_0x4977ed);});}}_0x3bdcc[_0x1c3cda([0x6f,0x6e])](_0x1c3cda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x576763,_0x52785a)=>{if(_0x52785a[0x0]!=_0x3fa91b)return _0x1eb529(_0x1c3cda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52785a[0x1]={..._0x52785a[0x1],[_0x1c3cda([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37d57a};},{[_0x1c3cda([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c3cda([0x68,0x69,0x67,0x68])}),_0x3bdcc[_0x1c3cda([0x6f,0x6e])](_0x1c3cda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1dafdc=>{_0x1450b8(_0x1dafdc[_0x1c3cda([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d3002=!0x0,_0x17811f(_0x1dafdc[_0x1c3cda([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c3cda([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c3cda([0x6c,0x6f,0x77])}),_0x5d1bd6[_0x1c3cda([0x74,0x68,0x65,0x6e])](()=>{_0x3d3002||_0x1eb529(_0x1c3cda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b4cb6(){return _0x3bdcc[_0x1c3cda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c3cda([0x76,0x69,0x65,0x77])][_0x1c3cda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c3cda([0x61,0x75,0x74,0x6f]);}function _0x11534a(){_0x3bdcc[_0x1c3cda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c3cda([0x76,0x69,0x65,0x77])][_0x1c3cda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c3cda([0x61,0x75,0x74,0x6f]);}}function _0x373185(_0x1ce105){const _0x5ccae4=[new window[(_0x1c3cda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43f061=>setTimeout(_0x43f061,0x5356b2f6^_0x4977ed)),_0x5d1bd6[_0x1c3cda([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c3cda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x227fc8=>{let _0x9e14bd=0x0;_0x3bdcc[_0x1c3cda([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c3cda([0x6f,0x6e])](_0x1c3cda([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22ea42,_0x11625f)=>{_0x11625f[0x0][_0x1c3cda([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9e14bd++,_0x9e14bd==(0x535f8dc2^_0x4977ed)&&(_0x227fc8(),_0x22ea42[_0x1c3cda([0x6f,0x66,0x66])]());});}))];return window[_0x1c3cda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c3cda([0x72,0x61,0x63,0x65])](_0x5ccae4)[_0x1c3cda([0x74,0x68,0x65,0x6e])](()=>_0x1ce105);}async function _0x548d2c(){await _0x5d1bd6,_0x3bdcc[_0x1c3cda([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c3cda([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa9d0e1,_0x3bdcc[_0x1c3cda([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c3cda([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa9d0e1,_0x3bdcc[_0x1c3cda([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c3cda([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ade3d(_0xcae621){const _0xe8883c=_0x18119f();_0x3bdcc[_0xe8883c]=_0x1c3cda([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xcae621,_0xcae621!=_0x1c3cda([0x56,0x61,0x6c,0x69,0x64])&&_0x548d2c();}function _0x18119f(){const _0x19fb2a=window[_0x1c3cda([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c3cda([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c3cda([0x6e,0x6f,0x77])]())[_0x1c3cda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c3cda([0x2e]),'');let _0x429906=_0x1c3cda([0x68]);for(let _0x260f47=0x0;_0x260f47<_0x19fb2a[_0x1c3cda([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x260f47+=0x2){let _0x5d6171=window[_0x1c3cda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19fb2a[_0x1c3cda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x260f47,_0x260f47+0x2));_0x5d6171>=_0x3ece5b[_0x1c3cda([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d6171-=_0x3ece5b[_0x1c3cda([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x429906+=_0x3ece5b[_0x5d6171];}return _0x429906;}function _0x5dc651(){const _0x360695=_0x5960ea[_0x1c3cda([0x73,0x70,0x6c,0x69,0x74])](_0x1c3cda([0x2e]));if(0x3!=_0x360695[_0x1c3cda([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31c138(_0x360695[0x1]);function _0x31c138(_0x13712c){const _0x52e32c=_0x1986a7(_0x13712c);return _0x52e32c&&_0x2527d0()?_0x52e32c:null;function _0x2527d0(){const _0x3197f1=_0x52e32c[_0x1c3cda([0x6a,0x74,0x69])],_0x246eed=window[_0x1c3cda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3197f1[_0x1c3cda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3197f1[_0x1c3cda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b06ac={..._0x52e32c,[_0x1c3cda([0x6a,0x74,0x69])]:_0x3197f1[_0x1c3cda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3197f1[_0x1c3cda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b06ac[_0x1c3cda([0x76,0x63])],_0x504946(_0x2b06ac)==_0x246eed;}}}async function _0x20e5e2(){let _0x2be1ef=!0x0;try{const _0x18c46e=_0x5960ea[_0x1c3cda([0x73,0x70,0x6c,0x69,0x74])](_0x1c3cda([0x2e])),[_0x28f082,_0x205ee0,_0x3c8f3d]=_0x18c46e;return _0x44c7c6(_0x28f082),await _0x433dfe(_0x28f082,_0x205ee0,_0x3c8f3d),_0x2be1ef;}catch{return!0x1;}function _0x44c7c6(_0x3592fa){const _0x5b7095=_0x1986a7(_0x3592fa);_0x5b7095&&_0x5b7095[_0x1c3cda([0x61,0x6c,0x67])]==_0x1c3cda([0x45,0x53,0x32,0x35,0x36])||(_0x2be1ef=!0x1);}async function _0x433dfe(_0x71e09,_0x3d2123,_0x417b03){const _0x4f138d=window[_0x1c3cda([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c3cda([0x66,0x72,0x6f,0x6d])](_0x4a1aa0(_0x417b03),_0x5c7b61=>_0x5c7b61[_0x1c3cda([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f0553=new window[(_0x1c3cda([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c3cda([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x71e09+_0x1c3cda([0x2e])+_0x3d2123),_0x2a9ea3=window[_0x1c3cda([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c3cda([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a9ea3)return;const _0x526730=await _0x2a9ea3[_0x1c3cda([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c3cda([0x6a,0x77,0x6b]),_0x1676b1,{[_0x1c3cda([0x6e,0x61,0x6d,0x65])]:_0x1c3cda([0x45,0x43,0x44,0x53,0x41]),[_0x1c3cda([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c3cda([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c3cda([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a9ea3[_0x1c3cda([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c3cda([0x6e,0x61,0x6d,0x65])]:_0x1c3cda([0x45,0x43,0x44,0x53,0x41]),[_0x1c3cda([0x68,0x61,0x73,0x68])]:{[_0x1c3cda([0x6e,0x61,0x6d,0x65])]:_0x1c3cda([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x526730,_0x4f138d,_0x2f0553)||(_0x2be1ef=!0x1);}}function _0x1986a7(_0x4e26e5){return _0x4e26e5[_0x1c3cda([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c3cda([0x65,0x79]))?JSON[_0x1c3cda([0x70,0x61,0x72,0x73,0x65])](_0x4a1aa0(_0x4e26e5)):null;}function _0x4a1aa0(_0x32a184){return window[_0x1c3cda([0x61,0x74,0x6f,0x62])](_0x32a184[_0x1c3cda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c3cda([0x2b]))[_0x1c3cda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c3cda([0x2f])));}function _0x504946(_0x58d77a){let _0x33b907=0x1505;function _0x226735(_0x3d2a15){for(let _0x37f80c=0x0;_0x37f80c<_0x3d2a15[_0x1c3cda([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37f80c++){const _0x47e0c1=_0x3d2a15[_0x1c3cda([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x37f80c);_0x33b907=(_0x33b907<<0x5)+_0x33b907+_0x47e0c1,_0x33b907&=_0x33b907;}}function _0x398d5b(_0x21b55a){Array[_0x1c3cda([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x21b55a)?_0x21b55a[_0x1c3cda([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x398d5b):_0x21b55a&&typeof _0x21b55a==_0x1c3cda([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c3cda([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x21b55a)[_0x1c3cda([0x73,0x6f,0x72,0x74])]()[_0x1c3cda([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d3305,_0x44f207])=>{_0x226735(_0x2d3305),_0x398d5b(_0x44f207);}):_0x226735(window[_0x1c3cda([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x21b55a));}return _0x398d5b(_0x58d77a),_0x33b907>>>0x0;}function _0x1d1dbe(_0x424c54){return _0x424c54[_0x1c3cda([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c3cda([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c3cda([0x30]));}function _0x42c7b8(_0x32ed83){return _0x32ed83[_0x1c3cda([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c3cda([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c3cda([0x6a,0x6f,0x69,0x6e])]('');}function _0xa9d0e1(){}function _0x1c3cda(_0x26ccdf){return _0x26ccdf['map'](_0x5b972e=>String['fromCharCode'](_0x5b972e))['join']('');}_0x4ade3d(await _0x58e804());}(this);}['_initSchema'](){const _0xad0d09=this['editor']['model']['schema'];_0xad0d09['isRegistered']('imageBlock')&&_0xad0d09['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xad0d09['isRegistered']('imageInline')&&_0xad0d09['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5511c0=this['editor'];_0x5511c0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5511c0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x77446=>_0x77446['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4b2874=_0x5511c0['commands']['get']('replaceImageSource');_0x4b2874&&this['listenTo'](_0x4b2874,'cleanupImage',(_0x435857,[_0x4e4bd3,_0x1cebec])=>{_0x4e4bd3['removeAttribute']('uploadcareImageId',_0x1cebec);});}['_initConfig'](){const _0x1c908c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3b32d6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xd25ff2(_0x493cad['document'],'uc-config',{..._0x1c908c,'pubkey':_0x3b32d6,'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']=_0x327403=>{if('closeMax'==_0x327403)return'#uc-icon-arrow-down';},_0x493cad['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xd25ff2(_0x493cad['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x493cad['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x6f5891=this['editor']['commands']['get']('insertImage');_0x6f5891&&this['listenTo'](_0x6f5891,'execute',()=>{const _0x8050cc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8050cc&&_0x8050cc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x8050cc);});});const _0x2a1e5d=this['editor']['commands']['get']('uploadcareImageReplace');_0x2a1e5d&&this['listenTo'](_0x2a1e5d,'execute',()=>{const _0x5be716=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5be716&&_0x5be716['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5be716);});});}}class tt extends _0x479979{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b869c){super(_0x1b869c),_0x1b869c['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2dc8be['defineComponents'](_0x2dc8be),this['_defineLocale']();}['_defineLocale'](){const _0x2866c7=this['editor']['config']['get']('uploadcare.locale'),_0x300140=this['editor']['locale']['contentLanguage'];_0x2866c7&&_0x2dc8be['defineLocale'](_0x300140,_0x2866c7);}}class ii extends _0x2ea199{constructor(_0x52b08a){super(_0x52b08a);const t=_0x52b08a['t'],_0x257ef6=this['bindTemplate'],_0x14a746=new _0x3a7ae2();_0x14a746['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':[_0x14a746,{'text':_0x257ef6['to']('imageUploadProgress',_0x5d73dc=>t('Loading\x20image...')+'\x20('+(_0x5d73dc||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 _0x2ea199{constructor(_0x5273a7){super(_0x5273a7);const t=_0x5273a7['t'];this['set']('errorType',null);const _0x27395b=new _0xbd337a(_0x5273a7);_0x27395b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x27395b['withText']=!0x0,_0x27395b['class']='ck-button-action',_0x27395b['on']('execute',()=>{this['fire']('retry');}),_0x27395b['bind']('isVisible')['to'](this,'errorType',_0x2fac7b=>'NotFound'!==_0x2fac7b);const _0x1fd8ec=new _0x9e226();_0x1fd8ec['content']=_0x4ba6dc,_0x1fd8ec['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x20be63=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':[_0x1fd8ec,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x20be63['to']('errorType',_0x19e6fe=>t('NotFound'!==_0x19e6fe?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x27395b]},{'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 _0x2ea199{constructor(_0x29704e,_0x431545){super(_0x29704e);const _0x4efd6b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x431545,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4efd6b['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x26ef9f,_0xfdc9a6,_0x1e8602){super(_0x26ef9f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x26ef9f),this['_errorView']=new ti(_0x26ef9f),this['_editingView']=new ei(_0x26ef9f,_0x1e8602),this['_focusableView']=new _0x2ea199(_0x26ef9f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xfdc9a6),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'],_0x50fad7=>{this['_addUploadcareImageEditorListeners'](_0x50fad7);});}),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'](_0x106f60,_0x50f9ea){const _0x29c436='uc-cloud-image-editor',_0x4b97fd=_0x106f60['querySelector'](_0x29c436);if(_0x4b97fd)return _0x50f9ea(_0x4b97fd);const _0xddcd53=new MutationObserver(_0x43f85f=>{const _0x1d9d4c=_0x43f85f['filter'](_0x512594=>_0x512594['target']===_0x106f60&&_0x512594['addedNodes']['length']>0x0&&_0x512594['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x29c436);_0x1d9d4c['length']&&(_0xddcd53['disconnect'](),_0x50f9ea(_0x1d9d4c[0x0]['addedNodes'][0x0]));});_0xddcd53['observe'](_0x106f60,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x412f8e){_0x412f8e['addEventListener']('apply',_0x47f104=>{this['fire']('apply',{'imageSrc':_0x47f104['detail']['cdnUrl']});}),_0x412f8e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x41c045(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x24fc3f,_0x28c7d8,_0xeda2fb){super(),this['_editor']=_0x24fc3f,this['_dialog']=_0x28c7d8,this['_imageElement']=_0xeda2fb,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 _0xd4bebf=this['_imageElement'],_0x301526=_0xd4bebf['getAttribute']('uploadcareImageId'),_0x43e0f7=_0xd4bebf['getAttribute']('src');if(_0x301526)await this['_loadImageInfo'](_0x301526,_0x43e0f7);else{if(this['_imageCache']['has'](_0x43e0f7)){const _0x22dc92=this['_imageCache']['get'](_0x43e0f7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x22dc92['url'],this['imageDimension']=_0x22dc92['dimension'],this['imageId']=_0x22dc92['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1cc3e1}=this['_editor'],t=_0x1cc3e1['t'],_0x16b468=new X(_0x1cc3e1,this['imageStatus'],this['_attributes']);_0x16b468['bind']('status')['to'](this,'imageStatus'),_0x16b468['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x16b468['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x16b468['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x16b468,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x24c263,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x16b468,'position':_0x4063cc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x16b468['focus']();},'onHide':()=>{_0x16b468['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xc37090=>!M(_0xc37090,_0x16b468['element'])}});}['_loadImageInfo'](_0x5b4d3b,_0x2987f6){return j['getInfo'](_0x5b4d3b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x149b1c=>{const {width:_0x388e58,height:_0x575d8b}=_0x149b1c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2987f6,this['imageDimension']={'width':_0x388e58,'height':_0x575d8b},this['imageId']=_0x5b4d3b;})['catch'](_0x14f8fd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x14f8fd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3d9169,_0x288b07){return this['_getImageAsFile'](_0x3d9169)['then'](_0x1cb992=>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':_0x288b07['signal'],'file':_0x1cb992,'onProgress':_0x2ceca2=>{_0x2ceca2&&_0x2ceca2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2ceca2['value']));}}))['then'](_0xa1cb46=>{const {width:_0x59b450,height:_0x5d2963}=_0xa1cb46['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa1cb46['cdnUrl'],this['imageDimension']={'width':_0x59b450,'height':_0x5d2963},this['imageId']=_0xa1cb46['uuid'],this['imageUploadProgress']=null;const _0x5b7a8d=_0x3d9169['getAttribute']('src');this['_imageCache']['set'](_0x5b7a8d,{'id':_0xa1cb46['uuid'],'url':_0xa1cb46['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x35ebb2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x35ebb2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1827f9,_0x1683e1){_0x1827f9['on']('apply',(_0x2c9ab1,_0x181783)=>{this['_replaceImage'](_0x1683e1,_0x181783['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1827f9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1827f9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x55687a,_0x478403,_0x3446b9){const _0x2f00d7=this['_editor'],{width:_0x38752e,height:_0x3ad098}=F(_0x478403,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x40e630,imageSources:_0x31de0b}=C(_0x478403,_0x38752e);_0x2f00d7['model']['change'](_0x3c35ef=>{if('$graveyard'===_0x55687a['root']['rootName']){_0x2f00d7['execute']('insertImage',{'imageType':_0x55687a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x55687a['getAttributes']()),'uploadcareImageId':_0x3446b9,'src':_0x40e630,'sources':_0x31de0b,'width':_0x38752e,'height':_0x3ad098}});const _0x325099=_0x55687a['getChildren']();_0x55687a=_0x2f00d7['model']['document']['selection']['getSelectedElement']();for(const _0x329cfb of _0x325099)_0x3c35ef['append'](_0x3c35ef['cloneElement'](_0x329cfb),_0x55687a);}else _0x3c35ef['setSelection'](_0x55687a,'on'),_0x2f00d7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x55687a['getAttributes']()),'uploadcareImageId':_0x3446b9,'src':_0x40e630,'sources':_0x31de0b,'width':_0x38752e,'height':_0x3ad098},_0x55687a);_0x3c35ef['setSelection'](_0x55687a,'on');});}async['_getImageAsFile'](_0x3ba12d){const _0x2b9e91=_0x493cad['window'],_0x85cf25=_0x493cad['document']['location']['href'],_0x1e967b=new _0x2b9e91['URL'](_0x3ba12d['getAttribute']('src'),_0x85cf25);if('data:'===_0x1e967b['protocol']){const _0x4ba244=_0x1e967b['href']['split'](','),_0x2cc48f=_0x4ba244[0x0]['match'](/:(.*?);/)[0x1],_0x12efde=_0x2cc48f['split']('/')[0x1],_0x2a6321=_0x2b9e91['atob'](_0x4ba244[_0x4ba244['length']-0x1]);let _0x43eef2=_0x2a6321['length'];const _0x57a824=new _0x2b9e91['Uint8Array'](_0x43eef2);for(;_0x43eef2--;)_0x57a824[_0x43eef2]=_0x2a6321['charCodeAt'](_0x43eef2);return new _0x2b9e91['File']([_0x57a824],'image.'+_0x12efde,{'type':_0x2cc48f});}const _0x34033e=_0x1e967b['href']['split']('/'),_0x3fe7de=_0x34033e[_0x34033e['length']-0x1],_0x5a434e=_0x3fe7de['split']('.')[0x1];return _0x2b9e91['fetch'](_0x1e967b['href'])['then'](_0x196803=>_0x196803['clone']()['blob']())['then'](_0x29bf51=>new _0x2b9e91['File']([_0x29bf51],_0x3fe7de,{'type':'image/'+_0x5a434e}));}}class N extends _0x3db3a6{['imageEditController'];static get['requires'](){return[_0x38e71a];}['_isEditable'];constructor(_0x7b9534){super(_0x7b9534),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5b9ea3){const _0x4cd4ab=R(_0x5b9ea3);return _0x573b5c=>!(!_0x573b5c||!_0x573b5c['is']('element','imageBlock')&&!_0x573b5c['is']('element','imageInline'))&&(!!_0x573b5c['hasAttribute']('uploadcareImageId')||!!_0x573b5c['hasAttribute']('src')&&_0x4cd4ab(_0x573b5c['getAttribute']('src')));}(_0x7b9534['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3b6383=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3b6383);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x35e4e5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x35e4e5&&(_0x35e4e5['is']('element','imageBlock')||_0x35e4e5['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x38e71a),_0x35e4e5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3db3a6{['refresh'](){const _0x41510c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x41510c&&(_0x41510c['is']('element','imageBlock')||_0x41510c['is']('element','imageInline')));}['execute'](_0x213540){const _0x326d58=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x213010=>{_0x213010['setAttributes'](_0x213540,_0x326d58),_0x213010['removeAttribute']('srcset',_0x326d58),_0x213010['removeAttribute']('sizes',_0x326d58);});}}class m extends _0x479979{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x142a89,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ba0cd}=this;_0x4ba0cd['commands']['add']('uploadcareImageEdit',new N(_0x4ba0cd)),_0x4ba0cd['commands']['add']('uploadcareImageReplace',new O(_0x4ba0cd));}}class g extends _0x479979{['_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 _0x3e936e=this['editor'];_0x3e936e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3080ef=>{const _0x401db8=_0x3e936e['commands']['get']('uploadcareImageEdit'),_0x14a008=new _0xbd337a(_0x3080ef),t=_0x3080ef['t'];return _0x14a008['set']({'icon':_0x24c263,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x14a008['bind']('isEnabled')['to'](_0x401db8),_0x14a008['bind']('isOn')['to'](_0x401db8,'isActive'),this['listenTo'](_0x14a008,'execute',()=>{_0x3e936e['execute']('uploadcareImageEdit'),_0x3e936e['editing']['view']['focus']();}),_0x14a008;}),this['_initConfig']();}['_initConfig'](){const _0x10dde8=_0xd25ff2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x10dde8),this['listenTo'](this['editor'],'destroy',()=>{_0x10dde8['remove']();});}}class et extends _0x479979{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':_0x55353a=>0x1!=_0x55353a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x37a226=>{const {af:{dictionary:_0x231a34,getPluralForm:_0x470b35}}={'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':_0x2a182c=>0x1!=_0x2a182c}};_0x37a226['af']||={'dictionary':{},'getPluralForm':null},_0x37a226['af']['dictionary']=Object['assign'](_0x37a226['af']['dictionary'],_0x231a34),_0x37a226['af']['getPluralForm']=_0x470b35;})(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':_0x31be67=>0x0==_0x31be67?0x0:0x1==_0x31be67?0x1:0x2==_0x31be67?0x2:_0x31be67%0x64>=0x3&&_0x31be67%0x64<=0xa?0x3:_0x31be67%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1ca58c=>{const {ar:{dictionary:_0x4ead80,getPluralForm:_0x169d98}}={'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':_0x5499db=>0x0==_0x5499db?0x0:0x1==_0x5499db?0x1:0x2==_0x5499db?0x2:_0x5499db%0x64>=0x3&&_0x5499db%0x64<=0xa?0x3:_0x5499db%0x64>=0xb?0x4:0x5}};_0x1ca58c['ar']||={'dictionary':{},'getPluralForm':null},_0x1ca58c['ar']['dictionary']=Object['assign'](_0x1ca58c['ar']['dictionary'],_0x4ead80),_0x1ca58c['ar']['getPluralForm']=_0x169d98;})(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':_0xa6362d=>0x1!=_0xa6362d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xf531fa=>{const {ast:{dictionary:_0x2b687e,getPluralForm:_0x5b6ab8}}={'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':_0xf654b1=>0x1!=_0xf654b1}};_0xf531fa['ast']||={'dictionary':{},'getPluralForm':null},_0xf531fa['ast']['dictionary']=Object['assign'](_0xf531fa['ast']['dictionary'],_0x2b687e),_0xf531fa['ast']['getPluralForm']=_0x5b6ab8;})(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':_0x100a5a=>0x1!=_0x100a5a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5229ef=>{const {az:{dictionary:_0x90b583,getPluralForm:_0x2736db}}={'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':_0x3623ed=>0x1!=_0x3623ed}};_0x5229ef['az']||={'dictionary':{},'getPluralForm':null},_0x5229ef['az']['dictionary']=Object['assign'](_0x5229ef['az']['dictionary'],_0x90b583),_0x5229ef['az']['getPluralForm']=_0x2736db;})(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':_0xf10fb7=>_0xf10fb7%0xa==0x1&&_0xf10fb7%0x64!=0xb?0x0:_0xf10fb7%0xa>=0x2&&_0xf10fb7%0xa<=0x4&&(_0xf10fb7%0x64<0xa||_0xf10fb7%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xbcc499=>{const {be:{dictionary:_0x1480f9,getPluralForm:_0x597377}}={'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':_0x1fbea7=>_0x1fbea7%0xa==0x1&&_0x1fbea7%0x64!=0xb?0x0:_0x1fbea7%0xa>=0x2&&_0x1fbea7%0xa<=0x4&&(_0x1fbea7%0x64<0xa||_0x1fbea7%0x64>=0x14)?0x1:0x2}};_0xbcc499['be']||={'dictionary':{},'getPluralForm':null},_0xbcc499['be']['dictionary']=Object['assign'](_0xbcc499['be']['dictionary'],_0x1480f9),_0xbcc499['be']['getPluralForm']=_0x597377;})(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':_0x4ac55b=>0x1!=_0x4ac55b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5a579b=>{const {bg:{dictionary:_0x2c81e7,getPluralForm:_0x5e12b0}}={'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':_0x3df981=>0x1!=_0x3df981}};_0x5a579b['bg']||={'dictionary':{},'getPluralForm':null},_0x5a579b['bg']['dictionary']=Object['assign'](_0x5a579b['bg']['dictionary'],_0x2c81e7),_0x5a579b['bg']['getPluralForm']=_0x5e12b0;})(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':_0x328185=>0x1!=_0x328185}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x26fc79=>{const {bn:{dictionary:_0x589848,getPluralForm:_0x191b8e}}={'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':_0x1b5e07=>0x1!=_0x1b5e07}};_0x26fc79['bn']||={'dictionary':{},'getPluralForm':null},_0x26fc79['bn']['dictionary']=Object['assign'](_0x26fc79['bn']['dictionary'],_0x589848),_0x26fc79['bn']['getPluralForm']=_0x191b8e;})(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':_0x2316c8=>_0x2316c8%0xa==0x1&&_0x2316c8%0x64!=0xb?0x0:_0x2316c8%0xa>=0x2&&_0x2316c8%0xa<=0x4&&(_0x2316c8%0x64<0xa||_0x2316c8%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x489adc=>{const {bs:{dictionary:_0x2a996c,getPluralForm:_0x54348d}}={'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':_0x58dc63=>_0x58dc63%0xa==0x1&&_0x58dc63%0x64!=0xb?0x0:_0x58dc63%0xa>=0x2&&_0x58dc63%0xa<=0x4&&(_0x58dc63%0x64<0xa||_0x58dc63%0x64>=0x14)?0x1:0x2}};_0x489adc['bs']||={'dictionary':{},'getPluralForm':null},_0x489adc['bs']['dictionary']=Object['assign'](_0x489adc['bs']['dictionary'],_0x2a996c),_0x489adc['bs']['getPluralForm']=_0x54348d;})(window['CKEDITOR_TRANSLATIONS']||={});
|