@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251017.0 → 0.0.0-nightly-20251019.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1ce1ae,Command as _0x1410c9}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x236efa,IconGooglePhotos as _0x2a49b1,IconGoogleDrive as _0x36e849,IconFacebook as _0x11f05f,IconDropbox as _0x19665e,IconUploadcareLink as _0x4ea968,IconUploadcareImageUpload as _0x49fed7,IconError as _0x517964,IconUploadcareImageEdit as _0x5bff68}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2b6512,MenuBarMenuListItemButtonView as _0x20cfdd,View as _0x595a8c,FocusCycler as _0x4fbead,Dialog as _0x63b9e3,DialogViewPosition as _0x3aa2a5,SpinnerView as _0x429ff8,IconView as _0xc79977,Notification as _0x235def}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x58b4a9,DomEmitterMixin as _0x4e9986,global as _0x48830a,getAncestors as _0x436241,ObservableMixin as _0x88beac,uid as _0x30c2b7,createElement as _0x14284c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4de88f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x22e4a3,info as _0x3092f3}from'@uploadcare/upload-client';import*as _0x5090a9 from'@uploadcare/file-uploader';var i=function(_0x48e50b){return _0x48e50b['Local']='local',_0x48e50b['URL']='url',_0x48e50b['Dropbox']='dropbox',_0x48e50b['GDrive']='gdrive',_0x48e50b['Facebook']='facebook',_0x48e50b['GPhotos']='gphotos',_0x48e50b['OneDrive']='onedrive',_0x48e50b;}({});function _(_0x5f2eae,_0x2c5494,_0x2660c5){const t=_0x5f2eae['t'],_0x36ad83=_0x5f2eae['t'];switch(_0x2c5494){case i['Local']:return{'text':_0x36ad83('Insert'===_0x2660c5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x36ad83('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2660c5?_0x36ad83('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x36ad83('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2660c5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2660c5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2660c5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2660c5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2660c5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2c5494;}}class e extends _0x1ce1ae{['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 _0x5690b4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2eef0a;for(const _0x2294e7 in _0x5690b4){const _0x5cec21=_0x2294e7,_0x41ca62=_0x5690b4[_0x5cec21];if('uploadcareLicenseKeyValid'==_0x41ca62||'uploadcareLicenseKeyInvalid'==_0x41ca62||'uploadcareLicenseKeyExpired'==_0x41ca62||'uploadcareLicenseKeyDomainLimit'==_0x41ca62||'uploadcareLicenseKeyNotAllowed'==_0x41ca62||'uploadcareLicenseKeyEvaluationLimit'==_0x41ca62||'uploadcareLicenseKeyTrialLimit'==_0x41ca62||'uploadcareLicenseKeyUsageLimit'==_0x41ca62){delete _0x5690b4[_0x5cec21],_0x2eef0a=_0x41ca62,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2eef0a&&_0x5690b4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2eef0a&&_0x5690b4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2eef0a&&_0x5690b4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2eef0a&&_0x5690b4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2eef0a&&_0x5690b4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2eef0a&&_0x5690b4['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2eef0a&&_0x5690b4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x555baf}=this,_0x3311ad=_0x555baf['commands']['get']('uploadcare');if(!_0x3311ad)return;const _0x390f35=this['_normalizeConfigSourceList'](_0x555baf['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x549a31,_0x2808c9)=>{const _0x25c95c=this['_getIntegrationKey'](_0x2808c9['type']);return _0x549a31[_0x25c95c]||(_0x549a31[_0x25c95c]=[]),_0x549a31[_0x25c95c]['push'](_0x2808c9),_0x549a31;},{});_0x555baf['plugins']['has']('ImageInsertUI')&&_0x555baf['commands']['get']('uploadcare')&&Object['entries'](_0x390f35)['forEach'](([_0x11f498,_0x5bfce4])=>{_0x555baf['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x11f498,'observable':()=>_0x3311ad,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5bfce4),'formViewCreator':()=>this['_createDropdownButtons'](_0x5bfce4),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5bfce4),'override':'assetManager'!==_0x11f498});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x24ecb7){const {locale:_0x21279d}=this['editor'];return _0x24ecb7['map'](_0x10598e=>{const _0x2fdd30=_(_0x21279d,_0x10598e,'Insert');switch(_0x10598e){case i['Local']:return{'icon':_0x49fed7,'type':i['Local'],..._0x2fdd30};case i['URL']:return{'icon':_0x4ea968,'type':i['URL'],..._0x2fdd30};case i['Dropbox']:return{'icon':_0x19665e,'type':i['Dropbox'],..._0x2fdd30};case i['Facebook']:return{'icon':_0x11f05f,'type':i['Facebook'],..._0x2fdd30};case i['GDrive']:return{'icon':_0x36e849,'type':i['GDrive'],..._0x2fdd30};case i['GPhotos']:return{'icon':_0x2a49b1,'type':i['GPhotos'],..._0x2fdd30};case i['OneDrive']:return{'icon':_0x236efa,'type':i['OneDrive'],..._0x2fdd30};}});}['_getIntegrationKey'](_0x4810c8){switch(_0x4810c8){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5d0284,_0x336579){const _0x57bf21=this['editor'],_0x210862=new _0x5d0284(_0x57bf21['locale']),_0x1e8010=_0x57bf21['commands']['get']('uploadcare');return _0x210862['bind']('isEnabled')['to'](_0x1e8010),_0x210862['on']('execute',()=>{_0x1e8010['execute'](_0x336579);}),_0x210862;}['_createToolbarButton'](_0x277cf4){const {locale:_0x4fc8cf}=this['editor'],_0x33da02=this['editor']['plugins']['get']('ImageInsertUI'),_0x2cbee7=_0x277cf4[0x0],_0x3d4fb7=this['_createButton'](_0x2b6512,_0x2cbee7['type']);return _0x3d4fb7['icon']=_0x2cbee7['icon'],_0x3d4fb7['bind']('label')['to'](_0x33da02,'isImageSelected',_0xf1d93e=>_(_0x4fc8cf,_0x2cbee7['type'],_0xf1d93e?'Replace':'Insert')['text']),_0x3d4fb7['tooltip']=!0x0,_0x3d4fb7;}['_createDropdownButtons'](_0x1d34b4){const {locale:_0x293fd7}=this['editor'],_0x3c1f6a=this['editor']['plugins']['get']('ImageInsertUI');return _0x1d34b4['map'](_0x598c4f=>{const _0x500919=this['_createButton'](_0x2b6512,_0x598c4f['type']);return _0x500919['withText']=!0x0,_0x500919['icon']=_0x598c4f['icon'],_0x500919['bind']('label')['to'](_0x3c1f6a,'isImageSelected',_0xd20a63=>_(_0x293fd7,_0x598c4f['type'],_0xd20a63?'Replace':'Insert')['text']),_0x500919;});}['_createMenuBarButtons'](_0x50d8bb){return _0x50d8bb['map'](_0x42ccf1=>{const _0xa6e814=this['_createButton'](_0x20cfdd,_0x42ccf1['type']);return _0xa6e814['icon']=_0x42ccf1['icon'],_0xa6e814['label']=_0x42ccf1['shortText'],_0xa6e814;});}}class V extends _0x595a8c{['focusTracker'];['focusCycler'];constructor(_0x529778){super(_0x529778),this['focusTracker']=new _0x58b4a9(),this['focusCycler']=new _0x4fbead({'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(_0x5c1600,_0x50a225){super(_0x5c1600),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-'+_0x50a225}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x47057e,_0xf0d316){const _0x228483=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x449690=>_0x449690<=_0xf0d316)['map'](_0x1b4bfa=>_0x47057e['replace'](/\/$/,'')+'/-/resize/'+_0x1b4bfa+'x/\x20'+_0x1b4bfa+'w');return{'imageFallbackUrl':_0x47057e,'imageSources':[{'srcset':_0x228483['join'](',\x20'),'sizes':'(max-width:\x20'+_0xf0d316+'px)\x20100vw,\x20'+_0xf0d316+'px','type':'image/webp'}]};}function F(_0x1bb904,_0x4fe909,_0x407177){const _0x5541f4=_0x1bb904['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5541f4?parseInt(_0x5541f4[0x1],0xa):_0x4fe909,'height':_0x5541f4?parseInt(_0x5541f4[0x2],0xa):_0x407177};}function p(_0x257250,_0x3852b6){const _0x5ab510=new(_0x4e9986())(),_0x202a77=_0x257250['plugins']['get']('ImageUtils'),_0x34177a=_0x257250['editing']['mapper']['toViewElement'](_0x3852b6),_0x3b6a31=_0x202a77['findViewImgElement'](_0x34177a),_0x344a2e=_0x257250['editing']['view']['domConverter']['viewToDom'](_0x3b6a31),_0x13e633=_0x3852b6['getAttribute']('width'),_0x293f34=_0x3852b6['getAttribute']('height'),_0x1124a4='image-processing';_0x257250['editing']['view']['change'](_0x211199=>{_0x211199['addClass'](_0x1124a4,_0x34177a),_0x211199['setStyle']('aspect-ratio',_0x13e633+'/'+_0x293f34,_0x3b6a31);}),_0x5ab510['listenTo'](_0x344a2e,'load',()=>{_0x5ab510['stopListening'](_0x344a2e,'load'),_0x257250['editing']['view']['change'](_0x2720d9=>{_0x2720d9['removeClass'](_0x1124a4,_0x34177a),_0x2720d9['removeStyle']('aspect-ratio',_0x3b6a31);});});}function R(_0x2e21a2){if(Array['isArray'](_0x2e21a2)){const _0x38c786=_0x2e21a2['map'](R);return _0x4b910d=>_0x38c786['some'](_0x519337=>_0x519337(_0x4b910d));}if('origin'==_0x2e21a2){const _0x5d3b30=_0x48830a['window']['location']['origin'];return _0x43b8b9=>new URL(_0x43b8b9,_0x48830a['document']['baseURI'])['origin']==_0x5d3b30;}return'function'==typeof _0x2e21a2?_0x2e21a2:_0x2e21a2 instanceof RegExp?_0x2fb675=>!(!_0x2fb675['match'](_0x2e21a2)&&!_0x2fb675['replace'](/^https?:\/\//,'')['match'](_0x2e21a2)):()=>!0x1;}function M(_0x3b6eaa,_0x2ecf68){return _0x436241(_0x3b6eaa['target'])['includes'](_0x2ecf68);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x88beac(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x32b6df,_0x24155e,_0x1a7fc4){super(),this['_editor']=_0x32b6df,this['_editing']=_0x24155e,this['_dialog']=_0x32b6df['plugins']['get'](_0x63b9e3),this['_api']=_0x24155e['ctxElement']['getAPI'](),this['_type']=_0x1a7fc4,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:_0x533ac5,model:_0x1d59b0}=this['_editor'],_0x5a8b00=_0x1d59b0['document']['selection']['getSelectedElement'](),_0xd2a349=_0x5a8b00&&(_0x5a8b00['is']('element','imageBlock')||_0x5a8b00['is']('element','imageInline'));this['_formView']=new S(_0x533ac5,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x49fed7,'title':_(_0x533ac5,this['_type'],_0xd2a349?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3aa2a5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x6fa49e=>!M(_0x6fa49e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x73a141}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4bcd0d=>{const _0x3ef8bc=_0x73a141['length'];for(const _0x29d409 of _0x73a141){const _0x571e2f=_0x29d409===_0x73a141[_0x3ef8bc-0x1],{cdnUrl:_0x385c62,fileInfo:_0x42727a}=_0x29d409;if(!_0x385c62||!_0x42727a)continue;const {width:_0x13cd08,height:_0x2bf935}=_0x42727a['imageInfo'],_0x3af9b6=F(_0x385c62,_0x13cd08,_0x2bf935),_0x3181ed=C(_0x385c62,_0x3af9b6['width']),_0x423452={'id':_0x42727a['uuid'],'type':'image','attributes':{'imageDimension':_0x3af9b6,..._0x3181ed}};this['_insertAsset'](_0x423452,_0x571e2f,_0x4bcd0d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5a7115=>{'idle'===_0x5a7115['detail']['status']&&!_0x5a7115['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x12e00f,_0x949e5a,_0x5a1448){const _0x151803=this['_editor']['model']['document']['selection'],_0x41984e=_0x151803['getSelectedElement'](),_0x10db01=!(!_0x41984e||!_0x41984e['is']('element','imageInline'));_0x5a1448['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x12e00f,_0x10db01),_0x949e5a||_0x5a1448['setSelection'](_0x151803['getLastPosition']());}['_insertImage'](_0x167973,_0x4bda16){const _0x226fa9=this['_editor'],{imageDimension:_0x307922,imageFallbackUrl:_0x594fd9,imageSources:_0x206dc2}=_0x167973['attributes'];_0x226fa9['execute']('insertImage',{'imageType':_0x4bda16?'imageInline':null,'source':{'uploadcareImageId':_0x167973['id'],'src':_0x594fd9,'sources':_0x206dc2,..._0x307922}});}}class w extends _0x1410c9{['_editing'];['_controller']=null;static get['requires'](){return[_0x63b9e3,o];}constructor(_0x543ac9){super(_0x543ac9),this['_editing']=_0x543ac9['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5dd741){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5dd741);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x41e26b,..._0x38740c}){return _0x22e4a3(_0x41e26b,_0x38740c);}static['getInfo'](_0x3d222b,_0x4e82de){return _0x3092f3(_0x3d222b,_0x4e82de);}}class f extends _0x1ce1ae{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4de88f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x21a906=this['editor'];if(!!!_0x21a906['config']['get']('uploadcare'))return;_0x21a906['plugins']['get'](_0x4de88f)['createUploadAdapter']=_0x149c3f=>new k(_0x149c3f,_0x21a906),_0x21a906['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x311331,{imageElement:_0x51ffe1,data:_0x12ad4d})=>{_0x21a906['model']['change'](_0x54d1bb=>{_0x54d1bb['setAttribute']('uploadcareImageId',_0x12ad4d['uploadcareImageId'],_0x51ffe1);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x54305a,_0x2a64b9){this['loader']=_0x54305a,this['editor']=_0x2a64b9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xfd27f=await this['loader']['file'];return j['upload']({'file':_0xfd27f,'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':_0x1e40ad=>{_0x1e40ad&&_0x1e40ad['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1e40ad['value']);}})['then'](async _0x101a03=>{const {imageFallbackUrl:_0x301800,imageSources:_0x206a50}=C(_0x101a03['cdnUrl'],_0x101a03['imageInfo']['width']);return{'uploadcareImageId':_0x101a03['uuid'],'default':_0x301800,'sources':_0x206a50};})['catch'](()=>{const _0x5c5e5b=t('Cannot\x20upload\x20file:')+('\x20'+_0xfd27f['name']+'.');return Promise['reject'](_0x5c5e5b);});}['abort'](){this['controller']['abort']();}}class o extends _0x1ce1ae{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x63b9e3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x46fe15){super(_0x46fe15),this['ucContextId']=_0x30c2b7();}['init'](){const _0x619c5c=this['editor'];_0x619c5c['commands']['add']('uploadcare',new w(_0x619c5c));}['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 _0x2c55ec=_0x48830a['document']['querySelector']('input[uploadcare-file-input]');_0x2c55ec&&_0x2c55ec['remove']();}),async function(_0x367d88){const _0x1757a4=_0x26c2dd([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]),_0x41dbc8=0x535f8c3a,_0x18f109=0x5358fa4a^_0x41dbc8,_0x256374=window[_0x26c2dd([0x44,0x61,0x74,0x65])][_0x26c2dd([0x6e,0x6f,0x77])](),_0x3a4b53=_0x367d88[_0x26c2dd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf51161=new window[(_0x26c2dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d3f9c=>{_0x3a4b53[_0x26c2dd([0x6f,0x6e,0x63,0x65])](_0x26c2dd([0x72,0x65,0x61,0x64,0x79]),_0x2d3f9c);}),_0x1289f9={[_0x26c2dd([0x6b,0x74,0x79])]:_0x26c2dd([0x45,0x43]),[_0x26c2dd([0x75,0x73,0x65])]:_0x26c2dd([0x73,0x69,0x67]),[_0x26c2dd([0x63,0x72,0x76])]:_0x26c2dd([0x50,0x2d,0x32,0x35,0x36]),[_0x26c2dd([0x78])]:_0x26c2dd([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]),[_0x26c2dd([0x79])]:_0x26c2dd([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]),[_0x26c2dd([0x61,0x6c,0x67])]:_0x26c2dd([0x45,0x53,0x32,0x35,0x36])},_0x53e1fb=_0x3a4b53[_0x26c2dd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x26c2dd([0x67,0x65,0x74])](_0x26c2dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x494669(){let _0x2c67c4,_0x133abc=null,_0x2e1e13=null;try{if(_0x53e1fb==_0x26c2dd([0x47,0x50,0x4c]))return _0x26c2dd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c67c4=_0xbad16f(),!_0x2c67c4)return _0x26c2dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c67c4[_0x26c2dd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e1e13=_0x438488(_0x2c67c4[_0x26c2dd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c67c4[_0x26c2dd([0x6a,0x74,0x69])])),await _0x41e761()?_0x55f177()?_0x2e6ba4()?_0x26c2dd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28b012()?(_0x2c67c4[_0x26c2dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x26c2dd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x133abc=_0x244beb(_0x26c2dd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c67c4[_0x26c2dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x26c2dd([0x74,0x72,0x69,0x61,0x6c])&&(_0x133abc=_0x244beb(_0x26c2dd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xebdc37()):_0x26c2dd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x26c2dd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x26c2dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x26c2dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e6ba4(){const _0x549dec=[_0x26c2dd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x26c2dd([0x74,0x72,0x69,0x61,0x6c])][_0x26c2dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c67c4[_0x26c2dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x256374/0x3e8:0xe10*_0x18f109;return _0x2c67c4[_0x26c2dd([0x65,0x78,0x70])]<_0x549dec;}function _0x55f177(){const _0x3c82ab=_0x2c67c4[_0x26c2dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c82ab&&(!!_0x3c82ab[_0x26c2dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26c2dd([0x2a]))||!!_0x3c82ab[_0x26c2dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26c2dd([0x55,0x50,0x4c,0x43])));}function _0x28b012(){const _0xde55ef=_0x2c67c4[_0x26c2dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xde55ef||0x0==_0xde55ef[_0x26c2dd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31f4f0}=new URL(window[_0x26c2dd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xde55ef[_0x26c2dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31f4f0))return!0x0;const _0x307326=_0x31f4f0[_0x26c2dd([0x73,0x70,0x6c,0x69,0x74])](_0x26c2dd([0x2e]));return _0xde55ef[_0x26c2dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43c561=>_0x43c561[_0x26c2dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26c2dd([0x2a])))[_0x26c2dd([0x6d,0x61,0x70])](_0x4b7272=>_0x4b7272[_0x26c2dd([0x73,0x70,0x6c,0x69,0x74])](_0x26c2dd([0x2e])))[_0x26c2dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2db8da=>_0x2db8da[_0x26c2dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x307326[_0x26c2dd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x26c2dd([0x6d,0x61,0x70])](_0x422091=>Array(_0x307326[_0x26c2dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x422091[_0x26c2dd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x26c2dd([0x66,0x69,0x6c,0x6c])](_0x422091[0x0]===_0x26c2dd([0x2a])?_0x26c2dd([0x2a]):'')[_0x26c2dd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x422091))[_0x26c2dd([0x73,0x6f,0x6d,0x65])](_0x307979=>_0x307326[_0x26c2dd([0x65,0x76,0x65,0x72,0x79])]((_0x1fbd5c,_0x1690dc)=>_0x307979[_0x1690dc]===_0x1fbd5c||_0x307979[_0x1690dc]===_0x26c2dd([0x2a])));}function _0xebdc37(){return _0x133abc&&_0x2e1e13?new window[(_0x26c2dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48febf,_0x1ee7f4)=>{_0x133abc[_0x26c2dd([0x74,0x68,0x65,0x6e])](_0x48febf,_0x1ee7f4),_0x2e1e13[_0x26c2dd([0x74,0x68,0x65,0x6e])](_0x3fa79d=>{_0x3fa79d!=_0x26c2dd([0x56,0x61,0x6c,0x69,0x64])&&_0x48febf(_0x3fa79d);},_0x1ee7f4);}):_0x133abc||_0x2e1e13||_0x26c2dd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x438488(_0x68c886,_0x2dadeb){return new window[(_0x26c2dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2be666=>{if(_0x3107d3())return _0x2be666(_0x26c2dd([0x56,0x61,0x6c,0x69,0x64]));_0x51ef9b(),_0x3a4b53[_0x26c2dd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x26c2dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ad23d=!0x1;const _0x4a5653=_0x30c2b7();function _0x252184(_0x2f1714){return!!_0x2f1714&&(typeof _0x2f1714===_0x26c2dd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f1714===_0x26c2dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f1714[_0x26c2dd([0x74,0x68,0x65,0x6e])]===_0x26c2dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f1714[_0x26c2dd([0x63,0x61,0x74,0x63,0x68])]===_0x26c2dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2861cb(_0x12ba62){_0x38c4b7(_0x12ba62)[_0x26c2dd([0x74,0x68,0x65,0x6e])](_0x567845=>{if(!_0x567845||_0x567845[_0x26c2dd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x26c2dd([0x6f,0x6b]))return _0x26c2dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x200c8c(_0x1d439b(_0x4a5653+_0x2dadeb))!=_0x567845[_0x26c2dd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x26c2dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x26c2dd([0x56,0x61,0x6c,0x69,0x64]);})[_0x26c2dd([0x74,0x68,0x65,0x6e])](_0x3a148b=>(_0x1ebde3(),_0x3a148b),()=>{const _0x1de471=_0x170c07();return null==_0x1de471?(_0x1ebde3(),_0x26c2dd([0x56,0x61,0x6c,0x69,0x64])):_0x26c2dd(_0x256374-_0x1de471>(0x7753083a^_0x41dbc8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x26c2dd([0x74,0x68,0x65,0x6e])](_0x2be666)[_0x26c2dd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2be666(_0x26c2dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34d752=0x536962ba^_0x41dbc8;function _0x1ebde3(){const _0x1caedf=_0x26c2dd([0x6c,0x6c,0x63,0x74,0x2d])+_0x200c8c(_0x1d439b(_0x68c886)),_0x2d7c7a=_0x97f4e6(_0x200c8c(window[_0x26c2dd([0x4d,0x61,0x74,0x68])][_0x26c2dd([0x63,0x65,0x69,0x6c])](_0x256374/_0x34d752)));window[_0x26c2dd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x26c2dd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1caedf,_0x2d7c7a);}function _0x170c07(){const _0x11e1b3=_0x26c2dd([0x6c,0x6c,0x63,0x74,0x2d])+_0x200c8c(_0x1d439b(_0x68c886)),_0x2eddb0=window[_0x26c2dd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x26c2dd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11e1b3);return _0x2eddb0?window[_0x26c2dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x97f4e6(_0x2eddb0),0x10)*_0x34d752:null;}function _0x38c4b7(_0x4aeb07){return new window[(_0x26c2dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x327db0,_0x5e6559)=>{_0x4aeb07[_0x26c2dd([0x74,0x68,0x65,0x6e])](_0x327db0,_0x5e6559),window[_0x26c2dd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e6559,0x535e58fa^_0x41dbc8);});}}_0x3a4b53[_0x26c2dd([0x6f,0x6e])](_0x26c2dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd42fc7,_0x3aacb3)=>{if(_0x3aacb3[0x0]!=_0x68c886)return _0x2be666(_0x26c2dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3aacb3[0x1]={..._0x3aacb3[0x1],[_0x26c2dd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a5653};},{[_0x26c2dd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x26c2dd([0x68,0x69,0x67,0x68])}),_0x3a4b53[_0x26c2dd([0x6f,0x6e])](_0x26c2dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb530ba=>{_0x252184(_0xb530ba[_0x26c2dd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ad23d=!0x0,_0x2861cb(_0xb530ba[_0x26c2dd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x26c2dd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x26c2dd([0x6c,0x6f,0x77])}),_0xf51161[_0x26c2dd([0x74,0x68,0x65,0x6e])](()=>{_0x3ad23d||_0x2be666(_0x26c2dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3107d3(){return _0x3a4b53[_0x26c2dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26c2dd([0x76,0x69,0x65,0x77])][_0x26c2dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x26c2dd([0x61,0x75,0x74,0x6f]);}function _0x51ef9b(){_0x3a4b53[_0x26c2dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26c2dd([0x76,0x69,0x65,0x77])][_0x26c2dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26c2dd([0x61,0x75,0x74,0x6f]);}}function _0x244beb(_0x5618d7){const _0x338873=[new window[(_0x26c2dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x543e36=>setTimeout(_0x543e36,0x5356b2f6^_0x41dbc8)),_0xf51161[_0x26c2dd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x26c2dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x515bda=>{let _0x1dc001=0x0;_0x3a4b53[_0x26c2dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x26c2dd([0x6f,0x6e])](_0x26c2dd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x6ace7f,_0x108374)=>{_0x108374[0x0][_0x26c2dd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1dc001++,_0x1dc001==(0x535f8dc2^_0x41dbc8)&&(_0x515bda(),_0x6ace7f[_0x26c2dd([0x6f,0x66,0x66])]());});}))];return window[_0x26c2dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26c2dd([0x72,0x61,0x63,0x65])](_0x338873)[_0x26c2dd([0x74,0x68,0x65,0x6e])](()=>_0x5618d7);}async function _0xd6d667(){await _0xf51161,_0x3a4b53[_0x26c2dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x26c2dd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1cddf6,_0x3a4b53[_0x26c2dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x26c2dd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1cddf6,_0x3a4b53[_0x26c2dd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x26c2dd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x528851(_0x16bf9b){const _0x2afa4b=_0x5ba2f4();_0x3a4b53[_0x2afa4b]=_0x26c2dd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x16bf9b,_0x16bf9b!=_0x26c2dd([0x56,0x61,0x6c,0x69,0x64])&&_0xd6d667();}function _0x5ba2f4(){const _0x1c6ea4=window[_0x26c2dd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x26c2dd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x26c2dd([0x6e,0x6f,0x77])]())[_0x26c2dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x26c2dd([0x2e]),'');let _0x37d9ad=_0x26c2dd([0x68]);for(let _0x1f8359=0x0;_0x1f8359<_0x1c6ea4[_0x26c2dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f8359+=0x2){let _0x1b9deb=window[_0x26c2dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c6ea4[_0x26c2dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f8359,_0x1f8359+0x2));_0x1b9deb>=_0x1757a4[_0x26c2dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b9deb-=_0x1757a4[_0x26c2dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37d9ad+=_0x1757a4[_0x1b9deb];}return _0x37d9ad;}function _0xbad16f(){const _0x349c7d=_0x53e1fb[_0x26c2dd([0x73,0x70,0x6c,0x69,0x74])](_0x26c2dd([0x2e]));if(0x3!=_0x349c7d[_0x26c2dd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20a827(_0x349c7d[0x1]);function _0x20a827(_0x3b9a0b){const _0x2729ba=_0x33098d(_0x3b9a0b);return _0x2729ba&&_0x2da104()?_0x2729ba:null;function _0x2da104(){const _0x379d35=_0x2729ba[_0x26c2dd([0x6a,0x74,0x69])],_0x1e6db4=window[_0x26c2dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x379d35[_0x26c2dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x379d35[_0x26c2dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x56543b={..._0x2729ba,[_0x26c2dd([0x6a,0x74,0x69])]:_0x379d35[_0x26c2dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x379d35[_0x26c2dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x56543b[_0x26c2dd([0x76,0x63])],_0x1d439b(_0x56543b)==_0x1e6db4;}}}async function _0x41e761(){let _0x3776c2=!0x0;try{const _0x2b45f7=_0x53e1fb[_0x26c2dd([0x73,0x70,0x6c,0x69,0x74])](_0x26c2dd([0x2e])),[_0x26a97e,_0x387ae6,_0x24e241]=_0x2b45f7;return _0x4f7ef0(_0x26a97e),await _0x3dc252(_0x26a97e,_0x387ae6,_0x24e241),_0x3776c2;}catch{return!0x1;}function _0x4f7ef0(_0x2d7a4b){const _0x2a9889=_0x33098d(_0x2d7a4b);_0x2a9889&&_0x2a9889[_0x26c2dd([0x61,0x6c,0x67])]==_0x26c2dd([0x45,0x53,0x32,0x35,0x36])||(_0x3776c2=!0x1);}async function _0x3dc252(_0x5a08c3,_0xaaf7d1,_0x5864bd){const _0x59958f=window[_0x26c2dd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x26c2dd([0x66,0x72,0x6f,0x6d])](_0x4b24e5(_0x5864bd),_0x1cf692=>_0x1cf692[_0x26c2dd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3d38db=new window[(_0x26c2dd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x26c2dd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a08c3+_0x26c2dd([0x2e])+_0xaaf7d1),_0x218ceb=window[_0x26c2dd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x26c2dd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x218ceb)return;const _0x357f4e=await _0x218ceb[_0x26c2dd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x26c2dd([0x6a,0x77,0x6b]),_0x1289f9,{[_0x26c2dd([0x6e,0x61,0x6d,0x65])]:_0x26c2dd([0x45,0x43,0x44,0x53,0x41]),[_0x26c2dd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x26c2dd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x26c2dd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x218ceb[_0x26c2dd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x26c2dd([0x6e,0x61,0x6d,0x65])]:_0x26c2dd([0x45,0x43,0x44,0x53,0x41]),[_0x26c2dd([0x68,0x61,0x73,0x68])]:{[_0x26c2dd([0x6e,0x61,0x6d,0x65])]:_0x26c2dd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x357f4e,_0x59958f,_0x3d38db)||(_0x3776c2=!0x1);}}function _0x33098d(_0x425a65){return _0x425a65[_0x26c2dd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x26c2dd([0x65,0x79]))?JSON[_0x26c2dd([0x70,0x61,0x72,0x73,0x65])](_0x4b24e5(_0x425a65)):null;}function _0x4b24e5(_0x87346f){return window[_0x26c2dd([0x61,0x74,0x6f,0x62])](_0x87346f[_0x26c2dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x26c2dd([0x2b]))[_0x26c2dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x26c2dd([0x2f])));}function _0x1d439b(_0x48c343){let _0x4d4255=0x1505;function _0x132a4a(_0x49b1c1){for(let _0xc6a7e5=0x0;_0xc6a7e5<_0x49b1c1[_0x26c2dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc6a7e5++){const _0x4adff6=_0x49b1c1[_0x26c2dd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc6a7e5);_0x4d4255=(_0x4d4255<<0x5)+_0x4d4255+_0x4adff6,_0x4d4255&=_0x4d4255;}}function _0xde5606(_0x4cdb85){Array[_0x26c2dd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4cdb85)?_0x4cdb85[_0x26c2dd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xde5606):_0x4cdb85&&typeof _0x4cdb85==_0x26c2dd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x26c2dd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4cdb85)[_0x26c2dd([0x73,0x6f,0x72,0x74])]()[_0x26c2dd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xbe07c4,_0x179159])=>{_0x132a4a(_0xbe07c4),_0xde5606(_0x179159);}):_0x132a4a(window[_0x26c2dd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4cdb85));}return _0xde5606(_0x48c343),_0x4d4255>>>0x0;}function _0x200c8c(_0xc2be96){return _0xc2be96[_0x26c2dd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x26c2dd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x26c2dd([0x30]));}function _0x97f4e6(_0x28b893){return _0x28b893[_0x26c2dd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x26c2dd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x26c2dd([0x6a,0x6f,0x69,0x6e])]('');}function _0x1cddf6(){}function _0x26c2dd(_0x4cad71){return _0x4cad71['map'](_0x279338=>String['fromCharCode'](_0x279338))['join']('');}_0x528851(await _0x494669());}(this);}['_initSchema'](){const _0x5a83f7=this['editor']['model']['schema'];_0x5a83f7['isRegistered']('imageBlock')&&_0x5a83f7['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5a83f7['isRegistered']('imageInline')&&_0x5a83f7['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x59e86d=this['editor'];_0x59e86d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x59e86d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x412af6=>_0x412af6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x223c00=_0x59e86d['commands']['get']('replaceImageSource');_0x223c00&&this['listenTo'](_0x223c00,'cleanupImage',(_0x22e07e,[_0xcd3c58,_0x21ee90])=>{_0xcd3c58['removeAttribute']('uploadcareImageId',_0x21ee90);});}['_initConfig'](){const _0x23256f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x44c04b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x14284c(_0x48830a['document'],'uc-config',{..._0x23256f,'pubkey':_0x44c04b,'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']=_0x505228=>{if('closeMax'==_0x505228)return'#uc-icon-arrow-down';},_0x48830a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x14284c(_0x48830a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x48830a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3d2e2f=this['editor']['commands']['get']('insertImage');_0x3d2e2f&&this['listenTo'](_0x3d2e2f,'execute',()=>{const _0x179195=this['editor']['model']['document']['selection']['getSelectedElement']();_0x179195&&_0x179195['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x179195);});});const _0x4bf2ab=this['editor']['commands']['get']('uploadcareImageReplace');_0x4bf2ab&&this['listenTo'](_0x4bf2ab,'execute',()=>{const _0x5e090e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e090e&&_0x5e090e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5e090e);});});}}class tt extends _0x1ce1ae{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x242561){super(_0x242561),_0x242561['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5090a9['defineComponents'](_0x5090a9);}}class ii extends _0x595a8c{constructor(_0x47bed2){super(_0x47bed2);const t=_0x47bed2['t'],_0x390316=this['bindTemplate'],_0x58ed04=new _0x429ff8();_0x58ed04['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':[_0x58ed04,{'text':_0x390316['to']('imageUploadProgress',_0x101b3c=>t('Loading\x20image...')+'\x20('+(_0x101b3c||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 _0x595a8c{constructor(_0x4d0e90){super(_0x4d0e90);const t=_0x4d0e90['t'];this['set']('errorType',null);const _0xc0a9a4=new _0x2b6512(_0x4d0e90);_0xc0a9a4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xc0a9a4['withText']=!0x0,_0xc0a9a4['class']='ck-button-action',_0xc0a9a4['on']('execute',()=>{this['fire']('retry');}),_0xc0a9a4['bind']('isVisible')['to'](this,'errorType',_0x5c4a6e=>'NotFound'!==_0x5c4a6e);const _0x21d36f=new _0xc79977();_0x21d36f['content']=_0x517964,_0x21d36f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x350c81=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':[_0x21d36f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x350c81['to']('errorType',_0x150553=>t('NotFound'!==_0x150553?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xc0a9a4]},{'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 _0x595a8c{constructor(_0x4ade10,_0x158904){super(_0x4ade10);const _0x458b3e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x158904,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x458b3e['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4636a9,_0x168f82,_0x1bf48c){super(_0x4636a9),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4636a9),this['_errorView']=new ti(_0x4636a9),this['_editingView']=new ei(_0x4636a9,_0x1bf48c),this['_focusableView']=new _0x595a8c(_0x4636a9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x168f82),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'],_0x416af7=>{this['_addUploadcareImageEditorListeners'](_0x416af7);});}),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'](_0x496278,_0x356276){const _0x146fa6='uc-cloud-image-editor',_0x165f0f=_0x496278['querySelector'](_0x146fa6);if(_0x165f0f)return _0x356276(_0x165f0f);const _0xc488d3=new MutationObserver(_0x164efa=>{const _0xcd9f6=_0x164efa['filter'](_0x351a1f=>_0x351a1f['target']===_0x496278&&_0x351a1f['addedNodes']['length']>0x0&&_0x351a1f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x146fa6);_0xcd9f6['length']&&(_0xc488d3['disconnect'](),_0x356276(_0xcd9f6[0x0]['addedNodes'][0x0]));});_0xc488d3['observe'](_0x496278,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x210ebd){_0x210ebd['addEventListener']('apply',_0x123223=>{this['fire']('apply',{'imageSrc':_0x123223['detail']['cdnUrl']});}),_0x210ebd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x88beac(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3f73d6,_0xb7f153,_0x3e65fa){super(),this['_editor']=_0x3f73d6,this['_dialog']=_0xb7f153,this['_imageElement']=_0x3e65fa,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 _0x44eddf=this['_imageElement'],_0x1c1db4=_0x44eddf['getAttribute']('uploadcareImageId'),_0x5af7e0=_0x44eddf['getAttribute']('src');if(_0x1c1db4)await this['_loadImageInfo'](_0x1c1db4,_0x5af7e0);else{if(this['_imageCache']['has'](_0x5af7e0)){const _0x18ac3b=this['_imageCache']['get'](_0x5af7e0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x18ac3b['url'],this['imageDimension']=_0x18ac3b['dimension'],this['imageId']=_0x18ac3b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x488142}=this['_editor'],t=_0x488142['t'],_0x52a451=new X(_0x488142,this['imageStatus'],this['_attributes']);_0x52a451['bind']('status')['to'](this,'imageStatus'),_0x52a451['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x52a451['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x52a451['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x52a451,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5bff68,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x52a451,'position':_0x3aa2a5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x52a451['focus']();},'onHide':()=>{_0x52a451['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x566f8f=>!M(_0x566f8f,_0x52a451['element'])}});}['_loadImageInfo'](_0x1e7be0,_0x573d3c){return j['getInfo'](_0x1e7be0,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5854c3=>{const {width:_0x4eaef7,height:_0x20e686}=_0x5854c3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x573d3c,this['imageDimension']={'width':_0x4eaef7,'height':_0x20e686},this['imageId']=_0x1e7be0;})['catch'](_0x26a45f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x26a45f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x39b4f4,_0xef68fe){return this['_getImageAsFile'](_0x39b4f4)['then'](_0xc42515=>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':_0xef68fe['signal'],'file':_0xc42515,'onProgress':_0x436a56=>{_0x436a56&&_0x436a56['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x436a56['value']));}}))['then'](_0x51a8c1=>{const {width:_0x3102da,height:_0x2788e7}=_0x51a8c1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51a8c1['cdnUrl'],this['imageDimension']={'width':_0x3102da,'height':_0x2788e7},this['imageId']=_0x51a8c1['uuid'],this['imageUploadProgress']=null;const _0x2ca47c=_0x39b4f4['getAttribute']('src');this['_imageCache']['set'](_0x2ca47c,{'id':_0x51a8c1['uuid'],'url':_0x51a8c1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x474421=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x474421['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x28a14e,_0x561297){_0x28a14e['on']('apply',(_0x502b76,_0x1bbfd0)=>{this['_replaceImage'](_0x561297,_0x1bbfd0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x28a14e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x28a14e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x210de1,_0x45d5b6,_0x2abe80){const _0x4d8417=this['_editor'],{width:_0x4083e4,height:_0x197e48}=F(_0x45d5b6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x17b3d3,imageSources:_0x1a337e}=C(_0x45d5b6,_0x4083e4);_0x4d8417['model']['change'](_0x5aff1d=>{if('$graveyard'===_0x210de1['root']['rootName']){_0x4d8417['execute']('insertImage',{'imageType':_0x210de1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x210de1['getAttributes']()),'uploadcareImageId':_0x2abe80,'src':_0x17b3d3,'sources':_0x1a337e,'width':_0x4083e4,'height':_0x197e48}});const _0x25f6ba=_0x210de1['getChildren']();_0x210de1=_0x4d8417['model']['document']['selection']['getSelectedElement']();for(const _0x213a4a of _0x25f6ba)_0x5aff1d['append'](_0x5aff1d['cloneElement'](_0x213a4a),_0x210de1);}else _0x5aff1d['setSelection'](_0x210de1,'on'),_0x4d8417['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x210de1['getAttributes']()),'uploadcareImageId':_0x2abe80,'src':_0x17b3d3,'sources':_0x1a337e,'width':_0x4083e4,'height':_0x197e48},_0x210de1);_0x5aff1d['setSelection'](_0x210de1,'on');});}async['_getImageAsFile'](_0x3e5051){const _0x4fb75b=_0x48830a['window'],_0x2de624=_0x48830a['document']['location']['href'],_0x4d0f45=new _0x4fb75b['URL'](_0x3e5051['getAttribute']('src'),_0x2de624);if('data:'===_0x4d0f45['protocol']){const _0x3369da=_0x4d0f45['href']['split'](','),_0x58f735=_0x3369da[0x0]['match'](/:(.*?);/)[0x1],_0x5a411e=_0x58f735['split']('/')[0x1],_0x37ddfc=_0x4fb75b['atob'](_0x3369da[_0x3369da['length']-0x1]);let _0x4da161=_0x37ddfc['length'];const _0x34679c=new _0x4fb75b['Uint8Array'](_0x4da161);for(;_0x4da161--;)_0x34679c[_0x4da161]=_0x37ddfc['charCodeAt'](_0x4da161);return new _0x4fb75b['File']([_0x34679c],'image.'+_0x5a411e,{'type':_0x58f735});}const _0x4a0437=_0x4d0f45['href']['split']('/'),_0x4e1eaf=_0x4a0437[_0x4a0437['length']-0x1],_0x55da50=_0x4e1eaf['split']('.')[0x1];return _0x4fb75b['fetch'](_0x4d0f45['href'])['then'](_0x48de70=>_0x48de70['clone']()['blob']())['then'](_0x4b238c=>new _0x4fb75b['File']([_0x4b238c],_0x4e1eaf,{'type':'image/'+_0x55da50}));}}class N extends _0x1410c9{['imageEditController'];static get['requires'](){return[_0x63b9e3];}['_isEditable'];constructor(_0x59e33b){super(_0x59e33b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3121f4){const _0x4c04f2=R(_0x3121f4);return _0xa2de74=>!(!_0xa2de74||!_0xa2de74['is']('element','imageBlock')&&!_0xa2de74['is']('element','imageInline'))&&(!!_0xa2de74['hasAttribute']('uploadcareImageId')||!!_0xa2de74['hasAttribute']('src')&&_0x4c04f2(_0xa2de74['getAttribute']('src')));}(_0x59e33b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x211bd8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x211bd8);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xee745f=this['editor']['model']['document']['selection']['getSelectedElement']();_0xee745f&&(_0xee745f['is']('element','imageBlock')||_0xee745f['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x63b9e3),_0xee745f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1410c9{['refresh'](){const _0x1c20e2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1c20e2&&(_0x1c20e2['is']('element','imageBlock')||_0x1c20e2['is']('element','imageInline')));}['execute'](_0x4d7028){const _0x10cef6=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x10b4dd=>{_0x10b4dd['setAttributes'](_0x4d7028,_0x10cef6),_0x10b4dd['removeAttribute']('srcset',_0x10cef6),_0x10b4dd['removeAttribute']('sizes',_0x10cef6);});}}class m extends _0x1ce1ae{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x235def,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1c88b0}=this;_0x1c88b0['commands']['add']('uploadcareImageEdit',new N(_0x1c88b0)),_0x1c88b0['commands']['add']('uploadcareImageReplace',new O(_0x1c88b0));}}class g extends _0x1ce1ae{['_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 _0x28f400=this['editor'];_0x28f400['ui']['componentFactory']['add']('uploadcareImageEdit',_0x45d1a6=>{const _0x2cc47c=_0x28f400['commands']['get']('uploadcareImageEdit'),_0x3be603=new _0x2b6512(_0x45d1a6),t=_0x45d1a6['t'];return _0x3be603['set']({'icon':_0x5bff68,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3be603['bind']('isEnabled')['to'](_0x2cc47c),_0x3be603['bind']('isOn')['to'](_0x2cc47c,'isActive'),this['listenTo'](_0x3be603,'execute',()=>{_0x28f400['execute']('uploadcareImageEdit'),_0x28f400['editing']['view']['focus']();}),_0x3be603;}),this['_initConfig']();}['_initConfig'](){const _0x52727d=_0x14284c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x52727d),this['listenTo'](this['editor'],'destroy',()=>{_0x52727d['remove']();});}}class et extends _0x1ce1ae{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};
|
|
23
|
+
import{Plugin as _0x57fbe8,Command as _0x548c28}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x467635,IconGooglePhotos as _0xa52fd2,IconGoogleDrive as _0x14caca,IconFacebook as _0x5ad33c,IconDropbox as _0x19860f,IconUploadcareLink as _0x2d3591,IconUploadcareImageUpload as _0x500d6d,IconError as _0x3ea7a4,IconUploadcareImageEdit as _0x433f0e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x481b99,MenuBarMenuListItemButtonView as _0x13dd42,View as _0x1a6940,FocusCycler as _0x3e1ba9,Dialog as _0x3c85e5,DialogViewPosition as _0x12577b,SpinnerView as _0x437864,IconView as _0x3924ec,Notification as _0xa21cf6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x23e284,DomEmitterMixin as _0x5a0c69,global as _0x3d29e5,getAncestors as _0x2db35b,ObservableMixin as _0x4a714,uid as _0x4f6e7f,createElement as _0x4cf48b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3fde5e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x55c785,info as _0x1c02cf}from'@uploadcare/upload-client';import*as _0x326106 from'@uploadcare/file-uploader';var i=function(_0x4a1c40){return _0x4a1c40['Local']='local',_0x4a1c40['URL']='url',_0x4a1c40['Dropbox']='dropbox',_0x4a1c40['GDrive']='gdrive',_0x4a1c40['Facebook']='facebook',_0x4a1c40['GPhotos']='gphotos',_0x4a1c40['OneDrive']='onedrive',_0x4a1c40;}({});function _(_0x125a3f,_0x33ab7b,_0x304e2a){const t=_0x125a3f['t'],_0x1c6014=_0x125a3f['t'];switch(_0x33ab7b){case i['Local']:return{'text':_0x1c6014('Insert'===_0x304e2a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1c6014('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x304e2a?_0x1c6014('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1c6014('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x304e2a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x304e2a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x304e2a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x304e2a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x304e2a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x33ab7b;}}class e extends _0x57fbe8{['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 _0xd0eb9d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x504c2d;for(const _0x2bd7ac in _0xd0eb9d){const _0x101f26=_0x2bd7ac,_0x4e7c05=_0xd0eb9d[_0x101f26];if('uploadcareLicenseKeyValid'==_0x4e7c05||'uploadcareLicenseKeyInvalid'==_0x4e7c05||'uploadcareLicenseKeyExpired'==_0x4e7c05||'uploadcareLicenseKeyDomainLimit'==_0x4e7c05||'uploadcareLicenseKeyNotAllowed'==_0x4e7c05||'uploadcareLicenseKeyEvaluationLimit'==_0x4e7c05||'uploadcareLicenseKeyTrialLimit'==_0x4e7c05||'uploadcareLicenseKeyUsageLimit'==_0x4e7c05){delete _0xd0eb9d[_0x101f26],_0x504c2d=_0x4e7c05,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x504c2d&&_0xd0eb9d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x504c2d&&_0xd0eb9d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x504c2d&&_0xd0eb9d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x504c2d&&_0xd0eb9d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x504c2d&&_0xd0eb9d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x504c2d&&_0xd0eb9d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x504c2d&&_0xd0eb9d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2dfb89}=this,_0x4ca22d=_0x2dfb89['commands']['get']('uploadcare');if(!_0x4ca22d)return;const _0x24066b=this['_normalizeConfigSourceList'](_0x2dfb89['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x385ffa,_0xe490f0)=>{const _0x593d53=this['_getIntegrationKey'](_0xe490f0['type']);return _0x385ffa[_0x593d53]||(_0x385ffa[_0x593d53]=[]),_0x385ffa[_0x593d53]['push'](_0xe490f0),_0x385ffa;},{});_0x2dfb89['plugins']['has']('ImageInsertUI')&&_0x2dfb89['commands']['get']('uploadcare')&&Object['entries'](_0x24066b)['forEach'](([_0x16f286,_0x4c2ac6])=>{_0x2dfb89['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x16f286,'observable':()=>_0x4ca22d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4c2ac6),'formViewCreator':()=>this['_createDropdownButtons'](_0x4c2ac6),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4c2ac6),'override':'assetManager'!==_0x16f286});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x9fa9cd){const {locale:_0x40c250}=this['editor'];return _0x9fa9cd['map'](_0x11bbf9=>{const _0x2fc51d=_(_0x40c250,_0x11bbf9,'Insert');switch(_0x11bbf9){case i['Local']:return{'icon':_0x500d6d,'type':i['Local'],..._0x2fc51d};case i['URL']:return{'icon':_0x2d3591,'type':i['URL'],..._0x2fc51d};case i['Dropbox']:return{'icon':_0x19860f,'type':i['Dropbox'],..._0x2fc51d};case i['Facebook']:return{'icon':_0x5ad33c,'type':i['Facebook'],..._0x2fc51d};case i['GDrive']:return{'icon':_0x14caca,'type':i['GDrive'],..._0x2fc51d};case i['GPhotos']:return{'icon':_0xa52fd2,'type':i['GPhotos'],..._0x2fc51d};case i['OneDrive']:return{'icon':_0x467635,'type':i['OneDrive'],..._0x2fc51d};}});}['_getIntegrationKey'](_0x20ac47){switch(_0x20ac47){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4e4e40,_0x59d368){const _0x11a67e=this['editor'],_0x109cd3=new _0x4e4e40(_0x11a67e['locale']),_0x5b7291=_0x11a67e['commands']['get']('uploadcare');return _0x109cd3['bind']('isEnabled')['to'](_0x5b7291),_0x109cd3['on']('execute',()=>{_0x5b7291['execute'](_0x59d368);}),_0x109cd3;}['_createToolbarButton'](_0x37d845){const {locale:_0x1b4e47}=this['editor'],_0x54e260=this['editor']['plugins']['get']('ImageInsertUI'),_0x508c99=_0x37d845[0x0],_0x547a1a=this['_createButton'](_0x481b99,_0x508c99['type']);return _0x547a1a['icon']=_0x508c99['icon'],_0x547a1a['bind']('label')['to'](_0x54e260,'isImageSelected',_0x3f48fa=>_(_0x1b4e47,_0x508c99['type'],_0x3f48fa?'Replace':'Insert')['text']),_0x547a1a['tooltip']=!0x0,_0x547a1a;}['_createDropdownButtons'](_0x5eaf8f){const {locale:_0x47bac4}=this['editor'],_0x4739c5=this['editor']['plugins']['get']('ImageInsertUI');return _0x5eaf8f['map'](_0x38d0a1=>{const _0x1fbbc7=this['_createButton'](_0x481b99,_0x38d0a1['type']);return _0x1fbbc7['withText']=!0x0,_0x1fbbc7['icon']=_0x38d0a1['icon'],_0x1fbbc7['bind']('label')['to'](_0x4739c5,'isImageSelected',_0x1a9ef3=>_(_0x47bac4,_0x38d0a1['type'],_0x1a9ef3?'Replace':'Insert')['text']),_0x1fbbc7;});}['_createMenuBarButtons'](_0x4c357a){return _0x4c357a['map'](_0x5ef149=>{const _0x4c2b26=this['_createButton'](_0x13dd42,_0x5ef149['type']);return _0x4c2b26['icon']=_0x5ef149['icon'],_0x4c2b26['label']=_0x5ef149['shortText'],_0x4c2b26;});}}class F extends _0x1a6940{['focusTracker'];['focusCycler'];constructor(_0x597c41){super(_0x597c41),this['focusTracker']=new _0x23e284(),this['focusCycler']=new _0x3e1ba9({'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(_0x8d0c21,_0x932cc3){super(_0x8d0c21),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-'+_0x932cc3}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2065b4,_0x11fc9f){const _0x57a9ba=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4f6055=>_0x4f6055<=_0x11fc9f)['map'](_0x529eb9=>_0x2065b4['replace'](/\/$/,'')+'/-/resize/'+_0x529eb9+'x/\x20'+_0x529eb9+'w');return{'imageFallbackUrl':_0x2065b4,'imageSources':[{'srcset':_0x57a9ba['join'](',\x20'),'sizes':'(max-width:\x20'+_0x11fc9f+'px)\x20100vw,\x20'+_0x11fc9f+'px','type':'image/webp'}]};}function S(_0x18e794,_0xd87c7d,_0x2d4b33){const _0x4b1bf4=_0x18e794['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4b1bf4?parseInt(_0x4b1bf4[0x1],0xa):_0xd87c7d,'height':_0x4b1bf4?parseInt(_0x4b1bf4[0x2],0xa):_0x2d4b33};}function p(_0x166126,_0x469240){const _0x49b08b=new(_0x5a0c69())(),_0x354f50=_0x166126['plugins']['get']('ImageUtils'),_0x313440=_0x166126['editing']['mapper']['toViewElement'](_0x469240),_0x21c96f=_0x354f50['findViewImgElement'](_0x313440),_0x2926b4=_0x166126['editing']['view']['domConverter']['viewToDom'](_0x21c96f),_0x2ed907=_0x469240['getAttribute']('width'),_0x165bd8=_0x469240['getAttribute']('height'),_0x2ab35f='image-processing';_0x166126['editing']['view']['change'](_0xd42c36=>{_0xd42c36['addClass'](_0x2ab35f,_0x313440),_0xd42c36['setStyle']('aspect-ratio',_0x2ed907+'/'+_0x165bd8,_0x21c96f);}),_0x49b08b['listenTo'](_0x2926b4,'load',()=>{_0x49b08b['stopListening'](_0x2926b4,'load'),_0x166126['editing']['view']['change'](_0x5110a2=>{_0x5110a2['removeClass'](_0x2ab35f,_0x313440),_0x5110a2['removeStyle']('aspect-ratio',_0x21c96f);});});}function G(_0x4e9c22){if(Array['isArray'](_0x4e9c22)){const _0x514e4c=_0x4e9c22['map'](G);return _0x5e4f8c=>_0x514e4c['some'](_0x21c768=>_0x21c768(_0x5e4f8c));}if('origin'==_0x4e9c22){const _0xfef627=_0x3d29e5['window']['location']['origin'];return _0xce64dc=>new URL(_0xce64dc,_0x3d29e5['document']['baseURI'])['origin']==_0xfef627;}return'function'==typeof _0x4e9c22?_0x4e9c22:_0x4e9c22 instanceof RegExp?_0x33ed64=>!(!_0x33ed64['match'](_0x4e9c22)&&!_0x33ed64['replace'](/^https?:\/\//,'')['match'](_0x4e9c22)):()=>!0x1;}function A(_0x28678e,_0x5754ee){return _0x2db35b(_0x28678e['target'])['includes'](_0x5754ee);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4a714(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5dc744,_0x5021b1,_0x4b5bf0){super(),this['_editor']=_0x5dc744,this['_editing']=_0x5021b1,this['_dialog']=_0x5dc744['plugins']['get'](_0x3c85e5),this['_api']=_0x5021b1['ctxElement']['getAPI'](),this['_type']=_0x4b5bf0,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:_0x3809a3,model:_0xe15025}=this['_editor'],_0x5cdfc4=_0xe15025['document']['selection']['getSelectedElement'](),_0x7016a7=_0x5cdfc4&&(_0x5cdfc4['is']('element','imageBlock')||_0x5cdfc4['is']('element','imageInline'));this['_formView']=new x(_0x3809a3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x500d6d,'title':_(_0x3809a3,this['_type'],_0x7016a7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x12577b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1118db=>!A(_0x1118db,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x226c93}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3ddb02=>{const _0x2bb30f=_0x226c93['length'];for(const _0x5c69f5 of _0x226c93){const _0x3a6bce=_0x5c69f5===_0x226c93[_0x2bb30f-0x1],{cdnUrl:_0xc8349d,fileInfo:_0x6475e7}=_0x5c69f5;if(!_0xc8349d||!_0x6475e7)continue;const {width:_0x4bdd97,height:_0x37e42e}=_0x6475e7['imageInfo'],_0x3a5548=S(_0xc8349d,_0x4bdd97,_0x37e42e),_0x240ef2=C(_0xc8349d,_0x3a5548['width']),_0x54905b={'id':_0x6475e7['uuid'],'type':'image','attributes':{'imageDimension':_0x3a5548,..._0x240ef2}};this['_insertAsset'](_0x54905b,_0x3a6bce,_0x3ddb02);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xfd23d5=>{'idle'===_0xfd23d5['detail']['status']&&!_0xfd23d5['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5607e6,_0x40d664,_0x1b8e66){const _0x5490b3=this['_editor']['model']['document']['selection'],_0x3e7ae1=_0x5490b3['getSelectedElement'](),_0x572ade=!(!_0x3e7ae1||!_0x3e7ae1['is']('element','imageInline'));_0x1b8e66['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5607e6,_0x572ade),_0x40d664||_0x1b8e66['setSelection'](_0x5490b3['getLastPosition']());}['_insertImage'](_0x40988b,_0x4ba599){const _0x393aac=this['_editor'],{imageDimension:_0x1be42f,imageFallbackUrl:_0x454cdc,imageSources:_0x68331f}=_0x40988b['attributes'];_0x393aac['execute']('insertImage',{'imageType':_0x4ba599?'imageInline':null,'source':{'uploadcareImageId':_0x40988b['id'],'src':_0x454cdc,'sources':_0x68331f,..._0x1be42f}});}}class w extends _0x548c28{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c85e5,o];}constructor(_0x98dfb7){super(_0x98dfb7),this['_editing']=_0x98dfb7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2b005e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2b005e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xd64b91,..._0x5bb8af}){return _0x55c785(_0xd64b91,_0x5bb8af);}static['getInfo'](_0x2fdfa3,_0x52be6c){return _0x1c02cf(_0x2fdfa3,_0x52be6c);}}class f extends _0x57fbe8{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3fde5e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x80d338=this['editor'];if(!!!_0x80d338['config']['get']('uploadcare'))return;_0x80d338['plugins']['get'](_0x3fde5e)['createUploadAdapter']=_0x422f47=>new k(_0x422f47,_0x80d338),_0x80d338['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x587410,{imageElement:_0x3b0907,data:_0x5eb7f8})=>{_0x80d338['model']['change'](_0x1b18b2=>{_0x1b18b2['setAttribute']('uploadcareImageId',_0x5eb7f8['uploadcareImageId'],_0x3b0907);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2c5d33,_0x37a4d1){this['loader']=_0x2c5d33,this['editor']=_0x37a4d1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xf13170=await this['loader']['file'];return j['upload']({'file':_0xf13170,'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':_0x96f52e=>{_0x96f52e&&_0x96f52e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x96f52e['value']);}})['then'](async _0x3c6667=>{const {imageFallbackUrl:_0x294004,imageSources:_0x4403ba}=C(_0x3c6667['cdnUrl'],_0x3c6667['imageInfo']['width']);return{'uploadcareImageId':_0x3c6667['uuid'],'default':_0x294004,'sources':_0x4403ba};})['catch'](()=>{const _0x56af4d=t('Cannot\x20upload\x20file:')+('\x20'+_0xf13170['name']+'.');return Promise['reject'](_0x56af4d);});}['abort'](){this['controller']['abort']();}}class o extends _0x57fbe8{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3c85e5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x17cf47){super(_0x17cf47),this['ucContextId']=_0x4f6e7f();}['init'](){const _0x37b6ce=this['editor'];_0x37b6ce['commands']['add']('uploadcare',new w(_0x37b6ce));}['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 _0x3ae32a=_0x3d29e5['document']['querySelector']('input[uploadcare-file-input]');_0x3ae32a&&_0x3ae32a['remove']();}),async function(_0x2d28c7){const _0x51d6f2=_0x2ac352([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]),_0x1a9d7c=0x535f8c3a,_0x4992e0=0x5358fa9a^_0x1a9d7c,_0x130cf2=window[_0x2ac352([0x44,0x61,0x74,0x65])][_0x2ac352([0x6e,0x6f,0x77])](),_0x4d98ad=_0x2d28c7[_0x2ac352([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x263d99=new window[(_0x2ac352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b3587=>{_0x4d98ad[_0x2ac352([0x6f,0x6e,0x63,0x65])](_0x2ac352([0x72,0x65,0x61,0x64,0x79]),_0x3b3587);}),_0x1f79f3={[_0x2ac352([0x6b,0x74,0x79])]:_0x2ac352([0x45,0x43]),[_0x2ac352([0x75,0x73,0x65])]:_0x2ac352([0x73,0x69,0x67]),[_0x2ac352([0x63,0x72,0x76])]:_0x2ac352([0x50,0x2d,0x32,0x35,0x36]),[_0x2ac352([0x78])]:_0x2ac352([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]),[_0x2ac352([0x79])]:_0x2ac352([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]),[_0x2ac352([0x61,0x6c,0x67])]:_0x2ac352([0x45,0x53,0x32,0x35,0x36])},_0x554307=_0x4d98ad[_0x2ac352([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ac352([0x67,0x65,0x74])](_0x2ac352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40624f(){let _0xceccb0,_0x11c1aa=null,_0x3bb01c=null;try{if(_0x554307==_0x2ac352([0x47,0x50,0x4c]))return _0x2ac352([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xceccb0=_0xc7c182(),!_0xceccb0)return _0x2ac352([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xceccb0[_0x2ac352([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3bb01c=_0x1435f9(_0xceccb0[_0x2ac352([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xceccb0[_0x2ac352([0x6a,0x74,0x69])])),await _0x36a5d4()?_0x34c49d()?_0x198cbc()?_0x2ac352([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29980d()?(_0xceccb0[_0x2ac352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ac352([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11c1aa=_0x4e4d38(_0x2ac352([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xceccb0[_0x2ac352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ac352([0x74,0x72,0x69,0x61,0x6c])&&(_0x11c1aa=_0x4e4d38(_0x2ac352([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e57a2()):_0x2ac352([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ac352([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ac352([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2ac352([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x198cbc(){const _0x17774a=[_0x2ac352([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ac352([0x74,0x72,0x69,0x61,0x6c])][_0x2ac352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xceccb0[_0x2ac352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x130cf2/0x3e8:0xe10*_0x4992e0;return _0xceccb0[_0x2ac352([0x65,0x78,0x70])]<_0x17774a;}function _0x34c49d(){const _0x555256=_0xceccb0[_0x2ac352([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x555256&&(!!_0x555256[_0x2ac352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac352([0x2a]))||!!_0x555256[_0x2ac352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac352([0x55,0x50,0x4c,0x43])));}function _0x29980d(){const _0x495b5a=_0xceccb0[_0x2ac352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x495b5a||0x0==_0x495b5a[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ce5c5}=new URL(window[_0x2ac352([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x495b5a[_0x2ac352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ce5c5))return!0x0;const _0x1129f6=_0x4ce5c5[_0x2ac352([0x73,0x70,0x6c,0x69,0x74])](_0x2ac352([0x2e]));return _0x495b5a[_0x2ac352([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b8cfd=>_0x1b8cfd[_0x2ac352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac352([0x2a])))[_0x2ac352([0x6d,0x61,0x70])](_0x42959e=>_0x42959e[_0x2ac352([0x73,0x70,0x6c,0x69,0x74])](_0x2ac352([0x2e])))[_0x2ac352([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x395598=>_0x395598[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1129f6[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ac352([0x6d,0x61,0x70])](_0x9b59c9=>Array(_0x1129f6[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x9b59c9[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ac352([0x66,0x69,0x6c,0x6c])](_0x9b59c9[0x0]===_0x2ac352([0x2a])?_0x2ac352([0x2a]):'')[_0x2ac352([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x9b59c9))[_0x2ac352([0x73,0x6f,0x6d,0x65])](_0x42a4ec=>_0x1129f6[_0x2ac352([0x65,0x76,0x65,0x72,0x79])]((_0x434dd9,_0x261e9f)=>_0x42a4ec[_0x261e9f]===_0x434dd9||_0x42a4ec[_0x261e9f]===_0x2ac352([0x2a])));}function _0x2e57a2(){return _0x11c1aa&&_0x3bb01c?new window[(_0x2ac352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x535ffd,_0xae77c1)=>{_0x11c1aa[_0x2ac352([0x74,0x68,0x65,0x6e])](_0x535ffd,_0xae77c1),_0x3bb01c[_0x2ac352([0x74,0x68,0x65,0x6e])](_0x2ed6c5=>{_0x2ed6c5!=_0x2ac352([0x56,0x61,0x6c,0x69,0x64])&&_0x535ffd(_0x2ed6c5);},_0xae77c1);}):_0x11c1aa||_0x3bb01c||_0x2ac352([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1435f9(_0x488085,_0x3715f4){return new window[(_0x2ac352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a8bbf=>{if(_0x5e1083())return _0x1a8bbf(_0x2ac352([0x56,0x61,0x6c,0x69,0x64]));_0x117d4b(),_0x4d98ad[_0x2ac352([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ac352([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x68f8e9=!0x1;const _0x24e108=_0x4f6e7f();function _0x224865(_0x46c35c){return!!_0x46c35c&&(typeof _0x46c35c===_0x2ac352([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46c35c===_0x2ac352([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46c35c[_0x2ac352([0x74,0x68,0x65,0x6e])]===_0x2ac352([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46c35c[_0x2ac352([0x63,0x61,0x74,0x63,0x68])]===_0x2ac352([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xdc97eb(_0x295645){_0x388573(_0x295645)[_0x2ac352([0x74,0x68,0x65,0x6e])](_0x414e60=>{if(!_0x414e60||_0x414e60[_0x2ac352([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ac352([0x6f,0x6b]))return _0x2ac352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x126850(_0x4f4e62(_0x24e108+_0x3715f4))!=_0x414e60[_0x2ac352([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ac352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ac352([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ac352([0x74,0x68,0x65,0x6e])](_0x114ddf=>(_0x52961c(),_0x114ddf),()=>{const _0x3a630a=_0x48a409();return null==_0x3a630a?(_0x52961c(),_0x2ac352([0x56,0x61,0x6c,0x69,0x64])):_0x2ac352(_0x130cf2-_0x3a630a>(0x7753083a^_0x1a9d7c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ac352([0x74,0x68,0x65,0x6e])](_0x1a8bbf)[_0x2ac352([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1a8bbf(_0x2ac352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x30ca72=0x536962ba^_0x1a9d7c;function _0x52961c(){const _0x4cf097=_0x2ac352([0x6c,0x6c,0x63,0x74,0x2d])+_0x126850(_0x4f4e62(_0x488085)),_0x1c3167=_0xf63c1d(_0x126850(window[_0x2ac352([0x4d,0x61,0x74,0x68])][_0x2ac352([0x63,0x65,0x69,0x6c])](_0x130cf2/_0x30ca72)));window[_0x2ac352([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ac352([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4cf097,_0x1c3167);}function _0x48a409(){const _0x1132ca=_0x2ac352([0x6c,0x6c,0x63,0x74,0x2d])+_0x126850(_0x4f4e62(_0x488085)),_0x1ba288=window[_0x2ac352([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ac352([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1132ca);return _0x1ba288?window[_0x2ac352([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf63c1d(_0x1ba288),0x10)*_0x30ca72:null;}function _0x388573(_0x52cfd4){return new window[(_0x2ac352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52e2fc,_0x141c50)=>{_0x52cfd4[_0x2ac352([0x74,0x68,0x65,0x6e])](_0x52e2fc,_0x141c50),window[_0x2ac352([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x141c50,0x535e58fa^_0x1a9d7c);});}}_0x4d98ad[_0x2ac352([0x6f,0x6e])](_0x2ac352([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x33be18,_0x525036)=>{if(_0x525036[0x0]!=_0x488085)return _0x1a8bbf(_0x2ac352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x525036[0x1]={..._0x525036[0x1],[_0x2ac352([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24e108};},{[_0x2ac352([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ac352([0x68,0x69,0x67,0x68])}),_0x4d98ad[_0x2ac352([0x6f,0x6e])](_0x2ac352([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x266948=>{_0x224865(_0x266948[_0x2ac352([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x68f8e9=!0x0,_0xdc97eb(_0x266948[_0x2ac352([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ac352([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ac352([0x6c,0x6f,0x77])}),_0x263d99[_0x2ac352([0x74,0x68,0x65,0x6e])](()=>{_0x68f8e9||_0x1a8bbf(_0x2ac352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e1083(){return _0x4d98ad[_0x2ac352([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ac352([0x76,0x69,0x65,0x77])][_0x2ac352([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ac352([0x61,0x75,0x74,0x6f]);}function _0x117d4b(){_0x4d98ad[_0x2ac352([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ac352([0x76,0x69,0x65,0x77])][_0x2ac352([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ac352([0x61,0x75,0x74,0x6f]);}}function _0x4e4d38(_0xf77ae9){const _0x756e91=[new window[(_0x2ac352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x72157a=>setTimeout(_0x72157a,0x5356b2f6^_0x1a9d7c)),_0x263d99[_0x2ac352([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ac352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b6d3c=>{let _0x325848=0x0;_0x4d98ad[_0x2ac352([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ac352([0x6f,0x6e])](_0x2ac352([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c2cf2,_0x43dc87)=>{_0x43dc87[0x0][_0x2ac352([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x325848++,_0x325848==(0x535f8dc2^_0x1a9d7c)&&(_0x3b6d3c(),_0x2c2cf2[_0x2ac352([0x6f,0x66,0x66])]());});}))];return window[_0x2ac352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ac352([0x72,0x61,0x63,0x65])](_0x756e91)[_0x2ac352([0x74,0x68,0x65,0x6e])](()=>_0xf77ae9);}async function _0x4c6dc2(){await _0x263d99,_0x4d98ad[_0x2ac352([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ac352([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x16489a,_0x4d98ad[_0x2ac352([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ac352([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x16489a,_0x4d98ad[_0x2ac352([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ac352([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x567649(_0x236c2f){const _0x2addcb=_0x3bff2c();_0x4d98ad[_0x2addcb]=_0x2ac352([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x236c2f,_0x236c2f!=_0x2ac352([0x56,0x61,0x6c,0x69,0x64])&&_0x4c6dc2();}function _0x3bff2c(){const _0x378e87=window[_0x2ac352([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ac352([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ac352([0x6e,0x6f,0x77])]())[_0x2ac352([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ac352([0x2e]),'');let _0x2ae853=_0x2ac352([0x68]);for(let _0x1a690d=0x0;_0x1a690d<_0x378e87[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a690d+=0x2){let _0x3a2a35=window[_0x2ac352([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x378e87[_0x2ac352([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a690d,_0x1a690d+0x2));_0x3a2a35>=_0x51d6f2[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3a2a35-=_0x51d6f2[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ae853+=_0x51d6f2[_0x3a2a35];}return _0x2ae853;}function _0xc7c182(){const _0x46639e=_0x554307[_0x2ac352([0x73,0x70,0x6c,0x69,0x74])](_0x2ac352([0x2e]));if(0x3!=_0x46639e[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x517da8(_0x46639e[0x1]);function _0x517da8(_0x57b735){const _0x2addad=_0x129c57(_0x57b735);return _0x2addad&&_0xe801f4()?_0x2addad:null;function _0xe801f4(){const _0xc1f375=_0x2addad[_0x2ac352([0x6a,0x74,0x69])],_0x2cf88f=window[_0x2ac352([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc1f375[_0x2ac352([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc1f375[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5a219d={..._0x2addad,[_0x2ac352([0x6a,0x74,0x69])]:_0xc1f375[_0x2ac352([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc1f375[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5a219d[_0x2ac352([0x76,0x63])],_0x4f4e62(_0x5a219d)==_0x2cf88f;}}}async function _0x36a5d4(){let _0x4a4eaa=!0x0;try{const _0x23ee81=_0x554307[_0x2ac352([0x73,0x70,0x6c,0x69,0x74])](_0x2ac352([0x2e])),[_0x575745,_0x48f5bd,_0x5dbe64]=_0x23ee81;return _0x242256(_0x575745),await _0x1fd360(_0x575745,_0x48f5bd,_0x5dbe64),_0x4a4eaa;}catch{return!0x1;}function _0x242256(_0x2e7ff1){const _0x1f6359=_0x129c57(_0x2e7ff1);_0x1f6359&&_0x1f6359[_0x2ac352([0x61,0x6c,0x67])]==_0x2ac352([0x45,0x53,0x32,0x35,0x36])||(_0x4a4eaa=!0x1);}async function _0x1fd360(_0x237b15,_0x4abfb0,_0x37d23f){const _0xb137c3=window[_0x2ac352([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ac352([0x66,0x72,0x6f,0x6d])](_0x3639cc(_0x37d23f),_0x2079e2=>_0x2079e2[_0x2ac352([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57f176=new window[(_0x2ac352([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ac352([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x237b15+_0x2ac352([0x2e])+_0x4abfb0),_0x23f607=window[_0x2ac352([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ac352([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23f607)return;const _0x8b561e=await _0x23f607[_0x2ac352([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ac352([0x6a,0x77,0x6b]),_0x1f79f3,{[_0x2ac352([0x6e,0x61,0x6d,0x65])]:_0x2ac352([0x45,0x43,0x44,0x53,0x41]),[_0x2ac352([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ac352([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ac352([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23f607[_0x2ac352([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ac352([0x6e,0x61,0x6d,0x65])]:_0x2ac352([0x45,0x43,0x44,0x53,0x41]),[_0x2ac352([0x68,0x61,0x73,0x68])]:{[_0x2ac352([0x6e,0x61,0x6d,0x65])]:_0x2ac352([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8b561e,_0xb137c3,_0x57f176)||(_0x4a4eaa=!0x1);}}function _0x129c57(_0xd05830){return _0xd05830[_0x2ac352([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ac352([0x65,0x79]))?JSON[_0x2ac352([0x70,0x61,0x72,0x73,0x65])](_0x3639cc(_0xd05830)):null;}function _0x3639cc(_0x44a73f){return window[_0x2ac352([0x61,0x74,0x6f,0x62])](_0x44a73f[_0x2ac352([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ac352([0x2b]))[_0x2ac352([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ac352([0x2f])));}function _0x4f4e62(_0x2ebc84){let _0x2d3115=0x1505;function _0x2484ac(_0x2aea50){for(let _0x3a99f8=0x0;_0x3a99f8<_0x2aea50[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a99f8++){const _0x5ee7df=_0x2aea50[_0x2ac352([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a99f8);_0x2d3115=(_0x2d3115<<0x5)+_0x2d3115+_0x5ee7df,_0x2d3115&=_0x2d3115;}}function _0x29f35e(_0x1ee506){Array[_0x2ac352([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ee506)?_0x1ee506[_0x2ac352([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x29f35e):_0x1ee506&&typeof _0x1ee506==_0x2ac352([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ac352([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ee506)[_0x2ac352([0x73,0x6f,0x72,0x74])]()[_0x2ac352([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5290fd,_0x33dc82])=>{_0x2484ac(_0x5290fd),_0x29f35e(_0x33dc82);}):_0x2484ac(window[_0x2ac352([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ee506));}return _0x29f35e(_0x2ebc84),_0x2d3115>>>0x0;}function _0x126850(_0x37c70a){return _0x37c70a[_0x2ac352([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ac352([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ac352([0x30]));}function _0xf63c1d(_0x1a7432){return _0x1a7432[_0x2ac352([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ac352([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ac352([0x6a,0x6f,0x69,0x6e])]('');}function _0x16489a(){}function _0x2ac352(_0x3adf2a){return _0x3adf2a['map'](_0x90f6e=>String['fromCharCode'](_0x90f6e))['join']('');}_0x567649(await _0x40624f());}(this);}['_initSchema'](){const _0x4841b0=this['editor']['model']['schema'];_0x4841b0['isRegistered']('imageBlock')&&_0x4841b0['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4841b0['isRegistered']('imageInline')&&_0x4841b0['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3975e0=this['editor'];_0x3975e0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3975e0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x44205c=>_0x44205c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x30e117=_0x3975e0['commands']['get']('replaceImageSource');_0x30e117&&this['listenTo'](_0x30e117,'cleanupImage',(_0x388c8f,[_0x285a97,_0x357662])=>{_0x285a97['removeAttribute']('uploadcareImageId',_0x357662);});}['_initConfig'](){const _0x24aa5f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1c96eb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4cf48b(_0x3d29e5['document'],'uc-config',{..._0x24aa5f,'pubkey':_0x1c96eb,'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']=_0x1eb31a=>{if('closeMax'==_0x1eb31a)return'#uc-icon-arrow-down';},_0x3d29e5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4cf48b(_0x3d29e5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3d29e5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x73c8b8=this['editor']['commands']['get']('insertImage');_0x73c8b8&&this['listenTo'](_0x73c8b8,'execute',()=>{const _0x11d565=this['editor']['model']['document']['selection']['getSelectedElement']();_0x11d565&&_0x11d565['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x11d565);});});const _0x40e86c=this['editor']['commands']['get']('uploadcareImageReplace');_0x40e86c&&this['listenTo'](_0x40e86c,'execute',()=>{const _0x3c6ab2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c6ab2&&_0x3c6ab2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3c6ab2);});});}}class tt extends _0x57fbe8{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd7d24e){super(_0xd7d24e),_0xd7d24e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x326106['defineComponents'](_0x326106);}}class ii extends _0x1a6940{constructor(_0x1a6bae){super(_0x1a6bae);const t=_0x1a6bae['t'],_0x4216f3=this['bindTemplate'],_0x173196=new _0x437864();_0x173196['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':[_0x173196,{'text':_0x4216f3['to']('imageUploadProgress',_0x413557=>t('Loading\x20image...')+'\x20('+(_0x413557||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 _0x1a6940{constructor(_0x3511c7){super(_0x3511c7);const t=_0x3511c7['t'];this['set']('errorType',null);const _0x21fe46=new _0x481b99(_0x3511c7);_0x21fe46['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x21fe46['withText']=!0x0,_0x21fe46['class']='ck-button-action',_0x21fe46['on']('execute',()=>{this['fire']('retry');}),_0x21fe46['bind']('isVisible')['to'](this,'errorType',_0x443b75=>'NotFound'!==_0x443b75);const _0x133f37=new _0x3924ec();_0x133f37['content']=_0x3ea7a4,_0x133f37['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x26c7c1=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':[_0x133f37,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x26c7c1['to']('errorType',_0x4a6312=>t('NotFound'!==_0x4a6312?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x21fe46]},{'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 _0x1a6940{constructor(_0x49db85,_0x4bedf1){super(_0x49db85);const _0xa383b8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4bedf1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xa383b8['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xc60104,_0x3c83b2,_0x16b2f2){super(_0xc60104),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xc60104),this['_errorView']=new ti(_0xc60104),this['_editingView']=new ei(_0xc60104,_0x16b2f2),this['_focusableView']=new _0x1a6940(_0xc60104),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3c83b2),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'],_0x27afc8=>{this['_addUploadcareImageEditorListeners'](_0x27afc8);});}),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'](_0x5afc5f,_0x123f34){const _0x3c02ae='uc-cloud-image-editor',_0x25bc4b=_0x5afc5f['querySelector'](_0x3c02ae);if(_0x25bc4b)return _0x123f34(_0x25bc4b);const _0x1688e4=new MutationObserver(_0x559ceb=>{const _0xf7b2b8=_0x559ceb['filter'](_0x47f912=>_0x47f912['target']===_0x5afc5f&&_0x47f912['addedNodes']['length']>0x0&&_0x47f912['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3c02ae);_0xf7b2b8['length']&&(_0x1688e4['disconnect'](),_0x123f34(_0xf7b2b8[0x0]['addedNodes'][0x0]));});_0x1688e4['observe'](_0x5afc5f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4cc98b){_0x4cc98b['addEventListener']('apply',_0x120b34=>{this['fire']('apply',{'imageSrc':_0x120b34['detail']['cdnUrl']});}),_0x4cc98b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4a714(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x43cb0e,_0xd26f33,_0x4f3387){super(),this['_editor']=_0x43cb0e,this['_dialog']=_0xd26f33,this['_imageElement']=_0x4f3387,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 _0x4275fb=this['_imageElement'],_0x560d4e=_0x4275fb['getAttribute']('uploadcareImageId'),_0x3c656c=_0x4275fb['getAttribute']('src');if(_0x560d4e)await this['_loadImageInfo'](_0x560d4e,_0x3c656c);else{if(this['_imageCache']['has'](_0x3c656c)){const _0x28ab5d=this['_imageCache']['get'](_0x3c656c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x28ab5d['url'],this['imageDimension']=_0x28ab5d['dimension'],this['imageId']=_0x28ab5d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5c724d}=this['_editor'],t=_0x5c724d['t'],_0x5e979b=new X(_0x5c724d,this['imageStatus'],this['_attributes']);_0x5e979b['bind']('status')['to'](this,'imageStatus'),_0x5e979b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5e979b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5e979b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5e979b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x433f0e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5e979b,'position':_0x12577b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5e979b['focus']();},'onHide':()=>{_0x5e979b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51a9d7=>!A(_0x51a9d7,_0x5e979b['element'])}});}['_loadImageInfo'](_0x200932,_0x22cc85){return j['getInfo'](_0x200932,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x409c53=>{const {width:_0x30c5b8,height:_0x457245}=_0x409c53['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x22cc85,this['imageDimension']={'width':_0x30c5b8,'height':_0x457245},this['imageId']=_0x200932;})['catch'](_0x4aa413=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4aa413['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x34c38b,_0x21f800){return this['_getImageAsFile'](_0x34c38b)['then'](_0x4acb13=>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':_0x21f800['signal'],'file':_0x4acb13,'onProgress':_0x19a3b9=>{_0x19a3b9&&_0x19a3b9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x19a3b9['value']));}}))['then'](_0x343531=>{const {width:_0x41afdf,height:_0x2f4408}=_0x343531['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x343531['cdnUrl'],this['imageDimension']={'width':_0x41afdf,'height':_0x2f4408},this['imageId']=_0x343531['uuid'],this['imageUploadProgress']=null;const _0x478acf=_0x34c38b['getAttribute']('src');this['_imageCache']['set'](_0x478acf,{'id':_0x343531['uuid'],'url':_0x343531['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xa98e25=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xa98e25['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x16d001,_0x127d92){_0x16d001['on']('apply',(_0xb70c17,_0x4c0398)=>{this['_replaceImage'](_0x127d92,_0x4c0398['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x16d001['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x16d001['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x6ca769,_0x2a03b5,_0x79ad88){const _0x6759c0=this['_editor'],{width:_0x428210,height:_0xe898d2}=S(_0x2a03b5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4b55dd,imageSources:_0x27fdcf}=C(_0x2a03b5,_0x428210);_0x6759c0['model']['change'](_0x2d7ed1=>{if('$graveyard'===_0x6ca769['root']['rootName']){_0x6759c0['execute']('insertImage',{'imageType':_0x6ca769['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x6ca769['getAttributes']()),'uploadcareImageId':_0x79ad88,'src':_0x4b55dd,'sources':_0x27fdcf,'width':_0x428210,'height':_0xe898d2}});const _0x3082c9=_0x6ca769['getChildren']();_0x6ca769=_0x6759c0['model']['document']['selection']['getSelectedElement']();for(const _0x2b4c05 of _0x3082c9)_0x2d7ed1['append'](_0x2d7ed1['cloneElement'](_0x2b4c05),_0x6ca769);}else _0x2d7ed1['setSelection'](_0x6ca769,'on'),_0x6759c0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x6ca769['getAttributes']()),'uploadcareImageId':_0x79ad88,'src':_0x4b55dd,'sources':_0x27fdcf,'width':_0x428210,'height':_0xe898d2},_0x6ca769);_0x2d7ed1['setSelection'](_0x6ca769,'on');});}async['_getImageAsFile'](_0x35f136){const _0x4b92af=_0x3d29e5['window'],_0x24a3c4=_0x3d29e5['document']['location']['href'],_0xedf5f5=new _0x4b92af['URL'](_0x35f136['getAttribute']('src'),_0x24a3c4);if('data:'===_0xedf5f5['protocol']){const _0x325ff0=_0xedf5f5['href']['split'](','),_0x2b1bba=_0x325ff0[0x0]['match'](/:(.*?);/)[0x1],_0x5a6422=_0x2b1bba['split']('/')[0x1],_0x343aea=_0x4b92af['atob'](_0x325ff0[_0x325ff0['length']-0x1]);let _0x3b9b11=_0x343aea['length'];const _0x2844a8=new _0x4b92af['Uint8Array'](_0x3b9b11);for(;_0x3b9b11--;)_0x2844a8[_0x3b9b11]=_0x343aea['charCodeAt'](_0x3b9b11);return new _0x4b92af['File']([_0x2844a8],'image.'+_0x5a6422,{'type':_0x2b1bba});}const _0x4e7d89=_0xedf5f5['href']['split']('/'),_0x1b8f3c=_0x4e7d89[_0x4e7d89['length']-0x1],_0x49b569=_0x1b8f3c['split']('.')[0x1];return _0x4b92af['fetch'](_0xedf5f5['href'])['then'](_0x2b18a0=>_0x2b18a0['clone']()['blob']())['then'](_0x2656d8=>new _0x4b92af['File']([_0x2656d8],_0x1b8f3c,{'type':'image/'+_0x49b569}));}}class O extends _0x548c28{['imageEditController'];static get['requires'](){return[_0x3c85e5];}['_isEditable'];constructor(_0x27d73c){super(_0x27d73c),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x146cca){const _0x526293=G(_0x146cca);return _0x47a115=>!(!_0x47a115||!_0x47a115['is']('element','imageBlock')&&!_0x47a115['is']('element','imageInline'))&&(!!_0x47a115['hasAttribute']('uploadcareImageId')||!!_0x47a115['hasAttribute']('src')&&_0x526293(_0x47a115['getAttribute']('src')));}(_0x27d73c['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16dbb9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16dbb9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x6dc984=this['editor']['model']['document']['selection']['getSelectedElement']();_0x6dc984&&(_0x6dc984['is']('element','imageBlock')||_0x6dc984['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x3c85e5),_0x6dc984),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x548c28{['refresh'](){const _0x5dccf4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5dccf4&&(_0x5dccf4['is']('element','imageBlock')||_0x5dccf4['is']('element','imageInline')));}['execute'](_0x329dca){const _0x58c5aa=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x281f8d=>{_0x281f8d['setAttributes'](_0x329dca,_0x58c5aa),_0x281f8d['removeAttribute']('srcset',_0x58c5aa),_0x281f8d['removeAttribute']('sizes',_0x58c5aa);});}}class m extends _0x57fbe8{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xa21cf6,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x37c70c}=this;_0x37c70c['commands']['add']('uploadcareImageEdit',new O(_0x37c70c)),_0x37c70c['commands']['add']('uploadcareImageReplace',new R(_0x37c70c));}}class g extends _0x57fbe8{['_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 _0x43b55e=this['editor'];_0x43b55e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x358f6a=>{const _0x341526=_0x43b55e['commands']['get']('uploadcareImageEdit'),_0x275ecf=new _0x481b99(_0x358f6a),t=_0x358f6a['t'];return _0x275ecf['set']({'icon':_0x433f0e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x275ecf['bind']('isEnabled')['to'](_0x341526),_0x275ecf['bind']('isOn')['to'](_0x341526,'isActive'),this['listenTo'](_0x275ecf,'execute',()=>{_0x43b55e['execute']('uploadcareImageEdit'),_0x43b55e['editing']['view']['focus']();}),_0x275ecf;}),this['_initConfig']();}['_initConfig'](){const _0x22f963=_0x4cf48b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x22f963),this['listenTo'](this['editor'],'destroy',()=>{_0x22f963['remove']();});}}class et extends _0x57fbe8{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x217d11=>0x1!=_0x217d11}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1f3a3d=>{const {af:{dictionary:_0x227f8d,getPluralForm:_0x36c7eb}}={'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':_0xbb991f=>0x1!=_0xbb991f}};_0x1f3a3d['af']||={'dictionary':{},'getPluralForm':null},_0x1f3a3d['af']['dictionary']=Object['assign'](_0x1f3a3d['af']['dictionary'],_0x227f8d),_0x1f3a3d['af']['getPluralForm']=_0x36c7eb;})(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':_0x19b9eb=>0x0==_0x19b9eb?0x0:0x1==_0x19b9eb?0x1:0x2==_0x19b9eb?0x2:_0x19b9eb%0x64>=0x3&&_0x19b9eb%0x64<=0xa?0x3:_0x19b9eb%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2e65c1=>{const {ar:{dictionary:_0x2b2113,getPluralForm:_0xafcac9}}={'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':_0x449f1a=>0x0==_0x449f1a?0x0:0x1==_0x449f1a?0x1:0x2==_0x449f1a?0x2:_0x449f1a%0x64>=0x3&&_0x449f1a%0x64<=0xa?0x3:_0x449f1a%0x64>=0xb?0x4:0x5}};_0x2e65c1['ar']||={'dictionary':{},'getPluralForm':null},_0x2e65c1['ar']['dictionary']=Object['assign'](_0x2e65c1['ar']['dictionary'],_0x2b2113),_0x2e65c1['ar']['getPluralForm']=_0xafcac9;})(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':_0x2905e1=>0x1!=_0x2905e1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x500d14=>{const {ast:{dictionary:_0x5d3910,getPluralForm:_0x3806b3}}={'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':_0x2581ee=>0x1!=_0x2581ee}};_0x500d14['ast']||={'dictionary':{},'getPluralForm':null},_0x500d14['ast']['dictionary']=Object['assign'](_0x500d14['ast']['dictionary'],_0x5d3910),_0x500d14['ast']['getPluralForm']=_0x3806b3;})(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':_0x5c452c=>0x1!=_0x5c452c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x36ff8b=>{const {az:{dictionary:_0x5a912e,getPluralForm:_0x14036b}}={'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':_0x536548=>0x1!=_0x536548}};_0x36ff8b['az']||={'dictionary':{},'getPluralForm':null},_0x36ff8b['az']['dictionary']=Object['assign'](_0x36ff8b['az']['dictionary'],_0x5a912e),_0x36ff8b['az']['getPluralForm']=_0x14036b;})(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':_0x3fbbe2=>_0x3fbbe2%0xa==0x1&&_0x3fbbe2%0x64!=0xb?0x0:_0x3fbbe2%0xa>=0x2&&_0x3fbbe2%0xa<=0x4&&(_0x3fbbe2%0x64<0xa||_0x3fbbe2%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xc7feba=>{const {be:{dictionary:_0x1ab3f2,getPluralForm:_0x4b59f0}}={'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':_0x39a214=>_0x39a214%0xa==0x1&&_0x39a214%0x64!=0xb?0x0:_0x39a214%0xa>=0x2&&_0x39a214%0xa<=0x4&&(_0x39a214%0x64<0xa||_0x39a214%0x64>=0x14)?0x1:0x2}};_0xc7feba['be']||={'dictionary':{},'getPluralForm':null},_0xc7feba['be']['dictionary']=Object['assign'](_0xc7feba['be']['dictionary'],_0x1ab3f2),_0xc7feba['be']['getPluralForm']=_0x4b59f0;})(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':_0x2b68a3=>0x1!=_0x2b68a3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3da46f=>{const {bg:{dictionary:_0x2cc615,getPluralForm:_0x27e890}}={'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':_0x1f855e=>0x1!=_0x1f855e}};_0x3da46f['bg']||={'dictionary':{},'getPluralForm':null},_0x3da46f['bg']['dictionary']=Object['assign'](_0x3da46f['bg']['dictionary'],_0x2cc615),_0x3da46f['bg']['getPluralForm']=_0x27e890;})(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':_0x1dfdb1=>0x1!=_0x1dfdb1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2da22a=>{const {bn:{dictionary:_0x4c8cdf,getPluralForm:_0x3e88a2}}={'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':_0x2afa3d=>0x1!=_0x2afa3d}};_0x2da22a['bn']||={'dictionary':{},'getPluralForm':null},_0x2da22a['bn']['dictionary']=Object['assign'](_0x2da22a['bn']['dictionary'],_0x4c8cdf),_0x2da22a['bn']['getPluralForm']=_0x3e88a2;})(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':_0x1cf68f=>_0x1cf68f%0xa==0x1&&_0x1cf68f%0x64!=0xb?0x0:_0x1cf68f%0xa>=0x2&&_0x1cf68f%0xa<=0x4&&(_0x1cf68f%0x64<0xa||_0x1cf68f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2149a1=>{const {bs:{dictionary:_0x55f769,getPluralForm:_0x297e21}}={'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':_0x1e94ea=>_0x1e94ea%0xa==0x1&&_0x1e94ea%0x64!=0xb?0x0:_0x1e94ea%0xa>=0x2&&_0x1e94ea%0xa<=0x4&&(_0x1e94ea%0x64<0xa||_0x1e94ea%0x64>=0x14)?0x1:0x2}};_0x2149a1['bs']||={'dictionary':{},'getPluralForm':null},_0x2149a1['bs']['dictionary']=Object['assign'](_0x2149a1['bs']['dictionary'],_0x55f769),_0x2149a1['bs']['getPluralForm']=_0x297e21;})(window['CKEDITOR_TRANSLATIONS']||={});
|