@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250506.0 → 0.0.0-nightly-20250508.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 _0x88e48a,Command as _0x3ed71e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x205fc4,IconGooglePhotos as _0x4e323b,IconGoogleDrive as _0xa54815,IconFacebook as _0x2d1219,IconDropbox as _0x23f589,IconUploadcareLink as _0x268f21,IconUploadcareImageUpload as _0x1db469,IconError as et,IconUploadcareImageEdit as _0x4907c0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x51c610,MenuBarMenuListItemButtonView as _0x1dafa6,View as _0x437902,FocusCycler as _0x4727af,Dialog as _0xe4994a,DialogViewPosition as _0x46fe7d,SpinnerView as _0x2d13b7,IconView as at,Notification as _0x38cfc1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x461df4,DomEmitterMixin as _0x1c48be,global as _0x6c8694,getAncestors as _0x26e42e,ObservableMixin as _0x10f14e,createElement as _0xc2750d,uid as _0x371869}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1f2430}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x492967,info as _0x4a6ee6}from'@uploadcare/upload-client';import*as _0x28836c from'@uploadcare/file-uploader';var o=function(_0x5b418b){return _0x5b418b['Local']='local',_0x5b418b['URL']='url',_0x5b418b['Dropbox']='dropbox',_0x5b418b['GDrive']='gdrive',_0x5b418b['Facebook']='facebook',_0x5b418b['GPhotos']='gphotos',_0x5b418b['OneDrive']='onedrive',_0x5b418b;}({});function _(_0x4a2e1c,_0x309fda,_0x1c53ab){const t=_0x4a2e1c['t'],_0x343d32=_0x4a2e1c['t'];switch(_0x309fda){case o['Local']:return{'text':_0x343d32('Insert'===_0x1c53ab?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x343d32('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x1c53ab?_0x343d32('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x343d32('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x1c53ab?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x1c53ab?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x1c53ab?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x1c53ab?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x1c53ab?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x309fda;}}class e extends _0x88e48a{['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 _0x117a68=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b9e10;for(const _0x2c050c in _0x117a68){const _0x712fa7=_0x2c050c,_0x21e6fa=_0x117a68[_0x712fa7];if('uploadcareLicenseKeyValid'==_0x21e6fa||'uploadcareLicenseKeyInvalid'==_0x21e6fa||'uploadcareLicenseKeyExpired'==_0x21e6fa||'uploadcareLicenseKeyDomainLimit'==_0x21e6fa||'uploadcareLicenseKeyNotAllowed'==_0x21e6fa||'uploadcareLicenseKeyEvaluationLimit'==_0x21e6fa||'uploadcareLicenseKeyTrialLimit'==_0x21e6fa||'uploadcareLicenseKeyUsageLimit'==_0x21e6fa){delete _0x117a68[_0x712fa7],_0x4b9e10=_0x21e6fa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4b9e10&&_0x117a68['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4b9e10&&_0x117a68['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4b9e10&&_0x117a68['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4b9e10&&_0x117a68['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4b9e10&&_0x117a68['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4b9e10&&_0x117a68['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4b9e10&&_0x117a68['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4143a3}=this,_0xf678a2=_0x4143a3['commands']['get']('uploadcare');if(!_0xf678a2)return;const _0x3b8147=this['_normalizeConfigSourceList'](_0x4143a3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4213ef,_0x1eecfb)=>{const _0x274564=this['_getIntegrationKey'](_0x1eecfb['type']);return _0x4213ef[_0x274564]||(_0x4213ef[_0x274564]=[]),_0x4213ef[_0x274564]['push'](_0x1eecfb),_0x4213ef;},{});_0x4143a3['plugins']['has']('ImageInsertUI')&&_0x4143a3['commands']['get']('uploadcare')&&Object['entries'](_0x3b8147)['forEach'](([_0x2a2bbb,_0x3256b5])=>{_0x4143a3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2a2bbb,'observable':()=>_0xf678a2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3256b5),'formViewCreator':()=>this['_createDropdownButtons'](_0x3256b5),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3256b5),'override':'assetManager'!==_0x2a2bbb});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x20db00){const {locale:_0x47dc7b}=this['editor'];return _0x20db00['map'](_0x2a6ff8=>{const _0x216e23=_(_0x47dc7b,_0x2a6ff8,'Insert');switch(_0x2a6ff8){case o['Local']:return{'icon':_0x1db469,'type':o['Local'],..._0x216e23};case o['URL']:return{'icon':_0x268f21,'type':o['URL'],..._0x216e23};case o['Dropbox']:return{'icon':_0x23f589,'type':o['Dropbox'],..._0x216e23};case o['Facebook']:return{'icon':_0x2d1219,'type':o['Facebook'],..._0x216e23};case o['GDrive']:return{'icon':_0xa54815,'type':o['GDrive'],..._0x216e23};case o['GPhotos']:return{'icon':_0x4e323b,'type':o['GPhotos'],..._0x216e23};case o['OneDrive']:return{'icon':_0x205fc4,'type':o['OneDrive'],..._0x216e23};}});}['_getIntegrationKey'](_0x283a69){switch(_0x283a69){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1437f1,_0x4ff170){const _0x5d1f5b=this['editor'],_0x195976=new _0x1437f1(_0x5d1f5b['locale']),_0x4a64a5=_0x5d1f5b['commands']['get']('uploadcare');return _0x195976['bind']('isEnabled')['to'](_0x4a64a5),_0x195976['on']('execute',()=>{_0x4a64a5['execute'](_0x4ff170);}),_0x195976;}['_createToolbarButton'](_0x5a3f2b){const {locale:_0x11036f}=this['editor'],_0x344880=this['editor']['plugins']['get']('ImageInsertUI'),_0x15adc0=_0x5a3f2b[0x0],_0x55058f=this['_createButton'](_0x51c610,_0x15adc0['type']);return _0x55058f['icon']=_0x15adc0['icon'],_0x55058f['bind']('label')['to'](_0x344880,'isImageSelected',_0x34dd54=>_(_0x11036f,_0x15adc0['type'],_0x34dd54?'Replace':'Insert')['text']),_0x55058f['tooltip']=!0x0,_0x55058f;}['_createDropdownButtons'](_0x5bb60d){const {locale:_0x56cef8}=this['editor'],_0x5ad2bc=this['editor']['plugins']['get']('ImageInsertUI');return _0x5bb60d['map'](_0x1f3d9a=>{const _0x3fc577=this['_createButton'](_0x51c610,_0x1f3d9a['type']);return _0x3fc577['withText']=!0x0,_0x3fc577['icon']=_0x1f3d9a['icon'],_0x3fc577['bind']('label')['to'](_0x5ad2bc,'isImageSelected',_0x3583e7=>_(_0x56cef8,_0x1f3d9a['type'],_0x3583e7?'Replace':'Insert')['text']),_0x3fc577;});}['_createMenuBarButtons'](_0x4a08e2){return _0x4a08e2['map'](_0x45b8fc=>{const _0x50f1ec=this['_createButton'](_0x1dafa6,_0x45b8fc['type']);return _0x50f1ec['icon']=_0x45b8fc['icon'],_0x50f1ec['label']=_0x45b8fc['shortText'],_0x50f1ec;});}}class q extends _0x437902{['focusTracker'];['focusCycler'];constructor(_0x5aec50){super(_0x5aec50),this['focusTracker']=new _0x461df4(),this['focusCycler']=new _0x4727af({'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(_0x5c11eb){super(_0x5c11eb),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(_0xdf3f96,_0x2cae8c){const _0x21d660=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5b746d=>_0x5b746d<=_0x2cae8c)['map'](_0xd47ffa=>_0xdf3f96['replace'](/\/$/,'')+'/-/resize/'+_0xd47ffa+'x/\x20'+_0xd47ffa+'w');return{'imageFallbackUrl':_0xdf3f96,'imageSources':[{'srcset':_0x21d660['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2cae8c+'px)\x20100vw,\x20'+_0x2cae8c+'px','type':'image/webp'}]};}function A(_0x427ff9,_0x55b95b,_0x1da663){const _0x4064d2=_0x427ff9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4064d2?parseInt(_0x4064d2[0x1],0xa):_0x55b95b,'height':_0x4064d2?parseInt(_0x4064d2[0x2],0xa):_0x1da663};}function m(_0x301748,_0x3e0756){const _0x30181c=Object['create'](_0x1c48be),_0x3f5429=_0x301748['plugins']['get']('ImageUtils'),_0x3b1c29=_0x301748['editing']['mapper']['toViewElement'](_0x3e0756),_0x3878e4=_0x3f5429['findViewImgElement'](_0x3b1c29),_0x278f49=_0x301748['editing']['view']['domConverter']['viewToDom'](_0x3878e4),_0x5b2e96=_0x3e0756['getAttribute']('width'),_0x2eeeab=_0x3e0756['getAttribute']('height'),_0x20f315='image-processing';_0x301748['editing']['view']['change'](_0x3cb2dd=>{_0x3cb2dd['addClass'](_0x20f315,_0x3b1c29),_0x3cb2dd['setStyle']('aspect-ratio',_0x5b2e96+'/'+_0x2eeeab,_0x3878e4);}),_0x30181c['listenTo'](_0x278f49,'load',()=>{_0x30181c['stopListening'](_0x278f49,'load'),_0x301748['editing']['view']['change'](_0x2ec8ee=>{_0x2ec8ee['removeClass'](_0x20f315,_0x3b1c29),_0x2ec8ee['removeStyle']('aspect-ratio',_0x3878e4);});});}function V(_0x37142b){if(Array['isArray'](_0x37142b)){const _0x2758e3=_0x37142b['map'](V);return _0xb946e=>_0x2758e3['some'](_0x20e3b9=>_0x20e3b9(_0xb946e));}if('origin'==_0x37142b){const _0x36619c=_0x6c8694['window']['location']['origin'];return _0x1aa1d4=>new URL(_0x1aa1d4,_0x6c8694['document']['baseURI'])['origin']==_0x36619c;}return'function'==typeof _0x37142b?_0x37142b:_0x37142b instanceof RegExp?_0x37871c=>!(!_0x37871c['match'](_0x37142b)&&!_0x37871c['replace'](/^https?:\/\//,'')['match'](_0x37142b)):()=>!0x1;}function F(_0x578ae2,_0x13484d){return _0x26e42e(_0x578ae2['target'])['includes'](_0x13484d);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x10f14e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5d4dd5,_0x540d52,_0x2e2ddc){super(),this['_editor']=_0x5d4dd5,this['_editing']=_0x540d52,this['_dialog']=_0x5d4dd5['plugins']['get'](_0xe4994a),this['_api']=_0x540d52['ctxElement']['getAPI'](),this['_type']=_0x2e2ddc,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:_0x171c8d,model:_0x4c19a8}=this['_editor'],_0x1f8962=_0x4c19a8['document']['selection']['getSelectedElement'](),_0x533376=_0x1f8962&&(_0x1f8962['is']('element','imageBlock')||_0x1f8962['is']('element','imageInline'));this['_formView']=new S(_0x171c8d),this['_dialog']['show']({'id':'uploadCare','icon':_0x1db469,'title':_(_0x171c8d,this['_type'],_0x533376?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x46fe7d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xe7a6e8=>!F(_0xe7a6e8,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x24787b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x12b9cc=>{const _0x15b95b=_0x24787b['length'];for(const _0x3179c9 of _0x24787b){const _0x135b66=_0x3179c9===_0x24787b[_0x15b95b-0x1],{cdnUrl:_0x2bd09e,fileInfo:_0x2be9c9}=_0x3179c9;if(!_0x2bd09e||!_0x2be9c9)continue;const {width:_0x42bcfd,height:_0x3f731a}=_0x2be9c9['imageInfo'],_0x3bb79f=A(_0x2bd09e,_0x42bcfd,_0x3f731a),_0x50a035=E(_0x2bd09e,_0x3bb79f['width']),_0x113b6e={'id':_0x2be9c9['uuid'],'type':'image','attributes':{'imageDimension':_0x3bb79f,..._0x50a035}};this['_insertAsset'](_0x113b6e,_0x135b66,_0x12b9cc);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x22d62e=>{'idle'===_0x22d62e['detail']['status']&&!_0x22d62e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x43c9b9,_0x414f05,_0x58765c){const _0x32969f=this['_editor']['model']['document']['selection'],_0x5919ad=_0x32969f['getSelectedElement'](),_0x37fcb3=!(!_0x5919ad||!_0x5919ad['is']('element','imageInline'));_0x58765c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x43c9b9,_0x37fcb3),_0x414f05||_0x58765c['setSelection'](_0x32969f['getLastPosition']());}['_insertImage'](_0x2ce4f7,_0x54dbef){const _0x325d1b=this['_editor'],{imageDimension:_0x4635e8,imageFallbackUrl:_0x42057f,imageSources:_0x28733b}=_0x2ce4f7['attributes'];_0x325d1b['execute']('insertImage',{'imageType':_0x54dbef?'imageInline':null,'source':{'uploadcareImageId':_0x2ce4f7['id'],'src':_0x42057f,'sources':_0x28733b,..._0x4635e8}});}}class n extends _0x3ed71e{['_editing'];['_controller']=null;static get['requires'](){return[_0xe4994a,i];}constructor(_0x1af7fe){super(_0x1af7fe),this['_editing']=_0x1af7fe['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xea2f19){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xea2f19);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x225fc6,publicKey:_0xa6d3dc,signal:_0x4802ca,onProgress:_0x56b6c9}){return _0x492967(_0x225fc6,{'publicKey':_0xa6d3dc,'store':'auto','signal':_0x4802ca,'onProgress':_0x56b6c9});}static['getInfo'](_0x5b6887,_0x5b4728){return _0x4a6ee6(_0x5b6887,_0x5b4728);}}class p extends _0x88e48a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1f2430,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xf0cc3d=this['editor'];if(!!!_0xf0cc3d['config']['get']('uploadcare'))return;_0xf0cc3d['plugins']['get'](_0x1f2430)['createUploadAdapter']=_0x3f6a55=>new x(_0x3f6a55,_0xf0cc3d),_0xf0cc3d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x37ab14,{imageElement:_0x246f83,data:_0x2cea58})=>{_0xf0cc3d['model']['change'](_0x16eab7=>{_0x16eab7['setAttribute']('uploadcareImageId',_0x2cea58['uploadcareImageId'],_0x246f83);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5681c5,_0xcbca6c){this['loader']=_0x5681c5,this['editor']=_0xcbca6c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x496c46=this['editor']['config']['get']('uploadcare.pubkey'),_0x273af3=await this['loader']['file'];return C['upload']({'file':_0x273af3,'publicKey':_0x496c46,'signal':this['controller']['signal'],'onProgress':_0x261a78=>{_0x261a78&&_0x261a78['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x261a78['value']);}})['then'](async _0x4a092e=>{const {imageFallbackUrl:_0x897a43,imageSources:_0x15556e}=E(_0x4a092e['cdnUrl'],_0x4a092e['imageInfo']['width']);return{'uploadcareImageId':_0x4a092e['uuid'],'default':_0x897a43,'sources':_0x15556e};})['catch'](()=>{const _0x32399a=t('Cannot\x20upload\x20file:')+('\x20'+_0x273af3['name']+'.');return Promise['reject'](_0x32399a);});}['abort'](){this['controller']['abort']();}}class i extends _0x88e48a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0xe4994a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x47fcb4=this['editor'];_0x47fcb4['commands']['add']('uploadcare',new n(_0x47fcb4));}['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 _0x47c76c=_0x6c8694['document']['querySelector']('input[uploadcare-file-input]');_0x47c76c&&_0x47c76c['remove']();}),async function(_0x111ea4){const _0x4cea7d=_0x56bc1e([0x37,0x35,0x31,0x67,0x43,0x78,0x56,0x59,0x61,0x50,0x32,0x65,0x4c,0x68,0x5a,0x41,0x63,0x30,0x34,0x38,0x69,0x54,0x71,0x72,0x7a,0x53,0x6a,0x4d,0x4e,0x57,0x73,0x39,0x44,0x4a,0x46,0x36,0x6f,0x6e,0x42,0x49,0x79,0x4b,0x51,0x45,0x4f,0x62,0x76,0x6c,0x66,0x64,0x6d,0x6b,0x75,0x48,0x55,0x70,0x77,0x47,0x58,0x52,0x74,0x33]),_0x55ccd6=0xa472224,_0x5ce95e=0xa404564^_0x55ccd6,_0x49ffe1=window[_0x56bc1e([0x44,0x61,0x74,0x65])][_0x56bc1e([0x6e,0x6f,0x77])](),_0x2c9b69=_0x111ea4[_0x56bc1e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x13489c=new window[(_0x56bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53c3d2=>{_0x2c9b69[_0x56bc1e([0x6f,0x6e,0x63,0x65])](_0x56bc1e([0x72,0x65,0x61,0x64,0x79]),_0x53c3d2);}),_0xeb87de={[_0x56bc1e([0x6b,0x74,0x79])]:_0x56bc1e([0x45,0x43]),[_0x56bc1e([0x75,0x73,0x65])]:_0x56bc1e([0x73,0x69,0x67]),[_0x56bc1e([0x63,0x72,0x76])]:_0x56bc1e([0x50,0x2d,0x32,0x35,0x36]),[_0x56bc1e([0x78])]:_0x56bc1e([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]),[_0x56bc1e([0x79])]:_0x56bc1e([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]),[_0x56bc1e([0x61,0x6c,0x67])]:_0x56bc1e([0x45,0x53,0x32,0x35,0x36])},_0x536323=_0x2c9b69[_0x56bc1e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x56bc1e([0x67,0x65,0x74])](_0x56bc1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3479a0(){let _0xbc7cd4,_0x3a1a38=null,_0x5c8001=null;try{if(_0x536323==_0x56bc1e([0x47,0x50,0x4c]))return _0x56bc1e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xbc7cd4=_0x677fe7(),!_0xbc7cd4)return _0x56bc1e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xbc7cd4[_0x56bc1e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c8001=_0x2abf28(_0xbc7cd4[_0x56bc1e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xbc7cd4[_0x56bc1e([0x6a,0x74,0x69])])),await _0x21dcc9()?_0x1c4e59()?_0x3fb7a1()?_0x56bc1e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdbae0f()?(_0xbc7cd4[_0x56bc1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56bc1e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a1a38=_0x84bdd2(_0x56bc1e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xbc7cd4[_0x56bc1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56bc1e([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a1a38=_0x84bdd2(_0x56bc1e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bdd14()):_0x56bc1e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x56bc1e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x56bc1e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4126d2){return _0x56bc1e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3fb7a1(){const _0x40c4d9=[_0x56bc1e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x56bc1e([0x74,0x72,0x69,0x61,0x6c])][_0x56bc1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbc7cd4[_0x56bc1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49ffe1/0x3e8:0xe10*_0x5ce95e;return _0xbc7cd4[_0x56bc1e([0x65,0x78,0x70])]<_0x40c4d9;}function _0x1c4e59(){const _0x31f799=_0xbc7cd4[_0x56bc1e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x31f799&&(!!_0x31f799[_0x56bc1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56bc1e([0x2a]))||!!_0x31f799[_0x56bc1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56bc1e([0x55,0x50,0x4c,0x43])));}function _0xdbae0f(){const _0x40b6a3=_0xbc7cd4[_0x56bc1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x40b6a3||0x0==_0x40b6a3[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x476939}=new URL(window[_0x56bc1e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x40b6a3[_0x56bc1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476939))return!0x0;const _0x5ac498=_0x476939[_0x56bc1e([0x73,0x70,0x6c,0x69,0x74])](_0x56bc1e([0x2e]));return _0x40b6a3[_0x56bc1e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11189b=>_0x11189b[_0x56bc1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56bc1e([0x2a])))[_0x56bc1e([0x6d,0x61,0x70])](_0x3b8a64=>_0x3b8a64[_0x56bc1e([0x73,0x70,0x6c,0x69,0x74])](_0x56bc1e([0x2e])))[_0x56bc1e([0x73,0x6f,0x6d,0x65])](_0x5a9883=>_0x5ac498[_0x56bc1e([0x65,0x76,0x65,0x72,0x79])]((_0x2547e3,_0x38ad5a)=>_0x5a9883[_0x38ad5a]===_0x2547e3||_0x5a9883[_0x38ad5a]===_0x56bc1e([0x2a])));}function _0x4bdd14(){return _0x3a1a38&&_0x5c8001?new window[(_0x56bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x356b6f,_0x47ed03)=>{_0x3a1a38[_0x56bc1e([0x74,0x68,0x65,0x6e])](_0x356b6f,_0x47ed03),_0x5c8001[_0x56bc1e([0x74,0x68,0x65,0x6e])](_0x1751f7=>{_0x1751f7!=_0x56bc1e([0x56,0x61,0x6c,0x69,0x64])&&_0x356b6f(_0x1751f7);},_0x47ed03);}):_0x3a1a38||_0x5c8001||_0x56bc1e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2abf28(_0x32cbf9,_0x3fb53b){return new window[(_0x56bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cf68d=>{if(_0x2b9054())return _0x3cf68d(_0x56bc1e([0x56,0x61,0x6c,0x69,0x64]));_0x154d9c(),_0x2c9b69[_0x56bc1e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x56bc1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6fb4d2=!0x1;const _0x56b786=_0x371869();function _0x2d6716(_0x48d527){return!!_0x48d527&&(typeof _0x48d527===_0x56bc1e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48d527===_0x56bc1e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48d527[_0x56bc1e([0x74,0x68,0x65,0x6e])]===_0x56bc1e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48d527[_0x56bc1e([0x63,0x61,0x74,0x63,0x68])]===_0x56bc1e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x455115(_0x30a6ca){_0x1f30de(_0x30a6ca)[_0x56bc1e([0x74,0x68,0x65,0x6e])](_0x3199e4=>{if(!_0x3199e4||_0x3199e4[_0x56bc1e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x56bc1e([0x6f,0x6b]))return _0x56bc1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x37f67b(_0x17da55(_0x56b786+_0x3fb53b))!=_0x3199e4[_0x56bc1e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x56bc1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x56bc1e([0x56,0x61,0x6c,0x69,0x64]);})[_0x56bc1e([0x74,0x68,0x65,0x6e])](_0x3c1389=>(_0x51a517(),_0x3c1389),()=>{const _0x5888d1=_0x477705();return null==_0x5888d1?(_0x51a517(),_0x56bc1e([0x56,0x61,0x6c,0x69,0x64])):_0x56bc1e(_0x49ffe1-_0x5888d1>(0x2e4ba624^_0x55ccd6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x56bc1e([0x74,0x68,0x65,0x6e])](_0x3cf68d)[_0x56bc1e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3cf68d(_0x56bc1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x295cd9=0xa71cca4^_0x55ccd6;function _0x51a517(){const _0xd8998e=_0x56bc1e([0x6c,0x6c,0x63,0x74,0x2d])+_0x37f67b(_0x17da55(_0x32cbf9)),_0x5ed179=_0x81ce15(_0x37f67b(window[_0x56bc1e([0x4d,0x61,0x74,0x68])][_0x56bc1e([0x63,0x65,0x69,0x6c])](_0x49ffe1/_0x295cd9)));window[_0x56bc1e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56bc1e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd8998e,_0x5ed179);}function _0x477705(){const _0x1d8097=_0x56bc1e([0x6c,0x6c,0x63,0x74,0x2d])+_0x37f67b(_0x17da55(_0x32cbf9)),_0x34f9cb=window[_0x56bc1e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56bc1e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d8097);return _0x34f9cb?window[_0x56bc1e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x81ce15(_0x34f9cb),0x10)*_0x295cd9:null;}function _0x1f30de(_0x26c4b9){return new window[(_0x56bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ef838,_0x527940)=>{_0x26c4b9[_0x56bc1e([0x74,0x68,0x65,0x6e])](_0x2ef838,_0x527940),window[_0x56bc1e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x527940,0xa46f6e4^_0x55ccd6);});}}_0x2c9b69[_0x56bc1e([0x6f,0x6e])](_0x56bc1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x505205,_0x100de8)=>{if(_0x100de8[0x0]!=_0x32cbf9)return _0x3cf68d(_0x56bc1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x100de8[0x1]={..._0x100de8[0x1],[_0x56bc1e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x56b786};},{[_0x56bc1e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56bc1e([0x68,0x69,0x67,0x68])}),_0x2c9b69[_0x56bc1e([0x6f,0x6e])](_0x56bc1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44264c=>{_0x2d6716(_0x44264c[_0x56bc1e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6fb4d2=!0x0,_0x455115(_0x44264c[_0x56bc1e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x56bc1e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56bc1e([0x6c,0x6f,0x77])}),_0x13489c[_0x56bc1e([0x74,0x68,0x65,0x6e])](()=>{_0x6fb4d2||_0x3cf68d(_0x56bc1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b9054(){return _0x2c9b69[_0x56bc1e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56bc1e([0x76,0x69,0x65,0x77])][_0x56bc1e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x56bc1e([0x61,0x75,0x74,0x6f]);}function _0x154d9c(){_0x2c9b69[_0x56bc1e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56bc1e([0x76,0x69,0x65,0x77])][_0x56bc1e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56bc1e([0x61,0x75,0x74,0x6f]);}}function _0x84bdd2(_0x3f36f7){const _0x134ceb=[new window[(_0x56bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e67d4=>setTimeout(_0x3e67d4,0xa4e1ce8^_0x55ccd6)),_0x13489c[_0x56bc1e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x56bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x479089=>{let _0x4b421f=0x0;_0x2c9b69[_0x56bc1e([0x6d,0x6f,0x64,0x65,0x6c])][_0x56bc1e([0x6f,0x6e])](_0x56bc1e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2f6015,_0x2e0688)=>{_0x2e0688[0x0][_0x56bc1e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4b421f++,_0x4b421f==(0xa4723dc^_0x55ccd6)&&(_0x479089(),_0x2f6015[_0x56bc1e([0x6f,0x66,0x66])]());});}))];return window[_0x56bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56bc1e([0x72,0x61,0x63,0x65])](_0x134ceb)[_0x56bc1e([0x74,0x68,0x65,0x6e])](()=>_0x3f36f7);}async function _0x2fbbf0(){await _0x13489c,_0x2c9b69[_0x56bc1e([0x6d,0x6f,0x64,0x65,0x6c])][_0x56bc1e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x272c6b,_0x2c9b69[_0x56bc1e([0x6d,0x6f,0x64,0x65,0x6c])][_0x56bc1e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x272c6b,_0x2c9b69[_0x56bc1e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x56bc1e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x376b42(_0x40b2ca){const _0x184d35=_0x33b73d();_0x2c9b69[_0x184d35]=_0x56bc1e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40b2ca,_0x40b2ca!=_0x56bc1e([0x56,0x61,0x6c,0x69,0x64])&&_0x2fbbf0();}function _0x33b73d(){const _0x460812=window[_0x56bc1e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x56bc1e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x56bc1e([0x6e,0x6f,0x77])]())[_0x56bc1e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x56bc1e([0x2e]),'');let _0x898499=_0x56bc1e([0x67]);for(let _0xbdf781=0x0;_0xbdf781<_0x460812[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbdf781+=0x2){let _0x1b21b1=window[_0x56bc1e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x460812[_0x56bc1e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbdf781,_0xbdf781+0x2));_0x1b21b1>=_0x4cea7d[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b21b1-=_0x4cea7d[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x898499+=_0x4cea7d[_0x1b21b1];}return _0x898499;}function _0x677fe7(){const _0x2183b9=_0x536323[_0x56bc1e([0x73,0x70,0x6c,0x69,0x74])](_0x56bc1e([0x2e]));if(0x3!=_0x2183b9[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x192b2e(_0x2183b9[0x1]);function _0x192b2e(_0x218d3e){const _0xc15563=_0x2f1838(_0x218d3e);return _0xc15563&&_0x3c726d()?_0xc15563:null;function _0x3c726d(){const _0x2b862b=_0xc15563[_0x56bc1e([0x6a,0x74,0x69])],_0x1980e1=window[_0x56bc1e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b862b[_0x56bc1e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b862b[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x400b98={..._0xc15563,[_0x56bc1e([0x6a,0x74,0x69])]:_0x2b862b[_0x56bc1e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b862b[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x400b98[_0x56bc1e([0x76,0x63])],_0x17da55(_0x400b98)==_0x1980e1;}}}async function _0x21dcc9(){let _0x344296=!0x0;try{const _0x5bbf57=_0x536323[_0x56bc1e([0x73,0x70,0x6c,0x69,0x74])](_0x56bc1e([0x2e])),[_0x1a1ba2,_0x320a26,_0x55f390]=_0x5bbf57;return _0x2f7896(_0x1a1ba2),await _0x182e49(_0x1a1ba2,_0x320a26,_0x55f390),_0x344296;}catch(_0x547c71){return!0x1;}function _0x2f7896(_0xd514e6){const _0x356d7f=_0x2f1838(_0xd514e6);_0x356d7f&&_0x356d7f[_0x56bc1e([0x61,0x6c,0x67])]==_0x56bc1e([0x45,0x53,0x32,0x35,0x36])||(_0x344296=!0x1);}async function _0x182e49(_0x3b6d8a,_0x6acd31,_0x4cd327){const _0x509b72=window[_0x56bc1e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x56bc1e([0x66,0x72,0x6f,0x6d])](_0x438e15(_0x4cd327),_0x34a12b=>_0x34a12b[_0x56bc1e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3fdd28=new window[(_0x56bc1e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x56bc1e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b6d8a+_0x56bc1e([0x2e])+_0x6acd31),_0x2e9d16=window[_0x56bc1e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x56bc1e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e9d16)return;const _0x100cc2=await _0x2e9d16[_0x56bc1e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x56bc1e([0x6a,0x77,0x6b]),_0xeb87de,{[_0x56bc1e([0x6e,0x61,0x6d,0x65])]:_0x56bc1e([0x45,0x43,0x44,0x53,0x41]),[_0x56bc1e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x56bc1e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x56bc1e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e9d16[_0x56bc1e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x56bc1e([0x6e,0x61,0x6d,0x65])]:_0x56bc1e([0x45,0x43,0x44,0x53,0x41]),[_0x56bc1e([0x68,0x61,0x73,0x68])]:{[_0x56bc1e([0x6e,0x61,0x6d,0x65])]:_0x56bc1e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x100cc2,_0x509b72,_0x3fdd28)||(_0x344296=!0x1);}}function _0x2f1838(_0x11ed0d){return _0x11ed0d[_0x56bc1e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x56bc1e([0x65,0x79]))?JSON[_0x56bc1e([0x70,0x61,0x72,0x73,0x65])](_0x438e15(_0x11ed0d)):null;}function _0x438e15(_0x4f63d3){return window[_0x56bc1e([0x61,0x74,0x6f,0x62])](_0x4f63d3[_0x56bc1e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x56bc1e([0x2b]))[_0x56bc1e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x56bc1e([0x2f])));}function _0x17da55(_0x29fffc){let _0x4260d1=0x1505;function _0x2fb688(_0x154352){for(let _0x51c7a9=0x0;_0x51c7a9<_0x154352[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51c7a9++){const _0x1e5b92=_0x154352[_0x56bc1e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x51c7a9);_0x4260d1=(_0x4260d1<<0x5)+_0x4260d1+_0x1e5b92,_0x4260d1&=_0x4260d1;}}function _0x7b4943(_0x4ec195){Array[_0x56bc1e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ec195)?_0x4ec195[_0x56bc1e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7b4943):_0x4ec195&&typeof _0x4ec195==_0x56bc1e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x56bc1e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ec195)[_0x56bc1e([0x73,0x6f,0x72,0x74])]()[_0x56bc1e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x307ba9,_0xa86879])=>{_0x2fb688(_0x307ba9),_0x7b4943(_0xa86879);}):_0x2fb688(window[_0x56bc1e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ec195));}return _0x7b4943(_0x29fffc),_0x4260d1>>>0x0;}function _0x37f67b(_0xec5512){return _0xec5512[_0x56bc1e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x56bc1e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x56bc1e([0x30]));}function _0x81ce15(_0xdf05df){return _0xdf05df[_0x56bc1e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x56bc1e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x56bc1e([0x6a,0x6f,0x69,0x6e])]('');}function _0x272c6b(){}function _0x56bc1e(_0xd3361b){return _0xd3361b['map'](_0x496a14=>String['fromCharCode'](_0x496a14))['join']('');}_0x376b42(await _0x3479a0());}(this);}['_initSchema'](){const _0x248022=this['editor']['model']['schema'];_0x248022['isRegistered']('imageBlock')&&_0x248022['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x248022['isRegistered']('imageInline')&&_0x248022['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x543bd1=this['editor'];_0x543bd1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x543bd1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xeeb7de=>_0xeeb7de['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x250ec6=_0x543bd1['commands']['get']('replaceImageSource');_0x250ec6&&this['listenTo'](_0x250ec6,'cleanupImage',(_0x2ddbd6,[_0x3f7cf1,_0x3e68cc])=>{_0x3f7cf1['removeAttribute']('uploadcareImageId',_0x3e68cc);});}['_initConfig'](){const _0x3c53e0=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3713fa=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xc2750d(_0x6c8694['document'],'uc-config',{..._0x3c53e0,'pubkey':_0x3713fa,'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']=_0x372f53=>{if('closeMax'==_0x372f53)return'#uc-icon-arrow-down';},_0x6c8694['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xc2750d(_0x6c8694['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x6c8694['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4409f9=this['editor']['commands']['get']('insertImage');_0x4409f9&&this['listenTo'](_0x4409f9,'execute',()=>{const _0x1fa833=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1fa833&&_0x1fa833['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1fa833);});});const _0x1a9039=this['editor']['commands']['get']('uploadcareImageReplace');_0x1a9039&&this['listenTo'](_0x1a9039,'execute',()=>{const _0x5370f4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5370f4&&_0x5370f4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5370f4);});});}}class u extends _0x88e48a{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2247a5){super(_0x2247a5),_0x2247a5['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x28836c['defineComponents'](_0x28836c);}}class ta extends _0x437902{constructor(_0x332e06){super(_0x332e06);const t=_0x332e06['t'],_0x13f82e=this['bindTemplate'],_0x2b87fc=new _0x2d13b7();_0x2b87fc['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':[_0x2b87fc,{'text':_0x13f82e['to']('imageUploadProgress',_0x35c560=>t('Loading\x20image...')+'\x20('+(_0x35c560||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 _0x437902{constructor(_0x5d50a0){super(_0x5d50a0);const t=_0x5d50a0['t'];this['set']('errorType',null);const _0x273ab0=new _0x51c610(_0x5d50a0);_0x273ab0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x273ab0['withText']=!0x0,_0x273ab0['class']='ck-button-action',_0x273ab0['on']('execute',()=>{this['fire']('retry');}),_0x273ab0['bind']('isVisible')['to'](this,'errorType',_0x380e79=>'NotFound'!==_0x380e79);const _0x52b6bf=new at();_0x52b6bf['content']=et,_0x52b6bf['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1eec70=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':[_0x52b6bf,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1eec70['to']('errorType',_0x2f1465=>t('NotFound'!==_0x2f1465?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x273ab0]},{'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 _0x437902{constructor(_0x404bee,_0x44b1ce){super(_0x404bee);const _0x1c3646=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x44b1ce,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1c3646['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x232475,_0x5c6f73,_0x283cd){super(_0x232475),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x232475),this['_errorView']=new rt(_0x232475),this['_editingView']=new tt(_0x232475,_0x283cd),this['_focusableView']=new _0x437902(_0x232475),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5c6f73),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'],_0x5db758=>{this['_addUploadcareImageEditorListeners'](_0x5db758);});}),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'](_0x386afe,_0x355d6d){const _0x2b5b47='uc-cloud-image-editor',_0x57641c=_0x386afe['querySelector'](_0x2b5b47);if(_0x57641c)return _0x355d6d(_0x57641c);const _0x589162=new MutationObserver(_0x2c888d=>{const _0x24ac2f=_0x2c888d['filter'](_0x59673a=>_0x59673a['target']===_0x386afe&&_0x59673a['addedNodes']['length']>0x0&&_0x59673a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2b5b47);_0x24ac2f['length']&&(_0x589162['disconnect'](),_0x355d6d(_0x24ac2f[0x0]['addedNodes'][0x0]));});_0x589162['observe'](_0x386afe,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3aef2d){_0x3aef2d['addEventListener']('apply',_0x4071df=>{this['fire']('apply',{'imageSrc':_0x4071df['detail']['cdnUrl']});}),_0x3aef2d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x10f14e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x40eede,_0x5c3cb7,_0x2dd03d){super(),this['_editor']=_0x40eede,this['_dialog']=_0x5c3cb7,this['_imageElement']=_0x2dd03d,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 _0x1964b2=this['_imageElement'],_0x4d4f6b=_0x1964b2['getAttribute']('uploadcareImageId'),_0x56e1ce=_0x1964b2['getAttribute']('src');if(_0x4d4f6b)await this['_loadImageInfo'](_0x4d4f6b,_0x56e1ce);else{if(this['_imageCache']['has'](_0x56e1ce)){const _0x4487e7=this['_imageCache']['get'](_0x56e1ce);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4487e7['url'],this['imageDimension']=_0x4487e7['dimension'],this['imageId']=_0x4487e7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x18a22f}=this['_editor'],t=_0x18a22f['t'],_0x49f1e8=new Z(_0x18a22f,this['imageStatus'],this['_attributes']);_0x49f1e8['bind']('status')['to'](this,'imageStatus'),_0x49f1e8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x49f1e8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x49f1e8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x49f1e8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4907c0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x49f1e8,'position':_0x46fe7d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x49f1e8['focus']();},'onHide':()=>{_0x49f1e8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xe07a=>!F(_0xe07a,_0x49f1e8['element'])}});}['_loadImageInfo'](_0xa582fa,_0x504286){return C['getInfo'](_0xa582fa,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x62c023=>{const {width:_0x2db360,height:_0x9168d3}=_0x62c023['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x504286,this['imageDimension']={'width':_0x2db360,'height':_0x9168d3},this['imageId']=_0xa582fa;})['catch'](_0x1162bd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1162bd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x474227,_0x48cc67){return this['_getImageAsFile'](_0x474227)['then'](_0x1fb1fa=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x48cc67['signal'],'file':_0x1fb1fa,'onProgress':_0x5de408=>{_0x5de408&&_0x5de408['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5de408['value']));}}))['then'](_0x3b282c=>{const {width:_0x3f33e4,height:_0x28fc4f}=_0x3b282c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b282c['cdnUrl'],this['imageDimension']={'width':_0x3f33e4,'height':_0x28fc4f},this['imageId']=_0x3b282c['uuid'],this['imageUploadProgress']=null;const _0x11f2fb=_0x474227['getAttribute']('src');this['_imageCache']['set'](_0x11f2fb,{'id':_0x3b282c['uuid'],'url':_0x3b282c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x171fa4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x171fa4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x29fa1a,_0x5de75f){_0x29fa1a['on']('apply',(_0x30e21a,_0x4b83a7)=>{this['_replaceImage'](_0x5de75f,_0x4b83a7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x29fa1a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x29fa1a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5db7aa,_0x102774,_0x23151c){const _0x3c9b3a=this['_editor'],{width:_0x563581,height:_0x30ab7d}=A(_0x102774,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x493459,imageSources:_0x232339}=E(_0x102774,_0x563581);_0x3c9b3a['model']['change'](_0x4932b1=>{if('$graveyard'===_0x5db7aa['root']['rootName']){_0x3c9b3a['execute']('insertImage',{'imageType':_0x5db7aa['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5db7aa['getAttributes']()),'uploadcareImageId':_0x23151c,'src':_0x493459,'sources':_0x232339,'width':_0x563581,'height':_0x30ab7d}});const _0x2633b0=_0x5db7aa['getChildren']();_0x5db7aa=_0x3c9b3a['model']['document']['selection']['getSelectedElement']();for(const _0x546bbb of _0x2633b0)_0x4932b1['append'](_0x4932b1['cloneElement'](_0x546bbb),_0x5db7aa);}else _0x4932b1['setSelection'](_0x5db7aa,'on'),_0x3c9b3a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5db7aa['getAttributes']()),'uploadcareImageId':_0x23151c,'src':_0x493459,'sources':_0x232339,'width':_0x563581,'height':_0x30ab7d},_0x5db7aa);_0x4932b1['setSelection'](_0x5db7aa,'on');});}async['_getImageAsFile'](_0x5eb6ff){const _0x144be3=_0x6c8694['window'],_0x194c19=_0x6c8694['document']['location']['href'],_0x2f7d6f=new _0x144be3['URL'](_0x5eb6ff['getAttribute']('src'),_0x194c19);if('data:'===_0x2f7d6f['protocol']){const _0x191b95=_0x2f7d6f['href']['split'](','),_0x58da90=_0x191b95[0x0]['match'](/:(.*?);/)[0x1],_0x525383=_0x58da90['split']('/')[0x1],_0x5d2e18=_0x144be3['atob'](_0x191b95[_0x191b95['length']-0x1]);let _0x19a69a=_0x5d2e18['length'];const _0x45c23f=new _0x144be3['Uint8Array'](_0x19a69a);for(;_0x19a69a--;)_0x45c23f[_0x19a69a]=_0x5d2e18['charCodeAt'](_0x19a69a);return new _0x144be3['File']([_0x45c23f],'image.'+_0x525383,{'type':_0x58da90});}const _0x235693=_0x2f7d6f['href']['split']('/'),_0x48c5cc=_0x235693[_0x235693['length']-0x1],_0x4687b6=_0x48c5cc['split']('.')[0x1];return _0x144be3['fetch'](_0x2f7d6f['href'])['then'](_0x35b561=>_0x35b561['clone']()['blob']())['then'](_0x3f30db=>new _0x144be3['File']([_0x3f30db],_0x48c5cc,{'type':'image/'+_0x4687b6}));}}class J extends _0x3ed71e{['imageEditController'];static get['requires'](){return[_0xe4994a];}['_isEditable'];constructor(_0x13c81d){super(_0x13c81d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3910e5){const _0x33537c=V(_0x3910e5);return _0x117347=>!(!_0x117347||!_0x117347['is']('element','imageBlock')&&!_0x117347['is']('element','imageInline'))&&(!!_0x117347['hasAttribute']('uploadcareImageId')||!!_0x117347['hasAttribute']('src')&&_0x33537c(_0x117347['getAttribute']('src')));}(_0x13c81d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x299cbd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x299cbd);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x206a50=this['editor']['model']['document']['selection']['getSelectedElement']();_0x206a50&&(_0x206a50['is']('element','imageBlock')||_0x206a50['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0xe4994a),_0x206a50),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3ed71e{['refresh'](){const _0x74a8eb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x74a8eb&&(_0x74a8eb['is']('element','imageBlock')||_0x74a8eb['is']('element','imageInline')));}['execute'](_0x4b0439){const _0x1bd4e3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x53fb52=>{_0x53fb52['setAttributes'](_0x4b0439,_0x1bd4e3),_0x53fb52['removeAttribute']('srcset',_0x1bd4e3),_0x53fb52['removeAttribute']('sizes',_0x1bd4e3);});}}class g extends _0x88e48a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x38cfc1,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x320c03}=this;_0x320c03['commands']['add']('uploadcareImageEdit',new J(_0x320c03)),_0x320c03['commands']['add']('uploadcareImageReplace',new O(_0x320c03));}}class j extends _0x88e48a{['_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 _0x2bfd2e=this['editor'];_0x2bfd2e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x33d7d8=>{const _0x1b929a=_0x2bfd2e['commands']['get']('uploadcareImageEdit'),_0x426092=new _0x51c610(_0x33d7d8),t=_0x33d7d8['t'];return _0x426092['set']({'icon':_0x4907c0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x426092['bind']('isEnabled')['to'](_0x1b929a),_0x426092['bind']('isOn')['to'](_0x1b929a,'isActive'),this['listenTo'](_0x426092,'execute',()=>{_0x2bfd2e['execute']('uploadcareImageEdit'),_0x2bfd2e['editing']['view']['focus']();}),_0x426092;}),this['_initConfig']();}['_initConfig'](){const _0x51408e=_0xc2750d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x51408e),this['listenTo'](this['editor'],'destroy',()=>{_0x51408e['remove']();});}}class P extends _0x88e48a{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']||={});
|