@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250825.0 → 0.0.0-nightly-20250826.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _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 _0x2c681b,Command as _0x48e403}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4b261b,IconGooglePhotos as _0xf23152,IconGoogleDrive as _0x4790e0,IconFacebook as _0x65b161,IconDropbox as _0x4aa7b1,IconUploadcareLink as _0x427f12,IconUploadcareImageUpload as _0x64136b,IconError as _0x754c18,IconUploadcareImageEdit as _0x4fda93}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2d304f,MenuBarMenuListItemButtonView as _0x130484,View as _0x190d11,FocusCycler as _0x15270b,Dialog as _0x15d45f,DialogViewPosition as _0x225e3e,SpinnerView as _0x5a3007,IconView as _0x13fb2d,Notification as _0x8e4201}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x31ffdb,DomEmitterMixin as _0x283c1a,global as _0x3e4ebd,getAncestors as _0x1df314,ObservableMixin as _0x36c90a,uid as _0x16a617,createElement as _0x1e526f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x16972c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x48c9c8,info as _0x3737dd}from'@uploadcare/upload-client';import*as _0x135cd4 from'@uploadcare/file-uploader';var i=function(_0x10daa0){return _0x10daa0['Local']='local',_0x10daa0['URL']='url',_0x10daa0['Dropbox']='dropbox',_0x10daa0['GDrive']='gdrive',_0x10daa0['Facebook']='facebook',_0x10daa0['GPhotos']='gphotos',_0x10daa0['OneDrive']='onedrive',_0x10daa0;}({});function _(_0x5f0402,_0x42c58a,_0xbe9d5a){const t=_0x5f0402['t'],_0x427373=_0x5f0402['t'];switch(_0x42c58a){case i['Local']:return{'text':_0x427373('Insert'===_0xbe9d5a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x427373('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xbe9d5a?_0x427373('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x427373('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xbe9d5a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xbe9d5a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xbe9d5a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xbe9d5a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xbe9d5a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x42c58a;}}class e extends _0x2c681b{['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 _0x442ec2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x241340;for(const _0x2355ee in _0x442ec2){const _0x16fd1a=_0x2355ee,_0x1f13f8=_0x442ec2[_0x16fd1a];if('uploadcareLicenseKeyValid'==_0x1f13f8||'uploadcareLicenseKeyInvalid'==_0x1f13f8||'uploadcareLicenseKeyExpired'==_0x1f13f8||'uploadcareLicenseKeyDomainLimit'==_0x1f13f8||'uploadcareLicenseKeyNotAllowed'==_0x1f13f8||'uploadcareLicenseKeyEvaluationLimit'==_0x1f13f8||'uploadcareLicenseKeyTrialLimit'==_0x1f13f8||'uploadcareLicenseKeyUsageLimit'==_0x1f13f8){delete _0x442ec2[_0x16fd1a],_0x241340=_0x1f13f8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x241340&&_0x442ec2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x241340&&_0x442ec2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x241340&&_0x442ec2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x241340&&_0x442ec2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x241340&&_0x442ec2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x241340&&_0x442ec2['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x241340&&_0x442ec2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1d3af8}=this,_0x2b89e6=_0x1d3af8['commands']['get']('uploadcare');if(!_0x2b89e6)return;const _0x3f678e=this['_normalizeConfigSourceList'](_0x1d3af8['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x41352b,_0x7867d8)=>{const _0x283232=this['_getIntegrationKey'](_0x7867d8['type']);return _0x41352b[_0x283232]||(_0x41352b[_0x283232]=[]),_0x41352b[_0x283232]['push'](_0x7867d8),_0x41352b;},{});_0x1d3af8['plugins']['has']('ImageInsertUI')&&_0x1d3af8['commands']['get']('uploadcare')&&Object['entries'](_0x3f678e)['forEach'](([_0x4f100b,_0x509833])=>{_0x1d3af8['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4f100b,'observable':()=>_0x2b89e6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x509833),'formViewCreator':()=>this['_createDropdownButtons'](_0x509833),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x509833),'override':'assetManager'!==_0x4f100b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1c3572){const {locale:_0x5a1e85}=this['editor'];return _0x1c3572['map'](_0x4c50f5=>{const _0x45c29f=_(_0x5a1e85,_0x4c50f5,'Insert');switch(_0x4c50f5){case i['Local']:return{'icon':_0x64136b,'type':i['Local'],..._0x45c29f};case i['URL']:return{'icon':_0x427f12,'type':i['URL'],..._0x45c29f};case i['Dropbox']:return{'icon':_0x4aa7b1,'type':i['Dropbox'],..._0x45c29f};case i['Facebook']:return{'icon':_0x65b161,'type':i['Facebook'],..._0x45c29f};case i['GDrive']:return{'icon':_0x4790e0,'type':i['GDrive'],..._0x45c29f};case i['GPhotos']:return{'icon':_0xf23152,'type':i['GPhotos'],..._0x45c29f};case i['OneDrive']:return{'icon':_0x4b261b,'type':i['OneDrive'],..._0x45c29f};}});}['_getIntegrationKey'](_0x6872e3){switch(_0x6872e3){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x23f41e,_0x48cfa1){const _0x3e5e1b=this['editor'],_0x335488=new _0x23f41e(_0x3e5e1b['locale']),_0x797895=_0x3e5e1b['commands']['get']('uploadcare');return _0x335488['bind']('isEnabled')['to'](_0x797895),_0x335488['on']('execute',()=>{_0x797895['execute'](_0x48cfa1);}),_0x335488;}['_createToolbarButton'](_0x2e5a71){const {locale:_0x1b3aad}=this['editor'],_0x5a088e=this['editor']['plugins']['get']('ImageInsertUI'),_0x210692=_0x2e5a71[0x0],_0x42773b=this['_createButton'](_0x2d304f,_0x210692['type']);return _0x42773b['icon']=_0x210692['icon'],_0x42773b['bind']('label')['to'](_0x5a088e,'isImageSelected',_0x2e89c2=>_(_0x1b3aad,_0x210692['type'],_0x2e89c2?'Replace':'Insert')['text']),_0x42773b['tooltip']=!0x0,_0x42773b;}['_createDropdownButtons'](_0x4eecaf){const {locale:_0x420913}=this['editor'],_0x138c34=this['editor']['plugins']['get']('ImageInsertUI');return _0x4eecaf['map'](_0x393a6b=>{const _0x2d769e=this['_createButton'](_0x2d304f,_0x393a6b['type']);return _0x2d769e['withText']=!0x0,_0x2d769e['icon']=_0x393a6b['icon'],_0x2d769e['bind']('label')['to'](_0x138c34,'isImageSelected',_0x349f30=>_(_0x420913,_0x393a6b['type'],_0x349f30?'Replace':'Insert')['text']),_0x2d769e;});}['_createMenuBarButtons'](_0x8c1ff8){return _0x8c1ff8['map'](_0x3a365b=>{const _0x2dcada=this['_createButton'](_0x130484,_0x3a365b['type']);return _0x2dcada['icon']=_0x3a365b['icon'],_0x2dcada['label']=_0x3a365b['shortText'],_0x2dcada;});}}class F extends _0x190d11{['focusTracker'];['focusCycler'];constructor(_0x140a1b){super(_0x140a1b),this['focusTracker']=new _0x31ffdb(),this['focusCycler']=new _0x15270b({'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(_0x3e0428,_0x27b376){super(_0x3e0428),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-'+_0x27b376}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x56aeca,_0x314b3e){const _0x38e3dc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xb0edd7=>_0xb0edd7<=_0x314b3e)['map'](_0x32a81b=>_0x56aeca['replace'](/\/$/,'')+'/-/resize/'+_0x32a81b+'x/\x20'+_0x32a81b+'w');return{'imageFallbackUrl':_0x56aeca,'imageSources':[{'srcset':_0x38e3dc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x314b3e+'px)\x20100vw,\x20'+_0x314b3e+'px','type':'image/webp'}]};}function C(_0x2b80a0,_0xf05e7d,_0x216408){const _0x16cde6=_0x2b80a0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16cde6?parseInt(_0x16cde6[0x1],0xa):_0xf05e7d,'height':_0x16cde6?parseInt(_0x16cde6[0x2],0xa):_0x216408};}function p(_0x560ced,_0x5a7020){const _0x177478=new(_0x283c1a())(),_0x5566b0=_0x560ced['plugins']['get']('ImageUtils'),_0x176969=_0x560ced['editing']['mapper']['toViewElement'](_0x5a7020),_0x337a8d=_0x5566b0['findViewImgElement'](_0x176969),_0x2fbe2d=_0x560ced['editing']['view']['domConverter']['viewToDom'](_0x337a8d),_0x5e814b=_0x5a7020['getAttribute']('width'),_0x336df0=_0x5a7020['getAttribute']('height'),_0x2d3878='image-processing';_0x560ced['editing']['view']['change'](_0x2798a7=>{_0x2798a7['addClass'](_0x2d3878,_0x176969),_0x2798a7['setStyle']('aspect-ratio',_0x5e814b+'/'+_0x336df0,_0x337a8d);}),_0x177478['listenTo'](_0x2fbe2d,'load',()=>{_0x177478['stopListening'](_0x2fbe2d,'load'),_0x560ced['editing']['view']['change'](_0x3ccd50=>{_0x3ccd50['removeClass'](_0x2d3878,_0x176969),_0x3ccd50['removeStyle']('aspect-ratio',_0x337a8d);});});}function z(_0x3654ea){if(Array['isArray'](_0x3654ea)){const _0x3202fa=_0x3654ea['map'](z);return _0x21f1ac=>_0x3202fa['some'](_0x24dd2b=>_0x24dd2b(_0x21f1ac));}if('origin'==_0x3654ea){const _0x1c38b1=_0x3e4ebd['window']['location']['origin'];return _0x3903f4=>new URL(_0x3903f4,_0x3e4ebd['document']['baseURI'])['origin']==_0x1c38b1;}return'function'==typeof _0x3654ea?_0x3654ea:_0x3654ea instanceof RegExp?_0x313059=>!(!_0x313059['match'](_0x3654ea)&&!_0x313059['replace'](/^https?:\/\//,'')['match'](_0x3654ea)):()=>!0x1;}function S(_0x1edbae,_0x2b3fc0){return _0x1df314(_0x1edbae['target'])['includes'](_0x2b3fc0);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x36c90a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x110c94,_0x102d09,_0x28623f){super(),this['_editor']=_0x110c94,this['_editing']=_0x102d09,this['_dialog']=_0x110c94['plugins']['get'](_0x15d45f),this['_api']=_0x102d09['ctxElement']['getAPI'](),this['_type']=_0x28623f,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:_0x24cc1b,model:_0x2afe1d}=this['_editor'],_0x5954fe=_0x2afe1d['document']['selection']['getSelectedElement'](),_0xaa3975=_0x5954fe&&(_0x5954fe['is']('element','imageBlock')||_0x5954fe['is']('element','imageInline'));this['_formView']=new x(_0x24cc1b,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x64136b,'title':_(_0x24cc1b,this['_type'],_0xaa3975?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x225e3e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5df844=>!S(_0x5df844,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x127afe}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xa6e33c=>{const _0x35c790=_0x127afe['length'];for(const _0x322aca of _0x127afe){const _0x52ee10=_0x322aca===_0x127afe[_0x35c790-0x1],{cdnUrl:_0x2d8a5b,fileInfo:_0x123fb1}=_0x322aca;if(!_0x2d8a5b||!_0x123fb1)continue;const {width:_0x43030e,height:_0x478ce5}=_0x123fb1['imageInfo'],_0x1bc8da=C(_0x2d8a5b,_0x43030e,_0x478ce5),_0x41ae4b=k(_0x2d8a5b,_0x1bc8da['width']),_0x277314={'id':_0x123fb1['uuid'],'type':'image','attributes':{'imageDimension':_0x1bc8da,..._0x41ae4b}};this['_insertAsset'](_0x277314,_0x52ee10,_0xa6e33c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4cc7d6=>{'idle'===_0x4cc7d6['detail']['status']&&!_0x4cc7d6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x40531f,_0x2a5717,_0x1514a1){const _0x4cff9f=this['_editor']['model']['document']['selection'],_0x512969=_0x4cff9f['getSelectedElement'](),_0x3a9ad9=!(!_0x512969||!_0x512969['is']('element','imageInline'));_0x1514a1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x40531f,_0x3a9ad9),_0x2a5717||_0x1514a1['setSelection'](_0x4cff9f['getLastPosition']());}['_insertImage'](_0x38ca3a,_0x10c0a2){const _0x5c44d5=this['_editor'],{imageDimension:_0x211ea6,imageFallbackUrl:_0x84510f,imageSources:_0x311411}=_0x38ca3a['attributes'];_0x5c44d5['execute']('insertImage',{'imageType':_0x10c0a2?'imageInline':null,'source':{'uploadcareImageId':_0x38ca3a['id'],'src':_0x84510f,'sources':_0x311411,..._0x211ea6}});}}class w extends _0x48e403{['_editing'];['_controller']=null;static get['requires'](){return[_0x15d45f,o];}constructor(_0x129a19){super(_0x129a19),this['_editing']=_0x129a19['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3022c4){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3022c4);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x527753,publicKey:_0x47cf3e,signal:_0x2f8a68,onProgress:_0x380c3a}){return _0x48c9c8(_0x527753,{'publicKey':_0x47cf3e,'store':'auto','signal':_0x2f8a68,'onProgress':_0x380c3a});}static['getInfo'](_0x76e226,_0x176dbe){return _0x3737dd(_0x76e226,_0x176dbe);}}class f extends _0x2c681b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x16972c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4806c0=this['editor'];if(!!!_0x4806c0['config']['get']('uploadcare'))return;_0x4806c0['plugins']['get'](_0x16972c)['createUploadAdapter']=_0x38ec62=>new A(_0x38ec62,_0x4806c0),_0x4806c0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x14853c,{imageElement:_0x301b61,data:_0xa88665})=>{_0x4806c0['model']['change'](_0x391931=>{_0x391931['setAttribute']('uploadcareImageId',_0xa88665['uploadcareImageId'],_0x301b61);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x5c972a,_0x16c1aa){this['loader']=_0x5c972a,this['editor']=_0x16c1aa,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x58258a=this['editor']['config']['get']('uploadcare.pubkey'),_0x224fe6=await this['loader']['file'];return j['upload']({'file':_0x224fe6,'publicKey':_0x58258a,'signal':this['controller']['signal'],'onProgress':_0x4aeace=>{_0x4aeace&&_0x4aeace['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4aeace['value']);}})['then'](async _0x31bd4c=>{const {imageFallbackUrl:_0x54ae26,imageSources:_0x515729}=k(_0x31bd4c['cdnUrl'],_0x31bd4c['imageInfo']['width']);return{'uploadcareImageId':_0x31bd4c['uuid'],'default':_0x54ae26,'sources':_0x515729};})['catch'](()=>{const _0xf72628=t('Cannot\x20upload\x20file:')+('\x20'+_0x224fe6['name']+'.');return Promise['reject'](_0xf72628);});}['abort'](){this['controller']['abort']();}}class o extends _0x2c681b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x15d45f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x54a160){super(_0x54a160),this['ucContextId']=_0x16a617();}['init'](){const _0x420b3b=this['editor'];_0x420b3b['commands']['add']('uploadcare',new w(_0x420b3b));}['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 _0xc55580=_0x3e4ebd['document']['querySelector']('input[uploadcare-file-input]');_0xc55580&&_0xc55580['remove']();}),async function(_0x54e2c0){const _0x153b68=_0x1e607f([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]),_0x24c41f=0x3d8d0df,_0x40e38a=0x3dfa14f^_0x24c41f,_0x899e44=window[_0x1e607f([0x44,0x61,0x74,0x65])][_0x1e607f([0x6e,0x6f,0x77])](),_0x435d45=_0x54e2c0[_0x1e607f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3995fb=new window[(_0x1e607f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1abb88=>{_0x435d45[_0x1e607f([0x6f,0x6e,0x63,0x65])](_0x1e607f([0x72,0x65,0x61,0x64,0x79]),_0x1abb88);}),_0x8470a7={[_0x1e607f([0x6b,0x74,0x79])]:_0x1e607f([0x45,0x43]),[_0x1e607f([0x75,0x73,0x65])]:_0x1e607f([0x73,0x69,0x67]),[_0x1e607f([0x63,0x72,0x76])]:_0x1e607f([0x50,0x2d,0x32,0x35,0x36]),[_0x1e607f([0x78])]:_0x1e607f([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]),[_0x1e607f([0x79])]:_0x1e607f([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]),[_0x1e607f([0x61,0x6c,0x67])]:_0x1e607f([0x45,0x53,0x32,0x35,0x36])},_0x177298=_0x435d45[_0x1e607f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e607f([0x67,0x65,0x74])](_0x1e607f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x570803(){let _0x137a66,_0x249503=null,_0x533e3b=null;try{if(_0x177298==_0x1e607f([0x47,0x50,0x4c]))return _0x1e607f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x137a66=_0x26e202(),!_0x137a66)return _0x1e607f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x137a66[_0x1e607f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x533e3b=_0x17521d(_0x137a66[_0x1e607f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x137a66[_0x1e607f([0x6a,0x74,0x69])])),await _0x101430()?_0x1db94c()?_0x416e62()?_0x1e607f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1038f6()?(_0x137a66[_0x1e607f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e607f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x249503=_0x520ff1(_0x1e607f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x137a66[_0x1e607f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e607f([0x74,0x72,0x69,0x61,0x6c])&&(_0x249503=_0x520ff1(_0x1e607f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b4930()):_0x1e607f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e607f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e607f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e607f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x416e62(){const _0x379e55=[_0x1e607f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e607f([0x74,0x72,0x69,0x61,0x6c])][_0x1e607f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x137a66[_0x1e607f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x899e44/0x3e8:0xe10*_0x40e38a;return _0x137a66[_0x1e607f([0x65,0x78,0x70])]<_0x379e55;}function _0x1db94c(){const _0x59d715=_0x137a66[_0x1e607f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x59d715&&(!!_0x59d715[_0x1e607f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e607f([0x2a]))||!!_0x59d715[_0x1e607f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e607f([0x55,0x50,0x4c,0x43])));}function _0x1038f6(){const _0x4ba292=_0x137a66[_0x1e607f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ba292||0x0==_0x4ba292[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a0aa9}=new URL(window[_0x1e607f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ba292[_0x1e607f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a0aa9))return!0x0;const _0x1ac3e1=_0x3a0aa9[_0x1e607f([0x73,0x70,0x6c,0x69,0x74])](_0x1e607f([0x2e]));return _0x4ba292[_0x1e607f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x323b35=>_0x323b35[_0x1e607f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e607f([0x2a])))[_0x1e607f([0x6d,0x61,0x70])](_0x32dbca=>_0x32dbca[_0x1e607f([0x73,0x70,0x6c,0x69,0x74])](_0x1e607f([0x2e])))[_0x1e607f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a796c=>_0x5a796c[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ac3e1[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e607f([0x6d,0x61,0x70])](_0x42cdee=>Array(_0x1ac3e1[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42cdee[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e607f([0x66,0x69,0x6c,0x6c])](_0x42cdee[0x0]===_0x1e607f([0x2a])?_0x1e607f([0x2a]):'')[_0x1e607f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42cdee))[_0x1e607f([0x73,0x6f,0x6d,0x65])](_0x590649=>_0x1ac3e1[_0x1e607f([0x65,0x76,0x65,0x72,0x79])]((_0x18941e,_0x46be2a)=>_0x590649[_0x46be2a]===_0x18941e||_0x590649[_0x46be2a]===_0x1e607f([0x2a])));}function _0x2b4930(){return _0x249503&&_0x533e3b?new window[(_0x1e607f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cf050,_0x1eb916)=>{_0x249503[_0x1e607f([0x74,0x68,0x65,0x6e])](_0x2cf050,_0x1eb916),_0x533e3b[_0x1e607f([0x74,0x68,0x65,0x6e])](_0x2a0e35=>{_0x2a0e35!=_0x1e607f([0x56,0x61,0x6c,0x69,0x64])&&_0x2cf050(_0x2a0e35);},_0x1eb916);}):_0x249503||_0x533e3b||_0x1e607f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17521d(_0x25ee71,_0x2e5570){return new window[(_0x1e607f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26b40d=>{if(_0x400e68())return _0x26b40d(_0x1e607f([0x56,0x61,0x6c,0x69,0x64]));_0x4d8ce8(),_0x435d45[_0x1e607f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e607f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e65b0=!0x1;const _0x1a58ee=_0x16a617();function _0x5801a2(_0x724b7f){return!!_0x724b7f&&(typeof _0x724b7f===_0x1e607f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x724b7f===_0x1e607f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x724b7f[_0x1e607f([0x74,0x68,0x65,0x6e])]===_0x1e607f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x724b7f[_0x1e607f([0x63,0x61,0x74,0x63,0x68])]===_0x1e607f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c37f1(_0x32bcee){_0xc3c6a6(_0x32bcee)[_0x1e607f([0x74,0x68,0x65,0x6e])](_0x514ee1=>{if(!_0x514ee1||_0x514ee1[_0x1e607f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e607f([0x6f,0x6b]))return _0x1e607f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1346a5(_0x268f7f(_0x1a58ee+_0x2e5570))!=_0x514ee1[_0x1e607f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e607f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e607f([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e607f([0x74,0x68,0x65,0x6e])](_0x3872d9=>(_0x5f4eb3(),_0x3872d9),()=>{const _0x4ce58b=_0x35ad71();return null==_0x4ce58b?(_0x5f4eb3(),_0x1e607f([0x56,0x61,0x6c,0x69,0x64])):_0x1e607f(_0x899e44-_0x4ce58b>(0x27d454df^_0x24c41f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e607f([0x74,0x68,0x65,0x6e])](_0x26b40d)[_0x1e607f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26b40d(_0x1e607f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3db3ed=0x3ee3e5f^_0x24c41f;function _0x5f4eb3(){const _0x457a38=_0x1e607f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1346a5(_0x268f7f(_0x25ee71)),_0x24ccee=_0x56cba6(_0x1346a5(window[_0x1e607f([0x4d,0x61,0x74,0x68])][_0x1e607f([0x63,0x65,0x69,0x6c])](_0x899e44/_0x3db3ed)));window[_0x1e607f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e607f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x457a38,_0x24ccee);}function _0x35ad71(){const _0x39fa29=_0x1e607f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1346a5(_0x268f7f(_0x25ee71)),_0x3aa114=window[_0x1e607f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e607f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39fa29);return _0x3aa114?window[_0x1e607f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56cba6(_0x3aa114),0x10)*_0x3db3ed:null;}function _0xc3c6a6(_0x2b077e){return new window[(_0x1e607f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5463c3,_0x422136)=>{_0x2b077e[_0x1e607f([0x74,0x68,0x65,0x6e])](_0x5463c3,_0x422136),window[_0x1e607f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x422136,0x3d9041f^_0x24c41f);});}}_0x435d45[_0x1e607f([0x6f,0x6e])](_0x1e607f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f81d1,_0x20f874)=>{if(_0x20f874[0x0]!=_0x25ee71)return _0x26b40d(_0x1e607f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20f874[0x1]={..._0x20f874[0x1],[_0x1e607f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a58ee};},{[_0x1e607f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e607f([0x68,0x69,0x67,0x68])}),_0x435d45[_0x1e607f([0x6f,0x6e])](_0x1e607f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x41b9e7=>{_0x5801a2(_0x41b9e7[_0x1e607f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e65b0=!0x0,_0x1c37f1(_0x41b9e7[_0x1e607f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e607f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e607f([0x6c,0x6f,0x77])}),_0x3995fb[_0x1e607f([0x74,0x68,0x65,0x6e])](()=>{_0x2e65b0||_0x26b40d(_0x1e607f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x400e68(){return _0x435d45[_0x1e607f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e607f([0x76,0x69,0x65,0x77])][_0x1e607f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e607f([0x61,0x75,0x74,0x6f]);}function _0x4d8ce8(){_0x435d45[_0x1e607f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e607f([0x76,0x69,0x65,0x77])][_0x1e607f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e607f([0x61,0x75,0x74,0x6f]);}}function _0x520ff1(_0x4ddf56){const _0x55f2ef=[new window[(_0x1e607f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a5c4d=>setTimeout(_0x3a5c4d,0x3d1ee13^_0x24c41f)),_0x3995fb[_0x1e607f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e607f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3568cb=>{let _0xa687bc=0x0;_0x435d45[_0x1e607f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e607f([0x6f,0x6e])](_0x1e607f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x583a6d,_0x549734)=>{_0x549734[0x0][_0x1e607f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa687bc++,_0xa687bc==(0x3d8d127^_0x24c41f)&&(_0x3568cb(),_0x583a6d[_0x1e607f([0x6f,0x66,0x66])]());});}))];return window[_0x1e607f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e607f([0x72,0x61,0x63,0x65])](_0x55f2ef)[_0x1e607f([0x74,0x68,0x65,0x6e])](()=>_0x4ddf56);}async function _0x3ff1df(){await _0x3995fb,_0x435d45[_0x1e607f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e607f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf81d21,_0x435d45[_0x1e607f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e607f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf81d21,_0x435d45[_0x1e607f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e607f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3867cf(_0x4c273f){const _0x5ad4db=_0x280e8d();_0x435d45[_0x5ad4db]=_0x1e607f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c273f,_0x4c273f!=_0x1e607f([0x56,0x61,0x6c,0x69,0x64])&&_0x3ff1df();}function _0x280e8d(){const _0x2af23c=window[_0x1e607f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e607f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e607f([0x6e,0x6f,0x77])]())[_0x1e607f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e607f([0x2e]),'');let _0x3f680b=_0x1e607f([0x52]);for(let _0x4c589f=0x0;_0x4c589f<_0x2af23c[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c589f+=0x2){let _0xaeead8=window[_0x1e607f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2af23c[_0x1e607f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c589f,_0x4c589f+0x2));_0xaeead8>=_0x153b68[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xaeead8-=_0x153b68[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f680b+=_0x153b68[_0xaeead8];}return _0x3f680b;}function _0x26e202(){const _0x38f87f=_0x177298[_0x1e607f([0x73,0x70,0x6c,0x69,0x74])](_0x1e607f([0x2e]));if(0x3!=_0x38f87f[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5bdbe(_0x38f87f[0x1]);function _0x5bdbe(_0x2f1499){const _0xd9ec9=_0x37c33f(_0x2f1499);return _0xd9ec9&&_0x591dda()?_0xd9ec9:null;function _0x591dda(){const _0x20fe88=_0xd9ec9[_0x1e607f([0x6a,0x74,0x69])],_0x1ea159=window[_0x1e607f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20fe88[_0x1e607f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20fe88[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6f617d={..._0xd9ec9,[_0x1e607f([0x6a,0x74,0x69])]:_0x20fe88[_0x1e607f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20fe88[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6f617d[_0x1e607f([0x76,0x63])],_0x268f7f(_0x6f617d)==_0x1ea159;}}}async function _0x101430(){let _0x230175=!0x0;try{const _0x5b6ea4=_0x177298[_0x1e607f([0x73,0x70,0x6c,0x69,0x74])](_0x1e607f([0x2e])),[_0x32bcc2,_0x5da842,_0x13f3d2]=_0x5b6ea4;return _0xff55f7(_0x32bcc2),await _0x1a6271(_0x32bcc2,_0x5da842,_0x13f3d2),_0x230175;}catch{return!0x1;}function _0xff55f7(_0x1cc9ca){const _0x31f246=_0x37c33f(_0x1cc9ca);_0x31f246&&_0x31f246[_0x1e607f([0x61,0x6c,0x67])]==_0x1e607f([0x45,0x53,0x32,0x35,0x36])||(_0x230175=!0x1);}async function _0x1a6271(_0x493216,_0x32428d,_0x561a4a){const _0x3fd231=window[_0x1e607f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e607f([0x66,0x72,0x6f,0x6d])](_0x57840a(_0x561a4a),_0x27421f=>_0x27421f[_0x1e607f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x422567=new window[(_0x1e607f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e607f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x493216+_0x1e607f([0x2e])+_0x32428d),_0x54f9aa=window[_0x1e607f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e607f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54f9aa)return;const _0x119b05=await _0x54f9aa[_0x1e607f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e607f([0x6a,0x77,0x6b]),_0x8470a7,{[_0x1e607f([0x6e,0x61,0x6d,0x65])]:_0x1e607f([0x45,0x43,0x44,0x53,0x41]),[_0x1e607f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e607f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e607f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54f9aa[_0x1e607f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e607f([0x6e,0x61,0x6d,0x65])]:_0x1e607f([0x45,0x43,0x44,0x53,0x41]),[_0x1e607f([0x68,0x61,0x73,0x68])]:{[_0x1e607f([0x6e,0x61,0x6d,0x65])]:_0x1e607f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x119b05,_0x3fd231,_0x422567)||(_0x230175=!0x1);}}function _0x37c33f(_0x216088){return _0x216088[_0x1e607f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e607f([0x65,0x79]))?JSON[_0x1e607f([0x70,0x61,0x72,0x73,0x65])](_0x57840a(_0x216088)):null;}function _0x57840a(_0x18a5f6){return window[_0x1e607f([0x61,0x74,0x6f,0x62])](_0x18a5f6[_0x1e607f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e607f([0x2b]))[_0x1e607f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e607f([0x2f])));}function _0x268f7f(_0x522a36){let _0x19c17e=0x1505;function _0x27f469(_0x2204d6){for(let _0x1b74f9=0x0;_0x1b74f9<_0x2204d6[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b74f9++){const _0x15e104=_0x2204d6[_0x1e607f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b74f9);_0x19c17e=(_0x19c17e<<0x5)+_0x19c17e+_0x15e104,_0x19c17e&=_0x19c17e;}}function _0x47e449(_0x5bd7a5){Array[_0x1e607f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5bd7a5)?_0x5bd7a5[_0x1e607f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47e449):_0x5bd7a5&&typeof _0x5bd7a5==_0x1e607f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e607f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5bd7a5)[_0x1e607f([0x73,0x6f,0x72,0x74])]()[_0x1e607f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bc31b,_0x37844b])=>{_0x27f469(_0x2bc31b),_0x47e449(_0x37844b);}):_0x27f469(window[_0x1e607f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5bd7a5));}return _0x47e449(_0x522a36),_0x19c17e>>>0x0;}function _0x1346a5(_0x2d47b8){return _0x2d47b8[_0x1e607f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e607f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e607f([0x30]));}function _0x56cba6(_0x20c91d){return _0x20c91d[_0x1e607f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e607f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e607f([0x6a,0x6f,0x69,0x6e])]('');}function _0xf81d21(){}function _0x1e607f(_0x18c3e2){return _0x18c3e2['map'](_0x15ca7c=>String['fromCharCode'](_0x15ca7c))['join']('');}_0x3867cf(await _0x570803());}(this);}['_initSchema'](){const _0x5b97a9=this['editor']['model']['schema'];_0x5b97a9['isRegistered']('imageBlock')&&_0x5b97a9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5b97a9['isRegistered']('imageInline')&&_0x5b97a9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3d4d39=this['editor'];_0x3d4d39['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3d4d39['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4a6292=>_0x4a6292['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4b544d=_0x3d4d39['commands']['get']('replaceImageSource');_0x4b544d&&this['listenTo'](_0x4b544d,'cleanupImage',(_0x35ce63,[_0x320f36,_0x1767b0])=>{_0x320f36['removeAttribute']('uploadcareImageId',_0x1767b0);});}['_initConfig'](){const _0x5a9f4c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5e39bb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1e526f(_0x3e4ebd['document'],'uc-config',{..._0x5a9f4c,'pubkey':_0x5e39bb,'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']=_0x150cd1=>{if('closeMax'==_0x150cd1)return'#uc-icon-arrow-down';},_0x3e4ebd['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1e526f(_0x3e4ebd['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3e4ebd['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x59a871=this['editor']['commands']['get']('insertImage');_0x59a871&&this['listenTo'](_0x59a871,'execute',()=>{const _0x401485=this['editor']['model']['document']['selection']['getSelectedElement']();_0x401485&&_0x401485['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x401485);});});const _0x34f878=this['editor']['commands']['get']('uploadcareImageReplace');_0x34f878&&this['listenTo'](_0x34f878,'execute',()=>{const _0x3c3e7b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c3e7b&&_0x3c3e7b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3c3e7b);});});}}class tt extends _0x2c681b{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bc2a5){super(_0x2bc2a5),_0x2bc2a5['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x135cd4['defineComponents'](_0x135cd4);}}class ii extends _0x190d11{constructor(_0x2e43a5){super(_0x2e43a5);const t=_0x2e43a5['t'],_0x243c94=this['bindTemplate'],_0x38ac3e=new _0x5a3007();_0x38ac3e['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':[_0x38ac3e,{'text':_0x243c94['to']('imageUploadProgress',_0x2dd812=>t('Loading\x20image...')+'\x20('+(_0x2dd812||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 _0x190d11{constructor(_0x4a1f96){super(_0x4a1f96);const t=_0x4a1f96['t'];this['set']('errorType',null);const _0x42923b=new _0x2d304f(_0x4a1f96);_0x42923b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x42923b['withText']=!0x0,_0x42923b['class']='ck-button-action',_0x42923b['on']('execute',()=>{this['fire']('retry');}),_0x42923b['bind']('isVisible')['to'](this,'errorType',_0x40b47a=>'NotFound'!==_0x40b47a);const _0x144553=new _0x13fb2d();_0x144553['content']=_0x754c18,_0x144553['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1775e6=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':[_0x144553,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1775e6['to']('errorType',_0x48bf87=>t('NotFound'!==_0x48bf87?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x42923b]},{'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 _0x190d11{constructor(_0x44ac27,_0x24ef58){super(_0x44ac27);const _0x269cf0=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x24ef58,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x269cf0['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x55b56d,_0x29f3eb,_0xf0e9a){super(_0x55b56d),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x55b56d),this['_errorView']=new ti(_0x55b56d),this['_editingView']=new ei(_0x55b56d,_0xf0e9a),this['_focusableView']=new _0x190d11(_0x55b56d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x29f3eb),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'],_0x99ad94=>{this['_addUploadcareImageEditorListeners'](_0x99ad94);});}),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'](_0x29f362,_0x40d2e8){const _0x1d30d0='uc-cloud-image-editor',_0x47512e=_0x29f362['querySelector'](_0x1d30d0);if(_0x47512e)return _0x40d2e8(_0x47512e);const _0x107220=new MutationObserver(_0x5e9c97=>{const _0x3c9372=_0x5e9c97['filter'](_0x1067b8=>_0x1067b8['target']===_0x29f362&&_0x1067b8['addedNodes']['length']>0x0&&_0x1067b8['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1d30d0);_0x3c9372['length']&&(_0x107220['disconnect'](),_0x40d2e8(_0x3c9372[0x0]['addedNodes'][0x0]));});_0x107220['observe'](_0x29f362,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x294a8a){_0x294a8a['addEventListener']('apply',_0x362261=>{this['fire']('apply',{'imageSrc':_0x362261['detail']['cdnUrl']});}),_0x294a8a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x36c90a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5b11ff,_0x251c8b,_0x4b46cb){super(),this['_editor']=_0x5b11ff,this['_dialog']=_0x251c8b,this['_imageElement']=_0x4b46cb,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 _0x2163e0=this['_imageElement'],_0x4e7319=_0x2163e0['getAttribute']('uploadcareImageId'),_0x1651d2=_0x2163e0['getAttribute']('src');if(_0x4e7319)await this['_loadImageInfo'](_0x4e7319,_0x1651d2);else{if(this['_imageCache']['has'](_0x1651d2)){const _0x10706d=this['_imageCache']['get'](_0x1651d2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10706d['url'],this['imageDimension']=_0x10706d['dimension'],this['imageId']=_0x10706d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5439f1}=this['_editor'],t=_0x5439f1['t'],_0xbe05c6=new X(_0x5439f1,this['imageStatus'],this['_attributes']);_0xbe05c6['bind']('status')['to'](this,'imageStatus'),_0xbe05c6['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xbe05c6['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xbe05c6['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xbe05c6,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4fda93,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xbe05c6,'position':_0x225e3e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xbe05c6['focus']();},'onHide':()=>{_0xbe05c6['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3dffc3=>!S(_0x3dffc3,_0xbe05c6['element'])}});}['_loadImageInfo'](_0x205436,_0x1d904c){return j['getInfo'](_0x205436,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xa90846=>{const {width:_0x5d7521,height:_0x162330}=_0xa90846['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d904c,this['imageDimension']={'width':_0x5d7521,'height':_0x162330},this['imageId']=_0x205436;})['catch'](_0x466d66=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x466d66['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x571ad4,_0x5ae4aa){return this['_getImageAsFile'](_0x571ad4)['then'](_0x2a0d77=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5ae4aa['signal'],'file':_0x2a0d77,'onProgress':_0x568d97=>{_0x568d97&&_0x568d97['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x568d97['value']));}}))['then'](_0x3151d3=>{const {width:_0x43d713,height:_0x67ee46}=_0x3151d3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3151d3['cdnUrl'],this['imageDimension']={'width':_0x43d713,'height':_0x67ee46},this['imageId']=_0x3151d3['uuid'],this['imageUploadProgress']=null;const _0x39632c=_0x571ad4['getAttribute']('src');this['_imageCache']['set'](_0x39632c,{'id':_0x3151d3['uuid'],'url':_0x3151d3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x252d5b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x252d5b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x10d152,_0x46eff0){_0x10d152['on']('apply',(_0x1aa7f1,_0x5407a1)=>{this['_replaceImage'](_0x46eff0,_0x5407a1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x10d152['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x10d152['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x34bede,_0x26d1f5,_0x5ec2f4){const _0x169dbd=this['_editor'],{width:_0x254ff7,height:_0x59b51c}=C(_0x26d1f5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2f7ccd,imageSources:_0x3797f0}=k(_0x26d1f5,_0x254ff7);_0x169dbd['model']['change'](_0x555cb3=>{if('$graveyard'===_0x34bede['root']['rootName']){_0x169dbd['execute']('insertImage',{'imageType':_0x34bede['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x34bede['getAttributes']()),'uploadcareImageId':_0x5ec2f4,'src':_0x2f7ccd,'sources':_0x3797f0,'width':_0x254ff7,'height':_0x59b51c}});const _0x1b849a=_0x34bede['getChildren']();_0x34bede=_0x169dbd['model']['document']['selection']['getSelectedElement']();for(const _0xdb1dae of _0x1b849a)_0x555cb3['append'](_0x555cb3['cloneElement'](_0xdb1dae),_0x34bede);}else _0x555cb3['setSelection'](_0x34bede,'on'),_0x169dbd['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x34bede['getAttributes']()),'uploadcareImageId':_0x5ec2f4,'src':_0x2f7ccd,'sources':_0x3797f0,'width':_0x254ff7,'height':_0x59b51c},_0x34bede);_0x555cb3['setSelection'](_0x34bede,'on');});}async['_getImageAsFile'](_0x5e03d2){const _0x4c2f82=_0x3e4ebd['window'],_0x155848=_0x3e4ebd['document']['location']['href'],_0x633210=new _0x4c2f82['URL'](_0x5e03d2['getAttribute']('src'),_0x155848);if('data:'===_0x633210['protocol']){const _0x5584bc=_0x633210['href']['split'](','),_0xf3a9a1=_0x5584bc[0x0]['match'](/:(.*?);/)[0x1],_0x47fdf4=_0xf3a9a1['split']('/')[0x1],_0x2d0873=_0x4c2f82['atob'](_0x5584bc[_0x5584bc['length']-0x1]);let _0x1a57c7=_0x2d0873['length'];const _0x5603c3=new _0x4c2f82['Uint8Array'](_0x1a57c7);for(;_0x1a57c7--;)_0x5603c3[_0x1a57c7]=_0x2d0873['charCodeAt'](_0x1a57c7);return new _0x4c2f82['File']([_0x5603c3],'image.'+_0x47fdf4,{'type':_0xf3a9a1});}const _0x2ed050=_0x633210['href']['split']('/'),_0x4e62f9=_0x2ed050[_0x2ed050['length']-0x1],_0x3a3a32=_0x4e62f9['split']('.')[0x1];return _0x4c2f82['fetch'](_0x633210['href'])['then'](_0x1b9592=>_0x1b9592['clone']()['blob']())['then'](_0x556c19=>new _0x4c2f82['File']([_0x556c19],_0x4e62f9,{'type':'image/'+_0x3a3a32}));}}class Q extends _0x48e403{['imageEditController'];static get['requires'](){return[_0x15d45f];}['_isEditable'];constructor(_0x3ffb42){super(_0x3ffb42),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x54e1ca){const _0x92d91a=z(_0x54e1ca);return _0x403c6a=>!(!_0x403c6a||!_0x403c6a['is']('element','imageBlock')&&!_0x403c6a['is']('element','imageInline'))&&(!!_0x403c6a['hasAttribute']('uploadcareImageId')||!!_0x403c6a['hasAttribute']('src')&&_0x92d91a(_0x403c6a['getAttribute']('src')));}(_0x3ffb42['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x594f95=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x594f95);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3f0b63=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3f0b63&&(_0x3f0b63['is']('element','imageBlock')||_0x3f0b63['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x15d45f),_0x3f0b63),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x48e403{['refresh'](){const _0x2a4527=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2a4527&&(_0x2a4527['is']('element','imageBlock')||_0x2a4527['is']('element','imageInline')));}['execute'](_0x4fcea4){const _0x4e4a3d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1b450e=>{_0x1b450e['setAttributes'](_0x4fcea4,_0x4e4a3d),_0x1b450e['removeAttribute']('srcset',_0x4e4a3d),_0x1b450e['removeAttribute']('sizes',_0x4e4a3d);});}}class m extends _0x2c681b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x8e4201,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5b5b3e}=this;_0x5b5b3e['commands']['add']('uploadcareImageEdit',new Q(_0x5b5b3e)),_0x5b5b3e['commands']['add']('uploadcareImageReplace',new V(_0x5b5b3e));}}class g extends _0x2c681b{['_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 _0x94f79c=this['editor'];_0x94f79c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2cca97=>{const _0x41f37a=_0x94f79c['commands']['get']('uploadcareImageEdit'),_0x2b0759=new _0x2d304f(_0x2cca97),t=_0x2cca97['t'];return _0x2b0759['set']({'icon':_0x4fda93,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2b0759['bind']('isEnabled')['to'](_0x41f37a),_0x2b0759['bind']('isOn')['to'](_0x41f37a,'isActive'),this['listenTo'](_0x2b0759,'execute',()=>{_0x94f79c['execute']('uploadcareImageEdit'),_0x94f79c['editing']['view']['focus']();}),_0x2b0759;}),this['_initConfig']();}['_initConfig'](){const _0x1fc417=_0x1e526f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1fc417),this['listenTo'](this['editor'],'destroy',()=>{_0x1fc417['remove']();});}}class et extends _0x2c681b{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4a8d92=>0x1!=_0x4a8d92}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3c753c=>{const {af:{dictionary:_0x872d44,getPluralForm:_0xa27177}}={'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':_0x230b6e=>0x1!=_0x230b6e}};_0x3c753c['af']||={'dictionary':{},'getPluralForm':null},_0x3c753c['af']['dictionary']=Object['assign'](_0x3c753c['af']['dictionary'],_0x872d44),_0x3c753c['af']['getPluralForm']=_0xa27177;})(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':_0x4f1c34=>0x0==_0x4f1c34?0x0:0x1==_0x4f1c34?0x1:0x2==_0x4f1c34?0x2:_0x4f1c34%0x64>=0x3&&_0x4f1c34%0x64<=0xa?0x3:_0x4f1c34%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3db3b2=>{const {ar:{dictionary:_0x43cdf0,getPluralForm:_0x5c3db8}}={'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':_0x11fbdf=>0x0==_0x11fbdf?0x0:0x1==_0x11fbdf?0x1:0x2==_0x11fbdf?0x2:_0x11fbdf%0x64>=0x3&&_0x11fbdf%0x64<=0xa?0x3:_0x11fbdf%0x64>=0xb?0x4:0x5}};_0x3db3b2['ar']||={'dictionary':{},'getPluralForm':null},_0x3db3b2['ar']['dictionary']=Object['assign'](_0x3db3b2['ar']['dictionary'],_0x43cdf0),_0x3db3b2['ar']['getPluralForm']=_0x5c3db8;})(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':_0x650289=>0x1!=_0x650289}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x40b733=>{const {ast:{dictionary:_0x113300,getPluralForm:_0x1052dd}}={'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':_0x50b349=>0x1!=_0x50b349}};_0x40b733['ast']||={'dictionary':{},'getPluralForm':null},_0x40b733['ast']['dictionary']=Object['assign'](_0x40b733['ast']['dictionary'],_0x113300),_0x40b733['ast']['getPluralForm']=_0x1052dd;})(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':_0xca4c87=>0x1!=_0xca4c87}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x13449c=>{const {az:{dictionary:_0x350b25,getPluralForm:_0x2da8a1}}={'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':_0x164667=>0x1!=_0x164667}};_0x13449c['az']||={'dictionary':{},'getPluralForm':null},_0x13449c['az']['dictionary']=Object['assign'](_0x13449c['az']['dictionary'],_0x350b25),_0x13449c['az']['getPluralForm']=_0x2da8a1;})(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':_0x16f9e7=>_0x16f9e7%0xa==0x1&&_0x16f9e7%0x64!=0xb?0x0:_0x16f9e7%0xa>=0x2&&_0x16f9e7%0xa<=0x4&&(_0x16f9e7%0x64<0xa||_0x16f9e7%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5d5b32=>{const {be:{dictionary:_0x25577b,getPluralForm:_0x5e42ad}}={'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':_0xe6c0f1=>_0xe6c0f1%0xa==0x1&&_0xe6c0f1%0x64!=0xb?0x0:_0xe6c0f1%0xa>=0x2&&_0xe6c0f1%0xa<=0x4&&(_0xe6c0f1%0x64<0xa||_0xe6c0f1%0x64>=0x14)?0x1:0x2}};_0x5d5b32['be']||={'dictionary':{},'getPluralForm':null},_0x5d5b32['be']['dictionary']=Object['assign'](_0x5d5b32['be']['dictionary'],_0x25577b),_0x5d5b32['be']['getPluralForm']=_0x5e42ad;})(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':_0x4c9585=>0x1!=_0x4c9585}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2aa562=>{const {bg:{dictionary:_0x27c0a0,getPluralForm:_0x404826}}={'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':_0x50a3ae=>0x1!=_0x50a3ae}};_0x2aa562['bg']||={'dictionary':{},'getPluralForm':null},_0x2aa562['bg']['dictionary']=Object['assign'](_0x2aa562['bg']['dictionary'],_0x27c0a0),_0x2aa562['bg']['getPluralForm']=_0x404826;})(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':_0x2626e6=>0x1!=_0x2626e6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x387140=>{const {bn:{dictionary:_0x3a9e1f,getPluralForm:_0x35f382}}={'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':_0x1177bb=>0x1!=_0x1177bb}};_0x387140['bn']||={'dictionary':{},'getPluralForm':null},_0x387140['bn']['dictionary']=Object['assign'](_0x387140['bn']['dictionary'],_0x3a9e1f),_0x387140['bn']['getPluralForm']=_0x35f382;})(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':_0x51f5ef=>_0x51f5ef%0xa==0x1&&_0x51f5ef%0x64!=0xb?0x0:_0x51f5ef%0xa>=0x2&&_0x51f5ef%0xa<=0x4&&(_0x51f5ef%0x64<0xa||_0x51f5ef%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x542536=>{const {bs:{dictionary:_0x1d6777,getPluralForm:_0x264a9b}}={'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':_0x167eff=>_0x167eff%0xa==0x1&&_0x167eff%0x64!=0xb?0x0:_0x167eff%0xa>=0x2&&_0x167eff%0xa<=0x4&&(_0x167eff%0x64<0xa||_0x167eff%0x64>=0x14)?0x1:0x2}};_0x542536['bs']||={'dictionary':{},'getPluralForm':null},_0x542536['bs']['dictionary']=Object['assign'](_0x542536['bs']['dictionary'],_0x1d6777),_0x542536['bs']['getPluralForm']=_0x264a9b;})(window['CKEDITOR_TRANSLATIONS']||={});
|