@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251205.0 → 0.0.0-nightly-20251207.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x386969,Command as _0x4aeb58}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4256dd,IconGooglePhotos as _0x4601d1,IconGoogleDrive as _0x1993e4,IconFacebook as _0x13c1b4,IconDropbox as _0x3f03eb,IconUploadcareLink as _0x409e81,IconUploadcareImageUpload as _0x436f66,IconError as _0x3ca033,IconUploadcareImageEdit as _0x46c8f7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x445303,MenuBarMenuListItemButtonView as _0x3fc250,View as _0x1599f2,FocusCycler as _0x451171,Dialog as _0x5efedc,DialogViewPosition as _0x17c0af,SpinnerView as _0x508771,IconView as _0x19d644,Notification as _0xeff5bc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x56dc51,DomEmitterMixin as _0x21fad1,global as _0x593112,getAncestors as _0x448822,ObservableMixin as _0x3c0c42,uid as _0x5775a8,createElement as _0x1b1887}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xb5b956}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x245679,info as _0x5c5126}from'@uploadcare/upload-client';import*as _0x55dc12 from'@uploadcare/file-uploader';var i=function(_0x126d59){return _0x126d59['Local']='local',_0x126d59['URL']='url',_0x126d59['Dropbox']='dropbox',_0x126d59['GDrive']='gdrive',_0x126d59['Facebook']='facebook',_0x126d59['GPhotos']='gphotos',_0x126d59['OneDrive']='onedrive',_0x126d59;}({});function _(_0x1e9c65,_0x493371,_0x3699da){const t=_0x1e9c65['t'],_0x1d0781=_0x1e9c65['t'];switch(_0x493371){case i['Local']:return{'text':_0x1d0781('Insert'===_0x3699da?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1d0781('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3699da?_0x1d0781('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1d0781('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3699da?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3699da?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3699da?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3699da?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3699da?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x493371;}}class e extends _0x386969{['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 _0x725112=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x326e6d;for(const _0x4c753a in _0x725112){const _0x121004=_0x4c753a,_0x923d18=_0x725112[_0x121004];if('uploadcareLicenseKeyValid'==_0x923d18||'uploadcareLicenseKeyInvalid'==_0x923d18||'uploadcareLicenseKeyExpired'==_0x923d18||'uploadcareLicenseKeyDomainLimit'==_0x923d18||'uploadcareLicenseKeyNotAllowed'==_0x923d18||'uploadcareLicenseKeyEvaluationLimit'==_0x923d18||'uploadcareLicenseKeyTrialLimit'==_0x923d18||'uploadcareLicenseKeyUsageLimit'==_0x923d18){delete _0x725112[_0x121004],_0x326e6d=_0x923d18,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x326e6d&&_0x725112['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x326e6d&&_0x725112['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x326e6d&&_0x725112['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x326e6d&&_0x725112['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x326e6d&&_0x725112['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x326e6d&&_0x725112['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x326e6d&&_0x725112['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x50db9b}=this,_0x3a64db=_0x50db9b['commands']['get']('uploadcare');if(!_0x3a64db)return;const _0x430ec2=this['_normalizeConfigSourceList'](_0x50db9b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3f3ab3,_0x1e2bbc)=>{const _0x1d2956=this['_getIntegrationKey'](_0x1e2bbc['type']);return _0x3f3ab3[_0x1d2956]||(_0x3f3ab3[_0x1d2956]=[]),_0x3f3ab3[_0x1d2956]['push'](_0x1e2bbc),_0x3f3ab3;},{});_0x50db9b['plugins']['has']('ImageInsertUI')&&_0x50db9b['commands']['get']('uploadcare')&&Object['entries'](_0x430ec2)['forEach'](([_0x1666d9,_0xa6b760])=>{_0x50db9b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1666d9,'observable':()=>_0x3a64db,'buttonViewCreator':()=>this['_createToolbarButton'](_0xa6b760),'formViewCreator':()=>this['_createDropdownButtons'](_0xa6b760),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xa6b760),'override':'assetManager'!==_0x1666d9});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3c436d){const {locale:_0x45a3f4}=this['editor'];return _0x3c436d['map'](_0xa301a7=>{const _0x4938c4=_(_0x45a3f4,_0xa301a7,'Insert');switch(_0xa301a7){case i['Local']:return{'icon':_0x436f66,'type':i['Local'],..._0x4938c4};case i['URL']:return{'icon':_0x409e81,'type':i['URL'],..._0x4938c4};case i['Dropbox']:return{'icon':_0x3f03eb,'type':i['Dropbox'],..._0x4938c4};case i['Facebook']:return{'icon':_0x13c1b4,'type':i['Facebook'],..._0x4938c4};case i['GDrive']:return{'icon':_0x1993e4,'type':i['GDrive'],..._0x4938c4};case i['GPhotos']:return{'icon':_0x4601d1,'type':i['GPhotos'],..._0x4938c4};case i['OneDrive']:return{'icon':_0x4256dd,'type':i['OneDrive'],..._0x4938c4};}});}['_getIntegrationKey'](_0x5af938){switch(_0x5af938){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x43d85c,_0xc1f13b){const _0x187a71=this['editor'],_0x5627b5=new _0x43d85c(_0x187a71['locale']),_0x536a33=_0x187a71['commands']['get']('uploadcare');return _0x5627b5['bind']('isEnabled')['to'](_0x536a33),_0x5627b5['on']('execute',()=>{_0x536a33['execute'](_0xc1f13b);}),_0x5627b5;}['_createToolbarButton'](_0x45c255){const {locale:_0x297fc2}=this['editor'],_0x161e32=this['editor']['plugins']['get']('ImageInsertUI'),_0x253297=_0x45c255[0x0],_0x448c1e=this['_createButton'](_0x445303,_0x253297['type']);return _0x448c1e['icon']=_0x253297['icon'],_0x448c1e['bind']('label')['to'](_0x161e32,'isImageSelected',_0x173a50=>_(_0x297fc2,_0x253297['type'],_0x173a50?'Replace':'Insert')['text']),_0x448c1e['tooltip']=!0x0,_0x448c1e;}['_createDropdownButtons'](_0x15bc92){const {locale:_0x27a459}=this['editor'],_0x3fe37b=this['editor']['plugins']['get']('ImageInsertUI');return _0x15bc92['map'](_0x34edcc=>{const _0x298694=this['_createButton'](_0x445303,_0x34edcc['type']);return _0x298694['withText']=!0x0,_0x298694['icon']=_0x34edcc['icon'],_0x298694['bind']('label')['to'](_0x3fe37b,'isImageSelected',_0x263e1b=>_(_0x27a459,_0x34edcc['type'],_0x263e1b?'Replace':'Insert')['text']),_0x298694;});}['_createMenuBarButtons'](_0x5d5cf2){return _0x5d5cf2['map'](_0x275252=>{const _0x2af60d=this['_createButton'](_0x3fc250,_0x275252['type']);return _0x2af60d['icon']=_0x275252['icon'],_0x2af60d['label']=_0x275252['shortText'],_0x2af60d;});}}class F extends _0x1599f2{['focusTracker'];['focusCycler'];constructor(_0x1db5b3){super(_0x1db5b3),this['focusTracker']=new _0x56dc51(),this['focusCycler']=new _0x451171({'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(_0x5aa23f,_0x1cb528){super(_0x5aa23f),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-'+_0x1cb528}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x129d1d,_0x54a3e3){const _0x1383aa=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2d58ea=>_0x2d58ea<=_0x54a3e3)['map'](_0x292057=>_0x129d1d['replace'](/\/$/,'')+'/-/resize/'+_0x292057+'x/\x20'+_0x292057+'w');return{'imageFallbackUrl':_0x129d1d,'imageSources':[{'srcset':_0x1383aa['join'](',\x20'),'sizes':'(max-width:\x20'+_0x54a3e3+'px)\x20100vw,\x20'+_0x54a3e3+'px','type':'image/webp'}]};}function S(_0x259660,_0x33b5ad,_0x1f4924){const _0x37109f=_0x259660['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x37109f?parseInt(_0x37109f[0x1],0xa):_0x33b5ad,'height':_0x37109f?parseInt(_0x37109f[0x2],0xa):_0x1f4924};}function p(_0x1bb2c1,_0x16753c){const _0x2da065=new(_0x21fad1())(),_0x379588=_0x1bb2c1['plugins']['get']('ImageUtils'),_0x1825a0=_0x1bb2c1['editing']['mapper']['toViewElement'](_0x16753c),_0x462f69=_0x379588['findViewImgElement'](_0x1825a0),_0x59b732=_0x1bb2c1['editing']['view']['domConverter']['viewToDom'](_0x462f69),_0x2b2190=_0x16753c['getAttribute']('width'),_0x2dc31b=_0x16753c['getAttribute']('height'),_0x473900='image-processing';_0x1bb2c1['editing']['view']['change'](_0x540ac9=>{_0x540ac9['addClass'](_0x473900,_0x1825a0),_0x540ac9['setStyle']('aspect-ratio',_0x2b2190+'/'+_0x2dc31b,_0x462f69);}),_0x2da065['listenTo'](_0x59b732,'load',()=>{_0x2da065['stopListening'](_0x59b732,'load'),_0x1bb2c1['editing']['view']['change'](_0x2f20fd=>{_0x2f20fd['removeClass'](_0x473900,_0x1825a0),_0x2f20fd['removeStyle']('aspect-ratio',_0x462f69);});});}function G(_0x35c4a2){if(Array['isArray'](_0x35c4a2)){const _0x218d75=_0x35c4a2['map'](G);return _0x4f0954=>_0x218d75['some'](_0x15b729=>_0x15b729(_0x4f0954));}if('origin'==_0x35c4a2){const _0x2e77c1=_0x593112['window']['location']['origin'];return _0x458b86=>new URL(_0x458b86,_0x593112['document']['baseURI'])['origin']==_0x2e77c1;}return'function'==typeof _0x35c4a2?_0x35c4a2:_0x35c4a2 instanceof RegExp?_0x5f45b3=>!(!_0x5f45b3['match'](_0x35c4a2)&&!_0x5f45b3['replace'](/^https?:\/\//,'')['match'](_0x35c4a2)):()=>!0x1;}function A(_0x430ee4,_0x2fb366){return _0x448822(_0x430ee4['target'])['includes'](_0x2fb366);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3c0c42(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1baa08,_0x5b26cd,_0x59332c){super(),this['_editor']=_0x1baa08,this['_editing']=_0x5b26cd,this['_dialog']=_0x1baa08['plugins']['get'](_0x5efedc),this['_api']=_0x5b26cd['ctxElement']['getAPI'](),this['_type']=_0x59332c,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:_0x40324f,model:_0x32460f}=this['_editor'],_0x18f6fa=_0x32460f['document']['selection']['getSelectedElement'](),_0x49f0e0=_0x18f6fa&&(_0x18f6fa['is']('element','imageBlock')||_0x18f6fa['is']('element','imageInline'));this['_formView']=new x(_0x40324f,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x436f66,'title':_(_0x40324f,this['_type'],_0x49f0e0?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x17c0af['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4396cd=>!A(_0x4396cd,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x41bea9}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x7d0abe=>{const _0x4e7601=_0x41bea9['length'];for(const _0x47cbc6 of _0x41bea9){const _0x4bdd82=_0x47cbc6===_0x41bea9[_0x4e7601-0x1],{cdnUrl:_0x3dc597,fileInfo:_0xdd243d}=_0x47cbc6;if(!_0x3dc597||!_0xdd243d)continue;const {width:_0x26e11b,height:_0x359221}=_0xdd243d['imageInfo'],_0x1da8ef=S(_0x3dc597,_0x26e11b,_0x359221),_0x232934=C(_0x3dc597,_0x1da8ef['width']),_0xeb276f={'id':_0xdd243d['uuid'],'type':'image','attributes':{'imageDimension':_0x1da8ef,..._0x232934}};this['_insertAsset'](_0xeb276f,_0x4bdd82,_0x7d0abe);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x423c2f=>{'idle'===_0x423c2f['detail']['status']&&!_0x423c2f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x6dd070,_0x1c24b1,_0xfdcc75){const _0x2f013b=this['_editor']['model']['document']['selection'],_0x40e910=_0x2f013b['getSelectedElement'](),_0x5509f3=!(!_0x40e910||!_0x40e910['is']('element','imageInline'));_0xfdcc75['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x6dd070,_0x5509f3),_0x1c24b1||_0xfdcc75['setSelection'](_0x2f013b['getLastPosition']());}['_insertImage'](_0x40ce9c,_0x580dc1){const _0x2709c2=this['_editor'],{imageDimension:_0x2ba6ba,imageFallbackUrl:_0x28bb6f,imageSources:_0x543e7b}=_0x40ce9c['attributes'];_0x2709c2['execute']('insertImage',{'imageType':_0x580dc1?'imageInline':null,'source':{'uploadcareImageId':_0x40ce9c['id'],'src':_0x28bb6f,'sources':_0x543e7b,..._0x2ba6ba}});}}class w extends _0x4aeb58{['_editing'];['_controller']=null;static get['requires'](){return[_0x5efedc,o];}constructor(_0x2a647c){super(_0x2a647c),this['_editing']=_0x2a647c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3f1749){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3f1749);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4fe42d,..._0x47f424}){return _0x245679(_0x4fe42d,_0x47f424);}static['getInfo'](_0x12b4a7,_0xccb7c2){return _0x5c5126(_0x12b4a7,_0xccb7c2);}}class f extends _0x386969{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xb5b956,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1508f8=this['editor'];if(!!!_0x1508f8['config']['get']('uploadcare'))return;_0x1508f8['plugins']['get'](_0xb5b956)['createUploadAdapter']=_0x3b03b2=>new k(_0x3b03b2,_0x1508f8),_0x1508f8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x21ce43,{imageElement:_0x1cb674,data:_0x14e311})=>{_0x1508f8['model']['change'](_0x5aed4a=>{_0x5aed4a['setAttribute']('uploadcareImageId',_0x14e311['uploadcareImageId'],_0x1cb674);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1846b4,_0x12145b){this['loader']=_0x1846b4,this['editor']=_0x12145b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x28e11c=await this['loader']['file'];return j['upload']({'file':_0x28e11c,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x20835a=>{_0x20835a&&_0x20835a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x20835a['value']);}})['then'](async _0x477a94=>{const {imageFallbackUrl:_0x1fd518,imageSources:_0x139147}=C(_0x477a94['cdnUrl'],_0x477a94['imageInfo']['width']);return{'uploadcareImageId':_0x477a94['uuid'],'default':_0x1fd518,'sources':_0x139147};})['catch'](()=>{const _0x35fee9=t('Cannot\x20upload\x20file:')+('\x20'+_0x28e11c['name']+'.');return Promise['reject'](_0x35fee9);});}['abort'](){this['controller']['abort']();}}class o extends _0x386969{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5efedc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x489afb){super(_0x489afb),this['ucContextId']=_0x5775a8();}['init'](){const _0x553e68=this['editor'];_0x553e68['commands']['add']('uploadcare',new w(_0x553e68));}['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 _0xbca1d5=_0x593112['document']['querySelector']('input[uploadcare-file-input]');_0xbca1d5&&_0xbca1d5['remove']();}),async function(_0x45baca){const _0x2c35f2=_0x1e4af6([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1c3dca=0x535f8c3a,_0x337e23=0x5358f732^_0x1c3dca,_0x54d8c6=window[_0x1e4af6([0x44,0x61,0x74,0x65])][_0x1e4af6([0x6e,0x6f,0x77])](),_0x392e93=_0x45baca[_0x1e4af6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x577a99=new window[(_0x1e4af6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xff80f8=>{_0x392e93[_0x1e4af6([0x6f,0x6e,0x63,0x65])](_0x1e4af6([0x72,0x65,0x61,0x64,0x79]),_0xff80f8);}),_0x36b792={[_0x1e4af6([0x6b,0x74,0x79])]:_0x1e4af6([0x45,0x43]),[_0x1e4af6([0x75,0x73,0x65])]:_0x1e4af6([0x73,0x69,0x67]),[_0x1e4af6([0x63,0x72,0x76])]:_0x1e4af6([0x50,0x2d,0x32,0x35,0x36]),[_0x1e4af6([0x78])]:_0x1e4af6([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]),[_0x1e4af6([0x79])]:_0x1e4af6([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]),[_0x1e4af6([0x61,0x6c,0x67])]:_0x1e4af6([0x45,0x53,0x32,0x35,0x36])},_0x2a933a=_0x392e93[_0x1e4af6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e4af6([0x67,0x65,0x74])](_0x1e4af6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a95fd(){let _0x40af01,_0xf5e48a=null,_0x14df57=null;try{if(_0x2a933a==_0x1e4af6([0x47,0x50,0x4c]))return _0x1e4af6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40af01=_0x15f880(),!_0x40af01)return _0x1e4af6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40af01[_0x1e4af6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14df57=_0x47d395(_0x40af01[_0x1e4af6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40af01[_0x1e4af6([0x6a,0x74,0x69])])),await _0x90ff13()?_0x2bbcc5()?_0x341164()?_0x1e4af6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa3de39()?(_0x40af01[_0x1e4af6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e4af6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf5e48a=_0x1d1263(_0x1e4af6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x40af01[_0x1e4af6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e4af6([0x74,0x72,0x69,0x61,0x6c])&&(_0xf5e48a=_0x1d1263(_0x1e4af6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x51ff7c()):_0x1e4af6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e4af6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e4af6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e4af6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x341164(){const _0x2ecb0d=[_0x1e4af6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e4af6([0x74,0x72,0x69,0x61,0x6c])][_0x1e4af6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40af01[_0x1e4af6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54d8c6/0x3e8:0xe10*_0x337e23;return _0x40af01[_0x1e4af6([0x65,0x78,0x70])]<_0x2ecb0d;}function _0x2bbcc5(){const _0x4e0afc=_0x40af01[_0x1e4af6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e0afc&&(!!_0x4e0afc[_0x1e4af6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e4af6([0x2a]))||!!_0x4e0afc[_0x1e4af6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e4af6([0x55,0x50,0x4c,0x43])));}function _0xa3de39(){const _0x597905=_0x40af01[_0x1e4af6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x597905||0x0==_0x597905[_0x1e4af6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3802e8}=new URL(window[_0x1e4af6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x597905[_0x1e4af6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3802e8))return!0x0;const _0x1d064e=_0x3802e8[_0x1e4af6([0x73,0x70,0x6c,0x69,0x74])](_0x1e4af6([0x2e]));return _0x597905[_0x1e4af6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b5c92=>_0x4b5c92[_0x1e4af6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e4af6([0x2a])))[_0x1e4af6([0x6d,0x61,0x70])](_0x47250b=>_0x47250b[_0x1e4af6([0x73,0x70,0x6c,0x69,0x74])](_0x1e4af6([0x2e])))[_0x1e4af6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x417aa6=>_0x417aa6[_0x1e4af6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1d064e[_0x1e4af6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e4af6([0x6d,0x61,0x70])](_0x4c0425=>Array(_0x1d064e[_0x1e4af6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c0425[_0x1e4af6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e4af6([0x66,0x69,0x6c,0x6c])](_0x4c0425[0x0]===_0x1e4af6([0x2a])?_0x1e4af6([0x2a]):'')[_0x1e4af6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c0425))[_0x1e4af6([0x73,0x6f,0x6d,0x65])](_0x4640d4=>_0x1d064e[_0x1e4af6([0x65,0x76,0x65,0x72,0x79])]((_0x3115e4,_0x57cac2)=>_0x4640d4[_0x57cac2]===_0x3115e4||_0x4640d4[_0x57cac2]===_0x1e4af6([0x2a])));}function _0x51ff7c(){return _0xf5e48a&&_0x14df57?new window[(_0x1e4af6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c46c7,_0x163da1)=>{_0xf5e48a[_0x1e4af6([0x74,0x68,0x65,0x6e])](_0x2c46c7,_0x163da1),_0x14df57[_0x1e4af6([0x74,0x68,0x65,0x6e])](_0x37145b=>{_0x37145b!=_0x1e4af6([0x56,0x61,0x6c,0x69,0x64])&&_0x2c46c7(_0x37145b);},_0x163da1);}):_0xf5e48a||_0x14df57||_0x1e4af6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x47d395(_0x569a0b,_0x551112){return new window[(_0x1e4af6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21c4e5=>{if(_0x3f88ce())return _0x21c4e5(_0x1e4af6([0x56,0x61,0x6c,0x69,0x64]));_0x621752(),_0x392e93[_0x1e4af6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e4af6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc827a9=!0x1;const _0x50c17c=_0x5775a8();function _0x3bca4b(_0x2b14ae){return!!_0x2b14ae&&(typeof _0x2b14ae===_0x1e4af6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b14ae===_0x1e4af6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b14ae[_0x1e4af6([0x74,0x68,0x65,0x6e])]===_0x1e4af6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b14ae[_0x1e4af6([0x63,0x61,0x74,0x63,0x68])]===_0x1e4af6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x15e699(_0x338761){_0x3dd690(_0x338761)[_0x1e4af6([0x74,0x68,0x65,0x6e])](_0x2c1f86=>{if(!_0x2c1f86||_0x2c1f86[_0x1e4af6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e4af6([0x6f,0x6b]))return _0x1e4af6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4210a3(_0x123f90(_0x50c17c+_0x551112))!=_0x2c1f86[_0x1e4af6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e4af6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e4af6([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e4af6([0x74,0x68,0x65,0x6e])](_0x11869b=>(_0x57a8e9(),_0x11869b),()=>{const _0x429a71=_0x2c639d();return null==_0x429a71?(_0x57a8e9(),_0x1e4af6([0x56,0x61,0x6c,0x69,0x64])):_0x1e4af6(_0x54d8c6-_0x429a71>(0x7753083a^_0x1c3dca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e4af6([0x74,0x68,0x65,0x6e])](_0x21c4e5)[_0x1e4af6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x21c4e5(_0x1e4af6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa5fb29=0x536962ba^_0x1c3dca;function _0x57a8e9(){const _0x2bfe0a=_0x1e4af6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4210a3(_0x123f90(_0x569a0b)),_0x73ae76=_0x349e17(_0x4210a3(window[_0x1e4af6([0x4d,0x61,0x74,0x68])][_0x1e4af6([0x63,0x65,0x69,0x6c])](_0x54d8c6/_0xa5fb29)));window[_0x1e4af6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e4af6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2bfe0a,_0x73ae76);}function _0x2c639d(){const _0x46b2f3=_0x1e4af6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4210a3(_0x123f90(_0x569a0b)),_0x5138e8=window[_0x1e4af6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e4af6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46b2f3);return _0x5138e8?window[_0x1e4af6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x349e17(_0x5138e8),0x10)*_0xa5fb29:null;}function _0x3dd690(_0x435720){return new window[(_0x1e4af6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e5872,_0x297b76)=>{_0x435720[_0x1e4af6([0x74,0x68,0x65,0x6e])](_0x4e5872,_0x297b76),window[_0x1e4af6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x297b76,0x535e58fa^_0x1c3dca);});}}_0x392e93[_0x1e4af6([0x6f,0x6e])](_0x1e4af6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39391b,_0x28d309)=>{if(_0x28d309[0x0]!=_0x569a0b)return _0x21c4e5(_0x1e4af6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28d309[0x1]={..._0x28d309[0x1],[_0x1e4af6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50c17c};},{[_0x1e4af6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e4af6([0x68,0x69,0x67,0x68])}),_0x392e93[_0x1e4af6([0x6f,0x6e])](_0x1e4af6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55d09c=>{_0x3bca4b(_0x55d09c[_0x1e4af6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc827a9=!0x0,_0x15e699(_0x55d09c[_0x1e4af6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e4af6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e4af6([0x6c,0x6f,0x77])}),_0x577a99[_0x1e4af6([0x74,0x68,0x65,0x6e])](()=>{_0xc827a9||_0x21c4e5(_0x1e4af6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f88ce(){return _0x392e93[_0x1e4af6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e4af6([0x76,0x69,0x65,0x77])][_0x1e4af6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e4af6([0x61,0x75,0x74,0x6f]);}function _0x621752(){_0x392e93[_0x1e4af6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e4af6([0x76,0x69,0x65,0x77])][_0x1e4af6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e4af6([0x61,0x75,0x74,0x6f]);}}function _0x1d1263(_0x2a8720){const _0x2a4d05=[new window[(_0x1e4af6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x556caf=>setTimeout(_0x556caf,0x5356b2f6^_0x1c3dca)),_0x577a99[_0x1e4af6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e4af6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d8ba5=>{let _0x247af1=0x0;_0x392e93[_0x1e4af6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e4af6([0x6f,0x6e])](_0x1e4af6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ce349,_0x2f9c58)=>{_0x2f9c58[0x0][_0x1e4af6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x247af1++,_0x247af1==(0x535f8dc2^_0x1c3dca)&&(_0x3d8ba5(),_0x2ce349[_0x1e4af6([0x6f,0x66,0x66])]());});}))];return window[_0x1e4af6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e4af6([0x72,0x61,0x63,0x65])](_0x2a4d05)[_0x1e4af6([0x74,0x68,0x65,0x6e])](()=>_0x2a8720);}async function _0x240447(){await _0x577a99,_0x392e93[_0x1e4af6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e4af6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x24cf29,_0x392e93[_0x1e4af6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e4af6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x24cf29,_0x392e93[_0x1e4af6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e4af6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x581b0e(_0x14c100){const _0x4ebcc6=_0x5d8b91();_0x392e93[_0x4ebcc6]=_0x1e4af6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x14c100,_0x14c100!=_0x1e4af6([0x56,0x61,0x6c,0x69,0x64])&&_0x240447();}function _0x5d8b91(){const _0xb65891=window[_0x1e4af6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e4af6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e4af6([0x6e,0x6f,0x77])]())[_0x1e4af6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e4af6([0x2e]),'');let _0x4a11ec=_0x1e4af6([0x68]);for(let _0x136113=0x0;_0x136113<_0xb65891[_0x1e4af6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x136113+=0x2){let _0x592251=window[_0x1e4af6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb65891[_0x1e4af6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x136113,_0x136113+0x2));_0x592251>=_0x2c35f2[_0x1e4af6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x592251-=_0x2c35f2[_0x1e4af6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a11ec+=_0x2c35f2[_0x592251];}return _0x4a11ec;}function _0x15f880(){const _0x278413=_0x2a933a[_0x1e4af6([0x73,0x70,0x6c,0x69,0x74])](_0x1e4af6([0x2e]));if(0x3!=_0x278413[_0x1e4af6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x326d02(_0x278413[0x1]);function _0x326d02(_0x2dc0dd){const _0x198aab=_0x47f64d(_0x2dc0dd);return _0x198aab&&_0x93f265()?_0x198aab:null;function _0x93f265(){const _0x447c99=_0x198aab[_0x1e4af6([0x6a,0x74,0x69])],_0x4fa161=window[_0x1e4af6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x447c99[_0x1e4af6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x447c99[_0x1e4af6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f7638={..._0x198aab,[_0x1e4af6([0x6a,0x74,0x69])]:_0x447c99[_0x1e4af6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x447c99[_0x1e4af6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f7638[_0x1e4af6([0x76,0x63])],_0x123f90(_0x2f7638)==_0x4fa161;}}}async function _0x90ff13(){let _0x244da3=!0x0;try{const _0x587f13=_0x2a933a[_0x1e4af6([0x73,0x70,0x6c,0x69,0x74])](_0x1e4af6([0x2e])),[_0xcd2eac,_0x306ec0,_0x27c471]=_0x587f13;return _0x4c9777(_0xcd2eac),await _0x149025(_0xcd2eac,_0x306ec0,_0x27c471),_0x244da3;}catch{return!0x1;}function _0x4c9777(_0x47f746){const _0x258641=_0x47f64d(_0x47f746);_0x258641&&_0x258641[_0x1e4af6([0x61,0x6c,0x67])]==_0x1e4af6([0x45,0x53,0x32,0x35,0x36])||(_0x244da3=!0x1);}async function _0x149025(_0xebc1e0,_0x3f129a,_0x51693c){const _0x497c99=window[_0x1e4af6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e4af6([0x66,0x72,0x6f,0x6d])](_0x2daed2(_0x51693c),_0xeb6bb9=>_0xeb6bb9[_0x1e4af6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdbb137=new window[(_0x1e4af6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e4af6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xebc1e0+_0x1e4af6([0x2e])+_0x3f129a),_0x337fe7=window[_0x1e4af6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e4af6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x337fe7)return;const _0xfd5dbe=await _0x337fe7[_0x1e4af6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e4af6([0x6a,0x77,0x6b]),_0x36b792,{[_0x1e4af6([0x6e,0x61,0x6d,0x65])]:_0x1e4af6([0x45,0x43,0x44,0x53,0x41]),[_0x1e4af6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e4af6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e4af6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x337fe7[_0x1e4af6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e4af6([0x6e,0x61,0x6d,0x65])]:_0x1e4af6([0x45,0x43,0x44,0x53,0x41]),[_0x1e4af6([0x68,0x61,0x73,0x68])]:{[_0x1e4af6([0x6e,0x61,0x6d,0x65])]:_0x1e4af6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xfd5dbe,_0x497c99,_0xdbb137)||(_0x244da3=!0x1);}}function _0x47f64d(_0x95ef72){return _0x95ef72[_0x1e4af6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e4af6([0x65,0x79]))?JSON[_0x1e4af6([0x70,0x61,0x72,0x73,0x65])](_0x2daed2(_0x95ef72)):null;}function _0x2daed2(_0x1f9f3a){return window[_0x1e4af6([0x61,0x74,0x6f,0x62])](_0x1f9f3a[_0x1e4af6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e4af6([0x2b]))[_0x1e4af6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e4af6([0x2f])));}function _0x123f90(_0x15a69b){let _0x556911=0x1505;function _0x38babf(_0x228dc0){for(let _0x41184e=0x0;_0x41184e<_0x228dc0[_0x1e4af6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41184e++){const _0x137aba=_0x228dc0[_0x1e4af6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x41184e);_0x556911=(_0x556911<<0x5)+_0x556911+_0x137aba,_0x556911&=_0x556911;}}function _0x586ba2(_0x29184d){Array[_0x1e4af6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x29184d)?_0x29184d[_0x1e4af6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x586ba2):_0x29184d&&typeof _0x29184d==_0x1e4af6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e4af6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x29184d)[_0x1e4af6([0x73,0x6f,0x72,0x74])]()[_0x1e4af6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x397e97,_0x197d9d])=>{_0x38babf(_0x397e97),_0x586ba2(_0x197d9d);}):_0x38babf(window[_0x1e4af6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x29184d));}return _0x586ba2(_0x15a69b),_0x556911>>>0x0;}function _0x4210a3(_0x5aea56){return _0x5aea56[_0x1e4af6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e4af6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e4af6([0x30]));}function _0x349e17(_0x33b408){return _0x33b408[_0x1e4af6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e4af6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e4af6([0x6a,0x6f,0x69,0x6e])]('');}function _0x24cf29(){}function _0x1e4af6(_0x4b454e){return _0x4b454e['map'](_0x4003f8=>String['fromCharCode'](_0x4003f8))['join']('');}_0x581b0e(await _0x3a95fd());}(this);}['_initSchema'](){const _0x576272=this['editor']['model']['schema'];_0x576272['isRegistered']('imageBlock')&&_0x576272['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x576272['isRegistered']('imageInline')&&_0x576272['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1ced30=this['editor'];_0x1ced30['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1ced30['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x42415e=>_0x42415e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1dfa20=_0x1ced30['commands']['get']('replaceImageSource');_0x1dfa20&&this['listenTo'](_0x1dfa20,'cleanupImage',(_0x428d65,[_0x2dac2e,_0x3fe388])=>{_0x2dac2e['removeAttribute']('uploadcareImageId',_0x3fe388);});}['_initConfig'](){const _0xcdaf50=this['editor']['config']['get']('uploadcare.uploader')||{},_0x53bc64=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1b1887(_0x593112['document'],'uc-config',{..._0xcdaf50,'pubkey':_0x53bc64,'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']=_0x4977b8=>{if('closeMax'==_0x4977b8)return'#uc-icon-arrow-down';},_0x593112['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1b1887(_0x593112['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x593112['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x75dc82=this['editor']['commands']['get']('insertImage');_0x75dc82&&this['listenTo'](_0x75dc82,'execute',()=>{const _0x124148=this['editor']['model']['document']['selection']['getSelectedElement']();_0x124148&&_0x124148['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x124148);});});const _0x115026=this['editor']['commands']['get']('uploadcareImageReplace');_0x115026&&this['listenTo'](_0x115026,'execute',()=>{const _0x265af2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x265af2&&_0x265af2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x265af2);});});}}class tt extends _0x386969{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e745c){super(_0x5e745c),_0x5e745c['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x55dc12['defineComponents'](_0x55dc12),this['_defineLocale']();}['_defineLocale'](){const _0x2cda31=this['editor']['config']['get']('uploadcare.locale'),_0x372c51=this['editor']['locale']['contentLanguage'];_0x2cda31&&_0x55dc12['defineLocale'](_0x372c51,_0x2cda31);}}class ii extends _0x1599f2{constructor(_0x4d2d11){super(_0x4d2d11);const t=_0x4d2d11['t'],_0x326a13=this['bindTemplate'],_0x1ccc39=new _0x508771();_0x1ccc39['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':[_0x1ccc39,{'text':_0x326a13['to']('imageUploadProgress',_0x3bdd09=>t('Loading\x20image...')+'\x20('+(_0x3bdd09||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 _0x1599f2{constructor(_0x28d35c){super(_0x28d35c);const t=_0x28d35c['t'];this['set']('errorType',null);const _0x36babe=new _0x445303(_0x28d35c);_0x36babe['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x36babe['withText']=!0x0,_0x36babe['class']='ck-button-action',_0x36babe['on']('execute',()=>{this['fire']('retry');}),_0x36babe['bind']('isVisible')['to'](this,'errorType',_0x21de3d=>'NotFound'!==_0x21de3d);const _0x19234c=new _0x19d644();_0x19234c['content']=_0x3ca033,_0x19234c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1ce44b=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':[_0x19234c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1ce44b['to']('errorType',_0x17eb9e=>t('NotFound'!==_0x17eb9e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x36babe]},{'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 _0x1599f2{constructor(_0x3b7169,_0x13232b){super(_0x3b7169);const _0x5e0541=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x13232b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5e0541['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x142e2b,_0xc47dc9,_0x1ccd7d){super(_0x142e2b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x142e2b),this['_errorView']=new ti(_0x142e2b),this['_editingView']=new ei(_0x142e2b,_0x1ccd7d),this['_focusableView']=new _0x1599f2(_0x142e2b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xc47dc9),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'],_0x33178d=>{this['_addUploadcareImageEditorListeners'](_0x33178d);});}),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'](_0x539c5e,_0x58a4f9){const _0x4c8d8='uc-cloud-image-editor',_0x3f5098=_0x539c5e['querySelector'](_0x4c8d8);if(_0x3f5098)return _0x58a4f9(_0x3f5098);const _0x14bc07=new MutationObserver(_0x61b593=>{const _0x41147d=_0x61b593['filter'](_0x4547ed=>_0x4547ed['target']===_0x539c5e&&_0x4547ed['addedNodes']['length']>0x0&&_0x4547ed['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4c8d8);_0x41147d['length']&&(_0x14bc07['disconnect'](),_0x58a4f9(_0x41147d[0x0]['addedNodes'][0x0]));});_0x14bc07['observe'](_0x539c5e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x44e255){_0x44e255['addEventListener']('apply',_0x15dbd7=>{this['fire']('apply',{'imageSrc':_0x15dbd7['detail']['cdnUrl']});}),_0x44e255['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3c0c42(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x477154,_0xf00820,_0x1510b0){super(),this['_editor']=_0x477154,this['_dialog']=_0xf00820,this['_imageElement']=_0x1510b0,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 _0x22fb3b=this['_imageElement'],_0x545f19=_0x22fb3b['getAttribute']('uploadcareImageId'),_0x12c273=_0x22fb3b['getAttribute']('src');if(_0x545f19)await this['_loadImageInfo'](_0x545f19,_0x12c273);else{if(this['_imageCache']['has'](_0x12c273)){const _0x4c1280=this['_imageCache']['get'](_0x12c273);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c1280['url'],this['imageDimension']=_0x4c1280['dimension'],this['imageId']=_0x4c1280['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4396e5}=this['_editor'],t=_0x4396e5['t'],_0x296814=new X(_0x4396e5,this['imageStatus'],this['_attributes']);_0x296814['bind']('status')['to'](this,'imageStatus'),_0x296814['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x296814['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x296814['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x296814,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x46c8f7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x296814,'position':_0x17c0af['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x296814['focus']();},'onHide':()=>{_0x296814['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x289600=>!A(_0x289600,_0x296814['element'])}});}['_loadImageInfo'](_0x428a98,_0x5d6ed5){return j['getInfo'](_0x428a98,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xd3428b=>{const {width:_0x488742,height:_0x5e4432}=_0xd3428b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d6ed5,this['imageDimension']={'width':_0x488742,'height':_0x5e4432},this['imageId']=_0x428a98;})['catch'](_0x3f78ca=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f78ca['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x25ecde,_0x992bbc){return this['_getImageAsFile'](_0x25ecde)['then'](_0x10299d=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x992bbc['signal'],'file':_0x10299d,'onProgress':_0x4a45de=>{_0x4a45de&&_0x4a45de['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4a45de['value']));}}))['then'](_0x15729f=>{const {width:_0x3f1fdb,height:_0x4e6fd5}=_0x15729f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15729f['cdnUrl'],this['imageDimension']={'width':_0x3f1fdb,'height':_0x4e6fd5},this['imageId']=_0x15729f['uuid'],this['imageUploadProgress']=null;const _0x1b0ab2=_0x25ecde['getAttribute']('src');this['_imageCache']['set'](_0x1b0ab2,{'id':_0x15729f['uuid'],'url':_0x15729f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x51d0d3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x51d0d3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xbfcfe,_0x2bc28f){_0xbfcfe['on']('apply',(_0x216fa1,_0x4314fa)=>{this['_replaceImage'](_0x2bc28f,_0x4314fa['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xbfcfe['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xbfcfe['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x596bf7,_0x4a8d10,_0x5a494c){const _0x5b97fa=this['_editor'],{width:_0x41ff7f,height:_0x12d6a7}=S(_0x4a8d10,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1ff427,imageSources:_0x1c2d0b}=C(_0x4a8d10,_0x41ff7f);_0x5b97fa['model']['change'](_0x14bf60=>{if('$graveyard'===_0x596bf7['root']['rootName']){_0x5b97fa['execute']('insertImage',{'imageType':_0x596bf7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x596bf7['getAttributes']()),'uploadcareImageId':_0x5a494c,'src':_0x1ff427,'sources':_0x1c2d0b,'width':_0x41ff7f,'height':_0x12d6a7}});const _0x53430f=_0x596bf7['getChildren']();_0x596bf7=_0x5b97fa['model']['document']['selection']['getSelectedElement']();for(const _0x29a8bd of _0x53430f)_0x14bf60['append'](_0x14bf60['cloneElement'](_0x29a8bd),_0x596bf7);}else _0x14bf60['setSelection'](_0x596bf7,'on'),_0x5b97fa['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x596bf7['getAttributes']()),'uploadcareImageId':_0x5a494c,'src':_0x1ff427,'sources':_0x1c2d0b,'width':_0x41ff7f,'height':_0x12d6a7},_0x596bf7);_0x14bf60['setSelection'](_0x596bf7,'on');});}async['_getImageAsFile'](_0x2de472){const _0x1b1375=_0x593112['window'],_0x2fb732=_0x593112['document']['location']['href'],_0x4516ee=new _0x1b1375['URL'](_0x2de472['getAttribute']('src'),_0x2fb732);if('data:'===_0x4516ee['protocol']){const _0xd6e876=_0x4516ee['href']['split'](','),_0x4c3df1=_0xd6e876[0x0]['match'](/:(.*?);/)[0x1],_0x2bf29c=_0x4c3df1['split']('/')[0x1],_0x43028e=_0x1b1375['atob'](_0xd6e876[_0xd6e876['length']-0x1]);let _0x4e2396=_0x43028e['length'];const _0x26b09a=new _0x1b1375['Uint8Array'](_0x4e2396);for(;_0x4e2396--;)_0x26b09a[_0x4e2396]=_0x43028e['charCodeAt'](_0x4e2396);return new _0x1b1375['File']([_0x26b09a],'image.'+_0x2bf29c,{'type':_0x4c3df1});}const _0x43a6ad=_0x4516ee['href']['split']('/'),_0x35a550=_0x43a6ad[_0x43a6ad['length']-0x1],_0x475669=_0x35a550['split']('.')[0x1];return _0x1b1375['fetch'](_0x4516ee['href'])['then'](_0x1818c9=>_0x1818c9['clone']()['blob']())['then'](_0x475530=>new _0x1b1375['File']([_0x475530],_0x35a550,{'type':'image/'+_0x475669}));}}class O extends _0x4aeb58{['imageEditController'];static get['requires'](){return[_0x5efedc];}['_isEditable'];constructor(_0x5a5c7a){super(_0x5a5c7a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5b50c0){const _0x5213a3=G(_0x5b50c0);return _0x510ae2=>!(!_0x510ae2||!_0x510ae2['is']('element','imageBlock')&&!_0x510ae2['is']('element','imageInline'))&&(!!_0x510ae2['hasAttribute']('uploadcareImageId')||!!_0x510ae2['hasAttribute']('src')&&_0x5213a3(_0x510ae2['getAttribute']('src')));}(_0x5a5c7a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x53852d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x53852d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x345eb2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x345eb2&&(_0x345eb2['is']('element','imageBlock')||_0x345eb2['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x5efedc),_0x345eb2),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4aeb58{['refresh'](){const _0x5822aa=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5822aa&&(_0x5822aa['is']('element','imageBlock')||_0x5822aa['is']('element','imageInline')));}['execute'](_0x1872b9){const _0x1be3ca=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x6aca9f=>{_0x6aca9f['setAttributes'](_0x1872b9,_0x1be3ca),_0x6aca9f['removeAttribute']('srcset',_0x1be3ca),_0x6aca9f['removeAttribute']('sizes',_0x1be3ca);});}}class m extends _0x386969{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xeff5bc,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x37058a}=this;_0x37058a['commands']['add']('uploadcareImageEdit',new O(_0x37058a)),_0x37058a['commands']['add']('uploadcareImageReplace',new R(_0x37058a));}}class g extends _0x386969{['_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 _0x46fe38=this['editor'];_0x46fe38['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2d06ad=>{const _0x47999e=_0x46fe38['commands']['get']('uploadcareImageEdit'),_0x1555cd=new _0x445303(_0x2d06ad),t=_0x2d06ad['t'];return _0x1555cd['set']({'icon':_0x46c8f7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1555cd['bind']('isEnabled')['to'](_0x47999e),_0x1555cd['bind']('isOn')['to'](_0x47999e,'isActive'),this['listenTo'](_0x1555cd,'execute',()=>{_0x46fe38['execute']('uploadcareImageEdit'),_0x46fe38['editing']['view']['focus']();}),_0x1555cd;}),this['_initConfig']();}['_initConfig'](){const _0x22700b=_0x1b1887(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x22700b),this['listenTo'](this['editor'],'destroy',()=>{_0x22700b['remove']();});}}class et extends _0x386969{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 _0x39c3ad,Command as _0x4328ce}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x41dbab,IconGooglePhotos as _0x3ff0aa,IconGoogleDrive as _0x562ff3,IconFacebook as _0x5d1048,IconDropbox as _0x1851b4,IconUploadcareLink as _0x29be8c,IconUploadcareImageUpload as _0x257715,IconError as _0x351b85,IconUploadcareImageEdit as _0x582bbb}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x227c2b,MenuBarMenuListItemButtonView as _0x1785e8,View as _0x2f8857,FocusCycler as _0x133e0c,Dialog as _0x4b691a,DialogViewPosition as _0x2de70e,SpinnerView as _0xfb01be,IconView as _0x433aea,Notification as _0x57c716}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x382794,DomEmitterMixin as _0x543665,global as _0x29fec2,getAncestors as _0x368260,ObservableMixin as _0x54438c,uid as _0x3fd7a2,createElement as _0x79bcbc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x12c1b0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3e7095,info as _0xe608f}from'@uploadcare/upload-client';import*as _0x1f4bb4 from'@uploadcare/file-uploader';var i=function(_0x5e8031){return _0x5e8031['Local']='local',_0x5e8031['URL']='url',_0x5e8031['Dropbox']='dropbox',_0x5e8031['GDrive']='gdrive',_0x5e8031['Facebook']='facebook',_0x5e8031['GPhotos']='gphotos',_0x5e8031['OneDrive']='onedrive',_0x5e8031;}({});function _(_0x218cf3,_0x124326,_0x2b836b){const t=_0x218cf3['t'],_0x42fba8=_0x218cf3['t'];switch(_0x124326){case i['Local']:return{'text':_0x42fba8('Insert'===_0x2b836b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x42fba8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2b836b?_0x42fba8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x42fba8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2b836b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2b836b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2b836b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2b836b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2b836b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x124326;}}class e extends _0x39c3ad{['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 _0x31c13e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13de8c;for(const _0x35dc8f in _0x31c13e){const _0x194f74=_0x35dc8f,_0x2711d3=_0x31c13e[_0x194f74];if('uploadcareLicenseKeyValid'==_0x2711d3||'uploadcareLicenseKeyInvalid'==_0x2711d3||'uploadcareLicenseKeyExpired'==_0x2711d3||'uploadcareLicenseKeyDomainLimit'==_0x2711d3||'uploadcareLicenseKeyNotAllowed'==_0x2711d3||'uploadcareLicenseKeyEvaluationLimit'==_0x2711d3||'uploadcareLicenseKeyTrialLimit'==_0x2711d3||'uploadcareLicenseKeyUsageLimit'==_0x2711d3){delete _0x31c13e[_0x194f74],_0x13de8c=_0x2711d3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x13de8c&&_0x31c13e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x13de8c&&_0x31c13e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x13de8c&&_0x31c13e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x13de8c&&_0x31c13e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x13de8c&&_0x31c13e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x13de8c&&_0x31c13e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x13de8c&&_0x31c13e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1ef9a2}=this,_0x546e4f=_0x1ef9a2['commands']['get']('uploadcare');if(!_0x546e4f)return;const _0x33c3f1=this['_normalizeConfigSourceList'](_0x1ef9a2['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x451063,_0x56ab7c)=>{const _0x47ff60=this['_getIntegrationKey'](_0x56ab7c['type']);return _0x451063[_0x47ff60]||(_0x451063[_0x47ff60]=[]),_0x451063[_0x47ff60]['push'](_0x56ab7c),_0x451063;},{});_0x1ef9a2['plugins']['has']('ImageInsertUI')&&_0x1ef9a2['commands']['get']('uploadcare')&&Object['entries'](_0x33c3f1)['forEach'](([_0x12658a,_0x52a8c5])=>{_0x1ef9a2['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x12658a,'observable':()=>_0x546e4f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x52a8c5),'formViewCreator':()=>this['_createDropdownButtons'](_0x52a8c5),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x52a8c5),'override':'assetManager'!==_0x12658a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x58f158){const {locale:_0x26b1a1}=this['editor'];return _0x58f158['map'](_0x5b35b6=>{const _0x8235a8=_(_0x26b1a1,_0x5b35b6,'Insert');switch(_0x5b35b6){case i['Local']:return{'icon':_0x257715,'type':i['Local'],..._0x8235a8};case i['URL']:return{'icon':_0x29be8c,'type':i['URL'],..._0x8235a8};case i['Dropbox']:return{'icon':_0x1851b4,'type':i['Dropbox'],..._0x8235a8};case i['Facebook']:return{'icon':_0x5d1048,'type':i['Facebook'],..._0x8235a8};case i['GDrive']:return{'icon':_0x562ff3,'type':i['GDrive'],..._0x8235a8};case i['GPhotos']:return{'icon':_0x3ff0aa,'type':i['GPhotos'],..._0x8235a8};case i['OneDrive']:return{'icon':_0x41dbab,'type':i['OneDrive'],..._0x8235a8};}});}['_getIntegrationKey'](_0x1556ec){switch(_0x1556ec){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2cee83,_0x4fa3d1){const _0x3267ea=this['editor'],_0x148c02=new _0x2cee83(_0x3267ea['locale']),_0x4158ec=_0x3267ea['commands']['get']('uploadcare');return _0x148c02['bind']('isEnabled')['to'](_0x4158ec),_0x148c02['on']('execute',()=>{_0x4158ec['execute'](_0x4fa3d1);}),_0x148c02;}['_createToolbarButton'](_0x288b9e){const {locale:_0x1da80e}=this['editor'],_0x1fe396=this['editor']['plugins']['get']('ImageInsertUI'),_0x3f0a53=_0x288b9e[0x0],_0x5e6505=this['_createButton'](_0x227c2b,_0x3f0a53['type']);return _0x5e6505['icon']=_0x3f0a53['icon'],_0x5e6505['bind']('label')['to'](_0x1fe396,'isImageSelected',_0x36046f=>_(_0x1da80e,_0x3f0a53['type'],_0x36046f?'Replace':'Insert')['text']),_0x5e6505['tooltip']=!0x0,_0x5e6505;}['_createDropdownButtons'](_0x34ffa0){const {locale:_0xd6661}=this['editor'],_0x251fa5=this['editor']['plugins']['get']('ImageInsertUI');return _0x34ffa0['map'](_0x199102=>{const _0x5639da=this['_createButton'](_0x227c2b,_0x199102['type']);return _0x5639da['withText']=!0x0,_0x5639da['icon']=_0x199102['icon'],_0x5639da['bind']('label')['to'](_0x251fa5,'isImageSelected',_0xdefcb8=>_(_0xd6661,_0x199102['type'],_0xdefcb8?'Replace':'Insert')['text']),_0x5639da;});}['_createMenuBarButtons'](_0x50dc93){return _0x50dc93['map'](_0x1446d4=>{const _0x4cd9a6=this['_createButton'](_0x1785e8,_0x1446d4['type']);return _0x4cd9a6['icon']=_0x1446d4['icon'],_0x4cd9a6['label']=_0x1446d4['shortText'],_0x4cd9a6;});}}class F extends _0x2f8857{['focusTracker'];['focusCycler'];constructor(_0x1d9e16){super(_0x1d9e16),this['focusTracker']=new _0x382794(),this['focusCycler']=new _0x133e0c({'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(_0x18eb16,_0x1c3266){super(_0x18eb16),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-'+_0x1c3266}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4ca2a1,_0x34e6e9){const _0x2f826d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3936f6=>_0x3936f6<=_0x34e6e9)['map'](_0x1ffe80=>_0x4ca2a1['replace'](/\/$/,'')+'/-/resize/'+_0x1ffe80+'x/\x20'+_0x1ffe80+'w');return{'imageFallbackUrl':_0x4ca2a1,'imageSources':[{'srcset':_0x2f826d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x34e6e9+'px)\x20100vw,\x20'+_0x34e6e9+'px','type':'image/webp'}]};}function S(_0x4e84a9,_0x161836,_0x25a3b8){const _0x353aa0=_0x4e84a9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x353aa0?parseInt(_0x353aa0[0x1],0xa):_0x161836,'height':_0x353aa0?parseInt(_0x353aa0[0x2],0xa):_0x25a3b8};}function p(_0x521d49,_0x5256c2){const _0x167ff6=new(_0x543665())(),_0x54c6ce=_0x521d49['plugins']['get']('ImageUtils'),_0x1867ea=_0x521d49['editing']['mapper']['toViewElement'](_0x5256c2),_0x42ec65=_0x54c6ce['findViewImgElement'](_0x1867ea),_0x413d52=_0x521d49['editing']['view']['domConverter']['viewToDom'](_0x42ec65),_0x36ff99=_0x5256c2['getAttribute']('width'),_0x2d688a=_0x5256c2['getAttribute']('height'),_0x295019='image-processing';_0x521d49['editing']['view']['change'](_0x330a9b=>{_0x330a9b['addClass'](_0x295019,_0x1867ea),_0x330a9b['setStyle']('aspect-ratio',_0x36ff99+'/'+_0x2d688a,_0x42ec65);}),_0x167ff6['listenTo'](_0x413d52,'load',()=>{_0x167ff6['stopListening'](_0x413d52,'load'),_0x521d49['editing']['view']['change'](_0x29efa7=>{_0x29efa7['removeClass'](_0x295019,_0x1867ea),_0x29efa7['removeStyle']('aspect-ratio',_0x42ec65);});});}function z(_0x198b39){if(Array['isArray'](_0x198b39)){const _0x358399=_0x198b39['map'](z);return _0x18439e=>_0x358399['some'](_0x1668e0=>_0x1668e0(_0x18439e));}if('origin'==_0x198b39){const _0x49b40b=_0x29fec2['window']['location']['origin'];return _0x3e68f5=>new URL(_0x3e68f5,_0x29fec2['document']['baseURI'])['origin']==_0x49b40b;}return'function'==typeof _0x198b39?_0x198b39:_0x198b39 instanceof RegExp?_0x1f8c36=>!(!_0x1f8c36['match'](_0x198b39)&&!_0x1f8c36['replace'](/^https?:\/\//,'')['match'](_0x198b39)):()=>!0x1;}function A(_0x36bf93,_0x14a8a5){return _0x368260(_0x36bf93['target'])['includes'](_0x14a8a5);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x54438c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x169db0,_0x398497,_0x5641d5){super(),this['_editor']=_0x169db0,this['_editing']=_0x398497,this['_dialog']=_0x169db0['plugins']['get'](_0x4b691a),this['_api']=_0x398497['ctxElement']['getAPI'](),this['_type']=_0x5641d5,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:_0x533aa1,model:_0x560bda}=this['_editor'],_0x125a18=_0x560bda['document']['selection']['getSelectedElement'](),_0x3bc4ce=_0x125a18&&(_0x125a18['is']('element','imageBlock')||_0x125a18['is']('element','imageInline'));this['_formView']=new x(_0x533aa1,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x257715,'title':_(_0x533aa1,this['_type'],_0x3bc4ce?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2de70e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x335698=>!A(_0x335698,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x33dc3e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x67060b=>{const _0x379a10=_0x33dc3e['length'];for(const _0xc03732 of _0x33dc3e){const _0x5b5107=_0xc03732===_0x33dc3e[_0x379a10-0x1],{cdnUrl:_0x27e5b7,fileInfo:_0x4878e0}=_0xc03732;if(!_0x27e5b7||!_0x4878e0)continue;const {width:_0x3eb1fa,height:_0x5fe7d3}=_0x4878e0['imageInfo'],_0x175919=S(_0x27e5b7,_0x3eb1fa,_0x5fe7d3),_0x2218e5=C(_0x27e5b7,_0x175919['width']),_0xb4bd7b={'id':_0x4878e0['uuid'],'type':'image','attributes':{'imageDimension':_0x175919,..._0x2218e5}};this['_insertAsset'](_0xb4bd7b,_0x5b5107,_0x67060b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1a0ca3=>{'idle'===_0x1a0ca3['detail']['status']&&!_0x1a0ca3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3762e9,_0x47754e,_0x3b8b5e){const _0x484dfe=this['_editor']['model']['document']['selection'],_0x3733b6=_0x484dfe['getSelectedElement'](),_0x12c25f=!(!_0x3733b6||!_0x3733b6['is']('element','imageInline'));_0x3b8b5e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3762e9,_0x12c25f),_0x47754e||_0x3b8b5e['setSelection'](_0x484dfe['getLastPosition']());}['_insertImage'](_0x208ca2,_0x4cc0bb){const _0x36ce11=this['_editor'],{imageDimension:_0x218d43,imageFallbackUrl:_0x38e59d,imageSources:_0x4fa385}=_0x208ca2['attributes'];_0x36ce11['execute']('insertImage',{'imageType':_0x4cc0bb?'imageInline':null,'source':{'uploadcareImageId':_0x208ca2['id'],'src':_0x38e59d,'sources':_0x4fa385,..._0x218d43}});}}class w extends _0x4328ce{['_editing'];['_controller']=null;static get['requires'](){return[_0x4b691a,o];}constructor(_0x1d4d17){super(_0x1d4d17),this['_editing']=_0x1d4d17['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xb46156){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xb46156);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x57eb58,..._0x250b57}){return _0x3e7095(_0x57eb58,_0x250b57);}static['getInfo'](_0x184439,_0x168847){return _0xe608f(_0x184439,_0x168847);}}class f extends _0x39c3ad{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x12c1b0,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x46ba7e=this['editor'];if(!!!_0x46ba7e['config']['get']('uploadcare'))return;_0x46ba7e['plugins']['get'](_0x12c1b0)['createUploadAdapter']=_0x52da9a=>new k(_0x52da9a,_0x46ba7e),_0x46ba7e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x41ba73,{imageElement:_0x14cc47,data:_0x1f01c1})=>{_0x46ba7e['model']['change'](_0x286218=>{_0x286218['setAttribute']('uploadcareImageId',_0x1f01c1['uploadcareImageId'],_0x14cc47);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xbdffe7,_0x2f65af){this['loader']=_0xbdffe7,this['editor']=_0x2f65af,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3b4b4e=await this['loader']['file'];return j['upload']({'file':_0x3b4b4e,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x34772d=>{_0x34772d&&_0x34772d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x34772d['value']);}})['then'](async _0x13c754=>{const {imageFallbackUrl:_0x1a5961,imageSources:_0x560586}=C(_0x13c754['cdnUrl'],_0x13c754['imageInfo']['width']);return{'uploadcareImageId':_0x13c754['uuid'],'default':_0x1a5961,'sources':_0x560586};})['catch'](()=>{const _0x7c3794=t('Cannot\x20upload\x20file:')+('\x20'+_0x3b4b4e['name']+'.');return Promise['reject'](_0x7c3794);});}['abort'](){this['controller']['abort']();}}class o extends _0x39c3ad{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4b691a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xdde774){super(_0xdde774),this['ucContextId']=_0x3fd7a2();}['init'](){const _0x47e79c=this['editor'];_0x47e79c['commands']['add']('uploadcare',new w(_0x47e79c));}['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 _0x3899c9=_0x29fec2['document']['querySelector']('input[uploadcare-file-input]');_0x3899c9&&_0x3899c9['remove']();}),async function(_0x31e455){const _0x427554=_0x2618ce([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4c83bd=0x535f8c3a,_0xdd1095=0x5358f702^_0x4c83bd,_0x5d2e29=window[_0x2618ce([0x44,0x61,0x74,0x65])][_0x2618ce([0x6e,0x6f,0x77])](),_0x42d750=_0x31e455[_0x2618ce([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xbea417=new window[(_0x2618ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f9417=>{_0x42d750[_0x2618ce([0x6f,0x6e,0x63,0x65])](_0x2618ce([0x72,0x65,0x61,0x64,0x79]),_0x4f9417);}),_0x4e1808={[_0x2618ce([0x6b,0x74,0x79])]:_0x2618ce([0x45,0x43]),[_0x2618ce([0x75,0x73,0x65])]:_0x2618ce([0x73,0x69,0x67]),[_0x2618ce([0x63,0x72,0x76])]:_0x2618ce([0x50,0x2d,0x32,0x35,0x36]),[_0x2618ce([0x78])]:_0x2618ce([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]),[_0x2618ce([0x79])]:_0x2618ce([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]),[_0x2618ce([0x61,0x6c,0x67])]:_0x2618ce([0x45,0x53,0x32,0x35,0x36])},_0x29b97a=_0x42d750[_0x2618ce([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2618ce([0x67,0x65,0x74])](_0x2618ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x575f05(){let _0x3517fd,_0x5edecf=null,_0x3e7818=null;try{if(_0x29b97a==_0x2618ce([0x47,0x50,0x4c]))return _0x2618ce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3517fd=_0x1249c5(),!_0x3517fd)return _0x2618ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3517fd[_0x2618ce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e7818=_0x300373(_0x3517fd[_0x2618ce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3517fd[_0x2618ce([0x6a,0x74,0x69])])),await _0x2262d6()?_0x6c019f()?_0x1a0b01()?_0x2618ce([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1340b8()?(_0x3517fd[_0x2618ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2618ce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5edecf=_0x1b195d(_0x2618ce([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3517fd[_0x2618ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2618ce([0x74,0x72,0x69,0x61,0x6c])&&(_0x5edecf=_0x1b195d(_0x2618ce([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46e23e()):_0x2618ce([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2618ce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2618ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2618ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a0b01(){const _0x5ed336=[_0x2618ce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2618ce([0x74,0x72,0x69,0x61,0x6c])][_0x2618ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3517fd[_0x2618ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d2e29/0x3e8:0xe10*_0xdd1095;return _0x3517fd[_0x2618ce([0x65,0x78,0x70])]<_0x5ed336;}function _0x6c019f(){const _0x3c38c9=_0x3517fd[_0x2618ce([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c38c9&&(!!_0x3c38c9[_0x2618ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2618ce([0x2a]))||!!_0x3c38c9[_0x2618ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2618ce([0x55,0x50,0x4c,0x43])));}function _0x1340b8(){const _0x13802b=_0x3517fd[_0x2618ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13802b||0x0==_0x13802b[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x180318}=new URL(window[_0x2618ce([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x13802b[_0x2618ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x180318))return!0x0;const _0x7ce263=_0x180318[_0x2618ce([0x73,0x70,0x6c,0x69,0x74])](_0x2618ce([0x2e]));return _0x13802b[_0x2618ce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3233d3=>_0x3233d3[_0x2618ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2618ce([0x2a])))[_0x2618ce([0x6d,0x61,0x70])](_0x38884e=>_0x38884e[_0x2618ce([0x73,0x70,0x6c,0x69,0x74])](_0x2618ce([0x2e])))[_0x2618ce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ffc34=>_0x4ffc34[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7ce263[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2618ce([0x6d,0x61,0x70])](_0x17dbf3=>Array(_0x7ce263[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x17dbf3[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2618ce([0x66,0x69,0x6c,0x6c])](_0x17dbf3[0x0]===_0x2618ce([0x2a])?_0x2618ce([0x2a]):'')[_0x2618ce([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x17dbf3))[_0x2618ce([0x73,0x6f,0x6d,0x65])](_0x2fff8e=>_0x7ce263[_0x2618ce([0x65,0x76,0x65,0x72,0x79])]((_0x4183d4,_0x4d3a09)=>_0x2fff8e[_0x4d3a09]===_0x4183d4||_0x2fff8e[_0x4d3a09]===_0x2618ce([0x2a])));}function _0x46e23e(){return _0x5edecf&&_0x3e7818?new window[(_0x2618ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d075d,_0x397450)=>{_0x5edecf[_0x2618ce([0x74,0x68,0x65,0x6e])](_0x5d075d,_0x397450),_0x3e7818[_0x2618ce([0x74,0x68,0x65,0x6e])](_0x4d6846=>{_0x4d6846!=_0x2618ce([0x56,0x61,0x6c,0x69,0x64])&&_0x5d075d(_0x4d6846);},_0x397450);}):_0x5edecf||_0x3e7818||_0x2618ce([0x56,0x61,0x6c,0x69,0x64]);}}function _0x300373(_0x425c14,_0x241595){return new window[(_0x2618ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d7fa1=>{if(_0x543e1d())return _0x2d7fa1(_0x2618ce([0x56,0x61,0x6c,0x69,0x64]));_0x1f5e03(),_0x42d750[_0x2618ce([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2618ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x396f96=!0x1;const _0xe24b10=_0x3fd7a2();function _0x1e0ab9(_0xad05a6){return!!_0xad05a6&&(typeof _0xad05a6===_0x2618ce([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xad05a6===_0x2618ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xad05a6[_0x2618ce([0x74,0x68,0x65,0x6e])]===_0x2618ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xad05a6[_0x2618ce([0x63,0x61,0x74,0x63,0x68])]===_0x2618ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bd11e(_0x4a2dab){_0x35e9d0(_0x4a2dab)[_0x2618ce([0x74,0x68,0x65,0x6e])](_0x127908=>{if(!_0x127908||_0x127908[_0x2618ce([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2618ce([0x6f,0x6b]))return _0x2618ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f612b(_0x445ae6(_0xe24b10+_0x241595))!=_0x127908[_0x2618ce([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2618ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2618ce([0x56,0x61,0x6c,0x69,0x64]);})[_0x2618ce([0x74,0x68,0x65,0x6e])](_0x240692=>(_0x4a2441(),_0x240692),()=>{const _0x48a426=_0x2f7b78();return null==_0x48a426?(_0x4a2441(),_0x2618ce([0x56,0x61,0x6c,0x69,0x64])):_0x2618ce(_0x5d2e29-_0x48a426>(0x7753083a^_0x4c83bd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2618ce([0x74,0x68,0x65,0x6e])](_0x2d7fa1)[_0x2618ce([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d7fa1(_0x2618ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x343e36=0x536962ba^_0x4c83bd;function _0x4a2441(){const _0x253377=_0x2618ce([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f612b(_0x445ae6(_0x425c14)),_0x5ddc1c=_0x1e228b(_0x2f612b(window[_0x2618ce([0x4d,0x61,0x74,0x68])][_0x2618ce([0x63,0x65,0x69,0x6c])](_0x5d2e29/_0x343e36)));window[_0x2618ce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2618ce([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x253377,_0x5ddc1c);}function _0x2f7b78(){const _0x9dc42c=_0x2618ce([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f612b(_0x445ae6(_0x425c14)),_0x216b2d=window[_0x2618ce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2618ce([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9dc42c);return _0x216b2d?window[_0x2618ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e228b(_0x216b2d),0x10)*_0x343e36:null;}function _0x35e9d0(_0x129b96){return new window[(_0x2618ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50efdc,_0x408865)=>{_0x129b96[_0x2618ce([0x74,0x68,0x65,0x6e])](_0x50efdc,_0x408865),window[_0x2618ce([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x408865,0x535e58fa^_0x4c83bd);});}}_0x42d750[_0x2618ce([0x6f,0x6e])](_0x2618ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x10a644,_0xb65277)=>{if(_0xb65277[0x0]!=_0x425c14)return _0x2d7fa1(_0x2618ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb65277[0x1]={..._0xb65277[0x1],[_0x2618ce([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe24b10};},{[_0x2618ce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2618ce([0x68,0x69,0x67,0x68])}),_0x42d750[_0x2618ce([0x6f,0x6e])](_0x2618ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42e0ca=>{_0x1e0ab9(_0x42e0ca[_0x2618ce([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x396f96=!0x0,_0x3bd11e(_0x42e0ca[_0x2618ce([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2618ce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2618ce([0x6c,0x6f,0x77])}),_0xbea417[_0x2618ce([0x74,0x68,0x65,0x6e])](()=>{_0x396f96||_0x2d7fa1(_0x2618ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x543e1d(){return _0x42d750[_0x2618ce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2618ce([0x76,0x69,0x65,0x77])][_0x2618ce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2618ce([0x61,0x75,0x74,0x6f]);}function _0x1f5e03(){_0x42d750[_0x2618ce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2618ce([0x76,0x69,0x65,0x77])][_0x2618ce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2618ce([0x61,0x75,0x74,0x6f]);}}function _0x1b195d(_0xb11ee2){const _0x5173c6=[new window[(_0x2618ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dec8a=>setTimeout(_0x1dec8a,0x5356b2f6^_0x4c83bd)),_0xbea417[_0x2618ce([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2618ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x68ef2a=>{let _0x4a745d=0x0;_0x42d750[_0x2618ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x2618ce([0x6f,0x6e])](_0x2618ce([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57e32b,_0x48d650)=>{_0x48d650[0x0][_0x2618ce([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a745d++,_0x4a745d==(0x535f8dc2^_0x4c83bd)&&(_0x68ef2a(),_0x57e32b[_0x2618ce([0x6f,0x66,0x66])]());});}))];return window[_0x2618ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2618ce([0x72,0x61,0x63,0x65])](_0x5173c6)[_0x2618ce([0x74,0x68,0x65,0x6e])](()=>_0xb11ee2);}async function _0x2a6519(){await _0xbea417,_0x42d750[_0x2618ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x2618ce([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59de3d,_0x42d750[_0x2618ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x2618ce([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59de3d,_0x42d750[_0x2618ce([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2618ce([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x38bae3(_0x257039){const _0x10b9cc=_0x44471e();_0x42d750[_0x10b9cc]=_0x2618ce([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x257039,_0x257039!=_0x2618ce([0x56,0x61,0x6c,0x69,0x64])&&_0x2a6519();}function _0x44471e(){const _0x56cb87=window[_0x2618ce([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2618ce([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2618ce([0x6e,0x6f,0x77])]())[_0x2618ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2618ce([0x2e]),'');let _0x2edc8c=_0x2618ce([0x68]);for(let _0x43e3a0=0x0;_0x43e3a0<_0x56cb87[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43e3a0+=0x2){let _0x2e1ed5=window[_0x2618ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56cb87[_0x2618ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43e3a0,_0x43e3a0+0x2));_0x2e1ed5>=_0x427554[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2e1ed5-=_0x427554[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2edc8c+=_0x427554[_0x2e1ed5];}return _0x2edc8c;}function _0x1249c5(){const _0x14e9ba=_0x29b97a[_0x2618ce([0x73,0x70,0x6c,0x69,0x74])](_0x2618ce([0x2e]));if(0x3!=_0x14e9ba[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4362fc(_0x14e9ba[0x1]);function _0x4362fc(_0x56a6a0){const _0x4fb04d=_0x2b7066(_0x56a6a0);return _0x4fb04d&&_0x49768d()?_0x4fb04d:null;function _0x49768d(){const _0x221537=_0x4fb04d[_0x2618ce([0x6a,0x74,0x69])],_0x48c6f9=window[_0x2618ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x221537[_0x2618ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x221537[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22f2fc={..._0x4fb04d,[_0x2618ce([0x6a,0x74,0x69])]:_0x221537[_0x2618ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x221537[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22f2fc[_0x2618ce([0x76,0x63])],_0x445ae6(_0x22f2fc)==_0x48c6f9;}}}async function _0x2262d6(){let _0x4f873d=!0x0;try{const _0x482d50=_0x29b97a[_0x2618ce([0x73,0x70,0x6c,0x69,0x74])](_0x2618ce([0x2e])),[_0x42262a,_0x4d24e7,_0x5ed370]=_0x482d50;return _0x497be3(_0x42262a),await _0x6a46ce(_0x42262a,_0x4d24e7,_0x5ed370),_0x4f873d;}catch{return!0x1;}function _0x497be3(_0x1c57b6){const _0xd2695b=_0x2b7066(_0x1c57b6);_0xd2695b&&_0xd2695b[_0x2618ce([0x61,0x6c,0x67])]==_0x2618ce([0x45,0x53,0x32,0x35,0x36])||(_0x4f873d=!0x1);}async function _0x6a46ce(_0xcaa774,_0x2a8c44,_0x232a5f){const _0x3ce34d=window[_0x2618ce([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2618ce([0x66,0x72,0x6f,0x6d])](_0x152cb2(_0x232a5f),_0x521c91=>_0x521c91[_0x2618ce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13697e=new window[(_0x2618ce([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2618ce([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcaa774+_0x2618ce([0x2e])+_0x2a8c44),_0x218589=window[_0x2618ce([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2618ce([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x218589)return;const _0x22d039=await _0x218589[_0x2618ce([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2618ce([0x6a,0x77,0x6b]),_0x4e1808,{[_0x2618ce([0x6e,0x61,0x6d,0x65])]:_0x2618ce([0x45,0x43,0x44,0x53,0x41]),[_0x2618ce([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2618ce([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2618ce([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x218589[_0x2618ce([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2618ce([0x6e,0x61,0x6d,0x65])]:_0x2618ce([0x45,0x43,0x44,0x53,0x41]),[_0x2618ce([0x68,0x61,0x73,0x68])]:{[_0x2618ce([0x6e,0x61,0x6d,0x65])]:_0x2618ce([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22d039,_0x3ce34d,_0x13697e)||(_0x4f873d=!0x1);}}function _0x2b7066(_0x3aa03c){return _0x3aa03c[_0x2618ce([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2618ce([0x65,0x79]))?JSON[_0x2618ce([0x70,0x61,0x72,0x73,0x65])](_0x152cb2(_0x3aa03c)):null;}function _0x152cb2(_0xd1debf){return window[_0x2618ce([0x61,0x74,0x6f,0x62])](_0xd1debf[_0x2618ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2618ce([0x2b]))[_0x2618ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2618ce([0x2f])));}function _0x445ae6(_0x5c92c5){let _0x4e2226=0x1505;function _0x5d26e0(_0x41e5c3){for(let _0x3168ac=0x0;_0x3168ac<_0x41e5c3[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3168ac++){const _0x5974b4=_0x41e5c3[_0x2618ce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3168ac);_0x4e2226=(_0x4e2226<<0x5)+_0x4e2226+_0x5974b4,_0x4e2226&=_0x4e2226;}}function _0x2ec155(_0x3139df){Array[_0x2618ce([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3139df)?_0x3139df[_0x2618ce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ec155):_0x3139df&&typeof _0x3139df==_0x2618ce([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2618ce([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3139df)[_0x2618ce([0x73,0x6f,0x72,0x74])]()[_0x2618ce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2208b0,_0x54d65d])=>{_0x5d26e0(_0x2208b0),_0x2ec155(_0x54d65d);}):_0x5d26e0(window[_0x2618ce([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3139df));}return _0x2ec155(_0x5c92c5),_0x4e2226>>>0x0;}function _0x2f612b(_0x428eba){return _0x428eba[_0x2618ce([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2618ce([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2618ce([0x30]));}function _0x1e228b(_0xcf2aaa){return _0xcf2aaa[_0x2618ce([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2618ce([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2618ce([0x6a,0x6f,0x69,0x6e])]('');}function _0x59de3d(){}function _0x2618ce(_0x3d0cce){return _0x3d0cce['map'](_0x301904=>String['fromCharCode'](_0x301904))['join']('');}_0x38bae3(await _0x575f05());}(this);}['_initSchema'](){const _0xf0dff5=this['editor']['model']['schema'];_0xf0dff5['isRegistered']('imageBlock')&&_0xf0dff5['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xf0dff5['isRegistered']('imageInline')&&_0xf0dff5['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x42659b=this['editor'];_0x42659b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x42659b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xb6719a=>_0xb6719a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1bb56c=_0x42659b['commands']['get']('replaceImageSource');_0x1bb56c&&this['listenTo'](_0x1bb56c,'cleanupImage',(_0x5643e2,[_0x18f100,_0x5e44cc])=>{_0x18f100['removeAttribute']('uploadcareImageId',_0x5e44cc);});}['_initConfig'](){const _0x45efd2=this['editor']['config']['get']('uploadcare.uploader')||{},_0x296d84=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x79bcbc(_0x29fec2['document'],'uc-config',{..._0x45efd2,'pubkey':_0x296d84,'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']=_0x2bd867=>{if('closeMax'==_0x2bd867)return'#uc-icon-arrow-down';},_0x29fec2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x79bcbc(_0x29fec2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x29fec2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x27dd0f=this['editor']['commands']['get']('insertImage');_0x27dd0f&&this['listenTo'](_0x27dd0f,'execute',()=>{const _0x467ae3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x467ae3&&_0x467ae3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x467ae3);});});const _0x5dbf92=this['editor']['commands']['get']('uploadcareImageReplace');_0x5dbf92&&this['listenTo'](_0x5dbf92,'execute',()=>{const _0x3fc45d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3fc45d&&_0x3fc45d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3fc45d);});});}}class tt extends _0x39c3ad{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21d5f7){super(_0x21d5f7),_0x21d5f7['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1f4bb4['defineComponents'](_0x1f4bb4),this['_defineLocale']();}['_defineLocale'](){const _0x20d98f=this['editor']['config']['get']('uploadcare.locale'),_0x100f78=this['editor']['locale']['contentLanguage'];_0x20d98f&&_0x1f4bb4['defineLocale'](_0x100f78,_0x20d98f);}}class ii extends _0x2f8857{constructor(_0x30c2bc){super(_0x30c2bc);const t=_0x30c2bc['t'],_0x532172=this['bindTemplate'],_0x2f2c2c=new _0xfb01be();_0x2f2c2c['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':[_0x2f2c2c,{'text':_0x532172['to']('imageUploadProgress',_0x4eacf0=>t('Loading\x20image...')+'\x20('+(_0x4eacf0||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 _0x2f8857{constructor(_0x28028d){super(_0x28028d);const t=_0x28028d['t'];this['set']('errorType',null);const _0x805181=new _0x227c2b(_0x28028d);_0x805181['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x805181['withText']=!0x0,_0x805181['class']='ck-button-action',_0x805181['on']('execute',()=>{this['fire']('retry');}),_0x805181['bind']('isVisible')['to'](this,'errorType',_0x226bc9=>'NotFound'!==_0x226bc9);const _0x3e45f7=new _0x433aea();_0x3e45f7['content']=_0x351b85,_0x3e45f7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x462f89=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':[_0x3e45f7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x462f89['to']('errorType',_0x1f84cc=>t('NotFound'!==_0x1f84cc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x805181]},{'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 _0x2f8857{constructor(_0xe3b06d,_0xa75867){super(_0xe3b06d);const _0x49ee84=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xa75867,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x49ee84['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2c4fae,_0x391435,_0x20502e){super(_0x2c4fae),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2c4fae),this['_errorView']=new ti(_0x2c4fae),this['_editingView']=new ei(_0x2c4fae,_0x20502e),this['_focusableView']=new _0x2f8857(_0x2c4fae),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x391435),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'],_0x3a749c=>{this['_addUploadcareImageEditorListeners'](_0x3a749c);});}),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'](_0x2f56d2,_0x5984c3){const _0x53acd5='uc-cloud-image-editor',_0x2bef98=_0x2f56d2['querySelector'](_0x53acd5);if(_0x2bef98)return _0x5984c3(_0x2bef98);const _0x328431=new MutationObserver(_0x202161=>{const _0x3e2c4b=_0x202161['filter'](_0x2d11e3=>_0x2d11e3['target']===_0x2f56d2&&_0x2d11e3['addedNodes']['length']>0x0&&_0x2d11e3['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x53acd5);_0x3e2c4b['length']&&(_0x328431['disconnect'](),_0x5984c3(_0x3e2c4b[0x0]['addedNodes'][0x0]));});_0x328431['observe'](_0x2f56d2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1e017d){_0x1e017d['addEventListener']('apply',_0x4ec46c=>{this['fire']('apply',{'imageSrc':_0x4ec46c['detail']['cdnUrl']});}),_0x1e017d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x54438c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x354c86,_0x438b23,_0x325df1){super(),this['_editor']=_0x354c86,this['_dialog']=_0x438b23,this['_imageElement']=_0x325df1,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 _0x4ae4be=this['_imageElement'],_0x2eb76b=_0x4ae4be['getAttribute']('uploadcareImageId'),_0x20d4c1=_0x4ae4be['getAttribute']('src');if(_0x2eb76b)await this['_loadImageInfo'](_0x2eb76b,_0x20d4c1);else{if(this['_imageCache']['has'](_0x20d4c1)){const _0x225313=this['_imageCache']['get'](_0x20d4c1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x225313['url'],this['imageDimension']=_0x225313['dimension'],this['imageId']=_0x225313['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e1754}=this['_editor'],t=_0x4e1754['t'],_0x303878=new X(_0x4e1754,this['imageStatus'],this['_attributes']);_0x303878['bind']('status')['to'](this,'imageStatus'),_0x303878['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x303878['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x303878['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x303878,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x582bbb,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x303878,'position':_0x2de70e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x303878['focus']();},'onHide':()=>{_0x303878['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x38b756=>!A(_0x38b756,_0x303878['element'])}});}['_loadImageInfo'](_0x5df3a3,_0x2c892e){return j['getInfo'](_0x5df3a3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5bb4bb=>{const {width:_0x44101a,height:_0x38092f}=_0x5bb4bb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2c892e,this['imageDimension']={'width':_0x44101a,'height':_0x38092f},this['imageId']=_0x5df3a3;})['catch'](_0x4deaf9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4deaf9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1ae875,_0x279a2d){return this['_getImageAsFile'](_0x1ae875)['then'](_0x47e0dd=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x279a2d['signal'],'file':_0x47e0dd,'onProgress':_0x30fdd8=>{_0x30fdd8&&_0x30fdd8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x30fdd8['value']));}}))['then'](_0x314654=>{const {width:_0x1d757f,height:_0x2cf206}=_0x314654['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x314654['cdnUrl'],this['imageDimension']={'width':_0x1d757f,'height':_0x2cf206},this['imageId']=_0x314654['uuid'],this['imageUploadProgress']=null;const _0x34a302=_0x1ae875['getAttribute']('src');this['_imageCache']['set'](_0x34a302,{'id':_0x314654['uuid'],'url':_0x314654['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x120cf6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x120cf6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x441430,_0x1bcd82){_0x441430['on']('apply',(_0x1bfefd,_0x5d8815)=>{this['_replaceImage'](_0x1bcd82,_0x5d8815['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x441430['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x441430['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1b73e1,_0xfacc77,_0x4be377){const _0x532202=this['_editor'],{width:_0x3c1c12,height:_0x3153d4}=S(_0xfacc77,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1c3aef,imageSources:_0x32242c}=C(_0xfacc77,_0x3c1c12);_0x532202['model']['change'](_0x23bf17=>{if('$graveyard'===_0x1b73e1['root']['rootName']){_0x532202['execute']('insertImage',{'imageType':_0x1b73e1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1b73e1['getAttributes']()),'uploadcareImageId':_0x4be377,'src':_0x1c3aef,'sources':_0x32242c,'width':_0x3c1c12,'height':_0x3153d4}});const _0x153d81=_0x1b73e1['getChildren']();_0x1b73e1=_0x532202['model']['document']['selection']['getSelectedElement']();for(const _0x5cab45 of _0x153d81)_0x23bf17['append'](_0x23bf17['cloneElement'](_0x5cab45),_0x1b73e1);}else _0x23bf17['setSelection'](_0x1b73e1,'on'),_0x532202['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1b73e1['getAttributes']()),'uploadcareImageId':_0x4be377,'src':_0x1c3aef,'sources':_0x32242c,'width':_0x3c1c12,'height':_0x3153d4},_0x1b73e1);_0x23bf17['setSelection'](_0x1b73e1,'on');});}async['_getImageAsFile'](_0x42925b){const _0x1aa9c7=_0x29fec2['window'],_0x513dd4=_0x29fec2['document']['location']['href'],_0x582575=new _0x1aa9c7['URL'](_0x42925b['getAttribute']('src'),_0x513dd4);if('data:'===_0x582575['protocol']){const _0x2adc5c=_0x582575['href']['split'](','),_0x528139=_0x2adc5c[0x0]['match'](/:(.*?);/)[0x1],_0x3c288f=_0x528139['split']('/')[0x1],_0x2fadf4=_0x1aa9c7['atob'](_0x2adc5c[_0x2adc5c['length']-0x1]);let _0x1104b6=_0x2fadf4['length'];const _0x52eb6d=new _0x1aa9c7['Uint8Array'](_0x1104b6);for(;_0x1104b6--;)_0x52eb6d[_0x1104b6]=_0x2fadf4['charCodeAt'](_0x1104b6);return new _0x1aa9c7['File']([_0x52eb6d],'image.'+_0x3c288f,{'type':_0x528139});}const _0xd32ba9=_0x582575['href']['split']('/'),_0x30453b=_0xd32ba9[_0xd32ba9['length']-0x1],_0x56c597=_0x30453b['split']('.')[0x1];return _0x1aa9c7['fetch'](_0x582575['href'])['then'](_0x565a9b=>_0x565a9b['clone']()['blob']())['then'](_0x6596f=>new _0x1aa9c7['File']([_0x6596f],_0x30453b,{'type':'image/'+_0x56c597}));}}class Q extends _0x4328ce{['imageEditController'];static get['requires'](){return[_0x4b691a];}['_isEditable'];constructor(_0x404327){super(_0x404327),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x502beb){const _0x5b78df=z(_0x502beb);return _0x2245cd=>!(!_0x2245cd||!_0x2245cd['is']('element','imageBlock')&&!_0x2245cd['is']('element','imageInline'))&&(!!_0x2245cd['hasAttribute']('uploadcareImageId')||!!_0x2245cd['hasAttribute']('src')&&_0x5b78df(_0x2245cd['getAttribute']('src')));}(_0x404327['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1ce52e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1ce52e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xf8e8ef=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf8e8ef&&(_0xf8e8ef['is']('element','imageBlock')||_0xf8e8ef['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x4b691a),_0xf8e8ef),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x4328ce{['refresh'](){const _0x293ebc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x293ebc&&(_0x293ebc['is']('element','imageBlock')||_0x293ebc['is']('element','imageInline')));}['execute'](_0x24187c){const _0x46b175=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x46e988=>{_0x46e988['setAttributes'](_0x24187c,_0x46b175),_0x46e988['removeAttribute']('srcset',_0x46b175),_0x46e988['removeAttribute']('sizes',_0x46b175);});}}class m extends _0x39c3ad{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x57c716,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x589b76}=this;_0x589b76['commands']['add']('uploadcareImageEdit',new Q(_0x589b76)),_0x589b76['commands']['add']('uploadcareImageReplace',new V(_0x589b76));}}class g extends _0x39c3ad{['_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 _0x2076f5=this['editor'];_0x2076f5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2c827d=>{const _0x22879c=_0x2076f5['commands']['get']('uploadcareImageEdit'),_0x206a8e=new _0x227c2b(_0x2c827d),t=_0x2c827d['t'];return _0x206a8e['set']({'icon':_0x582bbb,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x206a8e['bind']('isEnabled')['to'](_0x22879c),_0x206a8e['bind']('isOn')['to'](_0x22879c,'isActive'),this['listenTo'](_0x206a8e,'execute',()=>{_0x2076f5['execute']('uploadcareImageEdit'),_0x2076f5['editing']['view']['focus']();}),_0x206a8e;}),this['_initConfig']();}['_initConfig'](){const _0x4c48ac=_0x79bcbc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4c48ac),this['listenTo'](this['editor'],'destroy',()=>{_0x4c48ac['remove']();});}}class et extends _0x39c3ad{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':_0x2f147f=>0x1!=_0x2f147f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x466adc=>{const {af:{dictionary:_0x97aa42,getPluralForm:_0x3544d6}}={'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':_0x6227dd=>0x1!=_0x6227dd}};_0x466adc['af']||={'dictionary':{},'getPluralForm':null},_0x466adc['af']['dictionary']=Object['assign'](_0x466adc['af']['dictionary'],_0x97aa42),_0x466adc['af']['getPluralForm']=_0x3544d6;})(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':_0xd57ae8=>0x0==_0xd57ae8?0x0:0x1==_0xd57ae8?0x1:0x2==_0xd57ae8?0x2:_0xd57ae8%0x64>=0x3&&_0xd57ae8%0x64<=0xa?0x3:_0xd57ae8%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3feb1e=>{const {ar:{dictionary:_0xf906eb,getPluralForm:_0x43ad36}}={'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':_0x56a493=>0x0==_0x56a493?0x0:0x1==_0x56a493?0x1:0x2==_0x56a493?0x2:_0x56a493%0x64>=0x3&&_0x56a493%0x64<=0xa?0x3:_0x56a493%0x64>=0xb?0x4:0x5}};_0x3feb1e['ar']||={'dictionary':{},'getPluralForm':null},_0x3feb1e['ar']['dictionary']=Object['assign'](_0x3feb1e['ar']['dictionary'],_0xf906eb),_0x3feb1e['ar']['getPluralForm']=_0x43ad36;})(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':_0x3c4307=>0x1!=_0x3c4307}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e6b97=>{const {ast:{dictionary:_0x3fbe38,getPluralForm:_0x365c2c}}={'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':_0x30e11d=>0x1!=_0x30e11d}};_0x1e6b97['ast']||={'dictionary':{},'getPluralForm':null},_0x1e6b97['ast']['dictionary']=Object['assign'](_0x1e6b97['ast']['dictionary'],_0x3fbe38),_0x1e6b97['ast']['getPluralForm']=_0x365c2c;})(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':_0x59f773=>0x1!=_0x59f773}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x48f277=>{const {az:{dictionary:_0x23ab3f,getPluralForm:_0x8068bc}}={'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':_0x334197=>0x1!=_0x334197}};_0x48f277['az']||={'dictionary':{},'getPluralForm':null},_0x48f277['az']['dictionary']=Object['assign'](_0x48f277['az']['dictionary'],_0x23ab3f),_0x48f277['az']['getPluralForm']=_0x8068bc;})(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':_0x1be5c0=>_0x1be5c0%0xa==0x1&&_0x1be5c0%0x64!=0xb?0x0:_0x1be5c0%0xa>=0x2&&_0x1be5c0%0xa<=0x4&&(_0x1be5c0%0x64<0xa||_0x1be5c0%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e3a38=>{const {be:{dictionary:_0x32a77b,getPluralForm:_0xdd8bbc}}={'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':_0x470072=>_0x470072%0xa==0x1&&_0x470072%0x64!=0xb?0x0:_0x470072%0xa>=0x2&&_0x470072%0xa<=0x4&&(_0x470072%0x64<0xa||_0x470072%0x64>=0x14)?0x1:0x2}};_0x1e3a38['be']||={'dictionary':{},'getPluralForm':null},_0x1e3a38['be']['dictionary']=Object['assign'](_0x1e3a38['be']['dictionary'],_0x32a77b),_0x1e3a38['be']['getPluralForm']=_0xdd8bbc;})(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':_0x43dca8=>0x1!=_0x43dca8}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xb58b81=>{const {bg:{dictionary:_0x18a729,getPluralForm:_0x5b45d7}}={'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':_0x5fbaef=>0x1!=_0x5fbaef}};_0xb58b81['bg']||={'dictionary':{},'getPluralForm':null},_0xb58b81['bg']['dictionary']=Object['assign'](_0xb58b81['bg']['dictionary'],_0x18a729),_0xb58b81['bg']['getPluralForm']=_0x5b45d7;})(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':_0x4d67ef=>0x1!=_0x4d67ef}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x589101=>{const {bn:{dictionary:_0x393334,getPluralForm:_0x493672}}={'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':_0x45e413=>0x1!=_0x45e413}};_0x589101['bn']||={'dictionary':{},'getPluralForm':null},_0x589101['bn']['dictionary']=Object['assign'](_0x589101['bn']['dictionary'],_0x393334),_0x589101['bn']['getPluralForm']=_0x493672;})(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':_0x2c9db4=>_0x2c9db4%0xa==0x1&&_0x2c9db4%0x64!=0xb?0x0:_0x2c9db4%0xa>=0x2&&_0x2c9db4%0xa<=0x4&&(_0x2c9db4%0x64<0xa||_0x2c9db4%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x54570d=>{const {bs:{dictionary:_0xf00044,getPluralForm:_0x364b6d}}={'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':_0x11191a=>_0x11191a%0xa==0x1&&_0x11191a%0x64!=0xb?0x0:_0x11191a%0xa>=0x2&&_0x11191a%0xa<=0x4&&(_0x11191a%0x64<0xa||_0x11191a%0x64>=0x14)?0x1:0x2}};_0x54570d['bs']||={'dictionary':{},'getPluralForm':null},_0x54570d['bs']['dictionary']=Object['assign'](_0x54570d['bs']['dictionary'],_0xf00044),_0x54570d['bs']['getPluralForm']=_0x364b6d;})(window['CKEDITOR_TRANSLATIONS']||={});
|