@ckeditor/ckeditor5-uploadcare 45.0.0-alpha.6 → 45.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x3c5b6c,Command as _0xa1088}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x18bd3f,IconGooglePhotos as _0x27fc60,IconGoogleDrive as _0x182ca4,IconFacebook as _0x321e26,IconDropbox as _0x3d38eb,IconUploadcareLink as _0x2ada7a,IconUploadcareImageUpload as _0xba6fdd,IconError as et,IconUploadcareImageEdit as _0xece96e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4573a2,MenuBarMenuListItemButtonView as _0xdfa009,View as _0x2478d6,FocusCycler as _0x3ec1fc,Dialog as _0x48cd39,DialogViewPosition as _0x572386,SpinnerView as _0x9df953,IconView as at,Notification as _0x11abfb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5efd59,DomEmitterMixin as _0x5948ba,global as _0x14849b,getAncestors as _0x4145e2,ObservableMixin as _0x4778b5,createElement as _0x3c3724,uid as _0x45688e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x49506a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4b6d63,info as _0xbcfed7}from'@uploadcare/upload-client';import*as _0x1987bf from'@uploadcare/file-uploader';var o=function(_0x57fe3c){return _0x57fe3c['Local']='local',_0x57fe3c['URL']='url',_0x57fe3c['Dropbox']='dropbox',_0x57fe3c['GDrive']='gdrive',_0x57fe3c['Facebook']='facebook',_0x57fe3c['GPhotos']='gphotos',_0x57fe3c['OneDrive']='onedrive',_0x57fe3c;}({});function _(_0x29b067,_0x8ffbd4,_0x282367){const t=_0x29b067['t'],_0x4282a8=_0x29b067['t'];switch(_0x8ffbd4){case o['Local']:return{'text':_0x4282a8('Insert'===_0x282367?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4282a8('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x282367?_0x4282a8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4282a8('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x282367?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x282367?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x282367?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x282367?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x282367?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x8ffbd4;}}class e extends _0x3c5b6c{['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 _0x16d4de=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a897c;for(const _0x3cdd11 in _0x16d4de){const _0x40381f=_0x3cdd11,_0x1999ad=_0x16d4de[_0x40381f];if('uploadcareLicenseKeyValid'==_0x1999ad||'uploadcareLicenseKeyInvalid'==_0x1999ad||'uploadcareLicenseKeyExpired'==_0x1999ad||'uploadcareLicenseKeyDomainLimit'==_0x1999ad||'uploadcareLicenseKeyNotAllowed'==_0x1999ad||'uploadcareLicenseKeyEvaluationLimit'==_0x1999ad||'uploadcareLicenseKeyTrialLimit'==_0x1999ad||'uploadcareLicenseKeyUsageLimit'==_0x1999ad){delete _0x16d4de[_0x40381f],_0x2a897c=_0x1999ad,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2a897c&&_0x16d4de['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2a897c&&_0x16d4de['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2a897c&&_0x16d4de['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2a897c&&_0x16d4de['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2a897c&&_0x16d4de['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2a897c&&_0x16d4de['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2a897c&&_0x16d4de['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4dabdc}=this,_0x56e718=_0x4dabdc['commands']['get']('uploadcare');if(!_0x56e718)return;const _0x3ac810=this['_normalizeConfigSourceList'](_0x4dabdc['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x297744,_0x340dee)=>{const _0x2b7a0e=this['_getIntegrationKey'](_0x340dee['type']);return _0x297744[_0x2b7a0e]||(_0x297744[_0x2b7a0e]=[]),_0x297744[_0x2b7a0e]['push'](_0x340dee),_0x297744;},{});_0x4dabdc['plugins']['has']('ImageInsertUI')&&_0x4dabdc['commands']['get']('uploadcare')&&Object['entries'](_0x3ac810)['forEach'](([_0x289f31,_0x1476b6])=>{_0x4dabdc['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x289f31,'observable':()=>_0x56e718,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1476b6),'formViewCreator':()=>this['_createDropdownButtons'](_0x1476b6),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1476b6),'override':'assetManager'!==_0x289f31});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1c7b34){const {locale:_0x2760f8}=this['editor'];return _0x1c7b34['map'](_0x46ad23=>{const _0x11b834=_(_0x2760f8,_0x46ad23,'Insert');switch(_0x46ad23){case o['Local']:return{'icon':_0xba6fdd,'type':o['Local'],..._0x11b834};case o['URL']:return{'icon':_0x2ada7a,'type':o['URL'],..._0x11b834};case o['Dropbox']:return{'icon':_0x3d38eb,'type':o['Dropbox'],..._0x11b834};case o['Facebook']:return{'icon':_0x321e26,'type':o['Facebook'],..._0x11b834};case o['GDrive']:return{'icon':_0x182ca4,'type':o['GDrive'],..._0x11b834};case o['GPhotos']:return{'icon':_0x27fc60,'type':o['GPhotos'],..._0x11b834};case o['OneDrive']:return{'icon':_0x18bd3f,'type':o['OneDrive'],..._0x11b834};}});}['_getIntegrationKey'](_0x91364a){switch(_0x91364a){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4ab057,_0x16618e){const _0x28e73a=this['editor'],_0x2e121e=new _0x4ab057(_0x28e73a['locale']),_0x1a32a6=_0x28e73a['commands']['get']('uploadcare');return _0x2e121e['bind']('isEnabled')['to'](_0x1a32a6),_0x2e121e['on']('execute',()=>{_0x1a32a6['execute'](_0x16618e);}),_0x2e121e;}['_createToolbarButton'](_0x3f3f02){const {locale:_0x2b4cca}=this['editor'],_0x28142=this['editor']['plugins']['get']('ImageInsertUI'),_0x4f1a1b=_0x3f3f02[0x0],_0x896944=this['_createButton'](_0x4573a2,_0x4f1a1b['type']);return _0x896944['icon']=_0x4f1a1b['icon'],_0x896944['bind']('label')['to'](_0x28142,'isImageSelected',_0x473f60=>_(_0x2b4cca,_0x4f1a1b['type'],_0x473f60?'Replace':'Insert')['text']),_0x896944['tooltip']=!0x0,_0x896944;}['_createDropdownButtons'](_0x3089d8){const {locale:_0x10070a}=this['editor'],_0x32f066=this['editor']['plugins']['get']('ImageInsertUI');return _0x3089d8['map'](_0x9ebadb=>{const _0x188e44=this['_createButton'](_0x4573a2,_0x9ebadb['type']);return _0x188e44['withText']=!0x0,_0x188e44['icon']=_0x9ebadb['icon'],_0x188e44['bind']('label')['to'](_0x32f066,'isImageSelected',_0xf022b9=>_(_0x10070a,_0x9ebadb['type'],_0xf022b9?'Replace':'Insert')['text']),_0x188e44;});}['_createMenuBarButtons'](_0x325cdc){return _0x325cdc['map'](_0x5ec14a=>{const _0x94301c=this['_createButton'](_0xdfa009,_0x5ec14a['type']);return _0x94301c['icon']=_0x5ec14a['icon'],_0x94301c['label']=_0x5ec14a['shortText'],_0x94301c;});}}class G extends _0x2478d6{['focusTracker'];['focusCycler'];constructor(_0x263c96){super(_0x263c96),this['focusTracker']=new _0x5efd59(),this['focusCycler']=new _0x3ec1fc({'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 G{constructor(_0x575d5c){super(_0x575d5c),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(_0x203b13,_0x161b6f){const _0x6d4207=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3126f9=>_0x3126f9<=_0x161b6f)['map'](_0x2c4bf4=>_0x203b13['replace'](/\/$/,'')+'/-/resize/'+_0x2c4bf4+'x/\x20'+_0x2c4bf4+'w');return{'imageFallbackUrl':_0x203b13,'imageSources':[{'srcset':_0x6d4207['join'](',\x20'),'sizes':'(max-width:\x20'+_0x161b6f+'px)\x20100vw,\x20'+_0x161b6f+'px','type':'image/webp'}]};}function F(_0x557477,_0x2e816e,_0x41ff7f){const _0x5f4752=_0x557477['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5f4752?parseInt(_0x5f4752[0x1],0xa):_0x2e816e,'height':_0x5f4752?parseInt(_0x5f4752[0x2],0xa):_0x41ff7f};}function m(_0x4f67cc,_0x30597a){const _0x4f2d55=Object['create'](_0x5948ba),_0x41d801=_0x4f67cc['plugins']['get']('ImageUtils'),_0x5794a9=_0x4f67cc['editing']['mapper']['toViewElement'](_0x30597a),_0x3c3bbb=_0x41d801['findViewImgElement'](_0x5794a9),_0x5ed6b4=_0x4f67cc['editing']['view']['domConverter']['viewToDom'](_0x3c3bbb),_0x75a20e=_0x30597a['getAttribute']('width'),_0x4355b2=_0x30597a['getAttribute']('height'),_0x2b85cb='image-processing';_0x4f67cc['editing']['view']['change'](_0x458a69=>{_0x458a69['addClass'](_0x2b85cb,_0x5794a9),_0x458a69['setStyle']('aspect-ratio',_0x75a20e+'/'+_0x4355b2,_0x3c3bbb);}),_0x4f2d55['listenTo'](_0x5ed6b4,'load',()=>{_0x4f2d55['stopListening'](_0x5ed6b4,'load'),_0x4f67cc['editing']['view']['change'](_0x475d9e=>{_0x475d9e['removeClass'](_0x2b85cb,_0x5794a9),_0x475d9e['removeStyle']('aspect-ratio',_0x3c3bbb);});});}function V(_0x34df1d){if(Array['isArray'](_0x34df1d)){const _0x883cf6=_0x34df1d['map'](V);return _0x5dd60f=>_0x883cf6['some'](_0x14a635=>_0x14a635(_0x5dd60f));}if('origin'==_0x34df1d){const _0xdd39c5=_0x14849b['window']['location']['origin'];return _0x575da8=>new URL(_0x575da8,_0x14849b['document']['baseURI'])['origin']==_0xdd39c5;}return'function'==typeof _0x34df1d?_0x34df1d:_0x34df1d instanceof RegExp?_0x74a09e=>!(!_0x74a09e['match'](_0x34df1d)&&!_0x74a09e['replace'](/^https?:\/\//,'')['match'](_0x34df1d)):()=>!0x1;}function R(_0x43e9af,_0x4d8c83){return _0x4145e2(_0x43e9af['target'])['includes'](_0x4d8c83);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4778b5(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x173448,_0x390a32,_0x46e311){super(),this['_editor']=_0x173448,this['_editing']=_0x390a32,this['_dialog']=_0x173448['plugins']['get'](_0x48cd39),this['_api']=_0x390a32['ctxElement']['getAPI'](),this['_type']=_0x46e311,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:_0x29d541,model:_0x13a35e}=this['_editor'],_0x31fa8e=_0x13a35e['document']['selection']['getSelectedElement'](),_0x22152b=_0x31fa8e&&(_0x31fa8e['is']('element','imageBlock')||_0x31fa8e['is']('element','imageInline'));this['_formView']=new S(_0x29d541),this['_dialog']['show']({'id':'uploadCare','icon':_0xba6fdd,'title':_(_0x29d541,this['_type'],_0x22152b?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x572386['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x11f443=>!R(_0x11f443,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x16436b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4a19e5=>{const _0x3cb774=_0x16436b['length'];for(const _0x1f8140 of _0x16436b){const _0x188a26=_0x1f8140===_0x16436b[_0x3cb774-0x1],{cdnUrl:_0x1331d9,fileInfo:_0x5868f8}=_0x1f8140;if(!_0x1331d9||!_0x5868f8)continue;const {width:_0x1200f0,height:_0x5f313b}=_0x5868f8['imageInfo'],_0x1efee7=F(_0x1331d9,_0x1200f0,_0x5f313b),_0xa4cf33=E(_0x1331d9,_0x1efee7['width']),_0x5852c5={'id':_0x5868f8['uuid'],'type':'image','attributes':{'imageDimension':_0x1efee7,..._0xa4cf33}};this['_insertAsset'](_0x5852c5,_0x188a26,_0x4a19e5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5df57d=>{'idle'===_0x5df57d['detail']['status']&&!_0x5df57d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x207d08,_0xfc3cd7,_0x48dfbd){const _0xf75374=this['_editor']['model']['document']['selection'],_0x5b14d4=_0xf75374['getSelectedElement'](),_0x18dc81=!(!_0x5b14d4||!_0x5b14d4['is']('element','imageInline'));_0x48dfbd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x207d08,_0x18dc81),_0xfc3cd7||_0x48dfbd['setSelection'](_0xf75374['getLastPosition']());}['_insertImage'](_0x573e6c,_0x3749b5){const _0x4d8238=this['_editor'],{imageDimension:_0x15d65d,imageFallbackUrl:_0x59bfea,imageSources:_0x312f02}=_0x573e6c['attributes'];_0x4d8238['execute']('insertImage',{'imageType':_0x3749b5?'imageInline':null,'source':{'uploadcareImageId':_0x573e6c['id'],'src':_0x59bfea,'sources':_0x312f02,..._0x15d65d}});}}class n extends _0xa1088{['_editing'];['_controller']=null;static get['requires'](){return[_0x48cd39,i];}constructor(_0x425fb4){super(_0x425fb4),this['_editing']=_0x425fb4['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2ca44a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2ca44a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x54c1dd,publicKey:_0xb20597,signal:_0x4bdd8c,onProgress:_0x3c7dbe}){return _0x4b6d63(_0x54c1dd,{'publicKey':_0xb20597,'store':'auto','signal':_0x4bdd8c,'onProgress':_0x3c7dbe});}static['getInfo'](_0x4d392d,_0x5b944b){return _0xbcfed7(_0x4d392d,_0x5b944b);}}class p extends _0x3c5b6c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x49506a,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x373226=this['editor'];if(!!!_0x373226['config']['get']('uploadcare'))return;_0x373226['plugins']['get'](_0x49506a)['createUploadAdapter']=_0x3d2a7f=>new x(_0x3d2a7f,_0x373226),_0x373226['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x560bb6,{imageElement:_0xf7d449,data:_0x247e7d})=>{_0x373226['model']['change'](_0x5eaaa0=>{_0x5eaaa0['setAttribute']('uploadcareImageId',_0x247e7d['uploadcareImageId'],_0xf7d449);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x11317c,_0x522261){this['loader']=_0x11317c,this['editor']=_0x522261,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4d86c5=this['editor']['config']['get']('uploadcare.pubkey'),_0x9ba6a3=await this['loader']['file'];return C['upload']({'file':_0x9ba6a3,'publicKey':_0x4d86c5,'signal':this['controller']['signal'],'onProgress':_0x409d92=>{_0x409d92&&_0x409d92['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x409d92['value']);}})['then'](async _0x3e8181=>{const {imageFallbackUrl:_0x2704f2,imageSources:_0x51b896}=E(_0x3e8181['cdnUrl'],_0x3e8181['imageInfo']['width']);return{'uploadcareImageId':_0x3e8181['uuid'],'default':_0x2704f2,'sources':_0x51b896};})['catch'](()=>{const _0x2d8753=t('Cannot\x20upload\x20file:')+('\x20'+_0x9ba6a3['name']+'.');return Promise['reject'](_0x2d8753);});}['abort'](){this['controller']['abort']();}}class i extends _0x3c5b6c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x48cd39];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x23f659=this['editor'];_0x23f659['commands']['add']('uploadcare',new n(_0x23f659));}['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 _0x598690=_0x14849b['document']['querySelector']('input[uploadcare-file-input]');_0x598690&&_0x598690['remove']();}),async function(_0xe42fea){const _0x1d307f=_0x507ed9([0x45,0x32,0x34,0x36,0x42,0x66,0x4e,0x72,0x47,0x52,0x49,0x63,0x41,0x44,0x6a,0x61,0x77,0x7a,0x4b,0x64,0x4a,0x38,0x73,0x31,0x58,0x6b,0x6d,0x4d,0x55,0x68,0x79,0x39,0x54,0x56,0x78,0x37,0x69,0x71,0x51,0x53,0x76,0x33,0x70,0x75,0x65,0x59,0x35,0x30,0x46,0x5a,0x62,0x4c,0x43,0x6e,0x6f,0x67,0x48,0x50,0x6c,0x4f,0x74,0x57]),_0x4b4778=0x6401a4c2,_0x3ac324=0x6406c70a^_0x4b4778,_0x249b1d=window[_0x507ed9([0x44,0x61,0x74,0x65])][_0x507ed9([0x6e,0x6f,0x77])](),_0x30c09f=_0xe42fea[_0x507ed9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ce843=new window[(_0x507ed9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x599990=>{_0x30c09f[_0x507ed9([0x6f,0x6e,0x63,0x65])](_0x507ed9([0x72,0x65,0x61,0x64,0x79]),_0x599990);}),_0x4c5ff3={[_0x507ed9([0x6b,0x74,0x79])]:_0x507ed9([0x45,0x43]),[_0x507ed9([0x75,0x73,0x65])]:_0x507ed9([0x73,0x69,0x67]),[_0x507ed9([0x63,0x72,0x76])]:_0x507ed9([0x50,0x2d,0x32,0x35,0x36]),[_0x507ed9([0x78])]:_0x507ed9([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]),[_0x507ed9([0x79])]:_0x507ed9([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]),[_0x507ed9([0x61,0x6c,0x67])]:_0x507ed9([0x45,0x53,0x32,0x35,0x36])},_0x4aa308=_0x30c09f[_0x507ed9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x507ed9([0x67,0x65,0x74])](_0x507ed9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5565fe(){let _0x2751a3,_0x315eb3=null,_0x4e66f4=null;try{if(_0x4aa308==_0x507ed9([0x47,0x50,0x4c]))return _0x507ed9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2751a3=_0x2d80fe(),!_0x2751a3)return _0x507ed9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2751a3[_0x507ed9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e66f4=_0x584b79(_0x2751a3[_0x507ed9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2751a3[_0x507ed9([0x6a,0x74,0x69])])),await _0x55a5bd()?_0x3f1893()?_0x198c09()?_0x507ed9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x31190c()?(_0x2751a3[_0x507ed9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x507ed9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x315eb3=_0x11ae13(_0x507ed9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2751a3[_0x507ed9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x507ed9([0x74,0x72,0x69,0x61,0x6c])&&(_0x315eb3=_0x11ae13(_0x507ed9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2eb2c2()):_0x507ed9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x507ed9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x507ed9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x186f56){return _0x507ed9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x198c09(){const _0x39c399=[_0x507ed9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x507ed9([0x74,0x72,0x69,0x61,0x6c])][_0x507ed9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2751a3[_0x507ed9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x249b1d/0x3e8:0xe10*_0x3ac324;return _0x2751a3[_0x507ed9([0x65,0x78,0x70])]<_0x39c399;}function _0x3f1893(){const _0x377d87=_0x2751a3[_0x507ed9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x377d87&&(!!_0x377d87[_0x507ed9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x507ed9([0x2a]))||!!_0x377d87[_0x507ed9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x507ed9([0x55,0x50,0x4c,0x43])));}function _0x31190c(){const _0x4b217d=_0x2751a3[_0x507ed9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4b217d||0x0==_0x4b217d[_0x507ed9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d21ad}=new URL(window[_0x507ed9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4b217d[_0x507ed9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d21ad))return!0x0;const _0x2ad143=_0x1d21ad[_0x507ed9([0x73,0x70,0x6c,0x69,0x74])](_0x507ed9([0x2e]));return _0x4b217d[_0x507ed9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5889e4=>_0x5889e4[_0x507ed9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x507ed9([0x2a])))[_0x507ed9([0x6d,0x61,0x70])](_0x485fa0=>_0x485fa0[_0x507ed9([0x73,0x70,0x6c,0x69,0x74])](_0x507ed9([0x2e])))[_0x507ed9([0x73,0x6f,0x6d,0x65])](_0x439715=>_0x2ad143[_0x507ed9([0x65,0x76,0x65,0x72,0x79])]((_0x59ed7d,_0x1c2330)=>_0x439715[_0x1c2330]===_0x59ed7d||_0x439715[_0x1c2330]===_0x507ed9([0x2a])));}function _0x2eb2c2(){return _0x315eb3&&_0x4e66f4?new window[(_0x507ed9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14a474,_0x4ed89f)=>{_0x315eb3[_0x507ed9([0x74,0x68,0x65,0x6e])](_0x14a474,_0x4ed89f),_0x4e66f4[_0x507ed9([0x74,0x68,0x65,0x6e])](_0x28e0cb=>{_0x28e0cb!=_0x507ed9([0x56,0x61,0x6c,0x69,0x64])&&_0x14a474(_0x28e0cb);},_0x4ed89f);}):_0x315eb3||_0x4e66f4||_0x507ed9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x584b79(_0x10bb23,_0x34e776){return new window[(_0x507ed9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa92914=>{if(_0x511ae5())return _0xa92914(_0x507ed9([0x56,0x61,0x6c,0x69,0x64]));_0x1191f5(),_0x30c09f[_0x507ed9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x507ed9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b6c4a=!0x1;const _0x58f01b=_0x45688e();function _0x2e6978(_0x43d5cf){return!!_0x43d5cf&&(typeof _0x43d5cf===_0x507ed9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x43d5cf===_0x507ed9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x43d5cf[_0x507ed9([0x74,0x68,0x65,0x6e])]===_0x507ed9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x43d5cf[_0x507ed9([0x63,0x61,0x74,0x63,0x68])]===_0x507ed9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46cd53(_0x1784f9){_0x1c84aa(_0x1784f9)[_0x507ed9([0x74,0x68,0x65,0x6e])](_0x3c8f7f=>{if(!_0x3c8f7f||_0x3c8f7f[_0x507ed9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x507ed9([0x6f,0x6b]))return _0x507ed9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x26af5f(_0x4278c8(_0x58f01b+_0x34e776))!=_0x3c8f7f[_0x507ed9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x507ed9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x507ed9([0x56,0x61,0x6c,0x69,0x64]);})[_0x507ed9([0x74,0x68,0x65,0x6e])](_0x5e3d96=>(_0x29ead4(),_0x5e3d96),()=>{const _0x30023a=_0x2d6bf8();return null==_0x30023a?(_0x29ead4(),_0x507ed9([0x56,0x61,0x6c,0x69,0x64])):_0x507ed9(_0x249b1d-_0x30023a>(0x400d20c2^_0x4b4778)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x507ed9([0x74,0x68,0x65,0x6e])](_0xa92914)[_0x507ed9([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa92914(_0x507ed9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57d506=0x64374a42^_0x4b4778;function _0x29ead4(){const _0x1542f9=_0x507ed9([0x6c,0x6c,0x63,0x74,0x2d])+_0x26af5f(_0x4278c8(_0x10bb23)),_0x8b59b2=_0x7ce725(_0x26af5f(window[_0x507ed9([0x4d,0x61,0x74,0x68])][_0x507ed9([0x63,0x65,0x69,0x6c])](_0x249b1d/_0x57d506)));window[_0x507ed9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x507ed9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1542f9,_0x8b59b2);}function _0x2d6bf8(){const _0x3979ee=_0x507ed9([0x6c,0x6c,0x63,0x74,0x2d])+_0x26af5f(_0x4278c8(_0x10bb23)),_0x41ddd8=window[_0x507ed9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x507ed9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3979ee);return _0x41ddd8?window[_0x507ed9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7ce725(_0x41ddd8),0x10)*_0x57d506:null;}function _0x1c84aa(_0x276684){return new window[(_0x507ed9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4445a7,_0x21f5cd)=>{_0x276684[_0x507ed9([0x74,0x68,0x65,0x6e])](_0x4445a7,_0x21f5cd),window[_0x507ed9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21f5cd,0x64007002^_0x4b4778);});}}_0x30c09f[_0x507ed9([0x6f,0x6e])](_0x507ed9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35395f,_0x872dc)=>{if(_0x872dc[0x0]!=_0x10bb23)return _0xa92914(_0x507ed9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x872dc[0x1]={..._0x872dc[0x1],[_0x507ed9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58f01b};},{[_0x507ed9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x507ed9([0x68,0x69,0x67,0x68])}),_0x30c09f[_0x507ed9([0x6f,0x6e])](_0x507ed9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a38a6=>{_0x2e6978(_0x2a38a6[_0x507ed9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b6c4a=!0x0,_0x46cd53(_0x2a38a6[_0x507ed9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x507ed9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x507ed9([0x6c,0x6f,0x77])}),_0x5ce843[_0x507ed9([0x74,0x68,0x65,0x6e])](()=>{_0x4b6c4a||_0xa92914(_0x507ed9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x511ae5(){return _0x30c09f[_0x507ed9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x507ed9([0x76,0x69,0x65,0x77])][_0x507ed9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x507ed9([0x61,0x75,0x74,0x6f]);}function _0x1191f5(){_0x30c09f[_0x507ed9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x507ed9([0x76,0x69,0x65,0x77])][_0x507ed9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x507ed9([0x61,0x75,0x74,0x6f]);}}function _0x11ae13(_0x374fa6){const _0x132e95=[new window[(_0x507ed9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3670aa=>setTimeout(_0x3670aa,0x64089a0e^_0x4b4778)),_0x5ce843[_0x507ed9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x507ed9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d3d2f=>{let _0x18a480=0x0;_0x30c09f[_0x507ed9([0x6d,0x6f,0x64,0x65,0x6c])][_0x507ed9([0x6f,0x6e])](_0x507ed9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x116ca6,_0x581422)=>{_0x581422[0x0][_0x507ed9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x18a480++,_0x18a480==(0x6401a53a^_0x4b4778)&&(_0x3d3d2f(),_0x116ca6[_0x507ed9([0x6f,0x66,0x66])]());});}))];return window[_0x507ed9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x507ed9([0x72,0x61,0x63,0x65])](_0x132e95)[_0x507ed9([0x74,0x68,0x65,0x6e])](()=>_0x374fa6);}async function _0x5d5a2(){await _0x5ce843,_0x30c09f[_0x507ed9([0x6d,0x6f,0x64,0x65,0x6c])][_0x507ed9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ad765,_0x30c09f[_0x507ed9([0x6d,0x6f,0x64,0x65,0x6c])][_0x507ed9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ad765,_0x30c09f[_0x507ed9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x507ed9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x122db9(_0x1799c4){const _0x52b9aa=_0x52f334();_0x30c09f[_0x52b9aa]=_0x507ed9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1799c4,_0x1799c4!=_0x507ed9([0x56,0x61,0x6c,0x69,0x64])&&_0x5d5a2();}function _0x52f334(){const _0x3c3af0=window[_0x507ed9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x507ed9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x507ed9([0x6e,0x6f,0x77])]())[_0x507ed9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x507ed9([0x2e]),'');let _0x53e318=_0x507ed9([0x45]);for(let _0x26031b=0x0;_0x26031b<_0x3c3af0[_0x507ed9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26031b+=0x2){let _0xdb4fdf=window[_0x507ed9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c3af0[_0x507ed9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26031b,_0x26031b+0x2));_0xdb4fdf>=_0x1d307f[_0x507ed9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xdb4fdf-=_0x1d307f[_0x507ed9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x53e318+=_0x1d307f[_0xdb4fdf];}return _0x53e318;}function _0x2d80fe(){const _0x812abe=_0x4aa308[_0x507ed9([0x73,0x70,0x6c,0x69,0x74])](_0x507ed9([0x2e]));if(0x3!=_0x812abe[_0x507ed9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ad7b1(_0x812abe[0x1]);function _0x3ad7b1(_0x195767){const _0x37ed61=_0x15c7cc(_0x195767);return _0x37ed61&&_0xa4cd79()?_0x37ed61:null;function _0xa4cd79(){const _0x3b3ddf=_0x37ed61[_0x507ed9([0x6a,0x74,0x69])],_0x2b50ee=window[_0x507ed9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b3ddf[_0x507ed9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b3ddf[_0x507ed9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x380838={..._0x37ed61,[_0x507ed9([0x6a,0x74,0x69])]:_0x3b3ddf[_0x507ed9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b3ddf[_0x507ed9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x380838[_0x507ed9([0x76,0x63])],_0x4278c8(_0x380838)==_0x2b50ee;}}}async function _0x55a5bd(){let _0xad4617=!0x0;try{const _0x427d30=_0x4aa308[_0x507ed9([0x73,0x70,0x6c,0x69,0x74])](_0x507ed9([0x2e])),[_0x399476,_0x34174b,_0x4b284a]=_0x427d30;return _0xc57c9(_0x399476),await _0x1ed7ad(_0x399476,_0x34174b,_0x4b284a),_0xad4617;}catch(_0x526b6e){return!0x1;}function _0xc57c9(_0x8e85bb){const _0x487c19=_0x15c7cc(_0x8e85bb);_0x487c19&&_0x487c19[_0x507ed9([0x61,0x6c,0x67])]==_0x507ed9([0x45,0x53,0x32,0x35,0x36])||(_0xad4617=!0x1);}async function _0x1ed7ad(_0x474f77,_0x35eb94,_0x3afb4a){const _0x544427=window[_0x507ed9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x507ed9([0x66,0x72,0x6f,0x6d])](_0x41eec7(_0x3afb4a),_0x51231d=>_0x51231d[_0x507ed9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c46e5=new window[(_0x507ed9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x507ed9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x474f77+_0x507ed9([0x2e])+_0x35eb94),_0x3e6941=window[_0x507ed9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x507ed9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3e6941)return;const _0x351249=await _0x3e6941[_0x507ed9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x507ed9([0x6a,0x77,0x6b]),_0x4c5ff3,{[_0x507ed9([0x6e,0x61,0x6d,0x65])]:_0x507ed9([0x45,0x43,0x44,0x53,0x41]),[_0x507ed9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x507ed9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x507ed9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3e6941[_0x507ed9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x507ed9([0x6e,0x61,0x6d,0x65])]:_0x507ed9([0x45,0x43,0x44,0x53,0x41]),[_0x507ed9([0x68,0x61,0x73,0x68])]:{[_0x507ed9([0x6e,0x61,0x6d,0x65])]:_0x507ed9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x351249,_0x544427,_0x2c46e5)||(_0xad4617=!0x1);}}function _0x15c7cc(_0x33a939){return _0x33a939[_0x507ed9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x507ed9([0x65,0x79]))?JSON[_0x507ed9([0x70,0x61,0x72,0x73,0x65])](_0x41eec7(_0x33a939)):null;}function _0x41eec7(_0xadaa6f){return window[_0x507ed9([0x61,0x74,0x6f,0x62])](_0xadaa6f[_0x507ed9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x507ed9([0x2b]))[_0x507ed9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x507ed9([0x2f])));}function _0x4278c8(_0x96655d){let _0x175f6e=0x1505;function _0x2abcce(_0x592656){for(let _0x4ccb47=0x0;_0x4ccb47<_0x592656[_0x507ed9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ccb47++){const _0x5054df=_0x592656[_0x507ed9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ccb47);_0x175f6e=(_0x175f6e<<0x5)+_0x175f6e+_0x5054df,_0x175f6e&=_0x175f6e;}}function _0x265576(_0x130f77){Array[_0x507ed9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x130f77)?_0x130f77[_0x507ed9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x265576):_0x130f77&&typeof _0x130f77==_0x507ed9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x507ed9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x130f77)[_0x507ed9([0x73,0x6f,0x72,0x74])]()[_0x507ed9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3d0b06,_0x386c0a])=>{_0x2abcce(_0x3d0b06),_0x265576(_0x386c0a);}):_0x2abcce(window[_0x507ed9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x130f77));}return _0x265576(_0x96655d),_0x175f6e>>>0x0;}function _0x26af5f(_0x24d8e9){return _0x24d8e9[_0x507ed9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x507ed9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x507ed9([0x30]));}function _0x7ce725(_0x4e49b2){return _0x4e49b2[_0x507ed9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x507ed9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x507ed9([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ad765(){}function _0x507ed9(_0x10b11b){return _0x10b11b['map'](_0x19cf4f=>String['fromCharCode'](_0x19cf4f))['join']('');}_0x122db9(await _0x5565fe());}(this);}['_initSchema'](){const _0x2e619b=this['editor']['model']['schema'];_0x2e619b['isRegistered']('imageBlock')&&_0x2e619b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2e619b['isRegistered']('imageInline')&&_0x2e619b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1b0282=this['editor'];_0x1b0282['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1b0282['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x40a97f=>_0x40a97f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3f306d=_0x1b0282['commands']['get']('replaceImageSource');_0x3f306d&&this['listenTo'](_0x3f306d,'cleanupImage',(_0x5176fc,[_0x42569f,_0x282ea5])=>{_0x42569f['removeAttribute']('uploadcareImageId',_0x282ea5);});}['_initConfig'](){const _0x246067=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2e3ca5=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3c3724(_0x14849b['document'],'uc-config',{..._0x246067,'pubkey':_0x2e3ca5,'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']=_0x37f19d=>{if('closeMax'==_0x37f19d)return'#uc-icon-arrow-down';},_0x14849b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3c3724(_0x14849b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x14849b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3092b2=this['editor']['commands']['get']('insertImage');_0x3092b2&&this['listenTo'](_0x3092b2,'execute',()=>{const _0x213de4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x213de4&&_0x213de4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x213de4);});});const _0x1f6228=this['editor']['commands']['get']('uploadcareImageReplace');_0x1f6228&&this['listenTo'](_0x1f6228,'execute',()=>{const _0x325775=this['editor']['model']['document']['selection']['getSelectedElement']();_0x325775&&_0x325775['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x325775);});});}}class u extends _0x3c5b6c{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf7cca9){super(_0xf7cca9),_0xf7cca9['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1987bf['defineComponents'](_0x1987bf);}}class ta extends _0x2478d6{constructor(_0x3a4c84){super(_0x3a4c84);const t=_0x3a4c84['t'],_0x1e07ec=this['bindTemplate'],_0x20845d=new _0x9df953();_0x20845d['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':[_0x20845d,{'text':_0x1e07ec['to']('imageUploadProgress',_0x4298f1=>t('Loading\x20image...')+'\x20('+(_0x4298f1||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 _0x2478d6{constructor(_0x2eed36){super(_0x2eed36);const t=_0x2eed36['t'];this['set']('errorType',null);const _0x42171b=new _0x4573a2(_0x2eed36);_0x42171b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x42171b['withText']=!0x0,_0x42171b['class']='ck-button-action',_0x42171b['on']('execute',()=>{this['fire']('retry');}),_0x42171b['bind']('isVisible')['to'](this,'errorType',_0x2dfe6f=>'NotFound'!==_0x2dfe6f);const _0x4f548a=new at();_0x4f548a['content']=et,_0x4f548a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1bb583=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':[_0x4f548a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1bb583['to']('errorType',_0x1e3bfc=>t('NotFound'!==_0x1e3bfc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x42171b]},{'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 _0x2478d6{constructor(_0x314069,_0x2f437b){super(_0x314069);const _0x36d5f5=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2f437b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x36d5f5['to']('imageSrc')}});}}class Z extends G{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5dfa7d,_0x4c22cc,_0x5b92ec){super(_0x5dfa7d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x5dfa7d),this['_errorView']=new rt(_0x5dfa7d),this['_editingView']=new tt(_0x5dfa7d,_0x5b92ec),this['_focusableView']=new _0x2478d6(_0x5dfa7d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4c22cc),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'],_0x451899=>{this['_addUploadcareImageEditorListeners'](_0x451899);});}),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'](_0x18d9bf,_0x5f08b2){const _0x390a23='uc-cloud-image-editor',_0x2666ac=_0x18d9bf['querySelector'](_0x390a23);if(_0x2666ac)return _0x5f08b2(_0x2666ac);const _0x141ab7=new MutationObserver(_0x1ba78f=>{const _0x2c034a=_0x1ba78f['filter'](_0x56eaf0=>_0x56eaf0['target']===_0x18d9bf&&_0x56eaf0['addedNodes']['length']>0x0&&_0x56eaf0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x390a23);_0x2c034a['length']&&(_0x141ab7['disconnect'](),_0x5f08b2(_0x2c034a[0x0]['addedNodes'][0x0]));});_0x141ab7['observe'](_0x18d9bf,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x56ea38){_0x56ea38['addEventListener']('apply',_0x5c9767=>{this['fire']('apply',{'imageSrc':_0x5c9767['detail']['cdnUrl']});}),_0x56ea38['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class A extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4778b5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x20de55,_0x21ee93,_0x38cc93){super(),this['_editor']=_0x20de55,this['_dialog']=_0x21ee93,this['_imageElement']=_0x38cc93,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 _0x4415ce=this['_imageElement'],_0x4a7941=_0x4415ce['getAttribute']('uploadcareImageId'),_0x20a63a=_0x4415ce['getAttribute']('src');if(_0x4a7941)await this['_loadImageInfo'](_0x4a7941,_0x20a63a);else{if(this['_imageCache']['has'](_0x20a63a)){const _0x348731=this['_imageCache']['get'](_0x20a63a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x348731['url'],this['imageDimension']=_0x348731['dimension'],this['imageId']=_0x348731['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4a39a0}=this['_editor'],t=_0x4a39a0['t'],_0xebbe1b=new Z(_0x4a39a0,this['imageStatus'],this['_attributes']);_0xebbe1b['bind']('status')['to'](this,'imageStatus'),_0xebbe1b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xebbe1b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xebbe1b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xebbe1b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xece96e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xebbe1b,'position':_0x572386['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xebbe1b['focus']();},'onHide':()=>{_0xebbe1b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x45e2a4=>!R(_0x45e2a4,_0xebbe1b['element'])}});}['_loadImageInfo'](_0x3b81ff,_0x1b4730){return C['getInfo'](_0x3b81ff,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3c3999=>{const {width:_0x15b1ab,height:_0x3ccb23}=_0x3c3999['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b4730,this['imageDimension']={'width':_0x15b1ab,'height':_0x3ccb23},this['imageId']=_0x3b81ff;})['catch'](_0x2ef577=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ef577['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x240941,_0x4ea4ab){return this['_getImageAsFile'](_0x240941)['then'](_0x41d2cf=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4ea4ab['signal'],'file':_0x41d2cf,'onProgress':_0x1065d4=>{_0x1065d4&&_0x1065d4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1065d4['value']));}}))['then'](_0x32b650=>{const {width:_0x2b8d86,height:_0x3fecc1}=_0x32b650['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32b650['cdnUrl'],this['imageDimension']={'width':_0x2b8d86,'height':_0x3fecc1},this['imageId']=_0x32b650['uuid'],this['imageUploadProgress']=null;const _0xcda3c7=_0x240941['getAttribute']('src');this['_imageCache']['set'](_0xcda3c7,{'id':_0x32b650['uuid'],'url':_0x32b650['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2f4eea=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2f4eea['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x178c31,_0x1e7152){_0x178c31['on']('apply',(_0x349b3f,_0x3eb854)=>{this['_replaceImage'](_0x1e7152,_0x3eb854['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x178c31['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x178c31['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4ec694,_0x246dae,_0x30dec0){const _0x24663f=this['_editor'],{width:_0x58cfd1,height:_0x1859f0}=F(_0x246dae,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x29bea2,imageSources:_0x1d6fc3}=E(_0x246dae,_0x58cfd1);_0x24663f['model']['change'](_0x31f4c9=>{if('$graveyard'===_0x4ec694['root']['rootName']){_0x24663f['execute']('insertImage',{'imageType':_0x4ec694['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4ec694['getAttributes']()),'uploadcareImageId':_0x30dec0,'src':_0x29bea2,'sources':_0x1d6fc3,'width':_0x58cfd1,'height':_0x1859f0}});const _0x57288c=_0x4ec694['getChildren']();_0x4ec694=_0x24663f['model']['document']['selection']['getSelectedElement']();for(const _0x527519 of _0x57288c)_0x31f4c9['append'](_0x31f4c9['cloneElement'](_0x527519),_0x4ec694);}else _0x31f4c9['setSelection'](_0x4ec694,'on'),_0x24663f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4ec694['getAttributes']()),'uploadcareImageId':_0x30dec0,'src':_0x29bea2,'sources':_0x1d6fc3,'width':_0x58cfd1,'height':_0x1859f0},_0x4ec694);_0x31f4c9['setSelection'](_0x4ec694,'on');});}async['_getImageAsFile'](_0x5c4429){const _0xa46daa=_0x14849b['window'],_0x341581=_0x14849b['document']['location']['href'],_0x4fe631=new _0xa46daa['URL'](_0x5c4429['getAttribute']('src'),_0x341581);if('data:'===_0x4fe631['protocol']){const _0x3dec0d=_0x4fe631['href']['split'](','),_0x25b055=_0x3dec0d[0x0]['match'](/:(.*?);/)[0x1],_0xd6bc61=_0x25b055['split']('/')[0x1],_0x36876f=_0xa46daa['atob'](_0x3dec0d[_0x3dec0d['length']-0x1]);let _0x248382=_0x36876f['length'];const _0x5eee65=new _0xa46daa['Uint8Array'](_0x248382);for(;_0x248382--;)_0x5eee65[_0x248382]=_0x36876f['charCodeAt'](_0x248382);return new _0xa46daa['File']([_0x5eee65],'image.'+_0xd6bc61,{'type':_0x25b055});}const _0x46f893=_0x4fe631['href']['split']('/'),_0x4a78ac=_0x46f893[_0x46f893['length']-0x1],_0x3df52f=_0x4a78ac['split']('.')[0x1];return _0xa46daa['fetch'](_0x4fe631['href'])['then'](_0x4882f0=>_0x4882f0['clone']()['blob']())['then'](_0x48daf2=>new _0xa46daa['File']([_0x48daf2],_0x4a78ac,{'type':'image/'+_0x3df52f}));}}class z extends _0xa1088{['imageEditController'];static get['requires'](){return[_0x48cd39];}['_isEditable'];constructor(_0x1396e7){super(_0x1396e7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3dc3bb){const _0xf1ad33=V(_0x3dc3bb);return _0x320b9f=>!(!_0x320b9f||!_0x320b9f['is']('element','imageBlock')&&!_0x320b9f['is']('element','imageInline'))&&(!!_0x320b9f['hasAttribute']('uploadcareImageId')||!!_0x320b9f['hasAttribute']('src')&&_0xf1ad33(_0x320b9f['getAttribute']('src')));}(_0x1396e7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x25050f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x25050f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3e2fde=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3e2fde&&(_0x3e2fde['is']('element','imageBlock')||_0x3e2fde['is']('element','imageInline'))&&(this['imageEditController']=new A(this['editor'],this['editor']['plugins']['get'](_0x48cd39),_0x3e2fde),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xa1088{['refresh'](){const _0x3496ef=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3496ef&&(_0x3496ef['is']('element','imageBlock')||_0x3496ef['is']('element','imageInline')));}['execute'](_0x4058ef){const _0x266dc7=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x567d85=>{_0x567d85['setAttributes'](_0x4058ef,_0x266dc7),_0x567d85['removeAttribute']('srcset',_0x266dc7),_0x567d85['removeAttribute']('sizes',_0x266dc7);});}}class g extends _0x3c5b6c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x11abfb,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x22c322}=this;_0x22c322['commands']['add']('uploadcareImageEdit',new z(_0x22c322)),_0x22c322['commands']['add']('uploadcareImageReplace',new O(_0x22c322));}}class j extends _0x3c5b6c{['_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 _0x2f3c88=this['editor'];_0x2f3c88['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1f1300=>{const _0x1628f5=_0x2f3c88['commands']['get']('uploadcareImageEdit'),_0x2552c8=new _0x4573a2(_0x1f1300),t=_0x1f1300['t'];return _0x2552c8['set']({'icon':_0xece96e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2552c8['bind']('isEnabled')['to'](_0x1628f5),_0x2552c8['bind']('isOn')['to'](_0x1628f5,'isActive'),this['listenTo'](_0x2552c8,'execute',()=>{_0x2f3c88['execute']('uploadcareImageEdit'),_0x2f3c88['editing']['view']['focus']();}),_0x2552c8;}),this['_initConfig']();}['_initConfig'](){const _0x9c4c1e=_0x3c3724(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x9c4c1e),this['listenTo'](this['editor'],'destroy',()=>{_0x9c4c1e['remove']();});}}class P extends _0x3c5b6c{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 _0x2de2ca,Command as _0x2bedef}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x182e95,IconGooglePhotos as _0x534f71,IconGoogleDrive as _0x495dee,IconFacebook as _0x8e269b,IconDropbox as _0x426627,IconUploadcareLink as _0x5de6a9,IconUploadcareImageUpload as _0x270c9f,IconError as et,IconUploadcareImageEdit as _0x195cf7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x22f305,MenuBarMenuListItemButtonView as _0x6018d3,View as _0x4e5f72,FocusCycler as _0x430be7,Dialog as _0x5d5384,DialogViewPosition as _0x59c70b,SpinnerView as _0x2784e0,IconView as at,Notification as _0x31213c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1c3bc4,DomEmitterMixin as _0x15fe00,global as _0x378653,getAncestors as _0x11e4fd,ObservableMixin as _0x8d31a7,createElement as _0x2797bc,uid as _0x33d958}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4cda7c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1ec7a4,info as _0xabd043}from'@uploadcare/upload-client';import*as _0x321ac6 from'@uploadcare/file-uploader';var o=function(_0xec41a4){return _0xec41a4['Local']='local',_0xec41a4['URL']='url',_0xec41a4['Dropbox']='dropbox',_0xec41a4['GDrive']='gdrive',_0xec41a4['Facebook']='facebook',_0xec41a4['GPhotos']='gphotos',_0xec41a4['OneDrive']='onedrive',_0xec41a4;}({});function _(_0xab0400,_0x850a1c,_0x48fd29){const t=_0xab0400['t'],_0xe5faab=_0xab0400['t'];switch(_0x850a1c){case o['Local']:return{'text':_0xe5faab('Insert'===_0x48fd29?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xe5faab('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x48fd29?_0xe5faab('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xe5faab('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x48fd29?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x48fd29?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x48fd29?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x48fd29?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x48fd29?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x850a1c;}}class e extends _0x2de2ca{['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 _0x1ea70d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x566abf;for(const _0x23a96e in _0x1ea70d){const _0x4936a5=_0x23a96e,_0x29aade=_0x1ea70d[_0x4936a5];if('uploadcareLicenseKeyValid'==_0x29aade||'uploadcareLicenseKeyInvalid'==_0x29aade||'uploadcareLicenseKeyExpired'==_0x29aade||'uploadcareLicenseKeyDomainLimit'==_0x29aade||'uploadcareLicenseKeyNotAllowed'==_0x29aade||'uploadcareLicenseKeyEvaluationLimit'==_0x29aade||'uploadcareLicenseKeyTrialLimit'==_0x29aade||'uploadcareLicenseKeyUsageLimit'==_0x29aade){delete _0x1ea70d[_0x4936a5],_0x566abf=_0x29aade,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x566abf&&_0x1ea70d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x566abf&&_0x1ea70d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x566abf&&_0x1ea70d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x566abf&&_0x1ea70d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x566abf&&_0x1ea70d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x566abf&&_0x1ea70d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x566abf&&_0x1ea70d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x191495}=this,_0x43ebf3=_0x191495['commands']['get']('uploadcare');if(!_0x43ebf3)return;const _0x10c6dd=this['_normalizeConfigSourceList'](_0x191495['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4dbe61,_0x520eb3)=>{const _0x4b498d=this['_getIntegrationKey'](_0x520eb3['type']);return _0x4dbe61[_0x4b498d]||(_0x4dbe61[_0x4b498d]=[]),_0x4dbe61[_0x4b498d]['push'](_0x520eb3),_0x4dbe61;},{});_0x191495['plugins']['has']('ImageInsertUI')&&_0x191495['commands']['get']('uploadcare')&&Object['entries'](_0x10c6dd)['forEach'](([_0x3b6b58,_0x4c928e])=>{_0x191495['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3b6b58,'observable':()=>_0x43ebf3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4c928e),'formViewCreator':()=>this['_createDropdownButtons'](_0x4c928e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4c928e),'override':'assetManager'!==_0x3b6b58});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x500cb5){const {locale:_0x3b7e15}=this['editor'];return _0x500cb5['map'](_0x893b6d=>{const _0x59e289=_(_0x3b7e15,_0x893b6d,'Insert');switch(_0x893b6d){case o['Local']:return{'icon':_0x270c9f,'type':o['Local'],..._0x59e289};case o['URL']:return{'icon':_0x5de6a9,'type':o['URL'],..._0x59e289};case o['Dropbox']:return{'icon':_0x426627,'type':o['Dropbox'],..._0x59e289};case o['Facebook']:return{'icon':_0x8e269b,'type':o['Facebook'],..._0x59e289};case o['GDrive']:return{'icon':_0x495dee,'type':o['GDrive'],..._0x59e289};case o['GPhotos']:return{'icon':_0x534f71,'type':o['GPhotos'],..._0x59e289};case o['OneDrive']:return{'icon':_0x182e95,'type':o['OneDrive'],..._0x59e289};}});}['_getIntegrationKey'](_0x2380e4){switch(_0x2380e4){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x10f638,_0x20474c){const _0x1ad263=this['editor'],_0x174570=new _0x10f638(_0x1ad263['locale']),_0x510bd1=_0x1ad263['commands']['get']('uploadcare');return _0x174570['bind']('isEnabled')['to'](_0x510bd1),_0x174570['on']('execute',()=>{_0x510bd1['execute'](_0x20474c);}),_0x174570;}['_createToolbarButton'](_0x5d1b5f){const {locale:_0x19617b}=this['editor'],_0x569b73=this['editor']['plugins']['get']('ImageInsertUI'),_0x4f58a8=_0x5d1b5f[0x0],_0xd3b17b=this['_createButton'](_0x22f305,_0x4f58a8['type']);return _0xd3b17b['icon']=_0x4f58a8['icon'],_0xd3b17b['bind']('label')['to'](_0x569b73,'isImageSelected',_0x341fe1=>_(_0x19617b,_0x4f58a8['type'],_0x341fe1?'Replace':'Insert')['text']),_0xd3b17b['tooltip']=!0x0,_0xd3b17b;}['_createDropdownButtons'](_0x55d4ec){const {locale:_0x16017f}=this['editor'],_0x1c67fa=this['editor']['plugins']['get']('ImageInsertUI');return _0x55d4ec['map'](_0x51a225=>{const _0x45e004=this['_createButton'](_0x22f305,_0x51a225['type']);return _0x45e004['withText']=!0x0,_0x45e004['icon']=_0x51a225['icon'],_0x45e004['bind']('label')['to'](_0x1c67fa,'isImageSelected',_0x2e1569=>_(_0x16017f,_0x51a225['type'],_0x2e1569?'Replace':'Insert')['text']),_0x45e004;});}['_createMenuBarButtons'](_0x40f363){return _0x40f363['map'](_0x117a44=>{const _0x3f519c=this['_createButton'](_0x6018d3,_0x117a44['type']);return _0x3f519c['icon']=_0x117a44['icon'],_0x3f519c['label']=_0x117a44['shortText'],_0x3f519c;});}}class q extends _0x4e5f72{['focusTracker'];['focusCycler'];constructor(_0x543e12){super(_0x543e12),this['focusTracker']=new _0x1c3bc4(),this['focusCycler']=new _0x430be7({'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(_0x43fd87){super(_0x43fd87),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(_0x333190,_0x5c6637){const _0x21cd8c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xac282a=>_0xac282a<=_0x5c6637)['map'](_0x483782=>_0x333190['replace'](/\/$/,'')+'/-/resize/'+_0x483782+'x/\x20'+_0x483782+'w');return{'imageFallbackUrl':_0x333190,'imageSources':[{'srcset':_0x21cd8c['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5c6637+'px)\x20100vw,\x20'+_0x5c6637+'px','type':'image/webp'}]};}function A(_0x414562,_0x5d7f8f,_0x33a0fa){const _0x4a5cea=_0x414562['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4a5cea?parseInt(_0x4a5cea[0x1],0xa):_0x5d7f8f,'height':_0x4a5cea?parseInt(_0x4a5cea[0x2],0xa):_0x33a0fa};}function m(_0x13dc77,_0x155480){const _0x4c2eff=Object['create'](_0x15fe00),_0x38c126=_0x13dc77['plugins']['get']('ImageUtils'),_0x171425=_0x13dc77['editing']['mapper']['toViewElement'](_0x155480),_0x5ae8e2=_0x38c126['findViewImgElement'](_0x171425),_0x1dd6b8=_0x13dc77['editing']['view']['domConverter']['viewToDom'](_0x5ae8e2),_0x3649f3=_0x155480['getAttribute']('width'),_0x44d0bf=_0x155480['getAttribute']('height'),_0x4937e9='image-processing';_0x13dc77['editing']['view']['change'](_0x2d362a=>{_0x2d362a['addClass'](_0x4937e9,_0x171425),_0x2d362a['setStyle']('aspect-ratio',_0x3649f3+'/'+_0x44d0bf,_0x5ae8e2);}),_0x4c2eff['listenTo'](_0x1dd6b8,'load',()=>{_0x4c2eff['stopListening'](_0x1dd6b8,'load'),_0x13dc77['editing']['view']['change'](_0x3b0395=>{_0x3b0395['removeClass'](_0x4937e9,_0x171425),_0x3b0395['removeStyle']('aspect-ratio',_0x5ae8e2);});});}function R(_0x3147d9){if(Array['isArray'](_0x3147d9)){const _0x310283=_0x3147d9['map'](R);return _0x25496e=>_0x310283['some'](_0x4eecf6=>_0x4eecf6(_0x25496e));}if('origin'==_0x3147d9){const _0x2c1f22=_0x378653['window']['location']['origin'];return _0x524bf7=>new URL(_0x524bf7,_0x378653['document']['baseURI'])['origin']==_0x2c1f22;}return'function'==typeof _0x3147d9?_0x3147d9:_0x3147d9 instanceof RegExp?_0x484d3e=>!(!_0x484d3e['match'](_0x3147d9)&&!_0x484d3e['replace'](/^https?:\/\//,'')['match'](_0x3147d9)):()=>!0x1;}function F(_0x15bc07,_0x4584a7){return _0x11e4fd(_0x15bc07['target'])['includes'](_0x4584a7);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x8d31a7(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x29ce26,_0x58fdd4,_0x690238){super(),this['_editor']=_0x29ce26,this['_editing']=_0x58fdd4,this['_dialog']=_0x29ce26['plugins']['get'](_0x5d5384),this['_api']=_0x58fdd4['ctxElement']['getAPI'](),this['_type']=_0x690238,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:_0x6ee47f,model:_0x424075}=this['_editor'],_0x57275a=_0x424075['document']['selection']['getSelectedElement'](),_0x2ae468=_0x57275a&&(_0x57275a['is']('element','imageBlock')||_0x57275a['is']('element','imageInline'));this['_formView']=new S(_0x6ee47f),this['_dialog']['show']({'id':'uploadCare','icon':_0x270c9f,'title':_(_0x6ee47f,this['_type'],_0x2ae468?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x59c70b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1480b8=>!F(_0x1480b8,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4faef2}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x668326=>{const _0x4cb7f5=_0x4faef2['length'];for(const _0x3e010b of _0x4faef2){const _0x5addc2=_0x3e010b===_0x4faef2[_0x4cb7f5-0x1],{cdnUrl:_0x431ca6,fileInfo:_0x31b239}=_0x3e010b;if(!_0x431ca6||!_0x31b239)continue;const {width:_0x296898,height:_0x131c1b}=_0x31b239['imageInfo'],_0x188575=A(_0x431ca6,_0x296898,_0x131c1b),_0x3b2b78=E(_0x431ca6,_0x188575['width']),_0x3421f0={'id':_0x31b239['uuid'],'type':'image','attributes':{'imageDimension':_0x188575,..._0x3b2b78}};this['_insertAsset'](_0x3421f0,_0x5addc2,_0x668326);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x319963=>{'idle'===_0x319963['detail']['status']&&!_0x319963['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x47117b,_0x26084a,_0x311594){const _0x249d52=this['_editor']['model']['document']['selection'],_0x20d9c5=_0x249d52['getSelectedElement'](),_0x34f37f=!(!_0x20d9c5||!_0x20d9c5['is']('element','imageInline'));_0x311594['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x47117b,_0x34f37f),_0x26084a||_0x311594['setSelection'](_0x249d52['getLastPosition']());}['_insertImage'](_0x4fa8ed,_0x114a9f){const _0xad6df8=this['_editor'],{imageDimension:_0x54efcd,imageFallbackUrl:_0x298964,imageSources:_0x5f5739}=_0x4fa8ed['attributes'];_0xad6df8['execute']('insertImage',{'imageType':_0x114a9f?'imageInline':null,'source':{'uploadcareImageId':_0x4fa8ed['id'],'src':_0x298964,'sources':_0x5f5739,..._0x54efcd}});}}class n extends _0x2bedef{['_editing'];['_controller']=null;static get['requires'](){return[_0x5d5384,i];}constructor(_0x18d02d){super(_0x18d02d),this['_editing']=_0x18d02d['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3d9056){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x3d9056);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5917cf,publicKey:_0x28d7fb,signal:_0xd95d68,onProgress:_0x96836b}){return _0x1ec7a4(_0x5917cf,{'publicKey':_0x28d7fb,'store':'auto','signal':_0xd95d68,'onProgress':_0x96836b});}static['getInfo'](_0x3eb212,_0x458a01){return _0xabd043(_0x3eb212,_0x458a01);}}class p extends _0x2de2ca{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4cda7c,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x49b503=this['editor'];if(!!!_0x49b503['config']['get']('uploadcare'))return;_0x49b503['plugins']['get'](_0x4cda7c)['createUploadAdapter']=_0x4a0741=>new x(_0x4a0741,_0x49b503),_0x49b503['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2a1950,{imageElement:_0x58241d,data:_0x2b8d95})=>{_0x49b503['model']['change'](_0x231ce0=>{_0x231ce0['setAttribute']('uploadcareImageId',_0x2b8d95['uploadcareImageId'],_0x58241d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x23a80a,_0x1bcb05){this['loader']=_0x23a80a,this['editor']=_0x1bcb05,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x47d48b=this['editor']['config']['get']('uploadcare.pubkey'),_0x5dfd64=await this['loader']['file'];return C['upload']({'file':_0x5dfd64,'publicKey':_0x47d48b,'signal':this['controller']['signal'],'onProgress':_0x547fc0=>{_0x547fc0&&_0x547fc0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x547fc0['value']);}})['then'](async _0x569a92=>{const {imageFallbackUrl:_0x5dce22,imageSources:_0x13d7bb}=E(_0x569a92['cdnUrl'],_0x569a92['imageInfo']['width']);return{'uploadcareImageId':_0x569a92['uuid'],'default':_0x5dce22,'sources':_0x13d7bb};})['catch'](()=>{const _0x237bb1=t('Cannot\x20upload\x20file:')+('\x20'+_0x5dfd64['name']+'.');return Promise['reject'](_0x237bb1);});}['abort'](){this['controller']['abort']();}}class i extends _0x2de2ca{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x5d5384];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x395e33=this['editor'];_0x395e33['commands']['add']('uploadcare',new n(_0x395e33));}['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 _0x27c8c9=_0x378653['document']['querySelector']('input[uploadcare-file-input]');_0x27c8c9&&_0x27c8c9['remove']();}),async function(_0x1f5851){const _0x1335df=_0x48455c([0x38,0x36,0x49,0x69,0x53,0x4f,0x70,0x6c,0x47,0x56,0x74,0x39,0x76,0x63,0x7a,0x61,0x4b,0x42,0x41,0x66,0x6d,0x57,0x73,0x68,0x58,0x51,0x50,0x72,0x30,0x4d,0x64,0x4a,0x67,0x48,0x52,0x33,0x31,0x44,0x43,0x55,0x35,0x4e,0x37,0x4c,0x78,0x6b,0x54,0x79,0x75,0x6f,0x62,0x59,0x45,0x71,0x46,0x6e,0x32,0x77,0x6a,0x5a,0x34,0x65]),_0x243dbf=0x3798f565,_0x202392=0x379f969d^_0x243dbf,_0x1782a4=window[_0x48455c([0x44,0x61,0x74,0x65])][_0x48455c([0x6e,0x6f,0x77])](),_0x571098=_0x1f5851[_0x48455c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa457ad=new window[(_0x48455c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cf6cd=>{_0x571098[_0x48455c([0x6f,0x6e,0x63,0x65])](_0x48455c([0x72,0x65,0x61,0x64,0x79]),_0x3cf6cd);}),_0x4fd3b8={[_0x48455c([0x6b,0x74,0x79])]:_0x48455c([0x45,0x43]),[_0x48455c([0x75,0x73,0x65])]:_0x48455c([0x73,0x69,0x67]),[_0x48455c([0x63,0x72,0x76])]:_0x48455c([0x50,0x2d,0x32,0x35,0x36]),[_0x48455c([0x78])]:_0x48455c([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]),[_0x48455c([0x79])]:_0x48455c([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]),[_0x48455c([0x61,0x6c,0x67])]:_0x48455c([0x45,0x53,0x32,0x35,0x36])},_0x4a97ea=_0x571098[_0x48455c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48455c([0x67,0x65,0x74])](_0x48455c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39bc22(){let _0x213c53,_0x498a12=null,_0x39c191=null;try{if(_0x4a97ea==_0x48455c([0x47,0x50,0x4c]))return _0x48455c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x213c53=_0x5ec4c1(),!_0x213c53)return _0x48455c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x213c53[_0x48455c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39c191=_0x2b449b(_0x213c53[_0x48455c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x213c53[_0x48455c([0x6a,0x74,0x69])])),await _0x2d13e9()?_0x370397()?_0x859d7a()?_0x48455c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ddd1b()?(_0x213c53[_0x48455c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48455c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x498a12=_0x52c658(_0x48455c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x213c53[_0x48455c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48455c([0x74,0x72,0x69,0x61,0x6c])&&(_0x498a12=_0x52c658(_0x48455c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3547e8()):_0x48455c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48455c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48455c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x300831){return _0x48455c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x859d7a(){const _0x2e1f25=[_0x48455c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48455c([0x74,0x72,0x69,0x61,0x6c])][_0x48455c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213c53[_0x48455c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1782a4/0x3e8:0xe10*_0x202392;return _0x213c53[_0x48455c([0x65,0x78,0x70])]<_0x2e1f25;}function _0x370397(){const _0x2afedd=_0x213c53[_0x48455c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2afedd&&(!!_0x2afedd[_0x48455c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48455c([0x2a]))||!!_0x2afedd[_0x48455c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48455c([0x55,0x50,0x4c,0x43])));}function _0x2ddd1b(){const _0x3f86f8=_0x213c53[_0x48455c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3f86f8||0x0==_0x3f86f8[_0x48455c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x49c583}=new URL(window[_0x48455c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3f86f8[_0x48455c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c583))return!0x0;const _0x5beb56=_0x49c583[_0x48455c([0x73,0x70,0x6c,0x69,0x74])](_0x48455c([0x2e]));return _0x3f86f8[_0x48455c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa05d8d=>_0xa05d8d[_0x48455c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48455c([0x2a])))[_0x48455c([0x6d,0x61,0x70])](_0x1a21cd=>_0x1a21cd[_0x48455c([0x73,0x70,0x6c,0x69,0x74])](_0x48455c([0x2e])))[_0x48455c([0x73,0x6f,0x6d,0x65])](_0x35781f=>_0x5beb56[_0x48455c([0x65,0x76,0x65,0x72,0x79])]((_0x456e32,_0x19b166)=>_0x35781f[_0x19b166]===_0x456e32||_0x35781f[_0x19b166]===_0x48455c([0x2a])));}function _0x3547e8(){return _0x498a12&&_0x39c191?new window[(_0x48455c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb1d418,_0x5d932d)=>{_0x498a12[_0x48455c([0x74,0x68,0x65,0x6e])](_0xb1d418,_0x5d932d),_0x39c191[_0x48455c([0x74,0x68,0x65,0x6e])](_0x18431c=>{_0x18431c!=_0x48455c([0x56,0x61,0x6c,0x69,0x64])&&_0xb1d418(_0x18431c);},_0x5d932d);}):_0x498a12||_0x39c191||_0x48455c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b449b(_0x1aac6c,_0x83943f){return new window[(_0x48455c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c22c7=>{if(_0x52cb57())return _0x1c22c7(_0x48455c([0x56,0x61,0x6c,0x69,0x64]));_0x2620f6(),_0x571098[_0x48455c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48455c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54d699=!0x1;const _0x1d472a=_0x33d958();function _0x4e65f8(_0x277aaf){return!!_0x277aaf&&(typeof _0x277aaf===_0x48455c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x277aaf===_0x48455c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x277aaf[_0x48455c([0x74,0x68,0x65,0x6e])]===_0x48455c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x277aaf[_0x48455c([0x63,0x61,0x74,0x63,0x68])]===_0x48455c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x58815f(_0x48b97c){_0x3f27c4(_0x48b97c)[_0x48455c([0x74,0x68,0x65,0x6e])](_0x5bd9c9=>{if(!_0x5bd9c9||_0x5bd9c9[_0x48455c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48455c([0x6f,0x6b]))return _0x48455c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45b43d(_0x18e78c(_0x1d472a+_0x83943f))!=_0x5bd9c9[_0x48455c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48455c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48455c([0x56,0x61,0x6c,0x69,0x64]);})[_0x48455c([0x74,0x68,0x65,0x6e])](_0x50cb08=>(_0x33a513(),_0x50cb08),()=>{const _0x2149f6=_0x277b2a();return null==_0x2149f6?(_0x33a513(),_0x48455c([0x56,0x61,0x6c,0x69,0x64])):_0x48455c(_0x1782a4-_0x2149f6>(0x13947165^_0x243dbf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48455c([0x74,0x68,0x65,0x6e])](_0x1c22c7)[_0x48455c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c22c7(_0x48455c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d6312=0x37ae1be5^_0x243dbf;function _0x33a513(){const _0x145d2d=_0x48455c([0x6c,0x6c,0x63,0x74,0x2d])+_0x45b43d(_0x18e78c(_0x1aac6c)),_0x4ab32a=_0x38dab3(_0x45b43d(window[_0x48455c([0x4d,0x61,0x74,0x68])][_0x48455c([0x63,0x65,0x69,0x6c])](_0x1782a4/_0x4d6312)));window[_0x48455c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48455c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x145d2d,_0x4ab32a);}function _0x277b2a(){const _0x371212=_0x48455c([0x6c,0x6c,0x63,0x74,0x2d])+_0x45b43d(_0x18e78c(_0x1aac6c)),_0x39c2b=window[_0x48455c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48455c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x371212);return _0x39c2b?window[_0x48455c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38dab3(_0x39c2b),0x10)*_0x4d6312:null;}function _0x3f27c4(_0x70f70f){return new window[(_0x48455c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8d56d9,_0x1f6d51)=>{_0x70f70f[_0x48455c([0x74,0x68,0x65,0x6e])](_0x8d56d9,_0x1f6d51),window[_0x48455c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f6d51,0x379921a5^_0x243dbf);});}}_0x571098[_0x48455c([0x6f,0x6e])](_0x48455c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d41db,_0x26ef60)=>{if(_0x26ef60[0x0]!=_0x1aac6c)return _0x1c22c7(_0x48455c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26ef60[0x1]={..._0x26ef60[0x1],[_0x48455c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d472a};},{[_0x48455c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48455c([0x68,0x69,0x67,0x68])}),_0x571098[_0x48455c([0x6f,0x6e])](_0x48455c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x184224=>{_0x4e65f8(_0x184224[_0x48455c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54d699=!0x0,_0x58815f(_0x184224[_0x48455c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48455c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48455c([0x6c,0x6f,0x77])}),_0xa457ad[_0x48455c([0x74,0x68,0x65,0x6e])](()=>{_0x54d699||_0x1c22c7(_0x48455c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x52cb57(){return _0x571098[_0x48455c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48455c([0x76,0x69,0x65,0x77])][_0x48455c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48455c([0x61,0x75,0x74,0x6f]);}function _0x2620f6(){_0x571098[_0x48455c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48455c([0x76,0x69,0x65,0x77])][_0x48455c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48455c([0x61,0x75,0x74,0x6f]);}}function _0x52c658(_0x5c529b){const _0x31c3d2=[new window[(_0x48455c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f99e0=>setTimeout(_0x3f99e0,0x3791cba9^_0x243dbf)),_0xa457ad[_0x48455c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48455c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd655=>{let _0x18e981=0x0;_0x571098[_0x48455c([0x6d,0x6f,0x64,0x65,0x6c])][_0x48455c([0x6f,0x6e])](_0x48455c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x15795c,_0x50e5c3)=>{_0x50e5c3[0x0][_0x48455c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x18e981++,_0x18e981==(0x3798f49d^_0x243dbf)&&(_0xd655(),_0x15795c[_0x48455c([0x6f,0x66,0x66])]());});}))];return window[_0x48455c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48455c([0x72,0x61,0x63,0x65])](_0x31c3d2)[_0x48455c([0x74,0x68,0x65,0x6e])](()=>_0x5c529b);}async function _0x1a77fa(){await _0xa457ad,_0x571098[_0x48455c([0x6d,0x6f,0x64,0x65,0x6c])][_0x48455c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b71aa,_0x571098[_0x48455c([0x6d,0x6f,0x64,0x65,0x6c])][_0x48455c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b71aa,_0x571098[_0x48455c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48455c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39ffc9(_0x476119){const _0x15f763=_0x687366();_0x571098[_0x15f763]=_0x48455c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x476119,_0x476119!=_0x48455c([0x56,0x61,0x6c,0x69,0x64])&&_0x1a77fa();}function _0x687366(){const _0x136151=window[_0x48455c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48455c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48455c([0x6e,0x6f,0x77])]())[_0x48455c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48455c([0x2e]),'');let _0x304e7e=_0x48455c([0x49]);for(let _0x5acd3a=0x0;_0x5acd3a<_0x136151[_0x48455c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5acd3a+=0x2){let _0x2a2e4b=window[_0x48455c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x136151[_0x48455c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5acd3a,_0x5acd3a+0x2));_0x2a2e4b>=_0x1335df[_0x48455c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a2e4b-=_0x1335df[_0x48455c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x304e7e+=_0x1335df[_0x2a2e4b];}return _0x304e7e;}function _0x5ec4c1(){const _0x5a38be=_0x4a97ea[_0x48455c([0x73,0x70,0x6c,0x69,0x74])](_0x48455c([0x2e]));if(0x3!=_0x5a38be[_0x48455c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x55b2ba(_0x5a38be[0x1]);function _0x55b2ba(_0x1fdbd9){const _0xf24185=_0xbf08a3(_0x1fdbd9);return _0xf24185&&_0x5a9d76()?_0xf24185:null;function _0x5a9d76(){const _0xac4ff0=_0xf24185[_0x48455c([0x6a,0x74,0x69])],_0x5af53b=window[_0x48455c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xac4ff0[_0x48455c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xac4ff0[_0x48455c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x167aef={..._0xf24185,[_0x48455c([0x6a,0x74,0x69])]:_0xac4ff0[_0x48455c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xac4ff0[_0x48455c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x167aef[_0x48455c([0x76,0x63])],_0x18e78c(_0x167aef)==_0x5af53b;}}}async function _0x2d13e9(){let _0x3dd880=!0x0;try{const _0x427b0a=_0x4a97ea[_0x48455c([0x73,0x70,0x6c,0x69,0x74])](_0x48455c([0x2e])),[_0x2d4dc5,_0x2bba50,_0x1c3dac]=_0x427b0a;return _0x370161(_0x2d4dc5),await _0x395312(_0x2d4dc5,_0x2bba50,_0x1c3dac),_0x3dd880;}catch(_0x887724){return!0x1;}function _0x370161(_0x3c0a39){const _0x297994=_0xbf08a3(_0x3c0a39);_0x297994&&_0x297994[_0x48455c([0x61,0x6c,0x67])]==_0x48455c([0x45,0x53,0x32,0x35,0x36])||(_0x3dd880=!0x1);}async function _0x395312(_0x1301c2,_0x4343ce,_0x291fb8){const _0x4e0132=window[_0x48455c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48455c([0x66,0x72,0x6f,0x6d])](_0x23d2c9(_0x291fb8),_0x2bbfef=>_0x2bbfef[_0x48455c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3fcbec=new window[(_0x48455c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48455c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1301c2+_0x48455c([0x2e])+_0x4343ce),_0x23bd75=window[_0x48455c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48455c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23bd75)return;const _0x19d0d8=await _0x23bd75[_0x48455c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48455c([0x6a,0x77,0x6b]),_0x4fd3b8,{[_0x48455c([0x6e,0x61,0x6d,0x65])]:_0x48455c([0x45,0x43,0x44,0x53,0x41]),[_0x48455c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48455c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48455c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23bd75[_0x48455c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48455c([0x6e,0x61,0x6d,0x65])]:_0x48455c([0x45,0x43,0x44,0x53,0x41]),[_0x48455c([0x68,0x61,0x73,0x68])]:{[_0x48455c([0x6e,0x61,0x6d,0x65])]:_0x48455c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x19d0d8,_0x4e0132,_0x3fcbec)||(_0x3dd880=!0x1);}}function _0xbf08a3(_0x24e9f1){return _0x24e9f1[_0x48455c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48455c([0x65,0x79]))?JSON[_0x48455c([0x70,0x61,0x72,0x73,0x65])](_0x23d2c9(_0x24e9f1)):null;}function _0x23d2c9(_0x4951f6){return window[_0x48455c([0x61,0x74,0x6f,0x62])](_0x4951f6[_0x48455c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48455c([0x2b]))[_0x48455c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48455c([0x2f])));}function _0x18e78c(_0x4da83e){let _0x51c0aa=0x1505;function _0x2bc287(_0x4230ec){for(let _0x1cfc24=0x0;_0x1cfc24<_0x4230ec[_0x48455c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cfc24++){const _0x4e08c3=_0x4230ec[_0x48455c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cfc24);_0x51c0aa=(_0x51c0aa<<0x5)+_0x51c0aa+_0x4e08c3,_0x51c0aa&=_0x51c0aa;}}function _0x3b47d5(_0xfd630b){Array[_0x48455c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfd630b)?_0xfd630b[_0x48455c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b47d5):_0xfd630b&&typeof _0xfd630b==_0x48455c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48455c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfd630b)[_0x48455c([0x73,0x6f,0x72,0x74])]()[_0x48455c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x291b9b,_0x281c11])=>{_0x2bc287(_0x291b9b),_0x3b47d5(_0x281c11);}):_0x2bc287(window[_0x48455c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfd630b));}return _0x3b47d5(_0x4da83e),_0x51c0aa>>>0x0;}function _0x45b43d(_0x25a589){return _0x25a589[_0x48455c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48455c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48455c([0x30]));}function _0x38dab3(_0x1c96a0){return _0x1c96a0[_0x48455c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48455c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48455c([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b71aa(){}function _0x48455c(_0x5f4b9c){return _0x5f4b9c['map'](_0xdacdec=>String['fromCharCode'](_0xdacdec))['join']('');}_0x39ffc9(await _0x39bc22());}(this);}['_initSchema'](){const _0x44b42c=this['editor']['model']['schema'];_0x44b42c['isRegistered']('imageBlock')&&_0x44b42c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x44b42c['isRegistered']('imageInline')&&_0x44b42c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x38f2b4=this['editor'];_0x38f2b4['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x38f2b4['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x367792=>_0x367792['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x18cdce=_0x38f2b4['commands']['get']('replaceImageSource');_0x18cdce&&this['listenTo'](_0x18cdce,'cleanupImage',(_0x4e516c,[_0x4301a5,_0x214be8])=>{_0x4301a5['removeAttribute']('uploadcareImageId',_0x214be8);});}['_initConfig'](){const _0x45263f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x58139a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2797bc(_0x378653['document'],'uc-config',{..._0x45263f,'pubkey':_0x58139a,'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']=_0x20e9c0=>{if('closeMax'==_0x20e9c0)return'#uc-icon-arrow-down';},_0x378653['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2797bc(_0x378653['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x378653['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3f0d1d=this['editor']['commands']['get']('insertImage');_0x3f0d1d&&this['listenTo'](_0x3f0d1d,'execute',()=>{const _0x1f059c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1f059c&&_0x1f059c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1f059c);});});const _0x56bf8c=this['editor']['commands']['get']('uploadcareImageReplace');_0x56bf8c&&this['listenTo'](_0x56bf8c,'execute',()=>{const _0x2c3d53=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2c3d53&&_0x2c3d53['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2c3d53);});});}}class u extends _0x2de2ca{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x433c20){super(_0x433c20),_0x433c20['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x321ac6['defineComponents'](_0x321ac6);}}class ta extends _0x4e5f72{constructor(_0x404e90){super(_0x404e90);const t=_0x404e90['t'],_0x12fc57=this['bindTemplate'],_0xd7dddc=new _0x2784e0();_0xd7dddc['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':[_0xd7dddc,{'text':_0x12fc57['to']('imageUploadProgress',_0x378a6e=>t('Loading\x20image...')+'\x20('+(_0x378a6e||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 _0x4e5f72{constructor(_0x24d289){super(_0x24d289);const t=_0x24d289['t'];this['set']('errorType',null);const _0x41a0a9=new _0x22f305(_0x24d289);_0x41a0a9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x41a0a9['withText']=!0x0,_0x41a0a9['class']='ck-button-action',_0x41a0a9['on']('execute',()=>{this['fire']('retry');}),_0x41a0a9['bind']('isVisible')['to'](this,'errorType',_0x348949=>'NotFound'!==_0x348949);const _0x53c7b4=new at();_0x53c7b4['content']=et,_0x53c7b4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x228153=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':[_0x53c7b4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x228153['to']('errorType',_0x130027=>t('NotFound'!==_0x130027?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x41a0a9]},{'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 _0x4e5f72{constructor(_0x136b2e,_0x5685df){super(_0x136b2e);const _0x4ecc4b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5685df,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4ecc4b['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x42e7e1,_0x1cbf79,_0x29a779){super(_0x42e7e1),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x42e7e1),this['_errorView']=new rt(_0x42e7e1),this['_editingView']=new tt(_0x42e7e1,_0x29a779),this['_focusableView']=new _0x4e5f72(_0x42e7e1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1cbf79),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'],_0x543edf=>{this['_addUploadcareImageEditorListeners'](_0x543edf);});}),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'](_0x213fef,_0x3919f9){const _0x1b4926='uc-cloud-image-editor',_0x29c233=_0x213fef['querySelector'](_0x1b4926);if(_0x29c233)return _0x3919f9(_0x29c233);const _0x4e9378=new MutationObserver(_0x313573=>{const _0x3e70e8=_0x313573['filter'](_0x292b92=>_0x292b92['target']===_0x213fef&&_0x292b92['addedNodes']['length']>0x0&&_0x292b92['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1b4926);_0x3e70e8['length']&&(_0x4e9378['disconnect'](),_0x3919f9(_0x3e70e8[0x0]['addedNodes'][0x0]));});_0x4e9378['observe'](_0x213fef,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x457c5e){_0x457c5e['addEventListener']('apply',_0x2d2401=>{this['fire']('apply',{'imageSrc':_0x2d2401['detail']['cdnUrl']});}),_0x457c5e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x8d31a7(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4ebc09,_0x2eb237,_0x227a21){super(),this['_editor']=_0x4ebc09,this['_dialog']=_0x2eb237,this['_imageElement']=_0x227a21,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 _0x41bb47=this['_imageElement'],_0x44ab46=_0x41bb47['getAttribute']('uploadcareImageId'),_0x5aca59=_0x41bb47['getAttribute']('src');if(_0x44ab46)await this['_loadImageInfo'](_0x44ab46,_0x5aca59);else{if(this['_imageCache']['has'](_0x5aca59)){const _0x3dbf87=this['_imageCache']['get'](_0x5aca59);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3dbf87['url'],this['imageDimension']=_0x3dbf87['dimension'],this['imageId']=_0x3dbf87['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x169044}=this['_editor'],t=_0x169044['t'],_0x4fbb55=new Z(_0x169044,this['imageStatus'],this['_attributes']);_0x4fbb55['bind']('status')['to'](this,'imageStatus'),_0x4fbb55['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4fbb55['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4fbb55['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4fbb55,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x195cf7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4fbb55,'position':_0x59c70b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4fbb55['focus']();},'onHide':()=>{_0x4fbb55['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x48c820=>!F(_0x48c820,_0x4fbb55['element'])}});}['_loadImageInfo'](_0x2f94b8,_0x48a0a1){return C['getInfo'](_0x2f94b8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x212aec=>{const {width:_0x583958,height:_0x1d24d4}=_0x212aec['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48a0a1,this['imageDimension']={'width':_0x583958,'height':_0x1d24d4},this['imageId']=_0x2f94b8;})['catch'](_0x145e6d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x145e6d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x19ed7b,_0x57562c){return this['_getImageAsFile'](_0x19ed7b)['then'](_0x31eff5=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x57562c['signal'],'file':_0x31eff5,'onProgress':_0x57f6a3=>{_0x57f6a3&&_0x57f6a3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x57f6a3['value']));}}))['then'](_0x420fce=>{const {width:_0x37043e,height:_0x1f11fc}=_0x420fce['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x420fce['cdnUrl'],this['imageDimension']={'width':_0x37043e,'height':_0x1f11fc},this['imageId']=_0x420fce['uuid'],this['imageUploadProgress']=null;const _0x3b90f5=_0x19ed7b['getAttribute']('src');this['_imageCache']['set'](_0x3b90f5,{'id':_0x420fce['uuid'],'url':_0x420fce['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x15f9f2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x15f9f2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3c0052,_0x1783b8){_0x3c0052['on']('apply',(_0x2ee6f1,_0x1cdbc8)=>{this['_replaceImage'](_0x1783b8,_0x1cdbc8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3c0052['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3c0052['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3c4878,_0x4f1ba6,_0x79b123){const _0x504230=this['_editor'],{width:_0x6d3978,height:_0x55877f}=A(_0x4f1ba6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x38fee2,imageSources:_0x2258c1}=E(_0x4f1ba6,_0x6d3978);_0x504230['model']['change'](_0x4fdf4a=>{if('$graveyard'===_0x3c4878['root']['rootName']){_0x504230['execute']('insertImage',{'imageType':_0x3c4878['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3c4878['getAttributes']()),'uploadcareImageId':_0x79b123,'src':_0x38fee2,'sources':_0x2258c1,'width':_0x6d3978,'height':_0x55877f}});const _0x4b4643=_0x3c4878['getChildren']();_0x3c4878=_0x504230['model']['document']['selection']['getSelectedElement']();for(const _0x37d1df of _0x4b4643)_0x4fdf4a['append'](_0x4fdf4a['cloneElement'](_0x37d1df),_0x3c4878);}else _0x4fdf4a['setSelection'](_0x3c4878,'on'),_0x504230['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3c4878['getAttributes']()),'uploadcareImageId':_0x79b123,'src':_0x38fee2,'sources':_0x2258c1,'width':_0x6d3978,'height':_0x55877f},_0x3c4878);_0x4fdf4a['setSelection'](_0x3c4878,'on');});}async['_getImageAsFile'](_0x18b0f8){const _0x4bc80a=_0x378653['window'],_0x14d187=_0x378653['document']['location']['href'],_0x5026b8=new _0x4bc80a['URL'](_0x18b0f8['getAttribute']('src'),_0x14d187);if('data:'===_0x5026b8['protocol']){const _0x78a05c=_0x5026b8['href']['split'](','),_0x439123=_0x78a05c[0x0]['match'](/:(.*?);/)[0x1],_0x52077a=_0x439123['split']('/')[0x1],_0x490549=_0x4bc80a['atob'](_0x78a05c[_0x78a05c['length']-0x1]);let _0x160769=_0x490549['length'];const _0x55fb36=new _0x4bc80a['Uint8Array'](_0x160769);for(;_0x160769--;)_0x55fb36[_0x160769]=_0x490549['charCodeAt'](_0x160769);return new _0x4bc80a['File']([_0x55fb36],'image.'+_0x52077a,{'type':_0x439123});}const _0x2dc108=_0x5026b8['href']['split']('/'),_0x7fe82d=_0x2dc108[_0x2dc108['length']-0x1],_0x2017fb=_0x7fe82d['split']('.')[0x1];return _0x4bc80a['fetch'](_0x5026b8['href'])['then'](_0x2dc6c3=>_0x2dc6c3['clone']()['blob']())['then'](_0x3dd16a=>new _0x4bc80a['File']([_0x3dd16a],_0x7fe82d,{'type':'image/'+_0x2017fb}));}}class V extends _0x2bedef{['imageEditController'];static get['requires'](){return[_0x5d5384];}['_isEditable'];constructor(_0x4cb0ba){super(_0x4cb0ba),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x159b26){const _0x24354a=R(_0x159b26);return _0x56a7b1=>!(!_0x56a7b1||!_0x56a7b1['is']('element','imageBlock')&&!_0x56a7b1['is']('element','imageInline'))&&(!!_0x56a7b1['hasAttribute']('uploadcareImageId')||!!_0x56a7b1['hasAttribute']('src')&&_0x24354a(_0x56a7b1['getAttribute']('src')));}(_0x4cb0ba['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x463e4c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x463e4c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4f6179=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4f6179&&(_0x4f6179['is']('element','imageBlock')||_0x4f6179['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x5d5384),_0x4f6179),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0x2bedef{['refresh'](){const _0x205829=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x205829&&(_0x205829['is']('element','imageBlock')||_0x205829['is']('element','imageInline')));}['execute'](_0x10b257){const _0x5dc767=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x191df6=>{_0x191df6['setAttributes'](_0x10b257,_0x5dc767),_0x191df6['removeAttribute']('srcset',_0x5dc767),_0x191df6['removeAttribute']('sizes',_0x5dc767);});}}class g extends _0x2de2ca{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x31213c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3b908b}=this;_0x3b908b['commands']['add']('uploadcareImageEdit',new V(_0x3b908b)),_0x3b908b['commands']['add']('uploadcareImageReplace',new X(_0x3b908b));}}class j extends _0x2de2ca{['_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 _0x1b9ef5=this['editor'];_0x1b9ef5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x98a89b=>{const _0x5934d6=_0x1b9ef5['commands']['get']('uploadcareImageEdit'),_0x59ac3e=new _0x22f305(_0x98a89b),t=_0x98a89b['t'];return _0x59ac3e['set']({'icon':_0x195cf7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x59ac3e['bind']('isEnabled')['to'](_0x5934d6),_0x59ac3e['bind']('isOn')['to'](_0x5934d6,'isActive'),this['listenTo'](_0x59ac3e,'execute',()=>{_0x1b9ef5['execute']('uploadcareImageEdit'),_0x1b9ef5['editing']['view']['focus']();}),_0x59ac3e;}),this['_initConfig']();}['_initConfig'](){const _0x40f227=_0x2797bc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x40f227),this['listenTo'](this['editor'],'destroy',()=>{_0x40f227['remove']();});}}class P extends _0x2de2ca{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':_0x2638d6=>0x1!=_0x2638d6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x51a689=>{const {af:{dictionary:_0x39891b,getPluralForm:_0xf9fb9b}}={'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':_0x27273b=>0x1!=_0x27273b}};_0x51a689['af']||={'dictionary':{},'getPluralForm':null},_0x51a689['af']['dictionary']=Object['assign'](_0x51a689['af']['dictionary'],_0x39891b),_0x51a689['af']['getPluralForm']=_0xf9fb9b;})(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':_0x511a65=>0x0==_0x511a65?0x0:0x1==_0x511a65?0x1:0x2==_0x511a65?0x2:_0x511a65%0x64>=0x3&&_0x511a65%0x64<=0xa?0x3:_0x511a65%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x535602=>{const {ar:{dictionary:_0x467e5e,getPluralForm:_0x3461c1}}={'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':_0x535387=>0x0==_0x535387?0x0:0x1==_0x535387?0x1:0x2==_0x535387?0x2:_0x535387%0x64>=0x3&&_0x535387%0x64<=0xa?0x3:_0x535387%0x64>=0xb?0x4:0x5}};_0x535602['ar']||={'dictionary':{},'getPluralForm':null},_0x535602['ar']['dictionary']=Object['assign'](_0x535602['ar']['dictionary'],_0x467e5e),_0x535602['ar']['getPluralForm']=_0x3461c1;})(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':_0xb90e65=>0x1!=_0xb90e65}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5c23ca=>{const {ast:{dictionary:_0x5ca17c,getPluralForm:_0xe5485b}}={'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':_0x313fcf=>0x1!=_0x313fcf}};_0x5c23ca['ast']||={'dictionary':{},'getPluralForm':null},_0x5c23ca['ast']['dictionary']=Object['assign'](_0x5c23ca['ast']['dictionary'],_0x5ca17c),_0x5c23ca['ast']['getPluralForm']=_0xe5485b;})(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':_0x326d78=>0x1!=_0x326d78}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x48c7eb=>{const {az:{dictionary:_0x1499b9,getPluralForm:_0x55999e}}={'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':_0x600360=>0x1!=_0x600360}};_0x48c7eb['az']||={'dictionary':{},'getPluralForm':null},_0x48c7eb['az']['dictionary']=Object['assign'](_0x48c7eb['az']['dictionary'],_0x1499b9),_0x48c7eb['az']['getPluralForm']=_0x55999e;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x19aede=>_0x19aede%0xa==0x1&&_0x19aede%0x64!=0xb?0x0:_0x19aede%0xa>=0x2&&_0x19aede%0xa<=0x4&&(_0x19aede%0x64<0xa||_0x19aede%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x49f4c0=>{const {be:{dictionary:_0x192a36,getPluralForm:_0x2ba18a}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x1e3a09=>_0x1e3a09%0xa==0x1&&_0x1e3a09%0x64!=0xb?0x0:_0x1e3a09%0xa>=0x2&&_0x1e3a09%0xa<=0x4&&(_0x1e3a09%0x64<0xa||_0x1e3a09%0x64>=0x14)?0x1:0x2}};_0x49f4c0['be']||={'dictionary':{},'getPluralForm':null},_0x49f4c0['be']['dictionary']=Object['assign'](_0x49f4c0['be']['dictionary'],_0x192a36),_0x49f4c0['be']['getPluralForm']=_0x2ba18a;})(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':_0x379734=>0x1!=_0x379734}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4d4706=>{const {bg:{dictionary:_0x435048,getPluralForm:_0x5c4d37}}={'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':_0x24bb7b=>0x1!=_0x24bb7b}};_0x4d4706['bg']||={'dictionary':{},'getPluralForm':null},_0x4d4706['bg']['dictionary']=Object['assign'](_0x4d4706['bg']['dictionary'],_0x435048),_0x4d4706['bg']['getPluralForm']=_0x5c4d37;})(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':_0x34f144=>0x1!=_0x34f144}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x345127=>{const {bn:{dictionary:_0x490bc0,getPluralForm:_0x28d4d2}}={'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':_0x56e2e8=>0x1!=_0x56e2e8}};_0x345127['bn']||={'dictionary':{},'getPluralForm':null},_0x345127['bn']['dictionary']=Object['assign'](_0x345127['bn']['dictionary'],_0x490bc0),_0x345127['bn']['getPluralForm']=_0x28d4d2;})(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':_0x12b6cd=>_0x12b6cd%0xa==0x1&&_0x12b6cd%0x64!=0xb?0x0:_0x12b6cd%0xa>=0x2&&_0x12b6cd%0xa<=0x4&&(_0x12b6cd%0x64<0xa||_0x12b6cd%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x16965b=>{const {bs:{dictionary:_0x381365,getPluralForm:_0x4838c5}}={'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':_0x4694ab=>_0x4694ab%0xa==0x1&&_0x4694ab%0x64!=0xb?0x0:_0x4694ab%0xa>=0x2&&_0x4694ab%0xa<=0x4&&(_0x4694ab%0x64<0xa||_0x4694ab%0x64>=0x14)?0x1:0x2}};_0x16965b['bs']||={'dictionary':{},'getPluralForm':null},_0x16965b['bs']['dictionary']=Object['assign'](_0x16965b['bs']['dictionary'],_0x381365),_0x16965b['bs']['getPluralForm']=_0x4838c5;})(window['CKEDITOR_TRANSLATIONS']||={});
|