@ckeditor/ckeditor5-uploadcare 46.0.0-alpha.6 → 46.0.0-alpha.7
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 _0x24ff8b,Command as _0x507acf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x143ad0,IconGooglePhotos as _0x4df0cd,IconGoogleDrive as _0x9d3287,IconFacebook as _0x85e951,IconDropbox as _0x52a60c,IconUploadcareLink as _0x4bb573,IconUploadcareImageUpload as _0x467741,IconError as _0x4c3bea,IconUploadcareImageEdit as _0x235e44}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2f9902,MenuBarMenuListItemButtonView as _0x20a64a,View as _0x182251,FocusCycler as _0x116410,Dialog as _0x32b3cd,DialogViewPosition as _0x1700c5,SpinnerView as _0x3a80d7,IconView as _0x26589e,Notification as _0x131da7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x39b05a,DomEmitterMixin as _0x30f0c9,global as _0x1ad804,getAncestors as _0x2ae738,ObservableMixin as _0x215317,uid as _0x30f13b,createElement as _0x393c03}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1e672a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x469d9f,info as _0x1fa132}from'@uploadcare/upload-client';import*as _0x37f35b from'@uploadcare/file-uploader';var i=function(_0x5248bc){return _0x5248bc['Local']='local',_0x5248bc['URL']='url',_0x5248bc['Dropbox']='dropbox',_0x5248bc['GDrive']='gdrive',_0x5248bc['Facebook']='facebook',_0x5248bc['GPhotos']='gphotos',_0x5248bc['OneDrive']='onedrive',_0x5248bc;}({});function _(_0x46535b,_0x3eeb03,_0x57885d){const t=_0x46535b['t'],_0xf2b097=_0x46535b['t'];switch(_0x3eeb03){case i['Local']:return{'text':_0xf2b097('Insert'===_0x57885d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xf2b097('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x57885d?_0xf2b097('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xf2b097('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3eeb03;}}class e extends _0x24ff8b{['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 _0xb82e01=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2949f5;for(const _0x4432bd in _0xb82e01){const _0xde49b2=_0x4432bd,_0x41d80d=_0xb82e01[_0xde49b2];if('uploadcareLicenseKeyValid'==_0x41d80d||'uploadcareLicenseKeyInvalid'==_0x41d80d||'uploadcareLicenseKeyExpired'==_0x41d80d||'uploadcareLicenseKeyDomainLimit'==_0x41d80d||'uploadcareLicenseKeyNotAllowed'==_0x41d80d||'uploadcareLicenseKeyEvaluationLimit'==_0x41d80d||'uploadcareLicenseKeyTrialLimit'==_0x41d80d||'uploadcareLicenseKeyUsageLimit'==_0x41d80d){delete _0xb82e01[_0xde49b2],_0x2949f5=_0x41d80d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2949f5&&_0xb82e01['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2949f5&&_0xb82e01['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2949f5&&_0xb82e01['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2949f5&&_0xb82e01['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2949f5&&_0xb82e01['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2949f5&&_0xb82e01['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2949f5&&_0xb82e01['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4041da}=this,_0x2ab31a=_0x4041da['commands']['get']('uploadcare');if(!_0x2ab31a)return;const _0x462f5c=this['_normalizeConfigSourceList'](_0x4041da['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x114fe9,_0x407047)=>{const _0x6c946a=this['_getIntegrationKey'](_0x407047['type']);return _0x114fe9[_0x6c946a]||(_0x114fe9[_0x6c946a]=[]),_0x114fe9[_0x6c946a]['push'](_0x407047),_0x114fe9;},{});_0x4041da['plugins']['has']('ImageInsertUI')&&_0x4041da['commands']['get']('uploadcare')&&Object['entries'](_0x462f5c)['forEach'](([_0x36e563,_0x575e35])=>{_0x4041da['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x36e563,'observable':()=>_0x2ab31a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x575e35),'formViewCreator':()=>this['_createDropdownButtons'](_0x575e35),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x575e35),'override':'assetManager'!==_0x36e563});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xef4c91){const {locale:_0x517913}=this['editor'];return _0xef4c91['map'](_0x339ad6=>{const _0xf5b9bd=_(_0x517913,_0x339ad6,'Insert');switch(_0x339ad6){case i['Local']:return{'icon':_0x467741,'type':i['Local'],..._0xf5b9bd};case i['URL']:return{'icon':_0x4bb573,'type':i['URL'],..._0xf5b9bd};case i['Dropbox']:return{'icon':_0x52a60c,'type':i['Dropbox'],..._0xf5b9bd};case i['Facebook']:return{'icon':_0x85e951,'type':i['Facebook'],..._0xf5b9bd};case i['GDrive']:return{'icon':_0x9d3287,'type':i['GDrive'],..._0xf5b9bd};case i['GPhotos']:return{'icon':_0x4df0cd,'type':i['GPhotos'],..._0xf5b9bd};case i['OneDrive']:return{'icon':_0x143ad0,'type':i['OneDrive'],..._0xf5b9bd};}});}['_getIntegrationKey'](_0x39f10e){switch(_0x39f10e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xaf2d92,_0x21881a){const _0x33bca6=this['editor'],_0xd86661=new _0xaf2d92(_0x33bca6['locale']),_0xc46088=_0x33bca6['commands']['get']('uploadcare');return _0xd86661['bind']('isEnabled')['to'](_0xc46088),_0xd86661['on']('execute',()=>{_0xc46088['execute'](_0x21881a);}),_0xd86661;}['_createToolbarButton'](_0x7f1b7){const {locale:_0x45ddc6}=this['editor'],_0x2857e2=this['editor']['plugins']['get']('ImageInsertUI'),_0x54fdcf=_0x7f1b7[0x0],_0x308b3b=this['_createButton'](_0x2f9902,_0x54fdcf['type']);return _0x308b3b['icon']=_0x54fdcf['icon'],_0x308b3b['bind']('label')['to'](_0x2857e2,'isImageSelected',_0x414649=>_(_0x45ddc6,_0x54fdcf['type'],_0x414649?'Replace':'Insert')['text']),_0x308b3b['tooltip']=!0x0,_0x308b3b;}['_createDropdownButtons'](_0x2ad597){const {locale:_0xd3afde}=this['editor'],_0x2660ef=this['editor']['plugins']['get']('ImageInsertUI');return _0x2ad597['map'](_0x4790d7=>{const _0x542efb=this['_createButton'](_0x2f9902,_0x4790d7['type']);return _0x542efb['withText']=!0x0,_0x542efb['icon']=_0x4790d7['icon'],_0x542efb['bind']('label')['to'](_0x2660ef,'isImageSelected',_0x1b563c=>_(_0xd3afde,_0x4790d7['type'],_0x1b563c?'Replace':'Insert')['text']),_0x542efb;});}['_createMenuBarButtons'](_0x586652){return _0x586652['map'](_0x171e5e=>{const _0x4aacad=this['_createButton'](_0x20a64a,_0x171e5e['type']);return _0x4aacad['icon']=_0x171e5e['icon'],_0x4aacad['label']=_0x171e5e['shortText'],_0x4aacad;});}}class F extends _0x182251{['focusTracker'];['focusCycler'];constructor(_0x43b218){super(_0x43b218),this['focusTracker']=new _0x39b05a(),this['focusCycler']=new _0x116410({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x120eac,_0x217f5f){super(_0x120eac),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-'+_0x217f5f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x3eb2c5,_0x542d86){const _0x3e0863=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3648d8=>_0x3648d8<=_0x542d86)['map'](_0x457ff9=>_0x3eb2c5['replace'](/\/$/,'')+'/-/resize/'+_0x457ff9+'x/\x20'+_0x457ff9+'w');return{'imageFallbackUrl':_0x3eb2c5,'imageSources':[{'srcset':_0x3e0863['join'](',\x20'),'sizes':'(max-width:\x20'+_0x542d86+'px)\x20100vw,\x20'+_0x542d86+'px','type':'image/webp'}]};}function C(_0x14e7cc,_0x7d975c,_0x1ee4b9){const _0x4db819=_0x14e7cc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4db819?parseInt(_0x4db819[0x1],0xa):_0x7d975c,'height':_0x4db819?parseInt(_0x4db819[0x2],0xa):_0x1ee4b9};}function p(_0x28dc05,_0x3623a9){const _0x58935c=new(_0x30f0c9())(),_0x2bdfeb=_0x28dc05['plugins']['get']('ImageUtils'),_0x3ee60b=_0x28dc05['editing']['mapper']['toViewElement'](_0x3623a9),_0x3bea4c=_0x2bdfeb['findViewImgElement'](_0x3ee60b),_0x523ab3=_0x28dc05['editing']['view']['domConverter']['viewToDom'](_0x3bea4c),_0x4ed678=_0x3623a9['getAttribute']('width'),_0x585c97=_0x3623a9['getAttribute']('height'),_0x1f5807='image-processing';_0x28dc05['editing']['view']['change'](_0x28d234=>{_0x28d234['addClass'](_0x1f5807,_0x3ee60b),_0x28d234['setStyle']('aspect-ratio',_0x4ed678+'/'+_0x585c97,_0x3bea4c);}),_0x58935c['listenTo'](_0x523ab3,'load',()=>{_0x58935c['stopListening'](_0x523ab3,'load'),_0x28dc05['editing']['view']['change'](_0x209242=>{_0x209242['removeClass'](_0x1f5807,_0x3ee60b),_0x209242['removeStyle']('aspect-ratio',_0x3bea4c);});});}function G(_0x36abfd){if(Array['isArray'](_0x36abfd)){const _0x1755b7=_0x36abfd['map'](G);return _0x356d60=>_0x1755b7['some'](_0x434b22=>_0x434b22(_0x356d60));}if('origin'==_0x36abfd){const _0x4e1811=_0x1ad804['window']['location']['origin'];return _0x559b2f=>new URL(_0x559b2f,_0x1ad804['document']['baseURI'])['origin']==_0x4e1811;}return'function'==typeof _0x36abfd?_0x36abfd:_0x36abfd instanceof RegExp?_0x47b6bf=>!(!_0x47b6bf['match'](_0x36abfd)&&!_0x47b6bf['replace'](/^https?:\/\//,'')['match'](_0x36abfd)):()=>!0x1;}function S(_0x16a7f9,_0x5d1e7b){return _0x2ae738(_0x16a7f9['target'])['includes'](_0x5d1e7b);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x215317(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x50ac48,_0x50462e,_0x1079fd){super(),this['_editor']=_0x50ac48,this['_editing']=_0x50462e,this['_dialog']=_0x50ac48['plugins']['get'](_0x32b3cd),this['_api']=_0x50462e['ctxElement']['getAPI'](),this['_type']=_0x1079fd,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:_0x4661cf,model:_0x26a6e3}=this['_editor'],_0x4395dd=_0x26a6e3['document']['selection']['getSelectedElement'](),_0x22e72a=_0x4395dd&&(_0x4395dd['is']('element','imageBlock')||_0x4395dd['is']('element','imageInline'));this['_formView']=new x(_0x4661cf,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x467741,'title':_(_0x4661cf,this['_type'],_0x22e72a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1700c5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x38ec84=>!S(_0x38ec84,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3062fb}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x534776=>{const _0x3da210=_0x3062fb['length'];for(const _0x54996e of _0x3062fb){const _0x42dd1a=_0x54996e===_0x3062fb[_0x3da210-0x1],{cdnUrl:_0x330139,fileInfo:_0x1a6a1c}=_0x54996e;if(!_0x330139||!_0x1a6a1c)continue;const {width:_0x8a82bc,height:_0x492b04}=_0x1a6a1c['imageInfo'],_0x587400=C(_0x330139,_0x8a82bc,_0x492b04),_0x177d1c=k(_0x330139,_0x587400['width']),_0x2f4a5a={'id':_0x1a6a1c['uuid'],'type':'image','attributes':{'imageDimension':_0x587400,..._0x177d1c}};this['_insertAsset'](_0x2f4a5a,_0x42dd1a,_0x534776);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x270f59=>{'idle'===_0x270f59['detail']['status']&&!_0x270f59['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5a4a66,_0x5ae42c,_0x3fe4e3){const _0x7c40ba=this['_editor']['model']['document']['selection'],_0x11d090=_0x7c40ba['getSelectedElement'](),_0x1fbc57=!(!_0x11d090||!_0x11d090['is']('element','imageInline'));_0x3fe4e3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5a4a66,_0x1fbc57),_0x5ae42c||_0x3fe4e3['setSelection'](_0x7c40ba['getLastPosition']());}['_insertImage'](_0x4a8c9e,_0x68ed59){const _0x3a0992=this['_editor'],{imageDimension:_0xd602c,imageFallbackUrl:_0x339e68,imageSources:_0xaad314}=_0x4a8c9e['attributes'];_0x3a0992['execute']('insertImage',{'imageType':_0x68ed59?'imageInline':null,'source':{'uploadcareImageId':_0x4a8c9e['id'],'src':_0x339e68,'sources':_0xaad314,..._0xd602c}});}}class w extends _0x507acf{['_editing'];['_controller']=null;static get['requires'](){return[_0x32b3cd,o];}constructor(_0x17e0cc){super(_0x17e0cc),this['_editing']=_0x17e0cc['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x46c3ba){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x46c3ba);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x29c3ec,publicKey:_0x213f6b,signal:_0x393b44,onProgress:_0x4f383a}){return _0x469d9f(_0x29c3ec,{'publicKey':_0x213f6b,'store':'auto','signal':_0x393b44,'onProgress':_0x4f383a});}static['getInfo'](_0x3fb10a,_0x4566d0){return _0x1fa132(_0x3fb10a,_0x4566d0);}}class f extends _0x24ff8b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1e672a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x59436e=this['editor'];if(!!!_0x59436e['config']['get']('uploadcare'))return;_0x59436e['plugins']['get'](_0x1e672a)['createUploadAdapter']=_0x5a02c8=>new A(_0x5a02c8,_0x59436e),_0x59436e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xc049e7,{imageElement:_0x25574f,data:_0x9bbf81})=>{_0x59436e['model']['change'](_0x56fdcb=>{_0x56fdcb['setAttribute']('uploadcareImageId',_0x9bbf81['uploadcareImageId'],_0x25574f);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x57350d,_0x41a43c){this['loader']=_0x57350d,this['editor']=_0x41a43c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x538340=this['editor']['config']['get']('uploadcare.pubkey'),_0x449b03=await this['loader']['file'];return j['upload']({'file':_0x449b03,'publicKey':_0x538340,'signal':this['controller']['signal'],'onProgress':_0x276363=>{_0x276363&&_0x276363['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x276363['value']);}})['then'](async _0x34b3dc=>{const {imageFallbackUrl:_0xeee597,imageSources:_0x2f3846}=k(_0x34b3dc['cdnUrl'],_0x34b3dc['imageInfo']['width']);return{'uploadcareImageId':_0x34b3dc['uuid'],'default':_0xeee597,'sources':_0x2f3846};})['catch'](()=>{const _0x4671a1=t('Cannot\x20upload\x20file:')+('\x20'+_0x449b03['name']+'.');return Promise['reject'](_0x4671a1);});}['abort'](){this['controller']['abort']();}}class o extends _0x24ff8b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x32b3cd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5b3143){super(_0x5b3143),this['ucContextId']=_0x30f13b();}['init'](){const _0x534ec1=this['editor'];_0x534ec1['commands']['add']('uploadcare',new w(_0x534ec1));}['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 _0x3ba0ea=_0x1ad804['document']['querySelector']('input[uploadcare-file-input]');_0x3ba0ea&&_0x3ba0ea['remove']();}),async function(_0x53b18c){const _0x517b4a=_0x621431([0x61,0x76,0x36,0x4b,0x54,0x74,0x55,0x39,0x32,0x79,0x4d,0x5a,0x49,0x52,0x68,0x70,0x47,0x45,0x65,0x34,0x43,0x67,0x30,0x69,0x41,0x35,0x7a,0x31,0x37,0x6a,0x4a,0x78,0x6d,0x75,0x64,0x6b,0x50,0x51,0x6c,0x38,0x4e,0x6f,0x73,0x77,0x6e,0x33,0x4c,0x4f,0x63,0x46,0x58,0x72,0x44,0x59,0x62,0x48,0x66,0x56,0x71,0x42,0x57,0x53]),_0x932f10=0x52e0464,_0x273c85=0x5296884^_0x932f10,_0x5161a4=window[_0x621431([0x44,0x61,0x74,0x65])][_0x621431([0x6e,0x6f,0x77])](),_0x4875ba=_0x53b18c[_0x621431([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x83d797=new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f36f1=>{_0x4875ba[_0x621431([0x6f,0x6e,0x63,0x65])](_0x621431([0x72,0x65,0x61,0x64,0x79]),_0x4f36f1);}),_0x3cb8bf={[_0x621431([0x6b,0x74,0x79])]:_0x621431([0x45,0x43]),[_0x621431([0x75,0x73,0x65])]:_0x621431([0x73,0x69,0x67]),[_0x621431([0x63,0x72,0x76])]:_0x621431([0x50,0x2d,0x32,0x35,0x36]),[_0x621431([0x78])]:_0x621431([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]),[_0x621431([0x79])]:_0x621431([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]),[_0x621431([0x61,0x6c,0x67])]:_0x621431([0x45,0x53,0x32,0x35,0x36])},_0x5b9855=_0x4875ba[_0x621431([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x621431([0x67,0x65,0x74])](_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x525e91(){let _0xb773ae,_0x5b3938=null,_0x159b13=null;try{if(_0x5b9855==_0x621431([0x47,0x50,0x4c]))return _0x621431([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb773ae=_0x50aa69(),!_0xb773ae)return _0x621431([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb773ae[_0x621431([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x159b13=_0x59d7c0(_0xb773ae[_0x621431([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb773ae[_0x621431([0x6a,0x74,0x69])])),await _0x2a65b1()?_0x1867b5()?_0x3db793()?_0x621431([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x571178()?(_0xb773ae[_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x621431([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b3938=_0x3dcaec(_0x621431([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xb773ae[_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x621431([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b3938=_0x3dcaec(_0x621431([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x357a5a()):_0x621431([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x621431([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x621431([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x621431([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3db793(){const _0x5a6bd0=[_0x621431([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x621431([0x74,0x72,0x69,0x61,0x6c])][_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb773ae[_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5161a4/0x3e8:0xe10*_0x273c85;return _0xb773ae[_0x621431([0x65,0x78,0x70])]<_0x5a6bd0;}function _0x1867b5(){const _0x53f0a7=_0xb773ae[_0x621431([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x53f0a7&&(!!_0x53f0a7[_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x621431([0x2a]))||!!_0x53f0a7[_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x621431([0x55,0x50,0x4c,0x43])));}function _0x571178(){const _0x1c535d=_0xb773ae[_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c535d||0x0==_0x1c535d[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x125ad1}=new URL(window[_0x621431([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c535d[_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x125ad1))return!0x0;const _0x5e7a11=_0x125ad1[_0x621431([0x73,0x70,0x6c,0x69,0x74])](_0x621431([0x2e]));return _0x1c535d[_0x621431([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x172a3a=>_0x172a3a[_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x621431([0x2a])))[_0x621431([0x6d,0x61,0x70])](_0x284af3=>_0x284af3[_0x621431([0x73,0x70,0x6c,0x69,0x74])](_0x621431([0x2e])))[_0x621431([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x317834=>_0x317834[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e7a11[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x621431([0x6d,0x61,0x70])](_0x473387=>Array(_0x5e7a11[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x473387[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x621431([0x66,0x69,0x6c,0x6c])](_0x473387[0x0]===_0x621431([0x2a])?_0x621431([0x2a]):'')[_0x621431([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x473387))[_0x621431([0x73,0x6f,0x6d,0x65])](_0x39b1e3=>_0x5e7a11[_0x621431([0x65,0x76,0x65,0x72,0x79])]((_0x32c9c4,_0x4efbb7)=>_0x39b1e3[_0x4efbb7]===_0x32c9c4||_0x39b1e3[_0x4efbb7]===_0x621431([0x2a])));}function _0x357a5a(){return _0x5b3938&&_0x159b13?new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e41c0,_0xafea76)=>{_0x5b3938[_0x621431([0x74,0x68,0x65,0x6e])](_0x4e41c0,_0xafea76),_0x159b13[_0x621431([0x74,0x68,0x65,0x6e])](_0x9c3164=>{_0x9c3164!=_0x621431([0x56,0x61,0x6c,0x69,0x64])&&_0x4e41c0(_0x9c3164);},_0xafea76);}):_0x5b3938||_0x159b13||_0x621431([0x56,0x61,0x6c,0x69,0x64]);}}function _0x59d7c0(_0xbb8cea,_0x2e1f45){return new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6eea4a=>{if(_0x277df8())return _0x6eea4a(_0x621431([0x56,0x61,0x6c,0x69,0x64]));_0x376bb6(),_0x4875ba[_0x621431([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x621431([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x467f25=!0x1;const _0x8e9800=_0x30f13b();function _0x7d4f26(_0x1cba70){return!!_0x1cba70&&(typeof _0x1cba70===_0x621431([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1cba70===_0x621431([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1cba70[_0x621431([0x74,0x68,0x65,0x6e])]===_0x621431([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1cba70[_0x621431([0x63,0x61,0x74,0x63,0x68])]===_0x621431([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b2221(_0x1ffdea){_0x82b1bf(_0x1ffdea)[_0x621431([0x74,0x68,0x65,0x6e])](_0x10687e=>{if(!_0x10687e||_0x10687e[_0x621431([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x621431([0x6f,0x6b]))return _0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x94a7fa(_0x18c5d0(_0x8e9800+_0x2e1f45))!=_0x10687e[_0x621431([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x621431([0x56,0x61,0x6c,0x69,0x64]);})[_0x621431([0x74,0x68,0x65,0x6e])](_0x470f24=>(_0x3921e5(),_0x470f24),()=>{const _0x5d55d2=_0x2eac29();return null==_0x5d55d2?(_0x3921e5(),_0x621431([0x56,0x61,0x6c,0x69,0x64])):_0x621431(_0x5161a4-_0x5d55d2>(0x21228064^_0x932f10)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x621431([0x74,0x68,0x65,0x6e])](_0x6eea4a)[_0x621431([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6eea4a(_0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2046e9=0x518eae4^_0x932f10;function _0x3921e5(){const _0x52e632=_0x621431([0x6c,0x6c,0x63,0x74,0x2d])+_0x94a7fa(_0x18c5d0(_0xbb8cea)),_0x5d968f=_0x4b4daf(_0x94a7fa(window[_0x621431([0x4d,0x61,0x74,0x68])][_0x621431([0x63,0x65,0x69,0x6c])](_0x5161a4/_0x2046e9)));window[_0x621431([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x621431([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52e632,_0x5d968f);}function _0x2eac29(){const _0x238693=_0x621431([0x6c,0x6c,0x63,0x74,0x2d])+_0x94a7fa(_0x18c5d0(_0xbb8cea)),_0x51b543=window[_0x621431([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x621431([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x238693);return _0x51b543?window[_0x621431([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b4daf(_0x51b543),0x10)*_0x2046e9:null;}function _0x82b1bf(_0x5312cc){return new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a9903,_0x117ef3)=>{_0x5312cc[_0x621431([0x74,0x68,0x65,0x6e])](_0x1a9903,_0x117ef3),window[_0x621431([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x117ef3,0x52fd0a4^_0x932f10);});}}_0x4875ba[_0x621431([0x6f,0x6e])](_0x621431([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a8eac,_0x4c58ae)=>{if(_0x4c58ae[0x0]!=_0xbb8cea)return _0x6eea4a(_0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c58ae[0x1]={..._0x4c58ae[0x1],[_0x621431([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8e9800};},{[_0x621431([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x621431([0x68,0x69,0x67,0x68])}),_0x4875ba[_0x621431([0x6f,0x6e])](_0x621431([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe4f365=>{_0x7d4f26(_0xe4f365[_0x621431([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x467f25=!0x0,_0x3b2221(_0xe4f365[_0x621431([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x621431([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x621431([0x6c,0x6f,0x77])}),_0x83d797[_0x621431([0x74,0x68,0x65,0x6e])](()=>{_0x467f25||_0x6eea4a(_0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x277df8(){return _0x4875ba[_0x621431([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x621431([0x76,0x69,0x65,0x77])][_0x621431([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x621431([0x61,0x75,0x74,0x6f]);}function _0x376bb6(){_0x4875ba[_0x621431([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x621431([0x76,0x69,0x65,0x77])][_0x621431([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x621431([0x61,0x75,0x74,0x6f]);}}function _0x3dcaec(_0x2f1698){const _0x21045a=[new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f311b=>setTimeout(_0x1f311b,0x5273aa8^_0x932f10)),_0x83d797[_0x621431([0x74,0x68,0x65,0x6e])](()=>new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x73fd53=>{let _0x458265=0x0;_0x4875ba[_0x621431([0x6d,0x6f,0x64,0x65,0x6c])][_0x621431([0x6f,0x6e])](_0x621431([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1cbaa6,_0x12e7f5)=>{_0x12e7f5[0x0][_0x621431([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x458265++,_0x458265==(0x52e059c^_0x932f10)&&(_0x73fd53(),_0x1cbaa6[_0x621431([0x6f,0x66,0x66])]());});}))];return window[_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x621431([0x72,0x61,0x63,0x65])](_0x21045a)[_0x621431([0x74,0x68,0x65,0x6e])](()=>_0x2f1698);}async function _0x301ce7(){await _0x83d797,_0x4875ba[_0x621431([0x6d,0x6f,0x64,0x65,0x6c])][_0x621431([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x982de,_0x4875ba[_0x621431([0x6d,0x6f,0x64,0x65,0x6c])][_0x621431([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x982de,_0x4875ba[_0x621431([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x621431([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f4a12(_0x354a5e){const _0x17e527=_0x429b69();_0x4875ba[_0x17e527]=_0x621431([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x354a5e,_0x354a5e!=_0x621431([0x56,0x61,0x6c,0x69,0x64])&&_0x301ce7();}function _0x429b69(){const _0x22743b=window[_0x621431([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x621431([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x621431([0x6e,0x6f,0x77])]())[_0x621431([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x621431([0x2e]),'');let _0x3aa468=_0x621431([0x61]);for(let _0x516c8e=0x0;_0x516c8e<_0x22743b[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x516c8e+=0x2){let _0x5b0929=window[_0x621431([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22743b[_0x621431([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x516c8e,_0x516c8e+0x2));_0x5b0929>=_0x517b4a[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b0929-=_0x517b4a[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3aa468+=_0x517b4a[_0x5b0929];}return _0x3aa468;}function _0x50aa69(){const _0x1731c6=_0x5b9855[_0x621431([0x73,0x70,0x6c,0x69,0x74])](_0x621431([0x2e]));if(0x3!=_0x1731c6[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a5081(_0x1731c6[0x1]);function _0x3a5081(_0x1202f4){const _0x5dae0a=_0x4b9710(_0x1202f4);return _0x5dae0a&&_0x33ac94()?_0x5dae0a:null;function _0x33ac94(){const _0x4dab6d=_0x5dae0a[_0x621431([0x6a,0x74,0x69])],_0x23347f=window[_0x621431([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dab6d[_0x621431([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dab6d[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x351389={..._0x5dae0a,[_0x621431([0x6a,0x74,0x69])]:_0x4dab6d[_0x621431([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4dab6d[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x351389[_0x621431([0x76,0x63])],_0x18c5d0(_0x351389)==_0x23347f;}}}async function _0x2a65b1(){let _0x201325=!0x0;try{const _0x406ba6=_0x5b9855[_0x621431([0x73,0x70,0x6c,0x69,0x74])](_0x621431([0x2e])),[_0x2b3d21,_0x26eeb9,_0x1ac5b4]=_0x406ba6;return _0x5042da(_0x2b3d21),await _0x205ff4(_0x2b3d21,_0x26eeb9,_0x1ac5b4),_0x201325;}catch{return!0x1;}function _0x5042da(_0x90760d){const _0x27c745=_0x4b9710(_0x90760d);_0x27c745&&_0x27c745[_0x621431([0x61,0x6c,0x67])]==_0x621431([0x45,0x53,0x32,0x35,0x36])||(_0x201325=!0x1);}async function _0x205ff4(_0x8c3e28,_0x1abbbf,_0x50a2ed){const _0x2e5fea=window[_0x621431([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x621431([0x66,0x72,0x6f,0x6d])](_0x1efcc6(_0x50a2ed),_0x1f7d3d=>_0x1f7d3d[_0x621431([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc4bffd=new window[(_0x621431([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x621431([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8c3e28+_0x621431([0x2e])+_0x1abbbf),_0x543300=window[_0x621431([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x621431([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x543300)return;const _0x5b255c=await _0x543300[_0x621431([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x621431([0x6a,0x77,0x6b]),_0x3cb8bf,{[_0x621431([0x6e,0x61,0x6d,0x65])]:_0x621431([0x45,0x43,0x44,0x53,0x41]),[_0x621431([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x621431([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x621431([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x543300[_0x621431([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x621431([0x6e,0x61,0x6d,0x65])]:_0x621431([0x45,0x43,0x44,0x53,0x41]),[_0x621431([0x68,0x61,0x73,0x68])]:{[_0x621431([0x6e,0x61,0x6d,0x65])]:_0x621431([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5b255c,_0x2e5fea,_0xc4bffd)||(_0x201325=!0x1);}}function _0x4b9710(_0x4ba240){return _0x4ba240[_0x621431([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x621431([0x65,0x79]))?JSON[_0x621431([0x70,0x61,0x72,0x73,0x65])](_0x1efcc6(_0x4ba240)):null;}function _0x1efcc6(_0x32daab){return window[_0x621431([0x61,0x74,0x6f,0x62])](_0x32daab[_0x621431([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x621431([0x2b]))[_0x621431([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x621431([0x2f])));}function _0x18c5d0(_0x54072b){let _0x3538f6=0x1505;function _0x4c1375(_0x243ccc){for(let _0x44a67d=0x0;_0x44a67d<_0x243ccc[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44a67d++){const _0x106ec8=_0x243ccc[_0x621431([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44a67d);_0x3538f6=(_0x3538f6<<0x5)+_0x3538f6+_0x106ec8,_0x3538f6&=_0x3538f6;}}function _0x1aba09(_0x35c587){Array[_0x621431([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35c587)?_0x35c587[_0x621431([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1aba09):_0x35c587&&typeof _0x35c587==_0x621431([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x621431([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35c587)[_0x621431([0x73,0x6f,0x72,0x74])]()[_0x621431([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13bd00,_0x3c9047])=>{_0x4c1375(_0x13bd00),_0x1aba09(_0x3c9047);}):_0x4c1375(window[_0x621431([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35c587));}return _0x1aba09(_0x54072b),_0x3538f6>>>0x0;}function _0x94a7fa(_0x49225c){return _0x49225c[_0x621431([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x621431([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x621431([0x30]));}function _0x4b4daf(_0x2462a3){return _0x2462a3[_0x621431([0x73,0x70,0x6c,0x69,0x74])]('')[_0x621431([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x621431([0x6a,0x6f,0x69,0x6e])]('');}function _0x982de(){}function _0x621431(_0x3f7029){return _0x3f7029['map'](_0x28dd2a=>String['fromCharCode'](_0x28dd2a))['join']('');}_0x3f4a12(await _0x525e91());}(this);}['_initSchema'](){const _0x350c15=this['editor']['model']['schema'];_0x350c15['isRegistered']('imageBlock')&&_0x350c15['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x350c15['isRegistered']('imageInline')&&_0x350c15['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2c01a4=this['editor'];_0x2c01a4['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2c01a4['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x526f0b=>_0x526f0b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e8847=_0x2c01a4['commands']['get']('replaceImageSource');_0x1e8847&&this['listenTo'](_0x1e8847,'cleanupImage',(_0x255db8,[_0xb4573c,_0x387b18])=>{_0xb4573c['removeAttribute']('uploadcareImageId',_0x387b18);});}['_initConfig'](){const _0x1daac7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x582c60=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x393c03(_0x1ad804['document'],'uc-config',{..._0x1daac7,'pubkey':_0x582c60,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0xc26df5=>{if('closeMax'==_0xc26df5)return'#uc-icon-arrow-down';},_0x1ad804['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x393c03(_0x1ad804['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1ad804['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x13f07e=this['editor']['commands']['get']('insertImage');_0x13f07e&&this['listenTo'](_0x13f07e,'execute',()=>{const _0x441567=this['editor']['model']['document']['selection']['getSelectedElement']();_0x441567&&_0x441567['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x441567);});});const _0x18cb66=this['editor']['commands']['get']('uploadcareImageReplace');_0x18cb66&&this['listenTo'](_0x18cb66,'execute',()=>{const _0x30917b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x30917b&&_0x30917b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x30917b);});});}}class tt extends _0x24ff8b{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c866b){super(_0x3c866b),_0x3c866b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x37f35b['defineComponents'](_0x37f35b);}}class ii extends _0x182251{constructor(_0x5cd671){super(_0x5cd671);const t=_0x5cd671['t'],_0x363f1e=this['bindTemplate'],_0x1e96a9=new _0x3a80d7();_0x1e96a9['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':[_0x1e96a9,{'text':_0x363f1e['to']('imageUploadProgress',_0x136d17=>t('Loading\x20image...')+'\x20('+(_0x136d17||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x182251{constructor(_0x2fc502){super(_0x2fc502);const t=_0x2fc502['t'];this['set']('errorType',null);const _0x2d83e1=new _0x2f9902(_0x2fc502);_0x2d83e1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2d83e1['withText']=!0x0,_0x2d83e1['class']='ck-button-action',_0x2d83e1['on']('execute',()=>{this['fire']('retry');}),_0x2d83e1['bind']('isVisible')['to'](this,'errorType',_0x20e377=>'NotFound'!==_0x20e377);const _0x4c5eb1=new _0x26589e();_0x4c5eb1['content']=_0x4c3bea,_0x4c5eb1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x398f56=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':[_0x4c5eb1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x398f56['to']('errorType',_0x35aec6=>t('NotFound'!==_0x35aec6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2d83e1]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x182251{constructor(_0x5c21df,_0x465ad2){super(_0x5c21df);const _0x46fe07=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x465ad2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x46fe07['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4b18e1,_0x63d5a3,_0x58e891){super(_0x4b18e1),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4b18e1),this['_errorView']=new ti(_0x4b18e1),this['_editingView']=new ei(_0x4b18e1,_0x58e891),this['_focusableView']=new _0x182251(_0x4b18e1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x63d5a3),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'],_0x4924e3=>{this['_addUploadcareImageEditorListeners'](_0x4924e3);});}),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'](_0x7e593d,_0x3a32d4){const _0x1332e7='uc-cloud-image-editor',_0x4ad682=_0x7e593d['querySelector'](_0x1332e7);if(_0x4ad682)return _0x3a32d4(_0x4ad682);const _0x5acca7=new MutationObserver(_0x69ef97=>{const _0x2de464=_0x69ef97['filter'](_0x3326c0=>_0x3326c0['target']===_0x7e593d&&_0x3326c0['addedNodes']['length']>0x0&&_0x3326c0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1332e7);_0x2de464['length']&&(_0x5acca7['disconnect'](),_0x3a32d4(_0x2de464[0x0]['addedNodes'][0x0]));});_0x5acca7['observe'](_0x7e593d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4f7e95){_0x4f7e95['addEventListener']('apply',_0x23051a=>{this['fire']('apply',{'imageSrc':_0x23051a['detail']['cdnUrl']});}),_0x4f7e95['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x215317(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5761ab,_0x262941,_0x4935b6){super(),this['_editor']=_0x5761ab,this['_dialog']=_0x262941,this['_imageElement']=_0x4935b6,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 _0x20f401=this['_imageElement'],_0x4498e2=_0x20f401['getAttribute']('uploadcareImageId'),_0x2b02d4=_0x20f401['getAttribute']('src');if(_0x4498e2)await this['_loadImageInfo'](_0x4498e2,_0x2b02d4);else{if(this['_imageCache']['has'](_0x2b02d4)){const _0x792c98=this['_imageCache']['get'](_0x2b02d4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x792c98['url'],this['imageDimension']=_0x792c98['dimension'],this['imageId']=_0x792c98['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3fa884}=this['_editor'],t=_0x3fa884['t'],_0x348cfa=new X(_0x3fa884,this['imageStatus'],this['_attributes']);_0x348cfa['bind']('status')['to'](this,'imageStatus'),_0x348cfa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x348cfa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x348cfa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x348cfa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x235e44,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x348cfa,'position':_0x1700c5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x348cfa['focus']();},'onHide':()=>{_0x348cfa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e57e6=>!S(_0x1e57e6,_0x348cfa['element'])}});}['_loadImageInfo'](_0x303b3e,_0x41ba11){return j['getInfo'](_0x303b3e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5e7766=>{const {width:_0x5ec255,height:_0x326ff8}=_0x5e7766['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x41ba11,this['imageDimension']={'width':_0x5ec255,'height':_0x326ff8},this['imageId']=_0x303b3e;})['catch'](_0x4100a8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4100a8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5756bb,_0x476e1a){return this['_getImageAsFile'](_0x5756bb)['then'](_0x5ebd94=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x476e1a['signal'],'file':_0x5ebd94,'onProgress':_0x2e90a9=>{_0x2e90a9&&_0x2e90a9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2e90a9['value']));}}))['then'](_0x471910=>{const {width:_0x5d67de,height:_0x184075}=_0x471910['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x471910['cdnUrl'],this['imageDimension']={'width':_0x5d67de,'height':_0x184075},this['imageId']=_0x471910['uuid'],this['imageUploadProgress']=null;const _0x382d04=_0x5756bb['getAttribute']('src');this['_imageCache']['set'](_0x382d04,{'id':_0x471910['uuid'],'url':_0x471910['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x44c38a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x44c38a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1973d9,_0xa59312){_0x1973d9['on']('apply',(_0x271afb,_0x4559d7)=>{this['_replaceImage'](_0xa59312,_0x4559d7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1973d9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1973d9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5b247c,_0x3e6df3,_0x44e2be){const _0x458add=this['_editor'],{width:_0x2ed037,height:_0x50f6e6}=C(_0x3e6df3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1c99c8,imageSources:_0x572761}=k(_0x3e6df3,_0x2ed037);_0x458add['model']['change'](_0x59cd19=>{if('$graveyard'===_0x5b247c['root']['rootName']){_0x458add['execute']('insertImage',{'imageType':_0x5b247c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5b247c['getAttributes']()),'uploadcareImageId':_0x44e2be,'src':_0x1c99c8,'sources':_0x572761,'width':_0x2ed037,'height':_0x50f6e6}});const _0x51c1c1=_0x5b247c['getChildren']();_0x5b247c=_0x458add['model']['document']['selection']['getSelectedElement']();for(const _0x7ebefc of _0x51c1c1)_0x59cd19['append'](_0x59cd19['cloneElement'](_0x7ebefc),_0x5b247c);}else _0x59cd19['setSelection'](_0x5b247c,'on'),_0x458add['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5b247c['getAttributes']()),'uploadcareImageId':_0x44e2be,'src':_0x1c99c8,'sources':_0x572761,'width':_0x2ed037,'height':_0x50f6e6},_0x5b247c);_0x59cd19['setSelection'](_0x5b247c,'on');});}async['_getImageAsFile'](_0x264914){const _0x5ae991=_0x1ad804['window'],_0x503012=_0x1ad804['document']['location']['href'],_0x3a1f7f=new _0x5ae991['URL'](_0x264914['getAttribute']('src'),_0x503012);if('data:'===_0x3a1f7f['protocol']){const _0x4f8048=_0x3a1f7f['href']['split'](','),_0x5827d7=_0x4f8048[0x0]['match'](/:(.*?);/)[0x1],_0x1c42c0=_0x5827d7['split']('/')[0x1],_0x12e4a7=_0x5ae991['atob'](_0x4f8048[_0x4f8048['length']-0x1]);let _0x4dd315=_0x12e4a7['length'];const _0x430e70=new _0x5ae991['Uint8Array'](_0x4dd315);for(;_0x4dd315--;)_0x430e70[_0x4dd315]=_0x12e4a7['charCodeAt'](_0x4dd315);return new _0x5ae991['File']([_0x430e70],'image.'+_0x1c42c0,{'type':_0x5827d7});}const _0x14d7d0=_0x3a1f7f['href']['split']('/'),_0x5da22c=_0x14d7d0[_0x14d7d0['length']-0x1],_0x4b802f=_0x5da22c['split']('.')[0x1];return _0x5ae991['fetch'](_0x3a1f7f['href'])['then'](_0x56c645=>_0x56c645['clone']()['blob']())['then'](_0x35a4a6=>new _0x5ae991['File']([_0x35a4a6],_0x5da22c,{'type':'image/'+_0x4b802f}));}}class O extends _0x507acf{['imageEditController'];static get['requires'](){return[_0x32b3cd];}['_isEditable'];constructor(_0x39439d){super(_0x39439d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x118a23){const _0x175916=G(_0x118a23);return _0x1e96fa=>!(!_0x1e96fa||!_0x1e96fa['is']('element','imageBlock')&&!_0x1e96fa['is']('element','imageInline'))&&(!!_0x1e96fa['hasAttribute']('uploadcareImageId')||!!_0x1e96fa['hasAttribute']('src')&&_0x175916(_0x1e96fa['getAttribute']('src')));}(_0x39439d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x681554=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x681554);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x270c71=this['editor']['model']['document']['selection']['getSelectedElement']();_0x270c71&&(_0x270c71['is']('element','imageBlock')||_0x270c71['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x32b3cd),_0x270c71),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x507acf{['refresh'](){const _0x3319fa=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3319fa&&(_0x3319fa['is']('element','imageBlock')||_0x3319fa['is']('element','imageInline')));}['execute'](_0x5b537f){const _0x4bb8a5=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x13236c=>{_0x13236c['setAttributes'](_0x5b537f,_0x4bb8a5),_0x13236c['removeAttribute']('srcset',_0x4bb8a5),_0x13236c['removeAttribute']('sizes',_0x4bb8a5);});}}class m extends _0x24ff8b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x131da7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x569744}=this;_0x569744['commands']['add']('uploadcareImageEdit',new O(_0x569744)),_0x569744['commands']['add']('uploadcareImageReplace',new R(_0x569744));}}class g extends _0x24ff8b{['_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 _0x183114=this['editor'];_0x183114['ui']['componentFactory']['add']('uploadcareImageEdit',_0x54e304=>{const _0x20de1e=_0x183114['commands']['get']('uploadcareImageEdit'),_0x30bdf8=new _0x2f9902(_0x54e304),t=_0x54e304['t'];return _0x30bdf8['set']({'icon':_0x235e44,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x30bdf8['bind']('isEnabled')['to'](_0x20de1e),_0x30bdf8['bind']('isOn')['to'](_0x20de1e,'isActive'),this['listenTo'](_0x30bdf8,'execute',()=>{_0x183114['execute']('uploadcareImageEdit'),_0x183114['editing']['view']['focus']();}),_0x30bdf8;}),this['_initConfig']();}['_initConfig'](){const _0x37558d=_0x393c03(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x37558d),this['listenTo'](this['editor'],'destroy',()=>{_0x37558d['remove']();});}}class et extends _0x24ff8b{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0xa02c31,Command as _0x40a540}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2b3cc3,IconGooglePhotos as _0x3328c1,IconGoogleDrive as _0x3e1eb4,IconFacebook as _0xbe19f2,IconDropbox as _0x4ff699,IconUploadcareLink as _0xaca2fc,IconUploadcareImageUpload as _0x4f860e,IconError as _0x3086a9,IconUploadcareImageEdit as _0x4a9654}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x586669,MenuBarMenuListItemButtonView as _0x19fafd,View as _0xf574a8,FocusCycler as _0x4753cf,Dialog as _0x3bdf3c,DialogViewPosition as _0x6f9f03,SpinnerView as _0x170b6f,IconView as _0x9bf704,Notification as _0x246ad2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x412e62,DomEmitterMixin as _0x48397f,global as _0x5980d3,getAncestors as _0x53fd38,ObservableMixin as _0x4180c3,uid as _0x3c7735,createElement as _0x9cca2d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5060d0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4f0e4f,info as _0x57aac6}from'@uploadcare/upload-client';import*as _0xb0ea0d from'@uploadcare/file-uploader';var i=function(_0x3e3e6a){return _0x3e3e6a['Local']='local',_0x3e3e6a['URL']='url',_0x3e3e6a['Dropbox']='dropbox',_0x3e3e6a['GDrive']='gdrive',_0x3e3e6a['Facebook']='facebook',_0x3e3e6a['GPhotos']='gphotos',_0x3e3e6a['OneDrive']='onedrive',_0x3e3e6a;}({});function _(_0x4acf8b,_0x366bdd,_0x1441a6){const t=_0x4acf8b['t'],_0x35912a=_0x4acf8b['t'];switch(_0x366bdd){case i['Local']:return{'text':_0x35912a('Insert'===_0x1441a6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x35912a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1441a6?_0x35912a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x35912a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x366bdd;}}class e extends _0xa02c31{['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 _0x22dadd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x399a40;for(const _0x5a08c3 in _0x22dadd){const _0x46b1b6=_0x5a08c3,_0x18b5f5=_0x22dadd[_0x46b1b6];if('uploadcareLicenseKeyValid'==_0x18b5f5||'uploadcareLicenseKeyInvalid'==_0x18b5f5||'uploadcareLicenseKeyExpired'==_0x18b5f5||'uploadcareLicenseKeyDomainLimit'==_0x18b5f5||'uploadcareLicenseKeyNotAllowed'==_0x18b5f5||'uploadcareLicenseKeyEvaluationLimit'==_0x18b5f5||'uploadcareLicenseKeyTrialLimit'==_0x18b5f5||'uploadcareLicenseKeyUsageLimit'==_0x18b5f5){delete _0x22dadd[_0x46b1b6],_0x399a40=_0x18b5f5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x399a40&&_0x22dadd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x399a40&&_0x22dadd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x399a40&&_0x22dadd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x399a40&&_0x22dadd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x399a40&&_0x22dadd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x399a40&&_0x22dadd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x399a40&&_0x22dadd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4993ba}=this,_0x3f6695=_0x4993ba['commands']['get']('uploadcare');if(!_0x3f6695)return;const _0x3274ff=this['_normalizeConfigSourceList'](_0x4993ba['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1d3d1b,_0x212da9)=>{const _0x309fb9=this['_getIntegrationKey'](_0x212da9['type']);return _0x1d3d1b[_0x309fb9]||(_0x1d3d1b[_0x309fb9]=[]),_0x1d3d1b[_0x309fb9]['push'](_0x212da9),_0x1d3d1b;},{});_0x4993ba['plugins']['has']('ImageInsertUI')&&_0x4993ba['commands']['get']('uploadcare')&&Object['entries'](_0x3274ff)['forEach'](([_0x346bdd,_0x457e08])=>{_0x4993ba['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x346bdd,'observable':()=>_0x3f6695,'buttonViewCreator':()=>this['_createToolbarButton'](_0x457e08),'formViewCreator':()=>this['_createDropdownButtons'](_0x457e08),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x457e08),'override':'assetManager'!==_0x346bdd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x358c7f){const {locale:_0x49b412}=this['editor'];return _0x358c7f['map'](_0x2d24ad=>{const _0x565ed2=_(_0x49b412,_0x2d24ad,'Insert');switch(_0x2d24ad){case i['Local']:return{'icon':_0x4f860e,'type':i['Local'],..._0x565ed2};case i['URL']:return{'icon':_0xaca2fc,'type':i['URL'],..._0x565ed2};case i['Dropbox']:return{'icon':_0x4ff699,'type':i['Dropbox'],..._0x565ed2};case i['Facebook']:return{'icon':_0xbe19f2,'type':i['Facebook'],..._0x565ed2};case i['GDrive']:return{'icon':_0x3e1eb4,'type':i['GDrive'],..._0x565ed2};case i['GPhotos']:return{'icon':_0x3328c1,'type':i['GPhotos'],..._0x565ed2};case i['OneDrive']:return{'icon':_0x2b3cc3,'type':i['OneDrive'],..._0x565ed2};}});}['_getIntegrationKey'](_0x616385){switch(_0x616385){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5d1877,_0x2788c5){const _0x495fd9=this['editor'],_0x59f4a5=new _0x5d1877(_0x495fd9['locale']),_0x159b61=_0x495fd9['commands']['get']('uploadcare');return _0x59f4a5['bind']('isEnabled')['to'](_0x159b61),_0x59f4a5['on']('execute',()=>{_0x159b61['execute'](_0x2788c5);}),_0x59f4a5;}['_createToolbarButton'](_0x341390){const {locale:_0x3d418e}=this['editor'],_0x439674=this['editor']['plugins']['get']('ImageInsertUI'),_0x29832a=_0x341390[0x0],_0x391ad6=this['_createButton'](_0x586669,_0x29832a['type']);return _0x391ad6['icon']=_0x29832a['icon'],_0x391ad6['bind']('label')['to'](_0x439674,'isImageSelected',_0x4501ed=>_(_0x3d418e,_0x29832a['type'],_0x4501ed?'Replace':'Insert')['text']),_0x391ad6['tooltip']=!0x0,_0x391ad6;}['_createDropdownButtons'](_0x4da4ab){const {locale:_0x14bbd9}=this['editor'],_0xc9d673=this['editor']['plugins']['get']('ImageInsertUI');return _0x4da4ab['map'](_0x40cc24=>{const _0x59529d=this['_createButton'](_0x586669,_0x40cc24['type']);return _0x59529d['withText']=!0x0,_0x59529d['icon']=_0x40cc24['icon'],_0x59529d['bind']('label')['to'](_0xc9d673,'isImageSelected',_0x594f5a=>_(_0x14bbd9,_0x40cc24['type'],_0x594f5a?'Replace':'Insert')['text']),_0x59529d;});}['_createMenuBarButtons'](_0x11d7ba){return _0x11d7ba['map'](_0x2689f9=>{const _0x2a7598=this['_createButton'](_0x19fafd,_0x2689f9['type']);return _0x2a7598['icon']=_0x2689f9['icon'],_0x2a7598['label']=_0x2689f9['shortText'],_0x2a7598;});}}class F extends _0xf574a8{['focusTracker'];['focusCycler'];constructor(_0x5acd77){super(_0x5acd77),this['focusTracker']=new _0x412e62(),this['focusCycler']=new _0x4753cf({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x6a5aa0,_0x30fde0){super(_0x6a5aa0),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-'+_0x30fde0}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x4b3ed5,_0x50dd95){const _0x30e2b0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x30ca2a=>_0x30ca2a<=_0x50dd95)['map'](_0x3757b9=>_0x4b3ed5['replace'](/\/$/,'')+'/-/resize/'+_0x3757b9+'x/\x20'+_0x3757b9+'w');return{'imageFallbackUrl':_0x4b3ed5,'imageSources':[{'srcset':_0x30e2b0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x50dd95+'px)\x20100vw,\x20'+_0x50dd95+'px','type':'image/webp'}]};}function C(_0x174b99,_0x4cd57e,_0x188105){const _0x3829ac=_0x174b99['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3829ac?parseInt(_0x3829ac[0x1],0xa):_0x4cd57e,'height':_0x3829ac?parseInt(_0x3829ac[0x2],0xa):_0x188105};}function p(_0x2150a4,_0x855e7d){const _0x59f47f=new(_0x48397f())(),_0x15d4ef=_0x2150a4['plugins']['get']('ImageUtils'),_0x38b088=_0x2150a4['editing']['mapper']['toViewElement'](_0x855e7d),_0x2e2c90=_0x15d4ef['findViewImgElement'](_0x38b088),_0x49dab2=_0x2150a4['editing']['view']['domConverter']['viewToDom'](_0x2e2c90),_0x5ad501=_0x855e7d['getAttribute']('width'),_0x5a622c=_0x855e7d['getAttribute']('height'),_0x4500bc='image-processing';_0x2150a4['editing']['view']['change'](_0x193a5a=>{_0x193a5a['addClass'](_0x4500bc,_0x38b088),_0x193a5a['setStyle']('aspect-ratio',_0x5ad501+'/'+_0x5a622c,_0x2e2c90);}),_0x59f47f['listenTo'](_0x49dab2,'load',()=>{_0x59f47f['stopListening'](_0x49dab2,'load'),_0x2150a4['editing']['view']['change'](_0x2c1c68=>{_0x2c1c68['removeClass'](_0x4500bc,_0x38b088),_0x2c1c68['removeStyle']('aspect-ratio',_0x2e2c90);});});}function z(_0x4d0fa0){if(Array['isArray'](_0x4d0fa0)){const _0x4c14c4=_0x4d0fa0['map'](z);return _0x323d90=>_0x4c14c4['some'](_0x1ffb90=>_0x1ffb90(_0x323d90));}if('origin'==_0x4d0fa0){const _0x2d7316=_0x5980d3['window']['location']['origin'];return _0x186288=>new URL(_0x186288,_0x5980d3['document']['baseURI'])['origin']==_0x2d7316;}return'function'==typeof _0x4d0fa0?_0x4d0fa0:_0x4d0fa0 instanceof RegExp?_0x1766f2=>!(!_0x1766f2['match'](_0x4d0fa0)&&!_0x1766f2['replace'](/^https?:\/\//,'')['match'](_0x4d0fa0)):()=>!0x1;}function S(_0x17d7d4,_0x5269e9){return _0x53fd38(_0x17d7d4['target'])['includes'](_0x5269e9);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4180c3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x554431,_0xe1ddbb,_0x28c030){super(),this['_editor']=_0x554431,this['_editing']=_0xe1ddbb,this['_dialog']=_0x554431['plugins']['get'](_0x3bdf3c),this['_api']=_0xe1ddbb['ctxElement']['getAPI'](),this['_type']=_0x28c030,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:_0x5ae508,model:_0x2653e9}=this['_editor'],_0x2a0e3b=_0x2653e9['document']['selection']['getSelectedElement'](),_0x4153e=_0x2a0e3b&&(_0x2a0e3b['is']('element','imageBlock')||_0x2a0e3b['is']('element','imageInline'));this['_formView']=new x(_0x5ae508,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4f860e,'title':_(_0x5ae508,this['_type'],_0x4153e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x6f9f03['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x245875=>!S(_0x245875,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x8b2a62}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x53ea06=>{const _0x392b0c=_0x8b2a62['length'];for(const _0x45e1d6 of _0x8b2a62){const _0x4f74d1=_0x45e1d6===_0x8b2a62[_0x392b0c-0x1],{cdnUrl:_0x5eb485,fileInfo:_0x1471bf}=_0x45e1d6;if(!_0x5eb485||!_0x1471bf)continue;const {width:_0x4d3f68,height:_0x6a456a}=_0x1471bf['imageInfo'],_0x3319eb=C(_0x5eb485,_0x4d3f68,_0x6a456a),_0x2c2835=k(_0x5eb485,_0x3319eb['width']),_0xcdfa3c={'id':_0x1471bf['uuid'],'type':'image','attributes':{'imageDimension':_0x3319eb,..._0x2c2835}};this['_insertAsset'](_0xcdfa3c,_0x4f74d1,_0x53ea06);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xbbcf2d=>{'idle'===_0xbbcf2d['detail']['status']&&!_0xbbcf2d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1300f4,_0x544f21,_0x195ba3){const _0x1a92fd=this['_editor']['model']['document']['selection'],_0x529dc4=_0x1a92fd['getSelectedElement'](),_0x1592e1=!(!_0x529dc4||!_0x529dc4['is']('element','imageInline'));_0x195ba3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1300f4,_0x1592e1),_0x544f21||_0x195ba3['setSelection'](_0x1a92fd['getLastPosition']());}['_insertImage'](_0x51408c,_0xc85958){const _0x304851=this['_editor'],{imageDimension:_0x44a2b5,imageFallbackUrl:_0x4c2dff,imageSources:_0x240ea8}=_0x51408c['attributes'];_0x304851['execute']('insertImage',{'imageType':_0xc85958?'imageInline':null,'source':{'uploadcareImageId':_0x51408c['id'],'src':_0x4c2dff,'sources':_0x240ea8,..._0x44a2b5}});}}class w extends _0x40a540{['_editing'];['_controller']=null;static get['requires'](){return[_0x3bdf3c,o];}constructor(_0x295cd8){super(_0x295cd8),this['_editing']=_0x295cd8['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5924dc){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5924dc);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1a77e8,publicKey:_0xc8d069,signal:_0x4adbc0,onProgress:_0x586a16}){return _0x4f0e4f(_0x1a77e8,{'publicKey':_0xc8d069,'store':'auto','signal':_0x4adbc0,'onProgress':_0x586a16});}static['getInfo'](_0x1e066e,_0x12e57c){return _0x57aac6(_0x1e066e,_0x12e57c);}}class f extends _0xa02c31{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5060d0,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x25fe64=this['editor'];if(!!!_0x25fe64['config']['get']('uploadcare'))return;_0x25fe64['plugins']['get'](_0x5060d0)['createUploadAdapter']=_0x1558e0=>new A(_0x1558e0,_0x25fe64),_0x25fe64['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x21a817,{imageElement:_0x3bebe6,data:_0x442586})=>{_0x25fe64['model']['change'](_0x4167c8=>{_0x4167c8['setAttribute']('uploadcareImageId',_0x442586['uploadcareImageId'],_0x3bebe6);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x81c750,_0x2ee25c){this['loader']=_0x81c750,this['editor']=_0x2ee25c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x65b9c0=this['editor']['config']['get']('uploadcare.pubkey'),_0x5a9f7b=await this['loader']['file'];return j['upload']({'file':_0x5a9f7b,'publicKey':_0x65b9c0,'signal':this['controller']['signal'],'onProgress':_0x2c12c1=>{_0x2c12c1&&_0x2c12c1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2c12c1['value']);}})['then'](async _0x5a7e8a=>{const {imageFallbackUrl:_0x35243e,imageSources:_0x39eb6e}=k(_0x5a7e8a['cdnUrl'],_0x5a7e8a['imageInfo']['width']);return{'uploadcareImageId':_0x5a7e8a['uuid'],'default':_0x35243e,'sources':_0x39eb6e};})['catch'](()=>{const _0xcf1a4=t('Cannot\x20upload\x20file:')+('\x20'+_0x5a9f7b['name']+'.');return Promise['reject'](_0xcf1a4);});}['abort'](){this['controller']['abort']();}}class o extends _0xa02c31{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3bdf3c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5b7c26){super(_0x5b7c26),this['ucContextId']=_0x3c7735();}['init'](){const _0x82e2c=this['editor'];_0x82e2c['commands']['add']('uploadcare',new w(_0x82e2c));}['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 _0x2f05e8=_0x5980d3['document']['querySelector']('input[uploadcare-file-input]');_0x2f05e8&&_0x2f05e8['remove']();}),async function(_0x3dd7d1){const _0x1824d1=_0x4db8e1([0x71,0x50,0x36,0x75,0x31,0x30,0x56,0x55,0x44,0x4e,0x73,0x66,0x6b,0x65,0x70,0x79,0x6c,0x4d,0x43,0x52,0x32,0x58,0x4c,0x63,0x62,0x42,0x49,0x39,0x41,0x61,0x45,0x59,0x5a,0x6d,0x77,0x4b,0x38,0x35,0x4f,0x64,0x4a,0x6a,0x6f,0x72,0x78,0x53,0x34,0x47,0x68,0x67,0x54,0x46,0x76,0x51,0x57,0x7a,0x33,0x37,0x6e,0x69,0x48,0x74]),_0x1f9a0a=0x57c6dede,_0x317a62=0x57c1b226^_0x1f9a0a,_0x11b1dc=window[_0x4db8e1([0x44,0x61,0x74,0x65])][_0x4db8e1([0x6e,0x6f,0x77])](),_0x4f963c=_0x3dd7d1[_0x4db8e1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xee1907=new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x165a45=>{_0x4f963c[_0x4db8e1([0x6f,0x6e,0x63,0x65])](_0x4db8e1([0x72,0x65,0x61,0x64,0x79]),_0x165a45);}),_0x5daff7={[_0x4db8e1([0x6b,0x74,0x79])]:_0x4db8e1([0x45,0x43]),[_0x4db8e1([0x75,0x73,0x65])]:_0x4db8e1([0x73,0x69,0x67]),[_0x4db8e1([0x63,0x72,0x76])]:_0x4db8e1([0x50,0x2d,0x32,0x35,0x36]),[_0x4db8e1([0x78])]:_0x4db8e1([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]),[_0x4db8e1([0x79])]:_0x4db8e1([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]),[_0x4db8e1([0x61,0x6c,0x67])]:_0x4db8e1([0x45,0x53,0x32,0x35,0x36])},_0x2dd465=_0x4f963c[_0x4db8e1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4db8e1([0x67,0x65,0x74])](_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e721d(){let _0x1659b2,_0x529f2f=null,_0x4582cd=null;try{if(_0x2dd465==_0x4db8e1([0x47,0x50,0x4c]))return _0x4db8e1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1659b2=_0x37395a(),!_0x1659b2)return _0x4db8e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1659b2[_0x4db8e1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4582cd=_0x30c27d(_0x1659b2[_0x4db8e1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1659b2[_0x4db8e1([0x6a,0x74,0x69])])),await _0xd2186b()?_0x12c6e7()?_0x294524()?_0x4db8e1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55cdfe()?(_0x1659b2[_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4db8e1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x529f2f=_0x5e2eee(_0x4db8e1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1659b2[_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4db8e1([0x74,0x72,0x69,0x61,0x6c])&&(_0x529f2f=_0x5e2eee(_0x4db8e1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xfea1fc()):_0x4db8e1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4db8e1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4db8e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4db8e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x294524(){const _0x10f009=[_0x4db8e1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4db8e1([0x74,0x72,0x69,0x61,0x6c])][_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1659b2[_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11b1dc/0x3e8:0xe10*_0x317a62;return _0x1659b2[_0x4db8e1([0x65,0x78,0x70])]<_0x10f009;}function _0x12c6e7(){const _0x529544=_0x1659b2[_0x4db8e1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x529544&&(!!_0x529544[_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db8e1([0x2a]))||!!_0x529544[_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db8e1([0x55,0x50,0x4c,0x43])));}function _0x55cdfe(){const _0x12edac=_0x1659b2[_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x12edac||0x0==_0x12edac[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x592715}=new URL(window[_0x4db8e1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x12edac[_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x592715))return!0x0;const _0x53127f=_0x592715[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])](_0x4db8e1([0x2e]));return _0x12edac[_0x4db8e1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25ff5e=>_0x25ff5e[_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db8e1([0x2a])))[_0x4db8e1([0x6d,0x61,0x70])](_0x3dcf25=>_0x3dcf25[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])](_0x4db8e1([0x2e])))[_0x4db8e1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x504b74=>_0x504b74[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53127f[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4db8e1([0x6d,0x61,0x70])](_0x1aaa7c=>Array(_0x53127f[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1aaa7c[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4db8e1([0x66,0x69,0x6c,0x6c])](_0x1aaa7c[0x0]===_0x4db8e1([0x2a])?_0x4db8e1([0x2a]):'')[_0x4db8e1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1aaa7c))[_0x4db8e1([0x73,0x6f,0x6d,0x65])](_0x4ae2f7=>_0x53127f[_0x4db8e1([0x65,0x76,0x65,0x72,0x79])]((_0x1938e9,_0x14a746)=>_0x4ae2f7[_0x14a746]===_0x1938e9||_0x4ae2f7[_0x14a746]===_0x4db8e1([0x2a])));}function _0xfea1fc(){return _0x529f2f&&_0x4582cd?new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x590485,_0x8159ce)=>{_0x529f2f[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x590485,_0x8159ce),_0x4582cd[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x3f03e3=>{_0x3f03e3!=_0x4db8e1([0x56,0x61,0x6c,0x69,0x64])&&_0x590485(_0x3f03e3);},_0x8159ce);}):_0x529f2f||_0x4582cd||_0x4db8e1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30c27d(_0x258992,_0xbc2f07){return new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ddf23=>{if(_0x201dbd())return _0x2ddf23(_0x4db8e1([0x56,0x61,0x6c,0x69,0x64]));_0x4dd461(),_0x4f963c[_0x4db8e1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4db8e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x518f16=!0x1;const _0x2134ee=_0x3c7735();function _0x1c57e5(_0x331973){return!!_0x331973&&(typeof _0x331973===_0x4db8e1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x331973===_0x4db8e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x331973[_0x4db8e1([0x74,0x68,0x65,0x6e])]===_0x4db8e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x331973[_0x4db8e1([0x63,0x61,0x74,0x63,0x68])]===_0x4db8e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bd0b1(_0x2ef690){_0x5f4620(_0x2ef690)[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x5eeffb=>{if(!_0x5eeffb||_0x5eeffb[_0x4db8e1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4db8e1([0x6f,0x6b]))return _0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x577176(_0x265d57(_0x2134ee+_0xbc2f07))!=_0x5eeffb[_0x4db8e1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4db8e1([0x56,0x61,0x6c,0x69,0x64]);})[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0xcb97cf=>(_0x4f9e08(),_0xcb97cf),()=>{const _0x20f9bd=_0x364bbd();return null==_0x20f9bd?(_0x4f9e08(),_0x4db8e1([0x56,0x61,0x6c,0x69,0x64])):_0x4db8e1(_0x11b1dc-_0x20f9bd>(0x73ca5ade^_0x1f9a0a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x2ddf23)[_0x4db8e1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ddf23(_0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x277535=0x57f0305e^_0x1f9a0a;function _0x4f9e08(){const _0xb34f13=_0x4db8e1([0x6c,0x6c,0x63,0x74,0x2d])+_0x577176(_0x265d57(_0x258992)),_0x3f92f3=_0x1361da(_0x577176(window[_0x4db8e1([0x4d,0x61,0x74,0x68])][_0x4db8e1([0x63,0x65,0x69,0x6c])](_0x11b1dc/_0x277535)));window[_0x4db8e1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4db8e1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb34f13,_0x3f92f3);}function _0x364bbd(){const _0x22eb75=_0x4db8e1([0x6c,0x6c,0x63,0x74,0x2d])+_0x577176(_0x265d57(_0x258992)),_0x56445d=window[_0x4db8e1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4db8e1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22eb75);return _0x56445d?window[_0x4db8e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1361da(_0x56445d),0x10)*_0x277535:null;}function _0x5f4620(_0x50d5c4){return new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x380791,_0x59d95b)=>{_0x50d5c4[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x380791,_0x59d95b),window[_0x4db8e1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59d95b,0x57c70a1e^_0x1f9a0a);});}}_0x4f963c[_0x4db8e1([0x6f,0x6e])](_0x4db8e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49528e,_0x2dce45)=>{if(_0x2dce45[0x0]!=_0x258992)return _0x2ddf23(_0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2dce45[0x1]={..._0x2dce45[0x1],[_0x4db8e1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2134ee};},{[_0x4db8e1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4db8e1([0x68,0x69,0x67,0x68])}),_0x4f963c[_0x4db8e1([0x6f,0x6e])](_0x4db8e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x418083=>{_0x1c57e5(_0x418083[_0x4db8e1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x518f16=!0x0,_0x4bd0b1(_0x418083[_0x4db8e1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4db8e1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4db8e1([0x6c,0x6f,0x77])}),_0xee1907[_0x4db8e1([0x74,0x68,0x65,0x6e])](()=>{_0x518f16||_0x2ddf23(_0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x201dbd(){return _0x4f963c[_0x4db8e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4db8e1([0x76,0x69,0x65,0x77])][_0x4db8e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4db8e1([0x61,0x75,0x74,0x6f]);}function _0x4dd461(){_0x4f963c[_0x4db8e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4db8e1([0x76,0x69,0x65,0x77])][_0x4db8e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4db8e1([0x61,0x75,0x74,0x6f]);}}function _0x5e2eee(_0x57b75a){const _0x43b935=[new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe8341c=>setTimeout(_0xe8341c,0x57cfe012^_0x1f9a0a)),_0xee1907[_0x4db8e1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x447c08=>{let _0xc05567=0x0;_0x4f963c[_0x4db8e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4db8e1([0x6f,0x6e])](_0x4db8e1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x43ae67,_0x22fc40)=>{_0x22fc40[0x0][_0x4db8e1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc05567++,_0xc05567==(0x57c6df26^_0x1f9a0a)&&(_0x447c08(),_0x43ae67[_0x4db8e1([0x6f,0x66,0x66])]());});}))];return window[_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4db8e1([0x72,0x61,0x63,0x65])](_0x43b935)[_0x4db8e1([0x74,0x68,0x65,0x6e])](()=>_0x57b75a);}async function _0x296a21(){await _0xee1907,_0x4f963c[_0x4db8e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4db8e1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37da22,_0x4f963c[_0x4db8e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4db8e1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37da22,_0x4f963c[_0x4db8e1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4db8e1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46768f(_0x62d54f){const _0x4c0fee=_0x5714d7();_0x4f963c[_0x4c0fee]=_0x4db8e1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x62d54f,_0x62d54f!=_0x4db8e1([0x56,0x61,0x6c,0x69,0x64])&&_0x296a21();}function _0x5714d7(){const _0x2e3a0f=window[_0x4db8e1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4db8e1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4db8e1([0x6e,0x6f,0x77])]())[_0x4db8e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4db8e1([0x2e]),'');let _0x479c33=_0x4db8e1([0x71]);for(let _0x14850e=0x0;_0x14850e<_0x2e3a0f[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14850e+=0x2){let _0x26139a=window[_0x4db8e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e3a0f[_0x4db8e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14850e,_0x14850e+0x2));_0x26139a>=_0x1824d1[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26139a-=_0x1824d1[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x479c33+=_0x1824d1[_0x26139a];}return _0x479c33;}function _0x37395a(){const _0x59c3b6=_0x2dd465[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])](_0x4db8e1([0x2e]));if(0x3!=_0x59c3b6[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x596e41(_0x59c3b6[0x1]);function _0x596e41(_0x404b7d){const _0x278bfe=_0x12dd83(_0x404b7d);return _0x278bfe&&_0x16271d()?_0x278bfe:null;function _0x16271d(){const _0x17e41b=_0x278bfe[_0x4db8e1([0x6a,0x74,0x69])],_0x125816=window[_0x4db8e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17e41b[_0x4db8e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17e41b[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3426b6={..._0x278bfe,[_0x4db8e1([0x6a,0x74,0x69])]:_0x17e41b[_0x4db8e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17e41b[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3426b6[_0x4db8e1([0x76,0x63])],_0x265d57(_0x3426b6)==_0x125816;}}}async function _0xd2186b(){let _0x58cdf5=!0x0;try{const _0x4e519c=_0x2dd465[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])](_0x4db8e1([0x2e])),[_0x23e96b,_0x11ff1a,_0x3cc22d]=_0x4e519c;return _0x1d5faf(_0x23e96b),await _0xb9fc9(_0x23e96b,_0x11ff1a,_0x3cc22d),_0x58cdf5;}catch{return!0x1;}function _0x1d5faf(_0x2316e1){const _0x34b8be=_0x12dd83(_0x2316e1);_0x34b8be&&_0x34b8be[_0x4db8e1([0x61,0x6c,0x67])]==_0x4db8e1([0x45,0x53,0x32,0x35,0x36])||(_0x58cdf5=!0x1);}async function _0xb9fc9(_0x182080,_0x13c515,_0x4f6ee){const _0x24ec1e=window[_0x4db8e1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4db8e1([0x66,0x72,0x6f,0x6d])](_0x2cf365(_0x4f6ee),_0x512a67=>_0x512a67[_0x4db8e1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b9481=new window[(_0x4db8e1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4db8e1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x182080+_0x4db8e1([0x2e])+_0x13c515),_0x1a8f86=window[_0x4db8e1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4db8e1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a8f86)return;const _0x5658d5=await _0x1a8f86[_0x4db8e1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4db8e1([0x6a,0x77,0x6b]),_0x5daff7,{[_0x4db8e1([0x6e,0x61,0x6d,0x65])]:_0x4db8e1([0x45,0x43,0x44,0x53,0x41]),[_0x4db8e1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4db8e1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4db8e1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a8f86[_0x4db8e1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4db8e1([0x6e,0x61,0x6d,0x65])]:_0x4db8e1([0x45,0x43,0x44,0x53,0x41]),[_0x4db8e1([0x68,0x61,0x73,0x68])]:{[_0x4db8e1([0x6e,0x61,0x6d,0x65])]:_0x4db8e1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5658d5,_0x24ec1e,_0x3b9481)||(_0x58cdf5=!0x1);}}function _0x12dd83(_0x5d11e1){return _0x5d11e1[_0x4db8e1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4db8e1([0x65,0x79]))?JSON[_0x4db8e1([0x70,0x61,0x72,0x73,0x65])](_0x2cf365(_0x5d11e1)):null;}function _0x2cf365(_0x3fb3fd){return window[_0x4db8e1([0x61,0x74,0x6f,0x62])](_0x3fb3fd[_0x4db8e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4db8e1([0x2b]))[_0x4db8e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4db8e1([0x2f])));}function _0x265d57(_0x20df65){let _0x236405=0x1505;function _0x1079a5(_0x56527e){for(let _0x788093=0x0;_0x788093<_0x56527e[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x788093++){const _0x202a6b=_0x56527e[_0x4db8e1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x788093);_0x236405=(_0x236405<<0x5)+_0x236405+_0x202a6b,_0x236405&=_0x236405;}}function _0x2515ea(_0xd215f0){Array[_0x4db8e1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd215f0)?_0xd215f0[_0x4db8e1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2515ea):_0xd215f0&&typeof _0xd215f0==_0x4db8e1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4db8e1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd215f0)[_0x4db8e1([0x73,0x6f,0x72,0x74])]()[_0x4db8e1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44985c,_0x18d2bd])=>{_0x1079a5(_0x44985c),_0x2515ea(_0x18d2bd);}):_0x1079a5(window[_0x4db8e1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd215f0));}return _0x2515ea(_0x20df65),_0x236405>>>0x0;}function _0x577176(_0x52d90d){return _0x52d90d[_0x4db8e1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4db8e1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4db8e1([0x30]));}function _0x1361da(_0x25ff90){return _0x25ff90[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4db8e1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4db8e1([0x6a,0x6f,0x69,0x6e])]('');}function _0x37da22(){}function _0x4db8e1(_0x20c113){return _0x20c113['map'](_0x544fff=>String['fromCharCode'](_0x544fff))['join']('');}_0x46768f(await _0x3e721d());}(this);}['_initSchema'](){const _0x522fad=this['editor']['model']['schema'];_0x522fad['isRegistered']('imageBlock')&&_0x522fad['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x522fad['isRegistered']('imageInline')&&_0x522fad['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x50cce7=this['editor'];_0x50cce7['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x50cce7['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1b9c03=>_0x1b9c03['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x56f579=_0x50cce7['commands']['get']('replaceImageSource');_0x56f579&&this['listenTo'](_0x56f579,'cleanupImage',(_0x4fba69,[_0x47d404,_0x335eb3])=>{_0x47d404['removeAttribute']('uploadcareImageId',_0x335eb3);});}['_initConfig'](){const _0xefc95d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x419bce=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x9cca2d(_0x5980d3['document'],'uc-config',{..._0xefc95d,'pubkey':_0x419bce,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4f8bf1=>{if('closeMax'==_0x4f8bf1)return'#uc-icon-arrow-down';},_0x5980d3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x9cca2d(_0x5980d3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5980d3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3e2280=this['editor']['commands']['get']('insertImage');_0x3e2280&&this['listenTo'](_0x3e2280,'execute',()=>{const _0x28dd60=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28dd60&&_0x28dd60['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x28dd60);});});const _0x5753b0=this['editor']['commands']['get']('uploadcareImageReplace');_0x5753b0&&this['listenTo'](_0x5753b0,'execute',()=>{const _0x4c036e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c036e&&_0x4c036e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4c036e);});});}}class tt extends _0xa02c31{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x250e4e){super(_0x250e4e),_0x250e4e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xb0ea0d['defineComponents'](_0xb0ea0d);}}class ii extends _0xf574a8{constructor(_0x38e10f){super(_0x38e10f);const t=_0x38e10f['t'],_0x33c10a=this['bindTemplate'],_0x4721a3=new _0x170b6f();_0x4721a3['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':[_0x4721a3,{'text':_0x33c10a['to']('imageUploadProgress',_0x4c2db8=>t('Loading\x20image...')+'\x20('+(_0x4c2db8||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0xf574a8{constructor(_0x4218a4){super(_0x4218a4);const t=_0x4218a4['t'];this['set']('errorType',null);const _0x341750=new _0x586669(_0x4218a4);_0x341750['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x341750['withText']=!0x0,_0x341750['class']='ck-button-action',_0x341750['on']('execute',()=>{this['fire']('retry');}),_0x341750['bind']('isVisible')['to'](this,'errorType',_0xfbb6df=>'NotFound'!==_0xfbb6df);const _0x3daf46=new _0x9bf704();_0x3daf46['content']=_0x3086a9,_0x3daf46['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1c7620=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':[_0x3daf46,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1c7620['to']('errorType',_0x4226d6=>t('NotFound'!==_0x4226d6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x341750]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0xf574a8{constructor(_0x6ca31b,_0x1563b5){super(_0x6ca31b);const _0x39fce6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1563b5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x39fce6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x309251,_0x4435dd,_0xf7eb8a){super(_0x309251),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x309251),this['_errorView']=new ti(_0x309251),this['_editingView']=new ei(_0x309251,_0xf7eb8a),this['_focusableView']=new _0xf574a8(_0x309251),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4435dd),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'],_0x1cd3f6=>{this['_addUploadcareImageEditorListeners'](_0x1cd3f6);});}),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'](_0x31ee67,_0x984bf4){const _0x37d9f6='uc-cloud-image-editor',_0x18b843=_0x31ee67['querySelector'](_0x37d9f6);if(_0x18b843)return _0x984bf4(_0x18b843);const _0x1887ea=new MutationObserver(_0x17bea9=>{const _0x237a78=_0x17bea9['filter'](_0x3e1a10=>_0x3e1a10['target']===_0x31ee67&&_0x3e1a10['addedNodes']['length']>0x0&&_0x3e1a10['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x37d9f6);_0x237a78['length']&&(_0x1887ea['disconnect'](),_0x984bf4(_0x237a78[0x0]['addedNodes'][0x0]));});_0x1887ea['observe'](_0x31ee67,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x494327){_0x494327['addEventListener']('apply',_0x51cf78=>{this['fire']('apply',{'imageSrc':_0x51cf78['detail']['cdnUrl']});}),_0x494327['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4180c3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x20fab0,_0x14e75a,_0xdf8067){super(),this['_editor']=_0x20fab0,this['_dialog']=_0x14e75a,this['_imageElement']=_0xdf8067,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 _0x1c3685=this['_imageElement'],_0x56d548=_0x1c3685['getAttribute']('uploadcareImageId'),_0x38f43c=_0x1c3685['getAttribute']('src');if(_0x56d548)await this['_loadImageInfo'](_0x56d548,_0x38f43c);else{if(this['_imageCache']['has'](_0x38f43c)){const _0x4ce772=this['_imageCache']['get'](_0x38f43c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ce772['url'],this['imageDimension']=_0x4ce772['dimension'],this['imageId']=_0x4ce772['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4de1f8}=this['_editor'],t=_0x4de1f8['t'],_0xb82c03=new X(_0x4de1f8,this['imageStatus'],this['_attributes']);_0xb82c03['bind']('status')['to'](this,'imageStatus'),_0xb82c03['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb82c03['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb82c03['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb82c03,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4a9654,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb82c03,'position':_0x6f9f03['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb82c03['focus']();},'onHide':()=>{_0xb82c03['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x295340=>!S(_0x295340,_0xb82c03['element'])}});}['_loadImageInfo'](_0x42314e,_0x47d2b3){return j['getInfo'](_0x42314e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2009dc=>{const {width:_0xf6330e,height:_0x1bdec3}=_0x2009dc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47d2b3,this['imageDimension']={'width':_0xf6330e,'height':_0x1bdec3},this['imageId']=_0x42314e;})['catch'](_0x22e319=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22e319['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4715b6,_0x7ea90b){return this['_getImageAsFile'](_0x4715b6)['then'](_0x130e32=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x7ea90b['signal'],'file':_0x130e32,'onProgress':_0x31511e=>{_0x31511e&&_0x31511e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x31511e['value']));}}))['then'](_0x180b75=>{const {width:_0x4aa444,height:_0x54f25b}=_0x180b75['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x180b75['cdnUrl'],this['imageDimension']={'width':_0x4aa444,'height':_0x54f25b},this['imageId']=_0x180b75['uuid'],this['imageUploadProgress']=null;const _0x1af6b5=_0x4715b6['getAttribute']('src');this['_imageCache']['set'](_0x1af6b5,{'id':_0x180b75['uuid'],'url':_0x180b75['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x47fb67=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x47fb67['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4d4b05,_0x4b6f76){_0x4d4b05['on']('apply',(_0x196b5e,_0x5da8e6)=>{this['_replaceImage'](_0x4b6f76,_0x5da8e6['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4d4b05['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4d4b05['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1f6170,_0x42939f,_0x4ff9f7){const _0x4cc2f8=this['_editor'],{width:_0x2b0c57,height:_0x2bc355}=C(_0x42939f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x366936,imageSources:_0x6a38a0}=k(_0x42939f,_0x2b0c57);_0x4cc2f8['model']['change'](_0x556595=>{if('$graveyard'===_0x1f6170['root']['rootName']){_0x4cc2f8['execute']('insertImage',{'imageType':_0x1f6170['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1f6170['getAttributes']()),'uploadcareImageId':_0x4ff9f7,'src':_0x366936,'sources':_0x6a38a0,'width':_0x2b0c57,'height':_0x2bc355}});const _0x2a4f7b=_0x1f6170['getChildren']();_0x1f6170=_0x4cc2f8['model']['document']['selection']['getSelectedElement']();for(const _0x16f225 of _0x2a4f7b)_0x556595['append'](_0x556595['cloneElement'](_0x16f225),_0x1f6170);}else _0x556595['setSelection'](_0x1f6170,'on'),_0x4cc2f8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1f6170['getAttributes']()),'uploadcareImageId':_0x4ff9f7,'src':_0x366936,'sources':_0x6a38a0,'width':_0x2b0c57,'height':_0x2bc355},_0x1f6170);_0x556595['setSelection'](_0x1f6170,'on');});}async['_getImageAsFile'](_0x491deb){const _0x458f9e=_0x5980d3['window'],_0x3dbcbd=_0x5980d3['document']['location']['href'],_0x41c31b=new _0x458f9e['URL'](_0x491deb['getAttribute']('src'),_0x3dbcbd);if('data:'===_0x41c31b['protocol']){const _0x3cd632=_0x41c31b['href']['split'](','),_0x56f204=_0x3cd632[0x0]['match'](/:(.*?);/)[0x1],_0x323177=_0x56f204['split']('/')[0x1],_0x2f5b0f=_0x458f9e['atob'](_0x3cd632[_0x3cd632['length']-0x1]);let _0x868389=_0x2f5b0f['length'];const _0x1cb53f=new _0x458f9e['Uint8Array'](_0x868389);for(;_0x868389--;)_0x1cb53f[_0x868389]=_0x2f5b0f['charCodeAt'](_0x868389);return new _0x458f9e['File']([_0x1cb53f],'image.'+_0x323177,{'type':_0x56f204});}const _0xd91d2d=_0x41c31b['href']['split']('/'),_0x2a4442=_0xd91d2d[_0xd91d2d['length']-0x1],_0x84f0ee=_0x2a4442['split']('.')[0x1];return _0x458f9e['fetch'](_0x41c31b['href'])['then'](_0x4dfba9=>_0x4dfba9['clone']()['blob']())['then'](_0x3d96c9=>new _0x458f9e['File']([_0x3d96c9],_0x2a4442,{'type':'image/'+_0x84f0ee}));}}class Q extends _0x40a540{['imageEditController'];static get['requires'](){return[_0x3bdf3c];}['_isEditable'];constructor(_0x25c075){super(_0x25c075),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2a921a){const _0x232e39=z(_0x2a921a);return _0x450145=>!(!_0x450145||!_0x450145['is']('element','imageBlock')&&!_0x450145['is']('element','imageInline'))&&(!!_0x450145['hasAttribute']('uploadcareImageId')||!!_0x450145['hasAttribute']('src')&&_0x232e39(_0x450145['getAttribute']('src')));}(_0x25c075['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16eafa=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16eafa);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x59375b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59375b&&(_0x59375b['is']('element','imageBlock')||_0x59375b['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x3bdf3c),_0x59375b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x40a540{['refresh'](){const _0x81d615=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x81d615&&(_0x81d615['is']('element','imageBlock')||_0x81d615['is']('element','imageInline')));}['execute'](_0x171027){const _0x282e46=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x35e4b4=>{_0x35e4b4['setAttributes'](_0x171027,_0x282e46),_0x35e4b4['removeAttribute']('srcset',_0x282e46),_0x35e4b4['removeAttribute']('sizes',_0x282e46);});}}class m extends _0xa02c31{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x246ad2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2c469b}=this;_0x2c469b['commands']['add']('uploadcareImageEdit',new Q(_0x2c469b)),_0x2c469b['commands']['add']('uploadcareImageReplace',new V(_0x2c469b));}}class g extends _0xa02c31{['_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 _0x5cfce7=this['editor'];_0x5cfce7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x240466=>{const _0x468aee=_0x5cfce7['commands']['get']('uploadcareImageEdit'),_0x4165fa=new _0x586669(_0x240466),t=_0x240466['t'];return _0x4165fa['set']({'icon':_0x4a9654,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4165fa['bind']('isEnabled')['to'](_0x468aee),_0x4165fa['bind']('isOn')['to'](_0x468aee,'isActive'),this['listenTo'](_0x4165fa,'execute',()=>{_0x5cfce7['execute']('uploadcareImageEdit'),_0x5cfce7['editing']['view']['focus']();}),_0x4165fa;}),this['_initConfig']();}['_initConfig'](){const _0x3c150e=_0x9cca2d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3c150e),this['listenTo'](this['editor'],'destroy',()=>{_0x3c150e['remove']();});}}class et extends _0xa02c31{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x27e925=>0x1!=_0x27e925}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5c4719=>{const {af:{dictionary:_0x53a355,getPluralForm:_0x570f4b}}={'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':_0x12c719=>0x1!=_0x12c719}};_0x5c4719['af']||={'dictionary':{},'getPluralForm':null},_0x5c4719['af']['dictionary']=Object['assign'](_0x5c4719['af']['dictionary'],_0x53a355),_0x5c4719['af']['getPluralForm']=_0x570f4b;})(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':_0x1a6bf6=>0x0==_0x1a6bf6?0x0:0x1==_0x1a6bf6?0x1:0x2==_0x1a6bf6?0x2:_0x1a6bf6%0x64>=0x3&&_0x1a6bf6%0x64<=0xa?0x3:_0x1a6bf6%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x739f52=>{const {ar:{dictionary:_0x1790fb,getPluralForm:_0x1684c5}}={'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':_0xe71258=>0x0==_0xe71258?0x0:0x1==_0xe71258?0x1:0x2==_0xe71258?0x2:_0xe71258%0x64>=0x3&&_0xe71258%0x64<=0xa?0x3:_0xe71258%0x64>=0xb?0x4:0x5}};_0x739f52['ar']||={'dictionary':{},'getPluralForm':null},_0x739f52['ar']['dictionary']=Object['assign'](_0x739f52['ar']['dictionary'],_0x1790fb),_0x739f52['ar']['getPluralForm']=_0x1684c5;})(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':_0x44e65d=>0x1!=_0x44e65d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x38a12f=>{const {ast:{dictionary:_0x3d6cc2,getPluralForm:_0x5763e7}}={'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':_0xb9bf56=>0x1!=_0xb9bf56}};_0x38a12f['ast']||={'dictionary':{},'getPluralForm':null},_0x38a12f['ast']['dictionary']=Object['assign'](_0x38a12f['ast']['dictionary'],_0x3d6cc2),_0x38a12f['ast']['getPluralForm']=_0x5763e7;})(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':_0x4d2a3c=>0x1!=_0x4d2a3c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x41ae4d=>{const {az:{dictionary:_0x3ba7b9,getPluralForm:_0x3edc67}}={'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':_0x3480f9=>0x1!=_0x3480f9}};_0x41ae4d['az']||={'dictionary':{},'getPluralForm':null},_0x41ae4d['az']['dictionary']=Object['assign'](_0x41ae4d['az']['dictionary'],_0x3ba7b9),_0x41ae4d['az']['getPluralForm']=_0x3edc67;})(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':_0x22d921=>_0x22d921%0xa==0x1&&_0x22d921%0x64!=0xb?0x0:_0x22d921%0xa>=0x2&&_0x22d921%0xa<=0x4&&(_0x22d921%0x64<0xa||_0x22d921%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xb3b87e=>{const {be:{dictionary:_0x22817d,getPluralForm:_0x3cc084}}={'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':_0x2793a2=>_0x2793a2%0xa==0x1&&_0x2793a2%0x64!=0xb?0x0:_0x2793a2%0xa>=0x2&&_0x2793a2%0xa<=0x4&&(_0x2793a2%0x64<0xa||_0x2793a2%0x64>=0x14)?0x1:0x2}};_0xb3b87e['be']||={'dictionary':{},'getPluralForm':null},_0xb3b87e['be']['dictionary']=Object['assign'](_0xb3b87e['be']['dictionary'],_0x22817d),_0xb3b87e['be']['getPluralForm']=_0x3cc084;})(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':_0x3ef079=>0x1!=_0x3ef079}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3bef98=>{const {bg:{dictionary:_0x1e1117,getPluralForm:_0x3a800}}={'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':_0x3301b0=>0x1!=_0x3301b0}};_0x3bef98['bg']||={'dictionary':{},'getPluralForm':null},_0x3bef98['bg']['dictionary']=Object['assign'](_0x3bef98['bg']['dictionary'],_0x1e1117),_0x3bef98['bg']['getPluralForm']=_0x3a800;})(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':_0x30ef72=>0x1!=_0x30ef72}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1b6313=>{const {bn:{dictionary:_0x152759,getPluralForm:_0x322581}}={'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':_0x42babd=>0x1!=_0x42babd}};_0x1b6313['bn']||={'dictionary':{},'getPluralForm':null},_0x1b6313['bn']['dictionary']=Object['assign'](_0x1b6313['bn']['dictionary'],_0x152759),_0x1b6313['bn']['getPluralForm']=_0x322581;})(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':_0x4cb7a9=>_0x4cb7a9%0xa==0x1&&_0x4cb7a9%0x64!=0xb?0x0:_0x4cb7a9%0xa>=0x2&&_0x4cb7a9%0xa<=0x4&&(_0x4cb7a9%0x64<0xa||_0x4cb7a9%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x537efc=>{const {bs:{dictionary:_0x23913a,getPluralForm:_0x3c5a7e}}={'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':_0xff0430=>_0xff0430%0xa==0x1&&_0xff0430%0x64!=0xb?0x0:_0xff0430%0xa>=0x2&&_0xff0430%0xa<=0x4&&(_0xff0430%0x64<0xa||_0xff0430%0x64>=0x14)?0x1:0x2}};_0x537efc['bs']||={'dictionary':{},'getPluralForm':null},_0x537efc['bs']['dictionary']=Object['assign'](_0x537efc['bs']['dictionary'],_0x23913a),_0x537efc['bs']['getPluralForm']=_0x3c5a7e;})(window['CKEDITOR_TRANSLATIONS']||={});
|