@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251125.1 → 0.0.0-nightly-20251127.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 _0x40a027,Command as _0x1805a0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3f17cc,IconGooglePhotos as _0x320109,IconGoogleDrive as _0x1a6fa3,IconFacebook as _0x29c687,IconDropbox as _0x539a71,IconUploadcareLink as _0x349338,IconUploadcareImageUpload as _0x2a2a2e,IconError as _0x3f8c3e,IconUploadcareImageEdit as _0x21b4d9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x23d61e,MenuBarMenuListItemButtonView as _0x48c943,View as _0x255f97,FocusCycler as _0x3bb36c,Dialog as _0x54518c,DialogViewPosition as _0x2a21c1,SpinnerView as _0xae7dea,IconView as _0x15cd82,Notification as _0x450039}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x11b6cc,DomEmitterMixin as _0x9b0dcd,global as _0x49a30f,getAncestors as _0x587559,ObservableMixin as _0x2308c3,uid as _0x5c4a34,createElement as _0x43e691}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x179ffb}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x70a705,info as _0x5a4252}from'@uploadcare/upload-client';import*as _0x2a9564 from'@uploadcare/file-uploader';var i=function(_0x2bfd19){return _0x2bfd19['Local']='local',_0x2bfd19['URL']='url',_0x2bfd19['Dropbox']='dropbox',_0x2bfd19['GDrive']='gdrive',_0x2bfd19['Facebook']='facebook',_0x2bfd19['GPhotos']='gphotos',_0x2bfd19['OneDrive']='onedrive',_0x2bfd19;}({});function _(_0x38b4b5,_0x175bfc,_0x581fab){const t=_0x38b4b5['t'],_0x34b641=_0x38b4b5['t'];switch(_0x175bfc){case i['Local']:return{'text':_0x34b641('Insert'===_0x581fab?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x34b641('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x581fab?_0x34b641('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x34b641('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x581fab?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x581fab?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x581fab?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x581fab?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x581fab?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x175bfc;}}class e extends _0x40a027{['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 _0x6af407=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ce458;for(const _0x317c4 in _0x6af407){const _0x413166=_0x317c4,_0x299ca8=_0x6af407[_0x413166];if('uploadcareLicenseKeyValid'==_0x299ca8||'uploadcareLicenseKeyInvalid'==_0x299ca8||'uploadcareLicenseKeyExpired'==_0x299ca8||'uploadcareLicenseKeyDomainLimit'==_0x299ca8||'uploadcareLicenseKeyNotAllowed'==_0x299ca8||'uploadcareLicenseKeyEvaluationLimit'==_0x299ca8||'uploadcareLicenseKeyTrialLimit'==_0x299ca8||'uploadcareLicenseKeyUsageLimit'==_0x299ca8){delete _0x6af407[_0x413166],_0x1ce458=_0x299ca8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1ce458&&_0x6af407['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1ce458&&_0x6af407['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1ce458&&_0x6af407['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1ce458&&_0x6af407['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1ce458&&_0x6af407['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1ce458&&_0x6af407['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1ce458&&_0x6af407['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x213868}=this,_0x2d341c=_0x213868['commands']['get']('uploadcare');if(!_0x2d341c)return;const _0x594a34=this['_normalizeConfigSourceList'](_0x213868['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4cfccd,_0x29712f)=>{const _0x697a54=this['_getIntegrationKey'](_0x29712f['type']);return _0x4cfccd[_0x697a54]||(_0x4cfccd[_0x697a54]=[]),_0x4cfccd[_0x697a54]['push'](_0x29712f),_0x4cfccd;},{});_0x213868['plugins']['has']('ImageInsertUI')&&_0x213868['commands']['get']('uploadcare')&&Object['entries'](_0x594a34)['forEach'](([_0x55ea18,_0x1d7f30])=>{_0x213868['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x55ea18,'observable':()=>_0x2d341c,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1d7f30),'formViewCreator':()=>this['_createDropdownButtons'](_0x1d7f30),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1d7f30),'override':'assetManager'!==_0x55ea18});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x493d6f){const {locale:_0x5e9a41}=this['editor'];return _0x493d6f['map'](_0x9bafb3=>{const _0x5e187c=_(_0x5e9a41,_0x9bafb3,'Insert');switch(_0x9bafb3){case i['Local']:return{'icon':_0x2a2a2e,'type':i['Local'],..._0x5e187c};case i['URL']:return{'icon':_0x349338,'type':i['URL'],..._0x5e187c};case i['Dropbox']:return{'icon':_0x539a71,'type':i['Dropbox'],..._0x5e187c};case i['Facebook']:return{'icon':_0x29c687,'type':i['Facebook'],..._0x5e187c};case i['GDrive']:return{'icon':_0x1a6fa3,'type':i['GDrive'],..._0x5e187c};case i['GPhotos']:return{'icon':_0x320109,'type':i['GPhotos'],..._0x5e187c};case i['OneDrive']:return{'icon':_0x3f17cc,'type':i['OneDrive'],..._0x5e187c};}});}['_getIntegrationKey'](_0xe70d4a){switch(_0xe70d4a){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x54377d,_0x3454d3){const _0x5814f3=this['editor'],_0x3da80a=new _0x54377d(_0x5814f3['locale']),_0x2b93cf=_0x5814f3['commands']['get']('uploadcare');return _0x3da80a['bind']('isEnabled')['to'](_0x2b93cf),_0x3da80a['on']('execute',()=>{_0x2b93cf['execute'](_0x3454d3);}),_0x3da80a;}['_createToolbarButton'](_0x302380){const {locale:_0x3de68c}=this['editor'],_0x10d09e=this['editor']['plugins']['get']('ImageInsertUI'),_0x405b29=_0x302380[0x0],_0x600cfb=this['_createButton'](_0x23d61e,_0x405b29['type']);return _0x600cfb['icon']=_0x405b29['icon'],_0x600cfb['bind']('label')['to'](_0x10d09e,'isImageSelected',_0x1b6f23=>_(_0x3de68c,_0x405b29['type'],_0x1b6f23?'Replace':'Insert')['text']),_0x600cfb['tooltip']=!0x0,_0x600cfb;}['_createDropdownButtons'](_0xdcb275){const {locale:_0x166e23}=this['editor'],_0x24447a=this['editor']['plugins']['get']('ImageInsertUI');return _0xdcb275['map'](_0x50e789=>{const _0x19aa45=this['_createButton'](_0x23d61e,_0x50e789['type']);return _0x19aa45['withText']=!0x0,_0x19aa45['icon']=_0x50e789['icon'],_0x19aa45['bind']('label')['to'](_0x24447a,'isImageSelected',_0x560af4=>_(_0x166e23,_0x50e789['type'],_0x560af4?'Replace':'Insert')['text']),_0x19aa45;});}['_createMenuBarButtons'](_0x5b5df7){return _0x5b5df7['map'](_0x2880c5=>{const _0xb00ce=this['_createButton'](_0x48c943,_0x2880c5['type']);return _0xb00ce['icon']=_0x2880c5['icon'],_0xb00ce['label']=_0x2880c5['shortText'],_0xb00ce;});}}class F extends _0x255f97{['focusTracker'];['focusCycler'];constructor(_0x153632){super(_0x153632),this['focusTracker']=new _0x11b6cc(),this['focusCycler']=new _0x3bb36c({'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(_0x54dfdf,_0x1281f6){super(_0x54dfdf),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-'+_0x1281f6}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x40d633,_0x4ec438){const _0x471441=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4db9e8=>_0x4db9e8<=_0x4ec438)['map'](_0xc34d08=>_0x40d633['replace'](/\/$/,'')+'/-/resize/'+_0xc34d08+'x/\x20'+_0xc34d08+'w');return{'imageFallbackUrl':_0x40d633,'imageSources':[{'srcset':_0x471441['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4ec438+'px)\x20100vw,\x20'+_0x4ec438+'px','type':'image/webp'}]};}function S(_0x29aa05,_0x46b405,_0x50418a){const _0xb3a26=_0x29aa05['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xb3a26?parseInt(_0xb3a26[0x1],0xa):_0x46b405,'height':_0xb3a26?parseInt(_0xb3a26[0x2],0xa):_0x50418a};}function p(_0x442d44,_0x258412){const _0x46ad31=new(_0x9b0dcd())(),_0x433a8e=_0x442d44['plugins']['get']('ImageUtils'),_0x32c4b6=_0x442d44['editing']['mapper']['toViewElement'](_0x258412),_0x5dd69a=_0x433a8e['findViewImgElement'](_0x32c4b6),_0x2b5dc1=_0x442d44['editing']['view']['domConverter']['viewToDom'](_0x5dd69a),_0x148765=_0x258412['getAttribute']('width'),_0x3b1e09=_0x258412['getAttribute']('height'),_0x4609ae='image-processing';_0x442d44['editing']['view']['change'](_0x477bfc=>{_0x477bfc['addClass'](_0x4609ae,_0x32c4b6),_0x477bfc['setStyle']('aspect-ratio',_0x148765+'/'+_0x3b1e09,_0x5dd69a);}),_0x46ad31['listenTo'](_0x2b5dc1,'load',()=>{_0x46ad31['stopListening'](_0x2b5dc1,'load'),_0x442d44['editing']['view']['change'](_0x164058=>{_0x164058['removeClass'](_0x4609ae,_0x32c4b6),_0x164058['removeStyle']('aspect-ratio',_0x5dd69a);});});}function z(_0xa87afd){if(Array['isArray'](_0xa87afd)){const _0x258767=_0xa87afd['map'](z);return _0x335b48=>_0x258767['some'](_0x345886=>_0x345886(_0x335b48));}if('origin'==_0xa87afd){const _0x31ae9c=_0x49a30f['window']['location']['origin'];return _0x36e818=>new URL(_0x36e818,_0x49a30f['document']['baseURI'])['origin']==_0x31ae9c;}return'function'==typeof _0xa87afd?_0xa87afd:_0xa87afd instanceof RegExp?_0x42ca92=>!(!_0x42ca92['match'](_0xa87afd)&&!_0x42ca92['replace'](/^https?:\/\//,'')['match'](_0xa87afd)):()=>!0x1;}function A(_0x511c77,_0x1dca99){return _0x587559(_0x511c77['target'])['includes'](_0x1dca99);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2308c3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x569821,_0x2e283b,_0x3fc729){super(),this['_editor']=_0x569821,this['_editing']=_0x2e283b,this['_dialog']=_0x569821['plugins']['get'](_0x54518c),this['_api']=_0x2e283b['ctxElement']['getAPI'](),this['_type']=_0x3fc729,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:_0x1e8c1a,model:_0x43e4de}=this['_editor'],_0x3189a0=_0x43e4de['document']['selection']['getSelectedElement'](),_0x477803=_0x3189a0&&(_0x3189a0['is']('element','imageBlock')||_0x3189a0['is']('element','imageInline'));this['_formView']=new x(_0x1e8c1a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2a2a2e,'title':_(_0x1e8c1a,this['_type'],_0x477803?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2a21c1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58ec81=>!A(_0x58ec81,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x46ecfb}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3066bf=>{const _0x26ff8d=_0x46ecfb['length'];for(const _0x4b8a7a of _0x46ecfb){const _0x53b5e2=_0x4b8a7a===_0x46ecfb[_0x26ff8d-0x1],{cdnUrl:_0x3932b6,fileInfo:_0x4baa1a}=_0x4b8a7a;if(!_0x3932b6||!_0x4baa1a)continue;const {width:_0x4a3a31,height:_0x2c46f9}=_0x4baa1a['imageInfo'],_0x567dbc=S(_0x3932b6,_0x4a3a31,_0x2c46f9),_0x311614=C(_0x3932b6,_0x567dbc['width']),_0x1a6311={'id':_0x4baa1a['uuid'],'type':'image','attributes':{'imageDimension':_0x567dbc,..._0x311614}};this['_insertAsset'](_0x1a6311,_0x53b5e2,_0x3066bf);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x6ad723=>{'idle'===_0x6ad723['detail']['status']&&!_0x6ad723['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x368e1d,_0x5d6159,_0x26bd3e){const _0x44fea1=this['_editor']['model']['document']['selection'],_0x2264c5=_0x44fea1['getSelectedElement'](),_0x163e08=!(!_0x2264c5||!_0x2264c5['is']('element','imageInline'));_0x26bd3e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x368e1d,_0x163e08),_0x5d6159||_0x26bd3e['setSelection'](_0x44fea1['getLastPosition']());}['_insertImage'](_0x4a29ff,_0x3ceae7){const _0x34b85b=this['_editor'],{imageDimension:_0x59ad02,imageFallbackUrl:_0x28f6be,imageSources:_0x1d7d92}=_0x4a29ff['attributes'];_0x34b85b['execute']('insertImage',{'imageType':_0x3ceae7?'imageInline':null,'source':{'uploadcareImageId':_0x4a29ff['id'],'src':_0x28f6be,'sources':_0x1d7d92,..._0x59ad02}});}}class w extends _0x1805a0{['_editing'];['_controller']=null;static get['requires'](){return[_0x54518c,o];}constructor(_0x3134c7){super(_0x3134c7),this['_editing']=_0x3134c7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2d1e41){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2d1e41);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4e6aa6,..._0x41f03d}){return _0x70a705(_0x4e6aa6,_0x41f03d);}static['getInfo'](_0x280456,_0x466858){return _0x5a4252(_0x280456,_0x466858);}}class f extends _0x40a027{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x179ffb,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x28fbfb=this['editor'];if(!!!_0x28fbfb['config']['get']('uploadcare'))return;_0x28fbfb['plugins']['get'](_0x179ffb)['createUploadAdapter']=_0x32887a=>new k(_0x32887a,_0x28fbfb),_0x28fbfb['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2083ea,{imageElement:_0x4e27e7,data:_0x27d5c3})=>{_0x28fbfb['model']['change'](_0x125d64=>{_0x125d64['setAttribute']('uploadcareImageId',_0x27d5c3['uploadcareImageId'],_0x4e27e7);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1c66d2,_0x10d063){this['loader']=_0x1c66d2,this['editor']=_0x10d063,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x126376=await this['loader']['file'];return j['upload']({'file':_0x126376,'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':_0x29af01=>{_0x29af01&&_0x29af01['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x29af01['value']);}})['then'](async _0x48c9eb=>{const {imageFallbackUrl:_0x1f5c0b,imageSources:_0x30046c}=C(_0x48c9eb['cdnUrl'],_0x48c9eb['imageInfo']['width']);return{'uploadcareImageId':_0x48c9eb['uuid'],'default':_0x1f5c0b,'sources':_0x30046c};})['catch'](()=>{const _0x29c68b=t('Cannot\x20upload\x20file:')+('\x20'+_0x126376['name']+'.');return Promise['reject'](_0x29c68b);});}['abort'](){this['controller']['abort']();}}class o extends _0x40a027{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x54518c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3715ce){super(_0x3715ce),this['ucContextId']=_0x5c4a34();}['init'](){const _0x777cd5=this['editor'];_0x777cd5['commands']['add']('uploadcare',new w(_0x777cd5));}['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 _0x261e4f=_0x49a30f['document']['querySelector']('input[uploadcare-file-input]');_0x261e4f&&_0x261e4f['remove']();}),async function(_0x4fc68f){const _0x44bcae=_0x34b41b([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4202e6=0x535f8c3a,_0x1bda0a=0x5358f622^_0x4202e6,_0x38d7f4=window[_0x34b41b([0x44,0x61,0x74,0x65])][_0x34b41b([0x6e,0x6f,0x77])](),_0x220238=_0x4fc68f[_0x34b41b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x9c344e=new window[(_0x34b41b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ae91e=>{_0x220238[_0x34b41b([0x6f,0x6e,0x63,0x65])](_0x34b41b([0x72,0x65,0x61,0x64,0x79]),_0x1ae91e);}),_0x3cc361={[_0x34b41b([0x6b,0x74,0x79])]:_0x34b41b([0x45,0x43]),[_0x34b41b([0x75,0x73,0x65])]:_0x34b41b([0x73,0x69,0x67]),[_0x34b41b([0x63,0x72,0x76])]:_0x34b41b([0x50,0x2d,0x32,0x35,0x36]),[_0x34b41b([0x78])]:_0x34b41b([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]),[_0x34b41b([0x79])]:_0x34b41b([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]),[_0x34b41b([0x61,0x6c,0x67])]:_0x34b41b([0x45,0x53,0x32,0x35,0x36])},_0x25ac24=_0x220238[_0x34b41b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34b41b([0x67,0x65,0x74])](_0x34b41b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xfd71b7(){let _0xcbb465,_0x1597f9=null,_0x412054=null;try{if(_0x25ac24==_0x34b41b([0x47,0x50,0x4c]))return _0x34b41b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xcbb465=_0x18321a(),!_0xcbb465)return _0x34b41b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xcbb465[_0x34b41b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x412054=_0x2a1505(_0xcbb465[_0x34b41b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xcbb465[_0x34b41b([0x6a,0x74,0x69])])),await _0x11ea5f()?_0x32f2e0()?_0x51c01f()?_0x34b41b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x253a5d()?(_0xcbb465[_0x34b41b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34b41b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1597f9=_0x4d4af2(_0x34b41b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xcbb465[_0x34b41b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34b41b([0x74,0x72,0x69,0x61,0x6c])&&(_0x1597f9=_0x4d4af2(_0x34b41b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x11d836()):_0x34b41b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34b41b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34b41b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x34b41b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x51c01f(){const _0x532b6b=[_0x34b41b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34b41b([0x74,0x72,0x69,0x61,0x6c])][_0x34b41b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcbb465[_0x34b41b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38d7f4/0x3e8:0xe10*_0x1bda0a;return _0xcbb465[_0x34b41b([0x65,0x78,0x70])]<_0x532b6b;}function _0x32f2e0(){const _0x5ad681=_0xcbb465[_0x34b41b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ad681&&(!!_0x5ad681[_0x34b41b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34b41b([0x2a]))||!!_0x5ad681[_0x34b41b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34b41b([0x55,0x50,0x4c,0x43])));}function _0x253a5d(){const _0x4f78c3=_0xcbb465[_0x34b41b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f78c3||0x0==_0x4f78c3[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ef81c}=new URL(window[_0x34b41b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4f78c3[_0x34b41b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ef81c))return!0x0;const _0xe50568=_0x1ef81c[_0x34b41b([0x73,0x70,0x6c,0x69,0x74])](_0x34b41b([0x2e]));return _0x4f78c3[_0x34b41b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x554c09=>_0x554c09[_0x34b41b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34b41b([0x2a])))[_0x34b41b([0x6d,0x61,0x70])](_0x485f1e=>_0x485f1e[_0x34b41b([0x73,0x70,0x6c,0x69,0x74])](_0x34b41b([0x2e])))[_0x34b41b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x736821=>_0x736821[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe50568[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34b41b([0x6d,0x61,0x70])](_0x478461=>Array(_0xe50568[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x478461[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34b41b([0x66,0x69,0x6c,0x6c])](_0x478461[0x0]===_0x34b41b([0x2a])?_0x34b41b([0x2a]):'')[_0x34b41b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x478461))[_0x34b41b([0x73,0x6f,0x6d,0x65])](_0x251045=>_0xe50568[_0x34b41b([0x65,0x76,0x65,0x72,0x79])]((_0x1e2f6c,_0x3c5af1)=>_0x251045[_0x3c5af1]===_0x1e2f6c||_0x251045[_0x3c5af1]===_0x34b41b([0x2a])));}function _0x11d836(){return _0x1597f9&&_0x412054?new window[(_0x34b41b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46b0e8,_0x454d97)=>{_0x1597f9[_0x34b41b([0x74,0x68,0x65,0x6e])](_0x46b0e8,_0x454d97),_0x412054[_0x34b41b([0x74,0x68,0x65,0x6e])](_0x3650f3=>{_0x3650f3!=_0x34b41b([0x56,0x61,0x6c,0x69,0x64])&&_0x46b0e8(_0x3650f3);},_0x454d97);}):_0x1597f9||_0x412054||_0x34b41b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a1505(_0x33ae4a,_0x34f157){return new window[(_0x34b41b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f0194=>{if(_0xb55bb3())return _0x4f0194(_0x34b41b([0x56,0x61,0x6c,0x69,0x64]));_0x1e14d6(),_0x220238[_0x34b41b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34b41b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3fbda8=!0x1;const _0x3c0429=_0x5c4a34();function _0x173bcc(_0x112a17){return!!_0x112a17&&(typeof _0x112a17===_0x34b41b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x112a17===_0x34b41b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x112a17[_0x34b41b([0x74,0x68,0x65,0x6e])]===_0x34b41b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x112a17[_0x34b41b([0x63,0x61,0x74,0x63,0x68])]===_0x34b41b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x348112(_0x504058){_0x511522(_0x504058)[_0x34b41b([0x74,0x68,0x65,0x6e])](_0x547fb5=>{if(!_0x547fb5||_0x547fb5[_0x34b41b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34b41b([0x6f,0x6b]))return _0x34b41b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe1e4f2(_0x2cf64d(_0x3c0429+_0x34f157))!=_0x547fb5[_0x34b41b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34b41b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34b41b([0x56,0x61,0x6c,0x69,0x64]);})[_0x34b41b([0x74,0x68,0x65,0x6e])](_0x4281ac=>(_0x525a0f(),_0x4281ac),()=>{const _0x51c773=_0x189d9f();return null==_0x51c773?(_0x525a0f(),_0x34b41b([0x56,0x61,0x6c,0x69,0x64])):_0x34b41b(_0x38d7f4-_0x51c773>(0x7753083a^_0x4202e6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34b41b([0x74,0x68,0x65,0x6e])](_0x4f0194)[_0x34b41b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f0194(_0x34b41b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5dfd2b=0x536962ba^_0x4202e6;function _0x525a0f(){const _0x8a829d=_0x34b41b([0x6c,0x6c,0x63,0x74,0x2d])+_0xe1e4f2(_0x2cf64d(_0x33ae4a)),_0x479916=_0x38590c(_0xe1e4f2(window[_0x34b41b([0x4d,0x61,0x74,0x68])][_0x34b41b([0x63,0x65,0x69,0x6c])](_0x38d7f4/_0x5dfd2b)));window[_0x34b41b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34b41b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8a829d,_0x479916);}function _0x189d9f(){const _0x3a5f27=_0x34b41b([0x6c,0x6c,0x63,0x74,0x2d])+_0xe1e4f2(_0x2cf64d(_0x33ae4a)),_0x37aca6=window[_0x34b41b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34b41b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a5f27);return _0x37aca6?window[_0x34b41b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38590c(_0x37aca6),0x10)*_0x5dfd2b:null;}function _0x511522(_0xb6b7ca){return new window[(_0x34b41b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36bb15,_0x2f1058)=>{_0xb6b7ca[_0x34b41b([0x74,0x68,0x65,0x6e])](_0x36bb15,_0x2f1058),window[_0x34b41b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f1058,0x535e58fa^_0x4202e6);});}}_0x220238[_0x34b41b([0x6f,0x6e])](_0x34b41b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5ea978,_0x4b678e)=>{if(_0x4b678e[0x0]!=_0x33ae4a)return _0x4f0194(_0x34b41b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b678e[0x1]={..._0x4b678e[0x1],[_0x34b41b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c0429};},{[_0x34b41b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34b41b([0x68,0x69,0x67,0x68])}),_0x220238[_0x34b41b([0x6f,0x6e])](_0x34b41b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14da7d=>{_0x173bcc(_0x14da7d[_0x34b41b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3fbda8=!0x0,_0x348112(_0x14da7d[_0x34b41b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34b41b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34b41b([0x6c,0x6f,0x77])}),_0x9c344e[_0x34b41b([0x74,0x68,0x65,0x6e])](()=>{_0x3fbda8||_0x4f0194(_0x34b41b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb55bb3(){return _0x220238[_0x34b41b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34b41b([0x76,0x69,0x65,0x77])][_0x34b41b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34b41b([0x61,0x75,0x74,0x6f]);}function _0x1e14d6(){_0x220238[_0x34b41b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34b41b([0x76,0x69,0x65,0x77])][_0x34b41b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34b41b([0x61,0x75,0x74,0x6f]);}}function _0x4d4af2(_0x2ce693){const _0x11b800=[new window[(_0x34b41b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31c005=>setTimeout(_0x31c005,0x5356b2f6^_0x4202e6)),_0x9c344e[_0x34b41b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34b41b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36c469=>{let _0x58ebdb=0x0;_0x220238[_0x34b41b([0x6d,0x6f,0x64,0x65,0x6c])][_0x34b41b([0x6f,0x6e])](_0x34b41b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x121df4,_0x15e43e)=>{_0x15e43e[0x0][_0x34b41b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x58ebdb++,_0x58ebdb==(0x535f8dc2^_0x4202e6)&&(_0x36c469(),_0x121df4[_0x34b41b([0x6f,0x66,0x66])]());});}))];return window[_0x34b41b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34b41b([0x72,0x61,0x63,0x65])](_0x11b800)[_0x34b41b([0x74,0x68,0x65,0x6e])](()=>_0x2ce693);}async function _0x5c8016(){await _0x9c344e,_0x220238[_0x34b41b([0x6d,0x6f,0x64,0x65,0x6c])][_0x34b41b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a48a2,_0x220238[_0x34b41b([0x6d,0x6f,0x64,0x65,0x6c])][_0x34b41b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a48a2,_0x220238[_0x34b41b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34b41b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16a1e1(_0x4aebd7){const _0x186d41=_0x35e391();_0x220238[_0x186d41]=_0x34b41b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4aebd7,_0x4aebd7!=_0x34b41b([0x56,0x61,0x6c,0x69,0x64])&&_0x5c8016();}function _0x35e391(){const _0x444c17=window[_0x34b41b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34b41b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34b41b([0x6e,0x6f,0x77])]())[_0x34b41b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34b41b([0x2e]),'');let _0x37ae85=_0x34b41b([0x68]);for(let _0x4c8e2b=0x0;_0x4c8e2b<_0x444c17[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c8e2b+=0x2){let _0x48b596=window[_0x34b41b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x444c17[_0x34b41b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c8e2b,_0x4c8e2b+0x2));_0x48b596>=_0x44bcae[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x48b596-=_0x44bcae[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37ae85+=_0x44bcae[_0x48b596];}return _0x37ae85;}function _0x18321a(){const _0xb78a45=_0x25ac24[_0x34b41b([0x73,0x70,0x6c,0x69,0x74])](_0x34b41b([0x2e]));if(0x3!=_0xb78a45[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2826e5(_0xb78a45[0x1]);function _0x2826e5(_0x318c5a){const _0x5294f2=_0x2fd42f(_0x318c5a);return _0x5294f2&&_0x2e7527()?_0x5294f2:null;function _0x2e7527(){const _0x3ae6c1=_0x5294f2[_0x34b41b([0x6a,0x74,0x69])],_0x339581=window[_0x34b41b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ae6c1[_0x34b41b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ae6c1[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4040f0={..._0x5294f2,[_0x34b41b([0x6a,0x74,0x69])]:_0x3ae6c1[_0x34b41b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ae6c1[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4040f0[_0x34b41b([0x76,0x63])],_0x2cf64d(_0x4040f0)==_0x339581;}}}async function _0x11ea5f(){let _0xbb7447=!0x0;try{const _0x3a329f=_0x25ac24[_0x34b41b([0x73,0x70,0x6c,0x69,0x74])](_0x34b41b([0x2e])),[_0x26003c,_0x395b44,_0x4d2b96]=_0x3a329f;return _0x2eb8fa(_0x26003c),await _0x4f2da8(_0x26003c,_0x395b44,_0x4d2b96),_0xbb7447;}catch{return!0x1;}function _0x2eb8fa(_0xcdcef){const _0x56b44d=_0x2fd42f(_0xcdcef);_0x56b44d&&_0x56b44d[_0x34b41b([0x61,0x6c,0x67])]==_0x34b41b([0x45,0x53,0x32,0x35,0x36])||(_0xbb7447=!0x1);}async function _0x4f2da8(_0x45789b,_0x24effd,_0x59caa9){const _0x9848c4=window[_0x34b41b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34b41b([0x66,0x72,0x6f,0x6d])](_0x326c1a(_0x59caa9),_0x1427c5=>_0x1427c5[_0x34b41b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc723a9=new window[(_0x34b41b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34b41b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45789b+_0x34b41b([0x2e])+_0x24effd),_0x43b806=window[_0x34b41b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34b41b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43b806)return;const _0x37800a=await _0x43b806[_0x34b41b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34b41b([0x6a,0x77,0x6b]),_0x3cc361,{[_0x34b41b([0x6e,0x61,0x6d,0x65])]:_0x34b41b([0x45,0x43,0x44,0x53,0x41]),[_0x34b41b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34b41b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34b41b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43b806[_0x34b41b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34b41b([0x6e,0x61,0x6d,0x65])]:_0x34b41b([0x45,0x43,0x44,0x53,0x41]),[_0x34b41b([0x68,0x61,0x73,0x68])]:{[_0x34b41b([0x6e,0x61,0x6d,0x65])]:_0x34b41b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37800a,_0x9848c4,_0xc723a9)||(_0xbb7447=!0x1);}}function _0x2fd42f(_0xc329cf){return _0xc329cf[_0x34b41b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34b41b([0x65,0x79]))?JSON[_0x34b41b([0x70,0x61,0x72,0x73,0x65])](_0x326c1a(_0xc329cf)):null;}function _0x326c1a(_0x1d1bb5){return window[_0x34b41b([0x61,0x74,0x6f,0x62])](_0x1d1bb5[_0x34b41b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34b41b([0x2b]))[_0x34b41b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34b41b([0x2f])));}function _0x2cf64d(_0x2fcf33){let _0x5b476a=0x1505;function _0x31f2e8(_0x449c6f){for(let _0xffd35d=0x0;_0xffd35d<_0x449c6f[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xffd35d++){const _0x2c916e=_0x449c6f[_0x34b41b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xffd35d);_0x5b476a=(_0x5b476a<<0x5)+_0x5b476a+_0x2c916e,_0x5b476a&=_0x5b476a;}}function _0x2fdd7a(_0x4a77f6){Array[_0x34b41b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a77f6)?_0x4a77f6[_0x34b41b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fdd7a):_0x4a77f6&&typeof _0x4a77f6==_0x34b41b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34b41b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a77f6)[_0x34b41b([0x73,0x6f,0x72,0x74])]()[_0x34b41b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x544100,_0x2b54d4])=>{_0x31f2e8(_0x544100),_0x2fdd7a(_0x2b54d4);}):_0x31f2e8(window[_0x34b41b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a77f6));}return _0x2fdd7a(_0x2fcf33),_0x5b476a>>>0x0;}function _0xe1e4f2(_0x12bf85){return _0x12bf85[_0x34b41b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34b41b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34b41b([0x30]));}function _0x38590c(_0x4d9703){return _0x4d9703[_0x34b41b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34b41b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34b41b([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a48a2(){}function _0x34b41b(_0x28c83e){return _0x28c83e['map'](_0x1cb36b=>String['fromCharCode'](_0x1cb36b))['join']('');}_0x16a1e1(await _0xfd71b7());}(this);}['_initSchema'](){const _0x25988c=this['editor']['model']['schema'];_0x25988c['isRegistered']('imageBlock')&&_0x25988c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x25988c['isRegistered']('imageInline')&&_0x25988c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xa844d1=this['editor'];_0xa844d1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xa844d1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3d80ee=>_0x3d80ee['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a88a6=_0xa844d1['commands']['get']('replaceImageSource');_0x1a88a6&&this['listenTo'](_0x1a88a6,'cleanupImage',(_0x3c65e1,[_0x30a79c,_0x59cc3d])=>{_0x30a79c['removeAttribute']('uploadcareImageId',_0x59cc3d);});}['_initConfig'](){const _0x5713be=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5797c3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x43e691(_0x49a30f['document'],'uc-config',{..._0x5713be,'pubkey':_0x5797c3,'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']=_0x37204a=>{if('closeMax'==_0x37204a)return'#uc-icon-arrow-down';},_0x49a30f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x43e691(_0x49a30f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x49a30f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x14a9b=this['editor']['commands']['get']('insertImage');_0x14a9b&&this['listenTo'](_0x14a9b,'execute',()=>{const _0x440757=this['editor']['model']['document']['selection']['getSelectedElement']();_0x440757&&_0x440757['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x440757);});});const _0x507e50=this['editor']['commands']['get']('uploadcareImageReplace');_0x507e50&&this['listenTo'](_0x507e50,'execute',()=>{const _0x5f5358=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5f5358&&_0x5f5358['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5f5358);});});}}class tt extends _0x40a027{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31013b){super(_0x31013b),_0x31013b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2a9564['defineComponents'](_0x2a9564),this['_defineLocale']();}['_defineLocale'](){const _0x382a5e=this['editor']['config']['get']('uploadcare.locale'),_0x571e22=this['editor']['locale']['contentLanguage'];_0x382a5e&&_0x2a9564['defineLocale'](_0x571e22,_0x382a5e);}}class ii extends _0x255f97{constructor(_0x402c56){super(_0x402c56);const t=_0x402c56['t'],_0x42dc3c=this['bindTemplate'],_0x183635=new _0xae7dea();_0x183635['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':[_0x183635,{'text':_0x42dc3c['to']('imageUploadProgress',_0xad8e77=>t('Loading\x20image...')+'\x20('+(_0xad8e77||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 _0x255f97{constructor(_0xe2274e){super(_0xe2274e);const t=_0xe2274e['t'];this['set']('errorType',null);const _0x11abcc=new _0x23d61e(_0xe2274e);_0x11abcc['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x11abcc['withText']=!0x0,_0x11abcc['class']='ck-button-action',_0x11abcc['on']('execute',()=>{this['fire']('retry');}),_0x11abcc['bind']('isVisible')['to'](this,'errorType',_0x346e51=>'NotFound'!==_0x346e51);const _0x276de9=new _0x15cd82();_0x276de9['content']=_0x3f8c3e,_0x276de9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xd1c3bf=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':[_0x276de9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xd1c3bf['to']('errorType',_0x305db1=>t('NotFound'!==_0x305db1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x11abcc]},{'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 _0x255f97{constructor(_0x41b62f,_0x2f35d8){super(_0x41b62f);const _0xe0a618=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2f35d8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xe0a618['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x512145,_0x26afae,_0x5b2dd6){super(_0x512145),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x512145),this['_errorView']=new ti(_0x512145),this['_editingView']=new ei(_0x512145,_0x5b2dd6),this['_focusableView']=new _0x255f97(_0x512145),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x26afae),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'],_0x35b364=>{this['_addUploadcareImageEditorListeners'](_0x35b364);});}),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'](_0x13e32d,_0xde4208){const _0x576c31='uc-cloud-image-editor',_0x587bcf=_0x13e32d['querySelector'](_0x576c31);if(_0x587bcf)return _0xde4208(_0x587bcf);const _0x552998=new MutationObserver(_0x1006b6=>{const _0x1e62ce=_0x1006b6['filter'](_0x2d1875=>_0x2d1875['target']===_0x13e32d&&_0x2d1875['addedNodes']['length']>0x0&&_0x2d1875['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x576c31);_0x1e62ce['length']&&(_0x552998['disconnect'](),_0xde4208(_0x1e62ce[0x0]['addedNodes'][0x0]));});_0x552998['observe'](_0x13e32d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4b4d7e){_0x4b4d7e['addEventListener']('apply',_0x5d2d77=>{this['fire']('apply',{'imageSrc':_0x5d2d77['detail']['cdnUrl']});}),_0x4b4d7e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2308c3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2fa64e,_0x5dd14e,_0xec7a41){super(),this['_editor']=_0x2fa64e,this['_dialog']=_0x5dd14e,this['_imageElement']=_0xec7a41,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 _0x5910f8=this['_imageElement'],_0x3b6fcf=_0x5910f8['getAttribute']('uploadcareImageId'),_0xd27f22=_0x5910f8['getAttribute']('src');if(_0x3b6fcf)await this['_loadImageInfo'](_0x3b6fcf,_0xd27f22);else{if(this['_imageCache']['has'](_0xd27f22)){const _0x1b4a9f=this['_imageCache']['get'](_0xd27f22);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b4a9f['url'],this['imageDimension']=_0x1b4a9f['dimension'],this['imageId']=_0x1b4a9f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x48894e}=this['_editor'],t=_0x48894e['t'],_0x35dc20=new X(_0x48894e,this['imageStatus'],this['_attributes']);_0x35dc20['bind']('status')['to'](this,'imageStatus'),_0x35dc20['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x35dc20['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x35dc20['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x35dc20,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x21b4d9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x35dc20,'position':_0x2a21c1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x35dc20['focus']();},'onHide':()=>{_0x35dc20['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5a3354=>!A(_0x5a3354,_0x35dc20['element'])}});}['_loadImageInfo'](_0x2b34a5,_0x1957da){return j['getInfo'](_0x2b34a5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2e1918=>{const {width:_0x58ab0a,height:_0x383bac}=_0x2e1918['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1957da,this['imageDimension']={'width':_0x58ab0a,'height':_0x383bac},this['imageId']=_0x2b34a5;})['catch'](_0x22ba58=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22ba58['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2fd7c5,_0x15d3c5){return this['_getImageAsFile'](_0x2fd7c5)['then'](_0x130a24=>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':_0x15d3c5['signal'],'file':_0x130a24,'onProgress':_0x5c1fa5=>{_0x5c1fa5&&_0x5c1fa5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5c1fa5['value']));}}))['then'](_0x4774cd=>{const {width:_0x3bd90a,height:_0x162343}=_0x4774cd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4774cd['cdnUrl'],this['imageDimension']={'width':_0x3bd90a,'height':_0x162343},this['imageId']=_0x4774cd['uuid'],this['imageUploadProgress']=null;const _0x54f70f=_0x2fd7c5['getAttribute']('src');this['_imageCache']['set'](_0x54f70f,{'id':_0x4774cd['uuid'],'url':_0x4774cd['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xdcbf41=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xdcbf41['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x28555c,_0x4957f4){_0x28555c['on']('apply',(_0x37f528,_0x40dbd9)=>{this['_replaceImage'](_0x4957f4,_0x40dbd9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x28555c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x28555c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x153a4c,_0xf8081e,_0x5c01e9){const _0x5ae3b8=this['_editor'],{width:_0x763fc1,height:_0x2feeed}=S(_0xf8081e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x431dae,imageSources:_0x3fa4ee}=C(_0xf8081e,_0x763fc1);_0x5ae3b8['model']['change'](_0x160622=>{if('$graveyard'===_0x153a4c['root']['rootName']){_0x5ae3b8['execute']('insertImage',{'imageType':_0x153a4c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x153a4c['getAttributes']()),'uploadcareImageId':_0x5c01e9,'src':_0x431dae,'sources':_0x3fa4ee,'width':_0x763fc1,'height':_0x2feeed}});const _0xdc6e80=_0x153a4c['getChildren']();_0x153a4c=_0x5ae3b8['model']['document']['selection']['getSelectedElement']();for(const _0x563b4e of _0xdc6e80)_0x160622['append'](_0x160622['cloneElement'](_0x563b4e),_0x153a4c);}else _0x160622['setSelection'](_0x153a4c,'on'),_0x5ae3b8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x153a4c['getAttributes']()),'uploadcareImageId':_0x5c01e9,'src':_0x431dae,'sources':_0x3fa4ee,'width':_0x763fc1,'height':_0x2feeed},_0x153a4c);_0x160622['setSelection'](_0x153a4c,'on');});}async['_getImageAsFile'](_0x1182ad){const _0x4c2c74=_0x49a30f['window'],_0x4446cb=_0x49a30f['document']['location']['href'],_0x405bd9=new _0x4c2c74['URL'](_0x1182ad['getAttribute']('src'),_0x4446cb);if('data:'===_0x405bd9['protocol']){const _0x47dbd1=_0x405bd9['href']['split'](','),_0x31b86b=_0x47dbd1[0x0]['match'](/:(.*?);/)[0x1],_0x31de62=_0x31b86b['split']('/')[0x1],_0x4281ef=_0x4c2c74['atob'](_0x47dbd1[_0x47dbd1['length']-0x1]);let _0x16e237=_0x4281ef['length'];const _0x3db92b=new _0x4c2c74['Uint8Array'](_0x16e237);for(;_0x16e237--;)_0x3db92b[_0x16e237]=_0x4281ef['charCodeAt'](_0x16e237);return new _0x4c2c74['File']([_0x3db92b],'image.'+_0x31de62,{'type':_0x31b86b});}const _0x3294be=_0x405bd9['href']['split']('/'),_0x310894=_0x3294be[_0x3294be['length']-0x1],_0x44ef4c=_0x310894['split']('.')[0x1];return _0x4c2c74['fetch'](_0x405bd9['href'])['then'](_0x3df063=>_0x3df063['clone']()['blob']())['then'](_0x4f76a2=>new _0x4c2c74['File']([_0x4f76a2],_0x310894,{'type':'image/'+_0x44ef4c}));}}class Q extends _0x1805a0{['imageEditController'];static get['requires'](){return[_0x54518c];}['_isEditable'];constructor(_0xec1ec){super(_0xec1ec),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x549e5a){const _0x14a8ea=z(_0x549e5a);return _0x3f98dc=>!(!_0x3f98dc||!_0x3f98dc['is']('element','imageBlock')&&!_0x3f98dc['is']('element','imageInline'))&&(!!_0x3f98dc['hasAttribute']('uploadcareImageId')||!!_0x3f98dc['hasAttribute']('src')&&_0x14a8ea(_0x3f98dc['getAttribute']('src')));}(_0xec1ec['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4a0143=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4a0143);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2553b1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2553b1&&(_0x2553b1['is']('element','imageBlock')||_0x2553b1['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x54518c),_0x2553b1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x1805a0{['refresh'](){const _0x1b4f78=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1b4f78&&(_0x1b4f78['is']('element','imageBlock')||_0x1b4f78['is']('element','imageInline')));}['execute'](_0x16527a){const _0x475726=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x32e061=>{_0x32e061['setAttributes'](_0x16527a,_0x475726),_0x32e061['removeAttribute']('srcset',_0x475726),_0x32e061['removeAttribute']('sizes',_0x475726);});}}class m extends _0x40a027{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x450039,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a0af5}=this;_0x1a0af5['commands']['add']('uploadcareImageEdit',new Q(_0x1a0af5)),_0x1a0af5['commands']['add']('uploadcareImageReplace',new V(_0x1a0af5));}}class g extends _0x40a027{['_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 _0x5a23ee=this['editor'];_0x5a23ee['ui']['componentFactory']['add']('uploadcareImageEdit',_0x166975=>{const _0x240bfd=_0x5a23ee['commands']['get']('uploadcareImageEdit'),_0x45c452=new _0x23d61e(_0x166975),t=_0x166975['t'];return _0x45c452['set']({'icon':_0x21b4d9,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x45c452['bind']('isEnabled')['to'](_0x240bfd),_0x45c452['bind']('isOn')['to'](_0x240bfd,'isActive'),this['listenTo'](_0x45c452,'execute',()=>{_0x5a23ee['execute']('uploadcareImageEdit'),_0x5a23ee['editing']['view']['focus']();}),_0x45c452;}),this['_initConfig']();}['_initConfig'](){const _0x541995=_0x43e691(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x541995),this['listenTo'](this['editor'],'destroy',()=>{_0x541995['remove']();});}}class et extends _0x40a027{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x3bd795,Command as _0x2b6c67}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3dae0a,IconGooglePhotos as _0x24ad2a,IconGoogleDrive as _0xfa8fa1,IconFacebook as _0x29c12c,IconDropbox as _0x4bf518,IconUploadcareLink as _0x3bf0a3,IconUploadcareImageUpload as _0x560df5,IconError as _0x5c74cf,IconUploadcareImageEdit as _0x1028ed}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x172be1,MenuBarMenuListItemButtonView as _0x34ec69,View as _0x385054,FocusCycler as _0x4a9a0f,Dialog as _0xbe1041,DialogViewPosition as _0x18301e,SpinnerView as _0x596a6a,IconView as _0x4b9e44,Notification as _0x358e78}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x192bc1,DomEmitterMixin as _0x559077,global as _0x544b6e,getAncestors as _0x347472,ObservableMixin as _0x6d5f1b,uid as _0x4dfcd6,createElement as _0x39ed0a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x522ef2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x46c247,info as _0x2d800f}from'@uploadcare/upload-client';import*as _0x4ae532 from'@uploadcare/file-uploader';var i=function(_0x30d7ff){return _0x30d7ff['Local']='local',_0x30d7ff['URL']='url',_0x30d7ff['Dropbox']='dropbox',_0x30d7ff['GDrive']='gdrive',_0x30d7ff['Facebook']='facebook',_0x30d7ff['GPhotos']='gphotos',_0x30d7ff['OneDrive']='onedrive',_0x30d7ff;}({});function _(_0x5d7d15,_0x4333fe,_0x2826a7){const t=_0x5d7d15['t'],_0x4292f6=_0x5d7d15['t'];switch(_0x4333fe){case i['Local']:return{'text':_0x4292f6('Insert'===_0x2826a7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4292f6('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2826a7?_0x4292f6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4292f6('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2826a7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2826a7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2826a7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2826a7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2826a7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4333fe;}}class e extends _0x3bd795{['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 _0x33b739=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf820ac;for(const _0x4555ef in _0x33b739){const _0x49e04c=_0x4555ef,_0x171325=_0x33b739[_0x49e04c];if('uploadcareLicenseKeyValid'==_0x171325||'uploadcareLicenseKeyInvalid'==_0x171325||'uploadcareLicenseKeyExpired'==_0x171325||'uploadcareLicenseKeyDomainLimit'==_0x171325||'uploadcareLicenseKeyNotAllowed'==_0x171325||'uploadcareLicenseKeyEvaluationLimit'==_0x171325||'uploadcareLicenseKeyTrialLimit'==_0x171325||'uploadcareLicenseKeyUsageLimit'==_0x171325){delete _0x33b739[_0x49e04c],_0xf820ac=_0x171325,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xf820ac&&_0x33b739['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xf820ac&&_0x33b739['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xf820ac&&_0x33b739['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xf820ac&&_0x33b739['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xf820ac&&_0x33b739['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xf820ac&&_0x33b739['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xf820ac&&_0x33b739['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x35068f}=this,_0x516d47=_0x35068f['commands']['get']('uploadcare');if(!_0x516d47)return;const _0x50786a=this['_normalizeConfigSourceList'](_0x35068f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x19adb6,_0x481c65)=>{const _0x4b2f7d=this['_getIntegrationKey'](_0x481c65['type']);return _0x19adb6[_0x4b2f7d]||(_0x19adb6[_0x4b2f7d]=[]),_0x19adb6[_0x4b2f7d]['push'](_0x481c65),_0x19adb6;},{});_0x35068f['plugins']['has']('ImageInsertUI')&&_0x35068f['commands']['get']('uploadcare')&&Object['entries'](_0x50786a)['forEach'](([_0x3e2969,_0x413c6e])=>{_0x35068f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3e2969,'observable':()=>_0x516d47,'buttonViewCreator':()=>this['_createToolbarButton'](_0x413c6e),'formViewCreator':()=>this['_createDropdownButtons'](_0x413c6e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x413c6e),'override':'assetManager'!==_0x3e2969});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x50015c){const {locale:_0x530388}=this['editor'];return _0x50015c['map'](_0x30bcfa=>{const _0x248377=_(_0x530388,_0x30bcfa,'Insert');switch(_0x30bcfa){case i['Local']:return{'icon':_0x560df5,'type':i['Local'],..._0x248377};case i['URL']:return{'icon':_0x3bf0a3,'type':i['URL'],..._0x248377};case i['Dropbox']:return{'icon':_0x4bf518,'type':i['Dropbox'],..._0x248377};case i['Facebook']:return{'icon':_0x29c12c,'type':i['Facebook'],..._0x248377};case i['GDrive']:return{'icon':_0xfa8fa1,'type':i['GDrive'],..._0x248377};case i['GPhotos']:return{'icon':_0x24ad2a,'type':i['GPhotos'],..._0x248377};case i['OneDrive']:return{'icon':_0x3dae0a,'type':i['OneDrive'],..._0x248377};}});}['_getIntegrationKey'](_0x2fc021){switch(_0x2fc021){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xff8cb8,_0x590adc){const _0x383734=this['editor'],_0x3cc846=new _0xff8cb8(_0x383734['locale']),_0x36d859=_0x383734['commands']['get']('uploadcare');return _0x3cc846['bind']('isEnabled')['to'](_0x36d859),_0x3cc846['on']('execute',()=>{_0x36d859['execute'](_0x590adc);}),_0x3cc846;}['_createToolbarButton'](_0x589d35){const {locale:_0x8b7ce7}=this['editor'],_0x5a25c6=this['editor']['plugins']['get']('ImageInsertUI'),_0x172860=_0x589d35[0x0],_0x5b6273=this['_createButton'](_0x172be1,_0x172860['type']);return _0x5b6273['icon']=_0x172860['icon'],_0x5b6273['bind']('label')['to'](_0x5a25c6,'isImageSelected',_0x17e2e5=>_(_0x8b7ce7,_0x172860['type'],_0x17e2e5?'Replace':'Insert')['text']),_0x5b6273['tooltip']=!0x0,_0x5b6273;}['_createDropdownButtons'](_0x102b60){const {locale:_0x13e30b}=this['editor'],_0x252573=this['editor']['plugins']['get']('ImageInsertUI');return _0x102b60['map'](_0x2cb1de=>{const _0x455264=this['_createButton'](_0x172be1,_0x2cb1de['type']);return _0x455264['withText']=!0x0,_0x455264['icon']=_0x2cb1de['icon'],_0x455264['bind']('label')['to'](_0x252573,'isImageSelected',_0x4a265b=>_(_0x13e30b,_0x2cb1de['type'],_0x4a265b?'Replace':'Insert')['text']),_0x455264;});}['_createMenuBarButtons'](_0x107e1d){return _0x107e1d['map'](_0x5375f4=>{const _0x3816fc=this['_createButton'](_0x34ec69,_0x5375f4['type']);return _0x3816fc['icon']=_0x5375f4['icon'],_0x3816fc['label']=_0x5375f4['shortText'],_0x3816fc;});}}class F extends _0x385054{['focusTracker'];['focusCycler'];constructor(_0x256c0f){super(_0x256c0f),this['focusTracker']=new _0x192bc1(),this['focusCycler']=new _0x4a9a0f({'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(_0x568102,_0x2a9651){super(_0x568102),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-'+_0x2a9651}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x47ce31,_0xb2ca9f){const _0x43ff11=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x366edc=>_0x366edc<=_0xb2ca9f)['map'](_0x236c40=>_0x47ce31['replace'](/\/$/,'')+'/-/resize/'+_0x236c40+'x/\x20'+_0x236c40+'w');return{'imageFallbackUrl':_0x47ce31,'imageSources':[{'srcset':_0x43ff11['join'](',\x20'),'sizes':'(max-width:\x20'+_0xb2ca9f+'px)\x20100vw,\x20'+_0xb2ca9f+'px','type':'image/webp'}]};}function S(_0x1c219d,_0x1d70ec,_0x1c4d0b){const _0x3f9c49=_0x1c219d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3f9c49?parseInt(_0x3f9c49[0x1],0xa):_0x1d70ec,'height':_0x3f9c49?parseInt(_0x3f9c49[0x2],0xa):_0x1c4d0b};}function p(_0x3159ef,_0xbfc5b5){const _0x39050f=new(_0x559077())(),_0x45ee84=_0x3159ef['plugins']['get']('ImageUtils'),_0x2ca80c=_0x3159ef['editing']['mapper']['toViewElement'](_0xbfc5b5),_0x45ab31=_0x45ee84['findViewImgElement'](_0x2ca80c),_0x50d631=_0x3159ef['editing']['view']['domConverter']['viewToDom'](_0x45ab31),_0xa111f0=_0xbfc5b5['getAttribute']('width'),_0x45d168=_0xbfc5b5['getAttribute']('height'),_0x196efd='image-processing';_0x3159ef['editing']['view']['change'](_0x175a45=>{_0x175a45['addClass'](_0x196efd,_0x2ca80c),_0x175a45['setStyle']('aspect-ratio',_0xa111f0+'/'+_0x45d168,_0x45ab31);}),_0x39050f['listenTo'](_0x50d631,'load',()=>{_0x39050f['stopListening'](_0x50d631,'load'),_0x3159ef['editing']['view']['change'](_0x3f2c91=>{_0x3f2c91['removeClass'](_0x196efd,_0x2ca80c),_0x3f2c91['removeStyle']('aspect-ratio',_0x45ab31);});});}function z(_0x61fc64){if(Array['isArray'](_0x61fc64)){const _0x34575e=_0x61fc64['map'](z);return _0x5ddb4e=>_0x34575e['some'](_0x55ee74=>_0x55ee74(_0x5ddb4e));}if('origin'==_0x61fc64){const _0xc1ee5c=_0x544b6e['window']['location']['origin'];return _0x35f88f=>new URL(_0x35f88f,_0x544b6e['document']['baseURI'])['origin']==_0xc1ee5c;}return'function'==typeof _0x61fc64?_0x61fc64:_0x61fc64 instanceof RegExp?_0xca63a4=>!(!_0xca63a4['match'](_0x61fc64)&&!_0xca63a4['replace'](/^https?:\/\//,'')['match'](_0x61fc64)):()=>!0x1;}function A(_0x4ad895,_0x4205c5){return _0x347472(_0x4ad895['target'])['includes'](_0x4205c5);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x6d5f1b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x6aab2c,_0x5c2b96,_0x564cd0){super(),this['_editor']=_0x6aab2c,this['_editing']=_0x5c2b96,this['_dialog']=_0x6aab2c['plugins']['get'](_0xbe1041),this['_api']=_0x5c2b96['ctxElement']['getAPI'](),this['_type']=_0x564cd0,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:_0x162c14,model:_0x23bf20}=this['_editor'],_0x2be23d=_0x23bf20['document']['selection']['getSelectedElement'](),_0x105cf7=_0x2be23d&&(_0x2be23d['is']('element','imageBlock')||_0x2be23d['is']('element','imageInline'));this['_formView']=new x(_0x162c14,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x560df5,'title':_(_0x162c14,this['_type'],_0x105cf7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x18301e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xfe1d26=>!A(_0xfe1d26,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3a4a6f}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x25e103=>{const _0x34f4e9=_0x3a4a6f['length'];for(const _0x105d7a of _0x3a4a6f){const _0x55104d=_0x105d7a===_0x3a4a6f[_0x34f4e9-0x1],{cdnUrl:_0x3d9e09,fileInfo:_0x2ad9db}=_0x105d7a;if(!_0x3d9e09||!_0x2ad9db)continue;const {width:_0x58ecab,height:_0x2c9ac0}=_0x2ad9db['imageInfo'],_0x34f8ed=S(_0x3d9e09,_0x58ecab,_0x2c9ac0),_0x2ad30d=C(_0x3d9e09,_0x34f8ed['width']),_0x5e981e={'id':_0x2ad9db['uuid'],'type':'image','attributes':{'imageDimension':_0x34f8ed,..._0x2ad30d}};this['_insertAsset'](_0x5e981e,_0x55104d,_0x25e103);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2c21aa=>{'idle'===_0x2c21aa['detail']['status']&&!_0x2c21aa['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xb04f17,_0x18345a,_0x421c8){const _0x392d01=this['_editor']['model']['document']['selection'],_0x2dec84=_0x392d01['getSelectedElement'](),_0x5d0116=!(!_0x2dec84||!_0x2dec84['is']('element','imageInline'));_0x421c8['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xb04f17,_0x5d0116),_0x18345a||_0x421c8['setSelection'](_0x392d01['getLastPosition']());}['_insertImage'](_0x2bcd11,_0x4d3831){const _0x2691d6=this['_editor'],{imageDimension:_0x1edf15,imageFallbackUrl:_0x2e5ffc,imageSources:_0x95bfc7}=_0x2bcd11['attributes'];_0x2691d6['execute']('insertImage',{'imageType':_0x4d3831?'imageInline':null,'source':{'uploadcareImageId':_0x2bcd11['id'],'src':_0x2e5ffc,'sources':_0x95bfc7,..._0x1edf15}});}}class w extends _0x2b6c67{['_editing'];['_controller']=null;static get['requires'](){return[_0xbe1041,o];}constructor(_0x1577cc){super(_0x1577cc),this['_editing']=_0x1577cc['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3195d8){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3195d8);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1282f9,..._0x3145de}){return _0x46c247(_0x1282f9,_0x3145de);}static['getInfo'](_0x5e5fd4,_0x4c2a34){return _0x2d800f(_0x5e5fd4,_0x4c2a34);}}class f extends _0x3bd795{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x522ef2,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1256c9=this['editor'];if(!!!_0x1256c9['config']['get']('uploadcare'))return;_0x1256c9['plugins']['get'](_0x522ef2)['createUploadAdapter']=_0x580ee8=>new k(_0x580ee8,_0x1256c9),_0x1256c9['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x14def7,{imageElement:_0x1e2bf1,data:_0xadc252})=>{_0x1256c9['model']['change'](_0x7a980e=>{_0x7a980e['setAttribute']('uploadcareImageId',_0xadc252['uploadcareImageId'],_0x1e2bf1);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5480e3,_0x1780ee){this['loader']=_0x5480e3,this['editor']=_0x1780ee,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1d6fa7=await this['loader']['file'];return j['upload']({'file':_0x1d6fa7,'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':_0x31e7a7=>{_0x31e7a7&&_0x31e7a7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x31e7a7['value']);}})['then'](async _0x2cdfcc=>{const {imageFallbackUrl:_0x144571,imageSources:_0x2e14f8}=C(_0x2cdfcc['cdnUrl'],_0x2cdfcc['imageInfo']['width']);return{'uploadcareImageId':_0x2cdfcc['uuid'],'default':_0x144571,'sources':_0x2e14f8};})['catch'](()=>{const _0x50d666=t('Cannot\x20upload\x20file:')+('\x20'+_0x1d6fa7['name']+'.');return Promise['reject'](_0x50d666);});}['abort'](){this['controller']['abort']();}}class o extends _0x3bd795{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xbe1041];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xedb602){super(_0xedb602),this['ucContextId']=_0x4dfcd6();}['init'](){const _0x287b8a=this['editor'];_0x287b8a['commands']['add']('uploadcare',new w(_0x287b8a));}['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 _0x1ed41f=_0x544b6e['document']['querySelector']('input[uploadcare-file-input]');_0x1ed41f&&_0x1ed41f['remove']();}),async function(_0x2ffe83){const _0x333a03=_0x41f30d([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x441afa=0x535f8c3a,_0x1b70b0=0x5358f672^_0x441afa,_0xc737a0=window[_0x41f30d([0x44,0x61,0x74,0x65])][_0x41f30d([0x6e,0x6f,0x77])](),_0x3b2e46=_0x2ffe83[_0x41f30d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xce099b=new window[(_0x41f30d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b4350=>{_0x3b2e46[_0x41f30d([0x6f,0x6e,0x63,0x65])](_0x41f30d([0x72,0x65,0x61,0x64,0x79]),_0x1b4350);}),_0x3b3267={[_0x41f30d([0x6b,0x74,0x79])]:_0x41f30d([0x45,0x43]),[_0x41f30d([0x75,0x73,0x65])]:_0x41f30d([0x73,0x69,0x67]),[_0x41f30d([0x63,0x72,0x76])]:_0x41f30d([0x50,0x2d,0x32,0x35,0x36]),[_0x41f30d([0x78])]:_0x41f30d([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]),[_0x41f30d([0x79])]:_0x41f30d([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]),[_0x41f30d([0x61,0x6c,0x67])]:_0x41f30d([0x45,0x53,0x32,0x35,0x36])},_0x120f0f=_0x3b2e46[_0x41f30d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x41f30d([0x67,0x65,0x74])](_0x41f30d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34ef0a(){let _0x1ef546,_0x3ca47c=null,_0x3bcf1c=null;try{if(_0x120f0f==_0x41f30d([0x47,0x50,0x4c]))return _0x41f30d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1ef546=_0x196b84(),!_0x1ef546)return _0x41f30d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1ef546[_0x41f30d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3bcf1c=_0x335f82(_0x1ef546[_0x41f30d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1ef546[_0x41f30d([0x6a,0x74,0x69])])),await _0x6bda32()?_0x577857()?_0x4c4788()?_0x41f30d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12f510()?(_0x1ef546[_0x41f30d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41f30d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ca47c=_0x565d69(_0x41f30d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1ef546[_0x41f30d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41f30d([0x74,0x72,0x69,0x61,0x6c])&&(_0x3ca47c=_0x565d69(_0x41f30d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5261ae()):_0x41f30d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x41f30d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x41f30d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x41f30d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4c4788(){const _0x1ff132=[_0x41f30d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x41f30d([0x74,0x72,0x69,0x61,0x6c])][_0x41f30d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ef546[_0x41f30d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc737a0/0x3e8:0xe10*_0x1b70b0;return _0x1ef546[_0x41f30d([0x65,0x78,0x70])]<_0x1ff132;}function _0x577857(){const _0x158a9d=_0x1ef546[_0x41f30d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x158a9d&&(!!_0x158a9d[_0x41f30d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41f30d([0x2a]))||!!_0x158a9d[_0x41f30d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41f30d([0x55,0x50,0x4c,0x43])));}function _0x12f510(){const _0x285325=_0x1ef546[_0x41f30d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x285325||0x0==_0x285325[_0x41f30d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x39dde1}=new URL(window[_0x41f30d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x285325[_0x41f30d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39dde1))return!0x0;const _0x4b02e2=_0x39dde1[_0x41f30d([0x73,0x70,0x6c,0x69,0x74])](_0x41f30d([0x2e]));return _0x285325[_0x41f30d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ad00a=>_0x2ad00a[_0x41f30d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41f30d([0x2a])))[_0x41f30d([0x6d,0x61,0x70])](_0x5c94ca=>_0x5c94ca[_0x41f30d([0x73,0x70,0x6c,0x69,0x74])](_0x41f30d([0x2e])))[_0x41f30d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c7de0=>_0x5c7de0[_0x41f30d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4b02e2[_0x41f30d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41f30d([0x6d,0x61,0x70])](_0x43b2bc=>Array(_0x4b02e2[_0x41f30d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x43b2bc[_0x41f30d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41f30d([0x66,0x69,0x6c,0x6c])](_0x43b2bc[0x0]===_0x41f30d([0x2a])?_0x41f30d([0x2a]):'')[_0x41f30d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x43b2bc))[_0x41f30d([0x73,0x6f,0x6d,0x65])](_0x163c19=>_0x4b02e2[_0x41f30d([0x65,0x76,0x65,0x72,0x79])]((_0x16de0b,_0x330894)=>_0x163c19[_0x330894]===_0x16de0b||_0x163c19[_0x330894]===_0x41f30d([0x2a])));}function _0x5261ae(){return _0x3ca47c&&_0x3bcf1c?new window[(_0x41f30d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x592825,_0x7a9da4)=>{_0x3ca47c[_0x41f30d([0x74,0x68,0x65,0x6e])](_0x592825,_0x7a9da4),_0x3bcf1c[_0x41f30d([0x74,0x68,0x65,0x6e])](_0x3b660d=>{_0x3b660d!=_0x41f30d([0x56,0x61,0x6c,0x69,0x64])&&_0x592825(_0x3b660d);},_0x7a9da4);}):_0x3ca47c||_0x3bcf1c||_0x41f30d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x335f82(_0x1541f5,_0x3bba52){return new window[(_0x41f30d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x102f10=>{if(_0x3d291b())return _0x102f10(_0x41f30d([0x56,0x61,0x6c,0x69,0x64]));_0x43731b(),_0x3b2e46[_0x41f30d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x41f30d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x203e27=!0x1;const _0x4f95aa=_0x4dfcd6();function _0x3fc86d(_0x735d93){return!!_0x735d93&&(typeof _0x735d93===_0x41f30d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x735d93===_0x41f30d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x735d93[_0x41f30d([0x74,0x68,0x65,0x6e])]===_0x41f30d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x735d93[_0x41f30d([0x63,0x61,0x74,0x63,0x68])]===_0x41f30d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x236101(_0x1ebfa5){_0x13a463(_0x1ebfa5)[_0x41f30d([0x74,0x68,0x65,0x6e])](_0x44d8a2=>{if(!_0x44d8a2||_0x44d8a2[_0x41f30d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x41f30d([0x6f,0x6b]))return _0x41f30d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e3383(_0x3402a5(_0x4f95aa+_0x3bba52))!=_0x44d8a2[_0x41f30d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x41f30d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x41f30d([0x56,0x61,0x6c,0x69,0x64]);})[_0x41f30d([0x74,0x68,0x65,0x6e])](_0x50eaf6=>(_0x44d77e(),_0x50eaf6),()=>{const _0x45b644=_0x223c5d();return null==_0x45b644?(_0x44d77e(),_0x41f30d([0x56,0x61,0x6c,0x69,0x64])):_0x41f30d(_0xc737a0-_0x45b644>(0x7753083a^_0x441afa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x41f30d([0x74,0x68,0x65,0x6e])](_0x102f10)[_0x41f30d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x102f10(_0x41f30d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x99f2c1=0x536962ba^_0x441afa;function _0x44d77e(){const _0x2f8472=_0x41f30d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e3383(_0x3402a5(_0x1541f5)),_0x596e94=_0x495fb9(_0x4e3383(window[_0x41f30d([0x4d,0x61,0x74,0x68])][_0x41f30d([0x63,0x65,0x69,0x6c])](_0xc737a0/_0x99f2c1)));window[_0x41f30d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41f30d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f8472,_0x596e94);}function _0x223c5d(){const _0x3be93c=_0x41f30d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e3383(_0x3402a5(_0x1541f5)),_0x1aea26=window[_0x41f30d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41f30d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3be93c);return _0x1aea26?window[_0x41f30d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x495fb9(_0x1aea26),0x10)*_0x99f2c1:null;}function _0x13a463(_0x1547aa){return new window[(_0x41f30d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8ee6f6,_0x561a16)=>{_0x1547aa[_0x41f30d([0x74,0x68,0x65,0x6e])](_0x8ee6f6,_0x561a16),window[_0x41f30d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x561a16,0x535e58fa^_0x441afa);});}}_0x3b2e46[_0x41f30d([0x6f,0x6e])](_0x41f30d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26ad40,_0x42f9cd)=>{if(_0x42f9cd[0x0]!=_0x1541f5)return _0x102f10(_0x41f30d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x42f9cd[0x1]={..._0x42f9cd[0x1],[_0x41f30d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f95aa};},{[_0x41f30d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41f30d([0x68,0x69,0x67,0x68])}),_0x3b2e46[_0x41f30d([0x6f,0x6e])](_0x41f30d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1dcd73=>{_0x3fc86d(_0x1dcd73[_0x41f30d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x203e27=!0x0,_0x236101(_0x1dcd73[_0x41f30d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x41f30d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41f30d([0x6c,0x6f,0x77])}),_0xce099b[_0x41f30d([0x74,0x68,0x65,0x6e])](()=>{_0x203e27||_0x102f10(_0x41f30d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d291b(){return _0x3b2e46[_0x41f30d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41f30d([0x76,0x69,0x65,0x77])][_0x41f30d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x41f30d([0x61,0x75,0x74,0x6f]);}function _0x43731b(){_0x3b2e46[_0x41f30d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41f30d([0x76,0x69,0x65,0x77])][_0x41f30d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41f30d([0x61,0x75,0x74,0x6f]);}}function _0x565d69(_0x4f4186){const _0x5b48c2=[new window[(_0x41f30d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fa265=>setTimeout(_0x2fa265,0x5356b2f6^_0x441afa)),_0xce099b[_0x41f30d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x41f30d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d5986=>{let _0x634819=0x0;_0x3b2e46[_0x41f30d([0x6d,0x6f,0x64,0x65,0x6c])][_0x41f30d([0x6f,0x6e])](_0x41f30d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x44b72f,_0x58dd48)=>{_0x58dd48[0x0][_0x41f30d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x634819++,_0x634819==(0x535f8dc2^_0x441afa)&&(_0x4d5986(),_0x44b72f[_0x41f30d([0x6f,0x66,0x66])]());});}))];return window[_0x41f30d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41f30d([0x72,0x61,0x63,0x65])](_0x5b48c2)[_0x41f30d([0x74,0x68,0x65,0x6e])](()=>_0x4f4186);}async function _0x568fc7(){await _0xce099b,_0x3b2e46[_0x41f30d([0x6d,0x6f,0x64,0x65,0x6c])][_0x41f30d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13beca,_0x3b2e46[_0x41f30d([0x6d,0x6f,0x64,0x65,0x6c])][_0x41f30d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13beca,_0x3b2e46[_0x41f30d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x41f30d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x24e709(_0x38d8fd){const _0x4b178f=_0x1af17b();_0x3b2e46[_0x4b178f]=_0x41f30d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x38d8fd,_0x38d8fd!=_0x41f30d([0x56,0x61,0x6c,0x69,0x64])&&_0x568fc7();}function _0x1af17b(){const _0x2456d1=window[_0x41f30d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x41f30d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x41f30d([0x6e,0x6f,0x77])]())[_0x41f30d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x41f30d([0x2e]),'');let _0x36bec6=_0x41f30d([0x68]);for(let _0xf69eb7=0x0;_0xf69eb7<_0x2456d1[_0x41f30d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf69eb7+=0x2){let _0x5e71f1=window[_0x41f30d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2456d1[_0x41f30d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf69eb7,_0xf69eb7+0x2));_0x5e71f1>=_0x333a03[_0x41f30d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e71f1-=_0x333a03[_0x41f30d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x36bec6+=_0x333a03[_0x5e71f1];}return _0x36bec6;}function _0x196b84(){const _0x4cdc2e=_0x120f0f[_0x41f30d([0x73,0x70,0x6c,0x69,0x74])](_0x41f30d([0x2e]));if(0x3!=_0x4cdc2e[_0x41f30d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12420b(_0x4cdc2e[0x1]);function _0x12420b(_0x3e7642){const _0x3e89ab=_0x233aa1(_0x3e7642);return _0x3e89ab&&_0x56111d()?_0x3e89ab:null;function _0x56111d(){const _0x69eedf=_0x3e89ab[_0x41f30d([0x6a,0x74,0x69])],_0x591dfd=window[_0x41f30d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x69eedf[_0x41f30d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x69eedf[_0x41f30d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2cb47b={..._0x3e89ab,[_0x41f30d([0x6a,0x74,0x69])]:_0x69eedf[_0x41f30d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x69eedf[_0x41f30d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2cb47b[_0x41f30d([0x76,0x63])],_0x3402a5(_0x2cb47b)==_0x591dfd;}}}async function _0x6bda32(){let _0x24c231=!0x0;try{const _0x111855=_0x120f0f[_0x41f30d([0x73,0x70,0x6c,0x69,0x74])](_0x41f30d([0x2e])),[_0x35a360,_0x246dff,_0x4ee607]=_0x111855;return _0x2a5821(_0x35a360),await _0x2a5f6f(_0x35a360,_0x246dff,_0x4ee607),_0x24c231;}catch{return!0x1;}function _0x2a5821(_0x196a83){const _0x196c16=_0x233aa1(_0x196a83);_0x196c16&&_0x196c16[_0x41f30d([0x61,0x6c,0x67])]==_0x41f30d([0x45,0x53,0x32,0x35,0x36])||(_0x24c231=!0x1);}async function _0x2a5f6f(_0x34cecc,_0x1301a3,_0x8a5f5b){const _0x4e1287=window[_0x41f30d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x41f30d([0x66,0x72,0x6f,0x6d])](_0x6a73c7(_0x8a5f5b),_0x3bd588=>_0x3bd588[_0x41f30d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x362dfc=new window[(_0x41f30d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x41f30d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x34cecc+_0x41f30d([0x2e])+_0x1301a3),_0x2195f3=window[_0x41f30d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x41f30d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2195f3)return;const _0x1345de=await _0x2195f3[_0x41f30d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x41f30d([0x6a,0x77,0x6b]),_0x3b3267,{[_0x41f30d([0x6e,0x61,0x6d,0x65])]:_0x41f30d([0x45,0x43,0x44,0x53,0x41]),[_0x41f30d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x41f30d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x41f30d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2195f3[_0x41f30d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x41f30d([0x6e,0x61,0x6d,0x65])]:_0x41f30d([0x45,0x43,0x44,0x53,0x41]),[_0x41f30d([0x68,0x61,0x73,0x68])]:{[_0x41f30d([0x6e,0x61,0x6d,0x65])]:_0x41f30d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1345de,_0x4e1287,_0x362dfc)||(_0x24c231=!0x1);}}function _0x233aa1(_0x20ee04){return _0x20ee04[_0x41f30d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x41f30d([0x65,0x79]))?JSON[_0x41f30d([0x70,0x61,0x72,0x73,0x65])](_0x6a73c7(_0x20ee04)):null;}function _0x6a73c7(_0x44e923){return window[_0x41f30d([0x61,0x74,0x6f,0x62])](_0x44e923[_0x41f30d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x41f30d([0x2b]))[_0x41f30d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x41f30d([0x2f])));}function _0x3402a5(_0x432512){let _0x4300a2=0x1505;function _0x316a1b(_0x2636f8){for(let _0x2e69fb=0x0;_0x2e69fb<_0x2636f8[_0x41f30d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e69fb++){const _0x480a2b=_0x2636f8[_0x41f30d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e69fb);_0x4300a2=(_0x4300a2<<0x5)+_0x4300a2+_0x480a2b,_0x4300a2&=_0x4300a2;}}function _0x392087(_0x4f7c6b){Array[_0x41f30d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f7c6b)?_0x4f7c6b[_0x41f30d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x392087):_0x4f7c6b&&typeof _0x4f7c6b==_0x41f30d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x41f30d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f7c6b)[_0x41f30d([0x73,0x6f,0x72,0x74])]()[_0x41f30d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x25122f,_0x234244])=>{_0x316a1b(_0x25122f),_0x392087(_0x234244);}):_0x316a1b(window[_0x41f30d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f7c6b));}return _0x392087(_0x432512),_0x4300a2>>>0x0;}function _0x4e3383(_0x3167d8){return _0x3167d8[_0x41f30d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x41f30d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x41f30d([0x30]));}function _0x495fb9(_0x42ea1f){return _0x42ea1f[_0x41f30d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x41f30d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x41f30d([0x6a,0x6f,0x69,0x6e])]('');}function _0x13beca(){}function _0x41f30d(_0x2a1474){return _0x2a1474['map'](_0x147a1f=>String['fromCharCode'](_0x147a1f))['join']('');}_0x24e709(await _0x34ef0a());}(this);}['_initSchema'](){const _0x213c2b=this['editor']['model']['schema'];_0x213c2b['isRegistered']('imageBlock')&&_0x213c2b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x213c2b['isRegistered']('imageInline')&&_0x213c2b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5bd22a=this['editor'];_0x5bd22a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5bd22a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4bd8dd=>_0x4bd8dd['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x21ddf9=_0x5bd22a['commands']['get']('replaceImageSource');_0x21ddf9&&this['listenTo'](_0x21ddf9,'cleanupImage',(_0x5ca11b,[_0x4bfb17,_0x28b239])=>{_0x4bfb17['removeAttribute']('uploadcareImageId',_0x28b239);});}['_initConfig'](){const _0x7bf39d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5b9776=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x39ed0a(_0x544b6e['document'],'uc-config',{..._0x7bf39d,'pubkey':_0x5b9776,'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']=_0x383376=>{if('closeMax'==_0x383376)return'#uc-icon-arrow-down';},_0x544b6e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x39ed0a(_0x544b6e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x544b6e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x54c9cb=this['editor']['commands']['get']('insertImage');_0x54c9cb&&this['listenTo'](_0x54c9cb,'execute',()=>{const _0x557c14=this['editor']['model']['document']['selection']['getSelectedElement']();_0x557c14&&_0x557c14['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x557c14);});});const _0x225e0b=this['editor']['commands']['get']('uploadcareImageReplace');_0x225e0b&&this['listenTo'](_0x225e0b,'execute',()=>{const _0x509f6c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x509f6c&&_0x509f6c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x509f6c);});});}}class tt extends _0x3bd795{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe0f7bd){super(_0xe0f7bd),_0xe0f7bd['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4ae532['defineComponents'](_0x4ae532),this['_defineLocale']();}['_defineLocale'](){const _0x279839=this['editor']['config']['get']('uploadcare.locale'),_0x484951=this['editor']['locale']['contentLanguage'];_0x279839&&_0x4ae532['defineLocale'](_0x484951,_0x279839);}}class ii extends _0x385054{constructor(_0x37558d){super(_0x37558d);const t=_0x37558d['t'],_0x4fa1b5=this['bindTemplate'],_0x108a0e=new _0x596a6a();_0x108a0e['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':[_0x108a0e,{'text':_0x4fa1b5['to']('imageUploadProgress',_0x19d08c=>t('Loading\x20image...')+'\x20('+(_0x19d08c||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 _0x385054{constructor(_0x2b5520){super(_0x2b5520);const t=_0x2b5520['t'];this['set']('errorType',null);const _0x4bab26=new _0x172be1(_0x2b5520);_0x4bab26['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4bab26['withText']=!0x0,_0x4bab26['class']='ck-button-action',_0x4bab26['on']('execute',()=>{this['fire']('retry');}),_0x4bab26['bind']('isVisible')['to'](this,'errorType',_0x5337a0=>'NotFound'!==_0x5337a0);const _0x34de5e=new _0x4b9e44();_0x34de5e['content']=_0x5c74cf,_0x34de5e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x73ad67=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':[_0x34de5e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x73ad67['to']('errorType',_0x3083e7=>t('NotFound'!==_0x3083e7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4bab26]},{'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 _0x385054{constructor(_0x4540e6,_0x1c8c0f){super(_0x4540e6);const _0x2d11c1=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1c8c0f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2d11c1['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x30431b,_0xcd9896,_0x5cfec4){super(_0x30431b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x30431b),this['_errorView']=new ti(_0x30431b),this['_editingView']=new ei(_0x30431b,_0x5cfec4),this['_focusableView']=new _0x385054(_0x30431b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xcd9896),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'],_0x1f1eb1=>{this['_addUploadcareImageEditorListeners'](_0x1f1eb1);});}),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'](_0x54c163,_0x328acb){const _0x475d94='uc-cloud-image-editor',_0x445a0e=_0x54c163['querySelector'](_0x475d94);if(_0x445a0e)return _0x328acb(_0x445a0e);const _0x442508=new MutationObserver(_0x26e307=>{const _0x5ddffd=_0x26e307['filter'](_0x37ab30=>_0x37ab30['target']===_0x54c163&&_0x37ab30['addedNodes']['length']>0x0&&_0x37ab30['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x475d94);_0x5ddffd['length']&&(_0x442508['disconnect'](),_0x328acb(_0x5ddffd[0x0]['addedNodes'][0x0]));});_0x442508['observe'](_0x54c163,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xb24aae){_0xb24aae['addEventListener']('apply',_0x30e50b=>{this['fire']('apply',{'imageSrc':_0x30e50b['detail']['cdnUrl']});}),_0xb24aae['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x6d5f1b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x37ad70,_0x32b919,_0x4da984){super(),this['_editor']=_0x37ad70,this['_dialog']=_0x32b919,this['_imageElement']=_0x4da984,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 _0x39fd0e=this['_imageElement'],_0x5d4e54=_0x39fd0e['getAttribute']('uploadcareImageId'),_0x2112b9=_0x39fd0e['getAttribute']('src');if(_0x5d4e54)await this['_loadImageInfo'](_0x5d4e54,_0x2112b9);else{if(this['_imageCache']['has'](_0x2112b9)){const _0x6e9576=this['_imageCache']['get'](_0x2112b9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x6e9576['url'],this['imageDimension']=_0x6e9576['dimension'],this['imageId']=_0x6e9576['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x561ebf}=this['_editor'],t=_0x561ebf['t'],_0x1c1a9d=new X(_0x561ebf,this['imageStatus'],this['_attributes']);_0x1c1a9d['bind']('status')['to'](this,'imageStatus'),_0x1c1a9d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1c1a9d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1c1a9d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1c1a9d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1028ed,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1c1a9d,'position':_0x18301e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1c1a9d['focus']();},'onHide':()=>{_0x1c1a9d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xf1909=>!A(_0xf1909,_0x1c1a9d['element'])}});}['_loadImageInfo'](_0x2cacd0,_0xc4a8a3){return j['getInfo'](_0x2cacd0,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x13bbb4=>{const {width:_0x479b53,height:_0x8e0da6}=_0x13bbb4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xc4a8a3,this['imageDimension']={'width':_0x479b53,'height':_0x8e0da6},this['imageId']=_0x2cacd0;})['catch'](_0x4b710a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4b710a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x26635d,_0x191805){return this['_getImageAsFile'](_0x26635d)['then'](_0xd203a2=>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':_0x191805['signal'],'file':_0xd203a2,'onProgress':_0x2430dc=>{_0x2430dc&&_0x2430dc['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2430dc['value']));}}))['then'](_0x337a8b=>{const {width:_0x100e40,height:_0x5e1dc9}=_0x337a8b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x337a8b['cdnUrl'],this['imageDimension']={'width':_0x100e40,'height':_0x5e1dc9},this['imageId']=_0x337a8b['uuid'],this['imageUploadProgress']=null;const _0x3743ad=_0x26635d['getAttribute']('src');this['_imageCache']['set'](_0x3743ad,{'id':_0x337a8b['uuid'],'url':_0x337a8b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x490b03=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x490b03['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x194190,_0x26f3aa){_0x194190['on']('apply',(_0x3c7441,_0x4aa2af)=>{this['_replaceImage'](_0x26f3aa,_0x4aa2af['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x194190['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x194190['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2e0481,_0x4929e1,_0x58d05f){const _0x2f7900=this['_editor'],{width:_0x23ea04,height:_0x54022c}=S(_0x4929e1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3bbb66,imageSources:_0x1d7852}=C(_0x4929e1,_0x23ea04);_0x2f7900['model']['change'](_0x34dc05=>{if('$graveyard'===_0x2e0481['root']['rootName']){_0x2f7900['execute']('insertImage',{'imageType':_0x2e0481['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2e0481['getAttributes']()),'uploadcareImageId':_0x58d05f,'src':_0x3bbb66,'sources':_0x1d7852,'width':_0x23ea04,'height':_0x54022c}});const _0x51498b=_0x2e0481['getChildren']();_0x2e0481=_0x2f7900['model']['document']['selection']['getSelectedElement']();for(const _0x155205 of _0x51498b)_0x34dc05['append'](_0x34dc05['cloneElement'](_0x155205),_0x2e0481);}else _0x34dc05['setSelection'](_0x2e0481,'on'),_0x2f7900['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2e0481['getAttributes']()),'uploadcareImageId':_0x58d05f,'src':_0x3bbb66,'sources':_0x1d7852,'width':_0x23ea04,'height':_0x54022c},_0x2e0481);_0x34dc05['setSelection'](_0x2e0481,'on');});}async['_getImageAsFile'](_0x4f4de7){const _0x3522ba=_0x544b6e['window'],_0x12e2d6=_0x544b6e['document']['location']['href'],_0x36da8a=new _0x3522ba['URL'](_0x4f4de7['getAttribute']('src'),_0x12e2d6);if('data:'===_0x36da8a['protocol']){const _0x25e496=_0x36da8a['href']['split'](','),_0x1f554c=_0x25e496[0x0]['match'](/:(.*?);/)[0x1],_0x1eecae=_0x1f554c['split']('/')[0x1],_0x23a437=_0x3522ba['atob'](_0x25e496[_0x25e496['length']-0x1]);let _0x5bfd7b=_0x23a437['length'];const _0x1457cf=new _0x3522ba['Uint8Array'](_0x5bfd7b);for(;_0x5bfd7b--;)_0x1457cf[_0x5bfd7b]=_0x23a437['charCodeAt'](_0x5bfd7b);return new _0x3522ba['File']([_0x1457cf],'image.'+_0x1eecae,{'type':_0x1f554c});}const _0x43201c=_0x36da8a['href']['split']('/'),_0x3475b0=_0x43201c[_0x43201c['length']-0x1],_0x545338=_0x3475b0['split']('.')[0x1];return _0x3522ba['fetch'](_0x36da8a['href'])['then'](_0x4f685e=>_0x4f685e['clone']()['blob']())['then'](_0x3cf134=>new _0x3522ba['File']([_0x3cf134],_0x3475b0,{'type':'image/'+_0x545338}));}}class Q extends _0x2b6c67{['imageEditController'];static get['requires'](){return[_0xbe1041];}['_isEditable'];constructor(_0x232cd2){super(_0x232cd2),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2ef950){const _0x5b118a=z(_0x2ef950);return _0x53e78f=>!(!_0x53e78f||!_0x53e78f['is']('element','imageBlock')&&!_0x53e78f['is']('element','imageInline'))&&(!!_0x53e78f['hasAttribute']('uploadcareImageId')||!!_0x53e78f['hasAttribute']('src')&&_0x5b118a(_0x53e78f['getAttribute']('src')));}(_0x232cd2['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x17b984=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x17b984);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5a5383=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5a5383&&(_0x5a5383['is']('element','imageBlock')||_0x5a5383['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0xbe1041),_0x5a5383),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x2b6c67{['refresh'](){const _0x32dbef=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x32dbef&&(_0x32dbef['is']('element','imageBlock')||_0x32dbef['is']('element','imageInline')));}['execute'](_0x15d4eb){const _0x2a6bbf=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5e8d91=>{_0x5e8d91['setAttributes'](_0x15d4eb,_0x2a6bbf),_0x5e8d91['removeAttribute']('srcset',_0x2a6bbf),_0x5e8d91['removeAttribute']('sizes',_0x2a6bbf);});}}class m extends _0x3bd795{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x358e78,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4f3937}=this;_0x4f3937['commands']['add']('uploadcareImageEdit',new Q(_0x4f3937)),_0x4f3937['commands']['add']('uploadcareImageReplace',new V(_0x4f3937));}}class g extends _0x3bd795{['_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 _0x2fb395=this['editor'];_0x2fb395['ui']['componentFactory']['add']('uploadcareImageEdit',_0x403102=>{const _0x31b923=_0x2fb395['commands']['get']('uploadcareImageEdit'),_0x421082=new _0x172be1(_0x403102),t=_0x403102['t'];return _0x421082['set']({'icon':_0x1028ed,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x421082['bind']('isEnabled')['to'](_0x31b923),_0x421082['bind']('isOn')['to'](_0x31b923,'isActive'),this['listenTo'](_0x421082,'execute',()=>{_0x2fb395['execute']('uploadcareImageEdit'),_0x2fb395['editing']['view']['focus']();}),_0x421082;}),this['_initConfig']();}['_initConfig'](){const _0x438f5a=_0x39ed0a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x438f5a),this['listenTo'](this['editor'],'destroy',()=>{_0x438f5a['remove']();});}}class et extends _0x3bd795{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x318695=>0x1!=_0x318695}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2f8811=>{const {af:{dictionary:_0x59d2a5,getPluralForm:_0x79ff69}}={'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':_0x471a18=>0x1!=_0x471a18}};_0x2f8811['af']||={'dictionary':{},'getPluralForm':null},_0x2f8811['af']['dictionary']=Object['assign'](_0x2f8811['af']['dictionary'],_0x59d2a5),_0x2f8811['af']['getPluralForm']=_0x79ff69;})(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':_0x3c1c29=>0x0==_0x3c1c29?0x0:0x1==_0x3c1c29?0x1:0x2==_0x3c1c29?0x2:_0x3c1c29%0x64>=0x3&&_0x3c1c29%0x64<=0xa?0x3:_0x3c1c29%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5ebf97=>{const {ar:{dictionary:_0x34e8f8,getPluralForm:_0x4f8b82}}={'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':_0x5694d3=>0x0==_0x5694d3?0x0:0x1==_0x5694d3?0x1:0x2==_0x5694d3?0x2:_0x5694d3%0x64>=0x3&&_0x5694d3%0x64<=0xa?0x3:_0x5694d3%0x64>=0xb?0x4:0x5}};_0x5ebf97['ar']||={'dictionary':{},'getPluralForm':null},_0x5ebf97['ar']['dictionary']=Object['assign'](_0x5ebf97['ar']['dictionary'],_0x34e8f8),_0x5ebf97['ar']['getPluralForm']=_0x4f8b82;})(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':_0x32fa60=>0x1!=_0x32fa60}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x176e91=>{const {ast:{dictionary:_0x4eb8a6,getPluralForm:_0x1612eb}}={'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':_0x4ae321=>0x1!=_0x4ae321}};_0x176e91['ast']||={'dictionary':{},'getPluralForm':null},_0x176e91['ast']['dictionary']=Object['assign'](_0x176e91['ast']['dictionary'],_0x4eb8a6),_0x176e91['ast']['getPluralForm']=_0x1612eb;})(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':_0x30582c=>0x1!=_0x30582c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x206606=>{const {az:{dictionary:_0x3dcc58,getPluralForm:_0x5e33c6}}={'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':_0x21af0b=>0x1!=_0x21af0b}};_0x206606['az']||={'dictionary':{},'getPluralForm':null},_0x206606['az']['dictionary']=Object['assign'](_0x206606['az']['dictionary'],_0x3dcc58),_0x206606['az']['getPluralForm']=_0x5e33c6;})(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':_0x5c048b=>_0x5c048b%0xa==0x1&&_0x5c048b%0x64!=0xb?0x0:_0x5c048b%0xa>=0x2&&_0x5c048b%0xa<=0x4&&(_0x5c048b%0x64<0xa||_0x5c048b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4c3a4b=>{const {be:{dictionary:_0x386243,getPluralForm:_0x1326bd}}={'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':_0x21261f=>_0x21261f%0xa==0x1&&_0x21261f%0x64!=0xb?0x0:_0x21261f%0xa>=0x2&&_0x21261f%0xa<=0x4&&(_0x21261f%0x64<0xa||_0x21261f%0x64>=0x14)?0x1:0x2}};_0x4c3a4b['be']||={'dictionary':{},'getPluralForm':null},_0x4c3a4b['be']['dictionary']=Object['assign'](_0x4c3a4b['be']['dictionary'],_0x386243),_0x4c3a4b['be']['getPluralForm']=_0x1326bd;})(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':_0x49aa69=>0x1!=_0x49aa69}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x15f74a=>{const {bg:{dictionary:_0x179fda,getPluralForm:_0x2d22b1}}={'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':_0x1a5dfe=>0x1!=_0x1a5dfe}};_0x15f74a['bg']||={'dictionary':{},'getPluralForm':null},_0x15f74a['bg']['dictionary']=Object['assign'](_0x15f74a['bg']['dictionary'],_0x179fda),_0x15f74a['bg']['getPluralForm']=_0x2d22b1;})(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':_0x2ed49e=>0x1!=_0x2ed49e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x14088c=>{const {bn:{dictionary:_0x385ccb,getPluralForm:_0x52f789}}={'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':_0x5004c5=>0x1!=_0x5004c5}};_0x14088c['bn']||={'dictionary':{},'getPluralForm':null},_0x14088c['bn']['dictionary']=Object['assign'](_0x14088c['bn']['dictionary'],_0x385ccb),_0x14088c['bn']['getPluralForm']=_0x52f789;})(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':_0x1e992d=>_0x1e992d%0xa==0x1&&_0x1e992d%0x64!=0xb?0x0:_0x1e992d%0xa>=0x2&&_0x1e992d%0xa<=0x4&&(_0x1e992d%0x64<0xa||_0x1e992d%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x8b1741=>{const {bs:{dictionary:_0x10cecd,getPluralForm:_0x13fdad}}={'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':_0x34b881=>_0x34b881%0xa==0x1&&_0x34b881%0x64!=0xb?0x0:_0x34b881%0xa>=0x2&&_0x34b881%0xa<=0x4&&(_0x34b881%0x64<0xa||_0x34b881%0x64>=0x14)?0x1:0x2}};_0x8b1741['bs']||={'dictionary':{},'getPluralForm':null},_0x8b1741['bs']['dictionary']=Object['assign'](_0x8b1741['bs']['dictionary'],_0x10cecd),_0x8b1741['bs']['getPluralForm']=_0x13fdad;})(window['CKEDITOR_TRANSLATIONS']||={});
|