@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250825.0 → 0.0.0-nightly-20250827.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-editor.css +1 -1
- package/dist/index.css +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 +10 -10
- 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 _0x1560bd,Command as _0x1b6101}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5bbada,IconGooglePhotos as _0x2d4c4c,IconGoogleDrive as _0x5ca1be,IconFacebook as _0x299f5,IconDropbox as _0x2f9be1,IconUploadcareLink as _0x4423ad,IconUploadcareImageUpload as _0x207154,IconError as _0x570e18,IconUploadcareImageEdit as _0x465540}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x29ddbc,MenuBarMenuListItemButtonView as _0x249578,View as _0x4a2bf8,FocusCycler as _0x2466c4,Dialog as _0x32f184,DialogViewPosition as _0x106366,SpinnerView as _0x53f103,IconView as _0x195035,Notification as _0x2be181}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4295f4,DomEmitterMixin as _0x555603,global as _0x45b4c7,getAncestors as _0x52a737,ObservableMixin as _0x2a1f66,uid as _0x55acdf,createElement as _0x2ea3d3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x173cf6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2fa558,info as _0x23ff02}from'@uploadcare/upload-client';import*as _0x325f20 from'@uploadcare/file-uploader';var i=function(_0x2d5444){return _0x2d5444['Local']='local',_0x2d5444['URL']='url',_0x2d5444['Dropbox']='dropbox',_0x2d5444['GDrive']='gdrive',_0x2d5444['Facebook']='facebook',_0x2d5444['GPhotos']='gphotos',_0x2d5444['OneDrive']='onedrive',_0x2d5444;}({});function _(_0x379b74,_0x458d91,_0x5a1187){const t=_0x379b74['t'],_0x4c66ea=_0x379b74['t'];switch(_0x458d91){case i['Local']:return{'text':_0x4c66ea('Insert'===_0x5a1187?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4c66ea('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5a1187?_0x4c66ea('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4c66ea('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5a1187?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5a1187?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5a1187?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5a1187?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5a1187?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x458d91;}}class e extends _0x1560bd{['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 _0x54139b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x733571;for(const _0x10149e in _0x54139b){const _0x4f5b9c=_0x10149e,_0x3845e9=_0x54139b[_0x4f5b9c];if('uploadcareLicenseKeyValid'==_0x3845e9||'uploadcareLicenseKeyInvalid'==_0x3845e9||'uploadcareLicenseKeyExpired'==_0x3845e9||'uploadcareLicenseKeyDomainLimit'==_0x3845e9||'uploadcareLicenseKeyNotAllowed'==_0x3845e9||'uploadcareLicenseKeyEvaluationLimit'==_0x3845e9||'uploadcareLicenseKeyTrialLimit'==_0x3845e9||'uploadcareLicenseKeyUsageLimit'==_0x3845e9){delete _0x54139b[_0x4f5b9c],_0x733571=_0x3845e9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x733571&&_0x54139b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x733571&&_0x54139b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x733571&&_0x54139b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x733571&&_0x54139b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x733571&&_0x54139b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x733571&&_0x54139b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x733571&&_0x54139b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1e25b4}=this,_0x548013=_0x1e25b4['commands']['get']('uploadcare');if(!_0x548013)return;const _0x37b1ad=this['_normalizeConfigSourceList'](_0x1e25b4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x14ad99,_0x51d388)=>{const _0x5f3ea5=this['_getIntegrationKey'](_0x51d388['type']);return _0x14ad99[_0x5f3ea5]||(_0x14ad99[_0x5f3ea5]=[]),_0x14ad99[_0x5f3ea5]['push'](_0x51d388),_0x14ad99;},{});_0x1e25b4['plugins']['has']('ImageInsertUI')&&_0x1e25b4['commands']['get']('uploadcare')&&Object['entries'](_0x37b1ad)['forEach'](([_0x22f2d4,_0x110d99])=>{_0x1e25b4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x22f2d4,'observable':()=>_0x548013,'buttonViewCreator':()=>this['_createToolbarButton'](_0x110d99),'formViewCreator':()=>this['_createDropdownButtons'](_0x110d99),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x110d99),'override':'assetManager'!==_0x22f2d4});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x599a6e){const {locale:_0x50e1ec}=this['editor'];return _0x599a6e['map'](_0x2d5363=>{const _0x5d5d42=_(_0x50e1ec,_0x2d5363,'Insert');switch(_0x2d5363){case i['Local']:return{'icon':_0x207154,'type':i['Local'],..._0x5d5d42};case i['URL']:return{'icon':_0x4423ad,'type':i['URL'],..._0x5d5d42};case i['Dropbox']:return{'icon':_0x2f9be1,'type':i['Dropbox'],..._0x5d5d42};case i['Facebook']:return{'icon':_0x299f5,'type':i['Facebook'],..._0x5d5d42};case i['GDrive']:return{'icon':_0x5ca1be,'type':i['GDrive'],..._0x5d5d42};case i['GPhotos']:return{'icon':_0x2d4c4c,'type':i['GPhotos'],..._0x5d5d42};case i['OneDrive']:return{'icon':_0x5bbada,'type':i['OneDrive'],..._0x5d5d42};}});}['_getIntegrationKey'](_0x5bed88){switch(_0x5bed88){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3d954a,_0x53d5ca){const _0x58898f=this['editor'],_0x37dce1=new _0x3d954a(_0x58898f['locale']),_0x3ca3d3=_0x58898f['commands']['get']('uploadcare');return _0x37dce1['bind']('isEnabled')['to'](_0x3ca3d3),_0x37dce1['on']('execute',()=>{_0x3ca3d3['execute'](_0x53d5ca);}),_0x37dce1;}['_createToolbarButton'](_0x35ecac){const {locale:_0x1cef1b}=this['editor'],_0x29c1a6=this['editor']['plugins']['get']('ImageInsertUI'),_0x215b0d=_0x35ecac[0x0],_0x55c269=this['_createButton'](_0x29ddbc,_0x215b0d['type']);return _0x55c269['icon']=_0x215b0d['icon'],_0x55c269['bind']('label')['to'](_0x29c1a6,'isImageSelected',_0x105474=>_(_0x1cef1b,_0x215b0d['type'],_0x105474?'Replace':'Insert')['text']),_0x55c269['tooltip']=!0x0,_0x55c269;}['_createDropdownButtons'](_0x76dcc7){const {locale:_0x2acbad}=this['editor'],_0x40ab41=this['editor']['plugins']['get']('ImageInsertUI');return _0x76dcc7['map'](_0x525cb9=>{const _0x467e67=this['_createButton'](_0x29ddbc,_0x525cb9['type']);return _0x467e67['withText']=!0x0,_0x467e67['icon']=_0x525cb9['icon'],_0x467e67['bind']('label')['to'](_0x40ab41,'isImageSelected',_0x5158a6=>_(_0x2acbad,_0x525cb9['type'],_0x5158a6?'Replace':'Insert')['text']),_0x467e67;});}['_createMenuBarButtons'](_0xc9e004){return _0xc9e004['map'](_0xcf6cc9=>{const _0x2e3526=this['_createButton'](_0x249578,_0xcf6cc9['type']);return _0x2e3526['icon']=_0xcf6cc9['icon'],_0x2e3526['label']=_0xcf6cc9['shortText'],_0x2e3526;});}}class F extends _0x4a2bf8{['focusTracker'];['focusCycler'];constructor(_0x285a46){super(_0x285a46),this['focusTracker']=new _0x4295f4(),this['focusCycler']=new _0x2466c4({'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(_0x234253,_0x2e8f29){super(_0x234253),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-'+_0x2e8f29}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x5534ed,_0x19a83d){const _0x5d8ee7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x118277=>_0x118277<=_0x19a83d)['map'](_0xf7dbf2=>_0x5534ed['replace'](/\/$/,'')+'/-/resize/'+_0xf7dbf2+'x/\x20'+_0xf7dbf2+'w');return{'imageFallbackUrl':_0x5534ed,'imageSources':[{'srcset':_0x5d8ee7['join'](',\x20'),'sizes':'(max-width:\x20'+_0x19a83d+'px)\x20100vw,\x20'+_0x19a83d+'px','type':'image/webp'}]};}function C(_0x5e4ebc,_0x3bec42,_0x293f30){const _0x162322=_0x5e4ebc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x162322?parseInt(_0x162322[0x1],0xa):_0x3bec42,'height':_0x162322?parseInt(_0x162322[0x2],0xa):_0x293f30};}function p(_0xe949e1,_0x5abcbc){const _0x2c6d4f=new(_0x555603())(),_0x975d47=_0xe949e1['plugins']['get']('ImageUtils'),_0x3151f4=_0xe949e1['editing']['mapper']['toViewElement'](_0x5abcbc),_0x1a505b=_0x975d47['findViewImgElement'](_0x3151f4),_0x346615=_0xe949e1['editing']['view']['domConverter']['viewToDom'](_0x1a505b),_0x10a565=_0x5abcbc['getAttribute']('width'),_0x1ef501=_0x5abcbc['getAttribute']('height'),_0x1fb834='image-processing';_0xe949e1['editing']['view']['change'](_0xfef607=>{_0xfef607['addClass'](_0x1fb834,_0x3151f4),_0xfef607['setStyle']('aspect-ratio',_0x10a565+'/'+_0x1ef501,_0x1a505b);}),_0x2c6d4f['listenTo'](_0x346615,'load',()=>{_0x2c6d4f['stopListening'](_0x346615,'load'),_0xe949e1['editing']['view']['change'](_0x5d9239=>{_0x5d9239['removeClass'](_0x1fb834,_0x3151f4),_0x5d9239['removeStyle']('aspect-ratio',_0x1a505b);});});}function z(_0x1a7fce){if(Array['isArray'](_0x1a7fce)){const _0x178505=_0x1a7fce['map'](z);return _0x2f5a10=>_0x178505['some'](_0x1990a6=>_0x1990a6(_0x2f5a10));}if('origin'==_0x1a7fce){const _0x5dfd91=_0x45b4c7['window']['location']['origin'];return _0x130a70=>new URL(_0x130a70,_0x45b4c7['document']['baseURI'])['origin']==_0x5dfd91;}return'function'==typeof _0x1a7fce?_0x1a7fce:_0x1a7fce instanceof RegExp?_0x3e0343=>!(!_0x3e0343['match'](_0x1a7fce)&&!_0x3e0343['replace'](/^https?:\/\//,'')['match'](_0x1a7fce)):()=>!0x1;}function S(_0x5bb87d,_0x4cea95){return _0x52a737(_0x5bb87d['target'])['includes'](_0x4cea95);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2a1f66(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x21806d,_0x10848a,_0x5cc9b7){super(),this['_editor']=_0x21806d,this['_editing']=_0x10848a,this['_dialog']=_0x21806d['plugins']['get'](_0x32f184),this['_api']=_0x10848a['ctxElement']['getAPI'](),this['_type']=_0x5cc9b7,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:_0x1b3099,model:_0x9b188d}=this['_editor'],_0x35f497=_0x9b188d['document']['selection']['getSelectedElement'](),_0x3b09d3=_0x35f497&&(_0x35f497['is']('element','imageBlock')||_0x35f497['is']('element','imageInline'));this['_formView']=new x(_0x1b3099,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x207154,'title':_(_0x1b3099,this['_type'],_0x3b09d3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x106366['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x723652=>!S(_0x723652,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5d9fdc}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3a8a62=>{const _0x588891=_0x5d9fdc['length'];for(const _0x385675 of _0x5d9fdc){const _0x58809a=_0x385675===_0x5d9fdc[_0x588891-0x1],{cdnUrl:_0x2537a4,fileInfo:_0xb26d22}=_0x385675;if(!_0x2537a4||!_0xb26d22)continue;const {width:_0x2ee34b,height:_0x772e7c}=_0xb26d22['imageInfo'],_0x2a5c3c=C(_0x2537a4,_0x2ee34b,_0x772e7c),_0x4ad9d7=k(_0x2537a4,_0x2a5c3c['width']),_0x428bcb={'id':_0xb26d22['uuid'],'type':'image','attributes':{'imageDimension':_0x2a5c3c,..._0x4ad9d7}};this['_insertAsset'](_0x428bcb,_0x58809a,_0x3a8a62);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x835728=>{'idle'===_0x835728['detail']['status']&&!_0x835728['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1adf51,_0x5a773d,_0x5b88b5){const _0x3180b9=this['_editor']['model']['document']['selection'],_0x3e9271=_0x3180b9['getSelectedElement'](),_0x1ac22e=!(!_0x3e9271||!_0x3e9271['is']('element','imageInline'));_0x5b88b5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1adf51,_0x1ac22e),_0x5a773d||_0x5b88b5['setSelection'](_0x3180b9['getLastPosition']());}['_insertImage'](_0x2cc4dd,_0x237284){const _0x4dbc89=this['_editor'],{imageDimension:_0x34a60f,imageFallbackUrl:_0x17eb90,imageSources:_0x1966dd}=_0x2cc4dd['attributes'];_0x4dbc89['execute']('insertImage',{'imageType':_0x237284?'imageInline':null,'source':{'uploadcareImageId':_0x2cc4dd['id'],'src':_0x17eb90,'sources':_0x1966dd,..._0x34a60f}});}}class w extends _0x1b6101{['_editing'];['_controller']=null;static get['requires'](){return[_0x32f184,o];}constructor(_0x583465){super(_0x583465),this['_editing']=_0x583465['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xd19a16){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xd19a16);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xd9c6f9,publicKey:_0x2176a3,signal:_0x42ce8f,onProgress:_0x43592e}){return _0x2fa558(_0xd9c6f9,{'publicKey':_0x2176a3,'store':'auto','signal':_0x42ce8f,'onProgress':_0x43592e});}static['getInfo'](_0x177ee8,_0x552349){return _0x23ff02(_0x177ee8,_0x552349);}}class f extends _0x1560bd{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x173cf6,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x265b76=this['editor'];if(!!!_0x265b76['config']['get']('uploadcare'))return;_0x265b76['plugins']['get'](_0x173cf6)['createUploadAdapter']=_0x86d6f8=>new A(_0x86d6f8,_0x265b76),_0x265b76['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x58ef94,{imageElement:_0x25d9f2,data:_0x5815eb})=>{_0x265b76['model']['change'](_0x2ccc59=>{_0x2ccc59['setAttribute']('uploadcareImageId',_0x5815eb['uploadcareImageId'],_0x25d9f2);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xaae450,_0x142d8a){this['loader']=_0xaae450,this['editor']=_0x142d8a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x341b82=this['editor']['config']['get']('uploadcare.pubkey'),_0xf9ffd6=await this['loader']['file'];return j['upload']({'file':_0xf9ffd6,'publicKey':_0x341b82,'signal':this['controller']['signal'],'onProgress':_0x4c8c71=>{_0x4c8c71&&_0x4c8c71['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4c8c71['value']);}})['then'](async _0xf0e9bc=>{const {imageFallbackUrl:_0x111707,imageSources:_0x36c3a9}=k(_0xf0e9bc['cdnUrl'],_0xf0e9bc['imageInfo']['width']);return{'uploadcareImageId':_0xf0e9bc['uuid'],'default':_0x111707,'sources':_0x36c3a9};})['catch'](()=>{const _0x236f18=t('Cannot\x20upload\x20file:')+('\x20'+_0xf9ffd6['name']+'.');return Promise['reject'](_0x236f18);});}['abort'](){this['controller']['abort']();}}class o extends _0x1560bd{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x32f184];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x36924b){super(_0x36924b),this['ucContextId']=_0x55acdf();}['init'](){const _0x597c7c=this['editor'];_0x597c7c['commands']['add']('uploadcare',new w(_0x597c7c));}['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 _0x44520b=_0x45b4c7['document']['querySelector']('input[uploadcare-file-input]');_0x44520b&&_0x44520b['remove']();}),async function(_0x5e7df8){const _0x3146b3=_0x36b055([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x4d1451=0x3d8d0df,_0x41f83b=0x3dfa1a7^_0x4d1451,_0x931414=window[_0x36b055([0x44,0x61,0x74,0x65])][_0x36b055([0x6e,0x6f,0x77])](),_0x11f6e0=_0x5e7df8[_0x36b055([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ca7db=new window[(_0x36b055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x268eaa=>{_0x11f6e0[_0x36b055([0x6f,0x6e,0x63,0x65])](_0x36b055([0x72,0x65,0x61,0x64,0x79]),_0x268eaa);}),_0x4fcb7e={[_0x36b055([0x6b,0x74,0x79])]:_0x36b055([0x45,0x43]),[_0x36b055([0x75,0x73,0x65])]:_0x36b055([0x73,0x69,0x67]),[_0x36b055([0x63,0x72,0x76])]:_0x36b055([0x50,0x2d,0x32,0x35,0x36]),[_0x36b055([0x78])]:_0x36b055([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]),[_0x36b055([0x79])]:_0x36b055([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]),[_0x36b055([0x61,0x6c,0x67])]:_0x36b055([0x45,0x53,0x32,0x35,0x36])},_0x39b0f6=_0x11f6e0[_0x36b055([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x36b055([0x67,0x65,0x74])](_0x36b055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52fe1c(){let _0x1d35a8,_0x341eea=null,_0x394d38=null;try{if(_0x39b0f6==_0x36b055([0x47,0x50,0x4c]))return _0x36b055([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d35a8=_0x2c32f7(),!_0x1d35a8)return _0x36b055([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d35a8[_0x36b055([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x394d38=_0x13f31d(_0x1d35a8[_0x36b055([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d35a8[_0x36b055([0x6a,0x74,0x69])])),await _0x1cd67a()?_0x1a10d6()?_0x5cf7c5()?_0x36b055([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36b4df()?(_0x1d35a8[_0x36b055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36b055([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x341eea=_0x1d96ec(_0x36b055([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d35a8[_0x36b055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36b055([0x74,0x72,0x69,0x61,0x6c])&&(_0x341eea=_0x1d96ec(_0x36b055([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x571465()):_0x36b055([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x36b055([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x36b055([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x36b055([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5cf7c5(){const _0x39063f=[_0x36b055([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x36b055([0x74,0x72,0x69,0x61,0x6c])][_0x36b055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d35a8[_0x36b055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x931414/0x3e8:0xe10*_0x41f83b;return _0x1d35a8[_0x36b055([0x65,0x78,0x70])]<_0x39063f;}function _0x1a10d6(){const _0x7be7cd=_0x1d35a8[_0x36b055([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x7be7cd&&(!!_0x7be7cd[_0x36b055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b055([0x2a]))||!!_0x7be7cd[_0x36b055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b055([0x55,0x50,0x4c,0x43])));}function _0x36b4df(){const _0xce460f=_0x1d35a8[_0x36b055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xce460f||0x0==_0xce460f[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f3e59}=new URL(window[_0x36b055([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xce460f[_0x36b055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f3e59))return!0x0;const _0x2f4f53=_0x5f3e59[_0x36b055([0x73,0x70,0x6c,0x69,0x74])](_0x36b055([0x2e]));return _0xce460f[_0x36b055([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf8405a=>_0xf8405a[_0x36b055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b055([0x2a])))[_0x36b055([0x6d,0x61,0x70])](_0x143dba=>_0x143dba[_0x36b055([0x73,0x70,0x6c,0x69,0x74])](_0x36b055([0x2e])))[_0x36b055([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x379a7a=>_0x379a7a[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2f4f53[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36b055([0x6d,0x61,0x70])](_0x200dc7=>Array(_0x2f4f53[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x200dc7[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36b055([0x66,0x69,0x6c,0x6c])](_0x200dc7[0x0]===_0x36b055([0x2a])?_0x36b055([0x2a]):'')[_0x36b055([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x200dc7))[_0x36b055([0x73,0x6f,0x6d,0x65])](_0x4f7380=>_0x2f4f53[_0x36b055([0x65,0x76,0x65,0x72,0x79])]((_0x5e4d12,_0x1264b2)=>_0x4f7380[_0x1264b2]===_0x5e4d12||_0x4f7380[_0x1264b2]===_0x36b055([0x2a])));}function _0x571465(){return _0x341eea&&_0x394d38?new window[(_0x36b055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27f2a8,_0x538f1f)=>{_0x341eea[_0x36b055([0x74,0x68,0x65,0x6e])](_0x27f2a8,_0x538f1f),_0x394d38[_0x36b055([0x74,0x68,0x65,0x6e])](_0x48fc85=>{_0x48fc85!=_0x36b055([0x56,0x61,0x6c,0x69,0x64])&&_0x27f2a8(_0x48fc85);},_0x538f1f);}):_0x341eea||_0x394d38||_0x36b055([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13f31d(_0x1632de,_0x5580c3){return new window[(_0x36b055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x701f34=>{if(_0x4ff768())return _0x701f34(_0x36b055([0x56,0x61,0x6c,0x69,0x64]));_0x226fdd(),_0x11f6e0[_0x36b055([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x36b055([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1997b2=!0x1;const _0x1db32f=_0x55acdf();function _0x25b96a(_0xa74d52){return!!_0xa74d52&&(typeof _0xa74d52===_0x36b055([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa74d52===_0x36b055([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa74d52[_0x36b055([0x74,0x68,0x65,0x6e])]===_0x36b055([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa74d52[_0x36b055([0x63,0x61,0x74,0x63,0x68])]===_0x36b055([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1226f8(_0x20a40b){_0x54628f(_0x20a40b)[_0x36b055([0x74,0x68,0x65,0x6e])](_0xeb0b8=>{if(!_0xeb0b8||_0xeb0b8[_0x36b055([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x36b055([0x6f,0x6b]))return _0x36b055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x526fab(_0x47add1(_0x1db32f+_0x5580c3))!=_0xeb0b8[_0x36b055([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x36b055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x36b055([0x56,0x61,0x6c,0x69,0x64]);})[_0x36b055([0x74,0x68,0x65,0x6e])](_0xe194a1=>(_0x2bab4b(),_0xe194a1),()=>{const _0x12f6b1=_0x1809b5();return null==_0x12f6b1?(_0x2bab4b(),_0x36b055([0x56,0x61,0x6c,0x69,0x64])):_0x36b055(_0x931414-_0x12f6b1>(0x27d454df^_0x4d1451)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x36b055([0x74,0x68,0x65,0x6e])](_0x701f34)[_0x36b055([0x63,0x61,0x74,0x63,0x68])](()=>{_0x701f34(_0x36b055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ebe76=0x3ee3e5f^_0x4d1451;function _0x2bab4b(){const _0x200559=_0x36b055([0x6c,0x6c,0x63,0x74,0x2d])+_0x526fab(_0x47add1(_0x1632de)),_0x519cbb=_0x153664(_0x526fab(window[_0x36b055([0x4d,0x61,0x74,0x68])][_0x36b055([0x63,0x65,0x69,0x6c])](_0x931414/_0x4ebe76)));window[_0x36b055([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36b055([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x200559,_0x519cbb);}function _0x1809b5(){const _0x4a604e=_0x36b055([0x6c,0x6c,0x63,0x74,0x2d])+_0x526fab(_0x47add1(_0x1632de)),_0x1e065e=window[_0x36b055([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36b055([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a604e);return _0x1e065e?window[_0x36b055([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x153664(_0x1e065e),0x10)*_0x4ebe76:null;}function _0x54628f(_0x4543a7){return new window[(_0x36b055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a29a1,_0x52ef4d)=>{_0x4543a7[_0x36b055([0x74,0x68,0x65,0x6e])](_0x2a29a1,_0x52ef4d),window[_0x36b055([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x52ef4d,0x3d9041f^_0x4d1451);});}}_0x11f6e0[_0x36b055([0x6f,0x6e])](_0x36b055([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44ecf6,_0x3d814f)=>{if(_0x3d814f[0x0]!=_0x1632de)return _0x701f34(_0x36b055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d814f[0x1]={..._0x3d814f[0x1],[_0x36b055([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1db32f};},{[_0x36b055([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36b055([0x68,0x69,0x67,0x68])}),_0x11f6e0[_0x36b055([0x6f,0x6e])](_0x36b055([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x24994f=>{_0x25b96a(_0x24994f[_0x36b055([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1997b2=!0x0,_0x1226f8(_0x24994f[_0x36b055([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x36b055([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36b055([0x6c,0x6f,0x77])}),_0x3ca7db[_0x36b055([0x74,0x68,0x65,0x6e])](()=>{_0x1997b2||_0x701f34(_0x36b055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ff768(){return _0x11f6e0[_0x36b055([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36b055([0x76,0x69,0x65,0x77])][_0x36b055([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x36b055([0x61,0x75,0x74,0x6f]);}function _0x226fdd(){_0x11f6e0[_0x36b055([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36b055([0x76,0x69,0x65,0x77])][_0x36b055([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36b055([0x61,0x75,0x74,0x6f]);}}function _0x1d96ec(_0x263c1f){const _0x413c9f=[new window[(_0x36b055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e6c47=>setTimeout(_0x5e6c47,0x3d1ee13^_0x4d1451)),_0x3ca7db[_0x36b055([0x74,0x68,0x65,0x6e])](()=>new window[(_0x36b055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b8949=>{let _0x484af4=0x0;_0x11f6e0[_0x36b055([0x6d,0x6f,0x64,0x65,0x6c])][_0x36b055([0x6f,0x6e])](_0x36b055([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe509ff,_0x417fe8)=>{_0x417fe8[0x0][_0x36b055([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x484af4++,_0x484af4==(0x3d8d127^_0x4d1451)&&(_0x4b8949(),_0xe509ff[_0x36b055([0x6f,0x66,0x66])]());});}))];return window[_0x36b055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36b055([0x72,0x61,0x63,0x65])](_0x413c9f)[_0x36b055([0x74,0x68,0x65,0x6e])](()=>_0x263c1f);}async function _0x19943b(){await _0x3ca7db,_0x11f6e0[_0x36b055([0x6d,0x6f,0x64,0x65,0x6c])][_0x36b055([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f3260,_0x11f6e0[_0x36b055([0x6d,0x6f,0x64,0x65,0x6c])][_0x36b055([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f3260,_0x11f6e0[_0x36b055([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x36b055([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x293c8e(_0x66d985){const _0x4ef2a1=_0x38fa4e();_0x11f6e0[_0x4ef2a1]=_0x36b055([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x66d985,_0x66d985!=_0x36b055([0x56,0x61,0x6c,0x69,0x64])&&_0x19943b();}function _0x38fa4e(){const _0x390d16=window[_0x36b055([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x36b055([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x36b055([0x6e,0x6f,0x77])]())[_0x36b055([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x36b055([0x2e]),'');let _0x498e3d=_0x36b055([0x52]);for(let _0x56b454=0x0;_0x56b454<_0x390d16[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56b454+=0x2){let _0x5f3816=window[_0x36b055([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x390d16[_0x36b055([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56b454,_0x56b454+0x2));_0x5f3816>=_0x3146b3[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f3816-=_0x3146b3[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x498e3d+=_0x3146b3[_0x5f3816];}return _0x498e3d;}function _0x2c32f7(){const _0x25dfe0=_0x39b0f6[_0x36b055([0x73,0x70,0x6c,0x69,0x74])](_0x36b055([0x2e]));if(0x3!=_0x25dfe0[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f4917(_0x25dfe0[0x1]);function _0x5f4917(_0x1674ba){const _0x27e124=_0x116809(_0x1674ba);return _0x27e124&&_0x2f3ef1()?_0x27e124:null;function _0x2f3ef1(){const _0x395ede=_0x27e124[_0x36b055([0x6a,0x74,0x69])],_0x54ad6d=window[_0x36b055([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x395ede[_0x36b055([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x395ede[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e9524={..._0x27e124,[_0x36b055([0x6a,0x74,0x69])]:_0x395ede[_0x36b055([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x395ede[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e9524[_0x36b055([0x76,0x63])],_0x47add1(_0x4e9524)==_0x54ad6d;}}}async function _0x1cd67a(){let _0x26e099=!0x0;try{const _0x13db79=_0x39b0f6[_0x36b055([0x73,0x70,0x6c,0x69,0x74])](_0x36b055([0x2e])),[_0x4702c6,_0x4599dc,_0xb980f1]=_0x13db79;return _0x4eaa7e(_0x4702c6),await _0x3c61db(_0x4702c6,_0x4599dc,_0xb980f1),_0x26e099;}catch{return!0x1;}function _0x4eaa7e(_0x4303df){const _0x37eff4=_0x116809(_0x4303df);_0x37eff4&&_0x37eff4[_0x36b055([0x61,0x6c,0x67])]==_0x36b055([0x45,0x53,0x32,0x35,0x36])||(_0x26e099=!0x1);}async function _0x3c61db(_0x347143,_0x2fe817,_0x1d59a3){const _0x3c4fe6=window[_0x36b055([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x36b055([0x66,0x72,0x6f,0x6d])](_0x10501f(_0x1d59a3),_0x4915de=>_0x4915de[_0x36b055([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x277758=new window[(_0x36b055([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x36b055([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x347143+_0x36b055([0x2e])+_0x2fe817),_0x334754=window[_0x36b055([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x36b055([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x334754)return;const _0x5dcc2b=await _0x334754[_0x36b055([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x36b055([0x6a,0x77,0x6b]),_0x4fcb7e,{[_0x36b055([0x6e,0x61,0x6d,0x65])]:_0x36b055([0x45,0x43,0x44,0x53,0x41]),[_0x36b055([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x36b055([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x36b055([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x334754[_0x36b055([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x36b055([0x6e,0x61,0x6d,0x65])]:_0x36b055([0x45,0x43,0x44,0x53,0x41]),[_0x36b055([0x68,0x61,0x73,0x68])]:{[_0x36b055([0x6e,0x61,0x6d,0x65])]:_0x36b055([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5dcc2b,_0x3c4fe6,_0x277758)||(_0x26e099=!0x1);}}function _0x116809(_0x421540){return _0x421540[_0x36b055([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x36b055([0x65,0x79]))?JSON[_0x36b055([0x70,0x61,0x72,0x73,0x65])](_0x10501f(_0x421540)):null;}function _0x10501f(_0x3a906f){return window[_0x36b055([0x61,0x74,0x6f,0x62])](_0x3a906f[_0x36b055([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x36b055([0x2b]))[_0x36b055([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x36b055([0x2f])));}function _0x47add1(_0x2df886){let _0x2465d9=0x1505;function _0x4ed0a2(_0x31ef05){for(let _0xfe3cd6=0x0;_0xfe3cd6<_0x31ef05[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfe3cd6++){const _0xed1ade=_0x31ef05[_0x36b055([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xfe3cd6);_0x2465d9=(_0x2465d9<<0x5)+_0x2465d9+_0xed1ade,_0x2465d9&=_0x2465d9;}}function _0x14ecba(_0x1c8301){Array[_0x36b055([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c8301)?_0x1c8301[_0x36b055([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14ecba):_0x1c8301&&typeof _0x1c8301==_0x36b055([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x36b055([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c8301)[_0x36b055([0x73,0x6f,0x72,0x74])]()[_0x36b055([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28962b,_0x5a6e0c])=>{_0x4ed0a2(_0x28962b),_0x14ecba(_0x5a6e0c);}):_0x4ed0a2(window[_0x36b055([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c8301));}return _0x14ecba(_0x2df886),_0x2465d9>>>0x0;}function _0x526fab(_0x2c1b03){return _0x2c1b03[_0x36b055([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x36b055([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x36b055([0x30]));}function _0x153664(_0xf84c28){return _0xf84c28[_0x36b055([0x73,0x70,0x6c,0x69,0x74])]('')[_0x36b055([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x36b055([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f3260(){}function _0x36b055(_0x4e7b84){return _0x4e7b84['map'](_0x28a0bc=>String['fromCharCode'](_0x28a0bc))['join']('');}_0x293c8e(await _0x52fe1c());}(this);}['_initSchema'](){const _0x2061f4=this['editor']['model']['schema'];_0x2061f4['isRegistered']('imageBlock')&&_0x2061f4['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2061f4['isRegistered']('imageInline')&&_0x2061f4['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5afbbc=this['editor'];_0x5afbbc['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5afbbc['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x400338=>_0x400338['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5bc224=_0x5afbbc['commands']['get']('replaceImageSource');_0x5bc224&&this['listenTo'](_0x5bc224,'cleanupImage',(_0x2a2515,[_0x5d8d26,_0x12472e])=>{_0x5d8d26['removeAttribute']('uploadcareImageId',_0x12472e);});}['_initConfig'](){const _0x37d9b8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5ca031=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2ea3d3(_0x45b4c7['document'],'uc-config',{..._0x37d9b8,'pubkey':_0x5ca031,'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']=_0x126088=>{if('closeMax'==_0x126088)return'#uc-icon-arrow-down';},_0x45b4c7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2ea3d3(_0x45b4c7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x45b4c7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x43c054=this['editor']['commands']['get']('insertImage');_0x43c054&&this['listenTo'](_0x43c054,'execute',()=>{const _0x2722c3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2722c3&&_0x2722c3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2722c3);});});const _0x5f4995=this['editor']['commands']['get']('uploadcareImageReplace');_0x5f4995&&this['listenTo'](_0x5f4995,'execute',()=>{const _0x1a27de=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a27de&&_0x1a27de['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1a27de);});});}}class tt extends _0x1560bd{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x398c28){super(_0x398c28),_0x398c28['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x325f20['defineComponents'](_0x325f20);}}class ii extends _0x4a2bf8{constructor(_0x45df40){super(_0x45df40);const t=_0x45df40['t'],_0x285046=this['bindTemplate'],_0x404f1b=new _0x53f103();_0x404f1b['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':[_0x404f1b,{'text':_0x285046['to']('imageUploadProgress',_0x2a25c5=>t('Loading\x20image...')+'\x20('+(_0x2a25c5||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 _0x4a2bf8{constructor(_0x360459){super(_0x360459);const t=_0x360459['t'];this['set']('errorType',null);const _0x18b147=new _0x29ddbc(_0x360459);_0x18b147['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x18b147['withText']=!0x0,_0x18b147['class']='ck-button-action',_0x18b147['on']('execute',()=>{this['fire']('retry');}),_0x18b147['bind']('isVisible')['to'](this,'errorType',_0x1ce04d=>'NotFound'!==_0x1ce04d);const _0x2201ce=new _0x195035();_0x2201ce['content']=_0x570e18,_0x2201ce['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4b9c28=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':[_0x2201ce,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4b9c28['to']('errorType',_0x57cc41=>t('NotFound'!==_0x57cc41?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x18b147]},{'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 _0x4a2bf8{constructor(_0x131649,_0x40e1a6){super(_0x131649);const _0x7cce91=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x40e1a6,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x7cce91['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xf9c57b,_0x2bc9da,_0x10bb40){super(_0xf9c57b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xf9c57b),this['_errorView']=new ti(_0xf9c57b),this['_editingView']=new ei(_0xf9c57b,_0x10bb40),this['_focusableView']=new _0x4a2bf8(_0xf9c57b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2bc9da),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'],_0x553bb2=>{this['_addUploadcareImageEditorListeners'](_0x553bb2);});}),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'](_0x5063f0,_0x334045){const _0x1e8221='uc-cloud-image-editor',_0xbd2f6d=_0x5063f0['querySelector'](_0x1e8221);if(_0xbd2f6d)return _0x334045(_0xbd2f6d);const _0x39e963=new MutationObserver(_0x4a4a60=>{const _0x341787=_0x4a4a60['filter'](_0x29d8c1=>_0x29d8c1['target']===_0x5063f0&&_0x29d8c1['addedNodes']['length']>0x0&&_0x29d8c1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1e8221);_0x341787['length']&&(_0x39e963['disconnect'](),_0x334045(_0x341787[0x0]['addedNodes'][0x0]));});_0x39e963['observe'](_0x5063f0,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xa995b){_0xa995b['addEventListener']('apply',_0x5b1649=>{this['fire']('apply',{'imageSrc':_0x5b1649['detail']['cdnUrl']});}),_0xa995b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2a1f66(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x8b1c5c,_0xb50fe0,_0x4d029d){super(),this['_editor']=_0x8b1c5c,this['_dialog']=_0xb50fe0,this['_imageElement']=_0x4d029d,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 _0x404409=this['_imageElement'],_0x317ccf=_0x404409['getAttribute']('uploadcareImageId'),_0x2ed516=_0x404409['getAttribute']('src');if(_0x317ccf)await this['_loadImageInfo'](_0x317ccf,_0x2ed516);else{if(this['_imageCache']['has'](_0x2ed516)){const _0x40e2cc=this['_imageCache']['get'](_0x2ed516);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40e2cc['url'],this['imageDimension']=_0x40e2cc['dimension'],this['imageId']=_0x40e2cc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x20260f}=this['_editor'],t=_0x20260f['t'],_0x4e05c2=new X(_0x20260f,this['imageStatus'],this['_attributes']);_0x4e05c2['bind']('status')['to'](this,'imageStatus'),_0x4e05c2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4e05c2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4e05c2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4e05c2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x465540,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4e05c2,'position':_0x106366['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4e05c2['focus']();},'onHide':()=>{_0x4e05c2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51626e=>!S(_0x51626e,_0x4e05c2['element'])}});}['_loadImageInfo'](_0x25a837,_0x1b78f6){return j['getInfo'](_0x25a837,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x54c895=>{const {width:_0x581b05,height:_0xf1c9b0}=_0x54c895['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b78f6,this['imageDimension']={'width':_0x581b05,'height':_0xf1c9b0},this['imageId']=_0x25a837;})['catch'](_0x59fa57=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x59fa57['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x51b056,_0x2b3a75){return this['_getImageAsFile'](_0x51b056)['then'](_0x12f949=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2b3a75['signal'],'file':_0x12f949,'onProgress':_0x5b6fde=>{_0x5b6fde&&_0x5b6fde['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5b6fde['value']));}}))['then'](_0x178400=>{const {width:_0x327f2e,height:_0x4e16c0}=_0x178400['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x178400['cdnUrl'],this['imageDimension']={'width':_0x327f2e,'height':_0x4e16c0},this['imageId']=_0x178400['uuid'],this['imageUploadProgress']=null;const _0x23396c=_0x51b056['getAttribute']('src');this['_imageCache']['set'](_0x23396c,{'id':_0x178400['uuid'],'url':_0x178400['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3bef34=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3bef34['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2a94e9,_0x14c969){_0x2a94e9['on']('apply',(_0x51de45,_0xcff662)=>{this['_replaceImage'](_0x14c969,_0xcff662['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2a94e9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2a94e9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5824b6,_0x572b03,_0x98a467){const _0x21e0ef=this['_editor'],{width:_0xd9d5f3,height:_0x35d39a}=C(_0x572b03,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3cbb05,imageSources:_0x22c321}=k(_0x572b03,_0xd9d5f3);_0x21e0ef['model']['change'](_0x471c80=>{if('$graveyard'===_0x5824b6['root']['rootName']){_0x21e0ef['execute']('insertImage',{'imageType':_0x5824b6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5824b6['getAttributes']()),'uploadcareImageId':_0x98a467,'src':_0x3cbb05,'sources':_0x22c321,'width':_0xd9d5f3,'height':_0x35d39a}});const _0x169fa0=_0x5824b6['getChildren']();_0x5824b6=_0x21e0ef['model']['document']['selection']['getSelectedElement']();for(const _0x115f62 of _0x169fa0)_0x471c80['append'](_0x471c80['cloneElement'](_0x115f62),_0x5824b6);}else _0x471c80['setSelection'](_0x5824b6,'on'),_0x21e0ef['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5824b6['getAttributes']()),'uploadcareImageId':_0x98a467,'src':_0x3cbb05,'sources':_0x22c321,'width':_0xd9d5f3,'height':_0x35d39a},_0x5824b6);_0x471c80['setSelection'](_0x5824b6,'on');});}async['_getImageAsFile'](_0x241aa6){const _0x242010=_0x45b4c7['window'],_0x545330=_0x45b4c7['document']['location']['href'],_0x2e61b1=new _0x242010['URL'](_0x241aa6['getAttribute']('src'),_0x545330);if('data:'===_0x2e61b1['protocol']){const _0x45d889=_0x2e61b1['href']['split'](','),_0x3ae1ed=_0x45d889[0x0]['match'](/:(.*?);/)[0x1],_0x2e6402=_0x3ae1ed['split']('/')[0x1],_0x5ef9d6=_0x242010['atob'](_0x45d889[_0x45d889['length']-0x1]);let _0x4bdf35=_0x5ef9d6['length'];const _0x5c0683=new _0x242010['Uint8Array'](_0x4bdf35);for(;_0x4bdf35--;)_0x5c0683[_0x4bdf35]=_0x5ef9d6['charCodeAt'](_0x4bdf35);return new _0x242010['File']([_0x5c0683],'image.'+_0x2e6402,{'type':_0x3ae1ed});}const _0x5b043d=_0x2e61b1['href']['split']('/'),_0x58726a=_0x5b043d[_0x5b043d['length']-0x1],_0x36483e=_0x58726a['split']('.')[0x1];return _0x242010['fetch'](_0x2e61b1['href'])['then'](_0x79a0f3=>_0x79a0f3['clone']()['blob']())['then'](_0x3265ef=>new _0x242010['File']([_0x3265ef],_0x58726a,{'type':'image/'+_0x36483e}));}}class Q extends _0x1b6101{['imageEditController'];static get['requires'](){return[_0x32f184];}['_isEditable'];constructor(_0x141130){super(_0x141130),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xa5687f){const _0x4acf8b=z(_0xa5687f);return _0x4a4774=>!(!_0x4a4774||!_0x4a4774['is']('element','imageBlock')&&!_0x4a4774['is']('element','imageInline'))&&(!!_0x4a4774['hasAttribute']('uploadcareImageId')||!!_0x4a4774['hasAttribute']('src')&&_0x4acf8b(_0x4a4774['getAttribute']('src')));}(_0x141130['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x696825=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x696825);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xea1a6b=this['editor']['model']['document']['selection']['getSelectedElement']();_0xea1a6b&&(_0xea1a6b['is']('element','imageBlock')||_0xea1a6b['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x32f184),_0xea1a6b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x1b6101{['refresh'](){const _0x28cf43=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x28cf43&&(_0x28cf43['is']('element','imageBlock')||_0x28cf43['is']('element','imageInline')));}['execute'](_0x90543){const _0x2d1d42=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x19d7e4=>{_0x19d7e4['setAttributes'](_0x90543,_0x2d1d42),_0x19d7e4['removeAttribute']('srcset',_0x2d1d42),_0x19d7e4['removeAttribute']('sizes',_0x2d1d42);});}}class m extends _0x1560bd{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2be181,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2c55ca}=this;_0x2c55ca['commands']['add']('uploadcareImageEdit',new Q(_0x2c55ca)),_0x2c55ca['commands']['add']('uploadcareImageReplace',new V(_0x2c55ca));}}class g extends _0x1560bd{['_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 _0x15698b=this['editor'];_0x15698b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x54037d=>{const _0x234fe6=_0x15698b['commands']['get']('uploadcareImageEdit'),_0x12a527=new _0x29ddbc(_0x54037d),t=_0x54037d['t'];return _0x12a527['set']({'icon':_0x465540,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x12a527['bind']('isEnabled')['to'](_0x234fe6),_0x12a527['bind']('isOn')['to'](_0x234fe6,'isActive'),this['listenTo'](_0x12a527,'execute',()=>{_0x15698b['execute']('uploadcareImageEdit'),_0x15698b['editing']['view']['focus']();}),_0x12a527;}),this['_initConfig']();}['_initConfig'](){const _0x4831a1=_0x2ea3d3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4831a1),this['listenTo'](this['editor'],'destroy',()=>{_0x4831a1['remove']();});}}class et extends _0x1560bd{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};
|
|
23
|
+
import{Plugin as _0x1dc2e4,Command as _0x251f04}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2b8ec9,IconGooglePhotos as _0x26227e,IconGoogleDrive as _0x581ab5,IconFacebook as _0xba1587,IconDropbox as _0x16f6a5,IconUploadcareLink as _0x52e5fa,IconUploadcareImageUpload as _0x59310f,IconError as _0x444a34,IconUploadcareImageEdit as _0x30c04c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x28b561,MenuBarMenuListItemButtonView as _0x2b06a4,View as _0x36c0ef,FocusCycler as _0xfac465,Dialog as _0xfbf8ac,DialogViewPosition as _0x47d3a6,SpinnerView as _0x192bed,IconView as _0x59f953,Notification as _0x583e2a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3f54de,DomEmitterMixin as _0x58e70c,global as _0x464a3a,getAncestors as _0x23ccae,ObservableMixin as _0x8f7705,uid as _0x26dabf,createElement as _0x4e3bc3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x55e51a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x12e5c8,info as _0x599f46}from'@uploadcare/upload-client';import*as _0x2fd6a5 from'@uploadcare/file-uploader';var i=function(_0x5e2e6f){return _0x5e2e6f['Local']='local',_0x5e2e6f['URL']='url',_0x5e2e6f['Dropbox']='dropbox',_0x5e2e6f['GDrive']='gdrive',_0x5e2e6f['Facebook']='facebook',_0x5e2e6f['GPhotos']='gphotos',_0x5e2e6f['OneDrive']='onedrive',_0x5e2e6f;}({});function _(_0x1395ca,_0x58df23,_0x5b9aa9){const t=_0x1395ca['t'],_0x33b18b=_0x1395ca['t'];switch(_0x58df23){case i['Local']:return{'text':_0x33b18b('Insert'===_0x5b9aa9?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x33b18b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5b9aa9?_0x33b18b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x33b18b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5b9aa9?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5b9aa9?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5b9aa9?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5b9aa9?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5b9aa9?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x58df23;}}class e extends _0x1dc2e4{['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 _0x359e0c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40edab;for(const _0x2203f5 in _0x359e0c){const _0x4b3b16=_0x2203f5,_0x37beca=_0x359e0c[_0x4b3b16];if('uploadcareLicenseKeyValid'==_0x37beca||'uploadcareLicenseKeyInvalid'==_0x37beca||'uploadcareLicenseKeyExpired'==_0x37beca||'uploadcareLicenseKeyDomainLimit'==_0x37beca||'uploadcareLicenseKeyNotAllowed'==_0x37beca||'uploadcareLicenseKeyEvaluationLimit'==_0x37beca||'uploadcareLicenseKeyTrialLimit'==_0x37beca||'uploadcareLicenseKeyUsageLimit'==_0x37beca){delete _0x359e0c[_0x4b3b16],_0x40edab=_0x37beca,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x40edab&&_0x359e0c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x40edab&&_0x359e0c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x40edab&&_0x359e0c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x40edab&&_0x359e0c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x40edab&&_0x359e0c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x40edab&&_0x359e0c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x40edab&&_0x359e0c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x17d83b}=this,_0x1737b9=_0x17d83b['commands']['get']('uploadcare');if(!_0x1737b9)return;const _0x2be072=this['_normalizeConfigSourceList'](_0x17d83b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x282f38,_0x2cabc1)=>{const _0x23cb28=this['_getIntegrationKey'](_0x2cabc1['type']);return _0x282f38[_0x23cb28]||(_0x282f38[_0x23cb28]=[]),_0x282f38[_0x23cb28]['push'](_0x2cabc1),_0x282f38;},{});_0x17d83b['plugins']['has']('ImageInsertUI')&&_0x17d83b['commands']['get']('uploadcare')&&Object['entries'](_0x2be072)['forEach'](([_0xbe4f9f,_0x13c06f])=>{_0x17d83b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xbe4f9f,'observable':()=>_0x1737b9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x13c06f),'formViewCreator':()=>this['_createDropdownButtons'](_0x13c06f),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x13c06f),'override':'assetManager'!==_0xbe4f9f});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xd4eacc){const {locale:_0x4aaff3}=this['editor'];return _0xd4eacc['map'](_0x10d254=>{const _0x39a492=_(_0x4aaff3,_0x10d254,'Insert');switch(_0x10d254){case i['Local']:return{'icon':_0x59310f,'type':i['Local'],..._0x39a492};case i['URL']:return{'icon':_0x52e5fa,'type':i['URL'],..._0x39a492};case i['Dropbox']:return{'icon':_0x16f6a5,'type':i['Dropbox'],..._0x39a492};case i['Facebook']:return{'icon':_0xba1587,'type':i['Facebook'],..._0x39a492};case i['GDrive']:return{'icon':_0x581ab5,'type':i['GDrive'],..._0x39a492};case i['GPhotos']:return{'icon':_0x26227e,'type':i['GPhotos'],..._0x39a492};case i['OneDrive']:return{'icon':_0x2b8ec9,'type':i['OneDrive'],..._0x39a492};}});}['_getIntegrationKey'](_0x42c09c){switch(_0x42c09c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x17b58d,_0x168e4b){const _0x40a9a9=this['editor'],_0x1501f9=new _0x17b58d(_0x40a9a9['locale']),_0x76b280=_0x40a9a9['commands']['get']('uploadcare');return _0x1501f9['bind']('isEnabled')['to'](_0x76b280),_0x1501f9['on']('execute',()=>{_0x76b280['execute'](_0x168e4b);}),_0x1501f9;}['_createToolbarButton'](_0x1e1d05){const {locale:_0x3c9ddd}=this['editor'],_0x1d77bd=this['editor']['plugins']['get']('ImageInsertUI'),_0x16d9a2=_0x1e1d05[0x0],_0x514b05=this['_createButton'](_0x28b561,_0x16d9a2['type']);return _0x514b05['icon']=_0x16d9a2['icon'],_0x514b05['bind']('label')['to'](_0x1d77bd,'isImageSelected',_0x5a2bd3=>_(_0x3c9ddd,_0x16d9a2['type'],_0x5a2bd3?'Replace':'Insert')['text']),_0x514b05['tooltip']=!0x0,_0x514b05;}['_createDropdownButtons'](_0x414127){const {locale:_0x291659}=this['editor'],_0x10ba36=this['editor']['plugins']['get']('ImageInsertUI');return _0x414127['map'](_0x4e49bf=>{const _0x5a90f5=this['_createButton'](_0x28b561,_0x4e49bf['type']);return _0x5a90f5['withText']=!0x0,_0x5a90f5['icon']=_0x4e49bf['icon'],_0x5a90f5['bind']('label')['to'](_0x10ba36,'isImageSelected',_0x4eb9a9=>_(_0x291659,_0x4e49bf['type'],_0x4eb9a9?'Replace':'Insert')['text']),_0x5a90f5;});}['_createMenuBarButtons'](_0x18bc3a){return _0x18bc3a['map'](_0x1cec3d=>{const _0x2d3138=this['_createButton'](_0x2b06a4,_0x1cec3d['type']);return _0x2d3138['icon']=_0x1cec3d['icon'],_0x2d3138['label']=_0x1cec3d['shortText'],_0x2d3138;});}}class F extends _0x36c0ef{['focusTracker'];['focusCycler'];constructor(_0x43af32){super(_0x43af32),this['focusTracker']=new _0x3f54de(),this['focusCycler']=new _0xfac465({'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(_0x52df1c,_0x5e5479){super(_0x52df1c),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-'+_0x5e5479}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3f8ce0,_0x7080d7){const _0xbd2f91=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xbb54bc=>_0xbb54bc<=_0x7080d7)['map'](_0x182739=>_0x3f8ce0['replace'](/\/$/,'')+'/-/resize/'+_0x182739+'x/\x20'+_0x182739+'w');return{'imageFallbackUrl':_0x3f8ce0,'imageSources':[{'srcset':_0xbd2f91['join'](',\x20'),'sizes':'(max-width:\x20'+_0x7080d7+'px)\x20100vw,\x20'+_0x7080d7+'px','type':'image/webp'}]};}function S(_0x49abbc,_0x32b2c5,_0x5e87bf){const _0x1943ae=_0x49abbc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1943ae?parseInt(_0x1943ae[0x1],0xa):_0x32b2c5,'height':_0x1943ae?parseInt(_0x1943ae[0x2],0xa):_0x5e87bf};}function p(_0xf7bdbe,_0x2a240e){const _0x5d1ecc=new(_0x58e70c())(),_0xa63f94=_0xf7bdbe['plugins']['get']('ImageUtils'),_0xcd3c10=_0xf7bdbe['editing']['mapper']['toViewElement'](_0x2a240e),_0x39c47e=_0xa63f94['findViewImgElement'](_0xcd3c10),_0x4f0c71=_0xf7bdbe['editing']['view']['domConverter']['viewToDom'](_0x39c47e),_0x4ef096=_0x2a240e['getAttribute']('width'),_0x1284d1=_0x2a240e['getAttribute']('height'),_0x555eaf='image-processing';_0xf7bdbe['editing']['view']['change'](_0x52649f=>{_0x52649f['addClass'](_0x555eaf,_0xcd3c10),_0x52649f['setStyle']('aspect-ratio',_0x4ef096+'/'+_0x1284d1,_0x39c47e);}),_0x5d1ecc['listenTo'](_0x4f0c71,'load',()=>{_0x5d1ecc['stopListening'](_0x4f0c71,'load'),_0xf7bdbe['editing']['view']['change'](_0x199870=>{_0x199870['removeClass'](_0x555eaf,_0xcd3c10),_0x199870['removeStyle']('aspect-ratio',_0x39c47e);});});}function G(_0x50aea0){if(Array['isArray'](_0x50aea0)){const _0x5d74ab=_0x50aea0['map'](G);return _0x17ad04=>_0x5d74ab['some'](_0x3a5bee=>_0x3a5bee(_0x17ad04));}if('origin'==_0x50aea0){const _0xa615f3=_0x464a3a['window']['location']['origin'];return _0x3d8bf0=>new URL(_0x3d8bf0,_0x464a3a['document']['baseURI'])['origin']==_0xa615f3;}return'function'==typeof _0x50aea0?_0x50aea0:_0x50aea0 instanceof RegExp?_0x102ac0=>!(!_0x102ac0['match'](_0x50aea0)&&!_0x102ac0['replace'](/^https?:\/\//,'')['match'](_0x50aea0)):()=>!0x1;}function A(_0x545d56,_0x33565e){return _0x23ccae(_0x545d56['target'])['includes'](_0x33565e);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x8f7705(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3e8b70,_0x12fcee,_0xf8b66f){super(),this['_editor']=_0x3e8b70,this['_editing']=_0x12fcee,this['_dialog']=_0x3e8b70['plugins']['get'](_0xfbf8ac),this['_api']=_0x12fcee['ctxElement']['getAPI'](),this['_type']=_0xf8b66f,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:_0xa5dc02,model:_0x509979}=this['_editor'],_0x37ca6d=_0x509979['document']['selection']['getSelectedElement'](),_0xa86dd8=_0x37ca6d&&(_0x37ca6d['is']('element','imageBlock')||_0x37ca6d['is']('element','imageInline'));this['_formView']=new x(_0xa5dc02,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x59310f,'title':_(_0xa5dc02,this['_type'],_0xa86dd8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x47d3a6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1761b0=>!A(_0x1761b0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5c339f}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xa6f4c9=>{const _0x1de27a=_0x5c339f['length'];for(const _0x51871a of _0x5c339f){const _0x4930a4=_0x51871a===_0x5c339f[_0x1de27a-0x1],{cdnUrl:_0x23024b,fileInfo:_0x151520}=_0x51871a;if(!_0x23024b||!_0x151520)continue;const {width:_0x591212,height:_0x4769d1}=_0x151520['imageInfo'],_0x15ab4b=S(_0x23024b,_0x591212,_0x4769d1),_0xb5c249=C(_0x23024b,_0x15ab4b['width']),_0x5bc660={'id':_0x151520['uuid'],'type':'image','attributes':{'imageDimension':_0x15ab4b,..._0xb5c249}};this['_insertAsset'](_0x5bc660,_0x4930a4,_0xa6f4c9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x25b746=>{'idle'===_0x25b746['detail']['status']&&!_0x25b746['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x37510e,_0x5f0729,_0xd8ab68){const _0x32b41b=this['_editor']['model']['document']['selection'],_0x26ed5a=_0x32b41b['getSelectedElement'](),_0x39f19d=!(!_0x26ed5a||!_0x26ed5a['is']('element','imageInline'));_0xd8ab68['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x37510e,_0x39f19d),_0x5f0729||_0xd8ab68['setSelection'](_0x32b41b['getLastPosition']());}['_insertImage'](_0x19f614,_0x21713b){const _0x586a05=this['_editor'],{imageDimension:_0x52999c,imageFallbackUrl:_0x14fae4,imageSources:_0x254211}=_0x19f614['attributes'];_0x586a05['execute']('insertImage',{'imageType':_0x21713b?'imageInline':null,'source':{'uploadcareImageId':_0x19f614['id'],'src':_0x14fae4,'sources':_0x254211,..._0x52999c}});}}class w extends _0x251f04{['_editing'];['_controller']=null;static get['requires'](){return[_0xfbf8ac,o];}constructor(_0x27520f){super(_0x27520f),this['_editing']=_0x27520f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x230b5d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x230b5d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xf310cc,..._0x5c04cd}){return _0x12e5c8(_0xf310cc,_0x5c04cd);}static['getInfo'](_0x545e2c,_0x323e69){return _0x599f46(_0x545e2c,_0x323e69);}}class f extends _0x1dc2e4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x55e51a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x16a408=this['editor'];if(!!!_0x16a408['config']['get']('uploadcare'))return;_0x16a408['plugins']['get'](_0x55e51a)['createUploadAdapter']=_0x4a7c77=>new k(_0x4a7c77,_0x16a408),_0x16a408['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5418d6,{imageElement:_0x66b7ae,data:_0x2e39eb})=>{_0x16a408['model']['change'](_0x521a4b=>{_0x521a4b['setAttribute']('uploadcareImageId',_0x2e39eb['uploadcareImageId'],_0x66b7ae);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x21c664,_0x434280){this['loader']=_0x21c664,this['editor']=_0x434280,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x48a90c=await this['loader']['file'];return j['upload']({'file':_0x48a90c,'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':_0x1b8acc=>{_0x1b8acc&&_0x1b8acc['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1b8acc['value']);}})['then'](async _0x5bfe47=>{const {imageFallbackUrl:_0x207d6c,imageSources:_0x5dc3e4}=C(_0x5bfe47['cdnUrl'],_0x5bfe47['imageInfo']['width']);return{'uploadcareImageId':_0x5bfe47['uuid'],'default':_0x207d6c,'sources':_0x5dc3e4};})['catch'](()=>{const _0x409fc1=t('Cannot\x20upload\x20file:')+('\x20'+_0x48a90c['name']+'.');return Promise['reject'](_0x409fc1);});}['abort'](){this['controller']['abort']();}}class o extends _0x1dc2e4{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xfbf8ac];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x289d3f){super(_0x289d3f),this['ucContextId']=_0x26dabf();}['init'](){const _0x16209a=this['editor'];_0x16209a['commands']['add']('uploadcare',new w(_0x16209a));}['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 _0x3fb3c7=_0x464a3a['document']['querySelector']('input[uploadcare-file-input]');_0x3fb3c7&&_0x3fb3c7['remove']();}),async function(_0x2ce83d){const _0x9e651e=_0x285b18([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x320ff0=0x3d8d0df,_0x4234d1=0x3dfa177^_0x320ff0,_0xe52f5d=window[_0x285b18([0x44,0x61,0x74,0x65])][_0x285b18([0x6e,0x6f,0x77])](),_0x787a1d=_0x2ce83d[_0x285b18([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45ff40=new window[(_0x285b18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29083d=>{_0x787a1d[_0x285b18([0x6f,0x6e,0x63,0x65])](_0x285b18([0x72,0x65,0x61,0x64,0x79]),_0x29083d);}),_0x21a155={[_0x285b18([0x6b,0x74,0x79])]:_0x285b18([0x45,0x43]),[_0x285b18([0x75,0x73,0x65])]:_0x285b18([0x73,0x69,0x67]),[_0x285b18([0x63,0x72,0x76])]:_0x285b18([0x50,0x2d,0x32,0x35,0x36]),[_0x285b18([0x78])]:_0x285b18([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]),[_0x285b18([0x79])]:_0x285b18([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]),[_0x285b18([0x61,0x6c,0x67])]:_0x285b18([0x45,0x53,0x32,0x35,0x36])},_0x193a3b=_0x787a1d[_0x285b18([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x285b18([0x67,0x65,0x74])](_0x285b18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7fe872(){let _0x149e5a,_0x38e6ab=null,_0x482097=null;try{if(_0x193a3b==_0x285b18([0x47,0x50,0x4c]))return _0x285b18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x149e5a=_0x3d29ce(),!_0x149e5a)return _0x285b18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x149e5a[_0x285b18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x482097=_0x37dbef(_0x149e5a[_0x285b18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x149e5a[_0x285b18([0x6a,0x74,0x69])])),await _0x2dd191()?_0x9ac357()?_0x832551()?_0x285b18([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ca77b()?(_0x149e5a[_0x285b18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x285b18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38e6ab=_0x5e2527(_0x285b18([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x149e5a[_0x285b18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x285b18([0x74,0x72,0x69,0x61,0x6c])&&(_0x38e6ab=_0x5e2527(_0x285b18([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d20d4()):_0x285b18([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x285b18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x285b18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x285b18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x832551(){const _0x5a38c9=[_0x285b18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x285b18([0x74,0x72,0x69,0x61,0x6c])][_0x285b18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x149e5a[_0x285b18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe52f5d/0x3e8:0xe10*_0x4234d1;return _0x149e5a[_0x285b18([0x65,0x78,0x70])]<_0x5a38c9;}function _0x9ac357(){const _0x2e1afb=_0x149e5a[_0x285b18([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e1afb&&(!!_0x2e1afb[_0x285b18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x285b18([0x2a]))||!!_0x2e1afb[_0x285b18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x285b18([0x55,0x50,0x4c,0x43])));}function _0x4ca77b(){const _0x37ffa5=_0x149e5a[_0x285b18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37ffa5||0x0==_0x37ffa5[_0x285b18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4d008c}=new URL(window[_0x285b18([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37ffa5[_0x285b18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d008c))return!0x0;const _0x5a1500=_0x4d008c[_0x285b18([0x73,0x70,0x6c,0x69,0x74])](_0x285b18([0x2e]));return _0x37ffa5[_0x285b18([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5eec3b=>_0x5eec3b[_0x285b18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x285b18([0x2a])))[_0x285b18([0x6d,0x61,0x70])](_0x557d66=>_0x557d66[_0x285b18([0x73,0x70,0x6c,0x69,0x74])](_0x285b18([0x2e])))[_0x285b18([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x211218=>_0x211218[_0x285b18([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a1500[_0x285b18([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x285b18([0x6d,0x61,0x70])](_0xc915d0=>Array(_0x5a1500[_0x285b18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc915d0[_0x285b18([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x285b18([0x66,0x69,0x6c,0x6c])](_0xc915d0[0x0]===_0x285b18([0x2a])?_0x285b18([0x2a]):'')[_0x285b18([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc915d0))[_0x285b18([0x73,0x6f,0x6d,0x65])](_0x2c22fa=>_0x5a1500[_0x285b18([0x65,0x76,0x65,0x72,0x79])]((_0xef4399,_0x36340b)=>_0x2c22fa[_0x36340b]===_0xef4399||_0x2c22fa[_0x36340b]===_0x285b18([0x2a])));}function _0x4d20d4(){return _0x38e6ab&&_0x482097?new window[(_0x285b18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f26a3,_0x142936)=>{_0x38e6ab[_0x285b18([0x74,0x68,0x65,0x6e])](_0x1f26a3,_0x142936),_0x482097[_0x285b18([0x74,0x68,0x65,0x6e])](_0x32acdf=>{_0x32acdf!=_0x285b18([0x56,0x61,0x6c,0x69,0x64])&&_0x1f26a3(_0x32acdf);},_0x142936);}):_0x38e6ab||_0x482097||_0x285b18([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37dbef(_0x3c9d53,_0x1e73a7){return new window[(_0x285b18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48dc6c=>{if(_0x1e65c8())return _0x48dc6c(_0x285b18([0x56,0x61,0x6c,0x69,0x64]));_0x5e5654(),_0x787a1d[_0x285b18([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x285b18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x29cd4a=!0x1;const _0x2262a2=_0x26dabf();function _0x393768(_0x3dd780){return!!_0x3dd780&&(typeof _0x3dd780===_0x285b18([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3dd780===_0x285b18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3dd780[_0x285b18([0x74,0x68,0x65,0x6e])]===_0x285b18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3dd780[_0x285b18([0x63,0x61,0x74,0x63,0x68])]===_0x285b18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11eb6c(_0x386c46){_0x3cffb1(_0x386c46)[_0x285b18([0x74,0x68,0x65,0x6e])](_0x154620=>{if(!_0x154620||_0x154620[_0x285b18([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x285b18([0x6f,0x6b]))return _0x285b18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x193e62(_0x18f42d(_0x2262a2+_0x1e73a7))!=_0x154620[_0x285b18([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x285b18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x285b18([0x56,0x61,0x6c,0x69,0x64]);})[_0x285b18([0x74,0x68,0x65,0x6e])](_0x575281=>(_0x81813f(),_0x575281),()=>{const _0x108e7f=_0x274b92();return null==_0x108e7f?(_0x81813f(),_0x285b18([0x56,0x61,0x6c,0x69,0x64])):_0x285b18(_0xe52f5d-_0x108e7f>(0x27d454df^_0x320ff0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x285b18([0x74,0x68,0x65,0x6e])](_0x48dc6c)[_0x285b18([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48dc6c(_0x285b18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54d401=0x3ee3e5f^_0x320ff0;function _0x81813f(){const _0x5c243b=_0x285b18([0x6c,0x6c,0x63,0x74,0x2d])+_0x193e62(_0x18f42d(_0x3c9d53)),_0x316d9b=_0xa5abdb(_0x193e62(window[_0x285b18([0x4d,0x61,0x74,0x68])][_0x285b18([0x63,0x65,0x69,0x6c])](_0xe52f5d/_0x54d401)));window[_0x285b18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x285b18([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c243b,_0x316d9b);}function _0x274b92(){const _0x393b53=_0x285b18([0x6c,0x6c,0x63,0x74,0x2d])+_0x193e62(_0x18f42d(_0x3c9d53)),_0x4bd1ed=window[_0x285b18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x285b18([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x393b53);return _0x4bd1ed?window[_0x285b18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa5abdb(_0x4bd1ed),0x10)*_0x54d401:null;}function _0x3cffb1(_0x371780){return new window[(_0x285b18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8edce1,_0x53bcc0)=>{_0x371780[_0x285b18([0x74,0x68,0x65,0x6e])](_0x8edce1,_0x53bcc0),window[_0x285b18([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53bcc0,0x3d9041f^_0x320ff0);});}}_0x787a1d[_0x285b18([0x6f,0x6e])](_0x285b18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1dfcae,_0x2aad56)=>{if(_0x2aad56[0x0]!=_0x3c9d53)return _0x48dc6c(_0x285b18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2aad56[0x1]={..._0x2aad56[0x1],[_0x285b18([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2262a2};},{[_0x285b18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x285b18([0x68,0x69,0x67,0x68])}),_0x787a1d[_0x285b18([0x6f,0x6e])](_0x285b18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3613c7=>{_0x393768(_0x3613c7[_0x285b18([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x29cd4a=!0x0,_0x11eb6c(_0x3613c7[_0x285b18([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x285b18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x285b18([0x6c,0x6f,0x77])}),_0x45ff40[_0x285b18([0x74,0x68,0x65,0x6e])](()=>{_0x29cd4a||_0x48dc6c(_0x285b18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e65c8(){return _0x787a1d[_0x285b18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x285b18([0x76,0x69,0x65,0x77])][_0x285b18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x285b18([0x61,0x75,0x74,0x6f]);}function _0x5e5654(){_0x787a1d[_0x285b18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x285b18([0x76,0x69,0x65,0x77])][_0x285b18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x285b18([0x61,0x75,0x74,0x6f]);}}function _0x5e2527(_0x47830f){const _0x2b72fb=[new window[(_0x285b18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3471db=>setTimeout(_0x3471db,0x3d1ee13^_0x320ff0)),_0x45ff40[_0x285b18([0x74,0x68,0x65,0x6e])](()=>new window[(_0x285b18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1df818=>{let _0x18ec99=0x0;_0x787a1d[_0x285b18([0x6d,0x6f,0x64,0x65,0x6c])][_0x285b18([0x6f,0x6e])](_0x285b18([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x483f2f,_0x59e25b)=>{_0x59e25b[0x0][_0x285b18([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x18ec99++,_0x18ec99==(0x3d8d127^_0x320ff0)&&(_0x1df818(),_0x483f2f[_0x285b18([0x6f,0x66,0x66])]());});}))];return window[_0x285b18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x285b18([0x72,0x61,0x63,0x65])](_0x2b72fb)[_0x285b18([0x74,0x68,0x65,0x6e])](()=>_0x47830f);}async function _0x1055b7(){await _0x45ff40,_0x787a1d[_0x285b18([0x6d,0x6f,0x64,0x65,0x6c])][_0x285b18([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x29150f,_0x787a1d[_0x285b18([0x6d,0x6f,0x64,0x65,0x6c])][_0x285b18([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x29150f,_0x787a1d[_0x285b18([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x285b18([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25c63c(_0x49663d){const _0x5a7655=_0x4d5eb5();_0x787a1d[_0x5a7655]=_0x285b18([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49663d,_0x49663d!=_0x285b18([0x56,0x61,0x6c,0x69,0x64])&&_0x1055b7();}function _0x4d5eb5(){const _0x270d08=window[_0x285b18([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x285b18([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x285b18([0x6e,0x6f,0x77])]())[_0x285b18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x285b18([0x2e]),'');let _0x197b6f=_0x285b18([0x52]);for(let _0x3dbda4=0x0;_0x3dbda4<_0x270d08[_0x285b18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3dbda4+=0x2){let _0x1ba401=window[_0x285b18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x270d08[_0x285b18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3dbda4,_0x3dbda4+0x2));_0x1ba401>=_0x9e651e[_0x285b18([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ba401-=_0x9e651e[_0x285b18([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x197b6f+=_0x9e651e[_0x1ba401];}return _0x197b6f;}function _0x3d29ce(){const _0x3d166d=_0x193a3b[_0x285b18([0x73,0x70,0x6c,0x69,0x74])](_0x285b18([0x2e]));if(0x3!=_0x3d166d[_0x285b18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ec73b(_0x3d166d[0x1]);function _0x1ec73b(_0x353ad6){const _0x76615c=_0x4ad2ed(_0x353ad6);return _0x76615c&&_0x12f83f()?_0x76615c:null;function _0x12f83f(){const _0x2eac93=_0x76615c[_0x285b18([0x6a,0x74,0x69])],_0x534210=window[_0x285b18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2eac93[_0x285b18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2eac93[_0x285b18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b950b={..._0x76615c,[_0x285b18([0x6a,0x74,0x69])]:_0x2eac93[_0x285b18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2eac93[_0x285b18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b950b[_0x285b18([0x76,0x63])],_0x18f42d(_0x4b950b)==_0x534210;}}}async function _0x2dd191(){let _0x32eec6=!0x0;try{const _0xfb0880=_0x193a3b[_0x285b18([0x73,0x70,0x6c,0x69,0x74])](_0x285b18([0x2e])),[_0x183c8f,_0xff4138,_0x35f7ab]=_0xfb0880;return _0xfcec66(_0x183c8f),await _0x5ce5e6(_0x183c8f,_0xff4138,_0x35f7ab),_0x32eec6;}catch{return!0x1;}function _0xfcec66(_0x1c6b66){const _0x114a29=_0x4ad2ed(_0x1c6b66);_0x114a29&&_0x114a29[_0x285b18([0x61,0x6c,0x67])]==_0x285b18([0x45,0x53,0x32,0x35,0x36])||(_0x32eec6=!0x1);}async function _0x5ce5e6(_0x56f89f,_0x5c6461,_0x2cb810){const _0x3162af=window[_0x285b18([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x285b18([0x66,0x72,0x6f,0x6d])](_0x40ed68(_0x2cb810),_0x113530=>_0x113530[_0x285b18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31df2d=new window[(_0x285b18([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x285b18([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x56f89f+_0x285b18([0x2e])+_0x5c6461),_0x2e1f1c=window[_0x285b18([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x285b18([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e1f1c)return;const _0x1a0eab=await _0x2e1f1c[_0x285b18([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x285b18([0x6a,0x77,0x6b]),_0x21a155,{[_0x285b18([0x6e,0x61,0x6d,0x65])]:_0x285b18([0x45,0x43,0x44,0x53,0x41]),[_0x285b18([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x285b18([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x285b18([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e1f1c[_0x285b18([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x285b18([0x6e,0x61,0x6d,0x65])]:_0x285b18([0x45,0x43,0x44,0x53,0x41]),[_0x285b18([0x68,0x61,0x73,0x68])]:{[_0x285b18([0x6e,0x61,0x6d,0x65])]:_0x285b18([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a0eab,_0x3162af,_0x31df2d)||(_0x32eec6=!0x1);}}function _0x4ad2ed(_0x3c0427){return _0x3c0427[_0x285b18([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x285b18([0x65,0x79]))?JSON[_0x285b18([0x70,0x61,0x72,0x73,0x65])](_0x40ed68(_0x3c0427)):null;}function _0x40ed68(_0x4340ee){return window[_0x285b18([0x61,0x74,0x6f,0x62])](_0x4340ee[_0x285b18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x285b18([0x2b]))[_0x285b18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x285b18([0x2f])));}function _0x18f42d(_0x404a39){let _0xf2e749=0x1505;function _0xed2b5(_0x5a8246){for(let _0x56472c=0x0;_0x56472c<_0x5a8246[_0x285b18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56472c++){const _0x54d4aa=_0x5a8246[_0x285b18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56472c);_0xf2e749=(_0xf2e749<<0x5)+_0xf2e749+_0x54d4aa,_0xf2e749&=_0xf2e749;}}function _0x5ce208(_0x585d48){Array[_0x285b18([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x585d48)?_0x585d48[_0x285b18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ce208):_0x585d48&&typeof _0x585d48==_0x285b18([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x285b18([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x585d48)[_0x285b18([0x73,0x6f,0x72,0x74])]()[_0x285b18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xe2f4d,_0x573ce3])=>{_0xed2b5(_0xe2f4d),_0x5ce208(_0x573ce3);}):_0xed2b5(window[_0x285b18([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x585d48));}return _0x5ce208(_0x404a39),_0xf2e749>>>0x0;}function _0x193e62(_0x3e5d07){return _0x3e5d07[_0x285b18([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x285b18([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x285b18([0x30]));}function _0xa5abdb(_0x3e56b4){return _0x3e56b4[_0x285b18([0x73,0x70,0x6c,0x69,0x74])]('')[_0x285b18([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x285b18([0x6a,0x6f,0x69,0x6e])]('');}function _0x29150f(){}function _0x285b18(_0x2b1031){return _0x2b1031['map'](_0x26b36=>String['fromCharCode'](_0x26b36))['join']('');}_0x25c63c(await _0x7fe872());}(this);}['_initSchema'](){const _0x627cd6=this['editor']['model']['schema'];_0x627cd6['isRegistered']('imageBlock')&&_0x627cd6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x627cd6['isRegistered']('imageInline')&&_0x627cd6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4b94cb=this['editor'];_0x4b94cb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4b94cb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1fae0d=>_0x1fae0d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x16d1fb=_0x4b94cb['commands']['get']('replaceImageSource');_0x16d1fb&&this['listenTo'](_0x16d1fb,'cleanupImage',(_0x1d7954,[_0x4ab44b,_0x5de64f])=>{_0x4ab44b['removeAttribute']('uploadcareImageId',_0x5de64f);});}['_initConfig'](){const _0x1780a4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1f5913=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4e3bc3(_0x464a3a['document'],'uc-config',{..._0x1780a4,'pubkey':_0x1f5913,'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']=_0xa14a09=>{if('closeMax'==_0xa14a09)return'#uc-icon-arrow-down';},_0x464a3a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4e3bc3(_0x464a3a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x464a3a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5e99b7=this['editor']['commands']['get']('insertImage');_0x5e99b7&&this['listenTo'](_0x5e99b7,'execute',()=>{const _0x2cf26b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2cf26b&&_0x2cf26b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2cf26b);});});const _0x1a47fe=this['editor']['commands']['get']('uploadcareImageReplace');_0x1a47fe&&this['listenTo'](_0x1a47fe,'execute',()=>{const _0x3750c1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3750c1&&_0x3750c1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3750c1);});});}}class tt extends _0x1dc2e4{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa1f510){super(_0xa1f510),_0xa1f510['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2fd6a5['defineComponents'](_0x2fd6a5);}}class ii extends _0x36c0ef{constructor(_0x4a8529){super(_0x4a8529);const t=_0x4a8529['t'],_0x3ae646=this['bindTemplate'],_0x48cbb9=new _0x192bed();_0x48cbb9['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':[_0x48cbb9,{'text':_0x3ae646['to']('imageUploadProgress',_0x873b94=>t('Loading\x20image...')+'\x20('+(_0x873b94||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 _0x36c0ef{constructor(_0x17bc76){super(_0x17bc76);const t=_0x17bc76['t'];this['set']('errorType',null);const _0x4c574c=new _0x28b561(_0x17bc76);_0x4c574c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4c574c['withText']=!0x0,_0x4c574c['class']='ck-button-action',_0x4c574c['on']('execute',()=>{this['fire']('retry');}),_0x4c574c['bind']('isVisible')['to'](this,'errorType',_0xb11eaa=>'NotFound'!==_0xb11eaa);const _0x3d1910=new _0x59f953();_0x3d1910['content']=_0x444a34,_0x3d1910['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x16ae35=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':[_0x3d1910,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x16ae35['to']('errorType',_0x12417b=>t('NotFound'!==_0x12417b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4c574c]},{'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 _0x36c0ef{constructor(_0xb694a0,_0x3edeb0){super(_0xb694a0);const _0x26e776=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3edeb0,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x26e776['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x50bfcf,_0x4f4a54,_0x16979c){super(_0x50bfcf),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x50bfcf),this['_errorView']=new ti(_0x50bfcf),this['_editingView']=new ei(_0x50bfcf,_0x16979c),this['_focusableView']=new _0x36c0ef(_0x50bfcf),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4f4a54),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'],_0x48764b=>{this['_addUploadcareImageEditorListeners'](_0x48764b);});}),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'](_0x55dee2,_0x2373da){const _0x2f0b4a='uc-cloud-image-editor',_0x45f63d=_0x55dee2['querySelector'](_0x2f0b4a);if(_0x45f63d)return _0x2373da(_0x45f63d);const _0x343bc9=new MutationObserver(_0x205a1a=>{const _0x4f9828=_0x205a1a['filter'](_0x2ea17c=>_0x2ea17c['target']===_0x55dee2&&_0x2ea17c['addedNodes']['length']>0x0&&_0x2ea17c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2f0b4a);_0x4f9828['length']&&(_0x343bc9['disconnect'](),_0x2373da(_0x4f9828[0x0]['addedNodes'][0x0]));});_0x343bc9['observe'](_0x55dee2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x390eff){_0x390eff['addEventListener']('apply',_0x42c78e=>{this['fire']('apply',{'imageSrc':_0x42c78e['detail']['cdnUrl']});}),_0x390eff['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x8f7705(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2b569f,_0x1ce7dd,_0x4e3298){super(),this['_editor']=_0x2b569f,this['_dialog']=_0x1ce7dd,this['_imageElement']=_0x4e3298,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 _0x5e74cb=this['_imageElement'],_0x48889b=_0x5e74cb['getAttribute']('uploadcareImageId'),_0x1c60c4=_0x5e74cb['getAttribute']('src');if(_0x48889b)await this['_loadImageInfo'](_0x48889b,_0x1c60c4);else{if(this['_imageCache']['has'](_0x1c60c4)){const _0x14d247=this['_imageCache']['get'](_0x1c60c4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14d247['url'],this['imageDimension']=_0x14d247['dimension'],this['imageId']=_0x14d247['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xa60546}=this['_editor'],t=_0xa60546['t'],_0x891221=new X(_0xa60546,this['imageStatus'],this['_attributes']);_0x891221['bind']('status')['to'](this,'imageStatus'),_0x891221['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x891221['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x891221['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x891221,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x30c04c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x891221,'position':_0x47d3a6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x891221['focus']();},'onHide':()=>{_0x891221['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x581b3d=>!A(_0x581b3d,_0x891221['element'])}});}['_loadImageInfo'](_0x57eb17,_0x1d39a0){return j['getInfo'](_0x57eb17,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x220668=>{const {width:_0x3d3d43,height:_0x1e2907}=_0x220668['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d39a0,this['imageDimension']={'width':_0x3d3d43,'height':_0x1e2907},this['imageId']=_0x57eb17;})['catch'](_0x3a33bf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a33bf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x465015,_0x65c7aa){return this['_getImageAsFile'](_0x465015)['then'](_0x2ac51b=>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':_0x65c7aa['signal'],'file':_0x2ac51b,'onProgress':_0x1c5ed4=>{_0x1c5ed4&&_0x1c5ed4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1c5ed4['value']));}}))['then'](_0x2b2331=>{const {width:_0x976289,height:_0x43d2d9}=_0x2b2331['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2b2331['cdnUrl'],this['imageDimension']={'width':_0x976289,'height':_0x43d2d9},this['imageId']=_0x2b2331['uuid'],this['imageUploadProgress']=null;const _0x340e96=_0x465015['getAttribute']('src');this['_imageCache']['set'](_0x340e96,{'id':_0x2b2331['uuid'],'url':_0x2b2331['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x14a943=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x14a943['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1c6705,_0x1c69d9){_0x1c6705['on']('apply',(_0x3f4030,_0x336669)=>{this['_replaceImage'](_0x1c69d9,_0x336669['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1c6705['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1c6705['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x119e79,_0x482919,_0x5043b6){const _0x29c916=this['_editor'],{width:_0xa8fb0d,height:_0x4a0716}=S(_0x482919,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5088ce,imageSources:_0xe69efe}=C(_0x482919,_0xa8fb0d);_0x29c916['model']['change'](_0x184782=>{if('$graveyard'===_0x119e79['root']['rootName']){_0x29c916['execute']('insertImage',{'imageType':_0x119e79['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x119e79['getAttributes']()),'uploadcareImageId':_0x5043b6,'src':_0x5088ce,'sources':_0xe69efe,'width':_0xa8fb0d,'height':_0x4a0716}});const _0x5e082a=_0x119e79['getChildren']();_0x119e79=_0x29c916['model']['document']['selection']['getSelectedElement']();for(const _0x25bcfe of _0x5e082a)_0x184782['append'](_0x184782['cloneElement'](_0x25bcfe),_0x119e79);}else _0x184782['setSelection'](_0x119e79,'on'),_0x29c916['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x119e79['getAttributes']()),'uploadcareImageId':_0x5043b6,'src':_0x5088ce,'sources':_0xe69efe,'width':_0xa8fb0d,'height':_0x4a0716},_0x119e79);_0x184782['setSelection'](_0x119e79,'on');});}async['_getImageAsFile'](_0x479765){const _0x12aa60=_0x464a3a['window'],_0xe0dcec=_0x464a3a['document']['location']['href'],_0x2103cc=new _0x12aa60['URL'](_0x479765['getAttribute']('src'),_0xe0dcec);if('data:'===_0x2103cc['protocol']){const _0x1e551f=_0x2103cc['href']['split'](','),_0x30996a=_0x1e551f[0x0]['match'](/:(.*?);/)[0x1],_0x24a451=_0x30996a['split']('/')[0x1],_0x155c68=_0x12aa60['atob'](_0x1e551f[_0x1e551f['length']-0x1]);let _0x41940a=_0x155c68['length'];const _0x38e619=new _0x12aa60['Uint8Array'](_0x41940a);for(;_0x41940a--;)_0x38e619[_0x41940a]=_0x155c68['charCodeAt'](_0x41940a);return new _0x12aa60['File']([_0x38e619],'image.'+_0x24a451,{'type':_0x30996a});}const _0x3ab6af=_0x2103cc['href']['split']('/'),_0x4ddeba=_0x3ab6af[_0x3ab6af['length']-0x1],_0xb7f734=_0x4ddeba['split']('.')[0x1];return _0x12aa60['fetch'](_0x2103cc['href'])['then'](_0x546b91=>_0x546b91['clone']()['blob']())['then'](_0x5a7a18=>new _0x12aa60['File']([_0x5a7a18],_0x4ddeba,{'type':'image/'+_0xb7f734}));}}class O extends _0x251f04{['imageEditController'];static get['requires'](){return[_0xfbf8ac];}['_isEditable'];constructor(_0x203a43){super(_0x203a43),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x286384){const _0x20cd3c=G(_0x286384);return _0x25db8c=>!(!_0x25db8c||!_0x25db8c['is']('element','imageBlock')&&!_0x25db8c['is']('element','imageInline'))&&(!!_0x25db8c['hasAttribute']('uploadcareImageId')||!!_0x25db8c['hasAttribute']('src')&&_0x20cd3c(_0x25db8c['getAttribute']('src')));}(_0x203a43['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2230db=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2230db);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x39d324=this['editor']['model']['document']['selection']['getSelectedElement']();_0x39d324&&(_0x39d324['is']('element','imageBlock')||_0x39d324['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0xfbf8ac),_0x39d324),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x251f04{['refresh'](){const _0x4acecd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4acecd&&(_0x4acecd['is']('element','imageBlock')||_0x4acecd['is']('element','imageInline')));}['execute'](_0xef4f92){const _0x149cbc=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x126242=>{_0x126242['setAttributes'](_0xef4f92,_0x149cbc),_0x126242['removeAttribute']('srcset',_0x149cbc),_0x126242['removeAttribute']('sizes',_0x149cbc);});}}class m extends _0x1dc2e4{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x583e2a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xad5dec}=this;_0xad5dec['commands']['add']('uploadcareImageEdit',new O(_0xad5dec)),_0xad5dec['commands']['add']('uploadcareImageReplace',new R(_0xad5dec));}}class g extends _0x1dc2e4{['_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 _0x2127ed=this['editor'];_0x2127ed['ui']['componentFactory']['add']('uploadcareImageEdit',_0x14bd10=>{const _0x730dda=_0x2127ed['commands']['get']('uploadcareImageEdit'),_0x176b3c=new _0x28b561(_0x14bd10),t=_0x14bd10['t'];return _0x176b3c['set']({'icon':_0x30c04c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x176b3c['bind']('isEnabled')['to'](_0x730dda),_0x176b3c['bind']('isOn')['to'](_0x730dda,'isActive'),this['listenTo'](_0x176b3c,'execute',()=>{_0x2127ed['execute']('uploadcareImageEdit'),_0x2127ed['editing']['view']['focus']();}),_0x176b3c;}),this['_initConfig']();}['_initConfig'](){const _0xa8eb8e=_0x4e3bc3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xa8eb8e),this['listenTo'](this['editor'],'destroy',()=>{_0xa8eb8e['remove']();});}}class et extends _0x1dc2e4{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x316233=>0x1!=_0x316233}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x541050=>{const {af:{dictionary:_0x14c677,getPluralForm:_0xbbcf3f}}={'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':_0x756d1a=>0x1!=_0x756d1a}};_0x541050['af']||={'dictionary':{},'getPluralForm':null},_0x541050['af']['dictionary']=Object['assign'](_0x541050['af']['dictionary'],_0x14c677),_0x541050['af']['getPluralForm']=_0xbbcf3f;})(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':_0x154c05=>0x0==_0x154c05?0x0:0x1==_0x154c05?0x1:0x2==_0x154c05?0x2:_0x154c05%0x64>=0x3&&_0x154c05%0x64<=0xa?0x3:_0x154c05%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x26a4b1=>{const {ar:{dictionary:_0x137196,getPluralForm:_0x36b0a3}}={'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':_0x3a53cd=>0x0==_0x3a53cd?0x0:0x1==_0x3a53cd?0x1:0x2==_0x3a53cd?0x2:_0x3a53cd%0x64>=0x3&&_0x3a53cd%0x64<=0xa?0x3:_0x3a53cd%0x64>=0xb?0x4:0x5}};_0x26a4b1['ar']||={'dictionary':{},'getPluralForm':null},_0x26a4b1['ar']['dictionary']=Object['assign'](_0x26a4b1['ar']['dictionary'],_0x137196),_0x26a4b1['ar']['getPluralForm']=_0x36b0a3;})(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':_0x396279=>0x1!=_0x396279}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3d0a1b=>{const {ast:{dictionary:_0x3ccc13,getPluralForm:_0x8aeffc}}={'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':_0x1f4581=>0x1!=_0x1f4581}};_0x3d0a1b['ast']||={'dictionary':{},'getPluralForm':null},_0x3d0a1b['ast']['dictionary']=Object['assign'](_0x3d0a1b['ast']['dictionary'],_0x3ccc13),_0x3d0a1b['ast']['getPluralForm']=_0x8aeffc;})(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':_0x3a917d=>0x1!=_0x3a917d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x301c84=>{const {az:{dictionary:_0x20e18d,getPluralForm:_0x37e0fe}}={'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':_0x19413c=>0x1!=_0x19413c}};_0x301c84['az']||={'dictionary':{},'getPluralForm':null},_0x301c84['az']['dictionary']=Object['assign'](_0x301c84['az']['dictionary'],_0x20e18d),_0x301c84['az']['getPluralForm']=_0x37e0fe;})(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':_0x12e8c0=>_0x12e8c0%0xa==0x1&&_0x12e8c0%0x64!=0xb?0x0:_0x12e8c0%0xa>=0x2&&_0x12e8c0%0xa<=0x4&&(_0x12e8c0%0x64<0xa||_0x12e8c0%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x25cce2=>{const {be:{dictionary:_0x27e2e0,getPluralForm:_0x3df00a}}={'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':_0xa2a729=>_0xa2a729%0xa==0x1&&_0xa2a729%0x64!=0xb?0x0:_0xa2a729%0xa>=0x2&&_0xa2a729%0xa<=0x4&&(_0xa2a729%0x64<0xa||_0xa2a729%0x64>=0x14)?0x1:0x2}};_0x25cce2['be']||={'dictionary':{},'getPluralForm':null},_0x25cce2['be']['dictionary']=Object['assign'](_0x25cce2['be']['dictionary'],_0x27e2e0),_0x25cce2['be']['getPluralForm']=_0x3df00a;})(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':_0x3efce5=>0x1!=_0x3efce5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x25dfb7=>{const {bg:{dictionary:_0x406f4e,getPluralForm:_0x5364b8}}={'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':_0x56ba39=>0x1!=_0x56ba39}};_0x25dfb7['bg']||={'dictionary':{},'getPluralForm':null},_0x25dfb7['bg']['dictionary']=Object['assign'](_0x25dfb7['bg']['dictionary'],_0x406f4e),_0x25dfb7['bg']['getPluralForm']=_0x5364b8;})(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':_0x3e00db=>0x1!=_0x3e00db}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4f1b7c=>{const {bn:{dictionary:_0x12d6a0,getPluralForm:_0x5e5928}}={'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':_0x568c41=>0x1!=_0x568c41}};_0x4f1b7c['bn']||={'dictionary':{},'getPluralForm':null},_0x4f1b7c['bn']['dictionary']=Object['assign'](_0x4f1b7c['bn']['dictionary'],_0x12d6a0),_0x4f1b7c['bn']['getPluralForm']=_0x5e5928;})(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':_0x59d3be=>_0x59d3be%0xa==0x1&&_0x59d3be%0x64!=0xb?0x0:_0x59d3be%0xa>=0x2&&_0x59d3be%0xa<=0x4&&(_0x59d3be%0x64<0xa||_0x59d3be%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1268fb=>{const {bs:{dictionary:_0x1f854f,getPluralForm:_0x507e6c}}={'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':_0x55e2c6=>_0x55e2c6%0xa==0x1&&_0x55e2c6%0x64!=0xb?0x0:_0x55e2c6%0xa>=0x2&&_0x55e2c6%0xa<=0x4&&(_0x55e2c6%0x64<0xa||_0x55e2c6%0x64>=0x14)?0x1:0x2}};_0x1268fb['bs']||={'dictionary':{},'getPluralForm':null},_0x1268fb['bs']['dictionary']=Object['assign'](_0x1268fb['bs']['dictionary'],_0x1f854f),_0x1268fb['bs']['getPluralForm']=_0x507e6c;})(window['CKEDITOR_TRANSLATIONS']||={});
|