@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260112.0 → 0.0.0-nightly-20260113.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 _0x57badb,Command as _0x44b713}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4dcfeb,IconGooglePhotos as _0x2eb0b8,IconGoogleDrive as _0x5a091b,IconFacebook as _0x216a39,IconDropbox as _0x125785,IconUploadcareLink as _0x11e48e,IconUploadcareImageUpload as _0x24c625,IconError as _0x485a3c,IconUploadcareImageEdit as _0x5b35e3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x24a979,MenuBarMenuListItemButtonView as _0x2665a6,View as _0x3d5e1f,FocusCycler as _0x371400,Dialog as _0x82f8a,DialogViewPosition as _0x2214a5,SpinnerView as _0x27bc3f,IconView as _0x4523f8,Notification as _0x516827}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xa86f41,DomEmitterMixin as _0x3db1f8,global as _0x354fb1,getAncestors as _0x3f148a,ObservableMixin as _0x3eea9a,uid as _0x15ab9c,createElement as _0x23faf0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x11caee}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x103813,info as _0x22df3f}from'@uploadcare/upload-client';import*as _0x1500fc from'@uploadcare/file-uploader';var i=function(_0x5282d3){return _0x5282d3['Local']='local',_0x5282d3['URL']='url',_0x5282d3['Dropbox']='dropbox',_0x5282d3['GDrive']='gdrive',_0x5282d3['Facebook']='facebook',_0x5282d3['GPhotos']='gphotos',_0x5282d3['OneDrive']='onedrive',_0x5282d3;}({});function _(_0x460983,_0x5b213e,_0x239df7){const t=_0x460983['t'],_0x5d3b7e=_0x460983['t'];switch(_0x5b213e){case i['Local']:return{'text':_0x5d3b7e('Insert'===_0x239df7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5d3b7e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x239df7?_0x5d3b7e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5d3b7e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5b213e;}}class e extends _0x57badb{['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 _0x2de7d9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa6969b;for(const _0x501c56 in _0x2de7d9){const _0x3eafb8=_0x501c56,_0x225895=_0x2de7d9[_0x3eafb8];if('uploadcareLicenseKeyValid'==_0x225895||'uploadcareLicenseKeyInvalid'==_0x225895||'uploadcareLicenseKeyExpired'==_0x225895||'uploadcareLicenseKeyDomainLimit'==_0x225895||'uploadcareLicenseKeyNotAllowed'==_0x225895||'uploadcareLicenseKeyEvaluationLimit'==_0x225895||'uploadcareLicenseKeyUsageLimit'==_0x225895){delete _0x2de7d9[_0x3eafb8],_0xa6969b=_0x225895,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xa6969b&&_0x2de7d9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xa6969b&&_0x2de7d9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xa6969b&&_0x2de7d9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xa6969b&&_0x2de7d9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xa6969b&&_0x2de7d9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0xa6969b&&_0x2de7d9['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2f962a}=this,_0x25bc6d=_0x2f962a['commands']['get']('uploadcare');if(!_0x25bc6d)return;const _0x376b0a=this['_normalizeConfigSourceList'](_0x2f962a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x199f13,_0x387e0e)=>{const _0x85a8b1=this['_getIntegrationKey'](_0x387e0e['type']);return _0x199f13[_0x85a8b1]||(_0x199f13[_0x85a8b1]=[]),_0x199f13[_0x85a8b1]['push'](_0x387e0e),_0x199f13;},{});_0x2f962a['plugins']['has']('ImageInsertUI')&&_0x2f962a['commands']['get']('uploadcare')&&Object['entries'](_0x376b0a)['forEach'](([_0x236160,_0x454ff9])=>{_0x2f962a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x236160,'observable':()=>_0x25bc6d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x454ff9),'formViewCreator':()=>this['_createDropdownButtons'](_0x454ff9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x454ff9),'override':'assetManager'!==_0x236160});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1f9b13){const {locale:_0x32e6c2}=this['editor'];return _0x1f9b13['map'](_0x3aa359=>{const _0x160ff4=_(_0x32e6c2,_0x3aa359,'Insert');switch(_0x3aa359){case i['Local']:return{'icon':_0x24c625,'type':i['Local'],..._0x160ff4};case i['URL']:return{'icon':_0x11e48e,'type':i['URL'],..._0x160ff4};case i['Dropbox']:return{'icon':_0x125785,'type':i['Dropbox'],..._0x160ff4};case i['Facebook']:return{'icon':_0x216a39,'type':i['Facebook'],..._0x160ff4};case i['GDrive']:return{'icon':_0x5a091b,'type':i['GDrive'],..._0x160ff4};case i['GPhotos']:return{'icon':_0x2eb0b8,'type':i['GPhotos'],..._0x160ff4};case i['OneDrive']:return{'icon':_0x4dcfeb,'type':i['OneDrive'],..._0x160ff4};}});}['_getIntegrationKey'](_0x410cf2){switch(_0x410cf2){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x20bef2,_0x8111c7){const _0x2177d4=this['editor'],_0x114301=new _0x20bef2(_0x2177d4['locale']),_0x5d65ce=_0x2177d4['commands']['get']('uploadcare');return _0x114301['bind']('isEnabled')['to'](_0x5d65ce),_0x114301['on']('execute',()=>{_0x5d65ce['execute'](_0x8111c7);}),_0x114301;}['_createToolbarButton'](_0x3037f3){const {locale:_0x35f300}=this['editor'],_0x413f80=this['editor']['plugins']['get']('ImageInsertUI'),_0x29e187=_0x3037f3[0x0],_0x441156=this['_createButton'](_0x24a979,_0x29e187['type']);return _0x441156['icon']=_0x29e187['icon'],_0x441156['bind']('label')['to'](_0x413f80,'isImageSelected',_0x3ecd10=>_(_0x35f300,_0x29e187['type'],_0x3ecd10?'Replace':'Insert')['text']),_0x441156['tooltip']=!0x0,_0x441156;}['_createDropdownButtons'](_0x214fb7){const {locale:_0x55fb18}=this['editor'],_0x9920e4=this['editor']['plugins']['get']('ImageInsertUI');return _0x214fb7['map'](_0x174669=>{const _0x4c84ca=this['_createButton'](_0x24a979,_0x174669['type']);return _0x4c84ca['withText']=!0x0,_0x4c84ca['icon']=_0x174669['icon'],_0x4c84ca['bind']('label')['to'](_0x9920e4,'isImageSelected',_0x26cdc3=>_(_0x55fb18,_0x174669['type'],_0x26cdc3?'Replace':'Insert')['text']),_0x4c84ca;});}['_createMenuBarButtons'](_0x1bd69e){return _0x1bd69e['map'](_0x5114a5=>{const _0xbc0ab7=this['_createButton'](_0x2665a6,_0x5114a5['type']);return _0xbc0ab7['icon']=_0x5114a5['icon'],_0xbc0ab7['label']=_0x5114a5['shortText'],_0xbc0ab7;});}}class V extends _0x3d5e1f{['focusTracker'];['focusCycler'];constructor(_0x2e53ad){super(_0x2e53ad),this['focusTracker']=new _0xa86f41(),this['focusCycler']=new _0x371400({'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(_0x5a5a01,_0x1da5ef){super(_0x5a5a01),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-'+_0x1da5ef}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xeae710,_0x81181d){const _0xfeea7f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x21f716=>_0x21f716<=_0x81181d)['map'](_0x368e9b=>_0xeae710['replace'](/\/$/,'')+'/-/resize/'+_0x368e9b+'x/\x20'+_0x368e9b+'w');return{'imageFallbackUrl':_0xeae710,'imageSources':[{'srcset':_0xfeea7f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x81181d+'px)\x20100vw,\x20'+_0x81181d+'px','type':'image/webp'}]};}function F(_0x40f562,_0x9a7804,_0x2290de){const _0x268d4a=_0x40f562['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x268d4a?parseInt(_0x268d4a[0x1],0xa):_0x9a7804,'height':_0x268d4a?parseInt(_0x268d4a[0x2],0xa):_0x2290de};}function p(_0x24d696,_0xd6af22){const _0x4bf427=new(_0x3db1f8())(),_0x251fc3=_0x24d696['plugins']['get']('ImageUtils'),_0x1bbf0c=_0x24d696['editing']['mapper']['toViewElement'](_0xd6af22),_0x205989=_0x251fc3['findViewImgElement'](_0x1bbf0c),_0x5b32bf=_0x24d696['editing']['view']['domConverter']['viewToDom'](_0x205989),_0xc7362b=_0xd6af22['getAttribute']('width'),_0x1caff7=_0xd6af22['getAttribute']('height'),_0x3757e9='image-processing';_0x24d696['editing']['view']['change'](_0x527512=>{_0x527512['addClass'](_0x3757e9,_0x1bbf0c),_0x527512['setStyle']('aspect-ratio',_0xc7362b+'/'+_0x1caff7,_0x205989);}),_0x4bf427['listenTo'](_0x5b32bf,'load',()=>{_0x4bf427['stopListening'](_0x5b32bf,'load'),_0x24d696['editing']['view']['change'](_0x19d0d5=>{_0x19d0d5['removeClass'](_0x3757e9,_0x1bbf0c),_0x19d0d5['removeStyle']('aspect-ratio',_0x205989);});});}function R(_0x2c73cd){if(Array['isArray'](_0x2c73cd)){const _0x458e3e=_0x2c73cd['map'](R);return _0x1dbb4c=>_0x458e3e['some'](_0x242b92=>_0x242b92(_0x1dbb4c));}if('origin'==_0x2c73cd){const _0xee62a=_0x354fb1['window']['location']['origin'];return _0x2c0945=>new URL(_0x2c0945,_0x354fb1['document']['baseURI'])['origin']==_0xee62a;}return'function'==typeof _0x2c73cd?_0x2c73cd:_0x2c73cd instanceof RegExp?_0x4c6113=>!(!_0x4c6113['match'](_0x2c73cd)&&!_0x4c6113['replace'](/^https?:\/\//,'')['match'](_0x2c73cd)):()=>!0x1;}function M(_0x41f57c,_0x21b90e){return _0x3f148a(_0x41f57c['target'])['includes'](_0x21b90e);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3eea9a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x78b3b5,_0x1ede30,_0xc19586){super(),this['_editor']=_0x78b3b5,this['_editing']=_0x1ede30,this['_dialog']=_0x78b3b5['plugins']['get'](_0x82f8a),this['_api']=_0x1ede30['ctxElement']['getAPI'](),this['_type']=_0xc19586,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:_0x36ace6,model:_0x5c1b65}=this['_editor'],_0x25b45b=_0x5c1b65['document']['selection']['getSelectedElement'](),_0xa7b46=_0x25b45b&&(_0x25b45b['is']('element','imageBlock')||_0x25b45b['is']('element','imageInline'));this['_formView']=new S(_0x36ace6,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x24c625,'title':_(_0x36ace6,this['_type'],_0xa7b46?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2214a5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3c23f0=>!M(_0x3c23f0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x54d6ef}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xd81f92=>{const _0x2cca01=_0x54d6ef['length'];for(const _0x346224 of _0x54d6ef){const _0xd0e511=_0x346224===_0x54d6ef[_0x2cca01-0x1],{cdnUrl:_0x291942,fileInfo:_0x387697}=_0x346224;if(!_0x291942||!_0x387697)continue;const {width:_0xb64049,height:_0x40c765}=_0x387697['imageInfo'],_0x2062bc=F(_0x291942,_0xb64049,_0x40c765),_0x4a84ad=C(_0x291942,_0x2062bc['width']),_0x37c9c1={'id':_0x387697['uuid'],'type':'image','attributes':{'imageDimension':_0x2062bc,..._0x4a84ad}};this['_insertAsset'](_0x37c9c1,_0xd0e511,_0xd81f92);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4aaf3f=>{'idle'===_0x4aaf3f['detail']['status']&&!_0x4aaf3f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3f58d3,_0x846561,_0x13a6d9){const _0x3d8681=this['_editor']['model']['document']['selection'],_0x2beb68=_0x3d8681['getSelectedElement'](),_0x2f5fa4=!(!_0x2beb68||!_0x2beb68['is']('element','imageInline'));_0x13a6d9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3f58d3,_0x2f5fa4),_0x846561||_0x13a6d9['setSelection'](_0x3d8681['getLastPosition']());}['_insertImage'](_0x3f3c22,_0x30ca66){const _0x1733b1=this['_editor'],{imageDimension:_0x237d35,imageFallbackUrl:_0x42a164,imageSources:_0x5489d2}=_0x3f3c22['attributes'];_0x1733b1['execute']('insertImage',{'imageType':_0x30ca66?'imageInline':null,'source':{'uploadcareImageId':_0x3f3c22['id'],'src':_0x42a164,'sources':_0x5489d2,..._0x237d35}});}}class w extends _0x44b713{['_editing'];['_controller']=null;static get['requires'](){return[_0x82f8a,o];}constructor(_0x207445){super(_0x207445),this['_editing']=_0x207445['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x17a5f6){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x17a5f6);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x189081,..._0x16984d}){return _0x103813(_0x189081,_0x16984d);}static['getInfo'](_0x371c7b,_0x49aae6){return _0x22df3f(_0x371c7b,_0x49aae6);}}class f extends _0x57badb{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x11caee,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x27afdf=this['editor'];if(!!!_0x27afdf['config']['get']('uploadcare'))return;_0x27afdf['plugins']['get'](_0x11caee)['createUploadAdapter']=_0x20c81d=>new k(_0x20c81d,_0x27afdf),_0x27afdf['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3f4ed1,{imageElement:_0x497358,data:_0x325843})=>{_0x27afdf['model']['change'](_0x445acc=>{_0x445acc['setAttribute']('uploadcareImageId',_0x325843['uploadcareImageId'],_0x497358);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2215fd,_0x541977){this['loader']=_0x2215fd,this['editor']=_0x541977,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x51f10d=await this['loader']['file'];return j['upload']({'file':_0x51f10d,'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':_0x1be38d=>{_0x1be38d&&_0x1be38d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1be38d['value']);}})['then'](async _0x2947ab=>{const {imageFallbackUrl:_0x1cad1a,imageSources:_0x466a9e}=C(_0x2947ab['cdnUrl'],_0x2947ab['imageInfo']['width']);return{'uploadcareImageId':_0x2947ab['uuid'],'default':_0x1cad1a,'sources':_0x466a9e};})['catch'](()=>{const _0x15c547=t('Cannot\x20upload\x20file:')+('\x20'+_0x51f10d['name']+'.');return Promise['reject'](_0x15c547);});}['abort'](){this['controller']['abort']();}}class o extends _0x57badb{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x82f8a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xe3b033){super(_0xe3b033),this['ucContextId']=_0x15ab9c();}['init'](){const _0x247323=this['editor'];_0x247323['commands']['add']('uploadcare',new w(_0x247323));}['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 _0x2f27b8=_0x354fb1['document']['querySelector']('input[uploadcare-file-input]');_0x2f27b8&&_0x2f27b8['remove']();}),async function(_0x27957b){const _0x2061f7=_0x47e0e4([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]),_0x306e10=0x535f8c3a,_0x2970d6=0x5358f2a2^_0x306e10,_0xaf7d78=window[_0x47e0e4([0x44,0x61,0x74,0x65])][_0x47e0e4([0x6e,0x6f,0x77])](),_0x589313=_0x27957b[_0x47e0e4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc82664=new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a1d21=>{_0x589313[_0x47e0e4([0x6f,0x6e,0x63,0x65])](_0x47e0e4([0x72,0x65,0x61,0x64,0x79]),_0x4a1d21);}),_0x528f86={[_0x47e0e4([0x6b,0x74,0x79])]:_0x47e0e4([0x45,0x43]),[_0x47e0e4([0x75,0x73,0x65])]:_0x47e0e4([0x73,0x69,0x67]),[_0x47e0e4([0x63,0x72,0x76])]:_0x47e0e4([0x50,0x2d,0x32,0x35,0x36]),[_0x47e0e4([0x78])]:_0x47e0e4([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]),[_0x47e0e4([0x79])]:_0x47e0e4([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]),[_0x47e0e4([0x61,0x6c,0x67])]:_0x47e0e4([0x45,0x53,0x32,0x35,0x36])},_0x5a906c=_0x589313[_0x47e0e4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x47e0e4([0x67,0x65,0x74])](_0x47e0e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x190f8e(){let _0x3103e0,_0x383ba0=null,_0x1f1de1=null;try{if(_0x5a906c==_0x47e0e4([0x47,0x50,0x4c]))return _0x47e0e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3103e0=_0x58e44e(),!_0x3103e0)return _0x47e0e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3103e0[_0x47e0e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f1de1=_0x3291dc(_0x3103e0[_0x47e0e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3103e0[_0x47e0e4([0x6a,0x74,0x69])])),await _0x273ee3()?_0x1372c5()?_0x4161d5()?_0x47e0e4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x379fd0()?(_0x3103e0[_0x47e0e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47e0e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x383ba0=_0x4d784e(_0x47e0e4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4925cf()):_0x47e0e4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x47e0e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x47e0e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x47e0e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4161d5(){const _0x12c1bf=[_0x47e0e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x47e0e4([0x74,0x72,0x69,0x61,0x6c])][_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3103e0[_0x47e0e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xaf7d78/0x3e8:0xe10*_0x2970d6;return _0x3103e0[_0x47e0e4([0x65,0x78,0x70])]<_0x12c1bf;}function _0x1372c5(){const _0x439d36=_0x3103e0[_0x47e0e4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x439d36&&(!!_0x439d36[_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47e0e4([0x2a]))||!!_0x439d36[_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47e0e4([0x55,0x50,0x4c,0x43])));}function _0x379fd0(){const _0x398668=_0x3103e0[_0x47e0e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x398668||0x0==_0x398668[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23ab9a}=new URL(window[_0x47e0e4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x398668[_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23ab9a))return!0x0;const _0x6ac7a1=_0x23ab9a[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])](_0x47e0e4([0x2e]));return _0x398668[_0x47e0e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x453147=>_0x453147[_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47e0e4([0x2a])))[_0x47e0e4([0x6d,0x61,0x70])](_0x10c1b5=>_0x10c1b5[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])](_0x47e0e4([0x2e])))[_0x47e0e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e35f6=>_0x2e35f6[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6ac7a1[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47e0e4([0x6d,0x61,0x70])](_0x57967d=>Array(_0x6ac7a1[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x57967d[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47e0e4([0x66,0x69,0x6c,0x6c])](_0x57967d[0x0]===_0x47e0e4([0x2a])?_0x47e0e4([0x2a]):'')[_0x47e0e4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x57967d))[_0x47e0e4([0x73,0x6f,0x6d,0x65])](_0x30c7f9=>_0x6ac7a1[_0x47e0e4([0x65,0x76,0x65,0x72,0x79])]((_0x2001a9,_0x487bd4)=>_0x30c7f9[_0x487bd4]===_0x2001a9||_0x30c7f9[_0x487bd4]===_0x47e0e4([0x2a])));}function _0x4925cf(){return _0x383ba0&&_0x1f1de1?new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4691c4,_0x54ce48)=>{_0x383ba0[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x4691c4,_0x54ce48),_0x1f1de1[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x196083=>{_0x196083!=_0x47e0e4([0x56,0x61,0x6c,0x69,0x64])&&_0x4691c4(_0x196083);},_0x54ce48);}):_0x383ba0||_0x1f1de1||_0x47e0e4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3291dc(_0x3bc50b,_0x2a2dd0){return new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd45a0d=>{if(_0x2c844b())return _0xd45a0d(_0x47e0e4([0x56,0x61,0x6c,0x69,0x64]));_0x551837(),_0x589313[_0x47e0e4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x47e0e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17bb03=!0x1;const _0x46c3fa=_0x15ab9c();function _0x1368e3(_0x4af4){return!!_0x4af4&&(typeof _0x4af4===_0x47e0e4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4af4===_0x47e0e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4af4[_0x47e0e4([0x74,0x68,0x65,0x6e])]===_0x47e0e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4af4[_0x47e0e4([0x63,0x61,0x74,0x63,0x68])]===_0x47e0e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5041e0(_0xb171b7){_0x3a6385(_0xb171b7)[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x213892=>{if(!_0x213892||_0x213892[_0x47e0e4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x47e0e4([0x6f,0x6b]))return _0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x469758(_0x524154(_0x46c3fa+_0x2a2dd0))!=_0x213892[_0x47e0e4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x47e0e4([0x56,0x61,0x6c,0x69,0x64]);})[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x3a8a1c=>(_0xc23b52(),_0x3a8a1c),()=>{const _0x5ac3e0=_0x2221f2();return null==_0x5ac3e0?(_0xc23b52(),_0x47e0e4([0x56,0x61,0x6c,0x69,0x64])):_0x47e0e4(_0xaf7d78-_0x5ac3e0>(0x7753083a^_0x306e10)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0xd45a0d)[_0x47e0e4([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd45a0d(_0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xdc6ac5=0x536962ba^_0x306e10;function _0xc23b52(){const _0x51dd1d=_0x47e0e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x469758(_0x524154(_0x3bc50b)),_0x5107d4=_0xc0ea1b(_0x469758(window[_0x47e0e4([0x4d,0x61,0x74,0x68])][_0x47e0e4([0x63,0x65,0x69,0x6c])](_0xaf7d78/_0xdc6ac5)));window[_0x47e0e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47e0e4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51dd1d,_0x5107d4);}function _0x2221f2(){const _0x8ebdad=_0x47e0e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x469758(_0x524154(_0x3bc50b)),_0x468fd7=window[_0x47e0e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47e0e4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8ebdad);return _0x468fd7?window[_0x47e0e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc0ea1b(_0x468fd7),0x10)*_0xdc6ac5:null;}function _0x3a6385(_0x137474){return new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1721b8,_0x39ee45)=>{_0x137474[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x1721b8,_0x39ee45),window[_0x47e0e4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39ee45,0x535e58fa^_0x306e10);});}}_0x589313[_0x47e0e4([0x6f,0x6e])](_0x47e0e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x356e6c,_0x430f51)=>{if(_0x430f51[0x0]!=_0x3bc50b)return _0xd45a0d(_0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x430f51[0x1]={..._0x430f51[0x1],[_0x47e0e4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46c3fa};},{[_0x47e0e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47e0e4([0x68,0x69,0x67,0x68])}),_0x589313[_0x47e0e4([0x6f,0x6e])](_0x47e0e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17cafa=>{_0x1368e3(_0x17cafa[_0x47e0e4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17bb03=!0x0,_0x5041e0(_0x17cafa[_0x47e0e4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x47e0e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47e0e4([0x6c,0x6f,0x77])}),_0xc82664[_0x47e0e4([0x74,0x68,0x65,0x6e])](()=>{_0x17bb03||_0xd45a0d(_0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c844b(){return _0x589313[_0x47e0e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47e0e4([0x76,0x69,0x65,0x77])][_0x47e0e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x47e0e4([0x61,0x75,0x74,0x6f]);}function _0x551837(){_0x589313[_0x47e0e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47e0e4([0x76,0x69,0x65,0x77])][_0x47e0e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47e0e4([0x61,0x75,0x74,0x6f]);}}function _0x4d784e(_0xff308a){const _0xbed7f=[new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x64c9b3=>setTimeout(_0x64c9b3,0x5356b2f6^_0x306e10)),_0xc82664[_0x47e0e4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b5c34=>{let _0x8c3117=0x0;_0x589313[_0x47e0e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x47e0e4([0x6f,0x6e])](_0x47e0e4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2fc609,_0x206076)=>{_0x206076[0x0][_0x47e0e4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8c3117++,_0x8c3117==(0x535f89d2^_0x306e10)&&(_0x2b5c34(),_0x2fc609[_0x47e0e4([0x6f,0x66,0x66])]());});}))];return window[_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47e0e4([0x72,0x61,0x63,0x65])](_0xbed7f)[_0x47e0e4([0x74,0x68,0x65,0x6e])](()=>_0xff308a);}async function _0x3a8ec6(){await _0xc82664,_0x589313[_0x47e0e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x47e0e4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf1b385,_0x589313[_0x47e0e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x47e0e4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf1b385,_0x589313[_0x47e0e4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x47e0e4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x171b8a(_0xf2aca){const _0x492e03=_0x2eed54();_0x589313[_0x492e03]=_0x47e0e4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf2aca,_0xf2aca!=_0x47e0e4([0x56,0x61,0x6c,0x69,0x64])&&_0x3a8ec6();}function _0x2eed54(){const _0x121627=window[_0x47e0e4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x47e0e4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x47e0e4([0x6e,0x6f,0x77])]())[_0x47e0e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x47e0e4([0x2e]),'');let _0x46ccbb=_0x47e0e4([0x68]);for(let _0x5b2c9a=0x0;_0x5b2c9a<_0x121627[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b2c9a+=0x2){let _0x5d00fd=window[_0x47e0e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x121627[_0x47e0e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b2c9a,_0x5b2c9a+0x2));_0x5d00fd>=_0x2061f7[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d00fd-=_0x2061f7[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x46ccbb+=_0x2061f7[_0x5d00fd];}return _0x46ccbb;}function _0x58e44e(){const _0x4545a4=_0x5a906c[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])](_0x47e0e4([0x2e]));if(0x3!=_0x4545a4[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49540e(_0x4545a4[0x1]);function _0x49540e(_0x45d058){const _0x1045a2=_0x1736c3(_0x45d058);return _0x1045a2&&_0x48149f()?_0x1045a2:null;function _0x48149f(){const _0x2ddac4=_0x1045a2[_0x47e0e4([0x6a,0x74,0x69])],_0x142ff7=window[_0x47e0e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ddac4[_0x47e0e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ddac4[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1117db={..._0x1045a2,[_0x47e0e4([0x6a,0x74,0x69])]:_0x2ddac4[_0x47e0e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ddac4[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1117db[_0x47e0e4([0x76,0x63])],_0x524154(_0x1117db)==_0x142ff7;}}}async function _0x273ee3(){let _0x44e86d=!0x0;try{const _0x43ff90=_0x5a906c[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])](_0x47e0e4([0x2e])),[_0x230f59,_0x40d728,_0x24a1c1]=_0x43ff90;return _0x257ec4(_0x230f59),await _0x553e2a(_0x230f59,_0x40d728,_0x24a1c1),_0x44e86d;}catch{return!0x1;}function _0x257ec4(_0x3a298a){const _0xe11e6c=_0x1736c3(_0x3a298a);_0xe11e6c&&_0xe11e6c[_0x47e0e4([0x61,0x6c,0x67])]==_0x47e0e4([0x45,0x53,0x32,0x35,0x36])||(_0x44e86d=!0x1);}async function _0x553e2a(_0xd8b937,_0x31f655,_0x2ae450){const _0xe6a443=window[_0x47e0e4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x47e0e4([0x66,0x72,0x6f,0x6d])](_0x4dff10(_0x2ae450),_0x2330bc=>_0x2330bc[_0x47e0e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30de8c=new window[(_0x47e0e4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x47e0e4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd8b937+_0x47e0e4([0x2e])+_0x31f655),_0xef028d=window[_0x47e0e4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x47e0e4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xef028d)return;const _0x53286e=await _0xef028d[_0x47e0e4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x47e0e4([0x6a,0x77,0x6b]),_0x528f86,{[_0x47e0e4([0x6e,0x61,0x6d,0x65])]:_0x47e0e4([0x45,0x43,0x44,0x53,0x41]),[_0x47e0e4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x47e0e4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x47e0e4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xef028d[_0x47e0e4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x47e0e4([0x6e,0x61,0x6d,0x65])]:_0x47e0e4([0x45,0x43,0x44,0x53,0x41]),[_0x47e0e4([0x68,0x61,0x73,0x68])]:{[_0x47e0e4([0x6e,0x61,0x6d,0x65])]:_0x47e0e4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53286e,_0xe6a443,_0x30de8c)||(_0x44e86d=!0x1);}}function _0x1736c3(_0x2e5729){return _0x2e5729[_0x47e0e4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x47e0e4([0x65,0x79]))?JSON[_0x47e0e4([0x70,0x61,0x72,0x73,0x65])](_0x4dff10(_0x2e5729)):null;}function _0x4dff10(_0x263704){return window[_0x47e0e4([0x61,0x74,0x6f,0x62])](_0x263704[_0x47e0e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x47e0e4([0x2b]))[_0x47e0e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x47e0e4([0x2f])));}function _0x524154(_0x38042e){let _0x9bec0e=0x1505;function _0x22d48a(_0x40e471){for(let _0x12fa85=0x0;_0x12fa85<_0x40e471[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12fa85++){const _0x55cf50=_0x40e471[_0x47e0e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12fa85);_0x9bec0e=(_0x9bec0e<<0x5)+_0x9bec0e+_0x55cf50,_0x9bec0e&=_0x9bec0e;}}function _0x41ea4a(_0x398545){Array[_0x47e0e4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x398545)?_0x398545[_0x47e0e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41ea4a):_0x398545&&typeof _0x398545==_0x47e0e4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x47e0e4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x398545)[_0x47e0e4([0x73,0x6f,0x72,0x74])]()[_0x47e0e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x579469,_0x3fb428])=>{_0x22d48a(_0x579469),_0x41ea4a(_0x3fb428);}):_0x22d48a(window[_0x47e0e4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x398545));}return _0x41ea4a(_0x38042e),_0x9bec0e>>>0x0;}function _0x469758(_0x946bb0){return _0x946bb0[_0x47e0e4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x47e0e4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x47e0e4([0x30]));}function _0xc0ea1b(_0xe13fdb){return _0xe13fdb[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x47e0e4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x47e0e4([0x6a,0x6f,0x69,0x6e])]('');}function _0xf1b385(){}function _0x47e0e4(_0x3fe6b1){return _0x3fe6b1['map'](_0x3214a5=>String['fromCharCode'](_0x3214a5))['join']('');}_0x171b8a(await _0x190f8e());}(this);}['_initSchema'](){const _0x31c0f3=this['editor']['model']['schema'];_0x31c0f3['isRegistered']('imageBlock')&&_0x31c0f3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x31c0f3['isRegistered']('imageInline')&&_0x31c0f3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x35f5e5=this['editor'];_0x35f5e5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x35f5e5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x596474=>_0x596474['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1b725b=_0x35f5e5['commands']['get']('replaceImageSource');_0x1b725b&&this['listenTo'](_0x1b725b,'cleanupImage',(_0x22fe84,[_0x111924,_0x3fb179])=>{_0x111924['removeAttribute']('uploadcareImageId',_0x3fb179);});}['_initConfig'](){const _0x131013=this['editor']['config']['get']('uploadcare.uploader')||{},_0x312ffa=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x23faf0(_0x354fb1['document'],'uc-config',{..._0x131013,'pubkey':_0x312ffa,'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']=_0x1540ac=>{if('closeMax'==_0x1540ac)return'#uc-icon-arrow-down';},_0x354fb1['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x23faf0(_0x354fb1['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x354fb1['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x43d673=this['editor']['commands']['get']('insertImage');_0x43d673&&this['listenTo'](_0x43d673,'execute',()=>{const _0x48cb7e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48cb7e&&_0x48cb7e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x48cb7e);});});const _0x5331a6=this['editor']['commands']['get']('uploadcareImageReplace');_0x5331a6&&this['listenTo'](_0x5331a6,'execute',()=>{const _0x28d3e1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28d3e1&&_0x28d3e1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x28d3e1);});});}}class tt extends _0x57badb{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x350985){super(_0x350985),_0x350985['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1500fc['defineComponents'](_0x1500fc),this['_defineLocale']();}['_defineLocale'](){const _0x352d89=this['editor']['config']['get']('uploadcare.locale'),_0x3a7b73=this['editor']['locale']['contentLanguage'];_0x352d89&&_0x1500fc['defineLocale'](_0x3a7b73,_0x352d89);}}class ii extends _0x3d5e1f{constructor(_0x40cbc1){super(_0x40cbc1);const t=_0x40cbc1['t'],_0xf3325a=this['bindTemplate'],_0x329711=new _0x27bc3f();_0x329711['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':[_0x329711,{'text':_0xf3325a['to']('imageUploadProgress',_0x4f0f74=>t('Loading\x20image...')+'\x20('+(_0x4f0f74||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 _0x3d5e1f{constructor(_0x1e5ce9){super(_0x1e5ce9);const t=_0x1e5ce9['t'];this['set']('errorType',null);const _0x19fe4a=new _0x24a979(_0x1e5ce9);_0x19fe4a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x19fe4a['withText']=!0x0,_0x19fe4a['class']='ck-button-action',_0x19fe4a['on']('execute',()=>{this['fire']('retry');}),_0x19fe4a['bind']('isVisible')['to'](this,'errorType',_0x1d93df=>'NotFound'!==_0x1d93df);const _0x3a1090=new _0x4523f8();_0x3a1090['content']=_0x485a3c,_0x3a1090['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x598521=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':[_0x3a1090,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x598521['to']('errorType',_0x37f6c4=>t('NotFound'!==_0x37f6c4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x19fe4a]},{'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 _0x3d5e1f{constructor(_0x4f6818,_0x37d52f){super(_0x4f6818);const _0x5f47de=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x37d52f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5f47de['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x442952,_0x4bf929,_0x11783c){super(_0x442952),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x442952),this['_errorView']=new ti(_0x442952),this['_editingView']=new ei(_0x442952,_0x11783c),this['_focusableView']=new _0x3d5e1f(_0x442952),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4bf929),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'],_0x510228=>{this['_addUploadcareImageEditorListeners'](_0x510228);});}),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'](_0x13f4a7,_0x3c8d2e){const _0x4fe80d='uc-cloud-image-editor',_0x3adca6=_0x13f4a7['querySelector'](_0x4fe80d);if(_0x3adca6)return _0x3c8d2e(_0x3adca6);const _0x14be83=new MutationObserver(_0x306ad3=>{const _0x244610=_0x306ad3['filter'](_0x5d34d4=>_0x5d34d4['target']===_0x13f4a7&&_0x5d34d4['addedNodes']['length']>0x0&&_0x5d34d4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4fe80d);_0x244610['length']&&(_0x14be83['disconnect'](),_0x3c8d2e(_0x244610[0x0]['addedNodes'][0x0]));});_0x14be83['observe'](_0x13f4a7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x59e046){_0x59e046['addEventListener']('apply',_0x5e243d=>{this['fire']('apply',{'imageSrc':_0x5e243d['detail']['cdnUrl']});}),_0x59e046['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3eea9a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1c464b,_0x20c834,_0x5ee293){super(),this['_editor']=_0x1c464b,this['_dialog']=_0x20c834,this['_imageElement']=_0x5ee293,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 _0x4100a9=this['_imageElement'],_0x15c213=_0x4100a9['getAttribute']('uploadcareImageId'),_0x10517e=_0x4100a9['getAttribute']('src');if(_0x15c213)await this['_loadImageInfo'](_0x15c213,_0x10517e);else{if(this['_imageCache']['has'](_0x10517e)){const _0x2578b6=this['_imageCache']['get'](_0x10517e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2578b6['url'],this['imageDimension']=_0x2578b6['dimension'],this['imageId']=_0x2578b6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4ba50e}=this['_editor'],t=_0x4ba50e['t'],_0x2827df=new X(_0x4ba50e,this['imageStatus'],this['_attributes']);_0x2827df['bind']('status')['to'](this,'imageStatus'),_0x2827df['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2827df['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2827df['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2827df,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5b35e3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2827df,'position':_0x2214a5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2827df['focus']();},'onHide':()=>{_0x2827df['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2bddb8=>!M(_0x2bddb8,_0x2827df['element'])}});}['_loadImageInfo'](_0x3169fd,_0x36bee6){return j['getInfo'](_0x3169fd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3e4144=>{const {width:_0x2d4199,height:_0x4bca03}=_0x3e4144['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x36bee6,this['imageDimension']={'width':_0x2d4199,'height':_0x4bca03},this['imageId']=_0x3169fd;})['catch'](_0x56c1d5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x56c1d5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x40ed70,_0x308d86){return this['_getImageAsFile'](_0x40ed70)['then'](_0x12c8d2=>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':_0x308d86['signal'],'file':_0x12c8d2,'onProgress':_0xd5b57a=>{_0xd5b57a&&_0xd5b57a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xd5b57a['value']));}}))['then'](_0x37492a=>{const {width:_0x47aed4,height:_0xa0d6c6}=_0x37492a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x37492a['cdnUrl'],this['imageDimension']={'width':_0x47aed4,'height':_0xa0d6c6},this['imageId']=_0x37492a['uuid'],this['imageUploadProgress']=null;const _0x35110d=_0x40ed70['getAttribute']('src');this['_imageCache']['set'](_0x35110d,{'id':_0x37492a['uuid'],'url':_0x37492a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x19dc2c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x19dc2c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x8bde3e,_0x5be15e){_0x8bde3e['on']('apply',(_0x1a1642,_0x5053a4)=>{this['_replaceImage'](_0x5be15e,_0x5053a4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x8bde3e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x8bde3e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4be172,_0x21d5b1,_0x19dea5){const _0x5224f0=this['_editor'],{width:_0x342e24,height:_0x5c3038}=F(_0x21d5b1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3b21f7,imageSources:_0x44d119}=C(_0x21d5b1,_0x342e24);_0x5224f0['model']['change'](_0x3da9d5=>{if('$graveyard'===_0x4be172['root']['rootName']){_0x5224f0['execute']('insertImage',{'imageType':_0x4be172['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4be172['getAttributes']()),'uploadcareImageId':_0x19dea5,'src':_0x3b21f7,'sources':_0x44d119,'width':_0x342e24,'height':_0x5c3038}});const _0x4c99fa=_0x4be172['getChildren']();_0x4be172=_0x5224f0['model']['document']['selection']['getSelectedElement']();for(const _0x7dfadb of _0x4c99fa)_0x3da9d5['append'](_0x3da9d5['cloneElement'](_0x7dfadb),_0x4be172);}else _0x3da9d5['setSelection'](_0x4be172,'on'),_0x5224f0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4be172['getAttributes']()),'uploadcareImageId':_0x19dea5,'src':_0x3b21f7,'sources':_0x44d119,'width':_0x342e24,'height':_0x5c3038},_0x4be172);_0x3da9d5['setSelection'](_0x4be172,'on');});}async['_getImageAsFile'](_0x522f7f){const _0x443c9d=_0x354fb1['window'],_0x26923d=_0x354fb1['document']['location']['href'],_0xa9f5aa=new _0x443c9d['URL'](_0x522f7f['getAttribute']('src'),_0x26923d);if('data:'===_0xa9f5aa['protocol']){const _0x371836=_0xa9f5aa['href']['split'](','),_0x1f22de=_0x371836[0x0]['match'](/:(.*?);/)[0x1],_0x4c02ac=_0x1f22de['split']('/')[0x1],_0x521cc2=_0x443c9d['atob'](_0x371836[_0x371836['length']-0x1]);let _0x4ff6f2=_0x521cc2['length'];const _0x52086c=new _0x443c9d['Uint8Array'](_0x4ff6f2);for(;_0x4ff6f2--;)_0x52086c[_0x4ff6f2]=_0x521cc2['charCodeAt'](_0x4ff6f2);return new _0x443c9d['File']([_0x52086c],'image.'+_0x4c02ac,{'type':_0x1f22de});}const _0x18bda9=_0xa9f5aa['href']['split']('/'),_0x50fe35=_0x18bda9[_0x18bda9['length']-0x1],_0x5565f8=_0x50fe35['split']('.')[0x1];return _0x443c9d['fetch'](_0xa9f5aa['href'])['then'](_0x31513f=>_0x31513f['clone']()['blob']())['then'](_0x2b1eb0=>new _0x443c9d['File']([_0x2b1eb0],_0x50fe35,{'type':'image/'+_0x5565f8}));}}class N extends _0x44b713{['imageEditController'];static get['requires'](){return[_0x82f8a];}['_isEditable'];constructor(_0x21e12b){super(_0x21e12b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x21abd1){const _0x4c8077=R(_0x21abd1);return _0x55adac=>!(!_0x55adac||!_0x55adac['is']('element','imageBlock')&&!_0x55adac['is']('element','imageInline'))&&(!!_0x55adac['hasAttribute']('uploadcareImageId')||!!_0x55adac['hasAttribute']('src')&&_0x4c8077(_0x55adac['getAttribute']('src')));}(_0x21e12b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x36c6ae=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x36c6ae);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x38883e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x38883e&&(_0x38883e['is']('element','imageBlock')||_0x38883e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x82f8a),_0x38883e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x44b713{['refresh'](){const _0x18e602=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x18e602&&(_0x18e602['is']('element','imageBlock')||_0x18e602['is']('element','imageInline')));}['execute'](_0x11b543){const _0x3c54e2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3644ad=>{_0x3644ad['setAttributes'](_0x11b543,_0x3c54e2),_0x3644ad['removeAttribute']('srcset',_0x3c54e2),_0x3644ad['removeAttribute']('sizes',_0x3c54e2);});}}class m extends _0x57badb{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x516827,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5b6c32}=this;_0x5b6c32['commands']['add']('uploadcareImageEdit',new N(_0x5b6c32)),_0x5b6c32['commands']['add']('uploadcareImageReplace',new O(_0x5b6c32));}}class g extends _0x57badb{['_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 _0x4dc4dc=this['editor'];_0x4dc4dc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3ca564=>{const _0x764012=_0x4dc4dc['commands']['get']('uploadcareImageEdit'),_0x5e86f1=new _0x24a979(_0x3ca564),t=_0x3ca564['t'];return _0x5e86f1['set']({'icon':_0x5b35e3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5e86f1['bind']('isEnabled')['to'](_0x764012),_0x5e86f1['bind']('isOn')['to'](_0x764012,'isActive'),this['listenTo'](_0x5e86f1,'execute',()=>{_0x4dc4dc['execute']('uploadcareImageEdit'),_0x4dc4dc['editing']['view']['focus']();}),_0x5e86f1;}),this['_initConfig']();}['_initConfig'](){const _0x478e14=_0x23faf0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x478e14),this['listenTo'](this['editor'],'destroy',()=>{_0x478e14['remove']();});}}class et extends _0x57badb{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 _0x7163ca,Command as _0x4df12c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4d5c02,IconGooglePhotos as _0x1a466b,IconGoogleDrive as _0x535615,IconFacebook as _0x713d35,IconDropbox as _0x191371,IconUploadcareLink as _0x58d259,IconUploadcareImageUpload as _0x522e0f,IconError as _0x1011b7,IconUploadcareImageEdit as _0x99bfc9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x436093,MenuBarMenuListItemButtonView as _0x1d56de,View as _0x202034,FocusCycler as _0x3803da,Dialog as _0x1b6dbc,DialogViewPosition as _0x15ecb3,SpinnerView as _0x515ce1,IconView as _0x2d1290,Notification as _0x3d0e66}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x551a34,DomEmitterMixin as _0x57e997,global as _0x27b7a0,getAncestors as _0x54214d,ObservableMixin as _0x4e83f8,uid as _0x210623,createElement as _0xd1ae02}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x55e3c6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x751d95,info as _0x3a6b15}from'@uploadcare/upload-client';import*as _0x5ba2eb from'@uploadcare/file-uploader';var i=function(_0x4e09c5){return _0x4e09c5['Local']='local',_0x4e09c5['URL']='url',_0x4e09c5['Dropbox']='dropbox',_0x4e09c5['GDrive']='gdrive',_0x4e09c5['Facebook']='facebook',_0x4e09c5['GPhotos']='gphotos',_0x4e09c5['OneDrive']='onedrive',_0x4e09c5;}({});function _(_0x79d095,_0x319e70,_0x618abe){const t=_0x79d095['t'],_0x45bd6c=_0x79d095['t'];switch(_0x319e70){case i['Local']:return{'text':_0x45bd6c('Insert'===_0x618abe?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x45bd6c('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x618abe?_0x45bd6c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x45bd6c('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x618abe?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x618abe?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x618abe?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x618abe?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x618abe?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x319e70;}}class e extends _0x7163ca{['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 _0x504b93=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e5348;for(const _0x5aef8a in _0x504b93){const _0x209e55=_0x5aef8a,_0x569f56=_0x504b93[_0x209e55];if('uploadcareLicenseKeyValid'==_0x569f56||'uploadcareLicenseKeyInvalid'==_0x569f56||'uploadcareLicenseKeyExpired'==_0x569f56||'uploadcareLicenseKeyDomainLimit'==_0x569f56||'uploadcareLicenseKeyNotAllowed'==_0x569f56||'uploadcareLicenseKeyEvaluationLimit'==_0x569f56||'uploadcareLicenseKeyUsageLimit'==_0x569f56){delete _0x504b93[_0x209e55],_0x1e5348=_0x569f56,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1e5348&&_0x504b93['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1e5348&&_0x504b93['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1e5348&&_0x504b93['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1e5348&&_0x504b93['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1e5348&&_0x504b93['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1e5348&&_0x504b93['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x11203b}=this,_0x5670d2=_0x11203b['commands']['get']('uploadcare');if(!_0x5670d2)return;const _0x2de6fa=this['_normalizeConfigSourceList'](_0x11203b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2a0546,_0x21ff82)=>{const _0xa7febf=this['_getIntegrationKey'](_0x21ff82['type']);return _0x2a0546[_0xa7febf]||(_0x2a0546[_0xa7febf]=[]),_0x2a0546[_0xa7febf]['push'](_0x21ff82),_0x2a0546;},{});_0x11203b['plugins']['has']('ImageInsertUI')&&_0x11203b['commands']['get']('uploadcare')&&Object['entries'](_0x2de6fa)['forEach'](([_0x41a412,_0x3e0953])=>{_0x11203b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x41a412,'observable':()=>_0x5670d2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3e0953),'formViewCreator':()=>this['_createDropdownButtons'](_0x3e0953),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3e0953),'override':'assetManager'!==_0x41a412});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x539082){const {locale:_0x290ec3}=this['editor'];return _0x539082['map'](_0x389fbc=>{const _0x3fc7a1=_(_0x290ec3,_0x389fbc,'Insert');switch(_0x389fbc){case i['Local']:return{'icon':_0x522e0f,'type':i['Local'],..._0x3fc7a1};case i['URL']:return{'icon':_0x58d259,'type':i['URL'],..._0x3fc7a1};case i['Dropbox']:return{'icon':_0x191371,'type':i['Dropbox'],..._0x3fc7a1};case i['Facebook']:return{'icon':_0x713d35,'type':i['Facebook'],..._0x3fc7a1};case i['GDrive']:return{'icon':_0x535615,'type':i['GDrive'],..._0x3fc7a1};case i['GPhotos']:return{'icon':_0x1a466b,'type':i['GPhotos'],..._0x3fc7a1};case i['OneDrive']:return{'icon':_0x4d5c02,'type':i['OneDrive'],..._0x3fc7a1};}});}['_getIntegrationKey'](_0x1db9ba){switch(_0x1db9ba){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2f9d65,_0x428f43){const _0x31607a=this['editor'],_0x45bf29=new _0x2f9d65(_0x31607a['locale']),_0x5e853c=_0x31607a['commands']['get']('uploadcare');return _0x45bf29['bind']('isEnabled')['to'](_0x5e853c),_0x45bf29['on']('execute',()=>{_0x5e853c['execute'](_0x428f43);}),_0x45bf29;}['_createToolbarButton'](_0x121492){const {locale:_0xa752fd}=this['editor'],_0x2568d7=this['editor']['plugins']['get']('ImageInsertUI'),_0x1c26bd=_0x121492[0x0],_0x53a13c=this['_createButton'](_0x436093,_0x1c26bd['type']);return _0x53a13c['icon']=_0x1c26bd['icon'],_0x53a13c['bind']('label')['to'](_0x2568d7,'isImageSelected',_0x1f9a85=>_(_0xa752fd,_0x1c26bd['type'],_0x1f9a85?'Replace':'Insert')['text']),_0x53a13c['tooltip']=!0x0,_0x53a13c;}['_createDropdownButtons'](_0x50fbda){const {locale:_0xa56734}=this['editor'],_0x33a097=this['editor']['plugins']['get']('ImageInsertUI');return _0x50fbda['map'](_0x3baf15=>{const _0x2903ff=this['_createButton'](_0x436093,_0x3baf15['type']);return _0x2903ff['withText']=!0x0,_0x2903ff['icon']=_0x3baf15['icon'],_0x2903ff['bind']('label')['to'](_0x33a097,'isImageSelected',_0x254a02=>_(_0xa56734,_0x3baf15['type'],_0x254a02?'Replace':'Insert')['text']),_0x2903ff;});}['_createMenuBarButtons'](_0x218dc4){return _0x218dc4['map'](_0x551a37=>{const _0x4db683=this['_createButton'](_0x1d56de,_0x551a37['type']);return _0x4db683['icon']=_0x551a37['icon'],_0x4db683['label']=_0x551a37['shortText'],_0x4db683;});}}class F extends _0x202034{['focusTracker'];['focusCycler'];constructor(_0x20893f){super(_0x20893f),this['focusTracker']=new _0x551a34(),this['focusCycler']=new _0x3803da({'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(_0xa76e4c,_0x32643d){super(_0xa76e4c),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-'+_0x32643d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x548f9f,_0x4be3ab){const _0x303cd3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xdcc7f7=>_0xdcc7f7<=_0x4be3ab)['map'](_0x4234d5=>_0x548f9f['replace'](/\/$/,'')+'/-/resize/'+_0x4234d5+'x/\x20'+_0x4234d5+'w');return{'imageFallbackUrl':_0x548f9f,'imageSources':[{'srcset':_0x303cd3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4be3ab+'px)\x20100vw,\x20'+_0x4be3ab+'px','type':'image/webp'}]};}function S(_0x34809f,_0x526c72,_0x398604){const _0x3d892a=_0x34809f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3d892a?parseInt(_0x3d892a[0x1],0xa):_0x526c72,'height':_0x3d892a?parseInt(_0x3d892a[0x2],0xa):_0x398604};}function p(_0x337e75,_0x1ee43a){const _0x3d8d7f=new(_0x57e997())(),_0x47ac3b=_0x337e75['plugins']['get']('ImageUtils'),_0x4bcf43=_0x337e75['editing']['mapper']['toViewElement'](_0x1ee43a),_0x4f2522=_0x47ac3b['findViewImgElement'](_0x4bcf43),_0x2cc1ba=_0x337e75['editing']['view']['domConverter']['viewToDom'](_0x4f2522),_0x12e0dc=_0x1ee43a['getAttribute']('width'),_0x4853bf=_0x1ee43a['getAttribute']('height'),_0x1f9eff='image-processing';_0x337e75['editing']['view']['change'](_0x25508a=>{_0x25508a['addClass'](_0x1f9eff,_0x4bcf43),_0x25508a['setStyle']('aspect-ratio',_0x12e0dc+'/'+_0x4853bf,_0x4f2522);}),_0x3d8d7f['listenTo'](_0x2cc1ba,'load',()=>{_0x3d8d7f['stopListening'](_0x2cc1ba,'load'),_0x337e75['editing']['view']['change'](_0x1439e8=>{_0x1439e8['removeClass'](_0x1f9eff,_0x4bcf43),_0x1439e8['removeStyle']('aspect-ratio',_0x4f2522);});});}function G(_0x23746b){if(Array['isArray'](_0x23746b)){const _0x206c41=_0x23746b['map'](G);return _0x532e50=>_0x206c41['some'](_0x1919e0=>_0x1919e0(_0x532e50));}if('origin'==_0x23746b){const _0x46c3db=_0x27b7a0['window']['location']['origin'];return _0x250358=>new URL(_0x250358,_0x27b7a0['document']['baseURI'])['origin']==_0x46c3db;}return'function'==typeof _0x23746b?_0x23746b:_0x23746b instanceof RegExp?_0xa87f73=>!(!_0xa87f73['match'](_0x23746b)&&!_0xa87f73['replace'](/^https?:\/\//,'')['match'](_0x23746b)):()=>!0x1;}function A(_0x446496,_0x45d2ab){return _0x54214d(_0x446496['target'])['includes'](_0x45d2ab);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4e83f8(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1c11a4,_0x257a80,_0x11cd0f){super(),this['_editor']=_0x1c11a4,this['_editing']=_0x257a80,this['_dialog']=_0x1c11a4['plugins']['get'](_0x1b6dbc),this['_api']=_0x257a80['ctxElement']['getAPI'](),this['_type']=_0x11cd0f,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:_0x1f888a,model:_0x19dbc9}=this['_editor'],_0x2741bf=_0x19dbc9['document']['selection']['getSelectedElement'](),_0x4be146=_0x2741bf&&(_0x2741bf['is']('element','imageBlock')||_0x2741bf['is']('element','imageInline'));this['_formView']=new x(_0x1f888a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x522e0f,'title':_(_0x1f888a,this['_type'],_0x4be146?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x15ecb3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f66e3=>!A(_0x3f66e3,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4d8b99}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x32f9a5=>{const _0x5c6c03=_0x4d8b99['length'];for(const _0x398053 of _0x4d8b99){const _0x22c332=_0x398053===_0x4d8b99[_0x5c6c03-0x1],{cdnUrl:_0x354b1b,fileInfo:_0x2cdc77}=_0x398053;if(!_0x354b1b||!_0x2cdc77)continue;const {width:_0x59dd85,height:_0x8e494a}=_0x2cdc77['imageInfo'],_0x36643e=S(_0x354b1b,_0x59dd85,_0x8e494a),_0x4340a3=C(_0x354b1b,_0x36643e['width']),_0x1cb470={'id':_0x2cdc77['uuid'],'type':'image','attributes':{'imageDimension':_0x36643e,..._0x4340a3}};this['_insertAsset'](_0x1cb470,_0x22c332,_0x32f9a5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x53db4f=>{'idle'===_0x53db4f['detail']['status']&&!_0x53db4f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1704b6,_0x362ad5,_0x4e716a){const _0x5d8c00=this['_editor']['model']['document']['selection'],_0x1c6e58=_0x5d8c00['getSelectedElement'](),_0x324893=!(!_0x1c6e58||!_0x1c6e58['is']('element','imageInline'));_0x4e716a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1704b6,_0x324893),_0x362ad5||_0x4e716a['setSelection'](_0x5d8c00['getLastPosition']());}['_insertImage'](_0xada5df,_0x225bce){const _0xe47b7c=this['_editor'],{imageDimension:_0x6eecb9,imageFallbackUrl:_0x5a9b7f,imageSources:_0x120db2}=_0xada5df['attributes'];_0xe47b7c['execute']('insertImage',{'imageType':_0x225bce?'imageInline':null,'source':{'uploadcareImageId':_0xada5df['id'],'src':_0x5a9b7f,'sources':_0x120db2,..._0x6eecb9}});}}class w extends _0x4df12c{['_editing'];['_controller']=null;static get['requires'](){return[_0x1b6dbc,o];}constructor(_0x3ed422){super(_0x3ed422),this['_editing']=_0x3ed422['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5b20aa){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5b20aa);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x53d07d,..._0x48e8c4}){return _0x751d95(_0x53d07d,_0x48e8c4);}static['getInfo'](_0x1fbb1e,_0x643859){return _0x3a6b15(_0x1fbb1e,_0x643859);}}class f extends _0x7163ca{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x55e3c6,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x98e2fa=this['editor'];if(!!!_0x98e2fa['config']['get']('uploadcare'))return;_0x98e2fa['plugins']['get'](_0x55e3c6)['createUploadAdapter']=_0x19e88b=>new k(_0x19e88b,_0x98e2fa),_0x98e2fa['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x497025,{imageElement:_0x3daf36,data:_0x190e91})=>{_0x98e2fa['model']['change'](_0x1c2682=>{_0x1c2682['setAttribute']('uploadcareImageId',_0x190e91['uploadcareImageId'],_0x3daf36);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x534c35,_0x546da5){this['loader']=_0x534c35,this['editor']=_0x546da5,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x81ff0=await this['loader']['file'];return j['upload']({'file':_0x81ff0,'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':_0x475162=>{_0x475162&&_0x475162['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x475162['value']);}})['then'](async _0x4ccfef=>{const {imageFallbackUrl:_0x47225a,imageSources:_0x42f7ce}=C(_0x4ccfef['cdnUrl'],_0x4ccfef['imageInfo']['width']);return{'uploadcareImageId':_0x4ccfef['uuid'],'default':_0x47225a,'sources':_0x42f7ce};})['catch'](()=>{const _0x8f4dc0=t('Cannot\x20upload\x20file:')+('\x20'+_0x81ff0['name']+'.');return Promise['reject'](_0x8f4dc0);});}['abort'](){this['controller']['abort']();}}class o extends _0x7163ca{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1b6dbc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x18bd69){super(_0x18bd69),this['ucContextId']=_0x210623();}['init'](){const _0x7f34b0=this['editor'];_0x7f34b0['commands']['add']('uploadcare',new w(_0x7f34b0));}['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 _0x4eb9c0=_0x27b7a0['document']['querySelector']('input[uploadcare-file-input]');_0x4eb9c0&&_0x4eb9c0['remove']();}),async function(_0x359f3b){const _0x4634e7=_0x27efc0([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]),_0x48fdd3=0x535f8c3a,_0x47a035=0x5358f28a^_0x48fdd3,_0x2cc991=window[_0x27efc0([0x44,0x61,0x74,0x65])][_0x27efc0([0x6e,0x6f,0x77])](),_0x316a98=_0x359f3b[_0x27efc0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xefef62=new window[(_0x27efc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e632d=>{_0x316a98[_0x27efc0([0x6f,0x6e,0x63,0x65])](_0x27efc0([0x72,0x65,0x61,0x64,0x79]),_0x5e632d);}),_0x3a426e={[_0x27efc0([0x6b,0x74,0x79])]:_0x27efc0([0x45,0x43]),[_0x27efc0([0x75,0x73,0x65])]:_0x27efc0([0x73,0x69,0x67]),[_0x27efc0([0x63,0x72,0x76])]:_0x27efc0([0x50,0x2d,0x32,0x35,0x36]),[_0x27efc0([0x78])]:_0x27efc0([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]),[_0x27efc0([0x79])]:_0x27efc0([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]),[_0x27efc0([0x61,0x6c,0x67])]:_0x27efc0([0x45,0x53,0x32,0x35,0x36])},_0x4a973c=_0x316a98[_0x27efc0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27efc0([0x67,0x65,0x74])](_0x27efc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x71172e(){let _0x8899f7,_0x399de2=null,_0x27b553=null;try{if(_0x4a973c==_0x27efc0([0x47,0x50,0x4c]))return _0x27efc0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8899f7=_0x55c2c4(),!_0x8899f7)return _0x27efc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8899f7[_0x27efc0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x27b553=_0x18c31d(_0x8899f7[_0x27efc0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8899f7[_0x27efc0([0x6a,0x74,0x69])])),await _0x97b2d8()?_0x4cb8d4()?_0xc604e1()?_0x27efc0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xfbde60()?(_0x8899f7[_0x27efc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27efc0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x399de2=_0x4f8ec8(_0x27efc0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45061d()):_0x27efc0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27efc0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27efc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x27efc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xc604e1(){const _0x321a55=[_0x27efc0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27efc0([0x74,0x72,0x69,0x61,0x6c])][_0x27efc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8899f7[_0x27efc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2cc991/0x3e8:0xe10*_0x47a035;return _0x8899f7[_0x27efc0([0x65,0x78,0x70])]<_0x321a55;}function _0x4cb8d4(){const _0x4c5fcc=_0x8899f7[_0x27efc0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4c5fcc&&(!!_0x4c5fcc[_0x27efc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27efc0([0x2a]))||!!_0x4c5fcc[_0x27efc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27efc0([0x55,0x50,0x4c,0x43])));}function _0xfbde60(){const _0x1479b2=_0x8899f7[_0x27efc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1479b2||0x0==_0x1479b2[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x359dd8}=new URL(window[_0x27efc0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1479b2[_0x27efc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x359dd8))return!0x0;const _0x2e1768=_0x359dd8[_0x27efc0([0x73,0x70,0x6c,0x69,0x74])](_0x27efc0([0x2e]));return _0x1479b2[_0x27efc0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11f83c=>_0x11f83c[_0x27efc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27efc0([0x2a])))[_0x27efc0([0x6d,0x61,0x70])](_0x471b31=>_0x471b31[_0x27efc0([0x73,0x70,0x6c,0x69,0x74])](_0x27efc0([0x2e])))[_0x27efc0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1de176=>_0x1de176[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2e1768[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27efc0([0x6d,0x61,0x70])](_0x43ec2e=>Array(_0x2e1768[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x43ec2e[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27efc0([0x66,0x69,0x6c,0x6c])](_0x43ec2e[0x0]===_0x27efc0([0x2a])?_0x27efc0([0x2a]):'')[_0x27efc0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x43ec2e))[_0x27efc0([0x73,0x6f,0x6d,0x65])](_0x30bdb5=>_0x2e1768[_0x27efc0([0x65,0x76,0x65,0x72,0x79])]((_0x3549de,_0x46a66a)=>_0x30bdb5[_0x46a66a]===_0x3549de||_0x30bdb5[_0x46a66a]===_0x27efc0([0x2a])));}function _0x45061d(){return _0x399de2&&_0x27b553?new window[(_0x27efc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25ae9c,_0x2f6c31)=>{_0x399de2[_0x27efc0([0x74,0x68,0x65,0x6e])](_0x25ae9c,_0x2f6c31),_0x27b553[_0x27efc0([0x74,0x68,0x65,0x6e])](_0x395387=>{_0x395387!=_0x27efc0([0x56,0x61,0x6c,0x69,0x64])&&_0x25ae9c(_0x395387);},_0x2f6c31);}):_0x399de2||_0x27b553||_0x27efc0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18c31d(_0xcff40,_0x47e2e3){return new window[(_0x27efc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a51e5=>{if(_0x3cdcdb())return _0x5a51e5(_0x27efc0([0x56,0x61,0x6c,0x69,0x64]));_0x1efd46(),_0x316a98[_0x27efc0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27efc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43a558=!0x1;const _0x2a97a1=_0x210623();function _0x4f06b4(_0x2e714b){return!!_0x2e714b&&(typeof _0x2e714b===_0x27efc0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e714b===_0x27efc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e714b[_0x27efc0([0x74,0x68,0x65,0x6e])]===_0x27efc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e714b[_0x27efc0([0x63,0x61,0x74,0x63,0x68])]===_0x27efc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d858c(_0x189ddd){_0x16b06c(_0x189ddd)[_0x27efc0([0x74,0x68,0x65,0x6e])](_0x52f08=>{if(!_0x52f08||_0x52f08[_0x27efc0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27efc0([0x6f,0x6b]))return _0x27efc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2347ef(_0x5072cb(_0x2a97a1+_0x47e2e3))!=_0x52f08[_0x27efc0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27efc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27efc0([0x56,0x61,0x6c,0x69,0x64]);})[_0x27efc0([0x74,0x68,0x65,0x6e])](_0x140fe3=>(_0xf6c629(),_0x140fe3),()=>{const _0x29e174=_0x32820b();return null==_0x29e174?(_0xf6c629(),_0x27efc0([0x56,0x61,0x6c,0x69,0x64])):_0x27efc0(_0x2cc991-_0x29e174>(0x7753083a^_0x48fdd3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27efc0([0x74,0x68,0x65,0x6e])](_0x5a51e5)[_0x27efc0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a51e5(_0x27efc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2087c2=0x536962ba^_0x48fdd3;function _0xf6c629(){const _0x3d17f6=_0x27efc0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2347ef(_0x5072cb(_0xcff40)),_0x1a86d6=_0x35bb36(_0x2347ef(window[_0x27efc0([0x4d,0x61,0x74,0x68])][_0x27efc0([0x63,0x65,0x69,0x6c])](_0x2cc991/_0x2087c2)));window[_0x27efc0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27efc0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d17f6,_0x1a86d6);}function _0x32820b(){const _0x57129c=_0x27efc0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2347ef(_0x5072cb(_0xcff40)),_0x4fbd7d=window[_0x27efc0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27efc0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57129c);return _0x4fbd7d?window[_0x27efc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35bb36(_0x4fbd7d),0x10)*_0x2087c2:null;}function _0x16b06c(_0x47802f){return new window[(_0x27efc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a7bf7,_0x3b58aa)=>{_0x47802f[_0x27efc0([0x74,0x68,0x65,0x6e])](_0x5a7bf7,_0x3b58aa),window[_0x27efc0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b58aa,0x535e58fa^_0x48fdd3);});}}_0x316a98[_0x27efc0([0x6f,0x6e])](_0x27efc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e47c8,_0x5376a9)=>{if(_0x5376a9[0x0]!=_0xcff40)return _0x5a51e5(_0x27efc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5376a9[0x1]={..._0x5376a9[0x1],[_0x27efc0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a97a1};},{[_0x27efc0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27efc0([0x68,0x69,0x67,0x68])}),_0x316a98[_0x27efc0([0x6f,0x6e])](_0x27efc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3275b1=>{_0x4f06b4(_0x3275b1[_0x27efc0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43a558=!0x0,_0x4d858c(_0x3275b1[_0x27efc0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27efc0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27efc0([0x6c,0x6f,0x77])}),_0xefef62[_0x27efc0([0x74,0x68,0x65,0x6e])](()=>{_0x43a558||_0x5a51e5(_0x27efc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3cdcdb(){return _0x316a98[_0x27efc0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27efc0([0x76,0x69,0x65,0x77])][_0x27efc0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27efc0([0x61,0x75,0x74,0x6f]);}function _0x1efd46(){_0x316a98[_0x27efc0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27efc0([0x76,0x69,0x65,0x77])][_0x27efc0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27efc0([0x61,0x75,0x74,0x6f]);}}function _0x4f8ec8(_0x93937b){const _0x50a2af=[new window[(_0x27efc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b616e=>setTimeout(_0x4b616e,0x5356b2f6^_0x48fdd3)),_0xefef62[_0x27efc0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27efc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x557c1c=>{let _0x4726d5=0x0;_0x316a98[_0x27efc0([0x6d,0x6f,0x64,0x65,0x6c])][_0x27efc0([0x6f,0x6e])](_0x27efc0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ef8ca,_0x2d8c9e)=>{_0x2d8c9e[0x0][_0x27efc0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4726d5++,_0x4726d5==(0x535f89d2^_0x48fdd3)&&(_0x557c1c(),_0x1ef8ca[_0x27efc0([0x6f,0x66,0x66])]());});}))];return window[_0x27efc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27efc0([0x72,0x61,0x63,0x65])](_0x50a2af)[_0x27efc0([0x74,0x68,0x65,0x6e])](()=>_0x93937b);}async function _0x60d4ce(){await _0xefef62,_0x316a98[_0x27efc0([0x6d,0x6f,0x64,0x65,0x6c])][_0x27efc0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18fd8e,_0x316a98[_0x27efc0([0x6d,0x6f,0x64,0x65,0x6c])][_0x27efc0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18fd8e,_0x316a98[_0x27efc0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27efc0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4838da(_0x2aa94c){const _0xfa5f3f=_0x58f7c4();_0x316a98[_0xfa5f3f]=_0x27efc0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2aa94c,_0x2aa94c!=_0x27efc0([0x56,0x61,0x6c,0x69,0x64])&&_0x60d4ce();}function _0x58f7c4(){const _0x4f4c87=window[_0x27efc0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27efc0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27efc0([0x6e,0x6f,0x77])]())[_0x27efc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27efc0([0x2e]),'');let _0x5570c9=_0x27efc0([0x68]);for(let _0x85497d=0x0;_0x85497d<_0x4f4c87[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x85497d+=0x2){let _0x31c653=window[_0x27efc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f4c87[_0x27efc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x85497d,_0x85497d+0x2));_0x31c653>=_0x4634e7[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31c653-=_0x4634e7[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5570c9+=_0x4634e7[_0x31c653];}return _0x5570c9;}function _0x55c2c4(){const _0x27899e=_0x4a973c[_0x27efc0([0x73,0x70,0x6c,0x69,0x74])](_0x27efc0([0x2e]));if(0x3!=_0x27899e[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e3a30(_0x27899e[0x1]);function _0x4e3a30(_0x18e140){const _0x5e992e=_0x159529(_0x18e140);return _0x5e992e&&_0x685c94()?_0x5e992e:null;function _0x685c94(){const _0x474774=_0x5e992e[_0x27efc0([0x6a,0x74,0x69])],_0x459ddc=window[_0x27efc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x474774[_0x27efc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x474774[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ebd11={..._0x5e992e,[_0x27efc0([0x6a,0x74,0x69])]:_0x474774[_0x27efc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x474774[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ebd11[_0x27efc0([0x76,0x63])],_0x5072cb(_0x3ebd11)==_0x459ddc;}}}async function _0x97b2d8(){let _0x554d8a=!0x0;try{const _0x15bb16=_0x4a973c[_0x27efc0([0x73,0x70,0x6c,0x69,0x74])](_0x27efc0([0x2e])),[_0x3dc677,_0x4c6099,_0x7a0c9f]=_0x15bb16;return _0x31381e(_0x3dc677),await _0x5d93ce(_0x3dc677,_0x4c6099,_0x7a0c9f),_0x554d8a;}catch{return!0x1;}function _0x31381e(_0x4f8391){const _0x53ae15=_0x159529(_0x4f8391);_0x53ae15&&_0x53ae15[_0x27efc0([0x61,0x6c,0x67])]==_0x27efc0([0x45,0x53,0x32,0x35,0x36])||(_0x554d8a=!0x1);}async function _0x5d93ce(_0x9f3c73,_0x5f0dd8,_0x5cd44d){const _0x54fea0=window[_0x27efc0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27efc0([0x66,0x72,0x6f,0x6d])](_0x106631(_0x5cd44d),_0x5f5d6e=>_0x5f5d6e[_0x27efc0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47b94d=new window[(_0x27efc0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27efc0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x9f3c73+_0x27efc0([0x2e])+_0x5f0dd8),_0x3bd20e=window[_0x27efc0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27efc0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3bd20e)return;const _0x49a3e8=await _0x3bd20e[_0x27efc0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27efc0([0x6a,0x77,0x6b]),_0x3a426e,{[_0x27efc0([0x6e,0x61,0x6d,0x65])]:_0x27efc0([0x45,0x43,0x44,0x53,0x41]),[_0x27efc0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27efc0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27efc0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3bd20e[_0x27efc0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27efc0([0x6e,0x61,0x6d,0x65])]:_0x27efc0([0x45,0x43,0x44,0x53,0x41]),[_0x27efc0([0x68,0x61,0x73,0x68])]:{[_0x27efc0([0x6e,0x61,0x6d,0x65])]:_0x27efc0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49a3e8,_0x54fea0,_0x47b94d)||(_0x554d8a=!0x1);}}function _0x159529(_0xc391b2){return _0xc391b2[_0x27efc0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27efc0([0x65,0x79]))?JSON[_0x27efc0([0x70,0x61,0x72,0x73,0x65])](_0x106631(_0xc391b2)):null;}function _0x106631(_0x581d7c){return window[_0x27efc0([0x61,0x74,0x6f,0x62])](_0x581d7c[_0x27efc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27efc0([0x2b]))[_0x27efc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27efc0([0x2f])));}function _0x5072cb(_0x160d58){let _0x5478d6=0x1505;function _0x2b997d(_0x6b660e){for(let _0x4d9560=0x0;_0x4d9560<_0x6b660e[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d9560++){const _0x2257a7=_0x6b660e[_0x27efc0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d9560);_0x5478d6=(_0x5478d6<<0x5)+_0x5478d6+_0x2257a7,_0x5478d6&=_0x5478d6;}}function _0x4971eb(_0x46f8a9){Array[_0x27efc0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46f8a9)?_0x46f8a9[_0x27efc0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4971eb):_0x46f8a9&&typeof _0x46f8a9==_0x27efc0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27efc0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46f8a9)[_0x27efc0([0x73,0x6f,0x72,0x74])]()[_0x27efc0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a74fe,_0xefc0ef])=>{_0x2b997d(_0x4a74fe),_0x4971eb(_0xefc0ef);}):_0x2b997d(window[_0x27efc0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46f8a9));}return _0x4971eb(_0x160d58),_0x5478d6>>>0x0;}function _0x2347ef(_0x56cedc){return _0x56cedc[_0x27efc0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27efc0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27efc0([0x30]));}function _0x35bb36(_0x2f34f6){return _0x2f34f6[_0x27efc0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27efc0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27efc0([0x6a,0x6f,0x69,0x6e])]('');}function _0x18fd8e(){}function _0x27efc0(_0x361148){return _0x361148['map'](_0x148c8a=>String['fromCharCode'](_0x148c8a))['join']('');}_0x4838da(await _0x71172e());}(this);}['_initSchema'](){const _0x5db65a=this['editor']['model']['schema'];_0x5db65a['isRegistered']('imageBlock')&&_0x5db65a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5db65a['isRegistered']('imageInline')&&_0x5db65a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3fb03e=this['editor'];_0x3fb03e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3fb03e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x34ea62=>_0x34ea62['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2e9a43=_0x3fb03e['commands']['get']('replaceImageSource');_0x2e9a43&&this['listenTo'](_0x2e9a43,'cleanupImage',(_0x4bd59c,[_0x1a1be,_0x88373f])=>{_0x1a1be['removeAttribute']('uploadcareImageId',_0x88373f);});}['_initConfig'](){const _0x146f30=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3ec993=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xd1ae02(_0x27b7a0['document'],'uc-config',{..._0x146f30,'pubkey':_0x3ec993,'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']=_0x5aaed2=>{if('closeMax'==_0x5aaed2)return'#uc-icon-arrow-down';},_0x27b7a0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xd1ae02(_0x27b7a0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x27b7a0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x396bca=this['editor']['commands']['get']('insertImage');_0x396bca&&this['listenTo'](_0x396bca,'execute',()=>{const _0x277460=this['editor']['model']['document']['selection']['getSelectedElement']();_0x277460&&_0x277460['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x277460);});});const _0xcca4d1=this['editor']['commands']['get']('uploadcareImageReplace');_0xcca4d1&&this['listenTo'](_0xcca4d1,'execute',()=>{const _0x32976e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x32976e&&_0x32976e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x32976e);});});}}class tt extends _0x7163ca{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40eeda){super(_0x40eeda),_0x40eeda['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5ba2eb['defineComponents'](_0x5ba2eb),this['_defineLocale']();}['_defineLocale'](){const _0x340cfe=this['editor']['config']['get']('uploadcare.locale'),_0x20542b=this['editor']['locale']['contentLanguage'];_0x340cfe&&_0x5ba2eb['defineLocale'](_0x20542b,_0x340cfe);}}class ii extends _0x202034{constructor(_0x218f30){super(_0x218f30);const t=_0x218f30['t'],_0x228489=this['bindTemplate'],_0x2cd70e=new _0x515ce1();_0x2cd70e['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':[_0x2cd70e,{'text':_0x228489['to']('imageUploadProgress',_0x16f93e=>t('Loading\x20image...')+'\x20('+(_0x16f93e||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 _0x202034{constructor(_0x1c8a9a){super(_0x1c8a9a);const t=_0x1c8a9a['t'];this['set']('errorType',null);const _0x42af6a=new _0x436093(_0x1c8a9a);_0x42af6a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x42af6a['withText']=!0x0,_0x42af6a['class']='ck-button-action',_0x42af6a['on']('execute',()=>{this['fire']('retry');}),_0x42af6a['bind']('isVisible')['to'](this,'errorType',_0x2936bf=>'NotFound'!==_0x2936bf);const _0x5c73e7=new _0x2d1290();_0x5c73e7['content']=_0x1011b7,_0x5c73e7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x556c3a=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':[_0x5c73e7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x556c3a['to']('errorType',_0x737a1f=>t('NotFound'!==_0x737a1f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x42af6a]},{'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 _0x202034{constructor(_0x559676,_0x4b59d8){super(_0x559676);const _0x29a691=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4b59d8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x29a691['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x23059f,_0x3af8e2,_0x3e1fe0){super(_0x23059f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x23059f),this['_errorView']=new ti(_0x23059f),this['_editingView']=new ei(_0x23059f,_0x3e1fe0),this['_focusableView']=new _0x202034(_0x23059f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3af8e2),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'],_0x24c9fa=>{this['_addUploadcareImageEditorListeners'](_0x24c9fa);});}),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'](_0xe189de,_0x28b8dc){const _0x20fb96='uc-cloud-image-editor',_0x59e034=_0xe189de['querySelector'](_0x20fb96);if(_0x59e034)return _0x28b8dc(_0x59e034);const _0x24eae3=new MutationObserver(_0x1e9a21=>{const _0x35b5ed=_0x1e9a21['filter'](_0x4a5167=>_0x4a5167['target']===_0xe189de&&_0x4a5167['addedNodes']['length']>0x0&&_0x4a5167['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x20fb96);_0x35b5ed['length']&&(_0x24eae3['disconnect'](),_0x28b8dc(_0x35b5ed[0x0]['addedNodes'][0x0]));});_0x24eae3['observe'](_0xe189de,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1252a8){_0x1252a8['addEventListener']('apply',_0x4c6ab7=>{this['fire']('apply',{'imageSrc':_0x4c6ab7['detail']['cdnUrl']});}),_0x1252a8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4e83f8(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x7b6894,_0xd99844,_0x3dc993){super(),this['_editor']=_0x7b6894,this['_dialog']=_0xd99844,this['_imageElement']=_0x3dc993,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 _0x4154b2=this['_imageElement'],_0x1defcd=_0x4154b2['getAttribute']('uploadcareImageId'),_0x26a3df=_0x4154b2['getAttribute']('src');if(_0x1defcd)await this['_loadImageInfo'](_0x1defcd,_0x26a3df);else{if(this['_imageCache']['has'](_0x26a3df)){const _0x229106=this['_imageCache']['get'](_0x26a3df);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x229106['url'],this['imageDimension']=_0x229106['dimension'],this['imageId']=_0x229106['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x117d96}=this['_editor'],t=_0x117d96['t'],_0x548051=new X(_0x117d96,this['imageStatus'],this['_attributes']);_0x548051['bind']('status')['to'](this,'imageStatus'),_0x548051['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x548051['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x548051['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x548051,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x99bfc9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x548051,'position':_0x15ecb3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x548051['focus']();},'onHide':()=>{_0x548051['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1ffdfa=>!A(_0x1ffdfa,_0x548051['element'])}});}['_loadImageInfo'](_0x37bc93,_0x13d583){return j['getInfo'](_0x37bc93,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x421c9f=>{const {width:_0x43cd18,height:_0x177ba6}=_0x421c9f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13d583,this['imageDimension']={'width':_0x43cd18,'height':_0x177ba6},this['imageId']=_0x37bc93;})['catch'](_0x1e5c3d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e5c3d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x217709,_0xa913db){return this['_getImageAsFile'](_0x217709)['then'](_0x3c54a5=>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':_0xa913db['signal'],'file':_0x3c54a5,'onProgress':_0x381557=>{_0x381557&&_0x381557['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x381557['value']));}}))['then'](_0x5ce9aa=>{const {width:_0x4bc88e,height:_0x26fed1}=_0x5ce9aa['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ce9aa['cdnUrl'],this['imageDimension']={'width':_0x4bc88e,'height':_0x26fed1},this['imageId']=_0x5ce9aa['uuid'],this['imageUploadProgress']=null;const _0x42a56a=_0x217709['getAttribute']('src');this['_imageCache']['set'](_0x42a56a,{'id':_0x5ce9aa['uuid'],'url':_0x5ce9aa['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x104560=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x104560['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x505e08,_0x1e5602){_0x505e08['on']('apply',(_0x513da9,_0x692ff)=>{this['_replaceImage'](_0x1e5602,_0x692ff['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x505e08['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x505e08['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1ea997,_0x4d59ea,_0x443185){const _0x3608cd=this['_editor'],{width:_0x44c6e3,height:_0x25953a}=S(_0x4d59ea,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4fa7de,imageSources:_0x184b22}=C(_0x4d59ea,_0x44c6e3);_0x3608cd['model']['change'](_0x22cc39=>{if('$graveyard'===_0x1ea997['root']['rootName']){_0x3608cd['execute']('insertImage',{'imageType':_0x1ea997['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1ea997['getAttributes']()),'uploadcareImageId':_0x443185,'src':_0x4fa7de,'sources':_0x184b22,'width':_0x44c6e3,'height':_0x25953a}});const _0x5888c8=_0x1ea997['getChildren']();_0x1ea997=_0x3608cd['model']['document']['selection']['getSelectedElement']();for(const _0x1f00a0 of _0x5888c8)_0x22cc39['append'](_0x22cc39['cloneElement'](_0x1f00a0),_0x1ea997);}else _0x22cc39['setSelection'](_0x1ea997,'on'),_0x3608cd['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1ea997['getAttributes']()),'uploadcareImageId':_0x443185,'src':_0x4fa7de,'sources':_0x184b22,'width':_0x44c6e3,'height':_0x25953a},_0x1ea997);_0x22cc39['setSelection'](_0x1ea997,'on');});}async['_getImageAsFile'](_0x2d25cf){const _0x11746f=_0x27b7a0['window'],_0x2df308=_0x27b7a0['document']['location']['href'],_0x16ab94=new _0x11746f['URL'](_0x2d25cf['getAttribute']('src'),_0x2df308);if('data:'===_0x16ab94['protocol']){const _0x33dfa0=_0x16ab94['href']['split'](','),_0xbd87a1=_0x33dfa0[0x0]['match'](/:(.*?);/)[0x1],_0x465443=_0xbd87a1['split']('/')[0x1],_0x44f5de=_0x11746f['atob'](_0x33dfa0[_0x33dfa0['length']-0x1]);let _0x241eb3=_0x44f5de['length'];const _0x11a74a=new _0x11746f['Uint8Array'](_0x241eb3);for(;_0x241eb3--;)_0x11a74a[_0x241eb3]=_0x44f5de['charCodeAt'](_0x241eb3);return new _0x11746f['File']([_0x11a74a],'image.'+_0x465443,{'type':_0xbd87a1});}const _0x54b893=_0x16ab94['href']['split']('/'),_0x124bf1=_0x54b893[_0x54b893['length']-0x1],_0x508a97=_0x124bf1['split']('.')[0x1];return _0x11746f['fetch'](_0x16ab94['href'])['then'](_0x4adce8=>_0x4adce8['clone']()['blob']())['then'](_0x142ac3=>new _0x11746f['File']([_0x142ac3],_0x124bf1,{'type':'image/'+_0x508a97}));}}class O extends _0x4df12c{['imageEditController'];static get['requires'](){return[_0x1b6dbc];}['_isEditable'];constructor(_0x5711bd){super(_0x5711bd),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2f23b5){const _0x36a0b7=G(_0x2f23b5);return _0x2d6673=>!(!_0x2d6673||!_0x2d6673['is']('element','imageBlock')&&!_0x2d6673['is']('element','imageInline'))&&(!!_0x2d6673['hasAttribute']('uploadcareImageId')||!!_0x2d6673['hasAttribute']('src')&&_0x36a0b7(_0x2d6673['getAttribute']('src')));}(_0x5711bd['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x364ffd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x364ffd);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1e398e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1e398e&&(_0x1e398e['is']('element','imageBlock')||_0x1e398e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1b6dbc),_0x1e398e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4df12c{['refresh'](){const _0x2f2f02=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2f2f02&&(_0x2f2f02['is']('element','imageBlock')||_0x2f2f02['is']('element','imageInline')));}['execute'](_0x1df7c3){const _0x1b8749=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x520d0c=>{_0x520d0c['setAttributes'](_0x1df7c3,_0x1b8749),_0x520d0c['removeAttribute']('srcset',_0x1b8749),_0x520d0c['removeAttribute']('sizes',_0x1b8749);});}}class m extends _0x7163ca{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3d0e66,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x7228fe}=this;_0x7228fe['commands']['add']('uploadcareImageEdit',new O(_0x7228fe)),_0x7228fe['commands']['add']('uploadcareImageReplace',new R(_0x7228fe));}}class g extends _0x7163ca{['_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 _0x519dc4=this['editor'];_0x519dc4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x461a44=>{const _0x134c64=_0x519dc4['commands']['get']('uploadcareImageEdit'),_0xd24f85=new _0x436093(_0x461a44),t=_0x461a44['t'];return _0xd24f85['set']({'icon':_0x99bfc9,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xd24f85['bind']('isEnabled')['to'](_0x134c64),_0xd24f85['bind']('isOn')['to'](_0x134c64,'isActive'),this['listenTo'](_0xd24f85,'execute',()=>{_0x519dc4['execute']('uploadcareImageEdit'),_0x519dc4['editing']['view']['focus']();}),_0xd24f85;}),this['_initConfig']();}['_initConfig'](){const _0x39dc4e=_0xd1ae02(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x39dc4e),this['listenTo'](this['editor'],'destroy',()=>{_0x39dc4e['remove']();});}}class et extends _0x7163ca{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':_0x5d49f8=>0x1!=_0x5d49f8}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x58f7b5=>{const {af:{dictionary:_0x19bab8,getPluralForm:_0x623cff}}={'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':_0x5614b4=>0x1!=_0x5614b4}};_0x58f7b5['af']||={'dictionary':{},'getPluralForm':null},_0x58f7b5['af']['dictionary']=Object['assign'](_0x58f7b5['af']['dictionary'],_0x19bab8),_0x58f7b5['af']['getPluralForm']=_0x623cff;})(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':_0x23cec2=>0x0==_0x23cec2?0x0:0x1==_0x23cec2?0x1:0x2==_0x23cec2?0x2:_0x23cec2%0x64>=0x3&&_0x23cec2%0x64<=0xa?0x3:_0x23cec2%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x36f33a=>{const {ar:{dictionary:_0x5cc2fd,getPluralForm:_0x2abd27}}={'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':_0x3df084=>0x0==_0x3df084?0x0:0x1==_0x3df084?0x1:0x2==_0x3df084?0x2:_0x3df084%0x64>=0x3&&_0x3df084%0x64<=0xa?0x3:_0x3df084%0x64>=0xb?0x4:0x5}};_0x36f33a['ar']||={'dictionary':{},'getPluralForm':null},_0x36f33a['ar']['dictionary']=Object['assign'](_0x36f33a['ar']['dictionary'],_0x5cc2fd),_0x36f33a['ar']['getPluralForm']=_0x2abd27;})(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':_0x24a1f1=>0x1!=_0x24a1f1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x19d8c5=>{const {ast:{dictionary:_0x1185db,getPluralForm:_0x2e4fe8}}={'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':_0x4f699d=>0x1!=_0x4f699d}};_0x19d8c5['ast']||={'dictionary':{},'getPluralForm':null},_0x19d8c5['ast']['dictionary']=Object['assign'](_0x19d8c5['ast']['dictionary'],_0x1185db),_0x19d8c5['ast']['getPluralForm']=_0x2e4fe8;})(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':_0x43e886=>0x1!=_0x43e886}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x477e99=>{const {az:{dictionary:_0x223926,getPluralForm:_0x5db262}}={'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':_0x5d58b7=>0x1!=_0x5d58b7}};_0x477e99['az']||={'dictionary':{},'getPluralForm':null},_0x477e99['az']['dictionary']=Object['assign'](_0x477e99['az']['dictionary'],_0x223926),_0x477e99['az']['getPluralForm']=_0x5db262;})(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':_0x435606=>_0x435606%0xa==0x1&&_0x435606%0x64!=0xb?0x0:_0x435606%0xa>=0x2&&_0x435606%0xa<=0x4&&(_0x435606%0x64<0xa||_0x435606%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x415a88=>{const {be:{dictionary:_0x3237ae,getPluralForm:_0x2521a9}}={'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':_0x380f0a=>_0x380f0a%0xa==0x1&&_0x380f0a%0x64!=0xb?0x0:_0x380f0a%0xa>=0x2&&_0x380f0a%0xa<=0x4&&(_0x380f0a%0x64<0xa||_0x380f0a%0x64>=0x14)?0x1:0x2}};_0x415a88['be']||={'dictionary':{},'getPluralForm':null},_0x415a88['be']['dictionary']=Object['assign'](_0x415a88['be']['dictionary'],_0x3237ae),_0x415a88['be']['getPluralForm']=_0x2521a9;})(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':_0x3291fa=>0x1!=_0x3291fa}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x445c8f=>{const {bg:{dictionary:_0x10259f,getPluralForm:_0x179c6f}}={'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':_0x530516=>0x1!=_0x530516}};_0x445c8f['bg']||={'dictionary':{},'getPluralForm':null},_0x445c8f['bg']['dictionary']=Object['assign'](_0x445c8f['bg']['dictionary'],_0x10259f),_0x445c8f['bg']['getPluralForm']=_0x179c6f;})(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':_0x218f66=>0x1!=_0x218f66}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1cc30c=>{const {bn:{dictionary:_0x3e52b2,getPluralForm:_0x26db6d}}={'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':_0x45a5e8=>0x1!=_0x45a5e8}};_0x1cc30c['bn']||={'dictionary':{},'getPluralForm':null},_0x1cc30c['bn']['dictionary']=Object['assign'](_0x1cc30c['bn']['dictionary'],_0x3e52b2),_0x1cc30c['bn']['getPluralForm']=_0x26db6d;})(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':_0x18d817=>_0x18d817%0xa==0x1&&_0x18d817%0x64!=0xb?0x0:_0x18d817%0xa>=0x2&&_0x18d817%0xa<=0x4&&(_0x18d817%0x64<0xa||_0x18d817%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1262b1=>{const {bs:{dictionary:_0x24a0db,getPluralForm:_0x3e7ff5}}={'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':_0x37677b=>_0x37677b%0xa==0x1&&_0x37677b%0x64!=0xb?0x0:_0x37677b%0xa>=0x2&&_0x37677b%0xa<=0x4&&(_0x37677b%0x64<0xa||_0x37677b%0x64>=0x14)?0x1:0x2}};_0x1262b1['bs']||={'dictionary':{},'getPluralForm':null},_0x1262b1['bs']['dictionary']=Object['assign'](_0x1262b1['bs']['dictionary'],_0x24a0db),_0x1262b1['bs']['getPluralForm']=_0x3e7ff5;})(window['CKEDITOR_TRANSLATIONS']||={});
|