@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250506.0 → 0.0.0-nightly-20250507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x79a8c5,Command as _0x5e7094}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x448248,IconGooglePhotos as _0x482beb,IconGoogleDrive as _0x502eb7,IconFacebook as _0x3489c7,IconDropbox as _0x4f385e,IconUploadcareLink as _0x5c1b0b,IconUploadcareImageUpload as _0x584594,IconError as et,IconUploadcareImageEdit as _0x162254}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x476c2a,MenuBarMenuListItemButtonView as _0x28c7ac,View as _0x149404,FocusCycler as _0x347a40,Dialog as _0x536fd3,DialogViewPosition as _0x4da90c,SpinnerView as _0x37a556,IconView as at,Notification as _0x717c84}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x404c06,DomEmitterMixin as _0x547cf7,global as _0x130db3,getAncestors as _0x202227,ObservableMixin as _0xc9969b,createElement as _0x54f883,uid as _0x36b187}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4eefcf}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4c80cd,info as _0x5875d5}from'@uploadcare/upload-client';import*as _0x4818de from'@uploadcare/file-uploader';var o=function(_0x5f5424){return _0x5f5424['Local']='local',_0x5f5424['URL']='url',_0x5f5424['Dropbox']='dropbox',_0x5f5424['GDrive']='gdrive',_0x5f5424['Facebook']='facebook',_0x5f5424['GPhotos']='gphotos',_0x5f5424['OneDrive']='onedrive',_0x5f5424;}({});function _(_0x559659,_0x5369f3,_0x303db0){const t=_0x559659['t'],_0x22ed1e=_0x559659['t'];switch(_0x5369f3){case o['Local']:return{'text':_0x22ed1e('Insert'===_0x303db0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x22ed1e('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x303db0?_0x22ed1e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x22ed1e('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x303db0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x303db0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x303db0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x303db0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x303db0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5369f3;}}class e extends _0x79a8c5{['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 _0x558f7a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x56568e;for(const _0x164974 in _0x558f7a){const _0x1ad230=_0x164974,_0x445b19=_0x558f7a[_0x1ad230];if('uploadcareLicenseKeyValid'==_0x445b19||'uploadcareLicenseKeyInvalid'==_0x445b19||'uploadcareLicenseKeyExpired'==_0x445b19||'uploadcareLicenseKeyDomainLimit'==_0x445b19||'uploadcareLicenseKeyNotAllowed'==_0x445b19||'uploadcareLicenseKeyEvaluationLimit'==_0x445b19||'uploadcareLicenseKeyTrialLimit'==_0x445b19||'uploadcareLicenseKeyUsageLimit'==_0x445b19){delete _0x558f7a[_0x1ad230],_0x56568e=_0x445b19,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x56568e&&_0x558f7a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x56568e&&_0x558f7a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x56568e&&_0x558f7a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x56568e&&_0x558f7a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x56568e&&_0x558f7a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x56568e&&_0x558f7a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x56568e&&_0x558f7a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xf8869a}=this,_0x3a39e3=_0xf8869a['commands']['get']('uploadcare');if(!_0x3a39e3)return;const _0x276cf5=this['_normalizeConfigSourceList'](_0xf8869a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5c13bb,_0x6bfedb)=>{const _0x850e61=this['_getIntegrationKey'](_0x6bfedb['type']);return _0x5c13bb[_0x850e61]||(_0x5c13bb[_0x850e61]=[]),_0x5c13bb[_0x850e61]['push'](_0x6bfedb),_0x5c13bb;},{});_0xf8869a['plugins']['has']('ImageInsertUI')&&_0xf8869a['commands']['get']('uploadcare')&&Object['entries'](_0x276cf5)['forEach'](([_0x796e73,_0x6894e9])=>{_0xf8869a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x796e73,'observable':()=>_0x3a39e3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x6894e9),'formViewCreator':()=>this['_createDropdownButtons'](_0x6894e9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x6894e9),'override':'assetManager'!==_0x796e73});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x14e1f9){const {locale:_0x3c7be7}=this['editor'];return _0x14e1f9['map'](_0x471604=>{const _0x2b0c04=_(_0x3c7be7,_0x471604,'Insert');switch(_0x471604){case o['Local']:return{'icon':_0x584594,'type':o['Local'],..._0x2b0c04};case o['URL']:return{'icon':_0x5c1b0b,'type':o['URL'],..._0x2b0c04};case o['Dropbox']:return{'icon':_0x4f385e,'type':o['Dropbox'],..._0x2b0c04};case o['Facebook']:return{'icon':_0x3489c7,'type':o['Facebook'],..._0x2b0c04};case o['GDrive']:return{'icon':_0x502eb7,'type':o['GDrive'],..._0x2b0c04};case o['GPhotos']:return{'icon':_0x482beb,'type':o['GPhotos'],..._0x2b0c04};case o['OneDrive']:return{'icon':_0x448248,'type':o['OneDrive'],..._0x2b0c04};}});}['_getIntegrationKey'](_0x2576bb){switch(_0x2576bb){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x59e10b,_0x25b1f7){const _0x141fda=this['editor'],_0x4505d5=new _0x59e10b(_0x141fda['locale']),_0x5db78c=_0x141fda['commands']['get']('uploadcare');return _0x4505d5['bind']('isEnabled')['to'](_0x5db78c),_0x4505d5['on']('execute',()=>{_0x5db78c['execute'](_0x25b1f7);}),_0x4505d5;}['_createToolbarButton'](_0xf0b776){const {locale:_0x5d2a93}=this['editor'],_0x1ed6e8=this['editor']['plugins']['get']('ImageInsertUI'),_0x3d6892=_0xf0b776[0x0],_0x45f20a=this['_createButton'](_0x476c2a,_0x3d6892['type']);return _0x45f20a['icon']=_0x3d6892['icon'],_0x45f20a['bind']('label')['to'](_0x1ed6e8,'isImageSelected',_0x3f255d=>_(_0x5d2a93,_0x3d6892['type'],_0x3f255d?'Replace':'Insert')['text']),_0x45f20a['tooltip']=!0x0,_0x45f20a;}['_createDropdownButtons'](_0x3244f6){const {locale:_0x10c9f4}=this['editor'],_0x337453=this['editor']['plugins']['get']('ImageInsertUI');return _0x3244f6['map'](_0xb5bd10=>{const _0xf16371=this['_createButton'](_0x476c2a,_0xb5bd10['type']);return _0xf16371['withText']=!0x0,_0xf16371['icon']=_0xb5bd10['icon'],_0xf16371['bind']('label')['to'](_0x337453,'isImageSelected',_0xc287b3=>_(_0x10c9f4,_0xb5bd10['type'],_0xc287b3?'Replace':'Insert')['text']),_0xf16371;});}['_createMenuBarButtons'](_0x32c972){return _0x32c972['map'](_0xb40e7b=>{const _0xd84416=this['_createButton'](_0x28c7ac,_0xb40e7b['type']);return _0xd84416['icon']=_0xb40e7b['icon'],_0xd84416['label']=_0xb40e7b['shortText'],_0xd84416;});}}class q extends _0x149404{['focusTracker'];['focusCycler'];constructor(_0x3572c7){super(_0x3572c7),this['focusTracker']=new _0x404c06(),this['focusCycler']=new _0x347a40({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x7de267){super(_0x7de267),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x230de0,_0x3c5a63){const _0x361b51=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1f9801=>_0x1f9801<=_0x3c5a63)['map'](_0x4d313c=>_0x230de0['replace'](/\/$/,'')+'/-/resize/'+_0x4d313c+'x/\x20'+_0x4d313c+'w');return{'imageFallbackUrl':_0x230de0,'imageSources':[{'srcset':_0x361b51['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3c5a63+'px)\x20100vw,\x20'+_0x3c5a63+'px','type':'image/webp'}]};}function A(_0xc9863b,_0x2eade1,_0x42a3c7){const _0x66d596=_0xc9863b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x66d596?parseInt(_0x66d596[0x1],0xa):_0x2eade1,'height':_0x66d596?parseInt(_0x66d596[0x2],0xa):_0x42a3c7};}function m(_0x130a4c,_0x3cb095){const _0x5e7883=Object['create'](_0x547cf7),_0x556922=_0x130a4c['plugins']['get']('ImageUtils'),_0x1d9e77=_0x130a4c['editing']['mapper']['toViewElement'](_0x3cb095),_0x57035d=_0x556922['findViewImgElement'](_0x1d9e77),_0x477c34=_0x130a4c['editing']['view']['domConverter']['viewToDom'](_0x57035d),_0x36a137=_0x3cb095['getAttribute']('width'),_0x52a5f0=_0x3cb095['getAttribute']('height'),_0x2760ef='image-processing';_0x130a4c['editing']['view']['change'](_0x4ef9d9=>{_0x4ef9d9['addClass'](_0x2760ef,_0x1d9e77),_0x4ef9d9['setStyle']('aspect-ratio',_0x36a137+'/'+_0x52a5f0,_0x57035d);}),_0x5e7883['listenTo'](_0x477c34,'load',()=>{_0x5e7883['stopListening'](_0x477c34,'load'),_0x130a4c['editing']['view']['change'](_0x44c8c8=>{_0x44c8c8['removeClass'](_0x2760ef,_0x1d9e77),_0x44c8c8['removeStyle']('aspect-ratio',_0x57035d);});});}function V(_0x4e3439){if(Array['isArray'](_0x4e3439)){const _0x1adf74=_0x4e3439['map'](V);return _0x3a4ab9=>_0x1adf74['some'](_0x4f1901=>_0x4f1901(_0x3a4ab9));}if('origin'==_0x4e3439){const _0x36bb79=_0x130db3['window']['location']['origin'];return _0x489c1b=>new URL(_0x489c1b,_0x130db3['document']['baseURI'])['origin']==_0x36bb79;}return'function'==typeof _0x4e3439?_0x4e3439:_0x4e3439 instanceof RegExp?_0x39ec83=>!(!_0x39ec83['match'](_0x4e3439)&&!_0x39ec83['replace'](/^https?:\/\//,'')['match'](_0x4e3439)):()=>!0x1;}function F(_0x7a8b2c,_0x420d89){return _0x202227(_0x7a8b2c['target'])['includes'](_0x420d89);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xc9969b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x15dec9,_0x249fff,_0x1254f5){super(),this['_editor']=_0x15dec9,this['_editing']=_0x249fff,this['_dialog']=_0x15dec9['plugins']['get'](_0x536fd3),this['_api']=_0x249fff['ctxElement']['getAPI'](),this['_type']=_0x1254f5,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:_0xe80901,model:_0x21836c}=this['_editor'],_0x5bcaab=_0x21836c['document']['selection']['getSelectedElement'](),_0x1a15cf=_0x5bcaab&&(_0x5bcaab['is']('element','imageBlock')||_0x5bcaab['is']('element','imageInline'));this['_formView']=new S(_0xe80901),this['_dialog']['show']({'id':'uploadCare','icon':_0x584594,'title':_(_0xe80901,this['_type'],_0x1a15cf?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4da90c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e9c55=>!F(_0x1e9c55,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x53adde}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x58a45e=>{const _0x3d12b1=_0x53adde['length'];for(const _0x78f5b4 of _0x53adde){const _0x40b746=_0x78f5b4===_0x53adde[_0x3d12b1-0x1],{cdnUrl:_0x534925,fileInfo:_0x39f2c4}=_0x78f5b4;if(!_0x534925||!_0x39f2c4)continue;const {width:_0x2df5a6,height:_0x35264e}=_0x39f2c4['imageInfo'],_0x510a28=A(_0x534925,_0x2df5a6,_0x35264e),_0x1e905d=E(_0x534925,_0x510a28['width']),_0x39f80f={'id':_0x39f2c4['uuid'],'type':'image','attributes':{'imageDimension':_0x510a28,..._0x1e905d}};this['_insertAsset'](_0x39f80f,_0x40b746,_0x58a45e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x64e3ad=>{'idle'===_0x64e3ad['detail']['status']&&!_0x64e3ad['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x300858,_0x6f928e,_0x51580f){const _0x26fec=this['_editor']['model']['document']['selection'],_0x329926=_0x26fec['getSelectedElement'](),_0x55f40d=!(!_0x329926||!_0x329926['is']('element','imageInline'));_0x51580f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x300858,_0x55f40d),_0x6f928e||_0x51580f['setSelection'](_0x26fec['getLastPosition']());}['_insertImage'](_0x2302fc,_0x8e5b2){const _0x4fea90=this['_editor'],{imageDimension:_0x22a7c2,imageFallbackUrl:_0x5c2127,imageSources:_0x46626a}=_0x2302fc['attributes'];_0x4fea90['execute']('insertImage',{'imageType':_0x8e5b2?'imageInline':null,'source':{'uploadcareImageId':_0x2302fc['id'],'src':_0x5c2127,'sources':_0x46626a,..._0x22a7c2}});}}class n extends _0x5e7094{['_editing'];['_controller']=null;static get['requires'](){return[_0x536fd3,i];}constructor(_0x23bd86){super(_0x23bd86),this['_editing']=_0x23bd86['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4b4d15){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4b4d15);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3ff8c8,publicKey:_0x201692,signal:_0x491d71,onProgress:_0x7555f5}){return _0x4c80cd(_0x3ff8c8,{'publicKey':_0x201692,'store':'auto','signal':_0x491d71,'onProgress':_0x7555f5});}static['getInfo'](_0x43e1d5,_0x58a0be){return _0x5875d5(_0x43e1d5,_0x58a0be);}}class p extends _0x79a8c5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4eefcf,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x384bf5=this['editor'];if(!!!_0x384bf5['config']['get']('uploadcare'))return;_0x384bf5['plugins']['get'](_0x4eefcf)['createUploadAdapter']=_0x318885=>new x(_0x318885,_0x384bf5),_0x384bf5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2b6a91,{imageElement:_0x5d4dce,data:_0x295435})=>{_0x384bf5['model']['change'](_0x545407=>{_0x545407['setAttribute']('uploadcareImageId',_0x295435['uploadcareImageId'],_0x5d4dce);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2504d2,_0x2e0edd){this['loader']=_0x2504d2,this['editor']=_0x2e0edd,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x39ba26=this['editor']['config']['get']('uploadcare.pubkey'),_0x333586=await this['loader']['file'];return C['upload']({'file':_0x333586,'publicKey':_0x39ba26,'signal':this['controller']['signal'],'onProgress':_0x2501ec=>{_0x2501ec&&_0x2501ec['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2501ec['value']);}})['then'](async _0x30eee0=>{const {imageFallbackUrl:_0x2b6c64,imageSources:_0x364b5a}=E(_0x30eee0['cdnUrl'],_0x30eee0['imageInfo']['width']);return{'uploadcareImageId':_0x30eee0['uuid'],'default':_0x2b6c64,'sources':_0x364b5a};})['catch'](()=>{const _0x5c8d71=t('Cannot\x20upload\x20file:')+('\x20'+_0x333586['name']+'.');return Promise['reject'](_0x5c8d71);});}['abort'](){this['controller']['abort']();}}class i extends _0x79a8c5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x536fd3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5e8bf3=this['editor'];_0x5e8bf3['commands']['add']('uploadcare',new n(_0x5e8bf3));}['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 _0x417d3e=_0x130db3['document']['querySelector']('input[uploadcare-file-input]');_0x417d3e&&_0x417d3e['remove']();}),async function(_0x5e27f0){const _0x1c75cb=_0x437d8b([0x4f,0x79,0x71,0x46,0x6d,0x30,0x65,0x38,0x6c,0x70,0x64,0x6f,0x75,0x72,0x61,0x55,0x68,0x4a,0x35,0x53,0x36,0x5a,0x69,0x54,0x6a,0x6e,0x59,0x33,0x51,0x44,0x42,0x4d,0x32,0x78,0x49,0x47,0x58,0x77,0x4c,0x57,0x76,0x34,0x56,0x31,0x39,0x66,0x67,0x41,0x45,0x63,0x48,0x50,0x4b,0x74,0x37,0x6b,0x73,0x4e,0x43,0x52,0x7a,0x62]),_0x1e820b=0x600340b6,_0x26e0cb=0x600427a6^_0x1e820b,_0x307699=window[_0x437d8b([0x44,0x61,0x74,0x65])][_0x437d8b([0x6e,0x6f,0x77])](),_0x329841=_0x5e27f0[_0x437d8b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19f3e5=new window[(_0x437d8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10bf79=>{_0x329841[_0x437d8b([0x6f,0x6e,0x63,0x65])](_0x437d8b([0x72,0x65,0x61,0x64,0x79]),_0x10bf79);}),_0x5130d3={[_0x437d8b([0x6b,0x74,0x79])]:_0x437d8b([0x45,0x43]),[_0x437d8b([0x75,0x73,0x65])]:_0x437d8b([0x73,0x69,0x67]),[_0x437d8b([0x63,0x72,0x76])]:_0x437d8b([0x50,0x2d,0x32,0x35,0x36]),[_0x437d8b([0x78])]:_0x437d8b([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]),[_0x437d8b([0x79])]:_0x437d8b([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]),[_0x437d8b([0x61,0x6c,0x67])]:_0x437d8b([0x45,0x53,0x32,0x35,0x36])},_0x434703=_0x329841[_0x437d8b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x437d8b([0x67,0x65,0x74])](_0x437d8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5696f7(){let _0x5dade9,_0x26d135=null,_0xc405bf=null;try{if(_0x434703==_0x437d8b([0x47,0x50,0x4c]))return _0x437d8b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5dade9=_0x435d7b(),!_0x5dade9)return _0x437d8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5dade9[_0x437d8b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc405bf=_0x3cc238(_0x5dade9[_0x437d8b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5dade9[_0x437d8b([0x6a,0x74,0x69])])),await _0x2d387b()?_0x44de84()?_0x372d8b()?_0x437d8b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x511f71()?(_0x5dade9[_0x437d8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x437d8b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26d135=_0xc5c94b(_0x437d8b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5dade9[_0x437d8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x437d8b([0x74,0x72,0x69,0x61,0x6c])&&(_0x26d135=_0xc5c94b(_0x437d8b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf6057e()):_0x437d8b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x437d8b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x437d8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x333046){return _0x437d8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x372d8b(){const _0x36e514=[_0x437d8b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x437d8b([0x74,0x72,0x69,0x61,0x6c])][_0x437d8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dade9[_0x437d8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x307699/0x3e8:0xe10*_0x26e0cb;return _0x5dade9[_0x437d8b([0x65,0x78,0x70])]<_0x36e514;}function _0x44de84(){const _0x477369=_0x5dade9[_0x437d8b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x477369&&(!!_0x477369[_0x437d8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437d8b([0x2a]))||!!_0x477369[_0x437d8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437d8b([0x55,0x50,0x4c,0x43])));}function _0x511f71(){const _0x3864f1=_0x5dade9[_0x437d8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3864f1||0x0==_0x3864f1[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23ea00}=new URL(window[_0x437d8b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3864f1[_0x437d8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23ea00))return!0x0;const _0xe0b042=_0x23ea00[_0x437d8b([0x73,0x70,0x6c,0x69,0x74])](_0x437d8b([0x2e]));return _0x3864f1[_0x437d8b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50bf02=>_0x50bf02[_0x437d8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437d8b([0x2a])))[_0x437d8b([0x6d,0x61,0x70])](_0x5494bd=>_0x5494bd[_0x437d8b([0x73,0x70,0x6c,0x69,0x74])](_0x437d8b([0x2e])))[_0x437d8b([0x73,0x6f,0x6d,0x65])](_0x17ac59=>_0xe0b042[_0x437d8b([0x65,0x76,0x65,0x72,0x79])]((_0x5dfe86,_0x6fd964)=>_0x17ac59[_0x6fd964]===_0x5dfe86||_0x17ac59[_0x6fd964]===_0x437d8b([0x2a])));}function _0xf6057e(){return _0x26d135&&_0xc405bf?new window[(_0x437d8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1cde44,_0x17365a)=>{_0x26d135[_0x437d8b([0x74,0x68,0x65,0x6e])](_0x1cde44,_0x17365a),_0xc405bf[_0x437d8b([0x74,0x68,0x65,0x6e])](_0x80b34d=>{_0x80b34d!=_0x437d8b([0x56,0x61,0x6c,0x69,0x64])&&_0x1cde44(_0x80b34d);},_0x17365a);}):_0x26d135||_0xc405bf||_0x437d8b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3cc238(_0x414f74,_0x11c01c){return new window[(_0x437d8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x435424=>{if(_0x2fbbbe())return _0x435424(_0x437d8b([0x56,0x61,0x6c,0x69,0x64]));_0xafbfda(),_0x329841[_0x437d8b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x437d8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5712e0=!0x1;const _0x4873da=_0x36b187();function _0x4584a2(_0x8fd704){return!!_0x8fd704&&(typeof _0x8fd704===_0x437d8b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x8fd704===_0x437d8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x8fd704[_0x437d8b([0x74,0x68,0x65,0x6e])]===_0x437d8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x8fd704[_0x437d8b([0x63,0x61,0x74,0x63,0x68])]===_0x437d8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x415478(_0x3aa8c4){_0x218e55(_0x3aa8c4)[_0x437d8b([0x74,0x68,0x65,0x6e])](_0x161611=>{if(!_0x161611||_0x161611[_0x437d8b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x437d8b([0x6f,0x6b]))return _0x437d8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57f033(_0x459c3a(_0x4873da+_0x11c01c))!=_0x161611[_0x437d8b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x437d8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x437d8b([0x56,0x61,0x6c,0x69,0x64]);})[_0x437d8b([0x74,0x68,0x65,0x6e])](_0x4fce7b=>(_0x4a0cc1(),_0x4fce7b),()=>{const _0x21959c=_0x149751();return null==_0x21959c?(_0x4a0cc1(),_0x437d8b([0x56,0x61,0x6c,0x69,0x64])):_0x437d8b(_0x307699-_0x21959c>(0x440fc4b6^_0x1e820b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x437d8b([0x74,0x68,0x65,0x6e])](_0x435424)[_0x437d8b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x435424(_0x437d8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x50751b=0x6035ae36^_0x1e820b;function _0x4a0cc1(){const _0x14e90a=_0x437d8b([0x6c,0x6c,0x63,0x74,0x2d])+_0x57f033(_0x459c3a(_0x414f74)),_0x51ed03=_0x143a71(_0x57f033(window[_0x437d8b([0x4d,0x61,0x74,0x68])][_0x437d8b([0x63,0x65,0x69,0x6c])](_0x307699/_0x50751b)));window[_0x437d8b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x437d8b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14e90a,_0x51ed03);}function _0x149751(){const _0xc6acd4=_0x437d8b([0x6c,0x6c,0x63,0x74,0x2d])+_0x57f033(_0x459c3a(_0x414f74)),_0x5ccd4d=window[_0x437d8b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x437d8b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc6acd4);return _0x5ccd4d?window[_0x437d8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x143a71(_0x5ccd4d),0x10)*_0x50751b:null;}function _0x218e55(_0x41025a){return new window[(_0x437d8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1536ce,_0x3dddf5)=>{_0x41025a[_0x437d8b([0x74,0x68,0x65,0x6e])](_0x1536ce,_0x3dddf5),window[_0x437d8b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3dddf5,0x60029476^_0x1e820b);});}}_0x329841[_0x437d8b([0x6f,0x6e])](_0x437d8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f704d,_0x25eb41)=>{if(_0x25eb41[0x0]!=_0x414f74)return _0x435424(_0x437d8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x25eb41[0x1]={..._0x25eb41[0x1],[_0x437d8b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4873da};},{[_0x437d8b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x437d8b([0x68,0x69,0x67,0x68])}),_0x329841[_0x437d8b([0x6f,0x6e])](_0x437d8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x20b572=>{_0x4584a2(_0x20b572[_0x437d8b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5712e0=!0x0,_0x415478(_0x20b572[_0x437d8b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x437d8b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x437d8b([0x6c,0x6f,0x77])}),_0x19f3e5[_0x437d8b([0x74,0x68,0x65,0x6e])](()=>{_0x5712e0||_0x435424(_0x437d8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2fbbbe(){return _0x329841[_0x437d8b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x437d8b([0x76,0x69,0x65,0x77])][_0x437d8b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x437d8b([0x61,0x75,0x74,0x6f]);}function _0xafbfda(){_0x329841[_0x437d8b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x437d8b([0x76,0x69,0x65,0x77])][_0x437d8b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x437d8b([0x61,0x75,0x74,0x6f]);}}function _0xc5c94b(_0x496213){const _0x416b21=[new window[(_0x437d8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44a362=>setTimeout(_0x44a362,0x600a7e7a^_0x1e820b)),_0x19f3e5[_0x437d8b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x437d8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44a039=>{let _0x3afc8b=0x0;_0x329841[_0x437d8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x437d8b([0x6f,0x6e])](_0x437d8b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f708d,_0x238735)=>{_0x238735[0x0][_0x437d8b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3afc8b++,_0x3afc8b==(0x6003414e^_0x1e820b)&&(_0x44a039(),_0x4f708d[_0x437d8b([0x6f,0x66,0x66])]());});}))];return window[_0x437d8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x437d8b([0x72,0x61,0x63,0x65])](_0x416b21)[_0x437d8b([0x74,0x68,0x65,0x6e])](()=>_0x496213);}async function _0x40f4dc(){await _0x19f3e5,_0x329841[_0x437d8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x437d8b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e6af4,_0x329841[_0x437d8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x437d8b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e6af4,_0x329841[_0x437d8b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x437d8b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53288a(_0x5d1984){const _0x2665b1=_0x177676();_0x329841[_0x2665b1]=_0x437d8b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d1984,_0x5d1984!=_0x437d8b([0x56,0x61,0x6c,0x69,0x64])&&_0x40f4dc();}function _0x177676(){const _0x2c6e3f=window[_0x437d8b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x437d8b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x437d8b([0x6e,0x6f,0x77])]())[_0x437d8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x437d8b([0x2e]),'');let _0x541abe=_0x437d8b([0x4f]);for(let _0x2e04c7=0x0;_0x2e04c7<_0x2c6e3f[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e04c7+=0x2){let _0x5c8521=window[_0x437d8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c6e3f[_0x437d8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e04c7,_0x2e04c7+0x2));_0x5c8521>=_0x1c75cb[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c8521-=_0x1c75cb[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x541abe+=_0x1c75cb[_0x5c8521];}return _0x541abe;}function _0x435d7b(){const _0x5c957e=_0x434703[_0x437d8b([0x73,0x70,0x6c,0x69,0x74])](_0x437d8b([0x2e]));if(0x3!=_0x5c957e[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4dffcd(_0x5c957e[0x1]);function _0x4dffcd(_0xbe26b6){const _0x4a3a57=_0x54980c(_0xbe26b6);return _0x4a3a57&&_0x3d9d19()?_0x4a3a57:null;function _0x3d9d19(){const _0x852717=_0x4a3a57[_0x437d8b([0x6a,0x74,0x69])],_0xedb816=window[_0x437d8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x852717[_0x437d8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x852717[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57f8f9={..._0x4a3a57,[_0x437d8b([0x6a,0x74,0x69])]:_0x852717[_0x437d8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x852717[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57f8f9[_0x437d8b([0x76,0x63])],_0x459c3a(_0x57f8f9)==_0xedb816;}}}async function _0x2d387b(){let _0x293d7b=!0x0;try{const _0x48874c=_0x434703[_0x437d8b([0x73,0x70,0x6c,0x69,0x74])](_0x437d8b([0x2e])),[_0x848ee5,_0x12ce39,_0x3dcec7]=_0x48874c;return _0x2beae2(_0x848ee5),await _0x3f9b98(_0x848ee5,_0x12ce39,_0x3dcec7),_0x293d7b;}catch(_0x1c1f6c){return!0x1;}function _0x2beae2(_0x467ff0){const _0x1b5fbc=_0x54980c(_0x467ff0);_0x1b5fbc&&_0x1b5fbc[_0x437d8b([0x61,0x6c,0x67])]==_0x437d8b([0x45,0x53,0x32,0x35,0x36])||(_0x293d7b=!0x1);}async function _0x3f9b98(_0x188857,_0x2c647e,_0x42ac24){const _0x264b20=window[_0x437d8b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x437d8b([0x66,0x72,0x6f,0x6d])](_0x9d7117(_0x42ac24),_0x5d9b87=>_0x5d9b87[_0x437d8b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7a4ec7=new window[(_0x437d8b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x437d8b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x188857+_0x437d8b([0x2e])+_0x2c647e),_0x2d26a5=window[_0x437d8b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x437d8b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d26a5)return;const _0x5e11e1=await _0x2d26a5[_0x437d8b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x437d8b([0x6a,0x77,0x6b]),_0x5130d3,{[_0x437d8b([0x6e,0x61,0x6d,0x65])]:_0x437d8b([0x45,0x43,0x44,0x53,0x41]),[_0x437d8b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x437d8b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x437d8b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d26a5[_0x437d8b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x437d8b([0x6e,0x61,0x6d,0x65])]:_0x437d8b([0x45,0x43,0x44,0x53,0x41]),[_0x437d8b([0x68,0x61,0x73,0x68])]:{[_0x437d8b([0x6e,0x61,0x6d,0x65])]:_0x437d8b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e11e1,_0x264b20,_0x7a4ec7)||(_0x293d7b=!0x1);}}function _0x54980c(_0x54c1d6){return _0x54c1d6[_0x437d8b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x437d8b([0x65,0x79]))?JSON[_0x437d8b([0x70,0x61,0x72,0x73,0x65])](_0x9d7117(_0x54c1d6)):null;}function _0x9d7117(_0x1e07ad){return window[_0x437d8b([0x61,0x74,0x6f,0x62])](_0x1e07ad[_0x437d8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x437d8b([0x2b]))[_0x437d8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x437d8b([0x2f])));}function _0x459c3a(_0x2faeb6){let _0x487619=0x1505;function _0x5044b9(_0x5ca67e){for(let _0x194b40=0x0;_0x194b40<_0x5ca67e[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x194b40++){const _0x3efb92=_0x5ca67e[_0x437d8b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x194b40);_0x487619=(_0x487619<<0x5)+_0x487619+_0x3efb92,_0x487619&=_0x487619;}}function _0x1e7b91(_0xf6925a){Array[_0x437d8b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf6925a)?_0xf6925a[_0x437d8b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e7b91):_0xf6925a&&typeof _0xf6925a==_0x437d8b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x437d8b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf6925a)[_0x437d8b([0x73,0x6f,0x72,0x74])]()[_0x437d8b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a0f40,_0x1c2337])=>{_0x5044b9(_0x5a0f40),_0x1e7b91(_0x1c2337);}):_0x5044b9(window[_0x437d8b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf6925a));}return _0x1e7b91(_0x2faeb6),_0x487619>>>0x0;}function _0x57f033(_0x46670f){return _0x46670f[_0x437d8b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x437d8b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x437d8b([0x30]));}function _0x143a71(_0x3fca0b){return _0x3fca0b[_0x437d8b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x437d8b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x437d8b([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e6af4(){}function _0x437d8b(_0x193a22){return _0x193a22['map'](_0x1eafae=>String['fromCharCode'](_0x1eafae))['join']('');}_0x53288a(await _0x5696f7());}(this);}['_initSchema'](){const _0x245c77=this['editor']['model']['schema'];_0x245c77['isRegistered']('imageBlock')&&_0x245c77['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x245c77['isRegistered']('imageInline')&&_0x245c77['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x12a727=this['editor'];_0x12a727['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x12a727['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x30eed2=>_0x30eed2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x480386=_0x12a727['commands']['get']('replaceImageSource');_0x480386&&this['listenTo'](_0x480386,'cleanupImage',(_0x404da8,[_0x32448b,_0x17f8de])=>{_0x32448b['removeAttribute']('uploadcareImageId',_0x17f8de);});}['_initConfig'](){const _0x21bff6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5ca9f6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x54f883(_0x130db3['document'],'uc-config',{..._0x21bff6,'pubkey':_0x5ca9f6,'ctx-name':'uploader','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']=_0x3abbef=>{if('closeMax'==_0x3abbef)return'#uc-icon-arrow-down';},_0x130db3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x54f883(_0x130db3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x130db3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x524fc0=this['editor']['commands']['get']('insertImage');_0x524fc0&&this['listenTo'](_0x524fc0,'execute',()=>{const _0x4caed1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4caed1&&_0x4caed1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4caed1);});});const _0x4bfa76=this['editor']['commands']['get']('uploadcareImageReplace');_0x4bfa76&&this['listenTo'](_0x4bfa76,'execute',()=>{const _0x1a96a9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a96a9&&_0x1a96a9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1a96a9);});});}}class u extends _0x79a8c5{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15fb0e){super(_0x15fb0e),_0x15fb0e['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x4818de['defineComponents'](_0x4818de);}}class ta extends _0x149404{constructor(_0x173669){super(_0x173669);const t=_0x173669['t'],_0x1ce64e=this['bindTemplate'],_0x354057=new _0x37a556();_0x354057['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':[_0x354057,{'text':_0x1ce64e['to']('imageUploadProgress',_0x4a5edd=>t('Loading\x20image...')+'\x20('+(_0x4a5edd||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 rt extends _0x149404{constructor(_0x327255){super(_0x327255);const t=_0x327255['t'];this['set']('errorType',null);const _0x3095b6=new _0x476c2a(_0x327255);_0x3095b6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3095b6['withText']=!0x0,_0x3095b6['class']='ck-button-action',_0x3095b6['on']('execute',()=>{this['fire']('retry');}),_0x3095b6['bind']('isVisible')['to'](this,'errorType',_0x40818b=>'NotFound'!==_0x40818b);const _0x4f2760=new at();_0x4f2760['content']=et,_0x4f2760['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x17193f=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':[_0x4f2760,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x17193f['to']('errorType',_0x2b5ac7=>t('NotFound'!==_0x2b5ac7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3095b6]},{'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 tt extends _0x149404{constructor(_0x8552b5,_0x2aaca3){super(_0x8552b5);const _0x2ec16f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2aaca3,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2ec16f['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xf0e7ff,_0x50f89a,_0x539c8f){super(_0xf0e7ff),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xf0e7ff),this['_errorView']=new rt(_0xf0e7ff),this['_editingView']=new tt(_0xf0e7ff,_0x539c8f),this['_focusableView']=new _0x149404(_0xf0e7ff),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x50f89a),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'],_0x39f078=>{this['_addUploadcareImageEditorListeners'](_0x39f078);});}),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'](_0x47ae90,_0x202135){const _0x46011f='uc-cloud-image-editor',_0x4f1878=_0x47ae90['querySelector'](_0x46011f);if(_0x4f1878)return _0x202135(_0x4f1878);const _0xa0c2c2=new MutationObserver(_0x392e15=>{const _0x4937c2=_0x392e15['filter'](_0x552a14=>_0x552a14['target']===_0x47ae90&&_0x552a14['addedNodes']['length']>0x0&&_0x552a14['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x46011f);_0x4937c2['length']&&(_0xa0c2c2['disconnect'](),_0x202135(_0x4937c2[0x0]['addedNodes'][0x0]));});_0xa0c2c2['observe'](_0x47ae90,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x74344e){_0x74344e['addEventListener']('apply',_0x14d05e=>{this['fire']('apply',{'imageSrc':_0x14d05e['detail']['cdnUrl']});}),_0x74344e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xc9969b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x415176,_0x24c53f,_0x3e102b){super(),this['_editor']=_0x415176,this['_dialog']=_0x24c53f,this['_imageElement']=_0x3e102b,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 _0x2c4145=this['_imageElement'],_0x2f69c8=_0x2c4145['getAttribute']('uploadcareImageId'),_0x34c8cc=_0x2c4145['getAttribute']('src');if(_0x2f69c8)await this['_loadImageInfo'](_0x2f69c8,_0x34c8cc);else{if(this['_imageCache']['has'](_0x34c8cc)){const _0x17383f=this['_imageCache']['get'](_0x34c8cc);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17383f['url'],this['imageDimension']=_0x17383f['dimension'],this['imageId']=_0x17383f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x45f287}=this['_editor'],t=_0x45f287['t'],_0x1cdd2a=new Z(_0x45f287,this['imageStatus'],this['_attributes']);_0x1cdd2a['bind']('status')['to'](this,'imageStatus'),_0x1cdd2a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1cdd2a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1cdd2a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1cdd2a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x162254,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1cdd2a,'position':_0x4da90c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1cdd2a['focus']();},'onHide':()=>{_0x1cdd2a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x456173=>!F(_0x456173,_0x1cdd2a['element'])}});}['_loadImageInfo'](_0x3d3d3b,_0x288a2f){return C['getInfo'](_0x3d3d3b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x42f3cd=>{const {width:_0xdbdc03,height:_0x53b35b}=_0x42f3cd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x288a2f,this['imageDimension']={'width':_0xdbdc03,'height':_0x53b35b},this['imageId']=_0x3d3d3b;})['catch'](_0x30072b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x30072b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x31866d,_0x2ac5ca){return this['_getImageAsFile'](_0x31866d)['then'](_0x5238c8=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2ac5ca['signal'],'file':_0x5238c8,'onProgress':_0x5e2156=>{_0x5e2156&&_0x5e2156['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5e2156['value']));}}))['then'](_0x2b6982=>{const {width:_0x3dab3d,height:_0x2703fb}=_0x2b6982['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2b6982['cdnUrl'],this['imageDimension']={'width':_0x3dab3d,'height':_0x2703fb},this['imageId']=_0x2b6982['uuid'],this['imageUploadProgress']=null;const _0x38f5dc=_0x31866d['getAttribute']('src');this['_imageCache']['set'](_0x38f5dc,{'id':_0x2b6982['uuid'],'url':_0x2b6982['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3d299f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3d299f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2a3fc8,_0x558de9){_0x2a3fc8['on']('apply',(_0x51266c,_0x526b89)=>{this['_replaceImage'](_0x558de9,_0x526b89['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2a3fc8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2a3fc8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x53bded,_0x121fde,_0x2f4efc){const _0x5c3fb2=this['_editor'],{width:_0x431d4e,height:_0x16aff6}=A(_0x121fde,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2488ef,imageSources:_0x5af3ce}=E(_0x121fde,_0x431d4e);_0x5c3fb2['model']['change'](_0x56e569=>{if('$graveyard'===_0x53bded['root']['rootName']){_0x5c3fb2['execute']('insertImage',{'imageType':_0x53bded['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x53bded['getAttributes']()),'uploadcareImageId':_0x2f4efc,'src':_0x2488ef,'sources':_0x5af3ce,'width':_0x431d4e,'height':_0x16aff6}});const _0x266a7e=_0x53bded['getChildren']();_0x53bded=_0x5c3fb2['model']['document']['selection']['getSelectedElement']();for(const _0x2fadc3 of _0x266a7e)_0x56e569['append'](_0x56e569['cloneElement'](_0x2fadc3),_0x53bded);}else _0x56e569['setSelection'](_0x53bded,'on'),_0x5c3fb2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x53bded['getAttributes']()),'uploadcareImageId':_0x2f4efc,'src':_0x2488ef,'sources':_0x5af3ce,'width':_0x431d4e,'height':_0x16aff6},_0x53bded);_0x56e569['setSelection'](_0x53bded,'on');});}async['_getImageAsFile'](_0x52247a){const _0x3f89ab=_0x130db3['window'],_0x39e817=_0x130db3['document']['location']['href'],_0x5c9468=new _0x3f89ab['URL'](_0x52247a['getAttribute']('src'),_0x39e817);if('data:'===_0x5c9468['protocol']){const _0x29b258=_0x5c9468['href']['split'](','),_0x160a88=_0x29b258[0x0]['match'](/:(.*?);/)[0x1],_0x225919=_0x160a88['split']('/')[0x1],_0x3354ea=_0x3f89ab['atob'](_0x29b258[_0x29b258['length']-0x1]);let _0x223064=_0x3354ea['length'];const _0x38f91b=new _0x3f89ab['Uint8Array'](_0x223064);for(;_0x223064--;)_0x38f91b[_0x223064]=_0x3354ea['charCodeAt'](_0x223064);return new _0x3f89ab['File']([_0x38f91b],'image.'+_0x225919,{'type':_0x160a88});}const _0x32d8d5=_0x5c9468['href']['split']('/'),_0x383d3d=_0x32d8d5[_0x32d8d5['length']-0x1],_0x2c7208=_0x383d3d['split']('.')[0x1];return _0x3f89ab['fetch'](_0x5c9468['href'])['then'](_0x26af54=>_0x26af54['clone']()['blob']())['then'](_0x59c332=>new _0x3f89ab['File']([_0x59c332],_0x383d3d,{'type':'image/'+_0x2c7208}));}}class J extends _0x5e7094{['imageEditController'];static get['requires'](){return[_0x536fd3];}['_isEditable'];constructor(_0xb63607){super(_0xb63607),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3b8cbe){const _0x8c06f3=V(_0x3b8cbe);return _0x27a8b9=>!(!_0x27a8b9||!_0x27a8b9['is']('element','imageBlock')&&!_0x27a8b9['is']('element','imageInline'))&&(!!_0x27a8b9['hasAttribute']('uploadcareImageId')||!!_0x27a8b9['hasAttribute']('src')&&_0x8c06f3(_0x27a8b9['getAttribute']('src')));}(_0xb63607['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xd6986a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xd6986a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2d44ee=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2d44ee&&(_0x2d44ee['is']('element','imageBlock')||_0x2d44ee['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x536fd3),_0x2d44ee),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x5e7094{['refresh'](){const _0xe01e88=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xe01e88&&(_0xe01e88['is']('element','imageBlock')||_0xe01e88['is']('element','imageInline')));}['execute'](_0x446e3b){const _0x3a0f2d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x13c7f1=>{_0x13c7f1['setAttributes'](_0x446e3b,_0x3a0f2d),_0x13c7f1['removeAttribute']('srcset',_0x3a0f2d),_0x13c7f1['removeAttribute']('sizes',_0x3a0f2d);});}}class g extends _0x79a8c5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x717c84,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x235736}=this;_0x235736['commands']['add']('uploadcareImageEdit',new J(_0x235736)),_0x235736['commands']['add']('uploadcareImageReplace',new O(_0x235736));}}class j extends _0x79a8c5{['_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 _0x1b5461=this['editor'];_0x1b5461['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1fa7b5=>{const _0x2e5898=_0x1b5461['commands']['get']('uploadcareImageEdit'),_0x36e561=new _0x476c2a(_0x1fa7b5),t=_0x1fa7b5['t'];return _0x36e561['set']({'icon':_0x162254,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x36e561['bind']('isEnabled')['to'](_0x2e5898),_0x36e561['bind']('isOn')['to'](_0x2e5898,'isActive'),this['listenTo'](_0x36e561,'execute',()=>{_0x1b5461['execute']('uploadcareImageEdit'),_0x1b5461['editing']['view']['focus']();}),_0x36e561;}),this['_initConfig']();}['_initConfig'](){const _0x439cc6=_0x54f883(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x439cc6),this['listenTo'](this['editor'],'destroy',()=>{_0x439cc6['remove']();});}}class P extends _0x79a8c5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0xde9ca1,Command as _0x51a136}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x47a297,IconGooglePhotos as _0x413cfc,IconGoogleDrive as _0x56c7aa,IconFacebook as _0x54a0e1,IconDropbox as _0x2a80c5,IconUploadcareLink as _0x22cf59,IconUploadcareImageUpload as _0x51a48e,IconError as et,IconUploadcareImageEdit as _0x57bbde}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x104a57,MenuBarMenuListItemButtonView as _0x45cc99,View as _0x222a06,FocusCycler as _0x9e6521,Dialog as _0xc84dd5,DialogViewPosition as _0x3984c3,SpinnerView as _0x472768,IconView as at,Notification as _0x3d6426}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x60265b,DomEmitterMixin as _0x2be775,global as _0x49cf59,getAncestors as _0x1c4bee,ObservableMixin as _0x311277,createElement as _0x5a023c,uid as _0xb52d55}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x12ab17}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x47540f,info as _0x5219da}from'@uploadcare/upload-client';import*as _0x102597 from'@uploadcare/file-uploader';var o=function(_0x3441fb){return _0x3441fb['Local']='local',_0x3441fb['URL']='url',_0x3441fb['Dropbox']='dropbox',_0x3441fb['GDrive']='gdrive',_0x3441fb['Facebook']='facebook',_0x3441fb['GPhotos']='gphotos',_0x3441fb['OneDrive']='onedrive',_0x3441fb;}({});function _(_0x1be44b,_0xeecba1,_0x173f62){const t=_0x1be44b['t'],_0x292a87=_0x1be44b['t'];switch(_0xeecba1){case o['Local']:return{'text':_0x292a87('Insert'===_0x173f62?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x292a87('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x173f62?_0x292a87('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x292a87('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xeecba1;}}class e extends _0xde9ca1{['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 _0x69745d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37d777;for(const _0x43828a in _0x69745d){const _0x1682d8=_0x43828a,_0x24d29e=_0x69745d[_0x1682d8];if('uploadcareLicenseKeyValid'==_0x24d29e||'uploadcareLicenseKeyInvalid'==_0x24d29e||'uploadcareLicenseKeyExpired'==_0x24d29e||'uploadcareLicenseKeyDomainLimit'==_0x24d29e||'uploadcareLicenseKeyNotAllowed'==_0x24d29e||'uploadcareLicenseKeyEvaluationLimit'==_0x24d29e||'uploadcareLicenseKeyTrialLimit'==_0x24d29e||'uploadcareLicenseKeyUsageLimit'==_0x24d29e){delete _0x69745d[_0x1682d8],_0x37d777=_0x24d29e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x37d777&&_0x69745d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x37d777&&_0x69745d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x37d777&&_0x69745d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x37d777&&_0x69745d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x37d777&&_0x69745d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x37d777&&_0x69745d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x37d777&&_0x69745d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2462d0}=this,_0x303cc7=_0x2462d0['commands']['get']('uploadcare');if(!_0x303cc7)return;const _0xbed871=this['_normalizeConfigSourceList'](_0x2462d0['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x15f796,_0xea8808)=>{const _0x3a3b41=this['_getIntegrationKey'](_0xea8808['type']);return _0x15f796[_0x3a3b41]||(_0x15f796[_0x3a3b41]=[]),_0x15f796[_0x3a3b41]['push'](_0xea8808),_0x15f796;},{});_0x2462d0['plugins']['has']('ImageInsertUI')&&_0x2462d0['commands']['get']('uploadcare')&&Object['entries'](_0xbed871)['forEach'](([_0x5be1df,_0x408640])=>{_0x2462d0['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5be1df,'observable':()=>_0x303cc7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x408640),'formViewCreator':()=>this['_createDropdownButtons'](_0x408640),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x408640),'override':'assetManager'!==_0x5be1df});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2f07a0){const {locale:_0x510312}=this['editor'];return _0x2f07a0['map'](_0x643b5=>{const _0x2ccd23=_(_0x510312,_0x643b5,'Insert');switch(_0x643b5){case o['Local']:return{'icon':_0x51a48e,'type':o['Local'],..._0x2ccd23};case o['URL']:return{'icon':_0x22cf59,'type':o['URL'],..._0x2ccd23};case o['Dropbox']:return{'icon':_0x2a80c5,'type':o['Dropbox'],..._0x2ccd23};case o['Facebook']:return{'icon':_0x54a0e1,'type':o['Facebook'],..._0x2ccd23};case o['GDrive']:return{'icon':_0x56c7aa,'type':o['GDrive'],..._0x2ccd23};case o['GPhotos']:return{'icon':_0x413cfc,'type':o['GPhotos'],..._0x2ccd23};case o['OneDrive']:return{'icon':_0x47a297,'type':o['OneDrive'],..._0x2ccd23};}});}['_getIntegrationKey'](_0x86f6c7){switch(_0x86f6c7){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x20aba7,_0x3d87eb){const _0x2ee4d8=this['editor'],_0xa7671a=new _0x20aba7(_0x2ee4d8['locale']),_0x284621=_0x2ee4d8['commands']['get']('uploadcare');return _0xa7671a['bind']('isEnabled')['to'](_0x284621),_0xa7671a['on']('execute',()=>{_0x284621['execute'](_0x3d87eb);}),_0xa7671a;}['_createToolbarButton'](_0x4a242e){const {locale:_0x4cdf1a}=this['editor'],_0x4c166b=this['editor']['plugins']['get']('ImageInsertUI'),_0x59ca36=_0x4a242e[0x0],_0x29ad0f=this['_createButton'](_0x104a57,_0x59ca36['type']);return _0x29ad0f['icon']=_0x59ca36['icon'],_0x29ad0f['bind']('label')['to'](_0x4c166b,'isImageSelected',_0x1ed16f=>_(_0x4cdf1a,_0x59ca36['type'],_0x1ed16f?'Replace':'Insert')['text']),_0x29ad0f['tooltip']=!0x0,_0x29ad0f;}['_createDropdownButtons'](_0x1d87d4){const {locale:_0x135c7f}=this['editor'],_0x11fc34=this['editor']['plugins']['get']('ImageInsertUI');return _0x1d87d4['map'](_0x2b52eb=>{const _0x2d86cd=this['_createButton'](_0x104a57,_0x2b52eb['type']);return _0x2d86cd['withText']=!0x0,_0x2d86cd['icon']=_0x2b52eb['icon'],_0x2d86cd['bind']('label')['to'](_0x11fc34,'isImageSelected',_0x114c5f=>_(_0x135c7f,_0x2b52eb['type'],_0x114c5f?'Replace':'Insert')['text']),_0x2d86cd;});}['_createMenuBarButtons'](_0x19219b){return _0x19219b['map'](_0x41a4a2=>{const _0x4c34d1=this['_createButton'](_0x45cc99,_0x41a4a2['type']);return _0x4c34d1['icon']=_0x41a4a2['icon'],_0x4c34d1['label']=_0x41a4a2['shortText'],_0x4c34d1;});}}class q extends _0x222a06{['focusTracker'];['focusCycler'];constructor(_0x6c10ad){super(_0x6c10ad),this['focusTracker']=new _0x60265b(),this['focusCycler']=new _0x9e6521({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x3fae2c){super(_0x3fae2c),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x3f272e,_0x200f2d){const _0x13d9b5=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2c21ad=>_0x2c21ad<=_0x200f2d)['map'](_0x44f595=>_0x3f272e['replace'](/\/$/,'')+'/-/resize/'+_0x44f595+'x/\x20'+_0x44f595+'w');return{'imageFallbackUrl':_0x3f272e,'imageSources':[{'srcset':_0x13d9b5['join'](',\x20'),'sizes':'(max-width:\x20'+_0x200f2d+'px)\x20100vw,\x20'+_0x200f2d+'px','type':'image/webp'}]};}function A(_0x2bcdfb,_0x56253a,_0x50ae99){const _0x49149b=_0x2bcdfb['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x49149b?parseInt(_0x49149b[0x1],0xa):_0x56253a,'height':_0x49149b?parseInt(_0x49149b[0x2],0xa):_0x50ae99};}function m(_0x920d61,_0x54d067){const _0x359246=Object['create'](_0x2be775),_0xf69fb7=_0x920d61['plugins']['get']('ImageUtils'),_0x47f630=_0x920d61['editing']['mapper']['toViewElement'](_0x54d067),_0x14906c=_0xf69fb7['findViewImgElement'](_0x47f630),_0x8557bd=_0x920d61['editing']['view']['domConverter']['viewToDom'](_0x14906c),_0x358736=_0x54d067['getAttribute']('width'),_0x1b174c=_0x54d067['getAttribute']('height'),_0x395bde='image-processing';_0x920d61['editing']['view']['change'](_0x35a448=>{_0x35a448['addClass'](_0x395bde,_0x47f630),_0x35a448['setStyle']('aspect-ratio',_0x358736+'/'+_0x1b174c,_0x14906c);}),_0x359246['listenTo'](_0x8557bd,'load',()=>{_0x359246['stopListening'](_0x8557bd,'load'),_0x920d61['editing']['view']['change'](_0xf4152a=>{_0xf4152a['removeClass'](_0x395bde,_0x47f630),_0xf4152a['removeStyle']('aspect-ratio',_0x14906c);});});}function V(_0x4675be){if(Array['isArray'](_0x4675be)){const _0x5dab3d=_0x4675be['map'](V);return _0x32a914=>_0x5dab3d['some'](_0x2b80fc=>_0x2b80fc(_0x32a914));}if('origin'==_0x4675be){const _0x375385=_0x49cf59['window']['location']['origin'];return _0x3c5b56=>new URL(_0x3c5b56,_0x49cf59['document']['baseURI'])['origin']==_0x375385;}return'function'==typeof _0x4675be?_0x4675be:_0x4675be instanceof RegExp?_0x21fe96=>!(!_0x21fe96['match'](_0x4675be)&&!_0x21fe96['replace'](/^https?:\/\//,'')['match'](_0x4675be)):()=>!0x1;}function F(_0x2e057f,_0x34ab1a){return _0x1c4bee(_0x2e057f['target'])['includes'](_0x34ab1a);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x311277(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x41f5aa,_0x214d06,_0x5d9ae6){super(),this['_editor']=_0x41f5aa,this['_editing']=_0x214d06,this['_dialog']=_0x41f5aa['plugins']['get'](_0xc84dd5),this['_api']=_0x214d06['ctxElement']['getAPI'](),this['_type']=_0x5d9ae6,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:_0x48f6a2,model:_0x3041fa}=this['_editor'],_0x14f956=_0x3041fa['document']['selection']['getSelectedElement'](),_0x41a61c=_0x14f956&&(_0x14f956['is']('element','imageBlock')||_0x14f956['is']('element','imageInline'));this['_formView']=new S(_0x48f6a2),this['_dialog']['show']({'id':'uploadCare','icon':_0x51a48e,'title':_(_0x48f6a2,this['_type'],_0x41a61c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3984c3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x65c600=>!F(_0x65c600,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x374b16}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2bf54b=>{const _0x4e19ea=_0x374b16['length'];for(const _0x226093 of _0x374b16){const _0x4ec007=_0x226093===_0x374b16[_0x4e19ea-0x1],{cdnUrl:_0x5e317f,fileInfo:_0x20d8cb}=_0x226093;if(!_0x5e317f||!_0x20d8cb)continue;const {width:_0x81d99d,height:_0x144268}=_0x20d8cb['imageInfo'],_0x26542a=A(_0x5e317f,_0x81d99d,_0x144268),_0x275a85=E(_0x5e317f,_0x26542a['width']),_0x3050b4={'id':_0x20d8cb['uuid'],'type':'image','attributes':{'imageDimension':_0x26542a,..._0x275a85}};this['_insertAsset'](_0x3050b4,_0x4ec007,_0x2bf54b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3d2578=>{'idle'===_0x3d2578['detail']['status']&&!_0x3d2578['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x41b35e,_0x136871,_0x2c772e){const _0xfc7953=this['_editor']['model']['document']['selection'],_0x4b0ee0=_0xfc7953['getSelectedElement'](),_0x471602=!(!_0x4b0ee0||!_0x4b0ee0['is']('element','imageInline'));_0x2c772e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x41b35e,_0x471602),_0x136871||_0x2c772e['setSelection'](_0xfc7953['getLastPosition']());}['_insertImage'](_0x4ad8da,_0x53b328){const _0x3b8bce=this['_editor'],{imageDimension:_0x3ff313,imageFallbackUrl:_0x1b8699,imageSources:_0x7d8256}=_0x4ad8da['attributes'];_0x3b8bce['execute']('insertImage',{'imageType':_0x53b328?'imageInline':null,'source':{'uploadcareImageId':_0x4ad8da['id'],'src':_0x1b8699,'sources':_0x7d8256,..._0x3ff313}});}}class n extends _0x51a136{['_editing'];['_controller']=null;static get['requires'](){return[_0xc84dd5,i];}constructor(_0xb56e9e){super(_0xb56e9e),this['_editing']=_0xb56e9e['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x25e4a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x25e4a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x488438,publicKey:_0x426af5,signal:_0x2f0168,onProgress:_0xb5d7f8}){return _0x47540f(_0x488438,{'publicKey':_0x426af5,'store':'auto','signal':_0x2f0168,'onProgress':_0xb5d7f8});}static['getInfo'](_0x3d2c33,_0x5d6791){return _0x5219da(_0x3d2c33,_0x5d6791);}}class p extends _0xde9ca1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x12ab17,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x144a2d=this['editor'];if(!!!_0x144a2d['config']['get']('uploadcare'))return;_0x144a2d['plugins']['get'](_0x12ab17)['createUploadAdapter']=_0x25ff63=>new x(_0x25ff63,_0x144a2d),_0x144a2d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x59e8f6,{imageElement:_0x3e619d,data:_0x4c7b3f})=>{_0x144a2d['model']['change'](_0x156114=>{_0x156114['setAttribute']('uploadcareImageId',_0x4c7b3f['uploadcareImageId'],_0x3e619d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x122e3d,_0x3d3772){this['loader']=_0x122e3d,this['editor']=_0x3d3772,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xea2f84=this['editor']['config']['get']('uploadcare.pubkey'),_0x454106=await this['loader']['file'];return C['upload']({'file':_0x454106,'publicKey':_0xea2f84,'signal':this['controller']['signal'],'onProgress':_0x3e3b8d=>{_0x3e3b8d&&_0x3e3b8d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3e3b8d['value']);}})['then'](async _0x238133=>{const {imageFallbackUrl:_0x1c2a53,imageSources:_0x513ef9}=E(_0x238133['cdnUrl'],_0x238133['imageInfo']['width']);return{'uploadcareImageId':_0x238133['uuid'],'default':_0x1c2a53,'sources':_0x513ef9};})['catch'](()=>{const _0x5e0171=t('Cannot\x20upload\x20file:')+('\x20'+_0x454106['name']+'.');return Promise['reject'](_0x5e0171);});}['abort'](){this['controller']['abort']();}}class i extends _0xde9ca1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0xc84dd5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5792a1=this['editor'];_0x5792a1['commands']['add']('uploadcare',new n(_0x5792a1));}['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 _0x51f5e9=_0x49cf59['document']['querySelector']('input[uploadcare-file-input]');_0x51f5e9&&_0x51f5e9['remove']();}),async function(_0x5e1e7e){const _0x41ddde=_0x4341fd([0x6d,0x51,0x32,0x44,0x6c,0x73,0x47,0x4a,0x4e,0x33,0x74,0x77,0x50,0x41,0x65,0x59,0x37,0x38,0x6b,0x39,0x6e,0x79,0x61,0x36,0x5a,0x71,0x76,0x57,0x62,0x30,0x4f,0x6f,0x49,0x75,0x58,0x4c,0x7a,0x48,0x4b,0x68,0x55,0x53,0x67,0x35,0x6a,0x64,0x54,0x66,0x45,0x72,0x42,0x69,0x56,0x52,0x46,0x78,0x4d,0x31,0x70,0x34,0x63,0x43]),_0x971c4a=0x6694c97f,_0x2495d4=0x6693ae57^_0x971c4a,_0x2656ae=window[_0x4341fd([0x44,0x61,0x74,0x65])][_0x4341fd([0x6e,0x6f,0x77])](),_0x2deda9=_0x5e1e7e[_0x4341fd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fa297=new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5542b0=>{_0x2deda9[_0x4341fd([0x6f,0x6e,0x63,0x65])](_0x4341fd([0x72,0x65,0x61,0x64,0x79]),_0x5542b0);}),_0x557088={[_0x4341fd([0x6b,0x74,0x79])]:_0x4341fd([0x45,0x43]),[_0x4341fd([0x75,0x73,0x65])]:_0x4341fd([0x73,0x69,0x67]),[_0x4341fd([0x63,0x72,0x76])]:_0x4341fd([0x50,0x2d,0x32,0x35,0x36]),[_0x4341fd([0x78])]:_0x4341fd([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]),[_0x4341fd([0x79])]:_0x4341fd([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]),[_0x4341fd([0x61,0x6c,0x67])]:_0x4341fd([0x45,0x53,0x32,0x35,0x36])},_0x92aa04=_0x2deda9[_0x4341fd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4341fd([0x67,0x65,0x74])](_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58162e(){let _0x1bcd3d,_0x30142d=null,_0x23457a=null;try{if(_0x92aa04==_0x4341fd([0x47,0x50,0x4c]))return _0x4341fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bcd3d=_0x3b4c79(),!_0x1bcd3d)return _0x4341fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bcd3d[_0x4341fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23457a=_0x51a024(_0x1bcd3d[_0x4341fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bcd3d[_0x4341fd([0x6a,0x74,0x69])])),await _0x32d281()?_0x37677c()?_0x32cd4b()?_0x4341fd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5073ca()?(_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4341fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30142d=_0x1c277d(_0x4341fd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4341fd([0x74,0x72,0x69,0x61,0x6c])&&(_0x30142d=_0x1c277d(_0x4341fd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a0871()):_0x4341fd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4341fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4341fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x39cb49){return _0x4341fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x32cd4b(){const _0x6d529f=[_0x4341fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4341fd([0x74,0x72,0x69,0x61,0x6c])][_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2656ae/0x3e8:0xe10*_0x2495d4;return _0x1bcd3d[_0x4341fd([0x65,0x78,0x70])]<_0x6d529f;}function _0x37677c(){const _0x524957=_0x1bcd3d[_0x4341fd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x524957&&(!!_0x524957[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4341fd([0x2a]))||!!_0x524957[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4341fd([0x55,0x50,0x4c,0x43])));}function _0x5073ca(){const _0x9e79f5=_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9e79f5||0x0==_0x9e79f5[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd3d915}=new URL(window[_0x4341fd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9e79f5[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd3d915))return!0x0;const _0x3a9189=_0xd3d915[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e]));return _0x9e79f5[_0x4341fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20b597=>_0x20b597[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4341fd([0x2a])))[_0x4341fd([0x6d,0x61,0x70])](_0x4b0559=>_0x4b0559[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e])))[_0x4341fd([0x73,0x6f,0x6d,0x65])](_0x4bca00=>_0x3a9189[_0x4341fd([0x65,0x76,0x65,0x72,0x79])]((_0xff9fc3,_0xee51f0)=>_0x4bca00[_0xee51f0]===_0xff9fc3||_0x4bca00[_0xee51f0]===_0x4341fd([0x2a])));}function _0x5a0871(){return _0x30142d&&_0x23457a?new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54407e,_0x37c028)=>{_0x30142d[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x54407e,_0x37c028),_0x23457a[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x49b179=>{_0x49b179!=_0x4341fd([0x56,0x61,0x6c,0x69,0x64])&&_0x54407e(_0x49b179);},_0x37c028);}):_0x30142d||_0x23457a||_0x4341fd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51a024(_0x1ad641,_0x3c8a19){return new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x160dbb=>{if(_0x573e5b())return _0x160dbb(_0x4341fd([0x56,0x61,0x6c,0x69,0x64]));_0x5eb18d(),_0x2deda9[_0x4341fd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4341fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x500e9d=!0x1;const _0x38dc5b=_0xb52d55();function _0x49fa41(_0x273a9c){return!!_0x273a9c&&(typeof _0x273a9c===_0x4341fd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x273a9c===_0x4341fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x273a9c[_0x4341fd([0x74,0x68,0x65,0x6e])]===_0x4341fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x273a9c[_0x4341fd([0x63,0x61,0x74,0x63,0x68])]===_0x4341fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x21b9fa(_0x30c4a6){_0xfcd45c(_0x30c4a6)[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x6f7aee=>{if(!_0x6f7aee||_0x6f7aee[_0x4341fd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4341fd([0x6f,0x6b]))return _0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5292be(_0x1a1e21(_0x38dc5b+_0x3c8a19))!=_0x6f7aee[_0x4341fd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4341fd([0x56,0x61,0x6c,0x69,0x64]);})[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x1f2d8d=>(_0x30f91b(),_0x1f2d8d),()=>{const _0xe9922e=_0x459038();return null==_0xe9922e?(_0x30f91b(),_0x4341fd([0x56,0x61,0x6c,0x69,0x64])):_0x4341fd(_0x2656ae-_0xe9922e>(0x42984d7f^_0x971c4a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x160dbb)[_0x4341fd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x160dbb(_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x577a1d=0x66a227ff^_0x971c4a;function _0x30f91b(){const _0x4512b8=_0x4341fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x5292be(_0x1a1e21(_0x1ad641)),_0x556f1e=_0x358b06(_0x5292be(window[_0x4341fd([0x4d,0x61,0x74,0x68])][_0x4341fd([0x63,0x65,0x69,0x6c])](_0x2656ae/_0x577a1d)));window[_0x4341fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4341fd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4512b8,_0x556f1e);}function _0x459038(){const _0x2cfd12=_0x4341fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x5292be(_0x1a1e21(_0x1ad641)),_0x4bb5ba=window[_0x4341fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4341fd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cfd12);return _0x4bb5ba?window[_0x4341fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x358b06(_0x4bb5ba),0x10)*_0x577a1d:null;}function _0xfcd45c(_0x50a75e){return new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dc849,_0x907292)=>{_0x50a75e[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x1dc849,_0x907292),window[_0x4341fd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x907292,0x66951dbf^_0x971c4a);});}}_0x2deda9[_0x4341fd([0x6f,0x6e])](_0x4341fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x523e6b,_0x35a351)=>{if(_0x35a351[0x0]!=_0x1ad641)return _0x160dbb(_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35a351[0x1]={..._0x35a351[0x1],[_0x4341fd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38dc5b};},{[_0x4341fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4341fd([0x68,0x69,0x67,0x68])}),_0x2deda9[_0x4341fd([0x6f,0x6e])](_0x4341fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39456d=>{_0x49fa41(_0x39456d[_0x4341fd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x500e9d=!0x0,_0x21b9fa(_0x39456d[_0x4341fd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4341fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4341fd([0x6c,0x6f,0x77])}),_0x3fa297[_0x4341fd([0x74,0x68,0x65,0x6e])](()=>{_0x500e9d||_0x160dbb(_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x573e5b(){return _0x2deda9[_0x4341fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4341fd([0x76,0x69,0x65,0x77])][_0x4341fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4341fd([0x61,0x75,0x74,0x6f]);}function _0x5eb18d(){_0x2deda9[_0x4341fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4341fd([0x76,0x69,0x65,0x77])][_0x4341fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4341fd([0x61,0x75,0x74,0x6f]);}}function _0x1c277d(_0x3b81c8){const _0x2c3e0f=[new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x513aa2=>setTimeout(_0x513aa2,0x669df7b3^_0x971c4a)),_0x3fa297[_0x4341fd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46d321=>{let _0x450df2=0x0;_0x2deda9[_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4341fd([0x6f,0x6e])](_0x4341fd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ddd24,_0x2f8dd8)=>{_0x2f8dd8[0x0][_0x4341fd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x450df2++,_0x450df2==(0x6694c887^_0x971c4a)&&(_0x46d321(),_0x5ddd24[_0x4341fd([0x6f,0x66,0x66])]());});}))];return window[_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4341fd([0x72,0x61,0x63,0x65])](_0x2c3e0f)[_0x4341fd([0x74,0x68,0x65,0x6e])](()=>_0x3b81c8);}async function _0x55e054(){await _0x3fa297,_0x2deda9[_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4341fd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19e539,_0x2deda9[_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4341fd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19e539,_0x2deda9[_0x4341fd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x206934(_0x5d5500){const _0x1f2db5=_0x2d76ed();_0x2deda9[_0x1f2db5]=_0x4341fd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d5500,_0x5d5500!=_0x4341fd([0x56,0x61,0x6c,0x69,0x64])&&_0x55e054();}function _0x2d76ed(){const _0x4ad139=window[_0x4341fd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4341fd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4341fd([0x6e,0x6f,0x77])]())[_0x4341fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4341fd([0x2e]),'');let _0x2f9127=_0x4341fd([0x6d]);for(let _0x35bb39=0x0;_0x35bb39<_0x4ad139[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35bb39+=0x2){let _0x36b7a2=window[_0x4341fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ad139[_0x4341fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35bb39,_0x35bb39+0x2));_0x36b7a2>=_0x41ddde[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36b7a2-=_0x41ddde[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f9127+=_0x41ddde[_0x36b7a2];}return _0x2f9127;}function _0x3b4c79(){const _0x2273d5=_0x92aa04[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e]));if(0x3!=_0x2273d5[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24fc48(_0x2273d5[0x1]);function _0x24fc48(_0xcf257e){const _0x53be20=_0x129e8f(_0xcf257e);return _0x53be20&&_0x108d6d()?_0x53be20:null;function _0x108d6d(){const _0x680930=_0x53be20[_0x4341fd([0x6a,0x74,0x69])],_0x128511=window[_0x4341fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x680930[_0x4341fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x680930[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x176e60={..._0x53be20,[_0x4341fd([0x6a,0x74,0x69])]:_0x680930[_0x4341fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x680930[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x176e60[_0x4341fd([0x76,0x63])],_0x1a1e21(_0x176e60)==_0x128511;}}}async function _0x32d281(){let _0x2446e2=!0x0;try{const _0x3b77b0=_0x92aa04[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e])),[_0x51eead,_0x3f0939,_0x4e5e1d]=_0x3b77b0;return _0x5818ad(_0x51eead),await _0x326e30(_0x51eead,_0x3f0939,_0x4e5e1d),_0x2446e2;}catch(_0x58a3f){return!0x1;}function _0x5818ad(_0x1c6059){const _0x4f0e24=_0x129e8f(_0x1c6059);_0x4f0e24&&_0x4f0e24[_0x4341fd([0x61,0x6c,0x67])]==_0x4341fd([0x45,0x53,0x32,0x35,0x36])||(_0x2446e2=!0x1);}async function _0x326e30(_0x19a63c,_0x33f673,_0x3a2fd4){const _0x54e4a9=window[_0x4341fd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4341fd([0x66,0x72,0x6f,0x6d])](_0x1680d1(_0x3a2fd4),_0x2fcf11=>_0x2fcf11[_0x4341fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x371368=new window[(_0x4341fd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4341fd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19a63c+_0x4341fd([0x2e])+_0x33f673),_0x2fe1e6=window[_0x4341fd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4341fd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fe1e6)return;const _0x28106e=await _0x2fe1e6[_0x4341fd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4341fd([0x6a,0x77,0x6b]),_0x557088,{[_0x4341fd([0x6e,0x61,0x6d,0x65])]:_0x4341fd([0x45,0x43,0x44,0x53,0x41]),[_0x4341fd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4341fd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4341fd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fe1e6[_0x4341fd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4341fd([0x6e,0x61,0x6d,0x65])]:_0x4341fd([0x45,0x43,0x44,0x53,0x41]),[_0x4341fd([0x68,0x61,0x73,0x68])]:{[_0x4341fd([0x6e,0x61,0x6d,0x65])]:_0x4341fd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28106e,_0x54e4a9,_0x371368)||(_0x2446e2=!0x1);}}function _0x129e8f(_0x3dd5b4){return _0x3dd5b4[_0x4341fd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4341fd([0x65,0x79]))?JSON[_0x4341fd([0x70,0x61,0x72,0x73,0x65])](_0x1680d1(_0x3dd5b4)):null;}function _0x1680d1(_0x327802){return window[_0x4341fd([0x61,0x74,0x6f,0x62])](_0x327802[_0x4341fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4341fd([0x2b]))[_0x4341fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4341fd([0x2f])));}function _0x1a1e21(_0x182167){let _0x189b04=0x1505;function _0x470e28(_0x249086){for(let _0x4961fd=0x0;_0x4961fd<_0x249086[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4961fd++){const _0x58c994=_0x249086[_0x4341fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4961fd);_0x189b04=(_0x189b04<<0x5)+_0x189b04+_0x58c994,_0x189b04&=_0x189b04;}}function _0x5074c5(_0x11c432){Array[_0x4341fd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11c432)?_0x11c432[_0x4341fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5074c5):_0x11c432&&typeof _0x11c432==_0x4341fd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4341fd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11c432)[_0x4341fd([0x73,0x6f,0x72,0x74])]()[_0x4341fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d528e,_0x49ef3d])=>{_0x470e28(_0x1d528e),_0x5074c5(_0x49ef3d);}):_0x470e28(window[_0x4341fd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11c432));}return _0x5074c5(_0x182167),_0x189b04>>>0x0;}function _0x5292be(_0x3d8d5b){return _0x3d8d5b[_0x4341fd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4341fd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4341fd([0x30]));}function _0x358b06(_0x5c2d01){return _0x5c2d01[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4341fd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4341fd([0x6a,0x6f,0x69,0x6e])]('');}function _0x19e539(){}function _0x4341fd(_0x175f54){return _0x175f54['map'](_0x3ada8b=>String['fromCharCode'](_0x3ada8b))['join']('');}_0x206934(await _0x58162e());}(this);}['_initSchema'](){const _0xac0475=this['editor']['model']['schema'];_0xac0475['isRegistered']('imageBlock')&&_0xac0475['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xac0475['isRegistered']('imageInline')&&_0xac0475['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5add6a=this['editor'];_0x5add6a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5add6a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x18a39f=>_0x18a39f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3d6d59=_0x5add6a['commands']['get']('replaceImageSource');_0x3d6d59&&this['listenTo'](_0x3d6d59,'cleanupImage',(_0x103cb7,[_0x5a7548,_0x11275d])=>{_0x5a7548['removeAttribute']('uploadcareImageId',_0x11275d);});}['_initConfig'](){const _0x12f18c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3282c2=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5a023c(_0x49cf59['document'],'uc-config',{..._0x12f18c,'pubkey':_0x3282c2,'ctx-name':'uploader','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']=_0x2b7200=>{if('closeMax'==_0x2b7200)return'#uc-icon-arrow-down';},_0x49cf59['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5a023c(_0x49cf59['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x49cf59['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x484d17=this['editor']['commands']['get']('insertImage');_0x484d17&&this['listenTo'](_0x484d17,'execute',()=>{const _0x3b6d85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3b6d85&&_0x3b6d85['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3b6d85);});});const _0x59482f=this['editor']['commands']['get']('uploadcareImageReplace');_0x59482f&&this['listenTo'](_0x59482f,'execute',()=>{const _0x2aac30=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2aac30&&_0x2aac30['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2aac30);});});}}class u extends _0xde9ca1{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59095d){super(_0x59095d),_0x59095d['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x102597['defineComponents'](_0x102597);}}class ta extends _0x222a06{constructor(_0xb46f4f){super(_0xb46f4f);const t=_0xb46f4f['t'],_0x472a37=this['bindTemplate'],_0x46e554=new _0x472768();_0x46e554['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':[_0x46e554,{'text':_0x472a37['to']('imageUploadProgress',_0x47883c=>t('Loading\x20image...')+'\x20('+(_0x47883c||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 rt extends _0x222a06{constructor(_0x25195f){super(_0x25195f);const t=_0x25195f['t'];this['set']('errorType',null);const _0x15dc24=new _0x104a57(_0x25195f);_0x15dc24['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x15dc24['withText']=!0x0,_0x15dc24['class']='ck-button-action',_0x15dc24['on']('execute',()=>{this['fire']('retry');}),_0x15dc24['bind']('isVisible')['to'](this,'errorType',_0x6458fc=>'NotFound'!==_0x6458fc);const _0x455d2c=new at();_0x455d2c['content']=et,_0x455d2c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x47e98d=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':[_0x455d2c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x47e98d['to']('errorType',_0x539366=>t('NotFound'!==_0x539366?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x15dc24]},{'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 tt extends _0x222a06{constructor(_0x56633d,_0x2f0b2b){super(_0x56633d);const _0x4b09ca=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2f0b2b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4b09ca['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xfcdea9,_0x13dfda,_0x38e223){super(_0xfcdea9),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xfcdea9),this['_errorView']=new rt(_0xfcdea9),this['_editingView']=new tt(_0xfcdea9,_0x38e223),this['_focusableView']=new _0x222a06(_0xfcdea9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x13dfda),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'],_0x50a5cc=>{this['_addUploadcareImageEditorListeners'](_0x50a5cc);});}),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'](_0x41055a,_0x18ee0e){const _0x129b11='uc-cloud-image-editor',_0x45ee2b=_0x41055a['querySelector'](_0x129b11);if(_0x45ee2b)return _0x18ee0e(_0x45ee2b);const _0x11a0a3=new MutationObserver(_0x597d35=>{const _0x98386b=_0x597d35['filter'](_0x5652fc=>_0x5652fc['target']===_0x41055a&&_0x5652fc['addedNodes']['length']>0x0&&_0x5652fc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x129b11);_0x98386b['length']&&(_0x11a0a3['disconnect'](),_0x18ee0e(_0x98386b[0x0]['addedNodes'][0x0]));});_0x11a0a3['observe'](_0x41055a,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xf4b54f){_0xf4b54f['addEventListener']('apply',_0x3a9374=>{this['fire']('apply',{'imageSrc':_0x3a9374['detail']['cdnUrl']});}),_0xf4b54f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x311277(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x24e3fa,_0x3bbbc2,_0x579375){super(),this['_editor']=_0x24e3fa,this['_dialog']=_0x3bbbc2,this['_imageElement']=_0x579375,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 _0x5ebfa=this['_imageElement'],_0x327a05=_0x5ebfa['getAttribute']('uploadcareImageId'),_0x15a456=_0x5ebfa['getAttribute']('src');if(_0x327a05)await this['_loadImageInfo'](_0x327a05,_0x15a456);else{if(this['_imageCache']['has'](_0x15a456)){const _0xfe4d0f=this['_imageCache']['get'](_0x15a456);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xfe4d0f['url'],this['imageDimension']=_0xfe4d0f['dimension'],this['imageId']=_0xfe4d0f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x25ed62}=this['_editor'],t=_0x25ed62['t'],_0x1460e4=new Z(_0x25ed62,this['imageStatus'],this['_attributes']);_0x1460e4['bind']('status')['to'](this,'imageStatus'),_0x1460e4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1460e4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1460e4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1460e4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x57bbde,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1460e4,'position':_0x3984c3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1460e4['focus']();},'onHide':()=>{_0x1460e4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x364a42=>!F(_0x364a42,_0x1460e4['element'])}});}['_loadImageInfo'](_0x40613f,_0x51fa62){return C['getInfo'](_0x40613f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x22bd10=>{const {width:_0xf3ee1c,height:_0x3c84a4}=_0x22bd10['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51fa62,this['imageDimension']={'width':_0xf3ee1c,'height':_0x3c84a4},this['imageId']=_0x40613f;})['catch'](_0xac90ec=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xac90ec['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2bdab5,_0x170b45){return this['_getImageAsFile'](_0x2bdab5)['then'](_0x39f094=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x170b45['signal'],'file':_0x39f094,'onProgress':_0x237198=>{_0x237198&&_0x237198['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x237198['value']));}}))['then'](_0x32c56f=>{const {width:_0x167194,height:_0x491da9}=_0x32c56f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32c56f['cdnUrl'],this['imageDimension']={'width':_0x167194,'height':_0x491da9},this['imageId']=_0x32c56f['uuid'],this['imageUploadProgress']=null;const _0x1060ea=_0x2bdab5['getAttribute']('src');this['_imageCache']['set'](_0x1060ea,{'id':_0x32c56f['uuid'],'url':_0x32c56f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1bfd36=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1bfd36['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xb8d034,_0xe17fb){_0xb8d034['on']('apply',(_0x2e1046,_0x5b2b6f)=>{this['_replaceImage'](_0xe17fb,_0x5b2b6f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xb8d034['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xb8d034['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x421d60,_0x869cf,_0x322295){const _0x57565b=this['_editor'],{width:_0xe4f770,height:_0x38d5ed}=A(_0x869cf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x26ff7b,imageSources:_0xef2bf4}=E(_0x869cf,_0xe4f770);_0x57565b['model']['change'](_0x6fe590=>{if('$graveyard'===_0x421d60['root']['rootName']){_0x57565b['execute']('insertImage',{'imageType':_0x421d60['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x421d60['getAttributes']()),'uploadcareImageId':_0x322295,'src':_0x26ff7b,'sources':_0xef2bf4,'width':_0xe4f770,'height':_0x38d5ed}});const _0x41ad0e=_0x421d60['getChildren']();_0x421d60=_0x57565b['model']['document']['selection']['getSelectedElement']();for(const _0x3deff6 of _0x41ad0e)_0x6fe590['append'](_0x6fe590['cloneElement'](_0x3deff6),_0x421d60);}else _0x6fe590['setSelection'](_0x421d60,'on'),_0x57565b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x421d60['getAttributes']()),'uploadcareImageId':_0x322295,'src':_0x26ff7b,'sources':_0xef2bf4,'width':_0xe4f770,'height':_0x38d5ed},_0x421d60);_0x6fe590['setSelection'](_0x421d60,'on');});}async['_getImageAsFile'](_0x44f4fb){const _0x5ea581=_0x49cf59['window'],_0x561b0b=_0x49cf59['document']['location']['href'],_0x3754ef=new _0x5ea581['URL'](_0x44f4fb['getAttribute']('src'),_0x561b0b);if('data:'===_0x3754ef['protocol']){const _0x57688a=_0x3754ef['href']['split'](','),_0x29084d=_0x57688a[0x0]['match'](/:(.*?);/)[0x1],_0x348a98=_0x29084d['split']('/')[0x1],_0x3fefbd=_0x5ea581['atob'](_0x57688a[_0x57688a['length']-0x1]);let _0x3b2c06=_0x3fefbd['length'];const _0x4bc1a5=new _0x5ea581['Uint8Array'](_0x3b2c06);for(;_0x3b2c06--;)_0x4bc1a5[_0x3b2c06]=_0x3fefbd['charCodeAt'](_0x3b2c06);return new _0x5ea581['File']([_0x4bc1a5],'image.'+_0x348a98,{'type':_0x29084d});}const _0x3aa8fa=_0x3754ef['href']['split']('/'),_0x4774bc=_0x3aa8fa[_0x3aa8fa['length']-0x1],_0x92f0d=_0x4774bc['split']('.')[0x1];return _0x5ea581['fetch'](_0x3754ef['href'])['then'](_0x3e4e80=>_0x3e4e80['clone']()['blob']())['then'](_0x1a043a=>new _0x5ea581['File']([_0x1a043a],_0x4774bc,{'type':'image/'+_0x92f0d}));}}class J extends _0x51a136{['imageEditController'];static get['requires'](){return[_0xc84dd5];}['_isEditable'];constructor(_0x6a1e0b){super(_0x6a1e0b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x209605){const _0x116b4c=V(_0x209605);return _0xe5f040=>!(!_0xe5f040||!_0xe5f040['is']('element','imageBlock')&&!_0xe5f040['is']('element','imageInline'))&&(!!_0xe5f040['hasAttribute']('uploadcareImageId')||!!_0xe5f040['hasAttribute']('src')&&_0x116b4c(_0xe5f040['getAttribute']('src')));}(_0x6a1e0b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x12eb04=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x12eb04);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2050e1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2050e1&&(_0x2050e1['is']('element','imageBlock')||_0x2050e1['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0xc84dd5),_0x2050e1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x51a136{['refresh'](){const _0x4979bb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4979bb&&(_0x4979bb['is']('element','imageBlock')||_0x4979bb['is']('element','imageInline')));}['execute'](_0x1f9595){const _0x47b379=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x41b0b6=>{_0x41b0b6['setAttributes'](_0x1f9595,_0x47b379),_0x41b0b6['removeAttribute']('srcset',_0x47b379),_0x41b0b6['removeAttribute']('sizes',_0x47b379);});}}class g extends _0xde9ca1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3d6426,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x163e86}=this;_0x163e86['commands']['add']('uploadcareImageEdit',new J(_0x163e86)),_0x163e86['commands']['add']('uploadcareImageReplace',new O(_0x163e86));}}class j extends _0xde9ca1{['_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 _0x25a3cd=this['editor'];_0x25a3cd['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3fc12e=>{const _0x552d15=_0x25a3cd['commands']['get']('uploadcareImageEdit'),_0x5c6e75=new _0x104a57(_0x3fc12e),t=_0x3fc12e['t'];return _0x5c6e75['set']({'icon':_0x57bbde,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5c6e75['bind']('isEnabled')['to'](_0x552d15),_0x5c6e75['bind']('isOn')['to'](_0x552d15,'isActive'),this['listenTo'](_0x5c6e75,'execute',()=>{_0x25a3cd['execute']('uploadcareImageEdit'),_0x25a3cd['editing']['view']['focus']();}),_0x5c6e75;}),this['_initConfig']();}['_initConfig'](){const _0x49ecb7=_0x5a023c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x49ecb7),this['listenTo'](this['editor'],'destroy',()=>{_0x49ecb7['remove']();});}}class P extends _0xde9ca1{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
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':_0x3ad1d0=>0x1!=_0x3ad1d0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2f382b=>{const {af:{dictionary:_0x38f59b,getPluralForm:_0x530504}}={'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':_0x295cd0=>0x1!=_0x295cd0}};_0x2f382b['af']||={'dictionary':{},'getPluralForm':null},_0x2f382b['af']['dictionary']=Object['assign'](_0x2f382b['af']['dictionary'],_0x38f59b),_0x2f382b['af']['getPluralForm']=_0x530504;})(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':_0x558fd9=>0x0==_0x558fd9?0x0:0x1==_0x558fd9?0x1:0x2==_0x558fd9?0x2:_0x558fd9%0x64>=0x3&&_0x558fd9%0x64<=0xa?0x3:_0x558fd9%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3bdd9d=>{const {ar:{dictionary:_0x491397,getPluralForm:_0x1b8cb5}}={'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':_0x165ff9=>0x0==_0x165ff9?0x0:0x1==_0x165ff9?0x1:0x2==_0x165ff9?0x2:_0x165ff9%0x64>=0x3&&_0x165ff9%0x64<=0xa?0x3:_0x165ff9%0x64>=0xb?0x4:0x5}};_0x3bdd9d['ar']||={'dictionary':{},'getPluralForm':null},_0x3bdd9d['ar']['dictionary']=Object['assign'](_0x3bdd9d['ar']['dictionary'],_0x491397),_0x3bdd9d['ar']['getPluralForm']=_0x1b8cb5;})(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':_0x1540fd=>0x1!=_0x1540fd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x169a86=>{const {ast:{dictionary:_0x2a4c5a,getPluralForm:_0x1e609f}}={'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':_0x5bd2e4=>0x1!=_0x5bd2e4}};_0x169a86['ast']||={'dictionary':{},'getPluralForm':null},_0x169a86['ast']['dictionary']=Object['assign'](_0x169a86['ast']['dictionary'],_0x2a4c5a),_0x169a86['ast']['getPluralForm']=_0x1e609f;})(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':_0x11c4fe=>0x1!=_0x11c4fe}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1bd805=>{const {az:{dictionary:_0x57484d,getPluralForm:_0xe4fbce}}={'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':_0x1dc11c=>0x1!=_0x1dc11c}};_0x1bd805['az']||={'dictionary':{},'getPluralForm':null},_0x1bd805['az']['dictionary']=Object['assign'](_0x1bd805['az']['dictionary'],_0x57484d),_0x1bd805['az']['getPluralForm']=_0xe4fbce;})(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':_0x5ea08f=>_0x5ea08f%0xa==0x1&&_0x5ea08f%0x64!=0xb?0x0:_0x5ea08f%0xa>=0x2&&_0x5ea08f%0xa<=0x4&&(_0x5ea08f%0x64<0xa||_0x5ea08f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4f3e23=>{const {be:{dictionary:_0xfa9a00,getPluralForm:_0x77cd10}}={'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':_0x46597e=>_0x46597e%0xa==0x1&&_0x46597e%0x64!=0xb?0x0:_0x46597e%0xa>=0x2&&_0x46597e%0xa<=0x4&&(_0x46597e%0x64<0xa||_0x46597e%0x64>=0x14)?0x1:0x2}};_0x4f3e23['be']||={'dictionary':{},'getPluralForm':null},_0x4f3e23['be']['dictionary']=Object['assign'](_0x4f3e23['be']['dictionary'],_0xfa9a00),_0x4f3e23['be']['getPluralForm']=_0x77cd10;})(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':_0x478049=>0x1!=_0x478049}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x27e558=>{const {bg:{dictionary:_0x715993,getPluralForm:_0x52da75}}={'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':_0x81b629=>0x1!=_0x81b629}};_0x27e558['bg']||={'dictionary':{},'getPluralForm':null},_0x27e558['bg']['dictionary']=Object['assign'](_0x27e558['bg']['dictionary'],_0x715993),_0x27e558['bg']['getPluralForm']=_0x52da75;})(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':_0x4a60b3=>0x1!=_0x4a60b3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x166347=>{const {bn:{dictionary:_0x34618e,getPluralForm:_0x10bc36}}={'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':_0x895087=>0x1!=_0x895087}};_0x166347['bn']||={'dictionary':{},'getPluralForm':null},_0x166347['bn']['dictionary']=Object['assign'](_0x166347['bn']['dictionary'],_0x34618e),_0x166347['bn']['getPluralForm']=_0x10bc36;})(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':_0x1bec28=>_0x1bec28%0xa==0x1&&_0x1bec28%0x64!=0xb?0x0:_0x1bec28%0xa>=0x2&&_0x1bec28%0xa<=0x4&&(_0x1bec28%0x64<0xa||_0x1bec28%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5ee4c6=>{const {bs:{dictionary:_0x4b826e,getPluralForm:_0x2e2118}}={'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':_0x1306d2=>_0x1306d2%0xa==0x1&&_0x1306d2%0x64!=0xb?0x0:_0x1306d2%0xa>=0x2&&_0x1306d2%0xa<=0x4&&(_0x1306d2%0x64<0xa||_0x1306d2%0x64>=0x14)?0x1:0x2}};_0x5ee4c6['bs']||={'dictionary':{},'getPluralForm':null},_0x5ee4c6['bs']['dictionary']=Object['assign'](_0x5ee4c6['bs']['dictionary'],_0x4b826e),_0x5ee4c6['bs']['getPluralForm']=_0x2e2118;})(window['CKEDITOR_TRANSLATIONS']||={});
|