@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250316.0 → 0.0.0-nightly-20250318.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/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 _0x1db71b,Command as _0x483aa4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x833f13,IconGooglePhotos as _0x2569b6,IconGoogleDrive as _0x28e0eb,IconFacebook as _0x3c7ab6,IconDropbox as _0x23bc93,IconUploadcareLink as _0x32ce2c,IconUploadcareImageUpload as _0x224c52,IconError as et,IconUploadcareImageEdit as _0x24a903}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4fd5bd,MenuBarMenuListItemButtonView as _0x267cbc,View as _0x137075,FocusCycler as _0x16de9b,Dialog as _0x50810b,DialogViewPosition as _0x51031e,SpinnerView as _0x200ccc,IconView as at,Notification as _0x184cdd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4fcb14,DomEmitterMixin as _0x3d65de,global as _0x226396,getAncestors as _0x2c5509,ObservableMixin as _0x2b3741,createElement as _0x56a980,uid as _0x1728c3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2fabd9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2f2d3d,info as _0x5b83df}from'@uploadcare/upload-client';import*as _0x5e21e8 from'@uploadcare/file-uploader';var o=function(_0x102c43){return _0x102c43['Local']='local',_0x102c43['URL']='url',_0x102c43['Dropbox']='dropbox',_0x102c43['GDrive']='gdrive',_0x102c43['Facebook']='facebook',_0x102c43['GPhotos']='gphotos',_0x102c43['OneDrive']='onedrive',_0x102c43;}({});function _(_0x406ada,_0x509e6,_0x5aeda6){const t=_0x406ada['t'],_0x6cc901=_0x406ada['t'];switch(_0x509e6){case o['Local']:return{'text':_0x6cc901('Insert'===_0x5aeda6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x6cc901('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5aeda6?_0x6cc901('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x6cc901('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5aeda6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5aeda6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5aeda6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5aeda6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5aeda6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x509e6;}}class e extends _0x1db71b{['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 _0x21adb7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x432bd7;for(const _0x43a8d9 in _0x21adb7){const _0x1b62ff=_0x43a8d9,_0x40027d=_0x21adb7[_0x1b62ff];if('uploadcareLicenseKeyValid'==_0x40027d||'uploadcareLicenseKeyInvalid'==_0x40027d||'uploadcareLicenseKeyExpired'==_0x40027d||'uploadcareLicenseKeyDomainLimit'==_0x40027d||'uploadcareLicenseKeyNotAllowed'==_0x40027d||'uploadcareLicenseKeyEvaluationLimit'==_0x40027d||'uploadcareLicenseKeyTrialLimit'==_0x40027d||'uploadcareLicenseKeyUsageLimit'==_0x40027d){delete _0x21adb7[_0x1b62ff],_0x432bd7=_0x40027d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x432bd7&&_0x21adb7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x432bd7&&_0x21adb7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x432bd7&&_0x21adb7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x432bd7&&_0x21adb7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x432bd7&&_0x21adb7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x432bd7&&_0x21adb7['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x432bd7&&_0x21adb7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xcc1551}=this,_0x70572f=_0xcc1551['commands']['get']('uploadcare');if(!_0x70572f)return;const _0x16b147=this['_normalizeConfigSourceList'](_0xcc1551['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2d91e3,_0x4eec2d)=>{const _0x4d5cd8=this['_getIntegrationKey'](_0x4eec2d['type']);return _0x2d91e3[_0x4d5cd8]||(_0x2d91e3[_0x4d5cd8]=[]),_0x2d91e3[_0x4d5cd8]['push'](_0x4eec2d),_0x2d91e3;},{});_0xcc1551['plugins']['has']('ImageInsertUI')&&_0xcc1551['commands']['get']('uploadcare')&&Object['entries'](_0x16b147)['forEach'](([_0x504d2a,_0x31b9df])=>{_0xcc1551['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x504d2a,'observable':()=>_0x70572f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x31b9df),'formViewCreator':()=>this['_createDropdownButtons'](_0x31b9df),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x31b9df),'override':'assetManager'!==_0x504d2a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1f14cd){const {locale:_0x5c245a}=this['editor'];return _0x1f14cd['map'](_0x16950f=>{const _0x5deca8=_(_0x5c245a,_0x16950f,'Insert');switch(_0x16950f){case o['Local']:return{'icon':_0x224c52,'type':o['Local'],..._0x5deca8};case o['URL']:return{'icon':_0x32ce2c,'type':o['URL'],..._0x5deca8};case o['Dropbox']:return{'icon':_0x23bc93,'type':o['Dropbox'],..._0x5deca8};case o['Facebook']:return{'icon':_0x3c7ab6,'type':o['Facebook'],..._0x5deca8};case o['GDrive']:return{'icon':_0x28e0eb,'type':o['GDrive'],..._0x5deca8};case o['GPhotos']:return{'icon':_0x2569b6,'type':o['GPhotos'],..._0x5deca8};case o['OneDrive']:return{'icon':_0x833f13,'type':o['OneDrive'],..._0x5deca8};}});}['_getIntegrationKey'](_0x2efa4e){switch(_0x2efa4e){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x502f0b,_0x37244a){const _0x27309a=this['editor'],_0x5c1753=new _0x502f0b(_0x27309a['locale']),_0x215442=_0x27309a['commands']['get']('uploadcare');return _0x5c1753['bind']('isEnabled')['to'](_0x215442),_0x5c1753['on']('execute',()=>{_0x215442['execute'](_0x37244a);}),_0x5c1753;}['_createToolbarButton'](_0x19557e){const {locale:_0xdaa668}=this['editor'],_0x426cd1=this['editor']['plugins']['get']('ImageInsertUI'),_0x25e38b=_0x19557e[0x0],_0x256e90=this['_createButton'](_0x4fd5bd,_0x25e38b['type']);return _0x256e90['icon']=_0x25e38b['icon'],_0x256e90['bind']('label')['to'](_0x426cd1,'isImageSelected',_0x50cf65=>_(_0xdaa668,_0x25e38b['type'],_0x50cf65?'Replace':'Insert')['text']),_0x256e90['tooltip']=!0x0,_0x256e90;}['_createDropdownButtons'](_0x320806){const {locale:_0x174b54}=this['editor'],_0x15c1ee=this['editor']['plugins']['get']('ImageInsertUI');return _0x320806['map'](_0x426b44=>{const _0x5e6e6c=this['_createButton'](_0x4fd5bd,_0x426b44['type']);return _0x5e6e6c['withText']=!0x0,_0x5e6e6c['icon']=_0x426b44['icon'],_0x5e6e6c['bind']('label')['to'](_0x15c1ee,'isImageSelected',_0x50d7ad=>_(_0x174b54,_0x426b44['type'],_0x50d7ad?'Replace':'Insert')['text']),_0x5e6e6c;});}['_createMenuBarButtons'](_0x6498d7){return _0x6498d7['map'](_0xccdf87=>{const _0x328cf8=this['_createButton'](_0x267cbc,_0xccdf87['type']);return _0x328cf8['icon']=_0xccdf87['icon'],_0x328cf8['label']=_0xccdf87['shortText'],_0x328cf8;});}}class q extends _0x137075{['focusTracker'];['focusCycler'];constructor(_0x1aeed6){super(_0x1aeed6),this['focusTracker']=new _0x4fcb14(),this['focusCycler']=new _0x16de9b({'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(_0x2989bb){super(_0x2989bb),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(_0x366188,_0x3a62da){const _0x521d2f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x136b65=>_0x136b65<=_0x3a62da)['map'](_0x31773c=>_0x366188['replace'](/\/$/,'')+'/-/resize/'+_0x31773c+'x/\x20'+_0x31773c+'w');return{'imageFallbackUrl':_0x366188,'imageSources':[{'srcset':_0x521d2f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3a62da+'px)\x20100vw,\x20'+_0x3a62da+'px','type':'image/webp'}]};}function A(_0x556d8a,_0x46beec,_0x19371b){const _0x170fe9=_0x556d8a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x170fe9?parseInt(_0x170fe9[0x1],0xa):_0x46beec,'height':_0x170fe9?parseInt(_0x170fe9[0x2],0xa):_0x19371b};}function m(_0x38e7b0,_0x820ab9){const _0x2609b4=Object['create'](_0x3d65de),_0xb966a5=_0x38e7b0['plugins']['get']('ImageUtils'),_0x11f398=_0x38e7b0['editing']['mapper']['toViewElement'](_0x820ab9),_0x47b85d=_0xb966a5['findViewImgElement'](_0x11f398),_0x543053=_0x38e7b0['editing']['view']['domConverter']['viewToDom'](_0x47b85d),_0x274f68=_0x820ab9['getAttribute']('width'),_0x18b0b0=_0x820ab9['getAttribute']('height'),_0x40afac='image-processing';_0x38e7b0['editing']['view']['change'](_0x561a8d=>{_0x561a8d['addClass'](_0x40afac,_0x11f398),_0x561a8d['setStyle']('aspect-ratio',_0x274f68+'/'+_0x18b0b0,_0x47b85d);}),_0x2609b4['listenTo'](_0x543053,'load',()=>{_0x2609b4['stopListening'](_0x543053,'load'),_0x38e7b0['editing']['view']['change'](_0x3edb39=>{_0x3edb39['removeClass'](_0x40afac,_0x11f398),_0x3edb39['removeStyle']('aspect-ratio',_0x47b85d);});});}function V(_0xc50be4){if(Array['isArray'](_0xc50be4)){const _0x5a093a=_0xc50be4['map'](V);return _0x365ca1=>_0x5a093a['some'](_0x2baf47=>_0x2baf47(_0x365ca1));}if('origin'==_0xc50be4){const _0x9e048b=_0x226396['window']['location']['origin'];return _0x2eb1dd=>new URL(_0x2eb1dd,_0x226396['document']['baseURI'])['origin']==_0x9e048b;}return'function'==typeof _0xc50be4?_0xc50be4:_0xc50be4 instanceof RegExp?_0x5d12ee=>!(!_0x5d12ee['match'](_0xc50be4)&&!_0x5d12ee['replace'](/^https?:\/\//,'')['match'](_0xc50be4)):()=>!0x1;}function F(_0x33b4ae,_0x9285c2){return _0x2c5509(_0x33b4ae['target'])['includes'](_0x9285c2);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2b3741(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1a829e,_0x1be3d2,_0xc93bb2){super(),this['_editor']=_0x1a829e,this['_editing']=_0x1be3d2,this['_dialog']=_0x1a829e['plugins']['get'](_0x50810b),this['_api']=_0x1be3d2['ctxElement']['getAPI'](),this['_type']=_0xc93bb2,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:_0x153ac1,model:_0x212828}=this['_editor'],_0x103586=_0x212828['document']['selection']['getSelectedElement'](),_0x14e537=_0x103586&&(_0x103586['is']('element','imageBlock')||_0x103586['is']('element','imageInline'));this['_formView']=new S(_0x153ac1),this['_dialog']['show']({'id':'uploadCare','icon':_0x224c52,'title':_(_0x153ac1,this['_type'],_0x14e537?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x51031e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4988dd=>!F(_0x4988dd,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1b85b7}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x38fb11=>{const _0x645790=_0x1b85b7['length'];for(const _0x1e75dd of _0x1b85b7){const _0x12e810=_0x1e75dd===_0x1b85b7[_0x645790-0x1],{cdnUrl:_0x31f599,fileInfo:_0xb2b73b}=_0x1e75dd;if(!_0x31f599||!_0xb2b73b)continue;const {width:_0x6a49a9,height:_0x496a0c}=_0xb2b73b['imageInfo'],_0x357ceb=A(_0x31f599,_0x6a49a9,_0x496a0c),_0x447b8d=E(_0x31f599,_0x357ceb['width']),_0xfea201={'id':_0xb2b73b['uuid'],'type':'image','attributes':{'imageDimension':_0x357ceb,..._0x447b8d}};this['_insertAsset'](_0xfea201,_0x12e810,_0x38fb11);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xf25be7=>{'idle'===_0xf25be7['detail']['status']&&!_0xf25be7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x72877,_0x480a10,_0x93e181){const _0x5de13e=this['_editor']['model']['document']['selection'],_0x4a04a3=_0x5de13e['getSelectedElement'](),_0x46e2b6=!(!_0x4a04a3||!_0x4a04a3['is']('element','imageInline'));_0x93e181['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x72877,_0x46e2b6),_0x480a10||_0x93e181['setSelection'](_0x5de13e['getLastPosition']());}['_insertImage'](_0x1adb1b,_0x135b29){const _0x1c744d=this['_editor'],{imageDimension:_0x5773e0,imageFallbackUrl:_0x1d4b4c,imageSources:_0xae41fc}=_0x1adb1b['attributes'];_0x1c744d['execute']('insertImage',{'imageType':_0x135b29?'imageInline':null,'source':{'uploadcareImageId':_0x1adb1b['id'],'src':_0x1d4b4c,'sources':_0xae41fc,..._0x5773e0}});}}class n extends _0x483aa4{['_editing'];['_controller']=null;static get['requires'](){return[_0x50810b,i];}constructor(_0x56c911){super(_0x56c911),this['_editing']=_0x56c911['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x542124){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x542124);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x4e955c,publicKey:_0x1213ab,signal:_0x333937,onProgress:_0x38d725}){return _0x2f2d3d(_0x4e955c,{'publicKey':_0x1213ab,'store':'auto','signal':_0x333937,'onProgress':_0x38d725});}static['getInfo'](_0x4f3ced,_0x39dbb7){return _0x5b83df(_0x4f3ced,_0x39dbb7);}}class p extends _0x1db71b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2fabd9,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5e0a20=this['editor'];if(!!!_0x5e0a20['config']['get']('uploadcare'))return;_0x5e0a20['plugins']['get'](_0x2fabd9)['createUploadAdapter']=_0x348314=>new x(_0x348314,_0x5e0a20),_0x5e0a20['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4cd672,{imageElement:_0x415c31,data:_0x5a803b})=>{_0x5e0a20['model']['change'](_0x3fb8c6=>{_0x3fb8c6['setAttribute']('uploadcareImageId',_0x5a803b['uploadcareImageId'],_0x415c31);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2f65ff,_0x33032c){this['loader']=_0x2f65ff,this['editor']=_0x33032c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1f806a=this['editor']['config']['get']('uploadcare.pubkey'),_0x575f29=await this['loader']['file'];return C['upload']({'file':_0x575f29,'publicKey':_0x1f806a,'signal':this['controller']['signal'],'onProgress':_0x529398=>{_0x529398&&_0x529398['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x529398['value']);}})['then'](async _0x1d58a7=>{const {imageFallbackUrl:_0x3c3d27,imageSources:_0x1e7e40}=E(_0x1d58a7['cdnUrl'],_0x1d58a7['imageInfo']['width']);return{'uploadcareImageId':_0x1d58a7['uuid'],'default':_0x3c3d27,'sources':_0x1e7e40};})['catch'](()=>{const _0x5e78df=t('Cannot\x20upload\x20file:')+('\x20'+_0x575f29['name']+'.');return Promise['reject'](_0x5e78df);});}['abort'](){this['controller']['abort']();}}class i extends _0x1db71b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x50810b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x366264=this['editor'];_0x366264['commands']['add']('uploadcare',new n(_0x366264));}['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 _0x11f3d3=_0x226396['document']['querySelector']('input[uploadcare-file-input]');_0x11f3d3&&_0x11f3d3['remove']();}),async function(_0x17d68d){const _0x2d7d4e=_0x949222([0x41,0x52,0x5a,0x30,0x53,0x55,0x6d,0x79,0x71,0x58,0x69,0x4a,0x49,0x4f,0x74,0x39,0x65,0x4b,0x63,0x43,0x67,0x47,0x6a,0x51,0x46,0x56,0x34,0x33,0x68,0x50,0x6b,0x66,0x7a,0x78,0x44,0x54,0x48,0x4c,0x37,0x32,0x45,0x72,0x59,0x6f,0x6e,0x75,0x73,0x57,0x31,0x36,0x4e,0x6c,0x77,0x42,0x76,0x4d,0x35,0x61,0x62,0x64,0x70,0x38]),_0xa03489=0x17c91055,_0x1304c2=0x17ce721d^_0xa03489,_0x13c754=window[_0x949222([0x44,0x61,0x74,0x65])][_0x949222([0x6e,0x6f,0x77])](),_0x297124=_0x17d68d[_0x949222([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x23511b=new window[(_0x949222([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b423d=>{_0x297124[_0x949222([0x6f,0x6e,0x63,0x65])](_0x949222([0x72,0x65,0x61,0x64,0x79]),_0x1b423d);}),_0x2879d9={[_0x949222([0x6b,0x74,0x79])]:_0x949222([0x45,0x43]),[_0x949222([0x75,0x73,0x65])]:_0x949222([0x73,0x69,0x67]),[_0x949222([0x63,0x72,0x76])]:_0x949222([0x50,0x2d,0x32,0x35,0x36]),[_0x949222([0x78])]:_0x949222([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]),[_0x949222([0x79])]:_0x949222([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]),[_0x949222([0x61,0x6c,0x67])]:_0x949222([0x45,0x53,0x32,0x35,0x36])},_0x12d77f=_0x297124[_0x949222([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x949222([0x67,0x65,0x74])](_0x949222([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2dfb35(){let _0x4b9f46,_0x41e796=null,_0x65ee02=null;try{if(_0x12d77f==_0x949222([0x47,0x50,0x4c]))return _0x949222([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b9f46=_0x15364a(),!_0x4b9f46)return _0x949222([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b9f46[_0x949222([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x65ee02=_0x3cf7b4(_0x4b9f46[_0x949222([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b9f46[_0x949222([0x6a,0x74,0x69])])),await _0x546101()?_0x2e2883()?_0x376195()?_0x949222([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x127b1f()?(_0x4b9f46[_0x949222([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x949222([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41e796=_0x208e4e(_0x949222([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b9f46[_0x949222([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x949222([0x74,0x72,0x69,0x61,0x6c])&&(_0x41e796=_0x208e4e(_0x949222([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4fecb9()):_0x949222([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x949222([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x949222([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2c4cb2){return _0x949222([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x376195(){const _0x39282e=[_0x949222([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x949222([0x74,0x72,0x69,0x61,0x6c])][_0x949222([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9f46[_0x949222([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13c754/0x3e8:0xe10*_0x1304c2;return _0x4b9f46[_0x949222([0x65,0x78,0x70])]<_0x39282e;}function _0x2e2883(){const _0x332616=_0x4b9f46[_0x949222([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x332616&&(!!_0x332616[_0x949222([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x949222([0x2a]))||!!_0x332616[_0x949222([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x949222([0x55,0x50,0x4c,0x43])));}function _0x127b1f(){const _0x5bd986=_0x4b9f46[_0x949222([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5bd986||0x0==_0x5bd986[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc98458}=new URL(window[_0x949222([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5bd986[_0x949222([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc98458))return!0x0;const _0x553f4c=_0xc98458[_0x949222([0x73,0x70,0x6c,0x69,0x74])](_0x949222([0x2e]));return _0x5bd986[_0x949222([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4dd1e3=>_0x4dd1e3[_0x949222([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x949222([0x2a])))[_0x949222([0x6d,0x61,0x70])](_0xf9ef47=>_0xf9ef47[_0x949222([0x73,0x70,0x6c,0x69,0x74])](_0x949222([0x2e])))[_0x949222([0x73,0x6f,0x6d,0x65])](_0x70df8e=>_0x553f4c[_0x949222([0x65,0x76,0x65,0x72,0x79])]((_0x2d5286,_0x8df1a0)=>_0x70df8e[_0x8df1a0]===_0x2d5286||_0x70df8e[_0x8df1a0]===_0x949222([0x2a])));}function _0x4fecb9(){return _0x41e796&&_0x65ee02?new window[(_0x949222([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33009f,_0x4c973d)=>{_0x41e796[_0x949222([0x74,0x68,0x65,0x6e])](_0x33009f,_0x4c973d),_0x65ee02[_0x949222([0x74,0x68,0x65,0x6e])](_0xc8f601=>{_0xc8f601!=_0x949222([0x56,0x61,0x6c,0x69,0x64])&&_0x33009f(_0xc8f601);},_0x4c973d);}):_0x41e796||_0x65ee02||_0x949222([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3cf7b4(_0x247b86,_0x1dacce){return new window[(_0x949222([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ac8f4=>{if(_0x259817())return _0x3ac8f4(_0x949222([0x56,0x61,0x6c,0x69,0x64]));_0x3b6726(),_0x297124[_0x949222([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x949222([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x562cd5=!0x1;const _0x3023c0=_0x1728c3();function _0x53762f(_0x535201){return!!_0x535201&&(typeof _0x535201===_0x949222([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x535201===_0x949222([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x535201[_0x949222([0x74,0x68,0x65,0x6e])]===_0x949222([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x535201[_0x949222([0x63,0x61,0x74,0x63,0x68])]===_0x949222([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bc0c6(_0x174c05){_0x31b905(_0x174c05)[_0x949222([0x74,0x68,0x65,0x6e])](_0x527c0f=>{if(!_0x527c0f||_0x527c0f[_0x949222([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x949222([0x6f,0x6b]))return _0x949222([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xccb59d(_0x5c51ed(_0x3023c0+_0x1dacce))!=_0x527c0f[_0x949222([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x949222([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x949222([0x56,0x61,0x6c,0x69,0x64]);})[_0x949222([0x74,0x68,0x65,0x6e])](_0x32238f=>(_0x204bd5(),_0x32238f),()=>{const _0x2b5587=_0x1a9d7e();return null==_0x2b5587?(_0x204bd5(),_0x949222([0x56,0x61,0x6c,0x69,0x64])):_0x949222(_0x13c754-_0x2b5587>(0x33c59455^_0xa03489)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x949222([0x74,0x68,0x65,0x6e])](_0x3ac8f4)[_0x949222([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ac8f4(_0x949222([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1accf2=0x17fffed5^_0xa03489;function _0x204bd5(){const _0x4e79a2=_0x949222([0x6c,0x6c,0x63,0x74,0x2d])+_0xccb59d(_0x5c51ed(_0x247b86)),_0x2ad05f=_0x4fdfdb(_0xccb59d(window[_0x949222([0x4d,0x61,0x74,0x68])][_0x949222([0x63,0x65,0x69,0x6c])](_0x13c754/_0x1accf2)));window[_0x949222([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x949222([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e79a2,_0x2ad05f);}function _0x1a9d7e(){const _0x38d796=_0x949222([0x6c,0x6c,0x63,0x74,0x2d])+_0xccb59d(_0x5c51ed(_0x247b86)),_0x218903=window[_0x949222([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x949222([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38d796);return _0x218903?window[_0x949222([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fdfdb(_0x218903),0x10)*_0x1accf2:null;}function _0x31b905(_0x20b5e5){return new window[(_0x949222([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d20de,_0x14996e)=>{_0x20b5e5[_0x949222([0x74,0x68,0x65,0x6e])](_0x5d20de,_0x14996e),window[_0x949222([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14996e,0x17c8c495^_0xa03489);});}}_0x297124[_0x949222([0x6f,0x6e])](_0x949222([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e8e0f,_0xe43413)=>{if(_0xe43413[0x0]!=_0x247b86)return _0x3ac8f4(_0x949222([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe43413[0x1]={..._0xe43413[0x1],[_0x949222([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3023c0};},{[_0x949222([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x949222([0x68,0x69,0x67,0x68])}),_0x297124[_0x949222([0x6f,0x6e])](_0x949222([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fda11=>{_0x53762f(_0x1fda11[_0x949222([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x562cd5=!0x0,_0x4bc0c6(_0x1fda11[_0x949222([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x949222([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x949222([0x6c,0x6f,0x77])}),_0x23511b[_0x949222([0x74,0x68,0x65,0x6e])](()=>{_0x562cd5||_0x3ac8f4(_0x949222([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x259817(){return _0x297124[_0x949222([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x949222([0x76,0x69,0x65,0x77])][_0x949222([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x949222([0x61,0x75,0x74,0x6f]);}function _0x3b6726(){_0x297124[_0x949222([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x949222([0x76,0x69,0x65,0x77])][_0x949222([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x949222([0x61,0x75,0x74,0x6f]);}}function _0x208e4e(_0xa9c8bf){const _0x3fe0f3=[new window[(_0x949222([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bc91c=>setTimeout(_0x3bc91c,0x17c02e99^_0xa03489)),_0x23511b[_0x949222([0x74,0x68,0x65,0x6e])](()=>new window[(_0x949222([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24c990=>{let _0x2f7ed7=0x0;_0x297124[_0x949222([0x6d,0x6f,0x64,0x65,0x6c])][_0x949222([0x6f,0x6e])](_0x949222([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32ceab,_0x41f6c6)=>{_0x41f6c6[0x0][_0x949222([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f7ed7++,_0x2f7ed7==(0x17c911ad^_0xa03489)&&(_0x24c990(),_0x32ceab[_0x949222([0x6f,0x66,0x66])]());});}))];return window[_0x949222([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x949222([0x72,0x61,0x63,0x65])](_0x3fe0f3)[_0x949222([0x74,0x68,0x65,0x6e])](()=>_0xa9c8bf);}async function _0x5b5c22(){await _0x23511b,_0x297124[_0x949222([0x6d,0x6f,0x64,0x65,0x6c])][_0x949222([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5aec2e,_0x297124[_0x949222([0x6d,0x6f,0x64,0x65,0x6c])][_0x949222([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5aec2e,_0x297124[_0x949222([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x949222([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbbe635(_0x2be24c){const _0x13bf80=_0x31f106();_0x297124[_0x13bf80]=_0x949222([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2be24c,_0x2be24c!=_0x949222([0x56,0x61,0x6c,0x69,0x64])&&_0x5b5c22();}function _0x31f106(){const _0xe9a046=window[_0x949222([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x949222([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x949222([0x6e,0x6f,0x77])]())[_0x949222([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x949222([0x2e]),'');let _0x5f00c4=_0x949222([0x41]);for(let _0x41fb65=0x0;_0x41fb65<_0xe9a046[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41fb65+=0x2){let _0x35f0a7=window[_0x949222([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe9a046[_0x949222([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41fb65,_0x41fb65+0x2));_0x35f0a7>=_0x2d7d4e[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35f0a7-=_0x2d7d4e[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f00c4+=_0x2d7d4e[_0x35f0a7];}return _0x5f00c4;}function _0x15364a(){const _0x346032=_0x12d77f[_0x949222([0x73,0x70,0x6c,0x69,0x74])](_0x949222([0x2e]));if(0x3!=_0x346032[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49922d(_0x346032[0x1]);function _0x49922d(_0x54367d){const _0x2f0538=_0x2d9b65(_0x54367d);return _0x2f0538&&_0x2ede0c()?_0x2f0538:null;function _0x2ede0c(){const _0x5c4954=_0x2f0538[_0x949222([0x6a,0x74,0x69])],_0x466cb1=window[_0x949222([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c4954[_0x949222([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c4954[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cf2bf={..._0x2f0538,[_0x949222([0x6a,0x74,0x69])]:_0x5c4954[_0x949222([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c4954[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cf2bf[_0x949222([0x76,0x63])],_0x5c51ed(_0x1cf2bf)==_0x466cb1;}}}async function _0x546101(){let _0x33a496=!0x0;try{const _0x4dded2=_0x12d77f[_0x949222([0x73,0x70,0x6c,0x69,0x74])](_0x949222([0x2e])),[_0x33ad22,_0x2c5104,_0x3dd608]=_0x4dded2;return _0x7ee111(_0x33ad22),await _0x262ddf(_0x33ad22,_0x2c5104,_0x3dd608),_0x33a496;}catch(_0x2674d6){return!0x1;}function _0x7ee111(_0x13e28e){const _0x46ecfc=_0x2d9b65(_0x13e28e);_0x46ecfc&&_0x46ecfc[_0x949222([0x61,0x6c,0x67])]==_0x949222([0x45,0x53,0x32,0x35,0x36])||(_0x33a496=!0x1);}async function _0x262ddf(_0x16e377,_0x54bccb,_0x59aa91){const _0x1589e3=window[_0x949222([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x949222([0x66,0x72,0x6f,0x6d])](_0x4451b7(_0x59aa91),_0x1d3eec=>_0x1d3eec[_0x949222([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4763e6=new window[(_0x949222([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x949222([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x16e377+_0x949222([0x2e])+_0x54bccb),_0x21c8dc=window[_0x949222([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x949222([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x21c8dc)return;const _0x2771cd=await _0x21c8dc[_0x949222([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x949222([0x6a,0x77,0x6b]),_0x2879d9,{[_0x949222([0x6e,0x61,0x6d,0x65])]:_0x949222([0x45,0x43,0x44,0x53,0x41]),[_0x949222([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x949222([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x949222([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x21c8dc[_0x949222([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x949222([0x6e,0x61,0x6d,0x65])]:_0x949222([0x45,0x43,0x44,0x53,0x41]),[_0x949222([0x68,0x61,0x73,0x68])]:{[_0x949222([0x6e,0x61,0x6d,0x65])]:_0x949222([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2771cd,_0x1589e3,_0x4763e6)||(_0x33a496=!0x1);}}function _0x2d9b65(_0x2a56cb){return _0x2a56cb[_0x949222([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x949222([0x65,0x79]))?JSON[_0x949222([0x70,0x61,0x72,0x73,0x65])](_0x4451b7(_0x2a56cb)):null;}function _0x4451b7(_0x3e7891){return window[_0x949222([0x61,0x74,0x6f,0x62])](_0x3e7891[_0x949222([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x949222([0x2b]))[_0x949222([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x949222([0x2f])));}function _0x5c51ed(_0x5b90a6){let _0x1a0199=0x1505;function _0x4f0fe2(_0x2b1c7d){for(let _0x265f10=0x0;_0x265f10<_0x2b1c7d[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x265f10++){const _0x5abc1f=_0x2b1c7d[_0x949222([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x265f10);_0x1a0199=(_0x1a0199<<0x5)+_0x1a0199+_0x5abc1f,_0x1a0199&=_0x1a0199;}}function _0xe0a2a9(_0x2ad7ce){Array[_0x949222([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ad7ce)?_0x2ad7ce[_0x949222([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xe0a2a9):_0x2ad7ce&&typeof _0x2ad7ce==_0x949222([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x949222([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ad7ce)[_0x949222([0x73,0x6f,0x72,0x74])]()[_0x949222([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b6139,_0x5aad5e])=>{_0x4f0fe2(_0x3b6139),_0xe0a2a9(_0x5aad5e);}):_0x4f0fe2(window[_0x949222([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ad7ce));}return _0xe0a2a9(_0x5b90a6),_0x1a0199>>>0x0;}function _0xccb59d(_0x3b7be9){return _0x3b7be9[_0x949222([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x949222([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x949222([0x30]));}function _0x4fdfdb(_0x3dd231){return _0x3dd231[_0x949222([0x73,0x70,0x6c,0x69,0x74])]('')[_0x949222([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x949222([0x6a,0x6f,0x69,0x6e])]('');}function _0x5aec2e(){}function _0x949222(_0x5ad353){return _0x5ad353['map'](_0x398c12=>String['fromCharCode'](_0x398c12))['join']('');}_0xbbe635(await _0x2dfb35());}(this);}['_initSchema'](){const _0x453008=this['editor']['model']['schema'];_0x453008['isRegistered']('imageBlock')&&_0x453008['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x453008['isRegistered']('imageInline')&&_0x453008['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xcfc22=this['editor'];_0xcfc22['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xcfc22['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xddc323=>_0xddc323['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x131916=_0xcfc22['commands']['get']('replaceImageSource');_0x131916&&this['listenTo'](_0x131916,'cleanupImage',(_0x315da1,[_0x3a1002,_0x586250])=>{_0x3a1002['removeAttribute']('uploadcareImageId',_0x586250);});}['_initConfig'](){const _0x4158e5=this['editor']['config']['get']('uploadcare.uploader')||{},_0x347286=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x56a980(_0x226396['document'],'uc-config',{..._0x4158e5,'pubkey':_0x347286,'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']=_0x4e1ffa=>{if('closeMax'==_0x4e1ffa)return'#uc-icon-arrow-down';},_0x226396['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x56a980(_0x226396['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x226396['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x56f18b=this['editor']['commands']['get']('insertImage');_0x56f18b&&this['listenTo'](_0x56f18b,'execute',()=>{const _0x117484=this['editor']['model']['document']['selection']['getSelectedElement']();_0x117484&&_0x117484['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x117484);});});const _0x91b005=this['editor']['commands']['get']('uploadcareImageReplace');_0x91b005&&this['listenTo'](_0x91b005,'execute',()=>{const _0x127523=this['editor']['model']['document']['selection']['getSelectedElement']();_0x127523&&_0x127523['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x127523);});});}}class u extends _0x1db71b{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x441ca4){super(_0x441ca4),_0x441ca4['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x5e21e8['defineComponents'](_0x5e21e8);}}class ta extends _0x137075{constructor(_0xf19e9c){super(_0xf19e9c);const t=_0xf19e9c['t'],_0x22edc5=this['bindTemplate'],_0x1f3398=new _0x200ccc();_0x1f3398['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':[_0x1f3398,{'text':_0x22edc5['to']('imageUploadProgress',_0x11976d=>t('Loading\x20image...')+'\x20('+(_0x11976d||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 _0x137075{constructor(_0x5907e0){super(_0x5907e0);const t=_0x5907e0['t'];this['set']('errorType',null);const _0x31e84e=new _0x4fd5bd(_0x5907e0);_0x31e84e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x31e84e['withText']=!0x0,_0x31e84e['class']='ck-button-action',_0x31e84e['on']('execute',()=>{this['fire']('retry');}),_0x31e84e['bind']('isVisible')['to'](this,'errorType',_0x4250fc=>'NotFound'!==_0x4250fc);const _0x56a464=new at();_0x56a464['content']=et,_0x56a464['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x34f031=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':[_0x56a464,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x34f031['to']('errorType',_0x36eade=>t('NotFound'!==_0x36eade?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x31e84e]},{'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 _0x137075{constructor(_0x50a02d,_0x16ca36){super(_0x50a02d);const _0x34ac44=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x16ca36,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x34ac44['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3d5aa1,_0x30e2f9,_0x24e7ba){super(_0x3d5aa1),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3d5aa1),this['_errorView']=new rt(_0x3d5aa1),this['_editingView']=new tt(_0x3d5aa1,_0x24e7ba),this['_focusableView']=new _0x137075(_0x3d5aa1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x30e2f9),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'],_0x33a66c=>{this['_addUploadcareImageEditorListeners'](_0x33a66c);});}),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'](_0x16b4d7,_0x552e17){const _0x5cbd78='uc-cloud-image-editor',_0x29fae4=_0x16b4d7['querySelector'](_0x5cbd78);if(_0x29fae4)return _0x552e17(_0x29fae4);const _0x2828b5=new MutationObserver(_0x5f1e70=>{const _0x2eceb=_0x5f1e70['filter'](_0x30051e=>_0x30051e['target']===_0x16b4d7&&_0x30051e['addedNodes']['length']>0x0&&_0x30051e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5cbd78);_0x2eceb['length']&&(_0x2828b5['disconnect'](),_0x552e17(_0x2eceb[0x0]['addedNodes'][0x0]));});_0x2828b5['observe'](_0x16b4d7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x205d10){_0x205d10['addEventListener']('apply',_0x48a70f=>{this['fire']('apply',{'imageSrc':_0x48a70f['detail']['cdnUrl']});}),_0x205d10['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2b3741(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x15b22b,_0x5d4490,_0x433035){super(),this['_editor']=_0x15b22b,this['_dialog']=_0x5d4490,this['_imageElement']=_0x433035,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 _0x26b28f=this['_imageElement'],_0x387111=_0x26b28f['getAttribute']('uploadcareImageId'),_0x3f8774=_0x26b28f['getAttribute']('src');if(_0x387111)await this['_loadImageInfo'](_0x387111,_0x3f8774);else{if(this['_imageCache']['has'](_0x3f8774)){const _0x53f1ba=this['_imageCache']['get'](_0x3f8774);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x53f1ba['url'],this['imageDimension']=_0x53f1ba['dimension'],this['imageId']=_0x53f1ba['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1ca9e6}=this['_editor'],t=_0x1ca9e6['t'],_0x59608a=new Z(_0x1ca9e6,this['imageStatus'],this['_attributes']);_0x59608a['bind']('status')['to'](this,'imageStatus'),_0x59608a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x59608a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x59608a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x59608a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x24a903,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x59608a,'position':_0x51031e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x59608a['focus']();},'onHide':()=>{_0x59608a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2053b2=>!F(_0x2053b2,_0x59608a['element'])}});}['_loadImageInfo'](_0xbaf33d,_0x5c8977){return C['getInfo'](_0xbaf33d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3f73ba=>{const {width:_0x5161a3,height:_0x36c0a8}=_0x3f73ba['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c8977,this['imageDimension']={'width':_0x5161a3,'height':_0x36c0a8},this['imageId']=_0xbaf33d;})['catch'](_0x3e0693=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e0693['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x429612,_0x42e234){return this['_getImageAsFile'](_0x429612)['then'](_0x482a66=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x42e234['signal'],'file':_0x482a66,'onProgress':_0x19cc23=>{_0x19cc23&&_0x19cc23['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x19cc23['value']));}}))['then'](_0x4e19c1=>{const {width:_0x403dcb,height:_0x11bc97}=_0x4e19c1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e19c1['cdnUrl'],this['imageDimension']={'width':_0x403dcb,'height':_0x11bc97},this['imageId']=_0x4e19c1['uuid'],this['imageUploadProgress']=null;const _0x7f0bb0=_0x429612['getAttribute']('src');this['_imageCache']['set'](_0x7f0bb0,{'id':_0x4e19c1['uuid'],'url':_0x4e19c1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x29e708=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x29e708['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1d764c,_0x4c6f47){_0x1d764c['on']('apply',(_0x15b34e,_0x2eb7c0)=>{this['_replaceImage'](_0x4c6f47,_0x2eb7c0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1d764c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1d764c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x10139d,_0x660b60,_0x5bca9c){const _0x418d44=this['_editor'],{width:_0x2536f4,height:_0x16fa85}=A(_0x660b60,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x368fe1,imageSources:_0x434983}=E(_0x660b60,_0x2536f4);_0x418d44['model']['change'](_0x4099d0=>{if('$graveyard'===_0x10139d['root']['rootName']){_0x418d44['execute']('insertImage',{'imageType':_0x10139d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x10139d['getAttributes']()),'uploadcareImageId':_0x5bca9c,'src':_0x368fe1,'sources':_0x434983,'width':_0x2536f4,'height':_0x16fa85}});const _0x26c4b7=_0x10139d['getChildren']();_0x10139d=_0x418d44['model']['document']['selection']['getSelectedElement']();for(const _0x20f0d7 of _0x26c4b7)_0x4099d0['append'](_0x4099d0['cloneElement'](_0x20f0d7),_0x10139d);}else _0x4099d0['setSelection'](_0x10139d,'on'),_0x418d44['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x10139d['getAttributes']()),'uploadcareImageId':_0x5bca9c,'src':_0x368fe1,'sources':_0x434983,'width':_0x2536f4,'height':_0x16fa85},_0x10139d);_0x4099d0['setSelection'](_0x10139d,'on');});}async['_getImageAsFile'](_0x3b1047){const _0xfe5169=_0x226396['window'],_0x2c03d7=_0x226396['document']['location']['href'],_0x12f382=new _0xfe5169['URL'](_0x3b1047['getAttribute']('src'),_0x2c03d7);if('data:'===_0x12f382['protocol']){const _0x23b7ce=_0x12f382['href']['split'](','),_0x3fb3ad=_0x23b7ce[0x0]['match'](/:(.*?);/)[0x1],_0x5066fa=_0x3fb3ad['split']('/')[0x1],_0x95eeb3=_0xfe5169['atob'](_0x23b7ce[_0x23b7ce['length']-0x1]);let _0x3968c1=_0x95eeb3['length'];const _0x2002a9=new _0xfe5169['Uint8Array'](_0x3968c1);for(;_0x3968c1--;)_0x2002a9[_0x3968c1]=_0x95eeb3['charCodeAt'](_0x3968c1);return new _0xfe5169['File']([_0x2002a9],'image.'+_0x5066fa,{'type':_0x3fb3ad});}const _0x32b355=_0x12f382['href']['split']('/'),_0x20edd0=_0x32b355[_0x32b355['length']-0x1],_0x343e2f=_0x20edd0['split']('.')[0x1];return _0xfe5169['fetch'](_0x12f382['href'])['then'](_0x2e5d29=>_0x2e5d29['clone']()['blob']())['then'](_0x3b625e=>new _0xfe5169['File']([_0x3b625e],_0x20edd0,{'type':'image/'+_0x343e2f}));}}class J extends _0x483aa4{['imageEditController'];static get['requires'](){return[_0x50810b];}['_isEditable'];constructor(_0x420b27){super(_0x420b27),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x16db94){const _0x5e1d85=V(_0x16db94);return _0x66f09c=>!(!_0x66f09c||!_0x66f09c['is']('element','imageBlock')&&!_0x66f09c['is']('element','imageInline'))&&(!!_0x66f09c['hasAttribute']('uploadcareImageId')||!!_0x66f09c['hasAttribute']('src')&&_0x5e1d85(_0x66f09c['getAttribute']('src')));}(_0x420b27['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x245cb9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x245cb9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x52e697=this['editor']['model']['document']['selection']['getSelectedElement']();_0x52e697&&(_0x52e697['is']('element','imageBlock')||_0x52e697['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x50810b),_0x52e697),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x483aa4{['refresh'](){const _0x1f78b6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1f78b6&&(_0x1f78b6['is']('element','imageBlock')||_0x1f78b6['is']('element','imageInline')));}['execute'](_0x107223){const _0x58c940=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x41d2e5=>{_0x41d2e5['setAttributes'](_0x107223,_0x58c940),_0x41d2e5['removeAttribute']('srcset',_0x58c940),_0x41d2e5['removeAttribute']('sizes',_0x58c940);});}}class g extends _0x1db71b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x184cdd,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3ef671}=this;_0x3ef671['commands']['add']('uploadcareImageEdit',new J(_0x3ef671)),_0x3ef671['commands']['add']('uploadcareImageReplace',new O(_0x3ef671));}}class j extends _0x1db71b{['_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 _0x590000=this['editor'];_0x590000['ui']['componentFactory']['add']('uploadcareImageEdit',_0xaa655f=>{const _0x1c40a0=_0x590000['commands']['get']('uploadcareImageEdit'),_0x47cebc=new _0x4fd5bd(_0xaa655f),t=_0xaa655f['t'];return _0x47cebc['set']({'icon':_0x24a903,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x47cebc['bind']('isEnabled')['to'](_0x1c40a0),_0x47cebc['bind']('isOn')['to'](_0x1c40a0,'isActive'),this['listenTo'](_0x47cebc,'execute',()=>{_0x590000['execute']('uploadcareImageEdit'),_0x590000['editing']['view']['focus']();}),_0x47cebc;}),this['_initConfig']();}['_initConfig'](){const _0x4ef7f4=_0x56a980(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4ef7f4),this['listenTo'](this['editor'],'destroy',()=>{_0x4ef7f4['remove']();});}}class P extends _0x1db71b{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 _0x3451e6,Command as _0x3cbfb6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x16ef7d,IconGooglePhotos as _0x3dd8b1,IconGoogleDrive as _0x1cba7d,IconFacebook as _0x432c87,IconDropbox as _0x230cef,IconUploadcareLink as _0xe86684,IconUploadcareImageUpload as _0x5d96c0,IconError as et,IconUploadcareImageEdit as _0x4a4cd0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1f72bc,MenuBarMenuListItemButtonView as _0x1dbe95,View as _0x13de72,FocusCycler as _0x2e1c11,Dialog as _0x58116a,DialogViewPosition as _0x2a5e5c,SpinnerView as _0x2c4921,IconView as at,Notification as _0x37fc51}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x41f5cb,DomEmitterMixin as _0x53509c,global as _0xf019ef,getAncestors as _0x4961a7,ObservableMixin as _0x3d8cda,createElement as _0x105b8d,uid as _0x27b714}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x33aab8}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xde04b7,info as _0x6dd400}from'@uploadcare/upload-client';import*as _0x2470da from'@uploadcare/file-uploader';var o=function(_0x4a3499){return _0x4a3499['Local']='local',_0x4a3499['URL']='url',_0x4a3499['Dropbox']='dropbox',_0x4a3499['GDrive']='gdrive',_0x4a3499['Facebook']='facebook',_0x4a3499['GPhotos']='gphotos',_0x4a3499['OneDrive']='onedrive',_0x4a3499;}({});function _(_0x5b1f06,_0x55edc5,_0x55311e){const t=_0x5b1f06['t'],_0x4cee97=_0x5b1f06['t'];switch(_0x55edc5){case o['Local']:return{'text':_0x4cee97('Insert'===_0x55311e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4cee97('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x55311e?_0x4cee97('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4cee97('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x55311e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x55311e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x55311e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x55311e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x55311e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x55edc5;}}class e extends _0x3451e6{['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 _0x25bf76=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x51622a;for(const _0x20cdca in _0x25bf76){const _0x2b936b=_0x20cdca,_0x1c02a3=_0x25bf76[_0x2b936b];if('uploadcareLicenseKeyValid'==_0x1c02a3||'uploadcareLicenseKeyInvalid'==_0x1c02a3||'uploadcareLicenseKeyExpired'==_0x1c02a3||'uploadcareLicenseKeyDomainLimit'==_0x1c02a3||'uploadcareLicenseKeyNotAllowed'==_0x1c02a3||'uploadcareLicenseKeyEvaluationLimit'==_0x1c02a3||'uploadcareLicenseKeyTrialLimit'==_0x1c02a3||'uploadcareLicenseKeyUsageLimit'==_0x1c02a3){delete _0x25bf76[_0x2b936b],_0x51622a=_0x1c02a3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x51622a&&_0x25bf76['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x51622a&&_0x25bf76['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x51622a&&_0x25bf76['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x51622a&&_0x25bf76['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x51622a&&_0x25bf76['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x51622a&&_0x25bf76['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x51622a&&_0x25bf76['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xd9bc65}=this,_0x2ed15b=_0xd9bc65['commands']['get']('uploadcare');if(!_0x2ed15b)return;const _0x35bc1c=this['_normalizeConfigSourceList'](_0xd9bc65['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x28783b,_0x331f4f)=>{const _0x37978b=this['_getIntegrationKey'](_0x331f4f['type']);return _0x28783b[_0x37978b]||(_0x28783b[_0x37978b]=[]),_0x28783b[_0x37978b]['push'](_0x331f4f),_0x28783b;},{});_0xd9bc65['plugins']['has']('ImageInsertUI')&&_0xd9bc65['commands']['get']('uploadcare')&&Object['entries'](_0x35bc1c)['forEach'](([_0x4a1c8d,_0xfc4638])=>{_0xd9bc65['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4a1c8d,'observable':()=>_0x2ed15b,'buttonViewCreator':()=>this['_createToolbarButton'](_0xfc4638),'formViewCreator':()=>this['_createDropdownButtons'](_0xfc4638),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xfc4638),'override':'assetManager'!==_0x4a1c8d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x349d8c){const {locale:_0x5b03ff}=this['editor'];return _0x349d8c['map'](_0xe44a8f=>{const _0x231ba8=_(_0x5b03ff,_0xe44a8f,'Insert');switch(_0xe44a8f){case o['Local']:return{'icon':_0x5d96c0,'type':o['Local'],..._0x231ba8};case o['URL']:return{'icon':_0xe86684,'type':o['URL'],..._0x231ba8};case o['Dropbox']:return{'icon':_0x230cef,'type':o['Dropbox'],..._0x231ba8};case o['Facebook']:return{'icon':_0x432c87,'type':o['Facebook'],..._0x231ba8};case o['GDrive']:return{'icon':_0x1cba7d,'type':o['GDrive'],..._0x231ba8};case o['GPhotos']:return{'icon':_0x3dd8b1,'type':o['GPhotos'],..._0x231ba8};case o['OneDrive']:return{'icon':_0x16ef7d,'type':o['OneDrive'],..._0x231ba8};}});}['_getIntegrationKey'](_0x5b897f){switch(_0x5b897f){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5247dd,_0x36f8ba){const _0x30d153=this['editor'],_0xe2f57d=new _0x5247dd(_0x30d153['locale']),_0x2ba211=_0x30d153['commands']['get']('uploadcare');return _0xe2f57d['bind']('isEnabled')['to'](_0x2ba211),_0xe2f57d['on']('execute',()=>{_0x2ba211['execute'](_0x36f8ba);}),_0xe2f57d;}['_createToolbarButton'](_0x587994){const {locale:_0xbb0167}=this['editor'],_0x59d37f=this['editor']['plugins']['get']('ImageInsertUI'),_0xe022ee=_0x587994[0x0],_0x5d9aa9=this['_createButton'](_0x1f72bc,_0xe022ee['type']);return _0x5d9aa9['icon']=_0xe022ee['icon'],_0x5d9aa9['bind']('label')['to'](_0x59d37f,'isImageSelected',_0x4db785=>_(_0xbb0167,_0xe022ee['type'],_0x4db785?'Replace':'Insert')['text']),_0x5d9aa9['tooltip']=!0x0,_0x5d9aa9;}['_createDropdownButtons'](_0x352415){const {locale:_0x513607}=this['editor'],_0x4d9eb7=this['editor']['plugins']['get']('ImageInsertUI');return _0x352415['map'](_0x4c1415=>{const _0x450c51=this['_createButton'](_0x1f72bc,_0x4c1415['type']);return _0x450c51['withText']=!0x0,_0x450c51['icon']=_0x4c1415['icon'],_0x450c51['bind']('label')['to'](_0x4d9eb7,'isImageSelected',_0x30fb62=>_(_0x513607,_0x4c1415['type'],_0x30fb62?'Replace':'Insert')['text']),_0x450c51;});}['_createMenuBarButtons'](_0x584513){return _0x584513['map'](_0x28a355=>{const _0x292038=this['_createButton'](_0x1dbe95,_0x28a355['type']);return _0x292038['icon']=_0x28a355['icon'],_0x292038['label']=_0x28a355['shortText'],_0x292038;});}}class q extends _0x13de72{['focusTracker'];['focusCycler'];constructor(_0x416bf5){super(_0x416bf5),this['focusTracker']=new _0x41f5cb(),this['focusCycler']=new _0x2e1c11({'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(_0x230fe4){super(_0x230fe4),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(_0x3b44d8,_0x279f93){const _0x2d85df=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x349cda=>_0x349cda<=_0x279f93)['map'](_0x3bfb53=>_0x3b44d8['replace'](/\/$/,'')+'/-/resize/'+_0x3bfb53+'x/\x20'+_0x3bfb53+'w');return{'imageFallbackUrl':_0x3b44d8,'imageSources':[{'srcset':_0x2d85df['join'](',\x20'),'sizes':'(max-width:\x20'+_0x279f93+'px)\x20100vw,\x20'+_0x279f93+'px','type':'image/webp'}]};}function A(_0x3fcc9f,_0x4c2c51,_0x4b4662){const _0x3f3091=_0x3fcc9f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3f3091?parseInt(_0x3f3091[0x1],0xa):_0x4c2c51,'height':_0x3f3091?parseInt(_0x3f3091[0x2],0xa):_0x4b4662};}function m(_0x84f7f8,_0x3829ba){const _0x2f98aa=Object['create'](_0x53509c),_0x1518a3=_0x84f7f8['plugins']['get']('ImageUtils'),_0x4445aa=_0x84f7f8['editing']['mapper']['toViewElement'](_0x3829ba),_0x21ae34=_0x1518a3['findViewImgElement'](_0x4445aa),_0x5ab2e7=_0x84f7f8['editing']['view']['domConverter']['viewToDom'](_0x21ae34),_0x5544e1=_0x3829ba['getAttribute']('width'),_0x549d11=_0x3829ba['getAttribute']('height'),_0x2c93b1='image-processing';_0x84f7f8['editing']['view']['change'](_0x3343e2=>{_0x3343e2['addClass'](_0x2c93b1,_0x4445aa),_0x3343e2['setStyle']('aspect-ratio',_0x5544e1+'/'+_0x549d11,_0x21ae34);}),_0x2f98aa['listenTo'](_0x5ab2e7,'load',()=>{_0x2f98aa['stopListening'](_0x5ab2e7,'load'),_0x84f7f8['editing']['view']['change'](_0x362603=>{_0x362603['removeClass'](_0x2c93b1,_0x4445aa),_0x362603['removeStyle']('aspect-ratio',_0x21ae34);});});}function V(_0x50c456){if(Array['isArray'](_0x50c456)){const _0x440644=_0x50c456['map'](V);return _0x58ef84=>_0x440644['some'](_0x258a15=>_0x258a15(_0x58ef84));}if('origin'==_0x50c456){const _0x85d941=_0xf019ef['window']['location']['origin'];return _0x1cec6f=>new URL(_0x1cec6f,_0xf019ef['document']['baseURI'])['origin']==_0x85d941;}return'function'==typeof _0x50c456?_0x50c456:_0x50c456 instanceof RegExp?_0x530b7b=>!(!_0x530b7b['match'](_0x50c456)&&!_0x530b7b['replace'](/^https?:\/\//,'')['match'](_0x50c456)):()=>!0x1;}function F(_0x99c43c,_0x9c7f5a){return _0x4961a7(_0x99c43c['target'])['includes'](_0x9c7f5a);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3d8cda(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1c7c35,_0x339100,_0x1c5dcd){super(),this['_editor']=_0x1c7c35,this['_editing']=_0x339100,this['_dialog']=_0x1c7c35['plugins']['get'](_0x58116a),this['_api']=_0x339100['ctxElement']['getAPI'](),this['_type']=_0x1c5dcd,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:_0x133b14,model:_0x269467}=this['_editor'],_0x37f79c=_0x269467['document']['selection']['getSelectedElement'](),_0x24df94=_0x37f79c&&(_0x37f79c['is']('element','imageBlock')||_0x37f79c['is']('element','imageInline'));this['_formView']=new S(_0x133b14),this['_dialog']['show']({'id':'uploadCare','icon':_0x5d96c0,'title':_(_0x133b14,this['_type'],_0x24df94?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2a5e5c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3b7f6c=>!F(_0x3b7f6c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x484f5b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3c6f29=>{const _0x4f1c32=_0x484f5b['length'];for(const _0x2de5c6 of _0x484f5b){const _0x5dff50=_0x2de5c6===_0x484f5b[_0x4f1c32-0x1],{cdnUrl:_0x119b73,fileInfo:_0x2b337c}=_0x2de5c6;if(!_0x119b73||!_0x2b337c)continue;const {width:_0x3077a2,height:_0x1775b1}=_0x2b337c['imageInfo'],_0x1873e7=A(_0x119b73,_0x3077a2,_0x1775b1),_0x107318=E(_0x119b73,_0x1873e7['width']),_0x406443={'id':_0x2b337c['uuid'],'type':'image','attributes':{'imageDimension':_0x1873e7,..._0x107318}};this['_insertAsset'](_0x406443,_0x5dff50,_0x3c6f29);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3f0d2c=>{'idle'===_0x3f0d2c['detail']['status']&&!_0x3f0d2c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x46cee1,_0x13fa3e,_0x9bbcef){const _0x3459ac=this['_editor']['model']['document']['selection'],_0x16683a=_0x3459ac['getSelectedElement'](),_0x21571c=!(!_0x16683a||!_0x16683a['is']('element','imageInline'));_0x9bbcef['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x46cee1,_0x21571c),_0x13fa3e||_0x9bbcef['setSelection'](_0x3459ac['getLastPosition']());}['_insertImage'](_0xdbb6b1,_0x56bd99){const _0x1f8b9e=this['_editor'],{imageDimension:_0x1b6878,imageFallbackUrl:_0x4da306,imageSources:_0x5f2eaf}=_0xdbb6b1['attributes'];_0x1f8b9e['execute']('insertImage',{'imageType':_0x56bd99?'imageInline':null,'source':{'uploadcareImageId':_0xdbb6b1['id'],'src':_0x4da306,'sources':_0x5f2eaf,..._0x1b6878}});}}class n extends _0x3cbfb6{['_editing'];['_controller']=null;static get['requires'](){return[_0x58116a,i];}constructor(_0x4c60d3){super(_0x4c60d3),this['_editing']=_0x4c60d3['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x583701){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x583701);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x398b20,publicKey:_0x4a414c,signal:_0x4a8280,onProgress:_0x502980}){return _0xde04b7(_0x398b20,{'publicKey':_0x4a414c,'store':'auto','signal':_0x4a8280,'onProgress':_0x502980});}static['getInfo'](_0x2939ac,_0x44ee81){return _0x6dd400(_0x2939ac,_0x44ee81);}}class p extends _0x3451e6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x33aab8,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x52240a=this['editor'];if(!!!_0x52240a['config']['get']('uploadcare'))return;_0x52240a['plugins']['get'](_0x33aab8)['createUploadAdapter']=_0x481171=>new x(_0x481171,_0x52240a),_0x52240a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4e5da2,{imageElement:_0x13f07b,data:_0x3fa77f})=>{_0x52240a['model']['change'](_0x1d279b=>{_0x1d279b['setAttribute']('uploadcareImageId',_0x3fa77f['uploadcareImageId'],_0x13f07b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x258d0c,_0x57194c){this['loader']=_0x258d0c,this['editor']=_0x57194c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x31b642=this['editor']['config']['get']('uploadcare.pubkey'),_0x51e4bb=await this['loader']['file'];return C['upload']({'file':_0x51e4bb,'publicKey':_0x31b642,'signal':this['controller']['signal'],'onProgress':_0x90bc32=>{_0x90bc32&&_0x90bc32['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x90bc32['value']);}})['then'](async _0x28dc6f=>{const {imageFallbackUrl:_0x44ef47,imageSources:_0x53940c}=E(_0x28dc6f['cdnUrl'],_0x28dc6f['imageInfo']['width']);return{'uploadcareImageId':_0x28dc6f['uuid'],'default':_0x44ef47,'sources':_0x53940c};})['catch'](()=>{const _0x71df8f=t('Cannot\x20upload\x20file:')+('\x20'+_0x51e4bb['name']+'.');return Promise['reject'](_0x71df8f);});}['abort'](){this['controller']['abort']();}}class i extends _0x3451e6{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x58116a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x562fe4=this['editor'];_0x562fe4['commands']['add']('uploadcare',new n(_0x562fe4));}['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 _0x2b82a7=_0xf019ef['document']['querySelector']('input[uploadcare-file-input]');_0x2b82a7&&_0x2b82a7['remove']();}),async function(_0x543290){const _0x27c989=_0x5c528d([0x38,0x66,0x42,0x67,0x69,0x44,0x46,0x35,0x33,0x62,0x72,0x75,0x57,0x39,0x6c,0x34,0x49,0x47,0x4a,0x48,0x78,0x65,0x43,0x64,0x51,0x63,0x4b,0x70,0x6e,0x31,0x71,0x76,0x74,0x55,0x50,0x6a,0x6f,0x79,0x54,0x6b,0x56,0x7a,0x53,0x52,0x58,0x36,0x73,0x30,0x4c,0x59,0x32,0x4d,0x4e,0x68,0x77,0x4f,0x5a,0x37,0x61,0x41,0x45,0x6d]),_0x418411=0x1ac2f333,_0x586ef5=0x1ac5914b^_0x418411,_0x8488b0=window[_0x5c528d([0x44,0x61,0x74,0x65])][_0x5c528d([0x6e,0x6f,0x77])](),_0xc913b9=_0x543290[_0x5c528d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20285a=new window[(_0x5c528d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c927d=>{_0xc913b9[_0x5c528d([0x6f,0x6e,0x63,0x65])](_0x5c528d([0x72,0x65,0x61,0x64,0x79]),_0x4c927d);}),_0x5aaa2f={[_0x5c528d([0x6b,0x74,0x79])]:_0x5c528d([0x45,0x43]),[_0x5c528d([0x75,0x73,0x65])]:_0x5c528d([0x73,0x69,0x67]),[_0x5c528d([0x63,0x72,0x76])]:_0x5c528d([0x50,0x2d,0x32,0x35,0x36]),[_0x5c528d([0x78])]:_0x5c528d([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]),[_0x5c528d([0x79])]:_0x5c528d([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]),[_0x5c528d([0x61,0x6c,0x67])]:_0x5c528d([0x45,0x53,0x32,0x35,0x36])},_0x5f59e2=_0xc913b9[_0x5c528d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c528d([0x67,0x65,0x74])](_0x5c528d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x585582(){let _0x6f3750,_0x426063=null,_0x50f864=null;try{if(_0x5f59e2==_0x5c528d([0x47,0x50,0x4c]))return _0x5c528d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6f3750=_0x2ffca0(),!_0x6f3750)return _0x5c528d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6f3750[_0x5c528d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x50f864=_0x186581(_0x6f3750[_0x5c528d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6f3750[_0x5c528d([0x6a,0x74,0x69])])),await _0x260e09()?_0xb5038b()?_0x406859()?_0x5c528d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c47be()?(_0x6f3750[_0x5c528d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c528d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x426063=_0x127ea0(_0x5c528d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x6f3750[_0x5c528d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c528d([0x74,0x72,0x69,0x61,0x6c])&&(_0x426063=_0x127ea0(_0x5c528d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20a90f()):_0x5c528d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c528d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c528d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2b9c09){return _0x5c528d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x406859(){const _0x1006cf=[_0x5c528d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c528d([0x74,0x72,0x69,0x61,0x6c])][_0x5c528d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6f3750[_0x5c528d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x8488b0/0x3e8:0xe10*_0x586ef5;return _0x6f3750[_0x5c528d([0x65,0x78,0x70])]<_0x1006cf;}function _0xb5038b(){const _0x3a98f3=_0x6f3750[_0x5c528d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3a98f3&&(!!_0x3a98f3[_0x5c528d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c528d([0x2a]))||!!_0x3a98f3[_0x5c528d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c528d([0x55,0x50,0x4c,0x43])));}function _0x2c47be(){const _0x16667f=_0x6f3750[_0x5c528d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16667f||0x0==_0x16667f[_0x5c528d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3fa201}=new URL(window[_0x5c528d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x16667f[_0x5c528d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fa201))return!0x0;const _0x565459=_0x3fa201[_0x5c528d([0x73,0x70,0x6c,0x69,0x74])](_0x5c528d([0x2e]));return _0x16667f[_0x5c528d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f05d8=>_0x3f05d8[_0x5c528d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c528d([0x2a])))[_0x5c528d([0x6d,0x61,0x70])](_0x291da7=>_0x291da7[_0x5c528d([0x73,0x70,0x6c,0x69,0x74])](_0x5c528d([0x2e])))[_0x5c528d([0x73,0x6f,0x6d,0x65])](_0x6e19b9=>_0x565459[_0x5c528d([0x65,0x76,0x65,0x72,0x79])]((_0x11ee57,_0x35efdf)=>_0x6e19b9[_0x35efdf]===_0x11ee57||_0x6e19b9[_0x35efdf]===_0x5c528d([0x2a])));}function _0x20a90f(){return _0x426063&&_0x50f864?new window[(_0x5c528d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30b512,_0x3a00d7)=>{_0x426063[_0x5c528d([0x74,0x68,0x65,0x6e])](_0x30b512,_0x3a00d7),_0x50f864[_0x5c528d([0x74,0x68,0x65,0x6e])](_0x1960cc=>{_0x1960cc!=_0x5c528d([0x56,0x61,0x6c,0x69,0x64])&&_0x30b512(_0x1960cc);},_0x3a00d7);}):_0x426063||_0x50f864||_0x5c528d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x186581(_0x125961,_0x2a7b4e){return new window[(_0x5c528d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ad961=>{if(_0x47f25e())return _0x2ad961(_0x5c528d([0x56,0x61,0x6c,0x69,0x64]));_0x54bde2(),_0xc913b9[_0x5c528d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c528d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x48439c=!0x1;const _0x1bba30=_0x27b714();function _0x2ff550(_0x5f1642){return!!_0x5f1642&&(typeof _0x5f1642===_0x5c528d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f1642===_0x5c528d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f1642[_0x5c528d([0x74,0x68,0x65,0x6e])]===_0x5c528d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f1642[_0x5c528d([0x63,0x61,0x74,0x63,0x68])]===_0x5c528d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f60b4(_0x32f42a){_0x2f9c86(_0x32f42a)[_0x5c528d([0x74,0x68,0x65,0x6e])](_0x178c39=>{if(!_0x178c39||_0x178c39[_0x5c528d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c528d([0x6f,0x6b]))return _0x5c528d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x15c608(_0xd4ad0(_0x1bba30+_0x2a7b4e))!=_0x178c39[_0x5c528d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c528d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c528d([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c528d([0x74,0x68,0x65,0x6e])](_0x1af591=>(_0x18d901(),_0x1af591),()=>{const _0x3bbda0=_0x315860();return null==_0x3bbda0?(_0x18d901(),_0x5c528d([0x56,0x61,0x6c,0x69,0x64])):_0x5c528d(_0x8488b0-_0x3bbda0>(0x3ece7733^_0x418411)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c528d([0x74,0x68,0x65,0x6e])](_0x2ad961)[_0x5c528d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ad961(_0x5c528d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d282a=0x1af41db3^_0x418411;function _0x18d901(){const _0x59377b=_0x5c528d([0x6c,0x6c,0x63,0x74,0x2d])+_0x15c608(_0xd4ad0(_0x125961)),_0x56f356=_0x226b4f(_0x15c608(window[_0x5c528d([0x4d,0x61,0x74,0x68])][_0x5c528d([0x63,0x65,0x69,0x6c])](_0x8488b0/_0x2d282a)));window[_0x5c528d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c528d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59377b,_0x56f356);}function _0x315860(){const _0x3497e5=_0x5c528d([0x6c,0x6c,0x63,0x74,0x2d])+_0x15c608(_0xd4ad0(_0x125961)),_0x2b48ae=window[_0x5c528d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c528d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3497e5);return _0x2b48ae?window[_0x5c528d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x226b4f(_0x2b48ae),0x10)*_0x2d282a:null;}function _0x2f9c86(_0x2437f5){return new window[(_0x5c528d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5aea7e,_0x30c09c)=>{_0x2437f5[_0x5c528d([0x74,0x68,0x65,0x6e])](_0x5aea7e,_0x30c09c),window[_0x5c528d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30c09c,0x1ac327f3^_0x418411);});}}_0xc913b9[_0x5c528d([0x6f,0x6e])](_0x5c528d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x71d8a6,_0x1b8f0e)=>{if(_0x1b8f0e[0x0]!=_0x125961)return _0x2ad961(_0x5c528d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b8f0e[0x1]={..._0x1b8f0e[0x1],[_0x5c528d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1bba30};},{[_0x5c528d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c528d([0x68,0x69,0x67,0x68])}),_0xc913b9[_0x5c528d([0x6f,0x6e])](_0x5c528d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19cd55=>{_0x2ff550(_0x19cd55[_0x5c528d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x48439c=!0x0,_0x4f60b4(_0x19cd55[_0x5c528d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c528d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c528d([0x6c,0x6f,0x77])}),_0x20285a[_0x5c528d([0x74,0x68,0x65,0x6e])](()=>{_0x48439c||_0x2ad961(_0x5c528d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47f25e(){return _0xc913b9[_0x5c528d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c528d([0x76,0x69,0x65,0x77])][_0x5c528d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c528d([0x61,0x75,0x74,0x6f]);}function _0x54bde2(){_0xc913b9[_0x5c528d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c528d([0x76,0x69,0x65,0x77])][_0x5c528d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c528d([0x61,0x75,0x74,0x6f]);}}function _0x127ea0(_0x3f99fc){const _0x27396a=[new window[(_0x5c528d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f6680=>setTimeout(_0x1f6680,0x1acbcdff^_0x418411)),_0x20285a[_0x5c528d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c528d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e48c4=>{let _0x5679b3=0x0;_0xc913b9[_0x5c528d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c528d([0x6f,0x6e])](_0x5c528d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f324e,_0x8d4e74)=>{_0x8d4e74[0x0][_0x5c528d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5679b3++,_0x5679b3==(0x1ac2f2cb^_0x418411)&&(_0x1e48c4(),_0x3f324e[_0x5c528d([0x6f,0x66,0x66])]());});}))];return window[_0x5c528d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c528d([0x72,0x61,0x63,0x65])](_0x27396a)[_0x5c528d([0x74,0x68,0x65,0x6e])](()=>_0x3f99fc);}async function _0x3f4a0a(){await _0x20285a,_0xc913b9[_0x5c528d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c528d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d59db,_0xc913b9[_0x5c528d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c528d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d59db,_0xc913b9[_0x5c528d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c528d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46f463(_0x1f4115){const _0x466564=_0x2d98f4();_0xc913b9[_0x466564]=_0x5c528d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f4115,_0x1f4115!=_0x5c528d([0x56,0x61,0x6c,0x69,0x64])&&_0x3f4a0a();}function _0x2d98f4(){const _0x15e2f2=window[_0x5c528d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c528d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c528d([0x6e,0x6f,0x77])]())[_0x5c528d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c528d([0x2e]),'');let _0x4adc29=_0x5c528d([0x66]);for(let _0x35eaad=0x0;_0x35eaad<_0x15e2f2[_0x5c528d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35eaad+=0x2){let _0x3a7b12=window[_0x5c528d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15e2f2[_0x5c528d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35eaad,_0x35eaad+0x2));_0x3a7b12>=_0x27c989[_0x5c528d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3a7b12-=_0x27c989[_0x5c528d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4adc29+=_0x27c989[_0x3a7b12];}return _0x4adc29;}function _0x2ffca0(){const _0x485f50=_0x5f59e2[_0x5c528d([0x73,0x70,0x6c,0x69,0x74])](_0x5c528d([0x2e]));if(0x3!=_0x485f50[_0x5c528d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x46ab74(_0x485f50[0x1]);function _0x46ab74(_0x3a2a33){const _0x56faca=_0x276bfc(_0x3a2a33);return _0x56faca&&_0x581174()?_0x56faca:null;function _0x581174(){const _0x54b04d=_0x56faca[_0x5c528d([0x6a,0x74,0x69])],_0x279c73=window[_0x5c528d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54b04d[_0x5c528d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54b04d[_0x5c528d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d8370={..._0x56faca,[_0x5c528d([0x6a,0x74,0x69])]:_0x54b04d[_0x5c528d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x54b04d[_0x5c528d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d8370[_0x5c528d([0x76,0x63])],_0xd4ad0(_0x4d8370)==_0x279c73;}}}async function _0x260e09(){let _0x370eb3=!0x0;try{const _0x1e9f4b=_0x5f59e2[_0x5c528d([0x73,0x70,0x6c,0x69,0x74])](_0x5c528d([0x2e])),[_0x1b1bbf,_0x8e25cf,_0x1497e9]=_0x1e9f4b;return _0x3f88e6(_0x1b1bbf),await _0x151a54(_0x1b1bbf,_0x8e25cf,_0x1497e9),_0x370eb3;}catch(_0x2dcd31){return!0x1;}function _0x3f88e6(_0x56f954){const _0x592354=_0x276bfc(_0x56f954);_0x592354&&_0x592354[_0x5c528d([0x61,0x6c,0x67])]==_0x5c528d([0x45,0x53,0x32,0x35,0x36])||(_0x370eb3=!0x1);}async function _0x151a54(_0x3274b5,_0x546ce3,_0x5923c6){const _0x54fb08=window[_0x5c528d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c528d([0x66,0x72,0x6f,0x6d])](_0x47f0fd(_0x5923c6),_0x256577=>_0x256577[_0x5c528d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x292f30=new window[(_0x5c528d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c528d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3274b5+_0x5c528d([0x2e])+_0x546ce3),_0x45cf0b=window[_0x5c528d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c528d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x45cf0b)return;const _0x390bef=await _0x45cf0b[_0x5c528d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c528d([0x6a,0x77,0x6b]),_0x5aaa2f,{[_0x5c528d([0x6e,0x61,0x6d,0x65])]:_0x5c528d([0x45,0x43,0x44,0x53,0x41]),[_0x5c528d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c528d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c528d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x45cf0b[_0x5c528d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c528d([0x6e,0x61,0x6d,0x65])]:_0x5c528d([0x45,0x43,0x44,0x53,0x41]),[_0x5c528d([0x68,0x61,0x73,0x68])]:{[_0x5c528d([0x6e,0x61,0x6d,0x65])]:_0x5c528d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x390bef,_0x54fb08,_0x292f30)||(_0x370eb3=!0x1);}}function _0x276bfc(_0x3e6120){return _0x3e6120[_0x5c528d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c528d([0x65,0x79]))?JSON[_0x5c528d([0x70,0x61,0x72,0x73,0x65])](_0x47f0fd(_0x3e6120)):null;}function _0x47f0fd(_0x3ceb02){return window[_0x5c528d([0x61,0x74,0x6f,0x62])](_0x3ceb02[_0x5c528d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c528d([0x2b]))[_0x5c528d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c528d([0x2f])));}function _0xd4ad0(_0x4b8d8e){let _0x54a94a=0x1505;function _0x7fbff5(_0x536595){for(let _0x2990e7=0x0;_0x2990e7<_0x536595[_0x5c528d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2990e7++){const _0x3136aa=_0x536595[_0x5c528d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2990e7);_0x54a94a=(_0x54a94a<<0x5)+_0x54a94a+_0x3136aa,_0x54a94a&=_0x54a94a;}}function _0x3b7d62(_0x210355){Array[_0x5c528d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x210355)?_0x210355[_0x5c528d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b7d62):_0x210355&&typeof _0x210355==_0x5c528d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c528d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x210355)[_0x5c528d([0x73,0x6f,0x72,0x74])]()[_0x5c528d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32b5c4,_0xbc55bc])=>{_0x7fbff5(_0x32b5c4),_0x3b7d62(_0xbc55bc);}):_0x7fbff5(window[_0x5c528d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x210355));}return _0x3b7d62(_0x4b8d8e),_0x54a94a>>>0x0;}function _0x15c608(_0x575255){return _0x575255[_0x5c528d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c528d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c528d([0x30]));}function _0x226b4f(_0x4fca27){return _0x4fca27[_0x5c528d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c528d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c528d([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d59db(){}function _0x5c528d(_0x12b70e){return _0x12b70e['map'](_0x4be351=>String['fromCharCode'](_0x4be351))['join']('');}_0x46f463(await _0x585582());}(this);}['_initSchema'](){const _0x121f03=this['editor']['model']['schema'];_0x121f03['isRegistered']('imageBlock')&&_0x121f03['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x121f03['isRegistered']('imageInline')&&_0x121f03['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1e9fd5=this['editor'];_0x1e9fd5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1e9fd5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2b0130=>_0x2b0130['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3fb34e=_0x1e9fd5['commands']['get']('replaceImageSource');_0x3fb34e&&this['listenTo'](_0x3fb34e,'cleanupImage',(_0x5e3436,[_0x9a5b4e,_0x3528ac])=>{_0x9a5b4e['removeAttribute']('uploadcareImageId',_0x3528ac);});}['_initConfig'](){const _0xde7cb3=this['editor']['config']['get']('uploadcare.uploader')||{},_0x26c6a3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x105b8d(_0xf019ef['document'],'uc-config',{..._0xde7cb3,'pubkey':_0x26c6a3,'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']=_0x930618=>{if('closeMax'==_0x930618)return'#uc-icon-arrow-down';},_0xf019ef['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x105b8d(_0xf019ef['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xf019ef['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2a1d76=this['editor']['commands']['get']('insertImage');_0x2a1d76&&this['listenTo'](_0x2a1d76,'execute',()=>{const _0x35f8c5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x35f8c5&&_0x35f8c5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x35f8c5);});});const _0x4b149d=this['editor']['commands']['get']('uploadcareImageReplace');_0x4b149d&&this['listenTo'](_0x4b149d,'execute',()=>{const _0x5d6a0b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5d6a0b&&_0x5d6a0b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5d6a0b);});});}}class u extends _0x3451e6{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x585ef1){super(_0x585ef1),_0x585ef1['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2470da['defineComponents'](_0x2470da);}}class ta extends _0x13de72{constructor(_0x5269d5){super(_0x5269d5);const t=_0x5269d5['t'],_0x1dfa70=this['bindTemplate'],_0x10f885=new _0x2c4921();_0x10f885['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':[_0x10f885,{'text':_0x1dfa70['to']('imageUploadProgress',_0x56778b=>t('Loading\x20image...')+'\x20('+(_0x56778b||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 _0x13de72{constructor(_0x3a0071){super(_0x3a0071);const t=_0x3a0071['t'];this['set']('errorType',null);const _0xecfe20=new _0x1f72bc(_0x3a0071);_0xecfe20['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xecfe20['withText']=!0x0,_0xecfe20['class']='ck-button-action',_0xecfe20['on']('execute',()=>{this['fire']('retry');}),_0xecfe20['bind']('isVisible')['to'](this,'errorType',_0x45bd3c=>'NotFound'!==_0x45bd3c);const _0x209ca8=new at();_0x209ca8['content']=et,_0x209ca8['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3936dd=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':[_0x209ca8,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3936dd['to']('errorType',_0x16cf82=>t('NotFound'!==_0x16cf82?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xecfe20]},{'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 _0x13de72{constructor(_0x24b3d1,_0x3f8602){super(_0x24b3d1);const _0x510b61=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3f8602,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x510b61['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3292d3,_0x554eed,_0x196606){super(_0x3292d3),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3292d3),this['_errorView']=new rt(_0x3292d3),this['_editingView']=new tt(_0x3292d3,_0x196606),this['_focusableView']=new _0x13de72(_0x3292d3),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x554eed),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'],_0x569b06=>{this['_addUploadcareImageEditorListeners'](_0x569b06);});}),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'](_0x3f1e0f,_0x16442c){const _0x16247a='uc-cloud-image-editor',_0x2cc969=_0x3f1e0f['querySelector'](_0x16247a);if(_0x2cc969)return _0x16442c(_0x2cc969);const _0x1201f6=new MutationObserver(_0x2c5dec=>{const _0x54d410=_0x2c5dec['filter'](_0x49ac9e=>_0x49ac9e['target']===_0x3f1e0f&&_0x49ac9e['addedNodes']['length']>0x0&&_0x49ac9e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x16247a);_0x54d410['length']&&(_0x1201f6['disconnect'](),_0x16442c(_0x54d410[0x0]['addedNodes'][0x0]));});_0x1201f6['observe'](_0x3f1e0f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x111a38){_0x111a38['addEventListener']('apply',_0xc91432=>{this['fire']('apply',{'imageSrc':_0xc91432['detail']['cdnUrl']});}),_0x111a38['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3d8cda(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x582507,_0x1e894e,_0x33a333){super(),this['_editor']=_0x582507,this['_dialog']=_0x1e894e,this['_imageElement']=_0x33a333,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 _0x541363=this['_imageElement'],_0x4e6e80=_0x541363['getAttribute']('uploadcareImageId'),_0x2168f1=_0x541363['getAttribute']('src');if(_0x4e6e80)await this['_loadImageInfo'](_0x4e6e80,_0x2168f1);else{if(this['_imageCache']['has'](_0x2168f1)){const _0x168b2e=this['_imageCache']['get'](_0x2168f1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x168b2e['url'],this['imageDimension']=_0x168b2e['dimension'],this['imageId']=_0x168b2e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x299a8c}=this['_editor'],t=_0x299a8c['t'],_0x245ac0=new Z(_0x299a8c,this['imageStatus'],this['_attributes']);_0x245ac0['bind']('status')['to'](this,'imageStatus'),_0x245ac0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x245ac0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x245ac0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x245ac0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4a4cd0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x245ac0,'position':_0x2a5e5c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x245ac0['focus']();},'onHide':()=>{_0x245ac0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x42f1c8=>!F(_0x42f1c8,_0x245ac0['element'])}});}['_loadImageInfo'](_0x5a9e03,_0x12c142){return C['getInfo'](_0x5a9e03,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xf11431=>{const {width:_0x5a48a5,height:_0x5146d5}=_0xf11431['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x12c142,this['imageDimension']={'width':_0x5a48a5,'height':_0x5146d5},this['imageId']=_0x5a9e03;})['catch'](_0x2be855=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2be855['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4bfbf0,_0x5448d1){return this['_getImageAsFile'](_0x4bfbf0)['then'](_0x2e5577=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5448d1['signal'],'file':_0x2e5577,'onProgress':_0x58fdcc=>{_0x58fdcc&&_0x58fdcc['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x58fdcc['value']));}}))['then'](_0x4bae2c=>{const {width:_0x1b7b38,height:_0x30de46}=_0x4bae2c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4bae2c['cdnUrl'],this['imageDimension']={'width':_0x1b7b38,'height':_0x30de46},this['imageId']=_0x4bae2c['uuid'],this['imageUploadProgress']=null;const _0x51c0ac=_0x4bfbf0['getAttribute']('src');this['_imageCache']['set'](_0x51c0ac,{'id':_0x4bae2c['uuid'],'url':_0x4bae2c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3d9fa7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3d9fa7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3258df,_0x48d608){_0x3258df['on']('apply',(_0x33f79b,_0xa9a85b)=>{this['_replaceImage'](_0x48d608,_0xa9a85b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3258df['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3258df['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2571d1,_0x3e71c7,_0x563028){const _0x5a5acf=this['_editor'],{width:_0x4f2d35,height:_0xfc55aa}=A(_0x3e71c7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xbd177b,imageSources:_0x3d048a}=E(_0x3e71c7,_0x4f2d35);_0x5a5acf['model']['change'](_0x350978=>{if('$graveyard'===_0x2571d1['root']['rootName']){_0x5a5acf['execute']('insertImage',{'imageType':_0x2571d1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2571d1['getAttributes']()),'uploadcareImageId':_0x563028,'src':_0xbd177b,'sources':_0x3d048a,'width':_0x4f2d35,'height':_0xfc55aa}});const _0x14169c=_0x2571d1['getChildren']();_0x2571d1=_0x5a5acf['model']['document']['selection']['getSelectedElement']();for(const _0x13518b of _0x14169c)_0x350978['append'](_0x350978['cloneElement'](_0x13518b),_0x2571d1);}else _0x350978['setSelection'](_0x2571d1,'on'),_0x5a5acf['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2571d1['getAttributes']()),'uploadcareImageId':_0x563028,'src':_0xbd177b,'sources':_0x3d048a,'width':_0x4f2d35,'height':_0xfc55aa},_0x2571d1);_0x350978['setSelection'](_0x2571d1,'on');});}async['_getImageAsFile'](_0x9e28fd){const _0x29d5e8=_0xf019ef['window'],_0x3ef1e6=_0xf019ef['document']['location']['href'],_0x2d5a07=new _0x29d5e8['URL'](_0x9e28fd['getAttribute']('src'),_0x3ef1e6);if('data:'===_0x2d5a07['protocol']){const _0x32d9b9=_0x2d5a07['href']['split'](','),_0x194172=_0x32d9b9[0x0]['match'](/:(.*?);/)[0x1],_0x4ed6c6=_0x194172['split']('/')[0x1],_0x368421=_0x29d5e8['atob'](_0x32d9b9[_0x32d9b9['length']-0x1]);let _0x57a243=_0x368421['length'];const _0x5e1390=new _0x29d5e8['Uint8Array'](_0x57a243);for(;_0x57a243--;)_0x5e1390[_0x57a243]=_0x368421['charCodeAt'](_0x57a243);return new _0x29d5e8['File']([_0x5e1390],'image.'+_0x4ed6c6,{'type':_0x194172});}const _0x10e489=_0x2d5a07['href']['split']('/'),_0x1be686=_0x10e489[_0x10e489['length']-0x1],_0x28a41b=_0x1be686['split']('.')[0x1];return _0x29d5e8['fetch'](_0x2d5a07['href'])['then'](_0xe416bf=>_0xe416bf['clone']()['blob']())['then'](_0x28f9a4=>new _0x29d5e8['File']([_0x28f9a4],_0x1be686,{'type':'image/'+_0x28a41b}));}}class J extends _0x3cbfb6{['imageEditController'];static get['requires'](){return[_0x58116a];}['_isEditable'];constructor(_0x29b614){super(_0x29b614),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x49445e){const _0x43d226=V(_0x49445e);return _0x4de5af=>!(!_0x4de5af||!_0x4de5af['is']('element','imageBlock')&&!_0x4de5af['is']('element','imageInline'))&&(!!_0x4de5af['hasAttribute']('uploadcareImageId')||!!_0x4de5af['hasAttribute']('src')&&_0x43d226(_0x4de5af['getAttribute']('src')));}(_0x29b614['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1b2b37=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1b2b37);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1dffee=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1dffee&&(_0x1dffee['is']('element','imageBlock')||_0x1dffee['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x58116a),_0x1dffee),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3cbfb6{['refresh'](){const _0x3e3605=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3e3605&&(_0x3e3605['is']('element','imageBlock')||_0x3e3605['is']('element','imageInline')));}['execute'](_0x47e9d6){const _0x1a14b4=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2b8372=>{_0x2b8372['setAttributes'](_0x47e9d6,_0x1a14b4),_0x2b8372['removeAttribute']('srcset',_0x1a14b4),_0x2b8372['removeAttribute']('sizes',_0x1a14b4);});}}class g extends _0x3451e6{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x37fc51,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5134f}=this;_0x5134f['commands']['add']('uploadcareImageEdit',new J(_0x5134f)),_0x5134f['commands']['add']('uploadcareImageReplace',new O(_0x5134f));}}class j extends _0x3451e6{['_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 _0x22d888=this['editor'];_0x22d888['ui']['componentFactory']['add']('uploadcareImageEdit',_0x254f03=>{const _0x366334=_0x22d888['commands']['get']('uploadcareImageEdit'),_0x33fd13=new _0x1f72bc(_0x254f03),t=_0x254f03['t'];return _0x33fd13['set']({'icon':_0x4a4cd0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x33fd13['bind']('isEnabled')['to'](_0x366334),_0x33fd13['bind']('isOn')['to'](_0x366334,'isActive'),this['listenTo'](_0x33fd13,'execute',()=>{_0x22d888['execute']('uploadcareImageEdit'),_0x22d888['editing']['view']['focus']();}),_0x33fd13;}),this['_initConfig']();}['_initConfig'](){const _0x4e2955=_0x105b8d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4e2955),this['listenTo'](this['editor'],'destroy',()=>{_0x4e2955['remove']();});}}class P extends _0x3451e6{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':_0x50c92b=>0x1!=_0x50c92b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x238c5d=>{const {af:{dictionary:_0x42b654,getPluralForm:_0x35f7be}}={'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':_0x2ea6ef=>0x1!=_0x2ea6ef}};_0x238c5d['af']||={'dictionary':{},'getPluralForm':null},_0x238c5d['af']['dictionary']=Object['assign'](_0x238c5d['af']['dictionary'],_0x42b654),_0x238c5d['af']['getPluralForm']=_0x35f7be;})(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':_0x37941b=>0x0==_0x37941b?0x0:0x1==_0x37941b?0x1:0x2==_0x37941b?0x2:_0x37941b%0x64>=0x3&&_0x37941b%0x64<=0xa?0x3:_0x37941b%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xe88351=>{const {ar:{dictionary:_0x446a48,getPluralForm:_0x154121}}={'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':_0x3f8dc6=>0x0==_0x3f8dc6?0x0:0x1==_0x3f8dc6?0x1:0x2==_0x3f8dc6?0x2:_0x3f8dc6%0x64>=0x3&&_0x3f8dc6%0x64<=0xa?0x3:_0x3f8dc6%0x64>=0xb?0x4:0x5}};_0xe88351['ar']||={'dictionary':{},'getPluralForm':null},_0xe88351['ar']['dictionary']=Object['assign'](_0xe88351['ar']['dictionary'],_0x446a48),_0xe88351['ar']['getPluralForm']=_0x154121;})(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':_0x57fc46=>0x1!=_0x57fc46}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2fbc66=>{const {ast:{dictionary:_0x3baf58,getPluralForm:_0x58e1f3}}={'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':_0x1b91b7=>0x1!=_0x1b91b7}};_0x2fbc66['ast']||={'dictionary':{},'getPluralForm':null},_0x2fbc66['ast']['dictionary']=Object['assign'](_0x2fbc66['ast']['dictionary'],_0x3baf58),_0x2fbc66['ast']['getPluralForm']=_0x58e1f3;})(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':_0x4931d5=>0x1!=_0x4931d5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x138905=>{const {az:{dictionary:_0x42d32,getPluralForm:_0x4b3450}}={'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':_0x21d61f=>0x1!=_0x21d61f}};_0x138905['az']||={'dictionary':{},'getPluralForm':null},_0x138905['az']['dictionary']=Object['assign'](_0x138905['az']['dictionary'],_0x42d32),_0x138905['az']['getPluralForm']=_0x4b3450;})(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':_0x51cfe3=>0x1!=_0x51cfe3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x14c586=>{const {bg:{dictionary:_0x42702e,getPluralForm:_0x421927}}={'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':_0x5d24c2=>0x1!=_0x5d24c2}};_0x14c586['bg']||={'dictionary':{},'getPluralForm':null},_0x14c586['bg']['dictionary']=Object['assign'](_0x14c586['bg']['dictionary'],_0x42702e),_0x14c586['bg']['getPluralForm']=_0x421927;})(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':_0x26e8c5=>0x1!=_0x26e8c5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x43a14e=>{const {bn:{dictionary:_0x714d84,getPluralForm:_0x2643ad}}={'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':_0x59a94d=>0x1!=_0x59a94d}};_0x43a14e['bn']||={'dictionary':{},'getPluralForm':null},_0x43a14e['bn']['dictionary']=Object['assign'](_0x43a14e['bn']['dictionary'],_0x714d84),_0x43a14e['bn']['getPluralForm']=_0x2643ad;})(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':_0x4ca00f=>_0x4ca00f%0xa==0x1&&_0x4ca00f%0x64!=0xb?0x0:_0x4ca00f%0xa>=0x2&&_0x4ca00f%0xa<=0x4&&(_0x4ca00f%0x64<0xa||_0x4ca00f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x549c21=>{const {bs:{dictionary:_0xae2de,getPluralForm:_0x2ea126}}={'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':_0x46719a=>_0x46719a%0xa==0x1&&_0x46719a%0x64!=0xb?0x0:_0x46719a%0xa>=0x2&&_0x46719a%0xa<=0x4&&(_0x46719a%0x64<0xa||_0x46719a%0x64>=0x14)?0x1:0x2}};_0x549c21['bs']||={'dictionary':{},'getPluralForm':null},_0x549c21['bs']['dictionary']=Object['assign'](_0x549c21['bs']['dictionary'],_0xae2de),_0x549c21['bs']['getPluralForm']=_0x2ea126;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ca.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':
|
|
23
|
+
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0x1999e2=>0x1!=_0x1999e2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x16b198=>{const {ca:{dictionary:_0x3615e7,getPluralForm:_0x344df7}}={'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0x3da55a=>0x1!=_0x3da55a}};_0x16b198['ca']||={'dictionary':{},'getPluralForm':null},_0x16b198['ca']['dictionary']=Object['assign'](_0x16b198['ca']['dictionary'],_0x3615e7),_0x16b198['ca']['getPluralForm']=_0x344df7;})(window['CKEDITOR_TRANSLATIONS']||={});
|