@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250526.0 → 0.0.0-nightly-20250527.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 _0x2c287e,Command as _0xf7e4e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x110a52,IconGooglePhotos as _0x49354f,IconGoogleDrive as _0x910440,IconFacebook as _0xf4981a,IconDropbox as _0xba03bb,IconUploadcareLink as _0x5a8f41,IconUploadcareImageUpload as _0x5a8393,IconError as et,IconUploadcareImageEdit as _0x3e57fb}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x377fcc,MenuBarMenuListItemButtonView as _0x442465,View as _0x4c8056,FocusCycler as _0x309fca,Dialog as _0x165ee0,DialogViewPosition as _0x528f2d,SpinnerView as _0x107ead,IconView as at,Notification as _0x488d95}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1b6eb3,DomEmitterMixin as _0x54558a,global as _0x174993,getAncestors as _0x15f199,ObservableMixin as _0x3b06fb,createElement as _0x386c6f,uid as _0x82b7b1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2f90f2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2463eb,info as _0x3421d3}from'@uploadcare/upload-client';import*as _0x2f16dc from'@uploadcare/file-uploader';var o=function(_0x5e3977){return _0x5e3977['Local']='local',_0x5e3977['URL']='url',_0x5e3977['Dropbox']='dropbox',_0x5e3977['GDrive']='gdrive',_0x5e3977['Facebook']='facebook',_0x5e3977['GPhotos']='gphotos',_0x5e3977['OneDrive']='onedrive',_0x5e3977;}({});function _(_0x262eb4,_0x1df8bc,_0x2bcdfe){const t=_0x262eb4['t'],_0x40d96e=_0x262eb4['t'];switch(_0x1df8bc){case o['Local']:return{'text':_0x40d96e('Insert'===_0x2bcdfe?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x40d96e('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2bcdfe?_0x40d96e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x40d96e('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1df8bc;}}class e extends _0x2c287e{['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 _0x2511aa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x74fbc3;for(const _0x52b456 in _0x2511aa){const _0x1e7235=_0x52b456,_0x4d5c90=_0x2511aa[_0x1e7235];if('uploadcareLicenseKeyValid'==_0x4d5c90||'uploadcareLicenseKeyInvalid'==_0x4d5c90||'uploadcareLicenseKeyExpired'==_0x4d5c90||'uploadcareLicenseKeyDomainLimit'==_0x4d5c90||'uploadcareLicenseKeyNotAllowed'==_0x4d5c90||'uploadcareLicenseKeyEvaluationLimit'==_0x4d5c90||'uploadcareLicenseKeyTrialLimit'==_0x4d5c90||'uploadcareLicenseKeyUsageLimit'==_0x4d5c90){delete _0x2511aa[_0x1e7235],_0x74fbc3=_0x4d5c90,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x74fbc3&&_0x2511aa['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x74fbc3&&_0x2511aa['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x74fbc3&&_0x2511aa['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x74fbc3&&_0x2511aa['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x74fbc3&&_0x2511aa['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x74fbc3&&_0x2511aa['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x74fbc3&&_0x2511aa['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x453f80}=this,_0x1a7145=_0x453f80['commands']['get']('uploadcare');if(!_0x1a7145)return;const _0xee85c3=this['_normalizeConfigSourceList'](_0x453f80['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3cf9f7,_0x5b15a9)=>{const _0x1ba7e7=this['_getIntegrationKey'](_0x5b15a9['type']);return _0x3cf9f7[_0x1ba7e7]||(_0x3cf9f7[_0x1ba7e7]=[]),_0x3cf9f7[_0x1ba7e7]['push'](_0x5b15a9),_0x3cf9f7;},{});_0x453f80['plugins']['has']('ImageInsertUI')&&_0x453f80['commands']['get']('uploadcare')&&Object['entries'](_0xee85c3)['forEach'](([_0x30afca,_0x24db5b])=>{_0x453f80['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x30afca,'observable':()=>_0x1a7145,'buttonViewCreator':()=>this['_createToolbarButton'](_0x24db5b),'formViewCreator':()=>this['_createDropdownButtons'](_0x24db5b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x24db5b),'override':'assetManager'!==_0x30afca});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xe9c3f7){const {locale:_0x30dd08}=this['editor'];return _0xe9c3f7['map'](_0x35ea6d=>{const _0x1da6cb=_(_0x30dd08,_0x35ea6d,'Insert');switch(_0x35ea6d){case o['Local']:return{'icon':_0x5a8393,'type':o['Local'],..._0x1da6cb};case o['URL']:return{'icon':_0x5a8f41,'type':o['URL'],..._0x1da6cb};case o['Dropbox']:return{'icon':_0xba03bb,'type':o['Dropbox'],..._0x1da6cb};case o['Facebook']:return{'icon':_0xf4981a,'type':o['Facebook'],..._0x1da6cb};case o['GDrive']:return{'icon':_0x910440,'type':o['GDrive'],..._0x1da6cb};case o['GPhotos']:return{'icon':_0x49354f,'type':o['GPhotos'],..._0x1da6cb};case o['OneDrive']:return{'icon':_0x110a52,'type':o['OneDrive'],..._0x1da6cb};}});}['_getIntegrationKey'](_0x2b0952){switch(_0x2b0952){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2d4c2b,_0x5a4d22){const _0x47816c=this['editor'],_0x572134=new _0x2d4c2b(_0x47816c['locale']),_0x351db3=_0x47816c['commands']['get']('uploadcare');return _0x572134['bind']('isEnabled')['to'](_0x351db3),_0x572134['on']('execute',()=>{_0x351db3['execute'](_0x5a4d22);}),_0x572134;}['_createToolbarButton'](_0x3fd2a6){const {locale:_0x31293f}=this['editor'],_0x3482b6=this['editor']['plugins']['get']('ImageInsertUI'),_0x2ddc57=_0x3fd2a6[0x0],_0x53122e=this['_createButton'](_0x377fcc,_0x2ddc57['type']);return _0x53122e['icon']=_0x2ddc57['icon'],_0x53122e['bind']('label')['to'](_0x3482b6,'isImageSelected',_0x2cbde2=>_(_0x31293f,_0x2ddc57['type'],_0x2cbde2?'Replace':'Insert')['text']),_0x53122e['tooltip']=!0x0,_0x53122e;}['_createDropdownButtons'](_0x2978d9){const {locale:_0x38f45c}=this['editor'],_0x340f1f=this['editor']['plugins']['get']('ImageInsertUI');return _0x2978d9['map'](_0x3ab753=>{const _0x4db88b=this['_createButton'](_0x377fcc,_0x3ab753['type']);return _0x4db88b['withText']=!0x0,_0x4db88b['icon']=_0x3ab753['icon'],_0x4db88b['bind']('label')['to'](_0x340f1f,'isImageSelected',_0x58e332=>_(_0x38f45c,_0x3ab753['type'],_0x58e332?'Replace':'Insert')['text']),_0x4db88b;});}['_createMenuBarButtons'](_0xd475d9){return _0xd475d9['map'](_0x48f5ce=>{const _0x27d3bf=this['_createButton'](_0x442465,_0x48f5ce['type']);return _0x27d3bf['icon']=_0x48f5ce['icon'],_0x27d3bf['label']=_0x48f5ce['shortText'],_0x27d3bf;});}}class q extends _0x4c8056{['focusTracker'];['focusCycler'];constructor(_0x19ab21){super(_0x19ab21),this['focusTracker']=new _0x1b6eb3(),this['focusCycler']=new _0x309fca({'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(_0x408656){super(_0x408656),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(_0xe23fd8,_0x1e9e1b){const _0xe31043=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3655f9=>_0x3655f9<=_0x1e9e1b)['map'](_0x508ae4=>_0xe23fd8['replace'](/\/$/,'')+'/-/resize/'+_0x508ae4+'x/\x20'+_0x508ae4+'w');return{'imageFallbackUrl':_0xe23fd8,'imageSources':[{'srcset':_0xe31043['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1e9e1b+'px)\x20100vw,\x20'+_0x1e9e1b+'px','type':'image/webp'}]};}function A(_0x338e62,_0x2eff63,_0x5c1e33){const _0x2efb3d=_0x338e62['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2efb3d?parseInt(_0x2efb3d[0x1],0xa):_0x2eff63,'height':_0x2efb3d?parseInt(_0x2efb3d[0x2],0xa):_0x5c1e33};}function m(_0x7e0bf7,_0x2d4137){const _0xa3fb31=Object['create'](_0x54558a),_0x47fe42=_0x7e0bf7['plugins']['get']('ImageUtils'),_0x2d40ba=_0x7e0bf7['editing']['mapper']['toViewElement'](_0x2d4137),_0x1fa4c6=_0x47fe42['findViewImgElement'](_0x2d40ba),_0x1b0952=_0x7e0bf7['editing']['view']['domConverter']['viewToDom'](_0x1fa4c6),_0xda582c=_0x2d4137['getAttribute']('width'),_0x3a809f=_0x2d4137['getAttribute']('height'),_0x233e0a='image-processing';_0x7e0bf7['editing']['view']['change'](_0x495a65=>{_0x495a65['addClass'](_0x233e0a,_0x2d40ba),_0x495a65['setStyle']('aspect-ratio',_0xda582c+'/'+_0x3a809f,_0x1fa4c6);}),_0xa3fb31['listenTo'](_0x1b0952,'load',()=>{_0xa3fb31['stopListening'](_0x1b0952,'load'),_0x7e0bf7['editing']['view']['change'](_0x557444=>{_0x557444['removeClass'](_0x233e0a,_0x2d40ba),_0x557444['removeStyle']('aspect-ratio',_0x1fa4c6);});});}function V(_0xc6b248){if(Array['isArray'](_0xc6b248)){const _0x13363d=_0xc6b248['map'](V);return _0x5db24b=>_0x13363d['some'](_0x52bbef=>_0x52bbef(_0x5db24b));}if('origin'==_0xc6b248){const _0x5b9566=_0x174993['window']['location']['origin'];return _0xd24f4e=>new URL(_0xd24f4e,_0x174993['document']['baseURI'])['origin']==_0x5b9566;}return'function'==typeof _0xc6b248?_0xc6b248:_0xc6b248 instanceof RegExp?_0x44f71b=>!(!_0x44f71b['match'](_0xc6b248)&&!_0x44f71b['replace'](/^https?:\/\//,'')['match'](_0xc6b248)):()=>!0x1;}function F(_0x4face7,_0x8f643a){return _0x15f199(_0x4face7['target'])['includes'](_0x8f643a);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3b06fb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xaaef38,_0x191d24,_0x109f29){super(),this['_editor']=_0xaaef38,this['_editing']=_0x191d24,this['_dialog']=_0xaaef38['plugins']['get'](_0x165ee0),this['_api']=_0x191d24['ctxElement']['getAPI'](),this['_type']=_0x109f29,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:_0xb126b6,model:_0x56fde9}=this['_editor'],_0x46d81d=_0x56fde9['document']['selection']['getSelectedElement'](),_0x384158=_0x46d81d&&(_0x46d81d['is']('element','imageBlock')||_0x46d81d['is']('element','imageInline'));this['_formView']=new S(_0xb126b6),this['_dialog']['show']({'id':'uploadCare','icon':_0x5a8393,'title':_(_0xb126b6,this['_type'],_0x384158?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x528f2d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x282561=>!F(_0x282561,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4ee62e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x42c48b=>{const _0x219538=_0x4ee62e['length'];for(const _0x1130cf of _0x4ee62e){const _0x487dbe=_0x1130cf===_0x4ee62e[_0x219538-0x1],{cdnUrl:_0x2fcf3e,fileInfo:_0x5dd0fd}=_0x1130cf;if(!_0x2fcf3e||!_0x5dd0fd)continue;const {width:_0x159c3b,height:_0x3d0733}=_0x5dd0fd['imageInfo'],_0xb2dca1=A(_0x2fcf3e,_0x159c3b,_0x3d0733),_0x23746f=E(_0x2fcf3e,_0xb2dca1['width']),_0xb94ad4={'id':_0x5dd0fd['uuid'],'type':'image','attributes':{'imageDimension':_0xb2dca1,..._0x23746f}};this['_insertAsset'](_0xb94ad4,_0x487dbe,_0x42c48b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5056fc=>{'idle'===_0x5056fc['detail']['status']&&!_0x5056fc['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x556e0a,_0xabdcbd,_0x2d2549){const _0x4c018d=this['_editor']['model']['document']['selection'],_0x718990=_0x4c018d['getSelectedElement'](),_0x39e806=!(!_0x718990||!_0x718990['is']('element','imageInline'));_0x2d2549['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x556e0a,_0x39e806),_0xabdcbd||_0x2d2549['setSelection'](_0x4c018d['getLastPosition']());}['_insertImage'](_0x2f2fcb,_0x302425){const _0x5cf80b=this['_editor'],{imageDimension:_0x58a9d,imageFallbackUrl:_0x37ac37,imageSources:_0x310231}=_0x2f2fcb['attributes'];_0x5cf80b['execute']('insertImage',{'imageType':_0x302425?'imageInline':null,'source':{'uploadcareImageId':_0x2f2fcb['id'],'src':_0x37ac37,'sources':_0x310231,..._0x58a9d}});}}class n extends _0xf7e4e{['_editing'];['_controller']=null;static get['requires'](){return[_0x165ee0,i];}constructor(_0x14023d){super(_0x14023d),this['_editing']=_0x14023d['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1f58c6){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1f58c6);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5ad667,publicKey:_0x1662f7,signal:_0x239742,onProgress:_0x344ad3}){return _0x2463eb(_0x5ad667,{'publicKey':_0x1662f7,'store':'auto','signal':_0x239742,'onProgress':_0x344ad3});}static['getInfo'](_0x31977f,_0x2bd8c7){return _0x3421d3(_0x31977f,_0x2bd8c7);}}class p extends _0x2c287e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2f90f2,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4780bc=this['editor'];if(!!!_0x4780bc['config']['get']('uploadcare'))return;_0x4780bc['plugins']['get'](_0x2f90f2)['createUploadAdapter']=_0x3dee1f=>new x(_0x3dee1f,_0x4780bc),_0x4780bc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x280d48,{imageElement:_0x2236db,data:_0xe3bc00})=>{_0x4780bc['model']['change'](_0xe519a4=>{_0xe519a4['setAttribute']('uploadcareImageId',_0xe3bc00['uploadcareImageId'],_0x2236db);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x1fe582,_0x29553f){this['loader']=_0x1fe582,this['editor']=_0x29553f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xab62b3=this['editor']['config']['get']('uploadcare.pubkey'),_0x2ae715=await this['loader']['file'];return C['upload']({'file':_0x2ae715,'publicKey':_0xab62b3,'signal':this['controller']['signal'],'onProgress':_0x2cf7d5=>{_0x2cf7d5&&_0x2cf7d5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2cf7d5['value']);}})['then'](async _0x5678f4=>{const {imageFallbackUrl:_0x14adb8,imageSources:_0x593a47}=E(_0x5678f4['cdnUrl'],_0x5678f4['imageInfo']['width']);return{'uploadcareImageId':_0x5678f4['uuid'],'default':_0x14adb8,'sources':_0x593a47};})['catch'](()=>{const _0x6797de=t('Cannot\x20upload\x20file:')+('\x20'+_0x2ae715['name']+'.');return Promise['reject'](_0x6797de);});}['abort'](){this['controller']['abort']();}}class i extends _0x2c287e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x165ee0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x74f81a=this['editor'];_0x74f81a['commands']['add']('uploadcare',new n(_0x74f81a));}['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 _0x1c44a2=_0x174993['document']['querySelector']('input[uploadcare-file-input]');_0x1c44a2&&_0x1c44a2['remove']();}),async function(_0x493e39){const _0x14df80=_0x30958e([0x57,0x71,0x73,0x33,0x4a,0x4f,0x52,0x35,0x32,0x56,0x4d,0x51,0x67,0x47,0x69,0x54,0x74,0x4b,0x75,0x55,0x53,0x79,0x36,0x44,0x50,0x78,0x38,0x63,0x37,0x61,0x45,0x6a,0x68,0x5a,0x70,0x42,0x66,0x6b,0x41,0x34,0x76,0x4c,0x62,0x6c,0x6f,0x59,0x6d,0x58,0x64,0x31,0x4e,0x7a,0x77,0x39,0x30,0x65,0x6e,0x46,0x43,0x72,0x49,0x48]),_0x4292e7=0x3053539b,_0x3d0142=0x30543a93^_0x4292e7,_0x1eb8da=window[_0x30958e([0x44,0x61,0x74,0x65])][_0x30958e([0x6e,0x6f,0x77])](),_0x38a021=_0x493e39[_0x30958e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x21ce24=new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x548d39=>{_0x38a021[_0x30958e([0x6f,0x6e,0x63,0x65])](_0x30958e([0x72,0x65,0x61,0x64,0x79]),_0x548d39);}),_0x490c0e={[_0x30958e([0x6b,0x74,0x79])]:_0x30958e([0x45,0x43]),[_0x30958e([0x75,0x73,0x65])]:_0x30958e([0x73,0x69,0x67]),[_0x30958e([0x63,0x72,0x76])]:_0x30958e([0x50,0x2d,0x32,0x35,0x36]),[_0x30958e([0x78])]:_0x30958e([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]),[_0x30958e([0x79])]:_0x30958e([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]),[_0x30958e([0x61,0x6c,0x67])]:_0x30958e([0x45,0x53,0x32,0x35,0x36])},_0x53bf31=_0x38a021[_0x30958e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30958e([0x67,0x65,0x74])](_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7ecf3e(){let _0x4c0f85,_0x43acf6=null,_0x494253=null;try{if(_0x53bf31==_0x30958e([0x47,0x50,0x4c]))return _0x30958e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c0f85=_0x474a42(),!_0x4c0f85)return _0x30958e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c0f85[_0x30958e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x494253=_0x159a75(_0x4c0f85[_0x30958e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c0f85[_0x30958e([0x6a,0x74,0x69])])),await _0x3dbcb9()?_0x26e4db()?_0x4aca19()?_0x30958e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b3942()?(_0x4c0f85[_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30958e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43acf6=_0x3bbdbd(_0x30958e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c0f85[_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30958e([0x74,0x72,0x69,0x61,0x6c])&&(_0x43acf6=_0x3bbdbd(_0x30958e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ee2d2()):_0x30958e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30958e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30958e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x30958e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4aca19(){const _0x483c7a=[_0x30958e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30958e([0x74,0x72,0x69,0x61,0x6c])][_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c0f85[_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1eb8da/0x3e8:0xe10*_0x3d0142;return _0x4c0f85[_0x30958e([0x65,0x78,0x70])]<_0x483c7a;}function _0x26e4db(){const _0x371960=_0x4c0f85[_0x30958e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x371960&&(!!_0x371960[_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30958e([0x2a]))||!!_0x371960[_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30958e([0x55,0x50,0x4c,0x43])));}function _0x5b3942(){const _0xbbb899=_0x4c0f85[_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xbbb899||0x0==_0xbbb899[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b3e03}=new URL(window[_0x30958e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xbbb899[_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b3e03))return!0x0;const _0x11da81=_0x1b3e03[_0x30958e([0x73,0x70,0x6c,0x69,0x74])](_0x30958e([0x2e]));return _0xbbb899[_0x30958e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41e09e=>_0x41e09e[_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30958e([0x2a])))[_0x30958e([0x6d,0x61,0x70])](_0x49745a=>_0x49745a[_0x30958e([0x73,0x70,0x6c,0x69,0x74])](_0x30958e([0x2e])))[_0x30958e([0x73,0x6f,0x6d,0x65])](_0x20b228=>_0x11da81[_0x30958e([0x65,0x76,0x65,0x72,0x79])]((_0x1f0591,_0x211f21)=>_0x20b228[_0x211f21]===_0x1f0591||_0x20b228[_0x211f21]===_0x30958e([0x2a])));}function _0x4ee2d2(){return _0x43acf6&&_0x494253?new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ba077,_0x43fe87)=>{_0x43acf6[_0x30958e([0x74,0x68,0x65,0x6e])](_0x4ba077,_0x43fe87),_0x494253[_0x30958e([0x74,0x68,0x65,0x6e])](_0x128e4b=>{_0x128e4b!=_0x30958e([0x56,0x61,0x6c,0x69,0x64])&&_0x4ba077(_0x128e4b);},_0x43fe87);}):_0x43acf6||_0x494253||_0x30958e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x159a75(_0x5770df,_0x24c419){return new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb5cb9a=>{if(_0xdd8c5f())return _0xb5cb9a(_0x30958e([0x56,0x61,0x6c,0x69,0x64]));_0x2ee5df(),_0x38a021[_0x30958e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30958e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x400d90=!0x1;const _0x43599c=_0x82b7b1();function _0x6ac192(_0x2e09ec){return!!_0x2e09ec&&(typeof _0x2e09ec===_0x30958e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e09ec===_0x30958e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e09ec[_0x30958e([0x74,0x68,0x65,0x6e])]===_0x30958e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e09ec[_0x30958e([0x63,0x61,0x74,0x63,0x68])]===_0x30958e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xaa0079(_0x54b310){_0x1f60b6(_0x54b310)[_0x30958e([0x74,0x68,0x65,0x6e])](_0x505a15=>{if(!_0x505a15||_0x505a15[_0x30958e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30958e([0x6f,0x6b]))return _0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57016a(_0x57653f(_0x43599c+_0x24c419))!=_0x505a15[_0x30958e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30958e([0x56,0x61,0x6c,0x69,0x64]);})[_0x30958e([0x74,0x68,0x65,0x6e])](_0x30a287=>(_0x2b26d6(),_0x30a287),()=>{const _0x3e272c=_0x14848e();return null==_0x3e272c?(_0x2b26d6(),_0x30958e([0x56,0x61,0x6c,0x69,0x64])):_0x30958e(_0x1eb8da-_0x3e272c>(0x145fd79b^_0x4292e7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30958e([0x74,0x68,0x65,0x6e])](_0xb5cb9a)[_0x30958e([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb5cb9a(_0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x152b20=0x3065bd1b^_0x4292e7;function _0x2b26d6(){const _0x3255d4=_0x30958e([0x6c,0x6c,0x63,0x74,0x2d])+_0x57016a(_0x57653f(_0x5770df)),_0x88d5e0=_0x3cbe7b(_0x57016a(window[_0x30958e([0x4d,0x61,0x74,0x68])][_0x30958e([0x63,0x65,0x69,0x6c])](_0x1eb8da/_0x152b20)));window[_0x30958e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30958e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3255d4,_0x88d5e0);}function _0x14848e(){const _0x111ca6=_0x30958e([0x6c,0x6c,0x63,0x74,0x2d])+_0x57016a(_0x57653f(_0x5770df)),_0x2d9788=window[_0x30958e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30958e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x111ca6);return _0x2d9788?window[_0x30958e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cbe7b(_0x2d9788),0x10)*_0x152b20:null;}function _0x1f60b6(_0x37df77){return new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bae6f,_0x3c4c6f)=>{_0x37df77[_0x30958e([0x74,0x68,0x65,0x6e])](_0x5bae6f,_0x3c4c6f),window[_0x30958e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c4c6f,0x3052875b^_0x4292e7);});}}_0x38a021[_0x30958e([0x6f,0x6e])](_0x30958e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x253cf8,_0xaf2776)=>{if(_0xaf2776[0x0]!=_0x5770df)return _0xb5cb9a(_0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xaf2776[0x1]={..._0xaf2776[0x1],[_0x30958e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43599c};},{[_0x30958e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30958e([0x68,0x69,0x67,0x68])}),_0x38a021[_0x30958e([0x6f,0x6e])](_0x30958e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3fc387=>{_0x6ac192(_0x3fc387[_0x30958e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x400d90=!0x0,_0xaa0079(_0x3fc387[_0x30958e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30958e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30958e([0x6c,0x6f,0x77])}),_0x21ce24[_0x30958e([0x74,0x68,0x65,0x6e])](()=>{_0x400d90||_0xb5cb9a(_0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xdd8c5f(){return _0x38a021[_0x30958e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30958e([0x76,0x69,0x65,0x77])][_0x30958e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30958e([0x61,0x75,0x74,0x6f]);}function _0x2ee5df(){_0x38a021[_0x30958e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30958e([0x76,0x69,0x65,0x77])][_0x30958e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30958e([0x61,0x75,0x74,0x6f]);}}function _0x3bbdbd(_0x110e38){const _0x2919a2=[new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x259b44=>setTimeout(_0x259b44,0x305a6d57^_0x4292e7)),_0x21ce24[_0x30958e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x63622d=>{let _0x4b1fb6=0x0;_0x38a021[_0x30958e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30958e([0x6f,0x6e])](_0x30958e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a1241,_0x29b4f8)=>{_0x29b4f8[0x0][_0x30958e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4b1fb6++,_0x4b1fb6==(0x30535263^_0x4292e7)&&(_0x63622d(),_0x1a1241[_0x30958e([0x6f,0x66,0x66])]());});}))];return window[_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30958e([0x72,0x61,0x63,0x65])](_0x2919a2)[_0x30958e([0x74,0x68,0x65,0x6e])](()=>_0x110e38);}async function _0x2ec5de(){await _0x21ce24,_0x38a021[_0x30958e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30958e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a9433,_0x38a021[_0x30958e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30958e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a9433,_0x38a021[_0x30958e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30958e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3fb112(_0x54b14e){const _0x9986c7=_0x455fd3();_0x38a021[_0x9986c7]=_0x30958e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54b14e,_0x54b14e!=_0x30958e([0x56,0x61,0x6c,0x69,0x64])&&_0x2ec5de();}function _0x455fd3(){const _0x2792a3=window[_0x30958e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30958e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30958e([0x6e,0x6f,0x77])]())[_0x30958e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30958e([0x2e]),'');let _0x42844e=_0x30958e([0x57]);for(let _0x417efc=0x0;_0x417efc<_0x2792a3[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x417efc+=0x2){let _0x5a7707=window[_0x30958e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2792a3[_0x30958e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x417efc,_0x417efc+0x2));_0x5a7707>=_0x14df80[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a7707-=_0x14df80[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42844e+=_0x14df80[_0x5a7707];}return _0x42844e;}function _0x474a42(){const _0x452cd6=_0x53bf31[_0x30958e([0x73,0x70,0x6c,0x69,0x74])](_0x30958e([0x2e]));if(0x3!=_0x452cd6[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x305df8(_0x452cd6[0x1]);function _0x305df8(_0x2ff3b8){const _0x3f07ea=_0x29514b(_0x2ff3b8);return _0x3f07ea&&_0x36518e()?_0x3f07ea:null;function _0x36518e(){const _0x44aedf=_0x3f07ea[_0x30958e([0x6a,0x74,0x69])],_0x4aaf7d=window[_0x30958e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44aedf[_0x30958e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44aedf[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f879b={..._0x3f07ea,[_0x30958e([0x6a,0x74,0x69])]:_0x44aedf[_0x30958e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44aedf[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f879b[_0x30958e([0x76,0x63])],_0x57653f(_0x4f879b)==_0x4aaf7d;}}}async function _0x3dbcb9(){let _0x28ff06=!0x0;try{const _0x185db9=_0x53bf31[_0x30958e([0x73,0x70,0x6c,0x69,0x74])](_0x30958e([0x2e])),[_0xda0226,_0x3e5003,_0x3fbf6d]=_0x185db9;return _0x450b18(_0xda0226),await _0x9af607(_0xda0226,_0x3e5003,_0x3fbf6d),_0x28ff06;}catch{return!0x1;}function _0x450b18(_0x2a9de1){const _0x206e04=_0x29514b(_0x2a9de1);_0x206e04&&_0x206e04[_0x30958e([0x61,0x6c,0x67])]==_0x30958e([0x45,0x53,0x32,0x35,0x36])||(_0x28ff06=!0x1);}async function _0x9af607(_0x45d12f,_0x411ddf,_0x40d8ee){const _0x592e6d=window[_0x30958e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30958e([0x66,0x72,0x6f,0x6d])](_0x2fefa3(_0x40d8ee),_0x3ac127=>_0x3ac127[_0x30958e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x236b3f=new window[(_0x30958e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30958e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45d12f+_0x30958e([0x2e])+_0x411ddf),_0x3e60cc=window[_0x30958e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30958e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3e60cc)return;const _0x13ae20=await _0x3e60cc[_0x30958e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30958e([0x6a,0x77,0x6b]),_0x490c0e,{[_0x30958e([0x6e,0x61,0x6d,0x65])]:_0x30958e([0x45,0x43,0x44,0x53,0x41]),[_0x30958e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30958e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30958e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3e60cc[_0x30958e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30958e([0x6e,0x61,0x6d,0x65])]:_0x30958e([0x45,0x43,0x44,0x53,0x41]),[_0x30958e([0x68,0x61,0x73,0x68])]:{[_0x30958e([0x6e,0x61,0x6d,0x65])]:_0x30958e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x13ae20,_0x592e6d,_0x236b3f)||(_0x28ff06=!0x1);}}function _0x29514b(_0x26977e){return _0x26977e[_0x30958e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30958e([0x65,0x79]))?JSON[_0x30958e([0x70,0x61,0x72,0x73,0x65])](_0x2fefa3(_0x26977e)):null;}function _0x2fefa3(_0x3bde92){return window[_0x30958e([0x61,0x74,0x6f,0x62])](_0x3bde92[_0x30958e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30958e([0x2b]))[_0x30958e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30958e([0x2f])));}function _0x57653f(_0x1112b4){let _0x4bafd2=0x1505;function _0x2f5ce4(_0x39a150){for(let _0x1e4ae1=0x0;_0x1e4ae1<_0x39a150[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e4ae1++){const _0x4f8b13=_0x39a150[_0x30958e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e4ae1);_0x4bafd2=(_0x4bafd2<<0x5)+_0x4bafd2+_0x4f8b13,_0x4bafd2&=_0x4bafd2;}}function _0x3b15f3(_0x329154){Array[_0x30958e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x329154)?_0x329154[_0x30958e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b15f3):_0x329154&&typeof _0x329154==_0x30958e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30958e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x329154)[_0x30958e([0x73,0x6f,0x72,0x74])]()[_0x30958e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xba2dc,_0x588785])=>{_0x2f5ce4(_0xba2dc),_0x3b15f3(_0x588785);}):_0x2f5ce4(window[_0x30958e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x329154));}return _0x3b15f3(_0x1112b4),_0x4bafd2>>>0x0;}function _0x57016a(_0x380f8a){return _0x380f8a[_0x30958e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30958e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30958e([0x30]));}function _0x3cbe7b(_0x4dce2e){return _0x4dce2e[_0x30958e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30958e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30958e([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a9433(){}function _0x30958e(_0x12c420){return _0x12c420['map'](_0xce8a0=>String['fromCharCode'](_0xce8a0))['join']('');}_0x3fb112(await _0x7ecf3e());}(this);}['_initSchema'](){const _0x2f2907=this['editor']['model']['schema'];_0x2f2907['isRegistered']('imageBlock')&&_0x2f2907['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2f2907['isRegistered']('imageInline')&&_0x2f2907['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2bf5a8=this['editor'];_0x2bf5a8['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2bf5a8['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5de0a4=>_0x5de0a4['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x59c47f=_0x2bf5a8['commands']['get']('replaceImageSource');_0x59c47f&&this['listenTo'](_0x59c47f,'cleanupImage',(_0x213457,[_0x1c77b9,_0x208f07])=>{_0x1c77b9['removeAttribute']('uploadcareImageId',_0x208f07);});}['_initConfig'](){const _0x28fac8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x59f18e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x386c6f(_0x174993['document'],'uc-config',{..._0x28fac8,'pubkey':_0x59f18e,'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']=_0x53905f=>{if('closeMax'==_0x53905f)return'#uc-icon-arrow-down';},_0x174993['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x386c6f(_0x174993['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x174993['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x44da74=this['editor']['commands']['get']('insertImage');_0x44da74&&this['listenTo'](_0x44da74,'execute',()=>{const _0x235e80=this['editor']['model']['document']['selection']['getSelectedElement']();_0x235e80&&_0x235e80['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x235e80);});});const _0x40601c=this['editor']['commands']['get']('uploadcareImageReplace');_0x40601c&&this['listenTo'](_0x40601c,'execute',()=>{const _0x51bb45=this['editor']['model']['document']['selection']['getSelectedElement']();_0x51bb45&&_0x51bb45['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x51bb45);});});}}class u extends _0x2c287e{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a452b){super(_0x1a452b),_0x1a452b['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2f16dc['defineComponents'](_0x2f16dc);}}class ta extends _0x4c8056{constructor(_0x56bd72){super(_0x56bd72);const t=_0x56bd72['t'],_0xa4bda6=this['bindTemplate'],_0x15c1cb=new _0x107ead();_0x15c1cb['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':[_0x15c1cb,{'text':_0xa4bda6['to']('imageUploadProgress',_0x2ee643=>t('Loading\x20image...')+'\x20('+(_0x2ee643||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 _0x4c8056{constructor(_0x74f243){super(_0x74f243);const t=_0x74f243['t'];this['set']('errorType',null);const _0x2862cf=new _0x377fcc(_0x74f243);_0x2862cf['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2862cf['withText']=!0x0,_0x2862cf['class']='ck-button-action',_0x2862cf['on']('execute',()=>{this['fire']('retry');}),_0x2862cf['bind']('isVisible')['to'](this,'errorType',_0x2f9f02=>'NotFound'!==_0x2f9f02);const _0x2f3667=new at();_0x2f3667['content']=et,_0x2f3667['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x587d6d=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':[_0x2f3667,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x587d6d['to']('errorType',_0x5ba7c7=>t('NotFound'!==_0x5ba7c7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2862cf]},{'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 _0x4c8056{constructor(_0x1f9a56,_0x55ca54){super(_0x1f9a56);const _0x5699a9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x55ca54,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5699a9['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1a9359,_0x128830,_0x568914){super(_0x1a9359),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x1a9359),this['_errorView']=new rt(_0x1a9359),this['_editingView']=new tt(_0x1a9359,_0x568914),this['_focusableView']=new _0x4c8056(_0x1a9359),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x128830),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'],_0x25ffa9=>{this['_addUploadcareImageEditorListeners'](_0x25ffa9);});}),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'](_0x167455,_0x23c473){const _0xb821b='uc-cloud-image-editor',_0x2b1771=_0x167455['querySelector'](_0xb821b);if(_0x2b1771)return _0x23c473(_0x2b1771);const _0x408f71=new MutationObserver(_0x3d122a=>{const _0x46d06a=_0x3d122a['filter'](_0x3c70f1=>_0x3c70f1['target']===_0x167455&&_0x3c70f1['addedNodes']['length']>0x0&&_0x3c70f1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xb821b);_0x46d06a['length']&&(_0x408f71['disconnect'](),_0x23c473(_0x46d06a[0x0]['addedNodes'][0x0]));});_0x408f71['observe'](_0x167455,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xf8f5f){_0xf8f5f['addEventListener']('apply',_0x29ca2d=>{this['fire']('apply',{'imageSrc':_0x29ca2d['detail']['cdnUrl']});}),_0xf8f5f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3b06fb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x280e8a,_0x49f3cb,_0x22c8af){super(),this['_editor']=_0x280e8a,this['_dialog']=_0x49f3cb,this['_imageElement']=_0x22c8af,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 _0x4b2369=this['_imageElement'],_0x317afe=_0x4b2369['getAttribute']('uploadcareImageId'),_0x22cbb4=_0x4b2369['getAttribute']('src');if(_0x317afe)await this['_loadImageInfo'](_0x317afe,_0x22cbb4);else{if(this['_imageCache']['has'](_0x22cbb4)){const _0x33650d=this['_imageCache']['get'](_0x22cbb4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33650d['url'],this['imageDimension']=_0x33650d['dimension'],this['imageId']=_0x33650d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2f712a}=this['_editor'],t=_0x2f712a['t'],_0x5b9d27=new Z(_0x2f712a,this['imageStatus'],this['_attributes']);_0x5b9d27['bind']('status')['to'](this,'imageStatus'),_0x5b9d27['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5b9d27['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5b9d27['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5b9d27,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3e57fb,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5b9d27,'position':_0x528f2d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5b9d27['focus']();},'onHide':()=>{_0x5b9d27['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2847ad=>!F(_0x2847ad,_0x5b9d27['element'])}});}['_loadImageInfo'](_0x59cf47,_0x2d2ce1){return C['getInfo'](_0x59cf47,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5a3034=>{const {width:_0x2f3f6e,height:_0x372887}=_0x5a3034['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d2ce1,this['imageDimension']={'width':_0x2f3f6e,'height':_0x372887},this['imageId']=_0x59cf47;})['catch'](_0x3fdb2e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3fdb2e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3756de,_0x133a69){return this['_getImageAsFile'](_0x3756de)['then'](_0x53e4c5=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x133a69['signal'],'file':_0x53e4c5,'onProgress':_0x8f23ed=>{_0x8f23ed&&_0x8f23ed['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x8f23ed['value']));}}))['then'](_0x169b5b=>{const {width:_0x498b82,height:_0x2bd642}=_0x169b5b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x169b5b['cdnUrl'],this['imageDimension']={'width':_0x498b82,'height':_0x2bd642},this['imageId']=_0x169b5b['uuid'],this['imageUploadProgress']=null;const _0x4178d5=_0x3756de['getAttribute']('src');this['_imageCache']['set'](_0x4178d5,{'id':_0x169b5b['uuid'],'url':_0x169b5b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x58adb9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x58adb9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x103f79,_0x51b7a6){_0x103f79['on']('apply',(_0x3b91fb,_0x436396)=>{this['_replaceImage'](_0x51b7a6,_0x436396['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x103f79['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x103f79['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x380593,_0x428a97,_0x476df6){const _0xadf10e=this['_editor'],{width:_0x2ce98,height:_0x3238d4}=A(_0x428a97,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x21b7c4,imageSources:_0x4de8fc}=E(_0x428a97,_0x2ce98);_0xadf10e['model']['change'](_0x5fd52b=>{if('$graveyard'===_0x380593['root']['rootName']){_0xadf10e['execute']('insertImage',{'imageType':_0x380593['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x380593['getAttributes']()),'uploadcareImageId':_0x476df6,'src':_0x21b7c4,'sources':_0x4de8fc,'width':_0x2ce98,'height':_0x3238d4}});const _0x1c2b4a=_0x380593['getChildren']();_0x380593=_0xadf10e['model']['document']['selection']['getSelectedElement']();for(const _0x1f27fe of _0x1c2b4a)_0x5fd52b['append'](_0x5fd52b['cloneElement'](_0x1f27fe),_0x380593);}else _0x5fd52b['setSelection'](_0x380593,'on'),_0xadf10e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x380593['getAttributes']()),'uploadcareImageId':_0x476df6,'src':_0x21b7c4,'sources':_0x4de8fc,'width':_0x2ce98,'height':_0x3238d4},_0x380593);_0x5fd52b['setSelection'](_0x380593,'on');});}async['_getImageAsFile'](_0x4b6978){const _0x1cd2e5=_0x174993['window'],_0x15f21b=_0x174993['document']['location']['href'],_0x3b1055=new _0x1cd2e5['URL'](_0x4b6978['getAttribute']('src'),_0x15f21b);if('data:'===_0x3b1055['protocol']){const _0x167517=_0x3b1055['href']['split'](','),_0x52d721=_0x167517[0x0]['match'](/:(.*?);/)[0x1],_0x44169b=_0x52d721['split']('/')[0x1],_0xc953e3=_0x1cd2e5['atob'](_0x167517[_0x167517['length']-0x1]);let _0x5a47f8=_0xc953e3['length'];const _0x544c15=new _0x1cd2e5['Uint8Array'](_0x5a47f8);for(;_0x5a47f8--;)_0x544c15[_0x5a47f8]=_0xc953e3['charCodeAt'](_0x5a47f8);return new _0x1cd2e5['File']([_0x544c15],'image.'+_0x44169b,{'type':_0x52d721});}const _0xd29863=_0x3b1055['href']['split']('/'),_0x544168=_0xd29863[_0xd29863['length']-0x1],_0x7e55fa=_0x544168['split']('.')[0x1];return _0x1cd2e5['fetch'](_0x3b1055['href'])['then'](_0x429559=>_0x429559['clone']()['blob']())['then'](_0xadcd8a=>new _0x1cd2e5['File']([_0xadcd8a],_0x544168,{'type':'image/'+_0x7e55fa}));}}class J extends _0xf7e4e{['imageEditController'];static get['requires'](){return[_0x165ee0];}['_isEditable'];constructor(_0x7caec){super(_0x7caec),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x285f8b){const _0x391b01=V(_0x285f8b);return _0x524fe8=>!(!_0x524fe8||!_0x524fe8['is']('element','imageBlock')&&!_0x524fe8['is']('element','imageInline'))&&(!!_0x524fe8['hasAttribute']('uploadcareImageId')||!!_0x524fe8['hasAttribute']('src')&&_0x391b01(_0x524fe8['getAttribute']('src')));}(_0x7caec['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x9e8bea=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x9e8bea);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3712dd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3712dd&&(_0x3712dd['is']('element','imageBlock')||_0x3712dd['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x165ee0),_0x3712dd),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xf7e4e{['refresh'](){const _0x28c48b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x28c48b&&(_0x28c48b['is']('element','imageBlock')||_0x28c48b['is']('element','imageInline')));}['execute'](_0x25d1fc){const _0x41b9fd=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x52b627=>{_0x52b627['setAttributes'](_0x25d1fc,_0x41b9fd),_0x52b627['removeAttribute']('srcset',_0x41b9fd),_0x52b627['removeAttribute']('sizes',_0x41b9fd);});}}class g extends _0x2c287e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x488d95,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2855c5}=this;_0x2855c5['commands']['add']('uploadcareImageEdit',new J(_0x2855c5)),_0x2855c5['commands']['add']('uploadcareImageReplace',new O(_0x2855c5));}}class j extends _0x2c287e{['_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 _0xd4b67a=this['editor'];_0xd4b67a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x978c87=>{const _0x3c4452=_0xd4b67a['commands']['get']('uploadcareImageEdit'),_0x26a61a=new _0x377fcc(_0x978c87),t=_0x978c87['t'];return _0x26a61a['set']({'icon':_0x3e57fb,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26a61a['bind']('isEnabled')['to'](_0x3c4452),_0x26a61a['bind']('isOn')['to'](_0x3c4452,'isActive'),this['listenTo'](_0x26a61a,'execute',()=>{_0xd4b67a['execute']('uploadcareImageEdit'),_0xd4b67a['editing']['view']['focus']();}),_0x26a61a;}),this['_initConfig']();}['_initConfig'](){const _0x3af161=_0x386c6f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3af161),this['listenTo'](this['editor'],'destroy',()=>{_0x3af161['remove']();});}}class P extends _0x2c287e{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']||={});
|