@ckeditor/ckeditor5-uploadcare 47.0.0 → 47.1.0-alpha.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 _0x2aa699,Command as _0x3fdc80}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x54b6c1,IconGooglePhotos as _0x5397ba,IconGoogleDrive as _0x4aaab2,IconFacebook as _0x2a31b2,IconDropbox as _0x30aad0,IconUploadcareLink as _0x3717cd,IconUploadcareImageUpload as _0x49f1fb,IconError as _0x1c947e,IconUploadcareImageEdit as _0x2153b2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1d4c82,MenuBarMenuListItemButtonView as _0x194f88,View as _0x3ac5a1,FocusCycler as _0x4aa2de,Dialog as _0x5c5bbd,DialogViewPosition as _0x56a80f,SpinnerView as _0x1190d8,IconView as _0x3da4cd,Notification as _0x4efee3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x34a38c,DomEmitterMixin as _0x18c5d3,global as _0x578c48,getAncestors as _0x6dfb64,ObservableMixin as _0x3a4d80,uid as _0x3ef480,createElement as _0x88f93b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xb3e91b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2c0bec,info as _0x58cd99}from'@uploadcare/upload-client';import*as _0x3f147d from'@uploadcare/file-uploader';var i=function(_0x2a4cbc){return _0x2a4cbc['Local']='local',_0x2a4cbc['URL']='url',_0x2a4cbc['Dropbox']='dropbox',_0x2a4cbc['GDrive']='gdrive',_0x2a4cbc['Facebook']='facebook',_0x2a4cbc['GPhotos']='gphotos',_0x2a4cbc['OneDrive']='onedrive',_0x2a4cbc;}({});function _(_0x546a05,_0x4b6cde,_0x4061f0){const t=_0x546a05['t'],_0x43faa5=_0x546a05['t'];switch(_0x4b6cde){case i['Local']:return{'text':_0x43faa5('Insert'===_0x4061f0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x43faa5('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4061f0?_0x43faa5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x43faa5('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4061f0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4061f0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4061f0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4061f0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4061f0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4b6cde;}}class e extends _0x2aa699{['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 _0x4e069b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6b956c;for(const _0x11402b in _0x4e069b){const _0x2fb836=_0x11402b,_0x1ad9a7=_0x4e069b[_0x2fb836];if('uploadcareLicenseKeyValid'==_0x1ad9a7||'uploadcareLicenseKeyInvalid'==_0x1ad9a7||'uploadcareLicenseKeyExpired'==_0x1ad9a7||'uploadcareLicenseKeyDomainLimit'==_0x1ad9a7||'uploadcareLicenseKeyNotAllowed'==_0x1ad9a7||'uploadcareLicenseKeyEvaluationLimit'==_0x1ad9a7||'uploadcareLicenseKeyTrialLimit'==_0x1ad9a7||'uploadcareLicenseKeyUsageLimit'==_0x1ad9a7){delete _0x4e069b[_0x2fb836],_0x6b956c=_0x1ad9a7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x6b956c&&_0x4e069b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x6b956c&&_0x4e069b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x6b956c&&_0x4e069b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x6b956c&&_0x4e069b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x6b956c&&_0x4e069b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x6b956c&&_0x4e069b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x6b956c&&_0x4e069b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x313959}=this,_0x23db65=_0x313959['commands']['get']('uploadcare');if(!_0x23db65)return;const _0xc292df=this['_normalizeConfigSourceList'](_0x313959['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4edb1c,_0x31aaf8)=>{const _0x4a60e6=this['_getIntegrationKey'](_0x31aaf8['type']);return _0x4edb1c[_0x4a60e6]||(_0x4edb1c[_0x4a60e6]=[]),_0x4edb1c[_0x4a60e6]['push'](_0x31aaf8),_0x4edb1c;},{});_0x313959['plugins']['has']('ImageInsertUI')&&_0x313959['commands']['get']('uploadcare')&&Object['entries'](_0xc292df)['forEach'](([_0x3e33bb,_0x1ed3ba])=>{_0x313959['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3e33bb,'observable':()=>_0x23db65,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1ed3ba),'formViewCreator':()=>this['_createDropdownButtons'](_0x1ed3ba),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1ed3ba),'override':'assetManager'!==_0x3e33bb});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2b6150){const {locale:_0xc5d8e3}=this['editor'];return _0x2b6150['map'](_0x277887=>{const _0x40dfcf=_(_0xc5d8e3,_0x277887,'Insert');switch(_0x277887){case i['Local']:return{'icon':_0x49f1fb,'type':i['Local'],..._0x40dfcf};case i['URL']:return{'icon':_0x3717cd,'type':i['URL'],..._0x40dfcf};case i['Dropbox']:return{'icon':_0x30aad0,'type':i['Dropbox'],..._0x40dfcf};case i['Facebook']:return{'icon':_0x2a31b2,'type':i['Facebook'],..._0x40dfcf};case i['GDrive']:return{'icon':_0x4aaab2,'type':i['GDrive'],..._0x40dfcf};case i['GPhotos']:return{'icon':_0x5397ba,'type':i['GPhotos'],..._0x40dfcf};case i['OneDrive']:return{'icon':_0x54b6c1,'type':i['OneDrive'],..._0x40dfcf};}});}['_getIntegrationKey'](_0x4ecf6f){switch(_0x4ecf6f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3e8e6e,_0x195330){const _0x5b42ee=this['editor'],_0x2176b5=new _0x3e8e6e(_0x5b42ee['locale']),_0x2a527e=_0x5b42ee['commands']['get']('uploadcare');return _0x2176b5['bind']('isEnabled')['to'](_0x2a527e),_0x2176b5['on']('execute',()=>{_0x2a527e['execute'](_0x195330);}),_0x2176b5;}['_createToolbarButton'](_0x2ab985){const {locale:_0x4a2e57}=this['editor'],_0x20b4d5=this['editor']['plugins']['get']('ImageInsertUI'),_0x3f961c=_0x2ab985[0x0],_0x315e72=this['_createButton'](_0x1d4c82,_0x3f961c['type']);return _0x315e72['icon']=_0x3f961c['icon'],_0x315e72['bind']('label')['to'](_0x20b4d5,'isImageSelected',_0x9a1317=>_(_0x4a2e57,_0x3f961c['type'],_0x9a1317?'Replace':'Insert')['text']),_0x315e72['tooltip']=!0x0,_0x315e72;}['_createDropdownButtons'](_0x563aa4){const {locale:_0x2e132c}=this['editor'],_0x174058=this['editor']['plugins']['get']('ImageInsertUI');return _0x563aa4['map'](_0x36e40e=>{const _0xac4780=this['_createButton'](_0x1d4c82,_0x36e40e['type']);return _0xac4780['withText']=!0x0,_0xac4780['icon']=_0x36e40e['icon'],_0xac4780['bind']('label')['to'](_0x174058,'isImageSelected',_0x40319e=>_(_0x2e132c,_0x36e40e['type'],_0x40319e?'Replace':'Insert')['text']),_0xac4780;});}['_createMenuBarButtons'](_0x43244e){return _0x43244e['map'](_0x36fe63=>{const _0x1a6094=this['_createButton'](_0x194f88,_0x36fe63['type']);return _0x1a6094['icon']=_0x36fe63['icon'],_0x1a6094['label']=_0x36fe63['shortText'],_0x1a6094;});}}class F extends _0x3ac5a1{['focusTracker'];['focusCycler'];constructor(_0x56b7bf){super(_0x56b7bf),this['focusTracker']=new _0x34a38c(),this['focusCycler']=new _0x4aa2de({'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 x extends F{constructor(_0x510a5c,_0x45168c){super(_0x510a5c),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-'+_0x45168c}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x303aea,_0x445beb){const _0x19f42e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1e09a7=>_0x1e09a7<=_0x445beb)['map'](_0x1776a5=>_0x303aea['replace'](/\/$/,'')+'/-/resize/'+_0x1776a5+'x/\x20'+_0x1776a5+'w');return{'imageFallbackUrl':_0x303aea,'imageSources':[{'srcset':_0x19f42e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x445beb+'px)\x20100vw,\x20'+_0x445beb+'px','type':'image/webp'}]};}function S(_0x3598f2,_0xf16784,_0x1fc3eb){const _0x27b265=_0x3598f2['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x27b265?parseInt(_0x27b265[0x1],0xa):_0xf16784,'height':_0x27b265?parseInt(_0x27b265[0x2],0xa):_0x1fc3eb};}function p(_0x5ee30e,_0x2e37cf){const _0x556989=new(_0x18c5d3())(),_0x2622e3=_0x5ee30e['plugins']['get']('ImageUtils'),_0xb4b33f=_0x5ee30e['editing']['mapper']['toViewElement'](_0x2e37cf),_0x230a81=_0x2622e3['findViewImgElement'](_0xb4b33f),_0x59ca56=_0x5ee30e['editing']['view']['domConverter']['viewToDom'](_0x230a81),_0x23c91a=_0x2e37cf['getAttribute']('width'),_0x53250b=_0x2e37cf['getAttribute']('height'),_0x33c9ee='image-processing';_0x5ee30e['editing']['view']['change'](_0x4084c1=>{_0x4084c1['addClass'](_0x33c9ee,_0xb4b33f),_0x4084c1['setStyle']('aspect-ratio',_0x23c91a+'/'+_0x53250b,_0x230a81);}),_0x556989['listenTo'](_0x59ca56,'load',()=>{_0x556989['stopListening'](_0x59ca56,'load'),_0x5ee30e['editing']['view']['change'](_0x567302=>{_0x567302['removeClass'](_0x33c9ee,_0xb4b33f),_0x567302['removeStyle']('aspect-ratio',_0x230a81);});});}function G(_0x2cb499){if(Array['isArray'](_0x2cb499)){const _0x4733c9=_0x2cb499['map'](G);return _0x4c446b=>_0x4733c9['some'](_0x6b3f1d=>_0x6b3f1d(_0x4c446b));}if('origin'==_0x2cb499){const _0x4d3d39=_0x578c48['window']['location']['origin'];return _0x1241db=>new URL(_0x1241db,_0x578c48['document']['baseURI'])['origin']==_0x4d3d39;}return'function'==typeof _0x2cb499?_0x2cb499:_0x2cb499 instanceof RegExp?_0x2cc830=>!(!_0x2cc830['match'](_0x2cb499)&&!_0x2cc830['replace'](/^https?:\/\//,'')['match'](_0x2cb499)):()=>!0x1;}function A(_0x25920b,_0x4a46d1){return _0x6dfb64(_0x25920b['target'])['includes'](_0x4a46d1);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3a4d80(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5eca26,_0x150e5c,_0x115d2f){super(),this['_editor']=_0x5eca26,this['_editing']=_0x150e5c,this['_dialog']=_0x5eca26['plugins']['get'](_0x5c5bbd),this['_api']=_0x150e5c['ctxElement']['getAPI'](),this['_type']=_0x115d2f,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:_0x55b521,model:_0x1696ec}=this['_editor'],_0x2894f7=_0x1696ec['document']['selection']['getSelectedElement'](),_0x2aa976=_0x2894f7&&(_0x2894f7['is']('element','imageBlock')||_0x2894f7['is']('element','imageInline'));this['_formView']=new x(_0x55b521,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x49f1fb,'title':_(_0x55b521,this['_type'],_0x2aa976?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x56a80f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2ce253=>!A(_0x2ce253,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3d9532}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x253deb=>{const _0x2da16f=_0x3d9532['length'];for(const _0x465273 of _0x3d9532){const _0x7c5db3=_0x465273===_0x3d9532[_0x2da16f-0x1],{cdnUrl:_0x5d2421,fileInfo:_0x30eb3f}=_0x465273;if(!_0x5d2421||!_0x30eb3f)continue;const {width:_0x3c1ad9,height:_0x5e1996}=_0x30eb3f['imageInfo'],_0x9a7558=S(_0x5d2421,_0x3c1ad9,_0x5e1996),_0x2689c0=C(_0x5d2421,_0x9a7558['width']),_0x4fdb9b={'id':_0x30eb3f['uuid'],'type':'image','attributes':{'imageDimension':_0x9a7558,..._0x2689c0}};this['_insertAsset'](_0x4fdb9b,_0x7c5db3,_0x253deb);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x474c6b=>{'idle'===_0x474c6b['detail']['status']&&!_0x474c6b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x583381,_0x117827,_0x5b564d){const _0x4e2755=this['_editor']['model']['document']['selection'],_0xfb6c8e=_0x4e2755['getSelectedElement'](),_0x23a0e3=!(!_0xfb6c8e||!_0xfb6c8e['is']('element','imageInline'));_0x5b564d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x583381,_0x23a0e3),_0x117827||_0x5b564d['setSelection'](_0x4e2755['getLastPosition']());}['_insertImage'](_0x50e94d,_0xa325e7){const _0x16a304=this['_editor'],{imageDimension:_0x20a80c,imageFallbackUrl:_0x5158f2,imageSources:_0x437ecc}=_0x50e94d['attributes'];_0x16a304['execute']('insertImage',{'imageType':_0xa325e7?'imageInline':null,'source':{'uploadcareImageId':_0x50e94d['id'],'src':_0x5158f2,'sources':_0x437ecc,..._0x20a80c}});}}class w extends _0x3fdc80{['_editing'];['_controller']=null;static get['requires'](){return[_0x5c5bbd,o];}constructor(_0x2e0190){super(_0x2e0190),this['_editing']=_0x2e0190['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x228551){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x228551);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x285dd2,..._0x411590}){return _0x2c0bec(_0x285dd2,_0x411590);}static['getInfo'](_0x5c1c90,_0x34c53f){return _0x58cd99(_0x5c1c90,_0x34c53f);}}class f extends _0x2aa699{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xb3e91b,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5d65aa=this['editor'];if(!!!_0x5d65aa['config']['get']('uploadcare'))return;_0x5d65aa['plugins']['get'](_0xb3e91b)['createUploadAdapter']=_0x5af586=>new k(_0x5af586,_0x5d65aa),_0x5d65aa['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x255b28,{imageElement:_0x48d84e,data:_0x419f26})=>{_0x5d65aa['model']['change'](_0x39c3c0=>{_0x39c3c0['setAttribute']('uploadcareImageId',_0x419f26['uploadcareImageId'],_0x48d84e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4ca6c8,_0xef60ff){this['loader']=_0x4ca6c8,this['editor']=_0xef60ff,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x21a174=await this['loader']['file'];return j['upload']({'file':_0x21a174,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x37d2f1=>{_0x37d2f1&&_0x37d2f1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x37d2f1['value']);}})['then'](async _0x78882d=>{const {imageFallbackUrl:_0x44fa17,imageSources:_0x5d4c44}=C(_0x78882d['cdnUrl'],_0x78882d['imageInfo']['width']);return{'uploadcareImageId':_0x78882d['uuid'],'default':_0x44fa17,'sources':_0x5d4c44};})['catch'](()=>{const _0x2ea058=t('Cannot\x20upload\x20file:')+('\x20'+_0x21a174['name']+'.');return Promise['reject'](_0x2ea058);});}['abort'](){this['controller']['abort']();}}class o extends _0x2aa699{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5c5bbd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x30e69d){super(_0x30e69d),this['ucContextId']=_0x3ef480();}['init'](){const _0x4108be=this['editor'];_0x4108be['commands']['add']('uploadcare',new w(_0x4108be));}['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 _0x195c4d=_0x578c48['document']['querySelector']('input[uploadcare-file-input]');_0x195c4d&&_0x195c4d['remove']();}),async function(_0xaad78e){const _0x42a3d8=_0x327443([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x48c88b=0x3d8d0df,_0x16e5ea=0x3dfa42f^_0x48c88b,_0x56ca5c=window[_0x327443([0x44,0x61,0x74,0x65])][_0x327443([0x6e,0x6f,0x77])](),_0x55ee9a=_0xaad78e[_0x327443([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x324f1e=new window[(_0x327443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5427d7=>{_0x55ee9a[_0x327443([0x6f,0x6e,0x63,0x65])](_0x327443([0x72,0x65,0x61,0x64,0x79]),_0x5427d7);}),_0x2beaaf={[_0x327443([0x6b,0x74,0x79])]:_0x327443([0x45,0x43]),[_0x327443([0x75,0x73,0x65])]:_0x327443([0x73,0x69,0x67]),[_0x327443([0x63,0x72,0x76])]:_0x327443([0x50,0x2d,0x32,0x35,0x36]),[_0x327443([0x78])]:_0x327443([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]),[_0x327443([0x79])]:_0x327443([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]),[_0x327443([0x61,0x6c,0x67])]:_0x327443([0x45,0x53,0x32,0x35,0x36])},_0x55e535=_0x55ee9a[_0x327443([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x327443([0x67,0x65,0x74])](_0x327443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x51ab72(){let _0x3e507e,_0x3a04c7=null,_0x160bdc=null;try{if(_0x55e535==_0x327443([0x47,0x50,0x4c]))return _0x327443([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e507e=_0xc49e6(),!_0x3e507e)return _0x327443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e507e[_0x327443([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x160bdc=_0x363a1e(_0x3e507e[_0x327443([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e507e[_0x327443([0x6a,0x74,0x69])])),await _0x3d597b()?_0xce5e15()?_0x550634()?_0x327443([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x210545()?(_0x3e507e[_0x327443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x327443([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a04c7=_0x37982a(_0x327443([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e507e[_0x327443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x327443([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a04c7=_0x37982a(_0x327443([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x240434()):_0x327443([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x327443([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x327443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x327443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x550634(){const _0x3896da=[_0x327443([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x327443([0x74,0x72,0x69,0x61,0x6c])][_0x327443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e507e[_0x327443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56ca5c/0x3e8:0xe10*_0x16e5ea;return _0x3e507e[_0x327443([0x65,0x78,0x70])]<_0x3896da;}function _0xce5e15(){const _0x5659ae=_0x3e507e[_0x327443([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5659ae&&(!!_0x5659ae[_0x327443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x327443([0x2a]))||!!_0x5659ae[_0x327443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x327443([0x55,0x50,0x4c,0x43])));}function _0x210545(){const _0x3a1b3a=_0x3e507e[_0x327443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a1b3a||0x0==_0x3a1b3a[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xbe472a}=new URL(window[_0x327443([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a1b3a[_0x327443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbe472a))return!0x0;const _0x561316=_0xbe472a[_0x327443([0x73,0x70,0x6c,0x69,0x74])](_0x327443([0x2e]));return _0x3a1b3a[_0x327443([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48cf0e=>_0x48cf0e[_0x327443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x327443([0x2a])))[_0x327443([0x6d,0x61,0x70])](_0x3aaf1b=>_0x3aaf1b[_0x327443([0x73,0x70,0x6c,0x69,0x74])](_0x327443([0x2e])))[_0x327443([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d3fb0=>_0x3d3fb0[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x561316[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x327443([0x6d,0x61,0x70])](_0x293dc6=>Array(_0x561316[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x293dc6[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x327443([0x66,0x69,0x6c,0x6c])](_0x293dc6[0x0]===_0x327443([0x2a])?_0x327443([0x2a]):'')[_0x327443([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x293dc6))[_0x327443([0x73,0x6f,0x6d,0x65])](_0x5d2cd6=>_0x561316[_0x327443([0x65,0x76,0x65,0x72,0x79])]((_0x2055f8,_0x615b73)=>_0x5d2cd6[_0x615b73]===_0x2055f8||_0x5d2cd6[_0x615b73]===_0x327443([0x2a])));}function _0x240434(){return _0x3a04c7&&_0x160bdc?new window[(_0x327443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa25047,_0x4b6f22)=>{_0x3a04c7[_0x327443([0x74,0x68,0x65,0x6e])](_0xa25047,_0x4b6f22),_0x160bdc[_0x327443([0x74,0x68,0x65,0x6e])](_0x18b576=>{_0x18b576!=_0x327443([0x56,0x61,0x6c,0x69,0x64])&&_0xa25047(_0x18b576);},_0x4b6f22);}):_0x3a04c7||_0x160bdc||_0x327443([0x56,0x61,0x6c,0x69,0x64]);}}function _0x363a1e(_0x2447d7,_0x2332f8){return new window[(_0x327443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ec7cd=>{if(_0x3e18a6())return _0x3ec7cd(_0x327443([0x56,0x61,0x6c,0x69,0x64]));_0x4c879b(),_0x55ee9a[_0x327443([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x327443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5cc117=!0x1;const _0x57b8e8=_0x3ef480();function _0x10767c(_0x59527f){return!!_0x59527f&&(typeof _0x59527f===_0x327443([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59527f===_0x327443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59527f[_0x327443([0x74,0x68,0x65,0x6e])]===_0x327443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59527f[_0x327443([0x63,0x61,0x74,0x63,0x68])]===_0x327443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2cc882(_0x8297f){_0x8e6338(_0x8297f)[_0x327443([0x74,0x68,0x65,0x6e])](_0x4d8df9=>{if(!_0x4d8df9||_0x4d8df9[_0x327443([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x327443([0x6f,0x6b]))return _0x327443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52cb51(_0x391cf1(_0x57b8e8+_0x2332f8))!=_0x4d8df9[_0x327443([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x327443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x327443([0x56,0x61,0x6c,0x69,0x64]);})[_0x327443([0x74,0x68,0x65,0x6e])](_0x187c80=>(_0x3a3e88(),_0x187c80),()=>{const _0x5c8028=_0x3b4d52();return null==_0x5c8028?(_0x3a3e88(),_0x327443([0x56,0x61,0x6c,0x69,0x64])):_0x327443(_0x56ca5c-_0x5c8028>(0x27d454df^_0x48c88b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x327443([0x74,0x68,0x65,0x6e])](_0x3ec7cd)[_0x327443([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ec7cd(_0x327443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b5154=0x3ee3e5f^_0x48c88b;function _0x3a3e88(){const _0x490e00=_0x327443([0x6c,0x6c,0x63,0x74,0x2d])+_0x52cb51(_0x391cf1(_0x2447d7)),_0x56f37d=_0x5e06f8(_0x52cb51(window[_0x327443([0x4d,0x61,0x74,0x68])][_0x327443([0x63,0x65,0x69,0x6c])](_0x56ca5c/_0x5b5154)));window[_0x327443([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x327443([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x490e00,_0x56f37d);}function _0x3b4d52(){const _0xa13b8a=_0x327443([0x6c,0x6c,0x63,0x74,0x2d])+_0x52cb51(_0x391cf1(_0x2447d7)),_0x2e27b3=window[_0x327443([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x327443([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa13b8a);return _0x2e27b3?window[_0x327443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e06f8(_0x2e27b3),0x10)*_0x5b5154:null;}function _0x8e6338(_0x155dd3){return new window[(_0x327443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x312b82,_0x369357)=>{_0x155dd3[_0x327443([0x74,0x68,0x65,0x6e])](_0x312b82,_0x369357),window[_0x327443([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x369357,0x3d9041f^_0x48c88b);});}}_0x55ee9a[_0x327443([0x6f,0x6e])](_0x327443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15b15f,_0x3f3bac)=>{if(_0x3f3bac[0x0]!=_0x2447d7)return _0x3ec7cd(_0x327443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f3bac[0x1]={..._0x3f3bac[0x1],[_0x327443([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x57b8e8};},{[_0x327443([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x327443([0x68,0x69,0x67,0x68])}),_0x55ee9a[_0x327443([0x6f,0x6e])](_0x327443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x25c5f6=>{_0x10767c(_0x25c5f6[_0x327443([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5cc117=!0x0,_0x2cc882(_0x25c5f6[_0x327443([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x327443([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x327443([0x6c,0x6f,0x77])}),_0x324f1e[_0x327443([0x74,0x68,0x65,0x6e])](()=>{_0x5cc117||_0x3ec7cd(_0x327443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e18a6(){return _0x55ee9a[_0x327443([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x327443([0x76,0x69,0x65,0x77])][_0x327443([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x327443([0x61,0x75,0x74,0x6f]);}function _0x4c879b(){_0x55ee9a[_0x327443([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x327443([0x76,0x69,0x65,0x77])][_0x327443([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x327443([0x61,0x75,0x74,0x6f]);}}function _0x37982a(_0x55ece3){const _0x4ec9ed=[new window[(_0x327443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x88d64d=>setTimeout(_0x88d64d,0x3d1ee13^_0x48c88b)),_0x324f1e[_0x327443([0x74,0x68,0x65,0x6e])](()=>new window[(_0x327443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44976e=>{let _0x34f6bd=0x0;_0x55ee9a[_0x327443([0x6d,0x6f,0x64,0x65,0x6c])][_0x327443([0x6f,0x6e])](_0x327443([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b6b85,_0x15e225)=>{_0x15e225[0x0][_0x327443([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34f6bd++,_0x34f6bd==(0x3d8d127^_0x48c88b)&&(_0x44976e(),_0x2b6b85[_0x327443([0x6f,0x66,0x66])]());});}))];return window[_0x327443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x327443([0x72,0x61,0x63,0x65])](_0x4ec9ed)[_0x327443([0x74,0x68,0x65,0x6e])](()=>_0x55ece3);}async function _0xb66c80(){await _0x324f1e,_0x55ee9a[_0x327443([0x6d,0x6f,0x64,0x65,0x6c])][_0x327443([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1caf1d,_0x55ee9a[_0x327443([0x6d,0x6f,0x64,0x65,0x6c])][_0x327443([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1caf1d,_0x55ee9a[_0x327443([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x327443([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x22e1ac(_0x5e887f){const _0xe3e125=_0x5bfad0();_0x55ee9a[_0xe3e125]=_0x327443([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e887f,_0x5e887f!=_0x327443([0x56,0x61,0x6c,0x69,0x64])&&_0xb66c80();}function _0x5bfad0(){const _0x175cef=window[_0x327443([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x327443([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x327443([0x6e,0x6f,0x77])]())[_0x327443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x327443([0x2e]),'');let _0x3ad0d7=_0x327443([0x52]);for(let _0x53280d=0x0;_0x53280d<_0x175cef[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53280d+=0x2){let _0x56581e=window[_0x327443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x175cef[_0x327443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53280d,_0x53280d+0x2));_0x56581e>=_0x42a3d8[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56581e-=_0x42a3d8[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ad0d7+=_0x42a3d8[_0x56581e];}return _0x3ad0d7;}function _0xc49e6(){const _0x3942f7=_0x55e535[_0x327443([0x73,0x70,0x6c,0x69,0x74])](_0x327443([0x2e]));if(0x3!=_0x3942f7[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f15d7(_0x3942f7[0x1]);function _0x5f15d7(_0x564736){const _0x445feb=_0x3b68e4(_0x564736);return _0x445feb&&_0x57777d()?_0x445feb:null;function _0x57777d(){const _0x4e3bb2=_0x445feb[_0x327443([0x6a,0x74,0x69])],_0x403623=window[_0x327443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e3bb2[_0x327443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e3bb2[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x105b12={..._0x445feb,[_0x327443([0x6a,0x74,0x69])]:_0x4e3bb2[_0x327443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e3bb2[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x105b12[_0x327443([0x76,0x63])],_0x391cf1(_0x105b12)==_0x403623;}}}async function _0x3d597b(){let _0x560e46=!0x0;try{const _0x4eb9e6=_0x55e535[_0x327443([0x73,0x70,0x6c,0x69,0x74])](_0x327443([0x2e])),[_0x2f8064,_0x10c287,_0x254eac]=_0x4eb9e6;return _0x53e630(_0x2f8064),await _0x551db3(_0x2f8064,_0x10c287,_0x254eac),_0x560e46;}catch{return!0x1;}function _0x53e630(_0x36ae0b){const _0x5ae363=_0x3b68e4(_0x36ae0b);_0x5ae363&&_0x5ae363[_0x327443([0x61,0x6c,0x67])]==_0x327443([0x45,0x53,0x32,0x35,0x36])||(_0x560e46=!0x1);}async function _0x551db3(_0x55d578,_0x3f9da6,_0x51ccdc){const _0x417f17=window[_0x327443([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x327443([0x66,0x72,0x6f,0x6d])](_0x28ed04(_0x51ccdc),_0x2a93f0=>_0x2a93f0[_0x327443([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1536dc=new window[(_0x327443([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x327443([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55d578+_0x327443([0x2e])+_0x3f9da6),_0x59a0a4=window[_0x327443([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x327443([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59a0a4)return;const _0x3a0055=await _0x59a0a4[_0x327443([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x327443([0x6a,0x77,0x6b]),_0x2beaaf,{[_0x327443([0x6e,0x61,0x6d,0x65])]:_0x327443([0x45,0x43,0x44,0x53,0x41]),[_0x327443([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x327443([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x327443([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59a0a4[_0x327443([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x327443([0x6e,0x61,0x6d,0x65])]:_0x327443([0x45,0x43,0x44,0x53,0x41]),[_0x327443([0x68,0x61,0x73,0x68])]:{[_0x327443([0x6e,0x61,0x6d,0x65])]:_0x327443([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a0055,_0x417f17,_0x1536dc)||(_0x560e46=!0x1);}}function _0x3b68e4(_0x4159be){return _0x4159be[_0x327443([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x327443([0x65,0x79]))?JSON[_0x327443([0x70,0x61,0x72,0x73,0x65])](_0x28ed04(_0x4159be)):null;}function _0x28ed04(_0x2c304d){return window[_0x327443([0x61,0x74,0x6f,0x62])](_0x2c304d[_0x327443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x327443([0x2b]))[_0x327443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x327443([0x2f])));}function _0x391cf1(_0x14d045){let _0x1ffff1=0x1505;function _0x534d30(_0x48fa22){for(let _0xdda9ef=0x0;_0xdda9ef<_0x48fa22[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdda9ef++){const _0x14241f=_0x48fa22[_0x327443([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xdda9ef);_0x1ffff1=(_0x1ffff1<<0x5)+_0x1ffff1+_0x14241f,_0x1ffff1&=_0x1ffff1;}}function _0x200c48(_0x2b5887){Array[_0x327443([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b5887)?_0x2b5887[_0x327443([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x200c48):_0x2b5887&&typeof _0x2b5887==_0x327443([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x327443([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b5887)[_0x327443([0x73,0x6f,0x72,0x74])]()[_0x327443([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x92c5b7,_0x55409d])=>{_0x534d30(_0x92c5b7),_0x200c48(_0x55409d);}):_0x534d30(window[_0x327443([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b5887));}return _0x200c48(_0x14d045),_0x1ffff1>>>0x0;}function _0x52cb51(_0x235c2e){return _0x235c2e[_0x327443([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x327443([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x327443([0x30]));}function _0x5e06f8(_0x55bfc0){return _0x55bfc0[_0x327443([0x73,0x70,0x6c,0x69,0x74])]('')[_0x327443([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x327443([0x6a,0x6f,0x69,0x6e])]('');}function _0x1caf1d(){}function _0x327443(_0x48de42){return _0x48de42['map'](_0x1b0a44=>String['fromCharCode'](_0x1b0a44))['join']('');}_0x22e1ac(await _0x51ab72());}(this);}['_initSchema'](){const _0x4e86a7=this['editor']['model']['schema'];_0x4e86a7['isRegistered']('imageBlock')&&_0x4e86a7['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4e86a7['isRegistered']('imageInline')&&_0x4e86a7['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x152f76=this['editor'];_0x152f76['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x152f76['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5dda18=>_0x5dda18['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xa78628=_0x152f76['commands']['get']('replaceImageSource');_0xa78628&&this['listenTo'](_0xa78628,'cleanupImage',(_0x5ebea8,[_0x262c63,_0x4e7f9f])=>{_0x262c63['removeAttribute']('uploadcareImageId',_0x4e7f9f);});}['_initConfig'](){const _0x1333ad=this['editor']['config']['get']('uploadcare.uploader')||{},_0x8cdaac=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x88f93b(_0x578c48['document'],'uc-config',{..._0x1333ad,'pubkey':_0x8cdaac,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x464644=>{if('closeMax'==_0x464644)return'#uc-icon-arrow-down';},_0x578c48['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x88f93b(_0x578c48['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x578c48['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x33316c=this['editor']['commands']['get']('insertImage');_0x33316c&&this['listenTo'](_0x33316c,'execute',()=>{const _0x1ef99c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1ef99c&&_0x1ef99c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1ef99c);});});const _0x38c66f=this['editor']['commands']['get']('uploadcareImageReplace');_0x38c66f&&this['listenTo'](_0x38c66f,'execute',()=>{const _0x3d592d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d592d&&_0x3d592d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3d592d);});});}}class tt extends _0x2aa699{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20b43d){super(_0x20b43d),_0x20b43d['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3f147d['defineComponents'](_0x3f147d);}}class ii extends _0x3ac5a1{constructor(_0x2309b8){super(_0x2309b8);const t=_0x2309b8['t'],_0x1844ac=this['bindTemplate'],_0x3e796f=new _0x1190d8();_0x3e796f['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':[_0x3e796f,{'text':_0x1844ac['to']('imageUploadProgress',_0x139fac=>t('Loading\x20image...')+'\x20('+(_0x139fac||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 ti extends _0x3ac5a1{constructor(_0x91d0c0){super(_0x91d0c0);const t=_0x91d0c0['t'];this['set']('errorType',null);const _0x33efd1=new _0x1d4c82(_0x91d0c0);_0x33efd1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x33efd1['withText']=!0x0,_0x33efd1['class']='ck-button-action',_0x33efd1['on']('execute',()=>{this['fire']('retry');}),_0x33efd1['bind']('isVisible')['to'](this,'errorType',_0x559dc0=>'NotFound'!==_0x559dc0);const _0x3efdb0=new _0x3da4cd();_0x3efdb0['content']=_0x1c947e,_0x3efdb0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4c3a82=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':[_0x3efdb0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4c3a82['to']('errorType',_0x181590=>t('NotFound'!==_0x181590?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x33efd1]},{'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 ei extends _0x3ac5a1{constructor(_0x317b35,_0x5f8f4d){super(_0x317b35);const _0xc66aec=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5f8f4d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xc66aec['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xaa0039,_0x2ea23e,_0x484e25){super(_0xaa0039),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xaa0039),this['_errorView']=new ti(_0xaa0039),this['_editingView']=new ei(_0xaa0039,_0x484e25),this['_focusableView']=new _0x3ac5a1(_0xaa0039),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2ea23e),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'],_0xa0c1eb=>{this['_addUploadcareImageEditorListeners'](_0xa0c1eb);});}),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'](_0x158dbe,_0x590938){const _0x336103='uc-cloud-image-editor',_0x50be4f=_0x158dbe['querySelector'](_0x336103);if(_0x50be4f)return _0x590938(_0x50be4f);const _0x1e60b4=new MutationObserver(_0x5d4399=>{const _0x1a8447=_0x5d4399['filter'](_0x58b88a=>_0x58b88a['target']===_0x158dbe&&_0x58b88a['addedNodes']['length']>0x0&&_0x58b88a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x336103);_0x1a8447['length']&&(_0x1e60b4['disconnect'](),_0x590938(_0x1a8447[0x0]['addedNodes'][0x0]));});_0x1e60b4['observe'](_0x158dbe,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x464a49){_0x464a49['addEventListener']('apply',_0x201481=>{this['fire']('apply',{'imageSrc':_0x201481['detail']['cdnUrl']});}),_0x464a49['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3a4d80(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5cc185,_0x55d531,_0x3ae9ab){super(),this['_editor']=_0x5cc185,this['_dialog']=_0x55d531,this['_imageElement']=_0x3ae9ab,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 _0x45bb5b=this['_imageElement'],_0x82361b=_0x45bb5b['getAttribute']('uploadcareImageId'),_0x7e94f4=_0x45bb5b['getAttribute']('src');if(_0x82361b)await this['_loadImageInfo'](_0x82361b,_0x7e94f4);else{if(this['_imageCache']['has'](_0x7e94f4)){const _0x2f4bf3=this['_imageCache']['get'](_0x7e94f4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2f4bf3['url'],this['imageDimension']=_0x2f4bf3['dimension'],this['imageId']=_0x2f4bf3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x10dc32}=this['_editor'],t=_0x10dc32['t'],_0x56ba30=new X(_0x10dc32,this['imageStatus'],this['_attributes']);_0x56ba30['bind']('status')['to'](this,'imageStatus'),_0x56ba30['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x56ba30['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x56ba30['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x56ba30,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2153b2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x56ba30,'position':_0x56a80f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x56ba30['focus']();},'onHide':()=>{_0x56ba30['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x424530=>!A(_0x424530,_0x56ba30['element'])}});}['_loadImageInfo'](_0x31edfd,_0xbe50e9){return j['getInfo'](_0x31edfd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2abe83=>{const {width:_0x81d2d4,height:_0x471242}=_0x2abe83['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbe50e9,this['imageDimension']={'width':_0x81d2d4,'height':_0x471242},this['imageId']=_0x31edfd;})['catch'](_0x36e4f5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x36e4f5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x482206,_0x2c031f){return this['_getImageAsFile'](_0x482206)['then'](_0x4ed43c=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2c031f['signal'],'file':_0x4ed43c,'onProgress':_0x1c97c0=>{_0x1c97c0&&_0x1c97c0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1c97c0['value']));}}))['then'](_0x2c974e=>{const {width:_0x36fe50,height:_0x2919a5}=_0x2c974e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2c974e['cdnUrl'],this['imageDimension']={'width':_0x36fe50,'height':_0x2919a5},this['imageId']=_0x2c974e['uuid'],this['imageUploadProgress']=null;const _0x4f5533=_0x482206['getAttribute']('src');this['_imageCache']['set'](_0x4f5533,{'id':_0x2c974e['uuid'],'url':_0x2c974e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1918fe=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1918fe['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x14d799,_0x89e6f9){_0x14d799['on']('apply',(_0x2d0428,_0x47a130)=>{this['_replaceImage'](_0x89e6f9,_0x47a130['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x14d799['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x14d799['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1abd2e,_0x5958ac,_0x238962){const _0x660cc2=this['_editor'],{width:_0x4958c3,height:_0x42a214}=S(_0x5958ac,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x58c5d6,imageSources:_0x22e46b}=C(_0x5958ac,_0x4958c3);_0x660cc2['model']['change'](_0x1921e7=>{if('$graveyard'===_0x1abd2e['root']['rootName']){_0x660cc2['execute']('insertImage',{'imageType':_0x1abd2e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1abd2e['getAttributes']()),'uploadcareImageId':_0x238962,'src':_0x58c5d6,'sources':_0x22e46b,'width':_0x4958c3,'height':_0x42a214}});const _0x53b06a=_0x1abd2e['getChildren']();_0x1abd2e=_0x660cc2['model']['document']['selection']['getSelectedElement']();for(const _0x3800ea of _0x53b06a)_0x1921e7['append'](_0x1921e7['cloneElement'](_0x3800ea),_0x1abd2e);}else _0x1921e7['setSelection'](_0x1abd2e,'on'),_0x660cc2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1abd2e['getAttributes']()),'uploadcareImageId':_0x238962,'src':_0x58c5d6,'sources':_0x22e46b,'width':_0x4958c3,'height':_0x42a214},_0x1abd2e);_0x1921e7['setSelection'](_0x1abd2e,'on');});}async['_getImageAsFile'](_0x41ac85){const _0x5e7234=_0x578c48['window'],_0x4c181d=_0x578c48['document']['location']['href'],_0x6959af=new _0x5e7234['URL'](_0x41ac85['getAttribute']('src'),_0x4c181d);if('data:'===_0x6959af['protocol']){const _0x171ca9=_0x6959af['href']['split'](','),_0x446d8d=_0x171ca9[0x0]['match'](/:(.*?);/)[0x1],_0xf7b571=_0x446d8d['split']('/')[0x1],_0x1d372f=_0x5e7234['atob'](_0x171ca9[_0x171ca9['length']-0x1]);let _0x484225=_0x1d372f['length'];const _0x54c5ac=new _0x5e7234['Uint8Array'](_0x484225);for(;_0x484225--;)_0x54c5ac[_0x484225]=_0x1d372f['charCodeAt'](_0x484225);return new _0x5e7234['File']([_0x54c5ac],'image.'+_0xf7b571,{'type':_0x446d8d});}const _0x24f53c=_0x6959af['href']['split']('/'),_0x36f212=_0x24f53c[_0x24f53c['length']-0x1],_0x2f7280=_0x36f212['split']('.')[0x1];return _0x5e7234['fetch'](_0x6959af['href'])['then'](_0xae7144=>_0xae7144['clone']()['blob']())['then'](_0x3baba0=>new _0x5e7234['File']([_0x3baba0],_0x36f212,{'type':'image/'+_0x2f7280}));}}class O extends _0x3fdc80{['imageEditController'];static get['requires'](){return[_0x5c5bbd];}['_isEditable'];constructor(_0x2481b5){super(_0x2481b5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1c5a95){const _0x4da9b0=G(_0x1c5a95);return _0x2b0ea9=>!(!_0x2b0ea9||!_0x2b0ea9['is']('element','imageBlock')&&!_0x2b0ea9['is']('element','imageInline'))&&(!!_0x2b0ea9['hasAttribute']('uploadcareImageId')||!!_0x2b0ea9['hasAttribute']('src')&&_0x4da9b0(_0x2b0ea9['getAttribute']('src')));}(_0x2481b5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x560113=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x560113);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x42e4e8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x42e4e8&&(_0x42e4e8['is']('element','imageBlock')||_0x42e4e8['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x5c5bbd),_0x42e4e8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3fdc80{['refresh'](){const _0x4ed54d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4ed54d&&(_0x4ed54d['is']('element','imageBlock')||_0x4ed54d['is']('element','imageInline')));}['execute'](_0x569602){const _0x38ab93=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x211354=>{_0x211354['setAttributes'](_0x569602,_0x38ab93),_0x211354['removeAttribute']('srcset',_0x38ab93),_0x211354['removeAttribute']('sizes',_0x38ab93);});}}class m extends _0x2aa699{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4efee3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x204a93}=this;_0x204a93['commands']['add']('uploadcareImageEdit',new O(_0x204a93)),_0x204a93['commands']['add']('uploadcareImageReplace',new R(_0x204a93));}}class g extends _0x2aa699{['_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 _0x79e536=this['editor'];_0x79e536['ui']['componentFactory']['add']('uploadcareImageEdit',_0x30ee2d=>{const _0x39a6f2=_0x79e536['commands']['get']('uploadcareImageEdit'),_0x3a9f34=new _0x1d4c82(_0x30ee2d),t=_0x30ee2d['t'];return _0x3a9f34['set']({'icon':_0x2153b2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3a9f34['bind']('isEnabled')['to'](_0x39a6f2),_0x3a9f34['bind']('isOn')['to'](_0x39a6f2,'isActive'),this['listenTo'](_0x3a9f34,'execute',()=>{_0x79e536['execute']('uploadcareImageEdit'),_0x79e536['editing']['view']['focus']();}),_0x3a9f34;}),this['_initConfig']();}['_initConfig'](){const _0x3a1596=_0x88f93b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3a1596),this['listenTo'](this['editor'],'destroy',()=>{_0x3a1596['remove']();});}}class et extends _0x2aa699{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x2987a8,Command as _0x39f609}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x54f225,IconGooglePhotos as _0x5cfd19,IconGoogleDrive as _0x2733b2,IconFacebook as _0x3851f8,IconDropbox as _0x5576c9,IconUploadcareLink as _0x535f8a,IconUploadcareImageUpload as _0x5b00d3,IconError as _0x517e63,IconUploadcareImageEdit as _0x44376c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4ecb29,MenuBarMenuListItemButtonView as _0x3b0470,View as _0x3192f2,FocusCycler as _0x28101d,Dialog as _0xdd669,DialogViewPosition as _0x9e98d6,SpinnerView as _0xe290b1,IconView as _0x1148a0,Notification as _0x3852d9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3f015e,DomEmitterMixin as _0x33edea,global as _0x5553a5,getAncestors as _0x388833,ObservableMixin as _0x4be6ae,uid as _0x103736,createElement as _0x11e7cb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x473243}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5d17a2,info as _0x2476dd}from'@uploadcare/upload-client';import*as _0x2b3e25 from'@uploadcare/file-uploader';var i=function(_0x39768e){return _0x39768e['Local']='local',_0x39768e['URL']='url',_0x39768e['Dropbox']='dropbox',_0x39768e['GDrive']='gdrive',_0x39768e['Facebook']='facebook',_0x39768e['GPhotos']='gphotos',_0x39768e['OneDrive']='onedrive',_0x39768e;}({});function _(_0xab9a36,_0x25e8e6,_0x32ab8f){const t=_0xab9a36['t'],_0x337531=_0xab9a36['t'];switch(_0x25e8e6){case i['Local']:return{'text':_0x337531('Insert'===_0x32ab8f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x337531('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x32ab8f?_0x337531('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x337531('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x32ab8f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x32ab8f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x32ab8f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x32ab8f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x32ab8f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x25e8e6;}}class e extends _0x2987a8{['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 _0x2d87e0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35d0d7;for(const _0x55cbb1 in _0x2d87e0){const _0x2aa80e=_0x55cbb1,_0x104732=_0x2d87e0[_0x2aa80e];if('uploadcareLicenseKeyValid'==_0x104732||'uploadcareLicenseKeyInvalid'==_0x104732||'uploadcareLicenseKeyExpired'==_0x104732||'uploadcareLicenseKeyDomainLimit'==_0x104732||'uploadcareLicenseKeyNotAllowed'==_0x104732||'uploadcareLicenseKeyEvaluationLimit'==_0x104732||'uploadcareLicenseKeyTrialLimit'==_0x104732||'uploadcareLicenseKeyUsageLimit'==_0x104732){delete _0x2d87e0[_0x2aa80e],_0x35d0d7=_0x104732,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x35d0d7&&_0x2d87e0['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x35d0d7&&_0x2d87e0['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x35d0d7&&_0x2d87e0['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x35d0d7&&_0x2d87e0['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x35d0d7&&_0x2d87e0['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x35d0d7&&_0x2d87e0['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x35d0d7&&_0x2d87e0['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x126632}=this,_0x57f49a=_0x126632['commands']['get']('uploadcare');if(!_0x57f49a)return;const _0x597ee4=this['_normalizeConfigSourceList'](_0x126632['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x32771f,_0x45ca1e)=>{const _0x59abfc=this['_getIntegrationKey'](_0x45ca1e['type']);return _0x32771f[_0x59abfc]||(_0x32771f[_0x59abfc]=[]),_0x32771f[_0x59abfc]['push'](_0x45ca1e),_0x32771f;},{});_0x126632['plugins']['has']('ImageInsertUI')&&_0x126632['commands']['get']('uploadcare')&&Object['entries'](_0x597ee4)['forEach'](([_0x1b74f3,_0x5d8a72])=>{_0x126632['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1b74f3,'observable':()=>_0x57f49a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5d8a72),'formViewCreator':()=>this['_createDropdownButtons'](_0x5d8a72),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5d8a72),'override':'assetManager'!==_0x1b74f3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x7d4f3e){const {locale:_0x31e60b}=this['editor'];return _0x7d4f3e['map'](_0x20721e=>{const _0x5371f3=_(_0x31e60b,_0x20721e,'Insert');switch(_0x20721e){case i['Local']:return{'icon':_0x5b00d3,'type':i['Local'],..._0x5371f3};case i['URL']:return{'icon':_0x535f8a,'type':i['URL'],..._0x5371f3};case i['Dropbox']:return{'icon':_0x5576c9,'type':i['Dropbox'],..._0x5371f3};case i['Facebook']:return{'icon':_0x3851f8,'type':i['Facebook'],..._0x5371f3};case i['GDrive']:return{'icon':_0x2733b2,'type':i['GDrive'],..._0x5371f3};case i['GPhotos']:return{'icon':_0x5cfd19,'type':i['GPhotos'],..._0x5371f3};case i['OneDrive']:return{'icon':_0x54f225,'type':i['OneDrive'],..._0x5371f3};}});}['_getIntegrationKey'](_0x485b7e){switch(_0x485b7e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x55c544,_0x3a4e98){const _0xe4e7aa=this['editor'],_0x1a9f14=new _0x55c544(_0xe4e7aa['locale']),_0x3c8b0a=_0xe4e7aa['commands']['get']('uploadcare');return _0x1a9f14['bind']('isEnabled')['to'](_0x3c8b0a),_0x1a9f14['on']('execute',()=>{_0x3c8b0a['execute'](_0x3a4e98);}),_0x1a9f14;}['_createToolbarButton'](_0x522966){const {locale:_0xdfeef6}=this['editor'],_0x2f0d1c=this['editor']['plugins']['get']('ImageInsertUI'),_0x396739=_0x522966[0x0],_0x1f1e57=this['_createButton'](_0x4ecb29,_0x396739['type']);return _0x1f1e57['icon']=_0x396739['icon'],_0x1f1e57['bind']('label')['to'](_0x2f0d1c,'isImageSelected',_0x510c79=>_(_0xdfeef6,_0x396739['type'],_0x510c79?'Replace':'Insert')['text']),_0x1f1e57['tooltip']=!0x0,_0x1f1e57;}['_createDropdownButtons'](_0x2aa93e){const {locale:_0x21eee2}=this['editor'],_0x19c60d=this['editor']['plugins']['get']('ImageInsertUI');return _0x2aa93e['map'](_0x45d0bd=>{const _0x13f843=this['_createButton'](_0x4ecb29,_0x45d0bd['type']);return _0x13f843['withText']=!0x0,_0x13f843['icon']=_0x45d0bd['icon'],_0x13f843['bind']('label')['to'](_0x19c60d,'isImageSelected',_0x5674c7=>_(_0x21eee2,_0x45d0bd['type'],_0x5674c7?'Replace':'Insert')['text']),_0x13f843;});}['_createMenuBarButtons'](_0x2dcc18){return _0x2dcc18['map'](_0x5369fc=>{const _0x1e97e2=this['_createButton'](_0x3b0470,_0x5369fc['type']);return _0x1e97e2['icon']=_0x5369fc['icon'],_0x1e97e2['label']=_0x5369fc['shortText'],_0x1e97e2;});}}class F extends _0x3192f2{['focusTracker'];['focusCycler'];constructor(_0x3b296){super(_0x3b296),this['focusTracker']=new _0x3f015e(),this['focusCycler']=new _0x28101d({'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 x extends F{constructor(_0x2febc0,_0x2ef916){super(_0x2febc0),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-'+_0x2ef916}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4b968b,_0x4190da){const _0x189d8d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5630f7=>_0x5630f7<=_0x4190da)['map'](_0x2bb325=>_0x4b968b['replace'](/\/$/,'')+'/-/resize/'+_0x2bb325+'x/\x20'+_0x2bb325+'w');return{'imageFallbackUrl':_0x4b968b,'imageSources':[{'srcset':_0x189d8d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4190da+'px)\x20100vw,\x20'+_0x4190da+'px','type':'image/webp'}]};}function S(_0x5bb3dd,_0x36e98f,_0x1ca966){const _0x4568fb=_0x5bb3dd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4568fb?parseInt(_0x4568fb[0x1],0xa):_0x36e98f,'height':_0x4568fb?parseInt(_0x4568fb[0x2],0xa):_0x1ca966};}function p(_0x17d61f,_0x347e73){const _0x330ae4=new(_0x33edea())(),_0x1e745c=_0x17d61f['plugins']['get']('ImageUtils'),_0x58e408=_0x17d61f['editing']['mapper']['toViewElement'](_0x347e73),_0x199fd8=_0x1e745c['findViewImgElement'](_0x58e408),_0x333a65=_0x17d61f['editing']['view']['domConverter']['viewToDom'](_0x199fd8),_0x4debba=_0x347e73['getAttribute']('width'),_0x40aaa3=_0x347e73['getAttribute']('height'),_0x519e37='image-processing';_0x17d61f['editing']['view']['change'](_0x497fa2=>{_0x497fa2['addClass'](_0x519e37,_0x58e408),_0x497fa2['setStyle']('aspect-ratio',_0x4debba+'/'+_0x40aaa3,_0x199fd8);}),_0x330ae4['listenTo'](_0x333a65,'load',()=>{_0x330ae4['stopListening'](_0x333a65,'load'),_0x17d61f['editing']['view']['change'](_0x56367b=>{_0x56367b['removeClass'](_0x519e37,_0x58e408),_0x56367b['removeStyle']('aspect-ratio',_0x199fd8);});});}function G(_0x50ebfd){if(Array['isArray'](_0x50ebfd)){const _0x1c4291=_0x50ebfd['map'](G);return _0x252311=>_0x1c4291['some'](_0x2a1e9a=>_0x2a1e9a(_0x252311));}if('origin'==_0x50ebfd){const _0xa58976=_0x5553a5['window']['location']['origin'];return _0x3cf96a=>new URL(_0x3cf96a,_0x5553a5['document']['baseURI'])['origin']==_0xa58976;}return'function'==typeof _0x50ebfd?_0x50ebfd:_0x50ebfd instanceof RegExp?_0x23aa7b=>!(!_0x23aa7b['match'](_0x50ebfd)&&!_0x23aa7b['replace'](/^https?:\/\//,'')['match'](_0x50ebfd)):()=>!0x1;}function A(_0x404dda,_0xfdc734){return _0x388833(_0x404dda['target'])['includes'](_0xfdc734);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4be6ae(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5ba158,_0x56ab8e,_0x4e8ee7){super(),this['_editor']=_0x5ba158,this['_editing']=_0x56ab8e,this['_dialog']=_0x5ba158['plugins']['get'](_0xdd669),this['_api']=_0x56ab8e['ctxElement']['getAPI'](),this['_type']=_0x4e8ee7,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:_0xcd548b,model:_0x53bc04}=this['_editor'],_0x412795=_0x53bc04['document']['selection']['getSelectedElement'](),_0x5a1198=_0x412795&&(_0x412795['is']('element','imageBlock')||_0x412795['is']('element','imageInline'));this['_formView']=new x(_0xcd548b,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5b00d3,'title':_(_0xcd548b,this['_type'],_0x5a1198?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x9e98d6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x36f649=>!A(_0x36f649,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x553af4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x525b2c=>{const _0x334cf1=_0x553af4['length'];for(const _0x2224a9 of _0x553af4){const _0x335d51=_0x2224a9===_0x553af4[_0x334cf1-0x1],{cdnUrl:_0x29149d,fileInfo:_0x11d85d}=_0x2224a9;if(!_0x29149d||!_0x11d85d)continue;const {width:_0x433e1d,height:_0x125c81}=_0x11d85d['imageInfo'],_0x604ba4=S(_0x29149d,_0x433e1d,_0x125c81),_0x1bc211=C(_0x29149d,_0x604ba4['width']),_0x1956d7={'id':_0x11d85d['uuid'],'type':'image','attributes':{'imageDimension':_0x604ba4,..._0x1bc211}};this['_insertAsset'](_0x1956d7,_0x335d51,_0x525b2c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3960bf=>{'idle'===_0x3960bf['detail']['status']&&!_0x3960bf['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x443abf,_0x352c77,_0x4c9332){const _0x5b3c8e=this['_editor']['model']['document']['selection'],_0x4257cd=_0x5b3c8e['getSelectedElement'](),_0x3a807d=!(!_0x4257cd||!_0x4257cd['is']('element','imageInline'));_0x4c9332['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x443abf,_0x3a807d),_0x352c77||_0x4c9332['setSelection'](_0x5b3c8e['getLastPosition']());}['_insertImage'](_0x57a81e,_0x3c4780){const _0xe1d41c=this['_editor'],{imageDimension:_0x215925,imageFallbackUrl:_0x7bab54,imageSources:_0x1d2bc9}=_0x57a81e['attributes'];_0xe1d41c['execute']('insertImage',{'imageType':_0x3c4780?'imageInline':null,'source':{'uploadcareImageId':_0x57a81e['id'],'src':_0x7bab54,'sources':_0x1d2bc9,..._0x215925}});}}class w extends _0x39f609{['_editing'];['_controller']=null;static get['requires'](){return[_0xdd669,o];}constructor(_0x46209d){super(_0x46209d),this['_editing']=_0x46209d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xdc1cfd){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xdc1cfd);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x395636,..._0x434ef4}){return _0x5d17a2(_0x395636,_0x434ef4);}static['getInfo'](_0x5b9ef2,_0xb7998d){return _0x2476dd(_0x5b9ef2,_0xb7998d);}}class f extends _0x2987a8{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x473243,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2422b5=this['editor'];if(!!!_0x2422b5['config']['get']('uploadcare'))return;_0x2422b5['plugins']['get'](_0x473243)['createUploadAdapter']=_0x5c298b=>new k(_0x5c298b,_0x2422b5),_0x2422b5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2c9250,{imageElement:_0x2b354f,data:_0x580d9a})=>{_0x2422b5['model']['change'](_0x2fe4c9=>{_0x2fe4c9['setAttribute']('uploadcareImageId',_0x580d9a['uploadcareImageId'],_0x2b354f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x49d710,_0x11b9de){this['loader']=_0x49d710,this['editor']=_0x11b9de,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x19529b=await this['loader']['file'];return j['upload']({'file':_0x19529b,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0xd0ec47=>{_0xd0ec47&&_0xd0ec47['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xd0ec47['value']);}})['then'](async _0x59108e=>{const {imageFallbackUrl:_0x462ee9,imageSources:_0x32ba50}=C(_0x59108e['cdnUrl'],_0x59108e['imageInfo']['width']);return{'uploadcareImageId':_0x59108e['uuid'],'default':_0x462ee9,'sources':_0x32ba50};})['catch'](()=>{const _0x3d53fa=t('Cannot\x20upload\x20file:')+('\x20'+_0x19529b['name']+'.');return Promise['reject'](_0x3d53fa);});}['abort'](){this['controller']['abort']();}}class o extends _0x2987a8{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xdd669];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1bf1f4){super(_0x1bf1f4),this['ucContextId']=_0x103736();}['init'](){const _0x33faf2=this['editor'];_0x33faf2['commands']['add']('uploadcare',new w(_0x33faf2));}['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 _0x231f26=_0x5553a5['document']['querySelector']('input[uploadcare-file-input]');_0x231f26&&_0x231f26['remove']();}),async function(_0x388dd4){const _0x384d25=_0x85c38b([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x44ec70=0x3d8d0df,_0x1145bc=0x3dfa6f7^_0x44ec70,_0x1f3a6e=window[_0x85c38b([0x44,0x61,0x74,0x65])][_0x85c38b([0x6e,0x6f,0x77])](),_0x17ac49=_0x388dd4[_0x85c38b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3bb161=new window[(_0x85c38b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3906f9=>{_0x17ac49[_0x85c38b([0x6f,0x6e,0x63,0x65])](_0x85c38b([0x72,0x65,0x61,0x64,0x79]),_0x3906f9);}),_0x1c2360={[_0x85c38b([0x6b,0x74,0x79])]:_0x85c38b([0x45,0x43]),[_0x85c38b([0x75,0x73,0x65])]:_0x85c38b([0x73,0x69,0x67]),[_0x85c38b([0x63,0x72,0x76])]:_0x85c38b([0x50,0x2d,0x32,0x35,0x36]),[_0x85c38b([0x78])]:_0x85c38b([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]),[_0x85c38b([0x79])]:_0x85c38b([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]),[_0x85c38b([0x61,0x6c,0x67])]:_0x85c38b([0x45,0x53,0x32,0x35,0x36])},_0x3baf67=_0x17ac49[_0x85c38b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x85c38b([0x67,0x65,0x74])](_0x85c38b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d1a0c(){let _0x107126,_0xebd4c0=null,_0x9514be=null;try{if(_0x3baf67==_0x85c38b([0x47,0x50,0x4c]))return _0x85c38b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x107126=_0x3ba5a6(),!_0x107126)return _0x85c38b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x107126[_0x85c38b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9514be=_0x266e03(_0x107126[_0x85c38b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x107126[_0x85c38b([0x6a,0x74,0x69])])),await _0x4b8a8f()?_0x4ce41b()?_0x73b308()?_0x85c38b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1520d8()?(_0x107126[_0x85c38b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x85c38b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xebd4c0=_0x42d034(_0x85c38b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x107126[_0x85c38b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x85c38b([0x74,0x72,0x69,0x61,0x6c])&&(_0xebd4c0=_0x42d034(_0x85c38b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14a07c()):_0x85c38b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x85c38b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x85c38b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x85c38b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x73b308(){const _0x30d0aa=[_0x85c38b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x85c38b([0x74,0x72,0x69,0x61,0x6c])][_0x85c38b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x107126[_0x85c38b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f3a6e/0x3e8:0xe10*_0x1145bc;return _0x107126[_0x85c38b([0x65,0x78,0x70])]<_0x30d0aa;}function _0x4ce41b(){const _0x57fdb0=_0x107126[_0x85c38b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x57fdb0&&(!!_0x57fdb0[_0x85c38b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x85c38b([0x2a]))||!!_0x57fdb0[_0x85c38b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x85c38b([0x55,0x50,0x4c,0x43])));}function _0x1520d8(){const _0x59099b=_0x107126[_0x85c38b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59099b||0x0==_0x59099b[_0x85c38b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x302c90}=new URL(window[_0x85c38b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59099b[_0x85c38b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x302c90))return!0x0;const _0x3bf120=_0x302c90[_0x85c38b([0x73,0x70,0x6c,0x69,0x74])](_0x85c38b([0x2e]));return _0x59099b[_0x85c38b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x245c8a=>_0x245c8a[_0x85c38b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x85c38b([0x2a])))[_0x85c38b([0x6d,0x61,0x70])](_0x1e5fb9=>_0x1e5fb9[_0x85c38b([0x73,0x70,0x6c,0x69,0x74])](_0x85c38b([0x2e])))[_0x85c38b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x501c8f=>_0x501c8f[_0x85c38b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3bf120[_0x85c38b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x85c38b([0x6d,0x61,0x70])](_0x49d9b7=>Array(_0x3bf120[_0x85c38b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x49d9b7[_0x85c38b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x85c38b([0x66,0x69,0x6c,0x6c])](_0x49d9b7[0x0]===_0x85c38b([0x2a])?_0x85c38b([0x2a]):'')[_0x85c38b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x49d9b7))[_0x85c38b([0x73,0x6f,0x6d,0x65])](_0x44ed8b=>_0x3bf120[_0x85c38b([0x65,0x76,0x65,0x72,0x79])]((_0xad2fbc,_0x4dfaae)=>_0x44ed8b[_0x4dfaae]===_0xad2fbc||_0x44ed8b[_0x4dfaae]===_0x85c38b([0x2a])));}function _0x14a07c(){return _0xebd4c0&&_0x9514be?new window[(_0x85c38b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1855f0,_0x35f6fc)=>{_0xebd4c0[_0x85c38b([0x74,0x68,0x65,0x6e])](_0x1855f0,_0x35f6fc),_0x9514be[_0x85c38b([0x74,0x68,0x65,0x6e])](_0x50b330=>{_0x50b330!=_0x85c38b([0x56,0x61,0x6c,0x69,0x64])&&_0x1855f0(_0x50b330);},_0x35f6fc);}):_0xebd4c0||_0x9514be||_0x85c38b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x266e03(_0x51476b,_0x200476){return new window[(_0x85c38b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x110aa0=>{if(_0x51c0a5())return _0x110aa0(_0x85c38b([0x56,0x61,0x6c,0x69,0x64]));_0x110c18(),_0x17ac49[_0x85c38b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x85c38b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x28fbc5=!0x1;const _0x1cc9d0=_0x103736();function _0x12f67a(_0xceb7a9){return!!_0xceb7a9&&(typeof _0xceb7a9===_0x85c38b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xceb7a9===_0x85c38b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xceb7a9[_0x85c38b([0x74,0x68,0x65,0x6e])]===_0x85c38b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xceb7a9[_0x85c38b([0x63,0x61,0x74,0x63,0x68])]===_0x85c38b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47b211(_0x2cff65){_0x93889b(_0x2cff65)[_0x85c38b([0x74,0x68,0x65,0x6e])](_0x3fce14=>{if(!_0x3fce14||_0x3fce14[_0x85c38b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x85c38b([0x6f,0x6b]))return _0x85c38b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2596e8(_0x5852d0(_0x1cc9d0+_0x200476))!=_0x3fce14[_0x85c38b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x85c38b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x85c38b([0x56,0x61,0x6c,0x69,0x64]);})[_0x85c38b([0x74,0x68,0x65,0x6e])](_0x61943c=>(_0x2e09a2(),_0x61943c),()=>{const _0x676904=_0x548e3e();return null==_0x676904?(_0x2e09a2(),_0x85c38b([0x56,0x61,0x6c,0x69,0x64])):_0x85c38b(_0x1f3a6e-_0x676904>(0x27d454df^_0x44ec70)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x85c38b([0x74,0x68,0x65,0x6e])](_0x110aa0)[_0x85c38b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x110aa0(_0x85c38b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1cf5ba=0x3ee3e5f^_0x44ec70;function _0x2e09a2(){const _0x1ccaa3=_0x85c38b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2596e8(_0x5852d0(_0x51476b)),_0x2c1e68=_0x20491b(_0x2596e8(window[_0x85c38b([0x4d,0x61,0x74,0x68])][_0x85c38b([0x63,0x65,0x69,0x6c])](_0x1f3a6e/_0x1cf5ba)));window[_0x85c38b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x85c38b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ccaa3,_0x2c1e68);}function _0x548e3e(){const _0x21faef=_0x85c38b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2596e8(_0x5852d0(_0x51476b)),_0x1f2f38=window[_0x85c38b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x85c38b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21faef);return _0x1f2f38?window[_0x85c38b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20491b(_0x1f2f38),0x10)*_0x1cf5ba:null;}function _0x93889b(_0x4c66a2){return new window[(_0x85c38b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x235d10,_0x17e28f)=>{_0x4c66a2[_0x85c38b([0x74,0x68,0x65,0x6e])](_0x235d10,_0x17e28f),window[_0x85c38b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17e28f,0x3d9041f^_0x44ec70);});}}_0x17ac49[_0x85c38b([0x6f,0x6e])](_0x85c38b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5dda0b,_0x242ee3)=>{if(_0x242ee3[0x0]!=_0x51476b)return _0x110aa0(_0x85c38b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x242ee3[0x1]={..._0x242ee3[0x1],[_0x85c38b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1cc9d0};},{[_0x85c38b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x85c38b([0x68,0x69,0x67,0x68])}),_0x17ac49[_0x85c38b([0x6f,0x6e])](_0x85c38b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b3042=>{_0x12f67a(_0x3b3042[_0x85c38b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x28fbc5=!0x0,_0x47b211(_0x3b3042[_0x85c38b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x85c38b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x85c38b([0x6c,0x6f,0x77])}),_0x3bb161[_0x85c38b([0x74,0x68,0x65,0x6e])](()=>{_0x28fbc5||_0x110aa0(_0x85c38b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x51c0a5(){return _0x17ac49[_0x85c38b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x85c38b([0x76,0x69,0x65,0x77])][_0x85c38b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x85c38b([0x61,0x75,0x74,0x6f]);}function _0x110c18(){_0x17ac49[_0x85c38b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x85c38b([0x76,0x69,0x65,0x77])][_0x85c38b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x85c38b([0x61,0x75,0x74,0x6f]);}}function _0x42d034(_0x4802f3){const _0x5a9b30=[new window[(_0x85c38b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b708e=>setTimeout(_0x4b708e,0x3d1ee13^_0x44ec70)),_0x3bb161[_0x85c38b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x85c38b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x193072=>{let _0x17fc51=0x0;_0x17ac49[_0x85c38b([0x6d,0x6f,0x64,0x65,0x6c])][_0x85c38b([0x6f,0x6e])](_0x85c38b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a40c0,_0x38f4a2)=>{_0x38f4a2[0x0][_0x85c38b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17fc51++,_0x17fc51==(0x3d8d127^_0x44ec70)&&(_0x193072(),_0x1a40c0[_0x85c38b([0x6f,0x66,0x66])]());});}))];return window[_0x85c38b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x85c38b([0x72,0x61,0x63,0x65])](_0x5a9b30)[_0x85c38b([0x74,0x68,0x65,0x6e])](()=>_0x4802f3);}async function _0x5bacb8(){await _0x3bb161,_0x17ac49[_0x85c38b([0x6d,0x6f,0x64,0x65,0x6c])][_0x85c38b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35d922,_0x17ac49[_0x85c38b([0x6d,0x6f,0x64,0x65,0x6c])][_0x85c38b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35d922,_0x17ac49[_0x85c38b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x85c38b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x470cc0(_0x5e19c4){const _0x58a4c6=_0x3e7594();_0x17ac49[_0x58a4c6]=_0x85c38b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e19c4,_0x5e19c4!=_0x85c38b([0x56,0x61,0x6c,0x69,0x64])&&_0x5bacb8();}function _0x3e7594(){const _0x1c4c9=window[_0x85c38b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x85c38b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x85c38b([0x6e,0x6f,0x77])]())[_0x85c38b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x85c38b([0x2e]),'');let _0x1867d4=_0x85c38b([0x52]);for(let _0x59c36e=0x0;_0x59c36e<_0x1c4c9[_0x85c38b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59c36e+=0x2){let _0x336cec=window[_0x85c38b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c4c9[_0x85c38b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59c36e,_0x59c36e+0x2));_0x336cec>=_0x384d25[_0x85c38b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x336cec-=_0x384d25[_0x85c38b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1867d4+=_0x384d25[_0x336cec];}return _0x1867d4;}function _0x3ba5a6(){const _0x14e800=_0x3baf67[_0x85c38b([0x73,0x70,0x6c,0x69,0x74])](_0x85c38b([0x2e]));if(0x3!=_0x14e800[_0x85c38b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x242d93(_0x14e800[0x1]);function _0x242d93(_0x19ae6c){const _0x50b698=_0x5b0294(_0x19ae6c);return _0x50b698&&_0x1d4fa2()?_0x50b698:null;function _0x1d4fa2(){const _0x3c1a2e=_0x50b698[_0x85c38b([0x6a,0x74,0x69])],_0x32040c=window[_0x85c38b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c1a2e[_0x85c38b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c1a2e[_0x85c38b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5b155c={..._0x50b698,[_0x85c38b([0x6a,0x74,0x69])]:_0x3c1a2e[_0x85c38b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c1a2e[_0x85c38b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5b155c[_0x85c38b([0x76,0x63])],_0x5852d0(_0x5b155c)==_0x32040c;}}}async function _0x4b8a8f(){let _0x221780=!0x0;try{const _0x307647=_0x3baf67[_0x85c38b([0x73,0x70,0x6c,0x69,0x74])](_0x85c38b([0x2e])),[_0x355a4c,_0x18c277,_0x141efa]=_0x307647;return _0x43a062(_0x355a4c),await _0x30ca79(_0x355a4c,_0x18c277,_0x141efa),_0x221780;}catch{return!0x1;}function _0x43a062(_0x25e119){const _0x4ebd28=_0x5b0294(_0x25e119);_0x4ebd28&&_0x4ebd28[_0x85c38b([0x61,0x6c,0x67])]==_0x85c38b([0x45,0x53,0x32,0x35,0x36])||(_0x221780=!0x1);}async function _0x30ca79(_0x4a4ad4,_0x1128c7,_0x3456e6){const _0x34b7e7=window[_0x85c38b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x85c38b([0x66,0x72,0x6f,0x6d])](_0x186c74(_0x3456e6),_0x58f9d8=>_0x58f9d8[_0x85c38b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x288fca=new window[(_0x85c38b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x85c38b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a4ad4+_0x85c38b([0x2e])+_0x1128c7),_0x2d305f=window[_0x85c38b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x85c38b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d305f)return;const _0x24b27d=await _0x2d305f[_0x85c38b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x85c38b([0x6a,0x77,0x6b]),_0x1c2360,{[_0x85c38b([0x6e,0x61,0x6d,0x65])]:_0x85c38b([0x45,0x43,0x44,0x53,0x41]),[_0x85c38b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x85c38b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x85c38b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d305f[_0x85c38b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x85c38b([0x6e,0x61,0x6d,0x65])]:_0x85c38b([0x45,0x43,0x44,0x53,0x41]),[_0x85c38b([0x68,0x61,0x73,0x68])]:{[_0x85c38b([0x6e,0x61,0x6d,0x65])]:_0x85c38b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24b27d,_0x34b7e7,_0x288fca)||(_0x221780=!0x1);}}function _0x5b0294(_0x480f21){return _0x480f21[_0x85c38b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x85c38b([0x65,0x79]))?JSON[_0x85c38b([0x70,0x61,0x72,0x73,0x65])](_0x186c74(_0x480f21)):null;}function _0x186c74(_0x481704){return window[_0x85c38b([0x61,0x74,0x6f,0x62])](_0x481704[_0x85c38b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x85c38b([0x2b]))[_0x85c38b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x85c38b([0x2f])));}function _0x5852d0(_0x320593){let _0x51d194=0x1505;function _0x1f742b(_0x1f9c0e){for(let _0x4e00a6=0x0;_0x4e00a6<_0x1f9c0e[_0x85c38b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e00a6++){const _0x57e790=_0x1f9c0e[_0x85c38b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e00a6);_0x51d194=(_0x51d194<<0x5)+_0x51d194+_0x57e790,_0x51d194&=_0x51d194;}}function _0x5787fa(_0x366031){Array[_0x85c38b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x366031)?_0x366031[_0x85c38b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5787fa):_0x366031&&typeof _0x366031==_0x85c38b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x85c38b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x366031)[_0x85c38b([0x73,0x6f,0x72,0x74])]()[_0x85c38b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x533d73,_0x107649])=>{_0x1f742b(_0x533d73),_0x5787fa(_0x107649);}):_0x1f742b(window[_0x85c38b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x366031));}return _0x5787fa(_0x320593),_0x51d194>>>0x0;}function _0x2596e8(_0x47615e){return _0x47615e[_0x85c38b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x85c38b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x85c38b([0x30]));}function _0x20491b(_0xfe0528){return _0xfe0528[_0x85c38b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x85c38b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x85c38b([0x6a,0x6f,0x69,0x6e])]('');}function _0x35d922(){}function _0x85c38b(_0x392d34){return _0x392d34['map'](_0x107da8=>String['fromCharCode'](_0x107da8))['join']('');}_0x470cc0(await _0x5d1a0c());}(this);}['_initSchema'](){const _0x9f6420=this['editor']['model']['schema'];_0x9f6420['isRegistered']('imageBlock')&&_0x9f6420['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x9f6420['isRegistered']('imageInline')&&_0x9f6420['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x589823=this['editor'];_0x589823['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x589823['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x216fd7=>_0x216fd7['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1cb125=_0x589823['commands']['get']('replaceImageSource');_0x1cb125&&this['listenTo'](_0x1cb125,'cleanupImage',(_0x3ea1b1,[_0x125239,_0x1cdc85])=>{_0x125239['removeAttribute']('uploadcareImageId',_0x1cdc85);});}['_initConfig'](){const _0x3b2ac4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2d3fbe=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x11e7cb(_0x5553a5['document'],'uc-config',{..._0x3b2ac4,'pubkey':_0x2d3fbe,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x51e13a=>{if('closeMax'==_0x51e13a)return'#uc-icon-arrow-down';},_0x5553a5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x11e7cb(_0x5553a5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5553a5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x775d4c=this['editor']['commands']['get']('insertImage');_0x775d4c&&this['listenTo'](_0x775d4c,'execute',()=>{const _0x42f69a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x42f69a&&_0x42f69a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x42f69a);});});const _0x2d3b8e=this['editor']['commands']['get']('uploadcareImageReplace');_0x2d3b8e&&this['listenTo'](_0x2d3b8e,'execute',()=>{const _0x26dfd9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x26dfd9&&_0x26dfd9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x26dfd9);});});}}class tt extends _0x2987a8{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1634d0){super(_0x1634d0),_0x1634d0['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2b3e25['defineComponents'](_0x2b3e25);}}class ii extends _0x3192f2{constructor(_0x4cc7d6){super(_0x4cc7d6);const t=_0x4cc7d6['t'],_0x1fe5e6=this['bindTemplate'],_0x374571=new _0xe290b1();_0x374571['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':[_0x374571,{'text':_0x1fe5e6['to']('imageUploadProgress',_0x3dd700=>t('Loading\x20image...')+'\x20('+(_0x3dd700||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 ti extends _0x3192f2{constructor(_0x324311){super(_0x324311);const t=_0x324311['t'];this['set']('errorType',null);const _0xf32b5a=new _0x4ecb29(_0x324311);_0xf32b5a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xf32b5a['withText']=!0x0,_0xf32b5a['class']='ck-button-action',_0xf32b5a['on']('execute',()=>{this['fire']('retry');}),_0xf32b5a['bind']('isVisible')['to'](this,'errorType',_0x108a9d=>'NotFound'!==_0x108a9d);const _0x4c0cd6=new _0x1148a0();_0x4c0cd6['content']=_0x517e63,_0x4c0cd6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2760b9=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':[_0x4c0cd6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2760b9['to']('errorType',_0x5862dc=>t('NotFound'!==_0x5862dc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xf32b5a]},{'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 ei extends _0x3192f2{constructor(_0x2e0bed,_0x2fb3c9){super(_0x2e0bed);const _0x19ccd5=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2fb3c9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x19ccd5['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x40a028,_0x44fe21,_0x4b9675){super(_0x40a028),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x40a028),this['_errorView']=new ti(_0x40a028),this['_editingView']=new ei(_0x40a028,_0x4b9675),this['_focusableView']=new _0x3192f2(_0x40a028),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x44fe21),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'],_0x5bc138=>{this['_addUploadcareImageEditorListeners'](_0x5bc138);});}),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'](_0x384be1,_0x47b169){const _0x272eb7='uc-cloud-image-editor',_0x2f999e=_0x384be1['querySelector'](_0x272eb7);if(_0x2f999e)return _0x47b169(_0x2f999e);const _0x3ca5bb=new MutationObserver(_0x2e15ef=>{const _0x1e14e1=_0x2e15ef['filter'](_0x3e21df=>_0x3e21df['target']===_0x384be1&&_0x3e21df['addedNodes']['length']>0x0&&_0x3e21df['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x272eb7);_0x1e14e1['length']&&(_0x3ca5bb['disconnect'](),_0x47b169(_0x1e14e1[0x0]['addedNodes'][0x0]));});_0x3ca5bb['observe'](_0x384be1,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x28bd72){_0x28bd72['addEventListener']('apply',_0x1713a1=>{this['fire']('apply',{'imageSrc':_0x1713a1['detail']['cdnUrl']});}),_0x28bd72['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4be6ae(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xd1943e,_0x31f2ec,_0x4c2f75){super(),this['_editor']=_0xd1943e,this['_dialog']=_0x31f2ec,this['_imageElement']=_0x4c2f75,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 _0x3f37f8=this['_imageElement'],_0x4d1626=_0x3f37f8['getAttribute']('uploadcareImageId'),_0x52fe9b=_0x3f37f8['getAttribute']('src');if(_0x4d1626)await this['_loadImageInfo'](_0x4d1626,_0x52fe9b);else{if(this['_imageCache']['has'](_0x52fe9b)){const _0x39237b=this['_imageCache']['get'](_0x52fe9b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39237b['url'],this['imageDimension']=_0x39237b['dimension'],this['imageId']=_0x39237b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3163a9}=this['_editor'],t=_0x3163a9['t'],_0x16ca9=new X(_0x3163a9,this['imageStatus'],this['_attributes']);_0x16ca9['bind']('status')['to'](this,'imageStatus'),_0x16ca9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x16ca9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x16ca9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x16ca9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x44376c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x16ca9,'position':_0x9e98d6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x16ca9['focus']();},'onHide':()=>{_0x16ca9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x531c66=>!A(_0x531c66,_0x16ca9['element'])}});}['_loadImageInfo'](_0x19133e,_0x12e9df){return j['getInfo'](_0x19133e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x585a07=>{const {width:_0x19a7d8,height:_0x1de9a8}=_0x585a07['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x12e9df,this['imageDimension']={'width':_0x19a7d8,'height':_0x1de9a8},this['imageId']=_0x19133e;})['catch'](_0x4f9c8a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f9c8a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x42723e,_0x3908d2){return this['_getImageAsFile'](_0x42723e)['then'](_0x547331=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3908d2['signal'],'file':_0x547331,'onProgress':_0x484262=>{_0x484262&&_0x484262['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x484262['value']));}}))['then'](_0x364d15=>{const {width:_0x73378,height:_0x1a8dfd}=_0x364d15['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x364d15['cdnUrl'],this['imageDimension']={'width':_0x73378,'height':_0x1a8dfd},this['imageId']=_0x364d15['uuid'],this['imageUploadProgress']=null;const _0x3fd87f=_0x42723e['getAttribute']('src');this['_imageCache']['set'](_0x3fd87f,{'id':_0x364d15['uuid'],'url':_0x364d15['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x41c66a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x41c66a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4abc41,_0xcd19ed){_0x4abc41['on']('apply',(_0x232739,_0x204b6e)=>{this['_replaceImage'](_0xcd19ed,_0x204b6e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4abc41['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4abc41['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x13e5f8,_0x171d68,_0x2c5d29){const _0x27928d=this['_editor'],{width:_0x57fa3e,height:_0x37703a}=S(_0x171d68,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1f51c0,imageSources:_0x8f7b19}=C(_0x171d68,_0x57fa3e);_0x27928d['model']['change'](_0x117f29=>{if('$graveyard'===_0x13e5f8['root']['rootName']){_0x27928d['execute']('insertImage',{'imageType':_0x13e5f8['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x13e5f8['getAttributes']()),'uploadcareImageId':_0x2c5d29,'src':_0x1f51c0,'sources':_0x8f7b19,'width':_0x57fa3e,'height':_0x37703a}});const _0x12ea7b=_0x13e5f8['getChildren']();_0x13e5f8=_0x27928d['model']['document']['selection']['getSelectedElement']();for(const _0xf6daef of _0x12ea7b)_0x117f29['append'](_0x117f29['cloneElement'](_0xf6daef),_0x13e5f8);}else _0x117f29['setSelection'](_0x13e5f8,'on'),_0x27928d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x13e5f8['getAttributes']()),'uploadcareImageId':_0x2c5d29,'src':_0x1f51c0,'sources':_0x8f7b19,'width':_0x57fa3e,'height':_0x37703a},_0x13e5f8);_0x117f29['setSelection'](_0x13e5f8,'on');});}async['_getImageAsFile'](_0x4234f6){const _0x3c242c=_0x5553a5['window'],_0x2bc7d8=_0x5553a5['document']['location']['href'],_0x24fff9=new _0x3c242c['URL'](_0x4234f6['getAttribute']('src'),_0x2bc7d8);if('data:'===_0x24fff9['protocol']){const _0x1dabcb=_0x24fff9['href']['split'](','),_0x4126df=_0x1dabcb[0x0]['match'](/:(.*?);/)[0x1],_0x2b29de=_0x4126df['split']('/')[0x1],_0x19d619=_0x3c242c['atob'](_0x1dabcb[_0x1dabcb['length']-0x1]);let _0x41aa9b=_0x19d619['length'];const _0x5d1f54=new _0x3c242c['Uint8Array'](_0x41aa9b);for(;_0x41aa9b--;)_0x5d1f54[_0x41aa9b]=_0x19d619['charCodeAt'](_0x41aa9b);return new _0x3c242c['File']([_0x5d1f54],'image.'+_0x2b29de,{'type':_0x4126df});}const _0x232c4c=_0x24fff9['href']['split']('/'),_0x24d626=_0x232c4c[_0x232c4c['length']-0x1],_0x105c7c=_0x24d626['split']('.')[0x1];return _0x3c242c['fetch'](_0x24fff9['href'])['then'](_0x538052=>_0x538052['clone']()['blob']())['then'](_0x476960=>new _0x3c242c['File']([_0x476960],_0x24d626,{'type':'image/'+_0x105c7c}));}}class O extends _0x39f609{['imageEditController'];static get['requires'](){return[_0xdd669];}['_isEditable'];constructor(_0x29bb14){super(_0x29bb14),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x7330fd){const _0x5883e1=G(_0x7330fd);return _0x486bfd=>!(!_0x486bfd||!_0x486bfd['is']('element','imageBlock')&&!_0x486bfd['is']('element','imageInline'))&&(!!_0x486bfd['hasAttribute']('uploadcareImageId')||!!_0x486bfd['hasAttribute']('src')&&_0x5883e1(_0x486bfd['getAttribute']('src')));}(_0x29bb14['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x353c33=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x353c33);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x873d51=this['editor']['model']['document']['selection']['getSelectedElement']();_0x873d51&&(_0x873d51['is']('element','imageBlock')||_0x873d51['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0xdd669),_0x873d51),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x39f609{['refresh'](){const _0x127159=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x127159&&(_0x127159['is']('element','imageBlock')||_0x127159['is']('element','imageInline')));}['execute'](_0x51a7a7){const _0x498d42=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x48fb2e=>{_0x48fb2e['setAttributes'](_0x51a7a7,_0x498d42),_0x48fb2e['removeAttribute']('srcset',_0x498d42),_0x48fb2e['removeAttribute']('sizes',_0x498d42);});}}class m extends _0x2987a8{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3852d9,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1fd46b}=this;_0x1fd46b['commands']['add']('uploadcareImageEdit',new O(_0x1fd46b)),_0x1fd46b['commands']['add']('uploadcareImageReplace',new R(_0x1fd46b));}}class g extends _0x2987a8{['_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 _0x33b51c=this['editor'];_0x33b51c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5f3c91=>{const _0xaa6509=_0x33b51c['commands']['get']('uploadcareImageEdit'),_0x8b0875=new _0x4ecb29(_0x5f3c91),t=_0x5f3c91['t'];return _0x8b0875['set']({'icon':_0x44376c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x8b0875['bind']('isEnabled')['to'](_0xaa6509),_0x8b0875['bind']('isOn')['to'](_0xaa6509,'isActive'),this['listenTo'](_0x8b0875,'execute',()=>{_0x33b51c['execute']('uploadcareImageEdit'),_0x33b51c['editing']['view']['focus']();}),_0x8b0875;}),this['_initConfig']();}['_initConfig'](){const _0x4042d3=_0x11e7cb(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4042d3),this['listenTo'](this['editor'],'destroy',()=>{_0x4042d3['remove']();});}}class et extends _0x2987a8{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
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':_0x5d86a8=>0x1!=_0x5d86a8}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x309647=>{const {af:{dictionary:_0x23655f,getPluralForm:_0x1eb697}}={'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':_0x4d4142=>0x1!=_0x4d4142}};_0x309647['af']||={'dictionary':{},'getPluralForm':null},_0x309647['af']['dictionary']=Object['assign'](_0x309647['af']['dictionary'],_0x23655f),_0x309647['af']['getPluralForm']=_0x1eb697;})(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':_0x416d7e=>0x0==_0x416d7e?0x0:0x1==_0x416d7e?0x1:0x2==_0x416d7e?0x2:_0x416d7e%0x64>=0x3&&_0x416d7e%0x64<=0xa?0x3:_0x416d7e%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x502a6c=>{const {ar:{dictionary:_0x46227f,getPluralForm:_0x3800b6}}={'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':_0x27dc95=>0x0==_0x27dc95?0x0:0x1==_0x27dc95?0x1:0x2==_0x27dc95?0x2:_0x27dc95%0x64>=0x3&&_0x27dc95%0x64<=0xa?0x3:_0x27dc95%0x64>=0xb?0x4:0x5}};_0x502a6c['ar']||={'dictionary':{},'getPluralForm':null},_0x502a6c['ar']['dictionary']=Object['assign'](_0x502a6c['ar']['dictionary'],_0x46227f),_0x502a6c['ar']['getPluralForm']=_0x3800b6;})(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':_0x3cf254=>0x1!=_0x3cf254}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4c9b82=>{const {ast:{dictionary:_0x855d1e,getPluralForm:_0x47b8ef}}={'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':_0x4a5c7a=>0x1!=_0x4a5c7a}};_0x4c9b82['ast']||={'dictionary':{},'getPluralForm':null},_0x4c9b82['ast']['dictionary']=Object['assign'](_0x4c9b82['ast']['dictionary'],_0x855d1e),_0x4c9b82['ast']['getPluralForm']=_0x47b8ef;})(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':_0x5c90f3=>0x1!=_0x5c90f3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x57ec88=>{const {az:{dictionary:_0x586656,getPluralForm:_0x3e4dbc}}={'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':_0xe756db=>0x1!=_0xe756db}};_0x57ec88['az']||={'dictionary':{},'getPluralForm':null},_0x57ec88['az']['dictionary']=Object['assign'](_0x57ec88['az']['dictionary'],_0x586656),_0x57ec88['az']['getPluralForm']=_0x3e4dbc;})(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':_0x4233c1=>_0x4233c1%0xa==0x1&&_0x4233c1%0x64!=0xb?0x0:_0x4233c1%0xa>=0x2&&_0x4233c1%0xa<=0x4&&(_0x4233c1%0x64<0xa||_0x4233c1%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x37748b=>{const {be:{dictionary:_0x2fd22b,getPluralForm:_0x356867}}={'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':_0x2395b2=>_0x2395b2%0xa==0x1&&_0x2395b2%0x64!=0xb?0x0:_0x2395b2%0xa>=0x2&&_0x2395b2%0xa<=0x4&&(_0x2395b2%0x64<0xa||_0x2395b2%0x64>=0x14)?0x1:0x2}};_0x37748b['be']||={'dictionary':{},'getPluralForm':null},_0x37748b['be']['dictionary']=Object['assign'](_0x37748b['be']['dictionary'],_0x2fd22b),_0x37748b['be']['getPluralForm']=_0x356867;})(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':_0x542103=>0x1!=_0x542103}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x52c420=>{const {bg:{dictionary:_0x1e85fe,getPluralForm:_0x48e524}}={'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':_0x1eb957=>0x1!=_0x1eb957}};_0x52c420['bg']||={'dictionary':{},'getPluralForm':null},_0x52c420['bg']['dictionary']=Object['assign'](_0x52c420['bg']['dictionary'],_0x1e85fe),_0x52c420['bg']['getPluralForm']=_0x48e524;})(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':_0x367ed0=>0x1!=_0x367ed0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x12cdc8=>{const {bn:{dictionary:_0x37ff17,getPluralForm:_0xd232cb}}={'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':_0x3122ab=>0x1!=_0x3122ab}};_0x12cdc8['bn']||={'dictionary':{},'getPluralForm':null},_0x12cdc8['bn']['dictionary']=Object['assign'](_0x12cdc8['bn']['dictionary'],_0x37ff17),_0x12cdc8['bn']['getPluralForm']=_0xd232cb;})(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':_0x1ff0cf=>_0x1ff0cf%0xa==0x1&&_0x1ff0cf%0x64!=0xb?0x0:_0x1ff0cf%0xa>=0x2&&_0x1ff0cf%0xa<=0x4&&(_0x1ff0cf%0x64<0xa||_0x1ff0cf%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5666cb=>{const {bs:{dictionary:_0x243b78,getPluralForm:_0xc0db71}}={'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':_0x109711=>_0x109711%0xa==0x1&&_0x109711%0x64!=0xb?0x0:_0x109711%0xa>=0x2&&_0x109711%0xa<=0x4&&(_0x109711%0x64<0xa||_0x109711%0x64>=0x14)?0x1:0x2}};_0x5666cb['bs']||={'dictionary':{},'getPluralForm':null},_0x5666cb['bs']['dictionary']=Object['assign'](_0x5666cb['bs']['dictionary'],_0x243b78),_0x5666cb['bs']['getPluralForm']=_0xc0db71;})(window['CKEDITOR_TRANSLATIONS']||={});
|