@ckeditor/ckeditor5-uploadcare 47.4.0-alpha.1 → 47.4.0-alpha.3
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 _0x4f265d,Command as _0x288d1e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2de081,IconGooglePhotos as _0x2b897f,IconGoogleDrive as _0x201bc3,IconFacebook as _0x39a4a3,IconDropbox as _0x50b0eb,IconUploadcareLink as _0x862ebd,IconUploadcareImageUpload as _0x4b6f2b,IconError as _0x633358,IconUploadcareImageEdit as _0x853a39}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x273d6d,MenuBarMenuListItemButtonView as _0x24b47f,View as _0x3ef4e6,FocusCycler as _0x4a6a65,Dialog as _0x4bbaa4,DialogViewPosition as _0x3640ee,SpinnerView as _0x5a34ec,IconView as _0x2f3a61,Notification as _0x35878d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x54d273,DomEmitterMixin as _0x20c6b5,global as _0x23c968,getAncestors as _0x4e69a1,ObservableMixin as _0x141f77,uid as _0x85afa9,createElement as _0x425fdc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xdb13fd}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x575745,info as _0x295253}from'@uploadcare/upload-client';import*as _0x409021 from'@uploadcare/file-uploader';var i=function(_0x32fb3e){return _0x32fb3e['Local']='local',_0x32fb3e['URL']='url',_0x32fb3e['Dropbox']='dropbox',_0x32fb3e['GDrive']='gdrive',_0x32fb3e['Facebook']='facebook',_0x32fb3e['GPhotos']='gphotos',_0x32fb3e['OneDrive']='onedrive',_0x32fb3e;}({});function _(_0x2a1e82,_0x912322,_0x718919){const t=_0x2a1e82['t'],_0x24a4e4=_0x2a1e82['t'];switch(_0x912322){case i['Local']:return{'text':_0x24a4e4('Insert'===_0x718919?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x24a4e4('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x718919?_0x24a4e4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x24a4e4('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x718919?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x718919?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x718919?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x718919?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x718919?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x912322;}}class e extends _0x4f265d{['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 _0x537f6e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43159d;for(const _0xa7d469 in _0x537f6e){const _0x5f139b=_0xa7d469,_0x31443c=_0x537f6e[_0x5f139b];if('uploadcareLicenseKeyValid'==_0x31443c||'uploadcareLicenseKeyInvalid'==_0x31443c||'uploadcareLicenseKeyExpired'==_0x31443c||'uploadcareLicenseKeyDomainLimit'==_0x31443c||'uploadcareLicenseKeyNotAllowed'==_0x31443c||'uploadcareLicenseKeyEvaluationLimit'==_0x31443c||'uploadcareLicenseKeyUsageLimit'==_0x31443c){delete _0x537f6e[_0x5f139b],_0x43159d=_0x31443c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x43159d&&_0x537f6e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x43159d&&_0x537f6e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x43159d&&_0x537f6e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x43159d&&_0x537f6e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x43159d&&_0x537f6e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x43159d&&_0x537f6e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5cb3bf}=this,_0x384c79=_0x5cb3bf['commands']['get']('uploadcare');if(!_0x384c79)return;const _0x2024a2=this['_normalizeConfigSourceList'](_0x5cb3bf['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4763ef,_0x44903e)=>{const _0x33d9d1=this['_getIntegrationKey'](_0x44903e['type']);return _0x4763ef[_0x33d9d1]||(_0x4763ef[_0x33d9d1]=[]),_0x4763ef[_0x33d9d1]['push'](_0x44903e),_0x4763ef;},{});_0x5cb3bf['plugins']['has']('ImageInsertUI')&&_0x5cb3bf['commands']['get']('uploadcare')&&Object['entries'](_0x2024a2)['forEach'](([_0x28068c,_0x130376])=>{_0x5cb3bf['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x28068c,'observable':()=>_0x384c79,'buttonViewCreator':()=>this['_createToolbarButton'](_0x130376),'formViewCreator':()=>this['_createDropdownButtons'](_0x130376),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x130376),'override':'assetManager'!==_0x28068c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x497c4f){const {locale:_0x524792}=this['editor'];return _0x497c4f['map'](_0xfc9e1=>{const _0x3b4f33=_(_0x524792,_0xfc9e1,'Insert');switch(_0xfc9e1){case i['Local']:return{'icon':_0x4b6f2b,'type':i['Local'],..._0x3b4f33};case i['URL']:return{'icon':_0x862ebd,'type':i['URL'],..._0x3b4f33};case i['Dropbox']:return{'icon':_0x50b0eb,'type':i['Dropbox'],..._0x3b4f33};case i['Facebook']:return{'icon':_0x39a4a3,'type':i['Facebook'],..._0x3b4f33};case i['GDrive']:return{'icon':_0x201bc3,'type':i['GDrive'],..._0x3b4f33};case i['GPhotos']:return{'icon':_0x2b897f,'type':i['GPhotos'],..._0x3b4f33};case i['OneDrive']:return{'icon':_0x2de081,'type':i['OneDrive'],..._0x3b4f33};}});}['_getIntegrationKey'](_0x58223a){switch(_0x58223a){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2b2dde,_0x5c05e2){const _0x2d0622=this['editor'],_0x5b4428=new _0x2b2dde(_0x2d0622['locale']),_0x5c724f=_0x2d0622['commands']['get']('uploadcare');return _0x5b4428['bind']('isEnabled')['to'](_0x5c724f),_0x5b4428['on']('execute',()=>{_0x5c724f['execute'](_0x5c05e2);}),_0x5b4428;}['_createToolbarButton'](_0x92d81f){const {locale:_0x4cba67}=this['editor'],_0x5cbd98=this['editor']['plugins']['get']('ImageInsertUI'),_0x12d493=_0x92d81f[0x0],_0x25c145=this['_createButton'](_0x273d6d,_0x12d493['type']);return _0x25c145['icon']=_0x12d493['icon'],_0x25c145['bind']('label')['to'](_0x5cbd98,'isImageSelected',_0x320023=>_(_0x4cba67,_0x12d493['type'],_0x320023?'Replace':'Insert')['text']),_0x25c145['tooltip']=!0x0,_0x25c145;}['_createDropdownButtons'](_0x149e1c){const {locale:_0x200b91}=this['editor'],_0x3b0154=this['editor']['plugins']['get']('ImageInsertUI');return _0x149e1c['map'](_0x4922fb=>{const _0x2e1cae=this['_createButton'](_0x273d6d,_0x4922fb['type']);return _0x2e1cae['withText']=!0x0,_0x2e1cae['icon']=_0x4922fb['icon'],_0x2e1cae['bind']('label')['to'](_0x3b0154,'isImageSelected',_0x25b40f=>_(_0x200b91,_0x4922fb['type'],_0x25b40f?'Replace':'Insert')['text']),_0x2e1cae;});}['_createMenuBarButtons'](_0x5475fa){return _0x5475fa['map'](_0x3f33ea=>{const _0x5050ff=this['_createButton'](_0x24b47f,_0x3f33ea['type']);return _0x5050ff['icon']=_0x3f33ea['icon'],_0x5050ff['label']=_0x3f33ea['shortText'],_0x5050ff;});}}class F extends _0x3ef4e6{['focusTracker'];['focusCycler'];constructor(_0x12363e){super(_0x12363e),this['focusTracker']=new _0x54d273(),this['focusCycler']=new _0x4a6a65({'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(_0x4ef0d6,_0x41a1c9){super(_0x4ef0d6),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-'+_0x41a1c9}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x46630c,_0x24b5c9){const _0x23b520=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x23adb5=>_0x23adb5<=_0x24b5c9)['map'](_0x3b5a49=>_0x46630c['replace'](/\/$/,'')+'/-/resize/'+_0x3b5a49+'x/\x20'+_0x3b5a49+'w');return{'imageFallbackUrl':_0x46630c,'imageSources':[{'srcset':_0x23b520['join'](',\x20'),'sizes':'(max-width:\x20'+_0x24b5c9+'px)\x20100vw,\x20'+_0x24b5c9+'px','type':'image/webp'}]};}function S(_0x544b8a,_0x4252da,_0x4ada22){const _0x22533c=_0x544b8a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x22533c?parseInt(_0x22533c[0x1],0xa):_0x4252da,'height':_0x22533c?parseInt(_0x22533c[0x2],0xa):_0x4ada22};}function p(_0x851d1d,_0x4fe8c2){const _0x13b767=new(_0x20c6b5())(),_0x481ba6=_0x851d1d['plugins']['get']('ImageUtils'),_0x119225=_0x851d1d['editing']['mapper']['toViewElement'](_0x4fe8c2),_0x1e2c5b=_0x481ba6['findViewImgElement'](_0x119225),_0x50eb7a=_0x851d1d['editing']['view']['domConverter']['viewToDom'](_0x1e2c5b),_0x276da3=_0x4fe8c2['getAttribute']('width'),_0x15cadf=_0x4fe8c2['getAttribute']('height'),_0x5bf1af='image-processing';_0x851d1d['editing']['view']['change'](_0x9e1bff=>{_0x9e1bff['addClass'](_0x5bf1af,_0x119225),_0x9e1bff['setStyle']('aspect-ratio',_0x276da3+'/'+_0x15cadf,_0x1e2c5b);}),_0x13b767['listenTo'](_0x50eb7a,'load',()=>{_0x13b767['stopListening'](_0x50eb7a,'load'),_0x851d1d['editing']['view']['change'](_0xcfdca2=>{_0xcfdca2['removeClass'](_0x5bf1af,_0x119225),_0xcfdca2['removeStyle']('aspect-ratio',_0x1e2c5b);});});}function G(_0x426287){if(Array['isArray'](_0x426287)){const _0x5057ae=_0x426287['map'](G);return _0x2e8a01=>_0x5057ae['some'](_0x53718a=>_0x53718a(_0x2e8a01));}if('origin'==_0x426287){const _0x4f7c1f=_0x23c968['window']['location']['origin'];return _0x1c9bf8=>new URL(_0x1c9bf8,_0x23c968['document']['baseURI'])['origin']==_0x4f7c1f;}return'function'==typeof _0x426287?_0x426287:_0x426287 instanceof RegExp?_0x1c5653=>!(!_0x1c5653['match'](_0x426287)&&!_0x1c5653['replace'](/^https?:\/\//,'')['match'](_0x426287)):()=>!0x1;}function A(_0x17fd82,_0x519140){return _0x4e69a1(_0x17fd82['target'])['includes'](_0x519140);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x141f77(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x8c5ec0,_0x30e89d,_0xd48369){super(),this['_editor']=_0x8c5ec0,this['_editing']=_0x30e89d,this['_dialog']=_0x8c5ec0['plugins']['get'](_0x4bbaa4),this['_api']=_0x30e89d['ctxElement']['getAPI'](),this['_type']=_0xd48369,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:_0x2775ba,model:_0x39f5fe}=this['_editor'],_0x57afe7=_0x39f5fe['document']['selection']['getSelectedElement'](),_0x4c32d3=_0x57afe7&&(_0x57afe7['is']('element','imageBlock')||_0x57afe7['is']('element','imageInline'));this['_formView']=new x(_0x2775ba,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4b6f2b,'title':_(_0x2775ba,this['_type'],_0x4c32d3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3640ee['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2f5685=>!A(_0x2f5685,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1ee2c0}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x17c0a7=>{const _0x46b28c=_0x1ee2c0['length'];for(const _0x12fe61 of _0x1ee2c0){const _0x237637=_0x12fe61===_0x1ee2c0[_0x46b28c-0x1],{cdnUrl:_0x49f506,fileInfo:_0x4be0f7}=_0x12fe61;if(!_0x49f506||!_0x4be0f7)continue;const {width:_0x21ec68,height:_0x2440e1}=_0x4be0f7['imageInfo'],_0xcad2d8=S(_0x49f506,_0x21ec68,_0x2440e1),_0x5549ff=C(_0x49f506,_0xcad2d8['width']),_0x31293e={'id':_0x4be0f7['uuid'],'type':'image','attributes':{'imageDimension':_0xcad2d8,..._0x5549ff}};this['_insertAsset'](_0x31293e,_0x237637,_0x17c0a7);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x232213=>{'idle'===_0x232213['detail']['status']&&!_0x232213['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x584029,_0x14c3ae,_0x445937){const _0x171efa=this['_editor']['model']['document']['selection'],_0x21d9f9=_0x171efa['getSelectedElement'](),_0xc72d2f=!(!_0x21d9f9||!_0x21d9f9['is']('element','imageInline'));_0x445937['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x584029,_0xc72d2f),_0x14c3ae||_0x445937['setSelection'](_0x171efa['getLastPosition']());}['_insertImage'](_0x25540c,_0x156a11){const _0x2d2d64=this['_editor'],{imageDimension:_0xb70539,imageFallbackUrl:_0x2b4c22,imageSources:_0x3b491b}=_0x25540c['attributes'];_0x2d2d64['execute']('insertImage',{'imageType':_0x156a11?'imageInline':null,'source':{'uploadcareImageId':_0x25540c['id'],'src':_0x2b4c22,'sources':_0x3b491b,..._0xb70539}});}}class w extends _0x288d1e{['_editing'];['_controller']=null;static get['requires'](){return[_0x4bbaa4,o];}constructor(_0xa3e155){super(_0xa3e155),this['_editing']=_0xa3e155['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x21a9d5){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x21a9d5);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x50900e,..._0x320f95}){return _0x575745(_0x50900e,_0x320f95);}static['getInfo'](_0x41d16b,_0x42e961){return _0x295253(_0x41d16b,_0x42e961);}}class f extends _0x4f265d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xdb13fd,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2296ed=this['editor'];if(!!!_0x2296ed['config']['get']('uploadcare'))return;_0x2296ed['plugins']['get'](_0xdb13fd)['createUploadAdapter']=_0x516f2b=>new k(_0x516f2b,_0x2296ed),_0x2296ed['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x22d9ea,{imageElement:_0x4fbbfc,data:_0x434fa0})=>{_0x2296ed['model']['change'](_0x4581a5=>{_0x4581a5['setAttribute']('uploadcareImageId',_0x434fa0['uploadcareImageId'],_0x4fbbfc);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x252f44,_0x17132c){this['loader']=_0x252f44,this['editor']=_0x17132c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x439316=await this['loader']['file'];return j['upload']({'file':_0x439316,'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':_0x244949=>{_0x244949&&_0x244949['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x244949['value']);}})['then'](async _0x281280=>{const {imageFallbackUrl:_0x114a4b,imageSources:_0x538a34}=C(_0x281280['cdnUrl'],_0x281280['imageInfo']['width']);return{'uploadcareImageId':_0x281280['uuid'],'default':_0x114a4b,'sources':_0x538a34};})['catch'](()=>{const _0x1f97b9=t('Cannot\x20upload\x20file:')+('\x20'+_0x439316['name']+'.');return Promise['reject'](_0x1f97b9);});}['abort'](){this['controller']['abort']();}}class o extends _0x4f265d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4bbaa4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1dd9b5){super(_0x1dd9b5),this['ucContextId']=_0x85afa9();}['init'](){const _0x514b0e=this['editor'];_0x514b0e['commands']['add']('uploadcare',new w(_0x514b0e));}['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 _0x149ac1=_0x23c968['document']['querySelector']('input[uploadcare-file-input]');_0x149ac1&&_0x149ac1['remove']();}),async function(_0x43d7e3){const _0x24f25b=_0x53a63e([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]),_0x272614=0x535f8c3a,_0x25138e=0x5358f26a^_0x272614,_0x394321=window[_0x53a63e([0x44,0x61,0x74,0x65])][_0x53a63e([0x6e,0x6f,0x77])](),_0x4b3ded=_0x43d7e3[_0x53a63e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x278613=new window[(_0x53a63e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x202e33=>{_0x4b3ded[_0x53a63e([0x6f,0x6e,0x63,0x65])](_0x53a63e([0x72,0x65,0x61,0x64,0x79]),_0x202e33);}),_0x598296={[_0x53a63e([0x6b,0x74,0x79])]:_0x53a63e([0x45,0x43]),[_0x53a63e([0x75,0x73,0x65])]:_0x53a63e([0x73,0x69,0x67]),[_0x53a63e([0x63,0x72,0x76])]:_0x53a63e([0x50,0x2d,0x32,0x35,0x36]),[_0x53a63e([0x78])]:_0x53a63e([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]),[_0x53a63e([0x79])]:_0x53a63e([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]),[_0x53a63e([0x61,0x6c,0x67])]:_0x53a63e([0x45,0x53,0x32,0x35,0x36])},_0x425d42=_0x4b3ded[_0x53a63e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53a63e([0x67,0x65,0x74])](_0x53a63e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4030d8(){let _0x36d90a,_0x3e5fcf=null,_0x10a16f=null;try{if(_0x425d42==_0x53a63e([0x47,0x50,0x4c]))return _0x53a63e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36d90a=_0x378e14(),!_0x36d90a)return _0x53a63e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36d90a[_0x53a63e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10a16f=_0xab99b(_0x36d90a[_0x53a63e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36d90a[_0x53a63e([0x6a,0x74,0x69])])),await _0x1f63d4()?_0x5669cb()?_0x406538()?_0x53a63e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d24af()?(_0x36d90a[_0x53a63e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53a63e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e5fcf=_0x1f9ff3(_0x53a63e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e52e5()):_0x53a63e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53a63e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53a63e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x53a63e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x406538(){const _0x17f0ec=[_0x53a63e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53a63e([0x74,0x72,0x69,0x61,0x6c])][_0x53a63e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36d90a[_0x53a63e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x394321/0x3e8:0xe10*_0x25138e;return _0x36d90a[_0x53a63e([0x65,0x78,0x70])]<_0x17f0ec;}function _0x5669cb(){const _0x48730a=_0x36d90a[_0x53a63e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x48730a&&(!!_0x48730a[_0x53a63e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53a63e([0x2a]))||!!_0x48730a[_0x53a63e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53a63e([0x55,0x50,0x4c,0x43])));}function _0x5d24af(){const _0x468942=_0x36d90a[_0x53a63e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x468942||0x0==_0x468942[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b386d}=new URL(window[_0x53a63e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x468942[_0x53a63e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b386d))return!0x0;const _0x5e920c=_0x1b386d[_0x53a63e([0x73,0x70,0x6c,0x69,0x74])](_0x53a63e([0x2e]));return _0x468942[_0x53a63e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ecfb3=>_0x3ecfb3[_0x53a63e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53a63e([0x2a])))[_0x53a63e([0x6d,0x61,0x70])](_0x15c1d1=>_0x15c1d1[_0x53a63e([0x73,0x70,0x6c,0x69,0x74])](_0x53a63e([0x2e])))[_0x53a63e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4930f7=>_0x4930f7[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e920c[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53a63e([0x6d,0x61,0x70])](_0x577ca8=>Array(_0x5e920c[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x577ca8[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53a63e([0x66,0x69,0x6c,0x6c])](_0x577ca8[0x0]===_0x53a63e([0x2a])?_0x53a63e([0x2a]):'')[_0x53a63e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x577ca8))[_0x53a63e([0x73,0x6f,0x6d,0x65])](_0x3cb938=>_0x5e920c[_0x53a63e([0x65,0x76,0x65,0x72,0x79])]((_0x38d0f0,_0x2675a)=>_0x3cb938[_0x2675a]===_0x38d0f0||_0x3cb938[_0x2675a]===_0x53a63e([0x2a])));}function _0x5e52e5(){return _0x3e5fcf&&_0x10a16f?new window[(_0x53a63e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38f571,_0x27a97d)=>{_0x3e5fcf[_0x53a63e([0x74,0x68,0x65,0x6e])](_0x38f571,_0x27a97d),_0x10a16f[_0x53a63e([0x74,0x68,0x65,0x6e])](_0x3bf874=>{_0x3bf874!=_0x53a63e([0x56,0x61,0x6c,0x69,0x64])&&_0x38f571(_0x3bf874);},_0x27a97d);}):_0x3e5fcf||_0x10a16f||_0x53a63e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xab99b(_0x3d2afc,_0x3ff0a6){return new window[(_0x53a63e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf50058=>{if(_0x3442d0())return _0xf50058(_0x53a63e([0x56,0x61,0x6c,0x69,0x64]));_0x1fb630(),_0x4b3ded[_0x53a63e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53a63e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f159c=!0x1;const _0x1b8488=_0x85afa9();function _0x553bc0(_0x5ec23a){return!!_0x5ec23a&&(typeof _0x5ec23a===_0x53a63e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ec23a===_0x53a63e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ec23a[_0x53a63e([0x74,0x68,0x65,0x6e])]===_0x53a63e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ec23a[_0x53a63e([0x63,0x61,0x74,0x63,0x68])]===_0x53a63e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d67e8(_0x3a3fea){_0x2a2ca6(_0x3a3fea)[_0x53a63e([0x74,0x68,0x65,0x6e])](_0x353e67=>{if(!_0x353e67||_0x353e67[_0x53a63e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53a63e([0x6f,0x6b]))return _0x53a63e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5caff6(_0x18b465(_0x1b8488+_0x3ff0a6))!=_0x353e67[_0x53a63e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53a63e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53a63e([0x56,0x61,0x6c,0x69,0x64]);})[_0x53a63e([0x74,0x68,0x65,0x6e])](_0x1152ea=>(_0x2133e1(),_0x1152ea),()=>{const _0x3535c7=_0x429f00();return null==_0x3535c7?(_0x2133e1(),_0x53a63e([0x56,0x61,0x6c,0x69,0x64])):_0x53a63e(_0x394321-_0x3535c7>(0x7753083a^_0x272614)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53a63e([0x74,0x68,0x65,0x6e])](_0xf50058)[_0x53a63e([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf50058(_0x53a63e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e5355=0x536962ba^_0x272614;function _0x2133e1(){const _0x70750d=_0x53a63e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5caff6(_0x18b465(_0x3d2afc)),_0x5ccdd6=_0x4139de(_0x5caff6(window[_0x53a63e([0x4d,0x61,0x74,0x68])][_0x53a63e([0x63,0x65,0x69,0x6c])](_0x394321/_0x1e5355)));window[_0x53a63e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53a63e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x70750d,_0x5ccdd6);}function _0x429f00(){const _0xa85a31=_0x53a63e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5caff6(_0x18b465(_0x3d2afc)),_0x213b5c=window[_0x53a63e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53a63e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa85a31);return _0x213b5c?window[_0x53a63e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4139de(_0x213b5c),0x10)*_0x1e5355:null;}function _0x2a2ca6(_0xfa4bb6){return new window[(_0x53a63e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f7380,_0x41b15e)=>{_0xfa4bb6[_0x53a63e([0x74,0x68,0x65,0x6e])](_0x1f7380,_0x41b15e),window[_0x53a63e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x41b15e,0x535e58fa^_0x272614);});}}_0x4b3ded[_0x53a63e([0x6f,0x6e])](_0x53a63e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x544d18,_0x238267)=>{if(_0x238267[0x0]!=_0x3d2afc)return _0xf50058(_0x53a63e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x238267[0x1]={..._0x238267[0x1],[_0x53a63e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b8488};},{[_0x53a63e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53a63e([0x68,0x69,0x67,0x68])}),_0x4b3ded[_0x53a63e([0x6f,0x6e])](_0x53a63e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x577ff9=>{_0x553bc0(_0x577ff9[_0x53a63e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f159c=!0x0,_0x5d67e8(_0x577ff9[_0x53a63e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53a63e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53a63e([0x6c,0x6f,0x77])}),_0x278613[_0x53a63e([0x74,0x68,0x65,0x6e])](()=>{_0x2f159c||_0xf50058(_0x53a63e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3442d0(){return _0x4b3ded[_0x53a63e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53a63e([0x76,0x69,0x65,0x77])][_0x53a63e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53a63e([0x61,0x75,0x74,0x6f]);}function _0x1fb630(){_0x4b3ded[_0x53a63e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53a63e([0x76,0x69,0x65,0x77])][_0x53a63e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53a63e([0x61,0x75,0x74,0x6f]);}}function _0x1f9ff3(_0x27a86d){const _0x3eb405=[new window[(_0x53a63e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17ed17=>setTimeout(_0x17ed17,0x5356b2f6^_0x272614)),_0x278613[_0x53a63e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53a63e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x111368=>{let _0x1c2ba2=0x0;_0x4b3ded[_0x53a63e([0x6d,0x6f,0x64,0x65,0x6c])][_0x53a63e([0x6f,0x6e])](_0x53a63e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x149784,_0x20e903)=>{_0x20e903[0x0][_0x53a63e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1c2ba2++,_0x1c2ba2==(0x535f89d2^_0x272614)&&(_0x111368(),_0x149784[_0x53a63e([0x6f,0x66,0x66])]());});}))];return window[_0x53a63e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53a63e([0x72,0x61,0x63,0x65])](_0x3eb405)[_0x53a63e([0x74,0x68,0x65,0x6e])](()=>_0x27a86d);}async function _0x730124(){await _0x278613,_0x4b3ded[_0x53a63e([0x6d,0x6f,0x64,0x65,0x6c])][_0x53a63e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x333eab,_0x4b3ded[_0x53a63e([0x6d,0x6f,0x64,0x65,0x6c])][_0x53a63e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x333eab,_0x4b3ded[_0x53a63e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53a63e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x100fb5(_0x2b9fba){const _0x2540f6=_0x9b1ad6();_0x4b3ded[_0x2540f6]=_0x53a63e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2b9fba,_0x2b9fba!=_0x53a63e([0x56,0x61,0x6c,0x69,0x64])&&_0x730124();}function _0x9b1ad6(){const _0x3051aa=window[_0x53a63e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53a63e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53a63e([0x6e,0x6f,0x77])]())[_0x53a63e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53a63e([0x2e]),'');let _0x11268c=_0x53a63e([0x68]);for(let _0x29e44f=0x0;_0x29e44f<_0x3051aa[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29e44f+=0x2){let _0x1aad94=window[_0x53a63e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3051aa[_0x53a63e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29e44f,_0x29e44f+0x2));_0x1aad94>=_0x24f25b[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1aad94-=_0x24f25b[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11268c+=_0x24f25b[_0x1aad94];}return _0x11268c;}function _0x378e14(){const _0x487f91=_0x425d42[_0x53a63e([0x73,0x70,0x6c,0x69,0x74])](_0x53a63e([0x2e]));if(0x3!=_0x487f91[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ba838(_0x487f91[0x1]);function _0x5ba838(_0x2bcb7b){const _0x5c2eb9=_0x1334c8(_0x2bcb7b);return _0x5c2eb9&&_0x22affd()?_0x5c2eb9:null;function _0x22affd(){const _0x42d6fa=_0x5c2eb9[_0x53a63e([0x6a,0x74,0x69])],_0x22b4e9=window[_0x53a63e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42d6fa[_0x53a63e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42d6fa[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b4c36={..._0x5c2eb9,[_0x53a63e([0x6a,0x74,0x69])]:_0x42d6fa[_0x53a63e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42d6fa[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b4c36[_0x53a63e([0x76,0x63])],_0x18b465(_0x3b4c36)==_0x22b4e9;}}}async function _0x1f63d4(){let _0x5078f5=!0x0;try{const _0x225e40=_0x425d42[_0x53a63e([0x73,0x70,0x6c,0x69,0x74])](_0x53a63e([0x2e])),[_0x58ed67,_0x5e6b4d,_0x32c343]=_0x225e40;return _0x3d5222(_0x58ed67),await _0xf060b9(_0x58ed67,_0x5e6b4d,_0x32c343),_0x5078f5;}catch{return!0x1;}function _0x3d5222(_0x2ddb2d){const _0x524495=_0x1334c8(_0x2ddb2d);_0x524495&&_0x524495[_0x53a63e([0x61,0x6c,0x67])]==_0x53a63e([0x45,0x53,0x32,0x35,0x36])||(_0x5078f5=!0x1);}async function _0xf060b9(_0x10441b,_0x15f6b3,_0x4f29dd){const _0x537bca=window[_0x53a63e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53a63e([0x66,0x72,0x6f,0x6d])](_0x4a14b8(_0x4f29dd),_0xac5dc3=>_0xac5dc3[_0x53a63e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3def08=new window[(_0x53a63e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53a63e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10441b+_0x53a63e([0x2e])+_0x15f6b3),_0x1b799e=window[_0x53a63e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53a63e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b799e)return;const _0x595647=await _0x1b799e[_0x53a63e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53a63e([0x6a,0x77,0x6b]),_0x598296,{[_0x53a63e([0x6e,0x61,0x6d,0x65])]:_0x53a63e([0x45,0x43,0x44,0x53,0x41]),[_0x53a63e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53a63e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53a63e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b799e[_0x53a63e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53a63e([0x6e,0x61,0x6d,0x65])]:_0x53a63e([0x45,0x43,0x44,0x53,0x41]),[_0x53a63e([0x68,0x61,0x73,0x68])]:{[_0x53a63e([0x6e,0x61,0x6d,0x65])]:_0x53a63e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x595647,_0x537bca,_0x3def08)||(_0x5078f5=!0x1);}}function _0x1334c8(_0x14227f){return _0x14227f[_0x53a63e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53a63e([0x65,0x79]))?JSON[_0x53a63e([0x70,0x61,0x72,0x73,0x65])](_0x4a14b8(_0x14227f)):null;}function _0x4a14b8(_0x236886){return window[_0x53a63e([0x61,0x74,0x6f,0x62])](_0x236886[_0x53a63e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53a63e([0x2b]))[_0x53a63e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53a63e([0x2f])));}function _0x18b465(_0x29c1d1){let _0x577344=0x1505;function _0x5c3540(_0x41eba0){for(let _0x5b26c0=0x0;_0x5b26c0<_0x41eba0[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b26c0++){const _0x46fb7a=_0x41eba0[_0x53a63e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b26c0);_0x577344=(_0x577344<<0x5)+_0x577344+_0x46fb7a,_0x577344&=_0x577344;}}function _0x38fdcd(_0x527cfa){Array[_0x53a63e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x527cfa)?_0x527cfa[_0x53a63e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38fdcd):_0x527cfa&&typeof _0x527cfa==_0x53a63e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53a63e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x527cfa)[_0x53a63e([0x73,0x6f,0x72,0x74])]()[_0x53a63e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7cd56e,_0x284b9c])=>{_0x5c3540(_0x7cd56e),_0x38fdcd(_0x284b9c);}):_0x5c3540(window[_0x53a63e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x527cfa));}return _0x38fdcd(_0x29c1d1),_0x577344>>>0x0;}function _0x5caff6(_0x383410){return _0x383410[_0x53a63e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53a63e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53a63e([0x30]));}function _0x4139de(_0x2f6663){return _0x2f6663[_0x53a63e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53a63e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53a63e([0x6a,0x6f,0x69,0x6e])]('');}function _0x333eab(){}function _0x53a63e(_0x53c0ca){return _0x53c0ca['map'](_0x12a349=>String['fromCharCode'](_0x12a349))['join']('');}_0x100fb5(await _0x4030d8());}(this);}['_initSchema'](){const _0x2f2b10=this['editor']['model']['schema'];_0x2f2b10['isRegistered']('imageBlock')&&_0x2f2b10['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2f2b10['isRegistered']('imageInline')&&_0x2f2b10['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x46b77e=this['editor'];_0x46b77e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x46b77e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4cecd3=>_0x4cecd3['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5c42be=_0x46b77e['commands']['get']('replaceImageSource');_0x5c42be&&this['listenTo'](_0x5c42be,'cleanupImage',(_0x295b2d,[_0x5962f7,_0x201c05])=>{_0x5962f7['removeAttribute']('uploadcareImageId',_0x201c05);});}['_initConfig'](){const _0x1a3e61=this['editor']['config']['get']('uploadcare.uploader')||{},_0x34ff70=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x425fdc(_0x23c968['document'],'uc-config',{..._0x1a3e61,'pubkey':_0x34ff70,'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']=_0xf2b0d2=>{if('closeMax'==_0xf2b0d2)return'#uc-icon-arrow-down';},_0x23c968['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x425fdc(_0x23c968['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x23c968['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1b684b=this['editor']['commands']['get']('insertImage');_0x1b684b&&this['listenTo'](_0x1b684b,'execute',()=>{const _0x568e6f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x568e6f&&_0x568e6f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x568e6f);});});const _0x205d26=this['editor']['commands']['get']('uploadcareImageReplace');_0x205d26&&this['listenTo'](_0x205d26,'execute',()=>{const _0xe697b7=this['editor']['model']['document']['selection']['getSelectedElement']();_0xe697b7&&_0xe697b7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xe697b7);});});}}class tt extends _0x4f265d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb4cb23){super(_0xb4cb23),_0xb4cb23['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x409021['defineComponents'](_0x409021),this['_defineLocale']();}['_defineLocale'](){const _0x33364a=this['editor']['config']['get']('uploadcare.locale'),_0x3f88ab=this['editor']['locale']['contentLanguage'];_0x33364a&&_0x409021['defineLocale'](_0x3f88ab,_0x33364a);}}class ii extends _0x3ef4e6{constructor(_0x4391aa){super(_0x4391aa);const t=_0x4391aa['t'],_0x13c06a=this['bindTemplate'],_0x56cc26=new _0x5a34ec();_0x56cc26['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':[_0x56cc26,{'text':_0x13c06a['to']('imageUploadProgress',_0x30a6d7=>t('Loading\x20image...')+'\x20('+(_0x30a6d7||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 _0x3ef4e6{constructor(_0x37e61e){super(_0x37e61e);const t=_0x37e61e['t'];this['set']('errorType',null);const _0x4d8cf6=new _0x273d6d(_0x37e61e);_0x4d8cf6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4d8cf6['withText']=!0x0,_0x4d8cf6['class']='ck-button-action',_0x4d8cf6['on']('execute',()=>{this['fire']('retry');}),_0x4d8cf6['bind']('isVisible')['to'](this,'errorType',_0x416095=>'NotFound'!==_0x416095);const _0x391b49=new _0x2f3a61();_0x391b49['content']=_0x633358,_0x391b49['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4d6095=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':[_0x391b49,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4d6095['to']('errorType',_0x316927=>t('NotFound'!==_0x316927?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4d8cf6]},{'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 _0x3ef4e6{constructor(_0x36cf3f,_0x5d1408){super(_0x36cf3f);const _0x27d8d6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5d1408,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x27d8d6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x33e774,_0x41aa7a,_0x51f53d){super(_0x33e774),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x33e774),this['_errorView']=new ti(_0x33e774),this['_editingView']=new ei(_0x33e774,_0x51f53d),this['_focusableView']=new _0x3ef4e6(_0x33e774),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x41aa7a),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'],_0x57e176=>{this['_addUploadcareImageEditorListeners'](_0x57e176);});}),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'](_0x356f72,_0x597860){const _0x4ad031='uc-cloud-image-editor',_0x52e6eb=_0x356f72['querySelector'](_0x4ad031);if(_0x52e6eb)return _0x597860(_0x52e6eb);const _0x3beee5=new MutationObserver(_0x19d436=>{const _0x1111cf=_0x19d436['filter'](_0x46eb4c=>_0x46eb4c['target']===_0x356f72&&_0x46eb4c['addedNodes']['length']>0x0&&_0x46eb4c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4ad031);_0x1111cf['length']&&(_0x3beee5['disconnect'](),_0x597860(_0x1111cf[0x0]['addedNodes'][0x0]));});_0x3beee5['observe'](_0x356f72,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3edc71){_0x3edc71['addEventListener']('apply',_0x2ef1d8=>{this['fire']('apply',{'imageSrc':_0x2ef1d8['detail']['cdnUrl']});}),_0x3edc71['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x141f77(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x486572,_0x53f7c2,_0x5dbe40){super(),this['_editor']=_0x486572,this['_dialog']=_0x53f7c2,this['_imageElement']=_0x5dbe40,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 _0x33b2bd=this['_imageElement'],_0x174861=_0x33b2bd['getAttribute']('uploadcareImageId'),_0x4210f1=_0x33b2bd['getAttribute']('src');if(_0x174861)await this['_loadImageInfo'](_0x174861,_0x4210f1);else{if(this['_imageCache']['has'](_0x4210f1)){const _0x57fea6=this['_imageCache']['get'](_0x4210f1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x57fea6['url'],this['imageDimension']=_0x57fea6['dimension'],this['imageId']=_0x57fea6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1e099f}=this['_editor'],t=_0x1e099f['t'],_0x29812c=new X(_0x1e099f,this['imageStatus'],this['_attributes']);_0x29812c['bind']('status')['to'](this,'imageStatus'),_0x29812c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x29812c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x29812c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x29812c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x853a39,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x29812c,'position':_0x3640ee['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x29812c['focus']();},'onHide':()=>{_0x29812c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x21dd47=>!A(_0x21dd47,_0x29812c['element'])}});}['_loadImageInfo'](_0xbad44a,_0x3a12c0){return j['getInfo'](_0xbad44a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1b2b3f=>{const {width:_0x1337f6,height:_0x2041c4}=_0x1b2b3f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a12c0,this['imageDimension']={'width':_0x1337f6,'height':_0x2041c4},this['imageId']=_0xbad44a;})['catch'](_0x3e3fdc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e3fdc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4143c6,_0x350583){return this['_getImageAsFile'](_0x4143c6)['then'](_0x2b99ad=>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':_0x350583['signal'],'file':_0x2b99ad,'onProgress':_0x442883=>{_0x442883&&_0x442883['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x442883['value']));}}))['then'](_0x5991f6=>{const {width:_0x4a1a4e,height:_0x5b78c8}=_0x5991f6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5991f6['cdnUrl'],this['imageDimension']={'width':_0x4a1a4e,'height':_0x5b78c8},this['imageId']=_0x5991f6['uuid'],this['imageUploadProgress']=null;const _0x32ce98=_0x4143c6['getAttribute']('src');this['_imageCache']['set'](_0x32ce98,{'id':_0x5991f6['uuid'],'url':_0x5991f6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x387356=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x387356['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3bc149,_0x19b635){_0x3bc149['on']('apply',(_0x39e3d4,_0x2dd78f)=>{this['_replaceImage'](_0x19b635,_0x2dd78f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3bc149['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3bc149['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x47b44d,_0x2b6b96,_0x4f0b2d){const _0x25d4d4=this['_editor'],{width:_0x415d42,height:_0x141748}=S(_0x2b6b96,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x551eb7,imageSources:_0xbeefd2}=C(_0x2b6b96,_0x415d42);_0x25d4d4['model']['change'](_0x5d51af=>{if('$graveyard'===_0x47b44d['root']['rootName']){_0x25d4d4['execute']('insertImage',{'imageType':_0x47b44d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x47b44d['getAttributes']()),'uploadcareImageId':_0x4f0b2d,'src':_0x551eb7,'sources':_0xbeefd2,'width':_0x415d42,'height':_0x141748}});const _0x296546=_0x47b44d['getChildren']();_0x47b44d=_0x25d4d4['model']['document']['selection']['getSelectedElement']();for(const _0x3cb162 of _0x296546)_0x5d51af['append'](_0x5d51af['cloneElement'](_0x3cb162),_0x47b44d);}else _0x5d51af['setSelection'](_0x47b44d,'on'),_0x25d4d4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x47b44d['getAttributes']()),'uploadcareImageId':_0x4f0b2d,'src':_0x551eb7,'sources':_0xbeefd2,'width':_0x415d42,'height':_0x141748},_0x47b44d);_0x5d51af['setSelection'](_0x47b44d,'on');});}async['_getImageAsFile'](_0x571519){const _0x5aade1=_0x23c968['window'],_0x3c7601=_0x23c968['document']['location']['href'],_0x2638d6=new _0x5aade1['URL'](_0x571519['getAttribute']('src'),_0x3c7601);if('data:'===_0x2638d6['protocol']){const _0x5dece4=_0x2638d6['href']['split'](','),_0xcc26e4=_0x5dece4[0x0]['match'](/:(.*?);/)[0x1],_0x51c8c2=_0xcc26e4['split']('/')[0x1],_0x12595d=_0x5aade1['atob'](_0x5dece4[_0x5dece4['length']-0x1]);let _0x567200=_0x12595d['length'];const _0x2bb289=new _0x5aade1['Uint8Array'](_0x567200);for(;_0x567200--;)_0x2bb289[_0x567200]=_0x12595d['charCodeAt'](_0x567200);return new _0x5aade1['File']([_0x2bb289],'image.'+_0x51c8c2,{'type':_0xcc26e4});}const _0xba54b3=_0x2638d6['href']['split']('/'),_0x5decde=_0xba54b3[_0xba54b3['length']-0x1],_0x581462=_0x5decde['split']('.')[0x1];return _0x5aade1['fetch'](_0x2638d6['href'])['then'](_0x4845a6=>_0x4845a6['clone']()['blob']())['then'](_0x372e38=>new _0x5aade1['File']([_0x372e38],_0x5decde,{'type':'image/'+_0x581462}));}}class O extends _0x288d1e{['imageEditController'];static get['requires'](){return[_0x4bbaa4];}['_isEditable'];constructor(_0x35a2c5){super(_0x35a2c5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1e6c31){const _0x320348=G(_0x1e6c31);return _0x1058de=>!(!_0x1058de||!_0x1058de['is']('element','imageBlock')&&!_0x1058de['is']('element','imageInline'))&&(!!_0x1058de['hasAttribute']('uploadcareImageId')||!!_0x1058de['hasAttribute']('src')&&_0x320348(_0x1058de['getAttribute']('src')));}(_0x35a2c5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5b8926=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5b8926);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4b1444=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b1444&&(_0x4b1444['is']('element','imageBlock')||_0x4b1444['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4bbaa4),_0x4b1444),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x288d1e{['refresh'](){const _0xcd2d5f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xcd2d5f&&(_0xcd2d5f['is']('element','imageBlock')||_0xcd2d5f['is']('element','imageInline')));}['execute'](_0xcd9d60){const _0x5388a2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1dfb8b=>{_0x1dfb8b['setAttributes'](_0xcd9d60,_0x5388a2),_0x1dfb8b['removeAttribute']('srcset',_0x5388a2),_0x1dfb8b['removeAttribute']('sizes',_0x5388a2);});}}class m extends _0x4f265d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x35878d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4b6214}=this;_0x4b6214['commands']['add']('uploadcareImageEdit',new O(_0x4b6214)),_0x4b6214['commands']['add']('uploadcareImageReplace',new R(_0x4b6214));}}class g extends _0x4f265d{['_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 _0xb2149a=this['editor'];_0xb2149a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x151cf2=>{const _0x3ea2ae=_0xb2149a['commands']['get']('uploadcareImageEdit'),_0x1a3889=new _0x273d6d(_0x151cf2),t=_0x151cf2['t'];return _0x1a3889['set']({'icon':_0x853a39,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1a3889['bind']('isEnabled')['to'](_0x3ea2ae),_0x1a3889['bind']('isOn')['to'](_0x3ea2ae,'isActive'),this['listenTo'](_0x1a3889,'execute',()=>{_0xb2149a['execute']('uploadcareImageEdit'),_0xb2149a['editing']['view']['focus']();}),_0x1a3889;}),this['_initConfig']();}['_initConfig'](){const _0x44974e=_0x425fdc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x44974e),this['listenTo'](this['editor'],'destroy',()=>{_0x44974e['remove']();});}}class et extends _0x4f265d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x46feb1,Command as _0x207e1b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x210989,IconGooglePhotos as _0x1f08cb,IconGoogleDrive as _0x12c42d,IconFacebook as _0x32fdf7,IconDropbox as _0x26fe24,IconUploadcareLink as _0xe5c044,IconUploadcareImageUpload as _0x382898,IconError as _0x3648d9,IconUploadcareImageEdit as _0x15c8dc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x48ecd8,MenuBarMenuListItemButtonView as _0x1d53e6,View as _0x497fc2,FocusCycler as _0x54fcf7,Dialog as _0x2b6127,DialogViewPosition as _0x4bbf5e,SpinnerView as _0x286390,IconView as _0x5132f0,Notification as _0x2f6a12}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x558598,DomEmitterMixin as _0x325f8d,global as _0x364592,getAncestors as _0x205299,ObservableMixin as _0x1c66af,uid as _0xe388c3,createElement as _0x224cb9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5ef19f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1e04ff,info as _0x1c4200}from'@uploadcare/upload-client';import*as _0x42e4a7 from'@uploadcare/file-uploader';var i=function(_0x580980){return _0x580980['Local']='local',_0x580980['URL']='url',_0x580980['Dropbox']='dropbox',_0x580980['GDrive']='gdrive',_0x580980['Facebook']='facebook',_0x580980['GPhotos']='gphotos',_0x580980['OneDrive']='onedrive',_0x580980;}({});function _(_0x1484cf,_0x2a7547,_0x43e4aa){const t=_0x1484cf['t'],_0x43bdbf=_0x1484cf['t'];switch(_0x2a7547){case i['Local']:return{'text':_0x43bdbf('Insert'===_0x43e4aa?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x43bdbf('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x43e4aa?_0x43bdbf('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x43bdbf('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x43e4aa?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x43e4aa?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x43e4aa?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x43e4aa?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x43e4aa?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2a7547;}}class e extends _0x46feb1{['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 _0x194fa5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10036e;for(const _0x44806e in _0x194fa5){const _0xe33f5d=_0x44806e,_0x16f310=_0x194fa5[_0xe33f5d];if('uploadcareLicenseKeyValid'==_0x16f310||'uploadcareLicenseKeyInvalid'==_0x16f310||'uploadcareLicenseKeyExpired'==_0x16f310||'uploadcareLicenseKeyDomainLimit'==_0x16f310||'uploadcareLicenseKeyNotAllowed'==_0x16f310||'uploadcareLicenseKeyEvaluationLimit'==_0x16f310||'uploadcareLicenseKeyUsageLimit'==_0x16f310){delete _0x194fa5[_0xe33f5d],_0x10036e=_0x16f310,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x10036e&&_0x194fa5['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x10036e&&_0x194fa5['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x10036e&&_0x194fa5['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x10036e&&_0x194fa5['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x10036e&&_0x194fa5['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x10036e&&_0x194fa5['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x215eb5}=this,_0x408ebe=_0x215eb5['commands']['get']('uploadcare');if(!_0x408ebe)return;const _0x23a4a9=this['_normalizeConfigSourceList'](_0x215eb5['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2790d4,_0x5be6a7)=>{const _0x49d1ea=this['_getIntegrationKey'](_0x5be6a7['type']);return _0x2790d4[_0x49d1ea]||(_0x2790d4[_0x49d1ea]=[]),_0x2790d4[_0x49d1ea]['push'](_0x5be6a7),_0x2790d4;},{});_0x215eb5['plugins']['has']('ImageInsertUI')&&_0x215eb5['commands']['get']('uploadcare')&&Object['entries'](_0x23a4a9)['forEach'](([_0xe9639d,_0xc7ed57])=>{_0x215eb5['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xe9639d,'observable':()=>_0x408ebe,'buttonViewCreator':()=>this['_createToolbarButton'](_0xc7ed57),'formViewCreator':()=>this['_createDropdownButtons'](_0xc7ed57),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xc7ed57),'override':'assetManager'!==_0xe9639d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x53d795){const {locale:_0x1ed246}=this['editor'];return _0x53d795['map'](_0x3fb210=>{const _0x59f501=_(_0x1ed246,_0x3fb210,'Insert');switch(_0x3fb210){case i['Local']:return{'icon':_0x382898,'type':i['Local'],..._0x59f501};case i['URL']:return{'icon':_0xe5c044,'type':i['URL'],..._0x59f501};case i['Dropbox']:return{'icon':_0x26fe24,'type':i['Dropbox'],..._0x59f501};case i['Facebook']:return{'icon':_0x32fdf7,'type':i['Facebook'],..._0x59f501};case i['GDrive']:return{'icon':_0x12c42d,'type':i['GDrive'],..._0x59f501};case i['GPhotos']:return{'icon':_0x1f08cb,'type':i['GPhotos'],..._0x59f501};case i['OneDrive']:return{'icon':_0x210989,'type':i['OneDrive'],..._0x59f501};}});}['_getIntegrationKey'](_0x7795e8){switch(_0x7795e8){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x359199,_0x3746f6){const _0x2b0425=this['editor'],_0x53fc38=new _0x359199(_0x2b0425['locale']),_0x32fb27=_0x2b0425['commands']['get']('uploadcare');return _0x53fc38['bind']('isEnabled')['to'](_0x32fb27),_0x53fc38['on']('execute',()=>{_0x32fb27['execute'](_0x3746f6);}),_0x53fc38;}['_createToolbarButton'](_0x113a0c){const {locale:_0x45af22}=this['editor'],_0x419880=this['editor']['plugins']['get']('ImageInsertUI'),_0x124d94=_0x113a0c[0x0],_0x410c29=this['_createButton'](_0x48ecd8,_0x124d94['type']);return _0x410c29['icon']=_0x124d94['icon'],_0x410c29['bind']('label')['to'](_0x419880,'isImageSelected',_0x1288cf=>_(_0x45af22,_0x124d94['type'],_0x1288cf?'Replace':'Insert')['text']),_0x410c29['tooltip']=!0x0,_0x410c29;}['_createDropdownButtons'](_0x4aac10){const {locale:_0x485a0a}=this['editor'],_0x18c0c3=this['editor']['plugins']['get']('ImageInsertUI');return _0x4aac10['map'](_0x5818c7=>{const _0x5f2f02=this['_createButton'](_0x48ecd8,_0x5818c7['type']);return _0x5f2f02['withText']=!0x0,_0x5f2f02['icon']=_0x5818c7['icon'],_0x5f2f02['bind']('label')['to'](_0x18c0c3,'isImageSelected',_0x56e95a=>_(_0x485a0a,_0x5818c7['type'],_0x56e95a?'Replace':'Insert')['text']),_0x5f2f02;});}['_createMenuBarButtons'](_0x10e0a9){return _0x10e0a9['map'](_0x352637=>{const _0x2aba0b=this['_createButton'](_0x1d53e6,_0x352637['type']);return _0x2aba0b['icon']=_0x352637['icon'],_0x2aba0b['label']=_0x352637['shortText'],_0x2aba0b;});}}class F extends _0x497fc2{['focusTracker'];['focusCycler'];constructor(_0x1c0006){super(_0x1c0006),this['focusTracker']=new _0x558598(),this['focusCycler']=new _0x54fcf7({'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(_0x4f8c5e,_0x486938){super(_0x4f8c5e),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-'+_0x486938}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x226c7,_0x4f63b1){const _0x1b2df0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x49d864=>_0x49d864<=_0x4f63b1)['map'](_0x58373a=>_0x226c7['replace'](/\/$/,'')+'/-/resize/'+_0x58373a+'x/\x20'+_0x58373a+'w');return{'imageFallbackUrl':_0x226c7,'imageSources':[{'srcset':_0x1b2df0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4f63b1+'px)\x20100vw,\x20'+_0x4f63b1+'px','type':'image/webp'}]};}function S(_0x35bd6e,_0x51d891,_0x4d5ea6){const _0x4ca957=_0x35bd6e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4ca957?parseInt(_0x4ca957[0x1],0xa):_0x51d891,'height':_0x4ca957?parseInt(_0x4ca957[0x2],0xa):_0x4d5ea6};}function p(_0x8c0709,_0x3f16dd){const _0x568e47=new(_0x325f8d())(),_0x538e24=_0x8c0709['plugins']['get']('ImageUtils'),_0x4cc515=_0x8c0709['editing']['mapper']['toViewElement'](_0x3f16dd),_0x571877=_0x538e24['findViewImgElement'](_0x4cc515),_0x12ba94=_0x8c0709['editing']['view']['domConverter']['viewToDom'](_0x571877),_0x5616f9=_0x3f16dd['getAttribute']('width'),_0x516f21=_0x3f16dd['getAttribute']('height'),_0x4f7cc8='image-processing';_0x8c0709['editing']['view']['change'](_0x37b8c9=>{_0x37b8c9['addClass'](_0x4f7cc8,_0x4cc515),_0x37b8c9['setStyle']('aspect-ratio',_0x5616f9+'/'+_0x516f21,_0x571877);}),_0x568e47['listenTo'](_0x12ba94,'load',()=>{_0x568e47['stopListening'](_0x12ba94,'load'),_0x8c0709['editing']['view']['change'](_0x41f1a0=>{_0x41f1a0['removeClass'](_0x4f7cc8,_0x4cc515),_0x41f1a0['removeStyle']('aspect-ratio',_0x571877);});});}function z(_0x3b1ec2){if(Array['isArray'](_0x3b1ec2)){const _0x313c93=_0x3b1ec2['map'](z);return _0x2d0aff=>_0x313c93['some'](_0x427e93=>_0x427e93(_0x2d0aff));}if('origin'==_0x3b1ec2){const _0x311d4b=_0x364592['window']['location']['origin'];return _0xd65647=>new URL(_0xd65647,_0x364592['document']['baseURI'])['origin']==_0x311d4b;}return'function'==typeof _0x3b1ec2?_0x3b1ec2:_0x3b1ec2 instanceof RegExp?_0x28d950=>!(!_0x28d950['match'](_0x3b1ec2)&&!_0x28d950['replace'](/^https?:\/\//,'')['match'](_0x3b1ec2)):()=>!0x1;}function A(_0x338975,_0x52c05d){return _0x205299(_0x338975['target'])['includes'](_0x52c05d);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1c66af(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x18528f,_0x299758,_0xe5a6a4){super(),this['_editor']=_0x18528f,this['_editing']=_0x299758,this['_dialog']=_0x18528f['plugins']['get'](_0x2b6127),this['_api']=_0x299758['ctxElement']['getAPI'](),this['_type']=_0xe5a6a4,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:_0x2435c5,model:_0x41b1e7}=this['_editor'],_0x241b94=_0x41b1e7['document']['selection']['getSelectedElement'](),_0x1af825=_0x241b94&&(_0x241b94['is']('element','imageBlock')||_0x241b94['is']('element','imageInline'));this['_formView']=new x(_0x2435c5,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x382898,'title':_(_0x2435c5,this['_type'],_0x1af825?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4bbf5e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5f5e0b=>!A(_0x5f5e0b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5dd5c2}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x64b134=>{const _0x425214=_0x5dd5c2['length'];for(const _0x1fd765 of _0x5dd5c2){const _0x2560e3=_0x1fd765===_0x5dd5c2[_0x425214-0x1],{cdnUrl:_0x258bb0,fileInfo:_0xcc36a3}=_0x1fd765;if(!_0x258bb0||!_0xcc36a3)continue;const {width:_0x3dff6a,height:_0x35cf55}=_0xcc36a3['imageInfo'],_0x40cb42=S(_0x258bb0,_0x3dff6a,_0x35cf55),_0x29921e=C(_0x258bb0,_0x40cb42['width']),_0x4040e2={'id':_0xcc36a3['uuid'],'type':'image','attributes':{'imageDimension':_0x40cb42,..._0x29921e}};this['_insertAsset'](_0x4040e2,_0x2560e3,_0x64b134);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x569e2e=>{'idle'===_0x569e2e['detail']['status']&&!_0x569e2e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x56dfba,_0xb94543,_0x23e830){const _0x30c053=this['_editor']['model']['document']['selection'],_0x3d13f6=_0x30c053['getSelectedElement'](),_0x3043d5=!(!_0x3d13f6||!_0x3d13f6['is']('element','imageInline'));_0x23e830['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x56dfba,_0x3043d5),_0xb94543||_0x23e830['setSelection'](_0x30c053['getLastPosition']());}['_insertImage'](_0x411281,_0x37994a){const _0x3e74d9=this['_editor'],{imageDimension:_0x34bcb9,imageFallbackUrl:_0x2a4212,imageSources:_0x2f1d99}=_0x411281['attributes'];_0x3e74d9['execute']('insertImage',{'imageType':_0x37994a?'imageInline':null,'source':{'uploadcareImageId':_0x411281['id'],'src':_0x2a4212,'sources':_0x2f1d99,..._0x34bcb9}});}}class w extends _0x207e1b{['_editing'];['_controller']=null;static get['requires'](){return[_0x2b6127,o];}constructor(_0xcc7862){super(_0xcc7862),this['_editing']=_0xcc7862['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x504526){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x504526);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3b614c,..._0x225903}){return _0x1e04ff(_0x3b614c,_0x225903);}static['getInfo'](_0x250347,_0x34f597){return _0x1c4200(_0x250347,_0x34f597);}}class f extends _0x46feb1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5ef19f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x16ce56=this['editor'];if(!!!_0x16ce56['config']['get']('uploadcare'))return;_0x16ce56['plugins']['get'](_0x5ef19f)['createUploadAdapter']=_0xd57c5a=>new k(_0xd57c5a,_0x16ce56),_0x16ce56['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x527923,{imageElement:_0x24a5ae,data:_0x416267})=>{_0x16ce56['model']['change'](_0x4541b4=>{_0x4541b4['setAttribute']('uploadcareImageId',_0x416267['uploadcareImageId'],_0x24a5ae);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x9329cd,_0x384510){this['loader']=_0x9329cd,this['editor']=_0x384510,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4d1a30=await this['loader']['file'];return j['upload']({'file':_0x4d1a30,'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':_0x566711=>{_0x566711&&_0x566711['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x566711['value']);}})['then'](async _0x364d80=>{const {imageFallbackUrl:_0x273f76,imageSources:_0x1ef153}=C(_0x364d80['cdnUrl'],_0x364d80['imageInfo']['width']);return{'uploadcareImageId':_0x364d80['uuid'],'default':_0x273f76,'sources':_0x1ef153};})['catch'](()=>{const _0x75449d=t('Cannot\x20upload\x20file:')+('\x20'+_0x4d1a30['name']+'.');return Promise['reject'](_0x75449d);});}['abort'](){this['controller']['abort']();}}class o extends _0x46feb1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2b6127];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x59d47e){super(_0x59d47e),this['ucContextId']=_0xe388c3();}['init'](){const _0x349410=this['editor'];_0x349410['commands']['add']('uploadcare',new w(_0x349410));}['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 _0x4bcdec=_0x364592['document']['querySelector']('input[uploadcare-file-input]');_0x4bcdec&&_0x4bcdec['remove']();}),async function(_0x2c29f7){const _0x3e9897=_0x2f1db1([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]),_0xf0b079=0x535f8c3a,_0x1bb179=0x5358f2ba^_0xf0b079,_0x1654b0=window[_0x2f1db1([0x44,0x61,0x74,0x65])][_0x2f1db1([0x6e,0x6f,0x77])](),_0x1cef31=_0x2c29f7[_0x2f1db1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53eb37=new window[(_0x2f1db1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51c334=>{_0x1cef31[_0x2f1db1([0x6f,0x6e,0x63,0x65])](_0x2f1db1([0x72,0x65,0x61,0x64,0x79]),_0x51c334);}),_0x3b4981={[_0x2f1db1([0x6b,0x74,0x79])]:_0x2f1db1([0x45,0x43]),[_0x2f1db1([0x75,0x73,0x65])]:_0x2f1db1([0x73,0x69,0x67]),[_0x2f1db1([0x63,0x72,0x76])]:_0x2f1db1([0x50,0x2d,0x32,0x35,0x36]),[_0x2f1db1([0x78])]:_0x2f1db1([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]),[_0x2f1db1([0x79])]:_0x2f1db1([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]),[_0x2f1db1([0x61,0x6c,0x67])]:_0x2f1db1([0x45,0x53,0x32,0x35,0x36])},_0x2b071e=_0x1cef31[_0x2f1db1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f1db1([0x67,0x65,0x74])](_0x2f1db1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6c89a8(){let _0x4ec47f,_0x38e1e6=null,_0x37b204=null;try{if(_0x2b071e==_0x2f1db1([0x47,0x50,0x4c]))return _0x2f1db1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ec47f=_0x2fbf22(),!_0x4ec47f)return _0x2f1db1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ec47f[_0x2f1db1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37b204=_0x35bd57(_0x4ec47f[_0x2f1db1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ec47f[_0x2f1db1([0x6a,0x74,0x69])])),await _0x42c037()?_0x1a2d5a()?_0xaff8ee()?_0x2f1db1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11337f()?(_0x4ec47f[_0x2f1db1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f1db1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38e1e6=_0x18afa1(_0x2f1db1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x278f8c()):_0x2f1db1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f1db1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f1db1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f1db1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xaff8ee(){const _0x1081e0=[_0x2f1db1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f1db1([0x74,0x72,0x69,0x61,0x6c])][_0x2f1db1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ec47f[_0x2f1db1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1654b0/0x3e8:0xe10*_0x1bb179;return _0x4ec47f[_0x2f1db1([0x65,0x78,0x70])]<_0x1081e0;}function _0x1a2d5a(){const _0x580247=_0x4ec47f[_0x2f1db1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x580247&&(!!_0x580247[_0x2f1db1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1db1([0x2a]))||!!_0x580247[_0x2f1db1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1db1([0x55,0x50,0x4c,0x43])));}function _0x11337f(){const _0x45c105=_0x4ec47f[_0x2f1db1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x45c105||0x0==_0x45c105[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x34a14c}=new URL(window[_0x2f1db1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x45c105[_0x2f1db1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a14c))return!0x0;const _0x510bc6=_0x34a14c[_0x2f1db1([0x73,0x70,0x6c,0x69,0x74])](_0x2f1db1([0x2e]));return _0x45c105[_0x2f1db1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2457e1=>_0x2457e1[_0x2f1db1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1db1([0x2a])))[_0x2f1db1([0x6d,0x61,0x70])](_0x11ecc8=>_0x11ecc8[_0x2f1db1([0x73,0x70,0x6c,0x69,0x74])](_0x2f1db1([0x2e])))[_0x2f1db1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18fa15=>_0x18fa15[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x510bc6[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f1db1([0x6d,0x61,0x70])](_0x2c6a71=>Array(_0x510bc6[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c6a71[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f1db1([0x66,0x69,0x6c,0x6c])](_0x2c6a71[0x0]===_0x2f1db1([0x2a])?_0x2f1db1([0x2a]):'')[_0x2f1db1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c6a71))[_0x2f1db1([0x73,0x6f,0x6d,0x65])](_0x429ed3=>_0x510bc6[_0x2f1db1([0x65,0x76,0x65,0x72,0x79])]((_0x1c040b,_0x370def)=>_0x429ed3[_0x370def]===_0x1c040b||_0x429ed3[_0x370def]===_0x2f1db1([0x2a])));}function _0x278f8c(){return _0x38e1e6&&_0x37b204?new window[(_0x2f1db1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f5ac9,_0x257239)=>{_0x38e1e6[_0x2f1db1([0x74,0x68,0x65,0x6e])](_0x3f5ac9,_0x257239),_0x37b204[_0x2f1db1([0x74,0x68,0x65,0x6e])](_0x51c4b6=>{_0x51c4b6!=_0x2f1db1([0x56,0x61,0x6c,0x69,0x64])&&_0x3f5ac9(_0x51c4b6);},_0x257239);}):_0x38e1e6||_0x37b204||_0x2f1db1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35bd57(_0xe59715,_0x551bc5){return new window[(_0x2f1db1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3daf42=>{if(_0x3db1cf())return _0x3daf42(_0x2f1db1([0x56,0x61,0x6c,0x69,0x64]));_0xf9b21a(),_0x1cef31[_0x2f1db1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f1db1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe7eb9b=!0x1;const _0x4ac003=_0xe388c3();function _0x23f596(_0x40eaf5){return!!_0x40eaf5&&(typeof _0x40eaf5===_0x2f1db1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40eaf5===_0x2f1db1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40eaf5[_0x2f1db1([0x74,0x68,0x65,0x6e])]===_0x2f1db1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40eaf5[_0x2f1db1([0x63,0x61,0x74,0x63,0x68])]===_0x2f1db1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47c534(_0xbdf68b){_0x1d31f7(_0xbdf68b)[_0x2f1db1([0x74,0x68,0x65,0x6e])](_0x3a094c=>{if(!_0x3a094c||_0x3a094c[_0x2f1db1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f1db1([0x6f,0x6b]))return _0x2f1db1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x80cff0(_0x2c792d(_0x4ac003+_0x551bc5))!=_0x3a094c[_0x2f1db1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f1db1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f1db1([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f1db1([0x74,0x68,0x65,0x6e])](_0x22a355=>(_0x37dbce(),_0x22a355),()=>{const _0x5e41e3=_0xc07616();return null==_0x5e41e3?(_0x37dbce(),_0x2f1db1([0x56,0x61,0x6c,0x69,0x64])):_0x2f1db1(_0x1654b0-_0x5e41e3>(0x7753083a^_0xf0b079)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f1db1([0x74,0x68,0x65,0x6e])](_0x3daf42)[_0x2f1db1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3daf42(_0x2f1db1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d7c4f=0x536962ba^_0xf0b079;function _0x37dbce(){const _0x17725c=_0x2f1db1([0x6c,0x6c,0x63,0x74,0x2d])+_0x80cff0(_0x2c792d(_0xe59715)),_0x237b0b=_0x122276(_0x80cff0(window[_0x2f1db1([0x4d,0x61,0x74,0x68])][_0x2f1db1([0x63,0x65,0x69,0x6c])](_0x1654b0/_0x4d7c4f)));window[_0x2f1db1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f1db1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17725c,_0x237b0b);}function _0xc07616(){const _0xf2af91=_0x2f1db1([0x6c,0x6c,0x63,0x74,0x2d])+_0x80cff0(_0x2c792d(_0xe59715)),_0x46790b=window[_0x2f1db1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f1db1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf2af91);return _0x46790b?window[_0x2f1db1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x122276(_0x46790b),0x10)*_0x4d7c4f:null;}function _0x1d31f7(_0x3655fe){return new window[(_0x2f1db1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x274979,_0x53b636)=>{_0x3655fe[_0x2f1db1([0x74,0x68,0x65,0x6e])](_0x274979,_0x53b636),window[_0x2f1db1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53b636,0x535e58fa^_0xf0b079);});}}_0x1cef31[_0x2f1db1([0x6f,0x6e])](_0x2f1db1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7ff81,_0x6e80b1)=>{if(_0x6e80b1[0x0]!=_0xe59715)return _0x3daf42(_0x2f1db1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x6e80b1[0x1]={..._0x6e80b1[0x1],[_0x2f1db1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ac003};},{[_0x2f1db1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f1db1([0x68,0x69,0x67,0x68])}),_0x1cef31[_0x2f1db1([0x6f,0x6e])](_0x2f1db1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x378032=>{_0x23f596(_0x378032[_0x2f1db1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe7eb9b=!0x0,_0x47c534(_0x378032[_0x2f1db1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f1db1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f1db1([0x6c,0x6f,0x77])}),_0x53eb37[_0x2f1db1([0x74,0x68,0x65,0x6e])](()=>{_0xe7eb9b||_0x3daf42(_0x2f1db1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3db1cf(){return _0x1cef31[_0x2f1db1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f1db1([0x76,0x69,0x65,0x77])][_0x2f1db1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f1db1([0x61,0x75,0x74,0x6f]);}function _0xf9b21a(){_0x1cef31[_0x2f1db1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f1db1([0x76,0x69,0x65,0x77])][_0x2f1db1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f1db1([0x61,0x75,0x74,0x6f]);}}function _0x18afa1(_0x421bc6){const _0x33338e=[new window[(_0x2f1db1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14eb0b=>setTimeout(_0x14eb0b,0x5356b2f6^_0xf0b079)),_0x53eb37[_0x2f1db1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f1db1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ff408=>{let _0x148614=0x0;_0x1cef31[_0x2f1db1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1db1([0x6f,0x6e])](_0x2f1db1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xea09a,_0x8e6156)=>{_0x8e6156[0x0][_0x2f1db1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x148614++,_0x148614==(0x535f89d2^_0xf0b079)&&(_0x3ff408(),_0xea09a[_0x2f1db1([0x6f,0x66,0x66])]());});}))];return window[_0x2f1db1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f1db1([0x72,0x61,0x63,0x65])](_0x33338e)[_0x2f1db1([0x74,0x68,0x65,0x6e])](()=>_0x421bc6);}async function _0x4b6a4d(){await _0x53eb37,_0x1cef31[_0x2f1db1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1db1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1d5204,_0x1cef31[_0x2f1db1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1db1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1d5204,_0x1cef31[_0x2f1db1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f1db1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51fa23(_0x437c95){const _0x19f86f=_0x19a8b8();_0x1cef31[_0x19f86f]=_0x2f1db1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x437c95,_0x437c95!=_0x2f1db1([0x56,0x61,0x6c,0x69,0x64])&&_0x4b6a4d();}function _0x19a8b8(){const _0x4a616e=window[_0x2f1db1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f1db1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f1db1([0x6e,0x6f,0x77])]())[_0x2f1db1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f1db1([0x2e]),'');let _0x5a0ba6=_0x2f1db1([0x68]);for(let _0xbfdeb9=0x0;_0xbfdeb9<_0x4a616e[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbfdeb9+=0x2){let _0x3bee67=window[_0x2f1db1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a616e[_0x2f1db1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbfdeb9,_0xbfdeb9+0x2));_0x3bee67>=_0x3e9897[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3bee67-=_0x3e9897[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a0ba6+=_0x3e9897[_0x3bee67];}return _0x5a0ba6;}function _0x2fbf22(){const _0x4d1ca5=_0x2b071e[_0x2f1db1([0x73,0x70,0x6c,0x69,0x74])](_0x2f1db1([0x2e]));if(0x3!=_0x4d1ca5[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c80b4(_0x4d1ca5[0x1]);function _0x3c80b4(_0x3fd727){const _0x3ccc94=_0x3bc886(_0x3fd727);return _0x3ccc94&&_0x1b74e4()?_0x3ccc94:null;function _0x1b74e4(){const _0x1428fe=_0x3ccc94[_0x2f1db1([0x6a,0x74,0x69])],_0x522c18=window[_0x2f1db1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1428fe[_0x2f1db1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1428fe[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x133cad={..._0x3ccc94,[_0x2f1db1([0x6a,0x74,0x69])]:_0x1428fe[_0x2f1db1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1428fe[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x133cad[_0x2f1db1([0x76,0x63])],_0x2c792d(_0x133cad)==_0x522c18;}}}async function _0x42c037(){let _0x2be07a=!0x0;try{const _0x5deeb5=_0x2b071e[_0x2f1db1([0x73,0x70,0x6c,0x69,0x74])](_0x2f1db1([0x2e])),[_0x51ea3c,_0x53692c,_0x118cc3]=_0x5deeb5;return _0x1214ec(_0x51ea3c),await _0x47557c(_0x51ea3c,_0x53692c,_0x118cc3),_0x2be07a;}catch{return!0x1;}function _0x1214ec(_0x5f489e){const _0x4a3f4=_0x3bc886(_0x5f489e);_0x4a3f4&&_0x4a3f4[_0x2f1db1([0x61,0x6c,0x67])]==_0x2f1db1([0x45,0x53,0x32,0x35,0x36])||(_0x2be07a=!0x1);}async function _0x47557c(_0x505bf6,_0x2af31c,_0x5c7815){const _0x52bafe=window[_0x2f1db1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f1db1([0x66,0x72,0x6f,0x6d])](_0x5ef0e9(_0x5c7815),_0x442ee7=>_0x442ee7[_0x2f1db1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x59aa07=new window[(_0x2f1db1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f1db1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x505bf6+_0x2f1db1([0x2e])+_0x2af31c),_0x5a766f=window[_0x2f1db1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f1db1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a766f)return;const _0x1499d6=await _0x5a766f[_0x2f1db1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f1db1([0x6a,0x77,0x6b]),_0x3b4981,{[_0x2f1db1([0x6e,0x61,0x6d,0x65])]:_0x2f1db1([0x45,0x43,0x44,0x53,0x41]),[_0x2f1db1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f1db1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f1db1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a766f[_0x2f1db1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f1db1([0x6e,0x61,0x6d,0x65])]:_0x2f1db1([0x45,0x43,0x44,0x53,0x41]),[_0x2f1db1([0x68,0x61,0x73,0x68])]:{[_0x2f1db1([0x6e,0x61,0x6d,0x65])]:_0x2f1db1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1499d6,_0x52bafe,_0x59aa07)||(_0x2be07a=!0x1);}}function _0x3bc886(_0x3ed9f4){return _0x3ed9f4[_0x2f1db1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f1db1([0x65,0x79]))?JSON[_0x2f1db1([0x70,0x61,0x72,0x73,0x65])](_0x5ef0e9(_0x3ed9f4)):null;}function _0x5ef0e9(_0x1b483b){return window[_0x2f1db1([0x61,0x74,0x6f,0x62])](_0x1b483b[_0x2f1db1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f1db1([0x2b]))[_0x2f1db1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f1db1([0x2f])));}function _0x2c792d(_0x14c1b6){let _0x4b351c=0x1505;function _0x3139be(_0x16cf4a){for(let _0x591d9a=0x0;_0x591d9a<_0x16cf4a[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x591d9a++){const _0x341048=_0x16cf4a[_0x2f1db1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x591d9a);_0x4b351c=(_0x4b351c<<0x5)+_0x4b351c+_0x341048,_0x4b351c&=_0x4b351c;}}function _0x28c9f6(_0x538f1c){Array[_0x2f1db1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x538f1c)?_0x538f1c[_0x2f1db1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28c9f6):_0x538f1c&&typeof _0x538f1c==_0x2f1db1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f1db1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x538f1c)[_0x2f1db1([0x73,0x6f,0x72,0x74])]()[_0x2f1db1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xfe7fce,_0xb2f017])=>{_0x3139be(_0xfe7fce),_0x28c9f6(_0xb2f017);}):_0x3139be(window[_0x2f1db1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x538f1c));}return _0x28c9f6(_0x14c1b6),_0x4b351c>>>0x0;}function _0x80cff0(_0x306725){return _0x306725[_0x2f1db1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f1db1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f1db1([0x30]));}function _0x122276(_0x613b59){return _0x613b59[_0x2f1db1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f1db1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f1db1([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d5204(){}function _0x2f1db1(_0x2261c7){return _0x2261c7['map'](_0x14840f=>String['fromCharCode'](_0x14840f))['join']('');}_0x51fa23(await _0x6c89a8());}(this);}['_initSchema'](){const _0x303708=this['editor']['model']['schema'];_0x303708['isRegistered']('imageBlock')&&_0x303708['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x303708['isRegistered']('imageInline')&&_0x303708['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x57c931=this['editor'];_0x57c931['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x57c931['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3c5b32=>_0x3c5b32['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5b2e1=_0x57c931['commands']['get']('replaceImageSource');_0x5b2e1&&this['listenTo'](_0x5b2e1,'cleanupImage',(_0x10fd2b,[_0x251a4d,_0xe4f635])=>{_0x251a4d['removeAttribute']('uploadcareImageId',_0xe4f635);});}['_initConfig'](){const _0xaa4eb4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x11e4b4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x224cb9(_0x364592['document'],'uc-config',{..._0xaa4eb4,'pubkey':_0x11e4b4,'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']=_0x283f5a=>{if('closeMax'==_0x283f5a)return'#uc-icon-arrow-down';},_0x364592['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x224cb9(_0x364592['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x364592['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1c55f8=this['editor']['commands']['get']('insertImage');_0x1c55f8&&this['listenTo'](_0x1c55f8,'execute',()=>{const _0x57f96d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x57f96d&&_0x57f96d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x57f96d);});});const _0x216090=this['editor']['commands']['get']('uploadcareImageReplace');_0x216090&&this['listenTo'](_0x216090,'execute',()=>{const _0x4dc2fc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4dc2fc&&_0x4dc2fc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4dc2fc);});});}}class tt extends _0x46feb1{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f8a8e){super(_0x3f8a8e),_0x3f8a8e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x42e4a7['defineComponents'](_0x42e4a7),this['_defineLocale']();}['_defineLocale'](){const _0x52869a=this['editor']['config']['get']('uploadcare.locale'),_0x198bf5=this['editor']['locale']['contentLanguage'];_0x52869a&&_0x42e4a7['defineLocale'](_0x198bf5,_0x52869a);}}class ii extends _0x497fc2{constructor(_0x2e8434){super(_0x2e8434);const t=_0x2e8434['t'],_0x2679b1=this['bindTemplate'],_0x80028d=new _0x286390();_0x80028d['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':[_0x80028d,{'text':_0x2679b1['to']('imageUploadProgress',_0x276dc0=>t('Loading\x20image...')+'\x20('+(_0x276dc0||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 _0x497fc2{constructor(_0x570841){super(_0x570841);const t=_0x570841['t'];this['set']('errorType',null);const _0x4f363e=new _0x48ecd8(_0x570841);_0x4f363e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4f363e['withText']=!0x0,_0x4f363e['class']='ck-button-action',_0x4f363e['on']('execute',()=>{this['fire']('retry');}),_0x4f363e['bind']('isVisible')['to'](this,'errorType',_0x2c4807=>'NotFound'!==_0x2c4807);const _0x677384=new _0x5132f0();_0x677384['content']=_0x3648d9,_0x677384['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x418a97=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':[_0x677384,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x418a97['to']('errorType',_0x486dca=>t('NotFound'!==_0x486dca?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4f363e]},{'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 _0x497fc2{constructor(_0x56f9ee,_0x4b8b3b){super(_0x56f9ee);const _0x461d76=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4b8b3b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x461d76['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x23aabc,_0x398bbd,_0x3d9579){super(_0x23aabc),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x23aabc),this['_errorView']=new ti(_0x23aabc),this['_editingView']=new ei(_0x23aabc,_0x3d9579),this['_focusableView']=new _0x497fc2(_0x23aabc),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x398bbd),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'],_0x301514=>{this['_addUploadcareImageEditorListeners'](_0x301514);});}),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'](_0x7d19cd,_0x14e3f6){const _0x2c5022='uc-cloud-image-editor',_0x3eb932=_0x7d19cd['querySelector'](_0x2c5022);if(_0x3eb932)return _0x14e3f6(_0x3eb932);const _0x11f825=new MutationObserver(_0x311f43=>{const _0x3cc5d3=_0x311f43['filter'](_0x4345f=>_0x4345f['target']===_0x7d19cd&&_0x4345f['addedNodes']['length']>0x0&&_0x4345f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2c5022);_0x3cc5d3['length']&&(_0x11f825['disconnect'](),_0x14e3f6(_0x3cc5d3[0x0]['addedNodes'][0x0]));});_0x11f825['observe'](_0x7d19cd,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x114979){_0x114979['addEventListener']('apply',_0x2e3316=>{this['fire']('apply',{'imageSrc':_0x2e3316['detail']['cdnUrl']});}),_0x114979['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1c66af(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3afba0,_0x33e1d9,_0x1e9d7d){super(),this['_editor']=_0x3afba0,this['_dialog']=_0x33e1d9,this['_imageElement']=_0x1e9d7d,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 _0x348c6c=this['_imageElement'],_0x95a419=_0x348c6c['getAttribute']('uploadcareImageId'),_0x5585d9=_0x348c6c['getAttribute']('src');if(_0x95a419)await this['_loadImageInfo'](_0x95a419,_0x5585d9);else{if(this['_imageCache']['has'](_0x5585d9)){const _0x20b8e6=this['_imageCache']['get'](_0x5585d9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x20b8e6['url'],this['imageDimension']=_0x20b8e6['dimension'],this['imageId']=_0x20b8e6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x101f0b}=this['_editor'],t=_0x101f0b['t'],_0x2e6a65=new X(_0x101f0b,this['imageStatus'],this['_attributes']);_0x2e6a65['bind']('status')['to'](this,'imageStatus'),_0x2e6a65['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2e6a65['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2e6a65['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2e6a65,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x15c8dc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2e6a65,'position':_0x4bbf5e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2e6a65['focus']();},'onHide':()=>{_0x2e6a65['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x39782f=>!A(_0x39782f,_0x2e6a65['element'])}});}['_loadImageInfo'](_0x5e06d7,_0x363641){return j['getInfo'](_0x5e06d7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x328638=>{const {width:_0x2532f0,height:_0x364998}=_0x328638['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x363641,this['imageDimension']={'width':_0x2532f0,'height':_0x364998},this['imageId']=_0x5e06d7;})['catch'](_0x4154f1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4154f1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3ec90d,_0x4f0de7){return this['_getImageAsFile'](_0x3ec90d)['then'](_0x46a1e7=>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':_0x4f0de7['signal'],'file':_0x46a1e7,'onProgress':_0x252e1e=>{_0x252e1e&&_0x252e1e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x252e1e['value']));}}))['then'](_0x1e48c1=>{const {width:_0x1a957c,height:_0x56a1fb}=_0x1e48c1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e48c1['cdnUrl'],this['imageDimension']={'width':_0x1a957c,'height':_0x56a1fb},this['imageId']=_0x1e48c1['uuid'],this['imageUploadProgress']=null;const _0x15df40=_0x3ec90d['getAttribute']('src');this['_imageCache']['set'](_0x15df40,{'id':_0x1e48c1['uuid'],'url':_0x1e48c1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x559068=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x559068['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x48bc73,_0x1092ed){_0x48bc73['on']('apply',(_0x341deb,_0x2a47c2)=>{this['_replaceImage'](_0x1092ed,_0x2a47c2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x48bc73['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x48bc73['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4ee876,_0x86afd5,_0x31e027){const _0x3bbfb8=this['_editor'],{width:_0x4b2584,height:_0x513c8b}=S(_0x86afd5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x9dc512,imageSources:_0x3c8720}=C(_0x86afd5,_0x4b2584);_0x3bbfb8['model']['change'](_0x2bd60f=>{if('$graveyard'===_0x4ee876['root']['rootName']){_0x3bbfb8['execute']('insertImage',{'imageType':_0x4ee876['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4ee876['getAttributes']()),'uploadcareImageId':_0x31e027,'src':_0x9dc512,'sources':_0x3c8720,'width':_0x4b2584,'height':_0x513c8b}});const _0x440f7f=_0x4ee876['getChildren']();_0x4ee876=_0x3bbfb8['model']['document']['selection']['getSelectedElement']();for(const _0x174a85 of _0x440f7f)_0x2bd60f['append'](_0x2bd60f['cloneElement'](_0x174a85),_0x4ee876);}else _0x2bd60f['setSelection'](_0x4ee876,'on'),_0x3bbfb8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4ee876['getAttributes']()),'uploadcareImageId':_0x31e027,'src':_0x9dc512,'sources':_0x3c8720,'width':_0x4b2584,'height':_0x513c8b},_0x4ee876);_0x2bd60f['setSelection'](_0x4ee876,'on');});}async['_getImageAsFile'](_0x14d896){const _0x3de058=_0x364592['window'],_0x4600ce=_0x364592['document']['location']['href'],_0x355338=new _0x3de058['URL'](_0x14d896['getAttribute']('src'),_0x4600ce);if('data:'===_0x355338['protocol']){const _0x194fd6=_0x355338['href']['split'](','),_0x2ea3aa=_0x194fd6[0x0]['match'](/:(.*?);/)[0x1],_0x560c11=_0x2ea3aa['split']('/')[0x1],_0x2e507e=_0x3de058['atob'](_0x194fd6[_0x194fd6['length']-0x1]);let _0x4d5d57=_0x2e507e['length'];const _0x1d9fc2=new _0x3de058['Uint8Array'](_0x4d5d57);for(;_0x4d5d57--;)_0x1d9fc2[_0x4d5d57]=_0x2e507e['charCodeAt'](_0x4d5d57);return new _0x3de058['File']([_0x1d9fc2],'image.'+_0x560c11,{'type':_0x2ea3aa});}const _0x29e451=_0x355338['href']['split']('/'),_0x460acf=_0x29e451[_0x29e451['length']-0x1],_0x23e8e4=_0x460acf['split']('.')[0x1];return _0x3de058['fetch'](_0x355338['href'])['then'](_0x4f1254=>_0x4f1254['clone']()['blob']())['then'](_0x351aab=>new _0x3de058['File']([_0x351aab],_0x460acf,{'type':'image/'+_0x23e8e4}));}}class Q extends _0x207e1b{['imageEditController'];static get['requires'](){return[_0x2b6127];}['_isEditable'];constructor(_0x577d0f){super(_0x577d0f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2e9250){const _0x5b1115=z(_0x2e9250);return _0x3593c5=>!(!_0x3593c5||!_0x3593c5['is']('element','imageBlock')&&!_0x3593c5['is']('element','imageInline'))&&(!!_0x3593c5['hasAttribute']('uploadcareImageId')||!!_0x3593c5['hasAttribute']('src')&&_0x5b1115(_0x3593c5['getAttribute']('src')));}(_0x577d0f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x58ab8d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x58ab8d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5b641f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5b641f&&(_0x5b641f['is']('element','imageBlock')||_0x5b641f['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x2b6127),_0x5b641f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x207e1b{['refresh'](){const _0x129bfc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x129bfc&&(_0x129bfc['is']('element','imageBlock')||_0x129bfc['is']('element','imageInline')));}['execute'](_0x5870b3){const _0x70dd14=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x46d619=>{_0x46d619['setAttributes'](_0x5870b3,_0x70dd14),_0x46d619['removeAttribute']('srcset',_0x70dd14),_0x46d619['removeAttribute']('sizes',_0x70dd14);});}}class m extends _0x46feb1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2f6a12,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x115282}=this;_0x115282['commands']['add']('uploadcareImageEdit',new Q(_0x115282)),_0x115282['commands']['add']('uploadcareImageReplace',new V(_0x115282));}}class g extends _0x46feb1{['_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 _0x2cf388=this['editor'];_0x2cf388['ui']['componentFactory']['add']('uploadcareImageEdit',_0x35ce96=>{const _0x15d437=_0x2cf388['commands']['get']('uploadcareImageEdit'),_0x3ab798=new _0x48ecd8(_0x35ce96),t=_0x35ce96['t'];return _0x3ab798['set']({'icon':_0x15c8dc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3ab798['bind']('isEnabled')['to'](_0x15d437),_0x3ab798['bind']('isOn')['to'](_0x15d437,'isActive'),this['listenTo'](_0x3ab798,'execute',()=>{_0x2cf388['execute']('uploadcareImageEdit'),_0x2cf388['editing']['view']['focus']();}),_0x3ab798;}),this['_initConfig']();}['_initConfig'](){const _0x4998a8=_0x224cb9(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4998a8),this['listenTo'](this['editor'],'destroy',()=>{_0x4998a8['remove']();});}}class et extends _0x46feb1{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
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':_0xe70439=>0x1!=_0xe70439}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3706cd=>{const {af:{dictionary:_0x41a22f,getPluralForm:_0x5148e3}}={'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':_0x4b6569=>0x1!=_0x4b6569}};_0x3706cd['af']||={'dictionary':{},'getPluralForm':null},_0x3706cd['af']['dictionary']=Object['assign'](_0x3706cd['af']['dictionary'],_0x41a22f),_0x3706cd['af']['getPluralForm']=_0x5148e3;})(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':_0x368e60=>0x0==_0x368e60?0x0:0x1==_0x368e60?0x1:0x2==_0x368e60?0x2:_0x368e60%0x64>=0x3&&_0x368e60%0x64<=0xa?0x3:_0x368e60%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x38e41b=>{const {ar:{dictionary:_0x511531,getPluralForm:_0xfc8b2a}}={'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':_0xb35def=>0x0==_0xb35def?0x0:0x1==_0xb35def?0x1:0x2==_0xb35def?0x2:_0xb35def%0x64>=0x3&&_0xb35def%0x64<=0xa?0x3:_0xb35def%0x64>=0xb?0x4:0x5}};_0x38e41b['ar']||={'dictionary':{},'getPluralForm':null},_0x38e41b['ar']['dictionary']=Object['assign'](_0x38e41b['ar']['dictionary'],_0x511531),_0x38e41b['ar']['getPluralForm']=_0xfc8b2a;})(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':_0x3f44af=>0x1!=_0x3f44af}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5d1c38=>{const {ast:{dictionary:_0x7b95bc,getPluralForm:_0x4fb3df}}={'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':_0x29dcc3=>0x1!=_0x29dcc3}};_0x5d1c38['ast']||={'dictionary':{},'getPluralForm':null},_0x5d1c38['ast']['dictionary']=Object['assign'](_0x5d1c38['ast']['dictionary'],_0x7b95bc),_0x5d1c38['ast']['getPluralForm']=_0x4fb3df;})(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':_0xfe413c=>0x1!=_0xfe413c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4d1ca0=>{const {az:{dictionary:_0x56d9a7,getPluralForm:_0x199fdd}}={'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':_0x3d08fd=>0x1!=_0x3d08fd}};_0x4d1ca0['az']||={'dictionary':{},'getPluralForm':null},_0x4d1ca0['az']['dictionary']=Object['assign'](_0x4d1ca0['az']['dictionary'],_0x56d9a7),_0x4d1ca0['az']['getPluralForm']=_0x199fdd;})(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':_0x3fa965=>_0x3fa965%0xa==0x1&&_0x3fa965%0x64!=0xb?0x0:_0x3fa965%0xa>=0x2&&_0x3fa965%0xa<=0x4&&(_0x3fa965%0x64<0xa||_0x3fa965%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2fd400=>{const {be:{dictionary:_0x45b473,getPluralForm:_0x36d443}}={'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':_0x255a3c=>_0x255a3c%0xa==0x1&&_0x255a3c%0x64!=0xb?0x0:_0x255a3c%0xa>=0x2&&_0x255a3c%0xa<=0x4&&(_0x255a3c%0x64<0xa||_0x255a3c%0x64>=0x14)?0x1:0x2}};_0x2fd400['be']||={'dictionary':{},'getPluralForm':null},_0x2fd400['be']['dictionary']=Object['assign'](_0x2fd400['be']['dictionary'],_0x45b473),_0x2fd400['be']['getPluralForm']=_0x36d443;})(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':_0x46f2fc=>0x1!=_0x46f2fc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x519ca5=>{const {bg:{dictionary:_0x334ebd,getPluralForm:_0x479be9}}={'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':_0x3c863e=>0x1!=_0x3c863e}};_0x519ca5['bg']||={'dictionary':{},'getPluralForm':null},_0x519ca5['bg']['dictionary']=Object['assign'](_0x519ca5['bg']['dictionary'],_0x334ebd),_0x519ca5['bg']['getPluralForm']=_0x479be9;})(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':_0x5a7ae7=>0x1!=_0x5a7ae7}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5b14ff=>{const {bn:{dictionary:_0x568340,getPluralForm:_0x45ef86}}={'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':_0x10687b=>0x1!=_0x10687b}};_0x5b14ff['bn']||={'dictionary':{},'getPluralForm':null},_0x5b14ff['bn']['dictionary']=Object['assign'](_0x5b14ff['bn']['dictionary'],_0x568340),_0x5b14ff['bn']['getPluralForm']=_0x45ef86;})(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':_0x373d16=>_0x373d16%0xa==0x1&&_0x373d16%0x64!=0xb?0x0:_0x373d16%0xa>=0x2&&_0x373d16%0xa<=0x4&&(_0x373d16%0x64<0xa||_0x373d16%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x40689c=>{const {bs:{dictionary:_0x13415a,getPluralForm:_0x260fc7}}={'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':_0x6e6f12=>_0x6e6f12%0xa==0x1&&_0x6e6f12%0x64!=0xb?0x0:_0x6e6f12%0xa>=0x2&&_0x6e6f12%0xa<=0x4&&(_0x6e6f12%0x64<0xa||_0x6e6f12%0x64>=0x14)?0x1:0x2}};_0x40689c['bs']||={'dictionary':{},'getPluralForm':null},_0x40689c['bs']['dictionary']=Object['assign'](_0x40689c['bs']['dictionary'],_0x13415a),_0x40689c['bs']['getPluralForm']=_0x260fc7;})(window['CKEDITOR_TRANSLATIONS']||={});
|