@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250527.0 → 0.0.0-nightly-20250529.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 _0x2c287e,Command as _0xf7e4e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x110a52,IconGooglePhotos as _0x49354f,IconGoogleDrive as _0x910440,IconFacebook as _0xf4981a,IconDropbox as _0xba03bb,IconUploadcareLink as _0x5a8f41,IconUploadcareImageUpload as _0x5a8393,IconError as et,IconUploadcareImageEdit as _0x3e57fb}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x377fcc,MenuBarMenuListItemButtonView as _0x442465,View as _0x4c8056,FocusCycler as _0x309fca,Dialog as _0x165ee0,DialogViewPosition as _0x528f2d,SpinnerView as _0x107ead,IconView as at,Notification as _0x488d95}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1b6eb3,DomEmitterMixin as _0x54558a,global as _0x174993,getAncestors as _0x15f199,ObservableMixin as _0x3b06fb,createElement as _0x386c6f,uid as _0x82b7b1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2f90f2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2463eb,info as _0x3421d3}from'@uploadcare/upload-client';import*as _0x2f16dc from'@uploadcare/file-uploader';var o=function(_0x5e3977){return _0x5e3977['Local']='local',_0x5e3977['URL']='url',_0x5e3977['Dropbox']='dropbox',_0x5e3977['GDrive']='gdrive',_0x5e3977['Facebook']='facebook',_0x5e3977['GPhotos']='gphotos',_0x5e3977['OneDrive']='onedrive',_0x5e3977;}({});function _(_0x262eb4,_0x1df8bc,_0x2bcdfe){const t=_0x262eb4['t'],_0x40d96e=_0x262eb4['t'];switch(_0x1df8bc){case o['Local']:return{'text':_0x40d96e('Insert'===_0x2bcdfe?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x40d96e('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2bcdfe?_0x40d96e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x40d96e('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1df8bc;}}class e extends _0x2c287e{['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 _0x2511aa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x74fbc3;for(const _0x52b456 in _0x2511aa){const _0x1e7235=_0x52b456,_0x4d5c90=_0x2511aa[_0x1e7235];if('uploadcareLicenseKeyValid'==_0x4d5c90||'uploadcareLicenseKeyInvalid'==_0x4d5c90||'uploadcareLicenseKeyExpired'==_0x4d5c90||'uploadcareLicenseKeyDomainLimit'==_0x4d5c90||'uploadcareLicenseKeyNotAllowed'==_0x4d5c90||'uploadcareLicenseKeyEvaluationLimit'==_0x4d5c90||'uploadcareLicenseKeyTrialLimit'==_0x4d5c90||'uploadcareLicenseKeyUsageLimit'==_0x4d5c90){delete _0x2511aa[_0x1e7235],_0x74fbc3=_0x4d5c90,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x74fbc3&&_0x2511aa['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x74fbc3&&_0x2511aa['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x74fbc3&&_0x2511aa['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x74fbc3&&_0x2511aa['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x74fbc3&&_0x2511aa['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x74fbc3&&_0x2511aa['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x74fbc3&&_0x2511aa['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x453f80}=this,_0x1a7145=_0x453f80['commands']['get']('uploadcare');if(!_0x1a7145)return;const _0xee85c3=this['_normalizeConfigSourceList'](_0x453f80['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3cf9f7,_0x5b15a9)=>{const _0x1ba7e7=this['_getIntegrationKey'](_0x5b15a9['type']);return _0x3cf9f7[_0x1ba7e7]||(_0x3cf9f7[_0x1ba7e7]=[]),_0x3cf9f7[_0x1ba7e7]['push'](_0x5b15a9),_0x3cf9f7;},{});_0x453f80['plugins']['has']('ImageInsertUI')&&_0x453f80['commands']['get']('uploadcare')&&Object['entries'](_0xee85c3)['forEach'](([_0x30afca,_0x24db5b])=>{_0x453f80['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x30afca,'observable':()=>_0x1a7145,'buttonViewCreator':()=>this['_createToolbarButton'](_0x24db5b),'formViewCreator':()=>this['_createDropdownButtons'](_0x24db5b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x24db5b),'override':'assetManager'!==_0x30afca});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xe9c3f7){const {locale:_0x30dd08}=this['editor'];return _0xe9c3f7['map'](_0x35ea6d=>{const _0x1da6cb=_(_0x30dd08,_0x35ea6d,'Insert');switch(_0x35ea6d){case o['Local']:return{'icon':_0x5a8393,'type':o['Local'],..._0x1da6cb};case o['URL']:return{'icon':_0x5a8f41,'type':o['URL'],..._0x1da6cb};case o['Dropbox']:return{'icon':_0xba03bb,'type':o['Dropbox'],..._0x1da6cb};case o['Facebook']:return{'icon':_0xf4981a,'type':o['Facebook'],..._0x1da6cb};case o['GDrive']:return{'icon':_0x910440,'type':o['GDrive'],..._0x1da6cb};case o['GPhotos']:return{'icon':_0x49354f,'type':o['GPhotos'],..._0x1da6cb};case o['OneDrive']:return{'icon':_0x110a52,'type':o['OneDrive'],..._0x1da6cb};}});}['_getIntegrationKey'](_0x2b0952){switch(_0x2b0952){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2d4c2b,_0x5a4d22){const _0x47816c=this['editor'],_0x572134=new _0x2d4c2b(_0x47816c['locale']),_0x351db3=_0x47816c['commands']['get']('uploadcare');return _0x572134['bind']('isEnabled')['to'](_0x351db3),_0x572134['on']('execute',()=>{_0x351db3['execute'](_0x5a4d22);}),_0x572134;}['_createToolbarButton'](_0x3fd2a6){const {locale:_0x31293f}=this['editor'],_0x3482b6=this['editor']['plugins']['get']('ImageInsertUI'),_0x2ddc57=_0x3fd2a6[0x0],_0x53122e=this['_createButton'](_0x377fcc,_0x2ddc57['type']);return _0x53122e['icon']=_0x2ddc57['icon'],_0x53122e['bind']('label')['to'](_0x3482b6,'isImageSelected',_0x2cbde2=>_(_0x31293f,_0x2ddc57['type'],_0x2cbde2?'Replace':'Insert')['text']),_0x53122e['tooltip']=!0x0,_0x53122e;}['_createDropdownButtons'](_0x2978d9){const {locale:_0x38f45c}=this['editor'],_0x340f1f=this['editor']['plugins']['get']('ImageInsertUI');return _0x2978d9['map'](_0x3ab753=>{const _0x4db88b=this['_createButton'](_0x377fcc,_0x3ab753['type']);return _0x4db88b['withText']=!0x0,_0x4db88b['icon']=_0x3ab753['icon'],_0x4db88b['bind']('label')['to'](_0x340f1f,'isImageSelected',_0x58e332=>_(_0x38f45c,_0x3ab753['type'],_0x58e332?'Replace':'Insert')['text']),_0x4db88b;});}['_createMenuBarButtons'](_0xd475d9){return _0xd475d9['map'](_0x48f5ce=>{const _0x27d3bf=this['_createButton'](_0x442465,_0x48f5ce['type']);return _0x27d3bf['icon']=_0x48f5ce['icon'],_0x27d3bf['label']=_0x48f5ce['shortText'],_0x27d3bf;});}}class q extends _0x4c8056{['focusTracker'];['focusCycler'];constructor(_0x19ab21){super(_0x19ab21),this['focusTracker']=new _0x1b6eb3(),this['focusCycler']=new _0x309fca({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x408656){super(_0x408656),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0xe23fd8,_0x1e9e1b){const _0xe31043=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3655f9=>_0x3655f9<=_0x1e9e1b)['map'](_0x508ae4=>_0xe23fd8['replace'](/\/$/,'')+'/-/resize/'+_0x508ae4+'x/\x20'+_0x508ae4+'w');return{'imageFallbackUrl':_0xe23fd8,'imageSources':[{'srcset':_0xe31043['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1e9e1b+'px)\x20100vw,\x20'+_0x1e9e1b+'px','type':'image/webp'}]};}function A(_0x338e62,_0x2eff63,_0x5c1e33){const _0x2efb3d=_0x338e62['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2efb3d?parseInt(_0x2efb3d[0x1],0xa):_0x2eff63,'height':_0x2efb3d?parseInt(_0x2efb3d[0x2],0xa):_0x5c1e33};}function m(_0x7e0bf7,_0x2d4137){const _0xa3fb31=Object['create'](_0x54558a),_0x47fe42=_0x7e0bf7['plugins']['get']('ImageUtils'),_0x2d40ba=_0x7e0bf7['editing']['mapper']['toViewElement'](_0x2d4137),_0x1fa4c6=_0x47fe42['findViewImgElement'](_0x2d40ba),_0x1b0952=_0x7e0bf7['editing']['view']['domConverter']['viewToDom'](_0x1fa4c6),_0xda582c=_0x2d4137['getAttribute']('width'),_0x3a809f=_0x2d4137['getAttribute']('height'),_0x233e0a='image-processing';_0x7e0bf7['editing']['view']['change'](_0x495a65=>{_0x495a65['addClass'](_0x233e0a,_0x2d40ba),_0x495a65['setStyle']('aspect-ratio',_0xda582c+'/'+_0x3a809f,_0x1fa4c6);}),_0xa3fb31['listenTo'](_0x1b0952,'load',()=>{_0xa3fb31['stopListening'](_0x1b0952,'load'),_0x7e0bf7['editing']['view']['change'](_0x557444=>{_0x557444['removeClass'](_0x233e0a,_0x2d40ba),_0x557444['removeStyle']('aspect-ratio',_0x1fa4c6);});});}function V(_0xc6b248){if(Array['isArray'](_0xc6b248)){const _0x13363d=_0xc6b248['map'](V);return _0x5db24b=>_0x13363d['some'](_0x52bbef=>_0x52bbef(_0x5db24b));}if('origin'==_0xc6b248){const _0x5b9566=_0x174993['window']['location']['origin'];return _0xd24f4e=>new URL(_0xd24f4e,_0x174993['document']['baseURI'])['origin']==_0x5b9566;}return'function'==typeof _0xc6b248?_0xc6b248:_0xc6b248 instanceof RegExp?_0x44f71b=>!(!_0x44f71b['match'](_0xc6b248)&&!_0x44f71b['replace'](/^https?:\/\//,'')['match'](_0xc6b248)):()=>!0x1;}function F(_0x4face7,_0x8f643a){return _0x15f199(_0x4face7['target'])['includes'](_0x8f643a);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3b06fb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xaaef38,_0x191d24,_0x109f29){super(),this['_editor']=_0xaaef38,this['_editing']=_0x191d24,this['_dialog']=_0xaaef38['plugins']['get'](_0x165ee0),this['_api']=_0x191d24['ctxElement']['getAPI'](),this['_type']=_0x109f29,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:_0xb126b6,model:_0x56fde9}=this['_editor'],_0x46d81d=_0x56fde9['document']['selection']['getSelectedElement'](),_0x384158=_0x46d81d&&(_0x46d81d['is']('element','imageBlock')||_0x46d81d['is']('element','imageInline'));this['_formView']=new S(_0xb126b6),this['_dialog']['show']({'id':'uploadCare','icon':_0x5a8393,'title':_(_0xb126b6,this['_type'],_0x384158?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x528f2d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x282561=>!F(_0x282561,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4ee62e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x42c48b=>{const _0x219538=_0x4ee62e['length'];for(const _0x1130cf of _0x4ee62e){const _0x487dbe=_0x1130cf===_0x4ee62e[_0x219538-0x1],{cdnUrl:_0x2fcf3e,fileInfo:_0x5dd0fd}=_0x1130cf;if(!_0x2fcf3e||!_0x5dd0fd)continue;const {width:_0x159c3b,height:_0x3d0733}=_0x5dd0fd['imageInfo'],_0xb2dca1=A(_0x2fcf3e,_0x159c3b,_0x3d0733),_0x23746f=E(_0x2fcf3e,_0xb2dca1['width']),_0xb94ad4={'id':_0x5dd0fd['uuid'],'type':'image','attributes':{'imageDimension':_0xb2dca1,..._0x23746f}};this['_insertAsset'](_0xb94ad4,_0x487dbe,_0x42c48b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5056fc=>{'idle'===_0x5056fc['detail']['status']&&!_0x5056fc['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x556e0a,_0xabdcbd,_0x2d2549){const _0x4c018d=this['_editor']['model']['document']['selection'],_0x718990=_0x4c018d['getSelectedElement'](),_0x39e806=!(!_0x718990||!_0x718990['is']('element','imageInline'));_0x2d2549['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x556e0a,_0x39e806),_0xabdcbd||_0x2d2549['setSelection'](_0x4c018d['getLastPosition']());}['_insertImage'](_0x2f2fcb,_0x302425){const _0x5cf80b=this['_editor'],{imageDimension:_0x58a9d,imageFallbackUrl:_0x37ac37,imageSources:_0x310231}=_0x2f2fcb['attributes'];_0x5cf80b['execute']('insertImage',{'imageType':_0x302425?'imageInline':null,'source':{'uploadcareImageId':_0x2f2fcb['id'],'src':_0x37ac37,'sources':_0x310231,..._0x58a9d}});}}class n extends _0xf7e4e{['_editing'];['_controller']=null;static get['requires'](){return[_0x165ee0,i];}constructor(_0x14023d){super(_0x14023d),this['_editing']=_0x14023d['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1f58c6){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1f58c6);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5ad667,publicKey:_0x1662f7,signal:_0x239742,onProgress:_0x344ad3}){return _0x2463eb(_0x5ad667,{'publicKey':_0x1662f7,'store':'auto','signal':_0x239742,'onProgress':_0x344ad3});}static['getInfo'](_0x31977f,_0x2bd8c7){return _0x3421d3(_0x31977f,_0x2bd8c7);}}class p extends _0x2c287e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2f90f2,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4780bc=this['editor'];if(!!!_0x4780bc['config']['get']('uploadcare'))return;_0x4780bc['plugins']['get'](_0x2f90f2)['createUploadAdapter']=_0x3dee1f=>new x(_0x3dee1f,_0x4780bc),_0x4780bc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x280d48,{imageElement:_0x2236db,data:_0xe3bc00})=>{_0x4780bc['model']['change'](_0xe519a4=>{_0xe519a4['setAttribute']('uploadcareImageId',_0xe3bc00['uploadcareImageId'],_0x2236db);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x1fe582,_0x29553f){this['loader']=_0x1fe582,this['editor']=_0x29553f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xab62b3=this['editor']['config']['get']('uploadcare.pubkey'),_0x2ae715=await this['loader']['file'];return C['upload']({'file':_0x2ae715,'publicKey':_0xab62b3,'signal':this['controller']['signal'],'onProgress':_0x2cf7d5=>{_0x2cf7d5&&_0x2cf7d5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2cf7d5['value']);}})['then'](async _0x5678f4=>{const {imageFallbackUrl:_0x14adb8,imageSources:_0x593a47}=E(_0x5678f4['cdnUrl'],_0x5678f4['imageInfo']['width']);return{'uploadcareImageId':_0x5678f4['uuid'],'default':_0x14adb8,'sources':_0x593a47};})['catch'](()=>{const _0x6797de=t('Cannot\x20upload\x20file:')+('\x20'+_0x2ae715['name']+'.');return Promise['reject'](_0x6797de);});}['abort'](){this['controller']['abort']();}}class i extends _0x2c287e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x165ee0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x74f81a=this['editor'];_0x74f81a['commands']['add']('uploadcare',new n(_0x74f81a));}['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 _0x1c44a2=_0x174993['document']['querySelector']('input[uploadcare-file-input]');_0x1c44a2&&_0x1c44a2['remove']();}),async function(_0x493e39){const _0x14df80=_0x30958e([0x57,0x71,0x73,0x33,0x4a,0x4f,0x52,0x35,0x32,0x56,0x4d,0x51,0x67,0x47,0x69,0x54,0x74,0x4b,0x75,0x55,0x53,0x79,0x36,0x44,0x50,0x78,0x38,0x63,0x37,0x61,0x45,0x6a,0x68,0x5a,0x70,0x42,0x66,0x6b,0x41,0x34,0x76,0x4c,0x62,0x6c,0x6f,0x59,0x6d,0x58,0x64,0x31,0x4e,0x7a,0x77,0x39,0x30,0x65,0x6e,0x46,0x43,0x72,0x49,0x48]),_0x4292e7=0x3053539b,_0x3d0142=0x30543a93^_0x4292e7,_0x1eb8da=window[_0x30958e([0x44,0x61,0x74,0x65])][_0x30958e([0x6e,0x6f,0x77])](),_0x38a021=_0x493e39[_0x30958e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x21ce24=new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x548d39=>{_0x38a021[_0x30958e([0x6f,0x6e,0x63,0x65])](_0x30958e([0x72,0x65,0x61,0x64,0x79]),_0x548d39);}),_0x490c0e={[_0x30958e([0x6b,0x74,0x79])]:_0x30958e([0x45,0x43]),[_0x30958e([0x75,0x73,0x65])]:_0x30958e([0x73,0x69,0x67]),[_0x30958e([0x63,0x72,0x76])]:_0x30958e([0x50,0x2d,0x32,0x35,0x36]),[_0x30958e([0x78])]:_0x30958e([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]),[_0x30958e([0x79])]:_0x30958e([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]),[_0x30958e([0x61,0x6c,0x67])]:_0x30958e([0x45,0x53,0x32,0x35,0x36])},_0x53bf31=_0x38a021[_0x30958e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30958e([0x67,0x65,0x74])](_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7ecf3e(){let _0x4c0f85,_0x43acf6=null,_0x494253=null;try{if(_0x53bf31==_0x30958e([0x47,0x50,0x4c]))return _0x30958e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c0f85=_0x474a42(),!_0x4c0f85)return _0x30958e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c0f85[_0x30958e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x494253=_0x159a75(_0x4c0f85[_0x30958e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c0f85[_0x30958e([0x6a,0x74,0x69])])),await _0x3dbcb9()?_0x26e4db()?_0x4aca19()?_0x30958e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b3942()?(_0x4c0f85[_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30958e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43acf6=_0x3bbdbd(_0x30958e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c0f85[_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30958e([0x74,0x72,0x69,0x61,0x6c])&&(_0x43acf6=_0x3bbdbd(_0x30958e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ee2d2()):_0x30958e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30958e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30958e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x30958e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4aca19(){const _0x483c7a=[_0x30958e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30958e([0x74,0x72,0x69,0x61,0x6c])][_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c0f85[_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1eb8da/0x3e8:0xe10*_0x3d0142;return _0x4c0f85[_0x30958e([0x65,0x78,0x70])]<_0x483c7a;}function _0x26e4db(){const _0x371960=_0x4c0f85[_0x30958e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x371960&&(!!_0x371960[_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30958e([0x2a]))||!!_0x371960[_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30958e([0x55,0x50,0x4c,0x43])));}function _0x5b3942(){const _0xbbb899=_0x4c0f85[_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xbbb899||0x0==_0xbbb899[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b3e03}=new URL(window[_0x30958e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xbbb899[_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b3e03))return!0x0;const _0x11da81=_0x1b3e03[_0x30958e([0x73,0x70,0x6c,0x69,0x74])](_0x30958e([0x2e]));return _0xbbb899[_0x30958e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41e09e=>_0x41e09e[_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30958e([0x2a])))[_0x30958e([0x6d,0x61,0x70])](_0x49745a=>_0x49745a[_0x30958e([0x73,0x70,0x6c,0x69,0x74])](_0x30958e([0x2e])))[_0x30958e([0x73,0x6f,0x6d,0x65])](_0x20b228=>_0x11da81[_0x30958e([0x65,0x76,0x65,0x72,0x79])]((_0x1f0591,_0x211f21)=>_0x20b228[_0x211f21]===_0x1f0591||_0x20b228[_0x211f21]===_0x30958e([0x2a])));}function _0x4ee2d2(){return _0x43acf6&&_0x494253?new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ba077,_0x43fe87)=>{_0x43acf6[_0x30958e([0x74,0x68,0x65,0x6e])](_0x4ba077,_0x43fe87),_0x494253[_0x30958e([0x74,0x68,0x65,0x6e])](_0x128e4b=>{_0x128e4b!=_0x30958e([0x56,0x61,0x6c,0x69,0x64])&&_0x4ba077(_0x128e4b);},_0x43fe87);}):_0x43acf6||_0x494253||_0x30958e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x159a75(_0x5770df,_0x24c419){return new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb5cb9a=>{if(_0xdd8c5f())return _0xb5cb9a(_0x30958e([0x56,0x61,0x6c,0x69,0x64]));_0x2ee5df(),_0x38a021[_0x30958e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30958e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x400d90=!0x1;const _0x43599c=_0x82b7b1();function _0x6ac192(_0x2e09ec){return!!_0x2e09ec&&(typeof _0x2e09ec===_0x30958e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e09ec===_0x30958e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e09ec[_0x30958e([0x74,0x68,0x65,0x6e])]===_0x30958e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e09ec[_0x30958e([0x63,0x61,0x74,0x63,0x68])]===_0x30958e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xaa0079(_0x54b310){_0x1f60b6(_0x54b310)[_0x30958e([0x74,0x68,0x65,0x6e])](_0x505a15=>{if(!_0x505a15||_0x505a15[_0x30958e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30958e([0x6f,0x6b]))return _0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57016a(_0x57653f(_0x43599c+_0x24c419))!=_0x505a15[_0x30958e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30958e([0x56,0x61,0x6c,0x69,0x64]);})[_0x30958e([0x74,0x68,0x65,0x6e])](_0x30a287=>(_0x2b26d6(),_0x30a287),()=>{const _0x3e272c=_0x14848e();return null==_0x3e272c?(_0x2b26d6(),_0x30958e([0x56,0x61,0x6c,0x69,0x64])):_0x30958e(_0x1eb8da-_0x3e272c>(0x145fd79b^_0x4292e7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30958e([0x74,0x68,0x65,0x6e])](_0xb5cb9a)[_0x30958e([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb5cb9a(_0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x152b20=0x3065bd1b^_0x4292e7;function _0x2b26d6(){const _0x3255d4=_0x30958e([0x6c,0x6c,0x63,0x74,0x2d])+_0x57016a(_0x57653f(_0x5770df)),_0x88d5e0=_0x3cbe7b(_0x57016a(window[_0x30958e([0x4d,0x61,0x74,0x68])][_0x30958e([0x63,0x65,0x69,0x6c])](_0x1eb8da/_0x152b20)));window[_0x30958e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30958e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3255d4,_0x88d5e0);}function _0x14848e(){const _0x111ca6=_0x30958e([0x6c,0x6c,0x63,0x74,0x2d])+_0x57016a(_0x57653f(_0x5770df)),_0x2d9788=window[_0x30958e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30958e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x111ca6);return _0x2d9788?window[_0x30958e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cbe7b(_0x2d9788),0x10)*_0x152b20:null;}function _0x1f60b6(_0x37df77){return new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bae6f,_0x3c4c6f)=>{_0x37df77[_0x30958e([0x74,0x68,0x65,0x6e])](_0x5bae6f,_0x3c4c6f),window[_0x30958e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c4c6f,0x3052875b^_0x4292e7);});}}_0x38a021[_0x30958e([0x6f,0x6e])](_0x30958e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x253cf8,_0xaf2776)=>{if(_0xaf2776[0x0]!=_0x5770df)return _0xb5cb9a(_0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xaf2776[0x1]={..._0xaf2776[0x1],[_0x30958e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43599c};},{[_0x30958e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30958e([0x68,0x69,0x67,0x68])}),_0x38a021[_0x30958e([0x6f,0x6e])](_0x30958e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3fc387=>{_0x6ac192(_0x3fc387[_0x30958e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x400d90=!0x0,_0xaa0079(_0x3fc387[_0x30958e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30958e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30958e([0x6c,0x6f,0x77])}),_0x21ce24[_0x30958e([0x74,0x68,0x65,0x6e])](()=>{_0x400d90||_0xb5cb9a(_0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xdd8c5f(){return _0x38a021[_0x30958e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30958e([0x76,0x69,0x65,0x77])][_0x30958e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30958e([0x61,0x75,0x74,0x6f]);}function _0x2ee5df(){_0x38a021[_0x30958e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30958e([0x76,0x69,0x65,0x77])][_0x30958e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30958e([0x61,0x75,0x74,0x6f]);}}function _0x3bbdbd(_0x110e38){const _0x2919a2=[new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x259b44=>setTimeout(_0x259b44,0x305a6d57^_0x4292e7)),_0x21ce24[_0x30958e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x63622d=>{let _0x4b1fb6=0x0;_0x38a021[_0x30958e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30958e([0x6f,0x6e])](_0x30958e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a1241,_0x29b4f8)=>{_0x29b4f8[0x0][_0x30958e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4b1fb6++,_0x4b1fb6==(0x30535263^_0x4292e7)&&(_0x63622d(),_0x1a1241[_0x30958e([0x6f,0x66,0x66])]());});}))];return window[_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30958e([0x72,0x61,0x63,0x65])](_0x2919a2)[_0x30958e([0x74,0x68,0x65,0x6e])](()=>_0x110e38);}async function _0x2ec5de(){await _0x21ce24,_0x38a021[_0x30958e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30958e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a9433,_0x38a021[_0x30958e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30958e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a9433,_0x38a021[_0x30958e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30958e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3fb112(_0x54b14e){const _0x9986c7=_0x455fd3();_0x38a021[_0x9986c7]=_0x30958e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54b14e,_0x54b14e!=_0x30958e([0x56,0x61,0x6c,0x69,0x64])&&_0x2ec5de();}function _0x455fd3(){const _0x2792a3=window[_0x30958e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30958e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30958e([0x6e,0x6f,0x77])]())[_0x30958e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30958e([0x2e]),'');let _0x42844e=_0x30958e([0x57]);for(let _0x417efc=0x0;_0x417efc<_0x2792a3[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x417efc+=0x2){let _0x5a7707=window[_0x30958e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2792a3[_0x30958e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x417efc,_0x417efc+0x2));_0x5a7707>=_0x14df80[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a7707-=_0x14df80[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42844e+=_0x14df80[_0x5a7707];}return _0x42844e;}function _0x474a42(){const _0x452cd6=_0x53bf31[_0x30958e([0x73,0x70,0x6c,0x69,0x74])](_0x30958e([0x2e]));if(0x3!=_0x452cd6[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x305df8(_0x452cd6[0x1]);function _0x305df8(_0x2ff3b8){const _0x3f07ea=_0x29514b(_0x2ff3b8);return _0x3f07ea&&_0x36518e()?_0x3f07ea:null;function _0x36518e(){const _0x44aedf=_0x3f07ea[_0x30958e([0x6a,0x74,0x69])],_0x4aaf7d=window[_0x30958e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44aedf[_0x30958e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44aedf[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f879b={..._0x3f07ea,[_0x30958e([0x6a,0x74,0x69])]:_0x44aedf[_0x30958e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44aedf[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f879b[_0x30958e([0x76,0x63])],_0x57653f(_0x4f879b)==_0x4aaf7d;}}}async function _0x3dbcb9(){let _0x28ff06=!0x0;try{const _0x185db9=_0x53bf31[_0x30958e([0x73,0x70,0x6c,0x69,0x74])](_0x30958e([0x2e])),[_0xda0226,_0x3e5003,_0x3fbf6d]=_0x185db9;return _0x450b18(_0xda0226),await _0x9af607(_0xda0226,_0x3e5003,_0x3fbf6d),_0x28ff06;}catch{return!0x1;}function _0x450b18(_0x2a9de1){const _0x206e04=_0x29514b(_0x2a9de1);_0x206e04&&_0x206e04[_0x30958e([0x61,0x6c,0x67])]==_0x30958e([0x45,0x53,0x32,0x35,0x36])||(_0x28ff06=!0x1);}async function _0x9af607(_0x45d12f,_0x411ddf,_0x40d8ee){const _0x592e6d=window[_0x30958e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30958e([0x66,0x72,0x6f,0x6d])](_0x2fefa3(_0x40d8ee),_0x3ac127=>_0x3ac127[_0x30958e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x236b3f=new window[(_0x30958e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30958e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45d12f+_0x30958e([0x2e])+_0x411ddf),_0x3e60cc=window[_0x30958e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30958e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3e60cc)return;const _0x13ae20=await _0x3e60cc[_0x30958e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30958e([0x6a,0x77,0x6b]),_0x490c0e,{[_0x30958e([0x6e,0x61,0x6d,0x65])]:_0x30958e([0x45,0x43,0x44,0x53,0x41]),[_0x30958e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30958e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30958e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3e60cc[_0x30958e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30958e([0x6e,0x61,0x6d,0x65])]:_0x30958e([0x45,0x43,0x44,0x53,0x41]),[_0x30958e([0x68,0x61,0x73,0x68])]:{[_0x30958e([0x6e,0x61,0x6d,0x65])]:_0x30958e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x13ae20,_0x592e6d,_0x236b3f)||(_0x28ff06=!0x1);}}function _0x29514b(_0x26977e){return _0x26977e[_0x30958e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30958e([0x65,0x79]))?JSON[_0x30958e([0x70,0x61,0x72,0x73,0x65])](_0x2fefa3(_0x26977e)):null;}function _0x2fefa3(_0x3bde92){return window[_0x30958e([0x61,0x74,0x6f,0x62])](_0x3bde92[_0x30958e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30958e([0x2b]))[_0x30958e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30958e([0x2f])));}function _0x57653f(_0x1112b4){let _0x4bafd2=0x1505;function _0x2f5ce4(_0x39a150){for(let _0x1e4ae1=0x0;_0x1e4ae1<_0x39a150[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e4ae1++){const _0x4f8b13=_0x39a150[_0x30958e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e4ae1);_0x4bafd2=(_0x4bafd2<<0x5)+_0x4bafd2+_0x4f8b13,_0x4bafd2&=_0x4bafd2;}}function _0x3b15f3(_0x329154){Array[_0x30958e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x329154)?_0x329154[_0x30958e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b15f3):_0x329154&&typeof _0x329154==_0x30958e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30958e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x329154)[_0x30958e([0x73,0x6f,0x72,0x74])]()[_0x30958e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xba2dc,_0x588785])=>{_0x2f5ce4(_0xba2dc),_0x3b15f3(_0x588785);}):_0x2f5ce4(window[_0x30958e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x329154));}return _0x3b15f3(_0x1112b4),_0x4bafd2>>>0x0;}function _0x57016a(_0x380f8a){return _0x380f8a[_0x30958e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30958e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30958e([0x30]));}function _0x3cbe7b(_0x4dce2e){return _0x4dce2e[_0x30958e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30958e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30958e([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a9433(){}function _0x30958e(_0x12c420){return _0x12c420['map'](_0xce8a0=>String['fromCharCode'](_0xce8a0))['join']('');}_0x3fb112(await _0x7ecf3e());}(this);}['_initSchema'](){const _0x2f2907=this['editor']['model']['schema'];_0x2f2907['isRegistered']('imageBlock')&&_0x2f2907['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2f2907['isRegistered']('imageInline')&&_0x2f2907['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2bf5a8=this['editor'];_0x2bf5a8['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2bf5a8['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5de0a4=>_0x5de0a4['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x59c47f=_0x2bf5a8['commands']['get']('replaceImageSource');_0x59c47f&&this['listenTo'](_0x59c47f,'cleanupImage',(_0x213457,[_0x1c77b9,_0x208f07])=>{_0x1c77b9['removeAttribute']('uploadcareImageId',_0x208f07);});}['_initConfig'](){const _0x28fac8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x59f18e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x386c6f(_0x174993['document'],'uc-config',{..._0x28fac8,'pubkey':_0x59f18e,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x53905f=>{if('closeMax'==_0x53905f)return'#uc-icon-arrow-down';},_0x174993['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x386c6f(_0x174993['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x174993['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x44da74=this['editor']['commands']['get']('insertImage');_0x44da74&&this['listenTo'](_0x44da74,'execute',()=>{const _0x235e80=this['editor']['model']['document']['selection']['getSelectedElement']();_0x235e80&&_0x235e80['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x235e80);});});const _0x40601c=this['editor']['commands']['get']('uploadcareImageReplace');_0x40601c&&this['listenTo'](_0x40601c,'execute',()=>{const _0x51bb45=this['editor']['model']['document']['selection']['getSelectedElement']();_0x51bb45&&_0x51bb45['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x51bb45);});});}}class u extends _0x2c287e{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a452b){super(_0x1a452b),_0x1a452b['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2f16dc['defineComponents'](_0x2f16dc);}}class ta extends _0x4c8056{constructor(_0x56bd72){super(_0x56bd72);const t=_0x56bd72['t'],_0xa4bda6=this['bindTemplate'],_0x15c1cb=new _0x107ead();_0x15c1cb['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':[_0x15c1cb,{'text':_0xa4bda6['to']('imageUploadProgress',_0x2ee643=>t('Loading\x20image...')+'\x20('+(_0x2ee643||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x4c8056{constructor(_0x74f243){super(_0x74f243);const t=_0x74f243['t'];this['set']('errorType',null);const _0x2862cf=new _0x377fcc(_0x74f243);_0x2862cf['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2862cf['withText']=!0x0,_0x2862cf['class']='ck-button-action',_0x2862cf['on']('execute',()=>{this['fire']('retry');}),_0x2862cf['bind']('isVisible')['to'](this,'errorType',_0x2f9f02=>'NotFound'!==_0x2f9f02);const _0x2f3667=new at();_0x2f3667['content']=et,_0x2f3667['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x587d6d=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':[_0x2f3667,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x587d6d['to']('errorType',_0x5ba7c7=>t('NotFound'!==_0x5ba7c7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2862cf]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x4c8056{constructor(_0x1f9a56,_0x55ca54){super(_0x1f9a56);const _0x5699a9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x55ca54,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5699a9['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1a9359,_0x128830,_0x568914){super(_0x1a9359),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x1a9359),this['_errorView']=new rt(_0x1a9359),this['_editingView']=new tt(_0x1a9359,_0x568914),this['_focusableView']=new _0x4c8056(_0x1a9359),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x128830),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'],_0x25ffa9=>{this['_addUploadcareImageEditorListeners'](_0x25ffa9);});}),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'](_0x167455,_0x23c473){const _0xb821b='uc-cloud-image-editor',_0x2b1771=_0x167455['querySelector'](_0xb821b);if(_0x2b1771)return _0x23c473(_0x2b1771);const _0x408f71=new MutationObserver(_0x3d122a=>{const _0x46d06a=_0x3d122a['filter'](_0x3c70f1=>_0x3c70f1['target']===_0x167455&&_0x3c70f1['addedNodes']['length']>0x0&&_0x3c70f1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xb821b);_0x46d06a['length']&&(_0x408f71['disconnect'](),_0x23c473(_0x46d06a[0x0]['addedNodes'][0x0]));});_0x408f71['observe'](_0x167455,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xf8f5f){_0xf8f5f['addEventListener']('apply',_0x29ca2d=>{this['fire']('apply',{'imageSrc':_0x29ca2d['detail']['cdnUrl']});}),_0xf8f5f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3b06fb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x280e8a,_0x49f3cb,_0x22c8af){super(),this['_editor']=_0x280e8a,this['_dialog']=_0x49f3cb,this['_imageElement']=_0x22c8af,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 _0x4b2369=this['_imageElement'],_0x317afe=_0x4b2369['getAttribute']('uploadcareImageId'),_0x22cbb4=_0x4b2369['getAttribute']('src');if(_0x317afe)await this['_loadImageInfo'](_0x317afe,_0x22cbb4);else{if(this['_imageCache']['has'](_0x22cbb4)){const _0x33650d=this['_imageCache']['get'](_0x22cbb4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33650d['url'],this['imageDimension']=_0x33650d['dimension'],this['imageId']=_0x33650d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2f712a}=this['_editor'],t=_0x2f712a['t'],_0x5b9d27=new Z(_0x2f712a,this['imageStatus'],this['_attributes']);_0x5b9d27['bind']('status')['to'](this,'imageStatus'),_0x5b9d27['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5b9d27['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5b9d27['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5b9d27,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3e57fb,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5b9d27,'position':_0x528f2d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5b9d27['focus']();},'onHide':()=>{_0x5b9d27['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2847ad=>!F(_0x2847ad,_0x5b9d27['element'])}});}['_loadImageInfo'](_0x59cf47,_0x2d2ce1){return C['getInfo'](_0x59cf47,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5a3034=>{const {width:_0x2f3f6e,height:_0x372887}=_0x5a3034['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d2ce1,this['imageDimension']={'width':_0x2f3f6e,'height':_0x372887},this['imageId']=_0x59cf47;})['catch'](_0x3fdb2e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3fdb2e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3756de,_0x133a69){return this['_getImageAsFile'](_0x3756de)['then'](_0x53e4c5=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x133a69['signal'],'file':_0x53e4c5,'onProgress':_0x8f23ed=>{_0x8f23ed&&_0x8f23ed['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x8f23ed['value']));}}))['then'](_0x169b5b=>{const {width:_0x498b82,height:_0x2bd642}=_0x169b5b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x169b5b['cdnUrl'],this['imageDimension']={'width':_0x498b82,'height':_0x2bd642},this['imageId']=_0x169b5b['uuid'],this['imageUploadProgress']=null;const _0x4178d5=_0x3756de['getAttribute']('src');this['_imageCache']['set'](_0x4178d5,{'id':_0x169b5b['uuid'],'url':_0x169b5b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x58adb9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x58adb9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x103f79,_0x51b7a6){_0x103f79['on']('apply',(_0x3b91fb,_0x436396)=>{this['_replaceImage'](_0x51b7a6,_0x436396['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x103f79['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x103f79['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x380593,_0x428a97,_0x476df6){const _0xadf10e=this['_editor'],{width:_0x2ce98,height:_0x3238d4}=A(_0x428a97,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x21b7c4,imageSources:_0x4de8fc}=E(_0x428a97,_0x2ce98);_0xadf10e['model']['change'](_0x5fd52b=>{if('$graveyard'===_0x380593['root']['rootName']){_0xadf10e['execute']('insertImage',{'imageType':_0x380593['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x380593['getAttributes']()),'uploadcareImageId':_0x476df6,'src':_0x21b7c4,'sources':_0x4de8fc,'width':_0x2ce98,'height':_0x3238d4}});const _0x1c2b4a=_0x380593['getChildren']();_0x380593=_0xadf10e['model']['document']['selection']['getSelectedElement']();for(const _0x1f27fe of _0x1c2b4a)_0x5fd52b['append'](_0x5fd52b['cloneElement'](_0x1f27fe),_0x380593);}else _0x5fd52b['setSelection'](_0x380593,'on'),_0xadf10e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x380593['getAttributes']()),'uploadcareImageId':_0x476df6,'src':_0x21b7c4,'sources':_0x4de8fc,'width':_0x2ce98,'height':_0x3238d4},_0x380593);_0x5fd52b['setSelection'](_0x380593,'on');});}async['_getImageAsFile'](_0x4b6978){const _0x1cd2e5=_0x174993['window'],_0x15f21b=_0x174993['document']['location']['href'],_0x3b1055=new _0x1cd2e5['URL'](_0x4b6978['getAttribute']('src'),_0x15f21b);if('data:'===_0x3b1055['protocol']){const _0x167517=_0x3b1055['href']['split'](','),_0x52d721=_0x167517[0x0]['match'](/:(.*?);/)[0x1],_0x44169b=_0x52d721['split']('/')[0x1],_0xc953e3=_0x1cd2e5['atob'](_0x167517[_0x167517['length']-0x1]);let _0x5a47f8=_0xc953e3['length'];const _0x544c15=new _0x1cd2e5['Uint8Array'](_0x5a47f8);for(;_0x5a47f8--;)_0x544c15[_0x5a47f8]=_0xc953e3['charCodeAt'](_0x5a47f8);return new _0x1cd2e5['File']([_0x544c15],'image.'+_0x44169b,{'type':_0x52d721});}const _0xd29863=_0x3b1055['href']['split']('/'),_0x544168=_0xd29863[_0xd29863['length']-0x1],_0x7e55fa=_0x544168['split']('.')[0x1];return _0x1cd2e5['fetch'](_0x3b1055['href'])['then'](_0x429559=>_0x429559['clone']()['blob']())['then'](_0xadcd8a=>new _0x1cd2e5['File']([_0xadcd8a],_0x544168,{'type':'image/'+_0x7e55fa}));}}class J extends _0xf7e4e{['imageEditController'];static get['requires'](){return[_0x165ee0];}['_isEditable'];constructor(_0x7caec){super(_0x7caec),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x285f8b){const _0x391b01=V(_0x285f8b);return _0x524fe8=>!(!_0x524fe8||!_0x524fe8['is']('element','imageBlock')&&!_0x524fe8['is']('element','imageInline'))&&(!!_0x524fe8['hasAttribute']('uploadcareImageId')||!!_0x524fe8['hasAttribute']('src')&&_0x391b01(_0x524fe8['getAttribute']('src')));}(_0x7caec['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x9e8bea=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x9e8bea);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3712dd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3712dd&&(_0x3712dd['is']('element','imageBlock')||_0x3712dd['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x165ee0),_0x3712dd),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xf7e4e{['refresh'](){const _0x28c48b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x28c48b&&(_0x28c48b['is']('element','imageBlock')||_0x28c48b['is']('element','imageInline')));}['execute'](_0x25d1fc){const _0x41b9fd=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x52b627=>{_0x52b627['setAttributes'](_0x25d1fc,_0x41b9fd),_0x52b627['removeAttribute']('srcset',_0x41b9fd),_0x52b627['removeAttribute']('sizes',_0x41b9fd);});}}class g extends _0x2c287e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x488d95,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2855c5}=this;_0x2855c5['commands']['add']('uploadcareImageEdit',new J(_0x2855c5)),_0x2855c5['commands']['add']('uploadcareImageReplace',new O(_0x2855c5));}}class j extends _0x2c287e{['_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 _0xd4b67a=this['editor'];_0xd4b67a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x978c87=>{const _0x3c4452=_0xd4b67a['commands']['get']('uploadcareImageEdit'),_0x26a61a=new _0x377fcc(_0x978c87),t=_0x978c87['t'];return _0x26a61a['set']({'icon':_0x3e57fb,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26a61a['bind']('isEnabled')['to'](_0x3c4452),_0x26a61a['bind']('isOn')['to'](_0x3c4452,'isActive'),this['listenTo'](_0x26a61a,'execute',()=>{_0xd4b67a['execute']('uploadcareImageEdit'),_0xd4b67a['editing']['view']['focus']();}),_0x26a61a;}),this['_initConfig']();}['_initConfig'](){const _0x3af161=_0x386c6f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3af161),this['listenTo'](this['editor'],'destroy',()=>{_0x3af161['remove']();});}}class P extends _0x2c287e{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x12578e,Command as _0x285b90}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x215b70,IconGooglePhotos as _0x58795b,IconGoogleDrive as _0x12648f,IconFacebook as _0x64383a,IconDropbox as _0x2ff2a9,IconUploadcareLink as _0x478448,IconUploadcareImageUpload as _0x4780ea,IconError as et,IconUploadcareImageEdit as _0x17302f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x55c549,MenuBarMenuListItemButtonView as _0x12537f,View as _0x141474,FocusCycler as _0x2c312f,Dialog as _0x376426,DialogViewPosition as _0x58d916,SpinnerView as _0x5eee54,IconView as at,Notification as _0xcf256c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x32e10a,DomEmitterMixin as _0x38ea9a,global as _0x21d78a,getAncestors as _0x243083,ObservableMixin as _0x21b865,createElement as _0x112e4b,uid as _0x5235f1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x18bcbc}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x28eaec,info as _0x718142}from'@uploadcare/upload-client';import*as _0x261178 from'@uploadcare/file-uploader';var o=function(_0x45a8c8){return _0x45a8c8['Local']='local',_0x45a8c8['URL']='url',_0x45a8c8['Dropbox']='dropbox',_0x45a8c8['GDrive']='gdrive',_0x45a8c8['Facebook']='facebook',_0x45a8c8['GPhotos']='gphotos',_0x45a8c8['OneDrive']='onedrive',_0x45a8c8;}({});function _(_0x359671,_0x256d50,_0x131ecb){const t=_0x359671['t'],_0x1634dd=_0x359671['t'];switch(_0x256d50){case o['Local']:return{'text':_0x1634dd('Insert'===_0x131ecb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1634dd('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x131ecb?_0x1634dd('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1634dd('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x256d50;}}class e extends _0x12578e{['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 _0x49aa8f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd606eb;for(const _0x5f0e92 in _0x49aa8f){const _0x106601=_0x5f0e92,_0x300c71=_0x49aa8f[_0x106601];if('uploadcareLicenseKeyValid'==_0x300c71||'uploadcareLicenseKeyInvalid'==_0x300c71||'uploadcareLicenseKeyExpired'==_0x300c71||'uploadcareLicenseKeyDomainLimit'==_0x300c71||'uploadcareLicenseKeyNotAllowed'==_0x300c71||'uploadcareLicenseKeyEvaluationLimit'==_0x300c71||'uploadcareLicenseKeyTrialLimit'==_0x300c71||'uploadcareLicenseKeyUsageLimit'==_0x300c71){delete _0x49aa8f[_0x106601],_0xd606eb=_0x300c71,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xd606eb&&_0x49aa8f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xd606eb&&_0x49aa8f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xd606eb&&_0x49aa8f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xd606eb&&_0x49aa8f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xd606eb&&_0x49aa8f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xd606eb&&_0x49aa8f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xd606eb&&_0x49aa8f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x30f84a}=this,_0x597abb=_0x30f84a['commands']['get']('uploadcare');if(!_0x597abb)return;const _0x2daf4b=this['_normalizeConfigSourceList'](_0x30f84a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x350112,_0x2092bc)=>{const _0x518f2f=this['_getIntegrationKey'](_0x2092bc['type']);return _0x350112[_0x518f2f]||(_0x350112[_0x518f2f]=[]),_0x350112[_0x518f2f]['push'](_0x2092bc),_0x350112;},{});_0x30f84a['plugins']['has']('ImageInsertUI')&&_0x30f84a['commands']['get']('uploadcare')&&Object['entries'](_0x2daf4b)['forEach'](([_0xcfcf42,_0x30666e])=>{_0x30f84a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xcfcf42,'observable':()=>_0x597abb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x30666e),'formViewCreator':()=>this['_createDropdownButtons'](_0x30666e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x30666e),'override':'assetManager'!==_0xcfcf42});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4a4555){const {locale:_0x2eafad}=this['editor'];return _0x4a4555['map'](_0x36c562=>{const _0x46f008=_(_0x2eafad,_0x36c562,'Insert');switch(_0x36c562){case o['Local']:return{'icon':_0x4780ea,'type':o['Local'],..._0x46f008};case o['URL']:return{'icon':_0x478448,'type':o['URL'],..._0x46f008};case o['Dropbox']:return{'icon':_0x2ff2a9,'type':o['Dropbox'],..._0x46f008};case o['Facebook']:return{'icon':_0x64383a,'type':o['Facebook'],..._0x46f008};case o['GDrive']:return{'icon':_0x12648f,'type':o['GDrive'],..._0x46f008};case o['GPhotos']:return{'icon':_0x58795b,'type':o['GPhotos'],..._0x46f008};case o['OneDrive']:return{'icon':_0x215b70,'type':o['OneDrive'],..._0x46f008};}});}['_getIntegrationKey'](_0x30daa4){switch(_0x30daa4){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5a0830,_0x4da4a6){const _0x8ab9e2=this['editor'],_0x357ad1=new _0x5a0830(_0x8ab9e2['locale']),_0x36c28d=_0x8ab9e2['commands']['get']('uploadcare');return _0x357ad1['bind']('isEnabled')['to'](_0x36c28d),_0x357ad1['on']('execute',()=>{_0x36c28d['execute'](_0x4da4a6);}),_0x357ad1;}['_createToolbarButton'](_0xdc66dd){const {locale:_0x199361}=this['editor'],_0x4b7eab=this['editor']['plugins']['get']('ImageInsertUI'),_0x3b63b4=_0xdc66dd[0x0],_0x253e3c=this['_createButton'](_0x55c549,_0x3b63b4['type']);return _0x253e3c['icon']=_0x3b63b4['icon'],_0x253e3c['bind']('label')['to'](_0x4b7eab,'isImageSelected',_0xfa5345=>_(_0x199361,_0x3b63b4['type'],_0xfa5345?'Replace':'Insert')['text']),_0x253e3c['tooltip']=!0x0,_0x253e3c;}['_createDropdownButtons'](_0x498c76){const {locale:_0x16d1b9}=this['editor'],_0x399e27=this['editor']['plugins']['get']('ImageInsertUI');return _0x498c76['map'](_0x485b60=>{const _0xc30271=this['_createButton'](_0x55c549,_0x485b60['type']);return _0xc30271['withText']=!0x0,_0xc30271['icon']=_0x485b60['icon'],_0xc30271['bind']('label')['to'](_0x399e27,'isImageSelected',_0x3e0a64=>_(_0x16d1b9,_0x485b60['type'],_0x3e0a64?'Replace':'Insert')['text']),_0xc30271;});}['_createMenuBarButtons'](_0x1365af){return _0x1365af['map'](_0xf8542f=>{const _0x5ceabc=this['_createButton'](_0x12537f,_0xf8542f['type']);return _0x5ceabc['icon']=_0xf8542f['icon'],_0x5ceabc['label']=_0xf8542f['shortText'],_0x5ceabc;});}}class q extends _0x141474{['focusTracker'];['focusCycler'];constructor(_0x34fe75){super(_0x34fe75),this['focusTracker']=new _0x32e10a(),this['focusCycler']=new _0x2c312f({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x223b14){super(_0x223b14),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0xb3fc62,_0x2ada2c){const _0xfbfa3d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x228e51=>_0x228e51<=_0x2ada2c)['map'](_0xc07348=>_0xb3fc62['replace'](/\/$/,'')+'/-/resize/'+_0xc07348+'x/\x20'+_0xc07348+'w');return{'imageFallbackUrl':_0xb3fc62,'imageSources':[{'srcset':_0xfbfa3d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2ada2c+'px)\x20100vw,\x20'+_0x2ada2c+'px','type':'image/webp'}]};}function A(_0x47bc78,_0x469962,_0x17ed09){const _0x487bdb=_0x47bc78['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x487bdb?parseInt(_0x487bdb[0x1],0xa):_0x469962,'height':_0x487bdb?parseInt(_0x487bdb[0x2],0xa):_0x17ed09};}function m(_0x38c01f,_0x5e603d){const _0x49c874=Object['create'](_0x38ea9a),_0x1c3434=_0x38c01f['plugins']['get']('ImageUtils'),_0x4fcde5=_0x38c01f['editing']['mapper']['toViewElement'](_0x5e603d),_0x536f06=_0x1c3434['findViewImgElement'](_0x4fcde5),_0x29b361=_0x38c01f['editing']['view']['domConverter']['viewToDom'](_0x536f06),_0x12f967=_0x5e603d['getAttribute']('width'),_0x3987ee=_0x5e603d['getAttribute']('height'),_0x14d16c='image-processing';_0x38c01f['editing']['view']['change'](_0x218411=>{_0x218411['addClass'](_0x14d16c,_0x4fcde5),_0x218411['setStyle']('aspect-ratio',_0x12f967+'/'+_0x3987ee,_0x536f06);}),_0x49c874['listenTo'](_0x29b361,'load',()=>{_0x49c874['stopListening'](_0x29b361,'load'),_0x38c01f['editing']['view']['change'](_0x4fff4d=>{_0x4fff4d['removeClass'](_0x14d16c,_0x4fcde5),_0x4fff4d['removeStyle']('aspect-ratio',_0x536f06);});});}function R(_0x59d5ad){if(Array['isArray'](_0x59d5ad)){const _0x3e55b5=_0x59d5ad['map'](R);return _0x3e09c6=>_0x3e55b5['some'](_0x4d72ab=>_0x4d72ab(_0x3e09c6));}if('origin'==_0x59d5ad){const _0x34f5f5=_0x21d78a['window']['location']['origin'];return _0x3f5ec6=>new URL(_0x3f5ec6,_0x21d78a['document']['baseURI'])['origin']==_0x34f5f5;}return'function'==typeof _0x59d5ad?_0x59d5ad:_0x59d5ad instanceof RegExp?_0x446f55=>!(!_0x446f55['match'](_0x59d5ad)&&!_0x446f55['replace'](/^https?:\/\//,'')['match'](_0x59d5ad)):()=>!0x1;}function F(_0x359566,_0x6354d){return _0x243083(_0x359566['target'])['includes'](_0x6354d);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x21b865(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x24e68b,_0x83ede9,_0x3898f6){super(),this['_editor']=_0x24e68b,this['_editing']=_0x83ede9,this['_dialog']=_0x24e68b['plugins']['get'](_0x376426),this['_api']=_0x83ede9['ctxElement']['getAPI'](),this['_type']=_0x3898f6,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:_0x16c6dc,model:_0x43b38e}=this['_editor'],_0x1fc2fa=_0x43b38e['document']['selection']['getSelectedElement'](),_0x3d86e5=_0x1fc2fa&&(_0x1fc2fa['is']('element','imageBlock')||_0x1fc2fa['is']('element','imageInline'));this['_formView']=new S(_0x16c6dc),this['_dialog']['show']({'id':'uploadCare','icon':_0x4780ea,'title':_(_0x16c6dc,this['_type'],_0x3d86e5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x58d916['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x72b351=>!F(_0x72b351,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x54aa4b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5a515a=>{const _0xf554b1=_0x54aa4b['length'];for(const _0x5337db of _0x54aa4b){const _0x47e2ad=_0x5337db===_0x54aa4b[_0xf554b1-0x1],{cdnUrl:_0x524764,fileInfo:_0x5d438d}=_0x5337db;if(!_0x524764||!_0x5d438d)continue;const {width:_0x40cded,height:_0x480aed}=_0x5d438d['imageInfo'],_0x3ca9c3=A(_0x524764,_0x40cded,_0x480aed),_0xe34c59=E(_0x524764,_0x3ca9c3['width']),_0x4c69c4={'id':_0x5d438d['uuid'],'type':'image','attributes':{'imageDimension':_0x3ca9c3,..._0xe34c59}};this['_insertAsset'](_0x4c69c4,_0x47e2ad,_0x5a515a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2c0d58=>{'idle'===_0x2c0d58['detail']['status']&&!_0x2c0d58['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x310b57,_0x2c2f11,_0x29a53b){const _0x5db664=this['_editor']['model']['document']['selection'],_0x4b8661=_0x5db664['getSelectedElement'](),_0xc10bda=!(!_0x4b8661||!_0x4b8661['is']('element','imageInline'));_0x29a53b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x310b57,_0xc10bda),_0x2c2f11||_0x29a53b['setSelection'](_0x5db664['getLastPosition']());}['_insertImage'](_0x53a6d3,_0x2fd75b){const _0x43fcf5=this['_editor'],{imageDimension:_0x391930,imageFallbackUrl:_0x255d25,imageSources:_0x48a4aa}=_0x53a6d3['attributes'];_0x43fcf5['execute']('insertImage',{'imageType':_0x2fd75b?'imageInline':null,'source':{'uploadcareImageId':_0x53a6d3['id'],'src':_0x255d25,'sources':_0x48a4aa,..._0x391930}});}}class n extends _0x285b90{['_editing'];['_controller']=null;static get['requires'](){return[_0x376426,i];}constructor(_0x2bab17){super(_0x2bab17),this['_editing']=_0x2bab17['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3afe2f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x3afe2f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x522a2e,publicKey:_0x148e2a,signal:_0x3d346b,onProgress:_0x2dcc1e}){return _0x28eaec(_0x522a2e,{'publicKey':_0x148e2a,'store':'auto','signal':_0x3d346b,'onProgress':_0x2dcc1e});}static['getInfo'](_0x3382a9,_0x56efbd){return _0x718142(_0x3382a9,_0x56efbd);}}class p extends _0x12578e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x18bcbc,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x549e55=this['editor'];if(!!!_0x549e55['config']['get']('uploadcare'))return;_0x549e55['plugins']['get'](_0x18bcbc)['createUploadAdapter']=_0x377fca=>new x(_0x377fca,_0x549e55),_0x549e55['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xca1b81,{imageElement:_0x4aaae3,data:_0x2adde3})=>{_0x549e55['model']['change'](_0x5d343b=>{_0x5d343b['setAttribute']('uploadcareImageId',_0x2adde3['uploadcareImageId'],_0x4aaae3);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x128c91,_0x29cea9){this['loader']=_0x128c91,this['editor']=_0x29cea9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5c775b=this['editor']['config']['get']('uploadcare.pubkey'),_0x427a4c=await this['loader']['file'];return C['upload']({'file':_0x427a4c,'publicKey':_0x5c775b,'signal':this['controller']['signal'],'onProgress':_0x1a02d9=>{_0x1a02d9&&_0x1a02d9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1a02d9['value']);}})['then'](async _0x591775=>{const {imageFallbackUrl:_0x1dac36,imageSources:_0x142082}=E(_0x591775['cdnUrl'],_0x591775['imageInfo']['width']);return{'uploadcareImageId':_0x591775['uuid'],'default':_0x1dac36,'sources':_0x142082};})['catch'](()=>{const _0x32d5fa=t('Cannot\x20upload\x20file:')+('\x20'+_0x427a4c['name']+'.');return Promise['reject'](_0x32d5fa);});}['abort'](){this['controller']['abort']();}}class i extends _0x12578e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x376426];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x22df45=this['editor'];_0x22df45['commands']['add']('uploadcare',new n(_0x22df45));}['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 _0x1cf48b=_0x21d78a['document']['querySelector']('input[uploadcare-file-input]');_0x1cf48b&&_0x1cf48b['remove']();}),async function(_0x12db6c){const _0x530af1=_0x5e3f6a([0x6d,0x71,0x41,0x35,0x50,0x52,0x53,0x5a,0x65,0x7a,0x45,0x36,0x6f,0x6e,0x63,0x55,0x68,0x58,0x48,0x72,0x79,0x62,0x4e,0x67,0x56,0x31,0x74,0x61,0x30,0x6a,0x42,0x46,0x57,0x4d,0x47,0x54,0x4a,0x6b,0x59,0x76,0x69,0x78,0x77,0x4b,0x75,0x43,0x64,0x33,0x34,0x51,0x44,0x4f,0x66,0x37,0x73,0x38,0x70,0x32,0x49,0x6c,0x4c,0x39]),_0x3e00ca=0x688b112f,_0x1e1fbb=0x688c7817^_0x3e00ca,_0x739840=window[_0x5e3f6a([0x44,0x61,0x74,0x65])][_0x5e3f6a([0x6e,0x6f,0x77])](),_0x4457a8=_0x12db6c[_0x5e3f6a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x490cd1=new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a25b1=>{_0x4457a8[_0x5e3f6a([0x6f,0x6e,0x63,0x65])](_0x5e3f6a([0x72,0x65,0x61,0x64,0x79]),_0x2a25b1);}),_0x2f9600={[_0x5e3f6a([0x6b,0x74,0x79])]:_0x5e3f6a([0x45,0x43]),[_0x5e3f6a([0x75,0x73,0x65])]:_0x5e3f6a([0x73,0x69,0x67]),[_0x5e3f6a([0x63,0x72,0x76])]:_0x5e3f6a([0x50,0x2d,0x32,0x35,0x36]),[_0x5e3f6a([0x78])]:_0x5e3f6a([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]),[_0x5e3f6a([0x79])]:_0x5e3f6a([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]),[_0x5e3f6a([0x61,0x6c,0x67])]:_0x5e3f6a([0x45,0x53,0x32,0x35,0x36])},_0x2e1177=_0x4457a8[_0x5e3f6a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e3f6a([0x67,0x65,0x74])](_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2db534(){let _0x48077a,_0xe0eba0=null,_0x1dd022=null;try{if(_0x2e1177==_0x5e3f6a([0x47,0x50,0x4c]))return _0x5e3f6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48077a=_0x22eff7(),!_0x48077a)return _0x5e3f6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48077a[_0x5e3f6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1dd022=_0x670ec8(_0x48077a[_0x5e3f6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48077a[_0x5e3f6a([0x6a,0x74,0x69])])),await _0x10581b()?_0x229fd9()?_0xb883b4()?_0x5e3f6a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x426bca()?(_0x48077a[_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e3f6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe0eba0=_0x2d3032(_0x5e3f6a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48077a[_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e3f6a([0x74,0x72,0x69,0x61,0x6c])&&(_0xe0eba0=_0x2d3032(_0x5e3f6a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a59b1()):_0x5e3f6a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e3f6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e3f6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e3f6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb883b4(){const _0x5151a5=[_0x5e3f6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e3f6a([0x74,0x72,0x69,0x61,0x6c])][_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48077a[_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x739840/0x3e8:0xe10*_0x1e1fbb;return _0x48077a[_0x5e3f6a([0x65,0x78,0x70])]<_0x5151a5;}function _0x229fd9(){const _0x1becae=_0x48077a[_0x5e3f6a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1becae&&(!!_0x1becae[_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e3f6a([0x2a]))||!!_0x1becae[_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e3f6a([0x55,0x50,0x4c,0x43])));}function _0x426bca(){const _0x153e82=_0x48077a[_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x153e82||0x0==_0x153e82[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4eee7b}=new URL(window[_0x5e3f6a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x153e82[_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eee7b))return!0x0;const _0x322718=_0x4eee7b[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])](_0x5e3f6a([0x2e]));return _0x153e82[_0x5e3f6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19fe5e=>_0x19fe5e[_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e3f6a([0x2a])))[_0x5e3f6a([0x6d,0x61,0x70])](_0x3d6e2e=>_0x3d6e2e[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])](_0x5e3f6a([0x2e])))[_0x5e3f6a([0x73,0x6f,0x6d,0x65])](_0x25222b=>_0x322718[_0x5e3f6a([0x65,0x76,0x65,0x72,0x79])]((_0x51f3a9,_0x5768af)=>_0x25222b[_0x5768af]===_0x51f3a9||_0x25222b[_0x5768af]===_0x5e3f6a([0x2a])));}function _0x4a59b1(){return _0xe0eba0&&_0x1dd022?new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x595480,_0x1c837a)=>{_0xe0eba0[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x595480,_0x1c837a),_0x1dd022[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x1ac0bf=>{_0x1ac0bf!=_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64])&&_0x595480(_0x1ac0bf);},_0x1c837a);}):_0xe0eba0||_0x1dd022||_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x670ec8(_0x1fe5f5,_0x3483f1){return new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3310fc=>{if(_0xdab1fa())return _0x3310fc(_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64]));_0x1093a7(),_0x4457a8[_0x5e3f6a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e3f6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xad009=!0x1;const _0x446aa3=_0x5235f1();function _0x15b4b5(_0x272d53){return!!_0x272d53&&(typeof _0x272d53===_0x5e3f6a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x272d53===_0x5e3f6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x272d53[_0x5e3f6a([0x74,0x68,0x65,0x6e])]===_0x5e3f6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x272d53[_0x5e3f6a([0x63,0x61,0x74,0x63,0x68])]===_0x5e3f6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f11fe(_0x4ef1f4){_0x1fc491(_0x4ef1f4)[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x460252=>{if(!_0x460252||_0x460252[_0x5e3f6a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e3f6a([0x6f,0x6b]))return _0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6399c7(_0x5b839d(_0x446aa3+_0x3483f1))!=_0x460252[_0x5e3f6a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x1ac74b=>(_0x585cb3(),_0x1ac74b),()=>{const _0xab0a9c=_0x37e603();return null==_0xab0a9c?(_0x585cb3(),_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64])):_0x5e3f6a(_0x739840-_0xab0a9c>(0x4c87952f^_0x3e00ca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x3310fc)[_0x5e3f6a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3310fc(_0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52a348=0x68bdffaf^_0x3e00ca;function _0x585cb3(){const _0x1e85db=_0x5e3f6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x6399c7(_0x5b839d(_0x1fe5f5)),_0x4807f4=_0x29b97d(_0x6399c7(window[_0x5e3f6a([0x4d,0x61,0x74,0x68])][_0x5e3f6a([0x63,0x65,0x69,0x6c])](_0x739840/_0x52a348)));window[_0x5e3f6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e3f6a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e85db,_0x4807f4);}function _0x37e603(){const _0x243243=_0x5e3f6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x6399c7(_0x5b839d(_0x1fe5f5)),_0x54b369=window[_0x5e3f6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e3f6a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x243243);return _0x54b369?window[_0x5e3f6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29b97d(_0x54b369),0x10)*_0x52a348:null;}function _0x1fc491(_0x5122c3){return new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x430363,_0x267fcf)=>{_0x5122c3[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x430363,_0x267fcf),window[_0x5e3f6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x267fcf,0x688ac5ef^_0x3e00ca);});}}_0x4457a8[_0x5e3f6a([0x6f,0x6e])](_0x5e3f6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42b78b,_0x3b4241)=>{if(_0x3b4241[0x0]!=_0x1fe5f5)return _0x3310fc(_0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b4241[0x1]={..._0x3b4241[0x1],[_0x5e3f6a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x446aa3};},{[_0x5e3f6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e3f6a([0x68,0x69,0x67,0x68])}),_0x4457a8[_0x5e3f6a([0x6f,0x6e])](_0x5e3f6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55621f=>{_0x15b4b5(_0x55621f[_0x5e3f6a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xad009=!0x0,_0x2f11fe(_0x55621f[_0x5e3f6a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e3f6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e3f6a([0x6c,0x6f,0x77])}),_0x490cd1[_0x5e3f6a([0x74,0x68,0x65,0x6e])](()=>{_0xad009||_0x3310fc(_0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xdab1fa(){return _0x4457a8[_0x5e3f6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e3f6a([0x76,0x69,0x65,0x77])][_0x5e3f6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e3f6a([0x61,0x75,0x74,0x6f]);}function _0x1093a7(){_0x4457a8[_0x5e3f6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e3f6a([0x76,0x69,0x65,0x77])][_0x5e3f6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e3f6a([0x61,0x75,0x74,0x6f]);}}function _0x2d3032(_0x3f9be7){const _0x52f65d=[new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24867e=>setTimeout(_0x24867e,0x68822fe3^_0x3e00ca)),_0x490cd1[_0x5e3f6a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37a79f=>{let _0x3c74e4=0x0;_0x4457a8[_0x5e3f6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e3f6a([0x6f,0x6e])](_0x5e3f6a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1788f3,_0x3ff6bd)=>{_0x3ff6bd[0x0][_0x5e3f6a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c74e4++,_0x3c74e4==(0x688b10d7^_0x3e00ca)&&(_0x37a79f(),_0x1788f3[_0x5e3f6a([0x6f,0x66,0x66])]());});}))];return window[_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e3f6a([0x72,0x61,0x63,0x65])](_0x52f65d)[_0x5e3f6a([0x74,0x68,0x65,0x6e])](()=>_0x3f9be7);}async function _0xbe726b(){await _0x490cd1,_0x4457a8[_0x5e3f6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e3f6a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x497b2e,_0x4457a8[_0x5e3f6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e3f6a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x497b2e,_0x4457a8[_0x5e3f6a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e3f6a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x56dc00(_0x3ac9ed){const _0x1ef406=_0x5c2017();_0x4457a8[_0x1ef406]=_0x5e3f6a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ac9ed,_0x3ac9ed!=_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64])&&_0xbe726b();}function _0x5c2017(){const _0x3ebd18=window[_0x5e3f6a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e3f6a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e3f6a([0x6e,0x6f,0x77])]())[_0x5e3f6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e3f6a([0x2e]),'');let _0x5bc518=_0x5e3f6a([0x6d]);for(let _0x3009d8=0x0;_0x3009d8<_0x3ebd18[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3009d8+=0x2){let _0x4a8415=window[_0x5e3f6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ebd18[_0x5e3f6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3009d8,_0x3009d8+0x2));_0x4a8415>=_0x530af1[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a8415-=_0x530af1[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5bc518+=_0x530af1[_0x4a8415];}return _0x5bc518;}function _0x22eff7(){const _0x22407=_0x2e1177[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])](_0x5e3f6a([0x2e]));if(0x3!=_0x22407[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1cfa8c(_0x22407[0x1]);function _0x1cfa8c(_0x1535d5){const _0x37afcb=_0xba73a6(_0x1535d5);return _0x37afcb&&_0x8c05b7()?_0x37afcb:null;function _0x8c05b7(){const _0x4ed2ea=_0x37afcb[_0x5e3f6a([0x6a,0x74,0x69])],_0x5dfb3c=window[_0x5e3f6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ed2ea[_0x5e3f6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ed2ea[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f128c={..._0x37afcb,[_0x5e3f6a([0x6a,0x74,0x69])]:_0x4ed2ea[_0x5e3f6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ed2ea[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f128c[_0x5e3f6a([0x76,0x63])],_0x5b839d(_0x3f128c)==_0x5dfb3c;}}}async function _0x10581b(){let _0x1edc3e=!0x0;try{const _0x2456dd=_0x2e1177[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])](_0x5e3f6a([0x2e])),[_0x1b1631,_0x4bf33e,_0x157ff3]=_0x2456dd;return _0x95375f(_0x1b1631),await _0x177771(_0x1b1631,_0x4bf33e,_0x157ff3),_0x1edc3e;}catch{return!0x1;}function _0x95375f(_0x5698bb){const _0x45862b=_0xba73a6(_0x5698bb);_0x45862b&&_0x45862b[_0x5e3f6a([0x61,0x6c,0x67])]==_0x5e3f6a([0x45,0x53,0x32,0x35,0x36])||(_0x1edc3e=!0x1);}async function _0x177771(_0x297b96,_0x2c5126,_0x395568){const _0x21479b=window[_0x5e3f6a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e3f6a([0x66,0x72,0x6f,0x6d])](_0x523638(_0x395568),_0x4dd030=>_0x4dd030[_0x5e3f6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x280bc=new window[(_0x5e3f6a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e3f6a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x297b96+_0x5e3f6a([0x2e])+_0x2c5126),_0x4b90ba=window[_0x5e3f6a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e3f6a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b90ba)return;const _0x1c2455=await _0x4b90ba[_0x5e3f6a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e3f6a([0x6a,0x77,0x6b]),_0x2f9600,{[_0x5e3f6a([0x6e,0x61,0x6d,0x65])]:_0x5e3f6a([0x45,0x43,0x44,0x53,0x41]),[_0x5e3f6a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e3f6a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e3f6a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b90ba[_0x5e3f6a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e3f6a([0x6e,0x61,0x6d,0x65])]:_0x5e3f6a([0x45,0x43,0x44,0x53,0x41]),[_0x5e3f6a([0x68,0x61,0x73,0x68])]:{[_0x5e3f6a([0x6e,0x61,0x6d,0x65])]:_0x5e3f6a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c2455,_0x21479b,_0x280bc)||(_0x1edc3e=!0x1);}}function _0xba73a6(_0x12c7b2){return _0x12c7b2[_0x5e3f6a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e3f6a([0x65,0x79]))?JSON[_0x5e3f6a([0x70,0x61,0x72,0x73,0x65])](_0x523638(_0x12c7b2)):null;}function _0x523638(_0x174c9d){return window[_0x5e3f6a([0x61,0x74,0x6f,0x62])](_0x174c9d[_0x5e3f6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e3f6a([0x2b]))[_0x5e3f6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e3f6a([0x2f])));}function _0x5b839d(_0x1e1862){let _0xcca27d=0x1505;function _0x274c33(_0x30f5f9){for(let _0x4a9215=0x0;_0x4a9215<_0x30f5f9[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a9215++){const _0x484095=_0x30f5f9[_0x5e3f6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a9215);_0xcca27d=(_0xcca27d<<0x5)+_0xcca27d+_0x484095,_0xcca27d&=_0xcca27d;}}function _0x232736(_0x5d2d4c){Array[_0x5e3f6a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d2d4c)?_0x5d2d4c[_0x5e3f6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x232736):_0x5d2d4c&&typeof _0x5d2d4c==_0x5e3f6a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e3f6a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d2d4c)[_0x5e3f6a([0x73,0x6f,0x72,0x74])]()[_0x5e3f6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52b722,_0x87e348])=>{_0x274c33(_0x52b722),_0x232736(_0x87e348);}):_0x274c33(window[_0x5e3f6a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d2d4c));}return _0x232736(_0x1e1862),_0xcca27d>>>0x0;}function _0x6399c7(_0x2a6c09){return _0x2a6c09[_0x5e3f6a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e3f6a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e3f6a([0x30]));}function _0x29b97d(_0x44c786){return _0x44c786[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e3f6a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e3f6a([0x6a,0x6f,0x69,0x6e])]('');}function _0x497b2e(){}function _0x5e3f6a(_0x469437){return _0x469437['map'](_0x3e0be4=>String['fromCharCode'](_0x3e0be4))['join']('');}_0x56dc00(await _0x2db534());}(this);}['_initSchema'](){const _0x5fdbed=this['editor']['model']['schema'];_0x5fdbed['isRegistered']('imageBlock')&&_0x5fdbed['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5fdbed['isRegistered']('imageInline')&&_0x5fdbed['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x9d6ac=this['editor'];_0x9d6ac['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x9d6ac['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5df8eb=>_0x5df8eb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x24f366=_0x9d6ac['commands']['get']('replaceImageSource');_0x24f366&&this['listenTo'](_0x24f366,'cleanupImage',(_0x4fc31c,[_0x54b24f,_0x58f5bb])=>{_0x54b24f['removeAttribute']('uploadcareImageId',_0x58f5bb);});}['_initConfig'](){const _0x8c480b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x137133=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x112e4b(_0x21d78a['document'],'uc-config',{..._0x8c480b,'pubkey':_0x137133,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x176217=>{if('closeMax'==_0x176217)return'#uc-icon-arrow-down';},_0x21d78a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x112e4b(_0x21d78a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x21d78a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x20b84f=this['editor']['commands']['get']('insertImage');_0x20b84f&&this['listenTo'](_0x20b84f,'execute',()=>{const _0xd4d2ec=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd4d2ec&&_0xd4d2ec['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xd4d2ec);});});const _0x29effe=this['editor']['commands']['get']('uploadcareImageReplace');_0x29effe&&this['listenTo'](_0x29effe,'execute',()=>{const _0x246f04=this['editor']['model']['document']['selection']['getSelectedElement']();_0x246f04&&_0x246f04['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x246f04);});});}}class u extends _0x12578e{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b6d7e){super(_0x1b6d7e),_0x1b6d7e['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x261178['defineComponents'](_0x261178);}}class ta extends _0x141474{constructor(_0x165e7c){super(_0x165e7c);const t=_0x165e7c['t'],_0x26265b=this['bindTemplate'],_0x16a10e=new _0x5eee54();_0x16a10e['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':[_0x16a10e,{'text':_0x26265b['to']('imageUploadProgress',_0x2c8491=>t('Loading\x20image...')+'\x20('+(_0x2c8491||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x141474{constructor(_0xbeea6c){super(_0xbeea6c);const t=_0xbeea6c['t'];this['set']('errorType',null);const _0x3061e9=new _0x55c549(_0xbeea6c);_0x3061e9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3061e9['withText']=!0x0,_0x3061e9['class']='ck-button-action',_0x3061e9['on']('execute',()=>{this['fire']('retry');}),_0x3061e9['bind']('isVisible')['to'](this,'errorType',_0x196628=>'NotFound'!==_0x196628);const _0x2423e0=new at();_0x2423e0['content']=et,_0x2423e0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x20c16d=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':[_0x2423e0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x20c16d['to']('errorType',_0x3ea075=>t('NotFound'!==_0x3ea075?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3061e9]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x141474{constructor(_0x16ee72,_0x47f3d5){super(_0x16ee72);const _0x2a483c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x47f3d5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2a483c['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x16fc4d,_0x344298,_0x2b2949){super(_0x16fc4d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x16fc4d),this['_errorView']=new rt(_0x16fc4d),this['_editingView']=new tt(_0x16fc4d,_0x2b2949),this['_focusableView']=new _0x141474(_0x16fc4d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x344298),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'],_0x3c9116=>{this['_addUploadcareImageEditorListeners'](_0x3c9116);});}),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'](_0x23dd9e,_0x24e31b){const _0x282680='uc-cloud-image-editor',_0x5d9fa8=_0x23dd9e['querySelector'](_0x282680);if(_0x5d9fa8)return _0x24e31b(_0x5d9fa8);const _0x1eadfe=new MutationObserver(_0x13223f=>{const _0x3abaf1=_0x13223f['filter'](_0x22037b=>_0x22037b['target']===_0x23dd9e&&_0x22037b['addedNodes']['length']>0x0&&_0x22037b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x282680);_0x3abaf1['length']&&(_0x1eadfe['disconnect'](),_0x24e31b(_0x3abaf1[0x0]['addedNodes'][0x0]));});_0x1eadfe['observe'](_0x23dd9e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4f5b8b){_0x4f5b8b['addEventListener']('apply',_0x50f0fd=>{this['fire']('apply',{'imageSrc':_0x50f0fd['detail']['cdnUrl']});}),_0x4f5b8b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x21b865(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x327765,_0x1c80e7,_0x5579e4){super(),this['_editor']=_0x327765,this['_dialog']=_0x1c80e7,this['_imageElement']=_0x5579e4,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 _0x3ac775=this['_imageElement'],_0x57e853=_0x3ac775['getAttribute']('uploadcareImageId'),_0x13e40=_0x3ac775['getAttribute']('src');if(_0x57e853)await this['_loadImageInfo'](_0x57e853,_0x13e40);else{if(this['_imageCache']['has'](_0x13e40)){const _0x4f5fa9=this['_imageCache']['get'](_0x13e40);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f5fa9['url'],this['imageDimension']=_0x4f5fa9['dimension'],this['imageId']=_0x4f5fa9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e3c38}=this['_editor'],t=_0x4e3c38['t'],_0x3548e5=new Z(_0x4e3c38,this['imageStatus'],this['_attributes']);_0x3548e5['bind']('status')['to'](this,'imageStatus'),_0x3548e5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3548e5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3548e5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3548e5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x17302f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3548e5,'position':_0x58d916['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3548e5['focus']();},'onHide':()=>{_0x3548e5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4f9dd7=>!F(_0x4f9dd7,_0x3548e5['element'])}});}['_loadImageInfo'](_0x1d10c0,_0x1ebd76){return C['getInfo'](_0x1d10c0,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x26cced=>{const {width:_0x10e450,height:_0x4f4cde}=_0x26cced['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ebd76,this['imageDimension']={'width':_0x10e450,'height':_0x4f4cde},this['imageId']=_0x1d10c0;})['catch'](_0xaa3ae1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xaa3ae1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x48de2d,_0x51482d){return this['_getImageAsFile'](_0x48de2d)['then'](_0x3b3f58=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x51482d['signal'],'file':_0x3b3f58,'onProgress':_0x427e73=>{_0x427e73&&_0x427e73['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x427e73['value']));}}))['then'](_0x2178af=>{const {width:_0x59aadc,height:_0xd518be}=_0x2178af['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2178af['cdnUrl'],this['imageDimension']={'width':_0x59aadc,'height':_0xd518be},this['imageId']=_0x2178af['uuid'],this['imageUploadProgress']=null;const _0x4f007b=_0x48de2d['getAttribute']('src');this['_imageCache']['set'](_0x4f007b,{'id':_0x2178af['uuid'],'url':_0x2178af['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x266d5e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x266d5e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x483315,_0x33ec0c){_0x483315['on']('apply',(_0x30df64,_0xd8826e)=>{this['_replaceImage'](_0x33ec0c,_0xd8826e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x483315['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x483315['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xc14886,_0x31a9a6,_0x40706a){const _0x3cbaf6=this['_editor'],{width:_0x5b6d00,height:_0x3c76f7}=A(_0x31a9a6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1d0253,imageSources:_0xfc498a}=E(_0x31a9a6,_0x5b6d00);_0x3cbaf6['model']['change'](_0x54800c=>{if('$graveyard'===_0xc14886['root']['rootName']){_0x3cbaf6['execute']('insertImage',{'imageType':_0xc14886['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xc14886['getAttributes']()),'uploadcareImageId':_0x40706a,'src':_0x1d0253,'sources':_0xfc498a,'width':_0x5b6d00,'height':_0x3c76f7}});const _0xf7cd2a=_0xc14886['getChildren']();_0xc14886=_0x3cbaf6['model']['document']['selection']['getSelectedElement']();for(const _0x2c7ec4 of _0xf7cd2a)_0x54800c['append'](_0x54800c['cloneElement'](_0x2c7ec4),_0xc14886);}else _0x54800c['setSelection'](_0xc14886,'on'),_0x3cbaf6['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xc14886['getAttributes']()),'uploadcareImageId':_0x40706a,'src':_0x1d0253,'sources':_0xfc498a,'width':_0x5b6d00,'height':_0x3c76f7},_0xc14886);_0x54800c['setSelection'](_0xc14886,'on');});}async['_getImageAsFile'](_0x172895){const _0x4acd13=_0x21d78a['window'],_0x176cf6=_0x21d78a['document']['location']['href'],_0x4d75b4=new _0x4acd13['URL'](_0x172895['getAttribute']('src'),_0x176cf6);if('data:'===_0x4d75b4['protocol']){const _0x1ffa4a=_0x4d75b4['href']['split'](','),_0x2b0093=_0x1ffa4a[0x0]['match'](/:(.*?);/)[0x1],_0x2e1403=_0x2b0093['split']('/')[0x1],_0xd24456=_0x4acd13['atob'](_0x1ffa4a[_0x1ffa4a['length']-0x1]);let _0x7ea374=_0xd24456['length'];const _0x49bd96=new _0x4acd13['Uint8Array'](_0x7ea374);for(;_0x7ea374--;)_0x49bd96[_0x7ea374]=_0xd24456['charCodeAt'](_0x7ea374);return new _0x4acd13['File']([_0x49bd96],'image.'+_0x2e1403,{'type':_0x2b0093});}const _0x4ba4fa=_0x4d75b4['href']['split']('/'),_0x2b5626=_0x4ba4fa[_0x4ba4fa['length']-0x1],_0x1bd017=_0x2b5626['split']('.')[0x1];return _0x4acd13['fetch'](_0x4d75b4['href'])['then'](_0x37d992=>_0x37d992['clone']()['blob']())['then'](_0x5d32a6=>new _0x4acd13['File']([_0x5d32a6],_0x2b5626,{'type':'image/'+_0x1bd017}));}}class V extends _0x285b90{['imageEditController'];static get['requires'](){return[_0x376426];}['_isEditable'];constructor(_0x1fcab7){super(_0x1fcab7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x357887){const _0x16f649=R(_0x357887);return _0x57ec43=>!(!_0x57ec43||!_0x57ec43['is']('element','imageBlock')&&!_0x57ec43['is']('element','imageInline'))&&(!!_0x57ec43['hasAttribute']('uploadcareImageId')||!!_0x57ec43['hasAttribute']('src')&&_0x16f649(_0x57ec43['getAttribute']('src')));}(_0x1fcab7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x136153=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x136153);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x34fe61=this['editor']['model']['document']['selection']['getSelectedElement']();_0x34fe61&&(_0x34fe61['is']('element','imageBlock')||_0x34fe61['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x376426),_0x34fe61),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0x285b90{['refresh'](){const _0x464ed3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x464ed3&&(_0x464ed3['is']('element','imageBlock')||_0x464ed3['is']('element','imageInline')));}['execute'](_0x13271d){const _0x10e42b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x13269f=>{_0x13269f['setAttributes'](_0x13271d,_0x10e42b),_0x13269f['removeAttribute']('srcset',_0x10e42b),_0x13269f['removeAttribute']('sizes',_0x10e42b);});}}class g extends _0x12578e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xcf256c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x24ee16}=this;_0x24ee16['commands']['add']('uploadcareImageEdit',new V(_0x24ee16)),_0x24ee16['commands']['add']('uploadcareImageReplace',new X(_0x24ee16));}}class j extends _0x12578e{['_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 _0x3507fa=this['editor'];_0x3507fa['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5c49b3=>{const _0x1c9c5d=_0x3507fa['commands']['get']('uploadcareImageEdit'),_0x4f1a3c=new _0x55c549(_0x5c49b3),t=_0x5c49b3['t'];return _0x4f1a3c['set']({'icon':_0x17302f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4f1a3c['bind']('isEnabled')['to'](_0x1c9c5d),_0x4f1a3c['bind']('isOn')['to'](_0x1c9c5d,'isActive'),this['listenTo'](_0x4f1a3c,'execute',()=>{_0x3507fa['execute']('uploadcareImageEdit'),_0x3507fa['editing']['view']['focus']();}),_0x4f1a3c;}),this['_initConfig']();}['_initConfig'](){const _0x33dbad=_0x112e4b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x33dbad),this['listenTo'](this['editor'],'destroy',()=>{_0x33dbad['remove']();});}}class P extends _0x12578e{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4694f7=>0x1!=_0x4694f7}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1446d1=>{const {af:{dictionary:_0x25f20d,getPluralForm:_0x24064f}}={'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':_0x134ee6=>0x1!=_0x134ee6}};_0x1446d1['af']||={'dictionary':{},'getPluralForm':null},_0x1446d1['af']['dictionary']=Object['assign'](_0x1446d1['af']['dictionary'],_0x25f20d),_0x1446d1['af']['getPluralForm']=_0x24064f;})(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':_0x5cf9ff=>0x0==_0x5cf9ff?0x0:0x1==_0x5cf9ff?0x1:0x2==_0x5cf9ff?0x2:_0x5cf9ff%0x64>=0x3&&_0x5cf9ff%0x64<=0xa?0x3:_0x5cf9ff%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5cd075=>{const {ar:{dictionary:_0x22663e,getPluralForm:_0x331fda}}={'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':_0x2059b1=>0x0==_0x2059b1?0x0:0x1==_0x2059b1?0x1:0x2==_0x2059b1?0x2:_0x2059b1%0x64>=0x3&&_0x2059b1%0x64<=0xa?0x3:_0x2059b1%0x64>=0xb?0x4:0x5}};_0x5cd075['ar']||={'dictionary':{},'getPluralForm':null},_0x5cd075['ar']['dictionary']=Object['assign'](_0x5cd075['ar']['dictionary'],_0x22663e),_0x5cd075['ar']['getPluralForm']=_0x331fda;})(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':_0x344050=>0x1!=_0x344050}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x42e615=>{const {ast:{dictionary:_0x3d540b,getPluralForm:_0x15e405}}={'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':_0x45a339=>0x1!=_0x45a339}};_0x42e615['ast']||={'dictionary':{},'getPluralForm':null},_0x42e615['ast']['dictionary']=Object['assign'](_0x42e615['ast']['dictionary'],_0x3d540b),_0x42e615['ast']['getPluralForm']=_0x15e405;})(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':_0x1e0505=>0x1!=_0x1e0505}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x556ef0=>{const {az:{dictionary:_0xb5e547,getPluralForm:_0x29b857}}={'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':_0xfee6b4=>0x1!=_0xfee6b4}};_0x556ef0['az']||={'dictionary':{},'getPluralForm':null},_0x556ef0['az']['dictionary']=Object['assign'](_0x556ef0['az']['dictionary'],_0xb5e547),_0x556ef0['az']['getPluralForm']=_0x29b857;})(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':_0x1efac4=>_0x1efac4%0xa==0x1&&_0x1efac4%0x64!=0xb?0x0:_0x1efac4%0xa>=0x2&&_0x1efac4%0xa<=0x4&&(_0x1efac4%0x64<0xa||_0x1efac4%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3736d1=>{const {be:{dictionary:_0x2b2680,getPluralForm:_0x4600b1}}={'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':_0x418570=>_0x418570%0xa==0x1&&_0x418570%0x64!=0xb?0x0:_0x418570%0xa>=0x2&&_0x418570%0xa<=0x4&&(_0x418570%0x64<0xa||_0x418570%0x64>=0x14)?0x1:0x2}};_0x3736d1['be']||={'dictionary':{},'getPluralForm':null},_0x3736d1['be']['dictionary']=Object['assign'](_0x3736d1['be']['dictionary'],_0x2b2680),_0x3736d1['be']['getPluralForm']=_0x4600b1;})(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':_0x2c9cec=>0x1!=_0x2c9cec}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1904ff=>{const {bg:{dictionary:_0x5c86fd,getPluralForm:_0x451e42}}={'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':_0xeeb64e=>0x1!=_0xeeb64e}};_0x1904ff['bg']||={'dictionary':{},'getPluralForm':null},_0x1904ff['bg']['dictionary']=Object['assign'](_0x1904ff['bg']['dictionary'],_0x5c86fd),_0x1904ff['bg']['getPluralForm']=_0x451e42;})(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':_0x1c5df4=>0x1!=_0x1c5df4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e3269=>{const {bn:{dictionary:_0x1e4658,getPluralForm:_0x4e6696}}={'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':_0x404cef=>0x1!=_0x404cef}};_0x1e3269['bn']||={'dictionary':{},'getPluralForm':null},_0x1e3269['bn']['dictionary']=Object['assign'](_0x1e3269['bn']['dictionary'],_0x1e4658),_0x1e3269['bn']['getPluralForm']=_0x4e6696;})(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':_0x548d74=>_0x548d74%0xa==0x1&&_0x548d74%0x64!=0xb?0x0:_0x548d74%0xa>=0x2&&_0x548d74%0xa<=0x4&&(_0x548d74%0x64<0xa||_0x548d74%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x19cc6f=>{const {bs:{dictionary:_0x38306b,getPluralForm:_0x2091ec}}={'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':_0x8116b9=>_0x8116b9%0xa==0x1&&_0x8116b9%0x64!=0xb?0x0:_0x8116b9%0xa>=0x2&&_0x8116b9%0xa<=0x4&&(_0x8116b9%0x64<0xa||_0x8116b9%0x64>=0x14)?0x1:0x2}};_0x19cc6f['bs']||={'dictionary':{},'getPluralForm':null},_0x19cc6f['bs']['dictionary']=Object['assign'](_0x19cc6f['bs']['dictionary'],_0x38306b),_0x19cc6f['bs']['getPluralForm']=_0x2091ec;})(window['CKEDITOR_TRANSLATIONS']||={});
|