@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250421.0 → 0.0.0-nightly-20250423.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x23d547,Command as _0x937566}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4eca3f,IconGooglePhotos as _0x226244,IconGoogleDrive as _0x4845c1,IconFacebook as _0x102674,IconDropbox as _0x311954,IconUploadcareLink as _0x32c6aa,IconUploadcareImageUpload as _0x4cade3,IconError as et,IconUploadcareImageEdit as _0x19032a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1c1089,MenuBarMenuListItemButtonView as _0x383849,View as _0x1d33b5,FocusCycler as _0x282734,Dialog as _0xaba52e,DialogViewPosition as _0x3bc20e,SpinnerView as _0x518971,IconView as at,Notification as _0x184f04}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xd13535,DomEmitterMixin as _0x36f4a7,global as _0x1915e9,getAncestors as _0x2a11e7,ObservableMixin as _0x5e6b33,createElement as _0x5a5841,uid as _0x32241f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x585297}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x61d20f,info as _0x5f0b3e}from'@uploadcare/upload-client';import*as _0x2df8e7 from'@uploadcare/file-uploader';var o=function(_0x91901){return _0x91901['Local']='local',_0x91901['URL']='url',_0x91901['Dropbox']='dropbox',_0x91901['GDrive']='gdrive',_0x91901['Facebook']='facebook',_0x91901['GPhotos']='gphotos',_0x91901['OneDrive']='onedrive',_0x91901;}({});function _(_0x5cbea8,_0x386ad1,_0x26edfb){const t=_0x5cbea8['t'],_0x466e91=_0x5cbea8['t'];switch(_0x386ad1){case o['Local']:return{'text':_0x466e91('Insert'===_0x26edfb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x466e91('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x26edfb?_0x466e91('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x466e91('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x386ad1;}}class e extends _0x23d547{['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 _0x4f4522=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5c0dc5;for(const _0x3f64ab in _0x4f4522){const _0x4a1278=_0x3f64ab,_0x301910=_0x4f4522[_0x4a1278];if('uploadcareLicenseKeyValid'==_0x301910||'uploadcareLicenseKeyInvalid'==_0x301910||'uploadcareLicenseKeyExpired'==_0x301910||'uploadcareLicenseKeyDomainLimit'==_0x301910||'uploadcareLicenseKeyNotAllowed'==_0x301910||'uploadcareLicenseKeyEvaluationLimit'==_0x301910||'uploadcareLicenseKeyTrialLimit'==_0x301910||'uploadcareLicenseKeyUsageLimit'==_0x301910){delete _0x4f4522[_0x4a1278],_0x5c0dc5=_0x301910,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x11598a}=this,_0x5b51aa=_0x11598a['commands']['get']('uploadcare');if(!_0x5b51aa)return;const _0x367001=this['_normalizeConfigSourceList'](_0x11598a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x11f422,_0x415aab)=>{const _0x2ea474=this['_getIntegrationKey'](_0x415aab['type']);return _0x11f422[_0x2ea474]||(_0x11f422[_0x2ea474]=[]),_0x11f422[_0x2ea474]['push'](_0x415aab),_0x11f422;},{});_0x11598a['plugins']['has']('ImageInsertUI')&&_0x11598a['commands']['get']('uploadcare')&&Object['entries'](_0x367001)['forEach'](([_0x3e1235,_0x514242])=>{_0x11598a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3e1235,'observable':()=>_0x5b51aa,'buttonViewCreator':()=>this['_createToolbarButton'](_0x514242),'formViewCreator':()=>this['_createDropdownButtons'](_0x514242),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x514242),'override':'assetManager'!==_0x3e1235});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xbd03f9){const {locale:_0x15db32}=this['editor'];return _0xbd03f9['map'](_0x130f99=>{const _0xba0a9f=_(_0x15db32,_0x130f99,'Insert');switch(_0x130f99){case o['Local']:return{'icon':_0x4cade3,'type':o['Local'],..._0xba0a9f};case o['URL']:return{'icon':_0x32c6aa,'type':o['URL'],..._0xba0a9f};case o['Dropbox']:return{'icon':_0x311954,'type':o['Dropbox'],..._0xba0a9f};case o['Facebook']:return{'icon':_0x102674,'type':o['Facebook'],..._0xba0a9f};case o['GDrive']:return{'icon':_0x4845c1,'type':o['GDrive'],..._0xba0a9f};case o['GPhotos']:return{'icon':_0x226244,'type':o['GPhotos'],..._0xba0a9f};case o['OneDrive']:return{'icon':_0x4eca3f,'type':o['OneDrive'],..._0xba0a9f};}});}['_getIntegrationKey'](_0x1c01f9){switch(_0x1c01f9){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x347cb3,_0x35edbc){const _0xaaaa8=this['editor'],_0x259bae=new _0x347cb3(_0xaaaa8['locale']),_0x3411bd=_0xaaaa8['commands']['get']('uploadcare');return _0x259bae['bind']('isEnabled')['to'](_0x3411bd),_0x259bae['on']('execute',()=>{_0x3411bd['execute'](_0x35edbc);}),_0x259bae;}['_createToolbarButton'](_0x1c99de){const {locale:_0x49943e}=this['editor'],_0x6097ea=this['editor']['plugins']['get']('ImageInsertUI'),_0x116b04=_0x1c99de[0x0],_0x12f1f1=this['_createButton'](_0x1c1089,_0x116b04['type']);return _0x12f1f1['icon']=_0x116b04['icon'],_0x12f1f1['bind']('label')['to'](_0x6097ea,'isImageSelected',_0x3c293b=>_(_0x49943e,_0x116b04['type'],_0x3c293b?'Replace':'Insert')['text']),_0x12f1f1['tooltip']=!0x0,_0x12f1f1;}['_createDropdownButtons'](_0x1634c7){const {locale:_0x598d82}=this['editor'],_0x5e555c=this['editor']['plugins']['get']('ImageInsertUI');return _0x1634c7['map'](_0x20053b=>{const _0x2263c9=this['_createButton'](_0x1c1089,_0x20053b['type']);return _0x2263c9['withText']=!0x0,_0x2263c9['icon']=_0x20053b['icon'],_0x2263c9['bind']('label')['to'](_0x5e555c,'isImageSelected',_0x45cdbb=>_(_0x598d82,_0x20053b['type'],_0x45cdbb?'Replace':'Insert')['text']),_0x2263c9;});}['_createMenuBarButtons'](_0x4162f6){return _0x4162f6['map'](_0x1b3e29=>{const _0x283fa2=this['_createButton'](_0x383849,_0x1b3e29['type']);return _0x283fa2['icon']=_0x1b3e29['icon'],_0x283fa2['label']=_0x1b3e29['shortText'],_0x283fa2;});}}class q extends _0x1d33b5{['focusTracker'];['focusCycler'];constructor(_0x36ba6c){super(_0x36ba6c),this['focusTracker']=new _0xd13535(),this['focusCycler']=new _0x282734({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x4736e0){super(_0x4736e0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x133602,_0x50ce35){const _0x2d1390=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x19efa7=>_0x19efa7<=_0x50ce35)['map'](_0x5b8c77=>_0x133602['replace'](/\/$/,'')+'/-/resize/'+_0x5b8c77+'x/\x20'+_0x5b8c77+'w');return{'imageFallbackUrl':_0x133602,'imageSources':[{'srcset':_0x2d1390['join'](',\x20'),'sizes':'(max-width:\x20'+_0x50ce35+'px)\x20100vw,\x20'+_0x50ce35+'px','type':'image/webp'}]};}function A(_0x550e07,_0x46756d,_0x10161c){const _0x2542c9=_0x550e07['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2542c9?parseInt(_0x2542c9[0x1],0xa):_0x46756d,'height':_0x2542c9?parseInt(_0x2542c9[0x2],0xa):_0x10161c};}function m(_0x5dbb08,_0x3fd3e8){const _0xb2d4eb=Object['create'](_0x36f4a7),_0x11f789=_0x5dbb08['plugins']['get']('ImageUtils'),_0x2c74a0=_0x5dbb08['editing']['mapper']['toViewElement'](_0x3fd3e8),_0x29cc06=_0x11f789['findViewImgElement'](_0x2c74a0),_0x582601=_0x5dbb08['editing']['view']['domConverter']['viewToDom'](_0x29cc06),_0x30d54f=_0x3fd3e8['getAttribute']('width'),_0x59edd3=_0x3fd3e8['getAttribute']('height'),_0x3afc99='image-processing';_0x5dbb08['editing']['view']['change'](_0x3eda8c=>{_0x3eda8c['addClass'](_0x3afc99,_0x2c74a0),_0x3eda8c['setStyle']('aspect-ratio',_0x30d54f+'/'+_0x59edd3,_0x29cc06);}),_0xb2d4eb['listenTo'](_0x582601,'load',()=>{_0xb2d4eb['stopListening'](_0x582601,'load'),_0x5dbb08['editing']['view']['change'](_0x289e16=>{_0x289e16['removeClass'](_0x3afc99,_0x2c74a0),_0x289e16['removeStyle']('aspect-ratio',_0x29cc06);});});}function V(_0x986d3d){if(Array['isArray'](_0x986d3d)){const _0x5205e2=_0x986d3d['map'](V);return _0x41c1ee=>_0x5205e2['some'](_0x10fff8=>_0x10fff8(_0x41c1ee));}if('origin'==_0x986d3d){const _0x5d7d34=_0x1915e9['window']['location']['origin'];return _0x516ad9=>new URL(_0x516ad9,_0x1915e9['document']['baseURI'])['origin']==_0x5d7d34;}return'function'==typeof _0x986d3d?_0x986d3d:_0x986d3d instanceof RegExp?_0xae55df=>!(!_0xae55df['match'](_0x986d3d)&&!_0xae55df['replace'](/^https?:\/\//,'')['match'](_0x986d3d)):()=>!0x1;}function F(_0x457f20,_0x166440){return _0x2a11e7(_0x457f20['target'])['includes'](_0x166440);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5e6b33(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5e63b5,_0x214490,_0x3a631e){super(),this['_editor']=_0x5e63b5,this['_editing']=_0x214490,this['_dialog']=_0x5e63b5['plugins']['get'](_0xaba52e),this['_api']=_0x214490['ctxElement']['getAPI'](),this['_type']=_0x3a631e,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:_0x653b27,model:_0x5dc5ec}=this['_editor'],_0x7bd229=_0x5dc5ec['document']['selection']['getSelectedElement'](),_0x1d9231=_0x7bd229&&(_0x7bd229['is']('element','imageBlock')||_0x7bd229['is']('element','imageInline'));this['_formView']=new S(_0x653b27),this['_dialog']['show']({'id':'uploadCare','icon':_0x4cade3,'title':_(_0x653b27,this['_type'],_0x1d9231?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3bc20e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5987f9=>!F(_0x5987f9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x327a41}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x420588=>{const _0x7dc9e6=_0x327a41['length'];for(const _0x152aea of _0x327a41){const _0x168712=_0x152aea===_0x327a41[_0x7dc9e6-0x1],{cdnUrl:_0x2b6bbd,fileInfo:_0x3abd1c}=_0x152aea;if(!_0x2b6bbd||!_0x3abd1c)continue;const {width:_0x13a78b,height:_0x4830d2}=_0x3abd1c['imageInfo'],_0x3b6344=A(_0x2b6bbd,_0x13a78b,_0x4830d2),_0x3496e9=E(_0x2b6bbd,_0x3b6344['width']),_0x727bb7={'id':_0x3abd1c['uuid'],'type':'image','attributes':{'imageDimension':_0x3b6344,..._0x3496e9}};this['_insertAsset'](_0x727bb7,_0x168712,_0x420588);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2aa376=>{'idle'===_0x2aa376['detail']['status']&&!_0x2aa376['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3f316c,_0x3b4e35,_0x141b81){const _0x582dcc=this['_editor']['model']['document']['selection'],_0x5c3279=_0x582dcc['getSelectedElement'](),_0x576ae0=!(!_0x5c3279||!_0x5c3279['is']('element','imageInline'));_0x141b81['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3f316c,_0x576ae0),_0x3b4e35||_0x141b81['setSelection'](_0x582dcc['getLastPosition']());}['_insertImage'](_0x2f5c07,_0x15d944){const _0x2a22a0=this['_editor'],{imageDimension:_0x65f4d,imageFallbackUrl:_0x2bee31,imageSources:_0x26f0fc}=_0x2f5c07['attributes'];_0x2a22a0['execute']('insertImage',{'imageType':_0x15d944?'imageInline':null,'source':{'uploadcareImageId':_0x2f5c07['id'],'src':_0x2bee31,'sources':_0x26f0fc,..._0x65f4d}});}}class n extends _0x937566{['_editing'];['_controller']=null;static get['requires'](){return[_0xaba52e,i];}constructor(_0x59af8c){super(_0x59af8c),this['_editing']=_0x59af8c['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x13ece4){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x13ece4);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x25315a,publicKey:_0x5e7dc1,signal:_0x3974eb,onProgress:_0x42b974}){return _0x61d20f(_0x25315a,{'publicKey':_0x5e7dc1,'store':'auto','signal':_0x3974eb,'onProgress':_0x42b974});}static['getInfo'](_0x44371f,_0x501da1){return _0x5f0b3e(_0x44371f,_0x501da1);}}class p extends _0x23d547{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x585297,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1220e7=this['editor'];if(!!!_0x1220e7['config']['get']('uploadcare'))return;_0x1220e7['plugins']['get'](_0x585297)['createUploadAdapter']=_0x32dbd5=>new x(_0x32dbd5,_0x1220e7),_0x1220e7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4b9627,{imageElement:_0x1b6527,data:_0x435110})=>{_0x1220e7['model']['change'](_0x48997a=>{_0x48997a['setAttribute']('uploadcareImageId',_0x435110['uploadcareImageId'],_0x1b6527);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2e5a28,_0x2cbaa6){this['loader']=_0x2e5a28,this['editor']=_0x2cbaa6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x59359c=this['editor']['config']['get']('uploadcare.pubkey'),_0xd0ebb2=await this['loader']['file'];return C['upload']({'file':_0xd0ebb2,'publicKey':_0x59359c,'signal':this['controller']['signal'],'onProgress':_0x34ce32=>{_0x34ce32&&_0x34ce32['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x34ce32['value']);}})['then'](async _0x326a72=>{const {imageFallbackUrl:_0x2be4b6,imageSources:_0x54c1d8}=E(_0x326a72['cdnUrl'],_0x326a72['imageInfo']['width']);return{'uploadcareImageId':_0x326a72['uuid'],'default':_0x2be4b6,'sources':_0x54c1d8};})['catch'](()=>{const _0x60847a=t('Cannot\x20upload\x20file:')+('\x20'+_0xd0ebb2['name']+'.');return Promise['reject'](_0x60847a);});}['abort'](){this['controller']['abort']();}}class i extends _0x23d547{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0xaba52e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3cbf5b=this['editor'];_0x3cbf5b['commands']['add']('uploadcare',new n(_0x3cbf5b));}['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 _0x29b2c1=_0x1915e9['document']['querySelector']('input[uploadcare-file-input]');_0x29b2c1&&_0x29b2c1['remove']();}),async function(_0xcf9114){const _0x14c037=_0x34a1bd([0x36,0x7a,0x46,0x6b,0x68,0x56,0x55,0x67,0x43,0x61,0x42,0x70,0x4a,0x49,0x51,0x37,0x34,0x50,0x75,0x57,0x52,0x5a,0x45,0x6e,0x76,0x78,0x30,0x63,0x4f,0x31,0x71,0x66,0x74,0x35,0x41,0x44,0x6a,0x4c,0x6f,0x38,0x54,0x77,0x32,0x65,0x6c,0x58,0x73,0x4b,0x62,0x64,0x39,0x6d,0x72,0x4e,0x33,0x4d,0x53,0x47,0x48,0x79,0x69,0x59]),_0x49ad5d=0x1565b58,_0x1bac73=0x1513ef0^_0x49ad5d,_0x219da6=window[_0x34a1bd([0x44,0x61,0x74,0x65])][_0x34a1bd([0x6e,0x6f,0x77])](),_0x47f288=_0xcf9114[_0x34a1bd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xbbf575=new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x412b27=>{_0x47f288[_0x34a1bd([0x6f,0x6e,0x63,0x65])](_0x34a1bd([0x72,0x65,0x61,0x64,0x79]),_0x412b27);}),_0x450e96={[_0x34a1bd([0x6b,0x74,0x79])]:_0x34a1bd([0x45,0x43]),[_0x34a1bd([0x75,0x73,0x65])]:_0x34a1bd([0x73,0x69,0x67]),[_0x34a1bd([0x63,0x72,0x76])]:_0x34a1bd([0x50,0x2d,0x32,0x35,0x36]),[_0x34a1bd([0x78])]:_0x34a1bd([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]),[_0x34a1bd([0x79])]:_0x34a1bd([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]),[_0x34a1bd([0x61,0x6c,0x67])]:_0x34a1bd([0x45,0x53,0x32,0x35,0x36])},_0x1d1b3d=_0x47f288[_0x34a1bd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34a1bd([0x67,0x65,0x74])](_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1782f1(){let _0x1e94dc,_0x5c1544=null,_0x2cc389=null;try{if(_0x1d1b3d==_0x34a1bd([0x47,0x50,0x4c]))return _0x34a1bd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e94dc=_0x5d892a(),!_0x1e94dc)return _0x34a1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e94dc[_0x34a1bd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2cc389=_0x17fb7a(_0x1e94dc[_0x34a1bd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e94dc[_0x34a1bd([0x6a,0x74,0x69])])),await _0x911ef3()?_0x3cef64()?_0x2d12b2()?_0x34a1bd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47e70d()?(_0x1e94dc[_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34a1bd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c1544=_0x5786df(_0x34a1bd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1e94dc[_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34a1bd([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c1544=_0x5786df(_0x34a1bd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1727c1()):_0x34a1bd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34a1bd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34a1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x331028){return _0x34a1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d12b2(){const _0x4c1f6d=[_0x34a1bd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34a1bd([0x74,0x72,0x69,0x61,0x6c])][_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e94dc[_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x219da6/0x3e8:0xe10*_0x1bac73;return _0x1e94dc[_0x34a1bd([0x65,0x78,0x70])]<_0x4c1f6d;}function _0x3cef64(){const _0x55dfe7=_0x1e94dc[_0x34a1bd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x55dfe7&&(!!_0x55dfe7[_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a1bd([0x2a]))||!!_0x55dfe7[_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a1bd([0x55,0x50,0x4c,0x43])));}function _0x47e70d(){const _0x4a9e95=_0x1e94dc[_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a9e95||0x0==_0x4a9e95[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a0f76}=new URL(window[_0x34a1bd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a9e95[_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a0f76))return!0x0;const _0x4b9f04=_0x1a0f76[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])](_0x34a1bd([0x2e]));return _0x4a9e95[_0x34a1bd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x205e44=>_0x205e44[_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a1bd([0x2a])))[_0x34a1bd([0x6d,0x61,0x70])](_0x53b13d=>_0x53b13d[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])](_0x34a1bd([0x2e])))[_0x34a1bd([0x73,0x6f,0x6d,0x65])](_0x3184cd=>_0x4b9f04[_0x34a1bd([0x65,0x76,0x65,0x72,0x79])]((_0x1f7a35,_0x39f03e)=>_0x3184cd[_0x39f03e]===_0x1f7a35||_0x3184cd[_0x39f03e]===_0x34a1bd([0x2a])));}function _0x1727c1(){return _0x5c1544&&_0x2cc389?new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38b49c,_0x1bee57)=>{_0x5c1544[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x38b49c,_0x1bee57),_0x2cc389[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x5bf61d=>{_0x5bf61d!=_0x34a1bd([0x56,0x61,0x6c,0x69,0x64])&&_0x38b49c(_0x5bf61d);},_0x1bee57);}):_0x5c1544||_0x2cc389||_0x34a1bd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17fb7a(_0x5770b7,_0x2d3858){return new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44508d=>{if(_0x1a634a())return _0x44508d(_0x34a1bd([0x56,0x61,0x6c,0x69,0x64]));_0x2f04f6(),_0x47f288[_0x34a1bd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34a1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b3823=!0x1;const _0x41dd5a=_0x32241f();function _0x5ed845(_0x567649){return!!_0x567649&&(typeof _0x567649===_0x34a1bd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x567649===_0x34a1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x567649[_0x34a1bd([0x74,0x68,0x65,0x6e])]===_0x34a1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x567649[_0x34a1bd([0x63,0x61,0x74,0x63,0x68])]===_0x34a1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x494202(_0x14ed36){_0x5600f9(_0x14ed36)[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x47809c=>{if(!_0x47809c||_0x47809c[_0x34a1bd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34a1bd([0x6f,0x6b]))return _0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x407896(_0x177a33(_0x41dd5a+_0x2d3858))!=_0x47809c[_0x34a1bd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34a1bd([0x56,0x61,0x6c,0x69,0x64]);})[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x48a0ab=>(_0x372062(),_0x48a0ab),()=>{const _0x5166c2=_0x1d6716();return null==_0x5166c2?(_0x372062(),_0x34a1bd([0x56,0x61,0x6c,0x69,0x64])):_0x34a1bd(_0x219da6-_0x5166c2>(0x255adf58^_0x49ad5d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x44508d)[_0x34a1bd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x44508d(_0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x139391=0x160b5d8^_0x49ad5d;function _0x372062(){const _0xadfb65=_0x34a1bd([0x6c,0x6c,0x63,0x74,0x2d])+_0x407896(_0x177a33(_0x5770b7)),_0x21fbe0=_0x75e3f9(_0x407896(window[_0x34a1bd([0x4d,0x61,0x74,0x68])][_0x34a1bd([0x63,0x65,0x69,0x6c])](_0x219da6/_0x139391)));window[_0x34a1bd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34a1bd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xadfb65,_0x21fbe0);}function _0x1d6716(){const _0x7d9386=_0x34a1bd([0x6c,0x6c,0x63,0x74,0x2d])+_0x407896(_0x177a33(_0x5770b7)),_0x587609=window[_0x34a1bd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34a1bd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7d9386);return _0x587609?window[_0x34a1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x75e3f9(_0x587609),0x10)*_0x139391:null;}function _0x5600f9(_0x451e2f){return new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a6000,_0x4dce39)=>{_0x451e2f[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x1a6000,_0x4dce39),window[_0x34a1bd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4dce39,0x1578f98^_0x49ad5d);});}}_0x47f288[_0x34a1bd([0x6f,0x6e])](_0x34a1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a4065,_0x16dea4)=>{if(_0x16dea4[0x0]!=_0x5770b7)return _0x44508d(_0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16dea4[0x1]={..._0x16dea4[0x1],[_0x34a1bd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41dd5a};},{[_0x34a1bd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34a1bd([0x68,0x69,0x67,0x68])}),_0x47f288[_0x34a1bd([0x6f,0x6e])](_0x34a1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1de96e=>{_0x5ed845(_0x1de96e[_0x34a1bd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b3823=!0x0,_0x494202(_0x1de96e[_0x34a1bd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34a1bd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34a1bd([0x6c,0x6f,0x77])}),_0xbbf575[_0x34a1bd([0x74,0x68,0x65,0x6e])](()=>{_0x1b3823||_0x44508d(_0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a634a(){return _0x47f288[_0x34a1bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34a1bd([0x76,0x69,0x65,0x77])][_0x34a1bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34a1bd([0x61,0x75,0x74,0x6f]);}function _0x2f04f6(){_0x47f288[_0x34a1bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34a1bd([0x76,0x69,0x65,0x77])][_0x34a1bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34a1bd([0x61,0x75,0x74,0x6f]);}}function _0x5786df(_0x30518){const _0x766242=[new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x235944=>setTimeout(_0x235944,0x15f6594^_0x49ad5d)),_0xbbf575[_0x34a1bd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59dd04=>{let _0x2a5d24=0x0;_0x47f288[_0x34a1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x34a1bd([0x6f,0x6e])](_0x34a1bd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ac3d0,_0x18f8ef)=>{_0x18f8ef[0x0][_0x34a1bd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a5d24++,_0x2a5d24==(0x1565aa0^_0x49ad5d)&&(_0x59dd04(),_0x1ac3d0[_0x34a1bd([0x6f,0x66,0x66])]());});}))];return window[_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34a1bd([0x72,0x61,0x63,0x65])](_0x766242)[_0x34a1bd([0x74,0x68,0x65,0x6e])](()=>_0x30518);}async function _0x252fee(){await _0xbbf575,_0x47f288[_0x34a1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x34a1bd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30fed2,_0x47f288[_0x34a1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x34a1bd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30fed2,_0x47f288[_0x34a1bd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34a1bd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x149f2b(_0xca5c9f){const _0xa3e8c8=_0x237c67();_0x47f288[_0xa3e8c8]=_0x34a1bd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xca5c9f,_0xca5c9f!=_0x34a1bd([0x56,0x61,0x6c,0x69,0x64])&&_0x252fee();}function _0x237c67(){const _0x1b10f7=window[_0x34a1bd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34a1bd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34a1bd([0x6e,0x6f,0x77])]())[_0x34a1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34a1bd([0x2e]),'');let _0x2b695e=_0x34a1bd([0x7a]);for(let _0x5aee2b=0x0;_0x5aee2b<_0x1b10f7[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5aee2b+=0x2){let _0x2363b9=window[_0x34a1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b10f7[_0x34a1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5aee2b,_0x5aee2b+0x2));_0x2363b9>=_0x14c037[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2363b9-=_0x14c037[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b695e+=_0x14c037[_0x2363b9];}return _0x2b695e;}function _0x5d892a(){const _0x21874f=_0x1d1b3d[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])](_0x34a1bd([0x2e]));if(0x3!=_0x21874f[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b0672(_0x21874f[0x1]);function _0x1b0672(_0x2c902e){const _0x133a98=_0xc9379e(_0x2c902e);return _0x133a98&&_0x197b58()?_0x133a98:null;function _0x197b58(){const _0x2dae64=_0x133a98[_0x34a1bd([0x6a,0x74,0x69])],_0x2fed46=window[_0x34a1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dae64[_0x34a1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2dae64[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x556e70={..._0x133a98,[_0x34a1bd([0x6a,0x74,0x69])]:_0x2dae64[_0x34a1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2dae64[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x556e70[_0x34a1bd([0x76,0x63])],_0x177a33(_0x556e70)==_0x2fed46;}}}async function _0x911ef3(){let _0x3979e1=!0x0;try{const _0x2f0422=_0x1d1b3d[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])](_0x34a1bd([0x2e])),[_0xa4e670,_0x1f74c0,_0xa94bd3]=_0x2f0422;return _0x46dacf(_0xa4e670),await _0x32492e(_0xa4e670,_0x1f74c0,_0xa94bd3),_0x3979e1;}catch(_0x2fa79e){return!0x1;}function _0x46dacf(_0x250379){const _0x9a4501=_0xc9379e(_0x250379);_0x9a4501&&_0x9a4501[_0x34a1bd([0x61,0x6c,0x67])]==_0x34a1bd([0x45,0x53,0x32,0x35,0x36])||(_0x3979e1=!0x1);}async function _0x32492e(_0x171d62,_0x47b4d3,_0x2eb312){const _0x102ede=window[_0x34a1bd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34a1bd([0x66,0x72,0x6f,0x6d])](_0x2d7a47(_0x2eb312),_0x57681b=>_0x57681b[_0x34a1bd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f95e6=new window[(_0x34a1bd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34a1bd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x171d62+_0x34a1bd([0x2e])+_0x47b4d3),_0x5a93d1=window[_0x34a1bd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34a1bd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a93d1)return;const _0x416073=await _0x5a93d1[_0x34a1bd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34a1bd([0x6a,0x77,0x6b]),_0x450e96,{[_0x34a1bd([0x6e,0x61,0x6d,0x65])]:_0x34a1bd([0x45,0x43,0x44,0x53,0x41]),[_0x34a1bd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34a1bd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34a1bd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a93d1[_0x34a1bd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34a1bd([0x6e,0x61,0x6d,0x65])]:_0x34a1bd([0x45,0x43,0x44,0x53,0x41]),[_0x34a1bd([0x68,0x61,0x73,0x68])]:{[_0x34a1bd([0x6e,0x61,0x6d,0x65])]:_0x34a1bd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x416073,_0x102ede,_0x1f95e6)||(_0x3979e1=!0x1);}}function _0xc9379e(_0x5ae457){return _0x5ae457[_0x34a1bd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34a1bd([0x65,0x79]))?JSON[_0x34a1bd([0x70,0x61,0x72,0x73,0x65])](_0x2d7a47(_0x5ae457)):null;}function _0x2d7a47(_0x3f540f){return window[_0x34a1bd([0x61,0x74,0x6f,0x62])](_0x3f540f[_0x34a1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34a1bd([0x2b]))[_0x34a1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34a1bd([0x2f])));}function _0x177a33(_0x43b76c){let _0x3c71fb=0x1505;function _0x376f8f(_0x1da220){for(let _0x5da5b2=0x0;_0x5da5b2<_0x1da220[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5da5b2++){const _0x4582ef=_0x1da220[_0x34a1bd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5da5b2);_0x3c71fb=(_0x3c71fb<<0x5)+_0x3c71fb+_0x4582ef,_0x3c71fb&=_0x3c71fb;}}function _0x173903(_0x34bcb2){Array[_0x34a1bd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34bcb2)?_0x34bcb2[_0x34a1bd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x173903):_0x34bcb2&&typeof _0x34bcb2==_0x34a1bd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34a1bd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34bcb2)[_0x34a1bd([0x73,0x6f,0x72,0x74])]()[_0x34a1bd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5631d6,_0x57d82f])=>{_0x376f8f(_0x5631d6),_0x173903(_0x57d82f);}):_0x376f8f(window[_0x34a1bd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34bcb2));}return _0x173903(_0x43b76c),_0x3c71fb>>>0x0;}function _0x407896(_0x170c97){return _0x170c97[_0x34a1bd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34a1bd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34a1bd([0x30]));}function _0x75e3f9(_0x5d78a4){return _0x5d78a4[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34a1bd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34a1bd([0x6a,0x6f,0x69,0x6e])]('');}function _0x30fed2(){}function _0x34a1bd(_0x5f38bf){return _0x5f38bf['map'](_0x4be4d3=>String['fromCharCode'](_0x4be4d3))['join']('');}_0x149f2b(await _0x1782f1());}(this);}['_initSchema'](){const _0x5a8203=this['editor']['model']['schema'];_0x5a8203['isRegistered']('imageBlock')&&_0x5a8203['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5a8203['isRegistered']('imageInline')&&_0x5a8203['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x41314e=this['editor'];_0x41314e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x41314e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x589a6d=>_0x589a6d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1ee84f=_0x41314e['commands']['get']('replaceImageSource');_0x1ee84f&&this['listenTo'](_0x1ee84f,'cleanupImage',(_0x4ed1e1,[_0x7f8c6e,_0x4c0947])=>{_0x7f8c6e['removeAttribute']('uploadcareImageId',_0x4c0947);});}['_initConfig'](){const _0x2a1816=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2e7879=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5a5841(_0x1915e9['document'],'uc-config',{..._0x2a1816,'pubkey':_0x2e7879,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x52234c=>{if('closeMax'==_0x52234c)return'#uc-icon-arrow-down';},_0x1915e9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5a5841(_0x1915e9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1915e9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4c5156=this['editor']['commands']['get']('insertImage');_0x4c5156&&this['listenTo'](_0x4c5156,'execute',()=>{const _0xdcfff2=this['editor']['model']['document']['selection']['getSelectedElement']();_0xdcfff2&&_0xdcfff2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xdcfff2);});});const _0x25deed=this['editor']['commands']['get']('uploadcareImageReplace');_0x25deed&&this['listenTo'](_0x25deed,'execute',()=>{const _0x308db6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x308db6&&_0x308db6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x308db6);});});}}class u extends _0x23d547{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4de2fc){super(_0x4de2fc),_0x4de2fc['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2df8e7['defineComponents'](_0x2df8e7);}}class ta extends _0x1d33b5{constructor(_0x2b19f6){super(_0x2b19f6);const t=_0x2b19f6['t'],_0x3b9326=this['bindTemplate'],_0x5c0a2a=new _0x518971();_0x5c0a2a['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':[_0x5c0a2a,{'text':_0x3b9326['to']('imageUploadProgress',_0x576e32=>t('Loading\x20image...')+'\x20('+(_0x576e32||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x1d33b5{constructor(_0x109b04){super(_0x109b04);const t=_0x109b04['t'];this['set']('errorType',null);const _0x160216=new _0x1c1089(_0x109b04);_0x160216['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x160216['withText']=!0x0,_0x160216['class']='ck-button-action',_0x160216['on']('execute',()=>{this['fire']('retry');}),_0x160216['bind']('isVisible')['to'](this,'errorType',_0x32011b=>'NotFound'!==_0x32011b);const _0x236c04=new at();_0x236c04['content']=et,_0x236c04['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1d2372=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':[_0x236c04,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1d2372['to']('errorType',_0x2d36e1=>t('NotFound'!==_0x2d36e1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x160216]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x1d33b5{constructor(_0xe846bf,_0x26d2da){super(_0xe846bf);const _0x4bdaac=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x26d2da,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4bdaac['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x15163e,_0x4fa868,_0xfeb564){super(_0x15163e),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x15163e),this['_errorView']=new rt(_0x15163e),this['_editingView']=new tt(_0x15163e,_0xfeb564),this['_focusableView']=new _0x1d33b5(_0x15163e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4fa868),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'],_0x120917=>{this['_addUploadcareImageEditorListeners'](_0x120917);});}),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'](_0x3f83d9,_0xdf0f8a){const _0x3b9c6d='uc-cloud-image-editor',_0x4fa581=_0x3f83d9['querySelector'](_0x3b9c6d);if(_0x4fa581)return _0xdf0f8a(_0x4fa581);const _0x4d509b=new MutationObserver(_0x59a351=>{const _0x453cf2=_0x59a351['filter'](_0x5385f7=>_0x5385f7['target']===_0x3f83d9&&_0x5385f7['addedNodes']['length']>0x0&&_0x5385f7['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3b9c6d);_0x453cf2['length']&&(_0x4d509b['disconnect'](),_0xdf0f8a(_0x453cf2[0x0]['addedNodes'][0x0]));});_0x4d509b['observe'](_0x3f83d9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x282112){_0x282112['addEventListener']('apply',_0x524445=>{this['fire']('apply',{'imageSrc':_0x524445['detail']['cdnUrl']});}),_0x282112['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5e6b33(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x58e10f,_0x41719b,_0x55b01e){super(),this['_editor']=_0x58e10f,this['_dialog']=_0x41719b,this['_imageElement']=_0x55b01e,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 _0x2284b5=this['_imageElement'],_0x4ed301=_0x2284b5['getAttribute']('uploadcareImageId'),_0x5a64ab=_0x2284b5['getAttribute']('src');if(_0x4ed301)await this['_loadImageInfo'](_0x4ed301,_0x5a64ab);else{if(this['_imageCache']['has'](_0x5a64ab)){const _0x5dd163=this['_imageCache']['get'](_0x5a64ab);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5dd163['url'],this['imageDimension']=_0x5dd163['dimension'],this['imageId']=_0x5dd163['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5614de}=this['_editor'],t=_0x5614de['t'],_0x4ae467=new Z(_0x5614de,this['imageStatus'],this['_attributes']);_0x4ae467['bind']('status')['to'](this,'imageStatus'),_0x4ae467['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4ae467['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4ae467['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4ae467,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x19032a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4ae467,'position':_0x3bc20e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4ae467['focus']();},'onHide':()=>{_0x4ae467['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x255271=>!F(_0x255271,_0x4ae467['element'])}});}['_loadImageInfo'](_0x4186f5,_0x100c92){return C['getInfo'](_0x4186f5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3c83cb=>{const {width:_0x4d1bf5,height:_0x23adb9}=_0x3c83cb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x100c92,this['imageDimension']={'width':_0x4d1bf5,'height':_0x23adb9},this['imageId']=_0x4186f5;})['catch'](_0x7241df=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x7241df['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x42eb36,_0x284eb5){return this['_getImageAsFile'](_0x42eb36)['then'](_0x24291d=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x284eb5['signal'],'file':_0x24291d,'onProgress':_0x1d875e=>{_0x1d875e&&_0x1d875e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1d875e['value']));}}))['then'](_0x15423e=>{const {width:_0x4df4a2,height:_0x5bd06f}=_0x15423e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15423e['cdnUrl'],this['imageDimension']={'width':_0x4df4a2,'height':_0x5bd06f},this['imageId']=_0x15423e['uuid'],this['imageUploadProgress']=null;const _0x45146a=_0x42eb36['getAttribute']('src');this['_imageCache']['set'](_0x45146a,{'id':_0x15423e['uuid'],'url':_0x15423e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4be35a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4be35a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x486619,_0xf9b8a4){_0x486619['on']('apply',(_0x1eef57,_0x29f683)=>{this['_replaceImage'](_0xf9b8a4,_0x29f683['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x486619['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x486619['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4a80a2,_0x29c23d,_0x38875f){const _0x4e0905=this['_editor'],{width:_0x30389f,height:_0xa11368}=A(_0x29c23d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x50f1cf,imageSources:_0x46908a}=E(_0x29c23d,_0x30389f);_0x4e0905['model']['change'](_0x5d21ea=>{if('$graveyard'===_0x4a80a2['root']['rootName']){_0x4e0905['execute']('insertImage',{'imageType':_0x4a80a2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4a80a2['getAttributes']()),'uploadcareImageId':_0x38875f,'src':_0x50f1cf,'sources':_0x46908a,'width':_0x30389f,'height':_0xa11368}});const _0x4a7253=_0x4a80a2['getChildren']();_0x4a80a2=_0x4e0905['model']['document']['selection']['getSelectedElement']();for(const _0x1653ba of _0x4a7253)_0x5d21ea['append'](_0x5d21ea['cloneElement'](_0x1653ba),_0x4a80a2);}else _0x5d21ea['setSelection'](_0x4a80a2,'on'),_0x4e0905['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4a80a2['getAttributes']()),'uploadcareImageId':_0x38875f,'src':_0x50f1cf,'sources':_0x46908a,'width':_0x30389f,'height':_0xa11368},_0x4a80a2);_0x5d21ea['setSelection'](_0x4a80a2,'on');});}async['_getImageAsFile'](_0x535280){const _0x54ceaa=_0x1915e9['window'],_0x3b9d77=_0x1915e9['document']['location']['href'],_0xa6bc7a=new _0x54ceaa['URL'](_0x535280['getAttribute']('src'),_0x3b9d77);if('data:'===_0xa6bc7a['protocol']){const _0x200be4=_0xa6bc7a['href']['split'](','),_0x29d56f=_0x200be4[0x0]['match'](/:(.*?);/)[0x1],_0x32babe=_0x29d56f['split']('/')[0x1],_0x4fcde0=_0x54ceaa['atob'](_0x200be4[_0x200be4['length']-0x1]);let _0x427a8d=_0x4fcde0['length'];const _0x4dd380=new _0x54ceaa['Uint8Array'](_0x427a8d);for(;_0x427a8d--;)_0x4dd380[_0x427a8d]=_0x4fcde0['charCodeAt'](_0x427a8d);return new _0x54ceaa['File']([_0x4dd380],'image.'+_0x32babe,{'type':_0x29d56f});}const _0x3d9c9b=_0xa6bc7a['href']['split']('/'),_0x33f8c9=_0x3d9c9b[_0x3d9c9b['length']-0x1],_0x467c09=_0x33f8c9['split']('.')[0x1];return _0x54ceaa['fetch'](_0xa6bc7a['href'])['then'](_0x343f9d=>_0x343f9d['clone']()['blob']())['then'](_0x23563d=>new _0x54ceaa['File']([_0x23563d],_0x33f8c9,{'type':'image/'+_0x467c09}));}}class J extends _0x937566{['imageEditController'];static get['requires'](){return[_0xaba52e];}['_isEditable'];constructor(_0x1b93b5){super(_0x1b93b5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2b2c4b){const _0x43d4e4=V(_0x2b2c4b);return _0x4615f0=>!(!_0x4615f0||!_0x4615f0['is']('element','imageBlock')&&!_0x4615f0['is']('element','imageInline'))&&(!!_0x4615f0['hasAttribute']('uploadcareImageId')||!!_0x4615f0['hasAttribute']('src')&&_0x43d4e4(_0x4615f0['getAttribute']('src')));}(_0x1b93b5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2221ac=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2221ac);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2146fe=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2146fe&&(_0x2146fe['is']('element','imageBlock')||_0x2146fe['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0xaba52e),_0x2146fe),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x937566{['refresh'](){const _0x53b4f5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x53b4f5&&(_0x53b4f5['is']('element','imageBlock')||_0x53b4f5['is']('element','imageInline')));}['execute'](_0x2a11bf){const _0x3b8b24=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2aa109=>{_0x2aa109['setAttributes'](_0x2a11bf,_0x3b8b24),_0x2aa109['removeAttribute']('srcset',_0x3b8b24),_0x2aa109['removeAttribute']('sizes',_0x3b8b24);});}}class g extends _0x23d547{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x184f04,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b11ed}=this;_0x1b11ed['commands']['add']('uploadcareImageEdit',new J(_0x1b11ed)),_0x1b11ed['commands']['add']('uploadcareImageReplace',new O(_0x1b11ed));}}class j extends _0x23d547{['_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 _0x672693=this['editor'];_0x672693['ui']['componentFactory']['add']('uploadcareImageEdit',_0x37d442=>{const _0x1561c7=_0x672693['commands']['get']('uploadcareImageEdit'),_0x3fd56c=new _0x1c1089(_0x37d442),t=_0x37d442['t'];return _0x3fd56c['set']({'icon':_0x19032a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3fd56c['bind']('isEnabled')['to'](_0x1561c7),_0x3fd56c['bind']('isOn')['to'](_0x1561c7,'isActive'),this['listenTo'](_0x3fd56c,'execute',()=>{_0x672693['execute']('uploadcareImageEdit'),_0x672693['editing']['view']['focus']();}),_0x3fd56c;}),this['_initConfig']();}['_initConfig'](){const _0x34c178=_0x5a5841(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x34c178),this['listenTo'](this['editor'],'destroy',()=>{_0x34c178['remove']();});}}class P extends _0x23d547{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x1afcaa,Command as _0x293780}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1d187b,IconGooglePhotos as _0xe99b95,IconGoogleDrive as _0xb8f88a,IconFacebook as _0x528cc6,IconDropbox as _0x492ecc,IconUploadcareLink as _0x46e4d6,IconUploadcareImageUpload as _0x30a058,IconError as et,IconUploadcareImageEdit as _0xae4699}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x319b92,MenuBarMenuListItemButtonView as _0x45d10d,View as _0x261814,FocusCycler as _0x5ee1ba,Dialog as _0x807516,DialogViewPosition as _0x40ea78,SpinnerView as _0x11cc85,IconView as at,Notification as _0x4445ac}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5042df,DomEmitterMixin as _0x317630,global as _0x257f80,getAncestors as _0x5ad48d,ObservableMixin as _0x182ab9,createElement as _0x8af0cc,uid as _0x3194d3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5b4a29}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xe9bda0,info as _0x476863}from'@uploadcare/upload-client';import*as _0x50f66b from'@uploadcare/file-uploader';var o=function(_0x4b1458){return _0x4b1458['Local']='local',_0x4b1458['URL']='url',_0x4b1458['Dropbox']='dropbox',_0x4b1458['GDrive']='gdrive',_0x4b1458['Facebook']='facebook',_0x4b1458['GPhotos']='gphotos',_0x4b1458['OneDrive']='onedrive',_0x4b1458;}({});function _(_0x3f4c71,_0x4cbd01,_0x2bcd01){const t=_0x3f4c71['t'],_0x2c80f1=_0x3f4c71['t'];switch(_0x4cbd01){case o['Local']:return{'text':_0x2c80f1('Insert'===_0x2bcd01?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2c80f1('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2bcd01?_0x2c80f1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2c80f1('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2bcd01?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2bcd01?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2bcd01?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2bcd01?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2bcd01?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4cbd01;}}class e extends _0x1afcaa{['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 _0x13a261=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2ece4a;for(const _0x16d7a8 in _0x13a261){const _0x5b8221=_0x16d7a8,_0x328e77=_0x13a261[_0x5b8221];if('uploadcareLicenseKeyValid'==_0x328e77||'uploadcareLicenseKeyInvalid'==_0x328e77||'uploadcareLicenseKeyExpired'==_0x328e77||'uploadcareLicenseKeyDomainLimit'==_0x328e77||'uploadcareLicenseKeyNotAllowed'==_0x328e77||'uploadcareLicenseKeyEvaluationLimit'==_0x328e77||'uploadcareLicenseKeyTrialLimit'==_0x328e77||'uploadcareLicenseKeyUsageLimit'==_0x328e77){delete _0x13a261[_0x5b8221],_0x2ece4a=_0x328e77,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2ece4a&&_0x13a261['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2ece4a&&_0x13a261['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2ece4a&&_0x13a261['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2ece4a&&_0x13a261['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2ece4a&&_0x13a261['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2ece4a&&_0x13a261['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2ece4a&&_0x13a261['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x349e5f}=this,_0x590366=_0x349e5f['commands']['get']('uploadcare');if(!_0x590366)return;const _0x4be206=this['_normalizeConfigSourceList'](_0x349e5f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x19691b,_0x479c68)=>{const _0x147868=this['_getIntegrationKey'](_0x479c68['type']);return _0x19691b[_0x147868]||(_0x19691b[_0x147868]=[]),_0x19691b[_0x147868]['push'](_0x479c68),_0x19691b;},{});_0x349e5f['plugins']['has']('ImageInsertUI')&&_0x349e5f['commands']['get']('uploadcare')&&Object['entries'](_0x4be206)['forEach'](([_0x51977e,_0xa4500d])=>{_0x349e5f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x51977e,'observable':()=>_0x590366,'buttonViewCreator':()=>this['_createToolbarButton'](_0xa4500d),'formViewCreator':()=>this['_createDropdownButtons'](_0xa4500d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xa4500d),'override':'assetManager'!==_0x51977e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2f1b19){const {locale:_0x27cbdf}=this['editor'];return _0x2f1b19['map'](_0x3e7843=>{const _0x1c5668=_(_0x27cbdf,_0x3e7843,'Insert');switch(_0x3e7843){case o['Local']:return{'icon':_0x30a058,'type':o['Local'],..._0x1c5668};case o['URL']:return{'icon':_0x46e4d6,'type':o['URL'],..._0x1c5668};case o['Dropbox']:return{'icon':_0x492ecc,'type':o['Dropbox'],..._0x1c5668};case o['Facebook']:return{'icon':_0x528cc6,'type':o['Facebook'],..._0x1c5668};case o['GDrive']:return{'icon':_0xb8f88a,'type':o['GDrive'],..._0x1c5668};case o['GPhotos']:return{'icon':_0xe99b95,'type':o['GPhotos'],..._0x1c5668};case o['OneDrive']:return{'icon':_0x1d187b,'type':o['OneDrive'],..._0x1c5668};}});}['_getIntegrationKey'](_0x3f1c0c){switch(_0x3f1c0c){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x39debe,_0x26b4d3){const _0x37ce67=this['editor'],_0x4a9c1c=new _0x39debe(_0x37ce67['locale']),_0x236db7=_0x37ce67['commands']['get']('uploadcare');return _0x4a9c1c['bind']('isEnabled')['to'](_0x236db7),_0x4a9c1c['on']('execute',()=>{_0x236db7['execute'](_0x26b4d3);}),_0x4a9c1c;}['_createToolbarButton'](_0x492c0e){const {locale:_0xeac9c1}=this['editor'],_0x34c856=this['editor']['plugins']['get']('ImageInsertUI'),_0x3d5870=_0x492c0e[0x0],_0x41a44e=this['_createButton'](_0x319b92,_0x3d5870['type']);return _0x41a44e['icon']=_0x3d5870['icon'],_0x41a44e['bind']('label')['to'](_0x34c856,'isImageSelected',_0x2dd184=>_(_0xeac9c1,_0x3d5870['type'],_0x2dd184?'Replace':'Insert')['text']),_0x41a44e['tooltip']=!0x0,_0x41a44e;}['_createDropdownButtons'](_0x2f0c51){const {locale:_0x5daf24}=this['editor'],_0x5cea0a=this['editor']['plugins']['get']('ImageInsertUI');return _0x2f0c51['map'](_0x49f17f=>{const _0x45ce4a=this['_createButton'](_0x319b92,_0x49f17f['type']);return _0x45ce4a['withText']=!0x0,_0x45ce4a['icon']=_0x49f17f['icon'],_0x45ce4a['bind']('label')['to'](_0x5cea0a,'isImageSelected',_0x28d5a4=>_(_0x5daf24,_0x49f17f['type'],_0x28d5a4?'Replace':'Insert')['text']),_0x45ce4a;});}['_createMenuBarButtons'](_0x3f8225){return _0x3f8225['map'](_0x2e3c86=>{const _0x33f2c1=this['_createButton'](_0x45d10d,_0x2e3c86['type']);return _0x33f2c1['icon']=_0x2e3c86['icon'],_0x33f2c1['label']=_0x2e3c86['shortText'],_0x33f2c1;});}}class q extends _0x261814{['focusTracker'];['focusCycler'];constructor(_0x204b44){super(_0x204b44),this['focusTracker']=new _0x5042df(),this['focusCycler']=new _0x5ee1ba({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x48d1d1){super(_0x48d1d1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x4dfa5c,_0x209359){const _0x1e87d0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4f8a0e=>_0x4f8a0e<=_0x209359)['map'](_0x4a95dc=>_0x4dfa5c['replace'](/\/$/,'')+'/-/resize/'+_0x4a95dc+'x/\x20'+_0x4a95dc+'w');return{'imageFallbackUrl':_0x4dfa5c,'imageSources':[{'srcset':_0x1e87d0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x209359+'px)\x20100vw,\x20'+_0x209359+'px','type':'image/webp'}]};}function A(_0x1d4679,_0x3a4772,_0x5e71b8){const _0x95790a=_0x1d4679['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x95790a?parseInt(_0x95790a[0x1],0xa):_0x3a4772,'height':_0x95790a?parseInt(_0x95790a[0x2],0xa):_0x5e71b8};}function m(_0x1d3c73,_0x26f32d){const _0x2e024f=Object['create'](_0x317630),_0x1465ff=_0x1d3c73['plugins']['get']('ImageUtils'),_0x4de204=_0x1d3c73['editing']['mapper']['toViewElement'](_0x26f32d),_0xbb0f9a=_0x1465ff['findViewImgElement'](_0x4de204),_0x16282a=_0x1d3c73['editing']['view']['domConverter']['viewToDom'](_0xbb0f9a),_0x3359d7=_0x26f32d['getAttribute']('width'),_0x9e573e=_0x26f32d['getAttribute']('height'),_0x378a32='image-processing';_0x1d3c73['editing']['view']['change'](_0x238c7f=>{_0x238c7f['addClass'](_0x378a32,_0x4de204),_0x238c7f['setStyle']('aspect-ratio',_0x3359d7+'/'+_0x9e573e,_0xbb0f9a);}),_0x2e024f['listenTo'](_0x16282a,'load',()=>{_0x2e024f['stopListening'](_0x16282a,'load'),_0x1d3c73['editing']['view']['change'](_0x1e515b=>{_0x1e515b['removeClass'](_0x378a32,_0x4de204),_0x1e515b['removeStyle']('aspect-ratio',_0xbb0f9a);});});}function V(_0x4684de){if(Array['isArray'](_0x4684de)){const _0xbd940=_0x4684de['map'](V);return _0x52efbe=>_0xbd940['some'](_0x3ac843=>_0x3ac843(_0x52efbe));}if('origin'==_0x4684de){const _0x472bf0=_0x257f80['window']['location']['origin'];return _0x45fde2=>new URL(_0x45fde2,_0x257f80['document']['baseURI'])['origin']==_0x472bf0;}return'function'==typeof _0x4684de?_0x4684de:_0x4684de instanceof RegExp?_0x3a331f=>!(!_0x3a331f['match'](_0x4684de)&&!_0x3a331f['replace'](/^https?:\/\//,'')['match'](_0x4684de)):()=>!0x1;}function F(_0x2dcf65,_0x4e6ead){return _0x5ad48d(_0x2dcf65['target'])['includes'](_0x4e6ead);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x182ab9(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4aeade,_0x5086ea,_0x24b137){super(),this['_editor']=_0x4aeade,this['_editing']=_0x5086ea,this['_dialog']=_0x4aeade['plugins']['get'](_0x807516),this['_api']=_0x5086ea['ctxElement']['getAPI'](),this['_type']=_0x24b137,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:_0x3161f6,model:_0x4109f6}=this['_editor'],_0xda706b=_0x4109f6['document']['selection']['getSelectedElement'](),_0xdea97f=_0xda706b&&(_0xda706b['is']('element','imageBlock')||_0xda706b['is']('element','imageInline'));this['_formView']=new S(_0x3161f6),this['_dialog']['show']({'id':'uploadCare','icon':_0x30a058,'title':_(_0x3161f6,this['_type'],_0xdea97f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x40ea78['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5df534=>!F(_0x5df534,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x40a303}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x51c79b=>{const _0x4ae7f3=_0x40a303['length'];for(const _0x1dedf3 of _0x40a303){const _0x3c6a1d=_0x1dedf3===_0x40a303[_0x4ae7f3-0x1],{cdnUrl:_0x4805ec,fileInfo:_0xc37acc}=_0x1dedf3;if(!_0x4805ec||!_0xc37acc)continue;const {width:_0x4f9ae5,height:_0x5ca921}=_0xc37acc['imageInfo'],_0x1a1e10=A(_0x4805ec,_0x4f9ae5,_0x5ca921),_0x853f89=E(_0x4805ec,_0x1a1e10['width']),_0x4e15f4={'id':_0xc37acc['uuid'],'type':'image','attributes':{'imageDimension':_0x1a1e10,..._0x853f89}};this['_insertAsset'](_0x4e15f4,_0x3c6a1d,_0x51c79b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3245a5=>{'idle'===_0x3245a5['detail']['status']&&!_0x3245a5['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x12de35,_0x4e160b,_0x1b71b2){const _0x1fb1d0=this['_editor']['model']['document']['selection'],_0x5eee84=_0x1fb1d0['getSelectedElement'](),_0x65aa75=!(!_0x5eee84||!_0x5eee84['is']('element','imageInline'));_0x1b71b2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x12de35,_0x65aa75),_0x4e160b||_0x1b71b2['setSelection'](_0x1fb1d0['getLastPosition']());}['_insertImage'](_0x528b22,_0x53797b){const _0x370b71=this['_editor'],{imageDimension:_0x2cbb9f,imageFallbackUrl:_0x275390,imageSources:_0x2af119}=_0x528b22['attributes'];_0x370b71['execute']('insertImage',{'imageType':_0x53797b?'imageInline':null,'source':{'uploadcareImageId':_0x528b22['id'],'src':_0x275390,'sources':_0x2af119,..._0x2cbb9f}});}}class n extends _0x293780{['_editing'];['_controller']=null;static get['requires'](){return[_0x807516,i];}constructor(_0x2d7571){super(_0x2d7571),this['_editing']=_0x2d7571['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x52231){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x52231);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x7fdee1,publicKey:_0x3a86e7,signal:_0x14b680,onProgress:_0xef3579}){return _0xe9bda0(_0x7fdee1,{'publicKey':_0x3a86e7,'store':'auto','signal':_0x14b680,'onProgress':_0xef3579});}static['getInfo'](_0x53b017,_0x2d946a){return _0x476863(_0x53b017,_0x2d946a);}}class p extends _0x1afcaa{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5b4a29,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x131fc1=this['editor'];if(!!!_0x131fc1['config']['get']('uploadcare'))return;_0x131fc1['plugins']['get'](_0x5b4a29)['createUploadAdapter']=_0x2ccbe6=>new x(_0x2ccbe6,_0x131fc1),_0x131fc1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1506e4,{imageElement:_0x50eba0,data:_0x43b57b})=>{_0x131fc1['model']['change'](_0x214cb2=>{_0x214cb2['setAttribute']('uploadcareImageId',_0x43b57b['uploadcareImageId'],_0x50eba0);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x6c9ebf,_0x124c2b){this['loader']=_0x6c9ebf,this['editor']=_0x124c2b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3cb289=this['editor']['config']['get']('uploadcare.pubkey'),_0x5ec1ad=await this['loader']['file'];return C['upload']({'file':_0x5ec1ad,'publicKey':_0x3cb289,'signal':this['controller']['signal'],'onProgress':_0x2389a7=>{_0x2389a7&&_0x2389a7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2389a7['value']);}})['then'](async _0x4783de=>{const {imageFallbackUrl:_0x3aa172,imageSources:_0x48a297}=E(_0x4783de['cdnUrl'],_0x4783de['imageInfo']['width']);return{'uploadcareImageId':_0x4783de['uuid'],'default':_0x3aa172,'sources':_0x48a297};})['catch'](()=>{const _0x3e4a44=t('Cannot\x20upload\x20file:')+('\x20'+_0x5ec1ad['name']+'.');return Promise['reject'](_0x3e4a44);});}['abort'](){this['controller']['abort']();}}class i extends _0x1afcaa{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x807516];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1bde94=this['editor'];_0x1bde94['commands']['add']('uploadcare',new n(_0x1bde94));}['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 _0x5beff1=_0x257f80['document']['querySelector']('input[uploadcare-file-input]');_0x5beff1&&_0x5beff1['remove']();}),async function(_0x2759d0){const _0x1f7ce3=_0x23015d([0x33,0x6f,0x65,0x36,0x6e,0x4f,0x41,0x38,0x54,0x52,0x61,0x58,0x49,0x6c,0x66,0x51,0x57,0x75,0x30,0x71,0x43,0x62,0x4d,0x72,0x42,0x76,0x56,0x70,0x6a,0x48,0x4c,0x35,0x6d,0x4e,0x50,0x46,0x78,0x44,0x73,0x39,0x32,0x4a,0x37,0x63,0x53,0x74,0x34,0x59,0x6b,0x5a,0x77,0x69,0x31,0x64,0x47,0x55,0x79,0x7a,0x45,0x67,0x68,0x4b]),_0x55d97a=0x1923124a,_0x250b41=0x19247792^_0x55d97a,_0x12e8fd=window[_0x23015d([0x44,0x61,0x74,0x65])][_0x23015d([0x6e,0x6f,0x77])](),_0x4c3189=_0x2759d0[_0x23015d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b128e=new window[(_0x23015d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x307b75=>{_0x4c3189[_0x23015d([0x6f,0x6e,0x63,0x65])](_0x23015d([0x72,0x65,0x61,0x64,0x79]),_0x307b75);}),_0x13b107={[_0x23015d([0x6b,0x74,0x79])]:_0x23015d([0x45,0x43]),[_0x23015d([0x75,0x73,0x65])]:_0x23015d([0x73,0x69,0x67]),[_0x23015d([0x63,0x72,0x76])]:_0x23015d([0x50,0x2d,0x32,0x35,0x36]),[_0x23015d([0x78])]:_0x23015d([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]),[_0x23015d([0x79])]:_0x23015d([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]),[_0x23015d([0x61,0x6c,0x67])]:_0x23015d([0x45,0x53,0x32,0x35,0x36])},_0x2b25fd=_0x4c3189[_0x23015d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23015d([0x67,0x65,0x74])](_0x23015d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2ab77b(){let _0x979dbe,_0x2b58f6=null,_0x5175a1=null;try{if(_0x2b25fd==_0x23015d([0x47,0x50,0x4c]))return _0x23015d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x979dbe=_0x1e2b9e(),!_0x979dbe)return _0x23015d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x979dbe[_0x23015d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5175a1=_0x2f5063(_0x979dbe[_0x23015d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x979dbe[_0x23015d([0x6a,0x74,0x69])])),await _0x13fb81()?_0x9b12da()?_0x31e2c3()?_0x23015d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a288d()?(_0x979dbe[_0x23015d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23015d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b58f6=_0x797deb(_0x23015d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x979dbe[_0x23015d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23015d([0x74,0x72,0x69,0x61,0x6c])&&(_0x2b58f6=_0x797deb(_0x23015d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a270e()):_0x23015d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23015d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23015d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x7e33fe){return _0x23015d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31e2c3(){const _0x5a3f21=[_0x23015d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23015d([0x74,0x72,0x69,0x61,0x6c])][_0x23015d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x979dbe[_0x23015d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12e8fd/0x3e8:0xe10*_0x250b41;return _0x979dbe[_0x23015d([0x65,0x78,0x70])]<_0x5a3f21;}function _0x9b12da(){const _0x49c471=_0x979dbe[_0x23015d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x49c471&&(!!_0x49c471[_0x23015d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23015d([0x2a]))||!!_0x49c471[_0x23015d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23015d([0x55,0x50,0x4c,0x43])));}function _0x3a288d(){const _0x17dcea=_0x979dbe[_0x23015d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x17dcea||0x0==_0x17dcea[_0x23015d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55d3b9}=new URL(window[_0x23015d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x17dcea[_0x23015d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55d3b9))return!0x0;const _0x1e5bee=_0x55d3b9[_0x23015d([0x73,0x70,0x6c,0x69,0x74])](_0x23015d([0x2e]));return _0x17dcea[_0x23015d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11600f=>_0x11600f[_0x23015d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23015d([0x2a])))[_0x23015d([0x6d,0x61,0x70])](_0x5a7aad=>_0x5a7aad[_0x23015d([0x73,0x70,0x6c,0x69,0x74])](_0x23015d([0x2e])))[_0x23015d([0x73,0x6f,0x6d,0x65])](_0x21506f=>_0x1e5bee[_0x23015d([0x65,0x76,0x65,0x72,0x79])]((_0x7cfd09,_0x1ee424)=>_0x21506f[_0x1ee424]===_0x7cfd09||_0x21506f[_0x1ee424]===_0x23015d([0x2a])));}function _0x5a270e(){return _0x2b58f6&&_0x5175a1?new window[(_0x23015d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e42ce,_0x44a3ea)=>{_0x2b58f6[_0x23015d([0x74,0x68,0x65,0x6e])](_0x5e42ce,_0x44a3ea),_0x5175a1[_0x23015d([0x74,0x68,0x65,0x6e])](_0x518978=>{_0x518978!=_0x23015d([0x56,0x61,0x6c,0x69,0x64])&&_0x5e42ce(_0x518978);},_0x44a3ea);}):_0x2b58f6||_0x5175a1||_0x23015d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f5063(_0x1d8ee1,_0x52d2fc){return new window[(_0x23015d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x315d1f=>{if(_0x256b65())return _0x315d1f(_0x23015d([0x56,0x61,0x6c,0x69,0x64]));_0x53d4da(),_0x4c3189[_0x23015d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23015d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd4344d=!0x1;const _0x479c9c=_0x3194d3();function _0x4afc34(_0x801163){return!!_0x801163&&(typeof _0x801163===_0x23015d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x801163===_0x23015d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x801163[_0x23015d([0x74,0x68,0x65,0x6e])]===_0x23015d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x801163[_0x23015d([0x63,0x61,0x74,0x63,0x68])]===_0x23015d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x465b0a(_0x29fcf){_0x471c1b(_0x29fcf)[_0x23015d([0x74,0x68,0x65,0x6e])](_0x55664f=>{if(!_0x55664f||_0x55664f[_0x23015d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23015d([0x6f,0x6b]))return _0x23015d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3eb12f(_0x374a1a(_0x479c9c+_0x52d2fc))!=_0x55664f[_0x23015d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23015d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23015d([0x56,0x61,0x6c,0x69,0x64]);})[_0x23015d([0x74,0x68,0x65,0x6e])](_0x4b559d=>(_0x4ca437(),_0x4b559d),()=>{const _0x2d70f5=_0x2332af();return null==_0x2d70f5?(_0x4ca437(),_0x23015d([0x56,0x61,0x6c,0x69,0x64])):_0x23015d(_0x12e8fd-_0x2d70f5>(0x3d2f964a^_0x55d97a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23015d([0x74,0x68,0x65,0x6e])](_0x315d1f)[_0x23015d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x315d1f(_0x23015d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x340868=0x1915fcca^_0x55d97a;function _0x4ca437(){const _0x5cc120=_0x23015d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3eb12f(_0x374a1a(_0x1d8ee1)),_0x326854=_0x2922b3(_0x3eb12f(window[_0x23015d([0x4d,0x61,0x74,0x68])][_0x23015d([0x63,0x65,0x69,0x6c])](_0x12e8fd/_0x340868)));window[_0x23015d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23015d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cc120,_0x326854);}function _0x2332af(){const _0x32f2e0=_0x23015d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3eb12f(_0x374a1a(_0x1d8ee1)),_0x5f9fe7=window[_0x23015d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23015d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32f2e0);return _0x5f9fe7?window[_0x23015d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2922b3(_0x5f9fe7),0x10)*_0x340868:null;}function _0x471c1b(_0x47d95e){return new window[(_0x23015d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xecafb2,_0x3e634f)=>{_0x47d95e[_0x23015d([0x74,0x68,0x65,0x6e])](_0xecafb2,_0x3e634f),window[_0x23015d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e634f,0x1922c68a^_0x55d97a);});}}_0x4c3189[_0x23015d([0x6f,0x6e])](_0x23015d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36899c,_0x2b4c98)=>{if(_0x2b4c98[0x0]!=_0x1d8ee1)return _0x315d1f(_0x23015d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b4c98[0x1]={..._0x2b4c98[0x1],[_0x23015d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x479c9c};},{[_0x23015d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23015d([0x68,0x69,0x67,0x68])}),_0x4c3189[_0x23015d([0x6f,0x6e])](_0x23015d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37f3a0=>{_0x4afc34(_0x37f3a0[_0x23015d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd4344d=!0x0,_0x465b0a(_0x37f3a0[_0x23015d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23015d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23015d([0x6c,0x6f,0x77])}),_0x4b128e[_0x23015d([0x74,0x68,0x65,0x6e])](()=>{_0xd4344d||_0x315d1f(_0x23015d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x256b65(){return _0x4c3189[_0x23015d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23015d([0x76,0x69,0x65,0x77])][_0x23015d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23015d([0x61,0x75,0x74,0x6f]);}function _0x53d4da(){_0x4c3189[_0x23015d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23015d([0x76,0x69,0x65,0x77])][_0x23015d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23015d([0x61,0x75,0x74,0x6f]);}}function _0x797deb(_0x57e46f){const _0xe7fe85=[new window[(_0x23015d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x296a5a=>setTimeout(_0x296a5a,0x192a2c86^_0x55d97a)),_0x4b128e[_0x23015d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23015d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f2cd2=>{let _0x2395a0=0x0;_0x4c3189[_0x23015d([0x6d,0x6f,0x64,0x65,0x6c])][_0x23015d([0x6f,0x6e])](_0x23015d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x59e888,_0x3cd02c)=>{_0x3cd02c[0x0][_0x23015d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2395a0++,_0x2395a0==(0x192313b2^_0x55d97a)&&(_0x5f2cd2(),_0x59e888[_0x23015d([0x6f,0x66,0x66])]());});}))];return window[_0x23015d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23015d([0x72,0x61,0x63,0x65])](_0xe7fe85)[_0x23015d([0x74,0x68,0x65,0x6e])](()=>_0x57e46f);}async function _0x444065(){await _0x4b128e,_0x4c3189[_0x23015d([0x6d,0x6f,0x64,0x65,0x6c])][_0x23015d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x177aec,_0x4c3189[_0x23015d([0x6d,0x6f,0x64,0x65,0x6c])][_0x23015d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x177aec,_0x4c3189[_0x23015d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23015d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x110c08(_0x240f3d){const _0x35069a=_0x515e6b();_0x4c3189[_0x35069a]=_0x23015d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x240f3d,_0x240f3d!=_0x23015d([0x56,0x61,0x6c,0x69,0x64])&&_0x444065();}function _0x515e6b(){const _0x1cfd1b=window[_0x23015d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23015d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23015d([0x6e,0x6f,0x77])]())[_0x23015d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23015d([0x2e]),'');let _0x33b517=_0x23015d([0x6f]);for(let _0xdd7d2e=0x0;_0xdd7d2e<_0x1cfd1b[_0x23015d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdd7d2e+=0x2){let _0x5c5320=window[_0x23015d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cfd1b[_0x23015d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdd7d2e,_0xdd7d2e+0x2));_0x5c5320>=_0x1f7ce3[_0x23015d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c5320-=_0x1f7ce3[_0x23015d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x33b517+=_0x1f7ce3[_0x5c5320];}return _0x33b517;}function _0x1e2b9e(){const _0x3ad50c=_0x2b25fd[_0x23015d([0x73,0x70,0x6c,0x69,0x74])](_0x23015d([0x2e]));if(0x3!=_0x3ad50c[_0x23015d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c4f99(_0x3ad50c[0x1]);function _0x4c4f99(_0x5dd03c){const _0x208c32=_0x3d2dac(_0x5dd03c);return _0x208c32&&_0x453982()?_0x208c32:null;function _0x453982(){const _0x44d6a2=_0x208c32[_0x23015d([0x6a,0x74,0x69])],_0x1693de=window[_0x23015d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44d6a2[_0x23015d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44d6a2[_0x23015d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x480036={..._0x208c32,[_0x23015d([0x6a,0x74,0x69])]:_0x44d6a2[_0x23015d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44d6a2[_0x23015d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x480036[_0x23015d([0x76,0x63])],_0x374a1a(_0x480036)==_0x1693de;}}}async function _0x13fb81(){let _0x2930ea=!0x0;try{const _0x3adce5=_0x2b25fd[_0x23015d([0x73,0x70,0x6c,0x69,0x74])](_0x23015d([0x2e])),[_0x39881a,_0xc364dc,_0x37d1bb]=_0x3adce5;return _0x2b29bc(_0x39881a),await _0xdeec2(_0x39881a,_0xc364dc,_0x37d1bb),_0x2930ea;}catch(_0x246e9a){return!0x1;}function _0x2b29bc(_0x2f1827){const _0x411ed5=_0x3d2dac(_0x2f1827);_0x411ed5&&_0x411ed5[_0x23015d([0x61,0x6c,0x67])]==_0x23015d([0x45,0x53,0x32,0x35,0x36])||(_0x2930ea=!0x1);}async function _0xdeec2(_0x45c534,_0x3c18c2,_0x478633){const _0x40f7a7=window[_0x23015d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23015d([0x66,0x72,0x6f,0x6d])](_0x4f427c(_0x478633),_0x1dbdb3=>_0x1dbdb3[_0x23015d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x490729=new window[(_0x23015d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23015d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45c534+_0x23015d([0x2e])+_0x3c18c2),_0x391bad=window[_0x23015d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23015d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x391bad)return;const _0x4fc748=await _0x391bad[_0x23015d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23015d([0x6a,0x77,0x6b]),_0x13b107,{[_0x23015d([0x6e,0x61,0x6d,0x65])]:_0x23015d([0x45,0x43,0x44,0x53,0x41]),[_0x23015d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23015d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23015d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x391bad[_0x23015d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23015d([0x6e,0x61,0x6d,0x65])]:_0x23015d([0x45,0x43,0x44,0x53,0x41]),[_0x23015d([0x68,0x61,0x73,0x68])]:{[_0x23015d([0x6e,0x61,0x6d,0x65])]:_0x23015d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fc748,_0x40f7a7,_0x490729)||(_0x2930ea=!0x1);}}function _0x3d2dac(_0x2d2cf4){return _0x2d2cf4[_0x23015d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23015d([0x65,0x79]))?JSON[_0x23015d([0x70,0x61,0x72,0x73,0x65])](_0x4f427c(_0x2d2cf4)):null;}function _0x4f427c(_0x5d28c5){return window[_0x23015d([0x61,0x74,0x6f,0x62])](_0x5d28c5[_0x23015d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23015d([0x2b]))[_0x23015d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23015d([0x2f])));}function _0x374a1a(_0x1a1cf6){let _0x302416=0x1505;function _0x4aa95f(_0x29601c){for(let _0x3d3ce=0x0;_0x3d3ce<_0x29601c[_0x23015d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d3ce++){const _0x11a768=_0x29601c[_0x23015d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d3ce);_0x302416=(_0x302416<<0x5)+_0x302416+_0x11a768,_0x302416&=_0x302416;}}function _0x5b3ea8(_0x4edf17){Array[_0x23015d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4edf17)?_0x4edf17[_0x23015d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b3ea8):_0x4edf17&&typeof _0x4edf17==_0x23015d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23015d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4edf17)[_0x23015d([0x73,0x6f,0x72,0x74])]()[_0x23015d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x502f33,_0x6d4454])=>{_0x4aa95f(_0x502f33),_0x5b3ea8(_0x6d4454);}):_0x4aa95f(window[_0x23015d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4edf17));}return _0x5b3ea8(_0x1a1cf6),_0x302416>>>0x0;}function _0x3eb12f(_0x3bf577){return _0x3bf577[_0x23015d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23015d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23015d([0x30]));}function _0x2922b3(_0x345973){return _0x345973[_0x23015d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23015d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23015d([0x6a,0x6f,0x69,0x6e])]('');}function _0x177aec(){}function _0x23015d(_0x523052){return _0x523052['map'](_0x48b198=>String['fromCharCode'](_0x48b198))['join']('');}_0x110c08(await _0x2ab77b());}(this);}['_initSchema'](){const _0x517d67=this['editor']['model']['schema'];_0x517d67['isRegistered']('imageBlock')&&_0x517d67['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x517d67['isRegistered']('imageInline')&&_0x517d67['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1723ea=this['editor'];_0x1723ea['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1723ea['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4dc37c=>_0x4dc37c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1f1708=_0x1723ea['commands']['get']('replaceImageSource');_0x1f1708&&this['listenTo'](_0x1f1708,'cleanupImage',(_0x17ca4a,[_0x2c3c49,_0x221370])=>{_0x2c3c49['removeAttribute']('uploadcareImageId',_0x221370);});}['_initConfig'](){const _0x5cd333=this['editor']['config']['get']('uploadcare.uploader')||{},_0xccb1e4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x8af0cc(_0x257f80['document'],'uc-config',{..._0x5cd333,'pubkey':_0xccb1e4,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x155cec=>{if('closeMax'==_0x155cec)return'#uc-icon-arrow-down';},_0x257f80['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x8af0cc(_0x257f80['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x257f80['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xa10429=this['editor']['commands']['get']('insertImage');_0xa10429&&this['listenTo'](_0xa10429,'execute',()=>{const _0x12eb1c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x12eb1c&&_0x12eb1c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x12eb1c);});});const _0x351bc0=this['editor']['commands']['get']('uploadcareImageReplace');_0x351bc0&&this['listenTo'](_0x351bc0,'execute',()=>{const _0x1632ac=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1632ac&&_0x1632ac['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1632ac);});});}}class u extends _0x1afcaa{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57434c){super(_0x57434c),_0x57434c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x50f66b['defineComponents'](_0x50f66b);}}class ta extends _0x261814{constructor(_0x23d80e){super(_0x23d80e);const t=_0x23d80e['t'],_0x4a5fa0=this['bindTemplate'],_0x57e88d=new _0x11cc85();_0x57e88d['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':[_0x57e88d,{'text':_0x4a5fa0['to']('imageUploadProgress',_0x5c0f9d=>t('Loading\x20image...')+'\x20('+(_0x5c0f9d||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x261814{constructor(_0x3e6aca){super(_0x3e6aca);const t=_0x3e6aca['t'];this['set']('errorType',null);const _0x6548b8=new _0x319b92(_0x3e6aca);_0x6548b8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x6548b8['withText']=!0x0,_0x6548b8['class']='ck-button-action',_0x6548b8['on']('execute',()=>{this['fire']('retry');}),_0x6548b8['bind']('isVisible')['to'](this,'errorType',_0x3c9465=>'NotFound'!==_0x3c9465);const _0x254c5c=new at();_0x254c5c['content']=et,_0x254c5c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1b57d0=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':[_0x254c5c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1b57d0['to']('errorType',_0x9c2281=>t('NotFound'!==_0x9c2281?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x6548b8]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x261814{constructor(_0x4687b9,_0x483c3c){super(_0x4687b9);const _0x59cf3c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x483c3c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x59cf3c['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x243efa,_0x35f0cf,_0x10f525){super(_0x243efa),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x243efa),this['_errorView']=new rt(_0x243efa),this['_editingView']=new tt(_0x243efa,_0x10f525),this['_focusableView']=new _0x261814(_0x243efa),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x35f0cf),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'],_0x24ea2c=>{this['_addUploadcareImageEditorListeners'](_0x24ea2c);});}),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'](_0x14bdad,_0x5b73b6){const _0x54e7ab='uc-cloud-image-editor',_0x51920a=_0x14bdad['querySelector'](_0x54e7ab);if(_0x51920a)return _0x5b73b6(_0x51920a);const _0x153ae5=new MutationObserver(_0x225758=>{const _0x182aad=_0x225758['filter'](_0x316bd9=>_0x316bd9['target']===_0x14bdad&&_0x316bd9['addedNodes']['length']>0x0&&_0x316bd9['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x54e7ab);_0x182aad['length']&&(_0x153ae5['disconnect'](),_0x5b73b6(_0x182aad[0x0]['addedNodes'][0x0]));});_0x153ae5['observe'](_0x14bdad,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5c2890){_0x5c2890['addEventListener']('apply',_0x32340c=>{this['fire']('apply',{'imageSrc':_0x32340c['detail']['cdnUrl']});}),_0x5c2890['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x182ab9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x43cf1d,_0x198d0f,_0x8784b9){super(),this['_editor']=_0x43cf1d,this['_dialog']=_0x198d0f,this['_imageElement']=_0x8784b9,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 _0x239b8d=this['_imageElement'],_0x21e49c=_0x239b8d['getAttribute']('uploadcareImageId'),_0x49d35e=_0x239b8d['getAttribute']('src');if(_0x21e49c)await this['_loadImageInfo'](_0x21e49c,_0x49d35e);else{if(this['_imageCache']['has'](_0x49d35e)){const _0x2d2c1f=this['_imageCache']['get'](_0x49d35e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d2c1f['url'],this['imageDimension']=_0x2d2c1f['dimension'],this['imageId']=_0x2d2c1f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x422389}=this['_editor'],t=_0x422389['t'],_0x5280e7=new Z(_0x422389,this['imageStatus'],this['_attributes']);_0x5280e7['bind']('status')['to'](this,'imageStatus'),_0x5280e7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5280e7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5280e7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5280e7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xae4699,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5280e7,'position':_0x40ea78['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5280e7['focus']();},'onHide':()=>{_0x5280e7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x502e05=>!F(_0x502e05,_0x5280e7['element'])}});}['_loadImageInfo'](_0x2ae1ad,_0x53aaed){return C['getInfo'](_0x2ae1ad,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xc5d33e=>{const {width:_0x49786a,height:_0x36d845}=_0xc5d33e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x53aaed,this['imageDimension']={'width':_0x49786a,'height':_0x36d845},this['imageId']=_0x2ae1ad;})['catch'](_0x29a264=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x29a264['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x16c843,_0x5782d4){return this['_getImageAsFile'](_0x16c843)['then'](_0x343db3=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5782d4['signal'],'file':_0x343db3,'onProgress':_0x45776e=>{_0x45776e&&_0x45776e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x45776e['value']));}}))['then'](_0x4b3c68=>{const {width:_0x32ace4,height:_0x504f66}=_0x4b3c68['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4b3c68['cdnUrl'],this['imageDimension']={'width':_0x32ace4,'height':_0x504f66},this['imageId']=_0x4b3c68['uuid'],this['imageUploadProgress']=null;const _0x5315b0=_0x16c843['getAttribute']('src');this['_imageCache']['set'](_0x5315b0,{'id':_0x4b3c68['uuid'],'url':_0x4b3c68['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4bae56=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4bae56['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x30e4fc,_0x55a112){_0x30e4fc['on']('apply',(_0x183ed4,_0x560c31)=>{this['_replaceImage'](_0x55a112,_0x560c31['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x30e4fc['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x30e4fc['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x8907b6,_0x2bd85a,_0x3676a6){const _0x4cf032=this['_editor'],{width:_0x20e6be,height:_0x231bf3}=A(_0x2bd85a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2ffd55,imageSources:_0x3a17e1}=E(_0x2bd85a,_0x20e6be);_0x4cf032['model']['change'](_0xfd9867=>{if('$graveyard'===_0x8907b6['root']['rootName']){_0x4cf032['execute']('insertImage',{'imageType':_0x8907b6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x8907b6['getAttributes']()),'uploadcareImageId':_0x3676a6,'src':_0x2ffd55,'sources':_0x3a17e1,'width':_0x20e6be,'height':_0x231bf3}});const _0x6568fd=_0x8907b6['getChildren']();_0x8907b6=_0x4cf032['model']['document']['selection']['getSelectedElement']();for(const _0x48b40e of _0x6568fd)_0xfd9867['append'](_0xfd9867['cloneElement'](_0x48b40e),_0x8907b6);}else _0xfd9867['setSelection'](_0x8907b6,'on'),_0x4cf032['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x8907b6['getAttributes']()),'uploadcareImageId':_0x3676a6,'src':_0x2ffd55,'sources':_0x3a17e1,'width':_0x20e6be,'height':_0x231bf3},_0x8907b6);_0xfd9867['setSelection'](_0x8907b6,'on');});}async['_getImageAsFile'](_0x1db575){const _0x4ec497=_0x257f80['window'],_0x409d9b=_0x257f80['document']['location']['href'],_0x14e42e=new _0x4ec497['URL'](_0x1db575['getAttribute']('src'),_0x409d9b);if('data:'===_0x14e42e['protocol']){const _0x3dfc88=_0x14e42e['href']['split'](','),_0x2a04b2=_0x3dfc88[0x0]['match'](/:(.*?);/)[0x1],_0x2af052=_0x2a04b2['split']('/')[0x1],_0x423f73=_0x4ec497['atob'](_0x3dfc88[_0x3dfc88['length']-0x1]);let _0xe9d573=_0x423f73['length'];const _0x490435=new _0x4ec497['Uint8Array'](_0xe9d573);for(;_0xe9d573--;)_0x490435[_0xe9d573]=_0x423f73['charCodeAt'](_0xe9d573);return new _0x4ec497['File']([_0x490435],'image.'+_0x2af052,{'type':_0x2a04b2});}const _0x4a43aa=_0x14e42e['href']['split']('/'),_0x50f2b0=_0x4a43aa[_0x4a43aa['length']-0x1],_0x407cc6=_0x50f2b0['split']('.')[0x1];return _0x4ec497['fetch'](_0x14e42e['href'])['then'](_0x130f67=>_0x130f67['clone']()['blob']())['then'](_0x28a9c5=>new _0x4ec497['File']([_0x28a9c5],_0x50f2b0,{'type':'image/'+_0x407cc6}));}}class J extends _0x293780{['imageEditController'];static get['requires'](){return[_0x807516];}['_isEditable'];constructor(_0x5d800b){super(_0x5d800b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x45040d){const _0x5a8bbe=V(_0x45040d);return _0x432a18=>!(!_0x432a18||!_0x432a18['is']('element','imageBlock')&&!_0x432a18['is']('element','imageInline'))&&(!!_0x432a18['hasAttribute']('uploadcareImageId')||!!_0x432a18['hasAttribute']('src')&&_0x5a8bbe(_0x432a18['getAttribute']('src')));}(_0x5d800b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x38b7d5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x38b7d5);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5e8e73=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e8e73&&(_0x5e8e73['is']('element','imageBlock')||_0x5e8e73['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x807516),_0x5e8e73),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x293780{['refresh'](){const _0x210a9e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x210a9e&&(_0x210a9e['is']('element','imageBlock')||_0x210a9e['is']('element','imageInline')));}['execute'](_0x18addb){const _0x607849=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x237ac4=>{_0x237ac4['setAttributes'](_0x18addb,_0x607849),_0x237ac4['removeAttribute']('srcset',_0x607849),_0x237ac4['removeAttribute']('sizes',_0x607849);});}}class g extends _0x1afcaa{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x4445ac,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2ec3ee}=this;_0x2ec3ee['commands']['add']('uploadcareImageEdit',new J(_0x2ec3ee)),_0x2ec3ee['commands']['add']('uploadcareImageReplace',new O(_0x2ec3ee));}}class j extends _0x1afcaa{['_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 _0x1e2073=this['editor'];_0x1e2073['ui']['componentFactory']['add']('uploadcareImageEdit',_0x429dc6=>{const _0x31831f=_0x1e2073['commands']['get']('uploadcareImageEdit'),_0x4fee5d=new _0x319b92(_0x429dc6),t=_0x429dc6['t'];return _0x4fee5d['set']({'icon':_0xae4699,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4fee5d['bind']('isEnabled')['to'](_0x31831f),_0x4fee5d['bind']('isOn')['to'](_0x31831f,'isActive'),this['listenTo'](_0x4fee5d,'execute',()=>{_0x1e2073['execute']('uploadcareImageEdit'),_0x1e2073['editing']['view']['focus']();}),_0x4fee5d;}),this['_initConfig']();}['_initConfig'](){const _0x5171b8=_0x8af0cc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5171b8),this['listenTo'](this['editor'],'destroy',()=>{_0x5171b8['remove']();});}}class P extends _0x1afcaa{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x45b761=>0x1!=_0x45b761}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x527e28=>{const {af:{dictionary:_0x1a33e3,getPluralForm:_0x59e9d1}}={'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':_0x22abb1=>0x1!=_0x22abb1}};_0x527e28['af']||={'dictionary':{},'getPluralForm':null},_0x527e28['af']['dictionary']=Object['assign'](_0x527e28['af']['dictionary'],_0x1a33e3),_0x527e28['af']['getPluralForm']=_0x59e9d1;})(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':_0x391251=>0x0==_0x391251?0x0:0x1==_0x391251?0x1:0x2==_0x391251?0x2:_0x391251%0x64>=0x3&&_0x391251%0x64<=0xa?0x3:_0x391251%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1fa9ff=>{const {ar:{dictionary:_0x4386e9,getPluralForm:_0x8cd117}}={'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':_0x45472e=>0x0==_0x45472e?0x0:0x1==_0x45472e?0x1:0x2==_0x45472e?0x2:_0x45472e%0x64>=0x3&&_0x45472e%0x64<=0xa?0x3:_0x45472e%0x64>=0xb?0x4:0x5}};_0x1fa9ff['ar']||={'dictionary':{},'getPluralForm':null},_0x1fa9ff['ar']['dictionary']=Object['assign'](_0x1fa9ff['ar']['dictionary'],_0x4386e9),_0x1fa9ff['ar']['getPluralForm']=_0x8cd117;})(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':_0x1ae710=>0x1!=_0x1ae710}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x58f8f9=>{const {ast:{dictionary:_0x54ac63,getPluralForm:_0x547342}}={'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':_0x21790e=>0x1!=_0x21790e}};_0x58f8f9['ast']||={'dictionary':{},'getPluralForm':null},_0x58f8f9['ast']['dictionary']=Object['assign'](_0x58f8f9['ast']['dictionary'],_0x54ac63),_0x58f8f9['ast']['getPluralForm']=_0x547342;})(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':_0x5cb0b8=>0x1!=_0x5cb0b8}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4bd640=>{const {az:{dictionary:_0x10a13d,getPluralForm:_0x3ab934}}={'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':_0x540497=>0x1!=_0x540497}};_0x4bd640['az']||={'dictionary':{},'getPluralForm':null},_0x4bd640['az']['dictionary']=Object['assign'](_0x4bd640['az']['dictionary'],_0x10a13d),_0x4bd640['az']['getPluralForm']=_0x3ab934;})(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':_0x3549a5=>_0x3549a5%0xa==0x1&&_0x3549a5%0x64!=0xb?0x0:_0x3549a5%0xa>=0x2&&_0x3549a5%0xa<=0x4&&(_0x3549a5%0x64<0xa||_0x3549a5%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1bcbf5=>{const {be:{dictionary:_0x4f1b72,getPluralForm:_0x18c6db}}={'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':_0x34b3a9=>_0x34b3a9%0xa==0x1&&_0x34b3a9%0x64!=0xb?0x0:_0x34b3a9%0xa>=0x2&&_0x34b3a9%0xa<=0x4&&(_0x34b3a9%0x64<0xa||_0x34b3a9%0x64>=0x14)?0x1:0x2}};_0x1bcbf5['be']||={'dictionary':{},'getPluralForm':null},_0x1bcbf5['be']['dictionary']=Object['assign'](_0x1bcbf5['be']['dictionary'],_0x4f1b72),_0x1bcbf5['be']['getPluralForm']=_0x18c6db;})(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':_0xc2757=>0x1!=_0xc2757}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x376c65=>{const {bg:{dictionary:_0x556675,getPluralForm:_0x426689}}={'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':_0x1b761a=>0x1!=_0x1b761a}};_0x376c65['bg']||={'dictionary':{},'getPluralForm':null},_0x376c65['bg']['dictionary']=Object['assign'](_0x376c65['bg']['dictionary'],_0x556675),_0x376c65['bg']['getPluralForm']=_0x426689;})(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':_0x41a434=>0x1!=_0x41a434}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x567915=>{const {bn:{dictionary:_0x69371c,getPluralForm:_0x53ff74}}={'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':_0x40d765=>0x1!=_0x40d765}};_0x567915['bn']||={'dictionary':{},'getPluralForm':null},_0x567915['bn']['dictionary']=Object['assign'](_0x567915['bn']['dictionary'],_0x69371c),_0x567915['bn']['getPluralForm']=_0x53ff74;})(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':_0x1841f4=>_0x1841f4%0xa==0x1&&_0x1841f4%0x64!=0xb?0x0:_0x1841f4%0xa>=0x2&&_0x1841f4%0xa<=0x4&&(_0x1841f4%0x64<0xa||_0x1841f4%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x11c4db=>{const {bs:{dictionary:_0x37a585,getPluralForm:_0x2f1535}}={'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':_0x203b31=>_0x203b31%0xa==0x1&&_0x203b31%0x64!=0xb?0x0:_0x203b31%0xa>=0x2&&_0x203b31%0xa<=0x4&&(_0x203b31%0x64<0xa||_0x203b31%0x64>=0x14)?0x1:0x2}};_0x11c4db['bs']||={'dictionary':{},'getPluralForm':null},_0x11c4db['bs']['dictionary']=Object['assign'](_0x11c4db['bs']['dictionary'],_0x37a585),_0x11c4db['bs']['getPluralForm']=_0x2f1535;})(window['CKEDITOR_TRANSLATIONS']||={});
|