@ckeditor/ckeditor5-uploadcare 46.1.1-alpha.3 → 46.1.1
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 _0x34f025,Command as _0x542e6d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2bfdf4,IconGooglePhotos as _0x1ae181,IconGoogleDrive as _0x11b8d8,IconFacebook as _0x4b98c3,IconDropbox as _0x429150,IconUploadcareLink as _0x241afa,IconUploadcareImageUpload as _0x11b2c0,IconError as _0x5abe47,IconUploadcareImageEdit as _0x554d30}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x228f39,MenuBarMenuListItemButtonView as _0x47545f,View as _0x2e1cc4,FocusCycler as _0x245ff7,Dialog as _0x2b0a49,DialogViewPosition as _0x3a6281,SpinnerView as _0x215c5e,IconView as _0x18f700,Notification as _0x22b418}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x343b6e,DomEmitterMixin as _0x32cb15,global as _0x458d72,getAncestors as _0x8fa56b,ObservableMixin as _0x2540e3,uid as _0x1c7a19,createElement as _0x53d32b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2d80ff}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x448dfa,info as _0x280e9f}from'@uploadcare/upload-client';import*as _0x3bbf06 from'@uploadcare/file-uploader';var i=function(_0x4fbab5){return _0x4fbab5['Local']='local',_0x4fbab5['URL']='url',_0x4fbab5['Dropbox']='dropbox',_0x4fbab5['GDrive']='gdrive',_0x4fbab5['Facebook']='facebook',_0x4fbab5['GPhotos']='gphotos',_0x4fbab5['OneDrive']='onedrive',_0x4fbab5;}({});function _(_0x4c1f8a,_0x204aae,_0x1f9cb7){const t=_0x4c1f8a['t'],_0x38c85d=_0x4c1f8a['t'];switch(_0x204aae){case i['Local']:return{'text':_0x38c85d('Insert'===_0x1f9cb7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x38c85d('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1f9cb7?_0x38c85d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x38c85d('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1f9cb7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1f9cb7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1f9cb7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1f9cb7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1f9cb7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x204aae;}}class e extends _0x34f025{['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 _0x190b32=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1936d4;for(const _0x95131a in _0x190b32){const _0x244475=_0x95131a,_0x4e9b27=_0x190b32[_0x244475];if('uploadcareLicenseKeyValid'==_0x4e9b27||'uploadcareLicenseKeyInvalid'==_0x4e9b27||'uploadcareLicenseKeyExpired'==_0x4e9b27||'uploadcareLicenseKeyDomainLimit'==_0x4e9b27||'uploadcareLicenseKeyNotAllowed'==_0x4e9b27||'uploadcareLicenseKeyEvaluationLimit'==_0x4e9b27||'uploadcareLicenseKeyTrialLimit'==_0x4e9b27||'uploadcareLicenseKeyUsageLimit'==_0x4e9b27){delete _0x190b32[_0x244475],_0x1936d4=_0x4e9b27,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1936d4&&_0x190b32['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1936d4&&_0x190b32['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1936d4&&_0x190b32['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1936d4&&_0x190b32['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1936d4&&_0x190b32['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1936d4&&_0x190b32['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1936d4&&_0x190b32['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3ec704}=this,_0x460dc3=_0x3ec704['commands']['get']('uploadcare');if(!_0x460dc3)return;const _0xdb3ed8=this['_normalizeConfigSourceList'](_0x3ec704['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x199b58,_0xc9f2c8)=>{const _0x510bdf=this['_getIntegrationKey'](_0xc9f2c8['type']);return _0x199b58[_0x510bdf]||(_0x199b58[_0x510bdf]=[]),_0x199b58[_0x510bdf]['push'](_0xc9f2c8),_0x199b58;},{});_0x3ec704['plugins']['has']('ImageInsertUI')&&_0x3ec704['commands']['get']('uploadcare')&&Object['entries'](_0xdb3ed8)['forEach'](([_0x38bf18,_0x4ef695])=>{_0x3ec704['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x38bf18,'observable':()=>_0x460dc3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4ef695),'formViewCreator':()=>this['_createDropdownButtons'](_0x4ef695),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4ef695),'override':'assetManager'!==_0x38bf18});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1b707d){const {locale:_0x198f9d}=this['editor'];return _0x1b707d['map'](_0x47ad6f=>{const _0x1d1a7b=_(_0x198f9d,_0x47ad6f,'Insert');switch(_0x47ad6f){case i['Local']:return{'icon':_0x11b2c0,'type':i['Local'],..._0x1d1a7b};case i['URL']:return{'icon':_0x241afa,'type':i['URL'],..._0x1d1a7b};case i['Dropbox']:return{'icon':_0x429150,'type':i['Dropbox'],..._0x1d1a7b};case i['Facebook']:return{'icon':_0x4b98c3,'type':i['Facebook'],..._0x1d1a7b};case i['GDrive']:return{'icon':_0x11b8d8,'type':i['GDrive'],..._0x1d1a7b};case i['GPhotos']:return{'icon':_0x1ae181,'type':i['GPhotos'],..._0x1d1a7b};case i['OneDrive']:return{'icon':_0x2bfdf4,'type':i['OneDrive'],..._0x1d1a7b};}});}['_getIntegrationKey'](_0x252f1f){switch(_0x252f1f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xaeb89c,_0x93a9d8){const _0xa8c5ed=this['editor'],_0x1f3ad3=new _0xaeb89c(_0xa8c5ed['locale']),_0x456105=_0xa8c5ed['commands']['get']('uploadcare');return _0x1f3ad3['bind']('isEnabled')['to'](_0x456105),_0x1f3ad3['on']('execute',()=>{_0x456105['execute'](_0x93a9d8);}),_0x1f3ad3;}['_createToolbarButton'](_0x37124d){const {locale:_0x292fb7}=this['editor'],_0x26e26f=this['editor']['plugins']['get']('ImageInsertUI'),_0x4039b8=_0x37124d[0x0],_0x347120=this['_createButton'](_0x228f39,_0x4039b8['type']);return _0x347120['icon']=_0x4039b8['icon'],_0x347120['bind']('label')['to'](_0x26e26f,'isImageSelected',_0x48cc20=>_(_0x292fb7,_0x4039b8['type'],_0x48cc20?'Replace':'Insert')['text']),_0x347120['tooltip']=!0x0,_0x347120;}['_createDropdownButtons'](_0x566fb4){const {locale:_0x285a72}=this['editor'],_0x6f7cf4=this['editor']['plugins']['get']('ImageInsertUI');return _0x566fb4['map'](_0x4814e5=>{const _0x112c09=this['_createButton'](_0x228f39,_0x4814e5['type']);return _0x112c09['withText']=!0x0,_0x112c09['icon']=_0x4814e5['icon'],_0x112c09['bind']('label')['to'](_0x6f7cf4,'isImageSelected',_0x2e69e2=>_(_0x285a72,_0x4814e5['type'],_0x2e69e2?'Replace':'Insert')['text']),_0x112c09;});}['_createMenuBarButtons'](_0x176514){return _0x176514['map'](_0x1b6624=>{const _0x11d660=this['_createButton'](_0x47545f,_0x1b6624['type']);return _0x11d660['icon']=_0x1b6624['icon'],_0x11d660['label']=_0x1b6624['shortText'],_0x11d660;});}}class F extends _0x2e1cc4{['focusTracker'];['focusCycler'];constructor(_0x1cafef){super(_0x1cafef),this['focusTracker']=new _0x343b6e(),this['focusCycler']=new _0x245ff7({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x11c51a,_0x3bd0cf){super(_0x11c51a),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-'+_0x3bd0cf}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3d4963,_0x79cc32){const _0x1546e5=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5ab871=>_0x5ab871<=_0x79cc32)['map'](_0x49e6c9=>_0x3d4963['replace'](/\/$/,'')+'/-/resize/'+_0x49e6c9+'x/\x20'+_0x49e6c9+'w');return{'imageFallbackUrl':_0x3d4963,'imageSources':[{'srcset':_0x1546e5['join'](',\x20'),'sizes':'(max-width:\x20'+_0x79cc32+'px)\x20100vw,\x20'+_0x79cc32+'px','type':'image/webp'}]};}function S(_0x285fab,_0x55beef,_0x2c1db8){const _0x148c46=_0x285fab['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x148c46?parseInt(_0x148c46[0x1],0xa):_0x55beef,'height':_0x148c46?parseInt(_0x148c46[0x2],0xa):_0x2c1db8};}function p(_0x4bd49c,_0x3283b9){const _0x119d46=new(_0x32cb15())(),_0x4cb2b0=_0x4bd49c['plugins']['get']('ImageUtils'),_0xe08b1c=_0x4bd49c['editing']['mapper']['toViewElement'](_0x3283b9),_0x31fd3a=_0x4cb2b0['findViewImgElement'](_0xe08b1c),_0x408e21=_0x4bd49c['editing']['view']['domConverter']['viewToDom'](_0x31fd3a),_0x2633e0=_0x3283b9['getAttribute']('width'),_0x242e0b=_0x3283b9['getAttribute']('height'),_0x503159='image-processing';_0x4bd49c['editing']['view']['change'](_0x31cec8=>{_0x31cec8['addClass'](_0x503159,_0xe08b1c),_0x31cec8['setStyle']('aspect-ratio',_0x2633e0+'/'+_0x242e0b,_0x31fd3a);}),_0x119d46['listenTo'](_0x408e21,'load',()=>{_0x119d46['stopListening'](_0x408e21,'load'),_0x4bd49c['editing']['view']['change'](_0x1772d4=>{_0x1772d4['removeClass'](_0x503159,_0xe08b1c),_0x1772d4['removeStyle']('aspect-ratio',_0x31fd3a);});});}function z(_0x204492){if(Array['isArray'](_0x204492)){const _0x92145e=_0x204492['map'](z);return _0x3729c7=>_0x92145e['some'](_0x396d2d=>_0x396d2d(_0x3729c7));}if('origin'==_0x204492){const _0x5d152c=_0x458d72['window']['location']['origin'];return _0x260fd2=>new URL(_0x260fd2,_0x458d72['document']['baseURI'])['origin']==_0x5d152c;}return'function'==typeof _0x204492?_0x204492:_0x204492 instanceof RegExp?_0x47235b=>!(!_0x47235b['match'](_0x204492)&&!_0x47235b['replace'](/^https?:\/\//,'')['match'](_0x204492)):()=>!0x1;}function A(_0x5cf51f,_0x5dc45d){return _0x8fa56b(_0x5cf51f['target'])['includes'](_0x5dc45d);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2540e3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x35df50,_0x43c7ef,_0x11c865){super(),this['_editor']=_0x35df50,this['_editing']=_0x43c7ef,this['_dialog']=_0x35df50['plugins']['get'](_0x2b0a49),this['_api']=_0x43c7ef['ctxElement']['getAPI'](),this['_type']=_0x11c865,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:_0x2976e3,model:_0xda9e16}=this['_editor'],_0x8eedbd=_0xda9e16['document']['selection']['getSelectedElement'](),_0x65c7b3=_0x8eedbd&&(_0x8eedbd['is']('element','imageBlock')||_0x8eedbd['is']('element','imageInline'));this['_formView']=new x(_0x2976e3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x11b2c0,'title':_(_0x2976e3,this['_type'],_0x65c7b3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3a6281['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xe7894b=>!A(_0xe7894b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x46a6b5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5ab014=>{const _0x45e545=_0x46a6b5['length'];for(const _0x25bc85 of _0x46a6b5){const _0x5dd12d=_0x25bc85===_0x46a6b5[_0x45e545-0x1],{cdnUrl:_0x3f4726,fileInfo:_0x363a9e}=_0x25bc85;if(!_0x3f4726||!_0x363a9e)continue;const {width:_0x41671b,height:_0x4e43e0}=_0x363a9e['imageInfo'],_0x5de9d9=S(_0x3f4726,_0x41671b,_0x4e43e0),_0x5a9054=C(_0x3f4726,_0x5de9d9['width']),_0xf6da1b={'id':_0x363a9e['uuid'],'type':'image','attributes':{'imageDimension':_0x5de9d9,..._0x5a9054}};this['_insertAsset'](_0xf6da1b,_0x5dd12d,_0x5ab014);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x51d1db=>{'idle'===_0x51d1db['detail']['status']&&!_0x51d1db['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x505979,_0x35a327,_0x401d1d){const _0x5884b5=this['_editor']['model']['document']['selection'],_0x55a928=_0x5884b5['getSelectedElement'](),_0x1b092d=!(!_0x55a928||!_0x55a928['is']('element','imageInline'));_0x401d1d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x505979,_0x1b092d),_0x35a327||_0x401d1d['setSelection'](_0x5884b5['getLastPosition']());}['_insertImage'](_0xb8c4bc,_0x5b54d7){const _0x2be962=this['_editor'],{imageDimension:_0x458133,imageFallbackUrl:_0x36fbaa,imageSources:_0x53751a}=_0xb8c4bc['attributes'];_0x2be962['execute']('insertImage',{'imageType':_0x5b54d7?'imageInline':null,'source':{'uploadcareImageId':_0xb8c4bc['id'],'src':_0x36fbaa,'sources':_0x53751a,..._0x458133}});}}class w extends _0x542e6d{['_editing'];['_controller']=null;static get['requires'](){return[_0x2b0a49,o];}constructor(_0x99f720){super(_0x99f720),this['_editing']=_0x99f720['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x16d212){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x16d212);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x2d27cc,..._0x517192}){return _0x448dfa(_0x2d27cc,_0x517192);}static['getInfo'](_0x411c89,_0x58bb61){return _0x280e9f(_0x411c89,_0x58bb61);}}class f extends _0x34f025{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2d80ff,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xef2f0c=this['editor'];if(!!!_0xef2f0c['config']['get']('uploadcare'))return;_0xef2f0c['plugins']['get'](_0x2d80ff)['createUploadAdapter']=_0x5e52e7=>new k(_0x5e52e7,_0xef2f0c),_0xef2f0c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x593b98,{imageElement:_0x123649,data:_0x3ca89a})=>{_0xef2f0c['model']['change'](_0x21ac81=>{_0x21ac81['setAttribute']('uploadcareImageId',_0x3ca89a['uploadcareImageId'],_0x123649);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x79fdb5,_0x2813b3){this['loader']=_0x79fdb5,this['editor']=_0x2813b3,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x21a007=await this['loader']['file'];return j['upload']({'file':_0x21a007,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3bf22f=>{_0x3bf22f&&_0x3bf22f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3bf22f['value']);}})['then'](async _0x55483f=>{const {imageFallbackUrl:_0x10fc41,imageSources:_0x5baf5a}=C(_0x55483f['cdnUrl'],_0x55483f['imageInfo']['width']);return{'uploadcareImageId':_0x55483f['uuid'],'default':_0x10fc41,'sources':_0x5baf5a};})['catch'](()=>{const _0x467494=t('Cannot\x20upload\x20file:')+('\x20'+_0x21a007['name']+'.');return Promise['reject'](_0x467494);});}['abort'](){this['controller']['abort']();}}class o extends _0x34f025{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2b0a49];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xce74a7){super(_0xce74a7),this['ucContextId']=_0x1c7a19();}['init'](){const _0x3e5aed=this['editor'];_0x3e5aed['commands']['add']('uploadcare',new w(_0x3e5aed));}['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 _0xcc5f6d=_0x458d72['document']['querySelector']('input[uploadcare-file-input]');_0xcc5f6d&&_0xcc5f6d['remove']();}),async function(_0x491f4e){const _0x470159=_0x4556ec([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x3d12cb=0x3d8d0df,_0x25d687=0x3dfa3af^_0x3d12cb,_0x272b9a=window[_0x4556ec([0x44,0x61,0x74,0x65])][_0x4556ec([0x6e,0x6f,0x77])](),_0x1f82f7=_0x491f4e[_0x4556ec([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x249ee9=new window[(_0x4556ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x214358=>{_0x1f82f7[_0x4556ec([0x6f,0x6e,0x63,0x65])](_0x4556ec([0x72,0x65,0x61,0x64,0x79]),_0x214358);}),_0x2b1d44={[_0x4556ec([0x6b,0x74,0x79])]:_0x4556ec([0x45,0x43]),[_0x4556ec([0x75,0x73,0x65])]:_0x4556ec([0x73,0x69,0x67]),[_0x4556ec([0x63,0x72,0x76])]:_0x4556ec([0x50,0x2d,0x32,0x35,0x36]),[_0x4556ec([0x78])]:_0x4556ec([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]),[_0x4556ec([0x79])]:_0x4556ec([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]),[_0x4556ec([0x61,0x6c,0x67])]:_0x4556ec([0x45,0x53,0x32,0x35,0x36])},_0x33b998=_0x1f82f7[_0x4556ec([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4556ec([0x67,0x65,0x74])](_0x4556ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x32ff8e(){let _0x5ef567,_0x576545=null,_0x3c56fb=null;try{if(_0x33b998==_0x4556ec([0x47,0x50,0x4c]))return _0x4556ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ef567=_0x1367d1(),!_0x5ef567)return _0x4556ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ef567[_0x4556ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c56fb=_0x25e891(_0x5ef567[_0x4556ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ef567[_0x4556ec([0x6a,0x74,0x69])])),await _0x3dab89()?_0x1c97af()?_0xff76a6()?_0x4556ec([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2900ba()?(_0x5ef567[_0x4556ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4556ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x576545=_0x2790f9(_0x4556ec([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ef567[_0x4556ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4556ec([0x74,0x72,0x69,0x61,0x6c])&&(_0x576545=_0x2790f9(_0x4556ec([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa273e5()):_0x4556ec([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4556ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4556ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4556ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xff76a6(){const _0x3088a9=[_0x4556ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4556ec([0x74,0x72,0x69,0x61,0x6c])][_0x4556ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ef567[_0x4556ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x272b9a/0x3e8:0xe10*_0x25d687;return _0x5ef567[_0x4556ec([0x65,0x78,0x70])]<_0x3088a9;}function _0x1c97af(){const _0x2a0b41=_0x5ef567[_0x4556ec([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a0b41&&(!!_0x2a0b41[_0x4556ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4556ec([0x2a]))||!!_0x2a0b41[_0x4556ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4556ec([0x55,0x50,0x4c,0x43])));}function _0x2900ba(){const _0x1bae95=_0x5ef567[_0x4556ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1bae95||0x0==_0x1bae95[_0x4556ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd75bd7}=new URL(window[_0x4556ec([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1bae95[_0x4556ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd75bd7))return!0x0;const _0x2a20a2=_0xd75bd7[_0x4556ec([0x73,0x70,0x6c,0x69,0x74])](_0x4556ec([0x2e]));return _0x1bae95[_0x4556ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e40ff=>_0x1e40ff[_0x4556ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4556ec([0x2a])))[_0x4556ec([0x6d,0x61,0x70])](_0x33e5ff=>_0x33e5ff[_0x4556ec([0x73,0x70,0x6c,0x69,0x74])](_0x4556ec([0x2e])))[_0x4556ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6eaeb8=>_0x6eaeb8[_0x4556ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2a20a2[_0x4556ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4556ec([0x6d,0x61,0x70])](_0x49b42d=>Array(_0x2a20a2[_0x4556ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x49b42d[_0x4556ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4556ec([0x66,0x69,0x6c,0x6c])](_0x49b42d[0x0]===_0x4556ec([0x2a])?_0x4556ec([0x2a]):'')[_0x4556ec([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x49b42d))[_0x4556ec([0x73,0x6f,0x6d,0x65])](_0x8efdf5=>_0x2a20a2[_0x4556ec([0x65,0x76,0x65,0x72,0x79])]((_0xb2ee69,_0xdb201e)=>_0x8efdf5[_0xdb201e]===_0xb2ee69||_0x8efdf5[_0xdb201e]===_0x4556ec([0x2a])));}function _0xa273e5(){return _0x576545&&_0x3c56fb?new window[(_0x4556ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48e8ed,_0x298018)=>{_0x576545[_0x4556ec([0x74,0x68,0x65,0x6e])](_0x48e8ed,_0x298018),_0x3c56fb[_0x4556ec([0x74,0x68,0x65,0x6e])](_0x634a42=>{_0x634a42!=_0x4556ec([0x56,0x61,0x6c,0x69,0x64])&&_0x48e8ed(_0x634a42);},_0x298018);}):_0x576545||_0x3c56fb||_0x4556ec([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25e891(_0xcce32a,_0x44d6f6){return new window[(_0x4556ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x336e11=>{if(_0x410887())return _0x336e11(_0x4556ec([0x56,0x61,0x6c,0x69,0x64]));_0x676cfb(),_0x1f82f7[_0x4556ec([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4556ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x24916b=!0x1;const _0x48f055=_0x1c7a19();function _0x3b27a5(_0xa4dc75){return!!_0xa4dc75&&(typeof _0xa4dc75===_0x4556ec([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa4dc75===_0x4556ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa4dc75[_0x4556ec([0x74,0x68,0x65,0x6e])]===_0x4556ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa4dc75[_0x4556ec([0x63,0x61,0x74,0x63,0x68])]===_0x4556ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c3c80(_0x2fe798){_0x596a2f(_0x2fe798)[_0x4556ec([0x74,0x68,0x65,0x6e])](_0x4d2e89=>{if(!_0x4d2e89||_0x4d2e89[_0x4556ec([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4556ec([0x6f,0x6b]))return _0x4556ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5107b1(_0x2f22d8(_0x48f055+_0x44d6f6))!=_0x4d2e89[_0x4556ec([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4556ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4556ec([0x56,0x61,0x6c,0x69,0x64]);})[_0x4556ec([0x74,0x68,0x65,0x6e])](_0x22097a=>(_0x225878(),_0x22097a),()=>{const _0x415161=_0x516b36();return null==_0x415161?(_0x225878(),_0x4556ec([0x56,0x61,0x6c,0x69,0x64])):_0x4556ec(_0x272b9a-_0x415161>(0x27d454df^_0x3d12cb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4556ec([0x74,0x68,0x65,0x6e])](_0x336e11)[_0x4556ec([0x63,0x61,0x74,0x63,0x68])](()=>{_0x336e11(_0x4556ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44af38=0x3ee3e5f^_0x3d12cb;function _0x225878(){const _0x1616bd=_0x4556ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x5107b1(_0x2f22d8(_0xcce32a)),_0x1d7e63=_0x2c052f(_0x5107b1(window[_0x4556ec([0x4d,0x61,0x74,0x68])][_0x4556ec([0x63,0x65,0x69,0x6c])](_0x272b9a/_0x44af38)));window[_0x4556ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4556ec([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1616bd,_0x1d7e63);}function _0x516b36(){const _0x5d2e31=_0x4556ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x5107b1(_0x2f22d8(_0xcce32a)),_0x36fa7b=window[_0x4556ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4556ec([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d2e31);return _0x36fa7b?window[_0x4556ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c052f(_0x36fa7b),0x10)*_0x44af38:null;}function _0x596a2f(_0x218f65){return new window[(_0x4556ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4402a5,_0x55ad17)=>{_0x218f65[_0x4556ec([0x74,0x68,0x65,0x6e])](_0x4402a5,_0x55ad17),window[_0x4556ec([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55ad17,0x3d9041f^_0x3d12cb);});}}_0x1f82f7[_0x4556ec([0x6f,0x6e])](_0x4556ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4d627a,_0x1fbe63)=>{if(_0x1fbe63[0x0]!=_0xcce32a)return _0x336e11(_0x4556ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1fbe63[0x1]={..._0x1fbe63[0x1],[_0x4556ec([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x48f055};},{[_0x4556ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4556ec([0x68,0x69,0x67,0x68])}),_0x1f82f7[_0x4556ec([0x6f,0x6e])](_0x4556ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bb709=>{_0x3b27a5(_0x4bb709[_0x4556ec([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x24916b=!0x0,_0x1c3c80(_0x4bb709[_0x4556ec([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4556ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4556ec([0x6c,0x6f,0x77])}),_0x249ee9[_0x4556ec([0x74,0x68,0x65,0x6e])](()=>{_0x24916b||_0x336e11(_0x4556ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x410887(){return _0x1f82f7[_0x4556ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4556ec([0x76,0x69,0x65,0x77])][_0x4556ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4556ec([0x61,0x75,0x74,0x6f]);}function _0x676cfb(){_0x1f82f7[_0x4556ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4556ec([0x76,0x69,0x65,0x77])][_0x4556ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4556ec([0x61,0x75,0x74,0x6f]);}}function _0x2790f9(_0x28003e){const _0x2822c5=[new window[(_0x4556ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f6899=>setTimeout(_0x3f6899,0x3d1ee13^_0x3d12cb)),_0x249ee9[_0x4556ec([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4556ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26dcf7=>{let _0x2d2e5a=0x0;_0x1f82f7[_0x4556ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x4556ec([0x6f,0x6e])](_0x4556ec([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2435a9,_0xcc6691)=>{_0xcc6691[0x0][_0x4556ec([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d2e5a++,_0x2d2e5a==(0x3d8d127^_0x3d12cb)&&(_0x26dcf7(),_0x2435a9[_0x4556ec([0x6f,0x66,0x66])]());});}))];return window[_0x4556ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4556ec([0x72,0x61,0x63,0x65])](_0x2822c5)[_0x4556ec([0x74,0x68,0x65,0x6e])](()=>_0x28003e);}async function _0x567ea7(){await _0x249ee9,_0x1f82f7[_0x4556ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x4556ec([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x32ceb8,_0x1f82f7[_0x4556ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x4556ec([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x32ceb8,_0x1f82f7[_0x4556ec([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4556ec([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x195cf5(_0x3f4bf2){const _0x110e7d=_0x205f3b();_0x1f82f7[_0x110e7d]=_0x4556ec([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f4bf2,_0x3f4bf2!=_0x4556ec([0x56,0x61,0x6c,0x69,0x64])&&_0x567ea7();}function _0x205f3b(){const _0x5e55db=window[_0x4556ec([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4556ec([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4556ec([0x6e,0x6f,0x77])]())[_0x4556ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4556ec([0x2e]),'');let _0xeb18a7=_0x4556ec([0x52]);for(let _0x4cd5f7=0x0;_0x4cd5f7<_0x5e55db[_0x4556ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cd5f7+=0x2){let _0x4cc2ba=window[_0x4556ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e55db[_0x4556ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4cd5f7,_0x4cd5f7+0x2));_0x4cc2ba>=_0x470159[_0x4556ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4cc2ba-=_0x470159[_0x4556ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xeb18a7+=_0x470159[_0x4cc2ba];}return _0xeb18a7;}function _0x1367d1(){const _0x11dab1=_0x33b998[_0x4556ec([0x73,0x70,0x6c,0x69,0x74])](_0x4556ec([0x2e]));if(0x3!=_0x11dab1[_0x4556ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x414311(_0x11dab1[0x1]);function _0x414311(_0x26013d){const _0x32b904=_0xba5c64(_0x26013d);return _0x32b904&&_0x4dc8c8()?_0x32b904:null;function _0x4dc8c8(){const _0x1ac53e=_0x32b904[_0x4556ec([0x6a,0x74,0x69])],_0x101099=window[_0x4556ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ac53e[_0x4556ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ac53e[_0x4556ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x381764={..._0x32b904,[_0x4556ec([0x6a,0x74,0x69])]:_0x1ac53e[_0x4556ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ac53e[_0x4556ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x381764[_0x4556ec([0x76,0x63])],_0x2f22d8(_0x381764)==_0x101099;}}}async function _0x3dab89(){let _0x14d035=!0x0;try{const _0x4ff7a1=_0x33b998[_0x4556ec([0x73,0x70,0x6c,0x69,0x74])](_0x4556ec([0x2e])),[_0x507d44,_0x198b0d,_0x11d74d]=_0x4ff7a1;return _0x125610(_0x507d44),await _0x21666e(_0x507d44,_0x198b0d,_0x11d74d),_0x14d035;}catch{return!0x1;}function _0x125610(_0x315699){const _0x5e3c65=_0xba5c64(_0x315699);_0x5e3c65&&_0x5e3c65[_0x4556ec([0x61,0x6c,0x67])]==_0x4556ec([0x45,0x53,0x32,0x35,0x36])||(_0x14d035=!0x1);}async function _0x21666e(_0x5ca607,_0x865187,_0x507716){const _0x33848a=window[_0x4556ec([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4556ec([0x66,0x72,0x6f,0x6d])](_0x477a9d(_0x507716),_0x1e7e3c=>_0x1e7e3c[_0x4556ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x41c1dc=new window[(_0x4556ec([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4556ec([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ca607+_0x4556ec([0x2e])+_0x865187),_0x468de3=window[_0x4556ec([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4556ec([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x468de3)return;const _0x551cc4=await _0x468de3[_0x4556ec([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4556ec([0x6a,0x77,0x6b]),_0x2b1d44,{[_0x4556ec([0x6e,0x61,0x6d,0x65])]:_0x4556ec([0x45,0x43,0x44,0x53,0x41]),[_0x4556ec([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4556ec([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4556ec([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x468de3[_0x4556ec([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4556ec([0x6e,0x61,0x6d,0x65])]:_0x4556ec([0x45,0x43,0x44,0x53,0x41]),[_0x4556ec([0x68,0x61,0x73,0x68])]:{[_0x4556ec([0x6e,0x61,0x6d,0x65])]:_0x4556ec([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x551cc4,_0x33848a,_0x41c1dc)||(_0x14d035=!0x1);}}function _0xba5c64(_0x405129){return _0x405129[_0x4556ec([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4556ec([0x65,0x79]))?JSON[_0x4556ec([0x70,0x61,0x72,0x73,0x65])](_0x477a9d(_0x405129)):null;}function _0x477a9d(_0x1322cb){return window[_0x4556ec([0x61,0x74,0x6f,0x62])](_0x1322cb[_0x4556ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4556ec([0x2b]))[_0x4556ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4556ec([0x2f])));}function _0x2f22d8(_0x35df2a){let _0x321156=0x1505;function _0xecab0e(_0x13b184){for(let _0x22c226=0x0;_0x22c226<_0x13b184[_0x4556ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22c226++){const _0x484a64=_0x13b184[_0x4556ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x22c226);_0x321156=(_0x321156<<0x5)+_0x321156+_0x484a64,_0x321156&=_0x321156;}}function _0x24b3bc(_0x31428f){Array[_0x4556ec([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31428f)?_0x31428f[_0x4556ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24b3bc):_0x31428f&&typeof _0x31428f==_0x4556ec([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4556ec([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31428f)[_0x4556ec([0x73,0x6f,0x72,0x74])]()[_0x4556ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x58b992,_0x382f77])=>{_0xecab0e(_0x58b992),_0x24b3bc(_0x382f77);}):_0xecab0e(window[_0x4556ec([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31428f));}return _0x24b3bc(_0x35df2a),_0x321156>>>0x0;}function _0x5107b1(_0x267acf){return _0x267acf[_0x4556ec([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4556ec([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4556ec([0x30]));}function _0x2c052f(_0x34d9e9){return _0x34d9e9[_0x4556ec([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4556ec([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4556ec([0x6a,0x6f,0x69,0x6e])]('');}function _0x32ceb8(){}function _0x4556ec(_0x5dad03){return _0x5dad03['map'](_0x195d84=>String['fromCharCode'](_0x195d84))['join']('');}_0x195cf5(await _0x32ff8e());}(this);}['_initSchema'](){const _0x353cb7=this['editor']['model']['schema'];_0x353cb7['isRegistered']('imageBlock')&&_0x353cb7['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x353cb7['isRegistered']('imageInline')&&_0x353cb7['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x429cd7=this['editor'];_0x429cd7['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x429cd7['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2c1337=>_0x2c1337['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x25e6bb=_0x429cd7['commands']['get']('replaceImageSource');_0x25e6bb&&this['listenTo'](_0x25e6bb,'cleanupImage',(_0x5e99ac,[_0x492f5e,_0x32b134])=>{_0x492f5e['removeAttribute']('uploadcareImageId',_0x32b134);});}['_initConfig'](){const _0x43022f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x182b71=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x53d32b(_0x458d72['document'],'uc-config',{..._0x43022f,'pubkey':_0x182b71,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4805fa=>{if('closeMax'==_0x4805fa)return'#uc-icon-arrow-down';},_0x458d72['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x53d32b(_0x458d72['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x458d72['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x425ae2=this['editor']['commands']['get']('insertImage');_0x425ae2&&this['listenTo'](_0x425ae2,'execute',()=>{const _0x41904a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x41904a&&_0x41904a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x41904a);});});const _0x45b814=this['editor']['commands']['get']('uploadcareImageReplace');_0x45b814&&this['listenTo'](_0x45b814,'execute',()=>{const _0xad440c=this['editor']['model']['document']['selection']['getSelectedElement']();_0xad440c&&_0xad440c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xad440c);});});}}class tt extends _0x34f025{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd36bf7){super(_0xd36bf7),_0xd36bf7['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3bbf06['defineComponents'](_0x3bbf06);}}class ii extends _0x2e1cc4{constructor(_0x4109b0){super(_0x4109b0);const t=_0x4109b0['t'],_0x4e8a69=this['bindTemplate'],_0x16e3e4=new _0x215c5e();_0x16e3e4['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':[_0x16e3e4,{'text':_0x4e8a69['to']('imageUploadProgress',_0x17d597=>t('Loading\x20image...')+'\x20('+(_0x17d597||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x2e1cc4{constructor(_0x3d742c){super(_0x3d742c);const t=_0x3d742c['t'];this['set']('errorType',null);const _0x4cff98=new _0x228f39(_0x3d742c);_0x4cff98['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4cff98['withText']=!0x0,_0x4cff98['class']='ck-button-action',_0x4cff98['on']('execute',()=>{this['fire']('retry');}),_0x4cff98['bind']('isVisible')['to'](this,'errorType',_0x15e38c=>'NotFound'!==_0x15e38c);const _0x1d1c2c=new _0x18f700();_0x1d1c2c['content']=_0x5abe47,_0x1d1c2c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x197a5f=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':[_0x1d1c2c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x197a5f['to']('errorType',_0xdad94f=>t('NotFound'!==_0xdad94f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4cff98]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x2e1cc4{constructor(_0x53ca94,_0x1d73aa){super(_0x53ca94);const _0x3f445c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1d73aa,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3f445c['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x13289a,_0x282117,_0x360941){super(_0x13289a),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x13289a),this['_errorView']=new ti(_0x13289a),this['_editingView']=new ei(_0x13289a,_0x360941),this['_focusableView']=new _0x2e1cc4(_0x13289a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x282117),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'],_0x4ca5aa=>{this['_addUploadcareImageEditorListeners'](_0x4ca5aa);});}),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'](_0x185e13,_0x56e998){const _0x277a13='uc-cloud-image-editor',_0x914181=_0x185e13['querySelector'](_0x277a13);if(_0x914181)return _0x56e998(_0x914181);const _0x34913e=new MutationObserver(_0x1e802e=>{const _0x161ee8=_0x1e802e['filter'](_0x6c4fa3=>_0x6c4fa3['target']===_0x185e13&&_0x6c4fa3['addedNodes']['length']>0x0&&_0x6c4fa3['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x277a13);_0x161ee8['length']&&(_0x34913e['disconnect'](),_0x56e998(_0x161ee8[0x0]['addedNodes'][0x0]));});_0x34913e['observe'](_0x185e13,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5371f5){_0x5371f5['addEventListener']('apply',_0x5bb010=>{this['fire']('apply',{'imageSrc':_0x5bb010['detail']['cdnUrl']});}),_0x5371f5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2540e3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xf9eb59,_0x302bec,_0x471fb3){super(),this['_editor']=_0xf9eb59,this['_dialog']=_0x302bec,this['_imageElement']=_0x471fb3,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 _0x5ed2ae=this['_imageElement'],_0x1865fa=_0x5ed2ae['getAttribute']('uploadcareImageId'),_0x12373c=_0x5ed2ae['getAttribute']('src');if(_0x1865fa)await this['_loadImageInfo'](_0x1865fa,_0x12373c);else{if(this['_imageCache']['has'](_0x12373c)){const _0x224221=this['_imageCache']['get'](_0x12373c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x224221['url'],this['imageDimension']=_0x224221['dimension'],this['imageId']=_0x224221['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1a3262}=this['_editor'],t=_0x1a3262['t'],_0x4b826d=new X(_0x1a3262,this['imageStatus'],this['_attributes']);_0x4b826d['bind']('status')['to'](this,'imageStatus'),_0x4b826d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4b826d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4b826d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4b826d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x554d30,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4b826d,'position':_0x3a6281['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4b826d['focus']();},'onHide':()=>{_0x4b826d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x56b595=>!A(_0x56b595,_0x4b826d['element'])}});}['_loadImageInfo'](_0x58377c,_0x238b8a){return j['getInfo'](_0x58377c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3283f5=>{const {width:_0x4afb04,height:_0x3976ea}=_0x3283f5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x238b8a,this['imageDimension']={'width':_0x4afb04,'height':_0x3976ea},this['imageId']=_0x58377c;})['catch'](_0x4db02b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4db02b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2764e8,_0x1673d7){return this['_getImageAsFile'](_0x2764e8)['then'](_0x363b4a=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x1673d7['signal'],'file':_0x363b4a,'onProgress':_0x1638c9=>{_0x1638c9&&_0x1638c9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1638c9['value']));}}))['then'](_0xe9e86=>{const {width:_0x57ea13,height:_0x5d233f}=_0xe9e86['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe9e86['cdnUrl'],this['imageDimension']={'width':_0x57ea13,'height':_0x5d233f},this['imageId']=_0xe9e86['uuid'],this['imageUploadProgress']=null;const _0x4c9386=_0x2764e8['getAttribute']('src');this['_imageCache']['set'](_0x4c9386,{'id':_0xe9e86['uuid'],'url':_0xe9e86['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1f821d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1f821d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xade2f,_0x11d5e5){_0xade2f['on']('apply',(_0x353d69,_0x539a7a)=>{this['_replaceImage'](_0x11d5e5,_0x539a7a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xade2f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xade2f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x228b6c,_0x14dd87,_0x486059){const _0x4d76b1=this['_editor'],{width:_0x3f932f,height:_0x1b3cc5}=S(_0x14dd87,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x251892,imageSources:_0x3656c0}=C(_0x14dd87,_0x3f932f);_0x4d76b1['model']['change'](_0x1afa6e=>{if('$graveyard'===_0x228b6c['root']['rootName']){_0x4d76b1['execute']('insertImage',{'imageType':_0x228b6c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x228b6c['getAttributes']()),'uploadcareImageId':_0x486059,'src':_0x251892,'sources':_0x3656c0,'width':_0x3f932f,'height':_0x1b3cc5}});const _0x2d935f=_0x228b6c['getChildren']();_0x228b6c=_0x4d76b1['model']['document']['selection']['getSelectedElement']();for(const _0x3af740 of _0x2d935f)_0x1afa6e['append'](_0x1afa6e['cloneElement'](_0x3af740),_0x228b6c);}else _0x1afa6e['setSelection'](_0x228b6c,'on'),_0x4d76b1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x228b6c['getAttributes']()),'uploadcareImageId':_0x486059,'src':_0x251892,'sources':_0x3656c0,'width':_0x3f932f,'height':_0x1b3cc5},_0x228b6c);_0x1afa6e['setSelection'](_0x228b6c,'on');});}async['_getImageAsFile'](_0x3d0581){const _0x35d80f=_0x458d72['window'],_0x4f56bc=_0x458d72['document']['location']['href'],_0x3fe2e5=new _0x35d80f['URL'](_0x3d0581['getAttribute']('src'),_0x4f56bc);if('data:'===_0x3fe2e5['protocol']){const _0x599e7b=_0x3fe2e5['href']['split'](','),_0x1f3806=_0x599e7b[0x0]['match'](/:(.*?);/)[0x1],_0x143444=_0x1f3806['split']('/')[0x1],_0x509b8c=_0x35d80f['atob'](_0x599e7b[_0x599e7b['length']-0x1]);let _0x428b11=_0x509b8c['length'];const _0x28dce7=new _0x35d80f['Uint8Array'](_0x428b11);for(;_0x428b11--;)_0x28dce7[_0x428b11]=_0x509b8c['charCodeAt'](_0x428b11);return new _0x35d80f['File']([_0x28dce7],'image.'+_0x143444,{'type':_0x1f3806});}const _0x45071f=_0x3fe2e5['href']['split']('/'),_0x95167e=_0x45071f[_0x45071f['length']-0x1],_0x22db8f=_0x95167e['split']('.')[0x1];return _0x35d80f['fetch'](_0x3fe2e5['href'])['then'](_0x389b0e=>_0x389b0e['clone']()['blob']())['then'](_0x20b304=>new _0x35d80f['File']([_0x20b304],_0x95167e,{'type':'image/'+_0x22db8f}));}}class Q extends _0x542e6d{['imageEditController'];static get['requires'](){return[_0x2b0a49];}['_isEditable'];constructor(_0x28e232){super(_0x28e232),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4fa451){const _0x368e7f=z(_0x4fa451);return _0x175fc6=>!(!_0x175fc6||!_0x175fc6['is']('element','imageBlock')&&!_0x175fc6['is']('element','imageInline'))&&(!!_0x175fc6['hasAttribute']('uploadcareImageId')||!!_0x175fc6['hasAttribute']('src')&&_0x368e7f(_0x175fc6['getAttribute']('src')));}(_0x28e232['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x34e984=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x34e984);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2bd4ee=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2bd4ee&&(_0x2bd4ee['is']('element','imageBlock')||_0x2bd4ee['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x2b0a49),_0x2bd4ee),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x542e6d{['refresh'](){const _0x1c003e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1c003e&&(_0x1c003e['is']('element','imageBlock')||_0x1c003e['is']('element','imageInline')));}['execute'](_0x5e2d3f){const _0x118248=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x334a18=>{_0x334a18['setAttributes'](_0x5e2d3f,_0x118248),_0x334a18['removeAttribute']('srcset',_0x118248),_0x334a18['removeAttribute']('sizes',_0x118248);});}}class m extends _0x34f025{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x22b418,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x46022d}=this;_0x46022d['commands']['add']('uploadcareImageEdit',new Q(_0x46022d)),_0x46022d['commands']['add']('uploadcareImageReplace',new V(_0x46022d));}}class g extends _0x34f025{['_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 _0x1f92bd=this['editor'];_0x1f92bd['ui']['componentFactory']['add']('uploadcareImageEdit',_0x30740f=>{const _0x381760=_0x1f92bd['commands']['get']('uploadcareImageEdit'),_0x50e621=new _0x228f39(_0x30740f),t=_0x30740f['t'];return _0x50e621['set']({'icon':_0x554d30,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x50e621['bind']('isEnabled')['to'](_0x381760),_0x50e621['bind']('isOn')['to'](_0x381760,'isActive'),this['listenTo'](_0x50e621,'execute',()=>{_0x1f92bd['execute']('uploadcareImageEdit'),_0x1f92bd['editing']['view']['focus']();}),_0x50e621;}),this['_initConfig']();}['_initConfig'](){const _0x1c0519=_0x53d32b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1c0519),this['listenTo'](this['editor'],'destroy',()=>{_0x1c0519['remove']();});}}class et extends _0x34f025{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x759d34,Command as _0x4b0c1}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5aae0b,IconGooglePhotos as _0x424db8,IconGoogleDrive as _0x1222a9,IconFacebook as _0x220073,IconDropbox as _0x17be43,IconUploadcareLink as _0x3eefef,IconUploadcareImageUpload as _0x32c4d3,IconError as _0x170993,IconUploadcareImageEdit as _0x2ed518}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5c0c0f,MenuBarMenuListItemButtonView as _0x13e89e,View as _0x49abf3,FocusCycler as _0x25e4ec,Dialog as _0x5aa4ec,DialogViewPosition as _0x5beb23,SpinnerView as _0x113150,IconView as _0xc1439d,Notification as _0x430b1f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x28dab4,DomEmitterMixin as _0x315ea9,global as _0x994d2c,getAncestors as _0x8014fe,ObservableMixin as _0x827190,uid as _0x104f25,createElement as _0xa6babb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x32ed49}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x17963e,info as _0x2d0e7d}from'@uploadcare/upload-client';import*as _0x2ebe37 from'@uploadcare/file-uploader';var i=function(_0x253a59){return _0x253a59['Local']='local',_0x253a59['URL']='url',_0x253a59['Dropbox']='dropbox',_0x253a59['GDrive']='gdrive',_0x253a59['Facebook']='facebook',_0x253a59['GPhotos']='gphotos',_0x253a59['OneDrive']='onedrive',_0x253a59;}({});function _(_0x24ca94,_0x350325,_0x54b4d8){const t=_0x24ca94['t'],_0x2e2aec=_0x24ca94['t'];switch(_0x350325){case i['Local']:return{'text':_0x2e2aec('Insert'===_0x54b4d8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2e2aec('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x54b4d8?_0x2e2aec('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2e2aec('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x54b4d8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x54b4d8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x54b4d8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x54b4d8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x54b4d8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x350325;}}class e extends _0x759d34{['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 _0x4d17a9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2cb63b;for(const _0x23e049 in _0x4d17a9){const _0x38b0b6=_0x23e049,_0x32b1dc=_0x4d17a9[_0x38b0b6];if('uploadcareLicenseKeyValid'==_0x32b1dc||'uploadcareLicenseKeyInvalid'==_0x32b1dc||'uploadcareLicenseKeyExpired'==_0x32b1dc||'uploadcareLicenseKeyDomainLimit'==_0x32b1dc||'uploadcareLicenseKeyNotAllowed'==_0x32b1dc||'uploadcareLicenseKeyEvaluationLimit'==_0x32b1dc||'uploadcareLicenseKeyTrialLimit'==_0x32b1dc||'uploadcareLicenseKeyUsageLimit'==_0x32b1dc){delete _0x4d17a9[_0x38b0b6],_0x2cb63b=_0x32b1dc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2cb63b&&_0x4d17a9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2cb63b&&_0x4d17a9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2cb63b&&_0x4d17a9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2cb63b&&_0x4d17a9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2cb63b&&_0x4d17a9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2cb63b&&_0x4d17a9['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2cb63b&&_0x4d17a9['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4fa73c}=this,_0x2ea5c1=_0x4fa73c['commands']['get']('uploadcare');if(!_0x2ea5c1)return;const _0x183528=this['_normalizeConfigSourceList'](_0x4fa73c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x22bba0,_0x27a5d0)=>{const _0x3ab5cc=this['_getIntegrationKey'](_0x27a5d0['type']);return _0x22bba0[_0x3ab5cc]||(_0x22bba0[_0x3ab5cc]=[]),_0x22bba0[_0x3ab5cc]['push'](_0x27a5d0),_0x22bba0;},{});_0x4fa73c['plugins']['has']('ImageInsertUI')&&_0x4fa73c['commands']['get']('uploadcare')&&Object['entries'](_0x183528)['forEach'](([_0x230e35,_0x582d75])=>{_0x4fa73c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x230e35,'observable':()=>_0x2ea5c1,'buttonViewCreator':()=>this['_createToolbarButton'](_0x582d75),'formViewCreator':()=>this['_createDropdownButtons'](_0x582d75),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x582d75),'override':'assetManager'!==_0x230e35});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x289554){const {locale:_0x12fa3d}=this['editor'];return _0x289554['map'](_0x1bdc44=>{const _0x200038=_(_0x12fa3d,_0x1bdc44,'Insert');switch(_0x1bdc44){case i['Local']:return{'icon':_0x32c4d3,'type':i['Local'],..._0x200038};case i['URL']:return{'icon':_0x3eefef,'type':i['URL'],..._0x200038};case i['Dropbox']:return{'icon':_0x17be43,'type':i['Dropbox'],..._0x200038};case i['Facebook']:return{'icon':_0x220073,'type':i['Facebook'],..._0x200038};case i['GDrive']:return{'icon':_0x1222a9,'type':i['GDrive'],..._0x200038};case i['GPhotos']:return{'icon':_0x424db8,'type':i['GPhotos'],..._0x200038};case i['OneDrive']:return{'icon':_0x5aae0b,'type':i['OneDrive'],..._0x200038};}});}['_getIntegrationKey'](_0x5e15d7){switch(_0x5e15d7){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3661c5,_0x5d6164){const _0x119f7a=this['editor'],_0x1b6a37=new _0x3661c5(_0x119f7a['locale']),_0x5a9d56=_0x119f7a['commands']['get']('uploadcare');return _0x1b6a37['bind']('isEnabled')['to'](_0x5a9d56),_0x1b6a37['on']('execute',()=>{_0x5a9d56['execute'](_0x5d6164);}),_0x1b6a37;}['_createToolbarButton'](_0xf51bf4){const {locale:_0xdcd314}=this['editor'],_0x40a320=this['editor']['plugins']['get']('ImageInsertUI'),_0x1e58fa=_0xf51bf4[0x0],_0x31c451=this['_createButton'](_0x5c0c0f,_0x1e58fa['type']);return _0x31c451['icon']=_0x1e58fa['icon'],_0x31c451['bind']('label')['to'](_0x40a320,'isImageSelected',_0x5130a1=>_(_0xdcd314,_0x1e58fa['type'],_0x5130a1?'Replace':'Insert')['text']),_0x31c451['tooltip']=!0x0,_0x31c451;}['_createDropdownButtons'](_0x14af27){const {locale:_0x1e0f79}=this['editor'],_0x90f3fe=this['editor']['plugins']['get']('ImageInsertUI');return _0x14af27['map'](_0x33bf9c=>{const _0x43daf2=this['_createButton'](_0x5c0c0f,_0x33bf9c['type']);return _0x43daf2['withText']=!0x0,_0x43daf2['icon']=_0x33bf9c['icon'],_0x43daf2['bind']('label')['to'](_0x90f3fe,'isImageSelected',_0x3dbba6=>_(_0x1e0f79,_0x33bf9c['type'],_0x3dbba6?'Replace':'Insert')['text']),_0x43daf2;});}['_createMenuBarButtons'](_0x5652fa){return _0x5652fa['map'](_0x2c498c=>{const _0x52c061=this['_createButton'](_0x13e89e,_0x2c498c['type']);return _0x52c061['icon']=_0x2c498c['icon'],_0x52c061['label']=_0x2c498c['shortText'],_0x52c061;});}}class F extends _0x49abf3{['focusTracker'];['focusCycler'];constructor(_0x198048){super(_0x198048),this['focusTracker']=new _0x28dab4(),this['focusCycler']=new _0x25e4ec({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x67644a,_0x54ad29){super(_0x67644a),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-'+_0x54ad29}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x288c1e,_0x67c6ec){const _0x3b8c5d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1301b1=>_0x1301b1<=_0x67c6ec)['map'](_0x485d21=>_0x288c1e['replace'](/\/$/,'')+'/-/resize/'+_0x485d21+'x/\x20'+_0x485d21+'w');return{'imageFallbackUrl':_0x288c1e,'imageSources':[{'srcset':_0x3b8c5d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x67c6ec+'px)\x20100vw,\x20'+_0x67c6ec+'px','type':'image/webp'}]};}function S(_0x1a560c,_0x5448ff,_0x448357){const _0x33d540=_0x1a560c['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x33d540?parseInt(_0x33d540[0x1],0xa):_0x5448ff,'height':_0x33d540?parseInt(_0x33d540[0x2],0xa):_0x448357};}function p(_0x50285e,_0x44a185){const _0x36dc52=new(_0x315ea9())(),_0xf26b90=_0x50285e['plugins']['get']('ImageUtils'),_0x14a153=_0x50285e['editing']['mapper']['toViewElement'](_0x44a185),_0x47ed32=_0xf26b90['findViewImgElement'](_0x14a153),_0x3a0c0c=_0x50285e['editing']['view']['domConverter']['viewToDom'](_0x47ed32),_0x525ca0=_0x44a185['getAttribute']('width'),_0x5e812b=_0x44a185['getAttribute']('height'),_0x3ab471='image-processing';_0x50285e['editing']['view']['change'](_0x2d0112=>{_0x2d0112['addClass'](_0x3ab471,_0x14a153),_0x2d0112['setStyle']('aspect-ratio',_0x525ca0+'/'+_0x5e812b,_0x47ed32);}),_0x36dc52['listenTo'](_0x3a0c0c,'load',()=>{_0x36dc52['stopListening'](_0x3a0c0c,'load'),_0x50285e['editing']['view']['change'](_0x1101ad=>{_0x1101ad['removeClass'](_0x3ab471,_0x14a153),_0x1101ad['removeStyle']('aspect-ratio',_0x47ed32);});});}function z(_0x473810){if(Array['isArray'](_0x473810)){const _0x29979c=_0x473810['map'](z);return _0x78c3f2=>_0x29979c['some'](_0x23524a=>_0x23524a(_0x78c3f2));}if('origin'==_0x473810){const _0x1ebed8=_0x994d2c['window']['location']['origin'];return _0x3cdb5=>new URL(_0x3cdb5,_0x994d2c['document']['baseURI'])['origin']==_0x1ebed8;}return'function'==typeof _0x473810?_0x473810:_0x473810 instanceof RegExp?_0x1c94f1=>!(!_0x1c94f1['match'](_0x473810)&&!_0x1c94f1['replace'](/^https?:\/\//,'')['match'](_0x473810)):()=>!0x1;}function A(_0x42e55c,_0x6f3988){return _0x8014fe(_0x42e55c['target'])['includes'](_0x6f3988);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x827190(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x18ec1a,_0x4a6f69,_0x962351){super(),this['_editor']=_0x18ec1a,this['_editing']=_0x4a6f69,this['_dialog']=_0x18ec1a['plugins']['get'](_0x5aa4ec),this['_api']=_0x4a6f69['ctxElement']['getAPI'](),this['_type']=_0x962351,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:_0x1518f7,model:_0x9011c}=this['_editor'],_0x15dcaf=_0x9011c['document']['selection']['getSelectedElement'](),_0x59918a=_0x15dcaf&&(_0x15dcaf['is']('element','imageBlock')||_0x15dcaf['is']('element','imageInline'));this['_formView']=new x(_0x1518f7,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x32c4d3,'title':_(_0x1518f7,this['_type'],_0x59918a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5beb23['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3fe3bf=>!A(_0x3fe3bf,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4ad612}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x59da51=>{const _0x65c2a=_0x4ad612['length'];for(const _0x573126 of _0x4ad612){const _0xe81367=_0x573126===_0x4ad612[_0x65c2a-0x1],{cdnUrl:_0x328926,fileInfo:_0x7aaf0c}=_0x573126;if(!_0x328926||!_0x7aaf0c)continue;const {width:_0x22b077,height:_0x51618a}=_0x7aaf0c['imageInfo'],_0x8d0951=S(_0x328926,_0x22b077,_0x51618a),_0x5f575e=C(_0x328926,_0x8d0951['width']),_0x1dc902={'id':_0x7aaf0c['uuid'],'type':'image','attributes':{'imageDimension':_0x8d0951,..._0x5f575e}};this['_insertAsset'](_0x1dc902,_0xe81367,_0x59da51);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x33d9ad=>{'idle'===_0x33d9ad['detail']['status']&&!_0x33d9ad['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x31e5fc,_0x5e7297,_0x26f86a){const _0x3a622f=this['_editor']['model']['document']['selection'],_0x325ddc=_0x3a622f['getSelectedElement'](),_0xf5be89=!(!_0x325ddc||!_0x325ddc['is']('element','imageInline'));_0x26f86a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x31e5fc,_0xf5be89),_0x5e7297||_0x26f86a['setSelection'](_0x3a622f['getLastPosition']());}['_insertImage'](_0x4d6597,_0x10f9bf){const _0x4c55db=this['_editor'],{imageDimension:_0x2ce77a,imageFallbackUrl:_0x3cdd29,imageSources:_0x396f20}=_0x4d6597['attributes'];_0x4c55db['execute']('insertImage',{'imageType':_0x10f9bf?'imageInline':null,'source':{'uploadcareImageId':_0x4d6597['id'],'src':_0x3cdd29,'sources':_0x396f20,..._0x2ce77a}});}}class w extends _0x4b0c1{['_editing'];['_controller']=null;static get['requires'](){return[_0x5aa4ec,o];}constructor(_0x310afa){super(_0x310afa),this['_editing']=_0x310afa['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x115e6c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x115e6c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x2d025d,..._0x168459}){return _0x17963e(_0x2d025d,_0x168459);}static['getInfo'](_0xa06330,_0x4bc03e){return _0x2d0e7d(_0xa06330,_0x4bc03e);}}class f extends _0x759d34{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x32ed49,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3288c9=this['editor'];if(!!!_0x3288c9['config']['get']('uploadcare'))return;_0x3288c9['plugins']['get'](_0x32ed49)['createUploadAdapter']=_0x2d245d=>new k(_0x2d245d,_0x3288c9),_0x3288c9['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x9153cc,{imageElement:_0x775498,data:_0x48e42f})=>{_0x3288c9['model']['change'](_0x45484e=>{_0x45484e['setAttribute']('uploadcareImageId',_0x48e42f['uploadcareImageId'],_0x775498);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x29f1c3,_0x2857ab){this['loader']=_0x29f1c3,this['editor']=_0x2857ab,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4cde86=await this['loader']['file'];return j['upload']({'file':_0x4cde86,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x2fcc6a=>{_0x2fcc6a&&_0x2fcc6a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2fcc6a['value']);}})['then'](async _0x1765df=>{const {imageFallbackUrl:_0x2a0c4e,imageSources:_0x52cca8}=C(_0x1765df['cdnUrl'],_0x1765df['imageInfo']['width']);return{'uploadcareImageId':_0x1765df['uuid'],'default':_0x2a0c4e,'sources':_0x52cca8};})['catch'](()=>{const _0x33869b=t('Cannot\x20upload\x20file:')+('\x20'+_0x4cde86['name']+'.');return Promise['reject'](_0x33869b);});}['abort'](){this['controller']['abort']();}}class o extends _0x759d34{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5aa4ec];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x63c681){super(_0x63c681),this['ucContextId']=_0x104f25();}['init'](){const _0x557257=this['editor'];_0x557257['commands']['add']('uploadcare',new w(_0x557257));}['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 _0x4acd3b=_0x994d2c['document']['querySelector']('input[uploadcare-file-input]');_0x4acd3b&&_0x4acd3b['remove']();}),async function(_0x4bd767){const _0x71d41a=_0x5d24dc([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x4532f6=0x3d8d0df,_0x5c57c2=0x3dfa3af^_0x4532f6,_0x41b432=window[_0x5d24dc([0x44,0x61,0x74,0x65])][_0x5d24dc([0x6e,0x6f,0x77])](),_0x479144=_0x4bd767[_0x5d24dc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a9d0d=new window[(_0x5d24dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36d5e7=>{_0x479144[_0x5d24dc([0x6f,0x6e,0x63,0x65])](_0x5d24dc([0x72,0x65,0x61,0x64,0x79]),_0x36d5e7);}),_0x26cbe2={[_0x5d24dc([0x6b,0x74,0x79])]:_0x5d24dc([0x45,0x43]),[_0x5d24dc([0x75,0x73,0x65])]:_0x5d24dc([0x73,0x69,0x67]),[_0x5d24dc([0x63,0x72,0x76])]:_0x5d24dc([0x50,0x2d,0x32,0x35,0x36]),[_0x5d24dc([0x78])]:_0x5d24dc([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]),[_0x5d24dc([0x79])]:_0x5d24dc([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]),[_0x5d24dc([0x61,0x6c,0x67])]:_0x5d24dc([0x45,0x53,0x32,0x35,0x36])},_0x4e73ef=_0x479144[_0x5d24dc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d24dc([0x67,0x65,0x74])](_0x5d24dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb2e790(){let _0x57ceb3,_0x43e799=null,_0x229d9e=null;try{if(_0x4e73ef==_0x5d24dc([0x47,0x50,0x4c]))return _0x5d24dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x57ceb3=_0x81e39b(),!_0x57ceb3)return _0x5d24dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x57ceb3[_0x5d24dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x229d9e=_0x83f6cb(_0x57ceb3[_0x5d24dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x57ceb3[_0x5d24dc([0x6a,0x74,0x69])])),await _0x56a656()?_0x26b3b3()?_0x13dc9b()?_0x5d24dc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32213a()?(_0x57ceb3[_0x5d24dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d24dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43e799=_0x543fe0(_0x5d24dc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x57ceb3[_0x5d24dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d24dc([0x74,0x72,0x69,0x61,0x6c])&&(_0x43e799=_0x543fe0(_0x5d24dc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x685404()):_0x5d24dc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d24dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d24dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d24dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13dc9b(){const _0x8aae7e=[_0x5d24dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d24dc([0x74,0x72,0x69,0x61,0x6c])][_0x5d24dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57ceb3[_0x5d24dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x41b432/0x3e8:0xe10*_0x5c57c2;return _0x57ceb3[_0x5d24dc([0x65,0x78,0x70])]<_0x8aae7e;}function _0x26b3b3(){const _0xe651ae=_0x57ceb3[_0x5d24dc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xe651ae&&(!!_0xe651ae[_0x5d24dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d24dc([0x2a]))||!!_0xe651ae[_0x5d24dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d24dc([0x55,0x50,0x4c,0x43])));}function _0x32213a(){const _0x29aa9d=_0x57ceb3[_0x5d24dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29aa9d||0x0==_0x29aa9d[_0x5d24dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17ab22}=new URL(window[_0x5d24dc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x29aa9d[_0x5d24dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17ab22))return!0x0;const _0x5ccca7=_0x17ab22[_0x5d24dc([0x73,0x70,0x6c,0x69,0x74])](_0x5d24dc([0x2e]));return _0x29aa9d[_0x5d24dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1aeaab=>_0x1aeaab[_0x5d24dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d24dc([0x2a])))[_0x5d24dc([0x6d,0x61,0x70])](_0x2f5b67=>_0x2f5b67[_0x5d24dc([0x73,0x70,0x6c,0x69,0x74])](_0x5d24dc([0x2e])))[_0x5d24dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44478d=>_0x44478d[_0x5d24dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ccca7[_0x5d24dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d24dc([0x6d,0x61,0x70])](_0x1b040c=>Array(_0x5ccca7[_0x5d24dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b040c[_0x5d24dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d24dc([0x66,0x69,0x6c,0x6c])](_0x1b040c[0x0]===_0x5d24dc([0x2a])?_0x5d24dc([0x2a]):'')[_0x5d24dc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b040c))[_0x5d24dc([0x73,0x6f,0x6d,0x65])](_0x331210=>_0x5ccca7[_0x5d24dc([0x65,0x76,0x65,0x72,0x79])]((_0x31d8ba,_0x439970)=>_0x331210[_0x439970]===_0x31d8ba||_0x331210[_0x439970]===_0x5d24dc([0x2a])));}function _0x685404(){return _0x43e799&&_0x229d9e?new window[(_0x5d24dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a7dfd,_0x53a7a8)=>{_0x43e799[_0x5d24dc([0x74,0x68,0x65,0x6e])](_0x4a7dfd,_0x53a7a8),_0x229d9e[_0x5d24dc([0x74,0x68,0x65,0x6e])](_0x282ccb=>{_0x282ccb!=_0x5d24dc([0x56,0x61,0x6c,0x69,0x64])&&_0x4a7dfd(_0x282ccb);},_0x53a7a8);}):_0x43e799||_0x229d9e||_0x5d24dc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x83f6cb(_0x1fca36,_0x5091f2){return new window[(_0x5d24dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xff4084=>{if(_0x1c8356())return _0xff4084(_0x5d24dc([0x56,0x61,0x6c,0x69,0x64]));_0x32be49(),_0x479144[_0x5d24dc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d24dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xfc548a=!0x1;const _0x472609=_0x104f25();function _0x4bc2ce(_0x5b1956){return!!_0x5b1956&&(typeof _0x5b1956===_0x5d24dc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b1956===_0x5d24dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b1956[_0x5d24dc([0x74,0x68,0x65,0x6e])]===_0x5d24dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b1956[_0x5d24dc([0x63,0x61,0x74,0x63,0x68])]===_0x5d24dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x332070(_0x18ac8b){_0x323469(_0x18ac8b)[_0x5d24dc([0x74,0x68,0x65,0x6e])](_0x1fc9e5=>{if(!_0x1fc9e5||_0x1fc9e5[_0x5d24dc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d24dc([0x6f,0x6b]))return _0x5d24dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5d7d2e(_0x344e5a(_0x472609+_0x5091f2))!=_0x1fc9e5[_0x5d24dc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d24dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d24dc([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d24dc([0x74,0x68,0x65,0x6e])](_0x23ae82=>(_0x3c96eb(),_0x23ae82),()=>{const _0x5e852d=_0x42e07d();return null==_0x5e852d?(_0x3c96eb(),_0x5d24dc([0x56,0x61,0x6c,0x69,0x64])):_0x5d24dc(_0x41b432-_0x5e852d>(0x27d454df^_0x4532f6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d24dc([0x74,0x68,0x65,0x6e])](_0xff4084)[_0x5d24dc([0x63,0x61,0x74,0x63,0x68])](()=>{_0xff4084(_0x5d24dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x502f8e=0x3ee3e5f^_0x4532f6;function _0x3c96eb(){const _0xcd0061=_0x5d24dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d7d2e(_0x344e5a(_0x1fca36)),_0x474793=_0x45b40a(_0x5d7d2e(window[_0x5d24dc([0x4d,0x61,0x74,0x68])][_0x5d24dc([0x63,0x65,0x69,0x6c])](_0x41b432/_0x502f8e)));window[_0x5d24dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d24dc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcd0061,_0x474793);}function _0x42e07d(){const _0x8b81e3=_0x5d24dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d7d2e(_0x344e5a(_0x1fca36)),_0x20c1f2=window[_0x5d24dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d24dc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8b81e3);return _0x20c1f2?window[_0x5d24dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45b40a(_0x20c1f2),0x10)*_0x502f8e:null;}function _0x323469(_0x472a57){return new window[(_0x5d24dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3121e3,_0x59e874)=>{_0x472a57[_0x5d24dc([0x74,0x68,0x65,0x6e])](_0x3121e3,_0x59e874),window[_0x5d24dc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59e874,0x3d9041f^_0x4532f6);});}}_0x479144[_0x5d24dc([0x6f,0x6e])](_0x5d24dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x573f94,_0x3d8b74)=>{if(_0x3d8b74[0x0]!=_0x1fca36)return _0xff4084(_0x5d24dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d8b74[0x1]={..._0x3d8b74[0x1],[_0x5d24dc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x472609};},{[_0x5d24dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d24dc([0x68,0x69,0x67,0x68])}),_0x479144[_0x5d24dc([0x6f,0x6e])](_0x5d24dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x526f8f=>{_0x4bc2ce(_0x526f8f[_0x5d24dc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xfc548a=!0x0,_0x332070(_0x526f8f[_0x5d24dc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d24dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d24dc([0x6c,0x6f,0x77])}),_0x5a9d0d[_0x5d24dc([0x74,0x68,0x65,0x6e])](()=>{_0xfc548a||_0xff4084(_0x5d24dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c8356(){return _0x479144[_0x5d24dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d24dc([0x76,0x69,0x65,0x77])][_0x5d24dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d24dc([0x61,0x75,0x74,0x6f]);}function _0x32be49(){_0x479144[_0x5d24dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d24dc([0x76,0x69,0x65,0x77])][_0x5d24dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d24dc([0x61,0x75,0x74,0x6f]);}}function _0x543fe0(_0x55805f){const _0x55e601=[new window[(_0x5d24dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfb8daf=>setTimeout(_0xfb8daf,0x3d1ee13^_0x4532f6)),_0x5a9d0d[_0x5d24dc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d24dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6bd4c=>{let _0x365836=0x0;_0x479144[_0x5d24dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d24dc([0x6f,0x6e])](_0x5d24dc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x497b57,_0x5f3f83)=>{_0x5f3f83[0x0][_0x5d24dc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x365836++,_0x365836==(0x3d8d127^_0x4532f6)&&(_0x6bd4c(),_0x497b57[_0x5d24dc([0x6f,0x66,0x66])]());});}))];return window[_0x5d24dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d24dc([0x72,0x61,0x63,0x65])](_0x55e601)[_0x5d24dc([0x74,0x68,0x65,0x6e])](()=>_0x55805f);}async function _0x25b973(){await _0x5a9d0d,_0x479144[_0x5d24dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d24dc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x407434,_0x479144[_0x5d24dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d24dc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x407434,_0x479144[_0x5d24dc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d24dc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b97d9(_0x23bb4d){const _0x44a8c6=_0x40dfb1();_0x479144[_0x44a8c6]=_0x5d24dc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x23bb4d,_0x23bb4d!=_0x5d24dc([0x56,0x61,0x6c,0x69,0x64])&&_0x25b973();}function _0x40dfb1(){const _0x1616d9=window[_0x5d24dc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d24dc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d24dc([0x6e,0x6f,0x77])]())[_0x5d24dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d24dc([0x2e]),'');let _0x490cba=_0x5d24dc([0x52]);for(let _0x1f64b6=0x0;_0x1f64b6<_0x1616d9[_0x5d24dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f64b6+=0x2){let _0x562951=window[_0x5d24dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1616d9[_0x5d24dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f64b6,_0x1f64b6+0x2));_0x562951>=_0x71d41a[_0x5d24dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x562951-=_0x71d41a[_0x5d24dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x490cba+=_0x71d41a[_0x562951];}return _0x490cba;}function _0x81e39b(){const _0x4867d8=_0x4e73ef[_0x5d24dc([0x73,0x70,0x6c,0x69,0x74])](_0x5d24dc([0x2e]));if(0x3!=_0x4867d8[_0x5d24dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x595150(_0x4867d8[0x1]);function _0x595150(_0xc7d3e4){const _0x514059=_0x422956(_0xc7d3e4);return _0x514059&&_0x2b5a42()?_0x514059:null;function _0x2b5a42(){const _0x2e32cd=_0x514059[_0x5d24dc([0x6a,0x74,0x69])],_0x545111=window[_0x5d24dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e32cd[_0x5d24dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e32cd[_0x5d24dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ac83c={..._0x514059,[_0x5d24dc([0x6a,0x74,0x69])]:_0x2e32cd[_0x5d24dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e32cd[_0x5d24dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ac83c[_0x5d24dc([0x76,0x63])],_0x344e5a(_0x2ac83c)==_0x545111;}}}async function _0x56a656(){let _0x16176a=!0x0;try{const _0x45693a=_0x4e73ef[_0x5d24dc([0x73,0x70,0x6c,0x69,0x74])](_0x5d24dc([0x2e])),[_0x41585a,_0x496dcd,_0x5eed8c]=_0x45693a;return _0x1b6e64(_0x41585a),await _0x1885f8(_0x41585a,_0x496dcd,_0x5eed8c),_0x16176a;}catch{return!0x1;}function _0x1b6e64(_0x511fcf){const _0x44a06e=_0x422956(_0x511fcf);_0x44a06e&&_0x44a06e[_0x5d24dc([0x61,0x6c,0x67])]==_0x5d24dc([0x45,0x53,0x32,0x35,0x36])||(_0x16176a=!0x1);}async function _0x1885f8(_0x1d5354,_0x2f7652,_0x44a856){const _0x2ea1f8=window[_0x5d24dc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d24dc([0x66,0x72,0x6f,0x6d])](_0x570554(_0x44a856),_0x5bb90c=>_0x5bb90c[_0x5d24dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c946f=new window[(_0x5d24dc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d24dc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d5354+_0x5d24dc([0x2e])+_0x2f7652),_0x265043=window[_0x5d24dc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d24dc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x265043)return;const _0x1c3551=await _0x265043[_0x5d24dc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d24dc([0x6a,0x77,0x6b]),_0x26cbe2,{[_0x5d24dc([0x6e,0x61,0x6d,0x65])]:_0x5d24dc([0x45,0x43,0x44,0x53,0x41]),[_0x5d24dc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d24dc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d24dc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x265043[_0x5d24dc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d24dc([0x6e,0x61,0x6d,0x65])]:_0x5d24dc([0x45,0x43,0x44,0x53,0x41]),[_0x5d24dc([0x68,0x61,0x73,0x68])]:{[_0x5d24dc([0x6e,0x61,0x6d,0x65])]:_0x5d24dc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c3551,_0x2ea1f8,_0x5c946f)||(_0x16176a=!0x1);}}function _0x422956(_0x47659d){return _0x47659d[_0x5d24dc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d24dc([0x65,0x79]))?JSON[_0x5d24dc([0x70,0x61,0x72,0x73,0x65])](_0x570554(_0x47659d)):null;}function _0x570554(_0x5342f4){return window[_0x5d24dc([0x61,0x74,0x6f,0x62])](_0x5342f4[_0x5d24dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d24dc([0x2b]))[_0x5d24dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d24dc([0x2f])));}function _0x344e5a(_0x4affd9){let _0x5351ab=0x1505;function _0x4b3b3d(_0x1aa8d6){for(let _0x209b2b=0x0;_0x209b2b<_0x1aa8d6[_0x5d24dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x209b2b++){const _0x7cbbdb=_0x1aa8d6[_0x5d24dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x209b2b);_0x5351ab=(_0x5351ab<<0x5)+_0x5351ab+_0x7cbbdb,_0x5351ab&=_0x5351ab;}}function _0x19c2aa(_0x4ff60b){Array[_0x5d24dc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ff60b)?_0x4ff60b[_0x5d24dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19c2aa):_0x4ff60b&&typeof _0x4ff60b==_0x5d24dc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d24dc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ff60b)[_0x5d24dc([0x73,0x6f,0x72,0x74])]()[_0x5d24dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bdd5e,_0x36b2b4])=>{_0x4b3b3d(_0x5bdd5e),_0x19c2aa(_0x36b2b4);}):_0x4b3b3d(window[_0x5d24dc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ff60b));}return _0x19c2aa(_0x4affd9),_0x5351ab>>>0x0;}function _0x5d7d2e(_0x50c7b0){return _0x50c7b0[_0x5d24dc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d24dc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d24dc([0x30]));}function _0x45b40a(_0x3f76c4){return _0x3f76c4[_0x5d24dc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d24dc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d24dc([0x6a,0x6f,0x69,0x6e])]('');}function _0x407434(){}function _0x5d24dc(_0x4989f3){return _0x4989f3['map'](_0x22d94d=>String['fromCharCode'](_0x22d94d))['join']('');}_0x4b97d9(await _0xb2e790());}(this);}['_initSchema'](){const _0x34bb66=this['editor']['model']['schema'];_0x34bb66['isRegistered']('imageBlock')&&_0x34bb66['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x34bb66['isRegistered']('imageInline')&&_0x34bb66['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x52352e=this['editor'];_0x52352e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x52352e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x332c6a=>_0x332c6a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5d298b=_0x52352e['commands']['get']('replaceImageSource');_0x5d298b&&this['listenTo'](_0x5d298b,'cleanupImage',(_0x2463ab,[_0x29e4f4,_0x335a6d])=>{_0x29e4f4['removeAttribute']('uploadcareImageId',_0x335a6d);});}['_initConfig'](){const _0x521af1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x122ece=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xa6babb(_0x994d2c['document'],'uc-config',{..._0x521af1,'pubkey':_0x122ece,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x8d5932=>{if('closeMax'==_0x8d5932)return'#uc-icon-arrow-down';},_0x994d2c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xa6babb(_0x994d2c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x994d2c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x45326d=this['editor']['commands']['get']('insertImage');_0x45326d&&this['listenTo'](_0x45326d,'execute',()=>{const _0x4a40b5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a40b5&&_0x4a40b5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4a40b5);});});const _0x438bac=this['editor']['commands']['get']('uploadcareImageReplace');_0x438bac&&this['listenTo'](_0x438bac,'execute',()=>{const _0x562588=this['editor']['model']['document']['selection']['getSelectedElement']();_0x562588&&_0x562588['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x562588);});});}}class tt extends _0x759d34{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ec3ce){super(_0x4ec3ce),_0x4ec3ce['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2ebe37['defineComponents'](_0x2ebe37);}}class ii extends _0x49abf3{constructor(_0x564a25){super(_0x564a25);const t=_0x564a25['t'],_0x47685e=this['bindTemplate'],_0x456f07=new _0x113150();_0x456f07['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':[_0x456f07,{'text':_0x47685e['to']('imageUploadProgress',_0x4232=>t('Loading\x20image...')+'\x20('+(_0x4232||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x49abf3{constructor(_0x65453d){super(_0x65453d);const t=_0x65453d['t'];this['set']('errorType',null);const _0x1e4886=new _0x5c0c0f(_0x65453d);_0x1e4886['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1e4886['withText']=!0x0,_0x1e4886['class']='ck-button-action',_0x1e4886['on']('execute',()=>{this['fire']('retry');}),_0x1e4886['bind']('isVisible')['to'](this,'errorType',_0x488104=>'NotFound'!==_0x488104);const _0x467dc9=new _0xc1439d();_0x467dc9['content']=_0x170993,_0x467dc9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x45ecb0=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':[_0x467dc9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x45ecb0['to']('errorType',_0x1a504e=>t('NotFound'!==_0x1a504e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1e4886]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x49abf3{constructor(_0x150269,_0x5c7dcf){super(_0x150269);const _0x146ed0=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5c7dcf,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x146ed0['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x7d009b,_0xa3d10d,_0x431900){super(_0x7d009b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x7d009b),this['_errorView']=new ti(_0x7d009b),this['_editingView']=new ei(_0x7d009b,_0x431900),this['_focusableView']=new _0x49abf3(_0x7d009b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xa3d10d),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'],_0x101be9=>{this['_addUploadcareImageEditorListeners'](_0x101be9);});}),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'](_0x5c8d16,_0xb4a0ae){const _0x29812b='uc-cloud-image-editor',_0x4b7a62=_0x5c8d16['querySelector'](_0x29812b);if(_0x4b7a62)return _0xb4a0ae(_0x4b7a62);const _0x43aaf3=new MutationObserver(_0x3de1fa=>{const _0x22cbee=_0x3de1fa['filter'](_0x45b922=>_0x45b922['target']===_0x5c8d16&&_0x45b922['addedNodes']['length']>0x0&&_0x45b922['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x29812b);_0x22cbee['length']&&(_0x43aaf3['disconnect'](),_0xb4a0ae(_0x22cbee[0x0]['addedNodes'][0x0]));});_0x43aaf3['observe'](_0x5c8d16,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x296e25){_0x296e25['addEventListener']('apply',_0xd0a174=>{this['fire']('apply',{'imageSrc':_0xd0a174['detail']['cdnUrl']});}),_0x296e25['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x827190(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1e852e,_0x5888bd,_0x37263a){super(),this['_editor']=_0x1e852e,this['_dialog']=_0x5888bd,this['_imageElement']=_0x37263a,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 _0x246f3b=this['_imageElement'],_0x40459c=_0x246f3b['getAttribute']('uploadcareImageId'),_0x556376=_0x246f3b['getAttribute']('src');if(_0x40459c)await this['_loadImageInfo'](_0x40459c,_0x556376);else{if(this['_imageCache']['has'](_0x556376)){const _0x5b8402=this['_imageCache']['get'](_0x556376);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b8402['url'],this['imageDimension']=_0x5b8402['dimension'],this['imageId']=_0x5b8402['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x117e37}=this['_editor'],t=_0x117e37['t'],_0x422ac1=new X(_0x117e37,this['imageStatus'],this['_attributes']);_0x422ac1['bind']('status')['to'](this,'imageStatus'),_0x422ac1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x422ac1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x422ac1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x422ac1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2ed518,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x422ac1,'position':_0x5beb23['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x422ac1['focus']();},'onHide':()=>{_0x422ac1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5bfde2=>!A(_0x5bfde2,_0x422ac1['element'])}});}['_loadImageInfo'](_0x2e33e8,_0x1ac920){return j['getInfo'](_0x2e33e8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x43da81=>{const {width:_0x5ace39,height:_0xef9064}=_0x43da81['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ac920,this['imageDimension']={'width':_0x5ace39,'height':_0xef9064},this['imageId']=_0x2e33e8;})['catch'](_0x237177=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x237177['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3e6fcd,_0x1856be){return this['_getImageAsFile'](_0x3e6fcd)['then'](_0x26dd32=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x1856be['signal'],'file':_0x26dd32,'onProgress':_0x47b42f=>{_0x47b42f&&_0x47b42f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x47b42f['value']));}}))['then'](_0x3c63ff=>{const {width:_0x30588f,height:_0x1b79f1}=_0x3c63ff['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c63ff['cdnUrl'],this['imageDimension']={'width':_0x30588f,'height':_0x1b79f1},this['imageId']=_0x3c63ff['uuid'],this['imageUploadProgress']=null;const _0x21619d=_0x3e6fcd['getAttribute']('src');this['_imageCache']['set'](_0x21619d,{'id':_0x3c63ff['uuid'],'url':_0x3c63ff['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x478e4b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x478e4b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4fb47a,_0x1e4680){_0x4fb47a['on']('apply',(_0x25ab94,_0x58808e)=>{this['_replaceImage'](_0x1e4680,_0x58808e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4fb47a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4fb47a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x218d09,_0x4da61e,_0x2b1fee){const _0x5be1f7=this['_editor'],{width:_0x4b28ff,height:_0x508856}=S(_0x4da61e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2f4a19,imageSources:_0x2b90fa}=C(_0x4da61e,_0x4b28ff);_0x5be1f7['model']['change'](_0x1984b1=>{if('$graveyard'===_0x218d09['root']['rootName']){_0x5be1f7['execute']('insertImage',{'imageType':_0x218d09['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x218d09['getAttributes']()),'uploadcareImageId':_0x2b1fee,'src':_0x2f4a19,'sources':_0x2b90fa,'width':_0x4b28ff,'height':_0x508856}});const _0x83ad24=_0x218d09['getChildren']();_0x218d09=_0x5be1f7['model']['document']['selection']['getSelectedElement']();for(const _0x271bed of _0x83ad24)_0x1984b1['append'](_0x1984b1['cloneElement'](_0x271bed),_0x218d09);}else _0x1984b1['setSelection'](_0x218d09,'on'),_0x5be1f7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x218d09['getAttributes']()),'uploadcareImageId':_0x2b1fee,'src':_0x2f4a19,'sources':_0x2b90fa,'width':_0x4b28ff,'height':_0x508856},_0x218d09);_0x1984b1['setSelection'](_0x218d09,'on');});}async['_getImageAsFile'](_0x37e526){const _0x3e7944=_0x994d2c['window'],_0x25fd10=_0x994d2c['document']['location']['href'],_0x5010bb=new _0x3e7944['URL'](_0x37e526['getAttribute']('src'),_0x25fd10);if('data:'===_0x5010bb['protocol']){const _0x23738f=_0x5010bb['href']['split'](','),_0x33c9ac=_0x23738f[0x0]['match'](/:(.*?);/)[0x1],_0x2be6ec=_0x33c9ac['split']('/')[0x1],_0x34cd5b=_0x3e7944['atob'](_0x23738f[_0x23738f['length']-0x1]);let _0x5a2054=_0x34cd5b['length'];const _0x4bc77d=new _0x3e7944['Uint8Array'](_0x5a2054);for(;_0x5a2054--;)_0x4bc77d[_0x5a2054]=_0x34cd5b['charCodeAt'](_0x5a2054);return new _0x3e7944['File']([_0x4bc77d],'image.'+_0x2be6ec,{'type':_0x33c9ac});}const _0x5cc92f=_0x5010bb['href']['split']('/'),_0x4a2e05=_0x5cc92f[_0x5cc92f['length']-0x1],_0x6d1e00=_0x4a2e05['split']('.')[0x1];return _0x3e7944['fetch'](_0x5010bb['href'])['then'](_0xb6d3a5=>_0xb6d3a5['clone']()['blob']())['then'](_0x87bb22=>new _0x3e7944['File']([_0x87bb22],_0x4a2e05,{'type':'image/'+_0x6d1e00}));}}class Q extends _0x4b0c1{['imageEditController'];static get['requires'](){return[_0x5aa4ec];}['_isEditable'];constructor(_0x1fd6fd){super(_0x1fd6fd),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x186894){const _0x1c5e5a=z(_0x186894);return _0x145ca1=>!(!_0x145ca1||!_0x145ca1['is']('element','imageBlock')&&!_0x145ca1['is']('element','imageInline'))&&(!!_0x145ca1['hasAttribute']('uploadcareImageId')||!!_0x145ca1['hasAttribute']('src')&&_0x1c5e5a(_0x145ca1['getAttribute']('src')));}(_0x1fd6fd['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x15ccb1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x15ccb1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2f7858=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f7858&&(_0x2f7858['is']('element','imageBlock')||_0x2f7858['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x5aa4ec),_0x2f7858),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x4b0c1{['refresh'](){const _0x2bb01f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2bb01f&&(_0x2bb01f['is']('element','imageBlock')||_0x2bb01f['is']('element','imageInline')));}['execute'](_0x11a603){const _0x3e858c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1a2308=>{_0x1a2308['setAttributes'](_0x11a603,_0x3e858c),_0x1a2308['removeAttribute']('srcset',_0x3e858c),_0x1a2308['removeAttribute']('sizes',_0x3e858c);});}}class m extends _0x759d34{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x430b1f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x16128b}=this;_0x16128b['commands']['add']('uploadcareImageEdit',new Q(_0x16128b)),_0x16128b['commands']['add']('uploadcareImageReplace',new V(_0x16128b));}}class g extends _0x759d34{['_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 _0x37df71=this['editor'];_0x37df71['ui']['componentFactory']['add']('uploadcareImageEdit',_0x54441e=>{const _0x1041de=_0x37df71['commands']['get']('uploadcareImageEdit'),_0x16014b=new _0x5c0c0f(_0x54441e),t=_0x54441e['t'];return _0x16014b['set']({'icon':_0x2ed518,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x16014b['bind']('isEnabled')['to'](_0x1041de),_0x16014b['bind']('isOn')['to'](_0x1041de,'isActive'),this['listenTo'](_0x16014b,'execute',()=>{_0x37df71['execute']('uploadcareImageEdit'),_0x37df71['editing']['view']['focus']();}),_0x16014b;}),this['_initConfig']();}['_initConfig'](){const _0x1bc1dc=_0xa6babb(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1bc1dc),this['listenTo'](this['editor'],'destroy',()=>{_0x1bc1dc['remove']();});}}class et extends _0x759d34{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x587675=>0x1!=_0x587675}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2bc2f3=>{const {af:{dictionary:_0x3e3d19,getPluralForm:_0x6630bf}}={'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':_0x54e924=>0x1!=_0x54e924}};_0x2bc2f3['af']||={'dictionary':{},'getPluralForm':null},_0x2bc2f3['af']['dictionary']=Object['assign'](_0x2bc2f3['af']['dictionary'],_0x3e3d19),_0x2bc2f3['af']['getPluralForm']=_0x6630bf;})(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':_0x384c1d=>0x0==_0x384c1d?0x0:0x1==_0x384c1d?0x1:0x2==_0x384c1d?0x2:_0x384c1d%0x64>=0x3&&_0x384c1d%0x64<=0xa?0x3:_0x384c1d%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4063da=>{const {ar:{dictionary:_0x22a4cb,getPluralForm:_0x11f3f3}}={'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':_0x4c77cc=>0x0==_0x4c77cc?0x0:0x1==_0x4c77cc?0x1:0x2==_0x4c77cc?0x2:_0x4c77cc%0x64>=0x3&&_0x4c77cc%0x64<=0xa?0x3:_0x4c77cc%0x64>=0xb?0x4:0x5}};_0x4063da['ar']||={'dictionary':{},'getPluralForm':null},_0x4063da['ar']['dictionary']=Object['assign'](_0x4063da['ar']['dictionary'],_0x22a4cb),_0x4063da['ar']['getPluralForm']=_0x11f3f3;})(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':_0x668e1b=>0x1!=_0x668e1b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x15aac1=>{const {ast:{dictionary:_0x4b86a7,getPluralForm:_0x5a5eff}}={'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':_0x32f19c=>0x1!=_0x32f19c}};_0x15aac1['ast']||={'dictionary':{},'getPluralForm':null},_0x15aac1['ast']['dictionary']=Object['assign'](_0x15aac1['ast']['dictionary'],_0x4b86a7),_0x15aac1['ast']['getPluralForm']=_0x5a5eff;})(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':_0x512955=>0x1!=_0x512955}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x42540d=>{const {az:{dictionary:_0x9d6501,getPluralForm:_0x1248eb}}={'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':_0x4768bc=>0x1!=_0x4768bc}};_0x42540d['az']||={'dictionary':{},'getPluralForm':null},_0x42540d['az']['dictionary']=Object['assign'](_0x42540d['az']['dictionary'],_0x9d6501),_0x42540d['az']['getPluralForm']=_0x1248eb;})(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':_0x5c5b80=>_0x5c5b80%0xa==0x1&&_0x5c5b80%0x64!=0xb?0x0:_0x5c5b80%0xa>=0x2&&_0x5c5b80%0xa<=0x4&&(_0x5c5b80%0x64<0xa||_0x5c5b80%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4ffe2f=>{const {be:{dictionary:_0x34de38,getPluralForm:_0x3fe740}}={'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':_0x36c5a4=>_0x36c5a4%0xa==0x1&&_0x36c5a4%0x64!=0xb?0x0:_0x36c5a4%0xa>=0x2&&_0x36c5a4%0xa<=0x4&&(_0x36c5a4%0x64<0xa||_0x36c5a4%0x64>=0x14)?0x1:0x2}};_0x4ffe2f['be']||={'dictionary':{},'getPluralForm':null},_0x4ffe2f['be']['dictionary']=Object['assign'](_0x4ffe2f['be']['dictionary'],_0x34de38),_0x4ffe2f['be']['getPluralForm']=_0x3fe740;})(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':_0x23737=>0x1!=_0x23737}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x45610b=>{const {bg:{dictionary:_0x3614dc,getPluralForm:_0x2d1911}}={'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':_0x43fe35=>0x1!=_0x43fe35}};_0x45610b['bg']||={'dictionary':{},'getPluralForm':null},_0x45610b['bg']['dictionary']=Object['assign'](_0x45610b['bg']['dictionary'],_0x3614dc),_0x45610b['bg']['getPluralForm']=_0x2d1911;})(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':_0x29ce67=>0x1!=_0x29ce67}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a7225=>{const {bn:{dictionary:_0x39b0e1,getPluralForm:_0x4c9f19}}={'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':_0x38ec98=>0x1!=_0x38ec98}};_0x4a7225['bn']||={'dictionary':{},'getPluralForm':null},_0x4a7225['bn']['dictionary']=Object['assign'](_0x4a7225['bn']['dictionary'],_0x39b0e1),_0x4a7225['bn']['getPluralForm']=_0x4c9f19;})(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':_0x5920f6=>_0x5920f6%0xa==0x1&&_0x5920f6%0x64!=0xb?0x0:_0x5920f6%0xa>=0x2&&_0x5920f6%0xa<=0x4&&(_0x5920f6%0x64<0xa||_0x5920f6%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x520991=>{const {bs:{dictionary:_0x29fab8,getPluralForm:_0x3f171a}}={'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':_0x54d46c=>_0x54d46c%0xa==0x1&&_0x54d46c%0x64!=0xb?0x0:_0x54d46c%0xa>=0x2&&_0x54d46c%0xa<=0x4&&(_0x54d46c%0x64<0xa||_0x54d46c%0x64>=0x14)?0x1:0x2}};_0x520991['bs']||={'dictionary':{},'getPluralForm':null},_0x520991['bs']['dictionary']=Object['assign'](_0x520991['bs']['dictionary'],_0x29fab8),_0x520991['bs']['getPluralForm']=_0x3f171a;})(window['CKEDITOR_TRANSLATIONS']||={});
|