@ckeditor/ckeditor5-uploadcare 45.1.0-alpha.5 → 45.1.0-alpha.6
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 _0x346009,Command as _0xfe0b04}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x575425,IconGooglePhotos as _0x492fcc,IconGoogleDrive as _0x3e589a,IconFacebook as _0x352a62,IconDropbox as _0x36ff64,IconUploadcareLink as _0x4e4891,IconUploadcareImageUpload as _0xe780fd,IconError as et,IconUploadcareImageEdit as _0x3d0a90}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x6245c7,MenuBarMenuListItemButtonView as _0x44317d,View as _0x396167,FocusCycler as _0x50114d,Dialog as _0x5beb81,DialogViewPosition as _0x43adb5,SpinnerView as _0x37bdcb,IconView as at,Notification as _0x44616c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4f975b,DomEmitterMixin as _0x4fe34c,global as _0xfc21a3,getAncestors as _0x3764ad,ObservableMixin as _0x28dd8c,createElement as _0x52c709,uid as _0x131c4f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x23de0e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x138f5a,info as _0x383da7}from'@uploadcare/upload-client';import*as _0x1bc5d5 from'@uploadcare/file-uploader';var o=function(_0x397ef6){return _0x397ef6['Local']='local',_0x397ef6['URL']='url',_0x397ef6['Dropbox']='dropbox',_0x397ef6['GDrive']='gdrive',_0x397ef6['Facebook']='facebook',_0x397ef6['GPhotos']='gphotos',_0x397ef6['OneDrive']='onedrive',_0x397ef6;}({});function _(_0x54fcbe,_0x574acc,_0x3ebb40){const t=_0x54fcbe['t'],_0x53b424=_0x54fcbe['t'];switch(_0x574acc){case o['Local']:return{'text':_0x53b424('Insert'===_0x3ebb40?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x53b424('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3ebb40?_0x53b424('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x53b424('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x574acc;}}class e extends _0x346009{['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 _0x327548=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4232ea;for(const _0x5485bd in _0x327548){const _0x2dab02=_0x5485bd,_0x28b55f=_0x327548[_0x2dab02];if('uploadcareLicenseKeyValid'==_0x28b55f||'uploadcareLicenseKeyInvalid'==_0x28b55f||'uploadcareLicenseKeyExpired'==_0x28b55f||'uploadcareLicenseKeyDomainLimit'==_0x28b55f||'uploadcareLicenseKeyNotAllowed'==_0x28b55f||'uploadcareLicenseKeyEvaluationLimit'==_0x28b55f||'uploadcareLicenseKeyTrialLimit'==_0x28b55f||'uploadcareLicenseKeyUsageLimit'==_0x28b55f){delete _0x327548[_0x2dab02],_0x4232ea=_0x28b55f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4232ea&&_0x327548['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4232ea&&_0x327548['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4232ea&&_0x327548['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4232ea&&_0x327548['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4232ea&&_0x327548['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4232ea&&_0x327548['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4232ea&&_0x327548['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x541371}=this,_0x2cb497=_0x541371['commands']['get']('uploadcare');if(!_0x2cb497)return;const _0x3a4d1a=this['_normalizeConfigSourceList'](_0x541371['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xd5ed7a,_0x4f5c1d)=>{const _0x5bf492=this['_getIntegrationKey'](_0x4f5c1d['type']);return _0xd5ed7a[_0x5bf492]||(_0xd5ed7a[_0x5bf492]=[]),_0xd5ed7a[_0x5bf492]['push'](_0x4f5c1d),_0xd5ed7a;},{});_0x541371['plugins']['has']('ImageInsertUI')&&_0x541371['commands']['get']('uploadcare')&&Object['entries'](_0x3a4d1a)['forEach'](([_0x2dbaa0,_0x29aa38])=>{_0x541371['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2dbaa0,'observable':()=>_0x2cb497,'buttonViewCreator':()=>this['_createToolbarButton'](_0x29aa38),'formViewCreator':()=>this['_createDropdownButtons'](_0x29aa38),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x29aa38),'override':'assetManager'!==_0x2dbaa0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x380cba){const {locale:_0x2e681d}=this['editor'];return _0x380cba['map'](_0x44e72e=>{const _0xfb6683=_(_0x2e681d,_0x44e72e,'Insert');switch(_0x44e72e){case o['Local']:return{'icon':_0xe780fd,'type':o['Local'],..._0xfb6683};case o['URL']:return{'icon':_0x4e4891,'type':o['URL'],..._0xfb6683};case o['Dropbox']:return{'icon':_0x36ff64,'type':o['Dropbox'],..._0xfb6683};case o['Facebook']:return{'icon':_0x352a62,'type':o['Facebook'],..._0xfb6683};case o['GDrive']:return{'icon':_0x3e589a,'type':o['GDrive'],..._0xfb6683};case o['GPhotos']:return{'icon':_0x492fcc,'type':o['GPhotos'],..._0xfb6683};case o['OneDrive']:return{'icon':_0x575425,'type':o['OneDrive'],..._0xfb6683};}});}['_getIntegrationKey'](_0x37fddb){switch(_0x37fddb){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x10c7eb,_0xa1b673){const _0x3c70ce=this['editor'],_0x41ccb0=new _0x10c7eb(_0x3c70ce['locale']),_0x43ef1b=_0x3c70ce['commands']['get']('uploadcare');return _0x41ccb0['bind']('isEnabled')['to'](_0x43ef1b),_0x41ccb0['on']('execute',()=>{_0x43ef1b['execute'](_0xa1b673);}),_0x41ccb0;}['_createToolbarButton'](_0x49dad4){const {locale:_0x8659aa}=this['editor'],_0x5722c3=this['editor']['plugins']['get']('ImageInsertUI'),_0x59a599=_0x49dad4[0x0],_0x25fea4=this['_createButton'](_0x6245c7,_0x59a599['type']);return _0x25fea4['icon']=_0x59a599['icon'],_0x25fea4['bind']('label')['to'](_0x5722c3,'isImageSelected',_0x563062=>_(_0x8659aa,_0x59a599['type'],_0x563062?'Replace':'Insert')['text']),_0x25fea4['tooltip']=!0x0,_0x25fea4;}['_createDropdownButtons'](_0x4a1856){const {locale:_0x3bdeb4}=this['editor'],_0x45a42a=this['editor']['plugins']['get']('ImageInsertUI');return _0x4a1856['map'](_0x19654b=>{const _0x523c38=this['_createButton'](_0x6245c7,_0x19654b['type']);return _0x523c38['withText']=!0x0,_0x523c38['icon']=_0x19654b['icon'],_0x523c38['bind']('label')['to'](_0x45a42a,'isImageSelected',_0x3338cf=>_(_0x3bdeb4,_0x19654b['type'],_0x3338cf?'Replace':'Insert')['text']),_0x523c38;});}['_createMenuBarButtons'](_0x59059b){return _0x59059b['map'](_0x4bdec8=>{const _0x550875=this['_createButton'](_0x44317d,_0x4bdec8['type']);return _0x550875['icon']=_0x4bdec8['icon'],_0x550875['label']=_0x4bdec8['shortText'],_0x550875;});}}class q extends _0x396167{['focusTracker'];['focusCycler'];constructor(_0x4fcc4d){super(_0x4fcc4d),this['focusTracker']=new _0x4f975b(),this['focusCycler']=new _0x50114d({'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(_0xa369dc){super(_0xa369dc),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(_0x43604a,_0xfdc98f){const _0x29d120=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4fbea3=>_0x4fbea3<=_0xfdc98f)['map'](_0x1f064e=>_0x43604a['replace'](/\/$/,'')+'/-/resize/'+_0x1f064e+'x/\x20'+_0x1f064e+'w');return{'imageFallbackUrl':_0x43604a,'imageSources':[{'srcset':_0x29d120['join'](',\x20'),'sizes':'(max-width:\x20'+_0xfdc98f+'px)\x20100vw,\x20'+_0xfdc98f+'px','type':'image/webp'}]};}function A(_0x1d0ea4,_0x15a67b,_0x281807){const _0x2c4cac=_0x1d0ea4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2c4cac?parseInt(_0x2c4cac[0x1],0xa):_0x15a67b,'height':_0x2c4cac?parseInt(_0x2c4cac[0x2],0xa):_0x281807};}function m(_0x6ab10a,_0x514e3f){const _0x366ac7=Object['create'](_0x4fe34c),_0x6aec6b=_0x6ab10a['plugins']['get']('ImageUtils'),_0x1d6db2=_0x6ab10a['editing']['mapper']['toViewElement'](_0x514e3f),_0x2b6183=_0x6aec6b['findViewImgElement'](_0x1d6db2),_0x3afb85=_0x6ab10a['editing']['view']['domConverter']['viewToDom'](_0x2b6183),_0x36306e=_0x514e3f['getAttribute']('width'),_0x23730d=_0x514e3f['getAttribute']('height'),_0x45d399='image-processing';_0x6ab10a['editing']['view']['change'](_0xc6dc5a=>{_0xc6dc5a['addClass'](_0x45d399,_0x1d6db2),_0xc6dc5a['setStyle']('aspect-ratio',_0x36306e+'/'+_0x23730d,_0x2b6183);}),_0x366ac7['listenTo'](_0x3afb85,'load',()=>{_0x366ac7['stopListening'](_0x3afb85,'load'),_0x6ab10a['editing']['view']['change'](_0x42157d=>{_0x42157d['removeClass'](_0x45d399,_0x1d6db2),_0x42157d['removeStyle']('aspect-ratio',_0x2b6183);});});}function V(_0x97beda){if(Array['isArray'](_0x97beda)){const _0x5db2f2=_0x97beda['map'](V);return _0x23f7a0=>_0x5db2f2['some'](_0x4d6b62=>_0x4d6b62(_0x23f7a0));}if('origin'==_0x97beda){const _0x5a0915=_0xfc21a3['window']['location']['origin'];return _0x1648eb=>new URL(_0x1648eb,_0xfc21a3['document']['baseURI'])['origin']==_0x5a0915;}return'function'==typeof _0x97beda?_0x97beda:_0x97beda instanceof RegExp?_0x383e1e=>!(!_0x383e1e['match'](_0x97beda)&&!_0x383e1e['replace'](/^https?:\/\//,'')['match'](_0x97beda)):()=>!0x1;}function F(_0x2d9ff7,_0x2f0d6e){return _0x3764ad(_0x2d9ff7['target'])['includes'](_0x2f0d6e);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x28dd8c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5b974a,_0x5fa0b3,_0x5796bf){super(),this['_editor']=_0x5b974a,this['_editing']=_0x5fa0b3,this['_dialog']=_0x5b974a['plugins']['get'](_0x5beb81),this['_api']=_0x5fa0b3['ctxElement']['getAPI'](),this['_type']=_0x5796bf,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:_0x247b7a,model:_0x369953}=this['_editor'],_0x3437ef=_0x369953['document']['selection']['getSelectedElement'](),_0x49792d=_0x3437ef&&(_0x3437ef['is']('element','imageBlock')||_0x3437ef['is']('element','imageInline'));this['_formView']=new S(_0x247b7a),this['_dialog']['show']({'id':'uploadCare','icon':_0xe780fd,'title':_(_0x247b7a,this['_type'],_0x49792d?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x43adb5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x29256c=>!F(_0x29256c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3c3df3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x564378=>{const _0x14e2ed=_0x3c3df3['length'];for(const _0xc72b8 of _0x3c3df3){const _0x56b4e6=_0xc72b8===_0x3c3df3[_0x14e2ed-0x1],{cdnUrl:_0xb31cc2,fileInfo:_0xfdcafb}=_0xc72b8;if(!_0xb31cc2||!_0xfdcafb)continue;const {width:_0x4de5f4,height:_0x2dd3c6}=_0xfdcafb['imageInfo'],_0x27e7bc=A(_0xb31cc2,_0x4de5f4,_0x2dd3c6),_0x4b65f6=E(_0xb31cc2,_0x27e7bc['width']),_0x38011d={'id':_0xfdcafb['uuid'],'type':'image','attributes':{'imageDimension':_0x27e7bc,..._0x4b65f6}};this['_insertAsset'](_0x38011d,_0x56b4e6,_0x564378);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x382aad=>{'idle'===_0x382aad['detail']['status']&&!_0x382aad['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5c9888,_0x336171,_0x2e79f0){const _0x35d23e=this['_editor']['model']['document']['selection'],_0x54a382=_0x35d23e['getSelectedElement'](),_0x537416=!(!_0x54a382||!_0x54a382['is']('element','imageInline'));_0x2e79f0['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5c9888,_0x537416),_0x336171||_0x2e79f0['setSelection'](_0x35d23e['getLastPosition']());}['_insertImage'](_0x34800c,_0x521d23){const _0x533f42=this['_editor'],{imageDimension:_0x794d5a,imageFallbackUrl:_0x13230b,imageSources:_0x28582a}=_0x34800c['attributes'];_0x533f42['execute']('insertImage',{'imageType':_0x521d23?'imageInline':null,'source':{'uploadcareImageId':_0x34800c['id'],'src':_0x13230b,'sources':_0x28582a,..._0x794d5a}});}}class n extends _0xfe0b04{['_editing'];['_controller']=null;static get['requires'](){return[_0x5beb81,i];}constructor(_0x11d1f1){super(_0x11d1f1),this['_editing']=_0x11d1f1['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x55720e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x55720e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x34bca0,publicKey:_0x31a5a5,signal:_0x59bcd4,onProgress:_0x24d6fe}){return _0x138f5a(_0x34bca0,{'publicKey':_0x31a5a5,'store':'auto','signal':_0x59bcd4,'onProgress':_0x24d6fe});}static['getInfo'](_0x5d78e3,_0xecd759){return _0x383da7(_0x5d78e3,_0xecd759);}}class p extends _0x346009{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x23de0e,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x631095=this['editor'];if(!!!_0x631095['config']['get']('uploadcare'))return;_0x631095['plugins']['get'](_0x23de0e)['createUploadAdapter']=_0xbf9f14=>new x(_0xbf9f14,_0x631095),_0x631095['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x6579b5,{imageElement:_0x4e1f8d,data:_0x14998a})=>{_0x631095['model']['change'](_0x4daaff=>{_0x4daaff['setAttribute']('uploadcareImageId',_0x14998a['uploadcareImageId'],_0x4e1f8d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x36f63e,_0x39afc2){this['loader']=_0x36f63e,this['editor']=_0x39afc2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x55e5c4=this['editor']['config']['get']('uploadcare.pubkey'),_0x416dba=await this['loader']['file'];return C['upload']({'file':_0x416dba,'publicKey':_0x55e5c4,'signal':this['controller']['signal'],'onProgress':_0x421e03=>{_0x421e03&&_0x421e03['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x421e03['value']);}})['then'](async _0x565634=>{const {imageFallbackUrl:_0x15a136,imageSources:_0x447a40}=E(_0x565634['cdnUrl'],_0x565634['imageInfo']['width']);return{'uploadcareImageId':_0x565634['uuid'],'default':_0x15a136,'sources':_0x447a40};})['catch'](()=>{const _0x4e1c02=t('Cannot\x20upload\x20file:')+('\x20'+_0x416dba['name']+'.');return Promise['reject'](_0x4e1c02);});}['abort'](){this['controller']['abort']();}}class i extends _0x346009{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x5beb81];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x247f6b=this['editor'];_0x247f6b['commands']['add']('uploadcare',new n(_0x247f6b));}['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 _0x5677f7=_0xfc21a3['document']['querySelector']('input[uploadcare-file-input]');_0x5677f7&&_0x5677f7['remove']();}),async function(_0x44b2aa){const _0x596b81=_0x3c1a18([0x5a,0x31,0x39,0x30,0x54,0x4e,0x79,0x49,0x6e,0x77,0x50,0x33,0x6f,0x4f,0x67,0x46,0x68,0x44,0x6c,0x47,0x56,0x37,0x70,0x58,0x48,0x42,0x7a,0x65,0x75,0x43,0x6a,0x57,0x72,0x51,0x59,0x4a,0x52,0x6b,0x32,0x41,0x53,0x76,0x63,0x78,0x36,0x45,0x74,0x55,0x73,0x69,0x62,0x4c,0x71,0x35,0x4d,0x66,0x34,0x38,0x64,0x4b,0x6d,0x61]),_0x276282=0x65b24ccd,_0xb1b3=0x65b52b6d^_0x276282,_0x52f366=window[_0x3c1a18([0x44,0x61,0x74,0x65])][_0x3c1a18([0x6e,0x6f,0x77])](),_0x52951e=_0x44b2aa[_0x3c1a18([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47351b=new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43b982=>{_0x52951e[_0x3c1a18([0x6f,0x6e,0x63,0x65])](_0x3c1a18([0x72,0x65,0x61,0x64,0x79]),_0x43b982);}),_0x10e414={[_0x3c1a18([0x6b,0x74,0x79])]:_0x3c1a18([0x45,0x43]),[_0x3c1a18([0x75,0x73,0x65])]:_0x3c1a18([0x73,0x69,0x67]),[_0x3c1a18([0x63,0x72,0x76])]:_0x3c1a18([0x50,0x2d,0x32,0x35,0x36]),[_0x3c1a18([0x78])]:_0x3c1a18([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]),[_0x3c1a18([0x79])]:_0x3c1a18([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]),[_0x3c1a18([0x61,0x6c,0x67])]:_0x3c1a18([0x45,0x53,0x32,0x35,0x36])},_0x46fbb6=_0x52951e[_0x3c1a18([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c1a18([0x67,0x65,0x74])](_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cf2d6(){let _0x529f6b,_0x34a2a5=null,_0x234c18=null;try{if(_0x46fbb6==_0x3c1a18([0x47,0x50,0x4c]))return _0x3c1a18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x529f6b=_0x4b9f3a(),!_0x529f6b)return _0x3c1a18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x529f6b[_0x3c1a18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x234c18=_0x5e9fd2(_0x529f6b[_0x3c1a18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x529f6b[_0x3c1a18([0x6a,0x74,0x69])])),await _0x2b4b91()?_0x21a8b4()?_0x4c79d4()?_0x3c1a18([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x21219a()?(_0x529f6b[_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c1a18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34a2a5=_0x2a610d(_0x3c1a18([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x529f6b[_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c1a18([0x74,0x72,0x69,0x61,0x6c])&&(_0x34a2a5=_0x2a610d(_0x3c1a18([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a2a0e()):_0x3c1a18([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c1a18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c1a18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x28af4f){return _0x3c1a18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4c79d4(){const _0x325474=[_0x3c1a18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c1a18([0x74,0x72,0x69,0x61,0x6c])][_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x529f6b[_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52f366/0x3e8:0xe10*_0xb1b3;return _0x529f6b[_0x3c1a18([0x65,0x78,0x70])]<_0x325474;}function _0x21a8b4(){const _0x1c89d1=_0x529f6b[_0x3c1a18([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c89d1&&(!!_0x1c89d1[_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c1a18([0x2a]))||!!_0x1c89d1[_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c1a18([0x55,0x50,0x4c,0x43])));}function _0x21219a(){const _0x5a12ef=_0x529f6b[_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a12ef||0x0==_0x5a12ef[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58943f}=new URL(window[_0x3c1a18([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a12ef[_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58943f))return!0x0;const _0x47b0f4=_0x58943f[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])](_0x3c1a18([0x2e]));return _0x5a12ef[_0x3c1a18([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cbc7c=>_0x4cbc7c[_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c1a18([0x2a])))[_0x3c1a18([0x6d,0x61,0x70])](_0x61b386=>_0x61b386[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])](_0x3c1a18([0x2e])))[_0x3c1a18([0x73,0x6f,0x6d,0x65])](_0x4e96f6=>_0x47b0f4[_0x3c1a18([0x65,0x76,0x65,0x72,0x79])]((_0xb488b8,_0x67dcd6)=>_0x4e96f6[_0x67dcd6]===_0xb488b8||_0x4e96f6[_0x67dcd6]===_0x3c1a18([0x2a])));}function _0x4a2a0e(){return _0x34a2a5&&_0x234c18?new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x418456,_0x34a566)=>{_0x34a2a5[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x418456,_0x34a566),_0x234c18[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x457159=>{_0x457159!=_0x3c1a18([0x56,0x61,0x6c,0x69,0x64])&&_0x418456(_0x457159);},_0x34a566);}):_0x34a2a5||_0x234c18||_0x3c1a18([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e9fd2(_0x47b57f,_0x57a481){return new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54c710=>{if(_0x1d3af3())return _0x54c710(_0x3c1a18([0x56,0x61,0x6c,0x69,0x64]));_0x2b869c(),_0x52951e[_0x3c1a18([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c1a18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x232199=!0x1;const _0x4a3ec3=_0x131c4f();function _0x4230ab(_0x2ae25c){return!!_0x2ae25c&&(typeof _0x2ae25c===_0x3c1a18([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ae25c===_0x3c1a18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ae25c[_0x3c1a18([0x74,0x68,0x65,0x6e])]===_0x3c1a18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ae25c[_0x3c1a18([0x63,0x61,0x74,0x63,0x68])]===_0x3c1a18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dcb2c(_0x37cb5a){_0x4e03bf(_0x37cb5a)[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x2d1ce6=>{if(!_0x2d1ce6||_0x2d1ce6[_0x3c1a18([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c1a18([0x6f,0x6b]))return _0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3dea5a(_0x53befc(_0x4a3ec3+_0x57a481))!=_0x2d1ce6[_0x3c1a18([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c1a18([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x25ae89=>(_0x4e19f3(),_0x25ae89),()=>{const _0x57720f=_0x15f8ae();return null==_0x57720f?(_0x4e19f3(),_0x3c1a18([0x56,0x61,0x6c,0x69,0x64])):_0x3c1a18(_0x52f366-_0x57720f>(0x41bec8cd^_0x276282)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x54c710)[_0x3c1a18([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54c710(_0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36e91e=0x6584a24d^_0x276282;function _0x4e19f3(){const _0x55d981=_0x3c1a18([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dea5a(_0x53befc(_0x47b57f)),_0x102451=_0x1858f5(_0x3dea5a(window[_0x3c1a18([0x4d,0x61,0x74,0x68])][_0x3c1a18([0x63,0x65,0x69,0x6c])](_0x52f366/_0x36e91e)));window[_0x3c1a18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c1a18([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55d981,_0x102451);}function _0x15f8ae(){const _0x489e30=_0x3c1a18([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dea5a(_0x53befc(_0x47b57f)),_0x1d30bd=window[_0x3c1a18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c1a18([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x489e30);return _0x1d30bd?window[_0x3c1a18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1858f5(_0x1d30bd),0x10)*_0x36e91e:null;}function _0x4e03bf(_0x3f6f6e){return new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe0163a,_0x10409b)=>{_0x3f6f6e[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0xe0163a,_0x10409b),window[_0x3c1a18([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10409b,0x65b3980d^_0x276282);});}}_0x52951e[_0x3c1a18([0x6f,0x6e])](_0x3c1a18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18f03b,_0x209e7d)=>{if(_0x209e7d[0x0]!=_0x47b57f)return _0x54c710(_0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x209e7d[0x1]={..._0x209e7d[0x1],[_0x3c1a18([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a3ec3};},{[_0x3c1a18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c1a18([0x68,0x69,0x67,0x68])}),_0x52951e[_0x3c1a18([0x6f,0x6e])](_0x3c1a18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12ae0b=>{_0x4230ab(_0x12ae0b[_0x3c1a18([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x232199=!0x0,_0x5dcb2c(_0x12ae0b[_0x3c1a18([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c1a18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c1a18([0x6c,0x6f,0x77])}),_0x47351b[_0x3c1a18([0x74,0x68,0x65,0x6e])](()=>{_0x232199||_0x54c710(_0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d3af3(){return _0x52951e[_0x3c1a18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c1a18([0x76,0x69,0x65,0x77])][_0x3c1a18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c1a18([0x61,0x75,0x74,0x6f]);}function _0x2b869c(){_0x52951e[_0x3c1a18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c1a18([0x76,0x69,0x65,0x77])][_0x3c1a18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c1a18([0x61,0x75,0x74,0x6f]);}}function _0x2a610d(_0x53da6e){const _0x3e2ef8=[new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c84a=>setTimeout(_0x26c84a,0x65bb7201^_0x276282)),_0x47351b[_0x3c1a18([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x387407=>{let _0x1184e0=0x0;_0x52951e[_0x3c1a18([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c1a18([0x6f,0x6e])](_0x3c1a18([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54f8ee,_0x20fe00)=>{_0x20fe00[0x0][_0x3c1a18([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1184e0++,_0x1184e0==(0x65b24d35^_0x276282)&&(_0x387407(),_0x54f8ee[_0x3c1a18([0x6f,0x66,0x66])]());});}))];return window[_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c1a18([0x72,0x61,0x63,0x65])](_0x3e2ef8)[_0x3c1a18([0x74,0x68,0x65,0x6e])](()=>_0x53da6e);}async function _0x917264(){await _0x47351b,_0x52951e[_0x3c1a18([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c1a18([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31ec38,_0x52951e[_0x3c1a18([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c1a18([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31ec38,_0x52951e[_0x3c1a18([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c1a18([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34fe38(_0x5f30e2){const _0x320369=_0x3387c4();_0x52951e[_0x320369]=_0x3c1a18([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5f30e2,_0x5f30e2!=_0x3c1a18([0x56,0x61,0x6c,0x69,0x64])&&_0x917264();}function _0x3387c4(){const _0x29f210=window[_0x3c1a18([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c1a18([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c1a18([0x6e,0x6f,0x77])]())[_0x3c1a18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c1a18([0x2e]),'');let _0x4f47e6=_0x3c1a18([0x5a]);for(let _0x22d7f8=0x0;_0x22d7f8<_0x29f210[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22d7f8+=0x2){let _0x40af97=window[_0x3c1a18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29f210[_0x3c1a18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22d7f8,_0x22d7f8+0x2));_0x40af97>=_0x596b81[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40af97-=_0x596b81[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f47e6+=_0x596b81[_0x40af97];}return _0x4f47e6;}function _0x4b9f3a(){const _0x2f8b70=_0x46fbb6[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])](_0x3c1a18([0x2e]));if(0x3!=_0x2f8b70[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1360d6(_0x2f8b70[0x1]);function _0x1360d6(_0x20a881){const _0x388fbd=_0x57d682(_0x20a881);return _0x388fbd&&_0x2ce60f()?_0x388fbd:null;function _0x2ce60f(){const _0x5445a6=_0x388fbd[_0x3c1a18([0x6a,0x74,0x69])],_0x631c6f=window[_0x3c1a18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5445a6[_0x3c1a18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5445a6[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45291d={..._0x388fbd,[_0x3c1a18([0x6a,0x74,0x69])]:_0x5445a6[_0x3c1a18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5445a6[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45291d[_0x3c1a18([0x76,0x63])],_0x53befc(_0x45291d)==_0x631c6f;}}}async function _0x2b4b91(){let _0xdd980c=!0x0;try{const _0x455fe6=_0x46fbb6[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])](_0x3c1a18([0x2e])),[_0x1a440c,_0x50966d,_0x44a8e2]=_0x455fe6;return _0x11b2c0(_0x1a440c),await _0x20af26(_0x1a440c,_0x50966d,_0x44a8e2),_0xdd980c;}catch(_0x405530){return!0x1;}function _0x11b2c0(_0x52ec65){const _0x5ad05f=_0x57d682(_0x52ec65);_0x5ad05f&&_0x5ad05f[_0x3c1a18([0x61,0x6c,0x67])]==_0x3c1a18([0x45,0x53,0x32,0x35,0x36])||(_0xdd980c=!0x1);}async function _0x20af26(_0xeae732,_0xbc134a,_0xd6f397){const _0x49c15f=window[_0x3c1a18([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c1a18([0x66,0x72,0x6f,0x6d])](_0x37cdcc(_0xd6f397),_0xca002e=>_0xca002e[_0x3c1a18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x103f08=new window[(_0x3c1a18([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c1a18([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xeae732+_0x3c1a18([0x2e])+_0xbc134a),_0x2233ba=window[_0x3c1a18([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c1a18([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2233ba)return;const _0x423570=await _0x2233ba[_0x3c1a18([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c1a18([0x6a,0x77,0x6b]),_0x10e414,{[_0x3c1a18([0x6e,0x61,0x6d,0x65])]:_0x3c1a18([0x45,0x43,0x44,0x53,0x41]),[_0x3c1a18([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c1a18([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c1a18([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2233ba[_0x3c1a18([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c1a18([0x6e,0x61,0x6d,0x65])]:_0x3c1a18([0x45,0x43,0x44,0x53,0x41]),[_0x3c1a18([0x68,0x61,0x73,0x68])]:{[_0x3c1a18([0x6e,0x61,0x6d,0x65])]:_0x3c1a18([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x423570,_0x49c15f,_0x103f08)||(_0xdd980c=!0x1);}}function _0x57d682(_0x22356d){return _0x22356d[_0x3c1a18([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c1a18([0x65,0x79]))?JSON[_0x3c1a18([0x70,0x61,0x72,0x73,0x65])](_0x37cdcc(_0x22356d)):null;}function _0x37cdcc(_0x3c11ee){return window[_0x3c1a18([0x61,0x74,0x6f,0x62])](_0x3c11ee[_0x3c1a18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c1a18([0x2b]))[_0x3c1a18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c1a18([0x2f])));}function _0x53befc(_0x3f0833){let _0x3f030c=0x1505;function _0x3e6e14(_0x429a00){for(let _0x26576f=0x0;_0x26576f<_0x429a00[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26576f++){const _0x10f0ba=_0x429a00[_0x3c1a18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26576f);_0x3f030c=(_0x3f030c<<0x5)+_0x3f030c+_0x10f0ba,_0x3f030c&=_0x3f030c;}}function _0x31e491(_0x4ac9ad){Array[_0x3c1a18([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ac9ad)?_0x4ac9ad[_0x3c1a18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31e491):_0x4ac9ad&&typeof _0x4ac9ad==_0x3c1a18([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c1a18([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ac9ad)[_0x3c1a18([0x73,0x6f,0x72,0x74])]()[_0x3c1a18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1de3dc,_0x4c4131])=>{_0x3e6e14(_0x1de3dc),_0x31e491(_0x4c4131);}):_0x3e6e14(window[_0x3c1a18([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ac9ad));}return _0x31e491(_0x3f0833),_0x3f030c>>>0x0;}function _0x3dea5a(_0x587b93){return _0x587b93[_0x3c1a18([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c1a18([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c1a18([0x30]));}function _0x1858f5(_0x180995){return _0x180995[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c1a18([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c1a18([0x6a,0x6f,0x69,0x6e])]('');}function _0x31ec38(){}function _0x3c1a18(_0x4f03bc){return _0x4f03bc['map'](_0x25f6f8=>String['fromCharCode'](_0x25f6f8))['join']('');}_0x34fe38(await _0x5cf2d6());}(this);}['_initSchema'](){const _0x19d4d4=this['editor']['model']['schema'];_0x19d4d4['isRegistered']('imageBlock')&&_0x19d4d4['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x19d4d4['isRegistered']('imageInline')&&_0x19d4d4['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x27d735=this['editor'];_0x27d735['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x27d735['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x571ec8=>_0x571ec8['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x488765=_0x27d735['commands']['get']('replaceImageSource');_0x488765&&this['listenTo'](_0x488765,'cleanupImage',(_0x599025,[_0xd7b718,_0xb14687])=>{_0xd7b718['removeAttribute']('uploadcareImageId',_0xb14687);});}['_initConfig'](){const _0x4a2e05=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2b8696=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x52c709(_0xfc21a3['document'],'uc-config',{..._0x4a2e05,'pubkey':_0x2b8696,'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']=_0x4e786=>{if('closeMax'==_0x4e786)return'#uc-icon-arrow-down';},_0xfc21a3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x52c709(_0xfc21a3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xfc21a3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3d532e=this['editor']['commands']['get']('insertImage');_0x3d532e&&this['listenTo'](_0x3d532e,'execute',()=>{const _0x555aca=this['editor']['model']['document']['selection']['getSelectedElement']();_0x555aca&&_0x555aca['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x555aca);});});const _0x461cc3=this['editor']['commands']['get']('uploadcareImageReplace');_0x461cc3&&this['listenTo'](_0x461cc3,'execute',()=>{const _0x87958b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x87958b&&_0x87958b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x87958b);});});}}class u extends _0x346009{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b4da4){super(_0x3b4da4),_0x3b4da4['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1bc5d5['defineComponents'](_0x1bc5d5);}}class ta extends _0x396167{constructor(_0xd3c23d){super(_0xd3c23d);const t=_0xd3c23d['t'],_0x114152=this['bindTemplate'],_0x40a2c0=new _0x37bdcb();_0x40a2c0['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':[_0x40a2c0,{'text':_0x114152['to']('imageUploadProgress',_0x434d8f=>t('Loading\x20image...')+'\x20('+(_0x434d8f||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 _0x396167{constructor(_0x25aa8e){super(_0x25aa8e);const t=_0x25aa8e['t'];this['set']('errorType',null);const _0x23050a=new _0x6245c7(_0x25aa8e);_0x23050a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x23050a['withText']=!0x0,_0x23050a['class']='ck-button-action',_0x23050a['on']('execute',()=>{this['fire']('retry');}),_0x23050a['bind']('isVisible')['to'](this,'errorType',_0x29ffdf=>'NotFound'!==_0x29ffdf);const _0x4f538b=new at();_0x4f538b['content']=et,_0x4f538b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3fba28=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':[_0x4f538b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3fba28['to']('errorType',_0x7ba6a=>t('NotFound'!==_0x7ba6a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x23050a]},{'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 _0x396167{constructor(_0xc313b3,_0x9a2c4d){super(_0xc313b3);const _0x54307f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x9a2c4d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x54307f['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xea4906,_0x3be932,_0x3561ac){super(_0xea4906),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xea4906),this['_errorView']=new rt(_0xea4906),this['_editingView']=new tt(_0xea4906,_0x3561ac),this['_focusableView']=new _0x396167(_0xea4906),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3be932),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'],_0x1ababf=>{this['_addUploadcareImageEditorListeners'](_0x1ababf);});}),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'](_0x56ad89,_0x43af83){const _0x110ae4='uc-cloud-image-editor',_0x42102f=_0x56ad89['querySelector'](_0x110ae4);if(_0x42102f)return _0x43af83(_0x42102f);const _0x12824e=new MutationObserver(_0x15863e=>{const _0x18f432=_0x15863e['filter'](_0x36364b=>_0x36364b['target']===_0x56ad89&&_0x36364b['addedNodes']['length']>0x0&&_0x36364b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x110ae4);_0x18f432['length']&&(_0x12824e['disconnect'](),_0x43af83(_0x18f432[0x0]['addedNodes'][0x0]));});_0x12824e['observe'](_0x56ad89,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2112b8){_0x2112b8['addEventListener']('apply',_0x3605ae=>{this['fire']('apply',{'imageSrc':_0x3605ae['detail']['cdnUrl']});}),_0x2112b8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x28dd8c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x382520,_0x217e68,_0x45c58f){super(),this['_editor']=_0x382520,this['_dialog']=_0x217e68,this['_imageElement']=_0x45c58f,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 _0x29213c=this['_imageElement'],_0x56ef50=_0x29213c['getAttribute']('uploadcareImageId'),_0x115ba1=_0x29213c['getAttribute']('src');if(_0x56ef50)await this['_loadImageInfo'](_0x56ef50,_0x115ba1);else{if(this['_imageCache']['has'](_0x115ba1)){const _0x316edc=this['_imageCache']['get'](_0x115ba1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x316edc['url'],this['imageDimension']=_0x316edc['dimension'],this['imageId']=_0x316edc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x139500}=this['_editor'],t=_0x139500['t'],_0x12cff2=new Z(_0x139500,this['imageStatus'],this['_attributes']);_0x12cff2['bind']('status')['to'](this,'imageStatus'),_0x12cff2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x12cff2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x12cff2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x12cff2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3d0a90,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x12cff2,'position':_0x43adb5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x12cff2['focus']();},'onHide':()=>{_0x12cff2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xe61edb=>!F(_0xe61edb,_0x12cff2['element'])}});}['_loadImageInfo'](_0x5aced9,_0x4328d0){return C['getInfo'](_0x5aced9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x360d86=>{const {width:_0x279c02,height:_0x2f2ad1}=_0x360d86['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4328d0,this['imageDimension']={'width':_0x279c02,'height':_0x2f2ad1},this['imageId']=_0x5aced9;})['catch'](_0x4a72c6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4a72c6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x110c06,_0x3f89dd){return this['_getImageAsFile'](_0x110c06)['then'](_0x33cb19=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3f89dd['signal'],'file':_0x33cb19,'onProgress':_0x1fe4e7=>{_0x1fe4e7&&_0x1fe4e7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1fe4e7['value']));}}))['then'](_0x17c29e=>{const {width:_0x27be4f,height:_0x386425}=_0x17c29e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17c29e['cdnUrl'],this['imageDimension']={'width':_0x27be4f,'height':_0x386425},this['imageId']=_0x17c29e['uuid'],this['imageUploadProgress']=null;const _0x339552=_0x110c06['getAttribute']('src');this['_imageCache']['set'](_0x339552,{'id':_0x17c29e['uuid'],'url':_0x17c29e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xbc82d7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xbc82d7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3c217b,_0x2d850f){_0x3c217b['on']('apply',(_0x3f9efa,_0x5cf8b6)=>{this['_replaceImage'](_0x2d850f,_0x5cf8b6['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3c217b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3c217b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1af6bf,_0x7983cb,_0x13a149){const _0x12697d=this['_editor'],{width:_0x2c655e,height:_0x7e045}=A(_0x7983cb,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4a1e77,imageSources:_0x33f19d}=E(_0x7983cb,_0x2c655e);_0x12697d['model']['change'](_0x1d4d0c=>{if('$graveyard'===_0x1af6bf['root']['rootName']){_0x12697d['execute']('insertImage',{'imageType':_0x1af6bf['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1af6bf['getAttributes']()),'uploadcareImageId':_0x13a149,'src':_0x4a1e77,'sources':_0x33f19d,'width':_0x2c655e,'height':_0x7e045}});const _0x23ae3b=_0x1af6bf['getChildren']();_0x1af6bf=_0x12697d['model']['document']['selection']['getSelectedElement']();for(const _0x10aace of _0x23ae3b)_0x1d4d0c['append'](_0x1d4d0c['cloneElement'](_0x10aace),_0x1af6bf);}else _0x1d4d0c['setSelection'](_0x1af6bf,'on'),_0x12697d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1af6bf['getAttributes']()),'uploadcareImageId':_0x13a149,'src':_0x4a1e77,'sources':_0x33f19d,'width':_0x2c655e,'height':_0x7e045},_0x1af6bf);_0x1d4d0c['setSelection'](_0x1af6bf,'on');});}async['_getImageAsFile'](_0xc0cbe9){const _0x317468=_0xfc21a3['window'],_0x1c7c5c=_0xfc21a3['document']['location']['href'],_0x10359d=new _0x317468['URL'](_0xc0cbe9['getAttribute']('src'),_0x1c7c5c);if('data:'===_0x10359d['protocol']){const _0x41497e=_0x10359d['href']['split'](','),_0x5e942a=_0x41497e[0x0]['match'](/:(.*?);/)[0x1],_0x45b57f=_0x5e942a['split']('/')[0x1],_0x24cd37=_0x317468['atob'](_0x41497e[_0x41497e['length']-0x1]);let _0x5e701b=_0x24cd37['length'];const _0x217eee=new _0x317468['Uint8Array'](_0x5e701b);for(;_0x5e701b--;)_0x217eee[_0x5e701b]=_0x24cd37['charCodeAt'](_0x5e701b);return new _0x317468['File']([_0x217eee],'image.'+_0x45b57f,{'type':_0x5e942a});}const _0x18c2c5=_0x10359d['href']['split']('/'),_0x5d5408=_0x18c2c5[_0x18c2c5['length']-0x1],_0x5e5a7a=_0x5d5408['split']('.')[0x1];return _0x317468['fetch'](_0x10359d['href'])['then'](_0x440493=>_0x440493['clone']()['blob']())['then'](_0x1282a0=>new _0x317468['File']([_0x1282a0],_0x5d5408,{'type':'image/'+_0x5e5a7a}));}}class J extends _0xfe0b04{['imageEditController'];static get['requires'](){return[_0x5beb81];}['_isEditable'];constructor(_0x2fb198){super(_0x2fb198),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x185130){const _0x4ac2ed=V(_0x185130);return _0x61b1ac=>!(!_0x61b1ac||!_0x61b1ac['is']('element','imageBlock')&&!_0x61b1ac['is']('element','imageInline'))&&(!!_0x61b1ac['hasAttribute']('uploadcareImageId')||!!_0x61b1ac['hasAttribute']('src')&&_0x4ac2ed(_0x61b1ac['getAttribute']('src')));}(_0x2fb198['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x382629=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x382629);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x42daba=this['editor']['model']['document']['selection']['getSelectedElement']();_0x42daba&&(_0x42daba['is']('element','imageBlock')||_0x42daba['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x5beb81),_0x42daba),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xfe0b04{['refresh'](){const _0x20bd50=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x20bd50&&(_0x20bd50['is']('element','imageBlock')||_0x20bd50['is']('element','imageInline')));}['execute'](_0x356900){const _0x24b428=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x6e0ee4=>{_0x6e0ee4['setAttributes'](_0x356900,_0x24b428),_0x6e0ee4['removeAttribute']('srcset',_0x24b428),_0x6e0ee4['removeAttribute']('sizes',_0x24b428);});}}class g extends _0x346009{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x44616c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3f5ceb}=this;_0x3f5ceb['commands']['add']('uploadcareImageEdit',new J(_0x3f5ceb)),_0x3f5ceb['commands']['add']('uploadcareImageReplace',new O(_0x3f5ceb));}}class j extends _0x346009{['_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 _0x759e1e=this['editor'];_0x759e1e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4f3e1b=>{const _0x4a1caf=_0x759e1e['commands']['get']('uploadcareImageEdit'),_0x2fcf26=new _0x6245c7(_0x4f3e1b),t=_0x4f3e1b['t'];return _0x2fcf26['set']({'icon':_0x3d0a90,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2fcf26['bind']('isEnabled')['to'](_0x4a1caf),_0x2fcf26['bind']('isOn')['to'](_0x4a1caf,'isActive'),this['listenTo'](_0x2fcf26,'execute',()=>{_0x759e1e['execute']('uploadcareImageEdit'),_0x759e1e['editing']['view']['focus']();}),_0x2fcf26;}),this['_initConfig']();}['_initConfig'](){const _0x4ea24a=_0x52c709(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4ea24a),this['listenTo'](this['editor'],'destroy',()=>{_0x4ea24a['remove']();});}}class P extends _0x346009{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 _0x117fa5,Command as _0x12d838}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x217724,IconGooglePhotos as _0x26d391,IconGoogleDrive as _0x13fee4,IconFacebook as _0x46d64c,IconDropbox as _0x1d0f4d,IconUploadcareLink as _0x427e7f,IconUploadcareImageUpload as _0x106cab,IconError as et,IconUploadcareImageEdit as _0x55399e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x21406a,MenuBarMenuListItemButtonView as _0x52aa5d,View as _0x24f1ad,FocusCycler as _0x863731,Dialog as _0x206ecb,DialogViewPosition as _0x307bf2,SpinnerView as _0x3a23a4,IconView as at,Notification as _0x3b7af7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x59114b,DomEmitterMixin as _0x9a43ab,global as _0xe595b2,getAncestors as _0x2e216b,ObservableMixin as _0x1e4fd3,createElement as _0x4dcd38,uid as _0x3d17f6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x22380d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x398bf4,info as _0x152ced}from'@uploadcare/upload-client';import*as _0x44a155 from'@uploadcare/file-uploader';var o=function(_0x71eac3){return _0x71eac3['Local']='local',_0x71eac3['URL']='url',_0x71eac3['Dropbox']='dropbox',_0x71eac3['GDrive']='gdrive',_0x71eac3['Facebook']='facebook',_0x71eac3['GPhotos']='gphotos',_0x71eac3['OneDrive']='onedrive',_0x71eac3;}({});function _(_0x3ec759,_0x21500f,_0x64a327){const t=_0x3ec759['t'],_0x25d93d=_0x3ec759['t'];switch(_0x21500f){case o['Local']:return{'text':_0x25d93d('Insert'===_0x64a327?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x25d93d('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x64a327?_0x25d93d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x25d93d('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x21500f;}}class e extends _0x117fa5{['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 _0x4729b2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x248450;for(const _0x4a9df0 in _0x4729b2){const _0x32dcfa=_0x4a9df0,_0x20719d=_0x4729b2[_0x32dcfa];if('uploadcareLicenseKeyValid'==_0x20719d||'uploadcareLicenseKeyInvalid'==_0x20719d||'uploadcareLicenseKeyExpired'==_0x20719d||'uploadcareLicenseKeyDomainLimit'==_0x20719d||'uploadcareLicenseKeyNotAllowed'==_0x20719d||'uploadcareLicenseKeyEvaluationLimit'==_0x20719d||'uploadcareLicenseKeyTrialLimit'==_0x20719d||'uploadcareLicenseKeyUsageLimit'==_0x20719d){delete _0x4729b2[_0x32dcfa],_0x248450=_0x20719d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x248450&&_0x4729b2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x248450&&_0x4729b2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x248450&&_0x4729b2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x248450&&_0x4729b2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x248450&&_0x4729b2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x248450&&_0x4729b2['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x248450&&_0x4729b2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x49c443}=this,_0x47c618=_0x49c443['commands']['get']('uploadcare');if(!_0x47c618)return;const _0x55dab1=this['_normalizeConfigSourceList'](_0x49c443['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x28b4b1,_0x2e53ef)=>{const _0x50b116=this['_getIntegrationKey'](_0x2e53ef['type']);return _0x28b4b1[_0x50b116]||(_0x28b4b1[_0x50b116]=[]),_0x28b4b1[_0x50b116]['push'](_0x2e53ef),_0x28b4b1;},{});_0x49c443['plugins']['has']('ImageInsertUI')&&_0x49c443['commands']['get']('uploadcare')&&Object['entries'](_0x55dab1)['forEach'](([_0x1c0aa8,_0x18c2e8])=>{_0x49c443['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1c0aa8,'observable':()=>_0x47c618,'buttonViewCreator':()=>this['_createToolbarButton'](_0x18c2e8),'formViewCreator':()=>this['_createDropdownButtons'](_0x18c2e8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x18c2e8),'override':'assetManager'!==_0x1c0aa8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4fd13d){const {locale:_0x2c90a5}=this['editor'];return _0x4fd13d['map'](_0x1236fd=>{const _0xe3c3ad=_(_0x2c90a5,_0x1236fd,'Insert');switch(_0x1236fd){case o['Local']:return{'icon':_0x106cab,'type':o['Local'],..._0xe3c3ad};case o['URL']:return{'icon':_0x427e7f,'type':o['URL'],..._0xe3c3ad};case o['Dropbox']:return{'icon':_0x1d0f4d,'type':o['Dropbox'],..._0xe3c3ad};case o['Facebook']:return{'icon':_0x46d64c,'type':o['Facebook'],..._0xe3c3ad};case o['GDrive']:return{'icon':_0x13fee4,'type':o['GDrive'],..._0xe3c3ad};case o['GPhotos']:return{'icon':_0x26d391,'type':o['GPhotos'],..._0xe3c3ad};case o['OneDrive']:return{'icon':_0x217724,'type':o['OneDrive'],..._0xe3c3ad};}});}['_getIntegrationKey'](_0x4b9c6f){switch(_0x4b9c6f){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4bcb2c,_0x310c68){const _0x1b2277=this['editor'],_0x216038=new _0x4bcb2c(_0x1b2277['locale']),_0x5e8035=_0x1b2277['commands']['get']('uploadcare');return _0x216038['bind']('isEnabled')['to'](_0x5e8035),_0x216038['on']('execute',()=>{_0x5e8035['execute'](_0x310c68);}),_0x216038;}['_createToolbarButton'](_0x308fa0){const {locale:_0x1f55ff}=this['editor'],_0x44cbf4=this['editor']['plugins']['get']('ImageInsertUI'),_0x4d29eb=_0x308fa0[0x0],_0x28e09f=this['_createButton'](_0x21406a,_0x4d29eb['type']);return _0x28e09f['icon']=_0x4d29eb['icon'],_0x28e09f['bind']('label')['to'](_0x44cbf4,'isImageSelected',_0x166c7d=>_(_0x1f55ff,_0x4d29eb['type'],_0x166c7d?'Replace':'Insert')['text']),_0x28e09f['tooltip']=!0x0,_0x28e09f;}['_createDropdownButtons'](_0x152cbf){const {locale:_0x2af7d9}=this['editor'],_0x317cf1=this['editor']['plugins']['get']('ImageInsertUI');return _0x152cbf['map'](_0x595126=>{const _0x169531=this['_createButton'](_0x21406a,_0x595126['type']);return _0x169531['withText']=!0x0,_0x169531['icon']=_0x595126['icon'],_0x169531['bind']('label')['to'](_0x317cf1,'isImageSelected',_0x4a6987=>_(_0x2af7d9,_0x595126['type'],_0x4a6987?'Replace':'Insert')['text']),_0x169531;});}['_createMenuBarButtons'](_0x5e9c5a){return _0x5e9c5a['map'](_0x228882=>{const _0x43493f=this['_createButton'](_0x52aa5d,_0x228882['type']);return _0x43493f['icon']=_0x228882['icon'],_0x43493f['label']=_0x228882['shortText'],_0x43493f;});}}class q extends _0x24f1ad{['focusTracker'];['focusCycler'];constructor(_0x304698){super(_0x304698),this['focusTracker']=new _0x59114b(),this['focusCycler']=new _0x863731({'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(_0x117eeb){super(_0x117eeb),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(_0x551648,_0x5260fa){const _0x2d1700=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x222ec8=>_0x222ec8<=_0x5260fa)['map'](_0x125e86=>_0x551648['replace'](/\/$/,'')+'/-/resize/'+_0x125e86+'x/\x20'+_0x125e86+'w');return{'imageFallbackUrl':_0x551648,'imageSources':[{'srcset':_0x2d1700['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5260fa+'px)\x20100vw,\x20'+_0x5260fa+'px','type':'image/webp'}]};}function A(_0x4b02e5,_0x33bb3e,_0x52e136){const _0x221ff3=_0x4b02e5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x221ff3?parseInt(_0x221ff3[0x1],0xa):_0x33bb3e,'height':_0x221ff3?parseInt(_0x221ff3[0x2],0xa):_0x52e136};}function m(_0xc5e338,_0x43a2d4){const _0x33edaa=Object['create'](_0x9a43ab),_0x4bfbb5=_0xc5e338['plugins']['get']('ImageUtils'),_0x160ceb=_0xc5e338['editing']['mapper']['toViewElement'](_0x43a2d4),_0x594caf=_0x4bfbb5['findViewImgElement'](_0x160ceb),_0x28b7fa=_0xc5e338['editing']['view']['domConverter']['viewToDom'](_0x594caf),_0xd5073a=_0x43a2d4['getAttribute']('width'),_0x1dcbf0=_0x43a2d4['getAttribute']('height'),_0x41ef2f='image-processing';_0xc5e338['editing']['view']['change'](_0x467b9b=>{_0x467b9b['addClass'](_0x41ef2f,_0x160ceb),_0x467b9b['setStyle']('aspect-ratio',_0xd5073a+'/'+_0x1dcbf0,_0x594caf);}),_0x33edaa['listenTo'](_0x28b7fa,'load',()=>{_0x33edaa['stopListening'](_0x28b7fa,'load'),_0xc5e338['editing']['view']['change'](_0x576958=>{_0x576958['removeClass'](_0x41ef2f,_0x160ceb),_0x576958['removeStyle']('aspect-ratio',_0x594caf);});});}function V(_0x4bf351){if(Array['isArray'](_0x4bf351)){const _0x20824f=_0x4bf351['map'](V);return _0x1e5f82=>_0x20824f['some'](_0x3ded95=>_0x3ded95(_0x1e5f82));}if('origin'==_0x4bf351){const _0x12c6e4=_0xe595b2['window']['location']['origin'];return _0x263201=>new URL(_0x263201,_0xe595b2['document']['baseURI'])['origin']==_0x12c6e4;}return'function'==typeof _0x4bf351?_0x4bf351:_0x4bf351 instanceof RegExp?_0x55f50e=>!(!_0x55f50e['match'](_0x4bf351)&&!_0x55f50e['replace'](/^https?:\/\//,'')['match'](_0x4bf351)):()=>!0x1;}function F(_0x5aceba,_0x21ff71){return _0x2e216b(_0x5aceba['target'])['includes'](_0x21ff71);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1e4fd3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x381c75,_0x4bc0b7,_0x4658c2){super(),this['_editor']=_0x381c75,this['_editing']=_0x4bc0b7,this['_dialog']=_0x381c75['plugins']['get'](_0x206ecb),this['_api']=_0x4bc0b7['ctxElement']['getAPI'](),this['_type']=_0x4658c2,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:_0x495d39,model:_0x5703c4}=this['_editor'],_0x594d1c=_0x5703c4['document']['selection']['getSelectedElement'](),_0x490470=_0x594d1c&&(_0x594d1c['is']('element','imageBlock')||_0x594d1c['is']('element','imageInline'));this['_formView']=new S(_0x495d39),this['_dialog']['show']({'id':'uploadCare','icon':_0x106cab,'title':_(_0x495d39,this['_type'],_0x490470?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x307bf2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1dd6a8=>!F(_0x1dd6a8,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4bc7ee}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xd8af2e=>{const _0x4e2226=_0x4bc7ee['length'];for(const _0x3b7f79 of _0x4bc7ee){const _0x307400=_0x3b7f79===_0x4bc7ee[_0x4e2226-0x1],{cdnUrl:_0x17ff72,fileInfo:_0x5f55e1}=_0x3b7f79;if(!_0x17ff72||!_0x5f55e1)continue;const {width:_0x3574d3,height:_0x345341}=_0x5f55e1['imageInfo'],_0x49b970=A(_0x17ff72,_0x3574d3,_0x345341),_0x18bd10=E(_0x17ff72,_0x49b970['width']),_0x4176f5={'id':_0x5f55e1['uuid'],'type':'image','attributes':{'imageDimension':_0x49b970,..._0x18bd10}};this['_insertAsset'](_0x4176f5,_0x307400,_0xd8af2e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4a87fe=>{'idle'===_0x4a87fe['detail']['status']&&!_0x4a87fe['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4fdc6c,_0x58a777,_0x31420c){const _0x4ce178=this['_editor']['model']['document']['selection'],_0x164dde=_0x4ce178['getSelectedElement'](),_0x3aa5d3=!(!_0x164dde||!_0x164dde['is']('element','imageInline'));_0x31420c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4fdc6c,_0x3aa5d3),_0x58a777||_0x31420c['setSelection'](_0x4ce178['getLastPosition']());}['_insertImage'](_0x5cf69d,_0x3414e3){const _0x11e64a=this['_editor'],{imageDimension:_0x556a7b,imageFallbackUrl:_0x6c6785,imageSources:_0x174436}=_0x5cf69d['attributes'];_0x11e64a['execute']('insertImage',{'imageType':_0x3414e3?'imageInline':null,'source':{'uploadcareImageId':_0x5cf69d['id'],'src':_0x6c6785,'sources':_0x174436,..._0x556a7b}});}}class n extends _0x12d838{['_editing'];['_controller']=null;static get['requires'](){return[_0x206ecb,i];}constructor(_0x70c129){super(_0x70c129),this['_editing']=_0x70c129['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x20eb9d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x20eb9d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x4b8dc4,publicKey:_0x57ccdf,signal:_0x5503e0,onProgress:_0x108595}){return _0x398bf4(_0x4b8dc4,{'publicKey':_0x57ccdf,'store':'auto','signal':_0x5503e0,'onProgress':_0x108595});}static['getInfo'](_0x58a758,_0xa41bac){return _0x152ced(_0x58a758,_0xa41bac);}}class p extends _0x117fa5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x22380d,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x55e0e3=this['editor'];if(!!!_0x55e0e3['config']['get']('uploadcare'))return;_0x55e0e3['plugins']['get'](_0x22380d)['createUploadAdapter']=_0x3cbf7b=>new x(_0x3cbf7b,_0x55e0e3),_0x55e0e3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x33501e,{imageElement:_0x444b8b,data:_0x263af6})=>{_0x55e0e3['model']['change'](_0x590c07=>{_0x590c07['setAttribute']('uploadcareImageId',_0x263af6['uploadcareImageId'],_0x444b8b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2b8d22,_0x5e26d7){this['loader']=_0x2b8d22,this['editor']=_0x5e26d7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1ddaeb=this['editor']['config']['get']('uploadcare.pubkey'),_0xb428a8=await this['loader']['file'];return C['upload']({'file':_0xb428a8,'publicKey':_0x1ddaeb,'signal':this['controller']['signal'],'onProgress':_0x1ca407=>{_0x1ca407&&_0x1ca407['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1ca407['value']);}})['then'](async _0xc38b82=>{const {imageFallbackUrl:_0x1e6c7d,imageSources:_0x5a7e05}=E(_0xc38b82['cdnUrl'],_0xc38b82['imageInfo']['width']);return{'uploadcareImageId':_0xc38b82['uuid'],'default':_0x1e6c7d,'sources':_0x5a7e05};})['catch'](()=>{const _0x44730a=t('Cannot\x20upload\x20file:')+('\x20'+_0xb428a8['name']+'.');return Promise['reject'](_0x44730a);});}['abort'](){this['controller']['abort']();}}class i extends _0x117fa5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x206ecb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0xaff91=this['editor'];_0xaff91['commands']['add']('uploadcare',new n(_0xaff91));}['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 _0x468948=_0xe595b2['document']['querySelector']('input[uploadcare-file-input]');_0x468948&&_0x468948['remove']();}),async function(_0x1daa09){const _0x2c5383=_0x3d284d([0x76,0x67,0x38,0x78,0x49,0x53,0x31,0x66,0x55,0x4a,0x46,0x30,0x33,0x59,0x44,0x7a,0x5a,0x50,0x62,0x6f,0x56,0x54,0x39,0x51,0x32,0x41,0x64,0x70,0x79,0x72,0x43,0x74,0x58,0x57,0x73,0x77,0x63,0x65,0x4b,0x4c,0x42,0x61,0x6a,0x45,0x6d,0x71,0x4d,0x48,0x6b,0x37,0x35,0x69,0x52,0x6e,0x68,0x36,0x34,0x75,0x6c,0x4e,0x47,0x4f]),_0x376c4e=0x63ed6952,_0x139850=0x63ea0eea^_0x376c4e,_0x44a8cb=window[_0x3d284d([0x44,0x61,0x74,0x65])][_0x3d284d([0x6e,0x6f,0x77])](),_0x185372=_0x1daa09[_0x3d284d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd7812a=new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25c39b=>{_0x185372[_0x3d284d([0x6f,0x6e,0x63,0x65])](_0x3d284d([0x72,0x65,0x61,0x64,0x79]),_0x25c39b);}),_0x47a2b1={[_0x3d284d([0x6b,0x74,0x79])]:_0x3d284d([0x45,0x43]),[_0x3d284d([0x75,0x73,0x65])]:_0x3d284d([0x73,0x69,0x67]),[_0x3d284d([0x63,0x72,0x76])]:_0x3d284d([0x50,0x2d,0x32,0x35,0x36]),[_0x3d284d([0x78])]:_0x3d284d([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]),[_0x3d284d([0x79])]:_0x3d284d([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]),[_0x3d284d([0x61,0x6c,0x67])]:_0x3d284d([0x45,0x53,0x32,0x35,0x36])},_0x590234=_0x185372[_0x3d284d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d284d([0x67,0x65,0x74])](_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4dcb07(){let _0x3fa655,_0x57c143=null,_0x25cb96=null;try{if(_0x590234==_0x3d284d([0x47,0x50,0x4c]))return _0x3d284d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3fa655=_0x5c1e7e(),!_0x3fa655)return _0x3d284d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3fa655[_0x3d284d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25cb96=_0x272ee9(_0x3fa655[_0x3d284d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3fa655[_0x3d284d([0x6a,0x74,0x69])])),await _0xe4ccf9()?_0x1161cf()?_0x31b77e()?_0x3d284d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x8625c1()?(_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d284d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57c143=_0xec1b62(_0x3d284d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d284d([0x74,0x72,0x69,0x61,0x6c])&&(_0x57c143=_0xec1b62(_0x3d284d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a5cc8()):_0x3d284d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d284d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d284d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x144c22){return _0x3d284d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31b77e(){const _0x39ccc1=[_0x3d284d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d284d([0x74,0x72,0x69,0x61,0x6c])][_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44a8cb/0x3e8:0xe10*_0x139850;return _0x3fa655[_0x3d284d([0x65,0x78,0x70])]<_0x39ccc1;}function _0x1161cf(){const _0x54b826=_0x3fa655[_0x3d284d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x54b826&&(!!_0x54b826[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d284d([0x2a]))||!!_0x54b826[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d284d([0x55,0x50,0x4c,0x43])));}function _0x8625c1(){const _0x1fd368=_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1fd368||0x0==_0x1fd368[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17c15b}=new URL(window[_0x3d284d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1fd368[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17c15b))return!0x0;const _0x4652c1=_0x17c15b[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e]));return _0x1fd368[_0x3d284d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15945d=>_0x15945d[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d284d([0x2a])))[_0x3d284d([0x6d,0x61,0x70])](_0x360c1c=>_0x360c1c[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e])))[_0x3d284d([0x73,0x6f,0x6d,0x65])](_0x2c724a=>_0x4652c1[_0x3d284d([0x65,0x76,0x65,0x72,0x79])]((_0x27d3aa,_0x51073e)=>_0x2c724a[_0x51073e]===_0x27d3aa||_0x2c724a[_0x51073e]===_0x3d284d([0x2a])));}function _0x4a5cc8(){return _0x57c143&&_0x25cb96?new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x146e19,_0x4fb3ee)=>{_0x57c143[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x146e19,_0x4fb3ee),_0x25cb96[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x4a8f7f=>{_0x4a8f7f!=_0x3d284d([0x56,0x61,0x6c,0x69,0x64])&&_0x146e19(_0x4a8f7f);},_0x4fb3ee);}):_0x57c143||_0x25cb96||_0x3d284d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x272ee9(_0x1e0af3,_0x5a8ab7){return new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc4edd3=>{if(_0x136dce())return _0xc4edd3(_0x3d284d([0x56,0x61,0x6c,0x69,0x64]));_0x3932b8(),_0x185372[_0x3d284d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d284d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x160368=!0x1;const _0x3c89d4=_0x3d17f6();function _0x31648c(_0x5acbc3){return!!_0x5acbc3&&(typeof _0x5acbc3===_0x3d284d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5acbc3===_0x3d284d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5acbc3[_0x3d284d([0x74,0x68,0x65,0x6e])]===_0x3d284d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5acbc3[_0x3d284d([0x63,0x61,0x74,0x63,0x68])]===_0x3d284d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c7d8d(_0x208158){_0x1d136d(_0x208158)[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x4094e8=>{if(!_0x4094e8||_0x4094e8[_0x3d284d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d284d([0x6f,0x6b]))return _0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a9c29(_0x3208be(_0x3c89d4+_0x5a8ab7))!=_0x4094e8[_0x3d284d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d284d([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x224b71=>(_0x25de8f(),_0x224b71),()=>{const _0x557ae2=_0x486ceb();return null==_0x557ae2?(_0x25de8f(),_0x3d284d([0x56,0x61,0x6c,0x69,0x64])):_0x3d284d(_0x44a8cb-_0x557ae2>(0x47e1ed52^_0x376c4e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d284d([0x74,0x68,0x65,0x6e])](_0xc4edd3)[_0x3d284d([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc4edd3(_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6ac092=0x63db87d2^_0x376c4e;function _0x25de8f(){const _0x2d365b=_0x3d284d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a9c29(_0x3208be(_0x1e0af3)),_0x523509=_0x2f992b(_0x3a9c29(window[_0x3d284d([0x4d,0x61,0x74,0x68])][_0x3d284d([0x63,0x65,0x69,0x6c])](_0x44a8cb/_0x6ac092)));window[_0x3d284d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d284d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d365b,_0x523509);}function _0x486ceb(){const _0x3967d2=_0x3d284d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a9c29(_0x3208be(_0x1e0af3)),_0x3808bf=window[_0x3d284d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d284d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3967d2);return _0x3808bf?window[_0x3d284d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f992b(_0x3808bf),0x10)*_0x6ac092:null;}function _0x1d136d(_0x1b95e6){return new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc75395,_0x24b9b1)=>{_0x1b95e6[_0x3d284d([0x74,0x68,0x65,0x6e])](_0xc75395,_0x24b9b1),window[_0x3d284d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24b9b1,0x63ecbd92^_0x376c4e);});}}_0x185372[_0x3d284d([0x6f,0x6e])](_0x3d284d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b407e,_0xd6c7dd)=>{if(_0xd6c7dd[0x0]!=_0x1e0af3)return _0xc4edd3(_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd6c7dd[0x1]={..._0xd6c7dd[0x1],[_0x3d284d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c89d4};},{[_0x3d284d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d284d([0x68,0x69,0x67,0x68])}),_0x185372[_0x3d284d([0x6f,0x6e])](_0x3d284d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ad1c5=>{_0x31648c(_0x2ad1c5[_0x3d284d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x160368=!0x0,_0x1c7d8d(_0x2ad1c5[_0x3d284d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d284d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d284d([0x6c,0x6f,0x77])}),_0xd7812a[_0x3d284d([0x74,0x68,0x65,0x6e])](()=>{_0x160368||_0xc4edd3(_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x136dce(){return _0x185372[_0x3d284d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d284d([0x76,0x69,0x65,0x77])][_0x3d284d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d284d([0x61,0x75,0x74,0x6f]);}function _0x3932b8(){_0x185372[_0x3d284d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d284d([0x76,0x69,0x65,0x77])][_0x3d284d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d284d([0x61,0x75,0x74,0x6f]);}}function _0xec1b62(_0x218336){const _0x56b55a=[new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x71fefa=>setTimeout(_0x71fefa,0x63e4579e^_0x376c4e)),_0xd7812a[_0x3d284d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x123c9a=>{let _0x31bd6b=0x0;_0x185372[_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d284d([0x6f,0x6e])](_0x3d284d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x569dad,_0x2e3b4c)=>{_0x2e3b4c[0x0][_0x3d284d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x31bd6b++,_0x31bd6b==(0x63ed68aa^_0x376c4e)&&(_0x123c9a(),_0x569dad[_0x3d284d([0x6f,0x66,0x66])]());});}))];return window[_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d284d([0x72,0x61,0x63,0x65])](_0x56b55a)[_0x3d284d([0x74,0x68,0x65,0x6e])](()=>_0x218336);}async function _0x154ee3(){await _0xd7812a,_0x185372[_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d284d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50d4fa,_0x185372[_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d284d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50d4fa,_0x185372[_0x3d284d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54dfff(_0x5429f6){const _0x1bd2f3=_0x4b7ed5();_0x185372[_0x1bd2f3]=_0x3d284d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5429f6,_0x5429f6!=_0x3d284d([0x56,0x61,0x6c,0x69,0x64])&&_0x154ee3();}function _0x4b7ed5(){const _0x271091=window[_0x3d284d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d284d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d284d([0x6e,0x6f,0x77])]())[_0x3d284d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d284d([0x2e]),'');let _0x353bf3=_0x3d284d([0x76]);for(let _0x5419dd=0x0;_0x5419dd<_0x271091[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5419dd+=0x2){let _0x45ff61=window[_0x3d284d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271091[_0x3d284d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5419dd,_0x5419dd+0x2));_0x45ff61>=_0x2c5383[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45ff61-=_0x2c5383[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x353bf3+=_0x2c5383[_0x45ff61];}return _0x353bf3;}function _0x5c1e7e(){const _0x1f396e=_0x590234[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e]));if(0x3!=_0x1f396e[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1979ea(_0x1f396e[0x1]);function _0x1979ea(_0x581736){const _0x54417f=_0x48338a(_0x581736);return _0x54417f&&_0x12799a()?_0x54417f:null;function _0x12799a(){const _0x373c61=_0x54417f[_0x3d284d([0x6a,0x74,0x69])],_0x1e3b32=window[_0x3d284d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x373c61[_0x3d284d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x373c61[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a62bb={..._0x54417f,[_0x3d284d([0x6a,0x74,0x69])]:_0x373c61[_0x3d284d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x373c61[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a62bb[_0x3d284d([0x76,0x63])],_0x3208be(_0x1a62bb)==_0x1e3b32;}}}async function _0xe4ccf9(){let _0x2f6345=!0x0;try{const _0x4fbc8=_0x590234[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e])),[_0x2ced20,_0x293947,_0x21b431]=_0x4fbc8;return _0x28af2b(_0x2ced20),await _0x20b237(_0x2ced20,_0x293947,_0x21b431),_0x2f6345;}catch(_0x4f0168){return!0x1;}function _0x28af2b(_0x3a592e){const _0x3fe577=_0x48338a(_0x3a592e);_0x3fe577&&_0x3fe577[_0x3d284d([0x61,0x6c,0x67])]==_0x3d284d([0x45,0x53,0x32,0x35,0x36])||(_0x2f6345=!0x1);}async function _0x20b237(_0x1e01a9,_0x2a882a,_0x15314e){const _0x25f45a=window[_0x3d284d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d284d([0x66,0x72,0x6f,0x6d])](_0x225aeb(_0x15314e),_0x241f09=>_0x241f09[_0x3d284d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10f21a=new window[(_0x3d284d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d284d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e01a9+_0x3d284d([0x2e])+_0x2a882a),_0x2f4182=window[_0x3d284d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d284d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f4182)return;const _0x3dae2e=await _0x2f4182[_0x3d284d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d284d([0x6a,0x77,0x6b]),_0x47a2b1,{[_0x3d284d([0x6e,0x61,0x6d,0x65])]:_0x3d284d([0x45,0x43,0x44,0x53,0x41]),[_0x3d284d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d284d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d284d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f4182[_0x3d284d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d284d([0x6e,0x61,0x6d,0x65])]:_0x3d284d([0x45,0x43,0x44,0x53,0x41]),[_0x3d284d([0x68,0x61,0x73,0x68])]:{[_0x3d284d([0x6e,0x61,0x6d,0x65])]:_0x3d284d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3dae2e,_0x25f45a,_0x10f21a)||(_0x2f6345=!0x1);}}function _0x48338a(_0x32740c){return _0x32740c[_0x3d284d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d284d([0x65,0x79]))?JSON[_0x3d284d([0x70,0x61,0x72,0x73,0x65])](_0x225aeb(_0x32740c)):null;}function _0x225aeb(_0x1c1990){return window[_0x3d284d([0x61,0x74,0x6f,0x62])](_0x1c1990[_0x3d284d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d284d([0x2b]))[_0x3d284d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d284d([0x2f])));}function _0x3208be(_0x494d74){let _0x2f7da1=0x1505;function _0x2e00bb(_0x23b98d){for(let _0x28e840=0x0;_0x28e840<_0x23b98d[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28e840++){const _0x6e81aa=_0x23b98d[_0x3d284d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x28e840);_0x2f7da1=(_0x2f7da1<<0x5)+_0x2f7da1+_0x6e81aa,_0x2f7da1&=_0x2f7da1;}}function _0x43e304(_0x391acb){Array[_0x3d284d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x391acb)?_0x391acb[_0x3d284d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43e304):_0x391acb&&typeof _0x391acb==_0x3d284d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d284d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x391acb)[_0x3d284d([0x73,0x6f,0x72,0x74])]()[_0x3d284d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37bfde,_0x46450d])=>{_0x2e00bb(_0x37bfde),_0x43e304(_0x46450d);}):_0x2e00bb(window[_0x3d284d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x391acb));}return _0x43e304(_0x494d74),_0x2f7da1>>>0x0;}function _0x3a9c29(_0x9e7fa9){return _0x9e7fa9[_0x3d284d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d284d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d284d([0x30]));}function _0x2f992b(_0x275084){return _0x275084[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d284d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d284d([0x6a,0x6f,0x69,0x6e])]('');}function _0x50d4fa(){}function _0x3d284d(_0x1d8cb5){return _0x1d8cb5['map'](_0x7b2189=>String['fromCharCode'](_0x7b2189))['join']('');}_0x54dfff(await _0x4dcb07());}(this);}['_initSchema'](){const _0x47ddb2=this['editor']['model']['schema'];_0x47ddb2['isRegistered']('imageBlock')&&_0x47ddb2['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x47ddb2['isRegistered']('imageInline')&&_0x47ddb2['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2d921f=this['editor'];_0x2d921f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2d921f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4a3cd3=>_0x4a3cd3['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3aee99=_0x2d921f['commands']['get']('replaceImageSource');_0x3aee99&&this['listenTo'](_0x3aee99,'cleanupImage',(_0x145dd0,[_0x4bfa61,_0x1478d8])=>{_0x4bfa61['removeAttribute']('uploadcareImageId',_0x1478d8);});}['_initConfig'](){const _0x2aa769=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3555d0=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4dcd38(_0xe595b2['document'],'uc-config',{..._0x2aa769,'pubkey':_0x3555d0,'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']=_0x332c7d=>{if('closeMax'==_0x332c7d)return'#uc-icon-arrow-down';},_0xe595b2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4dcd38(_0xe595b2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xe595b2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x49eecd=this['editor']['commands']['get']('insertImage');_0x49eecd&&this['listenTo'](_0x49eecd,'execute',()=>{const _0xa28c56=this['editor']['model']['document']['selection']['getSelectedElement']();_0xa28c56&&_0xa28c56['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xa28c56);});});const _0x491489=this['editor']['commands']['get']('uploadcareImageReplace');_0x491489&&this['listenTo'](_0x491489,'execute',()=>{const _0x41270e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x41270e&&_0x41270e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x41270e);});});}}class u extends _0x117fa5{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4825ed){super(_0x4825ed),_0x4825ed['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x44a155['defineComponents'](_0x44a155);}}class ta extends _0x24f1ad{constructor(_0x3afbc6){super(_0x3afbc6);const t=_0x3afbc6['t'],_0x21d0f3=this['bindTemplate'],_0xd1104e=new _0x3a23a4();_0xd1104e['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':[_0xd1104e,{'text':_0x21d0f3['to']('imageUploadProgress',_0x4998aa=>t('Loading\x20image...')+'\x20('+(_0x4998aa||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 _0x24f1ad{constructor(_0x435e2d){super(_0x435e2d);const t=_0x435e2d['t'];this['set']('errorType',null);const _0x38ad3c=new _0x21406a(_0x435e2d);_0x38ad3c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x38ad3c['withText']=!0x0,_0x38ad3c['class']='ck-button-action',_0x38ad3c['on']('execute',()=>{this['fire']('retry');}),_0x38ad3c['bind']('isVisible')['to'](this,'errorType',_0x59677c=>'NotFound'!==_0x59677c);const _0x51344a=new at();_0x51344a['content']=et,_0x51344a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xe1e2e8=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':[_0x51344a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xe1e2e8['to']('errorType',_0x18484e=>t('NotFound'!==_0x18484e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x38ad3c]},{'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 _0x24f1ad{constructor(_0x414ea9,_0x448f21){super(_0x414ea9);const _0x5c5531=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x448f21,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5c5531['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x922ac1,_0x1c204c,_0x44ba93){super(_0x922ac1),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x922ac1),this['_errorView']=new rt(_0x922ac1),this['_editingView']=new tt(_0x922ac1,_0x44ba93),this['_focusableView']=new _0x24f1ad(_0x922ac1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1c204c),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'],_0x2e8481=>{this['_addUploadcareImageEditorListeners'](_0x2e8481);});}),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'](_0x7a5740,_0x49902d){const _0x1e2611='uc-cloud-image-editor',_0x236482=_0x7a5740['querySelector'](_0x1e2611);if(_0x236482)return _0x49902d(_0x236482);const _0x448836=new MutationObserver(_0xead2f3=>{const _0x25838c=_0xead2f3['filter'](_0x5b0c61=>_0x5b0c61['target']===_0x7a5740&&_0x5b0c61['addedNodes']['length']>0x0&&_0x5b0c61['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1e2611);_0x25838c['length']&&(_0x448836['disconnect'](),_0x49902d(_0x25838c[0x0]['addedNodes'][0x0]));});_0x448836['observe'](_0x7a5740,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4c7a5b){_0x4c7a5b['addEventListener']('apply',_0x3e51ec=>{this['fire']('apply',{'imageSrc':_0x3e51ec['detail']['cdnUrl']});}),_0x4c7a5b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1e4fd3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x368e1b,_0x2f3978,_0x532efb){super(),this['_editor']=_0x368e1b,this['_dialog']=_0x2f3978,this['_imageElement']=_0x532efb,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 _0x4f5b5a=this['_imageElement'],_0x9fc235=_0x4f5b5a['getAttribute']('uploadcareImageId'),_0x5ca961=_0x4f5b5a['getAttribute']('src');if(_0x9fc235)await this['_loadImageInfo'](_0x9fc235,_0x5ca961);else{if(this['_imageCache']['has'](_0x5ca961)){const _0x488036=this['_imageCache']['get'](_0x5ca961);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x488036['url'],this['imageDimension']=_0x488036['dimension'],this['imageId']=_0x488036['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3d43e1}=this['_editor'],t=_0x3d43e1['t'],_0x4c0b1d=new Z(_0x3d43e1,this['imageStatus'],this['_attributes']);_0x4c0b1d['bind']('status')['to'](this,'imageStatus'),_0x4c0b1d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4c0b1d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4c0b1d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4c0b1d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x55399e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4c0b1d,'position':_0x307bf2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4c0b1d['focus']();},'onHide':()=>{_0x4c0b1d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xd7b030=>!F(_0xd7b030,_0x4c0b1d['element'])}});}['_loadImageInfo'](_0x2e3041,_0x1217ec){return C['getInfo'](_0x2e3041,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x6bef15=>{const {width:_0x11d4af,height:_0x13789}=_0x6bef15['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1217ec,this['imageDimension']={'width':_0x11d4af,'height':_0x13789},this['imageId']=_0x2e3041;})['catch'](_0x3ff682=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3ff682['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xcc0492,_0x4a6348){return this['_getImageAsFile'](_0xcc0492)['then'](_0x4dd415=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4a6348['signal'],'file':_0x4dd415,'onProgress':_0x356c86=>{_0x356c86&&_0x356c86['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x356c86['value']));}}))['then'](_0x345871=>{const {width:_0x49a22c,height:_0x4e5071}=_0x345871['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x345871['cdnUrl'],this['imageDimension']={'width':_0x49a22c,'height':_0x4e5071},this['imageId']=_0x345871['uuid'],this['imageUploadProgress']=null;const _0x1b1ea5=_0xcc0492['getAttribute']('src');this['_imageCache']['set'](_0x1b1ea5,{'id':_0x345871['uuid'],'url':_0x345871['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x71ce63=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x71ce63['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x28e726,_0x4543b8){_0x28e726['on']('apply',(_0x1ddbc6,_0x372935)=>{this['_replaceImage'](_0x4543b8,_0x372935['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x28e726['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x28e726['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1efa7e,_0x97d1e,_0x43d358){const _0x1707d0=this['_editor'],{width:_0x1b0a68,height:_0x4ae80a}=A(_0x97d1e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1c810a,imageSources:_0x437033}=E(_0x97d1e,_0x1b0a68);_0x1707d0['model']['change'](_0x3a66f7=>{if('$graveyard'===_0x1efa7e['root']['rootName']){_0x1707d0['execute']('insertImage',{'imageType':_0x1efa7e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1efa7e['getAttributes']()),'uploadcareImageId':_0x43d358,'src':_0x1c810a,'sources':_0x437033,'width':_0x1b0a68,'height':_0x4ae80a}});const _0x44a6c0=_0x1efa7e['getChildren']();_0x1efa7e=_0x1707d0['model']['document']['selection']['getSelectedElement']();for(const _0x58af08 of _0x44a6c0)_0x3a66f7['append'](_0x3a66f7['cloneElement'](_0x58af08),_0x1efa7e);}else _0x3a66f7['setSelection'](_0x1efa7e,'on'),_0x1707d0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1efa7e['getAttributes']()),'uploadcareImageId':_0x43d358,'src':_0x1c810a,'sources':_0x437033,'width':_0x1b0a68,'height':_0x4ae80a},_0x1efa7e);_0x3a66f7['setSelection'](_0x1efa7e,'on');});}async['_getImageAsFile'](_0x520e3c){const _0x176c3b=_0xe595b2['window'],_0x1e70f1=_0xe595b2['document']['location']['href'],_0x569ed2=new _0x176c3b['URL'](_0x520e3c['getAttribute']('src'),_0x1e70f1);if('data:'===_0x569ed2['protocol']){const _0x4123b6=_0x569ed2['href']['split'](','),_0x126ba9=_0x4123b6[0x0]['match'](/:(.*?);/)[0x1],_0x2876fa=_0x126ba9['split']('/')[0x1],_0x319909=_0x176c3b['atob'](_0x4123b6[_0x4123b6['length']-0x1]);let _0x47d749=_0x319909['length'];const _0x3498c4=new _0x176c3b['Uint8Array'](_0x47d749);for(;_0x47d749--;)_0x3498c4[_0x47d749]=_0x319909['charCodeAt'](_0x47d749);return new _0x176c3b['File']([_0x3498c4],'image.'+_0x2876fa,{'type':_0x126ba9});}const _0x348696=_0x569ed2['href']['split']('/'),_0x5c8c3a=_0x348696[_0x348696['length']-0x1],_0x418184=_0x5c8c3a['split']('.')[0x1];return _0x176c3b['fetch'](_0x569ed2['href'])['then'](_0x2627b1=>_0x2627b1['clone']()['blob']())['then'](_0x2bea48=>new _0x176c3b['File']([_0x2bea48],_0x5c8c3a,{'type':'image/'+_0x418184}));}}class J extends _0x12d838{['imageEditController'];static get['requires'](){return[_0x206ecb];}['_isEditable'];constructor(_0x52821f){super(_0x52821f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x30bbac){const _0x5bf1c5=V(_0x30bbac);return _0x5274ba=>!(!_0x5274ba||!_0x5274ba['is']('element','imageBlock')&&!_0x5274ba['is']('element','imageInline'))&&(!!_0x5274ba['hasAttribute']('uploadcareImageId')||!!_0x5274ba['hasAttribute']('src')&&_0x5bf1c5(_0x5274ba['getAttribute']('src')));}(_0x52821f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16a201=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16a201);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2d1011=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2d1011&&(_0x2d1011['is']('element','imageBlock')||_0x2d1011['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x206ecb),_0x2d1011),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x12d838{['refresh'](){const _0x37f934=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x37f934&&(_0x37f934['is']('element','imageBlock')||_0x37f934['is']('element','imageInline')));}['execute'](_0x48a1ff){const _0x1ecb80=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4d647c=>{_0x4d647c['setAttributes'](_0x48a1ff,_0x1ecb80),_0x4d647c['removeAttribute']('srcset',_0x1ecb80),_0x4d647c['removeAttribute']('sizes',_0x1ecb80);});}}class g extends _0x117fa5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3b7af7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5cd953}=this;_0x5cd953['commands']['add']('uploadcareImageEdit',new J(_0x5cd953)),_0x5cd953['commands']['add']('uploadcareImageReplace',new O(_0x5cd953));}}class j extends _0x117fa5{['_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 _0x30cd47=this['editor'];_0x30cd47['ui']['componentFactory']['add']('uploadcareImageEdit',_0x31f11b=>{const _0x20b142=_0x30cd47['commands']['get']('uploadcareImageEdit'),_0x4c799d=new _0x21406a(_0x31f11b),t=_0x31f11b['t'];return _0x4c799d['set']({'icon':_0x55399e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4c799d['bind']('isEnabled')['to'](_0x20b142),_0x4c799d['bind']('isOn')['to'](_0x20b142,'isActive'),this['listenTo'](_0x4c799d,'execute',()=>{_0x30cd47['execute']('uploadcareImageEdit'),_0x30cd47['editing']['view']['focus']();}),_0x4c799d;}),this['_initConfig']();}['_initConfig'](){const _0x202622=_0x4dcd38(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x202622),this['listenTo'](this['editor'],'destroy',()=>{_0x202622['remove']();});}}class P extends _0x117fa5{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':_0x48e5fd=>0x1!=_0x48e5fd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2edc80=>{const {af:{dictionary:_0x1343a3,getPluralForm:_0x3d9da3}}={'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':_0x163092=>0x1!=_0x163092}};_0x2edc80['af']||={'dictionary':{},'getPluralForm':null},_0x2edc80['af']['dictionary']=Object['assign'](_0x2edc80['af']['dictionary'],_0x1343a3),_0x2edc80['af']['getPluralForm']=_0x3d9da3;})(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':_0xe697ec=>0x0==_0xe697ec?0x0:0x1==_0xe697ec?0x1:0x2==_0xe697ec?0x2:_0xe697ec%0x64>=0x3&&_0xe697ec%0x64<=0xa?0x3:_0xe697ec%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1d02af=>{const {ar:{dictionary:_0x9fa42e,getPluralForm:_0xb8bbbb}}={'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':_0x1844bd=>0x0==_0x1844bd?0x0:0x1==_0x1844bd?0x1:0x2==_0x1844bd?0x2:_0x1844bd%0x64>=0x3&&_0x1844bd%0x64<=0xa?0x3:_0x1844bd%0x64>=0xb?0x4:0x5}};_0x1d02af['ar']||={'dictionary':{},'getPluralForm':null},_0x1d02af['ar']['dictionary']=Object['assign'](_0x1d02af['ar']['dictionary'],_0x9fa42e),_0x1d02af['ar']['getPluralForm']=_0xb8bbbb;})(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':_0x564157=>0x1!=_0x564157}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1b47f7=>{const {ast:{dictionary:_0x5bc308,getPluralForm:_0x6b7e9b}}={'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':_0x266f8b=>0x1!=_0x266f8b}};_0x1b47f7['ast']||={'dictionary':{},'getPluralForm':null},_0x1b47f7['ast']['dictionary']=Object['assign'](_0x1b47f7['ast']['dictionary'],_0x5bc308),_0x1b47f7['ast']['getPluralForm']=_0x6b7e9b;})(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':_0x17fcb5=>0x1!=_0x17fcb5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x16bc9b=>{const {az:{dictionary:_0x249b9a,getPluralForm:_0x3e8a2b}}={'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':_0x2ac64e=>0x1!=_0x2ac64e}};_0x16bc9b['az']||={'dictionary':{},'getPluralForm':null},_0x16bc9b['az']['dictionary']=Object['assign'](_0x16bc9b['az']['dictionary'],_0x249b9a),_0x16bc9b['az']['getPluralForm']=_0x3e8a2b;})(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':_0x2fcfca=>_0x2fcfca%0xa==0x1&&_0x2fcfca%0x64!=0xb?0x0:_0x2fcfca%0xa>=0x2&&_0x2fcfca%0xa<=0x4&&(_0x2fcfca%0x64<0xa||_0x2fcfca%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1cfc04=>{const {be:{dictionary:_0x4be294,getPluralForm:_0x41ced7}}={'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':_0x32e08a=>_0x32e08a%0xa==0x1&&_0x32e08a%0x64!=0xb?0x0:_0x32e08a%0xa>=0x2&&_0x32e08a%0xa<=0x4&&(_0x32e08a%0x64<0xa||_0x32e08a%0x64>=0x14)?0x1:0x2}};_0x1cfc04['be']||={'dictionary':{},'getPluralForm':null},_0x1cfc04['be']['dictionary']=Object['assign'](_0x1cfc04['be']['dictionary'],_0x4be294),_0x1cfc04['be']['getPluralForm']=_0x41ced7;})(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':_0x4d21d9=>0x1!=_0x4d21d9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xe10a4f=>{const {bg:{dictionary:_0x1ef838,getPluralForm:_0x19e815}}={'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':_0x219050=>0x1!=_0x219050}};_0xe10a4f['bg']||={'dictionary':{},'getPluralForm':null},_0xe10a4f['bg']['dictionary']=Object['assign'](_0xe10a4f['bg']['dictionary'],_0x1ef838),_0xe10a4f['bg']['getPluralForm']=_0x19e815;})(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':_0x5d164b=>0x1!=_0x5d164b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x292453=>{const {bn:{dictionary:_0x458234,getPluralForm:_0x1567aa}}={'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':_0x44aab0=>0x1!=_0x44aab0}};_0x292453['bn']||={'dictionary':{},'getPluralForm':null},_0x292453['bn']['dictionary']=Object['assign'](_0x292453['bn']['dictionary'],_0x458234),_0x292453['bn']['getPluralForm']=_0x1567aa;})(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':_0x3a0cd9=>_0x3a0cd9%0xa==0x1&&_0x3a0cd9%0x64!=0xb?0x0:_0x3a0cd9%0xa>=0x2&&_0x3a0cd9%0xa<=0x4&&(_0x3a0cd9%0x64<0xa||_0x3a0cd9%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5a48ab=>{const {bs:{dictionary:_0x49d9ea,getPluralForm:_0x3d75ea}}={'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':_0x53b188=>_0x53b188%0xa==0x1&&_0x53b188%0x64!=0xb?0x0:_0x53b188%0xa>=0x2&&_0x53b188%0xa<=0x4&&(_0x53b188%0x64<0xa||_0x53b188%0x64>=0x14)?0x1:0x2}};_0x5a48ab['bs']||={'dictionary':{},'getPluralForm':null},_0x5a48ab['bs']['dictionary']=Object['assign'](_0x5a48ab['bs']['dictionary'],_0x49d9ea),_0x5a48ab['bs']['getPluralForm']=_0x3d75ea;})(window['CKEDITOR_TRANSLATIONS']||={});
|