@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250702.0 → 0.0.0-nightly-20250703.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 _0x4e6217,Command as _0x5619ad}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3d48fd,IconGooglePhotos as _0x16d599,IconGoogleDrive as _0x50d3e2,IconFacebook as _0x68c77f,IconDropbox as _0x148e70,IconUploadcareLink as _0x13f745,IconUploadcareImageUpload as _0x4bcccc,IconError as _0xf70374,IconUploadcareImageEdit as _0x3019c8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5b5bb5,MenuBarMenuListItemButtonView as _0x47b47f,View as _0xb1ee2,FocusCycler as _0x5628b1,Dialog as _0x5ddd06,DialogViewPosition as _0x22dbcd,SpinnerView as _0xa81471,IconView as _0x4e7501,Notification as _0x4538f9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x49803c,DomEmitterMixin as _0x1d637f,global as _0x27b927,getAncestors as _0x44edd1,ObservableMixin as _0xe7cd87,uid as _0x567165,createElement as _0x1b1f0d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x206642}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x339395,info as _0x18465f}from'@uploadcare/upload-client';import*as _0x358c79 from'@uploadcare/file-uploader';var i=function(_0x1d145c){return _0x1d145c['Local']='local',_0x1d145c['URL']='url',_0x1d145c['Dropbox']='dropbox',_0x1d145c['GDrive']='gdrive',_0x1d145c['Facebook']='facebook',_0x1d145c['GPhotos']='gphotos',_0x1d145c['OneDrive']='onedrive',_0x1d145c;}({});function _(_0x3d52c8,_0x302f35,_0x4910a5){const t=_0x3d52c8['t'],_0x26b49d=_0x3d52c8['t'];switch(_0x302f35){case i['Local']:return{'text':_0x26b49d('Insert'===_0x4910a5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x26b49d('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4910a5?_0x26b49d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x26b49d('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4910a5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4910a5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4910a5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4910a5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4910a5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x302f35;}}class e extends _0x4e6217{['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 _0x12348c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18c161;for(const _0x254814 in _0x12348c){const _0x252838=_0x254814,_0x208459=_0x12348c[_0x252838];if('uploadcareLicenseKeyValid'==_0x208459||'uploadcareLicenseKeyInvalid'==_0x208459||'uploadcareLicenseKeyExpired'==_0x208459||'uploadcareLicenseKeyDomainLimit'==_0x208459||'uploadcareLicenseKeyNotAllowed'==_0x208459||'uploadcareLicenseKeyEvaluationLimit'==_0x208459||'uploadcareLicenseKeyTrialLimit'==_0x208459||'uploadcareLicenseKeyUsageLimit'==_0x208459){delete _0x12348c[_0x252838],_0x18c161=_0x208459,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x18c161&&_0x12348c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x18c161&&_0x12348c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x18c161&&_0x12348c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x18c161&&_0x12348c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x18c161&&_0x12348c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x18c161&&_0x12348c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x18c161&&_0x12348c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xc48485}=this,_0x2fe582=_0xc48485['commands']['get']('uploadcare');if(!_0x2fe582)return;const _0x20d028=this['_normalizeConfigSourceList'](_0xc48485['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x439f65,_0x2de5bd)=>{const _0x5843d9=this['_getIntegrationKey'](_0x2de5bd['type']);return _0x439f65[_0x5843d9]||(_0x439f65[_0x5843d9]=[]),_0x439f65[_0x5843d9]['push'](_0x2de5bd),_0x439f65;},{});_0xc48485['plugins']['has']('ImageInsertUI')&&_0xc48485['commands']['get']('uploadcare')&&Object['entries'](_0x20d028)['forEach'](([_0x6f763c,_0x1a3799])=>{_0xc48485['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x6f763c,'observable':()=>_0x2fe582,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1a3799),'formViewCreator':()=>this['_createDropdownButtons'](_0x1a3799),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1a3799),'override':'assetManager'!==_0x6f763c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2bae48){const {locale:_0x2f4ae6}=this['editor'];return _0x2bae48['map'](_0x510d81=>{const _0x3576d8=_(_0x2f4ae6,_0x510d81,'Insert');switch(_0x510d81){case i['Local']:return{'icon':_0x4bcccc,'type':i['Local'],..._0x3576d8};case i['URL']:return{'icon':_0x13f745,'type':i['URL'],..._0x3576d8};case i['Dropbox']:return{'icon':_0x148e70,'type':i['Dropbox'],..._0x3576d8};case i['Facebook']:return{'icon':_0x68c77f,'type':i['Facebook'],..._0x3576d8};case i['GDrive']:return{'icon':_0x50d3e2,'type':i['GDrive'],..._0x3576d8};case i['GPhotos']:return{'icon':_0x16d599,'type':i['GPhotos'],..._0x3576d8};case i['OneDrive']:return{'icon':_0x3d48fd,'type':i['OneDrive'],..._0x3576d8};}});}['_getIntegrationKey'](_0x5f3379){switch(_0x5f3379){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x12e688,_0x1ec594){const _0x365cc8=this['editor'],_0x305917=new _0x12e688(_0x365cc8['locale']),_0x209def=_0x365cc8['commands']['get']('uploadcare');return _0x305917['bind']('isEnabled')['to'](_0x209def),_0x305917['on']('execute',()=>{_0x209def['execute'](_0x1ec594);}),_0x305917;}['_createToolbarButton'](_0x1326bf){const {locale:_0x100649}=this['editor'],_0x25a611=this['editor']['plugins']['get']('ImageInsertUI'),_0x13da2f=_0x1326bf[0x0],_0x266fea=this['_createButton'](_0x5b5bb5,_0x13da2f['type']);return _0x266fea['icon']=_0x13da2f['icon'],_0x266fea['bind']('label')['to'](_0x25a611,'isImageSelected',_0x1c295d=>_(_0x100649,_0x13da2f['type'],_0x1c295d?'Replace':'Insert')['text']),_0x266fea['tooltip']=!0x0,_0x266fea;}['_createDropdownButtons'](_0x589762){const {locale:_0x27e1e6}=this['editor'],_0xb798b4=this['editor']['plugins']['get']('ImageInsertUI');return _0x589762['map'](_0x18c2f1=>{const _0xe023b5=this['_createButton'](_0x5b5bb5,_0x18c2f1['type']);return _0xe023b5['withText']=!0x0,_0xe023b5['icon']=_0x18c2f1['icon'],_0xe023b5['bind']('label')['to'](_0xb798b4,'isImageSelected',_0x56f389=>_(_0x27e1e6,_0x18c2f1['type'],_0x56f389?'Replace':'Insert')['text']),_0xe023b5;});}['_createMenuBarButtons'](_0x4aedde){return _0x4aedde['map'](_0x2a0238=>{const _0x4dc5bd=this['_createButton'](_0x47b47f,_0x2a0238['type']);return _0x4dc5bd['icon']=_0x2a0238['icon'],_0x4dc5bd['label']=_0x2a0238['shortText'],_0x4dc5bd;});}}class F extends _0xb1ee2{['focusTracker'];['focusCycler'];constructor(_0x220bf9){super(_0x220bf9),this['focusTracker']=new _0x49803c(),this['focusCycler']=new _0x5628b1({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x2f6fb8,_0x47dd93){super(_0x2f6fb8),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-'+_0x47dd93}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x5402b9,_0xe9602b){const _0x249058=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x32d3cb=>_0x32d3cb<=_0xe9602b)['map'](_0x5db8e1=>_0x5402b9['replace'](/\/$/,'')+'/-/resize/'+_0x5db8e1+'x/\x20'+_0x5db8e1+'w');return{'imageFallbackUrl':_0x5402b9,'imageSources':[{'srcset':_0x249058['join'](',\x20'),'sizes':'(max-width:\x20'+_0xe9602b+'px)\x20100vw,\x20'+_0xe9602b+'px','type':'image/webp'}]};}function C(_0x212135,_0x181aaa,_0x47dc86){const _0x4a64f1=_0x212135['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4a64f1?parseInt(_0x4a64f1[0x1],0xa):_0x181aaa,'height':_0x4a64f1?parseInt(_0x4a64f1[0x2],0xa):_0x47dc86};}function p(_0x3e72d6,_0x1172b4){const _0x1ecdc4=new(_0x1d637f())(),_0x16c122=_0x3e72d6['plugins']['get']('ImageUtils'),_0x338aa0=_0x3e72d6['editing']['mapper']['toViewElement'](_0x1172b4),_0x101b27=_0x16c122['findViewImgElement'](_0x338aa0),_0x39e063=_0x3e72d6['editing']['view']['domConverter']['viewToDom'](_0x101b27),_0x111107=_0x1172b4['getAttribute']('width'),_0x4282dd=_0x1172b4['getAttribute']('height'),_0x49d93c='image-processing';_0x3e72d6['editing']['view']['change'](_0x537bff=>{_0x537bff['addClass'](_0x49d93c,_0x338aa0),_0x537bff['setStyle']('aspect-ratio',_0x111107+'/'+_0x4282dd,_0x101b27);}),_0x1ecdc4['listenTo'](_0x39e063,'load',()=>{_0x1ecdc4['stopListening'](_0x39e063,'load'),_0x3e72d6['editing']['view']['change'](_0x191916=>{_0x191916['removeClass'](_0x49d93c,_0x338aa0),_0x191916['removeStyle']('aspect-ratio',_0x101b27);});});}function z(_0x50b1a2){if(Array['isArray'](_0x50b1a2)){const _0xf613a7=_0x50b1a2['map'](z);return _0x2ea77a=>_0xf613a7['some'](_0x6ad83f=>_0x6ad83f(_0x2ea77a));}if('origin'==_0x50b1a2){const _0x579d1e=_0x27b927['window']['location']['origin'];return _0x5a462d=>new URL(_0x5a462d,_0x27b927['document']['baseURI'])['origin']==_0x579d1e;}return'function'==typeof _0x50b1a2?_0x50b1a2:_0x50b1a2 instanceof RegExp?_0x54a8cd=>!(!_0x54a8cd['match'](_0x50b1a2)&&!_0x54a8cd['replace'](/^https?:\/\//,'')['match'](_0x50b1a2)):()=>!0x1;}function S(_0x2dee4d,_0x56ae49){return _0x44edd1(_0x2dee4d['target'])['includes'](_0x56ae49);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xe7cd87(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xaef1d,_0x4b90db,_0x75e166){super(),this['_editor']=_0xaef1d,this['_editing']=_0x4b90db,this['_dialog']=_0xaef1d['plugins']['get'](_0x5ddd06),this['_api']=_0x4b90db['ctxElement']['getAPI'](),this['_type']=_0x75e166,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:_0x258345,model:_0x994b26}=this['_editor'],_0x560977=_0x994b26['document']['selection']['getSelectedElement'](),_0x2e136d=_0x560977&&(_0x560977['is']('element','imageBlock')||_0x560977['is']('element','imageInline'));this['_formView']=new x(_0x258345,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4bcccc,'title':_(_0x258345,this['_type'],_0x2e136d?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x22dbcd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x24c4b0=>!S(_0x24c4b0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x191856}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4ed8fb=>{const _0x17699a=_0x191856['length'];for(const _0x36629a of _0x191856){const _0xd0ed3a=_0x36629a===_0x191856[_0x17699a-0x1],{cdnUrl:_0x21683a,fileInfo:_0x2456ec}=_0x36629a;if(!_0x21683a||!_0x2456ec)continue;const {width:_0x3e189a,height:_0xdeb027}=_0x2456ec['imageInfo'],_0x19b1af=C(_0x21683a,_0x3e189a,_0xdeb027),_0x12117f=k(_0x21683a,_0x19b1af['width']),_0x5ef3b8={'id':_0x2456ec['uuid'],'type':'image','attributes':{'imageDimension':_0x19b1af,..._0x12117f}};this['_insertAsset'](_0x5ef3b8,_0xd0ed3a,_0x4ed8fb);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x442bfe=>{'idle'===_0x442bfe['detail']['status']&&!_0x442bfe['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2236b9,_0x425d97,_0x181f5b){const _0x4c3327=this['_editor']['model']['document']['selection'],_0x4b39f6=_0x4c3327['getSelectedElement'](),_0xac1c99=!(!_0x4b39f6||!_0x4b39f6['is']('element','imageInline'));_0x181f5b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2236b9,_0xac1c99),_0x425d97||_0x181f5b['setSelection'](_0x4c3327['getLastPosition']());}['_insertImage'](_0x21ccaa,_0xc17094){const _0x9be684=this['_editor'],{imageDimension:_0x50b4db,imageFallbackUrl:_0x4106b4,imageSources:_0x3629f5}=_0x21ccaa['attributes'];_0x9be684['execute']('insertImage',{'imageType':_0xc17094?'imageInline':null,'source':{'uploadcareImageId':_0x21ccaa['id'],'src':_0x4106b4,'sources':_0x3629f5,..._0x50b4db}});}}class w extends _0x5619ad{['_editing'];['_controller']=null;static get['requires'](){return[_0x5ddd06,o];}constructor(_0x4b7f59){super(_0x4b7f59),this['_editing']=_0x4b7f59['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xbabad){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xbabad);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3753a0,publicKey:_0x3ed319,signal:_0x654e9f,onProgress:_0x3b0eda}){return _0x339395(_0x3753a0,{'publicKey':_0x3ed319,'store':'auto','signal':_0x654e9f,'onProgress':_0x3b0eda});}static['getInfo'](_0x27c8c7,_0x4be182){return _0x18465f(_0x27c8c7,_0x4be182);}}class f extends _0x4e6217{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x206642,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4ef462=this['editor'];if(!!!_0x4ef462['config']['get']('uploadcare'))return;_0x4ef462['plugins']['get'](_0x206642)['createUploadAdapter']=_0xbe5bc7=>new A(_0xbe5bc7,_0x4ef462),_0x4ef462['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x387b5f,{imageElement:_0x4c84c8,data:_0x445a4e})=>{_0x4ef462['model']['change'](_0x5605a7=>{_0x5605a7['setAttribute']('uploadcareImageId',_0x445a4e['uploadcareImageId'],_0x4c84c8);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x37520a,_0x21730e){this['loader']=_0x37520a,this['editor']=_0x21730e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4c7dd3=this['editor']['config']['get']('uploadcare.pubkey'),_0x508d98=await this['loader']['file'];return j['upload']({'file':_0x508d98,'publicKey':_0x4c7dd3,'signal':this['controller']['signal'],'onProgress':_0x18403f=>{_0x18403f&&_0x18403f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x18403f['value']);}})['then'](async _0x1b818f=>{const {imageFallbackUrl:_0x4040aa,imageSources:_0x1ee5f7}=k(_0x1b818f['cdnUrl'],_0x1b818f['imageInfo']['width']);return{'uploadcareImageId':_0x1b818f['uuid'],'default':_0x4040aa,'sources':_0x1ee5f7};})['catch'](()=>{const _0x4dfa77=t('Cannot\x20upload\x20file:')+('\x20'+_0x508d98['name']+'.');return Promise['reject'](_0x4dfa77);});}['abort'](){this['controller']['abort']();}}class o extends _0x4e6217{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5ddd06];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2a4962){super(_0x2a4962),this['ucContextId']=_0x567165();}['init'](){const _0x1acf1a=this['editor'];_0x1acf1a['commands']['add']('uploadcare',new w(_0x1acf1a));}['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 _0x5b8434=_0x27b927['document']['querySelector']('input[uploadcare-file-input]');_0x5b8434&&_0x5b8434['remove']();}),async function(_0x58ec51){const _0x265e7c=_0x13d6ae([0x32,0x47,0x46,0x79,0x5a,0x41,0x70,0x37,0x61,0x45,0x69,0x59,0x6e,0x6a,0x44,0x4c,0x34,0x62,0x6f,0x7a,0x33,0x65,0x39,0x43,0x42,0x53,0x71,0x38,0x57,0x77,0x48,0x75,0x56,0x73,0x4f,0x78,0x31,0x6d,0x36,0x64,0x4a,0x72,0x51,0x4d,0x74,0x63,0x6c,0x68,0x54,0x4e,0x6b,0x67,0x52,0x55,0x30,0x35,0x4b,0x50,0x49,0x58,0x66,0x76]),_0x3fd299=0x201b7a59,_0x117952=0x201c1631^_0x3fd299,_0x15335e=window[_0x13d6ae([0x44,0x61,0x74,0x65])][_0x13d6ae([0x6e,0x6f,0x77])](),_0x144b47=_0x58ec51[_0x13d6ae([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17eb57=new window[(_0x13d6ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d94d1=>{_0x144b47[_0x13d6ae([0x6f,0x6e,0x63,0x65])](_0x13d6ae([0x72,0x65,0x61,0x64,0x79]),_0x1d94d1);}),_0x3b63bd={[_0x13d6ae([0x6b,0x74,0x79])]:_0x13d6ae([0x45,0x43]),[_0x13d6ae([0x75,0x73,0x65])]:_0x13d6ae([0x73,0x69,0x67]),[_0x13d6ae([0x63,0x72,0x76])]:_0x13d6ae([0x50,0x2d,0x32,0x35,0x36]),[_0x13d6ae([0x78])]:_0x13d6ae([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]),[_0x13d6ae([0x79])]:_0x13d6ae([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]),[_0x13d6ae([0x61,0x6c,0x67])]:_0x13d6ae([0x45,0x53,0x32,0x35,0x36])},_0xb15135=_0x144b47[_0x13d6ae([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13d6ae([0x67,0x65,0x74])](_0x13d6ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d7d3f(){let _0x11ccb5,_0x4b65f0=null,_0x4c27ba=null;try{if(_0xb15135==_0x13d6ae([0x47,0x50,0x4c]))return _0x13d6ae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11ccb5=_0x13398b(),!_0x11ccb5)return _0x13d6ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11ccb5[_0x13d6ae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c27ba=_0x26f117(_0x11ccb5[_0x13d6ae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11ccb5[_0x13d6ae([0x6a,0x74,0x69])])),await _0xa17d0a()?_0x15fdbb()?_0x4c544b()?_0x13d6ae([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x327382()?(_0x11ccb5[_0x13d6ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13d6ae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b65f0=_0x99bee1(_0x13d6ae([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11ccb5[_0x13d6ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13d6ae([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b65f0=_0x99bee1(_0x13d6ae([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1734a3()):_0x13d6ae([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13d6ae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13d6ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x13d6ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4c544b(){const _0x117129=[_0x13d6ae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13d6ae([0x74,0x72,0x69,0x61,0x6c])][_0x13d6ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11ccb5[_0x13d6ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x15335e/0x3e8:0xe10*_0x117952;return _0x11ccb5[_0x13d6ae([0x65,0x78,0x70])]<_0x117129;}function _0x15fdbb(){const _0x2882ab=_0x11ccb5[_0x13d6ae([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2882ab&&(!!_0x2882ab[_0x13d6ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13d6ae([0x2a]))||!!_0x2882ab[_0x13d6ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13d6ae([0x55,0x50,0x4c,0x43])));}function _0x327382(){const _0x535ac5=_0x11ccb5[_0x13d6ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x535ac5||0x0==_0x535ac5[_0x13d6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x171301}=new URL(window[_0x13d6ae([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x535ac5[_0x13d6ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x171301))return!0x0;const _0x15e985=_0x171301[_0x13d6ae([0x73,0x70,0x6c,0x69,0x74])](_0x13d6ae([0x2e]));return _0x535ac5[_0x13d6ae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe22fa1=>_0xe22fa1[_0x13d6ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13d6ae([0x2a])))[_0x13d6ae([0x6d,0x61,0x70])](_0x26f906=>_0x26f906[_0x13d6ae([0x73,0x70,0x6c,0x69,0x74])](_0x13d6ae([0x2e])))[_0x13d6ae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ea490=>_0x4ea490[_0x13d6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x15e985[_0x13d6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13d6ae([0x6d,0x61,0x70])](_0xc4befc=>Array(_0x15e985[_0x13d6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc4befc[_0x13d6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13d6ae([0x66,0x69,0x6c,0x6c])](_0xc4befc[0x0]===_0x13d6ae([0x2a])?_0x13d6ae([0x2a]):'')[_0x13d6ae([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc4befc))[_0x13d6ae([0x73,0x6f,0x6d,0x65])](_0x242a75=>_0x15e985[_0x13d6ae([0x65,0x76,0x65,0x72,0x79])]((_0x3d187a,_0x265f0e)=>_0x242a75[_0x265f0e]===_0x3d187a||_0x242a75[_0x265f0e]===_0x13d6ae([0x2a])));}function _0x1734a3(){return _0x4b65f0&&_0x4c27ba?new window[(_0x13d6ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52a5ba,_0xe6449e)=>{_0x4b65f0[_0x13d6ae([0x74,0x68,0x65,0x6e])](_0x52a5ba,_0xe6449e),_0x4c27ba[_0x13d6ae([0x74,0x68,0x65,0x6e])](_0x243d13=>{_0x243d13!=_0x13d6ae([0x56,0x61,0x6c,0x69,0x64])&&_0x52a5ba(_0x243d13);},_0xe6449e);}):_0x4b65f0||_0x4c27ba||_0x13d6ae([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26f117(_0x3e77d2,_0x52d121){return new window[(_0x13d6ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27cf0f=>{if(_0x80d4d2())return _0x27cf0f(_0x13d6ae([0x56,0x61,0x6c,0x69,0x64]));_0x3025fd(),_0x144b47[_0x13d6ae([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13d6ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5f46bb=!0x1;const _0x26a045=_0x567165();function _0x7db9fa(_0x4ffe28){return!!_0x4ffe28&&(typeof _0x4ffe28===_0x13d6ae([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ffe28===_0x13d6ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ffe28[_0x13d6ae([0x74,0x68,0x65,0x6e])]===_0x13d6ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ffe28[_0x13d6ae([0x63,0x61,0x74,0x63,0x68])]===_0x13d6ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d26a2(_0x2434d7){_0x5593b6(_0x2434d7)[_0x13d6ae([0x74,0x68,0x65,0x6e])](_0x10028f=>{if(!_0x10028f||_0x10028f[_0x13d6ae([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13d6ae([0x6f,0x6b]))return _0x13d6ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f5faa(_0x49a59b(_0x26a045+_0x52d121))!=_0x10028f[_0x13d6ae([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13d6ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13d6ae([0x56,0x61,0x6c,0x69,0x64]);})[_0x13d6ae([0x74,0x68,0x65,0x6e])](_0x4d9720=>(_0x462e27(),_0x4d9720),()=>{const _0x29897b=_0x530bfc();return null==_0x29897b?(_0x462e27(),_0x13d6ae([0x56,0x61,0x6c,0x69,0x64])):_0x13d6ae(_0x15335e-_0x29897b>(0x417fe59^_0x3fd299)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13d6ae([0x74,0x68,0x65,0x6e])](_0x27cf0f)[_0x13d6ae([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27cf0f(_0x13d6ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x22dd81=0x202d94d9^_0x3fd299;function _0x462e27(){const _0x4df787=_0x13d6ae([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f5faa(_0x49a59b(_0x3e77d2)),_0xd44a86=_0x2f76cf(_0x3f5faa(window[_0x13d6ae([0x4d,0x61,0x74,0x68])][_0x13d6ae([0x63,0x65,0x69,0x6c])](_0x15335e/_0x22dd81)));window[_0x13d6ae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13d6ae([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4df787,_0xd44a86);}function _0x530bfc(){const _0x5cdede=_0x13d6ae([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f5faa(_0x49a59b(_0x3e77d2)),_0xe45a0a=window[_0x13d6ae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13d6ae([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cdede);return _0xe45a0a?window[_0x13d6ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f76cf(_0xe45a0a),0x10)*_0x22dd81:null;}function _0x5593b6(_0x502f83){return new window[(_0x13d6ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf3f6fd,_0x1dabab)=>{_0x502f83[_0x13d6ae([0x74,0x68,0x65,0x6e])](_0xf3f6fd,_0x1dabab),window[_0x13d6ae([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1dabab,0x201aae99^_0x3fd299);});}}_0x144b47[_0x13d6ae([0x6f,0x6e])](_0x13d6ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x325c23,_0x40a4e6)=>{if(_0x40a4e6[0x0]!=_0x3e77d2)return _0x27cf0f(_0x13d6ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40a4e6[0x1]={..._0x40a4e6[0x1],[_0x13d6ae([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26a045};},{[_0x13d6ae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13d6ae([0x68,0x69,0x67,0x68])}),_0x144b47[_0x13d6ae([0x6f,0x6e])](_0x13d6ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b28b4=>{_0x7db9fa(_0x3b28b4[_0x13d6ae([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5f46bb=!0x0,_0x2d26a2(_0x3b28b4[_0x13d6ae([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13d6ae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13d6ae([0x6c,0x6f,0x77])}),_0x17eb57[_0x13d6ae([0x74,0x68,0x65,0x6e])](()=>{_0x5f46bb||_0x27cf0f(_0x13d6ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x80d4d2(){return _0x144b47[_0x13d6ae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13d6ae([0x76,0x69,0x65,0x77])][_0x13d6ae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13d6ae([0x61,0x75,0x74,0x6f]);}function _0x3025fd(){_0x144b47[_0x13d6ae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13d6ae([0x76,0x69,0x65,0x77])][_0x13d6ae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13d6ae([0x61,0x75,0x74,0x6f]);}}function _0x99bee1(_0x1f1741){const _0x44086b=[new window[(_0x13d6ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b5292=>setTimeout(_0x5b5292,0x20124495^_0x3fd299)),_0x17eb57[_0x13d6ae([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13d6ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f74b5=>{let _0x53da90=0x0;_0x144b47[_0x13d6ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x13d6ae([0x6f,0x6e])](_0x13d6ae([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x290fea,_0x47ede2)=>{_0x47ede2[0x0][_0x13d6ae([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x53da90++,_0x53da90==(0x201b7ba1^_0x3fd299)&&(_0x1f74b5(),_0x290fea[_0x13d6ae([0x6f,0x66,0x66])]());});}))];return window[_0x13d6ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13d6ae([0x72,0x61,0x63,0x65])](_0x44086b)[_0x13d6ae([0x74,0x68,0x65,0x6e])](()=>_0x1f1741);}async function _0x426b4f(){await _0x17eb57,_0x144b47[_0x13d6ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x13d6ae([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b7d78,_0x144b47[_0x13d6ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x13d6ae([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b7d78,_0x144b47[_0x13d6ae([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13d6ae([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25f026(_0x795233){const _0x5f05b7=_0x49336c();_0x144b47[_0x5f05b7]=_0x13d6ae([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x795233,_0x795233!=_0x13d6ae([0x56,0x61,0x6c,0x69,0x64])&&_0x426b4f();}function _0x49336c(){const _0x46e126=window[_0x13d6ae([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13d6ae([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13d6ae([0x6e,0x6f,0x77])]())[_0x13d6ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13d6ae([0x2e]),'');let _0xc05a5e=_0x13d6ae([0x47]);for(let _0x1bc447=0x0;_0x1bc447<_0x46e126[_0x13d6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bc447+=0x2){let _0x30608b=window[_0x13d6ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46e126[_0x13d6ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bc447,_0x1bc447+0x2));_0x30608b>=_0x265e7c[_0x13d6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30608b-=_0x265e7c[_0x13d6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xc05a5e+=_0x265e7c[_0x30608b];}return _0xc05a5e;}function _0x13398b(){const _0x134106=_0xb15135[_0x13d6ae([0x73,0x70,0x6c,0x69,0x74])](_0x13d6ae([0x2e]));if(0x3!=_0x134106[_0x13d6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4dffb8(_0x134106[0x1]);function _0x4dffb8(_0x4897d0){const _0x531175=_0x4a6c75(_0x4897d0);return _0x531175&&_0x11b792()?_0x531175:null;function _0x11b792(){const _0xeb49d=_0x531175[_0x13d6ae([0x6a,0x74,0x69])],_0x1f4961=window[_0x13d6ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xeb49d[_0x13d6ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xeb49d[_0x13d6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23d62c={..._0x531175,[_0x13d6ae([0x6a,0x74,0x69])]:_0xeb49d[_0x13d6ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xeb49d[_0x13d6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23d62c[_0x13d6ae([0x76,0x63])],_0x49a59b(_0x23d62c)==_0x1f4961;}}}async function _0xa17d0a(){let _0x2a36be=!0x0;try{const _0x545e57=_0xb15135[_0x13d6ae([0x73,0x70,0x6c,0x69,0x74])](_0x13d6ae([0x2e])),[_0x4fb42c,_0x185b37,_0x375a14]=_0x545e57;return _0x1164d2(_0x4fb42c),await _0x545366(_0x4fb42c,_0x185b37,_0x375a14),_0x2a36be;}catch{return!0x1;}function _0x1164d2(_0x4d8742){const _0x4c9123=_0x4a6c75(_0x4d8742);_0x4c9123&&_0x4c9123[_0x13d6ae([0x61,0x6c,0x67])]==_0x13d6ae([0x45,0x53,0x32,0x35,0x36])||(_0x2a36be=!0x1);}async function _0x545366(_0x47bb03,_0x131d0c,_0x58df12){const _0x5302a2=window[_0x13d6ae([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13d6ae([0x66,0x72,0x6f,0x6d])](_0x455c83(_0x58df12),_0x4bf87d=>_0x4bf87d[_0x13d6ae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xad5e7b=new window[(_0x13d6ae([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13d6ae([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47bb03+_0x13d6ae([0x2e])+_0x131d0c),_0x1b192e=window[_0x13d6ae([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13d6ae([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b192e)return;const _0x573046=await _0x1b192e[_0x13d6ae([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13d6ae([0x6a,0x77,0x6b]),_0x3b63bd,{[_0x13d6ae([0x6e,0x61,0x6d,0x65])]:_0x13d6ae([0x45,0x43,0x44,0x53,0x41]),[_0x13d6ae([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13d6ae([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13d6ae([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b192e[_0x13d6ae([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13d6ae([0x6e,0x61,0x6d,0x65])]:_0x13d6ae([0x45,0x43,0x44,0x53,0x41]),[_0x13d6ae([0x68,0x61,0x73,0x68])]:{[_0x13d6ae([0x6e,0x61,0x6d,0x65])]:_0x13d6ae([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x573046,_0x5302a2,_0xad5e7b)||(_0x2a36be=!0x1);}}function _0x4a6c75(_0x2037cd){return _0x2037cd[_0x13d6ae([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13d6ae([0x65,0x79]))?JSON[_0x13d6ae([0x70,0x61,0x72,0x73,0x65])](_0x455c83(_0x2037cd)):null;}function _0x455c83(_0x4c4506){return window[_0x13d6ae([0x61,0x74,0x6f,0x62])](_0x4c4506[_0x13d6ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13d6ae([0x2b]))[_0x13d6ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13d6ae([0x2f])));}function _0x49a59b(_0x5e072b){let _0x3b7a2c=0x1505;function _0x55efd9(_0x597210){for(let _0x5670ea=0x0;_0x5670ea<_0x597210[_0x13d6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5670ea++){const _0x3f99bb=_0x597210[_0x13d6ae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5670ea);_0x3b7a2c=(_0x3b7a2c<<0x5)+_0x3b7a2c+_0x3f99bb,_0x3b7a2c&=_0x3b7a2c;}}function _0x58fdaf(_0xc35e02){Array[_0x13d6ae([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc35e02)?_0xc35e02[_0x13d6ae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58fdaf):_0xc35e02&&typeof _0xc35e02==_0x13d6ae([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13d6ae([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc35e02)[_0x13d6ae([0x73,0x6f,0x72,0x74])]()[_0x13d6ae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ad58a,_0x589d81])=>{_0x55efd9(_0x2ad58a),_0x58fdaf(_0x589d81);}):_0x55efd9(window[_0x13d6ae([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc35e02));}return _0x58fdaf(_0x5e072b),_0x3b7a2c>>>0x0;}function _0x3f5faa(_0x44508a){return _0x44508a[_0x13d6ae([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13d6ae([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13d6ae([0x30]));}function _0x2f76cf(_0x10ebd7){return _0x10ebd7[_0x13d6ae([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13d6ae([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13d6ae([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b7d78(){}function _0x13d6ae(_0x2c4a2f){return _0x2c4a2f['map'](_0x530389=>String['fromCharCode'](_0x530389))['join']('');}_0x25f026(await _0x4d7d3f());}(this);}['_initSchema'](){const _0x27a91e=this['editor']['model']['schema'];_0x27a91e['isRegistered']('imageBlock')&&_0x27a91e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x27a91e['isRegistered']('imageInline')&&_0x27a91e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x56efa1=this['editor'];_0x56efa1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x56efa1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x23c45e=>_0x23c45e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2318af=_0x56efa1['commands']['get']('replaceImageSource');_0x2318af&&this['listenTo'](_0x2318af,'cleanupImage',(_0x3a6542,[_0x573329,_0x5ee512])=>{_0x573329['removeAttribute']('uploadcareImageId',_0x5ee512);});}['_initConfig'](){const _0x5086d1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x337469=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1b1f0d(_0x27b927['document'],'uc-config',{..._0x5086d1,'pubkey':_0x337469,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x54cd3b=>{if('closeMax'==_0x54cd3b)return'#uc-icon-arrow-down';},_0x27b927['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1b1f0d(_0x27b927['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x27b927['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1902a9=this['editor']['commands']['get']('insertImage');_0x1902a9&&this['listenTo'](_0x1902a9,'execute',()=>{const _0x49ff85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49ff85&&_0x49ff85['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x49ff85);});});const _0x4a1bf0=this['editor']['commands']['get']('uploadcareImageReplace');_0x4a1bf0&&this['listenTo'](_0x4a1bf0,'execute',()=>{const _0x935610=this['editor']['model']['document']['selection']['getSelectedElement']();_0x935610&&_0x935610['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x935610);});});}}class tt extends _0x4e6217{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2421ea){super(_0x2421ea),_0x2421ea['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x358c79['defineComponents'](_0x358c79);}}class ii extends _0xb1ee2{constructor(_0x5be53b){super(_0x5be53b);const t=_0x5be53b['t'],_0x3b9336=this['bindTemplate'],_0x29e5b3=new _0xa81471();_0x29e5b3['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':[_0x29e5b3,{'text':_0x3b9336['to']('imageUploadProgress',_0x1e3e3b=>t('Loading\x20image...')+'\x20('+(_0x1e3e3b||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0xb1ee2{constructor(_0x5f3cd0){super(_0x5f3cd0);const t=_0x5f3cd0['t'];this['set']('errorType',null);const _0x35f025=new _0x5b5bb5(_0x5f3cd0);_0x35f025['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x35f025['withText']=!0x0,_0x35f025['class']='ck-button-action',_0x35f025['on']('execute',()=>{this['fire']('retry');}),_0x35f025['bind']('isVisible')['to'](this,'errorType',_0x23e8a9=>'NotFound'!==_0x23e8a9);const _0xacec3b=new _0x4e7501();_0xacec3b['content']=_0xf70374,_0xacec3b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1e7fdd=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':[_0xacec3b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1e7fdd['to']('errorType',_0x4714bf=>t('NotFound'!==_0x4714bf?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x35f025]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0xb1ee2{constructor(_0x3a5d26,_0x2f6fe8){super(_0x3a5d26);const _0x219bd9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2f6fe8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x219bd9['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x48b025,_0xdf2273,_0xe6436){super(_0x48b025),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x48b025),this['_errorView']=new ti(_0x48b025),this['_editingView']=new ei(_0x48b025,_0xe6436),this['_focusableView']=new _0xb1ee2(_0x48b025),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xdf2273),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'],_0x3b1a11=>{this['_addUploadcareImageEditorListeners'](_0x3b1a11);});}),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'](_0x5399b9,_0x4e5b8e){const _0x31dbcf='uc-cloud-image-editor',_0x465f81=_0x5399b9['querySelector'](_0x31dbcf);if(_0x465f81)return _0x4e5b8e(_0x465f81);const _0xf0983a=new MutationObserver(_0x28b567=>{const _0x1f2e64=_0x28b567['filter'](_0x367a18=>_0x367a18['target']===_0x5399b9&&_0x367a18['addedNodes']['length']>0x0&&_0x367a18['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x31dbcf);_0x1f2e64['length']&&(_0xf0983a['disconnect'](),_0x4e5b8e(_0x1f2e64[0x0]['addedNodes'][0x0]));});_0xf0983a['observe'](_0x5399b9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x450187){_0x450187['addEventListener']('apply',_0x2b04fb=>{this['fire']('apply',{'imageSrc':_0x2b04fb['detail']['cdnUrl']});}),_0x450187['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xe7cd87(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2dac4c,_0x2d043a,_0x16b603){super(),this['_editor']=_0x2dac4c,this['_dialog']=_0x2d043a,this['_imageElement']=_0x16b603,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 _0x32fa26=this['_imageElement'],_0x56004c=_0x32fa26['getAttribute']('uploadcareImageId'),_0x46a6a6=_0x32fa26['getAttribute']('src');if(_0x56004c)await this['_loadImageInfo'](_0x56004c,_0x46a6a6);else{if(this['_imageCache']['has'](_0x46a6a6)){const _0x14bfb4=this['_imageCache']['get'](_0x46a6a6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14bfb4['url'],this['imageDimension']=_0x14bfb4['dimension'],this['imageId']=_0x14bfb4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2f825b}=this['_editor'],t=_0x2f825b['t'],_0x109ce4=new X(_0x2f825b,this['imageStatus'],this['_attributes']);_0x109ce4['bind']('status')['to'](this,'imageStatus'),_0x109ce4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x109ce4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x109ce4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x109ce4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3019c8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x109ce4,'position':_0x22dbcd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x109ce4['focus']();},'onHide':()=>{_0x109ce4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xac75bf=>!S(_0xac75bf,_0x109ce4['element'])}});}['_loadImageInfo'](_0x6732dc,_0x3ac61a){return j['getInfo'](_0x6732dc,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x143ce2=>{const {width:_0x52574f,height:_0x273612}=_0x143ce2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3ac61a,this['imageDimension']={'width':_0x52574f,'height':_0x273612},this['imageId']=_0x6732dc;})['catch'](_0x4bad6f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4bad6f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2ceedd,_0x2603ec){return this['_getImageAsFile'](_0x2ceedd)['then'](_0x1248ae=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2603ec['signal'],'file':_0x1248ae,'onProgress':_0x5d8b7c=>{_0x5d8b7c&&_0x5d8b7c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5d8b7c['value']));}}))['then'](_0x293bc6=>{const {width:_0x5084c7,height:_0xb88731}=_0x293bc6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x293bc6['cdnUrl'],this['imageDimension']={'width':_0x5084c7,'height':_0xb88731},this['imageId']=_0x293bc6['uuid'],this['imageUploadProgress']=null;const _0x2cbb67=_0x2ceedd['getAttribute']('src');this['_imageCache']['set'](_0x2cbb67,{'id':_0x293bc6['uuid'],'url':_0x293bc6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5692ba=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5692ba['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3d5960,_0x222090){_0x3d5960['on']('apply',(_0x89fe23,_0x4e910e)=>{this['_replaceImage'](_0x222090,_0x4e910e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3d5960['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3d5960['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x48a418,_0x1bb28a,_0x4e341f){const _0x4b494f=this['_editor'],{width:_0x2cb8cb,height:_0x365e91}=C(_0x1bb28a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x300098,imageSources:_0x55f239}=k(_0x1bb28a,_0x2cb8cb);_0x4b494f['model']['change'](_0x220b67=>{if('$graveyard'===_0x48a418['root']['rootName']){_0x4b494f['execute']('insertImage',{'imageType':_0x48a418['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x48a418['getAttributes']()),'uploadcareImageId':_0x4e341f,'src':_0x300098,'sources':_0x55f239,'width':_0x2cb8cb,'height':_0x365e91}});const _0x509ca5=_0x48a418['getChildren']();_0x48a418=_0x4b494f['model']['document']['selection']['getSelectedElement']();for(const _0x11ef20 of _0x509ca5)_0x220b67['append'](_0x220b67['cloneElement'](_0x11ef20),_0x48a418);}else _0x220b67['setSelection'](_0x48a418,'on'),_0x4b494f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x48a418['getAttributes']()),'uploadcareImageId':_0x4e341f,'src':_0x300098,'sources':_0x55f239,'width':_0x2cb8cb,'height':_0x365e91},_0x48a418);_0x220b67['setSelection'](_0x48a418,'on');});}async['_getImageAsFile'](_0x36ede3){const _0x5a46e8=_0x27b927['window'],_0x26c99e=_0x27b927['document']['location']['href'],_0x230dfe=new _0x5a46e8['URL'](_0x36ede3['getAttribute']('src'),_0x26c99e);if('data:'===_0x230dfe['protocol']){const _0x5a68d2=_0x230dfe['href']['split'](','),_0x471cdc=_0x5a68d2[0x0]['match'](/:(.*?);/)[0x1],_0x3b7757=_0x471cdc['split']('/')[0x1],_0x44fe64=_0x5a46e8['atob'](_0x5a68d2[_0x5a68d2['length']-0x1]);let _0x39f283=_0x44fe64['length'];const _0x1609e4=new _0x5a46e8['Uint8Array'](_0x39f283);for(;_0x39f283--;)_0x1609e4[_0x39f283]=_0x44fe64['charCodeAt'](_0x39f283);return new _0x5a46e8['File']([_0x1609e4],'image.'+_0x3b7757,{'type':_0x471cdc});}const _0x49ff93=_0x230dfe['href']['split']('/'),_0x373105=_0x49ff93[_0x49ff93['length']-0x1],_0x3caeae=_0x373105['split']('.')[0x1];return _0x5a46e8['fetch'](_0x230dfe['href'])['then'](_0x44d9e5=>_0x44d9e5['clone']()['blob']())['then'](_0x4bad88=>new _0x5a46e8['File']([_0x4bad88],_0x373105,{'type':'image/'+_0x3caeae}));}}class Q extends _0x5619ad{['imageEditController'];static get['requires'](){return[_0x5ddd06];}['_isEditable'];constructor(_0xf9ec7a){super(_0xf9ec7a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x53c876){const _0x158658=z(_0x53c876);return _0xde514=>!(!_0xde514||!_0xde514['is']('element','imageBlock')&&!_0xde514['is']('element','imageInline'))&&(!!_0xde514['hasAttribute']('uploadcareImageId')||!!_0xde514['hasAttribute']('src')&&_0x158658(_0xde514['getAttribute']('src')));}(_0xf9ec7a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x54ce52=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x54ce52);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x48ad2d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48ad2d&&(_0x48ad2d['is']('element','imageBlock')||_0x48ad2d['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x5ddd06),_0x48ad2d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x5619ad{['refresh'](){const _0x56616b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x56616b&&(_0x56616b['is']('element','imageBlock')||_0x56616b['is']('element','imageInline')));}['execute'](_0x54078b){const _0x37328e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x46d2ca=>{_0x46d2ca['setAttributes'](_0x54078b,_0x37328e),_0x46d2ca['removeAttribute']('srcset',_0x37328e),_0x46d2ca['removeAttribute']('sizes',_0x37328e);});}}class m extends _0x4e6217{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4538f9,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x51186f}=this;_0x51186f['commands']['add']('uploadcareImageEdit',new Q(_0x51186f)),_0x51186f['commands']['add']('uploadcareImageReplace',new V(_0x51186f));}}class g extends _0x4e6217{['_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 _0x4c3e10=this['editor'];_0x4c3e10['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3e81ec=>{const _0x5f1844=_0x4c3e10['commands']['get']('uploadcareImageEdit'),_0x6929e8=new _0x5b5bb5(_0x3e81ec),t=_0x3e81ec['t'];return _0x6929e8['set']({'icon':_0x3019c8,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x6929e8['bind']('isEnabled')['to'](_0x5f1844),_0x6929e8['bind']('isOn')['to'](_0x5f1844,'isActive'),this['listenTo'](_0x6929e8,'execute',()=>{_0x4c3e10['execute']('uploadcareImageEdit'),_0x4c3e10['editing']['view']['focus']();}),_0x6929e8;}),this['_initConfig']();}['_initConfig'](){const _0x442726=_0x1b1f0d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x442726),this['listenTo'](this['editor'],'destroy',()=>{_0x442726['remove']();});}}class et extends _0x4e6217{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x39631d,Command as _0x537ce5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1b2e25,IconGooglePhotos as _0x554b43,IconGoogleDrive as _0x28d72d,IconFacebook as _0xb67d1,IconDropbox as _0x2cd90a,IconUploadcareLink as _0x803687,IconUploadcareImageUpload as _0x23f555,IconError as _0x4dfb04,IconUploadcareImageEdit as _0x11e3f7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4a5ac7,MenuBarMenuListItemButtonView as _0x27d8cf,View as _0x483ebc,FocusCycler as _0x588ad7,Dialog as _0x337d90,DialogViewPosition as _0x1f0185,SpinnerView as _0x4fe468,IconView as _0x153943,Notification as _0x11cfe2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xedb9b6,DomEmitterMixin as _0x43d864,global as _0x1e6b42,getAncestors as _0x3f8976,ObservableMixin as _0x3a83cd,uid as _0x29f306,createElement as _0x1098e0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x55a0b1}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x293906,info as _0x13dd6f}from'@uploadcare/upload-client';import*as _0x265677 from'@uploadcare/file-uploader';var i=function(_0x35aea1){return _0x35aea1['Local']='local',_0x35aea1['URL']='url',_0x35aea1['Dropbox']='dropbox',_0x35aea1['GDrive']='gdrive',_0x35aea1['Facebook']='facebook',_0x35aea1['GPhotos']='gphotos',_0x35aea1['OneDrive']='onedrive',_0x35aea1;}({});function _(_0x565017,_0x38cf20,_0xc824f1){const t=_0x565017['t'],_0x5a91b5=_0x565017['t'];switch(_0x38cf20){case i['Local']:return{'text':_0x5a91b5('Insert'===_0xc824f1?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5a91b5('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xc824f1?_0x5a91b5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5a91b5('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xc824f1?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xc824f1?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xc824f1?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xc824f1?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xc824f1?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x38cf20;}}class e extends _0x39631d{['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 _0x44c4ed=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x11f6f9;for(const _0x1f4fc6 in _0x44c4ed){const _0x543910=_0x1f4fc6,_0x4cf893=_0x44c4ed[_0x543910];if('uploadcareLicenseKeyValid'==_0x4cf893||'uploadcareLicenseKeyInvalid'==_0x4cf893||'uploadcareLicenseKeyExpired'==_0x4cf893||'uploadcareLicenseKeyDomainLimit'==_0x4cf893||'uploadcareLicenseKeyNotAllowed'==_0x4cf893||'uploadcareLicenseKeyEvaluationLimit'==_0x4cf893||'uploadcareLicenseKeyTrialLimit'==_0x4cf893||'uploadcareLicenseKeyUsageLimit'==_0x4cf893){delete _0x44c4ed[_0x543910],_0x11f6f9=_0x4cf893,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x11f6f9&&_0x44c4ed['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x11f6f9&&_0x44c4ed['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x11f6f9&&_0x44c4ed['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x11f6f9&&_0x44c4ed['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x11f6f9&&_0x44c4ed['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x11f6f9&&_0x44c4ed['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x11f6f9&&_0x44c4ed['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xa00e1d}=this,_0x4866e9=_0xa00e1d['commands']['get']('uploadcare');if(!_0x4866e9)return;const _0x386159=this['_normalizeConfigSourceList'](_0xa00e1d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5962e2,_0x3ba7bb)=>{const _0x5e2670=this['_getIntegrationKey'](_0x3ba7bb['type']);return _0x5962e2[_0x5e2670]||(_0x5962e2[_0x5e2670]=[]),_0x5962e2[_0x5e2670]['push'](_0x3ba7bb),_0x5962e2;},{});_0xa00e1d['plugins']['has']('ImageInsertUI')&&_0xa00e1d['commands']['get']('uploadcare')&&Object['entries'](_0x386159)['forEach'](([_0x4ceabc,_0x4be582])=>{_0xa00e1d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4ceabc,'observable':()=>_0x4866e9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4be582),'formViewCreator':()=>this['_createDropdownButtons'](_0x4be582),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4be582),'override':'assetManager'!==_0x4ceabc});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2d0fec){const {locale:_0x514e44}=this['editor'];return _0x2d0fec['map'](_0x15e143=>{const _0x4c80a7=_(_0x514e44,_0x15e143,'Insert');switch(_0x15e143){case i['Local']:return{'icon':_0x23f555,'type':i['Local'],..._0x4c80a7};case i['URL']:return{'icon':_0x803687,'type':i['URL'],..._0x4c80a7};case i['Dropbox']:return{'icon':_0x2cd90a,'type':i['Dropbox'],..._0x4c80a7};case i['Facebook']:return{'icon':_0xb67d1,'type':i['Facebook'],..._0x4c80a7};case i['GDrive']:return{'icon':_0x28d72d,'type':i['GDrive'],..._0x4c80a7};case i['GPhotos']:return{'icon':_0x554b43,'type':i['GPhotos'],..._0x4c80a7};case i['OneDrive']:return{'icon':_0x1b2e25,'type':i['OneDrive'],..._0x4c80a7};}});}['_getIntegrationKey'](_0x2df6a6){switch(_0x2df6a6){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x32d133,_0x43c346){const _0x5a9577=this['editor'],_0xb439dd=new _0x32d133(_0x5a9577['locale']),_0x582535=_0x5a9577['commands']['get']('uploadcare');return _0xb439dd['bind']('isEnabled')['to'](_0x582535),_0xb439dd['on']('execute',()=>{_0x582535['execute'](_0x43c346);}),_0xb439dd;}['_createToolbarButton'](_0x3a0f08){const {locale:_0x514aa0}=this['editor'],_0x2aed2f=this['editor']['plugins']['get']('ImageInsertUI'),_0x50adac=_0x3a0f08[0x0],_0x545586=this['_createButton'](_0x4a5ac7,_0x50adac['type']);return _0x545586['icon']=_0x50adac['icon'],_0x545586['bind']('label')['to'](_0x2aed2f,'isImageSelected',_0x4e7f8e=>_(_0x514aa0,_0x50adac['type'],_0x4e7f8e?'Replace':'Insert')['text']),_0x545586['tooltip']=!0x0,_0x545586;}['_createDropdownButtons'](_0x3d522a){const {locale:_0x14274c}=this['editor'],_0x514c06=this['editor']['plugins']['get']('ImageInsertUI');return _0x3d522a['map'](_0x35c004=>{const _0x288a3d=this['_createButton'](_0x4a5ac7,_0x35c004['type']);return _0x288a3d['withText']=!0x0,_0x288a3d['icon']=_0x35c004['icon'],_0x288a3d['bind']('label')['to'](_0x514c06,'isImageSelected',_0x5837dd=>_(_0x14274c,_0x35c004['type'],_0x5837dd?'Replace':'Insert')['text']),_0x288a3d;});}['_createMenuBarButtons'](_0x1e9eda){return _0x1e9eda['map'](_0x37301b=>{const _0x5a5d51=this['_createButton'](_0x27d8cf,_0x37301b['type']);return _0x5a5d51['icon']=_0x37301b['icon'],_0x5a5d51['label']=_0x37301b['shortText'],_0x5a5d51;});}}class F extends _0x483ebc{['focusTracker'];['focusCycler'];constructor(_0x55b3ce){super(_0x55b3ce),this['focusTracker']=new _0xedb9b6(),this['focusCycler']=new _0x588ad7({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x2d3a5b,_0x17e548){super(_0x2d3a5b),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-'+_0x17e548}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x53bdc5,_0x3a0fd9){const _0x468942=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1f1c2e=>_0x1f1c2e<=_0x3a0fd9)['map'](_0x3cd070=>_0x53bdc5['replace'](/\/$/,'')+'/-/resize/'+_0x3cd070+'x/\x20'+_0x3cd070+'w');return{'imageFallbackUrl':_0x53bdc5,'imageSources':[{'srcset':_0x468942['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3a0fd9+'px)\x20100vw,\x20'+_0x3a0fd9+'px','type':'image/webp'}]};}function C(_0x30ad57,_0x4bd7bf,_0x58ff01){const _0x1089ff=_0x30ad57['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1089ff?parseInt(_0x1089ff[0x1],0xa):_0x4bd7bf,'height':_0x1089ff?parseInt(_0x1089ff[0x2],0xa):_0x58ff01};}function p(_0x338add,_0x11e357){const _0x353add=new(_0x43d864())(),_0x57212e=_0x338add['plugins']['get']('ImageUtils'),_0x3cad40=_0x338add['editing']['mapper']['toViewElement'](_0x11e357),_0x2c8f80=_0x57212e['findViewImgElement'](_0x3cad40),_0x317412=_0x338add['editing']['view']['domConverter']['viewToDom'](_0x2c8f80),_0x1f8afd=_0x11e357['getAttribute']('width'),_0x103d40=_0x11e357['getAttribute']('height'),_0x3800fe='image-processing';_0x338add['editing']['view']['change'](_0x9689f8=>{_0x9689f8['addClass'](_0x3800fe,_0x3cad40),_0x9689f8['setStyle']('aspect-ratio',_0x1f8afd+'/'+_0x103d40,_0x2c8f80);}),_0x353add['listenTo'](_0x317412,'load',()=>{_0x353add['stopListening'](_0x317412,'load'),_0x338add['editing']['view']['change'](_0x43bd70=>{_0x43bd70['removeClass'](_0x3800fe,_0x3cad40),_0x43bd70['removeStyle']('aspect-ratio',_0x2c8f80);});});}function G(_0xd80b6a){if(Array['isArray'](_0xd80b6a)){const _0x19147a=_0xd80b6a['map'](G);return _0x1dc76d=>_0x19147a['some'](_0x3a5946=>_0x3a5946(_0x1dc76d));}if('origin'==_0xd80b6a){const _0x362e99=_0x1e6b42['window']['location']['origin'];return _0x5fd92e=>new URL(_0x5fd92e,_0x1e6b42['document']['baseURI'])['origin']==_0x362e99;}return'function'==typeof _0xd80b6a?_0xd80b6a:_0xd80b6a instanceof RegExp?_0x100e82=>!(!_0x100e82['match'](_0xd80b6a)&&!_0x100e82['replace'](/^https?:\/\//,'')['match'](_0xd80b6a)):()=>!0x1;}function S(_0x5163bb,_0x11d75a){return _0x3f8976(_0x5163bb['target'])['includes'](_0x11d75a);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3a83cd(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x93405d,_0x53222d,_0x494d97){super(),this['_editor']=_0x93405d,this['_editing']=_0x53222d,this['_dialog']=_0x93405d['plugins']['get'](_0x337d90),this['_api']=_0x53222d['ctxElement']['getAPI'](),this['_type']=_0x494d97,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:_0x4cf5d9,model:_0x44bdad}=this['_editor'],_0x4a3b5f=_0x44bdad['document']['selection']['getSelectedElement'](),_0x1aa545=_0x4a3b5f&&(_0x4a3b5f['is']('element','imageBlock')||_0x4a3b5f['is']('element','imageInline'));this['_formView']=new x(_0x4cf5d9,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x23f555,'title':_(_0x4cf5d9,this['_type'],_0x1aa545?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1f0185['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2ca152=>!S(_0x2ca152,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x39b98d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1dec55=>{const _0xcaeb1e=_0x39b98d['length'];for(const _0x1b899d of _0x39b98d){const _0x44896b=_0x1b899d===_0x39b98d[_0xcaeb1e-0x1],{cdnUrl:_0xf3cacb,fileInfo:_0x3ac792}=_0x1b899d;if(!_0xf3cacb||!_0x3ac792)continue;const {width:_0x1b9da2,height:_0x2762d4}=_0x3ac792['imageInfo'],_0x23c70b=C(_0xf3cacb,_0x1b9da2,_0x2762d4),_0x5b2c26=k(_0xf3cacb,_0x23c70b['width']),_0x2c6885={'id':_0x3ac792['uuid'],'type':'image','attributes':{'imageDimension':_0x23c70b,..._0x5b2c26}};this['_insertAsset'](_0x2c6885,_0x44896b,_0x1dec55);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x369dd1=>{'idle'===_0x369dd1['detail']['status']&&!_0x369dd1['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1c41c0,_0x5dc74c,_0x2952ba){const _0x41c917=this['_editor']['model']['document']['selection'],_0x5e7758=_0x41c917['getSelectedElement'](),_0x33c507=!(!_0x5e7758||!_0x5e7758['is']('element','imageInline'));_0x2952ba['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1c41c0,_0x33c507),_0x5dc74c||_0x2952ba['setSelection'](_0x41c917['getLastPosition']());}['_insertImage'](_0x2e9ece,_0x20d47f){const _0x5da413=this['_editor'],{imageDimension:_0x4ce36c,imageFallbackUrl:_0x1b0c1d,imageSources:_0xc34923}=_0x2e9ece['attributes'];_0x5da413['execute']('insertImage',{'imageType':_0x20d47f?'imageInline':null,'source':{'uploadcareImageId':_0x2e9ece['id'],'src':_0x1b0c1d,'sources':_0xc34923,..._0x4ce36c}});}}class w extends _0x537ce5{['_editing'];['_controller']=null;static get['requires'](){return[_0x337d90,o];}constructor(_0x139d84){super(_0x139d84),this['_editing']=_0x139d84['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x27c60d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x27c60d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1f0d32,publicKey:_0x487199,signal:_0x1db39f,onProgress:_0xff689f}){return _0x293906(_0x1f0d32,{'publicKey':_0x487199,'store':'auto','signal':_0x1db39f,'onProgress':_0xff689f});}static['getInfo'](_0x326491,_0x125bb7){return _0x13dd6f(_0x326491,_0x125bb7);}}class f extends _0x39631d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x55a0b1,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4a39be=this['editor'];if(!!!_0x4a39be['config']['get']('uploadcare'))return;_0x4a39be['plugins']['get'](_0x55a0b1)['createUploadAdapter']=_0x39a0fc=>new A(_0x39a0fc,_0x4a39be),_0x4a39be['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x315a3d,{imageElement:_0x28082c,data:_0x1534a3})=>{_0x4a39be['model']['change'](_0x250b5b=>{_0x250b5b['setAttribute']('uploadcareImageId',_0x1534a3['uploadcareImageId'],_0x28082c);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xc2673a,_0x159416){this['loader']=_0xc2673a,this['editor']=_0x159416,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2455bf=this['editor']['config']['get']('uploadcare.pubkey'),_0x2dd17e=await this['loader']['file'];return j['upload']({'file':_0x2dd17e,'publicKey':_0x2455bf,'signal':this['controller']['signal'],'onProgress':_0x136944=>{_0x136944&&_0x136944['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x136944['value']);}})['then'](async _0xca3820=>{const {imageFallbackUrl:_0x2b3de1,imageSources:_0x3c30f0}=k(_0xca3820['cdnUrl'],_0xca3820['imageInfo']['width']);return{'uploadcareImageId':_0xca3820['uuid'],'default':_0x2b3de1,'sources':_0x3c30f0};})['catch'](()=>{const _0x2776be=t('Cannot\x20upload\x20file:')+('\x20'+_0x2dd17e['name']+'.');return Promise['reject'](_0x2776be);});}['abort'](){this['controller']['abort']();}}class o extends _0x39631d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x337d90];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3ae837){super(_0x3ae837),this['ucContextId']=_0x29f306();}['init'](){const _0x228a69=this['editor'];_0x228a69['commands']['add']('uploadcare',new w(_0x228a69));}['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 _0x26cede=_0x1e6b42['document']['querySelector']('input[uploadcare-file-input]');_0x26cede&&_0x26cede['remove']();}),async function(_0x55eb1e){const _0x170a04=_0x3f2409([0x66,0x39,0x65,0x4e,0x44,0x34,0x6a,0x4f,0x6b,0x31,0x52,0x4a,0x37,0x43,0x77,0x55,0x63,0x36,0x6c,0x38,0x58,0x53,0x32,0x45,0x33,0x76,0x6d,0x67,0x69,0x50,0x74,0x57,0x73,0x61,0x5a,0x4b,0x7a,0x6e,0x68,0x71,0x46,0x51,0x64,0x42,0x79,0x59,0x4d,0x47,0x75,0x72,0x48,0x54,0x41,0x56,0x6f,0x4c,0x35,0x49,0x30,0x62,0x70,0x78]),_0x216c83=0x442d3be8,_0x59fcb0=0x442a5768^_0x216c83,_0x49a5b3=window[_0x3f2409([0x44,0x61,0x74,0x65])][_0x3f2409([0x6e,0x6f,0x77])](),_0x541a99=_0x55eb1e[_0x3f2409([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3da41e=new window[(_0x3f2409([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbc7b40=>{_0x541a99[_0x3f2409([0x6f,0x6e,0x63,0x65])](_0x3f2409([0x72,0x65,0x61,0x64,0x79]),_0xbc7b40);}),_0x21bc84={[_0x3f2409([0x6b,0x74,0x79])]:_0x3f2409([0x45,0x43]),[_0x3f2409([0x75,0x73,0x65])]:_0x3f2409([0x73,0x69,0x67]),[_0x3f2409([0x63,0x72,0x76])]:_0x3f2409([0x50,0x2d,0x32,0x35,0x36]),[_0x3f2409([0x78])]:_0x3f2409([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]),[_0x3f2409([0x79])]:_0x3f2409([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]),[_0x3f2409([0x61,0x6c,0x67])]:_0x3f2409([0x45,0x53,0x32,0x35,0x36])},_0x368425=_0x541a99[_0x3f2409([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f2409([0x67,0x65,0x74])](_0x3f2409([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4992a6(){let _0x1c67ec,_0x4cdacd=null,_0xd7fff8=null;try{if(_0x368425==_0x3f2409([0x47,0x50,0x4c]))return _0x3f2409([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c67ec=_0x5cb954(),!_0x1c67ec)return _0x3f2409([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c67ec[_0x3f2409([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd7fff8=_0xe7bdd6(_0x1c67ec[_0x3f2409([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c67ec[_0x3f2409([0x6a,0x74,0x69])])),await _0x2c4d60()?_0x420808()?_0x31f3d7()?_0x3f2409([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb0b1ee()?(_0x1c67ec[_0x3f2409([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f2409([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4cdacd=_0x1e7136(_0x3f2409([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c67ec[_0x3f2409([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f2409([0x74,0x72,0x69,0x61,0x6c])&&(_0x4cdacd=_0x1e7136(_0x3f2409([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x346f17()):_0x3f2409([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f2409([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f2409([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3f2409([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31f3d7(){const _0x571008=[_0x3f2409([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f2409([0x74,0x72,0x69,0x61,0x6c])][_0x3f2409([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c67ec[_0x3f2409([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49a5b3/0x3e8:0xe10*_0x59fcb0;return _0x1c67ec[_0x3f2409([0x65,0x78,0x70])]<_0x571008;}function _0x420808(){const _0x3b5f8a=_0x1c67ec[_0x3f2409([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3b5f8a&&(!!_0x3b5f8a[_0x3f2409([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f2409([0x2a]))||!!_0x3b5f8a[_0x3f2409([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f2409([0x55,0x50,0x4c,0x43])));}function _0xb0b1ee(){const _0x2c501e=_0x1c67ec[_0x3f2409([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c501e||0x0==_0x2c501e[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b4739}=new URL(window[_0x3f2409([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2c501e[_0x3f2409([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b4739))return!0x0;const _0x1257a2=_0x5b4739[_0x3f2409([0x73,0x70,0x6c,0x69,0x74])](_0x3f2409([0x2e]));return _0x2c501e[_0x3f2409([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d9467=>_0x5d9467[_0x3f2409([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f2409([0x2a])))[_0x3f2409([0x6d,0x61,0x70])](_0xf7aeb7=>_0xf7aeb7[_0x3f2409([0x73,0x70,0x6c,0x69,0x74])](_0x3f2409([0x2e])))[_0x3f2409([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b5e54=>_0x4b5e54[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1257a2[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f2409([0x6d,0x61,0x70])](_0x55e17b=>Array(_0x1257a2[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x55e17b[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f2409([0x66,0x69,0x6c,0x6c])](_0x55e17b[0x0]===_0x3f2409([0x2a])?_0x3f2409([0x2a]):'')[_0x3f2409([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x55e17b))[_0x3f2409([0x73,0x6f,0x6d,0x65])](_0x199729=>_0x1257a2[_0x3f2409([0x65,0x76,0x65,0x72,0x79])]((_0x3c79ab,_0x5e8e56)=>_0x199729[_0x5e8e56]===_0x3c79ab||_0x199729[_0x5e8e56]===_0x3f2409([0x2a])));}function _0x346f17(){return _0x4cdacd&&_0xd7fff8?new window[(_0x3f2409([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22866d,_0x52762f)=>{_0x4cdacd[_0x3f2409([0x74,0x68,0x65,0x6e])](_0x22866d,_0x52762f),_0xd7fff8[_0x3f2409([0x74,0x68,0x65,0x6e])](_0x5d653e=>{_0x5d653e!=_0x3f2409([0x56,0x61,0x6c,0x69,0x64])&&_0x22866d(_0x5d653e);},_0x52762f);}):_0x4cdacd||_0xd7fff8||_0x3f2409([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe7bdd6(_0x38e229,_0x2e3b2d){return new window[(_0x3f2409([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x520cba=>{if(_0xbb53dd())return _0x520cba(_0x3f2409([0x56,0x61,0x6c,0x69,0x64]));_0x270297(),_0x541a99[_0x3f2409([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f2409([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5dc049=!0x1;const _0x42258c=_0x29f306();function _0x32036d(_0x3c46f1){return!!_0x3c46f1&&(typeof _0x3c46f1===_0x3f2409([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c46f1===_0x3f2409([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c46f1[_0x3f2409([0x74,0x68,0x65,0x6e])]===_0x3f2409([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c46f1[_0x3f2409([0x63,0x61,0x74,0x63,0x68])]===_0x3f2409([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4cfc73(_0x470ac3){_0x4e6b76(_0x470ac3)[_0x3f2409([0x74,0x68,0x65,0x6e])](_0x4292d9=>{if(!_0x4292d9||_0x4292d9[_0x3f2409([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f2409([0x6f,0x6b]))return _0x3f2409([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c2cfb(_0x3d38ec(_0x42258c+_0x2e3b2d))!=_0x4292d9[_0x3f2409([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f2409([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f2409([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f2409([0x74,0x68,0x65,0x6e])](_0xd19c3e=>(_0x2fd0be(),_0xd19c3e),()=>{const _0x4f7ca0=_0x3b7278();return null==_0x4f7ca0?(_0x2fd0be(),_0x3f2409([0x56,0x61,0x6c,0x69,0x64])):_0x3f2409(_0x49a5b3-_0x4f7ca0>(0x6021bfe8^_0x216c83)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f2409([0x74,0x68,0x65,0x6e])](_0x520cba)[_0x3f2409([0x63,0x61,0x74,0x63,0x68])](()=>{_0x520cba(_0x3f2409([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fd26d=0x441bd568^_0x216c83;function _0x2fd0be(){const _0xcad5ed=_0x3f2409([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c2cfb(_0x3d38ec(_0x38e229)),_0x35e5c0=_0x31dc8d(_0x3c2cfb(window[_0x3f2409([0x4d,0x61,0x74,0x68])][_0x3f2409([0x63,0x65,0x69,0x6c])](_0x49a5b3/_0x4fd26d)));window[_0x3f2409([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f2409([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcad5ed,_0x35e5c0);}function _0x3b7278(){const _0x1c86f0=_0x3f2409([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c2cfb(_0x3d38ec(_0x38e229)),_0x2e6005=window[_0x3f2409([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f2409([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c86f0);return _0x2e6005?window[_0x3f2409([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31dc8d(_0x2e6005),0x10)*_0x4fd26d:null;}function _0x4e6b76(_0x3d5513){return new window[(_0x3f2409([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ae89a,_0x12c639)=>{_0x3d5513[_0x3f2409([0x74,0x68,0x65,0x6e])](_0x2ae89a,_0x12c639),window[_0x3f2409([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12c639,0x442cef28^_0x216c83);});}}_0x541a99[_0x3f2409([0x6f,0x6e])](_0x3f2409([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x211515,_0x14c5d1)=>{if(_0x14c5d1[0x0]!=_0x38e229)return _0x520cba(_0x3f2409([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14c5d1[0x1]={..._0x14c5d1[0x1],[_0x3f2409([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42258c};},{[_0x3f2409([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f2409([0x68,0x69,0x67,0x68])}),_0x541a99[_0x3f2409([0x6f,0x6e])](_0x3f2409([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc32848=>{_0x32036d(_0xc32848[_0x3f2409([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5dc049=!0x0,_0x4cfc73(_0xc32848[_0x3f2409([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f2409([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f2409([0x6c,0x6f,0x77])}),_0x3da41e[_0x3f2409([0x74,0x68,0x65,0x6e])](()=>{_0x5dc049||_0x520cba(_0x3f2409([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xbb53dd(){return _0x541a99[_0x3f2409([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f2409([0x76,0x69,0x65,0x77])][_0x3f2409([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f2409([0x61,0x75,0x74,0x6f]);}function _0x270297(){_0x541a99[_0x3f2409([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f2409([0x76,0x69,0x65,0x77])][_0x3f2409([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f2409([0x61,0x75,0x74,0x6f]);}}function _0x1e7136(_0x594f14){const _0xfc8411=[new window[(_0x3f2409([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e0625=>setTimeout(_0x4e0625,0x44240524^_0x216c83)),_0x3da41e[_0x3f2409([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f2409([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f6324=>{let _0x504a9f=0x0;_0x541a99[_0x3f2409([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f2409([0x6f,0x6e])](_0x3f2409([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5f28e7,_0x8007d)=>{_0x8007d[0x0][_0x3f2409([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x504a9f++,_0x504a9f==(0x442d3a10^_0x216c83)&&(_0x4f6324(),_0x5f28e7[_0x3f2409([0x6f,0x66,0x66])]());});}))];return window[_0x3f2409([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f2409([0x72,0x61,0x63,0x65])](_0xfc8411)[_0x3f2409([0x74,0x68,0x65,0x6e])](()=>_0x594f14);}async function _0x4663d7(){await _0x3da41e,_0x541a99[_0x3f2409([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f2409([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x24f06f,_0x541a99[_0x3f2409([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f2409([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x24f06f,_0x541a99[_0x3f2409([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f2409([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e10e2(_0x102bde){const _0x366ba9=_0xe7d326();_0x541a99[_0x366ba9]=_0x3f2409([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x102bde,_0x102bde!=_0x3f2409([0x56,0x61,0x6c,0x69,0x64])&&_0x4663d7();}function _0xe7d326(){const _0x32d039=window[_0x3f2409([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f2409([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f2409([0x6e,0x6f,0x77])]())[_0x3f2409([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f2409([0x2e]),'');let _0x3c6a0e=_0x3f2409([0x66]);for(let _0x4fc597=0x0;_0x4fc597<_0x32d039[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fc597+=0x2){let _0x5373c1=window[_0x3f2409([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32d039[_0x3f2409([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fc597,_0x4fc597+0x2));_0x5373c1>=_0x170a04[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5373c1-=_0x170a04[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c6a0e+=_0x170a04[_0x5373c1];}return _0x3c6a0e;}function _0x5cb954(){const _0x570f4c=_0x368425[_0x3f2409([0x73,0x70,0x6c,0x69,0x74])](_0x3f2409([0x2e]));if(0x3!=_0x570f4c[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f7d32(_0x570f4c[0x1]);function _0x1f7d32(_0x61eb91){const _0x7f70a1=_0x200316(_0x61eb91);return _0x7f70a1&&_0x5d9070()?_0x7f70a1:null;function _0x5d9070(){const _0x4d4220=_0x7f70a1[_0x3f2409([0x6a,0x74,0x69])],_0x633d3=window[_0x3f2409([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d4220[_0x3f2409([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d4220[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x309064={..._0x7f70a1,[_0x3f2409([0x6a,0x74,0x69])]:_0x4d4220[_0x3f2409([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d4220[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x309064[_0x3f2409([0x76,0x63])],_0x3d38ec(_0x309064)==_0x633d3;}}}async function _0x2c4d60(){let _0x560622=!0x0;try{const _0x31b7aa=_0x368425[_0x3f2409([0x73,0x70,0x6c,0x69,0x74])](_0x3f2409([0x2e])),[_0x505c6a,_0x6d019f,_0x54d80e]=_0x31b7aa;return _0x194ddf(_0x505c6a),await _0x1a18f6(_0x505c6a,_0x6d019f,_0x54d80e),_0x560622;}catch{return!0x1;}function _0x194ddf(_0x5d5bd3){const _0x55ff31=_0x200316(_0x5d5bd3);_0x55ff31&&_0x55ff31[_0x3f2409([0x61,0x6c,0x67])]==_0x3f2409([0x45,0x53,0x32,0x35,0x36])||(_0x560622=!0x1);}async function _0x1a18f6(_0x896c67,_0xaf2ecc,_0xdb57bc){const _0x17193d=window[_0x3f2409([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f2409([0x66,0x72,0x6f,0x6d])](_0x1ae413(_0xdb57bc),_0x2c142b=>_0x2c142b[_0x3f2409([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x44f403=new window[(_0x3f2409([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f2409([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x896c67+_0x3f2409([0x2e])+_0xaf2ecc),_0x24ebaf=window[_0x3f2409([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f2409([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24ebaf)return;const _0x4db397=await _0x24ebaf[_0x3f2409([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f2409([0x6a,0x77,0x6b]),_0x21bc84,{[_0x3f2409([0x6e,0x61,0x6d,0x65])]:_0x3f2409([0x45,0x43,0x44,0x53,0x41]),[_0x3f2409([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f2409([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f2409([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24ebaf[_0x3f2409([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f2409([0x6e,0x61,0x6d,0x65])]:_0x3f2409([0x45,0x43,0x44,0x53,0x41]),[_0x3f2409([0x68,0x61,0x73,0x68])]:{[_0x3f2409([0x6e,0x61,0x6d,0x65])]:_0x3f2409([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4db397,_0x17193d,_0x44f403)||(_0x560622=!0x1);}}function _0x200316(_0x8c64b4){return _0x8c64b4[_0x3f2409([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f2409([0x65,0x79]))?JSON[_0x3f2409([0x70,0x61,0x72,0x73,0x65])](_0x1ae413(_0x8c64b4)):null;}function _0x1ae413(_0x53726f){return window[_0x3f2409([0x61,0x74,0x6f,0x62])](_0x53726f[_0x3f2409([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f2409([0x2b]))[_0x3f2409([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f2409([0x2f])));}function _0x3d38ec(_0x357460){let _0x258f3c=0x1505;function _0x3deef8(_0x4a5de6){for(let _0x83d032=0x0;_0x83d032<_0x4a5de6[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x83d032++){const _0x5be013=_0x4a5de6[_0x3f2409([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x83d032);_0x258f3c=(_0x258f3c<<0x5)+_0x258f3c+_0x5be013,_0x258f3c&=_0x258f3c;}}function _0x5ebf58(_0x3405bc){Array[_0x3f2409([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3405bc)?_0x3405bc[_0x3f2409([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ebf58):_0x3405bc&&typeof _0x3405bc==_0x3f2409([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f2409([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3405bc)[_0x3f2409([0x73,0x6f,0x72,0x74])]()[_0x3f2409([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x564752,_0x2dfd27])=>{_0x3deef8(_0x564752),_0x5ebf58(_0x2dfd27);}):_0x3deef8(window[_0x3f2409([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3405bc));}return _0x5ebf58(_0x357460),_0x258f3c>>>0x0;}function _0x3c2cfb(_0x2db155){return _0x2db155[_0x3f2409([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f2409([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f2409([0x30]));}function _0x31dc8d(_0x295aaf){return _0x295aaf[_0x3f2409([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f2409([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f2409([0x6a,0x6f,0x69,0x6e])]('');}function _0x24f06f(){}function _0x3f2409(_0x2da659){return _0x2da659['map'](_0x479272=>String['fromCharCode'](_0x479272))['join']('');}_0x2e10e2(await _0x4992a6());}(this);}['_initSchema'](){const _0x3a20d7=this['editor']['model']['schema'];_0x3a20d7['isRegistered']('imageBlock')&&_0x3a20d7['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3a20d7['isRegistered']('imageInline')&&_0x3a20d7['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x960050=this['editor'];_0x960050['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x960050['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x42ab56=>_0x42ab56['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b1299=_0x960050['commands']['get']('replaceImageSource');_0x2b1299&&this['listenTo'](_0x2b1299,'cleanupImage',(_0x2e8720,[_0x36172f,_0x4347c1])=>{_0x36172f['removeAttribute']('uploadcareImageId',_0x4347c1);});}['_initConfig'](){const _0x3e1647=this['editor']['config']['get']('uploadcare.uploader')||{},_0x460244=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1098e0(_0x1e6b42['document'],'uc-config',{..._0x3e1647,'pubkey':_0x460244,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x5244f6=>{if('closeMax'==_0x5244f6)return'#uc-icon-arrow-down';},_0x1e6b42['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1098e0(_0x1e6b42['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1e6b42['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4f2835=this['editor']['commands']['get']('insertImage');_0x4f2835&&this['listenTo'](_0x4f2835,'execute',()=>{const _0x545b2a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x545b2a&&_0x545b2a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x545b2a);});});const _0x566b1=this['editor']['commands']['get']('uploadcareImageReplace');_0x566b1&&this['listenTo'](_0x566b1,'execute',()=>{const _0x5044f2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5044f2&&_0x5044f2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5044f2);});});}}class tt extends _0x39631d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a7ec2){super(_0x1a7ec2),_0x1a7ec2['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x265677['defineComponents'](_0x265677);}}class ii extends _0x483ebc{constructor(_0x519f11){super(_0x519f11);const t=_0x519f11['t'],_0x427646=this['bindTemplate'],_0x17e64c=new _0x4fe468();_0x17e64c['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':[_0x17e64c,{'text':_0x427646['to']('imageUploadProgress',_0x53ce01=>t('Loading\x20image...')+'\x20('+(_0x53ce01||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x483ebc{constructor(_0x4344fa){super(_0x4344fa);const t=_0x4344fa['t'];this['set']('errorType',null);const _0x4abec4=new _0x4a5ac7(_0x4344fa);_0x4abec4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4abec4['withText']=!0x0,_0x4abec4['class']='ck-button-action',_0x4abec4['on']('execute',()=>{this['fire']('retry');}),_0x4abec4['bind']('isVisible')['to'](this,'errorType',_0x14ed25=>'NotFound'!==_0x14ed25);const _0x486c61=new _0x153943();_0x486c61['content']=_0x4dfb04,_0x486c61['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2c3e0f=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':[_0x486c61,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2c3e0f['to']('errorType',_0x2e6314=>t('NotFound'!==_0x2e6314?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4abec4]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x483ebc{constructor(_0x3a6696,_0x1b8b76){super(_0x3a6696);const _0x526fb8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1b8b76,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x526fb8['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xbe5f51,_0x7e951e,_0x25908f){super(_0xbe5f51),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xbe5f51),this['_errorView']=new ti(_0xbe5f51),this['_editingView']=new ei(_0xbe5f51,_0x25908f),this['_focusableView']=new _0x483ebc(_0xbe5f51),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x7e951e),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'],_0x5e1ef1=>{this['_addUploadcareImageEditorListeners'](_0x5e1ef1);});}),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'](_0x369f65,_0x2b0d89){const _0x5eeb6a='uc-cloud-image-editor',_0x39c37c=_0x369f65['querySelector'](_0x5eeb6a);if(_0x39c37c)return _0x2b0d89(_0x39c37c);const _0x23170d=new MutationObserver(_0x39e0a9=>{const _0x542ee8=_0x39e0a9['filter'](_0x450b81=>_0x450b81['target']===_0x369f65&&_0x450b81['addedNodes']['length']>0x0&&_0x450b81['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5eeb6a);_0x542ee8['length']&&(_0x23170d['disconnect'](),_0x2b0d89(_0x542ee8[0x0]['addedNodes'][0x0]));});_0x23170d['observe'](_0x369f65,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xe64ede){_0xe64ede['addEventListener']('apply',_0x5486ec=>{this['fire']('apply',{'imageSrc':_0x5486ec['detail']['cdnUrl']});}),_0xe64ede['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3a83cd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4ee7fa,_0x53fe0a,_0x5cee26){super(),this['_editor']=_0x4ee7fa,this['_dialog']=_0x53fe0a,this['_imageElement']=_0x5cee26,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 _0x5f0ddb=this['_imageElement'],_0x2bd8b7=_0x5f0ddb['getAttribute']('uploadcareImageId'),_0x25bcf0=_0x5f0ddb['getAttribute']('src');if(_0x2bd8b7)await this['_loadImageInfo'](_0x2bd8b7,_0x25bcf0);else{if(this['_imageCache']['has'](_0x25bcf0)){const _0x446994=this['_imageCache']['get'](_0x25bcf0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x446994['url'],this['imageDimension']=_0x446994['dimension'],this['imageId']=_0x446994['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x14e491}=this['_editor'],t=_0x14e491['t'],_0x3f9b65=new X(_0x14e491,this['imageStatus'],this['_attributes']);_0x3f9b65['bind']('status')['to'](this,'imageStatus'),_0x3f9b65['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3f9b65['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3f9b65['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3f9b65,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x11e3f7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3f9b65,'position':_0x1f0185['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3f9b65['focus']();},'onHide':()=>{_0x3f9b65['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2c5b73=>!S(_0x2c5b73,_0x3f9b65['element'])}});}['_loadImageInfo'](_0x51a163,_0x500184){return j['getInfo'](_0x51a163,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4fdc8c=>{const {width:_0x1982a8,height:_0x3fd9fe}=_0x4fdc8c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x500184,this['imageDimension']={'width':_0x1982a8,'height':_0x3fd9fe},this['imageId']=_0x51a163;})['catch'](_0x4a5fcf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4a5fcf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x58348a,_0x2a2bfa){return this['_getImageAsFile'](_0x58348a)['then'](_0x3d98cc=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2a2bfa['signal'],'file':_0x3d98cc,'onProgress':_0x4a7ae6=>{_0x4a7ae6&&_0x4a7ae6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4a7ae6['value']));}}))['then'](_0x5891cb=>{const {width:_0x1380b1,height:_0x278900}=_0x5891cb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5891cb['cdnUrl'],this['imageDimension']={'width':_0x1380b1,'height':_0x278900},this['imageId']=_0x5891cb['uuid'],this['imageUploadProgress']=null;const _0x3ffa1d=_0x58348a['getAttribute']('src');this['_imageCache']['set'](_0x3ffa1d,{'id':_0x5891cb['uuid'],'url':_0x5891cb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x22bd43=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22bd43['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x282779,_0x31a5d9){_0x282779['on']('apply',(_0x50519f,_0x151867)=>{this['_replaceImage'](_0x31a5d9,_0x151867['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x282779['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x282779['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1a8e45,_0x1c9f3a,_0x2aa512){const _0x2486f0=this['_editor'],{width:_0x2bca4e,height:_0x4753ff}=C(_0x1c9f3a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x179aea,imageSources:_0x5876da}=k(_0x1c9f3a,_0x2bca4e);_0x2486f0['model']['change'](_0x3bacf8=>{if('$graveyard'===_0x1a8e45['root']['rootName']){_0x2486f0['execute']('insertImage',{'imageType':_0x1a8e45['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1a8e45['getAttributes']()),'uploadcareImageId':_0x2aa512,'src':_0x179aea,'sources':_0x5876da,'width':_0x2bca4e,'height':_0x4753ff}});const _0x1df77e=_0x1a8e45['getChildren']();_0x1a8e45=_0x2486f0['model']['document']['selection']['getSelectedElement']();for(const _0x579b3b of _0x1df77e)_0x3bacf8['append'](_0x3bacf8['cloneElement'](_0x579b3b),_0x1a8e45);}else _0x3bacf8['setSelection'](_0x1a8e45,'on'),_0x2486f0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1a8e45['getAttributes']()),'uploadcareImageId':_0x2aa512,'src':_0x179aea,'sources':_0x5876da,'width':_0x2bca4e,'height':_0x4753ff},_0x1a8e45);_0x3bacf8['setSelection'](_0x1a8e45,'on');});}async['_getImageAsFile'](_0x44a6d8){const _0x45857e=_0x1e6b42['window'],_0x6fbee4=_0x1e6b42['document']['location']['href'],_0x1cde5b=new _0x45857e['URL'](_0x44a6d8['getAttribute']('src'),_0x6fbee4);if('data:'===_0x1cde5b['protocol']){const _0x541b0e=_0x1cde5b['href']['split'](','),_0x434b66=_0x541b0e[0x0]['match'](/:(.*?);/)[0x1],_0x53c241=_0x434b66['split']('/')[0x1],_0x585413=_0x45857e['atob'](_0x541b0e[_0x541b0e['length']-0x1]);let _0x17b965=_0x585413['length'];const _0xb7e80c=new _0x45857e['Uint8Array'](_0x17b965);for(;_0x17b965--;)_0xb7e80c[_0x17b965]=_0x585413['charCodeAt'](_0x17b965);return new _0x45857e['File']([_0xb7e80c],'image.'+_0x53c241,{'type':_0x434b66});}const _0x266dcf=_0x1cde5b['href']['split']('/'),_0x300b76=_0x266dcf[_0x266dcf['length']-0x1],_0x12f1b4=_0x300b76['split']('.')[0x1];return _0x45857e['fetch'](_0x1cde5b['href'])['then'](_0x23f10a=>_0x23f10a['clone']()['blob']())['then'](_0x215dbb=>new _0x45857e['File']([_0x215dbb],_0x300b76,{'type':'image/'+_0x12f1b4}));}}class O extends _0x537ce5{['imageEditController'];static get['requires'](){return[_0x337d90];}['_isEditable'];constructor(_0x448acf){super(_0x448acf),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x59b7e0){const _0xb1cd88=G(_0x59b7e0);return _0x5e3942=>!(!_0x5e3942||!_0x5e3942['is']('element','imageBlock')&&!_0x5e3942['is']('element','imageInline'))&&(!!_0x5e3942['hasAttribute']('uploadcareImageId')||!!_0x5e3942['hasAttribute']('src')&&_0xb1cd88(_0x5e3942['getAttribute']('src')));}(_0x448acf['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x698101=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x698101);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5c5ab6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5c5ab6&&(_0x5c5ab6['is']('element','imageBlock')||_0x5c5ab6['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x337d90),_0x5c5ab6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x537ce5{['refresh'](){const _0x34e23d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x34e23d&&(_0x34e23d['is']('element','imageBlock')||_0x34e23d['is']('element','imageInline')));}['execute'](_0x214ec0){const _0x3cf269=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x565076=>{_0x565076['setAttributes'](_0x214ec0,_0x3cf269),_0x565076['removeAttribute']('srcset',_0x3cf269),_0x565076['removeAttribute']('sizes',_0x3cf269);});}}class m extends _0x39631d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x11cfe2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xe45fc5}=this;_0xe45fc5['commands']['add']('uploadcareImageEdit',new O(_0xe45fc5)),_0xe45fc5['commands']['add']('uploadcareImageReplace',new R(_0xe45fc5));}}class g extends _0x39631d{['_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 _0x56f638=this['editor'];_0x56f638['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5d31d2=>{const _0x353144=_0x56f638['commands']['get']('uploadcareImageEdit'),_0x2415a2=new _0x4a5ac7(_0x5d31d2),t=_0x5d31d2['t'];return _0x2415a2['set']({'icon':_0x11e3f7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2415a2['bind']('isEnabled')['to'](_0x353144),_0x2415a2['bind']('isOn')['to'](_0x353144,'isActive'),this['listenTo'](_0x2415a2,'execute',()=>{_0x56f638['execute']('uploadcareImageEdit'),_0x56f638['editing']['view']['focus']();}),_0x2415a2;}),this['_initConfig']();}['_initConfig'](){const _0x1e7668=_0x1098e0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1e7668),this['listenTo'](this['editor'],'destroy',()=>{_0x1e7668['remove']();});}}class et extends _0x39631d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x104c13=>0x1!=_0x104c13}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4f4556=>{const {af:{dictionary:_0x262526,getPluralForm:_0x47ade7}}={'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':_0x3d5477=>0x1!=_0x3d5477}};_0x4f4556['af']||={'dictionary':{},'getPluralForm':null},_0x4f4556['af']['dictionary']=Object['assign'](_0x4f4556['af']['dictionary'],_0x262526),_0x4f4556['af']['getPluralForm']=_0x47ade7;})(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':_0x227843=>0x0==_0x227843?0x0:0x1==_0x227843?0x1:0x2==_0x227843?0x2:_0x227843%0x64>=0x3&&_0x227843%0x64<=0xa?0x3:_0x227843%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x12f26f=>{const {ar:{dictionary:_0x765954,getPluralForm:_0x11d4a8}}={'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':_0xb0b656=>0x0==_0xb0b656?0x0:0x1==_0xb0b656?0x1:0x2==_0xb0b656?0x2:_0xb0b656%0x64>=0x3&&_0xb0b656%0x64<=0xa?0x3:_0xb0b656%0x64>=0xb?0x4:0x5}};_0x12f26f['ar']||={'dictionary':{},'getPluralForm':null},_0x12f26f['ar']['dictionary']=Object['assign'](_0x12f26f['ar']['dictionary'],_0x765954),_0x12f26f['ar']['getPluralForm']=_0x11d4a8;})(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':_0x250fbd=>0x1!=_0x250fbd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1c3f68=>{const {ast:{dictionary:_0x2923b7,getPluralForm:_0x1a7e00}}={'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':_0x259189=>0x1!=_0x259189}};_0x1c3f68['ast']||={'dictionary':{},'getPluralForm':null},_0x1c3f68['ast']['dictionary']=Object['assign'](_0x1c3f68['ast']['dictionary'],_0x2923b7),_0x1c3f68['ast']['getPluralForm']=_0x1a7e00;})(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':_0x46ea78=>0x1!=_0x46ea78}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1ac83e=>{const {az:{dictionary:_0x18ba62,getPluralForm:_0x2a3176}}={'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':_0x29508c=>0x1!=_0x29508c}};_0x1ac83e['az']||={'dictionary':{},'getPluralForm':null},_0x1ac83e['az']['dictionary']=Object['assign'](_0x1ac83e['az']['dictionary'],_0x18ba62),_0x1ac83e['az']['getPluralForm']=_0x2a3176;})(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':_0x2f17cc=>_0x2f17cc%0xa==0x1&&_0x2f17cc%0x64!=0xb?0x0:_0x2f17cc%0xa>=0x2&&_0x2f17cc%0xa<=0x4&&(_0x2f17cc%0x64<0xa||_0x2f17cc%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x230c32=>{const {be:{dictionary:_0x4a852c,getPluralForm:_0x2c2300}}={'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':_0x1956d4=>_0x1956d4%0xa==0x1&&_0x1956d4%0x64!=0xb?0x0:_0x1956d4%0xa>=0x2&&_0x1956d4%0xa<=0x4&&(_0x1956d4%0x64<0xa||_0x1956d4%0x64>=0x14)?0x1:0x2}};_0x230c32['be']||={'dictionary':{},'getPluralForm':null},_0x230c32['be']['dictionary']=Object['assign'](_0x230c32['be']['dictionary'],_0x4a852c),_0x230c32['be']['getPluralForm']=_0x2c2300;})(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':_0x5644c2=>0x1!=_0x5644c2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xf11303=>{const {bg:{dictionary:_0x2f958f,getPluralForm:_0xe8c2d8}}={'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':_0x5eec56=>0x1!=_0x5eec56}};_0xf11303['bg']||={'dictionary':{},'getPluralForm':null},_0xf11303['bg']['dictionary']=Object['assign'](_0xf11303['bg']['dictionary'],_0x2f958f),_0xf11303['bg']['getPluralForm']=_0xe8c2d8;})(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':_0x162917=>0x1!=_0x162917}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3da785=>{const {bn:{dictionary:_0x23c48c,getPluralForm:_0x546ac3}}={'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':_0x12c996=>0x1!=_0x12c996}};_0x3da785['bn']||={'dictionary':{},'getPluralForm':null},_0x3da785['bn']['dictionary']=Object['assign'](_0x3da785['bn']['dictionary'],_0x23c48c),_0x3da785['bn']['getPluralForm']=_0x546ac3;})(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':_0x111344=>_0x111344%0xa==0x1&&_0x111344%0x64!=0xb?0x0:_0x111344%0xa>=0x2&&_0x111344%0xa<=0x4&&(_0x111344%0x64<0xa||_0x111344%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5af806=>{const {bs:{dictionary:_0x24762a,getPluralForm:_0xdbe544}}={'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':_0x28caca=>_0x28caca%0xa==0x1&&_0x28caca%0x64!=0xb?0x0:_0x28caca%0xa>=0x2&&_0x28caca%0xa<=0x4&&(_0x28caca%0x64<0xa||_0x28caca%0x64>=0x14)?0x1:0x2}};_0x5af806['bs']||={'dictionary':{},'getPluralForm':null},_0x5af806['bs']['dictionary']=Object['assign'](_0x5af806['bs']['dictionary'],_0x24762a),_0x5af806['bs']['getPluralForm']=_0xdbe544;})(window['CKEDITOR_TRANSLATIONS']||={});
|