@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250219.0 → 0.0.0-nightly-next-20250220.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 _0x380ea9,Command as _0x282b70}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x45f531,IconGooglePhotos as _0x243749,IconGoogleDrive as _0x47838d,IconFacebook as _0x16e70e,IconDropbox as _0x4ee559,IconUploadcareLink as _0x2d67bd,IconUploadcareImageUpload as _0x5ce46a,IconError as et,IconUploadcareImageEdit as _0x266829}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3d62f5,MenuBarMenuListItemButtonView as _0x144826,View as _0x3146e2,FocusCycler as _0x8ff296,Dialog as _0x3a8b14,DialogViewPosition as _0x4a408d,SpinnerView as _0x906ddf,IconView as at,Notification as _0x5b2ade}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x36e54f,DomEmitterMixin as _0x570da3,global as _0x39783c,getAncestors as _0xe21238,ObservableMixin as _0x74f454,createElement as _0xf27f49,uid as _0x39a72a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x390010}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5a9f89,info as _0x35a869}from'@uploadcare/upload-client';import*as _0xf35309 from'@uploadcare/file-uploader';var o=function(_0x1fdd72){return _0x1fdd72['Local']='local',_0x1fdd72['URL']='url',_0x1fdd72['Dropbox']='dropbox',_0x1fdd72['GDrive']='gdrive',_0x1fdd72['Facebook']='facebook',_0x1fdd72['GPhotos']='gphotos',_0x1fdd72['OneDrive']='onedrive',_0x1fdd72;}({});function _(_0x580a09,_0x15e179,_0x3e8d70){const t=_0x580a09['t'],_0x46f273=_0x580a09['t'];switch(_0x15e179){case o['Local']:return{'text':_0x46f273('Insert'===_0x3e8d70?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x46f273('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3e8d70?_0x46f273('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x46f273('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3e8d70?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3e8d70?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3e8d70?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3e8d70?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3e8d70?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x15e179;}}class e extends _0x380ea9{['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 _0x1d3160=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x122101;for(const _0x214932 in _0x1d3160){const _0x193540=_0x214932,_0x10e10b=_0x1d3160[_0x193540];if('uploadcareLicenseKeyValid'==_0x10e10b||'uploadcareLicenseKeyInvalid'==_0x10e10b||'uploadcareLicenseKeyExpired'==_0x10e10b||'uploadcareLicenseKeyDomainLimit'==_0x10e10b||'uploadcareLicenseKeyNotAllowed'==_0x10e10b||'uploadcareLicenseKeyEvaluationLimit'==_0x10e10b||'uploadcareLicenseKeyTrialLimit'==_0x10e10b||'uploadcareLicenseKeyUsageLimit'==_0x10e10b){delete _0x1d3160[_0x193540],_0x122101=_0x10e10b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x122101&&_0x1d3160['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x122101&&_0x1d3160['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x122101&&_0x1d3160['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x122101&&_0x1d3160['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x122101&&_0x1d3160['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x122101&&_0x1d3160['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x122101&&_0x1d3160['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x42e369}=this,_0xc658c1=_0x42e369['commands']['get']('uploadcare');if(!_0xc658c1)return;const _0x454fb5=this['_normalizeConfigSourceList'](_0x42e369['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x18c9e4,_0x513414)=>{const _0x42c5ef=this['_getIntegrationKey'](_0x513414['type']);return _0x18c9e4[_0x42c5ef]||(_0x18c9e4[_0x42c5ef]=[]),_0x18c9e4[_0x42c5ef]['push'](_0x513414),_0x18c9e4;},{});_0x42e369['plugins']['has']('ImageInsertUI')&&_0x42e369['commands']['get']('uploadcare')&&Object['entries'](_0x454fb5)['forEach'](([_0x49846d,_0x48d6c3])=>{_0x42e369['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x49846d,'observable':()=>_0xc658c1,'buttonViewCreator':()=>this['_createToolbarButton'](_0x48d6c3),'formViewCreator':()=>this['_createDropdownButtons'](_0x48d6c3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x48d6c3),'override':'assetManager'!==_0x49846d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x371b17){const {locale:_0x1c23fd}=this['editor'];return _0x371b17['map'](_0x514c0c=>{const _0x246cf3=_(_0x1c23fd,_0x514c0c,'Insert');switch(_0x514c0c){case o['Local']:return{'icon':_0x5ce46a,'type':o['Local'],..._0x246cf3};case o['URL']:return{'icon':_0x2d67bd,'type':o['URL'],..._0x246cf3};case o['Dropbox']:return{'icon':_0x4ee559,'type':o['Dropbox'],..._0x246cf3};case o['Facebook']:return{'icon':_0x16e70e,'type':o['Facebook'],..._0x246cf3};case o['GDrive']:return{'icon':_0x47838d,'type':o['GDrive'],..._0x246cf3};case o['GPhotos']:return{'icon':_0x243749,'type':o['GPhotos'],..._0x246cf3};case o['OneDrive']:return{'icon':_0x45f531,'type':o['OneDrive'],..._0x246cf3};}});}['_getIntegrationKey'](_0x4a64d0){switch(_0x4a64d0){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x43de69,_0x58559f){const _0x245146=this['editor'],_0x417bef=new _0x43de69(_0x245146['locale']),_0x13640e=_0x245146['commands']['get']('uploadcare');return _0x417bef['bind']('isEnabled')['to'](_0x13640e),_0x417bef['on']('execute',()=>{_0x13640e['execute'](_0x58559f);}),_0x417bef;}['_createToolbarButton'](_0x4200b6){const {locale:_0x192f82}=this['editor'],_0x1aa09d=this['editor']['plugins']['get']('ImageInsertUI'),_0xd5fdc4=_0x4200b6[0x0],_0x3c28b1=this['_createButton'](_0x3d62f5,_0xd5fdc4['type']);return _0x3c28b1['icon']=_0xd5fdc4['icon'],_0x3c28b1['bind']('label')['to'](_0x1aa09d,'isImageSelected',_0x26f6ea=>_(_0x192f82,_0xd5fdc4['type'],_0x26f6ea?'Replace':'Insert')['text']),_0x3c28b1['tooltip']=!0x0,_0x3c28b1;}['_createDropdownButtons'](_0x2c43df){const {locale:_0x20f1a6}=this['editor'],_0x428c53=this['editor']['plugins']['get']('ImageInsertUI');return _0x2c43df['map'](_0x1a688a=>{const _0x5d8e30=this['_createButton'](_0x3d62f5,_0x1a688a['type']);return _0x5d8e30['withText']=!0x0,_0x5d8e30['icon']=_0x1a688a['icon'],_0x5d8e30['bind']('label')['to'](_0x428c53,'isImageSelected',_0x468504=>_(_0x20f1a6,_0x1a688a['type'],_0x468504?'Replace':'Insert')['text']),_0x5d8e30;});}['_createMenuBarButtons'](_0x219ef1){return _0x219ef1['map'](_0xfc85e6=>{const _0x3c59b1=this['_createButton'](_0x144826,_0xfc85e6['type']);return _0x3c59b1['icon']=_0xfc85e6['icon'],_0x3c59b1['label']=_0xfc85e6['shortText'],_0x3c59b1;});}}class q extends _0x3146e2{['focusTracker'];['focusCycler'];constructor(_0x516f59){super(_0x516f59),this['focusTracker']=new _0x36e54f(),this['focusCycler']=new _0x8ff296({'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(_0x5875a1){super(_0x5875a1),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(_0x7d343e,_0x4d3708){const _0x45a9bc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xcc7302=>_0xcc7302<=_0x4d3708)['map'](_0xfd2959=>_0x7d343e['replace'](/\/$/,'')+'/-/resize/'+_0xfd2959+'x/\x20'+_0xfd2959+'w');return{'imageFallbackUrl':_0x7d343e,'imageSources':[{'srcset':_0x45a9bc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4d3708+'px)\x20100vw,\x20'+_0x4d3708+'px','type':'image/webp'}]};}function A(_0x3c25f5,_0x111d68,_0x339459){const _0x5603d5=_0x3c25f5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5603d5?parseInt(_0x5603d5[0x1],0xa):_0x111d68,'height':_0x5603d5?parseInt(_0x5603d5[0x2],0xa):_0x339459};}function m(_0x24a9ac,_0x397a18){const _0x8ea966=Object['create'](_0x570da3),_0x54d415=_0x24a9ac['plugins']['get']('ImageUtils'),_0x3f9567=_0x24a9ac['editing']['mapper']['toViewElement'](_0x397a18),_0xd2820a=_0x54d415['findViewImgElement'](_0x3f9567),_0x36c782=_0x24a9ac['editing']['view']['domConverter']['viewToDom'](_0xd2820a),_0x197a30=_0x397a18['getAttribute']('width'),_0x689f25=_0x397a18['getAttribute']('height'),_0x5ad507='image-processing';_0x24a9ac['editing']['view']['change'](_0x4fbcf8=>{_0x4fbcf8['addClass'](_0x5ad507,_0x3f9567),_0x4fbcf8['setStyle']('aspect-ratio',_0x197a30+'/'+_0x689f25,_0xd2820a);}),_0x8ea966['listenTo'](_0x36c782,'load',()=>{_0x8ea966['stopListening'](_0x36c782,'load'),_0x24a9ac['editing']['view']['change'](_0x53c20f=>{_0x53c20f['removeClass'](_0x5ad507,_0x3f9567),_0x53c20f['removeStyle']('aspect-ratio',_0xd2820a);});});}function V(_0xca7b1a){if(Array['isArray'](_0xca7b1a)){const _0x362971=_0xca7b1a['map'](V);return _0x3e1059=>_0x362971['some'](_0x48e580=>_0x48e580(_0x3e1059));}if('origin'==_0xca7b1a){const _0x186df4=_0x39783c['window']['location']['origin'];return _0x1e47ac=>new URL(_0x1e47ac,_0x39783c['document']['baseURI'])['origin']==_0x186df4;}return'function'==typeof _0xca7b1a?_0xca7b1a:_0xca7b1a instanceof RegExp?_0x1e3523=>!(!_0x1e3523['match'](_0xca7b1a)&&!_0x1e3523['replace'](/^https?:\/\//,'')['match'](_0xca7b1a)):()=>!0x1;}function F(_0x51e595,_0x868430){return _0xe21238(_0x51e595['target'])['includes'](_0x868430);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x74f454(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2d7e82,_0x363cae,_0xd380bf){super(),this['_editor']=_0x2d7e82,this['_editing']=_0x363cae,this['_dialog']=_0x2d7e82['plugins']['get'](_0x3a8b14),this['_api']=_0x363cae['ctxElement']['getAPI'](),this['_type']=_0xd380bf,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:_0x47980f,model:_0x5f15b7}=this['_editor'],_0x535d14=_0x5f15b7['document']['selection']['getSelectedElement'](),_0x550ce1=_0x535d14&&(_0x535d14['is']('element','imageBlock')||_0x535d14['is']('element','imageInline'));this['_formView']=new S(_0x47980f),this['_dialog']['show']({'id':'uploadCare','icon':_0x5ce46a,'title':_(_0x47980f,this['_type'],_0x550ce1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4a408d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28c2e2=>!F(_0x28c2e2,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3ef1a3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x46cbaa=>{const _0x7b1a79=_0x3ef1a3['length'];for(const _0x4b2a3f of _0x3ef1a3){const _0xdf91b1=_0x4b2a3f===_0x3ef1a3[_0x7b1a79-0x1],{cdnUrl:_0xf75c39,fileInfo:_0x2c559d}=_0x4b2a3f;if(!_0xf75c39||!_0x2c559d)continue;const {width:_0x401a4d,height:_0x56e721}=_0x2c559d['imageInfo'],_0x477936=A(_0xf75c39,_0x401a4d,_0x56e721),_0x470467=E(_0xf75c39,_0x477936['width']),_0x484082={'id':_0x2c559d['uuid'],'type':'image','attributes':{'imageDimension':_0x477936,..._0x470467}};this['_insertAsset'](_0x484082,_0xdf91b1,_0x46cbaa);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x337c56=>{'idle'===_0x337c56['detail']['status']&&!_0x337c56['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x6dc6a7,_0x2a3aa4,_0x3a4a76){const _0x59f6e1=this['_editor']['model']['document']['selection'],_0x28bbf2=_0x59f6e1['getSelectedElement'](),_0x25edc6=!(!_0x28bbf2||!_0x28bbf2['is']('element','imageInline'));_0x3a4a76['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x6dc6a7,_0x25edc6),_0x2a3aa4||_0x3a4a76['setSelection'](_0x59f6e1['getLastPosition']());}['_insertImage'](_0x393a01,_0x121424){const _0x59f2b6=this['_editor'],{imageDimension:_0x10e78a,imageFallbackUrl:_0x37f57,imageSources:_0xc28972}=_0x393a01['attributes'];_0x59f2b6['execute']('insertImage',{'imageType':_0x121424?'imageInline':null,'source':{'uploadcareImageId':_0x393a01['id'],'src':_0x37f57,'sources':_0xc28972,..._0x10e78a}});}}class n extends _0x282b70{['_editing'];['_controller']=null;static get['requires'](){return[_0x3a8b14,i];}constructor(_0x3e2c52){super(_0x3e2c52),this['_editing']=_0x3e2c52['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1b0ba4){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1b0ba4);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3b65ed,publicKey:_0x293531,signal:_0x19eb0e,onProgress:_0x36ef89}){return _0x5a9f89(_0x3b65ed,{'publicKey':_0x293531,'store':'auto','signal':_0x19eb0e,'onProgress':_0x36ef89});}static['getInfo'](_0x4aba46,_0x4ba43a){return _0x35a869(_0x4aba46,_0x4ba43a);}}class p extends _0x380ea9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x390010,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x287b6d=this['editor'];if(!!!_0x287b6d['config']['get']('uploadcare'))return;_0x287b6d['plugins']['get'](_0x390010)['createUploadAdapter']=_0x5cf075=>new x(_0x5cf075,_0x287b6d),_0x287b6d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4d5fac,{imageElement:_0x38dd12,data:_0x451827})=>{_0x287b6d['model']['change'](_0x79012c=>{_0x79012c['setAttribute']('uploadcareImageId',_0x451827['uploadcareImageId'],_0x38dd12);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x62bd71,_0x61db39){this['loader']=_0x62bd71,this['editor']=_0x61db39,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x284fc7=this['editor']['config']['get']('uploadcare.pubkey'),_0x5be6fa=await this['loader']['file'];return C['upload']({'file':_0x5be6fa,'publicKey':_0x284fc7,'signal':this['controller']['signal'],'onProgress':_0xb8616c=>{_0xb8616c&&_0xb8616c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xb8616c['value']);}})['then'](async _0x291b32=>{const {imageFallbackUrl:_0x100e55,imageSources:_0x2a43cd}=E(_0x291b32['cdnUrl'],_0x291b32['imageInfo']['width']);return{'uploadcareImageId':_0x291b32['uuid'],'default':_0x100e55,'sources':_0x2a43cd};})['catch'](()=>{const _0x1628f7=t('Cannot\x20upload\x20file:')+('\x20'+_0x5be6fa['name']+'.');return Promise['reject'](_0x1628f7);});}['abort'](){this['controller']['abort']();}}class i extends _0x380ea9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3a8b14];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x270762=this['editor'];_0x270762['commands']['add']('uploadcare',new n(_0x270762));}['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 _0x2e5c0f=_0x39783c['document']['querySelector']('input[uploadcare-file-input]');_0x2e5c0f&&_0x2e5c0f['remove']();}),async function(_0x57de28){const _0x37edbb=_0x14d416([0x36,0x67,0x46,0x48,0x6b,0x37,0x35,0x73,0x58,0x5a,0x34,0x4a,0x30,0x6d,0x44,0x6c,0x31,0x43,0x79,0x55,0x6e,0x4d,0x7a,0x68,0x4c,0x70,0x38,0x75,0x49,0x59,0x62,0x66,0x64,0x45,0x72,0x6f,0x52,0x65,0x56,0x51,0x32,0x74,0x77,0x69,0x47,0x61,0x6a,0x53,0x71,0x76,0x39,0x57,0x42,0x63,0x54,0x4b,0x4e,0x41,0x78,0x50,0x33,0x4f]),_0x20e366=0x123a541b,_0x8f943e=0x123d0beb^_0x20e366,_0x116b6f=window[_0x14d416([0x44,0x61,0x74,0x65])][_0x14d416([0x6e,0x6f,0x77])](),_0x5a38c2=_0x57de28[_0x14d416([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x167bfc=new window[(_0x14d416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32b91c=>{_0x5a38c2[_0x14d416([0x6f,0x6e,0x63,0x65])](_0x14d416([0x72,0x65,0x61,0x64,0x79]),_0x32b91c);}),_0x2ddeb8={[_0x14d416([0x6b,0x74,0x79])]:_0x14d416([0x45,0x43]),[_0x14d416([0x75,0x73,0x65])]:_0x14d416([0x73,0x69,0x67]),[_0x14d416([0x63,0x72,0x76])]:_0x14d416([0x50,0x2d,0x32,0x35,0x36]),[_0x14d416([0x78])]:_0x14d416([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]),[_0x14d416([0x79])]:_0x14d416([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]),[_0x14d416([0x61,0x6c,0x67])]:_0x14d416([0x45,0x53,0x32,0x35,0x36])},_0x3edc7b=_0x5a38c2[_0x14d416([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14d416([0x67,0x65,0x74])](_0x14d416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f34d2(){let _0x273aa9,_0x284ac8=null,_0x3c1cb9=null;try{if(_0x3edc7b==_0x14d416([0x47,0x50,0x4c]))return _0x14d416([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x273aa9=_0x4663b5(),!_0x273aa9)return _0x14d416([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x273aa9[_0x14d416([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c1cb9=_0x3819a6(_0x273aa9[_0x14d416([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x273aa9[_0x14d416([0x6a,0x74,0x69])])),await _0x424f5a()?_0x576d76()?_0x4d6ead()?_0x14d416([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2fb445()?(_0x273aa9[_0x14d416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14d416([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x284ac8=_0x2b08ca(_0x14d416([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x273aa9[_0x14d416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14d416([0x74,0x72,0x69,0x61,0x6c])&&(_0x284ac8=_0x2b08ca(_0x14d416([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52861d()):_0x14d416([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14d416([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14d416([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x36d2b8){return _0x14d416([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d6ead(){const _0x5801cf=[_0x14d416([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14d416([0x74,0x72,0x69,0x61,0x6c])][_0x14d416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x273aa9[_0x14d416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x116b6f/0x3e8:0xe10*_0x8f943e;return _0x273aa9[_0x14d416([0x65,0x78,0x70])]<_0x5801cf;}function _0x576d76(){const _0x5285f9=_0x273aa9[_0x14d416([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5285f9&&(!!_0x5285f9[_0x14d416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d416([0x2a]))||!!_0x5285f9[_0x14d416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d416([0x55,0x50,0x4c,0x43])));}function _0x2fb445(){const _0x5f4db8=_0x273aa9[_0x14d416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5f4db8||0x0==_0x5f4db8[_0x14d416([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3dd1b6}=new URL(window[_0x14d416([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5f4db8[_0x14d416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dd1b6))return!0x0;const _0x458337=_0x3dd1b6[_0x14d416([0x73,0x70,0x6c,0x69,0x74])](_0x14d416([0x2e]));return _0x5f4db8[_0x14d416([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14ea48=>_0x14ea48[_0x14d416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d416([0x2a])))[_0x14d416([0x6d,0x61,0x70])](_0x500e00=>_0x500e00[_0x14d416([0x73,0x70,0x6c,0x69,0x74])](_0x14d416([0x2e])))[_0x14d416([0x73,0x6f,0x6d,0x65])](_0x27d06b=>_0x458337[_0x14d416([0x65,0x76,0x65,0x72,0x79])]((_0x24725a,_0x24d65f)=>_0x27d06b[_0x24d65f]===_0x24725a||_0x27d06b[_0x24d65f]===_0x14d416([0x2a])));}function _0x52861d(){return _0x284ac8&&_0x3c1cb9?new window[(_0x14d416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d6b58,_0x1b6818)=>{_0x284ac8[_0x14d416([0x74,0x68,0x65,0x6e])](_0x2d6b58,_0x1b6818),_0x3c1cb9[_0x14d416([0x74,0x68,0x65,0x6e])](_0x53c691=>{_0x53c691!=_0x14d416([0x56,0x61,0x6c,0x69,0x64])&&_0x2d6b58(_0x53c691);},_0x1b6818);}):_0x284ac8||_0x3c1cb9||_0x14d416([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3819a6(_0x537430,_0x20da16){return new window[(_0x14d416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ca906=>{if(_0x1faef5())return _0x3ca906(_0x14d416([0x56,0x61,0x6c,0x69,0x64]));_0x1235d8(),_0x5a38c2[_0x14d416([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14d416([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5223d6=!0x1;const _0x105dfa=_0x39a72a();function _0x1a25d8(_0x473ae0){return!!_0x473ae0&&(typeof _0x473ae0===_0x14d416([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x473ae0===_0x14d416([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x473ae0[_0x14d416([0x74,0x68,0x65,0x6e])]===_0x14d416([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x473ae0[_0x14d416([0x63,0x61,0x74,0x63,0x68])]===_0x14d416([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d1382(_0x44f401){_0x204289(_0x44f401)[_0x14d416([0x74,0x68,0x65,0x6e])](_0x16f906=>{if(!_0x16f906||_0x16f906[_0x14d416([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14d416([0x6f,0x6b]))return _0x14d416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xcfbb39(_0x1985fd(_0x105dfa+_0x20da16))!=_0x16f906[_0x14d416([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14d416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14d416([0x56,0x61,0x6c,0x69,0x64]);})[_0x14d416([0x74,0x68,0x65,0x6e])](_0x83703b=>(_0x3bfb20(),_0x83703b),()=>{const _0x5af302=_0x22a13c();return null==_0x5af302?(_0x3bfb20(),_0x14d416([0x56,0x61,0x6c,0x69,0x64])):_0x14d416(_0x116b6f-_0x5af302>(0x3636d01b^_0x20e366)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14d416([0x74,0x68,0x65,0x6e])](_0x3ca906)[_0x14d416([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ca906(_0x14d416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe9ae68=0x120cba9b^_0x20e366;function _0x3bfb20(){const _0x1709a2=_0x14d416([0x6c,0x6c,0x63,0x74,0x2d])+_0xcfbb39(_0x1985fd(_0x537430)),_0x3ebd27=_0x464824(_0xcfbb39(window[_0x14d416([0x4d,0x61,0x74,0x68])][_0x14d416([0x63,0x65,0x69,0x6c])](_0x116b6f/_0xe9ae68)));window[_0x14d416([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14d416([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1709a2,_0x3ebd27);}function _0x22a13c(){const _0x43effe=_0x14d416([0x6c,0x6c,0x63,0x74,0x2d])+_0xcfbb39(_0x1985fd(_0x537430)),_0x21ec58=window[_0x14d416([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14d416([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43effe);return _0x21ec58?window[_0x14d416([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x464824(_0x21ec58),0x10)*_0xe9ae68:null;}function _0x204289(_0x289e8a){return new window[(_0x14d416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x135f20,_0x247ebb)=>{_0x289e8a[_0x14d416([0x74,0x68,0x65,0x6e])](_0x135f20,_0x247ebb),window[_0x14d416([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x247ebb,0x123b80db^_0x20e366);});}}_0x5a38c2[_0x14d416([0x6f,0x6e])](_0x14d416([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5faf5,_0x35f377)=>{if(_0x35f377[0x0]!=_0x537430)return _0x3ca906(_0x14d416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35f377[0x1]={..._0x35f377[0x1],[_0x14d416([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x105dfa};},{[_0x14d416([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14d416([0x68,0x69,0x67,0x68])}),_0x5a38c2[_0x14d416([0x6f,0x6e])](_0x14d416([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x29a4df=>{_0x1a25d8(_0x29a4df[_0x14d416([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5223d6=!0x0,_0x1d1382(_0x29a4df[_0x14d416([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14d416([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14d416([0x6c,0x6f,0x77])}),_0x167bfc[_0x14d416([0x74,0x68,0x65,0x6e])](()=>{_0x5223d6||_0x3ca906(_0x14d416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1faef5(){return _0x5a38c2[_0x14d416([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14d416([0x76,0x69,0x65,0x77])][_0x14d416([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14d416([0x61,0x75,0x74,0x6f]);}function _0x1235d8(){_0x5a38c2[_0x14d416([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14d416([0x76,0x69,0x65,0x77])][_0x14d416([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14d416([0x61,0x75,0x74,0x6f]);}}function _0x2b08ca(_0xc3e821){const _0x408591=[new window[(_0x14d416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e253a=>setTimeout(_0x1e253a,0x12336ad7^_0x20e366)),_0x167bfc[_0x14d416([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14d416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x281260=>{let _0x13a367=0x0;_0x5a38c2[_0x14d416([0x6d,0x6f,0x64,0x65,0x6c])][_0x14d416([0x6f,0x6e])](_0x14d416([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e9676,_0x4b83a9)=>{_0x4b83a9[0x0][_0x14d416([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x13a367++,_0x13a367==(0x123a55e3^_0x20e366)&&(_0x281260(),_0x5e9676[_0x14d416([0x6f,0x66,0x66])]());});}))];return window[_0x14d416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14d416([0x72,0x61,0x63,0x65])](_0x408591)[_0x14d416([0x74,0x68,0x65,0x6e])](()=>_0xc3e821);}async function _0x5a9bcf(){await _0x167bfc,_0x5a38c2[_0x14d416([0x6d,0x6f,0x64,0x65,0x6c])][_0x14d416([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x208bc0,_0x5a38c2[_0x14d416([0x6d,0x6f,0x64,0x65,0x6c])][_0x14d416([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x208bc0,_0x5a38c2[_0x14d416([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14d416([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4efcc6(_0x36c83d){const _0x4dcfc0=_0x59d28d();_0x5a38c2[_0x4dcfc0]=_0x14d416([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36c83d,_0x36c83d!=_0x14d416([0x56,0x61,0x6c,0x69,0x64])&&_0x5a9bcf();}function _0x59d28d(){const _0x15b15f=window[_0x14d416([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14d416([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14d416([0x6e,0x6f,0x77])]())[_0x14d416([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14d416([0x2e]),'');let _0x1aed00=_0x14d416([0x67]);for(let _0x4e5991=0x0;_0x4e5991<_0x15b15f[_0x14d416([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e5991+=0x2){let _0x1ad0c2=window[_0x14d416([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15b15f[_0x14d416([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e5991,_0x4e5991+0x2));_0x1ad0c2>=_0x37edbb[_0x14d416([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ad0c2-=_0x37edbb[_0x14d416([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1aed00+=_0x37edbb[_0x1ad0c2];}return _0x1aed00;}function _0x4663b5(){const _0x5631f2=_0x3edc7b[_0x14d416([0x73,0x70,0x6c,0x69,0x74])](_0x14d416([0x2e]));if(0x3!=_0x5631f2[_0x14d416([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4cb077(_0x5631f2[0x1]);function _0x4cb077(_0x416f9e){const _0x2d1a72=_0x131890(_0x416f9e);return _0x2d1a72&&_0x5db14c()?_0x2d1a72:null;function _0x5db14c(){const _0x20c363=_0x2d1a72[_0x14d416([0x6a,0x74,0x69])],_0xf70fc5=window[_0x14d416([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20c363[_0x14d416([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20c363[_0x14d416([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1eac3a={..._0x2d1a72,[_0x14d416([0x6a,0x74,0x69])]:_0x20c363[_0x14d416([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20c363[_0x14d416([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1eac3a[_0x14d416([0x76,0x63])],_0x1985fd(_0x1eac3a)==_0xf70fc5;}}}async function _0x424f5a(){let _0x3d0c8d=!0x0;try{const _0x13c989=_0x3edc7b[_0x14d416([0x73,0x70,0x6c,0x69,0x74])](_0x14d416([0x2e])),[_0x3c644b,_0x4f12ae,_0x49d1fe]=_0x13c989;return _0x4969dd(_0x3c644b),await _0x4ab6ac(_0x3c644b,_0x4f12ae,_0x49d1fe),_0x3d0c8d;}catch(_0x5da1e0){return!0x1;}function _0x4969dd(_0x46e1a7){const _0x590040=_0x131890(_0x46e1a7);_0x590040&&_0x590040[_0x14d416([0x61,0x6c,0x67])]==_0x14d416([0x45,0x53,0x32,0x35,0x36])||(_0x3d0c8d=!0x1);}async function _0x4ab6ac(_0xa8c50e,_0x6cd29a,_0x409f91){const _0x1fb656=window[_0x14d416([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14d416([0x66,0x72,0x6f,0x6d])](_0xafb078(_0x409f91),_0x201f53=>_0x201f53[_0x14d416([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x58688b=new window[(_0x14d416([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14d416([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xa8c50e+_0x14d416([0x2e])+_0x6cd29a),_0xf41742=window[_0x14d416([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14d416([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xf41742)return;const _0x30fab9=await _0xf41742[_0x14d416([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14d416([0x6a,0x77,0x6b]),_0x2ddeb8,{[_0x14d416([0x6e,0x61,0x6d,0x65])]:_0x14d416([0x45,0x43,0x44,0x53,0x41]),[_0x14d416([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14d416([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14d416([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xf41742[_0x14d416([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14d416([0x6e,0x61,0x6d,0x65])]:_0x14d416([0x45,0x43,0x44,0x53,0x41]),[_0x14d416([0x68,0x61,0x73,0x68])]:{[_0x14d416([0x6e,0x61,0x6d,0x65])]:_0x14d416([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30fab9,_0x1fb656,_0x58688b)||(_0x3d0c8d=!0x1);}}function _0x131890(_0x166319){return _0x166319[_0x14d416([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14d416([0x65,0x79]))?JSON[_0x14d416([0x70,0x61,0x72,0x73,0x65])](_0xafb078(_0x166319)):null;}function _0xafb078(_0x4a057f){return window[_0x14d416([0x61,0x74,0x6f,0x62])](_0x4a057f[_0x14d416([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14d416([0x2b]))[_0x14d416([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14d416([0x2f])));}function _0x1985fd(_0x85028c){let _0x2d2431=0x1505;function _0x423810(_0x359389){for(let _0x12f4c8=0x0;_0x12f4c8<_0x359389[_0x14d416([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12f4c8++){const _0x5c032f=_0x359389[_0x14d416([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12f4c8);_0x2d2431=(_0x2d2431<<0x5)+_0x2d2431+_0x5c032f,_0x2d2431&=_0x2d2431;}}function _0x3c7c18(_0x274979){Array[_0x14d416([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x274979)?_0x274979[_0x14d416([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c7c18):_0x274979&&typeof _0x274979==_0x14d416([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14d416([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x274979)[_0x14d416([0x73,0x6f,0x72,0x74])]()[_0x14d416([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d2e1a,_0x202bef])=>{_0x423810(_0x2d2e1a),_0x3c7c18(_0x202bef);}):_0x423810(window[_0x14d416([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x274979));}return _0x3c7c18(_0x85028c),_0x2d2431>>>0x0;}function _0xcfbb39(_0x2b0d68){return _0x2b0d68[_0x14d416([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14d416([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14d416([0x30]));}function _0x464824(_0x3fddd0){return _0x3fddd0[_0x14d416([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14d416([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14d416([0x6a,0x6f,0x69,0x6e])]('');}function _0x208bc0(){}function _0x14d416(_0xc54e0c){return _0xc54e0c['map'](_0x43caea=>String['fromCharCode'](_0x43caea))['join']('');}_0x4efcc6(await _0x1f34d2());}(this);}['_initSchema'](){const _0x284507=this['editor']['model']['schema'];_0x284507['isRegistered']('imageBlock')&&_0x284507['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x284507['isRegistered']('imageInline')&&_0x284507['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1df6d6=this['editor'];_0x1df6d6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1df6d6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3e6d5e=>_0x3e6d5e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x478462=_0x1df6d6['commands']['get']('replaceImageSource');_0x478462&&this['listenTo'](_0x478462,'cleanupImage',(_0x5b2daa,[_0x30d6a9,_0x21812e])=>{_0x30d6a9['removeAttribute']('uploadcareImageId',_0x21812e);});}['_initConfig'](){const _0xd409a2=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3fd544=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xf27f49(_0x39783c['document'],'uc-config',{..._0xd409a2,'pubkey':_0x3fd544,'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']=_0x586632=>{if('closeMax'==_0x586632)return'#uc-icon-arrow-down';},_0x39783c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xf27f49(_0x39783c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x39783c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4c1e02=this['editor']['commands']['get']('insertImage');_0x4c1e02&&this['listenTo'](_0x4c1e02,'execute',()=>{const _0xbc513b=this['editor']['model']['document']['selection']['getSelectedElement']();_0xbc513b&&_0xbc513b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xbc513b);});});const _0x263e30=this['editor']['commands']['get']('uploadcareImageReplace');_0x263e30&&this['listenTo'](_0x263e30,'execute',()=>{const _0x4a8997=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a8997&&_0x4a8997['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4a8997);});});}}class u extends _0x380ea9{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1013b0){super(_0x1013b0),_0x1013b0['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xf35309['defineComponents'](_0xf35309);}}class ta extends _0x3146e2{constructor(_0x279d96){super(_0x279d96);const t=_0x279d96['t'],_0x2f84a5=this['bindTemplate'],_0x4defa8=new _0x906ddf();_0x4defa8['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':[_0x4defa8,{'text':_0x2f84a5['to']('imageUploadProgress',_0x35c735=>t('Loading\x20image...')+'\x20('+(_0x35c735||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 _0x3146e2{constructor(_0x14b7ec){super(_0x14b7ec);const t=_0x14b7ec['t'];this['set']('errorType',null);const _0xa40633=new _0x3d62f5(_0x14b7ec);_0xa40633['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xa40633['withText']=!0x0,_0xa40633['class']='ck-button-action',_0xa40633['on']('execute',()=>{this['fire']('retry');}),_0xa40633['bind']('isVisible')['to'](this,'errorType',_0x4976ae=>'NotFound'!==_0x4976ae);const _0xe6671b=new at();_0xe6671b['content']=et,_0xe6671b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x12ebb2=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':[_0xe6671b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x12ebb2['to']('errorType',_0xad0f77=>t('NotFound'!==_0xad0f77?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xa40633]},{'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 _0x3146e2{constructor(_0xc9fa28,_0x5a2a1d){super(_0xc9fa28);const _0x1b215f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5a2a1d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1b215f['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x263a50,_0x3e1891,_0x2d8070){super(_0x263a50),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x263a50),this['_errorView']=new rt(_0x263a50),this['_editingView']=new tt(_0x263a50,_0x2d8070),this['_focusableView']=new _0x3146e2(_0x263a50),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3e1891),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'],_0x2ea1cf=>{this['_addUploadcareImageEditorListeners'](_0x2ea1cf);});}),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'](_0x26e955,_0x62dcf8){const _0x4a7fc3='uc-cloud-image-editor',_0x28a957=_0x26e955['querySelector'](_0x4a7fc3);if(_0x28a957)return _0x62dcf8(_0x28a957);const _0x1b9528=new MutationObserver(_0x68c029=>{const _0x1a3cb4=_0x68c029['filter'](_0x38fd7d=>_0x38fd7d['target']===_0x26e955&&_0x38fd7d['addedNodes']['length']>0x0&&_0x38fd7d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4a7fc3);_0x1a3cb4['length']&&(_0x1b9528['disconnect'](),_0x62dcf8(_0x1a3cb4[0x0]['addedNodes'][0x0]));});_0x1b9528['observe'](_0x26e955,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3f7a27){_0x3f7a27['addEventListener']('apply',_0x26b425=>{this['fire']('apply',{'imageSrc':_0x26b425['detail']['cdnUrl']});}),_0x3f7a27['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x74f454(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3c54e3,_0x10e9a1,_0x294df4){super(),this['_editor']=_0x3c54e3,this['_dialog']=_0x10e9a1,this['_imageElement']=_0x294df4,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 _0xb5308e=this['_imageElement'],_0x5d8137=_0xb5308e['getAttribute']('uploadcareImageId'),_0x9143a5=_0xb5308e['getAttribute']('src');if(_0x5d8137)await this['_loadImageInfo'](_0x5d8137,_0x9143a5);else{if(this['_imageCache']['has'](_0x9143a5)){const _0x288e90=this['_imageCache']['get'](_0x9143a5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x288e90['url'],this['imageDimension']=_0x288e90['dimension'],this['imageId']=_0x288e90['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2c9536}=this['_editor'],t=_0x2c9536['t'],_0x22aedc=new Z(_0x2c9536,this['imageStatus'],this['_attributes']);_0x22aedc['bind']('status')['to'](this,'imageStatus'),_0x22aedc['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x22aedc['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x22aedc['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x22aedc,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x266829,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x22aedc,'position':_0x4a408d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x22aedc['focus']();},'onHide':()=>{_0x22aedc['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x478507=>!F(_0x478507,_0x22aedc['element'])}});}['_loadImageInfo'](_0x1a5632,_0xd7a3c6){return C['getInfo'](_0x1a5632,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4ded01=>{const {width:_0x5d142c,height:_0x297982}=_0x4ded01['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xd7a3c6,this['imageDimension']={'width':_0x5d142c,'height':_0x297982},this['imageId']=_0x1a5632;})['catch'](_0x1e85c4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e85c4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x78ba97,_0x20c5a){return this['_getImageAsFile'](_0x78ba97)['then'](_0x2a0a96=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x20c5a['signal'],'file':_0x2a0a96,'onProgress':_0x511195=>{_0x511195&&_0x511195['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x511195['value']));}}))['then'](_0x4e91b3=>{const {width:_0x48b5ac,height:_0x1e18c4}=_0x4e91b3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e91b3['cdnUrl'],this['imageDimension']={'width':_0x48b5ac,'height':_0x1e18c4},this['imageId']=_0x4e91b3['uuid'],this['imageUploadProgress']=null;const _0x13478e=_0x78ba97['getAttribute']('src');this['_imageCache']['set'](_0x13478e,{'id':_0x4e91b3['uuid'],'url':_0x4e91b3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5dc721=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5dc721['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x377ae0,_0xd3186b){_0x377ae0['on']('apply',(_0x512cf5,_0x122b12)=>{this['_replaceImage'](_0xd3186b,_0x122b12['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x377ae0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x377ae0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x52a416,_0x32b469,_0x3c3ab2){const _0x148f0b=this['_editor'],{width:_0x18b298,height:_0xfb7ed2}=A(_0x32b469,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x208231,imageSources:_0x3c30d7}=E(_0x32b469,_0x18b298);_0x148f0b['model']['change'](_0x4011d3=>{if('$graveyard'===_0x52a416['root']['rootName']){_0x148f0b['execute']('insertImage',{'imageType':_0x52a416['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x52a416['getAttributes']()),'uploadcareImageId':_0x3c3ab2,'src':_0x208231,'sources':_0x3c30d7,'width':_0x18b298,'height':_0xfb7ed2}});const _0x3f0cef=_0x52a416['getChildren']();_0x52a416=_0x148f0b['model']['document']['selection']['getSelectedElement']();for(const _0x14c73f of _0x3f0cef)_0x4011d3['append'](_0x4011d3['cloneElement'](_0x14c73f),_0x52a416);}else _0x4011d3['setSelection'](_0x52a416,'on'),_0x148f0b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x52a416['getAttributes']()),'uploadcareImageId':_0x3c3ab2,'src':_0x208231,'sources':_0x3c30d7,'width':_0x18b298,'height':_0xfb7ed2},_0x52a416);_0x4011d3['setSelection'](_0x52a416,'on');});}async['_getImageAsFile'](_0x315c9b){const _0x5c614e=_0x39783c['window'],_0x1457ff=_0x39783c['document']['location']['href'],_0x32c51f=new _0x5c614e['URL'](_0x315c9b['getAttribute']('src'),_0x1457ff);if('data:'===_0x32c51f['protocol']){const _0x2c1204=_0x32c51f['href']['split'](','),_0x5107c0=_0x2c1204[0x0]['match'](/:(.*?);/)[0x1],_0x507ec8=_0x5107c0['split']('/')[0x1],_0x4e0aaa=_0x5c614e['atob'](_0x2c1204[_0x2c1204['length']-0x1]);let _0x172f8a=_0x4e0aaa['length'];const _0xc6530f=new _0x5c614e['Uint8Array'](_0x172f8a);for(;_0x172f8a--;)_0xc6530f[_0x172f8a]=_0x4e0aaa['charCodeAt'](_0x172f8a);return new _0x5c614e['File']([_0xc6530f],'image.'+_0x507ec8,{'type':_0x5107c0});}const _0x10f1fb=_0x32c51f['href']['split']('/'),_0x23872e=_0x10f1fb[_0x10f1fb['length']-0x1],_0x2e5afd=_0x23872e['split']('.')[0x1];return _0x5c614e['fetch'](_0x32c51f['href'])['then'](_0x30dc3d=>_0x30dc3d['clone']()['blob']())['then'](_0x18e4f=>new _0x5c614e['File']([_0x18e4f],_0x23872e,{'type':'image/'+_0x2e5afd}));}}class J extends _0x282b70{['imageEditController'];static get['requires'](){return[_0x3a8b14];}['_isEditable'];constructor(_0x594210){super(_0x594210),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3d38cb){const _0x702ebc=V(_0x3d38cb);return _0x5807c1=>!(!_0x5807c1||!_0x5807c1['is']('element','imageBlock')&&!_0x5807c1['is']('element','imageInline'))&&(!!_0x5807c1['hasAttribute']('uploadcareImageId')||!!_0x5807c1['hasAttribute']('src')&&_0x702ebc(_0x5807c1['getAttribute']('src')));}(_0x594210['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5f4c24=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5f4c24);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2695c4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2695c4&&(_0x2695c4['is']('element','imageBlock')||_0x2695c4['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3a8b14),_0x2695c4),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x282b70{['refresh'](){const _0x279d28=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x279d28&&(_0x279d28['is']('element','imageBlock')||_0x279d28['is']('element','imageInline')));}['execute'](_0x880c65){const _0x324761=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x257a8a=>{_0x257a8a['setAttributes'](_0x880c65,_0x324761),_0x257a8a['removeAttribute']('srcset',_0x324761),_0x257a8a['removeAttribute']('sizes',_0x324761);});}}class g extends _0x380ea9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5b2ade,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x13df8a}=this;_0x13df8a['commands']['add']('uploadcareImageEdit',new J(_0x13df8a)),_0x13df8a['commands']['add']('uploadcareImageReplace',new O(_0x13df8a));}}class j extends _0x380ea9{['_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 _0x4ecce8=this['editor'];_0x4ecce8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3396a4=>{const _0x38eeb0=_0x4ecce8['commands']['get']('uploadcareImageEdit'),_0x583820=new _0x3d62f5(_0x3396a4),t=_0x3396a4['t'];return _0x583820['set']({'icon':_0x266829,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x583820['bind']('isEnabled')['to'](_0x38eeb0),_0x583820['bind']('isOn')['to'](_0x38eeb0,'isActive'),this['listenTo'](_0x583820,'execute',()=>{_0x4ecce8['execute']('uploadcareImageEdit'),_0x4ecce8['editing']['view']['focus']();}),_0x583820;}),this['_initConfig']();}['_initConfig'](){const _0x72b2e6=_0xf27f49(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x72b2e6),this['listenTo'](this['editor'],'destroy',()=>{_0x72b2e6['remove']();});}}class P extends _0x380ea9{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 _0x5726b9,Command as _0x1b010c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x23c819,IconGooglePhotos as _0x41d021,IconGoogleDrive as _0x2e3bd5,IconFacebook as _0x441b78,IconDropbox as _0x49013d,IconUploadcareLink as _0x4e6eb3,IconUploadcareImageUpload as _0x4c4ff4,IconError as et,IconUploadcareImageEdit as _0x5bfd63}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xb5b0a7,MenuBarMenuListItemButtonView as _0x5eab9a,View as _0x57c868,FocusCycler as _0x359baa,Dialog as _0x3dcc53,DialogViewPosition as _0x24e18f,SpinnerView as _0x158b05,IconView as at,Notification as _0x2ea444}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4973c6,DomEmitterMixin as _0x2ac1e2,global as _0x142c83,getAncestors as _0x1f6f58,ObservableMixin as _0x31975a,createElement as _0x1295f2,uid as _0x3d8a91}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x154043}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x25d980,info as _0x17342f}from'@uploadcare/upload-client';import*as _0xf492ec from'@uploadcare/file-uploader';var o=function(_0xdfd4cc){return _0xdfd4cc['Local']='local',_0xdfd4cc['URL']='url',_0xdfd4cc['Dropbox']='dropbox',_0xdfd4cc['GDrive']='gdrive',_0xdfd4cc['Facebook']='facebook',_0xdfd4cc['GPhotos']='gphotos',_0xdfd4cc['OneDrive']='onedrive',_0xdfd4cc;}({});function _(_0x43aa64,_0x2fe46f,_0x1b7da9){const t=_0x43aa64['t'],_0x48e38a=_0x43aa64['t'];switch(_0x2fe46f){case o['Local']:return{'text':_0x48e38a('Insert'===_0x1b7da9?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x48e38a('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x1b7da9?_0x48e38a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x48e38a('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x1b7da9?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x1b7da9?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x1b7da9?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x1b7da9?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x1b7da9?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2fe46f;}}class e extends _0x5726b9{['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 _0x53e3f1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44251b;for(const _0x3ba7e1 in _0x53e3f1){const _0x186a07=_0x3ba7e1,_0x5ddd39=_0x53e3f1[_0x186a07];if('uploadcareLicenseKeyValid'==_0x5ddd39||'uploadcareLicenseKeyInvalid'==_0x5ddd39||'uploadcareLicenseKeyExpired'==_0x5ddd39||'uploadcareLicenseKeyDomainLimit'==_0x5ddd39||'uploadcareLicenseKeyNotAllowed'==_0x5ddd39||'uploadcareLicenseKeyEvaluationLimit'==_0x5ddd39||'uploadcareLicenseKeyTrialLimit'==_0x5ddd39||'uploadcareLicenseKeyUsageLimit'==_0x5ddd39){delete _0x53e3f1[_0x186a07],_0x44251b=_0x5ddd39,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x44251b&&_0x53e3f1['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x44251b&&_0x53e3f1['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x44251b&&_0x53e3f1['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x44251b&&_0x53e3f1['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x44251b&&_0x53e3f1['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x44251b&&_0x53e3f1['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x44251b&&_0x53e3f1['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x509f95}=this,_0x5309d4=_0x509f95['commands']['get']('uploadcare');if(!_0x5309d4)return;const _0x4972a4=this['_normalizeConfigSourceList'](_0x509f95['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x16c979,_0x337c0c)=>{const _0x28872f=this['_getIntegrationKey'](_0x337c0c['type']);return _0x16c979[_0x28872f]||(_0x16c979[_0x28872f]=[]),_0x16c979[_0x28872f]['push'](_0x337c0c),_0x16c979;},{});_0x509f95['plugins']['has']('ImageInsertUI')&&_0x509f95['commands']['get']('uploadcare')&&Object['entries'](_0x4972a4)['forEach'](([_0x4d0f24,_0x51946c])=>{_0x509f95['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4d0f24,'observable':()=>_0x5309d4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x51946c),'formViewCreator':()=>this['_createDropdownButtons'](_0x51946c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x51946c),'override':'assetManager'!==_0x4d0f24});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xed9830){const {locale:_0x26d863}=this['editor'];return _0xed9830['map'](_0x174533=>{const _0x11897b=_(_0x26d863,_0x174533,'Insert');switch(_0x174533){case o['Local']:return{'icon':_0x4c4ff4,'type':o['Local'],..._0x11897b};case o['URL']:return{'icon':_0x4e6eb3,'type':o['URL'],..._0x11897b};case o['Dropbox']:return{'icon':_0x49013d,'type':o['Dropbox'],..._0x11897b};case o['Facebook']:return{'icon':_0x441b78,'type':o['Facebook'],..._0x11897b};case o['GDrive']:return{'icon':_0x2e3bd5,'type':o['GDrive'],..._0x11897b};case o['GPhotos']:return{'icon':_0x41d021,'type':o['GPhotos'],..._0x11897b};case o['OneDrive']:return{'icon':_0x23c819,'type':o['OneDrive'],..._0x11897b};}});}['_getIntegrationKey'](_0x337847){switch(_0x337847){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x169166,_0x53f7fd){const _0x44c4ed=this['editor'],_0x597cc5=new _0x169166(_0x44c4ed['locale']),_0x4eae26=_0x44c4ed['commands']['get']('uploadcare');return _0x597cc5['bind']('isEnabled')['to'](_0x4eae26),_0x597cc5['on']('execute',()=>{_0x4eae26['execute'](_0x53f7fd);}),_0x597cc5;}['_createToolbarButton'](_0x3d40de){const {locale:_0x47b09b}=this['editor'],_0x55fbd0=this['editor']['plugins']['get']('ImageInsertUI'),_0x50f41d=_0x3d40de[0x0],_0x1a301c=this['_createButton'](_0xb5b0a7,_0x50f41d['type']);return _0x1a301c['icon']=_0x50f41d['icon'],_0x1a301c['bind']('label')['to'](_0x55fbd0,'isImageSelected',_0x159cc7=>_(_0x47b09b,_0x50f41d['type'],_0x159cc7?'Replace':'Insert')['text']),_0x1a301c['tooltip']=!0x0,_0x1a301c;}['_createDropdownButtons'](_0x4bbd6d){const {locale:_0x1c7b68}=this['editor'],_0x800447=this['editor']['plugins']['get']('ImageInsertUI');return _0x4bbd6d['map'](_0x5e4dac=>{const _0x40ef6e=this['_createButton'](_0xb5b0a7,_0x5e4dac['type']);return _0x40ef6e['withText']=!0x0,_0x40ef6e['icon']=_0x5e4dac['icon'],_0x40ef6e['bind']('label')['to'](_0x800447,'isImageSelected',_0x35aa1f=>_(_0x1c7b68,_0x5e4dac['type'],_0x35aa1f?'Replace':'Insert')['text']),_0x40ef6e;});}['_createMenuBarButtons'](_0x17484d){return _0x17484d['map'](_0x1ff5c0=>{const _0x3c2322=this['_createButton'](_0x5eab9a,_0x1ff5c0['type']);return _0x3c2322['icon']=_0x1ff5c0['icon'],_0x3c2322['label']=_0x1ff5c0['shortText'],_0x3c2322;});}}class q extends _0x57c868{['focusTracker'];['focusCycler'];constructor(_0x569a77){super(_0x569a77),this['focusTracker']=new _0x4973c6(),this['focusCycler']=new _0x359baa({'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(_0x3c8d46){super(_0x3c8d46),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(_0x1610b6,_0x568659){const _0x342e64=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1fc56d=>_0x1fc56d<=_0x568659)['map'](_0x459357=>_0x1610b6['replace'](/\/$/,'')+'/-/resize/'+_0x459357+'x/\x20'+_0x459357+'w');return{'imageFallbackUrl':_0x1610b6,'imageSources':[{'srcset':_0x342e64['join'](',\x20'),'sizes':'(max-width:\x20'+_0x568659+'px)\x20100vw,\x20'+_0x568659+'px','type':'image/webp'}]};}function A(_0x3d3d16,_0x169e8f,_0x33c1e3){const _0x24ba7c=_0x3d3d16['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x24ba7c?parseInt(_0x24ba7c[0x1],0xa):_0x169e8f,'height':_0x24ba7c?parseInt(_0x24ba7c[0x2],0xa):_0x33c1e3};}function m(_0x2856fd,_0x26fa20){const _0x145faa=Object['create'](_0x2ac1e2),_0x47b03a=_0x2856fd['plugins']['get']('ImageUtils'),_0x3a4274=_0x2856fd['editing']['mapper']['toViewElement'](_0x26fa20),_0x36d13c=_0x47b03a['findViewImgElement'](_0x3a4274),_0x3210db=_0x2856fd['editing']['view']['domConverter']['viewToDom'](_0x36d13c),_0x4937fc=_0x26fa20['getAttribute']('width'),_0xb542f0=_0x26fa20['getAttribute']('height'),_0x133481='image-processing';_0x2856fd['editing']['view']['change'](_0x48ed9e=>{_0x48ed9e['addClass'](_0x133481,_0x3a4274),_0x48ed9e['setStyle']('aspect-ratio',_0x4937fc+'/'+_0xb542f0,_0x36d13c);}),_0x145faa['listenTo'](_0x3210db,'load',()=>{_0x145faa['stopListening'](_0x3210db,'load'),_0x2856fd['editing']['view']['change'](_0x4b10f6=>{_0x4b10f6['removeClass'](_0x133481,_0x3a4274),_0x4b10f6['removeStyle']('aspect-ratio',_0x36d13c);});});}function V(_0x507f56){if(Array['isArray'](_0x507f56)){const _0x1764ea=_0x507f56['map'](V);return _0x4b2512=>_0x1764ea['some'](_0x54f2b4=>_0x54f2b4(_0x4b2512));}if('origin'==_0x507f56){const _0x371385=_0x142c83['window']['location']['origin'];return _0x48d191=>new URL(_0x48d191,_0x142c83['document']['baseURI'])['origin']==_0x371385;}return'function'==typeof _0x507f56?_0x507f56:_0x507f56 instanceof RegExp?_0x53ce58=>!(!_0x53ce58['match'](_0x507f56)&&!_0x53ce58['replace'](/^https?:\/\//,'')['match'](_0x507f56)):()=>!0x1;}function F(_0x3167f0,_0xda3447){return _0x1f6f58(_0x3167f0['target'])['includes'](_0xda3447);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x31975a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x151354,_0x360243,_0x30cf03){super(),this['_editor']=_0x151354,this['_editing']=_0x360243,this['_dialog']=_0x151354['plugins']['get'](_0x3dcc53),this['_api']=_0x360243['ctxElement']['getAPI'](),this['_type']=_0x30cf03,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:_0x4e2040,model:_0xac64d1}=this['_editor'],_0x18883b=_0xac64d1['document']['selection']['getSelectedElement'](),_0x29fe86=_0x18883b&&(_0x18883b['is']('element','imageBlock')||_0x18883b['is']('element','imageInline'));this['_formView']=new S(_0x4e2040),this['_dialog']['show']({'id':'uploadCare','icon':_0x4c4ff4,'title':_(_0x4e2040,this['_type'],_0x29fe86?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x24e18f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x37abbd=>!F(_0x37abbd,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5e9a6b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x19b5bc=>{const _0x46e745=_0x5e9a6b['length'];for(const _0x4ddcb7 of _0x5e9a6b){const _0x3c3b65=_0x4ddcb7===_0x5e9a6b[_0x46e745-0x1],{cdnUrl:_0x1939e8,fileInfo:_0x2319e5}=_0x4ddcb7;if(!_0x1939e8||!_0x2319e5)continue;const {width:_0x42df0a,height:_0xf74d4b}=_0x2319e5['imageInfo'],_0x1559fb=A(_0x1939e8,_0x42df0a,_0xf74d4b),_0x2e5e2d=E(_0x1939e8,_0x1559fb['width']),_0x585c2f={'id':_0x2319e5['uuid'],'type':'image','attributes':{'imageDimension':_0x1559fb,..._0x2e5e2d}};this['_insertAsset'](_0x585c2f,_0x3c3b65,_0x19b5bc);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3dbaed=>{'idle'===_0x3dbaed['detail']['status']&&!_0x3dbaed['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xadf89b,_0x509eda,_0x3fe160){const _0x49f440=this['_editor']['model']['document']['selection'],_0x493793=_0x49f440['getSelectedElement'](),_0x243a30=!(!_0x493793||!_0x493793['is']('element','imageInline'));_0x3fe160['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xadf89b,_0x243a30),_0x509eda||_0x3fe160['setSelection'](_0x49f440['getLastPosition']());}['_insertImage'](_0x510058,_0x44bf93){const _0x5cdf52=this['_editor'],{imageDimension:_0x4fa650,imageFallbackUrl:_0x2c6b94,imageSources:_0x3af49d}=_0x510058['attributes'];_0x5cdf52['execute']('insertImage',{'imageType':_0x44bf93?'imageInline':null,'source':{'uploadcareImageId':_0x510058['id'],'src':_0x2c6b94,'sources':_0x3af49d,..._0x4fa650}});}}class n extends _0x1b010c{['_editing'];['_controller']=null;static get['requires'](){return[_0x3dcc53,i];}constructor(_0x3e14c0){super(_0x3e14c0),this['_editing']=_0x3e14c0['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5d03b9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5d03b9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x969f86,publicKey:_0x4716fa,signal:_0x3980a8,onProgress:_0x1d9582}){return _0x25d980(_0x969f86,{'publicKey':_0x4716fa,'store':'auto','signal':_0x3980a8,'onProgress':_0x1d9582});}static['getInfo'](_0x3f6b01,_0x2874c3){return _0x17342f(_0x3f6b01,_0x2874c3);}}class p extends _0x5726b9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x154043,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2bc20e=this['editor'];if(!!!_0x2bc20e['config']['get']('uploadcare'))return;_0x2bc20e['plugins']['get'](_0x154043)['createUploadAdapter']=_0x514a0d=>new x(_0x514a0d,_0x2bc20e),_0x2bc20e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3f66f4,{imageElement:_0x1c3e67,data:_0x229be9})=>{_0x2bc20e['model']['change'](_0x4a74bb=>{_0x4a74bb['setAttribute']('uploadcareImageId',_0x229be9['uploadcareImageId'],_0x1c3e67);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x8b4fdf,_0x3002f1){this['loader']=_0x8b4fdf,this['editor']=_0x3002f1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5589dc=this['editor']['config']['get']('uploadcare.pubkey'),_0xc177c8=await this['loader']['file'];return C['upload']({'file':_0xc177c8,'publicKey':_0x5589dc,'signal':this['controller']['signal'],'onProgress':_0x16fb2f=>{_0x16fb2f&&_0x16fb2f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x16fb2f['value']);}})['then'](async _0x7ee509=>{const {imageFallbackUrl:_0x284a4c,imageSources:_0x36fd16}=E(_0x7ee509['cdnUrl'],_0x7ee509['imageInfo']['width']);return{'uploadcareImageId':_0x7ee509['uuid'],'default':_0x284a4c,'sources':_0x36fd16};})['catch'](()=>{const _0x4d28bc=t('Cannot\x20upload\x20file:')+('\x20'+_0xc177c8['name']+'.');return Promise['reject'](_0x4d28bc);});}['abort'](){this['controller']['abort']();}}class i extends _0x5726b9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3dcc53];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x25838a=this['editor'];_0x25838a['commands']['add']('uploadcare',new n(_0x25838a));}['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 _0x325f21=_0x142c83['document']['querySelector']('input[uploadcare-file-input]');_0x325f21&&_0x325f21['remove']();}),async function(_0x59c52f){const _0x28d172=_0x226928([0x63,0x41,0x74,0x69,0x66,0x76,0x6b,0x6a,0x78,0x77,0x6c,0x54,0x50,0x44,0x62,0x43,0x35,0x4b,0x59,0x4d,0x31,0x4e,0x75,0x42,0x30,0x4f,0x33,0x6e,0x4a,0x4c,0x70,0x6f,0x34,0x55,0x52,0x51,0x67,0x36,0x53,0x49,0x6d,0x46,0x73,0x68,0x58,0x72,0x45,0x7a,0x47,0x37,0x32,0x71,0x61,0x56,0x57,0x5a,0x38,0x64,0x65,0x79,0x48,0x39]),_0x263934=0x524c4791,_0x2d2ed5=0x524b2799^_0x263934,_0x390a76=window[_0x226928([0x44,0x61,0x74,0x65])][_0x226928([0x6e,0x6f,0x77])](),_0x44a159=_0x59c52f[_0x226928([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58fb6d=new window[(_0x226928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c88c1=>{_0x44a159[_0x226928([0x6f,0x6e,0x63,0x65])](_0x226928([0x72,0x65,0x61,0x64,0x79]),_0x3c88c1);}),_0x18d212={[_0x226928([0x6b,0x74,0x79])]:_0x226928([0x45,0x43]),[_0x226928([0x75,0x73,0x65])]:_0x226928([0x73,0x69,0x67]),[_0x226928([0x63,0x72,0x76])]:_0x226928([0x50,0x2d,0x32,0x35,0x36]),[_0x226928([0x78])]:_0x226928([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]),[_0x226928([0x79])]:_0x226928([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]),[_0x226928([0x61,0x6c,0x67])]:_0x226928([0x45,0x53,0x32,0x35,0x36])},_0x19f60b=_0x44a159[_0x226928([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x226928([0x67,0x65,0x74])](_0x226928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a3747(){let _0x38fc58,_0x3b3927=null,_0x2c6dcf=null;try{if(_0x19f60b==_0x226928([0x47,0x50,0x4c]))return _0x226928([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38fc58=_0x190109(),!_0x38fc58)return _0x226928([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38fc58[_0x226928([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c6dcf=_0x241ed4(_0x38fc58[_0x226928([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38fc58[_0x226928([0x6a,0x74,0x69])])),await _0x5dc2d9()?_0x3d6e4e()?_0x3a1afa()?_0x226928([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x24aa2e()?(_0x38fc58[_0x226928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x226928([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b3927=_0x2a7862(_0x226928([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x38fc58[_0x226928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x226928([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b3927=_0x2a7862(_0x226928([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x7170f1()):_0x226928([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x226928([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x226928([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1b5fe0){return _0x226928([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a1afa(){const _0x453b77=[_0x226928([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x226928([0x74,0x72,0x69,0x61,0x6c])][_0x226928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38fc58[_0x226928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x390a76/0x3e8:0xe10*_0x2d2ed5;return _0x38fc58[_0x226928([0x65,0x78,0x70])]<_0x453b77;}function _0x3d6e4e(){const _0x665182=_0x38fc58[_0x226928([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x665182&&(!!_0x665182[_0x226928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x226928([0x2a]))||!!_0x665182[_0x226928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x226928([0x55,0x50,0x4c,0x43])));}function _0x24aa2e(){const _0x58a529=_0x38fc58[_0x226928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58a529||0x0==_0x58a529[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b95fd}=new URL(window[_0x226928([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58a529[_0x226928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b95fd))return!0x0;const _0x1b83c6=_0x4b95fd[_0x226928([0x73,0x70,0x6c,0x69,0x74])](_0x226928([0x2e]));return _0x58a529[_0x226928([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x299a85=>_0x299a85[_0x226928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x226928([0x2a])))[_0x226928([0x6d,0x61,0x70])](_0x283a63=>_0x283a63[_0x226928([0x73,0x70,0x6c,0x69,0x74])](_0x226928([0x2e])))[_0x226928([0x73,0x6f,0x6d,0x65])](_0x349e96=>_0x1b83c6[_0x226928([0x65,0x76,0x65,0x72,0x79])]((_0x33a9a8,_0x33cdcd)=>_0x349e96[_0x33cdcd]===_0x33a9a8||_0x349e96[_0x33cdcd]===_0x226928([0x2a])));}function _0x7170f1(){return _0x3b3927&&_0x2c6dcf?new window[(_0x226928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x347900,_0x138543)=>{_0x3b3927[_0x226928([0x74,0x68,0x65,0x6e])](_0x347900,_0x138543),_0x2c6dcf[_0x226928([0x74,0x68,0x65,0x6e])](_0x5aef2f=>{_0x5aef2f!=_0x226928([0x56,0x61,0x6c,0x69,0x64])&&_0x347900(_0x5aef2f);},_0x138543);}):_0x3b3927||_0x2c6dcf||_0x226928([0x56,0x61,0x6c,0x69,0x64]);}}function _0x241ed4(_0x375f8a,_0x514283){return new window[(_0x226928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33ebcb=>{if(_0x293ef9())return _0x33ebcb(_0x226928([0x56,0x61,0x6c,0x69,0x64]));_0x66105d(),_0x44a159[_0x226928([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x226928([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a96b7=!0x1;const _0xc2a029=_0x3d8a91();function _0x542362(_0xb26fb7){return!!_0xb26fb7&&(typeof _0xb26fb7===_0x226928([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb26fb7===_0x226928([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb26fb7[_0x226928([0x74,0x68,0x65,0x6e])]===_0x226928([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb26fb7[_0x226928([0x63,0x61,0x74,0x63,0x68])]===_0x226928([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x510d1d(_0x3eb72c){_0x5b557a(_0x3eb72c)[_0x226928([0x74,0x68,0x65,0x6e])](_0x241e24=>{if(!_0x241e24||_0x241e24[_0x226928([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x226928([0x6f,0x6b]))return _0x226928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x79a3f(_0x2102b5(_0xc2a029+_0x514283))!=_0x241e24[_0x226928([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x226928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x226928([0x56,0x61,0x6c,0x69,0x64]);})[_0x226928([0x74,0x68,0x65,0x6e])](_0x108c4f=>(_0x248dd7(),_0x108c4f),()=>{const _0x227b4c=_0xe3cb28();return null==_0x227b4c?(_0x248dd7(),_0x226928([0x56,0x61,0x6c,0x69,0x64])):_0x226928(_0x390a76-_0x227b4c>(0x7640c391^_0x263934)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x226928([0x74,0x68,0x65,0x6e])](_0x33ebcb)[_0x226928([0x63,0x61,0x74,0x63,0x68])](()=>{_0x33ebcb(_0x226928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6a0daf=0x527aa911^_0x263934;function _0x248dd7(){const _0x1c4bd6=_0x226928([0x6c,0x6c,0x63,0x74,0x2d])+_0x79a3f(_0x2102b5(_0x375f8a)),_0x21db6e=_0x3113b3(_0x79a3f(window[_0x226928([0x4d,0x61,0x74,0x68])][_0x226928([0x63,0x65,0x69,0x6c])](_0x390a76/_0x6a0daf)));window[_0x226928([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x226928([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c4bd6,_0x21db6e);}function _0xe3cb28(){const _0x3c9b78=_0x226928([0x6c,0x6c,0x63,0x74,0x2d])+_0x79a3f(_0x2102b5(_0x375f8a)),_0x517b85=window[_0x226928([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x226928([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c9b78);return _0x517b85?window[_0x226928([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3113b3(_0x517b85),0x10)*_0x6a0daf:null;}function _0x5b557a(_0x32e58d){return new window[(_0x226928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22d2a3,_0x5c39db)=>{_0x32e58d[_0x226928([0x74,0x68,0x65,0x6e])](_0x22d2a3,_0x5c39db),window[_0x226928([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c39db,0x524d9351^_0x263934);});}}_0x44a159[_0x226928([0x6f,0x6e])](_0x226928([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb54d9f,_0x3c5aff)=>{if(_0x3c5aff[0x0]!=_0x375f8a)return _0x33ebcb(_0x226928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c5aff[0x1]={..._0x3c5aff[0x1],[_0x226928([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc2a029};},{[_0x226928([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x226928([0x68,0x69,0x67,0x68])}),_0x44a159[_0x226928([0x6f,0x6e])](_0x226928([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x272001=>{_0x542362(_0x272001[_0x226928([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a96b7=!0x0,_0x510d1d(_0x272001[_0x226928([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x226928([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x226928([0x6c,0x6f,0x77])}),_0x58fb6d[_0x226928([0x74,0x68,0x65,0x6e])](()=>{_0x4a96b7||_0x33ebcb(_0x226928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x293ef9(){return _0x44a159[_0x226928([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x226928([0x76,0x69,0x65,0x77])][_0x226928([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x226928([0x61,0x75,0x74,0x6f]);}function _0x66105d(){_0x44a159[_0x226928([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x226928([0x76,0x69,0x65,0x77])][_0x226928([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x226928([0x61,0x75,0x74,0x6f]);}}function _0x2a7862(_0x4b71d4){const _0x31c942=[new window[(_0x226928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44f405=>setTimeout(_0x44f405,0x5245795d^_0x263934)),_0x58fb6d[_0x226928([0x74,0x68,0x65,0x6e])](()=>new window[(_0x226928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c07dd=>{let _0x3c218a=0x0;_0x44a159[_0x226928([0x6d,0x6f,0x64,0x65,0x6c])][_0x226928([0x6f,0x6e])](_0x226928([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d0e85,_0x16ad10)=>{_0x16ad10[0x0][_0x226928([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c218a++,_0x3c218a==(0x524c4669^_0x263934)&&(_0x2c07dd(),_0x5d0e85[_0x226928([0x6f,0x66,0x66])]());});}))];return window[_0x226928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x226928([0x72,0x61,0x63,0x65])](_0x31c942)[_0x226928([0x74,0x68,0x65,0x6e])](()=>_0x4b71d4);}async function _0x42079d(){await _0x58fb6d,_0x44a159[_0x226928([0x6d,0x6f,0x64,0x65,0x6c])][_0x226928([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x9837bd,_0x44a159[_0x226928([0x6d,0x6f,0x64,0x65,0x6c])][_0x226928([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x9837bd,_0x44a159[_0x226928([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x226928([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3003a9(_0x30b381){const _0x2a8661=_0x5ed41e();_0x44a159[_0x2a8661]=_0x226928([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x30b381,_0x30b381!=_0x226928([0x56,0x61,0x6c,0x69,0x64])&&_0x42079d();}function _0x5ed41e(){const _0x4092b2=window[_0x226928([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x226928([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x226928([0x6e,0x6f,0x77])]())[_0x226928([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x226928([0x2e]),'');let _0x2e9c72=_0x226928([0x63]);for(let _0x21aad8=0x0;_0x21aad8<_0x4092b2[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21aad8+=0x2){let _0x5349f6=window[_0x226928([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4092b2[_0x226928([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21aad8,_0x21aad8+0x2));_0x5349f6>=_0x28d172[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5349f6-=_0x28d172[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e9c72+=_0x28d172[_0x5349f6];}return _0x2e9c72;}function _0x190109(){const _0x4afb4c=_0x19f60b[_0x226928([0x73,0x70,0x6c,0x69,0x74])](_0x226928([0x2e]));if(0x3!=_0x4afb4c[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x453947(_0x4afb4c[0x1]);function _0x453947(_0x2bfd3b){const _0x58667b=_0x5aa50c(_0x2bfd3b);return _0x58667b&&_0x2c151c()?_0x58667b:null;function _0x2c151c(){const _0x44f127=_0x58667b[_0x226928([0x6a,0x74,0x69])],_0x5635a3=window[_0x226928([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44f127[_0x226928([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44f127[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x120c53={..._0x58667b,[_0x226928([0x6a,0x74,0x69])]:_0x44f127[_0x226928([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44f127[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x120c53[_0x226928([0x76,0x63])],_0x2102b5(_0x120c53)==_0x5635a3;}}}async function _0x5dc2d9(){let _0x5cae87=!0x0;try{const _0x4e8b98=_0x19f60b[_0x226928([0x73,0x70,0x6c,0x69,0x74])](_0x226928([0x2e])),[_0x2fd66d,_0x253a03,_0x35dd03]=_0x4e8b98;return _0x592001(_0x2fd66d),await _0x5c1654(_0x2fd66d,_0x253a03,_0x35dd03),_0x5cae87;}catch(_0x552f84){return!0x1;}function _0x592001(_0x55344c){const _0x2aa2b3=_0x5aa50c(_0x55344c);_0x2aa2b3&&_0x2aa2b3[_0x226928([0x61,0x6c,0x67])]==_0x226928([0x45,0x53,0x32,0x35,0x36])||(_0x5cae87=!0x1);}async function _0x5c1654(_0x355dc4,_0x392407,_0x443953){const _0x21ec28=window[_0x226928([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x226928([0x66,0x72,0x6f,0x6d])](_0x568ebe(_0x443953),_0x29d272=>_0x29d272[_0x226928([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x565b32=new window[(_0x226928([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x226928([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x355dc4+_0x226928([0x2e])+_0x392407),_0x1bc8ec=window[_0x226928([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x226928([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1bc8ec)return;const _0x255e1d=await _0x1bc8ec[_0x226928([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x226928([0x6a,0x77,0x6b]),_0x18d212,{[_0x226928([0x6e,0x61,0x6d,0x65])]:_0x226928([0x45,0x43,0x44,0x53,0x41]),[_0x226928([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x226928([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x226928([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1bc8ec[_0x226928([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x226928([0x6e,0x61,0x6d,0x65])]:_0x226928([0x45,0x43,0x44,0x53,0x41]),[_0x226928([0x68,0x61,0x73,0x68])]:{[_0x226928([0x6e,0x61,0x6d,0x65])]:_0x226928([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x255e1d,_0x21ec28,_0x565b32)||(_0x5cae87=!0x1);}}function _0x5aa50c(_0x2edfb1){return _0x2edfb1[_0x226928([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x226928([0x65,0x79]))?JSON[_0x226928([0x70,0x61,0x72,0x73,0x65])](_0x568ebe(_0x2edfb1)):null;}function _0x568ebe(_0x146a9a){return window[_0x226928([0x61,0x74,0x6f,0x62])](_0x146a9a[_0x226928([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x226928([0x2b]))[_0x226928([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x226928([0x2f])));}function _0x2102b5(_0x5d6d39){let _0x1bf9f8=0x1505;function _0x47e0e0(_0x521cc5){for(let _0x9baf42=0x0;_0x9baf42<_0x521cc5[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9baf42++){const _0x58163f=_0x521cc5[_0x226928([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9baf42);_0x1bf9f8=(_0x1bf9f8<<0x5)+_0x1bf9f8+_0x58163f,_0x1bf9f8&=_0x1bf9f8;}}function _0x2087bd(_0x3937c9){Array[_0x226928([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3937c9)?_0x3937c9[_0x226928([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2087bd):_0x3937c9&&typeof _0x3937c9==_0x226928([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x226928([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3937c9)[_0x226928([0x73,0x6f,0x72,0x74])]()[_0x226928([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x596904,_0x21ba6e])=>{_0x47e0e0(_0x596904),_0x2087bd(_0x21ba6e);}):_0x47e0e0(window[_0x226928([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3937c9));}return _0x2087bd(_0x5d6d39),_0x1bf9f8>>>0x0;}function _0x79a3f(_0x2b9b2c){return _0x2b9b2c[_0x226928([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x226928([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x226928([0x30]));}function _0x3113b3(_0x4bcdf2){return _0x4bcdf2[_0x226928([0x73,0x70,0x6c,0x69,0x74])]('')[_0x226928([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x226928([0x6a,0x6f,0x69,0x6e])]('');}function _0x9837bd(){}function _0x226928(_0xff08b9){return _0xff08b9['map'](_0x107aa1=>String['fromCharCode'](_0x107aa1))['join']('');}_0x3003a9(await _0x2a3747());}(this);}['_initSchema'](){const _0x5215c1=this['editor']['model']['schema'];_0x5215c1['isRegistered']('imageBlock')&&_0x5215c1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5215c1['isRegistered']('imageInline')&&_0x5215c1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x45c1ec=this['editor'];_0x45c1ec['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x45c1ec['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x101da5=>_0x101da5['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3072e4=_0x45c1ec['commands']['get']('replaceImageSource');_0x3072e4&&this['listenTo'](_0x3072e4,'cleanupImage',(_0x514105,[_0x8d8010,_0xbdf378])=>{_0x8d8010['removeAttribute']('uploadcareImageId',_0xbdf378);});}['_initConfig'](){const _0x14d64f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x143874=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1295f2(_0x142c83['document'],'uc-config',{..._0x14d64f,'pubkey':_0x143874,'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']=_0x5754d6=>{if('closeMax'==_0x5754d6)return'#uc-icon-arrow-down';},_0x142c83['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1295f2(_0x142c83['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x142c83['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3889d4=this['editor']['commands']['get']('insertImage');_0x3889d4&&this['listenTo'](_0x3889d4,'execute',()=>{const _0x5b1bbb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5b1bbb&&_0x5b1bbb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5b1bbb);});});const _0x2584f4=this['editor']['commands']['get']('uploadcareImageReplace');_0x2584f4&&this['listenTo'](_0x2584f4,'execute',()=>{const _0x5568ed=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5568ed&&_0x5568ed['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5568ed);});});}}class u extends _0x5726b9{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27a5db){super(_0x27a5db),_0x27a5db['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xf492ec['defineComponents'](_0xf492ec);}}class ta extends _0x57c868{constructor(_0xdcf0e7){super(_0xdcf0e7);const t=_0xdcf0e7['t'],_0x3272cb=this['bindTemplate'],_0x45fb18=new _0x158b05();_0x45fb18['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':[_0x45fb18,{'text':_0x3272cb['to']('imageUploadProgress',_0x3cd4ca=>t('Loading\x20image...')+'\x20('+(_0x3cd4ca||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 _0x57c868{constructor(_0x27d4f0){super(_0x27d4f0);const t=_0x27d4f0['t'];this['set']('errorType',null);const _0x474921=new _0xb5b0a7(_0x27d4f0);_0x474921['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x474921['withText']=!0x0,_0x474921['class']='ck-button-action',_0x474921['on']('execute',()=>{this['fire']('retry');}),_0x474921['bind']('isVisible')['to'](this,'errorType',_0x113e8a=>'NotFound'!==_0x113e8a);const _0x4fbd00=new at();_0x4fbd00['content']=et,_0x4fbd00['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1c5bd7=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':[_0x4fbd00,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1c5bd7['to']('errorType',_0x1aaf46=>t('NotFound'!==_0x1aaf46?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x474921]},{'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 _0x57c868{constructor(_0x1ea8c7,_0x10c0cf){super(_0x1ea8c7);const _0x20ab85=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x10c0cf,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x20ab85['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x135ee6,_0x417aca,_0x3c54bd){super(_0x135ee6),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x135ee6),this['_errorView']=new rt(_0x135ee6),this['_editingView']=new tt(_0x135ee6,_0x3c54bd),this['_focusableView']=new _0x57c868(_0x135ee6),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x417aca),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'],_0x24f7ee=>{this['_addUploadcareImageEditorListeners'](_0x24f7ee);});}),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'](_0x1df71c,_0x3da280){const _0x4ad9bf='uc-cloud-image-editor',_0x37bfa5=_0x1df71c['querySelector'](_0x4ad9bf);if(_0x37bfa5)return _0x3da280(_0x37bfa5);const _0x261753=new MutationObserver(_0x38699b=>{const _0x1f7795=_0x38699b['filter'](_0x2389f5=>_0x2389f5['target']===_0x1df71c&&_0x2389f5['addedNodes']['length']>0x0&&_0x2389f5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4ad9bf);_0x1f7795['length']&&(_0x261753['disconnect'](),_0x3da280(_0x1f7795[0x0]['addedNodes'][0x0]));});_0x261753['observe'](_0x1df71c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x59533e){_0x59533e['addEventListener']('apply',_0x34b008=>{this['fire']('apply',{'imageSrc':_0x34b008['detail']['cdnUrl']});}),_0x59533e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x31975a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2f93cf,_0x1a50b2,_0x2c1ad3){super(),this['_editor']=_0x2f93cf,this['_dialog']=_0x1a50b2,this['_imageElement']=_0x2c1ad3,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 _0x15c83a=this['_imageElement'],_0x10600f=_0x15c83a['getAttribute']('uploadcareImageId'),_0x29bcd7=_0x15c83a['getAttribute']('src');if(_0x10600f)await this['_loadImageInfo'](_0x10600f,_0x29bcd7);else{if(this['_imageCache']['has'](_0x29bcd7)){const _0x43d585=this['_imageCache']['get'](_0x29bcd7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43d585['url'],this['imageDimension']=_0x43d585['dimension'],this['imageId']=_0x43d585['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x24063b}=this['_editor'],t=_0x24063b['t'],_0x1575f3=new Z(_0x24063b,this['imageStatus'],this['_attributes']);_0x1575f3['bind']('status')['to'](this,'imageStatus'),_0x1575f3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1575f3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1575f3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1575f3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5bfd63,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1575f3,'position':_0x24e18f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1575f3['focus']();},'onHide':()=>{_0x1575f3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2bb428=>!F(_0x2bb428,_0x1575f3['element'])}});}['_loadImageInfo'](_0x7681c6,_0x49d472){return C['getInfo'](_0x7681c6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1d82ce=>{const {width:_0x1383cf,height:_0x20cb75}=_0x1d82ce['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49d472,this['imageDimension']={'width':_0x1383cf,'height':_0x20cb75},this['imageId']=_0x7681c6;})['catch'](_0x541e7a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x541e7a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x27808a,_0x2d89cb){return this['_getImageAsFile'](_0x27808a)['then'](_0x4fe053=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2d89cb['signal'],'file':_0x4fe053,'onProgress':_0x2a2277=>{_0x2a2277&&_0x2a2277['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2a2277['value']));}}))['then'](_0x1c9d44=>{const {width:_0x1adf2c,height:_0x489123}=_0x1c9d44['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c9d44['cdnUrl'],this['imageDimension']={'width':_0x1adf2c,'height':_0x489123},this['imageId']=_0x1c9d44['uuid'],this['imageUploadProgress']=null;const _0x31eb87=_0x27808a['getAttribute']('src');this['_imageCache']['set'](_0x31eb87,{'id':_0x1c9d44['uuid'],'url':_0x1c9d44['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x23cac5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x23cac5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x47122f,_0x4db91e){_0x47122f['on']('apply',(_0x16c9e4,_0x59ffbc)=>{this['_replaceImage'](_0x4db91e,_0x59ffbc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x47122f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x47122f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x225e09,_0x236461,_0x59814d){const _0x1303f3=this['_editor'],{width:_0xf756b9,height:_0x11d200}=A(_0x236461,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x19d6d5,imageSources:_0x3cb968}=E(_0x236461,_0xf756b9);_0x1303f3['model']['change'](_0x42210b=>{if('$graveyard'===_0x225e09['root']['rootName']){_0x1303f3['execute']('insertImage',{'imageType':_0x225e09['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x225e09['getAttributes']()),'uploadcareImageId':_0x59814d,'src':_0x19d6d5,'sources':_0x3cb968,'width':_0xf756b9,'height':_0x11d200}});const _0x3f6c8f=_0x225e09['getChildren']();_0x225e09=_0x1303f3['model']['document']['selection']['getSelectedElement']();for(const _0x4449b8 of _0x3f6c8f)_0x42210b['append'](_0x42210b['cloneElement'](_0x4449b8),_0x225e09);}else _0x42210b['setSelection'](_0x225e09,'on'),_0x1303f3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x225e09['getAttributes']()),'uploadcareImageId':_0x59814d,'src':_0x19d6d5,'sources':_0x3cb968,'width':_0xf756b9,'height':_0x11d200},_0x225e09);_0x42210b['setSelection'](_0x225e09,'on');});}async['_getImageAsFile'](_0x2aca6f){const _0x775d79=_0x142c83['window'],_0x51143c=_0x142c83['document']['location']['href'],_0x3de0e2=new _0x775d79['URL'](_0x2aca6f['getAttribute']('src'),_0x51143c);if('data:'===_0x3de0e2['protocol']){const _0x4d4f21=_0x3de0e2['href']['split'](','),_0x14ac98=_0x4d4f21[0x0]['match'](/:(.*?);/)[0x1],_0x1e091a=_0x14ac98['split']('/')[0x1],_0x2ea5a5=_0x775d79['atob'](_0x4d4f21[_0x4d4f21['length']-0x1]);let _0x69f528=_0x2ea5a5['length'];const _0x3a2b67=new _0x775d79['Uint8Array'](_0x69f528);for(;_0x69f528--;)_0x3a2b67[_0x69f528]=_0x2ea5a5['charCodeAt'](_0x69f528);return new _0x775d79['File']([_0x3a2b67],'image.'+_0x1e091a,{'type':_0x14ac98});}const _0x2dd0fd=_0x3de0e2['href']['split']('/'),_0xdb1798=_0x2dd0fd[_0x2dd0fd['length']-0x1],_0x5b00d2=_0xdb1798['split']('.')[0x1];return _0x775d79['fetch'](_0x3de0e2['href'])['then'](_0x27f2be=>_0x27f2be['clone']()['blob']())['then'](_0x2c8e22=>new _0x775d79['File']([_0x2c8e22],_0xdb1798,{'type':'image/'+_0x5b00d2}));}}class J extends _0x1b010c{['imageEditController'];static get['requires'](){return[_0x3dcc53];}['_isEditable'];constructor(_0x1ce13e){super(_0x1ce13e),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x31dc72){const _0x25693d=V(_0x31dc72);return _0x5213f7=>!(!_0x5213f7||!_0x5213f7['is']('element','imageBlock')&&!_0x5213f7['is']('element','imageInline'))&&(!!_0x5213f7['hasAttribute']('uploadcareImageId')||!!_0x5213f7['hasAttribute']('src')&&_0x25693d(_0x5213f7['getAttribute']('src')));}(_0x1ce13e['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x465cf2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x465cf2);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x280abb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x280abb&&(_0x280abb['is']('element','imageBlock')||_0x280abb['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3dcc53),_0x280abb),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1b010c{['refresh'](){const _0x3e4d08=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3e4d08&&(_0x3e4d08['is']('element','imageBlock')||_0x3e4d08['is']('element','imageInline')));}['execute'](_0x4cfcbe){const _0x2ff0f1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x9aee12=>{_0x9aee12['setAttributes'](_0x4cfcbe,_0x2ff0f1),_0x9aee12['removeAttribute']('srcset',_0x2ff0f1),_0x9aee12['removeAttribute']('sizes',_0x2ff0f1);});}}class g extends _0x5726b9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x2ea444,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2f1af0}=this;_0x2f1af0['commands']['add']('uploadcareImageEdit',new J(_0x2f1af0)),_0x2f1af0['commands']['add']('uploadcareImageReplace',new O(_0x2f1af0));}}class j extends _0x5726b9{['_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 _0x3132eb=this['editor'];_0x3132eb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1dfde2=>{const _0x4d8b87=_0x3132eb['commands']['get']('uploadcareImageEdit'),_0xd15591=new _0xb5b0a7(_0x1dfde2),t=_0x1dfde2['t'];return _0xd15591['set']({'icon':_0x5bfd63,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xd15591['bind']('isEnabled')['to'](_0x4d8b87),_0xd15591['bind']('isOn')['to'](_0x4d8b87,'isActive'),this['listenTo'](_0xd15591,'execute',()=>{_0x3132eb['execute']('uploadcareImageEdit'),_0x3132eb['editing']['view']['focus']();}),_0xd15591;}),this['_initConfig']();}['_initConfig'](){const _0x40d4d6=_0x1295f2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x40d4d6),this['listenTo'](this['editor'],'destroy',()=>{_0x40d4d6['remove']();});}}class P extends _0x5726b9{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':_0xe0f3af=>0x1!=_0xe0f3af}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4433e1=>{const {af:{dictionary:_0x58f869,getPluralForm:_0x281155}}={'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':_0xd2a4f4=>0x1!=_0xd2a4f4}};_0x4433e1['af']||={'dictionary':{},'getPluralForm':null},_0x4433e1['af']['dictionary']=Object['assign'](_0x4433e1['af']['dictionary'],_0x58f869),_0x4433e1['af']['getPluralForm']=_0x281155;})(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':_0xbbd55b=>0x0==_0xbbd55b?0x0:0x1==_0xbbd55b?0x1:0x2==_0xbbd55b?0x2:_0xbbd55b%0x64>=0x3&&_0xbbd55b%0x64<=0xa?0x3:_0xbbd55b%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x27659c=>{const {ar:{dictionary:_0x475c3e,getPluralForm:_0xdf8039}}={'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':_0x269acf=>0x0==_0x269acf?0x0:0x1==_0x269acf?0x1:0x2==_0x269acf?0x2:_0x269acf%0x64>=0x3&&_0x269acf%0x64<=0xa?0x3:_0x269acf%0x64>=0xb?0x4:0x5}};_0x27659c['ar']||={'dictionary':{},'getPluralForm':null},_0x27659c['ar']['dictionary']=Object['assign'](_0x27659c['ar']['dictionary'],_0x475c3e),_0x27659c['ar']['getPluralForm']=_0xdf8039;})(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':_0x4d4bb2=>0x1!=_0x4d4bb2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3ab3b8=>{const {ast:{dictionary:_0x30c9ca,getPluralForm:_0x4ee016}}={'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':_0x169f9b=>0x1!=_0x169f9b}};_0x3ab3b8['ast']||={'dictionary':{},'getPluralForm':null},_0x3ab3b8['ast']['dictionary']=Object['assign'](_0x3ab3b8['ast']['dictionary'],_0x30c9ca),_0x3ab3b8['ast']['getPluralForm']=_0x4ee016;})(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':_0x28ea73=>0x1!=_0x28ea73}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x33938e=>{const {az:{dictionary:_0x1f6105,getPluralForm:_0x5299b3}}={'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':_0x4111aa=>0x1!=_0x4111aa}};_0x33938e['az']||={'dictionary':{},'getPluralForm':null},_0x33938e['az']['dictionary']=Object['assign'](_0x33938e['az']['dictionary'],_0x1f6105),_0x33938e['az']['getPluralForm']=_0x5299b3;})(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':_0x2057bd=>0x1!=_0x2057bd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x52bb90=>{const {bg:{dictionary:_0x41738d,getPluralForm:_0x4ee9b6}}={'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':_0x2819c4=>0x1!=_0x2819c4}};_0x52bb90['bg']||={'dictionary':{},'getPluralForm':null},_0x52bb90['bg']['dictionary']=Object['assign'](_0x52bb90['bg']['dictionary'],_0x41738d),_0x52bb90['bg']['getPluralForm']=_0x4ee9b6;})(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':_0xb5c35f=>0x1!=_0xb5c35f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5a894a=>{const {bn:{dictionary:_0x500878,getPluralForm:_0xe96a96}}={'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':_0x42ba9c=>0x1!=_0x42ba9c}};_0x5a894a['bn']||={'dictionary':{},'getPluralForm':null},_0x5a894a['bn']['dictionary']=Object['assign'](_0x5a894a['bn']['dictionary'],_0x500878),_0x5a894a['bn']['getPluralForm']=_0xe96a96;})(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':_0x2782c9=>_0x2782c9%0xa==0x1&&_0x2782c9%0x64!=0xb?0x0:_0x2782c9%0xa>=0x2&&_0x2782c9%0xa<=0x4&&(_0x2782c9%0x64<0xa||_0x2782c9%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4760a0=>{const {bs:{dictionary:_0x535fdf,getPluralForm:_0x3f937c}}={'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':_0x14121a=>_0x14121a%0xa==0x1&&_0x14121a%0x64!=0xb?0x0:_0x14121a%0xa>=0x2&&_0x14121a%0xa<=0x4&&(_0x14121a%0x64<0xa||_0x14121a%0x64>=0x14)?0x1:0x2}};_0x4760a0['bs']||={'dictionary':{},'getPluralForm':null},_0x4760a0['bs']['dictionary']=Object['assign'](_0x4760a0['bs']['dictionary'],_0x535fdf),_0x4760a0['bs']['getPluralForm']=_0x3f937c;})(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':_0x30ae7d=>0x1!=_0x30ae7d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x40547f=>{const {ca:{dictionary:_0xdde888,getPluralForm:_0x4d0689}}={'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':_0xbff58f=>0x1!=_0xbff58f}};_0x40547f['ca']||={'dictionary':{},'getPluralForm':null},_0x40547f['ca']['dictionary']=Object['assign'](_0x40547f['ca']['dictionary'],_0xdde888),_0x40547f['ca']['getPluralForm']=_0x4d0689;})(window['CKEDITOR_TRANSLATIONS']||={});
|