@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251002.0 → 0.0.0-nightly-20251004.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 _0x541ae0,Command as _0x402c9f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x298893,IconGooglePhotos as _0x472136,IconGoogleDrive as _0x4bae57,IconFacebook as _0x46917b,IconDropbox as _0x5f3948,IconUploadcareLink as _0x3d81bb,IconUploadcareImageUpload as _0x359216,IconError as _0x525cdb,IconUploadcareImageEdit as _0x3db30f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3dc587,MenuBarMenuListItemButtonView as _0x4747d5,View as _0x3009f4,FocusCycler as _0x57812a,Dialog as _0x24bfa4,DialogViewPosition as _0x3508e7,SpinnerView as _0x523f58,IconView as _0x18935c,Notification as _0x4ef364}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5bbdc4,DomEmitterMixin as _0x29c913,global as _0x5df5c9,getAncestors as _0x19f1cb,ObservableMixin as _0x3a2c69,uid as _0x57656b,createElement as _0x1158ec}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x238201}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x241cef,info as _0x371ac1}from'@uploadcare/upload-client';import*as _0x2cafd1 from'@uploadcare/file-uploader';var i=function(_0x2b0318){return _0x2b0318['Local']='local',_0x2b0318['URL']='url',_0x2b0318['Dropbox']='dropbox',_0x2b0318['GDrive']='gdrive',_0x2b0318['Facebook']='facebook',_0x2b0318['GPhotos']='gphotos',_0x2b0318['OneDrive']='onedrive',_0x2b0318;}({});function _(_0x45d5fe,_0x560a8e,_0x539e47){const t=_0x45d5fe['t'],_0xbfda8b=_0x45d5fe['t'];switch(_0x560a8e){case i['Local']:return{'text':_0xbfda8b('Insert'===_0x539e47?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xbfda8b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x539e47?_0xbfda8b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xbfda8b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x539e47?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x539e47?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x539e47?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x539e47?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x539e47?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x560a8e;}}class e extends _0x541ae0{['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 _0x5d5630=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b476b;for(const _0x3d4d63 in _0x5d5630){const _0x4677a9=_0x3d4d63,_0x4eec85=_0x5d5630[_0x4677a9];if('uploadcareLicenseKeyValid'==_0x4eec85||'uploadcareLicenseKeyInvalid'==_0x4eec85||'uploadcareLicenseKeyExpired'==_0x4eec85||'uploadcareLicenseKeyDomainLimit'==_0x4eec85||'uploadcareLicenseKeyNotAllowed'==_0x4eec85||'uploadcareLicenseKeyEvaluationLimit'==_0x4eec85||'uploadcareLicenseKeyTrialLimit'==_0x4eec85||'uploadcareLicenseKeyUsageLimit'==_0x4eec85){delete _0x5d5630[_0x4677a9],_0x3b476b=_0x4eec85,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3b476b&&_0x5d5630['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3b476b&&_0x5d5630['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3b476b&&_0x5d5630['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3b476b&&_0x5d5630['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3b476b&&_0x5d5630['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3b476b&&_0x5d5630['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3b476b&&_0x5d5630['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4716e1}=this,_0x3dc4bd=_0x4716e1['commands']['get']('uploadcare');if(!_0x3dc4bd)return;const _0x232dec=this['_normalizeConfigSourceList'](_0x4716e1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x285076,_0x2a99f9)=>{const _0x438873=this['_getIntegrationKey'](_0x2a99f9['type']);return _0x285076[_0x438873]||(_0x285076[_0x438873]=[]),_0x285076[_0x438873]['push'](_0x2a99f9),_0x285076;},{});_0x4716e1['plugins']['has']('ImageInsertUI')&&_0x4716e1['commands']['get']('uploadcare')&&Object['entries'](_0x232dec)['forEach'](([_0x273077,_0x2462f9])=>{_0x4716e1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x273077,'observable':()=>_0x3dc4bd,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2462f9),'formViewCreator':()=>this['_createDropdownButtons'](_0x2462f9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2462f9),'override':'assetManager'!==_0x273077});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x12f19e){const {locale:_0x5945ce}=this['editor'];return _0x12f19e['map'](_0x4e2c41=>{const _0x4b76bb=_(_0x5945ce,_0x4e2c41,'Insert');switch(_0x4e2c41){case i['Local']:return{'icon':_0x359216,'type':i['Local'],..._0x4b76bb};case i['URL']:return{'icon':_0x3d81bb,'type':i['URL'],..._0x4b76bb};case i['Dropbox']:return{'icon':_0x5f3948,'type':i['Dropbox'],..._0x4b76bb};case i['Facebook']:return{'icon':_0x46917b,'type':i['Facebook'],..._0x4b76bb};case i['GDrive']:return{'icon':_0x4bae57,'type':i['GDrive'],..._0x4b76bb};case i['GPhotos']:return{'icon':_0x472136,'type':i['GPhotos'],..._0x4b76bb};case i['OneDrive']:return{'icon':_0x298893,'type':i['OneDrive'],..._0x4b76bb};}});}['_getIntegrationKey'](_0x53b440){switch(_0x53b440){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2e2ab4,_0xbe99c8){const _0x42c564=this['editor'],_0x656d2b=new _0x2e2ab4(_0x42c564['locale']),_0x393e10=_0x42c564['commands']['get']('uploadcare');return _0x656d2b['bind']('isEnabled')['to'](_0x393e10),_0x656d2b['on']('execute',()=>{_0x393e10['execute'](_0xbe99c8);}),_0x656d2b;}['_createToolbarButton'](_0x41ca58){const {locale:_0x19e59e}=this['editor'],_0x467388=this['editor']['plugins']['get']('ImageInsertUI'),_0x413bfa=_0x41ca58[0x0],_0x4f7d00=this['_createButton'](_0x3dc587,_0x413bfa['type']);return _0x4f7d00['icon']=_0x413bfa['icon'],_0x4f7d00['bind']('label')['to'](_0x467388,'isImageSelected',_0x35cfc4=>_(_0x19e59e,_0x413bfa['type'],_0x35cfc4?'Replace':'Insert')['text']),_0x4f7d00['tooltip']=!0x0,_0x4f7d00;}['_createDropdownButtons'](_0x309e72){const {locale:_0x526ed1}=this['editor'],_0x47f1a1=this['editor']['plugins']['get']('ImageInsertUI');return _0x309e72['map'](_0x399a36=>{const _0x837953=this['_createButton'](_0x3dc587,_0x399a36['type']);return _0x837953['withText']=!0x0,_0x837953['icon']=_0x399a36['icon'],_0x837953['bind']('label')['to'](_0x47f1a1,'isImageSelected',_0x4ced74=>_(_0x526ed1,_0x399a36['type'],_0x4ced74?'Replace':'Insert')['text']),_0x837953;});}['_createMenuBarButtons'](_0xce9bb4){return _0xce9bb4['map'](_0x16ca32=>{const _0x24e8a6=this['_createButton'](_0x4747d5,_0x16ca32['type']);return _0x24e8a6['icon']=_0x16ca32['icon'],_0x24e8a6['label']=_0x16ca32['shortText'],_0x24e8a6;});}}class V extends _0x3009f4{['focusTracker'];['focusCycler'];constructor(_0x103f6e){super(_0x103f6e),this['focusTracker']=new _0x5bbdc4(),this['focusCycler']=new _0x57812a({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x614106,_0x517250){super(_0x614106),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-'+_0x517250}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1912c1,_0x2043ea){const _0xf15203=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x11caa5=>_0x11caa5<=_0x2043ea)['map'](_0x238036=>_0x1912c1['replace'](/\/$/,'')+'/-/resize/'+_0x238036+'x/\x20'+_0x238036+'w');return{'imageFallbackUrl':_0x1912c1,'imageSources':[{'srcset':_0xf15203['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2043ea+'px)\x20100vw,\x20'+_0x2043ea+'px','type':'image/webp'}]};}function F(_0x34b660,_0x59ab75,_0x51cddd){const _0x32978b=_0x34b660['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x32978b?parseInt(_0x32978b[0x1],0xa):_0x59ab75,'height':_0x32978b?parseInt(_0x32978b[0x2],0xa):_0x51cddd};}function p(_0x25b055,_0x4e32f1){const _0x3e9a55=new(_0x29c913())(),_0x2c9b47=_0x25b055['plugins']['get']('ImageUtils'),_0x40be1d=_0x25b055['editing']['mapper']['toViewElement'](_0x4e32f1),_0x458172=_0x2c9b47['findViewImgElement'](_0x40be1d),_0x13c68c=_0x25b055['editing']['view']['domConverter']['viewToDom'](_0x458172),_0x5cc039=_0x4e32f1['getAttribute']('width'),_0xc26e3f=_0x4e32f1['getAttribute']('height'),_0x3fb328='image-processing';_0x25b055['editing']['view']['change'](_0x5df8e0=>{_0x5df8e0['addClass'](_0x3fb328,_0x40be1d),_0x5df8e0['setStyle']('aspect-ratio',_0x5cc039+'/'+_0xc26e3f,_0x458172);}),_0x3e9a55['listenTo'](_0x13c68c,'load',()=>{_0x3e9a55['stopListening'](_0x13c68c,'load'),_0x25b055['editing']['view']['change'](_0x347f29=>{_0x347f29['removeClass'](_0x3fb328,_0x40be1d),_0x347f29['removeStyle']('aspect-ratio',_0x458172);});});}function R(_0x9aeaa4){if(Array['isArray'](_0x9aeaa4)){const _0x3b9d7d=_0x9aeaa4['map'](R);return _0x2ebf4c=>_0x3b9d7d['some'](_0x28ea0f=>_0x28ea0f(_0x2ebf4c));}if('origin'==_0x9aeaa4){const _0x1294ce=_0x5df5c9['window']['location']['origin'];return _0x5180f9=>new URL(_0x5180f9,_0x5df5c9['document']['baseURI'])['origin']==_0x1294ce;}return'function'==typeof _0x9aeaa4?_0x9aeaa4:_0x9aeaa4 instanceof RegExp?_0x470e15=>!(!_0x470e15['match'](_0x9aeaa4)&&!_0x470e15['replace'](/^https?:\/\//,'')['match'](_0x9aeaa4)):()=>!0x1;}function M(_0x43269a,_0x586be5){return _0x19f1cb(_0x43269a['target'])['includes'](_0x586be5);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3a2c69(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x474e31,_0x5b1faf,_0x4463ac){super(),this['_editor']=_0x474e31,this['_editing']=_0x5b1faf,this['_dialog']=_0x474e31['plugins']['get'](_0x24bfa4),this['_api']=_0x5b1faf['ctxElement']['getAPI'](),this['_type']=_0x4463ac,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:_0x3d4681,model:_0x33d33a}=this['_editor'],_0x3f5e05=_0x33d33a['document']['selection']['getSelectedElement'](),_0x5cfe51=_0x3f5e05&&(_0x3f5e05['is']('element','imageBlock')||_0x3f5e05['is']('element','imageInline'));this['_formView']=new S(_0x3d4681,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x359216,'title':_(_0x3d4681,this['_type'],_0x5cfe51?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3508e7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xcf1d7b=>!M(_0xcf1d7b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x49ab1b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x187889=>{const _0x190ec9=_0x49ab1b['length'];for(const _0x2935e6 of _0x49ab1b){const _0x353c46=_0x2935e6===_0x49ab1b[_0x190ec9-0x1],{cdnUrl:_0x595d72,fileInfo:_0xbdb5a7}=_0x2935e6;if(!_0x595d72||!_0xbdb5a7)continue;const {width:_0x1dc2d1,height:_0x4e34aa}=_0xbdb5a7['imageInfo'],_0x16a81e=F(_0x595d72,_0x1dc2d1,_0x4e34aa),_0x3e1785=C(_0x595d72,_0x16a81e['width']),_0x16063f={'id':_0xbdb5a7['uuid'],'type':'image','attributes':{'imageDimension':_0x16a81e,..._0x3e1785}};this['_insertAsset'](_0x16063f,_0x353c46,_0x187889);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5e7120=>{'idle'===_0x5e7120['detail']['status']&&!_0x5e7120['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3b295a,_0x4a237d,_0x4c62ba){const _0x3a914a=this['_editor']['model']['document']['selection'],_0x367658=_0x3a914a['getSelectedElement'](),_0x523731=!(!_0x367658||!_0x367658['is']('element','imageInline'));_0x4c62ba['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3b295a,_0x523731),_0x4a237d||_0x4c62ba['setSelection'](_0x3a914a['getLastPosition']());}['_insertImage'](_0x423806,_0x56326c){const _0x446059=this['_editor'],{imageDimension:_0x384620,imageFallbackUrl:_0x5f4129,imageSources:_0x563499}=_0x423806['attributes'];_0x446059['execute']('insertImage',{'imageType':_0x56326c?'imageInline':null,'source':{'uploadcareImageId':_0x423806['id'],'src':_0x5f4129,'sources':_0x563499,..._0x384620}});}}class w extends _0x402c9f{['_editing'];['_controller']=null;static get['requires'](){return[_0x24bfa4,o];}constructor(_0x4e34c2){super(_0x4e34c2),this['_editing']=_0x4e34c2['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xecfc2a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xecfc2a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x495444,..._0x339478}){return _0x241cef(_0x495444,_0x339478);}static['getInfo'](_0x51e906,_0x27ab3b){return _0x371ac1(_0x51e906,_0x27ab3b);}}class f extends _0x541ae0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x238201,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x295dc5=this['editor'];if(!!!_0x295dc5['config']['get']('uploadcare'))return;_0x295dc5['plugins']['get'](_0x238201)['createUploadAdapter']=_0x1d3011=>new k(_0x1d3011,_0x295dc5),_0x295dc5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x515767,{imageElement:_0x7ccf11,data:_0x28d18c})=>{_0x295dc5['model']['change'](_0x2bd082=>{_0x2bd082['setAttribute']('uploadcareImageId',_0x28d18c['uploadcareImageId'],_0x7ccf11);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3eb0e6,_0x350703){this['loader']=_0x3eb0e6,this['editor']=_0x350703,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2dc834=await this['loader']['file'];return j['upload']({'file':_0x2dc834,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x15c8a2=>{_0x15c8a2&&_0x15c8a2['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x15c8a2['value']);}})['then'](async _0xba038c=>{const {imageFallbackUrl:_0x2cd871,imageSources:_0x363440}=C(_0xba038c['cdnUrl'],_0xba038c['imageInfo']['width']);return{'uploadcareImageId':_0xba038c['uuid'],'default':_0x2cd871,'sources':_0x363440};})['catch'](()=>{const _0x1668f5=t('Cannot\x20upload\x20file:')+('\x20'+_0x2dc834['name']+'.');return Promise['reject'](_0x1668f5);});}['abort'](){this['controller']['abort']();}}class o extends _0x541ae0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x24bfa4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x31b559){super(_0x31b559),this['ucContextId']=_0x57656b();}['init'](){const _0x553356=this['editor'];_0x553356['commands']['add']('uploadcare',new w(_0x553356));}['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 _0x5161e8=_0x5df5c9['document']['querySelector']('input[uploadcare-file-input]');_0x5161e8&&_0x5161e8['remove']();}),async function(_0x2e42bf){const _0x236581=_0x54daa8([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]),_0x2a554e=0x3d8d0df,_0xc4f1ff=0x3dfa5d7^_0x2a554e,_0xa64be3=window[_0x54daa8([0x44,0x61,0x74,0x65])][_0x54daa8([0x6e,0x6f,0x77])](),_0x5ea27e=_0x2e42bf[_0x54daa8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ea2e0=new window[(_0x54daa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a98b3=>{_0x5ea27e[_0x54daa8([0x6f,0x6e,0x63,0x65])](_0x54daa8([0x72,0x65,0x61,0x64,0x79]),_0x5a98b3);}),_0x143aef={[_0x54daa8([0x6b,0x74,0x79])]:_0x54daa8([0x45,0x43]),[_0x54daa8([0x75,0x73,0x65])]:_0x54daa8([0x73,0x69,0x67]),[_0x54daa8([0x63,0x72,0x76])]:_0x54daa8([0x50,0x2d,0x32,0x35,0x36]),[_0x54daa8([0x78])]:_0x54daa8([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]),[_0x54daa8([0x79])]:_0x54daa8([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]),[_0x54daa8([0x61,0x6c,0x67])]:_0x54daa8([0x45,0x53,0x32,0x35,0x36])},_0x13e0f1=_0x5ea27e[_0x54daa8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54daa8([0x67,0x65,0x74])](_0x54daa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4241ae(){let _0x41e42d,_0x1aabe6=null,_0x9f259a=null;try{if(_0x13e0f1==_0x54daa8([0x47,0x50,0x4c]))return _0x54daa8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41e42d=_0x240d91(),!_0x41e42d)return _0x54daa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41e42d[_0x54daa8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9f259a=_0x20a1c2(_0x41e42d[_0x54daa8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41e42d[_0x54daa8([0x6a,0x74,0x69])])),await _0x2ac38f()?_0xb811a9()?_0x154e83()?_0x54daa8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f7131()?(_0x41e42d[_0x54daa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54daa8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1aabe6=_0x45d994(_0x54daa8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x41e42d[_0x54daa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54daa8([0x74,0x72,0x69,0x61,0x6c])&&(_0x1aabe6=_0x45d994(_0x54daa8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16f0ed()):_0x54daa8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54daa8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54daa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x54daa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x154e83(){const _0x4914ca=[_0x54daa8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54daa8([0x74,0x72,0x69,0x61,0x6c])][_0x54daa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41e42d[_0x54daa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa64be3/0x3e8:0xe10*_0xc4f1ff;return _0x41e42d[_0x54daa8([0x65,0x78,0x70])]<_0x4914ca;}function _0xb811a9(){const _0x52b1c7=_0x41e42d[_0x54daa8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x52b1c7&&(!!_0x52b1c7[_0x54daa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54daa8([0x2a]))||!!_0x52b1c7[_0x54daa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54daa8([0x55,0x50,0x4c,0x43])));}function _0x4f7131(){const _0x384477=_0x41e42d[_0x54daa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x384477||0x0==_0x384477[_0x54daa8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ebef5}=new URL(window[_0x54daa8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x384477[_0x54daa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ebef5))return!0x0;const _0x47cd26=_0x4ebef5[_0x54daa8([0x73,0x70,0x6c,0x69,0x74])](_0x54daa8([0x2e]));return _0x384477[_0x54daa8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x412991=>_0x412991[_0x54daa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54daa8([0x2a])))[_0x54daa8([0x6d,0x61,0x70])](_0x576334=>_0x576334[_0x54daa8([0x73,0x70,0x6c,0x69,0x74])](_0x54daa8([0x2e])))[_0x54daa8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x284b8d=>_0x284b8d[_0x54daa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47cd26[_0x54daa8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54daa8([0x6d,0x61,0x70])](_0x4bc8fd=>Array(_0x47cd26[_0x54daa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4bc8fd[_0x54daa8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54daa8([0x66,0x69,0x6c,0x6c])](_0x4bc8fd[0x0]===_0x54daa8([0x2a])?_0x54daa8([0x2a]):'')[_0x54daa8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4bc8fd))[_0x54daa8([0x73,0x6f,0x6d,0x65])](_0x28a8b5=>_0x47cd26[_0x54daa8([0x65,0x76,0x65,0x72,0x79])]((_0x30c3e0,_0x4f72dc)=>_0x28a8b5[_0x4f72dc]===_0x30c3e0||_0x28a8b5[_0x4f72dc]===_0x54daa8([0x2a])));}function _0x16f0ed(){return _0x1aabe6&&_0x9f259a?new window[(_0x54daa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6b4199,_0x4582c3)=>{_0x1aabe6[_0x54daa8([0x74,0x68,0x65,0x6e])](_0x6b4199,_0x4582c3),_0x9f259a[_0x54daa8([0x74,0x68,0x65,0x6e])](_0x4e3e97=>{_0x4e3e97!=_0x54daa8([0x56,0x61,0x6c,0x69,0x64])&&_0x6b4199(_0x4e3e97);},_0x4582c3);}):_0x1aabe6||_0x9f259a||_0x54daa8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20a1c2(_0x30d934,_0x24b950){return new window[(_0x54daa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d0b3e=>{if(_0x4456a9())return _0x5d0b3e(_0x54daa8([0x56,0x61,0x6c,0x69,0x64]));_0x59d12f(),_0x5ea27e[_0x54daa8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54daa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b67f8=!0x1;const _0x50de5d=_0x57656b();function _0x3d4089(_0x505143){return!!_0x505143&&(typeof _0x505143===_0x54daa8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x505143===_0x54daa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x505143[_0x54daa8([0x74,0x68,0x65,0x6e])]===_0x54daa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x505143[_0x54daa8([0x63,0x61,0x74,0x63,0x68])]===_0x54daa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b118b(_0x420f5a){_0x105539(_0x420f5a)[_0x54daa8([0x74,0x68,0x65,0x6e])](_0x3f75be=>{if(!_0x3f75be||_0x3f75be[_0x54daa8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54daa8([0x6f,0x6b]))return _0x54daa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x128798(_0x1e96b1(_0x50de5d+_0x24b950))!=_0x3f75be[_0x54daa8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54daa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54daa8([0x56,0x61,0x6c,0x69,0x64]);})[_0x54daa8([0x74,0x68,0x65,0x6e])](_0x3964a4=>(_0x4da64c(),_0x3964a4),()=>{const _0x1d9508=_0x328774();return null==_0x1d9508?(_0x4da64c(),_0x54daa8([0x56,0x61,0x6c,0x69,0x64])):_0x54daa8(_0xa64be3-_0x1d9508>(0x27d454df^_0x2a554e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54daa8([0x74,0x68,0x65,0x6e])](_0x5d0b3e)[_0x54daa8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d0b3e(_0x54daa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1b6030=0x3ee3e5f^_0x2a554e;function _0x4da64c(){const _0x33ce0f=_0x54daa8([0x6c,0x6c,0x63,0x74,0x2d])+_0x128798(_0x1e96b1(_0x30d934)),_0x5d1f44=_0x127f98(_0x128798(window[_0x54daa8([0x4d,0x61,0x74,0x68])][_0x54daa8([0x63,0x65,0x69,0x6c])](_0xa64be3/_0x1b6030)));window[_0x54daa8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54daa8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33ce0f,_0x5d1f44);}function _0x328774(){const _0xb3fd0d=_0x54daa8([0x6c,0x6c,0x63,0x74,0x2d])+_0x128798(_0x1e96b1(_0x30d934)),_0x333a6f=window[_0x54daa8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54daa8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb3fd0d);return _0x333a6f?window[_0x54daa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x127f98(_0x333a6f),0x10)*_0x1b6030:null;}function _0x105539(_0xf92c60){return new window[(_0x54daa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x280298,_0x50b063)=>{_0xf92c60[_0x54daa8([0x74,0x68,0x65,0x6e])](_0x280298,_0x50b063),window[_0x54daa8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50b063,0x3d9041f^_0x2a554e);});}}_0x5ea27e[_0x54daa8([0x6f,0x6e])](_0x54daa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x518b37,_0x3f7a49)=>{if(_0x3f7a49[0x0]!=_0x30d934)return _0x5d0b3e(_0x54daa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f7a49[0x1]={..._0x3f7a49[0x1],[_0x54daa8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50de5d};},{[_0x54daa8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54daa8([0x68,0x69,0x67,0x68])}),_0x5ea27e[_0x54daa8([0x6f,0x6e])](_0x54daa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x125934=>{_0x3d4089(_0x125934[_0x54daa8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b67f8=!0x0,_0x3b118b(_0x125934[_0x54daa8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54daa8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54daa8([0x6c,0x6f,0x77])}),_0x5ea2e0[_0x54daa8([0x74,0x68,0x65,0x6e])](()=>{_0x2b67f8||_0x5d0b3e(_0x54daa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4456a9(){return _0x5ea27e[_0x54daa8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54daa8([0x76,0x69,0x65,0x77])][_0x54daa8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54daa8([0x61,0x75,0x74,0x6f]);}function _0x59d12f(){_0x5ea27e[_0x54daa8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54daa8([0x76,0x69,0x65,0x77])][_0x54daa8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54daa8([0x61,0x75,0x74,0x6f]);}}function _0x45d994(_0x5f3d04){const _0x5a5fa1=[new window[(_0x54daa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17780a=>setTimeout(_0x17780a,0x3d1ee13^_0x2a554e)),_0x5ea2e0[_0x54daa8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54daa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e5e1b=>{let _0x143630=0x0;_0x5ea27e[_0x54daa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x54daa8([0x6f,0x6e])](_0x54daa8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5abd92,_0x7a3732)=>{_0x7a3732[0x0][_0x54daa8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x143630++,_0x143630==(0x3d8d127^_0x2a554e)&&(_0x3e5e1b(),_0x5abd92[_0x54daa8([0x6f,0x66,0x66])]());});}))];return window[_0x54daa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54daa8([0x72,0x61,0x63,0x65])](_0x5a5fa1)[_0x54daa8([0x74,0x68,0x65,0x6e])](()=>_0x5f3d04);}async function _0x556ca3(){await _0x5ea2e0,_0x5ea27e[_0x54daa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x54daa8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x559a89,_0x5ea27e[_0x54daa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x54daa8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x559a89,_0x5ea27e[_0x54daa8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54daa8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x512513(_0x2d83b6){const _0x436064=_0x361a88();_0x5ea27e[_0x436064]=_0x54daa8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d83b6,_0x2d83b6!=_0x54daa8([0x56,0x61,0x6c,0x69,0x64])&&_0x556ca3();}function _0x361a88(){const _0x106057=window[_0x54daa8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54daa8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54daa8([0x6e,0x6f,0x77])]())[_0x54daa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54daa8([0x2e]),'');let _0x2d8d38=_0x54daa8([0x52]);for(let _0x3e8dd0=0x0;_0x3e8dd0<_0x106057[_0x54daa8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e8dd0+=0x2){let _0x3f2b46=window[_0x54daa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x106057[_0x54daa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e8dd0,_0x3e8dd0+0x2));_0x3f2b46>=_0x236581[_0x54daa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f2b46-=_0x236581[_0x54daa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d8d38+=_0x236581[_0x3f2b46];}return _0x2d8d38;}function _0x240d91(){const _0x12cf6d=_0x13e0f1[_0x54daa8([0x73,0x70,0x6c,0x69,0x74])](_0x54daa8([0x2e]));if(0x3!=_0x12cf6d[_0x54daa8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x29f454(_0x12cf6d[0x1]);function _0x29f454(_0x4b2bc5){const _0x539ddc=_0x587801(_0x4b2bc5);return _0x539ddc&&_0x1884a1()?_0x539ddc:null;function _0x1884a1(){const _0x59328d=_0x539ddc[_0x54daa8([0x6a,0x74,0x69])],_0x4ea10e=window[_0x54daa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59328d[_0x54daa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59328d[_0x54daa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x41d6aa={..._0x539ddc,[_0x54daa8([0x6a,0x74,0x69])]:_0x59328d[_0x54daa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59328d[_0x54daa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x41d6aa[_0x54daa8([0x76,0x63])],_0x1e96b1(_0x41d6aa)==_0x4ea10e;}}}async function _0x2ac38f(){let _0xc42a5f=!0x0;try{const _0x501300=_0x13e0f1[_0x54daa8([0x73,0x70,0x6c,0x69,0x74])](_0x54daa8([0x2e])),[_0x33715d,_0x321221,_0xa93252]=_0x501300;return _0x33383b(_0x33715d),await _0x4bbfc2(_0x33715d,_0x321221,_0xa93252),_0xc42a5f;}catch{return!0x1;}function _0x33383b(_0x3a0ecc){const _0x2405b6=_0x587801(_0x3a0ecc);_0x2405b6&&_0x2405b6[_0x54daa8([0x61,0x6c,0x67])]==_0x54daa8([0x45,0x53,0x32,0x35,0x36])||(_0xc42a5f=!0x1);}async function _0x4bbfc2(_0x143b5f,_0x38fe22,_0x32c564){const _0x55a02e=window[_0x54daa8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54daa8([0x66,0x72,0x6f,0x6d])](_0x4bbc61(_0x32c564),_0x54bb22=>_0x54bb22[_0x54daa8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7f10b=new window[(_0x54daa8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54daa8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x143b5f+_0x54daa8([0x2e])+_0x38fe22),_0x1086f1=window[_0x54daa8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54daa8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1086f1)return;const _0x5447e9=await _0x1086f1[_0x54daa8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54daa8([0x6a,0x77,0x6b]),_0x143aef,{[_0x54daa8([0x6e,0x61,0x6d,0x65])]:_0x54daa8([0x45,0x43,0x44,0x53,0x41]),[_0x54daa8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54daa8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54daa8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1086f1[_0x54daa8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54daa8([0x6e,0x61,0x6d,0x65])]:_0x54daa8([0x45,0x43,0x44,0x53,0x41]),[_0x54daa8([0x68,0x61,0x73,0x68])]:{[_0x54daa8([0x6e,0x61,0x6d,0x65])]:_0x54daa8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5447e9,_0x55a02e,_0x7f10b)||(_0xc42a5f=!0x1);}}function _0x587801(_0x3ce7d2){return _0x3ce7d2[_0x54daa8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54daa8([0x65,0x79]))?JSON[_0x54daa8([0x70,0x61,0x72,0x73,0x65])](_0x4bbc61(_0x3ce7d2)):null;}function _0x4bbc61(_0x489fb5){return window[_0x54daa8([0x61,0x74,0x6f,0x62])](_0x489fb5[_0x54daa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54daa8([0x2b]))[_0x54daa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54daa8([0x2f])));}function _0x1e96b1(_0x4f3900){let _0x37f9f6=0x1505;function _0xba7ad2(_0x460065){for(let _0x47d5f3=0x0;_0x47d5f3<_0x460065[_0x54daa8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47d5f3++){const _0x4faf12=_0x460065[_0x54daa8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x47d5f3);_0x37f9f6=(_0x37f9f6<<0x5)+_0x37f9f6+_0x4faf12,_0x37f9f6&=_0x37f9f6;}}function _0x5ee873(_0x1d0a43){Array[_0x54daa8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d0a43)?_0x1d0a43[_0x54daa8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ee873):_0x1d0a43&&typeof _0x1d0a43==_0x54daa8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54daa8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d0a43)[_0x54daa8([0x73,0x6f,0x72,0x74])]()[_0x54daa8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x449914,_0x407bfc])=>{_0xba7ad2(_0x449914),_0x5ee873(_0x407bfc);}):_0xba7ad2(window[_0x54daa8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d0a43));}return _0x5ee873(_0x4f3900),_0x37f9f6>>>0x0;}function _0x128798(_0x1b333f){return _0x1b333f[_0x54daa8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54daa8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54daa8([0x30]));}function _0x127f98(_0x141944){return _0x141944[_0x54daa8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54daa8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54daa8([0x6a,0x6f,0x69,0x6e])]('');}function _0x559a89(){}function _0x54daa8(_0x45cbd1){return _0x45cbd1['map'](_0x44afb8=>String['fromCharCode'](_0x44afb8))['join']('');}_0x512513(await _0x4241ae());}(this);}['_initSchema'](){const _0x38d276=this['editor']['model']['schema'];_0x38d276['isRegistered']('imageBlock')&&_0x38d276['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x38d276['isRegistered']('imageInline')&&_0x38d276['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x23d5fe=this['editor'];_0x23d5fe['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x23d5fe['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xbb9ab=>_0xbb9ab['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b1e7f=_0x23d5fe['commands']['get']('replaceImageSource');_0x2b1e7f&&this['listenTo'](_0x2b1e7f,'cleanupImage',(_0x37c98d,[_0x373632,_0x2aecca])=>{_0x373632['removeAttribute']('uploadcareImageId',_0x2aecca);});}['_initConfig'](){const _0x441bf0=this['editor']['config']['get']('uploadcare.uploader')||{},_0x58ad23=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1158ec(_0x5df5c9['document'],'uc-config',{..._0x441bf0,'pubkey':_0x58ad23,'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']=_0x1e878c=>{if('closeMax'==_0x1e878c)return'#uc-icon-arrow-down';},_0x5df5c9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1158ec(_0x5df5c9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5df5c9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x43cfa4=this['editor']['commands']['get']('insertImage');_0x43cfa4&&this['listenTo'](_0x43cfa4,'execute',()=>{const _0x394904=this['editor']['model']['document']['selection']['getSelectedElement']();_0x394904&&_0x394904['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x394904);});});const _0x434825=this['editor']['commands']['get']('uploadcareImageReplace');_0x434825&&this['listenTo'](_0x434825,'execute',()=>{const _0x58808b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58808b&&_0x58808b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x58808b);});});}}class tt extends _0x541ae0{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b537f){super(_0x1b537f),_0x1b537f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2cafd1['defineComponents'](_0x2cafd1);}}class ii extends _0x3009f4{constructor(_0x20eb40){super(_0x20eb40);const t=_0x20eb40['t'],_0xd55b29=this['bindTemplate'],_0x1650ea=new _0x523f58();_0x1650ea['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':[_0x1650ea,{'text':_0xd55b29['to']('imageUploadProgress',_0x200a74=>t('Loading\x20image...')+'\x20('+(_0x200a74||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 _0x3009f4{constructor(_0x1bcde7){super(_0x1bcde7);const t=_0x1bcde7['t'];this['set']('errorType',null);const _0x3a2945=new _0x3dc587(_0x1bcde7);_0x3a2945['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3a2945['withText']=!0x0,_0x3a2945['class']='ck-button-action',_0x3a2945['on']('execute',()=>{this['fire']('retry');}),_0x3a2945['bind']('isVisible')['to'](this,'errorType',_0x44a47c=>'NotFound'!==_0x44a47c);const _0x5f0184=new _0x18935c();_0x5f0184['content']=_0x525cdb,_0x5f0184['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1f4f8b=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':[_0x5f0184,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1f4f8b['to']('errorType',_0x11b6fe=>t('NotFound'!==_0x11b6fe?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3a2945]},{'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 _0x3009f4{constructor(_0x58ceca,_0x38f0c0){super(_0x58ceca);const _0x54c9de=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x38f0c0,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x54c9de['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3f7152,_0x26dbb7,_0x29ccfe){super(_0x3f7152),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3f7152),this['_errorView']=new ti(_0x3f7152),this['_editingView']=new ei(_0x3f7152,_0x29ccfe),this['_focusableView']=new _0x3009f4(_0x3f7152),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x26dbb7),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'],_0x3377b4=>{this['_addUploadcareImageEditorListeners'](_0x3377b4);});}),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'](_0x37362e,_0x12ab82){const _0x326338='uc-cloud-image-editor',_0x58b219=_0x37362e['querySelector'](_0x326338);if(_0x58b219)return _0x12ab82(_0x58b219);const _0x47eec5=new MutationObserver(_0x1ce082=>{const _0x2cdb71=_0x1ce082['filter'](_0x293070=>_0x293070['target']===_0x37362e&&_0x293070['addedNodes']['length']>0x0&&_0x293070['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x326338);_0x2cdb71['length']&&(_0x47eec5['disconnect'](),_0x12ab82(_0x2cdb71[0x0]['addedNodes'][0x0]));});_0x47eec5['observe'](_0x37362e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x142137){_0x142137['addEventListener']('apply',_0x4c3ba5=>{this['fire']('apply',{'imageSrc':_0x4c3ba5['detail']['cdnUrl']});}),_0x142137['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3a2c69(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3a79fb,_0x26042d,_0x4f7a30){super(),this['_editor']=_0x3a79fb,this['_dialog']=_0x26042d,this['_imageElement']=_0x4f7a30,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 _0x39f0ec=this['_imageElement'],_0x4cc48e=_0x39f0ec['getAttribute']('uploadcareImageId'),_0x139bb4=_0x39f0ec['getAttribute']('src');if(_0x4cc48e)await this['_loadImageInfo'](_0x4cc48e,_0x139bb4);else{if(this['_imageCache']['has'](_0x139bb4)){const _0x5e582b=this['_imageCache']['get'](_0x139bb4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e582b['url'],this['imageDimension']=_0x5e582b['dimension'],this['imageId']=_0x5e582b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x324a8c}=this['_editor'],t=_0x324a8c['t'],_0x57b4d8=new X(_0x324a8c,this['imageStatus'],this['_attributes']);_0x57b4d8['bind']('status')['to'](this,'imageStatus'),_0x57b4d8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x57b4d8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x57b4d8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x57b4d8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3db30f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x57b4d8,'position':_0x3508e7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x57b4d8['focus']();},'onHide':()=>{_0x57b4d8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x11663a=>!M(_0x11663a,_0x57b4d8['element'])}});}['_loadImageInfo'](_0x13702e,_0x464203){return j['getInfo'](_0x13702e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3f69bc=>{const {width:_0x514678,height:_0x4c8bf7}=_0x3f69bc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x464203,this['imageDimension']={'width':_0x514678,'height':_0x4c8bf7},this['imageId']=_0x13702e;})['catch'](_0x470c0c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x470c0c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4eed7d,_0x33351c){return this['_getImageAsFile'](_0x4eed7d)['then'](_0x3553a8=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x33351c['signal'],'file':_0x3553a8,'onProgress':_0x5dcbb1=>{_0x5dcbb1&&_0x5dcbb1['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5dcbb1['value']));}}))['then'](_0x452663=>{const {width:_0x19c4e3,height:_0x50dd12}=_0x452663['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x452663['cdnUrl'],this['imageDimension']={'width':_0x19c4e3,'height':_0x50dd12},this['imageId']=_0x452663['uuid'],this['imageUploadProgress']=null;const _0x3c95ee=_0x4eed7d['getAttribute']('src');this['_imageCache']['set'](_0x3c95ee,{'id':_0x452663['uuid'],'url':_0x452663['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4d33ae=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d33ae['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1cea6f,_0x4ff7bc){_0x1cea6f['on']('apply',(_0x12fb6c,_0x18dade)=>{this['_replaceImage'](_0x4ff7bc,_0x18dade['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1cea6f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1cea6f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4f9465,_0x2baf2b,_0x5a143a){const _0x45832d=this['_editor'],{width:_0x5008cb,height:_0x46360c}=F(_0x2baf2b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xef94f6,imageSources:_0x4b47ee}=C(_0x2baf2b,_0x5008cb);_0x45832d['model']['change'](_0x4e022e=>{if('$graveyard'===_0x4f9465['root']['rootName']){_0x45832d['execute']('insertImage',{'imageType':_0x4f9465['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4f9465['getAttributes']()),'uploadcareImageId':_0x5a143a,'src':_0xef94f6,'sources':_0x4b47ee,'width':_0x5008cb,'height':_0x46360c}});const _0x1c107d=_0x4f9465['getChildren']();_0x4f9465=_0x45832d['model']['document']['selection']['getSelectedElement']();for(const _0x534512 of _0x1c107d)_0x4e022e['append'](_0x4e022e['cloneElement'](_0x534512),_0x4f9465);}else _0x4e022e['setSelection'](_0x4f9465,'on'),_0x45832d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4f9465['getAttributes']()),'uploadcareImageId':_0x5a143a,'src':_0xef94f6,'sources':_0x4b47ee,'width':_0x5008cb,'height':_0x46360c},_0x4f9465);_0x4e022e['setSelection'](_0x4f9465,'on');});}async['_getImageAsFile'](_0x4aac65){const _0xacad13=_0x5df5c9['window'],_0x5c3811=_0x5df5c9['document']['location']['href'],_0x28edd0=new _0xacad13['URL'](_0x4aac65['getAttribute']('src'),_0x5c3811);if('data:'===_0x28edd0['protocol']){const _0x33fc24=_0x28edd0['href']['split'](','),_0x5ead6c=_0x33fc24[0x0]['match'](/:(.*?);/)[0x1],_0x8ccb25=_0x5ead6c['split']('/')[0x1],_0x182bea=_0xacad13['atob'](_0x33fc24[_0x33fc24['length']-0x1]);let _0x87c3e1=_0x182bea['length'];const _0x132202=new _0xacad13['Uint8Array'](_0x87c3e1);for(;_0x87c3e1--;)_0x132202[_0x87c3e1]=_0x182bea['charCodeAt'](_0x87c3e1);return new _0xacad13['File']([_0x132202],'image.'+_0x8ccb25,{'type':_0x5ead6c});}const _0x5f4bca=_0x28edd0['href']['split']('/'),_0x1497f5=_0x5f4bca[_0x5f4bca['length']-0x1],_0x2dde80=_0x1497f5['split']('.')[0x1];return _0xacad13['fetch'](_0x28edd0['href'])['then'](_0x5015d0=>_0x5015d0['clone']()['blob']())['then'](_0x12c3b0=>new _0xacad13['File']([_0x12c3b0],_0x1497f5,{'type':'image/'+_0x2dde80}));}}class N extends _0x402c9f{['imageEditController'];static get['requires'](){return[_0x24bfa4];}['_isEditable'];constructor(_0x1fc4e4){super(_0x1fc4e4),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x7c0d56){const _0x6d5d1d=R(_0x7c0d56);return _0x55f721=>!(!_0x55f721||!_0x55f721['is']('element','imageBlock')&&!_0x55f721['is']('element','imageInline'))&&(!!_0x55f721['hasAttribute']('uploadcareImageId')||!!_0x55f721['hasAttribute']('src')&&_0x6d5d1d(_0x55f721['getAttribute']('src')));}(_0x1fc4e4['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2990b0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2990b0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xdcb4ef=this['editor']['model']['document']['selection']['getSelectedElement']();_0xdcb4ef&&(_0xdcb4ef['is']('element','imageBlock')||_0xdcb4ef['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x24bfa4),_0xdcb4ef),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x402c9f{['refresh'](){const _0x3fe7d9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3fe7d9&&(_0x3fe7d9['is']('element','imageBlock')||_0x3fe7d9['is']('element','imageInline')));}['execute'](_0x13a48a){const _0x5f0f50=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4fc65d=>{_0x4fc65d['setAttributes'](_0x13a48a,_0x5f0f50),_0x4fc65d['removeAttribute']('srcset',_0x5f0f50),_0x4fc65d['removeAttribute']('sizes',_0x5f0f50);});}}class m extends _0x541ae0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4ef364,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3c736b}=this;_0x3c736b['commands']['add']('uploadcareImageEdit',new N(_0x3c736b)),_0x3c736b['commands']['add']('uploadcareImageReplace',new O(_0x3c736b));}}class g extends _0x541ae0{['_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 _0x29c8f1=this['editor'];_0x29c8f1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3fe290=>{const _0x272acb=_0x29c8f1['commands']['get']('uploadcareImageEdit'),_0x1d1e50=new _0x3dc587(_0x3fe290),t=_0x3fe290['t'];return _0x1d1e50['set']({'icon':_0x3db30f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1d1e50['bind']('isEnabled')['to'](_0x272acb),_0x1d1e50['bind']('isOn')['to'](_0x272acb,'isActive'),this['listenTo'](_0x1d1e50,'execute',()=>{_0x29c8f1['execute']('uploadcareImageEdit'),_0x29c8f1['editing']['view']['focus']();}),_0x1d1e50;}),this['_initConfig']();}['_initConfig'](){const _0x985ec3=_0x1158ec(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x985ec3),this['listenTo'](this['editor'],'destroy',()=>{_0x985ec3['remove']();});}}class et extends _0x541ae0{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,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x4e90a5,Command as _0x5f1d1f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xefbf34,IconGooglePhotos as _0x5ca237,IconGoogleDrive as _0x4ad234,IconFacebook as _0x26ec44,IconDropbox as _0x13f295,IconUploadcareLink as _0x24a875,IconUploadcareImageUpload as _0x44ac62,IconError as _0x3480a4,IconUploadcareImageEdit as _0x2e3c93}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x566edc,MenuBarMenuListItemButtonView as _0x113034,View as _0x3d5001,FocusCycler as _0x3dff4b,Dialog as _0x1e0111,DialogViewPosition as _0x5a2fae,SpinnerView as _0x5ae89b,IconView as _0x72e258,Notification as _0x56b5e2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x40aa83,DomEmitterMixin as _0x1b9d30,global as _0x1a5972,getAncestors as _0x1f8380,ObservableMixin as _0x5d37c8,uid as _0x21e5c6,createElement as _0xef2b99}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x49458e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x20b2c0,info as _0x290f71}from'@uploadcare/upload-client';import*as _0x2fc93b from'@uploadcare/file-uploader';var i=function(_0x4d9ba4){return _0x4d9ba4['Local']='local',_0x4d9ba4['URL']='url',_0x4d9ba4['Dropbox']='dropbox',_0x4d9ba4['GDrive']='gdrive',_0x4d9ba4['Facebook']='facebook',_0x4d9ba4['GPhotos']='gphotos',_0x4d9ba4['OneDrive']='onedrive',_0x4d9ba4;}({});function _(_0x3d0b6b,_0x2f5317,_0x5926da){const t=_0x3d0b6b['t'],_0x5a1d64=_0x3d0b6b['t'];switch(_0x2f5317){case i['Local']:return{'text':_0x5a1d64('Insert'===_0x5926da?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5a1d64('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5926da?_0x5a1d64('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5a1d64('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2f5317;}}class e extends _0x4e90a5{['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 _0x4dd69d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b33a9;for(const _0x362e52 in _0x4dd69d){const _0x36bef8=_0x362e52,_0xe54880=_0x4dd69d[_0x36bef8];if('uploadcareLicenseKeyValid'==_0xe54880||'uploadcareLicenseKeyInvalid'==_0xe54880||'uploadcareLicenseKeyExpired'==_0xe54880||'uploadcareLicenseKeyDomainLimit'==_0xe54880||'uploadcareLicenseKeyNotAllowed'==_0xe54880||'uploadcareLicenseKeyEvaluationLimit'==_0xe54880||'uploadcareLicenseKeyTrialLimit'==_0xe54880||'uploadcareLicenseKeyUsageLimit'==_0xe54880){delete _0x4dd69d[_0x36bef8],_0x2b33a9=_0xe54880,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x96666c}=this,_0x21c20a=_0x96666c['commands']['get']('uploadcare');if(!_0x21c20a)return;const _0x4fb71b=this['_normalizeConfigSourceList'](_0x96666c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x25be8c,_0x185144)=>{const _0x36b135=this['_getIntegrationKey'](_0x185144['type']);return _0x25be8c[_0x36b135]||(_0x25be8c[_0x36b135]=[]),_0x25be8c[_0x36b135]['push'](_0x185144),_0x25be8c;},{});_0x96666c['plugins']['has']('ImageInsertUI')&&_0x96666c['commands']['get']('uploadcare')&&Object['entries'](_0x4fb71b)['forEach'](([_0x2050f7,_0x3d7749])=>{_0x96666c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2050f7,'observable':()=>_0x21c20a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3d7749),'formViewCreator':()=>this['_createDropdownButtons'](_0x3d7749),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3d7749),'override':'assetManager'!==_0x2050f7});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x131933){const {locale:_0x57d460}=this['editor'];return _0x131933['map'](_0x198a07=>{const _0x4c75ef=_(_0x57d460,_0x198a07,'Insert');switch(_0x198a07){case i['Local']:return{'icon':_0x44ac62,'type':i['Local'],..._0x4c75ef};case i['URL']:return{'icon':_0x24a875,'type':i['URL'],..._0x4c75ef};case i['Dropbox']:return{'icon':_0x13f295,'type':i['Dropbox'],..._0x4c75ef};case i['Facebook']:return{'icon':_0x26ec44,'type':i['Facebook'],..._0x4c75ef};case i['GDrive']:return{'icon':_0x4ad234,'type':i['GDrive'],..._0x4c75ef};case i['GPhotos']:return{'icon':_0x5ca237,'type':i['GPhotos'],..._0x4c75ef};case i['OneDrive']:return{'icon':_0xefbf34,'type':i['OneDrive'],..._0x4c75ef};}});}['_getIntegrationKey'](_0x1dabcf){switch(_0x1dabcf){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4e4c3e,_0x18b7ef){const _0x1be268=this['editor'],_0x443bb7=new _0x4e4c3e(_0x1be268['locale']),_0x4dfd1c=_0x1be268['commands']['get']('uploadcare');return _0x443bb7['bind']('isEnabled')['to'](_0x4dfd1c),_0x443bb7['on']('execute',()=>{_0x4dfd1c['execute'](_0x18b7ef);}),_0x443bb7;}['_createToolbarButton'](_0x27d310){const {locale:_0x18ecaf}=this['editor'],_0x4908f3=this['editor']['plugins']['get']('ImageInsertUI'),_0x23b268=_0x27d310[0x0],_0x11be6e=this['_createButton'](_0x566edc,_0x23b268['type']);return _0x11be6e['icon']=_0x23b268['icon'],_0x11be6e['bind']('label')['to'](_0x4908f3,'isImageSelected',_0x2d6746=>_(_0x18ecaf,_0x23b268['type'],_0x2d6746?'Replace':'Insert')['text']),_0x11be6e['tooltip']=!0x0,_0x11be6e;}['_createDropdownButtons'](_0x54dd29){const {locale:_0xc3374e}=this['editor'],_0xa96b90=this['editor']['plugins']['get']('ImageInsertUI');return _0x54dd29['map'](_0x4363c6=>{const _0xa78a8d=this['_createButton'](_0x566edc,_0x4363c6['type']);return _0xa78a8d['withText']=!0x0,_0xa78a8d['icon']=_0x4363c6['icon'],_0xa78a8d['bind']('label')['to'](_0xa96b90,'isImageSelected',_0x1620f8=>_(_0xc3374e,_0x4363c6['type'],_0x1620f8?'Replace':'Insert')['text']),_0xa78a8d;});}['_createMenuBarButtons'](_0x41133b){return _0x41133b['map'](_0x5c94e9=>{const _0x561bd8=this['_createButton'](_0x113034,_0x5c94e9['type']);return _0x561bd8['icon']=_0x5c94e9['icon'],_0x561bd8['label']=_0x5c94e9['shortText'],_0x561bd8;});}}class F extends _0x3d5001{['focusTracker'];['focusCycler'];constructor(_0x1e8f7f){super(_0x1e8f7f),this['focusTracker']=new _0x40aa83(),this['focusCycler']=new _0x3dff4b({'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(_0x5ccbfd,_0x50d225){super(_0x5ccbfd),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-'+_0x50d225}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4b8489,_0x47f212){const _0x173bb4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x35fb92=>_0x35fb92<=_0x47f212)['map'](_0x240ada=>_0x4b8489['replace'](/\/$/,'')+'/-/resize/'+_0x240ada+'x/\x20'+_0x240ada+'w');return{'imageFallbackUrl':_0x4b8489,'imageSources':[{'srcset':_0x173bb4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x47f212+'px)\x20100vw,\x20'+_0x47f212+'px','type':'image/webp'}]};}function S(_0x3837ea,_0x2ce254,_0xddc663){const _0x5e4296=_0x3837ea['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5e4296?parseInt(_0x5e4296[0x1],0xa):_0x2ce254,'height':_0x5e4296?parseInt(_0x5e4296[0x2],0xa):_0xddc663};}function p(_0x582cd0,_0x193df7){const _0xd9c8da=new(_0x1b9d30())(),_0x2abad1=_0x582cd0['plugins']['get']('ImageUtils'),_0x454b43=_0x582cd0['editing']['mapper']['toViewElement'](_0x193df7),_0x3a6ac5=_0x2abad1['findViewImgElement'](_0x454b43),_0x4686b6=_0x582cd0['editing']['view']['domConverter']['viewToDom'](_0x3a6ac5),_0x23ce9c=_0x193df7['getAttribute']('width'),_0x260f8d=_0x193df7['getAttribute']('height'),_0x1a81cb='image-processing';_0x582cd0['editing']['view']['change'](_0xcaa40e=>{_0xcaa40e['addClass'](_0x1a81cb,_0x454b43),_0xcaa40e['setStyle']('aspect-ratio',_0x23ce9c+'/'+_0x260f8d,_0x3a6ac5);}),_0xd9c8da['listenTo'](_0x4686b6,'load',()=>{_0xd9c8da['stopListening'](_0x4686b6,'load'),_0x582cd0['editing']['view']['change'](_0x3fc5c4=>{_0x3fc5c4['removeClass'](_0x1a81cb,_0x454b43),_0x3fc5c4['removeStyle']('aspect-ratio',_0x3a6ac5);});});}function G(_0x353035){if(Array['isArray'](_0x353035)){const _0x2f3a44=_0x353035['map'](G);return _0x4e180a=>_0x2f3a44['some'](_0x50a79f=>_0x50a79f(_0x4e180a));}if('origin'==_0x353035){const _0x5e4354=_0x1a5972['window']['location']['origin'];return _0xf6ea32=>new URL(_0xf6ea32,_0x1a5972['document']['baseURI'])['origin']==_0x5e4354;}return'function'==typeof _0x353035?_0x353035:_0x353035 instanceof RegExp?_0x4f1547=>!(!_0x4f1547['match'](_0x353035)&&!_0x4f1547['replace'](/^https?:\/\//,'')['match'](_0x353035)):()=>!0x1;}function A(_0x1d8020,_0x5f41fc){return _0x1f8380(_0x1d8020['target'])['includes'](_0x5f41fc);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d37c8(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2c8af6,_0x224ffb,_0x3f0cc3){super(),this['_editor']=_0x2c8af6,this['_editing']=_0x224ffb,this['_dialog']=_0x2c8af6['plugins']['get'](_0x1e0111),this['_api']=_0x224ffb['ctxElement']['getAPI'](),this['_type']=_0x3f0cc3,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:_0x4558bd,model:_0xbbb3f7}=this['_editor'],_0x1d43e6=_0xbbb3f7['document']['selection']['getSelectedElement'](),_0x28034f=_0x1d43e6&&(_0x1d43e6['is']('element','imageBlock')||_0x1d43e6['is']('element','imageInline'));this['_formView']=new x(_0x4558bd,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x44ac62,'title':_(_0x4558bd,this['_type'],_0x28034f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5a2fae['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3b0225=>!A(_0x3b0225,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x597834}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2d34a4=>{const _0x4ca8c0=_0x597834['length'];for(const _0x3fb01b of _0x597834){const _0xaf7f70=_0x3fb01b===_0x597834[_0x4ca8c0-0x1],{cdnUrl:_0x1710a4,fileInfo:_0xfa90f1}=_0x3fb01b;if(!_0x1710a4||!_0xfa90f1)continue;const {width:_0x2cfa69,height:_0x59c61a}=_0xfa90f1['imageInfo'],_0x50bfe8=S(_0x1710a4,_0x2cfa69,_0x59c61a),_0x4ed66d=C(_0x1710a4,_0x50bfe8['width']),_0x2f8179={'id':_0xfa90f1['uuid'],'type':'image','attributes':{'imageDimension':_0x50bfe8,..._0x4ed66d}};this['_insertAsset'](_0x2f8179,_0xaf7f70,_0x2d34a4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1267e7=>{'idle'===_0x1267e7['detail']['status']&&!_0x1267e7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3b1776,_0xb5fbba,_0x231b0a){const _0x58c9a2=this['_editor']['model']['document']['selection'],_0x1beef2=_0x58c9a2['getSelectedElement'](),_0x59e22e=!(!_0x1beef2||!_0x1beef2['is']('element','imageInline'));_0x231b0a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3b1776,_0x59e22e),_0xb5fbba||_0x231b0a['setSelection'](_0x58c9a2['getLastPosition']());}['_insertImage'](_0x1d2dcb,_0x19aed4){const _0x4a1f44=this['_editor'],{imageDimension:_0x2cc1c8,imageFallbackUrl:_0xbc969d,imageSources:_0x54e983}=_0x1d2dcb['attributes'];_0x4a1f44['execute']('insertImage',{'imageType':_0x19aed4?'imageInline':null,'source':{'uploadcareImageId':_0x1d2dcb['id'],'src':_0xbc969d,'sources':_0x54e983,..._0x2cc1c8}});}}class w extends _0x5f1d1f{['_editing'];['_controller']=null;static get['requires'](){return[_0x1e0111,o];}constructor(_0x1fcb54){super(_0x1fcb54),this['_editing']=_0x1fcb54['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x590244){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x590244);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x388d2c,..._0x23cf86}){return _0x20b2c0(_0x388d2c,_0x23cf86);}static['getInfo'](_0x27c599,_0x261227){return _0x290f71(_0x27c599,_0x261227);}}class f extends _0x4e90a5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x49458e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3bedca=this['editor'];if(!!!_0x3bedca['config']['get']('uploadcare'))return;_0x3bedca['plugins']['get'](_0x49458e)['createUploadAdapter']=_0x565726=>new k(_0x565726,_0x3bedca),_0x3bedca['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x14b272,{imageElement:_0x3e01c1,data:_0x5e4700})=>{_0x3bedca['model']['change'](_0x723e22=>{_0x723e22['setAttribute']('uploadcareImageId',_0x5e4700['uploadcareImageId'],_0x3e01c1);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x28d1ac,_0x11bff9){this['loader']=_0x28d1ac,this['editor']=_0x11bff9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x59dba5=await this['loader']['file'];return j['upload']({'file':_0x59dba5,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x28d03b=>{_0x28d03b&&_0x28d03b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x28d03b['value']);}})['then'](async _0x49a3af=>{const {imageFallbackUrl:_0x2a0d74,imageSources:_0x40ea65}=C(_0x49a3af['cdnUrl'],_0x49a3af['imageInfo']['width']);return{'uploadcareImageId':_0x49a3af['uuid'],'default':_0x2a0d74,'sources':_0x40ea65};})['catch'](()=>{const _0x3ddcbc=t('Cannot\x20upload\x20file:')+('\x20'+_0x59dba5['name']+'.');return Promise['reject'](_0x3ddcbc);});}['abort'](){this['controller']['abort']();}}class o extends _0x4e90a5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1e0111];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xa89ff9){super(_0xa89ff9),this['ucContextId']=_0x21e5c6();}['init'](){const _0x456b9a=this['editor'];_0x456b9a['commands']['add']('uploadcare',new w(_0x456b9a));}['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 _0x414a6b=_0x1a5972['document']['querySelector']('input[uploadcare-file-input]');_0x414a6b&&_0x414a6b['remove']();}),async function(_0x20f052){const _0x462146=_0x2cdbc6([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]),_0x1ca9e2=0x3d8d0df,_0x58484b=0x3dfa5e7^_0x1ca9e2,_0xe3da73=window[_0x2cdbc6([0x44,0x61,0x74,0x65])][_0x2cdbc6([0x6e,0x6f,0x77])](),_0x3367b3=_0x20f052[_0x2cdbc6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59c1f2=new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37d521=>{_0x3367b3[_0x2cdbc6([0x6f,0x6e,0x63,0x65])](_0x2cdbc6([0x72,0x65,0x61,0x64,0x79]),_0x37d521);}),_0x47addd={[_0x2cdbc6([0x6b,0x74,0x79])]:_0x2cdbc6([0x45,0x43]),[_0x2cdbc6([0x75,0x73,0x65])]:_0x2cdbc6([0x73,0x69,0x67]),[_0x2cdbc6([0x63,0x72,0x76])]:_0x2cdbc6([0x50,0x2d,0x32,0x35,0x36]),[_0x2cdbc6([0x78])]:_0x2cdbc6([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]),[_0x2cdbc6([0x79])]:_0x2cdbc6([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]),[_0x2cdbc6([0x61,0x6c,0x67])]:_0x2cdbc6([0x45,0x53,0x32,0x35,0x36])},_0x59e972=_0x3367b3[_0x2cdbc6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cdbc6([0x67,0x65,0x74])](_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e5e1c(){let _0x19d645,_0x463a89=null,_0x1950b4=null;try{if(_0x59e972==_0x2cdbc6([0x47,0x50,0x4c]))return _0x2cdbc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19d645=_0x27e5c4(),!_0x19d645)return _0x2cdbc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19d645[_0x2cdbc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1950b4=_0x2ab04a(_0x19d645[_0x2cdbc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19d645[_0x2cdbc6([0x6a,0x74,0x69])])),await _0x38f2ef()?_0x512642()?_0x85e9bd()?_0x2cdbc6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3acad9()?(_0x19d645[_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cdbc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x463a89=_0xb1f36f(_0x2cdbc6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19d645[_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cdbc6([0x74,0x72,0x69,0x61,0x6c])&&(_0x463a89=_0xb1f36f(_0x2cdbc6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x575828()):_0x2cdbc6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cdbc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cdbc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2cdbc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x85e9bd(){const _0xc0d0ab=[_0x2cdbc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cdbc6([0x74,0x72,0x69,0x61,0x6c])][_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19d645[_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe3da73/0x3e8:0xe10*_0x58484b;return _0x19d645[_0x2cdbc6([0x65,0x78,0x70])]<_0xc0d0ab;}function _0x512642(){const _0x2109f3=_0x19d645[_0x2cdbc6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2109f3&&(!!_0x2109f3[_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cdbc6([0x2a]))||!!_0x2109f3[_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cdbc6([0x55,0x50,0x4c,0x43])));}function _0x3acad9(){const _0x67962b=_0x19d645[_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x67962b||0x0==_0x67962b[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1756ee}=new URL(window[_0x2cdbc6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x67962b[_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1756ee))return!0x0;const _0xd66a3=_0x1756ee[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])](_0x2cdbc6([0x2e]));return _0x67962b[_0x2cdbc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41cdee=>_0x41cdee[_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cdbc6([0x2a])))[_0x2cdbc6([0x6d,0x61,0x70])](_0x119500=>_0x119500[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])](_0x2cdbc6([0x2e])))[_0x2cdbc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c5844=>_0x1c5844[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd66a3[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cdbc6([0x6d,0x61,0x70])](_0xc3b9f1=>Array(_0xd66a3[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc3b9f1[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cdbc6([0x66,0x69,0x6c,0x6c])](_0xc3b9f1[0x0]===_0x2cdbc6([0x2a])?_0x2cdbc6([0x2a]):'')[_0x2cdbc6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc3b9f1))[_0x2cdbc6([0x73,0x6f,0x6d,0x65])](_0x7e9c87=>_0xd66a3[_0x2cdbc6([0x65,0x76,0x65,0x72,0x79])]((_0x4d84a8,_0x1b4648)=>_0x7e9c87[_0x1b4648]===_0x4d84a8||_0x7e9c87[_0x1b4648]===_0x2cdbc6([0x2a])));}function _0x575828(){return _0x463a89&&_0x1950b4?new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54fb43,_0x2b7265)=>{_0x463a89[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x54fb43,_0x2b7265),_0x1950b4[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x53f922=>{_0x53f922!=_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64])&&_0x54fb43(_0x53f922);},_0x2b7265);}):_0x463a89||_0x1950b4||_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ab04a(_0x33d974,_0xd9561){return new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x557344=>{if(_0x55d1f3())return _0x557344(_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64]));_0xc55e4e(),_0x3367b3[_0x2cdbc6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cdbc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54de2d=!0x1;const _0x510ea1=_0x21e5c6();function _0x58b3b8(_0x34f82f){return!!_0x34f82f&&(typeof _0x34f82f===_0x2cdbc6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x34f82f===_0x2cdbc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x34f82f[_0x2cdbc6([0x74,0x68,0x65,0x6e])]===_0x2cdbc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x34f82f[_0x2cdbc6([0x63,0x61,0x74,0x63,0x68])]===_0x2cdbc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd2bd57(_0x105579){_0x36d412(_0x105579)[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x36916e=>{if(!_0x36916e||_0x36916e[_0x2cdbc6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cdbc6([0x6f,0x6b]))return _0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x898364(_0x2e82dc(_0x510ea1+_0xd9561))!=_0x36916e[_0x2cdbc6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x54fa79=>(_0x1e4fc4(),_0x54fa79),()=>{const _0x47b8bd=_0x4c3c94();return null==_0x47b8bd?(_0x1e4fc4(),_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64])):_0x2cdbc6(_0xe3da73-_0x47b8bd>(0x27d454df^_0x1ca9e2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x557344)[_0x2cdbc6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x557344(_0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1fddef=0x3ee3e5f^_0x1ca9e2;function _0x1e4fc4(){const _0xaa2244=_0x2cdbc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x898364(_0x2e82dc(_0x33d974)),_0x4e4c2b=_0x443399(_0x898364(window[_0x2cdbc6([0x4d,0x61,0x74,0x68])][_0x2cdbc6([0x63,0x65,0x69,0x6c])](_0xe3da73/_0x1fddef)));window[_0x2cdbc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cdbc6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xaa2244,_0x4e4c2b);}function _0x4c3c94(){const _0x286565=_0x2cdbc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x898364(_0x2e82dc(_0x33d974)),_0xee2c26=window[_0x2cdbc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cdbc6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x286565);return _0xee2c26?window[_0x2cdbc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x443399(_0xee2c26),0x10)*_0x1fddef:null;}function _0x36d412(_0x455595){return new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cdd74,_0x41c127)=>{_0x455595[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x2cdd74,_0x41c127),window[_0x2cdbc6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x41c127,0x3d9041f^_0x1ca9e2);});}}_0x3367b3[_0x2cdbc6([0x6f,0x6e])](_0x2cdbc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb271cf,_0x1f5d87)=>{if(_0x1f5d87[0x0]!=_0x33d974)return _0x557344(_0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f5d87[0x1]={..._0x1f5d87[0x1],[_0x2cdbc6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x510ea1};},{[_0x2cdbc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cdbc6([0x68,0x69,0x67,0x68])}),_0x3367b3[_0x2cdbc6([0x6f,0x6e])](_0x2cdbc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13a24e=>{_0x58b3b8(_0x13a24e[_0x2cdbc6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54de2d=!0x0,_0xd2bd57(_0x13a24e[_0x2cdbc6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cdbc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cdbc6([0x6c,0x6f,0x77])}),_0x59c1f2[_0x2cdbc6([0x74,0x68,0x65,0x6e])](()=>{_0x54de2d||_0x557344(_0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55d1f3(){return _0x3367b3[_0x2cdbc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cdbc6([0x76,0x69,0x65,0x77])][_0x2cdbc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cdbc6([0x61,0x75,0x74,0x6f]);}function _0xc55e4e(){_0x3367b3[_0x2cdbc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cdbc6([0x76,0x69,0x65,0x77])][_0x2cdbc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cdbc6([0x61,0x75,0x74,0x6f]);}}function _0xb1f36f(_0x5c46bf){const _0x698305=[new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47c401=>setTimeout(_0x47c401,0x3d1ee13^_0x1ca9e2)),_0x59c1f2[_0x2cdbc6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x522295=>{let _0x55dc16=0x0;_0x3367b3[_0x2cdbc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cdbc6([0x6f,0x6e])](_0x2cdbc6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e8d3f,_0x1b3983)=>{_0x1b3983[0x0][_0x2cdbc6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55dc16++,_0x55dc16==(0x3d8d127^_0x1ca9e2)&&(_0x522295(),_0x4e8d3f[_0x2cdbc6([0x6f,0x66,0x66])]());});}))];return window[_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cdbc6([0x72,0x61,0x63,0x65])](_0x698305)[_0x2cdbc6([0x74,0x68,0x65,0x6e])](()=>_0x5c46bf);}async function _0x42e3b1(){await _0x59c1f2,_0x3367b3[_0x2cdbc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cdbc6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15c4e4,_0x3367b3[_0x2cdbc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cdbc6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15c4e4,_0x3367b3[_0x2cdbc6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cdbc6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c7299(_0x2df966){const _0x595211=_0x1706e8();_0x3367b3[_0x595211]=_0x2cdbc6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2df966,_0x2df966!=_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64])&&_0x42e3b1();}function _0x1706e8(){const _0x173ba9=window[_0x2cdbc6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cdbc6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cdbc6([0x6e,0x6f,0x77])]())[_0x2cdbc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cdbc6([0x2e]),'');let _0x4fa80c=_0x2cdbc6([0x52]);for(let _0x72ef02=0x0;_0x72ef02<_0x173ba9[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x72ef02+=0x2){let _0x2df548=window[_0x2cdbc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x173ba9[_0x2cdbc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x72ef02,_0x72ef02+0x2));_0x2df548>=_0x462146[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2df548-=_0x462146[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4fa80c+=_0x462146[_0x2df548];}return _0x4fa80c;}function _0x27e5c4(){const _0xb82e62=_0x59e972[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])](_0x2cdbc6([0x2e]));if(0x3!=_0xb82e62[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ea30a(_0xb82e62[0x1]);function _0x1ea30a(_0x28f80d){const _0x88348a=_0x45cf9f(_0x28f80d);return _0x88348a&&_0x26b8b7()?_0x88348a:null;function _0x26b8b7(){const _0x193862=_0x88348a[_0x2cdbc6([0x6a,0x74,0x69])],_0x2147ed=window[_0x2cdbc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x193862[_0x2cdbc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x193862[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd7b65f={..._0x88348a,[_0x2cdbc6([0x6a,0x74,0x69])]:_0x193862[_0x2cdbc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x193862[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd7b65f[_0x2cdbc6([0x76,0x63])],_0x2e82dc(_0xd7b65f)==_0x2147ed;}}}async function _0x38f2ef(){let _0x4d8e00=!0x0;try{const _0x38cc6e=_0x59e972[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])](_0x2cdbc6([0x2e])),[_0x3333ba,_0x361232,_0x20926a]=_0x38cc6e;return _0x4fbdae(_0x3333ba),await _0x44cdc1(_0x3333ba,_0x361232,_0x20926a),_0x4d8e00;}catch{return!0x1;}function _0x4fbdae(_0x1af6c1){const _0x4ad5ae=_0x45cf9f(_0x1af6c1);_0x4ad5ae&&_0x4ad5ae[_0x2cdbc6([0x61,0x6c,0x67])]==_0x2cdbc6([0x45,0x53,0x32,0x35,0x36])||(_0x4d8e00=!0x1);}async function _0x44cdc1(_0xaddb3b,_0x5ac705,_0x1f5be1){const _0x3607f6=window[_0x2cdbc6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cdbc6([0x66,0x72,0x6f,0x6d])](_0x53559e(_0x1f5be1),_0x1ad5d0=>_0x1ad5d0[_0x2cdbc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30deca=new window[(_0x2cdbc6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cdbc6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xaddb3b+_0x2cdbc6([0x2e])+_0x5ac705),_0x142e15=window[_0x2cdbc6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cdbc6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x142e15)return;const _0x3c13e3=await _0x142e15[_0x2cdbc6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cdbc6([0x6a,0x77,0x6b]),_0x47addd,{[_0x2cdbc6([0x6e,0x61,0x6d,0x65])]:_0x2cdbc6([0x45,0x43,0x44,0x53,0x41]),[_0x2cdbc6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cdbc6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cdbc6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x142e15[_0x2cdbc6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cdbc6([0x6e,0x61,0x6d,0x65])]:_0x2cdbc6([0x45,0x43,0x44,0x53,0x41]),[_0x2cdbc6([0x68,0x61,0x73,0x68])]:{[_0x2cdbc6([0x6e,0x61,0x6d,0x65])]:_0x2cdbc6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3c13e3,_0x3607f6,_0x30deca)||(_0x4d8e00=!0x1);}}function _0x45cf9f(_0x349d80){return _0x349d80[_0x2cdbc6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cdbc6([0x65,0x79]))?JSON[_0x2cdbc6([0x70,0x61,0x72,0x73,0x65])](_0x53559e(_0x349d80)):null;}function _0x53559e(_0x56914d){return window[_0x2cdbc6([0x61,0x74,0x6f,0x62])](_0x56914d[_0x2cdbc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cdbc6([0x2b]))[_0x2cdbc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cdbc6([0x2f])));}function _0x2e82dc(_0x48b922){let _0x2a6164=0x1505;function _0x1d5e83(_0x131181){for(let _0x3142f9=0x0;_0x3142f9<_0x131181[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3142f9++){const _0x434570=_0x131181[_0x2cdbc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3142f9);_0x2a6164=(_0x2a6164<<0x5)+_0x2a6164+_0x434570,_0x2a6164&=_0x2a6164;}}function _0xdb76ae(_0x4f6332){Array[_0x2cdbc6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f6332)?_0x4f6332[_0x2cdbc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xdb76ae):_0x4f6332&&typeof _0x4f6332==_0x2cdbc6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cdbc6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f6332)[_0x2cdbc6([0x73,0x6f,0x72,0x74])]()[_0x2cdbc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x417852,_0xa1a708])=>{_0x1d5e83(_0x417852),_0xdb76ae(_0xa1a708);}):_0x1d5e83(window[_0x2cdbc6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f6332));}return _0xdb76ae(_0x48b922),_0x2a6164>>>0x0;}function _0x898364(_0x4a798d){return _0x4a798d[_0x2cdbc6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cdbc6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cdbc6([0x30]));}function _0x443399(_0x27fa0c){return _0x27fa0c[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cdbc6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cdbc6([0x6a,0x6f,0x69,0x6e])]('');}function _0x15c4e4(){}function _0x2cdbc6(_0x35a2ae){return _0x35a2ae['map'](_0x1562ee=>String['fromCharCode'](_0x1562ee))['join']('');}_0x1c7299(await _0x5e5e1c());}(this);}['_initSchema'](){const _0x41934d=this['editor']['model']['schema'];_0x41934d['isRegistered']('imageBlock')&&_0x41934d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x41934d['isRegistered']('imageInline')&&_0x41934d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5b32eb=this['editor'];_0x5b32eb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5b32eb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1c319c=>_0x1c319c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1db1ad=_0x5b32eb['commands']['get']('replaceImageSource');_0x1db1ad&&this['listenTo'](_0x1db1ad,'cleanupImage',(_0x351b40,[_0x98ccbe,_0x505c4b])=>{_0x98ccbe['removeAttribute']('uploadcareImageId',_0x505c4b);});}['_initConfig'](){const _0x316bfe=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4d41f4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xef2b99(_0x1a5972['document'],'uc-config',{..._0x316bfe,'pubkey':_0x4d41f4,'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']=_0x55bd48=>{if('closeMax'==_0x55bd48)return'#uc-icon-arrow-down';},_0x1a5972['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xef2b99(_0x1a5972['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1a5972['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5987f4=this['editor']['commands']['get']('insertImage');_0x5987f4&&this['listenTo'](_0x5987f4,'execute',()=>{const _0x54b742=this['editor']['model']['document']['selection']['getSelectedElement']();_0x54b742&&_0x54b742['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x54b742);});});const _0x2900ce=this['editor']['commands']['get']('uploadcareImageReplace');_0x2900ce&&this['listenTo'](_0x2900ce,'execute',()=>{const _0xdfeae1=this['editor']['model']['document']['selection']['getSelectedElement']();_0xdfeae1&&_0xdfeae1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xdfeae1);});});}}class tt extends _0x4e90a5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f84db){super(_0x1f84db),_0x1f84db['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2fc93b['defineComponents'](_0x2fc93b);}}class ii extends _0x3d5001{constructor(_0x80e0a8){super(_0x80e0a8);const t=_0x80e0a8['t'],_0x3715da=this['bindTemplate'],_0x44e4ae=new _0x5ae89b();_0x44e4ae['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':[_0x44e4ae,{'text':_0x3715da['to']('imageUploadProgress',_0x595758=>t('Loading\x20image...')+'\x20('+(_0x595758||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 _0x3d5001{constructor(_0x5df11e){super(_0x5df11e);const t=_0x5df11e['t'];this['set']('errorType',null);const _0x9c216b=new _0x566edc(_0x5df11e);_0x9c216b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x9c216b['withText']=!0x0,_0x9c216b['class']='ck-button-action',_0x9c216b['on']('execute',()=>{this['fire']('retry');}),_0x9c216b['bind']('isVisible')['to'](this,'errorType',_0x1f303=>'NotFound'!==_0x1f303);const _0x1cd938=new _0x72e258();_0x1cd938['content']=_0x3480a4,_0x1cd938['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x41bbc9=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':[_0x1cd938,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x41bbc9['to']('errorType',_0x5624f9=>t('NotFound'!==_0x5624f9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x9c216b]},{'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 _0x3d5001{constructor(_0x5dd1b6,_0x40ebd3){super(_0x5dd1b6);const _0x14ebb6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x40ebd3,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x14ebb6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1add45,_0x2364d5,_0x449f7d){super(_0x1add45),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1add45),this['_errorView']=new ti(_0x1add45),this['_editingView']=new ei(_0x1add45,_0x449f7d),this['_focusableView']=new _0x3d5001(_0x1add45),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2364d5),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'],_0x9866cd=>{this['_addUploadcareImageEditorListeners'](_0x9866cd);});}),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'](_0x1528e4,_0x5b0960){const _0x5a905f='uc-cloud-image-editor',_0x4df5e9=_0x1528e4['querySelector'](_0x5a905f);if(_0x4df5e9)return _0x5b0960(_0x4df5e9);const _0x5a5913=new MutationObserver(_0x59f110=>{const _0xa12018=_0x59f110['filter'](_0x146f81=>_0x146f81['target']===_0x1528e4&&_0x146f81['addedNodes']['length']>0x0&&_0x146f81['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5a905f);_0xa12018['length']&&(_0x5a5913['disconnect'](),_0x5b0960(_0xa12018[0x0]['addedNodes'][0x0]));});_0x5a5913['observe'](_0x1528e4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x49fb77){_0x49fb77['addEventListener']('apply',_0x371d45=>{this['fire']('apply',{'imageSrc':_0x371d45['detail']['cdnUrl']});}),_0x49fb77['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5d37c8(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1cfa26,_0x5ebb83,_0x238cd2){super(),this['_editor']=_0x1cfa26,this['_dialog']=_0x5ebb83,this['_imageElement']=_0x238cd2,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 _0xa78bfa=this['_imageElement'],_0x230762=_0xa78bfa['getAttribute']('uploadcareImageId'),_0xcd7612=_0xa78bfa['getAttribute']('src');if(_0x230762)await this['_loadImageInfo'](_0x230762,_0xcd7612);else{if(this['_imageCache']['has'](_0xcd7612)){const _0x7b58a0=this['_imageCache']['get'](_0xcd7612);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x7b58a0['url'],this['imageDimension']=_0x7b58a0['dimension'],this['imageId']=_0x7b58a0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xd5140b}=this['_editor'],t=_0xd5140b['t'],_0x161bae=new X(_0xd5140b,this['imageStatus'],this['_attributes']);_0x161bae['bind']('status')['to'](this,'imageStatus'),_0x161bae['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x161bae['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x161bae['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x161bae,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2e3c93,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x161bae,'position':_0x5a2fae['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x161bae['focus']();},'onHide':()=>{_0x161bae['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x11e651=>!A(_0x11e651,_0x161bae['element'])}});}['_loadImageInfo'](_0x2f9757,_0x5ad4f5){return j['getInfo'](_0x2f9757,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5edfce=>{const {width:_0x48a590,height:_0x39e42d}=_0x5edfce['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ad4f5,this['imageDimension']={'width':_0x48a590,'height':_0x39e42d},this['imageId']=_0x2f9757;})['catch'](_0xc67d0f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xc67d0f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x484a1e,_0x29179f){return this['_getImageAsFile'](_0x484a1e)['then'](_0x5679fd=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x29179f['signal'],'file':_0x5679fd,'onProgress':_0xb2632f=>{_0xb2632f&&_0xb2632f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xb2632f['value']));}}))['then'](_0x349064=>{const {width:_0x5c8e60,height:_0x27a92b}=_0x349064['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x349064['cdnUrl'],this['imageDimension']={'width':_0x5c8e60,'height':_0x27a92b},this['imageId']=_0x349064['uuid'],this['imageUploadProgress']=null;const _0x436e2f=_0x484a1e['getAttribute']('src');this['_imageCache']['set'](_0x436e2f,{'id':_0x349064['uuid'],'url':_0x349064['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1c8b3d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1c8b3d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1596b6,_0x2eafde){_0x1596b6['on']('apply',(_0x154f13,_0x78c8e0)=>{this['_replaceImage'](_0x2eafde,_0x78c8e0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1596b6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1596b6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x16eeb3,_0x1ac334,_0x39ae1a){const _0x3dfe46=this['_editor'],{width:_0x1f1744,height:_0x48cfb6}=S(_0x1ac334,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x12546,imageSources:_0x597e11}=C(_0x1ac334,_0x1f1744);_0x3dfe46['model']['change'](_0x4bfb86=>{if('$graveyard'===_0x16eeb3['root']['rootName']){_0x3dfe46['execute']('insertImage',{'imageType':_0x16eeb3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x16eeb3['getAttributes']()),'uploadcareImageId':_0x39ae1a,'src':_0x12546,'sources':_0x597e11,'width':_0x1f1744,'height':_0x48cfb6}});const _0x242104=_0x16eeb3['getChildren']();_0x16eeb3=_0x3dfe46['model']['document']['selection']['getSelectedElement']();for(const _0x20fc9f of _0x242104)_0x4bfb86['append'](_0x4bfb86['cloneElement'](_0x20fc9f),_0x16eeb3);}else _0x4bfb86['setSelection'](_0x16eeb3,'on'),_0x3dfe46['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x16eeb3['getAttributes']()),'uploadcareImageId':_0x39ae1a,'src':_0x12546,'sources':_0x597e11,'width':_0x1f1744,'height':_0x48cfb6},_0x16eeb3);_0x4bfb86['setSelection'](_0x16eeb3,'on');});}async['_getImageAsFile'](_0x54994b){const _0x94a41=_0x1a5972['window'],_0x253be0=_0x1a5972['document']['location']['href'],_0x493091=new _0x94a41['URL'](_0x54994b['getAttribute']('src'),_0x253be0);if('data:'===_0x493091['protocol']){const _0x120fe6=_0x493091['href']['split'](','),_0x3139be=_0x120fe6[0x0]['match'](/:(.*?);/)[0x1],_0x39ff10=_0x3139be['split']('/')[0x1],_0x425130=_0x94a41['atob'](_0x120fe6[_0x120fe6['length']-0x1]);let _0x163dc4=_0x425130['length'];const _0x4c7bc8=new _0x94a41['Uint8Array'](_0x163dc4);for(;_0x163dc4--;)_0x4c7bc8[_0x163dc4]=_0x425130['charCodeAt'](_0x163dc4);return new _0x94a41['File']([_0x4c7bc8],'image.'+_0x39ff10,{'type':_0x3139be});}const _0x20d3cb=_0x493091['href']['split']('/'),_0x5aa84d=_0x20d3cb[_0x20d3cb['length']-0x1],_0x265df2=_0x5aa84d['split']('.')[0x1];return _0x94a41['fetch'](_0x493091['href'])['then'](_0x3293be=>_0x3293be['clone']()['blob']())['then'](_0x2230bc=>new _0x94a41['File']([_0x2230bc],_0x5aa84d,{'type':'image/'+_0x265df2}));}}class O extends _0x5f1d1f{['imageEditController'];static get['requires'](){return[_0x1e0111];}['_isEditable'];constructor(_0x5d2644){super(_0x5d2644),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x268941){const _0x471b2b=G(_0x268941);return _0x372e53=>!(!_0x372e53||!_0x372e53['is']('element','imageBlock')&&!_0x372e53['is']('element','imageInline'))&&(!!_0x372e53['hasAttribute']('uploadcareImageId')||!!_0x372e53['hasAttribute']('src')&&_0x471b2b(_0x372e53['getAttribute']('src')));}(_0x5d2644['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x17f09f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x17f09f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2fe239=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2fe239&&(_0x2fe239['is']('element','imageBlock')||_0x2fe239['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1e0111),_0x2fe239),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x5f1d1f{['refresh'](){const _0x4753a5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4753a5&&(_0x4753a5['is']('element','imageBlock')||_0x4753a5['is']('element','imageInline')));}['execute'](_0x87557){const _0x162717=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x24ac0e=>{_0x24ac0e['setAttributes'](_0x87557,_0x162717),_0x24ac0e['removeAttribute']('srcset',_0x162717),_0x24ac0e['removeAttribute']('sizes',_0x162717);});}}class m extends _0x4e90a5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x56b5e2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x411518}=this;_0x411518['commands']['add']('uploadcareImageEdit',new O(_0x411518)),_0x411518['commands']['add']('uploadcareImageReplace',new R(_0x411518));}}class g extends _0x4e90a5{['_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 _0x197d8f=this['editor'];_0x197d8f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1329be=>{const _0x2dd6a6=_0x197d8f['commands']['get']('uploadcareImageEdit'),_0x53c66e=new _0x566edc(_0x1329be),t=_0x1329be['t'];return _0x53c66e['set']({'icon':_0x2e3c93,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x53c66e['bind']('isEnabled')['to'](_0x2dd6a6),_0x53c66e['bind']('isOn')['to'](_0x2dd6a6,'isActive'),this['listenTo'](_0x53c66e,'execute',()=>{_0x197d8f['execute']('uploadcareImageEdit'),_0x197d8f['editing']['view']['focus']();}),_0x53c66e;}),this['_initConfig']();}['_initConfig'](){const _0x3e9b60=_0xef2b99(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3e9b60),this['listenTo'](this['editor'],'destroy',()=>{_0x3e9b60['remove']();});}}class et extends _0x4e90a5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2eb272=>0x1!=_0x2eb272}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x22dcb3=>{const {af:{dictionary:_0x2bb543,getPluralForm:_0x56fe29}}={'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':_0x3bba09=>0x1!=_0x3bba09}};_0x22dcb3['af']||={'dictionary':{},'getPluralForm':null},_0x22dcb3['af']['dictionary']=Object['assign'](_0x22dcb3['af']['dictionary'],_0x2bb543),_0x22dcb3['af']['getPluralForm']=_0x56fe29;})(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':_0xb5d28b=>0x0==_0xb5d28b?0x0:0x1==_0xb5d28b?0x1:0x2==_0xb5d28b?0x2:_0xb5d28b%0x64>=0x3&&_0xb5d28b%0x64<=0xa?0x3:_0xb5d28b%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2e64d4=>{const {ar:{dictionary:_0x39cfb7,getPluralForm:_0x405f53}}={'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':_0x8d4e1f=>0x0==_0x8d4e1f?0x0:0x1==_0x8d4e1f?0x1:0x2==_0x8d4e1f?0x2:_0x8d4e1f%0x64>=0x3&&_0x8d4e1f%0x64<=0xa?0x3:_0x8d4e1f%0x64>=0xb?0x4:0x5}};_0x2e64d4['ar']||={'dictionary':{},'getPluralForm':null},_0x2e64d4['ar']['dictionary']=Object['assign'](_0x2e64d4['ar']['dictionary'],_0x39cfb7),_0x2e64d4['ar']['getPluralForm']=_0x405f53;})(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':_0x22ef41=>0x1!=_0x22ef41}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a6227=>{const {ast:{dictionary:_0x469845,getPluralForm:_0x32bce7}}={'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':_0x59a18a=>0x1!=_0x59a18a}};_0x4a6227['ast']||={'dictionary':{},'getPluralForm':null},_0x4a6227['ast']['dictionary']=Object['assign'](_0x4a6227['ast']['dictionary'],_0x469845),_0x4a6227['ast']['getPluralForm']=_0x32bce7;})(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':_0x405785=>0x1!=_0x405785}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4de99a=>{const {az:{dictionary:_0x55ea3c,getPluralForm:_0x559b68}}={'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':_0x300b79=>0x1!=_0x300b79}};_0x4de99a['az']||={'dictionary':{},'getPluralForm':null},_0x4de99a['az']['dictionary']=Object['assign'](_0x4de99a['az']['dictionary'],_0x55ea3c),_0x4de99a['az']['getPluralForm']=_0x559b68;})(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':_0x4bf70f=>_0x4bf70f%0xa==0x1&&_0x4bf70f%0x64!=0xb?0x0:_0x4bf70f%0xa>=0x2&&_0x4bf70f%0xa<=0x4&&(_0x4bf70f%0x64<0xa||_0x4bf70f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x57c5cf=>{const {be:{dictionary:_0x11bf0e,getPluralForm:_0x5d8ae9}}={'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':_0x1c1762=>_0x1c1762%0xa==0x1&&_0x1c1762%0x64!=0xb?0x0:_0x1c1762%0xa>=0x2&&_0x1c1762%0xa<=0x4&&(_0x1c1762%0x64<0xa||_0x1c1762%0x64>=0x14)?0x1:0x2}};_0x57c5cf['be']||={'dictionary':{},'getPluralForm':null},_0x57c5cf['be']['dictionary']=Object['assign'](_0x57c5cf['be']['dictionary'],_0x11bf0e),_0x57c5cf['be']['getPluralForm']=_0x5d8ae9;})(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':_0x3a61da=>0x1!=_0x3a61da}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2b903b=>{const {bg:{dictionary:_0x2777bb,getPluralForm:_0x312a2f}}={'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':_0x1af492=>0x1!=_0x1af492}};_0x2b903b['bg']||={'dictionary':{},'getPluralForm':null},_0x2b903b['bg']['dictionary']=Object['assign'](_0x2b903b['bg']['dictionary'],_0x2777bb),_0x2b903b['bg']['getPluralForm']=_0x312a2f;})(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':_0x2ff0d2=>0x1!=_0x2ff0d2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1207d3=>{const {bn:{dictionary:_0x5790e1,getPluralForm:_0x314ee4}}={'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':_0x3d6c16=>0x1!=_0x3d6c16}};_0x1207d3['bn']||={'dictionary':{},'getPluralForm':null},_0x1207d3['bn']['dictionary']=Object['assign'](_0x1207d3['bn']['dictionary'],_0x5790e1),_0x1207d3['bn']['getPluralForm']=_0x314ee4;})(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':_0x25ea5f=>_0x25ea5f%0xa==0x1&&_0x25ea5f%0x64!=0xb?0x0:_0x25ea5f%0xa>=0x2&&_0x25ea5f%0xa<=0x4&&(_0x25ea5f%0x64<0xa||_0x25ea5f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a5b73=>{const {bs:{dictionary:_0x50caf7,getPluralForm:_0x1bac2a}}={'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':_0x4680c1=>_0x4680c1%0xa==0x1&&_0x4680c1%0x64!=0xb?0x0:_0x4680c1%0xa>=0x2&&_0x4680c1%0xa<=0x4&&(_0x4680c1%0x64<0xa||_0x4680c1%0x64>=0x14)?0x1:0x2}};_0x4a5b73['bs']||={'dictionary':{},'getPluralForm':null},_0x4a5b73['bs']['dictionary']=Object['assign'](_0x4a5b73['bs']['dictionary'],_0x50caf7),_0x4a5b73['bs']['getPluralForm']=_0x1bac2a;})(window['CKEDITOR_TRANSLATIONS']||={});
|