@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251026.0 → 0.0.0-nightly-20251028.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 _0x24b712,Command as _0xc3341e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x86b756,IconGooglePhotos as _0x532b1d,IconGoogleDrive as _0x1e8465,IconFacebook as _0x146a60,IconDropbox as _0x75f8cb,IconUploadcareLink as _0x1d5f85,IconUploadcareImageUpload as _0xf9f7b5,IconError as _0x28401c,IconUploadcareImageEdit as _0x3cb0a6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4f4a59,MenuBarMenuListItemButtonView as _0x32aa34,View as _0x2f1810,FocusCycler as _0x2e7a7c,Dialog as _0x557901,DialogViewPosition as _0x26d80b,SpinnerView as _0x18f59a,IconView as _0x2b7de3,Notification as _0x551eb0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5450be,DomEmitterMixin as _0x3b5c8f,global as _0x4e41ad,getAncestors as _0x3caaa1,ObservableMixin as _0x200730,uid as _0x49e0eb,createElement as _0x5c6661}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x226e7a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x118242,info as _0x1091e7}from'@uploadcare/upload-client';import*as _0x61c9c3 from'@uploadcare/file-uploader';var i=function(_0x4d6f7b){return _0x4d6f7b['Local']='local',_0x4d6f7b['URL']='url',_0x4d6f7b['Dropbox']='dropbox',_0x4d6f7b['GDrive']='gdrive',_0x4d6f7b['Facebook']='facebook',_0x4d6f7b['GPhotos']='gphotos',_0x4d6f7b['OneDrive']='onedrive',_0x4d6f7b;}({});function _(_0x1975d7,_0x23c92c,_0x1d6919){const t=_0x1975d7['t'],_0x58aea0=_0x1975d7['t'];switch(_0x23c92c){case i['Local']:return{'text':_0x58aea0('Insert'===_0x1d6919?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x58aea0('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1d6919?_0x58aea0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x58aea0('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1d6919?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1d6919?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1d6919?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1d6919?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1d6919?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x23c92c;}}class e extends _0x24b712{['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 _0x3e8e4e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b6617;for(const _0x5afd8b in _0x3e8e4e){const _0x5c8db9=_0x5afd8b,_0x1ab46a=_0x3e8e4e[_0x5c8db9];if('uploadcareLicenseKeyValid'==_0x1ab46a||'uploadcareLicenseKeyInvalid'==_0x1ab46a||'uploadcareLicenseKeyExpired'==_0x1ab46a||'uploadcareLicenseKeyDomainLimit'==_0x1ab46a||'uploadcareLicenseKeyNotAllowed'==_0x1ab46a||'uploadcareLicenseKeyEvaluationLimit'==_0x1ab46a||'uploadcareLicenseKeyTrialLimit'==_0x1ab46a||'uploadcareLicenseKeyUsageLimit'==_0x1ab46a){delete _0x3e8e4e[_0x5c8db9],_0x4b6617=_0x1ab46a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4b6617&&_0x3e8e4e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4b6617&&_0x3e8e4e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4b6617&&_0x3e8e4e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4b6617&&_0x3e8e4e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4b6617&&_0x3e8e4e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4b6617&&_0x3e8e4e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4b6617&&_0x3e8e4e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x497fe5}=this,_0x5f0c4a=_0x497fe5['commands']['get']('uploadcare');if(!_0x5f0c4a)return;const _0x4187dc=this['_normalizeConfigSourceList'](_0x497fe5['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3d9827,_0x38a93e)=>{const _0x147d3a=this['_getIntegrationKey'](_0x38a93e['type']);return _0x3d9827[_0x147d3a]||(_0x3d9827[_0x147d3a]=[]),_0x3d9827[_0x147d3a]['push'](_0x38a93e),_0x3d9827;},{});_0x497fe5['plugins']['has']('ImageInsertUI')&&_0x497fe5['commands']['get']('uploadcare')&&Object['entries'](_0x4187dc)['forEach'](([_0x14181e,_0xc497e3])=>{_0x497fe5['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x14181e,'observable':()=>_0x5f0c4a,'buttonViewCreator':()=>this['_createToolbarButton'](_0xc497e3),'formViewCreator':()=>this['_createDropdownButtons'](_0xc497e3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xc497e3),'override':'assetManager'!==_0x14181e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x568659){const {locale:_0xeaace3}=this['editor'];return _0x568659['map'](_0x2beb01=>{const _0x35b65f=_(_0xeaace3,_0x2beb01,'Insert');switch(_0x2beb01){case i['Local']:return{'icon':_0xf9f7b5,'type':i['Local'],..._0x35b65f};case i['URL']:return{'icon':_0x1d5f85,'type':i['URL'],..._0x35b65f};case i['Dropbox']:return{'icon':_0x75f8cb,'type':i['Dropbox'],..._0x35b65f};case i['Facebook']:return{'icon':_0x146a60,'type':i['Facebook'],..._0x35b65f};case i['GDrive']:return{'icon':_0x1e8465,'type':i['GDrive'],..._0x35b65f};case i['GPhotos']:return{'icon':_0x532b1d,'type':i['GPhotos'],..._0x35b65f};case i['OneDrive']:return{'icon':_0x86b756,'type':i['OneDrive'],..._0x35b65f};}});}['_getIntegrationKey'](_0x42a288){switch(_0x42a288){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x328023,_0x4a994d){const _0x2ed5a4=this['editor'],_0x2eb167=new _0x328023(_0x2ed5a4['locale']),_0x30b1db=_0x2ed5a4['commands']['get']('uploadcare');return _0x2eb167['bind']('isEnabled')['to'](_0x30b1db),_0x2eb167['on']('execute',()=>{_0x30b1db['execute'](_0x4a994d);}),_0x2eb167;}['_createToolbarButton'](_0x20dbe3){const {locale:_0x579622}=this['editor'],_0x5db3ef=this['editor']['plugins']['get']('ImageInsertUI'),_0x10c303=_0x20dbe3[0x0],_0x58370f=this['_createButton'](_0x4f4a59,_0x10c303['type']);return _0x58370f['icon']=_0x10c303['icon'],_0x58370f['bind']('label')['to'](_0x5db3ef,'isImageSelected',_0x33dad9=>_(_0x579622,_0x10c303['type'],_0x33dad9?'Replace':'Insert')['text']),_0x58370f['tooltip']=!0x0,_0x58370f;}['_createDropdownButtons'](_0x1af767){const {locale:_0x4e90f0}=this['editor'],_0x3fcdde=this['editor']['plugins']['get']('ImageInsertUI');return _0x1af767['map'](_0x3c9171=>{const _0x46b831=this['_createButton'](_0x4f4a59,_0x3c9171['type']);return _0x46b831['withText']=!0x0,_0x46b831['icon']=_0x3c9171['icon'],_0x46b831['bind']('label')['to'](_0x3fcdde,'isImageSelected',_0x4e9c2d=>_(_0x4e90f0,_0x3c9171['type'],_0x4e9c2d?'Replace':'Insert')['text']),_0x46b831;});}['_createMenuBarButtons'](_0x39d7c7){return _0x39d7c7['map'](_0x66b5a=>{const _0x6586c1=this['_createButton'](_0x32aa34,_0x66b5a['type']);return _0x6586c1['icon']=_0x66b5a['icon'],_0x6586c1['label']=_0x66b5a['shortText'],_0x6586c1;});}}class F extends _0x2f1810{['focusTracker'];['focusCycler'];constructor(_0x433acc){super(_0x433acc),this['focusTracker']=new _0x5450be(),this['focusCycler']=new _0x2e7a7c({'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(_0x5a5e2f,_0x274f59){super(_0x5a5e2f),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-'+_0x274f59}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x230784,_0x46f1ba){const _0x2ec4a7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3b4db9=>_0x3b4db9<=_0x46f1ba)['map'](_0x322fd4=>_0x230784['replace'](/\/$/,'')+'/-/resize/'+_0x322fd4+'x/\x20'+_0x322fd4+'w');return{'imageFallbackUrl':_0x230784,'imageSources':[{'srcset':_0x2ec4a7['join'](',\x20'),'sizes':'(max-width:\x20'+_0x46f1ba+'px)\x20100vw,\x20'+_0x46f1ba+'px','type':'image/webp'}]};}function S(_0x6124d6,_0x2da90f,_0x3cde13){const _0x120610=_0x6124d6['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x120610?parseInt(_0x120610[0x1],0xa):_0x2da90f,'height':_0x120610?parseInt(_0x120610[0x2],0xa):_0x3cde13};}function p(_0x4cf845,_0x53f717){const _0x2c88d7=new(_0x3b5c8f())(),_0xb8ac2c=_0x4cf845['plugins']['get']('ImageUtils'),_0x2d4b4b=_0x4cf845['editing']['mapper']['toViewElement'](_0x53f717),_0x4143c5=_0xb8ac2c['findViewImgElement'](_0x2d4b4b),_0x357f0d=_0x4cf845['editing']['view']['domConverter']['viewToDom'](_0x4143c5),_0x102bfd=_0x53f717['getAttribute']('width'),_0x26d807=_0x53f717['getAttribute']('height'),_0xb5c5cc='image-processing';_0x4cf845['editing']['view']['change'](_0x4d158d=>{_0x4d158d['addClass'](_0xb5c5cc,_0x2d4b4b),_0x4d158d['setStyle']('aspect-ratio',_0x102bfd+'/'+_0x26d807,_0x4143c5);}),_0x2c88d7['listenTo'](_0x357f0d,'load',()=>{_0x2c88d7['stopListening'](_0x357f0d,'load'),_0x4cf845['editing']['view']['change'](_0x1b1840=>{_0x1b1840['removeClass'](_0xb5c5cc,_0x2d4b4b),_0x1b1840['removeStyle']('aspect-ratio',_0x4143c5);});});}function z(_0x2791a1){if(Array['isArray'](_0x2791a1)){const _0x310784=_0x2791a1['map'](z);return _0x9d605a=>_0x310784['some'](_0x48edbd=>_0x48edbd(_0x9d605a));}if('origin'==_0x2791a1){const _0x29cfe2=_0x4e41ad['window']['location']['origin'];return _0x49f68d=>new URL(_0x49f68d,_0x4e41ad['document']['baseURI'])['origin']==_0x29cfe2;}return'function'==typeof _0x2791a1?_0x2791a1:_0x2791a1 instanceof RegExp?_0x29dc84=>!(!_0x29dc84['match'](_0x2791a1)&&!_0x29dc84['replace'](/^https?:\/\//,'')['match'](_0x2791a1)):()=>!0x1;}function A(_0x5c39f0,_0x524d83){return _0x3caaa1(_0x5c39f0['target'])['includes'](_0x524d83);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x200730(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x186d0f,_0x47462f,_0x314b0d){super(),this['_editor']=_0x186d0f,this['_editing']=_0x47462f,this['_dialog']=_0x186d0f['plugins']['get'](_0x557901),this['_api']=_0x47462f['ctxElement']['getAPI'](),this['_type']=_0x314b0d,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:_0x313dd0,model:_0x46de69}=this['_editor'],_0x30009e=_0x46de69['document']['selection']['getSelectedElement'](),_0x49d3af=_0x30009e&&(_0x30009e['is']('element','imageBlock')||_0x30009e['is']('element','imageInline'));this['_formView']=new x(_0x313dd0,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xf9f7b5,'title':_(_0x313dd0,this['_type'],_0x49d3af?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x26d80b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28fed2=>!A(_0x28fed2,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1dc6f7}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2ef316=>{const _0x4c7b63=_0x1dc6f7['length'];for(const _0x47fae6 of _0x1dc6f7){const _0x4edfda=_0x47fae6===_0x1dc6f7[_0x4c7b63-0x1],{cdnUrl:_0x2656eb,fileInfo:_0xb70f75}=_0x47fae6;if(!_0x2656eb||!_0xb70f75)continue;const {width:_0x303b58,height:_0x423f90}=_0xb70f75['imageInfo'],_0x57013c=S(_0x2656eb,_0x303b58,_0x423f90),_0x37e869=C(_0x2656eb,_0x57013c['width']),_0x57cb13={'id':_0xb70f75['uuid'],'type':'image','attributes':{'imageDimension':_0x57013c,..._0x37e869}};this['_insertAsset'](_0x57cb13,_0x4edfda,_0x2ef316);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x49eb84=>{'idle'===_0x49eb84['detail']['status']&&!_0x49eb84['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x405217,_0x3634fb,_0x229e0e){const _0x3504e2=this['_editor']['model']['document']['selection'],_0x351828=_0x3504e2['getSelectedElement'](),_0x1914fe=!(!_0x351828||!_0x351828['is']('element','imageInline'));_0x229e0e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x405217,_0x1914fe),_0x3634fb||_0x229e0e['setSelection'](_0x3504e2['getLastPosition']());}['_insertImage'](_0x4043f1,_0x52c281){const _0x21218e=this['_editor'],{imageDimension:_0x22d8fb,imageFallbackUrl:_0x389a68,imageSources:_0xe1f37c}=_0x4043f1['attributes'];_0x21218e['execute']('insertImage',{'imageType':_0x52c281?'imageInline':null,'source':{'uploadcareImageId':_0x4043f1['id'],'src':_0x389a68,'sources':_0xe1f37c,..._0x22d8fb}});}}class w extends _0xc3341e{['_editing'];['_controller']=null;static get['requires'](){return[_0x557901,o];}constructor(_0x2410ab){super(_0x2410ab),this['_editing']=_0x2410ab['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x237063){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x237063);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3975df,..._0x5014e4}){return _0x118242(_0x3975df,_0x5014e4);}static['getInfo'](_0x4a90cf,_0x289997){return _0x1091e7(_0x4a90cf,_0x289997);}}class f extends _0x24b712{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x226e7a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4f744f=this['editor'];if(!!!_0x4f744f['config']['get']('uploadcare'))return;_0x4f744f['plugins']['get'](_0x226e7a)['createUploadAdapter']=_0x359d62=>new k(_0x359d62,_0x4f744f),_0x4f744f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4a2005,{imageElement:_0x2cf13b,data:_0x362f93})=>{_0x4f744f['model']['change'](_0x29c8ff=>{_0x29c8ff['setAttribute']('uploadcareImageId',_0x362f93['uploadcareImageId'],_0x2cf13b);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xd761bf,_0x57193f){this['loader']=_0xd761bf,this['editor']=_0x57193f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x196c15=await this['loader']['file'];return j['upload']({'file':_0x196c15,'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':_0x248624=>{_0x248624&&_0x248624['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x248624['value']);}})['then'](async _0x4c2d22=>{const {imageFallbackUrl:_0x3ce552,imageSources:_0x27888a}=C(_0x4c2d22['cdnUrl'],_0x4c2d22['imageInfo']['width']);return{'uploadcareImageId':_0x4c2d22['uuid'],'default':_0x3ce552,'sources':_0x27888a};})['catch'](()=>{const _0xed5a39=t('Cannot\x20upload\x20file:')+('\x20'+_0x196c15['name']+'.');return Promise['reject'](_0xed5a39);});}['abort'](){this['controller']['abort']();}}class o extends _0x24b712{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x557901];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x86551b){super(_0x86551b),this['ucContextId']=_0x49e0eb();}['init'](){const _0x46c369=this['editor'];_0x46c369['commands']['add']('uploadcare',new w(_0x46c369));}['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 _0x546c83=_0x4e41ad['document']['querySelector']('input[uploadcare-file-input]');_0x546c83&&_0x546c83['remove']();}),async function(_0x48779c){const _0x5bfa36=_0x4ef87a([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2442a5=0x535f8c3a,_0x41fff2=0x5358fb72^_0x2442a5,_0x58abdf=window[_0x4ef87a([0x44,0x61,0x74,0x65])][_0x4ef87a([0x6e,0x6f,0x77])](),_0x3912fb=_0x48779c[_0x4ef87a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12c533=new window[(_0x4ef87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x471ff5=>{_0x3912fb[_0x4ef87a([0x6f,0x6e,0x63,0x65])](_0x4ef87a([0x72,0x65,0x61,0x64,0x79]),_0x471ff5);}),_0x31187d={[_0x4ef87a([0x6b,0x74,0x79])]:_0x4ef87a([0x45,0x43]),[_0x4ef87a([0x75,0x73,0x65])]:_0x4ef87a([0x73,0x69,0x67]),[_0x4ef87a([0x63,0x72,0x76])]:_0x4ef87a([0x50,0x2d,0x32,0x35,0x36]),[_0x4ef87a([0x78])]:_0x4ef87a([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]),[_0x4ef87a([0x79])]:_0x4ef87a([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]),[_0x4ef87a([0x61,0x6c,0x67])]:_0x4ef87a([0x45,0x53,0x32,0x35,0x36])},_0x537d04=_0x3912fb[_0x4ef87a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ef87a([0x67,0x65,0x74])](_0x4ef87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x491392(){let _0x161307,_0x26bbe3=null,_0x38fa37=null;try{if(_0x537d04==_0x4ef87a([0x47,0x50,0x4c]))return _0x4ef87a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x161307=_0x4c63bd(),!_0x161307)return _0x4ef87a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x161307[_0x4ef87a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38fa37=_0x8022b1(_0x161307[_0x4ef87a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x161307[_0x4ef87a([0x6a,0x74,0x69])])),await _0x1e1232()?_0x1cd4b6()?_0x346795()?_0x4ef87a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4841b4()?(_0x161307[_0x4ef87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ef87a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26bbe3=_0x16b3a2(_0x4ef87a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x161307[_0x4ef87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ef87a([0x74,0x72,0x69,0x61,0x6c])&&(_0x26bbe3=_0x16b3a2(_0x4ef87a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1017c1()):_0x4ef87a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ef87a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ef87a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4ef87a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x346795(){const _0x4121cd=[_0x4ef87a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ef87a([0x74,0x72,0x69,0x61,0x6c])][_0x4ef87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x161307[_0x4ef87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58abdf/0x3e8:0xe10*_0x41fff2;return _0x161307[_0x4ef87a([0x65,0x78,0x70])]<_0x4121cd;}function _0x1cd4b6(){const _0x367eba=_0x161307[_0x4ef87a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x367eba&&(!!_0x367eba[_0x4ef87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ef87a([0x2a]))||!!_0x367eba[_0x4ef87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ef87a([0x55,0x50,0x4c,0x43])));}function _0x4841b4(){const _0x2a01e6=_0x161307[_0x4ef87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2a01e6||0x0==_0x2a01e6[_0x4ef87a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d7745}=new URL(window[_0x4ef87a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2a01e6[_0x4ef87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d7745))return!0x0;const _0x3799e7=_0x1d7745[_0x4ef87a([0x73,0x70,0x6c,0x69,0x74])](_0x4ef87a([0x2e]));return _0x2a01e6[_0x4ef87a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dde77=>_0x1dde77[_0x4ef87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ef87a([0x2a])))[_0x4ef87a([0x6d,0x61,0x70])](_0x5b23a6=>_0x5b23a6[_0x4ef87a([0x73,0x70,0x6c,0x69,0x74])](_0x4ef87a([0x2e])))[_0x4ef87a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x269122=>_0x269122[_0x4ef87a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3799e7[_0x4ef87a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ef87a([0x6d,0x61,0x70])](_0x39199d=>Array(_0x3799e7[_0x4ef87a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x39199d[_0x4ef87a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ef87a([0x66,0x69,0x6c,0x6c])](_0x39199d[0x0]===_0x4ef87a([0x2a])?_0x4ef87a([0x2a]):'')[_0x4ef87a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x39199d))[_0x4ef87a([0x73,0x6f,0x6d,0x65])](_0x2013d5=>_0x3799e7[_0x4ef87a([0x65,0x76,0x65,0x72,0x79])]((_0x19d2a0,_0x362463)=>_0x2013d5[_0x362463]===_0x19d2a0||_0x2013d5[_0x362463]===_0x4ef87a([0x2a])));}function _0x1017c1(){return _0x26bbe3&&_0x38fa37?new window[(_0x4ef87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56c002,_0x29ce1b)=>{_0x26bbe3[_0x4ef87a([0x74,0x68,0x65,0x6e])](_0x56c002,_0x29ce1b),_0x38fa37[_0x4ef87a([0x74,0x68,0x65,0x6e])](_0x2c9ec2=>{_0x2c9ec2!=_0x4ef87a([0x56,0x61,0x6c,0x69,0x64])&&_0x56c002(_0x2c9ec2);},_0x29ce1b);}):_0x26bbe3||_0x38fa37||_0x4ef87a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x8022b1(_0x395aa3,_0x4b21dd){return new window[(_0x4ef87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30918b=>{if(_0x277941())return _0x30918b(_0x4ef87a([0x56,0x61,0x6c,0x69,0x64]));_0x3f1440(),_0x3912fb[_0x4ef87a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ef87a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11bd56=!0x1;const _0x57ce51=_0x49e0eb();function _0x449a96(_0x228edc){return!!_0x228edc&&(typeof _0x228edc===_0x4ef87a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x228edc===_0x4ef87a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x228edc[_0x4ef87a([0x74,0x68,0x65,0x6e])]===_0x4ef87a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x228edc[_0x4ef87a([0x63,0x61,0x74,0x63,0x68])]===_0x4ef87a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x321acf(_0x560314){_0x12c713(_0x560314)[_0x4ef87a([0x74,0x68,0x65,0x6e])](_0x5af5b8=>{if(!_0x5af5b8||_0x5af5b8[_0x4ef87a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ef87a([0x6f,0x6b]))return _0x4ef87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x210dc4(_0xe3f15a(_0x57ce51+_0x4b21dd))!=_0x5af5b8[_0x4ef87a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ef87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ef87a([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ef87a([0x74,0x68,0x65,0x6e])](_0x527b3d=>(_0x176b67(),_0x527b3d),()=>{const _0x119e36=_0x243eac();return null==_0x119e36?(_0x176b67(),_0x4ef87a([0x56,0x61,0x6c,0x69,0x64])):_0x4ef87a(_0x58abdf-_0x119e36>(0x7753083a^_0x2442a5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ef87a([0x74,0x68,0x65,0x6e])](_0x30918b)[_0x4ef87a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x30918b(_0x4ef87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44031c=0x536962ba^_0x2442a5;function _0x176b67(){const _0x11a2e5=_0x4ef87a([0x6c,0x6c,0x63,0x74,0x2d])+_0x210dc4(_0xe3f15a(_0x395aa3)),_0x4a9b62=_0x403874(_0x210dc4(window[_0x4ef87a([0x4d,0x61,0x74,0x68])][_0x4ef87a([0x63,0x65,0x69,0x6c])](_0x58abdf/_0x44031c)));window[_0x4ef87a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ef87a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11a2e5,_0x4a9b62);}function _0x243eac(){const _0x400238=_0x4ef87a([0x6c,0x6c,0x63,0x74,0x2d])+_0x210dc4(_0xe3f15a(_0x395aa3)),_0x3dd371=window[_0x4ef87a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ef87a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x400238);return _0x3dd371?window[_0x4ef87a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x403874(_0x3dd371),0x10)*_0x44031c:null;}function _0x12c713(_0xf342a4){return new window[(_0x4ef87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xcef02f,_0x4213ee)=>{_0xf342a4[_0x4ef87a([0x74,0x68,0x65,0x6e])](_0xcef02f,_0x4213ee),window[_0x4ef87a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4213ee,0x535e58fa^_0x2442a5);});}}_0x3912fb[_0x4ef87a([0x6f,0x6e])](_0x4ef87a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x418402,_0x1fc96c)=>{if(_0x1fc96c[0x0]!=_0x395aa3)return _0x30918b(_0x4ef87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1fc96c[0x1]={..._0x1fc96c[0x1],[_0x4ef87a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x57ce51};},{[_0x4ef87a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ef87a([0x68,0x69,0x67,0x68])}),_0x3912fb[_0x4ef87a([0x6f,0x6e])](_0x4ef87a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5192fb=>{_0x449a96(_0x5192fb[_0x4ef87a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11bd56=!0x0,_0x321acf(_0x5192fb[_0x4ef87a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ef87a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ef87a([0x6c,0x6f,0x77])}),_0x12c533[_0x4ef87a([0x74,0x68,0x65,0x6e])](()=>{_0x11bd56||_0x30918b(_0x4ef87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x277941(){return _0x3912fb[_0x4ef87a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ef87a([0x76,0x69,0x65,0x77])][_0x4ef87a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ef87a([0x61,0x75,0x74,0x6f]);}function _0x3f1440(){_0x3912fb[_0x4ef87a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ef87a([0x76,0x69,0x65,0x77])][_0x4ef87a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ef87a([0x61,0x75,0x74,0x6f]);}}function _0x16b3a2(_0xf9ffa2){const _0x2e4cf3=[new window[(_0x4ef87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5240dc=>setTimeout(_0x5240dc,0x5356b2f6^_0x2442a5)),_0x12c533[_0x4ef87a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ef87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28b8aa=>{let _0x20b500=0x0;_0x3912fb[_0x4ef87a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ef87a([0x6f,0x6e])](_0x4ef87a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5a1e5b,_0x388d67)=>{_0x388d67[0x0][_0x4ef87a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x20b500++,_0x20b500==(0x535f8dc2^_0x2442a5)&&(_0x28b8aa(),_0x5a1e5b[_0x4ef87a([0x6f,0x66,0x66])]());});}))];return window[_0x4ef87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ef87a([0x72,0x61,0x63,0x65])](_0x2e4cf3)[_0x4ef87a([0x74,0x68,0x65,0x6e])](()=>_0xf9ffa2);}async function _0x107c83(){await _0x12c533,_0x3912fb[_0x4ef87a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ef87a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58b0d5,_0x3912fb[_0x4ef87a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ef87a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58b0d5,_0x3912fb[_0x4ef87a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ef87a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f7942(_0x1ea0b6){const _0x436743=_0xa03ab6();_0x3912fb[_0x436743]=_0x4ef87a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ea0b6,_0x1ea0b6!=_0x4ef87a([0x56,0x61,0x6c,0x69,0x64])&&_0x107c83();}function _0xa03ab6(){const _0x21302b=window[_0x4ef87a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ef87a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ef87a([0x6e,0x6f,0x77])]())[_0x4ef87a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ef87a([0x2e]),'');let _0x1c790f=_0x4ef87a([0x68]);for(let _0x1f2312=0x0;_0x1f2312<_0x21302b[_0x4ef87a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f2312+=0x2){let _0x36b90f=window[_0x4ef87a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21302b[_0x4ef87a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f2312,_0x1f2312+0x2));_0x36b90f>=_0x5bfa36[_0x4ef87a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36b90f-=_0x5bfa36[_0x4ef87a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c790f+=_0x5bfa36[_0x36b90f];}return _0x1c790f;}function _0x4c63bd(){const _0x4e9ce6=_0x537d04[_0x4ef87a([0x73,0x70,0x6c,0x69,0x74])](_0x4ef87a([0x2e]));if(0x3!=_0x4e9ce6[_0x4ef87a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x9bdd59(_0x4e9ce6[0x1]);function _0x9bdd59(_0x8acd2e){const _0xaf6f89=_0x1400d0(_0x8acd2e);return _0xaf6f89&&_0x4500fd()?_0xaf6f89:null;function _0x4500fd(){const _0x4fb3a6=_0xaf6f89[_0x4ef87a([0x6a,0x74,0x69])],_0x112812=window[_0x4ef87a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fb3a6[_0x4ef87a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fb3a6[_0x4ef87a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x205784={..._0xaf6f89,[_0x4ef87a([0x6a,0x74,0x69])]:_0x4fb3a6[_0x4ef87a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4fb3a6[_0x4ef87a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x205784[_0x4ef87a([0x76,0x63])],_0xe3f15a(_0x205784)==_0x112812;}}}async function _0x1e1232(){let _0x3b6dc9=!0x0;try{const _0x20c907=_0x537d04[_0x4ef87a([0x73,0x70,0x6c,0x69,0x74])](_0x4ef87a([0x2e])),[_0x360e16,_0x3ea9db,_0x8df875]=_0x20c907;return _0xc7d2c1(_0x360e16),await _0x2e21a6(_0x360e16,_0x3ea9db,_0x8df875),_0x3b6dc9;}catch{return!0x1;}function _0xc7d2c1(_0x1f518b){const _0xd92494=_0x1400d0(_0x1f518b);_0xd92494&&_0xd92494[_0x4ef87a([0x61,0x6c,0x67])]==_0x4ef87a([0x45,0x53,0x32,0x35,0x36])||(_0x3b6dc9=!0x1);}async function _0x2e21a6(_0x2fc694,_0x320873,_0x4245fe){const _0x574d05=window[_0x4ef87a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ef87a([0x66,0x72,0x6f,0x6d])](_0x570b9f(_0x4245fe),_0x572e1b=>_0x572e1b[_0x4ef87a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe96fc9=new window[(_0x4ef87a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ef87a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2fc694+_0x4ef87a([0x2e])+_0x320873),_0xd36bcc=window[_0x4ef87a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ef87a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd36bcc)return;const _0x5c0b70=await _0xd36bcc[_0x4ef87a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ef87a([0x6a,0x77,0x6b]),_0x31187d,{[_0x4ef87a([0x6e,0x61,0x6d,0x65])]:_0x4ef87a([0x45,0x43,0x44,0x53,0x41]),[_0x4ef87a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ef87a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ef87a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd36bcc[_0x4ef87a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ef87a([0x6e,0x61,0x6d,0x65])]:_0x4ef87a([0x45,0x43,0x44,0x53,0x41]),[_0x4ef87a([0x68,0x61,0x73,0x68])]:{[_0x4ef87a([0x6e,0x61,0x6d,0x65])]:_0x4ef87a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c0b70,_0x574d05,_0xe96fc9)||(_0x3b6dc9=!0x1);}}function _0x1400d0(_0x2133f1){return _0x2133f1[_0x4ef87a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ef87a([0x65,0x79]))?JSON[_0x4ef87a([0x70,0x61,0x72,0x73,0x65])](_0x570b9f(_0x2133f1)):null;}function _0x570b9f(_0x13b269){return window[_0x4ef87a([0x61,0x74,0x6f,0x62])](_0x13b269[_0x4ef87a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ef87a([0x2b]))[_0x4ef87a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ef87a([0x2f])));}function _0xe3f15a(_0x33d0cf){let _0x4f0413=0x1505;function _0x10cfc8(_0x5515be){for(let _0x33ea47=0x0;_0x33ea47<_0x5515be[_0x4ef87a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33ea47++){const _0x2c632d=_0x5515be[_0x4ef87a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33ea47);_0x4f0413=(_0x4f0413<<0x5)+_0x4f0413+_0x2c632d,_0x4f0413&=_0x4f0413;}}function _0x3ccabc(_0x234038){Array[_0x4ef87a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x234038)?_0x234038[_0x4ef87a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3ccabc):_0x234038&&typeof _0x234038==_0x4ef87a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ef87a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x234038)[_0x4ef87a([0x73,0x6f,0x72,0x74])]()[_0x4ef87a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x15833a,_0x385ef4])=>{_0x10cfc8(_0x15833a),_0x3ccabc(_0x385ef4);}):_0x10cfc8(window[_0x4ef87a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x234038));}return _0x3ccabc(_0x33d0cf),_0x4f0413>>>0x0;}function _0x210dc4(_0x3d4c04){return _0x3d4c04[_0x4ef87a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ef87a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ef87a([0x30]));}function _0x403874(_0x62d217){return _0x62d217[_0x4ef87a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ef87a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ef87a([0x6a,0x6f,0x69,0x6e])]('');}function _0x58b0d5(){}function _0x4ef87a(_0xcce3c3){return _0xcce3c3['map'](_0x2dc855=>String['fromCharCode'](_0x2dc855))['join']('');}_0x1f7942(await _0x491392());}(this);}['_initSchema'](){const _0x345350=this['editor']['model']['schema'];_0x345350['isRegistered']('imageBlock')&&_0x345350['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x345350['isRegistered']('imageInline')&&_0x345350['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x323993=this['editor'];_0x323993['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x323993['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x73b52f=>_0x73b52f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a85af=_0x323993['commands']['get']('replaceImageSource');_0x1a85af&&this['listenTo'](_0x1a85af,'cleanupImage',(_0x12a47b,[_0x57942d,_0x506b6f])=>{_0x57942d['removeAttribute']('uploadcareImageId',_0x506b6f);});}['_initConfig'](){const _0x3cc0e7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4409b7=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5c6661(_0x4e41ad['document'],'uc-config',{..._0x3cc0e7,'pubkey':_0x4409b7,'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']=_0x44590e=>{if('closeMax'==_0x44590e)return'#uc-icon-arrow-down';},_0x4e41ad['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5c6661(_0x4e41ad['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4e41ad['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x44ea0b=this['editor']['commands']['get']('insertImage');_0x44ea0b&&this['listenTo'](_0x44ea0b,'execute',()=>{const _0x4ed860=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4ed860&&_0x4ed860['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4ed860);});});const _0x5d3ad9=this['editor']['commands']['get']('uploadcareImageReplace');_0x5d3ad9&&this['listenTo'](_0x5d3ad9,'execute',()=>{const _0x3816be=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3816be&&_0x3816be['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3816be);});});}}class tt extends _0x24b712{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x388390){super(_0x388390),_0x388390['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x61c9c3['defineComponents'](_0x61c9c3),this['_defineLocale']();}['_defineLocale'](){const _0x445b72=this['editor']['config']['get']('uploadcare.locale'),_0x3aa645=this['editor']['locale']['contentLanguage'];_0x445b72&&_0x61c9c3['defineLocale'](_0x3aa645,_0x445b72);}}class ii extends _0x2f1810{constructor(_0x7c042c){super(_0x7c042c);const t=_0x7c042c['t'],_0x4d4c13=this['bindTemplate'],_0x1d4e3d=new _0x18f59a();_0x1d4e3d['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':[_0x1d4e3d,{'text':_0x4d4c13['to']('imageUploadProgress',_0x528c8d=>t('Loading\x20image...')+'\x20('+(_0x528c8d||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 _0x2f1810{constructor(_0x50f0e3){super(_0x50f0e3);const t=_0x50f0e3['t'];this['set']('errorType',null);const _0x32e367=new _0x4f4a59(_0x50f0e3);_0x32e367['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x32e367['withText']=!0x0,_0x32e367['class']='ck-button-action',_0x32e367['on']('execute',()=>{this['fire']('retry');}),_0x32e367['bind']('isVisible')['to'](this,'errorType',_0x4eddfe=>'NotFound'!==_0x4eddfe);const _0x169106=new _0x2b7de3();_0x169106['content']=_0x28401c,_0x169106['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x29404e=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':[_0x169106,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x29404e['to']('errorType',_0x3688f9=>t('NotFound'!==_0x3688f9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x32e367]},{'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 _0x2f1810{constructor(_0x1c8e98,_0x5394de){super(_0x1c8e98);const _0x230672=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5394de,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x230672['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x476033,_0x4b8815,_0x188ae6){super(_0x476033),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x476033),this['_errorView']=new ti(_0x476033),this['_editingView']=new ei(_0x476033,_0x188ae6),this['_focusableView']=new _0x2f1810(_0x476033),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4b8815),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'],_0x33fff1=>{this['_addUploadcareImageEditorListeners'](_0x33fff1);});}),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'](_0x34bdce,_0x3b3ff4){const _0x4af05d='uc-cloud-image-editor',_0x23fbf0=_0x34bdce['querySelector'](_0x4af05d);if(_0x23fbf0)return _0x3b3ff4(_0x23fbf0);const _0x889495=new MutationObserver(_0x293f76=>{const _0x372689=_0x293f76['filter'](_0x3645d7=>_0x3645d7['target']===_0x34bdce&&_0x3645d7['addedNodes']['length']>0x0&&_0x3645d7['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4af05d);_0x372689['length']&&(_0x889495['disconnect'](),_0x3b3ff4(_0x372689[0x0]['addedNodes'][0x0]));});_0x889495['observe'](_0x34bdce,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4f9f25){_0x4f9f25['addEventListener']('apply',_0x5c73b6=>{this['fire']('apply',{'imageSrc':_0x5c73b6['detail']['cdnUrl']});}),_0x4f9f25['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x200730(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5c16b2,_0x1f50e6,_0x2a8a66){super(),this['_editor']=_0x5c16b2,this['_dialog']=_0x1f50e6,this['_imageElement']=_0x2a8a66,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 _0x3225ae=this['_imageElement'],_0x2b6170=_0x3225ae['getAttribute']('uploadcareImageId'),_0x151f26=_0x3225ae['getAttribute']('src');if(_0x2b6170)await this['_loadImageInfo'](_0x2b6170,_0x151f26);else{if(this['_imageCache']['has'](_0x151f26)){const _0x2d12f2=this['_imageCache']['get'](_0x151f26);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d12f2['url'],this['imageDimension']=_0x2d12f2['dimension'],this['imageId']=_0x2d12f2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1946a9}=this['_editor'],t=_0x1946a9['t'],_0xa6f05b=new X(_0x1946a9,this['imageStatus'],this['_attributes']);_0xa6f05b['bind']('status')['to'](this,'imageStatus'),_0xa6f05b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xa6f05b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xa6f05b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xa6f05b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3cb0a6,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xa6f05b,'position':_0x26d80b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xa6f05b['focus']();},'onHide':()=>{_0xa6f05b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5437bd=>!A(_0x5437bd,_0xa6f05b['element'])}});}['_loadImageInfo'](_0x2a810d,_0x502880){return j['getInfo'](_0x2a810d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x9bca66=>{const {width:_0x2746c0,height:_0x2e38b0}=_0x9bca66['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x502880,this['imageDimension']={'width':_0x2746c0,'height':_0x2e38b0},this['imageId']=_0x2a810d;})['catch'](_0x5df167=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5df167['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1fec61,_0x6fa6e8){return this['_getImageAsFile'](_0x1fec61)['then'](_0xc2576c=>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':_0x6fa6e8['signal'],'file':_0xc2576c,'onProgress':_0x5917aa=>{_0x5917aa&&_0x5917aa['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5917aa['value']));}}))['then'](_0x316856=>{const {width:_0x5cb087,height:_0x2b7691}=_0x316856['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x316856['cdnUrl'],this['imageDimension']={'width':_0x5cb087,'height':_0x2b7691},this['imageId']=_0x316856['uuid'],this['imageUploadProgress']=null;const _0x1db1a6=_0x1fec61['getAttribute']('src');this['_imageCache']['set'](_0x1db1a6,{'id':_0x316856['uuid'],'url':_0x316856['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x20b3bb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x20b3bb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x29a343,_0x10d2df){_0x29a343['on']('apply',(_0x34db7a,_0x155206)=>{this['_replaceImage'](_0x10d2df,_0x155206['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x29a343['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x29a343['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xb48a5c,_0x48ec47,_0x2356be){const _0x15824d=this['_editor'],{width:_0x101e66,height:_0x24b6e3}=S(_0x48ec47,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3b633e,imageSources:_0x1104a9}=C(_0x48ec47,_0x101e66);_0x15824d['model']['change'](_0x4abf57=>{if('$graveyard'===_0xb48a5c['root']['rootName']){_0x15824d['execute']('insertImage',{'imageType':_0xb48a5c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xb48a5c['getAttributes']()),'uploadcareImageId':_0x2356be,'src':_0x3b633e,'sources':_0x1104a9,'width':_0x101e66,'height':_0x24b6e3}});const _0x22cfbd=_0xb48a5c['getChildren']();_0xb48a5c=_0x15824d['model']['document']['selection']['getSelectedElement']();for(const _0x3ac4a7 of _0x22cfbd)_0x4abf57['append'](_0x4abf57['cloneElement'](_0x3ac4a7),_0xb48a5c);}else _0x4abf57['setSelection'](_0xb48a5c,'on'),_0x15824d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xb48a5c['getAttributes']()),'uploadcareImageId':_0x2356be,'src':_0x3b633e,'sources':_0x1104a9,'width':_0x101e66,'height':_0x24b6e3},_0xb48a5c);_0x4abf57['setSelection'](_0xb48a5c,'on');});}async['_getImageAsFile'](_0x3263fa){const _0x576dd1=_0x4e41ad['window'],_0x307d0=_0x4e41ad['document']['location']['href'],_0x8b20eb=new _0x576dd1['URL'](_0x3263fa['getAttribute']('src'),_0x307d0);if('data:'===_0x8b20eb['protocol']){const _0x5c2ab8=_0x8b20eb['href']['split'](','),_0x52c169=_0x5c2ab8[0x0]['match'](/:(.*?);/)[0x1],_0x2c8afa=_0x52c169['split']('/')[0x1],_0x5b2a6c=_0x576dd1['atob'](_0x5c2ab8[_0x5c2ab8['length']-0x1]);let _0x55cdc9=_0x5b2a6c['length'];const _0x34353f=new _0x576dd1['Uint8Array'](_0x55cdc9);for(;_0x55cdc9--;)_0x34353f[_0x55cdc9]=_0x5b2a6c['charCodeAt'](_0x55cdc9);return new _0x576dd1['File']([_0x34353f],'image.'+_0x2c8afa,{'type':_0x52c169});}const _0x294ff9=_0x8b20eb['href']['split']('/'),_0x38ba5d=_0x294ff9[_0x294ff9['length']-0x1],_0x29f6b5=_0x38ba5d['split']('.')[0x1];return _0x576dd1['fetch'](_0x8b20eb['href'])['then'](_0x201074=>_0x201074['clone']()['blob']())['then'](_0x52cda9=>new _0x576dd1['File']([_0x52cda9],_0x38ba5d,{'type':'image/'+_0x29f6b5}));}}class Q extends _0xc3341e{['imageEditController'];static get['requires'](){return[_0x557901];}['_isEditable'];constructor(_0x101b16){super(_0x101b16),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4f0701){const _0x188628=z(_0x4f0701);return _0x17d862=>!(!_0x17d862||!_0x17d862['is']('element','imageBlock')&&!_0x17d862['is']('element','imageInline'))&&(!!_0x17d862['hasAttribute']('uploadcareImageId')||!!_0x17d862['hasAttribute']('src')&&_0x188628(_0x17d862['getAttribute']('src')));}(_0x101b16['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4bd374=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4bd374);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x8fc0f7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8fc0f7&&(_0x8fc0f7['is']('element','imageBlock')||_0x8fc0f7['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x557901),_0x8fc0f7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0xc3341e{['refresh'](){const _0x4728e5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4728e5&&(_0x4728e5['is']('element','imageBlock')||_0x4728e5['is']('element','imageInline')));}['execute'](_0x15dd5e){const _0x247da9=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3b726c=>{_0x3b726c['setAttributes'](_0x15dd5e,_0x247da9),_0x3b726c['removeAttribute']('srcset',_0x247da9),_0x3b726c['removeAttribute']('sizes',_0x247da9);});}}class m extends _0x24b712{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x551eb0,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x59387b}=this;_0x59387b['commands']['add']('uploadcareImageEdit',new Q(_0x59387b)),_0x59387b['commands']['add']('uploadcareImageReplace',new V(_0x59387b));}}class g extends _0x24b712{['_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 _0x43ad0c=this['editor'];_0x43ad0c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x165e70=>{const _0x5be8d5=_0x43ad0c['commands']['get']('uploadcareImageEdit'),_0x14acae=new _0x4f4a59(_0x165e70),t=_0x165e70['t'];return _0x14acae['set']({'icon':_0x3cb0a6,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x14acae['bind']('isEnabled')['to'](_0x5be8d5),_0x14acae['bind']('isOn')['to'](_0x5be8d5,'isActive'),this['listenTo'](_0x14acae,'execute',()=>{_0x43ad0c['execute']('uploadcareImageEdit'),_0x43ad0c['editing']['view']['focus']();}),_0x14acae;}),this['_initConfig']();}['_initConfig'](){const _0x5cae56=_0x5c6661(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5cae56),this['listenTo'](this['editor'],'destroy',()=>{_0x5cae56['remove']();});}}class et extends _0x24b712{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,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x274052,Command as _0x3cebad}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5222e8,IconGooglePhotos as _0x52fd29,IconGoogleDrive as _0x228409,IconFacebook as _0x54bbc0,IconDropbox as _0x26ad99,IconUploadcareLink as _0x3126db,IconUploadcareImageUpload as _0x366876,IconError as _0x17946b,IconUploadcareImageEdit as _0xf2266e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x6266cf,MenuBarMenuListItemButtonView as _0x39843a,View as _0x1b33af,FocusCycler as _0x467361,Dialog as _0x578d9f,DialogViewPosition as _0x199967,SpinnerView as _0x1af710,IconView as _0x5c1133,Notification as _0x3b5940}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2b4cab,DomEmitterMixin as _0x53376a,global as _0x2e7f14,getAncestors as _0x562a9b,ObservableMixin as _0x23a128,uid as _0x41b235,createElement as _0x4ad8e0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5281b4}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x159d4f,info as _0x192180}from'@uploadcare/upload-client';import*as _0x1104c8 from'@uploadcare/file-uploader';var i=function(_0x52a3a5){return _0x52a3a5['Local']='local',_0x52a3a5['URL']='url',_0x52a3a5['Dropbox']='dropbox',_0x52a3a5['GDrive']='gdrive',_0x52a3a5['Facebook']='facebook',_0x52a3a5['GPhotos']='gphotos',_0x52a3a5['OneDrive']='onedrive',_0x52a3a5;}({});function _(_0x2b3d6b,_0x5af348,_0x344a50){const t=_0x2b3d6b['t'],_0x4443a4=_0x2b3d6b['t'];switch(_0x5af348){case i['Local']:return{'text':_0x4443a4('Insert'===_0x344a50?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4443a4('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x344a50?_0x4443a4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4443a4('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x344a50?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x344a50?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x344a50?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x344a50?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x344a50?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5af348;}}class e extends _0x274052{['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 _0xfaec3b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2149ec;for(const _0xb701f1 in _0xfaec3b){const _0x48e852=_0xb701f1,_0x29b326=_0xfaec3b[_0x48e852];if('uploadcareLicenseKeyValid'==_0x29b326||'uploadcareLicenseKeyInvalid'==_0x29b326||'uploadcareLicenseKeyExpired'==_0x29b326||'uploadcareLicenseKeyDomainLimit'==_0x29b326||'uploadcareLicenseKeyNotAllowed'==_0x29b326||'uploadcareLicenseKeyEvaluationLimit'==_0x29b326||'uploadcareLicenseKeyTrialLimit'==_0x29b326||'uploadcareLicenseKeyUsageLimit'==_0x29b326){delete _0xfaec3b[_0x48e852],_0x2149ec=_0x29b326,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2149ec&&_0xfaec3b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2149ec&&_0xfaec3b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2149ec&&_0xfaec3b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2149ec&&_0xfaec3b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2149ec&&_0xfaec3b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2149ec&&_0xfaec3b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2149ec&&_0xfaec3b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x133f0f}=this,_0x94725b=_0x133f0f['commands']['get']('uploadcare');if(!_0x94725b)return;const _0x2c30f2=this['_normalizeConfigSourceList'](_0x133f0f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x35f19d,_0x9cba00)=>{const _0x732547=this['_getIntegrationKey'](_0x9cba00['type']);return _0x35f19d[_0x732547]||(_0x35f19d[_0x732547]=[]),_0x35f19d[_0x732547]['push'](_0x9cba00),_0x35f19d;},{});_0x133f0f['plugins']['has']('ImageInsertUI')&&_0x133f0f['commands']['get']('uploadcare')&&Object['entries'](_0x2c30f2)['forEach'](([_0x223111,_0xef150c])=>{_0x133f0f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x223111,'observable':()=>_0x94725b,'buttonViewCreator':()=>this['_createToolbarButton'](_0xef150c),'formViewCreator':()=>this['_createDropdownButtons'](_0xef150c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xef150c),'override':'assetManager'!==_0x223111});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1828f5){const {locale:_0x75e47a}=this['editor'];return _0x1828f5['map'](_0x590454=>{const _0x43483d=_(_0x75e47a,_0x590454,'Insert');switch(_0x590454){case i['Local']:return{'icon':_0x366876,'type':i['Local'],..._0x43483d};case i['URL']:return{'icon':_0x3126db,'type':i['URL'],..._0x43483d};case i['Dropbox']:return{'icon':_0x26ad99,'type':i['Dropbox'],..._0x43483d};case i['Facebook']:return{'icon':_0x54bbc0,'type':i['Facebook'],..._0x43483d};case i['GDrive']:return{'icon':_0x228409,'type':i['GDrive'],..._0x43483d};case i['GPhotos']:return{'icon':_0x52fd29,'type':i['GPhotos'],..._0x43483d};case i['OneDrive']:return{'icon':_0x5222e8,'type':i['OneDrive'],..._0x43483d};}});}['_getIntegrationKey'](_0x5b7940){switch(_0x5b7940){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3b07bf,_0x3df61a){const _0x1a9030=this['editor'],_0x50ea43=new _0x3b07bf(_0x1a9030['locale']),_0x3361d4=_0x1a9030['commands']['get']('uploadcare');return _0x50ea43['bind']('isEnabled')['to'](_0x3361d4),_0x50ea43['on']('execute',()=>{_0x3361d4['execute'](_0x3df61a);}),_0x50ea43;}['_createToolbarButton'](_0x593705){const {locale:_0x7d7ea1}=this['editor'],_0x4071c5=this['editor']['plugins']['get']('ImageInsertUI'),_0x50c334=_0x593705[0x0],_0x3025f5=this['_createButton'](_0x6266cf,_0x50c334['type']);return _0x3025f5['icon']=_0x50c334['icon'],_0x3025f5['bind']('label')['to'](_0x4071c5,'isImageSelected',_0x6206c8=>_(_0x7d7ea1,_0x50c334['type'],_0x6206c8?'Replace':'Insert')['text']),_0x3025f5['tooltip']=!0x0,_0x3025f5;}['_createDropdownButtons'](_0x3441d8){const {locale:_0x3f7aa1}=this['editor'],_0x22d828=this['editor']['plugins']['get']('ImageInsertUI');return _0x3441d8['map'](_0x59744f=>{const _0x344a63=this['_createButton'](_0x6266cf,_0x59744f['type']);return _0x344a63['withText']=!0x0,_0x344a63['icon']=_0x59744f['icon'],_0x344a63['bind']('label')['to'](_0x22d828,'isImageSelected',_0x314575=>_(_0x3f7aa1,_0x59744f['type'],_0x314575?'Replace':'Insert')['text']),_0x344a63;});}['_createMenuBarButtons'](_0x40b314){return _0x40b314['map'](_0x4f0b04=>{const _0x32d5b4=this['_createButton'](_0x39843a,_0x4f0b04['type']);return _0x32d5b4['icon']=_0x4f0b04['icon'],_0x32d5b4['label']=_0x4f0b04['shortText'],_0x32d5b4;});}}class F extends _0x1b33af{['focusTracker'];['focusCycler'];constructor(_0x434688){super(_0x434688),this['focusTracker']=new _0x2b4cab(),this['focusCycler']=new _0x467361({'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(_0x52cd29,_0x2550f2){super(_0x52cd29),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-'+_0x2550f2}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2b7a97,_0x129438){const _0x5417b4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5b79d9=>_0x5b79d9<=_0x129438)['map'](_0x5fb78c=>_0x2b7a97['replace'](/\/$/,'')+'/-/resize/'+_0x5fb78c+'x/\x20'+_0x5fb78c+'w');return{'imageFallbackUrl':_0x2b7a97,'imageSources':[{'srcset':_0x5417b4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x129438+'px)\x20100vw,\x20'+_0x129438+'px','type':'image/webp'}]};}function S(_0x32537f,_0x41eb31,_0x5b6cd3){const _0x1b8198=_0x32537f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1b8198?parseInt(_0x1b8198[0x1],0xa):_0x41eb31,'height':_0x1b8198?parseInt(_0x1b8198[0x2],0xa):_0x5b6cd3};}function p(_0x45eff2,_0x4f1ff0){const _0x136cfe=new(_0x53376a())(),_0x4a69ad=_0x45eff2['plugins']['get']('ImageUtils'),_0x23e765=_0x45eff2['editing']['mapper']['toViewElement'](_0x4f1ff0),_0x54d0f3=_0x4a69ad['findViewImgElement'](_0x23e765),_0x1707aa=_0x45eff2['editing']['view']['domConverter']['viewToDom'](_0x54d0f3),_0x1ec6bf=_0x4f1ff0['getAttribute']('width'),_0x3f4df8=_0x4f1ff0['getAttribute']('height'),_0x2f9940='image-processing';_0x45eff2['editing']['view']['change'](_0x453ae5=>{_0x453ae5['addClass'](_0x2f9940,_0x23e765),_0x453ae5['setStyle']('aspect-ratio',_0x1ec6bf+'/'+_0x3f4df8,_0x54d0f3);}),_0x136cfe['listenTo'](_0x1707aa,'load',()=>{_0x136cfe['stopListening'](_0x1707aa,'load'),_0x45eff2['editing']['view']['change'](_0xc6fbcb=>{_0xc6fbcb['removeClass'](_0x2f9940,_0x23e765),_0xc6fbcb['removeStyle']('aspect-ratio',_0x54d0f3);});});}function G(_0x20bdcf){if(Array['isArray'](_0x20bdcf)){const _0x29b426=_0x20bdcf['map'](G);return _0x231a14=>_0x29b426['some'](_0x4e899d=>_0x4e899d(_0x231a14));}if('origin'==_0x20bdcf){const _0xb0cb9c=_0x2e7f14['window']['location']['origin'];return _0x223fbc=>new URL(_0x223fbc,_0x2e7f14['document']['baseURI'])['origin']==_0xb0cb9c;}return'function'==typeof _0x20bdcf?_0x20bdcf:_0x20bdcf instanceof RegExp?_0x9995dc=>!(!_0x9995dc['match'](_0x20bdcf)&&!_0x9995dc['replace'](/^https?:\/\//,'')['match'](_0x20bdcf)):()=>!0x1;}function A(_0x239894,_0x15e618){return _0x562a9b(_0x239894['target'])['includes'](_0x15e618);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x23a128(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x374215,_0x54736c,_0x28f33f){super(),this['_editor']=_0x374215,this['_editing']=_0x54736c,this['_dialog']=_0x374215['plugins']['get'](_0x578d9f),this['_api']=_0x54736c['ctxElement']['getAPI'](),this['_type']=_0x28f33f,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:_0x83a0fd,model:_0x45b677}=this['_editor'],_0x1c0f2e=_0x45b677['document']['selection']['getSelectedElement'](),_0x44f10d=_0x1c0f2e&&(_0x1c0f2e['is']('element','imageBlock')||_0x1c0f2e['is']('element','imageInline'));this['_formView']=new x(_0x83a0fd,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x366876,'title':_(_0x83a0fd,this['_type'],_0x44f10d?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x199967['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xb460e4=>!A(_0xb460e4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5c588e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x151f0b=>{const _0x443c19=_0x5c588e['length'];for(const _0x2db747 of _0x5c588e){const _0x54cab1=_0x2db747===_0x5c588e[_0x443c19-0x1],{cdnUrl:_0x3031a3,fileInfo:_0x3aee73}=_0x2db747;if(!_0x3031a3||!_0x3aee73)continue;const {width:_0x3f2308,height:_0x21c9df}=_0x3aee73['imageInfo'],_0x38caaf=S(_0x3031a3,_0x3f2308,_0x21c9df),_0x44a7eb=C(_0x3031a3,_0x38caaf['width']),_0x1f43c3={'id':_0x3aee73['uuid'],'type':'image','attributes':{'imageDimension':_0x38caaf,..._0x44a7eb}};this['_insertAsset'](_0x1f43c3,_0x54cab1,_0x151f0b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2d223f=>{'idle'===_0x2d223f['detail']['status']&&!_0x2d223f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5cab5f,_0xa26976,_0x1b4bce){const _0x2ba270=this['_editor']['model']['document']['selection'],_0x426f3c=_0x2ba270['getSelectedElement'](),_0x121375=!(!_0x426f3c||!_0x426f3c['is']('element','imageInline'));_0x1b4bce['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5cab5f,_0x121375),_0xa26976||_0x1b4bce['setSelection'](_0x2ba270['getLastPosition']());}['_insertImage'](_0x4a14a9,_0x5731aa){const _0x25770c=this['_editor'],{imageDimension:_0x33fe06,imageFallbackUrl:_0xc57be6,imageSources:_0x3e3be2}=_0x4a14a9['attributes'];_0x25770c['execute']('insertImage',{'imageType':_0x5731aa?'imageInline':null,'source':{'uploadcareImageId':_0x4a14a9['id'],'src':_0xc57be6,'sources':_0x3e3be2,..._0x33fe06}});}}class w extends _0x3cebad{['_editing'];['_controller']=null;static get['requires'](){return[_0x578d9f,o];}constructor(_0x186bf6){super(_0x186bf6),this['_editing']=_0x186bf6['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3dccd3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3dccd3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x541ea6,..._0x2c137b}){return _0x159d4f(_0x541ea6,_0x2c137b);}static['getInfo'](_0x1f9da0,_0x328339){return _0x192180(_0x1f9da0,_0x328339);}}class f extends _0x274052{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5281b4,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3a2337=this['editor'];if(!!!_0x3a2337['config']['get']('uploadcare'))return;_0x3a2337['plugins']['get'](_0x5281b4)['createUploadAdapter']=_0x2f199a=>new k(_0x2f199a,_0x3a2337),_0x3a2337['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1b11c9,{imageElement:_0x42ac10,data:_0x44b430})=>{_0x3a2337['model']['change'](_0x36f8d7=>{_0x36f8d7['setAttribute']('uploadcareImageId',_0x44b430['uploadcareImageId'],_0x42ac10);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2d9ace,_0x4a51b){this['loader']=_0x2d9ace,this['editor']=_0x4a51b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x49cff7=await this['loader']['file'];return j['upload']({'file':_0x49cff7,'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':_0x16f650=>{_0x16f650&&_0x16f650['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x16f650['value']);}})['then'](async _0x36eb6d=>{const {imageFallbackUrl:_0x596b67,imageSources:_0x2cae83}=C(_0x36eb6d['cdnUrl'],_0x36eb6d['imageInfo']['width']);return{'uploadcareImageId':_0x36eb6d['uuid'],'default':_0x596b67,'sources':_0x2cae83};})['catch'](()=>{const _0x19059b=t('Cannot\x20upload\x20file:')+('\x20'+_0x49cff7['name']+'.');return Promise['reject'](_0x19059b);});}['abort'](){this['controller']['abort']();}}class o extends _0x274052{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x578d9f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5135d5){super(_0x5135d5),this['ucContextId']=_0x41b235();}['init'](){const _0x442f06=this['editor'];_0x442f06['commands']['add']('uploadcare',new w(_0x442f06));}['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 _0x4800dd=_0x2e7f14['document']['querySelector']('input[uploadcare-file-input]');_0x4800dd&&_0x4800dd['remove']();}),async function(_0x26307e){const _0x4c04b9=_0x23a174([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5daff0=0x535f8c3a,_0x56fc57=0x5358fb42^_0x5daff0,_0x460933=window[_0x23a174([0x44,0x61,0x74,0x65])][_0x23a174([0x6e,0x6f,0x77])](),_0x429909=_0x26307e[_0x23a174([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e11d1=new window[(_0x23a174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x340168=>{_0x429909[_0x23a174([0x6f,0x6e,0x63,0x65])](_0x23a174([0x72,0x65,0x61,0x64,0x79]),_0x340168);}),_0x34639a={[_0x23a174([0x6b,0x74,0x79])]:_0x23a174([0x45,0x43]),[_0x23a174([0x75,0x73,0x65])]:_0x23a174([0x73,0x69,0x67]),[_0x23a174([0x63,0x72,0x76])]:_0x23a174([0x50,0x2d,0x32,0x35,0x36]),[_0x23a174([0x78])]:_0x23a174([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]),[_0x23a174([0x79])]:_0x23a174([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]),[_0x23a174([0x61,0x6c,0x67])]:_0x23a174([0x45,0x53,0x32,0x35,0x36])},_0x245fd0=_0x429909[_0x23a174([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23a174([0x67,0x65,0x74])](_0x23a174([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xed4dcb(){let _0x35db21,_0x400a6e=null,_0x3cdc72=null;try{if(_0x245fd0==_0x23a174([0x47,0x50,0x4c]))return _0x23a174([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35db21=_0x2dd68d(),!_0x35db21)return _0x23a174([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35db21[_0x23a174([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3cdc72=_0x32623a(_0x35db21[_0x23a174([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35db21[_0x23a174([0x6a,0x74,0x69])])),await _0x4b1067()?_0x516102()?_0x496a56()?_0x23a174([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b92c5()?(_0x35db21[_0x23a174([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23a174([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x400a6e=_0x21490c(_0x23a174([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35db21[_0x23a174([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23a174([0x74,0x72,0x69,0x61,0x6c])&&(_0x400a6e=_0x21490c(_0x23a174([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x29bfcc()):_0x23a174([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23a174([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23a174([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23a174([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x496a56(){const _0x21a1ad=[_0x23a174([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23a174([0x74,0x72,0x69,0x61,0x6c])][_0x23a174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35db21[_0x23a174([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x460933/0x3e8:0xe10*_0x56fc57;return _0x35db21[_0x23a174([0x65,0x78,0x70])]<_0x21a1ad;}function _0x516102(){const _0x25286b=_0x35db21[_0x23a174([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x25286b&&(!!_0x25286b[_0x23a174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23a174([0x2a]))||!!_0x25286b[_0x23a174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23a174([0x55,0x50,0x4c,0x43])));}function _0x2b92c5(){const _0x2bf96e=_0x35db21[_0x23a174([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2bf96e||0x0==_0x2bf96e[_0x23a174([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x361a37}=new URL(window[_0x23a174([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2bf96e[_0x23a174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x361a37))return!0x0;const _0x2fa073=_0x361a37[_0x23a174([0x73,0x70,0x6c,0x69,0x74])](_0x23a174([0x2e]));return _0x2bf96e[_0x23a174([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58cb90=>_0x58cb90[_0x23a174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23a174([0x2a])))[_0x23a174([0x6d,0x61,0x70])](_0x50b7fd=>_0x50b7fd[_0x23a174([0x73,0x70,0x6c,0x69,0x74])](_0x23a174([0x2e])))[_0x23a174([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59dfe9=>_0x59dfe9[_0x23a174([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2fa073[_0x23a174([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23a174([0x6d,0x61,0x70])](_0x24a369=>Array(_0x2fa073[_0x23a174([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x24a369[_0x23a174([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23a174([0x66,0x69,0x6c,0x6c])](_0x24a369[0x0]===_0x23a174([0x2a])?_0x23a174([0x2a]):'')[_0x23a174([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x24a369))[_0x23a174([0x73,0x6f,0x6d,0x65])](_0x35eeeb=>_0x2fa073[_0x23a174([0x65,0x76,0x65,0x72,0x79])]((_0xd10818,_0x2fd041)=>_0x35eeeb[_0x2fd041]===_0xd10818||_0x35eeeb[_0x2fd041]===_0x23a174([0x2a])));}function _0x29bfcc(){return _0x400a6e&&_0x3cdc72?new window[(_0x23a174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28326,_0x50dd73)=>{_0x400a6e[_0x23a174([0x74,0x68,0x65,0x6e])](_0x28326,_0x50dd73),_0x3cdc72[_0x23a174([0x74,0x68,0x65,0x6e])](_0x405715=>{_0x405715!=_0x23a174([0x56,0x61,0x6c,0x69,0x64])&&_0x28326(_0x405715);},_0x50dd73);}):_0x400a6e||_0x3cdc72||_0x23a174([0x56,0x61,0x6c,0x69,0x64]);}}function _0x32623a(_0x422c14,_0x452020){return new window[(_0x23a174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x271a94=>{if(_0x4d9bd9())return _0x271a94(_0x23a174([0x56,0x61,0x6c,0x69,0x64]));_0x38556e(),_0x429909[_0x23a174([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23a174([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x290d10=!0x1;const _0x5b20fb=_0x41b235();function _0x138e5c(_0xa6390d){return!!_0xa6390d&&(typeof _0xa6390d===_0x23a174([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa6390d===_0x23a174([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa6390d[_0x23a174([0x74,0x68,0x65,0x6e])]===_0x23a174([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa6390d[_0x23a174([0x63,0x61,0x74,0x63,0x68])]===_0x23a174([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x54eda4(_0x2c70d7){_0x19aa18(_0x2c70d7)[_0x23a174([0x74,0x68,0x65,0x6e])](_0x566f73=>{if(!_0x566f73||_0x566f73[_0x23a174([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23a174([0x6f,0x6b]))return _0x23a174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ea6e9(_0xfc69d3(_0x5b20fb+_0x452020))!=_0x566f73[_0x23a174([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23a174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23a174([0x56,0x61,0x6c,0x69,0x64]);})[_0x23a174([0x74,0x68,0x65,0x6e])](_0x1cd3ad=>(_0x1cb52a(),_0x1cd3ad),()=>{const _0x26e83d=_0x2a3834();return null==_0x26e83d?(_0x1cb52a(),_0x23a174([0x56,0x61,0x6c,0x69,0x64])):_0x23a174(_0x460933-_0x26e83d>(0x7753083a^_0x5daff0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23a174([0x74,0x68,0x65,0x6e])](_0x271a94)[_0x23a174([0x63,0x61,0x74,0x63,0x68])](()=>{_0x271a94(_0x23a174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x381533=0x536962ba^_0x5daff0;function _0x1cb52a(){const _0x11e136=_0x23a174([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ea6e9(_0xfc69d3(_0x422c14)),_0x2e516a=_0x469bd9(_0x4ea6e9(window[_0x23a174([0x4d,0x61,0x74,0x68])][_0x23a174([0x63,0x65,0x69,0x6c])](_0x460933/_0x381533)));window[_0x23a174([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23a174([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11e136,_0x2e516a);}function _0x2a3834(){const _0xf342f9=_0x23a174([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ea6e9(_0xfc69d3(_0x422c14)),_0x7af791=window[_0x23a174([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23a174([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf342f9);return _0x7af791?window[_0x23a174([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x469bd9(_0x7af791),0x10)*_0x381533:null;}function _0x19aa18(_0x543856){return new window[(_0x23a174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x65dec8,_0x28f001)=>{_0x543856[_0x23a174([0x74,0x68,0x65,0x6e])](_0x65dec8,_0x28f001),window[_0x23a174([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28f001,0x535e58fa^_0x5daff0);});}}_0x429909[_0x23a174([0x6f,0x6e])](_0x23a174([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1193bc,_0x47a6ff)=>{if(_0x47a6ff[0x0]!=_0x422c14)return _0x271a94(_0x23a174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47a6ff[0x1]={..._0x47a6ff[0x1],[_0x23a174([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b20fb};},{[_0x23a174([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23a174([0x68,0x69,0x67,0x68])}),_0x429909[_0x23a174([0x6f,0x6e])](_0x23a174([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50d02=>{_0x138e5c(_0x50d02[_0x23a174([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x290d10=!0x0,_0x54eda4(_0x50d02[_0x23a174([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23a174([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23a174([0x6c,0x6f,0x77])}),_0x2e11d1[_0x23a174([0x74,0x68,0x65,0x6e])](()=>{_0x290d10||_0x271a94(_0x23a174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d9bd9(){return _0x429909[_0x23a174([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23a174([0x76,0x69,0x65,0x77])][_0x23a174([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23a174([0x61,0x75,0x74,0x6f]);}function _0x38556e(){_0x429909[_0x23a174([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23a174([0x76,0x69,0x65,0x77])][_0x23a174([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23a174([0x61,0x75,0x74,0x6f]);}}function _0x21490c(_0x46e0e7){const _0x2ea62a=[new window[(_0x23a174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf4122a=>setTimeout(_0xf4122a,0x5356b2f6^_0x5daff0)),_0x2e11d1[_0x23a174([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23a174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1534d2=>{let _0x44eae4=0x0;_0x429909[_0x23a174([0x6d,0x6f,0x64,0x65,0x6c])][_0x23a174([0x6f,0x6e])](_0x23a174([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x219d66,_0x1f8000)=>{_0x1f8000[0x0][_0x23a174([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44eae4++,_0x44eae4==(0x535f8dc2^_0x5daff0)&&(_0x1534d2(),_0x219d66[_0x23a174([0x6f,0x66,0x66])]());});}))];return window[_0x23a174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23a174([0x72,0x61,0x63,0x65])](_0x2ea62a)[_0x23a174([0x74,0x68,0x65,0x6e])](()=>_0x46e0e7);}async function _0xe25185(){await _0x2e11d1,_0x429909[_0x23a174([0x6d,0x6f,0x64,0x65,0x6c])][_0x23a174([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4da8ca,_0x429909[_0x23a174([0x6d,0x6f,0x64,0x65,0x6c])][_0x23a174([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4da8ca,_0x429909[_0x23a174([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23a174([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f065d(_0x16516d){const _0xb82b84=_0x186b13();_0x429909[_0xb82b84]=_0x23a174([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x16516d,_0x16516d!=_0x23a174([0x56,0x61,0x6c,0x69,0x64])&&_0xe25185();}function _0x186b13(){const _0x3b189d=window[_0x23a174([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23a174([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23a174([0x6e,0x6f,0x77])]())[_0x23a174([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23a174([0x2e]),'');let _0x4bfeac=_0x23a174([0x68]);for(let _0x5a28e1=0x0;_0x5a28e1<_0x3b189d[_0x23a174([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a28e1+=0x2){let _0x1b6008=window[_0x23a174([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b189d[_0x23a174([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a28e1,_0x5a28e1+0x2));_0x1b6008>=_0x4c04b9[_0x23a174([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b6008-=_0x4c04b9[_0x23a174([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4bfeac+=_0x4c04b9[_0x1b6008];}return _0x4bfeac;}function _0x2dd68d(){const _0xb31156=_0x245fd0[_0x23a174([0x73,0x70,0x6c,0x69,0x74])](_0x23a174([0x2e]));if(0x3!=_0xb31156[_0x23a174([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x204334(_0xb31156[0x1]);function _0x204334(_0x409906){const _0x504fe5=_0xc425c6(_0x409906);return _0x504fe5&&_0x4d4736()?_0x504fe5:null;function _0x4d4736(){const _0x148fa5=_0x504fe5[_0x23a174([0x6a,0x74,0x69])],_0x1b7f61=window[_0x23a174([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x148fa5[_0x23a174([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x148fa5[_0x23a174([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x392c4c={..._0x504fe5,[_0x23a174([0x6a,0x74,0x69])]:_0x148fa5[_0x23a174([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x148fa5[_0x23a174([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x392c4c[_0x23a174([0x76,0x63])],_0xfc69d3(_0x392c4c)==_0x1b7f61;}}}async function _0x4b1067(){let _0x584d68=!0x0;try{const _0x167cd0=_0x245fd0[_0x23a174([0x73,0x70,0x6c,0x69,0x74])](_0x23a174([0x2e])),[_0x88ec45,_0x3fdbe7,_0x380c47]=_0x167cd0;return _0x5d0dc6(_0x88ec45),await _0x5e1500(_0x88ec45,_0x3fdbe7,_0x380c47),_0x584d68;}catch{return!0x1;}function _0x5d0dc6(_0x436712){const _0x4e2c0c=_0xc425c6(_0x436712);_0x4e2c0c&&_0x4e2c0c[_0x23a174([0x61,0x6c,0x67])]==_0x23a174([0x45,0x53,0x32,0x35,0x36])||(_0x584d68=!0x1);}async function _0x5e1500(_0x13cf6f,_0x239d77,_0x3fbb7b){const _0x2f1374=window[_0x23a174([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23a174([0x66,0x72,0x6f,0x6d])](_0x3761c0(_0x3fbb7b),_0x10df4b=>_0x10df4b[_0x23a174([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5265d2=new window[(_0x23a174([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23a174([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13cf6f+_0x23a174([0x2e])+_0x239d77),_0x1037f4=window[_0x23a174([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23a174([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1037f4)return;const _0x39cdec=await _0x1037f4[_0x23a174([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23a174([0x6a,0x77,0x6b]),_0x34639a,{[_0x23a174([0x6e,0x61,0x6d,0x65])]:_0x23a174([0x45,0x43,0x44,0x53,0x41]),[_0x23a174([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23a174([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23a174([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1037f4[_0x23a174([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23a174([0x6e,0x61,0x6d,0x65])]:_0x23a174([0x45,0x43,0x44,0x53,0x41]),[_0x23a174([0x68,0x61,0x73,0x68])]:{[_0x23a174([0x6e,0x61,0x6d,0x65])]:_0x23a174([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39cdec,_0x2f1374,_0x5265d2)||(_0x584d68=!0x1);}}function _0xc425c6(_0x4b2785){return _0x4b2785[_0x23a174([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23a174([0x65,0x79]))?JSON[_0x23a174([0x70,0x61,0x72,0x73,0x65])](_0x3761c0(_0x4b2785)):null;}function _0x3761c0(_0x950412){return window[_0x23a174([0x61,0x74,0x6f,0x62])](_0x950412[_0x23a174([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23a174([0x2b]))[_0x23a174([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23a174([0x2f])));}function _0xfc69d3(_0x3d9cf3){let _0xc59619=0x1505;function _0x2c6c6b(_0x1d86af){for(let _0x561a55=0x0;_0x561a55<_0x1d86af[_0x23a174([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x561a55++){const _0x2bf9f3=_0x1d86af[_0x23a174([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x561a55);_0xc59619=(_0xc59619<<0x5)+_0xc59619+_0x2bf9f3,_0xc59619&=_0xc59619;}}function _0x48789f(_0x4f8884){Array[_0x23a174([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f8884)?_0x4f8884[_0x23a174([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48789f):_0x4f8884&&typeof _0x4f8884==_0x23a174([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23a174([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f8884)[_0x23a174([0x73,0x6f,0x72,0x74])]()[_0x23a174([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xaeaaaf,_0x2ded75])=>{_0x2c6c6b(_0xaeaaaf),_0x48789f(_0x2ded75);}):_0x2c6c6b(window[_0x23a174([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f8884));}return _0x48789f(_0x3d9cf3),_0xc59619>>>0x0;}function _0x4ea6e9(_0x2d5ca1){return _0x2d5ca1[_0x23a174([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23a174([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23a174([0x30]));}function _0x469bd9(_0x5f220b){return _0x5f220b[_0x23a174([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23a174([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23a174([0x6a,0x6f,0x69,0x6e])]('');}function _0x4da8ca(){}function _0x23a174(_0x2843f8){return _0x2843f8['map'](_0x30acdd=>String['fromCharCode'](_0x30acdd))['join']('');}_0x2f065d(await _0xed4dcb());}(this);}['_initSchema'](){const _0x3e6012=this['editor']['model']['schema'];_0x3e6012['isRegistered']('imageBlock')&&_0x3e6012['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3e6012['isRegistered']('imageInline')&&_0x3e6012['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5149c0=this['editor'];_0x5149c0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5149c0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2e78e0=>_0x2e78e0['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x18aa09=_0x5149c0['commands']['get']('replaceImageSource');_0x18aa09&&this['listenTo'](_0x18aa09,'cleanupImage',(_0x465255,[_0x5bfa49,_0x473fe0])=>{_0x5bfa49['removeAttribute']('uploadcareImageId',_0x473fe0);});}['_initConfig'](){const _0x1f4124=this['editor']['config']['get']('uploadcare.uploader')||{},_0x12b86c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4ad8e0(_0x2e7f14['document'],'uc-config',{..._0x1f4124,'pubkey':_0x12b86c,'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']=_0x12d20a=>{if('closeMax'==_0x12d20a)return'#uc-icon-arrow-down';},_0x2e7f14['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4ad8e0(_0x2e7f14['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2e7f14['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x43f93e=this['editor']['commands']['get']('insertImage');_0x43f93e&&this['listenTo'](_0x43f93e,'execute',()=>{const _0x99841e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x99841e&&_0x99841e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x99841e);});});const _0xd4840d=this['editor']['commands']['get']('uploadcareImageReplace');_0xd4840d&&this['listenTo'](_0xd4840d,'execute',()=>{const _0x4cbf6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4cbf6&&_0x4cbf6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4cbf6);});});}}class tt extends _0x274052{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1836bc){super(_0x1836bc),_0x1836bc['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1104c8['defineComponents'](_0x1104c8),this['_defineLocale']();}['_defineLocale'](){const _0x910045=this['editor']['config']['get']('uploadcare.locale'),_0x19f8e0=this['editor']['locale']['contentLanguage'];_0x910045&&_0x1104c8['defineLocale'](_0x19f8e0,_0x910045);}}class ii extends _0x1b33af{constructor(_0x3973ce){super(_0x3973ce);const t=_0x3973ce['t'],_0x119d96=this['bindTemplate'],_0x27b023=new _0x1af710();_0x27b023['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':[_0x27b023,{'text':_0x119d96['to']('imageUploadProgress',_0x36d1f2=>t('Loading\x20image...')+'\x20('+(_0x36d1f2||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 _0x1b33af{constructor(_0x3acd84){super(_0x3acd84);const t=_0x3acd84['t'];this['set']('errorType',null);const _0x24aa45=new _0x6266cf(_0x3acd84);_0x24aa45['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x24aa45['withText']=!0x0,_0x24aa45['class']='ck-button-action',_0x24aa45['on']('execute',()=>{this['fire']('retry');}),_0x24aa45['bind']('isVisible')['to'](this,'errorType',_0x353a6f=>'NotFound'!==_0x353a6f);const _0x4fcff3=new _0x5c1133();_0x4fcff3['content']=_0x17946b,_0x4fcff3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4e36ff=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':[_0x4fcff3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4e36ff['to']('errorType',_0x4c6d82=>t('NotFound'!==_0x4c6d82?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x24aa45]},{'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 _0x1b33af{constructor(_0x330f44,_0x109457){super(_0x330f44);const _0x13412d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x109457,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x13412d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4eb1d8,_0x57a1da,_0x28e1d2){super(_0x4eb1d8),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4eb1d8),this['_errorView']=new ti(_0x4eb1d8),this['_editingView']=new ei(_0x4eb1d8,_0x28e1d2),this['_focusableView']=new _0x1b33af(_0x4eb1d8),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x57a1da),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'],_0x56d63f=>{this['_addUploadcareImageEditorListeners'](_0x56d63f);});}),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'](_0xa036c6,_0x1004d7){const _0x2580e4='uc-cloud-image-editor',_0x303aa9=_0xa036c6['querySelector'](_0x2580e4);if(_0x303aa9)return _0x1004d7(_0x303aa9);const _0xff383e=new MutationObserver(_0x2244b4=>{const _0x48ce57=_0x2244b4['filter'](_0x15ce68=>_0x15ce68['target']===_0xa036c6&&_0x15ce68['addedNodes']['length']>0x0&&_0x15ce68['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2580e4);_0x48ce57['length']&&(_0xff383e['disconnect'](),_0x1004d7(_0x48ce57[0x0]['addedNodes'][0x0]));});_0xff383e['observe'](_0xa036c6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5e6623){_0x5e6623['addEventListener']('apply',_0x4d8608=>{this['fire']('apply',{'imageSrc':_0x4d8608['detail']['cdnUrl']});}),_0x5e6623['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x23a128(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3b6863,_0x24dddc,_0x921d37){super(),this['_editor']=_0x3b6863,this['_dialog']=_0x24dddc,this['_imageElement']=_0x921d37,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 _0x12cb30=this['_imageElement'],_0x10cddc=_0x12cb30['getAttribute']('uploadcareImageId'),_0x464b16=_0x12cb30['getAttribute']('src');if(_0x10cddc)await this['_loadImageInfo'](_0x10cddc,_0x464b16);else{if(this['_imageCache']['has'](_0x464b16)){const _0x5bfa8e=this['_imageCache']['get'](_0x464b16);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5bfa8e['url'],this['imageDimension']=_0x5bfa8e['dimension'],this['imageId']=_0x5bfa8e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x32cf29}=this['_editor'],t=_0x32cf29['t'],_0x539931=new X(_0x32cf29,this['imageStatus'],this['_attributes']);_0x539931['bind']('status')['to'](this,'imageStatus'),_0x539931['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x539931['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x539931['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x539931,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xf2266e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x539931,'position':_0x199967['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x539931['focus']();},'onHide':()=>{_0x539931['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4e2432=>!A(_0x4e2432,_0x539931['element'])}});}['_loadImageInfo'](_0x30334b,_0x4f8134){return j['getInfo'](_0x30334b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x57c38f=>{const {width:_0x45eadc,height:_0x360c91}=_0x57c38f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f8134,this['imageDimension']={'width':_0x45eadc,'height':_0x360c91},this['imageId']=_0x30334b;})['catch'](_0x300517=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x300517['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xbe5cca,_0x5778fc){return this['_getImageAsFile'](_0xbe5cca)['then'](_0x46e00a=>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':_0x5778fc['signal'],'file':_0x46e00a,'onProgress':_0x5eafca=>{_0x5eafca&&_0x5eafca['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5eafca['value']));}}))['then'](_0x2172cc=>{const {width:_0x4a58ca,height:_0x92888f}=_0x2172cc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2172cc['cdnUrl'],this['imageDimension']={'width':_0x4a58ca,'height':_0x92888f},this['imageId']=_0x2172cc['uuid'],this['imageUploadProgress']=null;const _0x3e218d=_0xbe5cca['getAttribute']('src');this['_imageCache']['set'](_0x3e218d,{'id':_0x2172cc['uuid'],'url':_0x2172cc['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2bfc6d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2bfc6d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x229620,_0x3b7a62){_0x229620['on']('apply',(_0x4751c3,_0x701f33)=>{this['_replaceImage'](_0x3b7a62,_0x701f33['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x229620['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x229620['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2b461f,_0x4e72b3,_0x1ebed7){const _0x17b0c1=this['_editor'],{width:_0xdbef62,height:_0x4872dd}=S(_0x4e72b3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3df644,imageSources:_0x1b61fd}=C(_0x4e72b3,_0xdbef62);_0x17b0c1['model']['change'](_0x49a145=>{if('$graveyard'===_0x2b461f['root']['rootName']){_0x17b0c1['execute']('insertImage',{'imageType':_0x2b461f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2b461f['getAttributes']()),'uploadcareImageId':_0x1ebed7,'src':_0x3df644,'sources':_0x1b61fd,'width':_0xdbef62,'height':_0x4872dd}});const _0x42af35=_0x2b461f['getChildren']();_0x2b461f=_0x17b0c1['model']['document']['selection']['getSelectedElement']();for(const _0x302735 of _0x42af35)_0x49a145['append'](_0x49a145['cloneElement'](_0x302735),_0x2b461f);}else _0x49a145['setSelection'](_0x2b461f,'on'),_0x17b0c1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2b461f['getAttributes']()),'uploadcareImageId':_0x1ebed7,'src':_0x3df644,'sources':_0x1b61fd,'width':_0xdbef62,'height':_0x4872dd},_0x2b461f);_0x49a145['setSelection'](_0x2b461f,'on');});}async['_getImageAsFile'](_0x4d4d0a){const _0x338186=_0x2e7f14['window'],_0x233cd6=_0x2e7f14['document']['location']['href'],_0x2f957d=new _0x338186['URL'](_0x4d4d0a['getAttribute']('src'),_0x233cd6);if('data:'===_0x2f957d['protocol']){const _0x1dd1bb=_0x2f957d['href']['split'](','),_0x465a75=_0x1dd1bb[0x0]['match'](/:(.*?);/)[0x1],_0x179f09=_0x465a75['split']('/')[0x1],_0x473f44=_0x338186['atob'](_0x1dd1bb[_0x1dd1bb['length']-0x1]);let _0x3fb474=_0x473f44['length'];const _0xbb43e=new _0x338186['Uint8Array'](_0x3fb474);for(;_0x3fb474--;)_0xbb43e[_0x3fb474]=_0x473f44['charCodeAt'](_0x3fb474);return new _0x338186['File']([_0xbb43e],'image.'+_0x179f09,{'type':_0x465a75});}const _0x7614b=_0x2f957d['href']['split']('/'),_0x265fb8=_0x7614b[_0x7614b['length']-0x1],_0x572bd5=_0x265fb8['split']('.')[0x1];return _0x338186['fetch'](_0x2f957d['href'])['then'](_0x533d8a=>_0x533d8a['clone']()['blob']())['then'](_0x3c93ad=>new _0x338186['File']([_0x3c93ad],_0x265fb8,{'type':'image/'+_0x572bd5}));}}class O extends _0x3cebad{['imageEditController'];static get['requires'](){return[_0x578d9f];}['_isEditable'];constructor(_0x5ec3c1){super(_0x5ec3c1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x448887){const _0x4bda83=G(_0x448887);return _0x2b11c1=>!(!_0x2b11c1||!_0x2b11c1['is']('element','imageBlock')&&!_0x2b11c1['is']('element','imageInline'))&&(!!_0x2b11c1['hasAttribute']('uploadcareImageId')||!!_0x2b11c1['hasAttribute']('src')&&_0x4bda83(_0x2b11c1['getAttribute']('src')));}(_0x5ec3c1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x54171a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x54171a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xedb0d0=this['editor']['model']['document']['selection']['getSelectedElement']();_0xedb0d0&&(_0xedb0d0['is']('element','imageBlock')||_0xedb0d0['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x578d9f),_0xedb0d0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3cebad{['refresh'](){const _0x3e5981=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3e5981&&(_0x3e5981['is']('element','imageBlock')||_0x3e5981['is']('element','imageInline')));}['execute'](_0x5b500c){const _0x68e833=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1d16ea=>{_0x1d16ea['setAttributes'](_0x5b500c,_0x68e833),_0x1d16ea['removeAttribute']('srcset',_0x68e833),_0x1d16ea['removeAttribute']('sizes',_0x68e833);});}}class m extends _0x274052{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3b5940,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x471a98}=this;_0x471a98['commands']['add']('uploadcareImageEdit',new O(_0x471a98)),_0x471a98['commands']['add']('uploadcareImageReplace',new R(_0x471a98));}}class g extends _0x274052{['_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 _0x3a94a1=this['editor'];_0x3a94a1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2f47c5=>{const _0x35db19=_0x3a94a1['commands']['get']('uploadcareImageEdit'),_0x364e52=new _0x6266cf(_0x2f47c5),t=_0x2f47c5['t'];return _0x364e52['set']({'icon':_0xf2266e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x364e52['bind']('isEnabled')['to'](_0x35db19),_0x364e52['bind']('isOn')['to'](_0x35db19,'isActive'),this['listenTo'](_0x364e52,'execute',()=>{_0x3a94a1['execute']('uploadcareImageEdit'),_0x3a94a1['editing']['view']['focus']();}),_0x364e52;}),this['_initConfig']();}['_initConfig'](){const _0xc8b0fa=_0x4ad8e0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xc8b0fa),this['listenTo'](this['editor'],'destroy',()=>{_0xc8b0fa['remove']();});}}class et extends _0x274052{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':_0x5c01da=>0x1!=_0x5c01da}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5a2bad=>{const {af:{dictionary:_0x4a9b04,getPluralForm:_0x8495ab}}={'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':_0x1e5efb=>0x1!=_0x1e5efb}};_0x5a2bad['af']||={'dictionary':{},'getPluralForm':null},_0x5a2bad['af']['dictionary']=Object['assign'](_0x5a2bad['af']['dictionary'],_0x4a9b04),_0x5a2bad['af']['getPluralForm']=_0x8495ab;})(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':_0x443971=>0x0==_0x443971?0x0:0x1==_0x443971?0x1:0x2==_0x443971?0x2:_0x443971%0x64>=0x3&&_0x443971%0x64<=0xa?0x3:_0x443971%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x89de4e=>{const {ar:{dictionary:_0x1b9559,getPluralForm:_0x40bbeb}}={'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':_0x2dfec1=>0x0==_0x2dfec1?0x0:0x1==_0x2dfec1?0x1:0x2==_0x2dfec1?0x2:_0x2dfec1%0x64>=0x3&&_0x2dfec1%0x64<=0xa?0x3:_0x2dfec1%0x64>=0xb?0x4:0x5}};_0x89de4e['ar']||={'dictionary':{},'getPluralForm':null},_0x89de4e['ar']['dictionary']=Object['assign'](_0x89de4e['ar']['dictionary'],_0x1b9559),_0x89de4e['ar']['getPluralForm']=_0x40bbeb;})(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':_0x2b8002=>0x1!=_0x2b8002}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x209d32=>{const {ast:{dictionary:_0x3ee090,getPluralForm:_0x3043e6}}={'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':_0x10b6fe=>0x1!=_0x10b6fe}};_0x209d32['ast']||={'dictionary':{},'getPluralForm':null},_0x209d32['ast']['dictionary']=Object['assign'](_0x209d32['ast']['dictionary'],_0x3ee090),_0x209d32['ast']['getPluralForm']=_0x3043e6;})(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':_0x6e1667=>0x1!=_0x6e1667}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3b816c=>{const {az:{dictionary:_0x274ace,getPluralForm:_0x496e42}}={'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':_0x1dd22d=>0x1!=_0x1dd22d}};_0x3b816c['az']||={'dictionary':{},'getPluralForm':null},_0x3b816c['az']['dictionary']=Object['assign'](_0x3b816c['az']['dictionary'],_0x274ace),_0x3b816c['az']['getPluralForm']=_0x496e42;})(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':_0x5566c4=>_0x5566c4%0xa==0x1&&_0x5566c4%0x64!=0xb?0x0:_0x5566c4%0xa>=0x2&&_0x5566c4%0xa<=0x4&&(_0x5566c4%0x64<0xa||_0x5566c4%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x26cad1=>{const {be:{dictionary:_0x3c2f3f,getPluralForm:_0xb782}}={'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':_0x4a0f7e=>_0x4a0f7e%0xa==0x1&&_0x4a0f7e%0x64!=0xb?0x0:_0x4a0f7e%0xa>=0x2&&_0x4a0f7e%0xa<=0x4&&(_0x4a0f7e%0x64<0xa||_0x4a0f7e%0x64>=0x14)?0x1:0x2}};_0x26cad1['be']||={'dictionary':{},'getPluralForm':null},_0x26cad1['be']['dictionary']=Object['assign'](_0x26cad1['be']['dictionary'],_0x3c2f3f),_0x26cad1['be']['getPluralForm']=_0xb782;})(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':_0x3f35e7=>0x1!=_0x3f35e7}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3ddf2d=>{const {bg:{dictionary:_0xe3ede3,getPluralForm:_0x58f7f4}}={'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':_0x180cd8=>0x1!=_0x180cd8}};_0x3ddf2d['bg']||={'dictionary':{},'getPluralForm':null},_0x3ddf2d['bg']['dictionary']=Object['assign'](_0x3ddf2d['bg']['dictionary'],_0xe3ede3),_0x3ddf2d['bg']['getPluralForm']=_0x58f7f4;})(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':_0x36fc49=>0x1!=_0x36fc49}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x350888=>{const {bn:{dictionary:_0x157618,getPluralForm:_0x37e214}}={'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':_0x29fb68=>0x1!=_0x29fb68}};_0x350888['bn']||={'dictionary':{},'getPluralForm':null},_0x350888['bn']['dictionary']=Object['assign'](_0x350888['bn']['dictionary'],_0x157618),_0x350888['bn']['getPluralForm']=_0x37e214;})(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':_0x1f4928=>_0x1f4928%0xa==0x1&&_0x1f4928%0x64!=0xb?0x0:_0x1f4928%0xa>=0x2&&_0x1f4928%0xa<=0x4&&(_0x1f4928%0x64<0xa||_0x1f4928%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x53b153=>{const {bs:{dictionary:_0x236250,getPluralForm:_0x4dbcb3}}={'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':_0x104249=>_0x104249%0xa==0x1&&_0x104249%0x64!=0xb?0x0:_0x104249%0xa>=0x2&&_0x104249%0xa<=0x4&&(_0x104249%0x64<0xa||_0x104249%0x64>=0x14)?0x1:0x2}};_0x53b153['bs']||={'dictionary':{},'getPluralForm':null},_0x53b153['bs']['dictionary']=Object['assign'](_0x53b153['bs']['dictionary'],_0x236250),_0x53b153['bs']['getPluralForm']=_0x4dbcb3;})(window['CKEDITOR_TRANSLATIONS']||={});
|