@ckeditor/ckeditor5-uploadcare 47.4.0-alpha.1 → 47.4.0-alpha.2
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 _0x2c9ec5,Command as _0x340ba3}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2487e4,IconGooglePhotos as _0x4795c0,IconGoogleDrive as _0x3f9010,IconFacebook as _0x16d930,IconDropbox as _0x1013a5,IconUploadcareLink as _0x379d01,IconUploadcareImageUpload as _0x4fca51,IconError as _0x367b8c,IconUploadcareImageEdit as _0x4ba6e4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1f56a3,MenuBarMenuListItemButtonView as _0x29e4df,View as _0x56856a,FocusCycler as _0x166141,Dialog as _0x53818d,DialogViewPosition as _0xdf23b5,SpinnerView as _0x49c774,IconView as _0x36c794,Notification as _0x258fba}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2af186,DomEmitterMixin as _0xd9e5e8,global as _0x391e65,getAncestors as _0x48e23b,ObservableMixin as _0x553239,uid as _0x379c4a,createElement as _0x4c768c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3e7ba4}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2a9864,info as _0x3ab88b}from'@uploadcare/upload-client';import*as _0x40bc2f from'@uploadcare/file-uploader';var i=function(_0x338f0b){return _0x338f0b['Local']='local',_0x338f0b['URL']='url',_0x338f0b['Dropbox']='dropbox',_0x338f0b['GDrive']='gdrive',_0x338f0b['Facebook']='facebook',_0x338f0b['GPhotos']='gphotos',_0x338f0b['OneDrive']='onedrive',_0x338f0b;}({});function _(_0x2e58c2,_0x52b36c,_0x296d97){const t=_0x2e58c2['t'],_0x235e5d=_0x2e58c2['t'];switch(_0x52b36c){case i['Local']:return{'text':_0x235e5d('Insert'===_0x296d97?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x235e5d('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x296d97?_0x235e5d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x235e5d('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x296d97?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x296d97?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x296d97?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x296d97?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x296d97?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x52b36c;}}class e extends _0x2c9ec5{['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 _0x42120f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x17f7b5;for(const _0x4e5bc8 in _0x42120f){const _0x5dd3b0=_0x4e5bc8,_0x47d709=_0x42120f[_0x5dd3b0];if('uploadcareLicenseKeyValid'==_0x47d709||'uploadcareLicenseKeyInvalid'==_0x47d709||'uploadcareLicenseKeyExpired'==_0x47d709||'uploadcareLicenseKeyDomainLimit'==_0x47d709||'uploadcareLicenseKeyNotAllowed'==_0x47d709||'uploadcareLicenseKeyEvaluationLimit'==_0x47d709||'uploadcareLicenseKeyUsageLimit'==_0x47d709){delete _0x42120f[_0x5dd3b0],_0x17f7b5=_0x47d709,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x17f7b5&&_0x42120f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x17f7b5&&_0x42120f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x17f7b5&&_0x42120f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x17f7b5&&_0x42120f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x17f7b5&&_0x42120f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x17f7b5&&_0x42120f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x514e6d}=this,_0x30339d=_0x514e6d['commands']['get']('uploadcare');if(!_0x30339d)return;const _0x5507da=this['_normalizeConfigSourceList'](_0x514e6d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1d8102,_0x3f0816)=>{const _0x21b7b5=this['_getIntegrationKey'](_0x3f0816['type']);return _0x1d8102[_0x21b7b5]||(_0x1d8102[_0x21b7b5]=[]),_0x1d8102[_0x21b7b5]['push'](_0x3f0816),_0x1d8102;},{});_0x514e6d['plugins']['has']('ImageInsertUI')&&_0x514e6d['commands']['get']('uploadcare')&&Object['entries'](_0x5507da)['forEach'](([_0x24dc2f,_0x4eafa9])=>{_0x514e6d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x24dc2f,'observable':()=>_0x30339d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4eafa9),'formViewCreator':()=>this['_createDropdownButtons'](_0x4eafa9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4eafa9),'override':'assetManager'!==_0x24dc2f});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5e78c0){const {locale:_0x1e184d}=this['editor'];return _0x5e78c0['map'](_0x2ffd0c=>{const _0x4a99dd=_(_0x1e184d,_0x2ffd0c,'Insert');switch(_0x2ffd0c){case i['Local']:return{'icon':_0x4fca51,'type':i['Local'],..._0x4a99dd};case i['URL']:return{'icon':_0x379d01,'type':i['URL'],..._0x4a99dd};case i['Dropbox']:return{'icon':_0x1013a5,'type':i['Dropbox'],..._0x4a99dd};case i['Facebook']:return{'icon':_0x16d930,'type':i['Facebook'],..._0x4a99dd};case i['GDrive']:return{'icon':_0x3f9010,'type':i['GDrive'],..._0x4a99dd};case i['GPhotos']:return{'icon':_0x4795c0,'type':i['GPhotos'],..._0x4a99dd};case i['OneDrive']:return{'icon':_0x2487e4,'type':i['OneDrive'],..._0x4a99dd};}});}['_getIntegrationKey'](_0x537064){switch(_0x537064){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x592572,_0x4f4216){const _0x360a95=this['editor'],_0x2d5ab8=new _0x592572(_0x360a95['locale']),_0x5037c1=_0x360a95['commands']['get']('uploadcare');return _0x2d5ab8['bind']('isEnabled')['to'](_0x5037c1),_0x2d5ab8['on']('execute',()=>{_0x5037c1['execute'](_0x4f4216);}),_0x2d5ab8;}['_createToolbarButton'](_0x1cfc0b){const {locale:_0x2ab8d7}=this['editor'],_0x2d9bf5=this['editor']['plugins']['get']('ImageInsertUI'),_0x29c39b=_0x1cfc0b[0x0],_0x27cdd1=this['_createButton'](_0x1f56a3,_0x29c39b['type']);return _0x27cdd1['icon']=_0x29c39b['icon'],_0x27cdd1['bind']('label')['to'](_0x2d9bf5,'isImageSelected',_0x4ceffe=>_(_0x2ab8d7,_0x29c39b['type'],_0x4ceffe?'Replace':'Insert')['text']),_0x27cdd1['tooltip']=!0x0,_0x27cdd1;}['_createDropdownButtons'](_0x26c527){const {locale:_0x977894}=this['editor'],_0x296f5c=this['editor']['plugins']['get']('ImageInsertUI');return _0x26c527['map'](_0x3da9e6=>{const _0x4b4cad=this['_createButton'](_0x1f56a3,_0x3da9e6['type']);return _0x4b4cad['withText']=!0x0,_0x4b4cad['icon']=_0x3da9e6['icon'],_0x4b4cad['bind']('label')['to'](_0x296f5c,'isImageSelected',_0x1990d8=>_(_0x977894,_0x3da9e6['type'],_0x1990d8?'Replace':'Insert')['text']),_0x4b4cad;});}['_createMenuBarButtons'](_0x2ff2e8){return _0x2ff2e8['map'](_0x477f76=>{const _0x485840=this['_createButton'](_0x29e4df,_0x477f76['type']);return _0x485840['icon']=_0x477f76['icon'],_0x485840['label']=_0x477f76['shortText'],_0x485840;});}}class F extends _0x56856a{['focusTracker'];['focusCycler'];constructor(_0x55e261){super(_0x55e261),this['focusTracker']=new _0x2af186(),this['focusCycler']=new _0x166141({'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(_0x2046ad,_0x493490){super(_0x2046ad),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-'+_0x493490}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x46c2b5,_0x557f22){const _0x341d50=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x43d81e=>_0x43d81e<=_0x557f22)['map'](_0x2a7b7f=>_0x46c2b5['replace'](/\/$/,'')+'/-/resize/'+_0x2a7b7f+'x/\x20'+_0x2a7b7f+'w');return{'imageFallbackUrl':_0x46c2b5,'imageSources':[{'srcset':_0x341d50['join'](',\x20'),'sizes':'(max-width:\x20'+_0x557f22+'px)\x20100vw,\x20'+_0x557f22+'px','type':'image/webp'}]};}function S(_0x4994dc,_0x109bee,_0xe90e35){const _0xce24bf=_0x4994dc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xce24bf?parseInt(_0xce24bf[0x1],0xa):_0x109bee,'height':_0xce24bf?parseInt(_0xce24bf[0x2],0xa):_0xe90e35};}function p(_0x5dc235,_0x381d29){const _0x5b3764=new(_0xd9e5e8())(),_0x23a06a=_0x5dc235['plugins']['get']('ImageUtils'),_0x4a1f47=_0x5dc235['editing']['mapper']['toViewElement'](_0x381d29),_0x2b5dbd=_0x23a06a['findViewImgElement'](_0x4a1f47),_0x27d40e=_0x5dc235['editing']['view']['domConverter']['viewToDom'](_0x2b5dbd),_0x4ce95f=_0x381d29['getAttribute']('width'),_0x544307=_0x381d29['getAttribute']('height'),_0x394e34='image-processing';_0x5dc235['editing']['view']['change'](_0x38aa27=>{_0x38aa27['addClass'](_0x394e34,_0x4a1f47),_0x38aa27['setStyle']('aspect-ratio',_0x4ce95f+'/'+_0x544307,_0x2b5dbd);}),_0x5b3764['listenTo'](_0x27d40e,'load',()=>{_0x5b3764['stopListening'](_0x27d40e,'load'),_0x5dc235['editing']['view']['change'](_0x220d8b=>{_0x220d8b['removeClass'](_0x394e34,_0x4a1f47),_0x220d8b['removeStyle']('aspect-ratio',_0x2b5dbd);});});}function G(_0x4e836b){if(Array['isArray'](_0x4e836b)){const _0x54d988=_0x4e836b['map'](G);return _0xf39895=>_0x54d988['some'](_0x31d0b5=>_0x31d0b5(_0xf39895));}if('origin'==_0x4e836b){const _0x4bb54c=_0x391e65['window']['location']['origin'];return _0x28b820=>new URL(_0x28b820,_0x391e65['document']['baseURI'])['origin']==_0x4bb54c;}return'function'==typeof _0x4e836b?_0x4e836b:_0x4e836b instanceof RegExp?_0x2b9755=>!(!_0x2b9755['match'](_0x4e836b)&&!_0x2b9755['replace'](/^https?:\/\//,'')['match'](_0x4e836b)):()=>!0x1;}function A(_0x577145,_0x5ea058){return _0x48e23b(_0x577145['target'])['includes'](_0x5ea058);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x553239(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x55cbeb,_0x3b4bc4,_0x41199d){super(),this['_editor']=_0x55cbeb,this['_editing']=_0x3b4bc4,this['_dialog']=_0x55cbeb['plugins']['get'](_0x53818d),this['_api']=_0x3b4bc4['ctxElement']['getAPI'](),this['_type']=_0x41199d,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:_0x1f59a5,model:_0xe142dd}=this['_editor'],_0x2ac62c=_0xe142dd['document']['selection']['getSelectedElement'](),_0x1d21cb=_0x2ac62c&&(_0x2ac62c['is']('element','imageBlock')||_0x2ac62c['is']('element','imageInline'));this['_formView']=new x(_0x1f59a5,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4fca51,'title':_(_0x1f59a5,this['_type'],_0x1d21cb?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xdf23b5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x177afe=>!A(_0x177afe,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x21c5a0}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x8d7c01=>{const _0x3b31b4=_0x21c5a0['length'];for(const _0x5525dd of _0x21c5a0){const _0x9eba88=_0x5525dd===_0x21c5a0[_0x3b31b4-0x1],{cdnUrl:_0x1d2340,fileInfo:_0x598c85}=_0x5525dd;if(!_0x1d2340||!_0x598c85)continue;const {width:_0x3e0b87,height:_0x54ac79}=_0x598c85['imageInfo'],_0x37abac=S(_0x1d2340,_0x3e0b87,_0x54ac79),_0x1f15fc=C(_0x1d2340,_0x37abac['width']),_0x439368={'id':_0x598c85['uuid'],'type':'image','attributes':{'imageDimension':_0x37abac,..._0x1f15fc}};this['_insertAsset'](_0x439368,_0x9eba88,_0x8d7c01);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1694c4=>{'idle'===_0x1694c4['detail']['status']&&!_0x1694c4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4dab0e,_0x5c1ce5,_0x33af2b){const _0x499498=this['_editor']['model']['document']['selection'],_0x3d371a=_0x499498['getSelectedElement'](),_0x364f4f=!(!_0x3d371a||!_0x3d371a['is']('element','imageInline'));_0x33af2b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4dab0e,_0x364f4f),_0x5c1ce5||_0x33af2b['setSelection'](_0x499498['getLastPosition']());}['_insertImage'](_0x23198a,_0x3bfba6){const _0x19be75=this['_editor'],{imageDimension:_0x41a812,imageFallbackUrl:_0x394647,imageSources:_0x3f60c6}=_0x23198a['attributes'];_0x19be75['execute']('insertImage',{'imageType':_0x3bfba6?'imageInline':null,'source':{'uploadcareImageId':_0x23198a['id'],'src':_0x394647,'sources':_0x3f60c6,..._0x41a812}});}}class w extends _0x340ba3{['_editing'];['_controller']=null;static get['requires'](){return[_0x53818d,o];}constructor(_0x6c650){super(_0x6c650),this['_editing']=_0x6c650['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x845361){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x845361);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x30e146,..._0x10b58b}){return _0x2a9864(_0x30e146,_0x10b58b);}static['getInfo'](_0x1cb687,_0xf5fe54){return _0x3ab88b(_0x1cb687,_0xf5fe54);}}class f extends _0x2c9ec5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3e7ba4,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x9bfea5=this['editor'];if(!!!_0x9bfea5['config']['get']('uploadcare'))return;_0x9bfea5['plugins']['get'](_0x3e7ba4)['createUploadAdapter']=_0x4d749b=>new k(_0x4d749b,_0x9bfea5),_0x9bfea5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4c9125,{imageElement:_0x43f27c,data:_0x59accf})=>{_0x9bfea5['model']['change'](_0x1f7b94=>{_0x1f7b94['setAttribute']('uploadcareImageId',_0x59accf['uploadcareImageId'],_0x43f27c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x41fff7,_0x21313c){this['loader']=_0x41fff7,this['editor']=_0x21313c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3a8266=await this['loader']['file'];return j['upload']({'file':_0x3a8266,'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':_0x4d4831=>{_0x4d4831&&_0x4d4831['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4d4831['value']);}})['then'](async _0x3163ce=>{const {imageFallbackUrl:_0x114150,imageSources:_0xeed8dc}=C(_0x3163ce['cdnUrl'],_0x3163ce['imageInfo']['width']);return{'uploadcareImageId':_0x3163ce['uuid'],'default':_0x114150,'sources':_0xeed8dc};})['catch'](()=>{const _0x4aa0c4=t('Cannot\x20upload\x20file:')+('\x20'+_0x3a8266['name']+'.');return Promise['reject'](_0x4aa0c4);});}['abort'](){this['controller']['abort']();}}class o extends _0x2c9ec5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x53818d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x76a733){super(_0x76a733),this['ucContextId']=_0x379c4a();}['init'](){const _0x4141e8=this['editor'];_0x4141e8['commands']['add']('uploadcare',new w(_0x4141e8));}['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 _0x476f5a=_0x391e65['document']['querySelector']('input[uploadcare-file-input]');_0x476f5a&&_0x476f5a['remove']();}),async function(_0x584050){const _0x735bf1=_0x45c2fe([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]),_0x430c93=0x535f8c3a,_0x57e004=0x5358f252^_0x430c93,_0x1a0483=window[_0x45c2fe([0x44,0x61,0x74,0x65])][_0x45c2fe([0x6e,0x6f,0x77])](),_0x3e1ad8=_0x584050[_0x45c2fe([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4310d1=new window[(_0x45c2fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17d991=>{_0x3e1ad8[_0x45c2fe([0x6f,0x6e,0x63,0x65])](_0x45c2fe([0x72,0x65,0x61,0x64,0x79]),_0x17d991);}),_0xf2fe0b={[_0x45c2fe([0x6b,0x74,0x79])]:_0x45c2fe([0x45,0x43]),[_0x45c2fe([0x75,0x73,0x65])]:_0x45c2fe([0x73,0x69,0x67]),[_0x45c2fe([0x63,0x72,0x76])]:_0x45c2fe([0x50,0x2d,0x32,0x35,0x36]),[_0x45c2fe([0x78])]:_0x45c2fe([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]),[_0x45c2fe([0x79])]:_0x45c2fe([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]),[_0x45c2fe([0x61,0x6c,0x67])]:_0x45c2fe([0x45,0x53,0x32,0x35,0x36])},_0x4961dc=_0x3e1ad8[_0x45c2fe([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x45c2fe([0x67,0x65,0x74])](_0x45c2fe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3386fb(){let _0x4ab03f,_0x484e3b=null,_0x260696=null;try{if(_0x4961dc==_0x45c2fe([0x47,0x50,0x4c]))return _0x45c2fe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ab03f=_0x33bc18(),!_0x4ab03f)return _0x45c2fe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ab03f[_0x45c2fe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x260696=_0x4c64d3(_0x4ab03f[_0x45c2fe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ab03f[_0x45c2fe([0x6a,0x74,0x69])])),await _0x2e6635()?_0x2613b4()?_0x3387c3()?_0x45c2fe([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x31e7f5()?(_0x4ab03f[_0x45c2fe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45c2fe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x484e3b=_0x3d77c2(_0x45c2fe([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x298f44()):_0x45c2fe([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x45c2fe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x45c2fe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x45c2fe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3387c3(){const _0x85e950=[_0x45c2fe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x45c2fe([0x74,0x72,0x69,0x61,0x6c])][_0x45c2fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ab03f[_0x45c2fe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a0483/0x3e8:0xe10*_0x57e004;return _0x4ab03f[_0x45c2fe([0x65,0x78,0x70])]<_0x85e950;}function _0x2613b4(){const _0x363193=_0x4ab03f[_0x45c2fe([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x363193&&(!!_0x363193[_0x45c2fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c2fe([0x2a]))||!!_0x363193[_0x45c2fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c2fe([0x55,0x50,0x4c,0x43])));}function _0x31e7f5(){const _0xa39fde=_0x4ab03f[_0x45c2fe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa39fde||0x0==_0xa39fde[_0x45c2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20514a}=new URL(window[_0x45c2fe([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xa39fde[_0x45c2fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20514a))return!0x0;const _0x30a8b6=_0x20514a[_0x45c2fe([0x73,0x70,0x6c,0x69,0x74])](_0x45c2fe([0x2e]));return _0xa39fde[_0x45c2fe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5627f3=>_0x5627f3[_0x45c2fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c2fe([0x2a])))[_0x45c2fe([0x6d,0x61,0x70])](_0x2258b2=>_0x2258b2[_0x45c2fe([0x73,0x70,0x6c,0x69,0x74])](_0x45c2fe([0x2e])))[_0x45c2fe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x389ecd=>_0x389ecd[_0x45c2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x30a8b6[_0x45c2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45c2fe([0x6d,0x61,0x70])](_0x44a066=>Array(_0x30a8b6[_0x45c2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x44a066[_0x45c2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45c2fe([0x66,0x69,0x6c,0x6c])](_0x44a066[0x0]===_0x45c2fe([0x2a])?_0x45c2fe([0x2a]):'')[_0x45c2fe([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x44a066))[_0x45c2fe([0x73,0x6f,0x6d,0x65])](_0x2847ed=>_0x30a8b6[_0x45c2fe([0x65,0x76,0x65,0x72,0x79])]((_0x8813e3,_0x1a7da3)=>_0x2847ed[_0x1a7da3]===_0x8813e3||_0x2847ed[_0x1a7da3]===_0x45c2fe([0x2a])));}function _0x298f44(){return _0x484e3b&&_0x260696?new window[(_0x45c2fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57391e,_0x1e32fb)=>{_0x484e3b[_0x45c2fe([0x74,0x68,0x65,0x6e])](_0x57391e,_0x1e32fb),_0x260696[_0x45c2fe([0x74,0x68,0x65,0x6e])](_0x425a87=>{_0x425a87!=_0x45c2fe([0x56,0x61,0x6c,0x69,0x64])&&_0x57391e(_0x425a87);},_0x1e32fb);}):_0x484e3b||_0x260696||_0x45c2fe([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c64d3(_0x363481,_0x5ce32d){return new window[(_0x45c2fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x405939=>{if(_0x1b6c53())return _0x405939(_0x45c2fe([0x56,0x61,0x6c,0x69,0x64]));_0xbf23a6(),_0x3e1ad8[_0x45c2fe([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x45c2fe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54e196=!0x1;const _0x28cc13=_0x379c4a();function _0x3f3dc6(_0x3f7814){return!!_0x3f7814&&(typeof _0x3f7814===_0x45c2fe([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f7814===_0x45c2fe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f7814[_0x45c2fe([0x74,0x68,0x65,0x6e])]===_0x45c2fe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f7814[_0x45c2fe([0x63,0x61,0x74,0x63,0x68])]===_0x45c2fe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x35bbb0(_0x4156b0){_0x8ac2a7(_0x4156b0)[_0x45c2fe([0x74,0x68,0x65,0x6e])](_0xf70176=>{if(!_0xf70176||_0xf70176[_0x45c2fe([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x45c2fe([0x6f,0x6b]))return _0x45c2fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5c8e19(_0x39f88c(_0x28cc13+_0x5ce32d))!=_0xf70176[_0x45c2fe([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x45c2fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x45c2fe([0x56,0x61,0x6c,0x69,0x64]);})[_0x45c2fe([0x74,0x68,0x65,0x6e])](_0xf49578=>(_0x1593fa(),_0xf49578),()=>{const _0x7fcb75=_0x1cfc05();return null==_0x7fcb75?(_0x1593fa(),_0x45c2fe([0x56,0x61,0x6c,0x69,0x64])):_0x45c2fe(_0x1a0483-_0x7fcb75>(0x7753083a^_0x430c93)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x45c2fe([0x74,0x68,0x65,0x6e])](_0x405939)[_0x45c2fe([0x63,0x61,0x74,0x63,0x68])](()=>{_0x405939(_0x45c2fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x379341=0x536962ba^_0x430c93;function _0x1593fa(){const _0x50ae0f=_0x45c2fe([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c8e19(_0x39f88c(_0x363481)),_0xfd4af0=_0x55f9a3(_0x5c8e19(window[_0x45c2fe([0x4d,0x61,0x74,0x68])][_0x45c2fe([0x63,0x65,0x69,0x6c])](_0x1a0483/_0x379341)));window[_0x45c2fe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45c2fe([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50ae0f,_0xfd4af0);}function _0x1cfc05(){const _0x35f18a=_0x45c2fe([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c8e19(_0x39f88c(_0x363481)),_0x56cf19=window[_0x45c2fe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45c2fe([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35f18a);return _0x56cf19?window[_0x45c2fe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55f9a3(_0x56cf19),0x10)*_0x379341:null;}function _0x8ac2a7(_0x29f415){return new window[(_0x45c2fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21eb1e,_0x12007b)=>{_0x29f415[_0x45c2fe([0x74,0x68,0x65,0x6e])](_0x21eb1e,_0x12007b),window[_0x45c2fe([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12007b,0x535e58fa^_0x430c93);});}}_0x3e1ad8[_0x45c2fe([0x6f,0x6e])](_0x45c2fe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15d491,_0x22dc12)=>{if(_0x22dc12[0x0]!=_0x363481)return _0x405939(_0x45c2fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22dc12[0x1]={..._0x22dc12[0x1],[_0x45c2fe([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28cc13};},{[_0x45c2fe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45c2fe([0x68,0x69,0x67,0x68])}),_0x3e1ad8[_0x45c2fe([0x6f,0x6e])](_0x45c2fe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x150860=>{_0x3f3dc6(_0x150860[_0x45c2fe([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54e196=!0x0,_0x35bbb0(_0x150860[_0x45c2fe([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x45c2fe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45c2fe([0x6c,0x6f,0x77])}),_0x4310d1[_0x45c2fe([0x74,0x68,0x65,0x6e])](()=>{_0x54e196||_0x405939(_0x45c2fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b6c53(){return _0x3e1ad8[_0x45c2fe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45c2fe([0x76,0x69,0x65,0x77])][_0x45c2fe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x45c2fe([0x61,0x75,0x74,0x6f]);}function _0xbf23a6(){_0x3e1ad8[_0x45c2fe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45c2fe([0x76,0x69,0x65,0x77])][_0x45c2fe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45c2fe([0x61,0x75,0x74,0x6f]);}}function _0x3d77c2(_0x391407){const _0x47086c=[new window[(_0x45c2fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f774a=>setTimeout(_0x2f774a,0x5356b2f6^_0x430c93)),_0x4310d1[_0x45c2fe([0x74,0x68,0x65,0x6e])](()=>new window[(_0x45c2fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31652c=>{let _0xfcaa95=0x0;_0x3e1ad8[_0x45c2fe([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c2fe([0x6f,0x6e])](_0x45c2fe([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x236513,_0x917922)=>{_0x917922[0x0][_0x45c2fe([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xfcaa95++,_0xfcaa95==(0x535f89d2^_0x430c93)&&(_0x31652c(),_0x236513[_0x45c2fe([0x6f,0x66,0x66])]());});}))];return window[_0x45c2fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45c2fe([0x72,0x61,0x63,0x65])](_0x47086c)[_0x45c2fe([0x74,0x68,0x65,0x6e])](()=>_0x391407);}async function _0x3e61ea(){await _0x4310d1,_0x3e1ad8[_0x45c2fe([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c2fe([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44c079,_0x3e1ad8[_0x45c2fe([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c2fe([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44c079,_0x3e1ad8[_0x45c2fe([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x45c2fe([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4683a5(_0x48a0a3){const _0x13c5a8=_0x538d03();_0x3e1ad8[_0x13c5a8]=_0x45c2fe([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x48a0a3,_0x48a0a3!=_0x45c2fe([0x56,0x61,0x6c,0x69,0x64])&&_0x3e61ea();}function _0x538d03(){const _0x5e0eb7=window[_0x45c2fe([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x45c2fe([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x45c2fe([0x6e,0x6f,0x77])]())[_0x45c2fe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x45c2fe([0x2e]),'');let _0x42fe52=_0x45c2fe([0x68]);for(let _0x1e1561=0x0;_0x1e1561<_0x5e0eb7[_0x45c2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e1561+=0x2){let _0x5edd53=window[_0x45c2fe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e0eb7[_0x45c2fe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e1561,_0x1e1561+0x2));_0x5edd53>=_0x735bf1[_0x45c2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5edd53-=_0x735bf1[_0x45c2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42fe52+=_0x735bf1[_0x5edd53];}return _0x42fe52;}function _0x33bc18(){const _0x298682=_0x4961dc[_0x45c2fe([0x73,0x70,0x6c,0x69,0x74])](_0x45c2fe([0x2e]));if(0x3!=_0x298682[_0x45c2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2eecf9(_0x298682[0x1]);function _0x2eecf9(_0x51381c){const _0x544ccc=_0x17c4f6(_0x51381c);return _0x544ccc&&_0x577af7()?_0x544ccc:null;function _0x577af7(){const _0x15f2c6=_0x544ccc[_0x45c2fe([0x6a,0x74,0x69])],_0x2c2817=window[_0x45c2fe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15f2c6[_0x45c2fe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15f2c6[_0x45c2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28a0b3={..._0x544ccc,[_0x45c2fe([0x6a,0x74,0x69])]:_0x15f2c6[_0x45c2fe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15f2c6[_0x45c2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28a0b3[_0x45c2fe([0x76,0x63])],_0x39f88c(_0x28a0b3)==_0x2c2817;}}}async function _0x2e6635(){let _0x5577c6=!0x0;try{const _0x593ad=_0x4961dc[_0x45c2fe([0x73,0x70,0x6c,0x69,0x74])](_0x45c2fe([0x2e])),[_0x4a54f6,_0x373846,_0x33690e]=_0x593ad;return _0x273640(_0x4a54f6),await _0xa514bb(_0x4a54f6,_0x373846,_0x33690e),_0x5577c6;}catch{return!0x1;}function _0x273640(_0xc20ba3){const _0x26535b=_0x17c4f6(_0xc20ba3);_0x26535b&&_0x26535b[_0x45c2fe([0x61,0x6c,0x67])]==_0x45c2fe([0x45,0x53,0x32,0x35,0x36])||(_0x5577c6=!0x1);}async function _0xa514bb(_0x23cf0e,_0x4c98ed,_0x19fd2f){const _0x5efa8a=window[_0x45c2fe([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x45c2fe([0x66,0x72,0x6f,0x6d])](_0x4be939(_0x19fd2f),_0x4766ac=>_0x4766ac[_0x45c2fe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52d160=new window[(_0x45c2fe([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x45c2fe([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23cf0e+_0x45c2fe([0x2e])+_0x4c98ed),_0x1e1f14=window[_0x45c2fe([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x45c2fe([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e1f14)return;const _0x12d703=await _0x1e1f14[_0x45c2fe([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x45c2fe([0x6a,0x77,0x6b]),_0xf2fe0b,{[_0x45c2fe([0x6e,0x61,0x6d,0x65])]:_0x45c2fe([0x45,0x43,0x44,0x53,0x41]),[_0x45c2fe([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x45c2fe([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x45c2fe([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e1f14[_0x45c2fe([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x45c2fe([0x6e,0x61,0x6d,0x65])]:_0x45c2fe([0x45,0x43,0x44,0x53,0x41]),[_0x45c2fe([0x68,0x61,0x73,0x68])]:{[_0x45c2fe([0x6e,0x61,0x6d,0x65])]:_0x45c2fe([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12d703,_0x5efa8a,_0x52d160)||(_0x5577c6=!0x1);}}function _0x17c4f6(_0x3856b0){return _0x3856b0[_0x45c2fe([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x45c2fe([0x65,0x79]))?JSON[_0x45c2fe([0x70,0x61,0x72,0x73,0x65])](_0x4be939(_0x3856b0)):null;}function _0x4be939(_0x582974){return window[_0x45c2fe([0x61,0x74,0x6f,0x62])](_0x582974[_0x45c2fe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x45c2fe([0x2b]))[_0x45c2fe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x45c2fe([0x2f])));}function _0x39f88c(_0x45e12b){let _0x1e3361=0x1505;function _0x193f2c(_0x489e99){for(let _0x360ad8=0x0;_0x360ad8<_0x489e99[_0x45c2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x360ad8++){const _0x5334ac=_0x489e99[_0x45c2fe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x360ad8);_0x1e3361=(_0x1e3361<<0x5)+_0x1e3361+_0x5334ac,_0x1e3361&=_0x1e3361;}}function _0x2d6c05(_0x4fcc04){Array[_0x45c2fe([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4fcc04)?_0x4fcc04[_0x45c2fe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d6c05):_0x4fcc04&&typeof _0x4fcc04==_0x45c2fe([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x45c2fe([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4fcc04)[_0x45c2fe([0x73,0x6f,0x72,0x74])]()[_0x45c2fe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f9c67,_0x97a805])=>{_0x193f2c(_0x1f9c67),_0x2d6c05(_0x97a805);}):_0x193f2c(window[_0x45c2fe([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4fcc04));}return _0x2d6c05(_0x45e12b),_0x1e3361>>>0x0;}function _0x5c8e19(_0x542592){return _0x542592[_0x45c2fe([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x45c2fe([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x45c2fe([0x30]));}function _0x55f9a3(_0x42802f){return _0x42802f[_0x45c2fe([0x73,0x70,0x6c,0x69,0x74])]('')[_0x45c2fe([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x45c2fe([0x6a,0x6f,0x69,0x6e])]('');}function _0x44c079(){}function _0x45c2fe(_0x3747a2){return _0x3747a2['map'](_0x411122=>String['fromCharCode'](_0x411122))['join']('');}_0x4683a5(await _0x3386fb());}(this);}['_initSchema'](){const _0x95490e=this['editor']['model']['schema'];_0x95490e['isRegistered']('imageBlock')&&_0x95490e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x95490e['isRegistered']('imageInline')&&_0x95490e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x53f4bb=this['editor'];_0x53f4bb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x53f4bb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x6a69b3=>_0x6a69b3['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f931d=_0x53f4bb['commands']['get']('replaceImageSource');_0x2f931d&&this['listenTo'](_0x2f931d,'cleanupImage',(_0x2bc013,[_0x5d1f51,_0x121e8b])=>{_0x5d1f51['removeAttribute']('uploadcareImageId',_0x121e8b);});}['_initConfig'](){const _0x14bb72=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2b1dbc=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4c768c(_0x391e65['document'],'uc-config',{..._0x14bb72,'pubkey':_0x2b1dbc,'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']=_0x2b039c=>{if('closeMax'==_0x2b039c)return'#uc-icon-arrow-down';},_0x391e65['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4c768c(_0x391e65['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x391e65['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xd591fa=this['editor']['commands']['get']('insertImage');_0xd591fa&&this['listenTo'](_0xd591fa,'execute',()=>{const _0x17e220=this['editor']['model']['document']['selection']['getSelectedElement']();_0x17e220&&_0x17e220['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x17e220);});});const _0x1b6604=this['editor']['commands']['get']('uploadcareImageReplace');_0x1b6604&&this['listenTo'](_0x1b6604,'execute',()=>{const _0x32aa86=this['editor']['model']['document']['selection']['getSelectedElement']();_0x32aa86&&_0x32aa86['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x32aa86);});});}}class tt extends _0x2c9ec5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x151ee2){super(_0x151ee2),_0x151ee2['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x40bc2f['defineComponents'](_0x40bc2f),this['_defineLocale']();}['_defineLocale'](){const _0x39e909=this['editor']['config']['get']('uploadcare.locale'),_0x4c30b5=this['editor']['locale']['contentLanguage'];_0x39e909&&_0x40bc2f['defineLocale'](_0x4c30b5,_0x39e909);}}class ii extends _0x56856a{constructor(_0x9440c8){super(_0x9440c8);const t=_0x9440c8['t'],_0x4db71d=this['bindTemplate'],_0x540d88=new _0x49c774();_0x540d88['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':[_0x540d88,{'text':_0x4db71d['to']('imageUploadProgress',_0x3a0bfa=>t('Loading\x20image...')+'\x20('+(_0x3a0bfa||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 _0x56856a{constructor(_0x2b3fe3){super(_0x2b3fe3);const t=_0x2b3fe3['t'];this['set']('errorType',null);const _0x575e8d=new _0x1f56a3(_0x2b3fe3);_0x575e8d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x575e8d['withText']=!0x0,_0x575e8d['class']='ck-button-action',_0x575e8d['on']('execute',()=>{this['fire']('retry');}),_0x575e8d['bind']('isVisible')['to'](this,'errorType',_0x3de963=>'NotFound'!==_0x3de963);const _0xf932ee=new _0x36c794();_0xf932ee['content']=_0x367b8c,_0xf932ee['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3b9fd8=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':[_0xf932ee,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3b9fd8['to']('errorType',_0x47a6a2=>t('NotFound'!==_0x47a6a2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x575e8d]},{'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 _0x56856a{constructor(_0x23522a,_0x200e87){super(_0x23522a);const _0x405691=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x200e87,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x405691['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4f943c,_0x69d467,_0x538a5f){super(_0x4f943c),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4f943c),this['_errorView']=new ti(_0x4f943c),this['_editingView']=new ei(_0x4f943c,_0x538a5f),this['_focusableView']=new _0x56856a(_0x4f943c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x69d467),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'],_0x5c9fde=>{this['_addUploadcareImageEditorListeners'](_0x5c9fde);});}),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'](_0x57b224,_0x1b52ae){const _0x3bf474='uc-cloud-image-editor',_0x20989e=_0x57b224['querySelector'](_0x3bf474);if(_0x20989e)return _0x1b52ae(_0x20989e);const _0x4f2bdb=new MutationObserver(_0x2d8203=>{const _0x2b96db=_0x2d8203['filter'](_0x48eb5b=>_0x48eb5b['target']===_0x57b224&&_0x48eb5b['addedNodes']['length']>0x0&&_0x48eb5b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3bf474);_0x2b96db['length']&&(_0x4f2bdb['disconnect'](),_0x1b52ae(_0x2b96db[0x0]['addedNodes'][0x0]));});_0x4f2bdb['observe'](_0x57b224,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3d8906){_0x3d8906['addEventListener']('apply',_0x232f45=>{this['fire']('apply',{'imageSrc':_0x232f45['detail']['cdnUrl']});}),_0x3d8906['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x553239(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4cfb91,_0x16d3eb,_0x5d8270){super(),this['_editor']=_0x4cfb91,this['_dialog']=_0x16d3eb,this['_imageElement']=_0x5d8270,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 _0x211fd1=this['_imageElement'],_0x49c6f3=_0x211fd1['getAttribute']('uploadcareImageId'),_0x39a3e6=_0x211fd1['getAttribute']('src');if(_0x49c6f3)await this['_loadImageInfo'](_0x49c6f3,_0x39a3e6);else{if(this['_imageCache']['has'](_0x39a3e6)){const _0x3d75bd=this['_imageCache']['get'](_0x39a3e6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d75bd['url'],this['imageDimension']=_0x3d75bd['dimension'],this['imageId']=_0x3d75bd['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x52597c}=this['_editor'],t=_0x52597c['t'],_0x515c09=new X(_0x52597c,this['imageStatus'],this['_attributes']);_0x515c09['bind']('status')['to'](this,'imageStatus'),_0x515c09['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x515c09['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x515c09['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x515c09,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4ba6e4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x515c09,'position':_0xdf23b5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x515c09['focus']();},'onHide':()=>{_0x515c09['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2e5a6b=>!A(_0x2e5a6b,_0x515c09['element'])}});}['_loadImageInfo'](_0x3b8f25,_0x639e27){return j['getInfo'](_0x3b8f25,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x41793e=>{const {width:_0x2afddd,height:_0x23c8de}=_0x41793e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x639e27,this['imageDimension']={'width':_0x2afddd,'height':_0x23c8de},this['imageId']=_0x3b8f25;})['catch'](_0x2cd916=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2cd916['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4b001d,_0x12f820){return this['_getImageAsFile'](_0x4b001d)['then'](_0x51f68d=>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':_0x12f820['signal'],'file':_0x51f68d,'onProgress':_0x625b6d=>{_0x625b6d&&_0x625b6d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x625b6d['value']));}}))['then'](_0x3f824e=>{const {width:_0x63d3cc,height:_0x38dc14}=_0x3f824e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f824e['cdnUrl'],this['imageDimension']={'width':_0x63d3cc,'height':_0x38dc14},this['imageId']=_0x3f824e['uuid'],this['imageUploadProgress']=null;const _0xe15deb=_0x4b001d['getAttribute']('src');this['_imageCache']['set'](_0xe15deb,{'id':_0x3f824e['uuid'],'url':_0x3f824e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3c551a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3c551a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4907c0,_0x587d91){_0x4907c0['on']('apply',(_0x10fcf5,_0x2499b4)=>{this['_replaceImage'](_0x587d91,_0x2499b4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4907c0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4907c0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x44b1fd,_0x84bbf2,_0x3c9af7){const _0x2fffe1=this['_editor'],{width:_0x40e7fe,height:_0x8849c5}=S(_0x84bbf2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1ffb99,imageSources:_0x3d3224}=C(_0x84bbf2,_0x40e7fe);_0x2fffe1['model']['change'](_0x46bf0d=>{if('$graveyard'===_0x44b1fd['root']['rootName']){_0x2fffe1['execute']('insertImage',{'imageType':_0x44b1fd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x44b1fd['getAttributes']()),'uploadcareImageId':_0x3c9af7,'src':_0x1ffb99,'sources':_0x3d3224,'width':_0x40e7fe,'height':_0x8849c5}});const _0x5be425=_0x44b1fd['getChildren']();_0x44b1fd=_0x2fffe1['model']['document']['selection']['getSelectedElement']();for(const _0x18b22f of _0x5be425)_0x46bf0d['append'](_0x46bf0d['cloneElement'](_0x18b22f),_0x44b1fd);}else _0x46bf0d['setSelection'](_0x44b1fd,'on'),_0x2fffe1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x44b1fd['getAttributes']()),'uploadcareImageId':_0x3c9af7,'src':_0x1ffb99,'sources':_0x3d3224,'width':_0x40e7fe,'height':_0x8849c5},_0x44b1fd);_0x46bf0d['setSelection'](_0x44b1fd,'on');});}async['_getImageAsFile'](_0x1d8224){const _0x4275aa=_0x391e65['window'],_0x46ec3e=_0x391e65['document']['location']['href'],_0x10a0c0=new _0x4275aa['URL'](_0x1d8224['getAttribute']('src'),_0x46ec3e);if('data:'===_0x10a0c0['protocol']){const _0x3e0903=_0x10a0c0['href']['split'](','),_0x24548b=_0x3e0903[0x0]['match'](/:(.*?);/)[0x1],_0x38f7fe=_0x24548b['split']('/')[0x1],_0x3aed16=_0x4275aa['atob'](_0x3e0903[_0x3e0903['length']-0x1]);let _0x462203=_0x3aed16['length'];const _0x4155fd=new _0x4275aa['Uint8Array'](_0x462203);for(;_0x462203--;)_0x4155fd[_0x462203]=_0x3aed16['charCodeAt'](_0x462203);return new _0x4275aa['File']([_0x4155fd],'image.'+_0x38f7fe,{'type':_0x24548b});}const _0x48e6e8=_0x10a0c0['href']['split']('/'),_0x2182bd=_0x48e6e8[_0x48e6e8['length']-0x1],_0x1072c3=_0x2182bd['split']('.')[0x1];return _0x4275aa['fetch'](_0x10a0c0['href'])['then'](_0x153fd2=>_0x153fd2['clone']()['blob']())['then'](_0xfb02b8=>new _0x4275aa['File']([_0xfb02b8],_0x2182bd,{'type':'image/'+_0x1072c3}));}}class O extends _0x340ba3{['imageEditController'];static get['requires'](){return[_0x53818d];}['_isEditable'];constructor(_0x9b2bed){super(_0x9b2bed),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xa1e46a){const _0x2cf1d6=G(_0xa1e46a);return _0x1cea7b=>!(!_0x1cea7b||!_0x1cea7b['is']('element','imageBlock')&&!_0x1cea7b['is']('element','imageInline'))&&(!!_0x1cea7b['hasAttribute']('uploadcareImageId')||!!_0x1cea7b['hasAttribute']('src')&&_0x2cf1d6(_0x1cea7b['getAttribute']('src')));}(_0x9b2bed['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2d2d98=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2d2d98);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4d68e8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4d68e8&&(_0x4d68e8['is']('element','imageBlock')||_0x4d68e8['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x53818d),_0x4d68e8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x340ba3{['refresh'](){const _0x2446b7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2446b7&&(_0x2446b7['is']('element','imageBlock')||_0x2446b7['is']('element','imageInline')));}['execute'](_0x7b4d00){const _0x1240f3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1fb91b=>{_0x1fb91b['setAttributes'](_0x7b4d00,_0x1240f3),_0x1fb91b['removeAttribute']('srcset',_0x1240f3),_0x1fb91b['removeAttribute']('sizes',_0x1240f3);});}}class m extends _0x2c9ec5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x258fba,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xcdd39c}=this;_0xcdd39c['commands']['add']('uploadcareImageEdit',new O(_0xcdd39c)),_0xcdd39c['commands']['add']('uploadcareImageReplace',new R(_0xcdd39c));}}class g extends _0x2c9ec5{['_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 _0x4446cf=this['editor'];_0x4446cf['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5670f2=>{const _0x3b54ef=_0x4446cf['commands']['get']('uploadcareImageEdit'),_0x3758f1=new _0x1f56a3(_0x5670f2),t=_0x5670f2['t'];return _0x3758f1['set']({'icon':_0x4ba6e4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3758f1['bind']('isEnabled')['to'](_0x3b54ef),_0x3758f1['bind']('isOn')['to'](_0x3b54ef,'isActive'),this['listenTo'](_0x3758f1,'execute',()=>{_0x4446cf['execute']('uploadcareImageEdit'),_0x4446cf['editing']['view']['focus']();}),_0x3758f1;}),this['_initConfig']();}['_initConfig'](){const _0x4317b3=_0x4c768c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4317b3),this['listenTo'](this['editor'],'destroy',()=>{_0x4317b3['remove']();});}}class et extends _0x2c9ec5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_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']||={});
|