@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250602.0 → 0.0.0-nightly-20250604.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 _0x335939,Command as _0x55b0d0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x16fbcf,IconGooglePhotos as _0x63a214,IconGoogleDrive as _0x3e686f,IconFacebook as _0x181af2,IconDropbox as _0x7576e,IconUploadcareLink as _0xdef5d8,IconUploadcareImageUpload as _0x1d388b,IconError as et,IconUploadcareImageEdit as _0xa3d37a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x54c86e,MenuBarMenuListItemButtonView as _0x1b153d,View as _0x256452,FocusCycler as _0x3defba,Dialog as _0x3510d1,DialogViewPosition as _0xb6ef76,SpinnerView as _0x3ab240,IconView as at,Notification as _0x5cb120}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3bb29e,DomEmitterMixin as _0x28d3a1,global as _0x520e1f,getAncestors as _0x4f71da,ObservableMixin as _0x5afe91,createElement as _0x1d1955,uid as _0x5c09c1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x34f023}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x345ced,info as _0x22f420}from'@uploadcare/upload-client';import*as _0x287e21 from'@uploadcare/file-uploader';var o=function(_0x3f817a){return _0x3f817a['Local']='local',_0x3f817a['URL']='url',_0x3f817a['Dropbox']='dropbox',_0x3f817a['GDrive']='gdrive',_0x3f817a['Facebook']='facebook',_0x3f817a['GPhotos']='gphotos',_0x3f817a['OneDrive']='onedrive',_0x3f817a;}({});function _(_0x5f56f4,_0x42fc38,_0x50e32d){const t=_0x5f56f4['t'],_0x435e84=_0x5f56f4['t'];switch(_0x42fc38){case o['Local']:return{'text':_0x435e84('Insert'===_0x50e32d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x435e84('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x50e32d?_0x435e84('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x435e84('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x42fc38;}}class e extends _0x335939{['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 _0x58d9a4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x11afab;for(const _0x452eee in _0x58d9a4){const _0xc6cb71=_0x452eee,_0x3b36a4=_0x58d9a4[_0xc6cb71];if('uploadcareLicenseKeyValid'==_0x3b36a4||'uploadcareLicenseKeyInvalid'==_0x3b36a4||'uploadcareLicenseKeyExpired'==_0x3b36a4||'uploadcareLicenseKeyDomainLimit'==_0x3b36a4||'uploadcareLicenseKeyNotAllowed'==_0x3b36a4||'uploadcareLicenseKeyEvaluationLimit'==_0x3b36a4||'uploadcareLicenseKeyTrialLimit'==_0x3b36a4||'uploadcareLicenseKeyUsageLimit'==_0x3b36a4){delete _0x58d9a4[_0xc6cb71],_0x11afab=_0x3b36a4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x11afab&&_0x58d9a4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x11afab&&_0x58d9a4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x11afab&&_0x58d9a4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x11afab&&_0x58d9a4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x11afab&&_0x58d9a4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x11afab&&_0x58d9a4['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x11afab&&_0x58d9a4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x66e822}=this,_0x458cb3=_0x66e822['commands']['get']('uploadcare');if(!_0x458cb3)return;const _0x3b065a=this['_normalizeConfigSourceList'](_0x66e822['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xf0d078,_0x1354e6)=>{const _0x243b98=this['_getIntegrationKey'](_0x1354e6['type']);return _0xf0d078[_0x243b98]||(_0xf0d078[_0x243b98]=[]),_0xf0d078[_0x243b98]['push'](_0x1354e6),_0xf0d078;},{});_0x66e822['plugins']['has']('ImageInsertUI')&&_0x66e822['commands']['get']('uploadcare')&&Object['entries'](_0x3b065a)['forEach'](([_0x567ad3,_0x414583])=>{_0x66e822['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x567ad3,'observable':()=>_0x458cb3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x414583),'formViewCreator':()=>this['_createDropdownButtons'](_0x414583),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x414583),'override':'assetManager'!==_0x567ad3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2ab4e9){const {locale:_0x23c19a}=this['editor'];return _0x2ab4e9['map'](_0x3b197a=>{const _0x24ea6b=_(_0x23c19a,_0x3b197a,'Insert');switch(_0x3b197a){case o['Local']:return{'icon':_0x1d388b,'type':o['Local'],..._0x24ea6b};case o['URL']:return{'icon':_0xdef5d8,'type':o['URL'],..._0x24ea6b};case o['Dropbox']:return{'icon':_0x7576e,'type':o['Dropbox'],..._0x24ea6b};case o['Facebook']:return{'icon':_0x181af2,'type':o['Facebook'],..._0x24ea6b};case o['GDrive']:return{'icon':_0x3e686f,'type':o['GDrive'],..._0x24ea6b};case o['GPhotos']:return{'icon':_0x63a214,'type':o['GPhotos'],..._0x24ea6b};case o['OneDrive']:return{'icon':_0x16fbcf,'type':o['OneDrive'],..._0x24ea6b};}});}['_getIntegrationKey'](_0x55d655){switch(_0x55d655){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x26bfc5,_0x1c7e06){const _0x1ab8db=this['editor'],_0x3ade39=new _0x26bfc5(_0x1ab8db['locale']),_0x3c6fb3=_0x1ab8db['commands']['get']('uploadcare');return _0x3ade39['bind']('isEnabled')['to'](_0x3c6fb3),_0x3ade39['on']('execute',()=>{_0x3c6fb3['execute'](_0x1c7e06);}),_0x3ade39;}['_createToolbarButton'](_0x4e4542){const {locale:_0x4cc7ba}=this['editor'],_0x1e757c=this['editor']['plugins']['get']('ImageInsertUI'),_0x5cf6d6=_0x4e4542[0x0],_0x3723f2=this['_createButton'](_0x54c86e,_0x5cf6d6['type']);return _0x3723f2['icon']=_0x5cf6d6['icon'],_0x3723f2['bind']('label')['to'](_0x1e757c,'isImageSelected',_0x21677d=>_(_0x4cc7ba,_0x5cf6d6['type'],_0x21677d?'Replace':'Insert')['text']),_0x3723f2['tooltip']=!0x0,_0x3723f2;}['_createDropdownButtons'](_0x153510){const {locale:_0x2e335d}=this['editor'],_0x43c76b=this['editor']['plugins']['get']('ImageInsertUI');return _0x153510['map'](_0x1cc1d5=>{const _0x535e5f=this['_createButton'](_0x54c86e,_0x1cc1d5['type']);return _0x535e5f['withText']=!0x0,_0x535e5f['icon']=_0x1cc1d5['icon'],_0x535e5f['bind']('label')['to'](_0x43c76b,'isImageSelected',_0x38863a=>_(_0x2e335d,_0x1cc1d5['type'],_0x38863a?'Replace':'Insert')['text']),_0x535e5f;});}['_createMenuBarButtons'](_0x16d948){return _0x16d948['map'](_0x4b0f7e=>{const _0x2100b2=this['_createButton'](_0x1b153d,_0x4b0f7e['type']);return _0x2100b2['icon']=_0x4b0f7e['icon'],_0x2100b2['label']=_0x4b0f7e['shortText'],_0x2100b2;});}}class q extends _0x256452{['focusTracker'];['focusCycler'];constructor(_0x5b31ca){super(_0x5b31ca),this['focusTracker']=new _0x3bb29e(),this['focusCycler']=new _0x3defba({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x182873){super(_0x182873),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x575b52,_0x1c34f7){const _0x58e963=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5ecade=>_0x5ecade<=_0x1c34f7)['map'](_0x3c79db=>_0x575b52['replace'](/\/$/,'')+'/-/resize/'+_0x3c79db+'x/\x20'+_0x3c79db+'w');return{'imageFallbackUrl':_0x575b52,'imageSources':[{'srcset':_0x58e963['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1c34f7+'px)\x20100vw,\x20'+_0x1c34f7+'px','type':'image/webp'}]};}function A(_0x2132d4,_0x563cad,_0x3e575d){const _0x5a5253=_0x2132d4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5a5253?parseInt(_0x5a5253[0x1],0xa):_0x563cad,'height':_0x5a5253?parseInt(_0x5a5253[0x2],0xa):_0x3e575d};}function m(_0x2ad706,_0x47dc9b){const _0x539060=Object['create'](_0x28d3a1),_0x3bb75d=_0x2ad706['plugins']['get']('ImageUtils'),_0x2eb69e=_0x2ad706['editing']['mapper']['toViewElement'](_0x47dc9b),_0x3de16a=_0x3bb75d['findViewImgElement'](_0x2eb69e),_0xbabb62=_0x2ad706['editing']['view']['domConverter']['viewToDom'](_0x3de16a),_0x1443ba=_0x47dc9b['getAttribute']('width'),_0x35116a=_0x47dc9b['getAttribute']('height'),_0x279a8a='image-processing';_0x2ad706['editing']['view']['change'](_0x2f7faa=>{_0x2f7faa['addClass'](_0x279a8a,_0x2eb69e),_0x2f7faa['setStyle']('aspect-ratio',_0x1443ba+'/'+_0x35116a,_0x3de16a);}),_0x539060['listenTo'](_0xbabb62,'load',()=>{_0x539060['stopListening'](_0xbabb62,'load'),_0x2ad706['editing']['view']['change'](_0x2a5f41=>{_0x2a5f41['removeClass'](_0x279a8a,_0x2eb69e),_0x2a5f41['removeStyle']('aspect-ratio',_0x3de16a);});});}function V(_0x45d055){if(Array['isArray'](_0x45d055)){const _0x2b0867=_0x45d055['map'](V);return _0x189e4b=>_0x2b0867['some'](_0x3a1ac7=>_0x3a1ac7(_0x189e4b));}if('origin'==_0x45d055){const _0x4137ff=_0x520e1f['window']['location']['origin'];return _0x389c5a=>new URL(_0x389c5a,_0x520e1f['document']['baseURI'])['origin']==_0x4137ff;}return'function'==typeof _0x45d055?_0x45d055:_0x45d055 instanceof RegExp?_0x29e636=>!(!_0x29e636['match'](_0x45d055)&&!_0x29e636['replace'](/^https?:\/\//,'')['match'](_0x45d055)):()=>!0x1;}function F(_0xecff84,_0x52bb6b){return _0x4f71da(_0xecff84['target'])['includes'](_0x52bb6b);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5afe91(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2393d4,_0x1802ce,_0x47ba44){super(),this['_editor']=_0x2393d4,this['_editing']=_0x1802ce,this['_dialog']=_0x2393d4['plugins']['get'](_0x3510d1),this['_api']=_0x1802ce['ctxElement']['getAPI'](),this['_type']=_0x47ba44,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:_0x1eaab6,model:_0x525f47}=this['_editor'],_0x2c9bac=_0x525f47['document']['selection']['getSelectedElement'](),_0x12fc74=_0x2c9bac&&(_0x2c9bac['is']('element','imageBlock')||_0x2c9bac['is']('element','imageInline'));this['_formView']=new S(_0x1eaab6),this['_dialog']['show']({'id':'uploadCare','icon':_0x1d388b,'title':_(_0x1eaab6,this['_type'],_0x12fc74?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xb6ef76['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x16e7de=>!F(_0x16e7de,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x53c7c4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3c6502=>{const _0x5799e8=_0x53c7c4['length'];for(const _0x3d0c6d of _0x53c7c4){const _0x2c8442=_0x3d0c6d===_0x53c7c4[_0x5799e8-0x1],{cdnUrl:_0x4f271a,fileInfo:_0x3b1e81}=_0x3d0c6d;if(!_0x4f271a||!_0x3b1e81)continue;const {width:_0x59ec73,height:_0xa596d5}=_0x3b1e81['imageInfo'],_0x232392=A(_0x4f271a,_0x59ec73,_0xa596d5),_0x8f0f09=E(_0x4f271a,_0x232392['width']),_0x1d85d2={'id':_0x3b1e81['uuid'],'type':'image','attributes':{'imageDimension':_0x232392,..._0x8f0f09}};this['_insertAsset'](_0x1d85d2,_0x2c8442,_0x3c6502);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3a3d9d=>{'idle'===_0x3a3d9d['detail']['status']&&!_0x3a3d9d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2b72a5,_0x1719bf,_0x1e059e){const _0x2b3fba=this['_editor']['model']['document']['selection'],_0x145736=_0x2b3fba['getSelectedElement'](),_0x5166b8=!(!_0x145736||!_0x145736['is']('element','imageInline'));_0x1e059e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2b72a5,_0x5166b8),_0x1719bf||_0x1e059e['setSelection'](_0x2b3fba['getLastPosition']());}['_insertImage'](_0x5a9bd8,_0x4fac2b){const _0x38b213=this['_editor'],{imageDimension:_0x98ce4a,imageFallbackUrl:_0x2a26de,imageSources:_0x2a11c1}=_0x5a9bd8['attributes'];_0x38b213['execute']('insertImage',{'imageType':_0x4fac2b?'imageInline':null,'source':{'uploadcareImageId':_0x5a9bd8['id'],'src':_0x2a26de,'sources':_0x2a11c1,..._0x98ce4a}});}}class n extends _0x55b0d0{['_editing'];['_controller']=null;static get['requires'](){return[_0x3510d1,i];}constructor(_0xe97d3d){super(_0xe97d3d),this['_editing']=_0xe97d3d['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1dddbf){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1dddbf);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0xaa8331,publicKey:_0x4251b5,signal:_0xc15923,onProgress:_0x1064cb}){return _0x345ced(_0xaa8331,{'publicKey':_0x4251b5,'store':'auto','signal':_0xc15923,'onProgress':_0x1064cb});}static['getInfo'](_0x47c454,_0x25353c){return _0x22f420(_0x47c454,_0x25353c);}}class p extends _0x335939{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x34f023,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2f67a8=this['editor'];if(!!!_0x2f67a8['config']['get']('uploadcare'))return;_0x2f67a8['plugins']['get'](_0x34f023)['createUploadAdapter']=_0x4472d1=>new x(_0x4472d1,_0x2f67a8),_0x2f67a8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x274eef,{imageElement:_0x12595c,data:_0xd3f291})=>{_0x2f67a8['model']['change'](_0x7c591a=>{_0x7c591a['setAttribute']('uploadcareImageId',_0xd3f291['uploadcareImageId'],_0x12595c);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x532a6d,_0x1da2f8){this['loader']=_0x532a6d,this['editor']=_0x1da2f8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x287c3f=this['editor']['config']['get']('uploadcare.pubkey'),_0xa3b5ed=await this['loader']['file'];return C['upload']({'file':_0xa3b5ed,'publicKey':_0x287c3f,'signal':this['controller']['signal'],'onProgress':_0x20c4c1=>{_0x20c4c1&&_0x20c4c1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x20c4c1['value']);}})['then'](async _0xc12c6c=>{const {imageFallbackUrl:_0x58472f,imageSources:_0x301e9f}=E(_0xc12c6c['cdnUrl'],_0xc12c6c['imageInfo']['width']);return{'uploadcareImageId':_0xc12c6c['uuid'],'default':_0x58472f,'sources':_0x301e9f};})['catch'](()=>{const _0x3b3124=t('Cannot\x20upload\x20file:')+('\x20'+_0xa3b5ed['name']+'.');return Promise['reject'](_0x3b3124);});}['abort'](){this['controller']['abort']();}}class i extends _0x335939{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3510d1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x19c0ac=this['editor'];_0x19c0ac['commands']['add']('uploadcare',new n(_0x19c0ac));}['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 _0x49444a=_0x520e1f['document']['querySelector']('input[uploadcare-file-input]');_0x49444a&&_0x49444a['remove']();}),async function(_0x4c62d2){const _0xd42ec6=_0x37ecbc([0x4b,0x48,0x30,0x69,0x57,0x6f,0x74,0x6d,0x37,0x32,0x31,0x4e,0x49,0x44,0x6e,0x77,0x65,0x39,0x43,0x41,0x4c,0x38,0x79,0x46,0x64,0x4d,0x67,0x61,0x76,0x36,0x6a,0x42,0x4a,0x71,0x78,0x47,0x56,0x4f,0x70,0x34,0x54,0x59,0x72,0x73,0x51,0x52,0x50,0x45,0x66,0x55,0x62,0x75,0x7a,0x6c,0x5a,0x33,0x6b,0x68,0x35,0x58,0x53,0x63]),_0x3cb38c=0x2ca21b76,_0x1674aa=0x2ca572ee^_0x3cb38c,_0x54fb08=window[_0x37ecbc([0x44,0x61,0x74,0x65])][_0x37ecbc([0x6e,0x6f,0x77])](),_0x3e892e=_0x4c62d2[_0x37ecbc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ab66b=new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x343eeb=>{_0x3e892e[_0x37ecbc([0x6f,0x6e,0x63,0x65])](_0x37ecbc([0x72,0x65,0x61,0x64,0x79]),_0x343eeb);}),_0x1254e2={[_0x37ecbc([0x6b,0x74,0x79])]:_0x37ecbc([0x45,0x43]),[_0x37ecbc([0x75,0x73,0x65])]:_0x37ecbc([0x73,0x69,0x67]),[_0x37ecbc([0x63,0x72,0x76])]:_0x37ecbc([0x50,0x2d,0x32,0x35,0x36]),[_0x37ecbc([0x78])]:_0x37ecbc([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]),[_0x37ecbc([0x79])]:_0x37ecbc([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]),[_0x37ecbc([0x61,0x6c,0x67])]:_0x37ecbc([0x45,0x53,0x32,0x35,0x36])},_0x217210=_0x3e892e[_0x37ecbc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x37ecbc([0x67,0x65,0x74])](_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x407b15(){let _0x503537,_0x1eef08=null,_0x3e8943=null;try{if(_0x217210==_0x37ecbc([0x47,0x50,0x4c]))return _0x37ecbc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x503537=_0x1cc829(),!_0x503537)return _0x37ecbc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x503537[_0x37ecbc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e8943=_0x4c1153(_0x503537[_0x37ecbc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x503537[_0x37ecbc([0x6a,0x74,0x69])])),await _0x2c2f5d()?_0xe0ef86()?_0x20a94c()?_0x37ecbc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x394b60()?(_0x503537[_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37ecbc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1eef08=_0x1e021a(_0x37ecbc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x503537[_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37ecbc([0x74,0x72,0x69,0x61,0x6c])&&(_0x1eef08=_0x1e021a(_0x37ecbc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4eef35()):_0x37ecbc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x37ecbc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x37ecbc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x37ecbc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x20a94c(){const _0x27202f=[_0x37ecbc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x37ecbc([0x74,0x72,0x69,0x61,0x6c])][_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x503537[_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54fb08/0x3e8:0xe10*_0x1674aa;return _0x503537[_0x37ecbc([0x65,0x78,0x70])]<_0x27202f;}function _0xe0ef86(){const _0x1779ee=_0x503537[_0x37ecbc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1779ee&&(!!_0x1779ee[_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37ecbc([0x2a]))||!!_0x1779ee[_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37ecbc([0x55,0x50,0x4c,0x43])));}function _0x394b60(){const _0x5c3c7c=_0x503537[_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c3c7c||0x0==_0x5c3c7c[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ea879}=new URL(window[_0x37ecbc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c3c7c[_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ea879))return!0x0;const _0x8be8=_0x5ea879[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])](_0x37ecbc([0x2e]));return _0x5c3c7c[_0x37ecbc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5341ec=>_0x5341ec[_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37ecbc([0x2a])))[_0x37ecbc([0x6d,0x61,0x70])](_0x1e5a1b=>_0x1e5a1b[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])](_0x37ecbc([0x2e])))[_0x37ecbc([0x73,0x6f,0x6d,0x65])](_0x2cd839=>_0x8be8[_0x37ecbc([0x65,0x76,0x65,0x72,0x79])]((_0x4e5118,_0x4e7c2f)=>_0x2cd839[_0x4e7c2f]===_0x4e5118||_0x2cd839[_0x4e7c2f]===_0x37ecbc([0x2a])));}function _0x4eef35(){return _0x1eef08&&_0x3e8943?new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x406f93,_0x5d5f06)=>{_0x1eef08[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x406f93,_0x5d5f06),_0x3e8943[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x269ac4=>{_0x269ac4!=_0x37ecbc([0x56,0x61,0x6c,0x69,0x64])&&_0x406f93(_0x269ac4);},_0x5d5f06);}):_0x1eef08||_0x3e8943||_0x37ecbc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c1153(_0x4bf4d9,_0x5d98c5){return new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dd04d=>{if(_0x2883d8())return _0x3dd04d(_0x37ecbc([0x56,0x61,0x6c,0x69,0x64]));_0x115d15(),_0x3e892e[_0x37ecbc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x37ecbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x133363=!0x1;const _0x2059c7=_0x5c09c1();function _0x338fed(_0x186795){return!!_0x186795&&(typeof _0x186795===_0x37ecbc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x186795===_0x37ecbc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x186795[_0x37ecbc([0x74,0x68,0x65,0x6e])]===_0x37ecbc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x186795[_0x37ecbc([0x63,0x61,0x74,0x63,0x68])]===_0x37ecbc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x587fa3(_0x12203c){_0x250c74(_0x12203c)[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x47e827=>{if(!_0x47e827||_0x47e827[_0x37ecbc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x37ecbc([0x6f,0x6b]))return _0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x307b93(_0x178c07(_0x2059c7+_0x5d98c5))!=_0x47e827[_0x37ecbc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x37ecbc([0x56,0x61,0x6c,0x69,0x64]);})[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x4bd62a=>(_0x7b1a99(),_0x4bd62a),()=>{const _0x1e77cb=_0x5e58e5();return null==_0x1e77cb?(_0x7b1a99(),_0x37ecbc([0x56,0x61,0x6c,0x69,0x64])):_0x37ecbc(_0x54fb08-_0x1e77cb>(0x8ae9f76^_0x3cb38c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x3dd04d)[_0x37ecbc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3dd04d(_0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x524c84=0x2c94f5f6^_0x3cb38c;function _0x7b1a99(){const _0x40d085=_0x37ecbc([0x6c,0x6c,0x63,0x74,0x2d])+_0x307b93(_0x178c07(_0x4bf4d9)),_0x1fccc2=_0x19726e(_0x307b93(window[_0x37ecbc([0x4d,0x61,0x74,0x68])][_0x37ecbc([0x63,0x65,0x69,0x6c])](_0x54fb08/_0x524c84)));window[_0x37ecbc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37ecbc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40d085,_0x1fccc2);}function _0x5e58e5(){const _0x391cef=_0x37ecbc([0x6c,0x6c,0x63,0x74,0x2d])+_0x307b93(_0x178c07(_0x4bf4d9)),_0x164694=window[_0x37ecbc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37ecbc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x391cef);return _0x164694?window[_0x37ecbc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19726e(_0x164694),0x10)*_0x524c84:null;}function _0x250c74(_0xe45983){return new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ad95e,_0x244696)=>{_0xe45983[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x3ad95e,_0x244696),window[_0x37ecbc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x244696,0x2ca3cfb6^_0x3cb38c);});}}_0x3e892e[_0x37ecbc([0x6f,0x6e])](_0x37ecbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c7d41,_0x50df53)=>{if(_0x50df53[0x0]!=_0x4bf4d9)return _0x3dd04d(_0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50df53[0x1]={..._0x50df53[0x1],[_0x37ecbc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2059c7};},{[_0x37ecbc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37ecbc([0x68,0x69,0x67,0x68])}),_0x3e892e[_0x37ecbc([0x6f,0x6e])](_0x37ecbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43119a=>{_0x338fed(_0x43119a[_0x37ecbc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x133363=!0x0,_0x587fa3(_0x43119a[_0x37ecbc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x37ecbc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37ecbc([0x6c,0x6f,0x77])}),_0x4ab66b[_0x37ecbc([0x74,0x68,0x65,0x6e])](()=>{_0x133363||_0x3dd04d(_0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2883d8(){return _0x3e892e[_0x37ecbc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37ecbc([0x76,0x69,0x65,0x77])][_0x37ecbc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x37ecbc([0x61,0x75,0x74,0x6f]);}function _0x115d15(){_0x3e892e[_0x37ecbc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37ecbc([0x76,0x69,0x65,0x77])][_0x37ecbc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37ecbc([0x61,0x75,0x74,0x6f]);}}function _0x1e021a(_0x136d08){const _0x54ec12=[new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3e44=>setTimeout(_0x5c3e44,0x2cab25ba^_0x3cb38c)),_0x4ab66b[_0x37ecbc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9dd1de=>{let _0x4df0e5=0x0;_0x3e892e[_0x37ecbc([0x6d,0x6f,0x64,0x65,0x6c])][_0x37ecbc([0x6f,0x6e])](_0x37ecbc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41d574,_0x9680d3)=>{_0x9680d3[0x0][_0x37ecbc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4df0e5++,_0x4df0e5==(0x2ca21a8e^_0x3cb38c)&&(_0x9dd1de(),_0x41d574[_0x37ecbc([0x6f,0x66,0x66])]());});}))];return window[_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37ecbc([0x72,0x61,0x63,0x65])](_0x54ec12)[_0x37ecbc([0x74,0x68,0x65,0x6e])](()=>_0x136d08);}async function _0x215ce3(){await _0x4ab66b,_0x3e892e[_0x37ecbc([0x6d,0x6f,0x64,0x65,0x6c])][_0x37ecbc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45eb84,_0x3e892e[_0x37ecbc([0x6d,0x6f,0x64,0x65,0x6c])][_0x37ecbc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45eb84,_0x3e892e[_0x37ecbc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x37ecbc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c2af4(_0x4235ea){const _0x20577c=_0x4ac154();_0x3e892e[_0x20577c]=_0x37ecbc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4235ea,_0x4235ea!=_0x37ecbc([0x56,0x61,0x6c,0x69,0x64])&&_0x215ce3();}function _0x4ac154(){const _0x1b8417=window[_0x37ecbc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x37ecbc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x37ecbc([0x6e,0x6f,0x77])]())[_0x37ecbc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x37ecbc([0x2e]),'');let _0x50fffc=_0x37ecbc([0x4b]);for(let _0x17238d=0x0;_0x17238d<_0x1b8417[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17238d+=0x2){let _0x2be7a3=window[_0x37ecbc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b8417[_0x37ecbc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17238d,_0x17238d+0x2));_0x2be7a3>=_0xd42ec6[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2be7a3-=_0xd42ec6[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50fffc+=_0xd42ec6[_0x2be7a3];}return _0x50fffc;}function _0x1cc829(){const _0x11511d=_0x217210[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])](_0x37ecbc([0x2e]));if(0x3!=_0x11511d[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3978bf(_0x11511d[0x1]);function _0x3978bf(_0x39348b){const _0x4531a3=_0x5d412d(_0x39348b);return _0x4531a3&&_0x39373d()?_0x4531a3:null;function _0x39373d(){const _0x5e2054=_0x4531a3[_0x37ecbc([0x6a,0x74,0x69])],_0xddab98=window[_0x37ecbc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e2054[_0x37ecbc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e2054[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f842e={..._0x4531a3,[_0x37ecbc([0x6a,0x74,0x69])]:_0x5e2054[_0x37ecbc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e2054[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f842e[_0x37ecbc([0x76,0x63])],_0x178c07(_0x4f842e)==_0xddab98;}}}async function _0x2c2f5d(){let _0x3725de=!0x0;try{const _0x2fc035=_0x217210[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])](_0x37ecbc([0x2e])),[_0x2fa40b,_0x36394f,_0x42a6ad]=_0x2fc035;return _0x379ed6(_0x2fa40b),await _0x3e1e48(_0x2fa40b,_0x36394f,_0x42a6ad),_0x3725de;}catch{return!0x1;}function _0x379ed6(_0x2941d9){const _0xa697bd=_0x5d412d(_0x2941d9);_0xa697bd&&_0xa697bd[_0x37ecbc([0x61,0x6c,0x67])]==_0x37ecbc([0x45,0x53,0x32,0x35,0x36])||(_0x3725de=!0x1);}async function _0x3e1e48(_0xcbec43,_0x3fa14b,_0x384f2c){const _0x32bb0c=window[_0x37ecbc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x37ecbc([0x66,0x72,0x6f,0x6d])](_0x394458(_0x384f2c),_0x1e29ff=>_0x1e29ff[_0x37ecbc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3c1230=new window[(_0x37ecbc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x37ecbc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcbec43+_0x37ecbc([0x2e])+_0x3fa14b),_0x4ea500=window[_0x37ecbc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x37ecbc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ea500)return;const _0x131ec2=await _0x4ea500[_0x37ecbc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x37ecbc([0x6a,0x77,0x6b]),_0x1254e2,{[_0x37ecbc([0x6e,0x61,0x6d,0x65])]:_0x37ecbc([0x45,0x43,0x44,0x53,0x41]),[_0x37ecbc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x37ecbc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x37ecbc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ea500[_0x37ecbc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x37ecbc([0x6e,0x61,0x6d,0x65])]:_0x37ecbc([0x45,0x43,0x44,0x53,0x41]),[_0x37ecbc([0x68,0x61,0x73,0x68])]:{[_0x37ecbc([0x6e,0x61,0x6d,0x65])]:_0x37ecbc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x131ec2,_0x32bb0c,_0x3c1230)||(_0x3725de=!0x1);}}function _0x5d412d(_0x164e9b){return _0x164e9b[_0x37ecbc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x37ecbc([0x65,0x79]))?JSON[_0x37ecbc([0x70,0x61,0x72,0x73,0x65])](_0x394458(_0x164e9b)):null;}function _0x394458(_0x30cd24){return window[_0x37ecbc([0x61,0x74,0x6f,0x62])](_0x30cd24[_0x37ecbc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x37ecbc([0x2b]))[_0x37ecbc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x37ecbc([0x2f])));}function _0x178c07(_0x481979){let _0x49db63=0x1505;function _0x323b35(_0x1aec45){for(let _0x34b49c=0x0;_0x34b49c<_0x1aec45[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34b49c++){const _0x3918c6=_0x1aec45[_0x37ecbc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34b49c);_0x49db63=(_0x49db63<<0x5)+_0x49db63+_0x3918c6,_0x49db63&=_0x49db63;}}function _0x2a8061(_0x4faa19){Array[_0x37ecbc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4faa19)?_0x4faa19[_0x37ecbc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a8061):_0x4faa19&&typeof _0x4faa19==_0x37ecbc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x37ecbc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4faa19)[_0x37ecbc([0x73,0x6f,0x72,0x74])]()[_0x37ecbc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x341d38,_0x297201])=>{_0x323b35(_0x341d38),_0x2a8061(_0x297201);}):_0x323b35(window[_0x37ecbc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4faa19));}return _0x2a8061(_0x481979),_0x49db63>>>0x0;}function _0x307b93(_0x28226e){return _0x28226e[_0x37ecbc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x37ecbc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x37ecbc([0x30]));}function _0x19726e(_0x2ab811){return _0x2ab811[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x37ecbc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x37ecbc([0x6a,0x6f,0x69,0x6e])]('');}function _0x45eb84(){}function _0x37ecbc(_0x33d9c2){return _0x33d9c2['map'](_0x2576db=>String['fromCharCode'](_0x2576db))['join']('');}_0x2c2af4(await _0x407b15());}(this);}['_initSchema'](){const _0x250b42=this['editor']['model']['schema'];_0x250b42['isRegistered']('imageBlock')&&_0x250b42['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x250b42['isRegistered']('imageInline')&&_0x250b42['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x160910=this['editor'];_0x160910['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x160910['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x453855=>_0x453855['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2c6622=_0x160910['commands']['get']('replaceImageSource');_0x2c6622&&this['listenTo'](_0x2c6622,'cleanupImage',(_0xceb0b3,[_0x2ef7cb,_0x14cbdd])=>{_0x2ef7cb['removeAttribute']('uploadcareImageId',_0x14cbdd);});}['_initConfig'](){const _0x325b72=this['editor']['config']['get']('uploadcare.uploader')||{},_0x55f469=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1d1955(_0x520e1f['document'],'uc-config',{..._0x325b72,'pubkey':_0x55f469,'ctx-name':'uploader','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']=_0x526a46=>{if('closeMax'==_0x526a46)return'#uc-icon-arrow-down';},_0x520e1f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1d1955(_0x520e1f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x520e1f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x153424=this['editor']['commands']['get']('insertImage');_0x153424&&this['listenTo'](_0x153424,'execute',()=>{const _0x10c20a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10c20a&&_0x10c20a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x10c20a);});});const _0x46ba6c=this['editor']['commands']['get']('uploadcareImageReplace');_0x46ba6c&&this['listenTo'](_0x46ba6c,'execute',()=>{const _0x184b63=this['editor']['model']['document']['selection']['getSelectedElement']();_0x184b63&&_0x184b63['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x184b63);});});}}class u extends _0x335939{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d2e32){super(_0x4d2e32),_0x4d2e32['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x287e21['defineComponents'](_0x287e21);}}class ta extends _0x256452{constructor(_0x30ab68){super(_0x30ab68);const t=_0x30ab68['t'],_0x5c8167=this['bindTemplate'],_0x41da56=new _0x3ab240();_0x41da56['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':[_0x41da56,{'text':_0x5c8167['to']('imageUploadProgress',_0x1af740=>t('Loading\x20image...')+'\x20('+(_0x1af740||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 rt extends _0x256452{constructor(_0x4164ee){super(_0x4164ee);const t=_0x4164ee['t'];this['set']('errorType',null);const _0x3a0969=new _0x54c86e(_0x4164ee);_0x3a0969['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3a0969['withText']=!0x0,_0x3a0969['class']='ck-button-action',_0x3a0969['on']('execute',()=>{this['fire']('retry');}),_0x3a0969['bind']('isVisible')['to'](this,'errorType',_0x1e62d6=>'NotFound'!==_0x1e62d6);const _0xf2ad57=new at();_0xf2ad57['content']=et,_0xf2ad57['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x293bd7=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':[_0xf2ad57,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x293bd7['to']('errorType',_0x2e028d=>t('NotFound'!==_0x2e028d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3a0969]},{'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 tt extends _0x256452{constructor(_0x599b5c,_0x2e9dca){super(_0x599b5c);const _0x38ca74=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2e9dca,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x38ca74['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2288dc,_0x4c3207,_0x2c71c5){super(_0x2288dc),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2288dc),this['_errorView']=new rt(_0x2288dc),this['_editingView']=new tt(_0x2288dc,_0x2c71c5),this['_focusableView']=new _0x256452(_0x2288dc),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4c3207),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'],_0x4bac57=>{this['_addUploadcareImageEditorListeners'](_0x4bac57);});}),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'](_0x53436a,_0x43798f){const _0x2ccbea='uc-cloud-image-editor',_0x2612c8=_0x53436a['querySelector'](_0x2ccbea);if(_0x2612c8)return _0x43798f(_0x2612c8);const _0x314514=new MutationObserver(_0x3d4fd1=>{const _0x463ff1=_0x3d4fd1['filter'](_0x8df66e=>_0x8df66e['target']===_0x53436a&&_0x8df66e['addedNodes']['length']>0x0&&_0x8df66e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2ccbea);_0x463ff1['length']&&(_0x314514['disconnect'](),_0x43798f(_0x463ff1[0x0]['addedNodes'][0x0]));});_0x314514['observe'](_0x53436a,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x13cbd1){_0x13cbd1['addEventListener']('apply',_0x431ac3=>{this['fire']('apply',{'imageSrc':_0x431ac3['detail']['cdnUrl']});}),_0x13cbd1['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5afe91(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x336589,_0x51f06c,_0x5712fc){super(),this['_editor']=_0x336589,this['_dialog']=_0x51f06c,this['_imageElement']=_0x5712fc,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 _0xca5656=this['_imageElement'],_0x1207df=_0xca5656['getAttribute']('uploadcareImageId'),_0x14719f=_0xca5656['getAttribute']('src');if(_0x1207df)await this['_loadImageInfo'](_0x1207df,_0x14719f);else{if(this['_imageCache']['has'](_0x14719f)){const _0x5400ba=this['_imageCache']['get'](_0x14719f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5400ba['url'],this['imageDimension']=_0x5400ba['dimension'],this['imageId']=_0x5400ba['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x51e60c}=this['_editor'],t=_0x51e60c['t'],_0x23bde7=new Z(_0x51e60c,this['imageStatus'],this['_attributes']);_0x23bde7['bind']('status')['to'](this,'imageStatus'),_0x23bde7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x23bde7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x23bde7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x23bde7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xa3d37a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x23bde7,'position':_0xb6ef76['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x23bde7['focus']();},'onHide':()=>{_0x23bde7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x158327=>!F(_0x158327,_0x23bde7['element'])}});}['_loadImageInfo'](_0x386f45,_0x1cb751){return C['getInfo'](_0x386f45,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x11f2bb=>{const {width:_0x2be151,height:_0x33137c}=_0x11f2bb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1cb751,this['imageDimension']={'width':_0x2be151,'height':_0x33137c},this['imageId']=_0x386f45;})['catch'](_0x214664=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x214664['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x31f93e,_0x3cd788){return this['_getImageAsFile'](_0x31f93e)['then'](_0x233f13=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3cd788['signal'],'file':_0x233f13,'onProgress':_0x198c5b=>{_0x198c5b&&_0x198c5b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x198c5b['value']));}}))['then'](_0x5c6f7d=>{const {width:_0xa9ce55,height:_0x5128e9}=_0x5c6f7d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c6f7d['cdnUrl'],this['imageDimension']={'width':_0xa9ce55,'height':_0x5128e9},this['imageId']=_0x5c6f7d['uuid'],this['imageUploadProgress']=null;const _0x18827a=_0x31f93e['getAttribute']('src');this['_imageCache']['set'](_0x18827a,{'id':_0x5c6f7d['uuid'],'url':_0x5c6f7d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x16ff45=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x16ff45['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4b6198,_0x4a775e){_0x4b6198['on']('apply',(_0x572629,_0x76794e)=>{this['_replaceImage'](_0x4a775e,_0x76794e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4b6198['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4b6198['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3d2d2a,_0x982304,_0x5d79f9){const _0x22d78f=this['_editor'],{width:_0x4edd0b,height:_0x31e9b4}=A(_0x982304,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x479d5e,imageSources:_0xfd481d}=E(_0x982304,_0x4edd0b);_0x22d78f['model']['change'](_0x2f9c05=>{if('$graveyard'===_0x3d2d2a['root']['rootName']){_0x22d78f['execute']('insertImage',{'imageType':_0x3d2d2a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3d2d2a['getAttributes']()),'uploadcareImageId':_0x5d79f9,'src':_0x479d5e,'sources':_0xfd481d,'width':_0x4edd0b,'height':_0x31e9b4}});const _0x354cfb=_0x3d2d2a['getChildren']();_0x3d2d2a=_0x22d78f['model']['document']['selection']['getSelectedElement']();for(const _0x5d41ac of _0x354cfb)_0x2f9c05['append'](_0x2f9c05['cloneElement'](_0x5d41ac),_0x3d2d2a);}else _0x2f9c05['setSelection'](_0x3d2d2a,'on'),_0x22d78f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3d2d2a['getAttributes']()),'uploadcareImageId':_0x5d79f9,'src':_0x479d5e,'sources':_0xfd481d,'width':_0x4edd0b,'height':_0x31e9b4},_0x3d2d2a);_0x2f9c05['setSelection'](_0x3d2d2a,'on');});}async['_getImageAsFile'](_0x502e9d){const _0x499fbb=_0x520e1f['window'],_0x56b1ad=_0x520e1f['document']['location']['href'],_0x2d4a58=new _0x499fbb['URL'](_0x502e9d['getAttribute']('src'),_0x56b1ad);if('data:'===_0x2d4a58['protocol']){const _0x175357=_0x2d4a58['href']['split'](','),_0x3dfec5=_0x175357[0x0]['match'](/:(.*?);/)[0x1],_0x59043a=_0x3dfec5['split']('/')[0x1],_0x52ee30=_0x499fbb['atob'](_0x175357[_0x175357['length']-0x1]);let _0x4fae6e=_0x52ee30['length'];const _0x3b8ce8=new _0x499fbb['Uint8Array'](_0x4fae6e);for(;_0x4fae6e--;)_0x3b8ce8[_0x4fae6e]=_0x52ee30['charCodeAt'](_0x4fae6e);return new _0x499fbb['File']([_0x3b8ce8],'image.'+_0x59043a,{'type':_0x3dfec5});}const _0x3ebce9=_0x2d4a58['href']['split']('/'),_0x211ecd=_0x3ebce9[_0x3ebce9['length']-0x1],_0x914095=_0x211ecd['split']('.')[0x1];return _0x499fbb['fetch'](_0x2d4a58['href'])['then'](_0x3173f3=>_0x3173f3['clone']()['blob']())['then'](_0x13ca98=>new _0x499fbb['File']([_0x13ca98],_0x211ecd,{'type':'image/'+_0x914095}));}}class J extends _0x55b0d0{['imageEditController'];static get['requires'](){return[_0x3510d1];}['_isEditable'];constructor(_0x305648){super(_0x305648),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x39c8e5){const _0xb690b=V(_0x39c8e5);return _0x147b0a=>!(!_0x147b0a||!_0x147b0a['is']('element','imageBlock')&&!_0x147b0a['is']('element','imageInline'))&&(!!_0x147b0a['hasAttribute']('uploadcareImageId')||!!_0x147b0a['hasAttribute']('src')&&_0xb690b(_0x147b0a['getAttribute']('src')));}(_0x305648['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3e4483=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3e4483);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x117a85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x117a85&&(_0x117a85['is']('element','imageBlock')||_0x117a85['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3510d1),_0x117a85),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x55b0d0{['refresh'](){const _0x216282=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x216282&&(_0x216282['is']('element','imageBlock')||_0x216282['is']('element','imageInline')));}['execute'](_0x2abc18){const _0x459223=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4d19e3=>{_0x4d19e3['setAttributes'](_0x2abc18,_0x459223),_0x4d19e3['removeAttribute']('srcset',_0x459223),_0x4d19e3['removeAttribute']('sizes',_0x459223);});}}class g extends _0x335939{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5cb120,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b45f3}=this;_0x2b45f3['commands']['add']('uploadcareImageEdit',new J(_0x2b45f3)),_0x2b45f3['commands']['add']('uploadcareImageReplace',new O(_0x2b45f3));}}class j extends _0x335939{['_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 _0x2bb260=this['editor'];_0x2bb260['ui']['componentFactory']['add']('uploadcareImageEdit',_0x24080f=>{const _0x2e5193=_0x2bb260['commands']['get']('uploadcareImageEdit'),_0x9f5574=new _0x54c86e(_0x24080f),t=_0x24080f['t'];return _0x9f5574['set']({'icon':_0xa3d37a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x9f5574['bind']('isEnabled')['to'](_0x2e5193),_0x9f5574['bind']('isOn')['to'](_0x2e5193,'isActive'),this['listenTo'](_0x9f5574,'execute',()=>{_0x2bb260['execute']('uploadcareImageEdit'),_0x2bb260['editing']['view']['focus']();}),_0x9f5574;}),this['_initConfig']();}['_initConfig'](){const _0x275f3a=_0x1d1955(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x275f3a),this['listenTo'](this['editor'],'destroy',()=>{_0x275f3a['remove']();});}}class P extends _0x335939{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x11e302,Command as _0x1e5173}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x437ad7,IconGooglePhotos as _0x2449a7,IconGoogleDrive as _0x38eb28,IconFacebook as _0x18b903,IconDropbox as _0x13de28,IconUploadcareLink as _0xbba2c1,IconUploadcareImageUpload as _0x4c86c1,IconError as et,IconUploadcareImageEdit as _0x4b58e6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3c9129,MenuBarMenuListItemButtonView as _0x18cefe,View as _0x24d5a0,FocusCycler as _0x4ce9a9,Dialog as _0x1c95e4,DialogViewPosition as _0x3d0d61,SpinnerView as _0x556548,IconView as at,Notification as _0x15f0e5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x50f164,DomEmitterMixin as _0xacd942,global as _0x2e8b3b,getAncestors as _0xb81ea8,ObservableMixin as _0x206431,createElement as _0x3bc355,uid as _0x1b6d79}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4663d3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x344509,info as _0x438a0b}from'@uploadcare/upload-client';import*as _0x2c2d67 from'@uploadcare/file-uploader';var o=function(_0x99795f){return _0x99795f['Local']='local',_0x99795f['URL']='url',_0x99795f['Dropbox']='dropbox',_0x99795f['GDrive']='gdrive',_0x99795f['Facebook']='facebook',_0x99795f['GPhotos']='gphotos',_0x99795f['OneDrive']='onedrive',_0x99795f;}({});function _(_0x4751d8,_0x34cdf5,_0x4a554c){const t=_0x4751d8['t'],_0x19efaa=_0x4751d8['t'];switch(_0x34cdf5){case o['Local']:return{'text':_0x19efaa('Insert'===_0x4a554c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x19efaa('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x4a554c?_0x19efaa('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x19efaa('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x4a554c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x4a554c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x4a554c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x4a554c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x4a554c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x34cdf5;}}class e extends _0x11e302{['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 _0x248efd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x69dd60;for(const _0x4e157b in _0x248efd){const _0x2f9414=_0x4e157b,_0x3829ab=_0x248efd[_0x2f9414];if('uploadcareLicenseKeyValid'==_0x3829ab||'uploadcareLicenseKeyInvalid'==_0x3829ab||'uploadcareLicenseKeyExpired'==_0x3829ab||'uploadcareLicenseKeyDomainLimit'==_0x3829ab||'uploadcareLicenseKeyNotAllowed'==_0x3829ab||'uploadcareLicenseKeyEvaluationLimit'==_0x3829ab||'uploadcareLicenseKeyTrialLimit'==_0x3829ab||'uploadcareLicenseKeyUsageLimit'==_0x3829ab){delete _0x248efd[_0x2f9414],_0x69dd60=_0x3829ab,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x69dd60&&_0x248efd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x69dd60&&_0x248efd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x69dd60&&_0x248efd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x69dd60&&_0x248efd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x69dd60&&_0x248efd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x69dd60&&_0x248efd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x69dd60&&_0x248efd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x10d0f3}=this,_0x4baedc=_0x10d0f3['commands']['get']('uploadcare');if(!_0x4baedc)return;const _0xe05452=this['_normalizeConfigSourceList'](_0x10d0f3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4e75c9,_0x3dec9d)=>{const _0xfe7951=this['_getIntegrationKey'](_0x3dec9d['type']);return _0x4e75c9[_0xfe7951]||(_0x4e75c9[_0xfe7951]=[]),_0x4e75c9[_0xfe7951]['push'](_0x3dec9d),_0x4e75c9;},{});_0x10d0f3['plugins']['has']('ImageInsertUI')&&_0x10d0f3['commands']['get']('uploadcare')&&Object['entries'](_0xe05452)['forEach'](([_0x96a7ba,_0x3eac9e])=>{_0x10d0f3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x96a7ba,'observable':()=>_0x4baedc,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3eac9e),'formViewCreator':()=>this['_createDropdownButtons'](_0x3eac9e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3eac9e),'override':'assetManager'!==_0x96a7ba});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x798202){const {locale:_0x184862}=this['editor'];return _0x798202['map'](_0x574ee4=>{const _0x31df96=_(_0x184862,_0x574ee4,'Insert');switch(_0x574ee4){case o['Local']:return{'icon':_0x4c86c1,'type':o['Local'],..._0x31df96};case o['URL']:return{'icon':_0xbba2c1,'type':o['URL'],..._0x31df96};case o['Dropbox']:return{'icon':_0x13de28,'type':o['Dropbox'],..._0x31df96};case o['Facebook']:return{'icon':_0x18b903,'type':o['Facebook'],..._0x31df96};case o['GDrive']:return{'icon':_0x38eb28,'type':o['GDrive'],..._0x31df96};case o['GPhotos']:return{'icon':_0x2449a7,'type':o['GPhotos'],..._0x31df96};case o['OneDrive']:return{'icon':_0x437ad7,'type':o['OneDrive'],..._0x31df96};}});}['_getIntegrationKey'](_0x45fc6c){switch(_0x45fc6c){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1be668,_0x15e69e){const _0x56cd49=this['editor'],_0x23d177=new _0x1be668(_0x56cd49['locale']),_0x1d3ddb=_0x56cd49['commands']['get']('uploadcare');return _0x23d177['bind']('isEnabled')['to'](_0x1d3ddb),_0x23d177['on']('execute',()=>{_0x1d3ddb['execute'](_0x15e69e);}),_0x23d177;}['_createToolbarButton'](_0xfa5d3f){const {locale:_0x613ef8}=this['editor'],_0x3a34eb=this['editor']['plugins']['get']('ImageInsertUI'),_0x4493b6=_0xfa5d3f[0x0],_0x34f286=this['_createButton'](_0x3c9129,_0x4493b6['type']);return _0x34f286['icon']=_0x4493b6['icon'],_0x34f286['bind']('label')['to'](_0x3a34eb,'isImageSelected',_0x92cb23=>_(_0x613ef8,_0x4493b6['type'],_0x92cb23?'Replace':'Insert')['text']),_0x34f286['tooltip']=!0x0,_0x34f286;}['_createDropdownButtons'](_0xa35c41){const {locale:_0x38edcc}=this['editor'],_0x250671=this['editor']['plugins']['get']('ImageInsertUI');return _0xa35c41['map'](_0x30c989=>{const _0x2487cf=this['_createButton'](_0x3c9129,_0x30c989['type']);return _0x2487cf['withText']=!0x0,_0x2487cf['icon']=_0x30c989['icon'],_0x2487cf['bind']('label')['to'](_0x250671,'isImageSelected',_0x1c780f=>_(_0x38edcc,_0x30c989['type'],_0x1c780f?'Replace':'Insert')['text']),_0x2487cf;});}['_createMenuBarButtons'](_0x169107){return _0x169107['map'](_0x12b06e=>{const _0x58047f=this['_createButton'](_0x18cefe,_0x12b06e['type']);return _0x58047f['icon']=_0x12b06e['icon'],_0x58047f['label']=_0x12b06e['shortText'],_0x58047f;});}}class q extends _0x24d5a0{['focusTracker'];['focusCycler'];constructor(_0x39df38){super(_0x39df38),this['focusTracker']=new _0x50f164(),this['focusCycler']=new _0x4ce9a9({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x117565){super(_0x117565),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x3b62e5,_0x430298){const _0x37b0f9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1bef6a=>_0x1bef6a<=_0x430298)['map'](_0x5d25b7=>_0x3b62e5['replace'](/\/$/,'')+'/-/resize/'+_0x5d25b7+'x/\x20'+_0x5d25b7+'w');return{'imageFallbackUrl':_0x3b62e5,'imageSources':[{'srcset':_0x37b0f9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x430298+'px)\x20100vw,\x20'+_0x430298+'px','type':'image/webp'}]};}function A(_0xc59713,_0x33c6ba,_0x3f4c3b){const _0x13fd59=_0xc59713['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x13fd59?parseInt(_0x13fd59[0x1],0xa):_0x33c6ba,'height':_0x13fd59?parseInt(_0x13fd59[0x2],0xa):_0x3f4c3b};}function m(_0xf3ce7e,_0x59358a){const _0xf36ad5=new(_0xacd942())(),_0x11a363=_0xf3ce7e['plugins']['get']('ImageUtils'),_0x189661=_0xf3ce7e['editing']['mapper']['toViewElement'](_0x59358a),_0xcbed7f=_0x11a363['findViewImgElement'](_0x189661),_0x56d4f9=_0xf3ce7e['editing']['view']['domConverter']['viewToDom'](_0xcbed7f),_0xbf972=_0x59358a['getAttribute']('width'),_0x804d2b=_0x59358a['getAttribute']('height'),_0x30e2bf='image-processing';_0xf3ce7e['editing']['view']['change'](_0x371f23=>{_0x371f23['addClass'](_0x30e2bf,_0x189661),_0x371f23['setStyle']('aspect-ratio',_0xbf972+'/'+_0x804d2b,_0xcbed7f);}),_0xf36ad5['listenTo'](_0x56d4f9,'load',()=>{_0xf36ad5['stopListening'](_0x56d4f9,'load'),_0xf3ce7e['editing']['view']['change'](_0x41af2b=>{_0x41af2b['removeClass'](_0x30e2bf,_0x189661),_0x41af2b['removeStyle']('aspect-ratio',_0xcbed7f);});});}function V(_0x17929c){if(Array['isArray'](_0x17929c)){const _0x244b26=_0x17929c['map'](V);return _0x19d8ef=>_0x244b26['some'](_0x2ab4cd=>_0x2ab4cd(_0x19d8ef));}if('origin'==_0x17929c){const _0x5aa2a0=_0x2e8b3b['window']['location']['origin'];return _0x1de734=>new URL(_0x1de734,_0x2e8b3b['document']['baseURI'])['origin']==_0x5aa2a0;}return'function'==typeof _0x17929c?_0x17929c:_0x17929c instanceof RegExp?_0x4d06cd=>!(!_0x4d06cd['match'](_0x17929c)&&!_0x4d06cd['replace'](/^https?:\/\//,'')['match'](_0x17929c)):()=>!0x1;}function F(_0x178770,_0x2b27d9){return _0xb81ea8(_0x178770['target'])['includes'](_0x2b27d9);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x206431(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x31fbf5,_0xbe22cd,_0x52a9d5){super(),this['_editor']=_0x31fbf5,this['_editing']=_0xbe22cd,this['_dialog']=_0x31fbf5['plugins']['get'](_0x1c95e4),this['_api']=_0xbe22cd['ctxElement']['getAPI'](),this['_type']=_0x52a9d5,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:_0x51c73e,model:_0x5e37b1}=this['_editor'],_0x27cff8=_0x5e37b1['document']['selection']['getSelectedElement'](),_0xb618dc=_0x27cff8&&(_0x27cff8['is']('element','imageBlock')||_0x27cff8['is']('element','imageInline'));this['_formView']=new S(_0x51c73e),this['_dialog']['show']({'id':'uploadCare','icon':_0x4c86c1,'title':_(_0x51c73e,this['_type'],_0xb618dc?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3d0d61['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x37e91f=>!F(_0x37e91f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1b8db1}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5a1f3b=>{const _0x5d703c=_0x1b8db1['length'];for(const _0x1da494 of _0x1b8db1){const _0x4ec389=_0x1da494===_0x1b8db1[_0x5d703c-0x1],{cdnUrl:_0x1cdadc,fileInfo:_0x2744c3}=_0x1da494;if(!_0x1cdadc||!_0x2744c3)continue;const {width:_0x496c68,height:_0x11ef23}=_0x2744c3['imageInfo'],_0x2b5a7a=A(_0x1cdadc,_0x496c68,_0x11ef23),_0x2ec7f2=E(_0x1cdadc,_0x2b5a7a['width']),_0x2ef67f={'id':_0x2744c3['uuid'],'type':'image','attributes':{'imageDimension':_0x2b5a7a,..._0x2ec7f2}};this['_insertAsset'](_0x2ef67f,_0x4ec389,_0x5a1f3b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5930c3=>{'idle'===_0x5930c3['detail']['status']&&!_0x5930c3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2cc88d,_0x4407cf,_0x24e097){const _0x1c772e=this['_editor']['model']['document']['selection'],_0x3c59ef=_0x1c772e['getSelectedElement'](),_0xa79379=!(!_0x3c59ef||!_0x3c59ef['is']('element','imageInline'));_0x24e097['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2cc88d,_0xa79379),_0x4407cf||_0x24e097['setSelection'](_0x1c772e['getLastPosition']());}['_insertImage'](_0x1db24a,_0x71b6a3){const _0x4f65db=this['_editor'],{imageDimension:_0x5b5435,imageFallbackUrl:_0x4ee07f,imageSources:_0x46258d}=_0x1db24a['attributes'];_0x4f65db['execute']('insertImage',{'imageType':_0x71b6a3?'imageInline':null,'source':{'uploadcareImageId':_0x1db24a['id'],'src':_0x4ee07f,'sources':_0x46258d,..._0x5b5435}});}}class n extends _0x1e5173{['_editing'];['_controller']=null;static get['requires'](){return[_0x1c95e4,i];}constructor(_0x363e27){super(_0x363e27),this['_editing']=_0x363e27['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xd31a0f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xd31a0f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5d35fa,publicKey:_0x45bb7b,signal:_0x4aad35,onProgress:_0x533b32}){return _0x344509(_0x5d35fa,{'publicKey':_0x45bb7b,'store':'auto','signal':_0x4aad35,'onProgress':_0x533b32});}static['getInfo'](_0x3d2226,_0x3cf8de){return _0x438a0b(_0x3d2226,_0x3cf8de);}}class p extends _0x11e302{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4663d3,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x307401=this['editor'];if(!!!_0x307401['config']['get']('uploadcare'))return;_0x307401['plugins']['get'](_0x4663d3)['createUploadAdapter']=_0x3c974e=>new x(_0x3c974e,_0x307401),_0x307401['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xfcf4b9,{imageElement:_0x2b2b1a,data:_0x2f77cb})=>{_0x307401['model']['change'](_0x896f3c=>{_0x896f3c['setAttribute']('uploadcareImageId',_0x2f77cb['uploadcareImageId'],_0x2b2b1a);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x53269a,_0x5c94df){this['loader']=_0x53269a,this['editor']=_0x5c94df,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x345e90=this['editor']['config']['get']('uploadcare.pubkey'),_0x18a436=await this['loader']['file'];return C['upload']({'file':_0x18a436,'publicKey':_0x345e90,'signal':this['controller']['signal'],'onProgress':_0x11ac3c=>{_0x11ac3c&&_0x11ac3c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x11ac3c['value']);}})['then'](async _0x419d8e=>{const {imageFallbackUrl:_0x53966c,imageSources:_0x1a7134}=E(_0x419d8e['cdnUrl'],_0x419d8e['imageInfo']['width']);return{'uploadcareImageId':_0x419d8e['uuid'],'default':_0x53966c,'sources':_0x1a7134};})['catch'](()=>{const _0x1fb01b=t('Cannot\x20upload\x20file:')+('\x20'+_0x18a436['name']+'.');return Promise['reject'](_0x1fb01b);});}['abort'](){this['controller']['abort']();}}class i extends _0x11e302{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1c95e4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x22c79c=this['editor'];_0x22c79c['commands']['add']('uploadcare',new n(_0x22c79c));}['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 _0x2c1ab9=_0x2e8b3b['document']['querySelector']('input[uploadcare-file-input]');_0x2c1ab9&&_0x2c1ab9['remove']();}),async function(_0x4e8680){const _0x4e494b=_0x5cbfe3([0x77,0x44,0x62,0x70,0x37,0x50,0x5a,0x61,0x4a,0x42,0x52,0x31,0x4e,0x43,0x35,0x34,0x49,0x39,0x63,0x38,0x7a,0x6d,0x65,0x55,0x74,0x33,0x73,0x41,0x36,0x45,0x30,0x6a,0x57,0x76,0x64,0x56,0x6c,0x4c,0x47,0x4b,0x59,0x58,0x68,0x75,0x71,0x79,0x53,0x66,0x72,0x48,0x6e,0x4d,0x67,0x51,0x4f,0x6f,0x69,0x32,0x54,0x6b,0x78,0x46]),_0x1dbe1a=0x278c786c,_0x11c8cd=0x278b11a4^_0x1dbe1a,_0x27a0f8=window[_0x5cbfe3([0x44,0x61,0x74,0x65])][_0x5cbfe3([0x6e,0x6f,0x77])](),_0x3236bc=_0x4e8680[_0x5cbfe3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x397bdc=new window[(_0x5cbfe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51283f=>{_0x3236bc[_0x5cbfe3([0x6f,0x6e,0x63,0x65])](_0x5cbfe3([0x72,0x65,0x61,0x64,0x79]),_0x51283f);}),_0x2faeeb={[_0x5cbfe3([0x6b,0x74,0x79])]:_0x5cbfe3([0x45,0x43]),[_0x5cbfe3([0x75,0x73,0x65])]:_0x5cbfe3([0x73,0x69,0x67]),[_0x5cbfe3([0x63,0x72,0x76])]:_0x5cbfe3([0x50,0x2d,0x32,0x35,0x36]),[_0x5cbfe3([0x78])]:_0x5cbfe3([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]),[_0x5cbfe3([0x79])]:_0x5cbfe3([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]),[_0x5cbfe3([0x61,0x6c,0x67])]:_0x5cbfe3([0x45,0x53,0x32,0x35,0x36])},_0x32fd7a=_0x3236bc[_0x5cbfe3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5cbfe3([0x67,0x65,0x74])](_0x5cbfe3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27d386(){let _0x10882a,_0x5cabae=null,_0x234af9=null;try{if(_0x32fd7a==_0x5cbfe3([0x47,0x50,0x4c]))return _0x5cbfe3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x10882a=_0x4548c7(),!_0x10882a)return _0x5cbfe3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x10882a[_0x5cbfe3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x234af9=_0x5c5038(_0x10882a[_0x5cbfe3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x10882a[_0x5cbfe3([0x6a,0x74,0x69])])),await _0x6d502()?_0x517d19()?_0xa790a2()?_0x5cbfe3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c23e4()?(_0x10882a[_0x5cbfe3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cbfe3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5cabae=_0x10282a(_0x5cbfe3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x10882a[_0x5cbfe3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cbfe3([0x74,0x72,0x69,0x61,0x6c])&&(_0x5cabae=_0x10282a(_0x5cbfe3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9ebb42()):_0x5cbfe3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5cbfe3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5cbfe3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5cbfe3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xa790a2(){const _0x333c6b=[_0x5cbfe3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5cbfe3([0x74,0x72,0x69,0x61,0x6c])][_0x5cbfe3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10882a[_0x5cbfe3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x27a0f8/0x3e8:0xe10*_0x11c8cd;return _0x10882a[_0x5cbfe3([0x65,0x78,0x70])]<_0x333c6b;}function _0x517d19(){const _0x17324d=_0x10882a[_0x5cbfe3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17324d&&(!!_0x17324d[_0x5cbfe3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cbfe3([0x2a]))||!!_0x17324d[_0x5cbfe3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cbfe3([0x55,0x50,0x4c,0x43])));}function _0x2c23e4(){const _0x123025=_0x10882a[_0x5cbfe3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x123025||0x0==_0x123025[_0x5cbfe3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ab3a5}=new URL(window[_0x5cbfe3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x123025[_0x5cbfe3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ab3a5))return!0x0;const _0x547db1=_0x2ab3a5[_0x5cbfe3([0x73,0x70,0x6c,0x69,0x74])](_0x5cbfe3([0x2e]));return _0x123025[_0x5cbfe3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x86afe1=>_0x86afe1[_0x5cbfe3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cbfe3([0x2a])))[_0x5cbfe3([0x6d,0x61,0x70])](_0x5f0a74=>_0x5f0a74[_0x5cbfe3([0x73,0x70,0x6c,0x69,0x74])](_0x5cbfe3([0x2e])))[_0x5cbfe3([0x73,0x6f,0x6d,0x65])](_0x2869ef=>_0x547db1[_0x5cbfe3([0x65,0x76,0x65,0x72,0x79])]((_0x1d6ef3,_0x3d91e4)=>_0x2869ef[_0x3d91e4]===_0x1d6ef3||_0x2869ef[_0x3d91e4]===_0x5cbfe3([0x2a])));}function _0x9ebb42(){return _0x5cabae&&_0x234af9?new window[(_0x5cbfe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x563c36,_0x28ec0a)=>{_0x5cabae[_0x5cbfe3([0x74,0x68,0x65,0x6e])](_0x563c36,_0x28ec0a),_0x234af9[_0x5cbfe3([0x74,0x68,0x65,0x6e])](_0x11990d=>{_0x11990d!=_0x5cbfe3([0x56,0x61,0x6c,0x69,0x64])&&_0x563c36(_0x11990d);},_0x28ec0a);}):_0x5cabae||_0x234af9||_0x5cbfe3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c5038(_0x5ef92b,_0x1c479c){return new window[(_0x5cbfe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x278d95=>{if(_0x4446b8())return _0x278d95(_0x5cbfe3([0x56,0x61,0x6c,0x69,0x64]));_0x4bda95(),_0x3236bc[_0x5cbfe3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5cbfe3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x320a17=!0x1;const _0x2a5510=_0x1b6d79();function _0x5493ae(_0x58ac5e){return!!_0x58ac5e&&(typeof _0x58ac5e===_0x5cbfe3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58ac5e===_0x5cbfe3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58ac5e[_0x5cbfe3([0x74,0x68,0x65,0x6e])]===_0x5cbfe3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58ac5e[_0x5cbfe3([0x63,0x61,0x74,0x63,0x68])]===_0x5cbfe3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e0aca(_0x371447){_0x71d956(_0x371447)[_0x5cbfe3([0x74,0x68,0x65,0x6e])](_0x39efa5=>{if(!_0x39efa5||_0x39efa5[_0x5cbfe3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5cbfe3([0x6f,0x6b]))return _0x5cbfe3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x8a1586(_0x324e8c(_0x2a5510+_0x1c479c))!=_0x39efa5[_0x5cbfe3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5cbfe3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5cbfe3([0x56,0x61,0x6c,0x69,0x64]);})[_0x5cbfe3([0x74,0x68,0x65,0x6e])](_0x563212=>(_0x162755(),_0x563212),()=>{const _0x3603fc=_0x14480a();return null==_0x3603fc?(_0x162755(),_0x5cbfe3([0x56,0x61,0x6c,0x69,0x64])):_0x5cbfe3(_0x27a0f8-_0x3603fc>(0x380fc6c^_0x1dbe1a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5cbfe3([0x74,0x68,0x65,0x6e])](_0x278d95)[_0x5cbfe3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x278d95(_0x5cbfe3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x492437=0x27ba96ec^_0x1dbe1a;function _0x162755(){const _0x484b74=_0x5cbfe3([0x6c,0x6c,0x63,0x74,0x2d])+_0x8a1586(_0x324e8c(_0x5ef92b)),_0x30405e=_0x369c76(_0x8a1586(window[_0x5cbfe3([0x4d,0x61,0x74,0x68])][_0x5cbfe3([0x63,0x65,0x69,0x6c])](_0x27a0f8/_0x492437)));window[_0x5cbfe3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cbfe3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x484b74,_0x30405e);}function _0x14480a(){const _0x234734=_0x5cbfe3([0x6c,0x6c,0x63,0x74,0x2d])+_0x8a1586(_0x324e8c(_0x5ef92b)),_0x29cba5=window[_0x5cbfe3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cbfe3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x234734);return _0x29cba5?window[_0x5cbfe3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x369c76(_0x29cba5),0x10)*_0x492437:null;}function _0x71d956(_0x276248){return new window[(_0x5cbfe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a474b,_0x472581)=>{_0x276248[_0x5cbfe3([0x74,0x68,0x65,0x6e])](_0x1a474b,_0x472581),window[_0x5cbfe3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x472581,0x278dacac^_0x1dbe1a);});}}_0x3236bc[_0x5cbfe3([0x6f,0x6e])](_0x5cbfe3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x567a7a,_0x38c201)=>{if(_0x38c201[0x0]!=_0x5ef92b)return _0x278d95(_0x5cbfe3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x38c201[0x1]={..._0x38c201[0x1],[_0x5cbfe3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a5510};},{[_0x5cbfe3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cbfe3([0x68,0x69,0x67,0x68])}),_0x3236bc[_0x5cbfe3([0x6f,0x6e])](_0x5cbfe3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x18b06b=>{_0x5493ae(_0x18b06b[_0x5cbfe3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x320a17=!0x0,_0x4e0aca(_0x18b06b[_0x5cbfe3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5cbfe3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cbfe3([0x6c,0x6f,0x77])}),_0x397bdc[_0x5cbfe3([0x74,0x68,0x65,0x6e])](()=>{_0x320a17||_0x278d95(_0x5cbfe3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4446b8(){return _0x3236bc[_0x5cbfe3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cbfe3([0x76,0x69,0x65,0x77])][_0x5cbfe3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5cbfe3([0x61,0x75,0x74,0x6f]);}function _0x4bda95(){_0x3236bc[_0x5cbfe3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cbfe3([0x76,0x69,0x65,0x77])][_0x5cbfe3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5cbfe3([0x61,0x75,0x74,0x6f]);}}function _0x10282a(_0xc1e37f){const _0x2a9fd4=[new window[(_0x5cbfe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x187b89=>setTimeout(_0x187b89,0x278546a0^_0x1dbe1a)),_0x397bdc[_0x5cbfe3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5cbfe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc4f05e=>{let _0xdf72c6=0x0;_0x3236bc[_0x5cbfe3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cbfe3([0x6f,0x6e])](_0x5cbfe3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2fe125,_0x3a1c68)=>{_0x3a1c68[0x0][_0x5cbfe3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xdf72c6++,_0xdf72c6==(0x278c7994^_0x1dbe1a)&&(_0xc4f05e(),_0x2fe125[_0x5cbfe3([0x6f,0x66,0x66])]());});}))];return window[_0x5cbfe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5cbfe3([0x72,0x61,0x63,0x65])](_0x2a9fd4)[_0x5cbfe3([0x74,0x68,0x65,0x6e])](()=>_0xc1e37f);}async function _0x45f095(){await _0x397bdc,_0x3236bc[_0x5cbfe3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cbfe3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2b1b0b,_0x3236bc[_0x5cbfe3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cbfe3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2b1b0b,_0x3236bc[_0x5cbfe3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5cbfe3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d4c6a(_0x2c3f37){const _0x1759ab=_0x198d1c();_0x3236bc[_0x1759ab]=_0x5cbfe3([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c3f37,_0x2c3f37!=_0x5cbfe3([0x56,0x61,0x6c,0x69,0x64])&&_0x45f095();}function _0x198d1c(){const _0x30539f=window[_0x5cbfe3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5cbfe3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5cbfe3([0x6e,0x6f,0x77])]())[_0x5cbfe3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5cbfe3([0x2e]),'');let _0x2c85b8=_0x5cbfe3([0x77]);for(let _0x3e2cf7=0x0;_0x3e2cf7<_0x30539f[_0x5cbfe3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e2cf7+=0x2){let _0x237495=window[_0x5cbfe3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30539f[_0x5cbfe3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e2cf7,_0x3e2cf7+0x2));_0x237495>=_0x4e494b[_0x5cbfe3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x237495-=_0x4e494b[_0x5cbfe3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c85b8+=_0x4e494b[_0x237495];}return _0x2c85b8;}function _0x4548c7(){const _0x1b4f16=_0x32fd7a[_0x5cbfe3([0x73,0x70,0x6c,0x69,0x74])](_0x5cbfe3([0x2e]));if(0x3!=_0x1b4f16[_0x5cbfe3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x342a69(_0x1b4f16[0x1]);function _0x342a69(_0x4e6725){const _0x8a77db=_0x56855f(_0x4e6725);return _0x8a77db&&_0xd20acb()?_0x8a77db:null;function _0xd20acb(){const _0x12c6a9=_0x8a77db[_0x5cbfe3([0x6a,0x74,0x69])],_0x3e08df=window[_0x5cbfe3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12c6a9[_0x5cbfe3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12c6a9[_0x5cbfe3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d97a4={..._0x8a77db,[_0x5cbfe3([0x6a,0x74,0x69])]:_0x12c6a9[_0x5cbfe3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x12c6a9[_0x5cbfe3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d97a4[_0x5cbfe3([0x76,0x63])],_0x324e8c(_0x1d97a4)==_0x3e08df;}}}async function _0x6d502(){let _0x5a945f=!0x0;try{const _0x4cbde6=_0x32fd7a[_0x5cbfe3([0x73,0x70,0x6c,0x69,0x74])](_0x5cbfe3([0x2e])),[_0x2a3360,_0x3a471c,_0x49adb2]=_0x4cbde6;return _0x5a878f(_0x2a3360),await _0xc1c51e(_0x2a3360,_0x3a471c,_0x49adb2),_0x5a945f;}catch{return!0x1;}function _0x5a878f(_0x5dd435){const _0x5cb9f0=_0x56855f(_0x5dd435);_0x5cb9f0&&_0x5cb9f0[_0x5cbfe3([0x61,0x6c,0x67])]==_0x5cbfe3([0x45,0x53,0x32,0x35,0x36])||(_0x5a945f=!0x1);}async function _0xc1c51e(_0x1fbbac,_0x37fe97,_0x5e06de){const _0x2d5a24=window[_0x5cbfe3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5cbfe3([0x66,0x72,0x6f,0x6d])](_0x40083d(_0x5e06de),_0x275031=>_0x275031[_0x5cbfe3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x237474=new window[(_0x5cbfe3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5cbfe3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1fbbac+_0x5cbfe3([0x2e])+_0x37fe97),_0x82995d=window[_0x5cbfe3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5cbfe3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x82995d)return;const _0x3e93ed=await _0x82995d[_0x5cbfe3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5cbfe3([0x6a,0x77,0x6b]),_0x2faeeb,{[_0x5cbfe3([0x6e,0x61,0x6d,0x65])]:_0x5cbfe3([0x45,0x43,0x44,0x53,0x41]),[_0x5cbfe3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5cbfe3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5cbfe3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x82995d[_0x5cbfe3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5cbfe3([0x6e,0x61,0x6d,0x65])]:_0x5cbfe3([0x45,0x43,0x44,0x53,0x41]),[_0x5cbfe3([0x68,0x61,0x73,0x68])]:{[_0x5cbfe3([0x6e,0x61,0x6d,0x65])]:_0x5cbfe3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e93ed,_0x2d5a24,_0x237474)||(_0x5a945f=!0x1);}}function _0x56855f(_0x35120e){return _0x35120e[_0x5cbfe3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5cbfe3([0x65,0x79]))?JSON[_0x5cbfe3([0x70,0x61,0x72,0x73,0x65])](_0x40083d(_0x35120e)):null;}function _0x40083d(_0x1ccec9){return window[_0x5cbfe3([0x61,0x74,0x6f,0x62])](_0x1ccec9[_0x5cbfe3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5cbfe3([0x2b]))[_0x5cbfe3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5cbfe3([0x2f])));}function _0x324e8c(_0x30cbed){let _0xfbcdb6=0x1505;function _0x92fd87(_0x2326fd){for(let _0x5815f3=0x0;_0x5815f3<_0x2326fd[_0x5cbfe3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5815f3++){const _0x17fa31=_0x2326fd[_0x5cbfe3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5815f3);_0xfbcdb6=(_0xfbcdb6<<0x5)+_0xfbcdb6+_0x17fa31,_0xfbcdb6&=_0xfbcdb6;}}function _0x15a113(_0x5a95e2){Array[_0x5cbfe3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5a95e2)?_0x5a95e2[_0x5cbfe3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15a113):_0x5a95e2&&typeof _0x5a95e2==_0x5cbfe3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5cbfe3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5a95e2)[_0x5cbfe3([0x73,0x6f,0x72,0x74])]()[_0x5cbfe3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a4459,_0xbf9067])=>{_0x92fd87(_0x2a4459),_0x15a113(_0xbf9067);}):_0x92fd87(window[_0x5cbfe3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5a95e2));}return _0x15a113(_0x30cbed),_0xfbcdb6>>>0x0;}function _0x8a1586(_0x409612){return _0x409612[_0x5cbfe3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5cbfe3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5cbfe3([0x30]));}function _0x369c76(_0x34cc75){return _0x34cc75[_0x5cbfe3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5cbfe3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5cbfe3([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b1b0b(){}function _0x5cbfe3(_0x378f55){return _0x378f55['map'](_0x32fbb7=>String['fromCharCode'](_0x32fbb7))['join']('');}_0x4d4c6a(await _0x27d386());}(this);}['_initSchema'](){const _0x2b470f=this['editor']['model']['schema'];_0x2b470f['isRegistered']('imageBlock')&&_0x2b470f['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2b470f['isRegistered']('imageInline')&&_0x2b470f['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2ae7e3=this['editor'];_0x2ae7e3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2ae7e3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1133e1=>_0x1133e1['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x11e67e=_0x2ae7e3['commands']['get']('replaceImageSource');_0x11e67e&&this['listenTo'](_0x11e67e,'cleanupImage',(_0x5e2a1e,[_0x3a1199,_0x59b364])=>{_0x3a1199['removeAttribute']('uploadcareImageId',_0x59b364);});}['_initConfig'](){const _0x1032b5=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4eb278=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3bc355(_0x2e8b3b['document'],'uc-config',{..._0x1032b5,'pubkey':_0x4eb278,'ctx-name':'uploader','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']=_0x17b90d=>{if('closeMax'==_0x17b90d)return'#uc-icon-arrow-down';},_0x2e8b3b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3bc355(_0x2e8b3b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x2e8b3b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x239be7=this['editor']['commands']['get']('insertImage');_0x239be7&&this['listenTo'](_0x239be7,'execute',()=>{const _0x10c1f9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10c1f9&&_0x10c1f9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x10c1f9);});});const _0x302c05=this['editor']['commands']['get']('uploadcareImageReplace');_0x302c05&&this['listenTo'](_0x302c05,'execute',()=>{const _0x4b6b07=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b6b07&&_0x4b6b07['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4b6b07);});});}}class u extends _0x11e302{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40c5c9){super(_0x40c5c9),_0x40c5c9['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2c2d67['defineComponents'](_0x2c2d67);}}class ta extends _0x24d5a0{constructor(_0x53f8eb){super(_0x53f8eb);const t=_0x53f8eb['t'],_0x243a4f=this['bindTemplate'],_0x27787e=new _0x556548();_0x27787e['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':[_0x27787e,{'text':_0x243a4f['to']('imageUploadProgress',_0x5b1978=>t('Loading\x20image...')+'\x20('+(_0x5b1978||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 rt extends _0x24d5a0{constructor(_0x5daf83){super(_0x5daf83);const t=_0x5daf83['t'];this['set']('errorType',null);const _0x1b7031=new _0x3c9129(_0x5daf83);_0x1b7031['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1b7031['withText']=!0x0,_0x1b7031['class']='ck-button-action',_0x1b7031['on']('execute',()=>{this['fire']('retry');}),_0x1b7031['bind']('isVisible')['to'](this,'errorType',_0x388a30=>'NotFound'!==_0x388a30);const _0x435086=new at();_0x435086['content']=et,_0x435086['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x377fa0=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':[_0x435086,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x377fa0['to']('errorType',_0x21e4e7=>t('NotFound'!==_0x21e4e7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1b7031]},{'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 tt extends _0x24d5a0{constructor(_0x16cb56,_0x5ce3ac){super(_0x16cb56);const _0x458868=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5ce3ac,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x458868['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1cf289,_0x12f6b5,_0x9de10f){super(_0x1cf289),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x1cf289),this['_errorView']=new rt(_0x1cf289),this['_editingView']=new tt(_0x1cf289,_0x9de10f),this['_focusableView']=new _0x24d5a0(_0x1cf289),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x12f6b5),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'],_0x218f77=>{this['_addUploadcareImageEditorListeners'](_0x218f77);});}),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'](_0x501e5c,_0x3a2c16){const _0xc11bed='uc-cloud-image-editor',_0x4b41bf=_0x501e5c['querySelector'](_0xc11bed);if(_0x4b41bf)return _0x3a2c16(_0x4b41bf);const _0x499324=new MutationObserver(_0x46039b=>{const _0x11782c=_0x46039b['filter'](_0x369315=>_0x369315['target']===_0x501e5c&&_0x369315['addedNodes']['length']>0x0&&_0x369315['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xc11bed);_0x11782c['length']&&(_0x499324['disconnect'](),_0x3a2c16(_0x11782c[0x0]['addedNodes'][0x0]));});_0x499324['observe'](_0x501e5c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4ea28c){_0x4ea28c['addEventListener']('apply',_0x10b234=>{this['fire']('apply',{'imageSrc':_0x10b234['detail']['cdnUrl']});}),_0x4ea28c['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x206431(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x50c1c0,_0x643f3,_0x313474){super(),this['_editor']=_0x50c1c0,this['_dialog']=_0x643f3,this['_imageElement']=_0x313474,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 _0x11a3d1=this['_imageElement'],_0x7e91ea=_0x11a3d1['getAttribute']('uploadcareImageId'),_0x35582d=_0x11a3d1['getAttribute']('src');if(_0x7e91ea)await this['_loadImageInfo'](_0x7e91ea,_0x35582d);else{if(this['_imageCache']['has'](_0x35582d)){const _0x20f47d=this['_imageCache']['get'](_0x35582d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x20f47d['url'],this['imageDimension']=_0x20f47d['dimension'],this['imageId']=_0x20f47d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2d78d2}=this['_editor'],t=_0x2d78d2['t'],_0x4c269d=new Z(_0x2d78d2,this['imageStatus'],this['_attributes']);_0x4c269d['bind']('status')['to'](this,'imageStatus'),_0x4c269d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4c269d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4c269d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4c269d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4b58e6,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4c269d,'position':_0x3d0d61['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4c269d['focus']();},'onHide':()=>{_0x4c269d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4698f9=>!F(_0x4698f9,_0x4c269d['element'])}});}['_loadImageInfo'](_0x2855a1,_0x221851){return C['getInfo'](_0x2855a1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2ca193=>{const {width:_0x4ad068,height:_0x365539}=_0x2ca193['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x221851,this['imageDimension']={'width':_0x4ad068,'height':_0x365539},this['imageId']=_0x2855a1;})['catch'](_0x1cbaea=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1cbaea['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x38db0c,_0x49821f){return this['_getImageAsFile'](_0x38db0c)['then'](_0x361604=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x49821f['signal'],'file':_0x361604,'onProgress':_0x1ac32b=>{_0x1ac32b&&_0x1ac32b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1ac32b['value']));}}))['then'](_0x4e7c25=>{const {width:_0x2467ea,height:_0x588e2a}=_0x4e7c25['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e7c25['cdnUrl'],this['imageDimension']={'width':_0x2467ea,'height':_0x588e2a},this['imageId']=_0x4e7c25['uuid'],this['imageUploadProgress']=null;const _0x22b2f5=_0x38db0c['getAttribute']('src');this['_imageCache']['set'](_0x22b2f5,{'id':_0x4e7c25['uuid'],'url':_0x4e7c25['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2f407f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2f407f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2f7f89,_0x377458){_0x2f7f89['on']('apply',(_0x3133e8,_0x15a648)=>{this['_replaceImage'](_0x377458,_0x15a648['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2f7f89['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2f7f89['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3a15bb,_0x382e74,_0x41b08d){const _0x23632a=this['_editor'],{width:_0x499321,height:_0x28e06b}=A(_0x382e74,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x45edd2,imageSources:_0x1d6fb7}=E(_0x382e74,_0x499321);_0x23632a['model']['change'](_0x39c26b=>{if('$graveyard'===_0x3a15bb['root']['rootName']){_0x23632a['execute']('insertImage',{'imageType':_0x3a15bb['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3a15bb['getAttributes']()),'uploadcareImageId':_0x41b08d,'src':_0x45edd2,'sources':_0x1d6fb7,'width':_0x499321,'height':_0x28e06b}});const _0x1ae310=_0x3a15bb['getChildren']();_0x3a15bb=_0x23632a['model']['document']['selection']['getSelectedElement']();for(const _0x4800bd of _0x1ae310)_0x39c26b['append'](_0x39c26b['cloneElement'](_0x4800bd),_0x3a15bb);}else _0x39c26b['setSelection'](_0x3a15bb,'on'),_0x23632a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3a15bb['getAttributes']()),'uploadcareImageId':_0x41b08d,'src':_0x45edd2,'sources':_0x1d6fb7,'width':_0x499321,'height':_0x28e06b},_0x3a15bb);_0x39c26b['setSelection'](_0x3a15bb,'on');});}async['_getImageAsFile'](_0x166a61){const _0x4c284c=_0x2e8b3b['window'],_0x5f0245=_0x2e8b3b['document']['location']['href'],_0x506baf=new _0x4c284c['URL'](_0x166a61['getAttribute']('src'),_0x5f0245);if('data:'===_0x506baf['protocol']){const _0x3b4aff=_0x506baf['href']['split'](','),_0x39ae11=_0x3b4aff[0x0]['match'](/:(.*?);/)[0x1],_0x38f8c7=_0x39ae11['split']('/')[0x1],_0x258f22=_0x4c284c['atob'](_0x3b4aff[_0x3b4aff['length']-0x1]);let _0x55bc1d=_0x258f22['length'];const _0x153091=new _0x4c284c['Uint8Array'](_0x55bc1d);for(;_0x55bc1d--;)_0x153091[_0x55bc1d]=_0x258f22['charCodeAt'](_0x55bc1d);return new _0x4c284c['File']([_0x153091],'image.'+_0x38f8c7,{'type':_0x39ae11});}const _0x44983c=_0x506baf['href']['split']('/'),_0x1dc9ad=_0x44983c[_0x44983c['length']-0x1],_0x413789=_0x1dc9ad['split']('.')[0x1];return _0x4c284c['fetch'](_0x506baf['href'])['then'](_0x441b5e=>_0x441b5e['clone']()['blob']())['then'](_0x55583f=>new _0x4c284c['File']([_0x55583f],_0x1dc9ad,{'type':'image/'+_0x413789}));}}class J extends _0x1e5173{['imageEditController'];static get['requires'](){return[_0x1c95e4];}['_isEditable'];constructor(_0x2592d6){super(_0x2592d6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2020b8){const _0x4a122b=V(_0x2020b8);return _0x330f72=>!(!_0x330f72||!_0x330f72['is']('element','imageBlock')&&!_0x330f72['is']('element','imageInline'))&&(!!_0x330f72['hasAttribute']('uploadcareImageId')||!!_0x330f72['hasAttribute']('src')&&_0x4a122b(_0x330f72['getAttribute']('src')));}(_0x2592d6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4a3f47=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4a3f47);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xdd6b0a=this['editor']['model']['document']['selection']['getSelectedElement']();_0xdd6b0a&&(_0xdd6b0a['is']('element','imageBlock')||_0xdd6b0a['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1c95e4),_0xdd6b0a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1e5173{['refresh'](){const _0x31753c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x31753c&&(_0x31753c['is']('element','imageBlock')||_0x31753c['is']('element','imageInline')));}['execute'](_0x50631e){const _0x1428f3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5b10d6=>{_0x5b10d6['setAttributes'](_0x50631e,_0x1428f3),_0x5b10d6['removeAttribute']('srcset',_0x1428f3),_0x5b10d6['removeAttribute']('sizes',_0x1428f3);});}}class g extends _0x11e302{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x15f0e5,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x594b2e}=this;_0x594b2e['commands']['add']('uploadcareImageEdit',new J(_0x594b2e)),_0x594b2e['commands']['add']('uploadcareImageReplace',new O(_0x594b2e));}}class j extends _0x11e302{['_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 _0x4d06a5=this['editor'];_0x4d06a5['ui']['componentFactory']['add']('uploadcareImageEdit',_0xd57208=>{const _0x6a9535=_0x4d06a5['commands']['get']('uploadcareImageEdit'),_0x36200e=new _0x3c9129(_0xd57208),t=_0xd57208['t'];return _0x36200e['set']({'icon':_0x4b58e6,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x36200e['bind']('isEnabled')['to'](_0x6a9535),_0x36200e['bind']('isOn')['to'](_0x6a9535,'isActive'),this['listenTo'](_0x36200e,'execute',()=>{_0x4d06a5['execute']('uploadcareImageEdit'),_0x4d06a5['editing']['view']['focus']();}),_0x36200e;}),this['_initConfig']();}['_initConfig'](){const _0x1ff526=_0x3bc355(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1ff526),this['listenTo'](this['editor'],'destroy',()=>{_0x1ff526['remove']();});}}class P extends _0x11e302{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
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':_0x24b48a=>0x1!=_0x24b48a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2224c3=>{const {af:{dictionary:_0xff17e9,getPluralForm:_0xb3d20d}}={'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':_0x5a64b0=>0x1!=_0x5a64b0}};_0x2224c3['af']||={'dictionary':{},'getPluralForm':null},_0x2224c3['af']['dictionary']=Object['assign'](_0x2224c3['af']['dictionary'],_0xff17e9),_0x2224c3['af']['getPluralForm']=_0xb3d20d;})(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':_0x19c08b=>0x0==_0x19c08b?0x0:0x1==_0x19c08b?0x1:0x2==_0x19c08b?0x2:_0x19c08b%0x64>=0x3&&_0x19c08b%0x64<=0xa?0x3:_0x19c08b%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x229ad9=>{const {ar:{dictionary:_0x1c4722,getPluralForm:_0x45c294}}={'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':_0x326224=>0x0==_0x326224?0x0:0x1==_0x326224?0x1:0x2==_0x326224?0x2:_0x326224%0x64>=0x3&&_0x326224%0x64<=0xa?0x3:_0x326224%0x64>=0xb?0x4:0x5}};_0x229ad9['ar']||={'dictionary':{},'getPluralForm':null},_0x229ad9['ar']['dictionary']=Object['assign'](_0x229ad9['ar']['dictionary'],_0x1c4722),_0x229ad9['ar']['getPluralForm']=_0x45c294;})(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':_0x2fee1b=>0x1!=_0x2fee1b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x327317=>{const {ast:{dictionary:_0x830267,getPluralForm:_0x276122}}={'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':_0x2a89f0=>0x1!=_0x2a89f0}};_0x327317['ast']||={'dictionary':{},'getPluralForm':null},_0x327317['ast']['dictionary']=Object['assign'](_0x327317['ast']['dictionary'],_0x830267),_0x327317['ast']['getPluralForm']=_0x276122;})(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':_0x27d946=>0x1!=_0x27d946}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4db534=>{const {az:{dictionary:_0x2c50f5,getPluralForm:_0x50a243}}={'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':_0x38bc72=>0x1!=_0x38bc72}};_0x4db534['az']||={'dictionary':{},'getPluralForm':null},_0x4db534['az']['dictionary']=Object['assign'](_0x4db534['az']['dictionary'],_0x2c50f5),_0x4db534['az']['getPluralForm']=_0x50a243;})(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':_0x514daa=>_0x514daa%0xa==0x1&&_0x514daa%0x64!=0xb?0x0:_0x514daa%0xa>=0x2&&_0x514daa%0xa<=0x4&&(_0x514daa%0x64<0xa||_0x514daa%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3a55c9=>{const {be:{dictionary:_0x38015d,getPluralForm:_0x3dab92}}={'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':_0x2316d7=>_0x2316d7%0xa==0x1&&_0x2316d7%0x64!=0xb?0x0:_0x2316d7%0xa>=0x2&&_0x2316d7%0xa<=0x4&&(_0x2316d7%0x64<0xa||_0x2316d7%0x64>=0x14)?0x1:0x2}};_0x3a55c9['be']||={'dictionary':{},'getPluralForm':null},_0x3a55c9['be']['dictionary']=Object['assign'](_0x3a55c9['be']['dictionary'],_0x38015d),_0x3a55c9['be']['getPluralForm']=_0x3dab92;})(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':_0x287945=>0x1!=_0x287945}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x423863=>{const {bg:{dictionary:_0xe598ea,getPluralForm:_0x58940e}}={'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':_0xea6ab=>0x1!=_0xea6ab}};_0x423863['bg']||={'dictionary':{},'getPluralForm':null},_0x423863['bg']['dictionary']=Object['assign'](_0x423863['bg']['dictionary'],_0xe598ea),_0x423863['bg']['getPluralForm']=_0x58940e;})(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':_0x3e336c=>0x1!=_0x3e336c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3e3a0a=>{const {bn:{dictionary:_0x42e155,getPluralForm:_0x2a576d}}={'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':_0x5a7dfd=>0x1!=_0x5a7dfd}};_0x3e3a0a['bn']||={'dictionary':{},'getPluralForm':null},_0x3e3a0a['bn']['dictionary']=Object['assign'](_0x3e3a0a['bn']['dictionary'],_0x42e155),_0x3e3a0a['bn']['getPluralForm']=_0x2a576d;})(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':_0x3eb233=>_0x3eb233%0xa==0x1&&_0x3eb233%0x64!=0xb?0x0:_0x3eb233%0xa>=0x2&&_0x3eb233%0xa<=0x4&&(_0x3eb233%0x64<0xa||_0x3eb233%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x47bb3d=>{const {bs:{dictionary:_0xa71410,getPluralForm:_0x25bae7}}={'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':_0x3b0af1=>_0x3b0af1%0xa==0x1&&_0x3b0af1%0x64!=0xb?0x0:_0x3b0af1%0xa>=0x2&&_0x3b0af1%0xa<=0x4&&(_0x3b0af1%0x64<0xa||_0x3b0af1%0x64>=0x14)?0x1:0x2}};_0x47bb3d['bs']||={'dictionary':{},'getPluralForm':null},_0x47bb3d['bs']['dictionary']=Object['assign'](_0x47bb3d['bs']['dictionary'],_0xa71410),_0x47bb3d['bs']['getPluralForm']=_0x25bae7;})(window['CKEDITOR_TRANSLATIONS']||={});
|