@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250526.0 → 0.0.0-nightly-20250528.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xc86962,Command as _0x9ac5a3}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x25049f,IconGooglePhotos as _0x564b94,IconGoogleDrive as _0x1d5d74,IconFacebook as _0xaacdd,IconDropbox as _0x14f36c,IconUploadcareLink as _0x442616,IconUploadcareImageUpload as _0x14ad37,IconError as et,IconUploadcareImageEdit as _0x6999e3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1d210f,MenuBarMenuListItemButtonView as _0x5656d5,View as _0xf9404c,FocusCycler as _0x3928d9,Dialog as _0x205ef4,DialogViewPosition as _0x440fff,SpinnerView as _0x47c4d3,IconView as at,Notification as _0x1ee897}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x226a62,DomEmitterMixin as _0xf0d540,global as _0x18460b,getAncestors as _0x5707a5,ObservableMixin as _0x237a2f,createElement as _0x55311f,uid as _0x20e84d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2dc1bd}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4b06aa,info as _0x2b4dd7}from'@uploadcare/upload-client';import*as _0x2ec8f0 from'@uploadcare/file-uploader';var o=function(_0x2c8a26){return _0x2c8a26['Local']='local',_0x2c8a26['URL']='url',_0x2c8a26['Dropbox']='dropbox',_0x2c8a26['GDrive']='gdrive',_0x2c8a26['Facebook']='facebook',_0x2c8a26['GPhotos']='gphotos',_0x2c8a26['OneDrive']='onedrive',_0x2c8a26;}({});function _(_0x41dee5,_0x47e0ae,_0x5052ea){const t=_0x41dee5['t'],_0x4fc3bc=_0x41dee5['t'];switch(_0x47e0ae){case o['Local']:return{'text':_0x4fc3bc('Insert'===_0x5052ea?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4fc3bc('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5052ea?_0x4fc3bc('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4fc3bc('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5052ea?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5052ea?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5052ea?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5052ea?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5052ea?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x47e0ae;}}class e extends _0xc86962{['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 _0x5386d7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34b939;for(const _0x2a477c in _0x5386d7){const _0x108273=_0x2a477c,_0x39e393=_0x5386d7[_0x108273];if('uploadcareLicenseKeyValid'==_0x39e393||'uploadcareLicenseKeyInvalid'==_0x39e393||'uploadcareLicenseKeyExpired'==_0x39e393||'uploadcareLicenseKeyDomainLimit'==_0x39e393||'uploadcareLicenseKeyNotAllowed'==_0x39e393||'uploadcareLicenseKeyEvaluationLimit'==_0x39e393||'uploadcareLicenseKeyTrialLimit'==_0x39e393||'uploadcareLicenseKeyUsageLimit'==_0x39e393){delete _0x5386d7[_0x108273],_0x34b939=_0x39e393,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x34b939&&_0x5386d7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x34b939&&_0x5386d7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x34b939&&_0x5386d7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x34b939&&_0x5386d7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x34b939&&_0x5386d7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x34b939&&_0x5386d7['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x34b939&&_0x5386d7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x256a54}=this,_0x3bcbdb=_0x256a54['commands']['get']('uploadcare');if(!_0x3bcbdb)return;const _0x96039b=this['_normalizeConfigSourceList'](_0x256a54['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2abb79,_0x585479)=>{const _0x40e2e6=this['_getIntegrationKey'](_0x585479['type']);return _0x2abb79[_0x40e2e6]||(_0x2abb79[_0x40e2e6]=[]),_0x2abb79[_0x40e2e6]['push'](_0x585479),_0x2abb79;},{});_0x256a54['plugins']['has']('ImageInsertUI')&&_0x256a54['commands']['get']('uploadcare')&&Object['entries'](_0x96039b)['forEach'](([_0x3a2e0c,_0x3cfc5b])=>{_0x256a54['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3a2e0c,'observable':()=>_0x3bcbdb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3cfc5b),'formViewCreator':()=>this['_createDropdownButtons'](_0x3cfc5b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3cfc5b),'override':'assetManager'!==_0x3a2e0c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x8ec5c5){const {locale:_0x370f4f}=this['editor'];return _0x8ec5c5['map'](_0x49497c=>{const _0x54ca50=_(_0x370f4f,_0x49497c,'Insert');switch(_0x49497c){case o['Local']:return{'icon':_0x14ad37,'type':o['Local'],..._0x54ca50};case o['URL']:return{'icon':_0x442616,'type':o['URL'],..._0x54ca50};case o['Dropbox']:return{'icon':_0x14f36c,'type':o['Dropbox'],..._0x54ca50};case o['Facebook']:return{'icon':_0xaacdd,'type':o['Facebook'],..._0x54ca50};case o['GDrive']:return{'icon':_0x1d5d74,'type':o['GDrive'],..._0x54ca50};case o['GPhotos']:return{'icon':_0x564b94,'type':o['GPhotos'],..._0x54ca50};case o['OneDrive']:return{'icon':_0x25049f,'type':o['OneDrive'],..._0x54ca50};}});}['_getIntegrationKey'](_0x2d2d96){switch(_0x2d2d96){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x44830e,_0x40f83e){const _0x56d35b=this['editor'],_0x5e4f27=new _0x44830e(_0x56d35b['locale']),_0x4b0577=_0x56d35b['commands']['get']('uploadcare');return _0x5e4f27['bind']('isEnabled')['to'](_0x4b0577),_0x5e4f27['on']('execute',()=>{_0x4b0577['execute'](_0x40f83e);}),_0x5e4f27;}['_createToolbarButton'](_0xfc864f){const {locale:_0x566dc6}=this['editor'],_0x2992fd=this['editor']['plugins']['get']('ImageInsertUI'),_0x41d9fd=_0xfc864f[0x0],_0x221998=this['_createButton'](_0x1d210f,_0x41d9fd['type']);return _0x221998['icon']=_0x41d9fd['icon'],_0x221998['bind']('label')['to'](_0x2992fd,'isImageSelected',_0x343d4b=>_(_0x566dc6,_0x41d9fd['type'],_0x343d4b?'Replace':'Insert')['text']),_0x221998['tooltip']=!0x0,_0x221998;}['_createDropdownButtons'](_0xa50f79){const {locale:_0x289873}=this['editor'],_0x4feea3=this['editor']['plugins']['get']('ImageInsertUI');return _0xa50f79['map'](_0x47fd9b=>{const _0x3ebaf3=this['_createButton'](_0x1d210f,_0x47fd9b['type']);return _0x3ebaf3['withText']=!0x0,_0x3ebaf3['icon']=_0x47fd9b['icon'],_0x3ebaf3['bind']('label')['to'](_0x4feea3,'isImageSelected',_0x57222a=>_(_0x289873,_0x47fd9b['type'],_0x57222a?'Replace':'Insert')['text']),_0x3ebaf3;});}['_createMenuBarButtons'](_0x155488){return _0x155488['map'](_0x3ffce6=>{const _0x2ef118=this['_createButton'](_0x5656d5,_0x3ffce6['type']);return _0x2ef118['icon']=_0x3ffce6['icon'],_0x2ef118['label']=_0x3ffce6['shortText'],_0x2ef118;});}}class q extends _0xf9404c{['focusTracker'];['focusCycler'];constructor(_0x3baa0f){super(_0x3baa0f),this['focusTracker']=new _0x226a62(),this['focusCycler']=new _0x3928d9({'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(_0x2c5434){super(_0x2c5434),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(_0x560273,_0x1ea462){const _0x21df0a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x122cb5=>_0x122cb5<=_0x1ea462)['map'](_0x22c27f=>_0x560273['replace'](/\/$/,'')+'/-/resize/'+_0x22c27f+'x/\x20'+_0x22c27f+'w');return{'imageFallbackUrl':_0x560273,'imageSources':[{'srcset':_0x21df0a['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1ea462+'px)\x20100vw,\x20'+_0x1ea462+'px','type':'image/webp'}]};}function A(_0x2009b8,_0x3a1d42,_0x169f5e){const _0x3ec342=_0x2009b8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3ec342?parseInt(_0x3ec342[0x1],0xa):_0x3a1d42,'height':_0x3ec342?parseInt(_0x3ec342[0x2],0xa):_0x169f5e};}function m(_0x206e06,_0x1afa6b){const _0x323aeb=Object['create'](_0xf0d540),_0x1a5df3=_0x206e06['plugins']['get']('ImageUtils'),_0x49ec0b=_0x206e06['editing']['mapper']['toViewElement'](_0x1afa6b),_0x45e6a9=_0x1a5df3['findViewImgElement'](_0x49ec0b),_0x350eb8=_0x206e06['editing']['view']['domConverter']['viewToDom'](_0x45e6a9),_0x4a824e=_0x1afa6b['getAttribute']('width'),_0x136a06=_0x1afa6b['getAttribute']('height'),_0x2a586c='image-processing';_0x206e06['editing']['view']['change'](_0x4e5aa4=>{_0x4e5aa4['addClass'](_0x2a586c,_0x49ec0b),_0x4e5aa4['setStyle']('aspect-ratio',_0x4a824e+'/'+_0x136a06,_0x45e6a9);}),_0x323aeb['listenTo'](_0x350eb8,'load',()=>{_0x323aeb['stopListening'](_0x350eb8,'load'),_0x206e06['editing']['view']['change'](_0x1cf9c8=>{_0x1cf9c8['removeClass'](_0x2a586c,_0x49ec0b),_0x1cf9c8['removeStyle']('aspect-ratio',_0x45e6a9);});});}function V(_0x1d8b45){if(Array['isArray'](_0x1d8b45)){const _0x503dc1=_0x1d8b45['map'](V);return _0x53c429=>_0x503dc1['some'](_0x57b871=>_0x57b871(_0x53c429));}if('origin'==_0x1d8b45){const _0x3a1577=_0x18460b['window']['location']['origin'];return _0x20e0e0=>new URL(_0x20e0e0,_0x18460b['document']['baseURI'])['origin']==_0x3a1577;}return'function'==typeof _0x1d8b45?_0x1d8b45:_0x1d8b45 instanceof RegExp?_0x5e1e30=>!(!_0x5e1e30['match'](_0x1d8b45)&&!_0x5e1e30['replace'](/^https?:\/\//,'')['match'](_0x1d8b45)):()=>!0x1;}function F(_0x3b1954,_0x5e9ec8){return _0x5707a5(_0x3b1954['target'])['includes'](_0x5e9ec8);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x237a2f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1a836d,_0x1282cc,_0x5c90a7){super(),this['_editor']=_0x1a836d,this['_editing']=_0x1282cc,this['_dialog']=_0x1a836d['plugins']['get'](_0x205ef4),this['_api']=_0x1282cc['ctxElement']['getAPI'](),this['_type']=_0x5c90a7,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:_0x40ef17,model:_0x4b7024}=this['_editor'],_0x358f95=_0x4b7024['document']['selection']['getSelectedElement'](),_0x170f34=_0x358f95&&(_0x358f95['is']('element','imageBlock')||_0x358f95['is']('element','imageInline'));this['_formView']=new S(_0x40ef17),this['_dialog']['show']({'id':'uploadCare','icon':_0x14ad37,'title':_(_0x40ef17,this['_type'],_0x170f34?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x440fff['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x33feab=>!F(_0x33feab,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x431685}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4f6819=>{const _0x2144c0=_0x431685['length'];for(const _0x3ccfa8 of _0x431685){const _0x5207a0=_0x3ccfa8===_0x431685[_0x2144c0-0x1],{cdnUrl:_0xeaadba,fileInfo:_0x44d318}=_0x3ccfa8;if(!_0xeaadba||!_0x44d318)continue;const {width:_0x343327,height:_0x371b03}=_0x44d318['imageInfo'],_0x28691e=A(_0xeaadba,_0x343327,_0x371b03),_0x2274d0=E(_0xeaadba,_0x28691e['width']),_0x4900b1={'id':_0x44d318['uuid'],'type':'image','attributes':{'imageDimension':_0x28691e,..._0x2274d0}};this['_insertAsset'](_0x4900b1,_0x5207a0,_0x4f6819);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x414d82=>{'idle'===_0x414d82['detail']['status']&&!_0x414d82['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1f97d2,_0x56a15f,_0x3df40e){const _0x166152=this['_editor']['model']['document']['selection'],_0x3ab99d=_0x166152['getSelectedElement'](),_0x2b7e6e=!(!_0x3ab99d||!_0x3ab99d['is']('element','imageInline'));_0x3df40e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1f97d2,_0x2b7e6e),_0x56a15f||_0x3df40e['setSelection'](_0x166152['getLastPosition']());}['_insertImage'](_0x32e31f,_0x338142){const _0x23b6ac=this['_editor'],{imageDimension:_0x133259,imageFallbackUrl:_0x3cf9d3,imageSources:_0x218930}=_0x32e31f['attributes'];_0x23b6ac['execute']('insertImage',{'imageType':_0x338142?'imageInline':null,'source':{'uploadcareImageId':_0x32e31f['id'],'src':_0x3cf9d3,'sources':_0x218930,..._0x133259}});}}class n extends _0x9ac5a3{['_editing'];['_controller']=null;static get['requires'](){return[_0x205ef4,i];}constructor(_0x4f1590){super(_0x4f1590),this['_editing']=_0x4f1590['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4a831e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4a831e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3cfb72,publicKey:_0x41aa10,signal:_0x15a89a,onProgress:_0x1d5fb7}){return _0x4b06aa(_0x3cfb72,{'publicKey':_0x41aa10,'store':'auto','signal':_0x15a89a,'onProgress':_0x1d5fb7});}static['getInfo'](_0x268f64,_0x40afa7){return _0x2b4dd7(_0x268f64,_0x40afa7);}}class p extends _0xc86962{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2dc1bd,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x56524f=this['editor'];if(!!!_0x56524f['config']['get']('uploadcare'))return;_0x56524f['plugins']['get'](_0x2dc1bd)['createUploadAdapter']=_0x1c11af=>new x(_0x1c11af,_0x56524f),_0x56524f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x169d65,{imageElement:_0x114c91,data:_0x441d4a})=>{_0x56524f['model']['change'](_0x1c9af1=>{_0x1c9af1['setAttribute']('uploadcareImageId',_0x441d4a['uploadcareImageId'],_0x114c91);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5af134,_0x5c44cc){this['loader']=_0x5af134,this['editor']=_0x5c44cc,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5f3f18=this['editor']['config']['get']('uploadcare.pubkey'),_0x1cd935=await this['loader']['file'];return C['upload']({'file':_0x1cd935,'publicKey':_0x5f3f18,'signal':this['controller']['signal'],'onProgress':_0x433ee5=>{_0x433ee5&&_0x433ee5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x433ee5['value']);}})['then'](async _0x5f3f54=>{const {imageFallbackUrl:_0x3f0017,imageSources:_0x5937aa}=E(_0x5f3f54['cdnUrl'],_0x5f3f54['imageInfo']['width']);return{'uploadcareImageId':_0x5f3f54['uuid'],'default':_0x3f0017,'sources':_0x5937aa};})['catch'](()=>{const _0x5714c4=t('Cannot\x20upload\x20file:')+('\x20'+_0x1cd935['name']+'.');return Promise['reject'](_0x5714c4);});}['abort'](){this['controller']['abort']();}}class i extends _0xc86962{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x205ef4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x51e8de=this['editor'];_0x51e8de['commands']['add']('uploadcare',new n(_0x51e8de));}['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 _0xeac3d7=_0x18460b['document']['querySelector']('input[uploadcare-file-input]');_0xeac3d7&&_0xeac3d7['remove']();}),async function(_0x2d32c9){const _0x2f9d79=_0x5eb79b([0x6c,0x47,0x75,0x39,0x4e,0x4a,0x33,0x6f,0x4c,0x50,0x51,0x53,0x57,0x31,0x6a,0x7a,0x55,0x4d,0x38,0x46,0x44,0x68,0x34,0x62,0x66,0x30,0x54,0x65,0x6d,0x6b,0x41,0x6e,0x52,0x74,0x37,0x71,0x70,0x49,0x77,0x73,0x72,0x61,0x4b,0x58,0x56,0x4f,0x59,0x45,0x48,0x42,0x36,0x69,0x63,0x5a,0x67,0x43,0x35,0x64,0x79,0x76,0x78,0x32]),_0x5e810a=0xd9d1e7a,_0x3cb71a=0xd9a768a^_0x5e810a,_0x1f4706=window[_0x5eb79b([0x44,0x61,0x74,0x65])][_0x5eb79b([0x6e,0x6f,0x77])](),_0x929c21=_0x2d32c9[_0x5eb79b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a1426=new window[(_0x5eb79b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x85b4e=>{_0x929c21[_0x5eb79b([0x6f,0x6e,0x63,0x65])](_0x5eb79b([0x72,0x65,0x61,0x64,0x79]),_0x85b4e);}),_0x7b329a={[_0x5eb79b([0x6b,0x74,0x79])]:_0x5eb79b([0x45,0x43]),[_0x5eb79b([0x75,0x73,0x65])]:_0x5eb79b([0x73,0x69,0x67]),[_0x5eb79b([0x63,0x72,0x76])]:_0x5eb79b([0x50,0x2d,0x32,0x35,0x36]),[_0x5eb79b([0x78])]:_0x5eb79b([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]),[_0x5eb79b([0x79])]:_0x5eb79b([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]),[_0x5eb79b([0x61,0x6c,0x67])]:_0x5eb79b([0x45,0x53,0x32,0x35,0x36])},_0x3f5f9f=_0x929c21[_0x5eb79b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5eb79b([0x67,0x65,0x74])](_0x5eb79b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e30b5(){let _0xdb47da,_0x4f10ff=null,_0x1bed2f=null;try{if(_0x3f5f9f==_0x5eb79b([0x47,0x50,0x4c]))return _0x5eb79b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdb47da=_0x35a8c6(),!_0xdb47da)return _0x5eb79b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdb47da[_0x5eb79b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bed2f=_0x41c16e(_0xdb47da[_0x5eb79b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdb47da[_0x5eb79b([0x6a,0x74,0x69])])),await _0x391a50()?_0x489579()?_0x102efd()?_0x5eb79b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b7277()?(_0xdb47da[_0x5eb79b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5eb79b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f10ff=_0x477bd7(_0x5eb79b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xdb47da[_0x5eb79b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5eb79b([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f10ff=_0x477bd7(_0x5eb79b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x134176()):_0x5eb79b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5eb79b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5eb79b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x39adee){return _0x5eb79b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x102efd(){const _0x3a952c=[_0x5eb79b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5eb79b([0x74,0x72,0x69,0x61,0x6c])][_0x5eb79b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdb47da[_0x5eb79b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f4706/0x3e8:0xe10*_0x3cb71a;return _0xdb47da[_0x5eb79b([0x65,0x78,0x70])]<_0x3a952c;}function _0x489579(){const _0x5de631=_0xdb47da[_0x5eb79b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5de631&&(!!_0x5de631[_0x5eb79b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eb79b([0x2a]))||!!_0x5de631[_0x5eb79b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eb79b([0x55,0x50,0x4c,0x43])));}function _0x5b7277(){const _0x150214=_0xdb47da[_0x5eb79b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x150214||0x0==_0x150214[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4cbea3}=new URL(window[_0x5eb79b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x150214[_0x5eb79b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cbea3))return!0x0;const _0x41862b=_0x4cbea3[_0x5eb79b([0x73,0x70,0x6c,0x69,0x74])](_0x5eb79b([0x2e]));return _0x150214[_0x5eb79b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40fe7e=>_0x40fe7e[_0x5eb79b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eb79b([0x2a])))[_0x5eb79b([0x6d,0x61,0x70])](_0x19641d=>_0x19641d[_0x5eb79b([0x73,0x70,0x6c,0x69,0x74])](_0x5eb79b([0x2e])))[_0x5eb79b([0x73,0x6f,0x6d,0x65])](_0x387696=>_0x41862b[_0x5eb79b([0x65,0x76,0x65,0x72,0x79])]((_0x26d497,_0x4007f4)=>_0x387696[_0x4007f4]===_0x26d497||_0x387696[_0x4007f4]===_0x5eb79b([0x2a])));}function _0x134176(){return _0x4f10ff&&_0x1bed2f?new window[(_0x5eb79b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c3fd6,_0x33c77a)=>{_0x4f10ff[_0x5eb79b([0x74,0x68,0x65,0x6e])](_0x2c3fd6,_0x33c77a),_0x1bed2f[_0x5eb79b([0x74,0x68,0x65,0x6e])](_0x1ac620=>{_0x1ac620!=_0x5eb79b([0x56,0x61,0x6c,0x69,0x64])&&_0x2c3fd6(_0x1ac620);},_0x33c77a);}):_0x4f10ff||_0x1bed2f||_0x5eb79b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x41c16e(_0x444486,_0x3b4d25){return new window[(_0x5eb79b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20eae0=>{if(_0x4c9a33())return _0x20eae0(_0x5eb79b([0x56,0x61,0x6c,0x69,0x64]));_0x5acd46(),_0x929c21[_0x5eb79b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5eb79b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1aa19b=!0x1;const _0x458d45=_0x20e84d();function _0x200fcd(_0x5e61b9){return!!_0x5e61b9&&(typeof _0x5e61b9===_0x5eb79b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e61b9===_0x5eb79b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e61b9[_0x5eb79b([0x74,0x68,0x65,0x6e])]===_0x5eb79b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e61b9[_0x5eb79b([0x63,0x61,0x74,0x63,0x68])]===_0x5eb79b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ebfa3(_0x56d812){_0x5011c3(_0x56d812)[_0x5eb79b([0x74,0x68,0x65,0x6e])](_0x14e7d3=>{if(!_0x14e7d3||_0x14e7d3[_0x5eb79b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5eb79b([0x6f,0x6b]))return _0x5eb79b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x55720d(_0x540b36(_0x458d45+_0x3b4d25))!=_0x14e7d3[_0x5eb79b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5eb79b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5eb79b([0x56,0x61,0x6c,0x69,0x64]);})[_0x5eb79b([0x74,0x68,0x65,0x6e])](_0x389557=>(_0x2cdb37(),_0x389557),()=>{const _0x513163=_0x21c79c();return null==_0x513163?(_0x2cdb37(),_0x5eb79b([0x56,0x61,0x6c,0x69,0x64])):_0x5eb79b(_0x1f4706-_0x513163>(0x29919a7a^_0x5e810a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5eb79b([0x74,0x68,0x65,0x6e])](_0x20eae0)[_0x5eb79b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x20eae0(_0x5eb79b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59aaa1=0xdabf0fa^_0x5e810a;function _0x2cdb37(){const _0x23ecf6=_0x5eb79b([0x6c,0x6c,0x63,0x74,0x2d])+_0x55720d(_0x540b36(_0x444486)),_0x151b1e=_0x8bd1f8(_0x55720d(window[_0x5eb79b([0x4d,0x61,0x74,0x68])][_0x5eb79b([0x63,0x65,0x69,0x6c])](_0x1f4706/_0x59aaa1)));window[_0x5eb79b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5eb79b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23ecf6,_0x151b1e);}function _0x21c79c(){const _0x51f67f=_0x5eb79b([0x6c,0x6c,0x63,0x74,0x2d])+_0x55720d(_0x540b36(_0x444486)),_0x31d725=window[_0x5eb79b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5eb79b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51f67f);return _0x31d725?window[_0x5eb79b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8bd1f8(_0x31d725),0x10)*_0x59aaa1:null;}function _0x5011c3(_0xefb6dd){return new window[(_0x5eb79b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x494372,_0x5a60c3)=>{_0xefb6dd[_0x5eb79b([0x74,0x68,0x65,0x6e])](_0x494372,_0x5a60c3),window[_0x5eb79b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a60c3,0xd9ccaba^_0x5e810a);});}}_0x929c21[_0x5eb79b([0x6f,0x6e])](_0x5eb79b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13248f,_0x37011c)=>{if(_0x37011c[0x0]!=_0x444486)return _0x20eae0(_0x5eb79b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37011c[0x1]={..._0x37011c[0x1],[_0x5eb79b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x458d45};},{[_0x5eb79b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5eb79b([0x68,0x69,0x67,0x68])}),_0x929c21[_0x5eb79b([0x6f,0x6e])](_0x5eb79b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e7795=>{_0x200fcd(_0x1e7795[_0x5eb79b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1aa19b=!0x0,_0x3ebfa3(_0x1e7795[_0x5eb79b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5eb79b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5eb79b([0x6c,0x6f,0x77])}),_0x3a1426[_0x5eb79b([0x74,0x68,0x65,0x6e])](()=>{_0x1aa19b||_0x20eae0(_0x5eb79b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c9a33(){return _0x929c21[_0x5eb79b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5eb79b([0x76,0x69,0x65,0x77])][_0x5eb79b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5eb79b([0x61,0x75,0x74,0x6f]);}function _0x5acd46(){_0x929c21[_0x5eb79b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5eb79b([0x76,0x69,0x65,0x77])][_0x5eb79b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5eb79b([0x61,0x75,0x74,0x6f]);}}function _0x477bd7(_0x57a65e){const _0xb20a99=[new window[(_0x5eb79b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x544453=>setTimeout(_0x544453,0xd9420b6^_0x5e810a)),_0x3a1426[_0x5eb79b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5eb79b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf470c9=>{let _0x397daf=0x0;_0x929c21[_0x5eb79b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eb79b([0x6f,0x6e])](_0x5eb79b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x17f173,_0x5052ff)=>{_0x5052ff[0x0][_0x5eb79b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x397daf++,_0x397daf==(0xd9d1f82^_0x5e810a)&&(_0xf470c9(),_0x17f173[_0x5eb79b([0x6f,0x66,0x66])]());});}))];return window[_0x5eb79b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5eb79b([0x72,0x61,0x63,0x65])](_0xb20a99)[_0x5eb79b([0x74,0x68,0x65,0x6e])](()=>_0x57a65e);}async function _0x413800(){await _0x3a1426,_0x929c21[_0x5eb79b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eb79b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x221113,_0x929c21[_0x5eb79b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eb79b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x221113,_0x929c21[_0x5eb79b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5eb79b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb45e62(_0x5b151e){const _0x52cc1d=_0x45358e();_0x929c21[_0x52cc1d]=_0x5eb79b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b151e,_0x5b151e!=_0x5eb79b([0x56,0x61,0x6c,0x69,0x64])&&_0x413800();}function _0x45358e(){const _0x242c08=window[_0x5eb79b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5eb79b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5eb79b([0x6e,0x6f,0x77])]())[_0x5eb79b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5eb79b([0x2e]),'');let _0x5505f5=_0x5eb79b([0x6c]);for(let _0x5b35a9=0x0;_0x5b35a9<_0x242c08[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b35a9+=0x2){let _0x545a34=window[_0x5eb79b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x242c08[_0x5eb79b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b35a9,_0x5b35a9+0x2));_0x545a34>=_0x2f9d79[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x545a34-=_0x2f9d79[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5505f5+=_0x2f9d79[_0x545a34];}return _0x5505f5;}function _0x35a8c6(){const _0xe626=_0x3f5f9f[_0x5eb79b([0x73,0x70,0x6c,0x69,0x74])](_0x5eb79b([0x2e]));if(0x3!=_0xe626[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x421665(_0xe626[0x1]);function _0x421665(_0x4edae5){const _0x4234dd=_0x3fbd1a(_0x4edae5);return _0x4234dd&&_0x23e4ba()?_0x4234dd:null;function _0x23e4ba(){const _0x244eb2=_0x4234dd[_0x5eb79b([0x6a,0x74,0x69])],_0x5d23de=window[_0x5eb79b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x244eb2[_0x5eb79b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x244eb2[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26b130={..._0x4234dd,[_0x5eb79b([0x6a,0x74,0x69])]:_0x244eb2[_0x5eb79b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x244eb2[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26b130[_0x5eb79b([0x76,0x63])],_0x540b36(_0x26b130)==_0x5d23de;}}}async function _0x391a50(){let _0x483a87=!0x0;try{const _0x4de7bb=_0x3f5f9f[_0x5eb79b([0x73,0x70,0x6c,0x69,0x74])](_0x5eb79b([0x2e])),[_0x12b608,_0xb5f2f0,_0xecae75]=_0x4de7bb;return _0x3dfe24(_0x12b608),await _0x3687e4(_0x12b608,_0xb5f2f0,_0xecae75),_0x483a87;}catch(_0x22907f){return!0x1;}function _0x3dfe24(_0x4223cf){const _0x2f74e3=_0x3fbd1a(_0x4223cf);_0x2f74e3&&_0x2f74e3[_0x5eb79b([0x61,0x6c,0x67])]==_0x5eb79b([0x45,0x53,0x32,0x35,0x36])||(_0x483a87=!0x1);}async function _0x3687e4(_0x1ab446,_0x431843,_0x5b7ac5){const _0x319789=window[_0x5eb79b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5eb79b([0x66,0x72,0x6f,0x6d])](_0x1b8b62(_0x5b7ac5),_0x145d93=>_0x145d93[_0x5eb79b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45b577=new window[(_0x5eb79b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5eb79b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ab446+_0x5eb79b([0x2e])+_0x431843),_0x49da73=window[_0x5eb79b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5eb79b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x49da73)return;const _0x1a3d8d=await _0x49da73[_0x5eb79b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5eb79b([0x6a,0x77,0x6b]),_0x7b329a,{[_0x5eb79b([0x6e,0x61,0x6d,0x65])]:_0x5eb79b([0x45,0x43,0x44,0x53,0x41]),[_0x5eb79b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5eb79b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5eb79b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x49da73[_0x5eb79b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5eb79b([0x6e,0x61,0x6d,0x65])]:_0x5eb79b([0x45,0x43,0x44,0x53,0x41]),[_0x5eb79b([0x68,0x61,0x73,0x68])]:{[_0x5eb79b([0x6e,0x61,0x6d,0x65])]:_0x5eb79b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a3d8d,_0x319789,_0x45b577)||(_0x483a87=!0x1);}}function _0x3fbd1a(_0x13db69){return _0x13db69[_0x5eb79b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5eb79b([0x65,0x79]))?JSON[_0x5eb79b([0x70,0x61,0x72,0x73,0x65])](_0x1b8b62(_0x13db69)):null;}function _0x1b8b62(_0x557eb7){return window[_0x5eb79b([0x61,0x74,0x6f,0x62])](_0x557eb7[_0x5eb79b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5eb79b([0x2b]))[_0x5eb79b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5eb79b([0x2f])));}function _0x540b36(_0x31911b){let _0x3a4a25=0x1505;function _0x5e2916(_0x350a0d){for(let _0x41629f=0x0;_0x41629f<_0x350a0d[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41629f++){const _0x2d7dce=_0x350a0d[_0x5eb79b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x41629f);_0x3a4a25=(_0x3a4a25<<0x5)+_0x3a4a25+_0x2d7dce,_0x3a4a25&=_0x3a4a25;}}function _0x18ef2d(_0xd6fd5b){Array[_0x5eb79b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd6fd5b)?_0xd6fd5b[_0x5eb79b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18ef2d):_0xd6fd5b&&typeof _0xd6fd5b==_0x5eb79b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5eb79b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd6fd5b)[_0x5eb79b([0x73,0x6f,0x72,0x74])]()[_0x5eb79b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a97f3,_0x5c2b73])=>{_0x5e2916(_0x1a97f3),_0x18ef2d(_0x5c2b73);}):_0x5e2916(window[_0x5eb79b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd6fd5b));}return _0x18ef2d(_0x31911b),_0x3a4a25>>>0x0;}function _0x55720d(_0xb64c1a){return _0xb64c1a[_0x5eb79b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5eb79b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5eb79b([0x30]));}function _0x8bd1f8(_0x458bd0){return _0x458bd0[_0x5eb79b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5eb79b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5eb79b([0x6a,0x6f,0x69,0x6e])]('');}function _0x221113(){}function _0x5eb79b(_0x1f271a){return _0x1f271a['map'](_0x52d26a=>String['fromCharCode'](_0x52d26a))['join']('');}_0xb45e62(await _0x2e30b5());}(this);}['_initSchema'](){const _0x3c5eeb=this['editor']['model']['schema'];_0x3c5eeb['isRegistered']('imageBlock')&&_0x3c5eeb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3c5eeb['isRegistered']('imageInline')&&_0x3c5eeb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x280e55=this['editor'];_0x280e55['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x280e55['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1e1087=>_0x1e1087['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x27967b=_0x280e55['commands']['get']('replaceImageSource');_0x27967b&&this['listenTo'](_0x27967b,'cleanupImage',(_0x3afe72,[_0x4c2f8d,_0x4cf565])=>{_0x4c2f8d['removeAttribute']('uploadcareImageId',_0x4cf565);});}['_initConfig'](){const _0x28f451=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1e50a5=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x55311f(_0x18460b['document'],'uc-config',{..._0x28f451,'pubkey':_0x1e50a5,'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']=_0x44a800=>{if('closeMax'==_0x44a800)return'#uc-icon-arrow-down';},_0x18460b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x55311f(_0x18460b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x18460b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4ea609=this['editor']['commands']['get']('insertImage');_0x4ea609&&this['listenTo'](_0x4ea609,'execute',()=>{const _0x5f1c94=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5f1c94&&_0x5f1c94['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5f1c94);});});const _0x5c4c05=this['editor']['commands']['get']('uploadcareImageReplace');_0x5c4c05&&this['listenTo'](_0x5c4c05,'execute',()=>{const _0x559ee6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x559ee6&&_0x559ee6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x559ee6);});});}}class u extends _0xc86962{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3dfd5c){super(_0x3dfd5c),_0x3dfd5c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2ec8f0['defineComponents'](_0x2ec8f0);}}class ta extends _0xf9404c{constructor(_0x148a42){super(_0x148a42);const t=_0x148a42['t'],_0x4f6ea8=this['bindTemplate'],_0x5f1a48=new _0x47c4d3();_0x5f1a48['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':[_0x5f1a48,{'text':_0x4f6ea8['to']('imageUploadProgress',_0x3803bb=>t('Loading\x20image...')+'\x20('+(_0x3803bb||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 _0xf9404c{constructor(_0x5a87fa){super(_0x5a87fa);const t=_0x5a87fa['t'];this['set']('errorType',null);const _0x30945e=new _0x1d210f(_0x5a87fa);_0x30945e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x30945e['withText']=!0x0,_0x30945e['class']='ck-button-action',_0x30945e['on']('execute',()=>{this['fire']('retry');}),_0x30945e['bind']('isVisible')['to'](this,'errorType',_0x16e8d7=>'NotFound'!==_0x16e8d7);const _0x204c23=new at();_0x204c23['content']=et,_0x204c23['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2c5890=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':[_0x204c23,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2c5890['to']('errorType',_0x1a8f02=>t('NotFound'!==_0x1a8f02?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x30945e]},{'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 _0xf9404c{constructor(_0x511064,_0x543189){super(_0x511064);const _0x310678=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x543189,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x310678['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x20195a,_0x3533e8,_0x565869){super(_0x20195a),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x20195a),this['_errorView']=new rt(_0x20195a),this['_editingView']=new tt(_0x20195a,_0x565869),this['_focusableView']=new _0xf9404c(_0x20195a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3533e8),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'],_0x434954=>{this['_addUploadcareImageEditorListeners'](_0x434954);});}),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'](_0x336936,_0x4f115c){const _0x4acd43='uc-cloud-image-editor',_0x5b34a2=_0x336936['querySelector'](_0x4acd43);if(_0x5b34a2)return _0x4f115c(_0x5b34a2);const _0x385f27=new MutationObserver(_0x159629=>{const _0x4e7d11=_0x159629['filter'](_0x4cdfcf=>_0x4cdfcf['target']===_0x336936&&_0x4cdfcf['addedNodes']['length']>0x0&&_0x4cdfcf['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4acd43);_0x4e7d11['length']&&(_0x385f27['disconnect'](),_0x4f115c(_0x4e7d11[0x0]['addedNodes'][0x0]));});_0x385f27['observe'](_0x336936,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2652bc){_0x2652bc['addEventListener']('apply',_0x9bd898=>{this['fire']('apply',{'imageSrc':_0x9bd898['detail']['cdnUrl']});}),_0x2652bc['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x237a2f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5536ab,_0x3604fd,_0x3f7f18){super(),this['_editor']=_0x5536ab,this['_dialog']=_0x3604fd,this['_imageElement']=_0x3f7f18,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 _0xa40932=this['_imageElement'],_0x26ef9a=_0xa40932['getAttribute']('uploadcareImageId'),_0x464b50=_0xa40932['getAttribute']('src');if(_0x26ef9a)await this['_loadImageInfo'](_0x26ef9a,_0x464b50);else{if(this['_imageCache']['has'](_0x464b50)){const _0x62ca2a=this['_imageCache']['get'](_0x464b50);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x62ca2a['url'],this['imageDimension']=_0x62ca2a['dimension'],this['imageId']=_0x62ca2a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x51bb46}=this['_editor'],t=_0x51bb46['t'],_0x14b077=new Z(_0x51bb46,this['imageStatus'],this['_attributes']);_0x14b077['bind']('status')['to'](this,'imageStatus'),_0x14b077['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x14b077['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x14b077['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x14b077,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x6999e3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x14b077,'position':_0x440fff['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x14b077['focus']();},'onHide':()=>{_0x14b077['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58584=>!F(_0x58584,_0x14b077['element'])}});}['_loadImageInfo'](_0x7f8e52,_0x33d39a){return C['getInfo'](_0x7f8e52,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3a570d=>{const {width:_0x3351bf,height:_0x9a2b41}=_0x3a570d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33d39a,this['imageDimension']={'width':_0x3351bf,'height':_0x9a2b41},this['imageId']=_0x7f8e52;})['catch'](_0x4d5d49=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d5d49['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1b6eb4,_0x2a4976){return this['_getImageAsFile'](_0x1b6eb4)['then'](_0x2c6579=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2a4976['signal'],'file':_0x2c6579,'onProgress':_0xe4056e=>{_0xe4056e&&_0xe4056e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xe4056e['value']));}}))['then'](_0x3a1da8=>{const {width:_0xa6290c,height:_0x1ec7c0}=_0x3a1da8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a1da8['cdnUrl'],this['imageDimension']={'width':_0xa6290c,'height':_0x1ec7c0},this['imageId']=_0x3a1da8['uuid'],this['imageUploadProgress']=null;const _0x2b2e7c=_0x1b6eb4['getAttribute']('src');this['_imageCache']['set'](_0x2b2e7c,{'id':_0x3a1da8['uuid'],'url':_0x3a1da8['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x163f03=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x163f03['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x35234a,_0x311ff6){_0x35234a['on']('apply',(_0x40b5cf,_0x1f32a4)=>{this['_replaceImage'](_0x311ff6,_0x1f32a4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x35234a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x35234a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x46bf9e,_0x187a38,_0x406d5e){const _0x4b65c4=this['_editor'],{width:_0x4e8112,height:_0x28bf9a}=A(_0x187a38,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xd7aaea,imageSources:_0x46a85b}=E(_0x187a38,_0x4e8112);_0x4b65c4['model']['change'](_0x2f0379=>{if('$graveyard'===_0x46bf9e['root']['rootName']){_0x4b65c4['execute']('insertImage',{'imageType':_0x46bf9e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x46bf9e['getAttributes']()),'uploadcareImageId':_0x406d5e,'src':_0xd7aaea,'sources':_0x46a85b,'width':_0x4e8112,'height':_0x28bf9a}});const _0x2c2420=_0x46bf9e['getChildren']();_0x46bf9e=_0x4b65c4['model']['document']['selection']['getSelectedElement']();for(const _0x5068f1 of _0x2c2420)_0x2f0379['append'](_0x2f0379['cloneElement'](_0x5068f1),_0x46bf9e);}else _0x2f0379['setSelection'](_0x46bf9e,'on'),_0x4b65c4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x46bf9e['getAttributes']()),'uploadcareImageId':_0x406d5e,'src':_0xd7aaea,'sources':_0x46a85b,'width':_0x4e8112,'height':_0x28bf9a},_0x46bf9e);_0x2f0379['setSelection'](_0x46bf9e,'on');});}async['_getImageAsFile'](_0xf433b5){const _0x394aae=_0x18460b['window'],_0x10d5de=_0x18460b['document']['location']['href'],_0x30d7d0=new _0x394aae['URL'](_0xf433b5['getAttribute']('src'),_0x10d5de);if('data:'===_0x30d7d0['protocol']){const _0x1654d2=_0x30d7d0['href']['split'](','),_0x509931=_0x1654d2[0x0]['match'](/:(.*?);/)[0x1],_0x351b87=_0x509931['split']('/')[0x1],_0x3e350a=_0x394aae['atob'](_0x1654d2[_0x1654d2['length']-0x1]);let _0x12a696=_0x3e350a['length'];const _0x4dab3d=new _0x394aae['Uint8Array'](_0x12a696);for(;_0x12a696--;)_0x4dab3d[_0x12a696]=_0x3e350a['charCodeAt'](_0x12a696);return new _0x394aae['File']([_0x4dab3d],'image.'+_0x351b87,{'type':_0x509931});}const _0x50ee51=_0x30d7d0['href']['split']('/'),_0x308a37=_0x50ee51[_0x50ee51['length']-0x1],_0x31901d=_0x308a37['split']('.')[0x1];return _0x394aae['fetch'](_0x30d7d0['href'])['then'](_0x2b8e48=>_0x2b8e48['clone']()['blob']())['then'](_0x3edf67=>new _0x394aae['File']([_0x3edf67],_0x308a37,{'type':'image/'+_0x31901d}));}}class J extends _0x9ac5a3{['imageEditController'];static get['requires'](){return[_0x205ef4];}['_isEditable'];constructor(_0x1d9398){super(_0x1d9398),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x20c729){const _0x5ab95e=V(_0x20c729);return _0x4a0890=>!(!_0x4a0890||!_0x4a0890['is']('element','imageBlock')&&!_0x4a0890['is']('element','imageInline'))&&(!!_0x4a0890['hasAttribute']('uploadcareImageId')||!!_0x4a0890['hasAttribute']('src')&&_0x5ab95e(_0x4a0890['getAttribute']('src')));}(_0x1d9398['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xf2030c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xf2030c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x24a05a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x24a05a&&(_0x24a05a['is']('element','imageBlock')||_0x24a05a['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x205ef4),_0x24a05a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x9ac5a3{['refresh'](){const _0x721644=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x721644&&(_0x721644['is']('element','imageBlock')||_0x721644['is']('element','imageInline')));}['execute'](_0x3e7d50){const _0x55b51c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4fbe3b=>{_0x4fbe3b['setAttributes'](_0x3e7d50,_0x55b51c),_0x4fbe3b['removeAttribute']('srcset',_0x55b51c),_0x4fbe3b['removeAttribute']('sizes',_0x55b51c);});}}class g extends _0xc86962{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x1ee897,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5cc65e}=this;_0x5cc65e['commands']['add']('uploadcareImageEdit',new J(_0x5cc65e)),_0x5cc65e['commands']['add']('uploadcareImageReplace',new O(_0x5cc65e));}}class j extends _0xc86962{['_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 _0x487035=this['editor'];_0x487035['ui']['componentFactory']['add']('uploadcareImageEdit',_0x38aeef=>{const _0x4a2d64=_0x487035['commands']['get']('uploadcareImageEdit'),_0x128115=new _0x1d210f(_0x38aeef),t=_0x38aeef['t'];return _0x128115['set']({'icon':_0x6999e3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x128115['bind']('isEnabled')['to'](_0x4a2d64),_0x128115['bind']('isOn')['to'](_0x4a2d64,'isActive'),this['listenTo'](_0x128115,'execute',()=>{_0x487035['execute']('uploadcareImageEdit'),_0x487035['editing']['view']['focus']();}),_0x128115;}),this['_initConfig']();}['_initConfig'](){const _0x2c007b=_0x55311f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2c007b),this['listenTo'](this['editor'],'destroy',()=>{_0x2c007b['remove']();});}}class P extends _0xc86962{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 _0x418ad9,Command as _0x5db902}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x27fb42,IconGooglePhotos as _0x57c6ad,IconGoogleDrive as _0x311dd5,IconFacebook as _0x306870,IconDropbox as _0x6c6ea0,IconUploadcareLink as _0x41e123,IconUploadcareImageUpload as _0x14f9ac,IconError as et,IconUploadcareImageEdit as _0x4b5ec4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2b2bea,MenuBarMenuListItemButtonView as _0x35baf1,View as _0x38ff45,FocusCycler as _0x178b3e,Dialog as _0x34c46e,DialogViewPosition as _0x8f90ea,SpinnerView as _0x20485c,IconView as at,Notification as _0x5596c3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x151b29,DomEmitterMixin as _0x72d9e3,global as _0x4acc62,getAncestors as _0x5418b6,ObservableMixin as _0x200662,createElement as _0x1764c0,uid as _0x649e01}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x121c1c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x410983,info as _0x1ac59a}from'@uploadcare/upload-client';import*as _0x457d67 from'@uploadcare/file-uploader';var o=function(_0xa9264a){return _0xa9264a['Local']='local',_0xa9264a['URL']='url',_0xa9264a['Dropbox']='dropbox',_0xa9264a['GDrive']='gdrive',_0xa9264a['Facebook']='facebook',_0xa9264a['GPhotos']='gphotos',_0xa9264a['OneDrive']='onedrive',_0xa9264a;}({});function _(_0x5cdfff,_0x2e7932,_0x28e949){const t=_0x5cdfff['t'],_0x20f640=_0x5cdfff['t'];switch(_0x2e7932){case o['Local']:return{'text':_0x20f640('Insert'===_0x28e949?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x20f640('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x28e949?_0x20f640('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x20f640('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2e7932;}}class e extends _0x418ad9{['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 _0x315810=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8024a7;for(const _0x70c1b6 in _0x315810){const _0x505424=_0x70c1b6,_0xa998dc=_0x315810[_0x505424];if('uploadcareLicenseKeyValid'==_0xa998dc||'uploadcareLicenseKeyInvalid'==_0xa998dc||'uploadcareLicenseKeyExpired'==_0xa998dc||'uploadcareLicenseKeyDomainLimit'==_0xa998dc||'uploadcareLicenseKeyNotAllowed'==_0xa998dc||'uploadcareLicenseKeyEvaluationLimit'==_0xa998dc||'uploadcareLicenseKeyTrialLimit'==_0xa998dc||'uploadcareLicenseKeyUsageLimit'==_0xa998dc){delete _0x315810[_0x505424],_0x8024a7=_0xa998dc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x8024a7&&_0x315810['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x8024a7&&_0x315810['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x8024a7&&_0x315810['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x8024a7&&_0x315810['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x8024a7&&_0x315810['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x8024a7&&_0x315810['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x8024a7&&_0x315810['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5b232a}=this,_0x17ae9d=_0x5b232a['commands']['get']('uploadcare');if(!_0x17ae9d)return;const _0x46f8ac=this['_normalizeConfigSourceList'](_0x5b232a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5a3698,_0x390333)=>{const _0x1b44c9=this['_getIntegrationKey'](_0x390333['type']);return _0x5a3698[_0x1b44c9]||(_0x5a3698[_0x1b44c9]=[]),_0x5a3698[_0x1b44c9]['push'](_0x390333),_0x5a3698;},{});_0x5b232a['plugins']['has']('ImageInsertUI')&&_0x5b232a['commands']['get']('uploadcare')&&Object['entries'](_0x46f8ac)['forEach'](([_0x3d31e1,_0x2807d2])=>{_0x5b232a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3d31e1,'observable':()=>_0x17ae9d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2807d2),'formViewCreator':()=>this['_createDropdownButtons'](_0x2807d2),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2807d2),'override':'assetManager'!==_0x3d31e1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xdc1e4a){const {locale:_0x5bbaf2}=this['editor'];return _0xdc1e4a['map'](_0xb28c26=>{const _0x1e4c75=_(_0x5bbaf2,_0xb28c26,'Insert');switch(_0xb28c26){case o['Local']:return{'icon':_0x14f9ac,'type':o['Local'],..._0x1e4c75};case o['URL']:return{'icon':_0x41e123,'type':o['URL'],..._0x1e4c75};case o['Dropbox']:return{'icon':_0x6c6ea0,'type':o['Dropbox'],..._0x1e4c75};case o['Facebook']:return{'icon':_0x306870,'type':o['Facebook'],..._0x1e4c75};case o['GDrive']:return{'icon':_0x311dd5,'type':o['GDrive'],..._0x1e4c75};case o['GPhotos']:return{'icon':_0x57c6ad,'type':o['GPhotos'],..._0x1e4c75};case o['OneDrive']:return{'icon':_0x27fb42,'type':o['OneDrive'],..._0x1e4c75};}});}['_getIntegrationKey'](_0x50e9bf){switch(_0x50e9bf){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x56e90c,_0x4d863c){const _0x432918=this['editor'],_0x3fae4e=new _0x56e90c(_0x432918['locale']),_0x246253=_0x432918['commands']['get']('uploadcare');return _0x3fae4e['bind']('isEnabled')['to'](_0x246253),_0x3fae4e['on']('execute',()=>{_0x246253['execute'](_0x4d863c);}),_0x3fae4e;}['_createToolbarButton'](_0x375340){const {locale:_0x818499}=this['editor'],_0xcfe412=this['editor']['plugins']['get']('ImageInsertUI'),_0x32637c=_0x375340[0x0],_0x5dbcd4=this['_createButton'](_0x2b2bea,_0x32637c['type']);return _0x5dbcd4['icon']=_0x32637c['icon'],_0x5dbcd4['bind']('label')['to'](_0xcfe412,'isImageSelected',_0x23fd30=>_(_0x818499,_0x32637c['type'],_0x23fd30?'Replace':'Insert')['text']),_0x5dbcd4['tooltip']=!0x0,_0x5dbcd4;}['_createDropdownButtons'](_0x5292e9){const {locale:_0x195aaa}=this['editor'],_0x7768e3=this['editor']['plugins']['get']('ImageInsertUI');return _0x5292e9['map'](_0x16a1f8=>{const _0x497351=this['_createButton'](_0x2b2bea,_0x16a1f8['type']);return _0x497351['withText']=!0x0,_0x497351['icon']=_0x16a1f8['icon'],_0x497351['bind']('label')['to'](_0x7768e3,'isImageSelected',_0x4ce510=>_(_0x195aaa,_0x16a1f8['type'],_0x4ce510?'Replace':'Insert')['text']),_0x497351;});}['_createMenuBarButtons'](_0x4cd94b){return _0x4cd94b['map'](_0x10a78c=>{const _0x34e2eb=this['_createButton'](_0x35baf1,_0x10a78c['type']);return _0x34e2eb['icon']=_0x10a78c['icon'],_0x34e2eb['label']=_0x10a78c['shortText'],_0x34e2eb;});}}class q extends _0x38ff45{['focusTracker'];['focusCycler'];constructor(_0x148ddc){super(_0x148ddc),this['focusTracker']=new _0x151b29(),this['focusCycler']=new _0x178b3e({'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(_0x4da8d7){super(_0x4da8d7),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(_0x54dd9b,_0x41f34e){const _0x44bdf7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2c14c5=>_0x2c14c5<=_0x41f34e)['map'](_0x109374=>_0x54dd9b['replace'](/\/$/,'')+'/-/resize/'+_0x109374+'x/\x20'+_0x109374+'w');return{'imageFallbackUrl':_0x54dd9b,'imageSources':[{'srcset':_0x44bdf7['join'](',\x20'),'sizes':'(max-width:\x20'+_0x41f34e+'px)\x20100vw,\x20'+_0x41f34e+'px','type':'image/webp'}]};}function A(_0x29c6a8,_0x1b2a5b,_0x19ef81){const _0xaf23a0=_0x29c6a8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xaf23a0?parseInt(_0xaf23a0[0x1],0xa):_0x1b2a5b,'height':_0xaf23a0?parseInt(_0xaf23a0[0x2],0xa):_0x19ef81};}function m(_0x36f3ec,_0x1c07d9){const _0x38c14=Object['create'](_0x72d9e3),_0x33f742=_0x36f3ec['plugins']['get']('ImageUtils'),_0x54bb3b=_0x36f3ec['editing']['mapper']['toViewElement'](_0x1c07d9),_0x336c19=_0x33f742['findViewImgElement'](_0x54bb3b),_0x2f12f7=_0x36f3ec['editing']['view']['domConverter']['viewToDom'](_0x336c19),_0x24b55d=_0x1c07d9['getAttribute']('width'),_0x21ecf9=_0x1c07d9['getAttribute']('height'),_0xb45d41='image-processing';_0x36f3ec['editing']['view']['change'](_0x265365=>{_0x265365['addClass'](_0xb45d41,_0x54bb3b),_0x265365['setStyle']('aspect-ratio',_0x24b55d+'/'+_0x21ecf9,_0x336c19);}),_0x38c14['listenTo'](_0x2f12f7,'load',()=>{_0x38c14['stopListening'](_0x2f12f7,'load'),_0x36f3ec['editing']['view']['change'](_0x23e452=>{_0x23e452['removeClass'](_0xb45d41,_0x54bb3b),_0x23e452['removeStyle']('aspect-ratio',_0x336c19);});});}function V(_0x1f0f59){if(Array['isArray'](_0x1f0f59)){const _0x6761e0=_0x1f0f59['map'](V);return _0x5f3d2c=>_0x6761e0['some'](_0xe988ed=>_0xe988ed(_0x5f3d2c));}if('origin'==_0x1f0f59){const _0x7f09f2=_0x4acc62['window']['location']['origin'];return _0x1924cb=>new URL(_0x1924cb,_0x4acc62['document']['baseURI'])['origin']==_0x7f09f2;}return'function'==typeof _0x1f0f59?_0x1f0f59:_0x1f0f59 instanceof RegExp?_0x2ed8bf=>!(!_0x2ed8bf['match'](_0x1f0f59)&&!_0x2ed8bf['replace'](/^https?:\/\//,'')['match'](_0x1f0f59)):()=>!0x1;}function F(_0x52df57,_0x80bffa){return _0x5418b6(_0x52df57['target'])['includes'](_0x80bffa);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x200662(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x48c81f,_0x487e32,_0x33495e){super(),this['_editor']=_0x48c81f,this['_editing']=_0x487e32,this['_dialog']=_0x48c81f['plugins']['get'](_0x34c46e),this['_api']=_0x487e32['ctxElement']['getAPI'](),this['_type']=_0x33495e,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:_0x15339c,model:_0x175478}=this['_editor'],_0x406c44=_0x175478['document']['selection']['getSelectedElement'](),_0x5cb956=_0x406c44&&(_0x406c44['is']('element','imageBlock')||_0x406c44['is']('element','imageInline'));this['_formView']=new S(_0x15339c),this['_dialog']['show']({'id':'uploadCare','icon':_0x14f9ac,'title':_(_0x15339c,this['_type'],_0x5cb956?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x8f90ea['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x16275f=>!F(_0x16275f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x21f31e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4e5181=>{const _0x4f930d=_0x21f31e['length'];for(const _0x29d5fc of _0x21f31e){const _0x4683a5=_0x29d5fc===_0x21f31e[_0x4f930d-0x1],{cdnUrl:_0x5b74fe,fileInfo:_0x11a228}=_0x29d5fc;if(!_0x5b74fe||!_0x11a228)continue;const {width:_0xa1de4b,height:_0x2632b4}=_0x11a228['imageInfo'],_0x38fc86=A(_0x5b74fe,_0xa1de4b,_0x2632b4),_0x1d02ee=E(_0x5b74fe,_0x38fc86['width']),_0x259700={'id':_0x11a228['uuid'],'type':'image','attributes':{'imageDimension':_0x38fc86,..._0x1d02ee}};this['_insertAsset'](_0x259700,_0x4683a5,_0x4e5181);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x28e79b=>{'idle'===_0x28e79b['detail']['status']&&!_0x28e79b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x246210,_0x26910f,_0x10dacd){const _0x314266=this['_editor']['model']['document']['selection'],_0x36a582=_0x314266['getSelectedElement'](),_0x2cd73f=!(!_0x36a582||!_0x36a582['is']('element','imageInline'));_0x10dacd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x246210,_0x2cd73f),_0x26910f||_0x10dacd['setSelection'](_0x314266['getLastPosition']());}['_insertImage'](_0xabd4fb,_0xb7429f){const _0x20af3a=this['_editor'],{imageDimension:_0x262b1c,imageFallbackUrl:_0x2e7492,imageSources:_0x56b77d}=_0xabd4fb['attributes'];_0x20af3a['execute']('insertImage',{'imageType':_0xb7429f?'imageInline':null,'source':{'uploadcareImageId':_0xabd4fb['id'],'src':_0x2e7492,'sources':_0x56b77d,..._0x262b1c}});}}class n extends _0x5db902{['_editing'];['_controller']=null;static get['requires'](){return[_0x34c46e,i];}constructor(_0x8d187f){super(_0x8d187f),this['_editing']=_0x8d187f['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5f2818){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5f2818);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x6f2087,publicKey:_0x18f1c0,signal:_0x414140,onProgress:_0x26368d}){return _0x410983(_0x6f2087,{'publicKey':_0x18f1c0,'store':'auto','signal':_0x414140,'onProgress':_0x26368d});}static['getInfo'](_0x4aac8a,_0x3bbaa3){return _0x1ac59a(_0x4aac8a,_0x3bbaa3);}}class p extends _0x418ad9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x121c1c,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3b002f=this['editor'];if(!!!_0x3b002f['config']['get']('uploadcare'))return;_0x3b002f['plugins']['get'](_0x121c1c)['createUploadAdapter']=_0xa9298e=>new x(_0xa9298e,_0x3b002f),_0x3b002f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3e898e,{imageElement:_0x326d82,data:_0x2d6035})=>{_0x3b002f['model']['change'](_0x5b377a=>{_0x5b377a['setAttribute']('uploadcareImageId',_0x2d6035['uploadcareImageId'],_0x326d82);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x55ad43,_0x2c7868){this['loader']=_0x55ad43,this['editor']=_0x2c7868,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2ba9ef=this['editor']['config']['get']('uploadcare.pubkey'),_0x5dddd2=await this['loader']['file'];return C['upload']({'file':_0x5dddd2,'publicKey':_0x2ba9ef,'signal':this['controller']['signal'],'onProgress':_0x56149c=>{_0x56149c&&_0x56149c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x56149c['value']);}})['then'](async _0xf5b2c=>{const {imageFallbackUrl:_0x2598e3,imageSources:_0x3b2c87}=E(_0xf5b2c['cdnUrl'],_0xf5b2c['imageInfo']['width']);return{'uploadcareImageId':_0xf5b2c['uuid'],'default':_0x2598e3,'sources':_0x3b2c87};})['catch'](()=>{const _0x20d6f3=t('Cannot\x20upload\x20file:')+('\x20'+_0x5dddd2['name']+'.');return Promise['reject'](_0x20d6f3);});}['abort'](){this['controller']['abort']();}}class i extends _0x418ad9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x34c46e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1bf980=this['editor'];_0x1bf980['commands']['add']('uploadcare',new n(_0x1bf980));}['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 _0x41c00d=_0x4acc62['document']['querySelector']('input[uploadcare-file-input]');_0x41c00d&&_0x41c00d['remove']();}),async function(_0x11b1f4){const _0x3fb08f=_0x5ce7aa([0x4f,0x6b,0x49,0x30,0x39,0x75,0x57,0x36,0x77,0x56,0x4d,0x66,0x72,0x73,0x7a,0x51,0x4a,0x63,0x53,0x6d,0x52,0x41,0x6e,0x5a,0x58,0x48,0x33,0x46,0x64,0x34,0x4c,0x74,0x61,0x76,0x71,0x42,0x55,0x69,0x65,0x6f,0x70,0x68,0x79,0x6a,0x6c,0x45,0x32,0x59,0x38,0x78,0x4e,0x43,0x4b,0x35,0x44,0x31,0x37,0x62,0x54,0x67,0x50,0x47]),_0x5c6d1d=0x7f801b70,_0x1e6b49=0x7f877250^_0x5c6d1d,_0x51c2b2=window[_0x5ce7aa([0x44,0x61,0x74,0x65])][_0x5ce7aa([0x6e,0x6f,0x77])](),_0x580227=_0x11b1f4[_0x5ce7aa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6f17e0=new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13a206=>{_0x580227[_0x5ce7aa([0x6f,0x6e,0x63,0x65])](_0x5ce7aa([0x72,0x65,0x61,0x64,0x79]),_0x13a206);}),_0x4280ad={[_0x5ce7aa([0x6b,0x74,0x79])]:_0x5ce7aa([0x45,0x43]),[_0x5ce7aa([0x75,0x73,0x65])]:_0x5ce7aa([0x73,0x69,0x67]),[_0x5ce7aa([0x63,0x72,0x76])]:_0x5ce7aa([0x50,0x2d,0x32,0x35,0x36]),[_0x5ce7aa([0x78])]:_0x5ce7aa([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]),[_0x5ce7aa([0x79])]:_0x5ce7aa([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]),[_0x5ce7aa([0x61,0x6c,0x67])]:_0x5ce7aa([0x45,0x53,0x32,0x35,0x36])},_0x28effc=_0x580227[_0x5ce7aa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ce7aa([0x67,0x65,0x74])](_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2974ed(){let _0x3ea3e9,_0x3e919e=null,_0x4cc51a=null;try{if(_0x28effc==_0x5ce7aa([0x47,0x50,0x4c]))return _0x5ce7aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ea3e9=_0x15a2d0(),!_0x3ea3e9)return _0x5ce7aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ea3e9[_0x5ce7aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4cc51a=_0x2a8337(_0x3ea3e9[_0x5ce7aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ea3e9[_0x5ce7aa([0x6a,0x74,0x69])])),await _0x2ddd1e()?_0x391de5()?_0x554a1a()?_0x5ce7aa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd97a4()?(_0x3ea3e9[_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ce7aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e919e=_0x5a6a34(_0x5ce7aa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ea3e9[_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ce7aa([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e919e=_0x5a6a34(_0x5ce7aa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59de01()):_0x5ce7aa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ce7aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ce7aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ce7aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x554a1a(){const _0x1f9ba6=[_0x5ce7aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ce7aa([0x74,0x72,0x69,0x61,0x6c])][_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ea3e9[_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51c2b2/0x3e8:0xe10*_0x1e6b49;return _0x3ea3e9[_0x5ce7aa([0x65,0x78,0x70])]<_0x1f9ba6;}function _0x391de5(){const _0xc007f0=_0x3ea3e9[_0x5ce7aa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc007f0&&(!!_0xc007f0[_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce7aa([0x2a]))||!!_0xc007f0[_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce7aa([0x55,0x50,0x4c,0x43])));}function _0xd97a4(){const _0x11cca6=_0x3ea3e9[_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11cca6||0x0==_0x11cca6[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b39bb}=new URL(window[_0x5ce7aa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11cca6[_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b39bb))return!0x0;const _0x1d2733=_0x1b39bb[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])](_0x5ce7aa([0x2e]));return _0x11cca6[_0x5ce7aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33dc26=>_0x33dc26[_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce7aa([0x2a])))[_0x5ce7aa([0x6d,0x61,0x70])](_0x4f19eb=>_0x4f19eb[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])](_0x5ce7aa([0x2e])))[_0x5ce7aa([0x73,0x6f,0x6d,0x65])](_0x3772f1=>_0x1d2733[_0x5ce7aa([0x65,0x76,0x65,0x72,0x79])]((_0x589cd8,_0x1a2189)=>_0x3772f1[_0x1a2189]===_0x589cd8||_0x3772f1[_0x1a2189]===_0x5ce7aa([0x2a])));}function _0x59de01(){return _0x3e919e&&_0x4cc51a?new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39478f,_0x3d93ad)=>{_0x3e919e[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x39478f,_0x3d93ad),_0x4cc51a[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x5146ce=>{_0x5146ce!=_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64])&&_0x39478f(_0x5146ce);},_0x3d93ad);}):_0x3e919e||_0x4cc51a||_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a8337(_0x194082,_0x5c5ff0){return new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2efbc3=>{if(_0x498dd6())return _0x2efbc3(_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64]));_0x3c8772(),_0x580227[_0x5ce7aa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ce7aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x581fde=!0x1;const _0x2602db=_0x649e01();function _0x415097(_0x3e74ac){return!!_0x3e74ac&&(typeof _0x3e74ac===_0x5ce7aa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e74ac===_0x5ce7aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e74ac[_0x5ce7aa([0x74,0x68,0x65,0x6e])]===_0x5ce7aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e74ac[_0x5ce7aa([0x63,0x61,0x74,0x63,0x68])]===_0x5ce7aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2695fe(_0x50cf8d){_0x4c5741(_0x50cf8d)[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0xbc8660=>{if(!_0xbc8660||_0xbc8660[_0x5ce7aa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ce7aa([0x6f,0x6b]))return _0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xcafeda(_0x12161c(_0x2602db+_0x5c5ff0))!=_0xbc8660[_0x5ce7aa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x2d4cbe=>(_0xfb2d91(),_0x2d4cbe),()=>{const _0x25df7b=_0x273885();return null==_0x25df7b?(_0xfb2d91(),_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64])):_0x5ce7aa(_0x51c2b2-_0x25df7b>(0x5b8c9f70^_0x5c6d1d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x2efbc3)[_0x5ce7aa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2efbc3(_0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x485898=0x7fb6f5f0^_0x5c6d1d;function _0xfb2d91(){const _0x42639a=_0x5ce7aa([0x6c,0x6c,0x63,0x74,0x2d])+_0xcafeda(_0x12161c(_0x194082)),_0x57d65a=_0xc4f045(_0xcafeda(window[_0x5ce7aa([0x4d,0x61,0x74,0x68])][_0x5ce7aa([0x63,0x65,0x69,0x6c])](_0x51c2b2/_0x485898)));window[_0x5ce7aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ce7aa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42639a,_0x57d65a);}function _0x273885(){const _0x21fc25=_0x5ce7aa([0x6c,0x6c,0x63,0x74,0x2d])+_0xcafeda(_0x12161c(_0x194082)),_0x56b7c5=window[_0x5ce7aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ce7aa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21fc25);return _0x56b7c5?window[_0x5ce7aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc4f045(_0x56b7c5),0x10)*_0x485898:null;}function _0x4c5741(_0x2ba32d){return new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3eeb22,_0x12d7af)=>{_0x2ba32d[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x3eeb22,_0x12d7af),window[_0x5ce7aa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12d7af,0x7f81cfb0^_0x5c6d1d);});}}_0x580227[_0x5ce7aa([0x6f,0x6e])](_0x5ce7aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x420714,_0x3bdae9)=>{if(_0x3bdae9[0x0]!=_0x194082)return _0x2efbc3(_0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3bdae9[0x1]={..._0x3bdae9[0x1],[_0x5ce7aa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2602db};},{[_0x5ce7aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ce7aa([0x68,0x69,0x67,0x68])}),_0x580227[_0x5ce7aa([0x6f,0x6e])](_0x5ce7aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b80d8=>{_0x415097(_0x4b80d8[_0x5ce7aa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x581fde=!0x0,_0x2695fe(_0x4b80d8[_0x5ce7aa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ce7aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ce7aa([0x6c,0x6f,0x77])}),_0x6f17e0[_0x5ce7aa([0x74,0x68,0x65,0x6e])](()=>{_0x581fde||_0x2efbc3(_0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x498dd6(){return _0x580227[_0x5ce7aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ce7aa([0x76,0x69,0x65,0x77])][_0x5ce7aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ce7aa([0x61,0x75,0x74,0x6f]);}function _0x3c8772(){_0x580227[_0x5ce7aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ce7aa([0x76,0x69,0x65,0x77])][_0x5ce7aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ce7aa([0x61,0x75,0x74,0x6f]);}}function _0x5a6a34(_0x43a31b){const _0xbcd5b4=[new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27137d=>setTimeout(_0x27137d,0x7f8925bc^_0x5c6d1d)),_0x6f17e0[_0x5ce7aa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x474a6e=>{let _0x533ec1=0x0;_0x580227[_0x5ce7aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce7aa([0x6f,0x6e])](_0x5ce7aa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5064a6,_0x3f0d40)=>{_0x3f0d40[0x0][_0x5ce7aa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x533ec1++,_0x533ec1==(0x7f801a88^_0x5c6d1d)&&(_0x474a6e(),_0x5064a6[_0x5ce7aa([0x6f,0x66,0x66])]());});}))];return window[_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ce7aa([0x72,0x61,0x63,0x65])](_0xbcd5b4)[_0x5ce7aa([0x74,0x68,0x65,0x6e])](()=>_0x43a31b);}async function _0x5a7325(){await _0x6f17e0,_0x580227[_0x5ce7aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce7aa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a3049,_0x580227[_0x5ce7aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce7aa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a3049,_0x580227[_0x5ce7aa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ce7aa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f1875(_0x2ce480){const _0x39fb2c=_0x2ffb92();_0x580227[_0x39fb2c]=_0x5ce7aa([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ce480,_0x2ce480!=_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64])&&_0x5a7325();}function _0x2ffb92(){const _0x5a07ca=window[_0x5ce7aa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ce7aa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ce7aa([0x6e,0x6f,0x77])]())[_0x5ce7aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ce7aa([0x2e]),'');let _0x303e38=_0x5ce7aa([0x4f]);for(let _0x158750=0x0;_0x158750<_0x5a07ca[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x158750+=0x2){let _0xde5266=window[_0x5ce7aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a07ca[_0x5ce7aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x158750,_0x158750+0x2));_0xde5266>=_0x3fb08f[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xde5266-=_0x3fb08f[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x303e38+=_0x3fb08f[_0xde5266];}return _0x303e38;}function _0x15a2d0(){const _0x1f8862=_0x28effc[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])](_0x5ce7aa([0x2e]));if(0x3!=_0x1f8862[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x317b9d(_0x1f8862[0x1]);function _0x317b9d(_0x529ff8){const _0x47a5b2=_0x1279de(_0x529ff8);return _0x47a5b2&&_0x2cd8d8()?_0x47a5b2:null;function _0x2cd8d8(){const _0x5525eb=_0x47a5b2[_0x5ce7aa([0x6a,0x74,0x69])],_0x4f14c9=window[_0x5ce7aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5525eb[_0x5ce7aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5525eb[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5f24d5={..._0x47a5b2,[_0x5ce7aa([0x6a,0x74,0x69])]:_0x5525eb[_0x5ce7aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5525eb[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5f24d5[_0x5ce7aa([0x76,0x63])],_0x12161c(_0x5f24d5)==_0x4f14c9;}}}async function _0x2ddd1e(){let _0x1844ba=!0x0;try{const _0xed8f49=_0x28effc[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])](_0x5ce7aa([0x2e])),[_0x18a05d,_0x4d87b0,_0x36e8c0]=_0xed8f49;return _0x182d83(_0x18a05d),await _0x4e3224(_0x18a05d,_0x4d87b0,_0x36e8c0),_0x1844ba;}catch{return!0x1;}function _0x182d83(_0x461679){const _0x51931a=_0x1279de(_0x461679);_0x51931a&&_0x51931a[_0x5ce7aa([0x61,0x6c,0x67])]==_0x5ce7aa([0x45,0x53,0x32,0x35,0x36])||(_0x1844ba=!0x1);}async function _0x4e3224(_0x42be35,_0x4e4fd7,_0x22f606){const _0x46b630=window[_0x5ce7aa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ce7aa([0x66,0x72,0x6f,0x6d])](_0x16491e(_0x22f606),_0x1ec02f=>_0x1ec02f[_0x5ce7aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3a6211=new window[(_0x5ce7aa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ce7aa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x42be35+_0x5ce7aa([0x2e])+_0x4e4fd7),_0x1b31ed=window[_0x5ce7aa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ce7aa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b31ed)return;const _0x4258d2=await _0x1b31ed[_0x5ce7aa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ce7aa([0x6a,0x77,0x6b]),_0x4280ad,{[_0x5ce7aa([0x6e,0x61,0x6d,0x65])]:_0x5ce7aa([0x45,0x43,0x44,0x53,0x41]),[_0x5ce7aa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ce7aa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ce7aa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b31ed[_0x5ce7aa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ce7aa([0x6e,0x61,0x6d,0x65])]:_0x5ce7aa([0x45,0x43,0x44,0x53,0x41]),[_0x5ce7aa([0x68,0x61,0x73,0x68])]:{[_0x5ce7aa([0x6e,0x61,0x6d,0x65])]:_0x5ce7aa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4258d2,_0x46b630,_0x3a6211)||(_0x1844ba=!0x1);}}function _0x1279de(_0x47a076){return _0x47a076[_0x5ce7aa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ce7aa([0x65,0x79]))?JSON[_0x5ce7aa([0x70,0x61,0x72,0x73,0x65])](_0x16491e(_0x47a076)):null;}function _0x16491e(_0x2e5f9c){return window[_0x5ce7aa([0x61,0x74,0x6f,0x62])](_0x2e5f9c[_0x5ce7aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ce7aa([0x2b]))[_0x5ce7aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ce7aa([0x2f])));}function _0x12161c(_0x3a2da6){let _0x47d31e=0x1505;function _0x77e12(_0xa23eb2){for(let _0x346b8e=0x0;_0x346b8e<_0xa23eb2[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x346b8e++){const _0x12e956=_0xa23eb2[_0x5ce7aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x346b8e);_0x47d31e=(_0x47d31e<<0x5)+_0x47d31e+_0x12e956,_0x47d31e&=_0x47d31e;}}function _0x277153(_0x2ce74d){Array[_0x5ce7aa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ce74d)?_0x2ce74d[_0x5ce7aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x277153):_0x2ce74d&&typeof _0x2ce74d==_0x5ce7aa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ce7aa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ce74d)[_0x5ce7aa([0x73,0x6f,0x72,0x74])]()[_0x5ce7aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56b076,_0x5a469e])=>{_0x77e12(_0x56b076),_0x277153(_0x5a469e);}):_0x77e12(window[_0x5ce7aa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ce74d));}return _0x277153(_0x3a2da6),_0x47d31e>>>0x0;}function _0xcafeda(_0x5717a1){return _0x5717a1[_0x5ce7aa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ce7aa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ce7aa([0x30]));}function _0xc4f045(_0x3e0318){return _0x3e0318[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ce7aa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ce7aa([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a3049(){}function _0x5ce7aa(_0x41f776){return _0x41f776['map'](_0x233786=>String['fromCharCode'](_0x233786))['join']('');}_0x3f1875(await _0x2974ed());}(this);}['_initSchema'](){const _0x2738a2=this['editor']['model']['schema'];_0x2738a2['isRegistered']('imageBlock')&&_0x2738a2['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2738a2['isRegistered']('imageInline')&&_0x2738a2['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x423097=this['editor'];_0x423097['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x423097['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x6d73aa=>_0x6d73aa['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x510dea=_0x423097['commands']['get']('replaceImageSource');_0x510dea&&this['listenTo'](_0x510dea,'cleanupImage',(_0x2dd775,[_0x2c7e62,_0x1233da])=>{_0x2c7e62['removeAttribute']('uploadcareImageId',_0x1233da);});}['_initConfig'](){const _0x4d2e80=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1be02d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1764c0(_0x4acc62['document'],'uc-config',{..._0x4d2e80,'pubkey':_0x1be02d,'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']=_0x35baa8=>{if('closeMax'==_0x35baa8)return'#uc-icon-arrow-down';},_0x4acc62['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1764c0(_0x4acc62['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4acc62['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1a7a64=this['editor']['commands']['get']('insertImage');_0x1a7a64&&this['listenTo'](_0x1a7a64,'execute',()=>{const _0x554415=this['editor']['model']['document']['selection']['getSelectedElement']();_0x554415&&_0x554415['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x554415);});});const _0x960d5b=this['editor']['commands']['get']('uploadcareImageReplace');_0x960d5b&&this['listenTo'](_0x960d5b,'execute',()=>{const _0x2a5f12=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a5f12&&_0x2a5f12['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2a5f12);});});}}class u extends _0x418ad9{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c20fe){super(_0x2c20fe),_0x2c20fe['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x457d67['defineComponents'](_0x457d67);}}class ta extends _0x38ff45{constructor(_0x29df98){super(_0x29df98);const t=_0x29df98['t'],_0x74f67f=this['bindTemplate'],_0x1ebf0f=new _0x20485c();_0x1ebf0f['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':[_0x1ebf0f,{'text':_0x74f67f['to']('imageUploadProgress',_0x41273e=>t('Loading\x20image...')+'\x20('+(_0x41273e||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 _0x38ff45{constructor(_0x15581b){super(_0x15581b);const t=_0x15581b['t'];this['set']('errorType',null);const _0x49f243=new _0x2b2bea(_0x15581b);_0x49f243['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x49f243['withText']=!0x0,_0x49f243['class']='ck-button-action',_0x49f243['on']('execute',()=>{this['fire']('retry');}),_0x49f243['bind']('isVisible')['to'](this,'errorType',_0x49b64f=>'NotFound'!==_0x49b64f);const _0x484352=new at();_0x484352['content']=et,_0x484352['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f4a82=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':[_0x484352,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f4a82['to']('errorType',_0x137238=>t('NotFound'!==_0x137238?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x49f243]},{'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 _0x38ff45{constructor(_0xa16be6,_0x446b86){super(_0xa16be6);const _0x4769b9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x446b86,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4769b9['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xc7b0e7,_0x3faef7,_0x1c5a6d){super(_0xc7b0e7),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xc7b0e7),this['_errorView']=new rt(_0xc7b0e7),this['_editingView']=new tt(_0xc7b0e7,_0x1c5a6d),this['_focusableView']=new _0x38ff45(_0xc7b0e7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3faef7),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'],_0x47238e=>{this['_addUploadcareImageEditorListeners'](_0x47238e);});}),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'](_0x145c14,_0x4cc7fc){const _0x9e9634='uc-cloud-image-editor',_0x59fb23=_0x145c14['querySelector'](_0x9e9634);if(_0x59fb23)return _0x4cc7fc(_0x59fb23);const _0x134198=new MutationObserver(_0x2e9f60=>{const _0x186a10=_0x2e9f60['filter'](_0x2bfefc=>_0x2bfefc['target']===_0x145c14&&_0x2bfefc['addedNodes']['length']>0x0&&_0x2bfefc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x9e9634);_0x186a10['length']&&(_0x134198['disconnect'](),_0x4cc7fc(_0x186a10[0x0]['addedNodes'][0x0]));});_0x134198['observe'](_0x145c14,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5ab153){_0x5ab153['addEventListener']('apply',_0x36ed2c=>{this['fire']('apply',{'imageSrc':_0x36ed2c['detail']['cdnUrl']});}),_0x5ab153['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x200662(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x14b47d,_0x2c7a5c,_0x17f8e6){super(),this['_editor']=_0x14b47d,this['_dialog']=_0x2c7a5c,this['_imageElement']=_0x17f8e6,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 _0x20880d=this['_imageElement'],_0x571ea4=_0x20880d['getAttribute']('uploadcareImageId'),_0x1381e=_0x20880d['getAttribute']('src');if(_0x571ea4)await this['_loadImageInfo'](_0x571ea4,_0x1381e);else{if(this['_imageCache']['has'](_0x1381e)){const _0x38b4b2=this['_imageCache']['get'](_0x1381e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38b4b2['url'],this['imageDimension']=_0x38b4b2['dimension'],this['imageId']=_0x38b4b2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e8303}=this['_editor'],t=_0x4e8303['t'],_0x39df85=new Z(_0x4e8303,this['imageStatus'],this['_attributes']);_0x39df85['bind']('status')['to'](this,'imageStatus'),_0x39df85['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x39df85['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x39df85['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x39df85,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4b5ec4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x39df85,'position':_0x8f90ea['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x39df85['focus']();},'onHide':()=>{_0x39df85['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xf4f555=>!F(_0xf4f555,_0x39df85['element'])}});}['_loadImageInfo'](_0x3a697b,_0x3e9224){return C['getInfo'](_0x3a697b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x415ccc=>{const {width:_0x516f35,height:_0x11361d}=_0x415ccc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e9224,this['imageDimension']={'width':_0x516f35,'height':_0x11361d},this['imageId']=_0x3a697b;})['catch'](_0x2e9b1b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2e9b1b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1e1fe7,_0x1b3459){return this['_getImageAsFile'](_0x1e1fe7)['then'](_0x43d305=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1b3459['signal'],'file':_0x43d305,'onProgress':_0x2bffcf=>{_0x2bffcf&&_0x2bffcf['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2bffcf['value']));}}))['then'](_0x3f81cb=>{const {width:_0x35dd17,height:_0x55f40a}=_0x3f81cb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f81cb['cdnUrl'],this['imageDimension']={'width':_0x35dd17,'height':_0x55f40a},this['imageId']=_0x3f81cb['uuid'],this['imageUploadProgress']=null;const _0x5f0df9=_0x1e1fe7['getAttribute']('src');this['_imageCache']['set'](_0x5f0df9,{'id':_0x3f81cb['uuid'],'url':_0x3f81cb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3d2a9d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3d2a9d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xce8f37,_0xfdfe43){_0xce8f37['on']('apply',(_0x15b231,_0x1acdc)=>{this['_replaceImage'](_0xfdfe43,_0x1acdc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xce8f37['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xce8f37['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2be131,_0x3ae6af,_0x47771f){const _0xb24c05=this['_editor'],{width:_0x2037bf,height:_0x5b995b}=A(_0x3ae6af,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x53dfef,imageSources:_0x2aea32}=E(_0x3ae6af,_0x2037bf);_0xb24c05['model']['change'](_0x3a021f=>{if('$graveyard'===_0x2be131['root']['rootName']){_0xb24c05['execute']('insertImage',{'imageType':_0x2be131['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2be131['getAttributes']()),'uploadcareImageId':_0x47771f,'src':_0x53dfef,'sources':_0x2aea32,'width':_0x2037bf,'height':_0x5b995b}});const _0xb34647=_0x2be131['getChildren']();_0x2be131=_0xb24c05['model']['document']['selection']['getSelectedElement']();for(const _0x2718a7 of _0xb34647)_0x3a021f['append'](_0x3a021f['cloneElement'](_0x2718a7),_0x2be131);}else _0x3a021f['setSelection'](_0x2be131,'on'),_0xb24c05['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2be131['getAttributes']()),'uploadcareImageId':_0x47771f,'src':_0x53dfef,'sources':_0x2aea32,'width':_0x2037bf,'height':_0x5b995b},_0x2be131);_0x3a021f['setSelection'](_0x2be131,'on');});}async['_getImageAsFile'](_0x1ac933){const _0x291f04=_0x4acc62['window'],_0x2927d6=_0x4acc62['document']['location']['href'],_0x7ad8a=new _0x291f04['URL'](_0x1ac933['getAttribute']('src'),_0x2927d6);if('data:'===_0x7ad8a['protocol']){const _0x47c9b6=_0x7ad8a['href']['split'](','),_0x46ba0a=_0x47c9b6[0x0]['match'](/:(.*?);/)[0x1],_0x25edea=_0x46ba0a['split']('/')[0x1],_0x23a004=_0x291f04['atob'](_0x47c9b6[_0x47c9b6['length']-0x1]);let _0x5a1f64=_0x23a004['length'];const _0x34504b=new _0x291f04['Uint8Array'](_0x5a1f64);for(;_0x5a1f64--;)_0x34504b[_0x5a1f64]=_0x23a004['charCodeAt'](_0x5a1f64);return new _0x291f04['File']([_0x34504b],'image.'+_0x25edea,{'type':_0x46ba0a});}const _0x438cfe=_0x7ad8a['href']['split']('/'),_0x131412=_0x438cfe[_0x438cfe['length']-0x1],_0x4aecc0=_0x131412['split']('.')[0x1];return _0x291f04['fetch'](_0x7ad8a['href'])['then'](_0x557fde=>_0x557fde['clone']()['blob']())['then'](_0x4d04cb=>new _0x291f04['File']([_0x4d04cb],_0x131412,{'type':'image/'+_0x4aecc0}));}}class J extends _0x5db902{['imageEditController'];static get['requires'](){return[_0x34c46e];}['_isEditable'];constructor(_0x35ecd3){super(_0x35ecd3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x52d680){const _0x3edab6=V(_0x52d680);return _0x54faee=>!(!_0x54faee||!_0x54faee['is']('element','imageBlock')&&!_0x54faee['is']('element','imageInline'))&&(!!_0x54faee['hasAttribute']('uploadcareImageId')||!!_0x54faee['hasAttribute']('src')&&_0x3edab6(_0x54faee['getAttribute']('src')));}(_0x35ecd3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xf57c0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xf57c0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x139286=this['editor']['model']['document']['selection']['getSelectedElement']();_0x139286&&(_0x139286['is']('element','imageBlock')||_0x139286['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x34c46e),_0x139286),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x5db902{['refresh'](){const _0x43290f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x43290f&&(_0x43290f['is']('element','imageBlock')||_0x43290f['is']('element','imageInline')));}['execute'](_0x3d1d89){const _0x162438=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4ebabc=>{_0x4ebabc['setAttributes'](_0x3d1d89,_0x162438),_0x4ebabc['removeAttribute']('srcset',_0x162438),_0x4ebabc['removeAttribute']('sizes',_0x162438);});}}class g extends _0x418ad9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5596c3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb05434}=this;_0xb05434['commands']['add']('uploadcareImageEdit',new J(_0xb05434)),_0xb05434['commands']['add']('uploadcareImageReplace',new O(_0xb05434));}}class j extends _0x418ad9{['_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 _0x396edc=this['editor'];_0x396edc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a48bf=>{const _0x1e64ff=_0x396edc['commands']['get']('uploadcareImageEdit'),_0x15fb05=new _0x2b2bea(_0x3a48bf),t=_0x3a48bf['t'];return _0x15fb05['set']({'icon':_0x4b5ec4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x15fb05['bind']('isEnabled')['to'](_0x1e64ff),_0x15fb05['bind']('isOn')['to'](_0x1e64ff,'isActive'),this['listenTo'](_0x15fb05,'execute',()=>{_0x396edc['execute']('uploadcareImageEdit'),_0x396edc['editing']['view']['focus']();}),_0x15fb05;}),this['_initConfig']();}['_initConfig'](){const _0x21bb51=_0x1764c0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x21bb51),this['listenTo'](this['editor'],'destroy',()=>{_0x21bb51['remove']();});}}class P extends _0x418ad9{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':_0x154646=>0x1!=_0x154646}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4c2d30=>{const {af:{dictionary:_0x12f318,getPluralForm:_0x558e8b}}={'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':_0x376732=>0x1!=_0x376732}};_0x4c2d30['af']||={'dictionary':{},'getPluralForm':null},_0x4c2d30['af']['dictionary']=Object['assign'](_0x4c2d30['af']['dictionary'],_0x12f318),_0x4c2d30['af']['getPluralForm']=_0x558e8b;})(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':_0x10b57c=>0x0==_0x10b57c?0x0:0x1==_0x10b57c?0x1:0x2==_0x10b57c?0x2:_0x10b57c%0x64>=0x3&&_0x10b57c%0x64<=0xa?0x3:_0x10b57c%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2832e5=>{const {ar:{dictionary:_0x2b9458,getPluralForm:_0x1d5e7e}}={'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':_0x2f158c=>0x0==_0x2f158c?0x0:0x1==_0x2f158c?0x1:0x2==_0x2f158c?0x2:_0x2f158c%0x64>=0x3&&_0x2f158c%0x64<=0xa?0x3:_0x2f158c%0x64>=0xb?0x4:0x5}};_0x2832e5['ar']||={'dictionary':{},'getPluralForm':null},_0x2832e5['ar']['dictionary']=Object['assign'](_0x2832e5['ar']['dictionary'],_0x2b9458),_0x2832e5['ar']['getPluralForm']=_0x1d5e7e;})(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':_0x2df60b=>0x1!=_0x2df60b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x34b70b=>{const {ast:{dictionary:_0x50678,getPluralForm:_0xa0c192}}={'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':_0x4f892e=>0x1!=_0x4f892e}};_0x34b70b['ast']||={'dictionary':{},'getPluralForm':null},_0x34b70b['ast']['dictionary']=Object['assign'](_0x34b70b['ast']['dictionary'],_0x50678),_0x34b70b['ast']['getPluralForm']=_0xa0c192;})(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':_0x6f3c7=>0x1!=_0x6f3c7}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x47ae61=>{const {az:{dictionary:_0x229d8d,getPluralForm:_0x6f853b}}={'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':_0x4b8ddf=>0x1!=_0x4b8ddf}};_0x47ae61['az']||={'dictionary':{},'getPluralForm':null},_0x47ae61['az']['dictionary']=Object['assign'](_0x47ae61['az']['dictionary'],_0x229d8d),_0x47ae61['az']['getPluralForm']=_0x6f853b;})(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':_0x161f2f=>_0x161f2f%0xa==0x1&&_0x161f2f%0x64!=0xb?0x0:_0x161f2f%0xa>=0x2&&_0x161f2f%0xa<=0x4&&(_0x161f2f%0x64<0xa||_0x161f2f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2e7edc=>{const {be:{dictionary:_0x4adf86,getPluralForm:_0x120c33}}={'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':_0x324ffc=>_0x324ffc%0xa==0x1&&_0x324ffc%0x64!=0xb?0x0:_0x324ffc%0xa>=0x2&&_0x324ffc%0xa<=0x4&&(_0x324ffc%0x64<0xa||_0x324ffc%0x64>=0x14)?0x1:0x2}};_0x2e7edc['be']||={'dictionary':{},'getPluralForm':null},_0x2e7edc['be']['dictionary']=Object['assign'](_0x2e7edc['be']['dictionary'],_0x4adf86),_0x2e7edc['be']['getPluralForm']=_0x120c33;})(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':_0x1acdc7=>0x1!=_0x1acdc7}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x39c6d7=>{const {bg:{dictionary:_0x312084,getPluralForm:_0x2e79f7}}={'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':_0x75012=>0x1!=_0x75012}};_0x39c6d7['bg']||={'dictionary':{},'getPluralForm':null},_0x39c6d7['bg']['dictionary']=Object['assign'](_0x39c6d7['bg']['dictionary'],_0x312084),_0x39c6d7['bg']['getPluralForm']=_0x2e79f7;})(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':_0x1857d1=>0x1!=_0x1857d1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4bff47=>{const {bn:{dictionary:_0x5c51da,getPluralForm:_0x3862dd}}={'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':_0xa809e4=>0x1!=_0xa809e4}};_0x4bff47['bn']||={'dictionary':{},'getPluralForm':null},_0x4bff47['bn']['dictionary']=Object['assign'](_0x4bff47['bn']['dictionary'],_0x5c51da),_0x4bff47['bn']['getPluralForm']=_0x3862dd;})(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':_0x2c2f47=>_0x2c2f47%0xa==0x1&&_0x2c2f47%0x64!=0xb?0x0:_0x2c2f47%0xa>=0x2&&_0x2c2f47%0xa<=0x4&&(_0x2c2f47%0x64<0xa||_0x2c2f47%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1ffb95=>{const {bs:{dictionary:_0x11f648,getPluralForm:_0xad5931}}={'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':_0x31be66=>_0x31be66%0xa==0x1&&_0x31be66%0x64!=0xb?0x0:_0x31be66%0xa>=0x2&&_0x31be66%0xa<=0x4&&(_0x31be66%0x64<0xa||_0x31be66%0x64>=0x14)?0x1:0x2}};_0x1ffb95['bs']||={'dictionary':{},'getPluralForm':null},_0x1ffb95['bs']['dictionary']=Object['assign'](_0x1ffb95['bs']['dictionary'],_0x11f648),_0x1ffb95['bs']['getPluralForm']=_0xad5931;})(window['CKEDITOR_TRANSLATIONS']||={});
|