@ckeditor/ckeditor5-uploadcare 47.3.0-alpha.4 → 47.3.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x18110a,Command as _0x3c77fd}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x592dfa,IconGooglePhotos as _0x2db7bc,IconGoogleDrive as _0x338da4,IconFacebook as _0x2c9bdb,IconDropbox as _0xc0e14d,IconUploadcareLink as _0x514b7a,IconUploadcareImageUpload as _0x1b462d,IconError as _0x3c9387,IconUploadcareImageEdit as _0x5abb25}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x19cf23,MenuBarMenuListItemButtonView as _0xb4dac4,View as _0x242f3a,FocusCycler as _0x34d88b,Dialog as _0x376964,DialogViewPosition as _0x5ebf6b,SpinnerView as _0x41b901,IconView as _0x3b1020,Notification as _0x3e7bce}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x139c13,DomEmitterMixin as _0x5aa97e,global as _0x2ec278,getAncestors as _0x55d019,ObservableMixin as _0x4572f5,uid as _0x3a9229,createElement as _0x33465e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xe957f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x556e2c,info as _0x52d514}from'@uploadcare/upload-client';import*as _0x2a07b6 from'@uploadcare/file-uploader';var i=function(_0x363e33){return _0x363e33['Local']='local',_0x363e33['URL']='url',_0x363e33['Dropbox']='dropbox',_0x363e33['GDrive']='gdrive',_0x363e33['Facebook']='facebook',_0x363e33['GPhotos']='gphotos',_0x363e33['OneDrive']='onedrive',_0x363e33;}({});function _(_0x331d8d,_0x3012e,_0x5dd017){const t=_0x331d8d['t'],_0x4093de=_0x331d8d['t'];switch(_0x3012e){case i['Local']:return{'text':_0x4093de('Insert'===_0x5dd017?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4093de('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5dd017?_0x4093de('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4093de('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3012e;}}class e extends _0x18110a{['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 _0x2d82e5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x157a95;for(const _0x343873 in _0x2d82e5){const _0x594265=_0x343873,_0x49a93f=_0x2d82e5[_0x594265];if('uploadcareLicenseKeyValid'==_0x49a93f||'uploadcareLicenseKeyInvalid'==_0x49a93f||'uploadcareLicenseKeyExpired'==_0x49a93f||'uploadcareLicenseKeyDomainLimit'==_0x49a93f||'uploadcareLicenseKeyNotAllowed'==_0x49a93f||'uploadcareLicenseKeyEvaluationLimit'==_0x49a93f||'uploadcareLicenseKeyTrialLimit'==_0x49a93f||'uploadcareLicenseKeyUsageLimit'==_0x49a93f){delete _0x2d82e5[_0x594265],_0x157a95=_0x49a93f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x157a95&&_0x2d82e5['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x157a95&&_0x2d82e5['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x157a95&&_0x2d82e5['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x157a95&&_0x2d82e5['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x157a95&&_0x2d82e5['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x157a95&&_0x2d82e5['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x157a95&&_0x2d82e5['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x255d68}=this,_0x3a3d60=_0x255d68['commands']['get']('uploadcare');if(!_0x3a3d60)return;const _0x24054d=this['_normalizeConfigSourceList'](_0x255d68['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4f39e,_0x63f5f9)=>{const _0x35d825=this['_getIntegrationKey'](_0x63f5f9['type']);return _0x4f39e[_0x35d825]||(_0x4f39e[_0x35d825]=[]),_0x4f39e[_0x35d825]['push'](_0x63f5f9),_0x4f39e;},{});_0x255d68['plugins']['has']('ImageInsertUI')&&_0x255d68['commands']['get']('uploadcare')&&Object['entries'](_0x24054d)['forEach'](([_0x5f8edd,_0x5b5b5a])=>{_0x255d68['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5f8edd,'observable':()=>_0x3a3d60,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5b5b5a),'formViewCreator':()=>this['_createDropdownButtons'](_0x5b5b5a),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5b5b5a),'override':'assetManager'!==_0x5f8edd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x419046){const {locale:_0x2147e0}=this['editor'];return _0x419046['map'](_0x57d04b=>{const _0x2d182e=_(_0x2147e0,_0x57d04b,'Insert');switch(_0x57d04b){case i['Local']:return{'icon':_0x1b462d,'type':i['Local'],..._0x2d182e};case i['URL']:return{'icon':_0x514b7a,'type':i['URL'],..._0x2d182e};case i['Dropbox']:return{'icon':_0xc0e14d,'type':i['Dropbox'],..._0x2d182e};case i['Facebook']:return{'icon':_0x2c9bdb,'type':i['Facebook'],..._0x2d182e};case i['GDrive']:return{'icon':_0x338da4,'type':i['GDrive'],..._0x2d182e};case i['GPhotos']:return{'icon':_0x2db7bc,'type':i['GPhotos'],..._0x2d182e};case i['OneDrive']:return{'icon':_0x592dfa,'type':i['OneDrive'],..._0x2d182e};}});}['_getIntegrationKey'](_0x2ac827){switch(_0x2ac827){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x471de1,_0x4ca5a9){const _0x1ceb35=this['editor'],_0x3e9aa5=new _0x471de1(_0x1ceb35['locale']),_0x31e352=_0x1ceb35['commands']['get']('uploadcare');return _0x3e9aa5['bind']('isEnabled')['to'](_0x31e352),_0x3e9aa5['on']('execute',()=>{_0x31e352['execute'](_0x4ca5a9);}),_0x3e9aa5;}['_createToolbarButton'](_0x319496){const {locale:_0x27b363}=this['editor'],_0xfb19a0=this['editor']['plugins']['get']('ImageInsertUI'),_0x4ce24c=_0x319496[0x0],_0x288b92=this['_createButton'](_0x19cf23,_0x4ce24c['type']);return _0x288b92['icon']=_0x4ce24c['icon'],_0x288b92['bind']('label')['to'](_0xfb19a0,'isImageSelected',_0x8ae378=>_(_0x27b363,_0x4ce24c['type'],_0x8ae378?'Replace':'Insert')['text']),_0x288b92['tooltip']=!0x0,_0x288b92;}['_createDropdownButtons'](_0xfcbd53){const {locale:_0x4c32c3}=this['editor'],_0x2c24fe=this['editor']['plugins']['get']('ImageInsertUI');return _0xfcbd53['map'](_0x36fa86=>{const _0xa37852=this['_createButton'](_0x19cf23,_0x36fa86['type']);return _0xa37852['withText']=!0x0,_0xa37852['icon']=_0x36fa86['icon'],_0xa37852['bind']('label')['to'](_0x2c24fe,'isImageSelected',_0xc6a5d0=>_(_0x4c32c3,_0x36fa86['type'],_0xc6a5d0?'Replace':'Insert')['text']),_0xa37852;});}['_createMenuBarButtons'](_0xe03e28){return _0xe03e28['map'](_0x27a85b=>{const _0x2006fe=this['_createButton'](_0xb4dac4,_0x27a85b['type']);return _0x2006fe['icon']=_0x27a85b['icon'],_0x2006fe['label']=_0x27a85b['shortText'],_0x2006fe;});}}class W extends _0x242f3a{['focusTracker'];['focusCycler'];constructor(_0xff8b1f){super(_0xff8b1f),this['focusTracker']=new _0x139c13(),this['focusCycler']=new _0x34d88b({'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 R extends W{constructor(_0xd6a62f,_0x18d8dd){super(_0xd6a62f),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-'+_0x18d8dd}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x14569d,_0x34b937){const _0x19aaf3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x22abec=>_0x22abec<=_0x34b937)['map'](_0x27fcfa=>_0x14569d['replace'](/\/$/,'')+'/-/resize/'+_0x27fcfa+'x/\x20'+_0x27fcfa+'w');return{'imageFallbackUrl':_0x14569d,'imageSources':[{'srcset':_0x19aaf3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x34b937+'px)\x20100vw,\x20'+_0x34b937+'px','type':'image/webp'}]};}function V(_0x440c2f,_0x5eb7b3,_0x4aaeec){const _0x424d9a=_0x440c2f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x424d9a?parseInt(_0x424d9a[0x1],0xa):_0x5eb7b3,'height':_0x424d9a?parseInt(_0x424d9a[0x2],0xa):_0x4aaeec};}function p(_0x4ebe22,_0x14a0a8){const _0x3925b7=new(_0x5aa97e())(),_0x5313de=_0x4ebe22['plugins']['get']('ImageUtils'),_0x555526=_0x4ebe22['editing']['mapper']['toViewElement'](_0x14a0a8),_0x45d060=_0x5313de['findViewImgElement'](_0x555526),_0x42ceec=_0x4ebe22['editing']['view']['domConverter']['viewToDom'](_0x45d060),_0x5c01e2=_0x14a0a8['getAttribute']('width'),_0x1f2d5a=_0x14a0a8['getAttribute']('height'),_0x353d32='image-processing';_0x4ebe22['editing']['view']['change'](_0x472469=>{_0x472469['addClass'](_0x353d32,_0x555526),_0x472469['setStyle']('aspect-ratio',_0x5c01e2+'/'+_0x1f2d5a,_0x45d060);}),_0x3925b7['listenTo'](_0x42ceec,'load',()=>{_0x3925b7['stopListening'](_0x42ceec,'load'),_0x4ebe22['editing']['view']['change'](_0x13c109=>{_0x13c109['removeClass'](_0x353d32,_0x555526),_0x13c109['removeStyle']('aspect-ratio',_0x45d060);});});}function z(_0x2a38b0){if(Array['isArray'](_0x2a38b0)){const _0x5528ac=_0x2a38b0['map'](z);return _0x1bf106=>_0x5528ac['some'](_0x953293=>_0x953293(_0x1bf106));}if('origin'==_0x2a38b0){const _0xb27315=_0x2ec278['window']['location']['origin'];return _0x5c9cf0=>new URL(_0x5c9cf0,_0x2ec278['document']['baseURI'])['origin']==_0xb27315;}return'function'==typeof _0x2a38b0?_0x2a38b0:_0x2a38b0 instanceof RegExp?_0x2ace3a=>!(!_0x2ace3a['match'](_0x2a38b0)&&!_0x2ace3a['replace'](/^https?:\/\//,'')['match'](_0x2a38b0)):()=>!0x1;}function Q(_0xd4780d,_0x4f549f){return _0x55d019(_0xd4780d['target'])['includes'](_0x4f549f);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4572f5(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1f2b1c,_0x566937,_0x59ea72){super(),this['_editor']=_0x1f2b1c,this['_editing']=_0x566937,this['_dialog']=_0x1f2b1c['plugins']['get'](_0x376964),this['_api']=_0x566937['ctxElement']['getAPI'](),this['_type']=_0x59ea72,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:_0x14d9b5,model:_0x3c57ff}=this['_editor'],_0x541c7e=_0x3c57ff['document']['selection']['getSelectedElement'](),_0x248fc3=_0x541c7e&&(_0x541c7e['is']('element','imageBlock')||_0x541c7e['is']('element','imageInline'));this['_formView']=new R(_0x14d9b5,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1b462d,'title':_(_0x14d9b5,this['_type'],_0x248fc3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5ebf6b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4101bb=>!Q(_0x4101bb,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x313bbf}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3a6a5b=>{const _0x3887b3=_0x313bbf['length'];for(const _0x3e07ad of _0x313bbf){const _0x2f47e0=_0x3e07ad===_0x313bbf[_0x3887b3-0x1],{cdnUrl:_0x206190,fileInfo:_0x3d8c25}=_0x3e07ad;if(!_0x206190||!_0x3d8c25)continue;const {width:_0x8922ab,height:_0x2fd61f}=_0x3d8c25['imageInfo'],_0x2685d5=V(_0x206190,_0x8922ab,_0x2fd61f),_0x17141a=C(_0x206190,_0x2685d5['width']),_0x1c48d1={'id':_0x3d8c25['uuid'],'type':'image','attributes':{'imageDimension':_0x2685d5,..._0x17141a}};this['_insertAsset'](_0x1c48d1,_0x2f47e0,_0x3a6a5b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x37a93c=>{'idle'===_0x37a93c['detail']['status']&&!_0x37a93c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x16b6cb,_0x5203f8,_0x378bc8){const _0x244771=this['_editor']['model']['document']['selection'],_0xf3377d=_0x244771['getSelectedElement'](),_0x2ec52d=!(!_0xf3377d||!_0xf3377d['is']('element','imageInline'));_0x378bc8['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x16b6cb,_0x2ec52d),_0x5203f8||_0x378bc8['setSelection'](_0x244771['getLastPosition']());}['_insertImage'](_0x53c8f4,_0x27ee48){const _0x16c63f=this['_editor'],{imageDimension:_0x48cd84,imageFallbackUrl:_0x3129ca,imageSources:_0x9ee65f}=_0x53c8f4['attributes'];_0x16c63f['execute']('insertImage',{'imageType':_0x27ee48?'imageInline':null,'source':{'uploadcareImageId':_0x53c8f4['id'],'src':_0x3129ca,'sources':_0x9ee65f,..._0x48cd84}});}}class w extends _0x3c77fd{['_editing'];['_controller']=null;static get['requires'](){return[_0x376964,o];}constructor(_0x33b048){super(_0x33b048),this['_editing']=_0x33b048['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x56135b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x56135b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xd80bee,..._0x53577d}){return _0x556e2c(_0xd80bee,_0x53577d);}static['getInfo'](_0x1c1206,_0x27675b){return _0x52d514(_0x1c1206,_0x27675b);}}class f extends _0x18110a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xe957f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f2ec4=this['editor'];if(!!!_0x1f2ec4['config']['get']('uploadcare'))return;_0x1f2ec4['plugins']['get'](_0xe957f)['createUploadAdapter']=_0x28d0e4=>new k(_0x28d0e4,_0x1f2ec4),_0x1f2ec4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2a22f4,{imageElement:_0x187f19,data:_0xd40363})=>{_0x1f2ec4['model']['change'](_0x12c443=>{_0x12c443['setAttribute']('uploadcareImageId',_0xd40363['uploadcareImageId'],_0x187f19);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3947d3,_0x24ef77){this['loader']=_0x3947d3,this['editor']=_0x24ef77,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4167fd=await this['loader']['file'];return j['upload']({'file':_0x4167fd,'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':_0x215b85=>{_0x215b85&&_0x215b85['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x215b85['value']);}})['then'](async _0x39d978=>{const {imageFallbackUrl:_0x4ca414,imageSources:_0x142615}=C(_0x39d978['cdnUrl'],_0x39d978['imageInfo']['width']);return{'uploadcareImageId':_0x39d978['uuid'],'default':_0x4ca414,'sources':_0x142615};})['catch'](()=>{const _0x119254=t('Cannot\x20upload\x20file:')+('\x20'+_0x4167fd['name']+'.');return Promise['reject'](_0x119254);});}['abort'](){this['controller']['abort']();}}class o extends _0x18110a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x376964];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x417631){super(_0x417631),this['ucContextId']=_0x3a9229();}['init'](){const _0x1b74a8=this['editor'];_0x1b74a8['commands']['add']('uploadcare',new w(_0x1b74a8));}['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 _0x5cd4ca=_0x2ec278['document']['querySelector']('input[uploadcare-file-input]');_0x5cd4ca&&_0x5cd4ca['remove']();}),async function(_0x36c4d7){const _0x5185ae=_0x5520f0([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]),_0x472525=0x535f8c3a,_0x4b4fd5=0x5358f6aa^_0x472525,_0x52f8d4=window[_0x5520f0([0x44,0x61,0x74,0x65])][_0x5520f0([0x6e,0x6f,0x77])](),_0x1332df=_0x36c4d7[_0x5520f0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2faf29=new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5787a1=>{_0x1332df[_0x5520f0([0x6f,0x6e,0x63,0x65])](_0x5520f0([0x72,0x65,0x61,0x64,0x79]),_0x5787a1);}),_0x3eb84c={[_0x5520f0([0x6b,0x74,0x79])]:_0x5520f0([0x45,0x43]),[_0x5520f0([0x75,0x73,0x65])]:_0x5520f0([0x73,0x69,0x67]),[_0x5520f0([0x63,0x72,0x76])]:_0x5520f0([0x50,0x2d,0x32,0x35,0x36]),[_0x5520f0([0x78])]:_0x5520f0([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]),[_0x5520f0([0x79])]:_0x5520f0([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]),[_0x5520f0([0x61,0x6c,0x67])]:_0x5520f0([0x45,0x53,0x32,0x35,0x36])},_0x380515=_0x1332df[_0x5520f0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5520f0([0x67,0x65,0x74])](_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4886cc(){let _0x583ab7,_0x59b5d5=null,_0x1723bf=null;try{if(_0x380515==_0x5520f0([0x47,0x50,0x4c]))return _0x5520f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x583ab7=_0x29b9e1(),!_0x583ab7)return _0x5520f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x583ab7[_0x5520f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1723bf=_0x5f38b1(_0x583ab7[_0x5520f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x583ab7[_0x5520f0([0x6a,0x74,0x69])])),await _0x2532fc()?_0x31d88c()?_0x1d72f4()?_0x5520f0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48b384()?(_0x583ab7[_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5520f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59b5d5=_0x37ec75(_0x5520f0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x583ab7[_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5520f0([0x74,0x72,0x69,0x61,0x6c])&&(_0x59b5d5=_0x37ec75(_0x5520f0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c36f6()):_0x5520f0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5520f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5520f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5520f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d72f4(){const _0x229a11=[_0x5520f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5520f0([0x74,0x72,0x69,0x61,0x6c])][_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x583ab7[_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52f8d4/0x3e8:0xe10*_0x4b4fd5;return _0x583ab7[_0x5520f0([0x65,0x78,0x70])]<_0x229a11;}function _0x31d88c(){const _0x99203a=_0x583ab7[_0x5520f0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x99203a&&(!!_0x99203a[_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5520f0([0x2a]))||!!_0x99203a[_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5520f0([0x55,0x50,0x4c,0x43])));}function _0x48b384(){const _0x53c8c7=_0x583ab7[_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53c8c7||0x0==_0x53c8c7[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x48c329}=new URL(window[_0x5520f0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53c8c7[_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48c329))return!0x0;const _0x28bc15=_0x48c329[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])](_0x5520f0([0x2e]));return _0x53c8c7[_0x5520f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x375d88=>_0x375d88[_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5520f0([0x2a])))[_0x5520f0([0x6d,0x61,0x70])](_0x27a189=>_0x27a189[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])](_0x5520f0([0x2e])))[_0x5520f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x560c31=>_0x560c31[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28bc15[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5520f0([0x6d,0x61,0x70])](_0x30908b=>Array(_0x28bc15[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30908b[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5520f0([0x66,0x69,0x6c,0x6c])](_0x30908b[0x0]===_0x5520f0([0x2a])?_0x5520f0([0x2a]):'')[_0x5520f0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30908b))[_0x5520f0([0x73,0x6f,0x6d,0x65])](_0x13aab0=>_0x28bc15[_0x5520f0([0x65,0x76,0x65,0x72,0x79])]((_0x1a5b6b,_0x7df5b3)=>_0x13aab0[_0x7df5b3]===_0x1a5b6b||_0x13aab0[_0x7df5b3]===_0x5520f0([0x2a])));}function _0x2c36f6(){return _0x59b5d5&&_0x1723bf?new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8ed898,_0x85be78)=>{_0x59b5d5[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x8ed898,_0x85be78),_0x1723bf[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x49b2ea=>{_0x49b2ea!=_0x5520f0([0x56,0x61,0x6c,0x69,0x64])&&_0x8ed898(_0x49b2ea);},_0x85be78);}):_0x59b5d5||_0x1723bf||_0x5520f0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5f38b1(_0x31b49a,_0x5a4ed4){return new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d5540=>{if(_0xdfbc96())return _0x1d5540(_0x5520f0([0x56,0x61,0x6c,0x69,0x64]));_0x29090a(),_0x1332df[_0x5520f0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5520f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b38e1=!0x1;const _0x54f066=_0x3a9229();function _0x4a1cbf(_0x1d76f0){return!!_0x1d76f0&&(typeof _0x1d76f0===_0x5520f0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d76f0===_0x5520f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d76f0[_0x5520f0([0x74,0x68,0x65,0x6e])]===_0x5520f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d76f0[_0x5520f0([0x63,0x61,0x74,0x63,0x68])]===_0x5520f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2121af(_0x572b6f){_0xa5bd05(_0x572b6f)[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x1ba972=>{if(!_0x1ba972||_0x1ba972[_0x5520f0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5520f0([0x6f,0x6b]))return _0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d95ad(_0x343dad(_0x54f066+_0x5a4ed4))!=_0x1ba972[_0x5520f0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5520f0([0x56,0x61,0x6c,0x69,0x64]);})[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x3fba2e=>(_0x118f0d(),_0x3fba2e),()=>{const _0xaab422=_0x42326b();return null==_0xaab422?(_0x118f0d(),_0x5520f0([0x56,0x61,0x6c,0x69,0x64])):_0x5520f0(_0x52f8d4-_0xaab422>(0x7753083a^_0x472525)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x1d5540)[_0x5520f0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d5540(_0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2cd7a2=0x536962ba^_0x472525;function _0x118f0d(){const _0x473a8d=_0x5520f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d95ad(_0x343dad(_0x31b49a)),_0x4886e2=_0x4b10d1(_0x3d95ad(window[_0x5520f0([0x4d,0x61,0x74,0x68])][_0x5520f0([0x63,0x65,0x69,0x6c])](_0x52f8d4/_0x2cd7a2)));window[_0x5520f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5520f0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x473a8d,_0x4886e2);}function _0x42326b(){const _0x210c4a=_0x5520f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d95ad(_0x343dad(_0x31b49a)),_0x18ee51=window[_0x5520f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5520f0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x210c4a);return _0x18ee51?window[_0x5520f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b10d1(_0x18ee51),0x10)*_0x2cd7a2:null;}function _0xa5bd05(_0x4d411b){return new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f0e63,_0x24a740)=>{_0x4d411b[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x5f0e63,_0x24a740),window[_0x5520f0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24a740,0x535e58fa^_0x472525);});}}_0x1332df[_0x5520f0([0x6f,0x6e])](_0x5520f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ac714,_0x37e5c7)=>{if(_0x37e5c7[0x0]!=_0x31b49a)return _0x1d5540(_0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37e5c7[0x1]={..._0x37e5c7[0x1],[_0x5520f0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x54f066};},{[_0x5520f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5520f0([0x68,0x69,0x67,0x68])}),_0x1332df[_0x5520f0([0x6f,0x6e])](_0x5520f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37847f=>{_0x4a1cbf(_0x37847f[_0x5520f0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b38e1=!0x0,_0x2121af(_0x37847f[_0x5520f0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5520f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5520f0([0x6c,0x6f,0x77])}),_0x2faf29[_0x5520f0([0x74,0x68,0x65,0x6e])](()=>{_0x3b38e1||_0x1d5540(_0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xdfbc96(){return _0x1332df[_0x5520f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5520f0([0x76,0x69,0x65,0x77])][_0x5520f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5520f0([0x61,0x75,0x74,0x6f]);}function _0x29090a(){_0x1332df[_0x5520f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5520f0([0x76,0x69,0x65,0x77])][_0x5520f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5520f0([0x61,0x75,0x74,0x6f]);}}function _0x37ec75(_0x318475){const _0x5969d8=[new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x313c55=>setTimeout(_0x313c55,0x5356b2f6^_0x472525)),_0x2faf29[_0x5520f0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6d4342=>{let _0x310a7c=0x0;_0x1332df[_0x5520f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5520f0([0x6f,0x6e])](_0x5520f0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2f5a92,_0x533084)=>{_0x533084[0x0][_0x5520f0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x310a7c++,_0x310a7c==(0x535f8dc2^_0x472525)&&(_0x6d4342(),_0x2f5a92[_0x5520f0([0x6f,0x66,0x66])]());});}))];return window[_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5520f0([0x72,0x61,0x63,0x65])](_0x5969d8)[_0x5520f0([0x74,0x68,0x65,0x6e])](()=>_0x318475);}async function _0x23b5eb(){await _0x2faf29,_0x1332df[_0x5520f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5520f0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20f02a,_0x1332df[_0x5520f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5520f0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20f02a,_0x1332df[_0x5520f0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5520f0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a515b(_0x1c4f7b){const _0x436a57=_0x371c63();_0x1332df[_0x436a57]=_0x5520f0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c4f7b,_0x1c4f7b!=_0x5520f0([0x56,0x61,0x6c,0x69,0x64])&&_0x23b5eb();}function _0x371c63(){const _0x5c06b6=window[_0x5520f0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5520f0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5520f0([0x6e,0x6f,0x77])]())[_0x5520f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5520f0([0x2e]),'');let _0x4d9702=_0x5520f0([0x68]);for(let _0x15158d=0x0;_0x15158d<_0x5c06b6[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15158d+=0x2){let _0x565b33=window[_0x5520f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c06b6[_0x5520f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15158d,_0x15158d+0x2));_0x565b33>=_0x5185ae[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x565b33-=_0x5185ae[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d9702+=_0x5185ae[_0x565b33];}return _0x4d9702;}function _0x29b9e1(){const _0x30caa0=_0x380515[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])](_0x5520f0([0x2e]));if(0x3!=_0x30caa0[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x216276(_0x30caa0[0x1]);function _0x216276(_0x3a1928){const _0x36020b=_0x173b86(_0x3a1928);return _0x36020b&&_0x20185f()?_0x36020b:null;function _0x20185f(){const _0x489a48=_0x36020b[_0x5520f0([0x6a,0x74,0x69])],_0x13aa22=window[_0x5520f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x489a48[_0x5520f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x489a48[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2cda8b={..._0x36020b,[_0x5520f0([0x6a,0x74,0x69])]:_0x489a48[_0x5520f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x489a48[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2cda8b[_0x5520f0([0x76,0x63])],_0x343dad(_0x2cda8b)==_0x13aa22;}}}async function _0x2532fc(){let _0x2cf9ef=!0x0;try{const _0x2376d7=_0x380515[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])](_0x5520f0([0x2e])),[_0x537a87,_0x60f8d7,_0x4b08bb]=_0x2376d7;return _0x7640eb(_0x537a87),await _0x3f3c73(_0x537a87,_0x60f8d7,_0x4b08bb),_0x2cf9ef;}catch{return!0x1;}function _0x7640eb(_0x2744b5){const _0x5e3aec=_0x173b86(_0x2744b5);_0x5e3aec&&_0x5e3aec[_0x5520f0([0x61,0x6c,0x67])]==_0x5520f0([0x45,0x53,0x32,0x35,0x36])||(_0x2cf9ef=!0x1);}async function _0x3f3c73(_0x524054,_0x1e71dc,_0x22be7d){const _0x5e859c=window[_0x5520f0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5520f0([0x66,0x72,0x6f,0x6d])](_0x115c84(_0x22be7d),_0x1985e6=>_0x1985e6[_0x5520f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x197c92=new window[(_0x5520f0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5520f0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x524054+_0x5520f0([0x2e])+_0x1e71dc),_0x31dfd3=window[_0x5520f0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5520f0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31dfd3)return;const _0x3b6a8e=await _0x31dfd3[_0x5520f0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5520f0([0x6a,0x77,0x6b]),_0x3eb84c,{[_0x5520f0([0x6e,0x61,0x6d,0x65])]:_0x5520f0([0x45,0x43,0x44,0x53,0x41]),[_0x5520f0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5520f0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5520f0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31dfd3[_0x5520f0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5520f0([0x6e,0x61,0x6d,0x65])]:_0x5520f0([0x45,0x43,0x44,0x53,0x41]),[_0x5520f0([0x68,0x61,0x73,0x68])]:{[_0x5520f0([0x6e,0x61,0x6d,0x65])]:_0x5520f0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b6a8e,_0x5e859c,_0x197c92)||(_0x2cf9ef=!0x1);}}function _0x173b86(_0x51ad14){return _0x51ad14[_0x5520f0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5520f0([0x65,0x79]))?JSON[_0x5520f0([0x70,0x61,0x72,0x73,0x65])](_0x115c84(_0x51ad14)):null;}function _0x115c84(_0x2b591f){return window[_0x5520f0([0x61,0x74,0x6f,0x62])](_0x2b591f[_0x5520f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5520f0([0x2b]))[_0x5520f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5520f0([0x2f])));}function _0x343dad(_0x47633f){let _0x2f6a58=0x1505;function _0x1bb66a(_0x58a4d9){for(let _0x1cbfe3=0x0;_0x1cbfe3<_0x58a4d9[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cbfe3++){const _0x5c5fef=_0x58a4d9[_0x5520f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cbfe3);_0x2f6a58=(_0x2f6a58<<0x5)+_0x2f6a58+_0x5c5fef,_0x2f6a58&=_0x2f6a58;}}function _0x5534c5(_0x22b579){Array[_0x5520f0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x22b579)?_0x22b579[_0x5520f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5534c5):_0x22b579&&typeof _0x22b579==_0x5520f0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5520f0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x22b579)[_0x5520f0([0x73,0x6f,0x72,0x74])]()[_0x5520f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e4939,_0x1add6a])=>{_0x1bb66a(_0x5e4939),_0x5534c5(_0x1add6a);}):_0x1bb66a(window[_0x5520f0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x22b579));}return _0x5534c5(_0x47633f),_0x2f6a58>>>0x0;}function _0x3d95ad(_0x2d3f5f){return _0x2d3f5f[_0x5520f0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5520f0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5520f0([0x30]));}function _0x4b10d1(_0xb2bc4e){return _0xb2bc4e[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5520f0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5520f0([0x6a,0x6f,0x69,0x6e])]('');}function _0x20f02a(){}function _0x5520f0(_0x3169c8){return _0x3169c8['map'](_0x4f87f6=>String['fromCharCode'](_0x4f87f6))['join']('');}_0x5a515b(await _0x4886cc());}(this);}['_initSchema'](){const _0x3c8f95=this['editor']['model']['schema'];_0x3c8f95['isRegistered']('imageBlock')&&_0x3c8f95['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3c8f95['isRegistered']('imageInline')&&_0x3c8f95['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x48ecd6=this['editor'];_0x48ecd6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x48ecd6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x551f42=>_0x551f42['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57480a=_0x48ecd6['commands']['get']('replaceImageSource');_0x57480a&&this['listenTo'](_0x57480a,'cleanupImage',(_0x3d6ea6,[_0x5a8ee8,_0x326026])=>{_0x5a8ee8['removeAttribute']('uploadcareImageId',_0x326026);});}['_initConfig'](){const _0x5cd356=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5bf9e9=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x33465e(_0x2ec278['document'],'uc-config',{..._0x5cd356,'pubkey':_0x5bf9e9,'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']=_0x5d8e24=>{if('closeMax'==_0x5d8e24)return'#uc-icon-arrow-down';},_0x2ec278['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x33465e(_0x2ec278['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2ec278['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xc3dcf4=this['editor']['commands']['get']('insertImage');_0xc3dcf4&&this['listenTo'](_0xc3dcf4,'execute',()=>{const _0x23fa31=this['editor']['model']['document']['selection']['getSelectedElement']();_0x23fa31&&_0x23fa31['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x23fa31);});});const _0x248255=this['editor']['commands']['get']('uploadcareImageReplace');_0x248255&&this['listenTo'](_0x248255,'execute',()=>{const _0x3d5b47=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d5b47&&_0x3d5b47['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3d5b47);});});}}class tt extends _0x18110a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x323041){super(_0x323041),_0x323041['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2a07b6['defineComponents'](_0x2a07b6),this['_defineLocale']();}['_defineLocale'](){const _0xca0154=this['editor']['config']['get']('uploadcare.locale'),_0x266676=this['editor']['locale']['contentLanguage'];_0xca0154&&_0x2a07b6['defineLocale'](_0x266676,_0xca0154);}}class ii extends _0x242f3a{constructor(_0x2cf73d){super(_0x2cf73d);const t=_0x2cf73d['t'],_0x21890e=this['bindTemplate'],_0x3ddc5c=new _0x41b901();_0x3ddc5c['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':[_0x3ddc5c,{'text':_0x21890e['to']('imageUploadProgress',_0x499b6d=>t('Loading\x20image...')+'\x20('+(_0x499b6d||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 _0x242f3a{constructor(_0x456afb){super(_0x456afb);const t=_0x456afb['t'];this['set']('errorType',null);const _0x5c048b=new _0x19cf23(_0x456afb);_0x5c048b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5c048b['withText']=!0x0,_0x5c048b['class']='ck-button-action',_0x5c048b['on']('execute',()=>{this['fire']('retry');}),_0x5c048b['bind']('isVisible')['to'](this,'errorType',_0x1a8bb3=>'NotFound'!==_0x1a8bb3);const _0x5acd06=new _0x3b1020();_0x5acd06['content']=_0x3c9387,_0x5acd06['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x19f844=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':[_0x5acd06,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x19f844['to']('errorType',_0x28f4d5=>t('NotFound'!==_0x28f4d5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5c048b]},{'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 _0x242f3a{constructor(_0x4190ed,_0x239d8b){super(_0x4190ed);const _0x44b1b8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x239d8b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x44b1b8['to']('imageSrc')}});}}class X extends W{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1c745b,_0x746dff,_0x1e9206){super(_0x1c745b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1c745b),this['_errorView']=new ti(_0x1c745b),this['_editingView']=new ei(_0x1c745b,_0x1e9206),this['_focusableView']=new _0x242f3a(_0x1c745b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x746dff),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'],_0x494b7a=>{this['_addUploadcareImageEditorListeners'](_0x494b7a);});}),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'](_0x728d58,_0x5859e9){const _0x423628='uc-cloud-image-editor',_0x107aca=_0x728d58['querySelector'](_0x423628);if(_0x107aca)return _0x5859e9(_0x107aca);const _0x113613=new MutationObserver(_0x492536=>{const _0x347339=_0x492536['filter'](_0x2ce56a=>_0x2ce56a['target']===_0x728d58&&_0x2ce56a['addedNodes']['length']>0x0&&_0x2ce56a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x423628);_0x347339['length']&&(_0x113613['disconnect'](),_0x5859e9(_0x347339[0x0]['addedNodes'][0x0]));});_0x113613['observe'](_0x728d58,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5c3730){_0x5c3730['addEventListener']('apply',_0x25fdbe=>{this['fire']('apply',{'imageSrc':_0x25fdbe['detail']['cdnUrl']});}),_0x5c3730['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4572f5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x20ae51,_0x39afdf,_0x4efb7e){super(),this['_editor']=_0x20ae51,this['_dialog']=_0x39afdf,this['_imageElement']=_0x4efb7e,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 _0x56f71c=this['_imageElement'],_0xd6b2d=_0x56f71c['getAttribute']('uploadcareImageId'),_0x2b809e=_0x56f71c['getAttribute']('src');if(_0xd6b2d)await this['_loadImageInfo'](_0xd6b2d,_0x2b809e);else{if(this['_imageCache']['has'](_0x2b809e)){const _0x2561e0=this['_imageCache']['get'](_0x2b809e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2561e0['url'],this['imageDimension']=_0x2561e0['dimension'],this['imageId']=_0x2561e0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x25bcf2}=this['_editor'],t=_0x25bcf2['t'],_0xe572c=new X(_0x25bcf2,this['imageStatus'],this['_attributes']);_0xe572c['bind']('status')['to'](this,'imageStatus'),_0xe572c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xe572c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xe572c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xe572c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5abb25,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xe572c,'position':_0x5ebf6b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xe572c['focus']();},'onHide':()=>{_0xe572c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58b3a9=>!Q(_0x58b3a9,_0xe572c['element'])}});}['_loadImageInfo'](_0xfc1b5,_0x310247){return j['getInfo'](_0xfc1b5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3f34eb=>{const {width:_0x23fbe7,height:_0x1d2e5d}=_0x3f34eb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x310247,this['imageDimension']={'width':_0x23fbe7,'height':_0x1d2e5d},this['imageId']=_0xfc1b5;})['catch'](_0x4714d3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4714d3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4335ea,_0x220a1f){return this['_getImageAsFile'](_0x4335ea)['then'](_0x17863f=>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':_0x220a1f['signal'],'file':_0x17863f,'onProgress':_0x114517=>{_0x114517&&_0x114517['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x114517['value']));}}))['then'](_0x1fd1a9=>{const {width:_0x5e6a95,height:_0x141336}=_0x1fd1a9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1fd1a9['cdnUrl'],this['imageDimension']={'width':_0x5e6a95,'height':_0x141336},this['imageId']=_0x1fd1a9['uuid'],this['imageUploadProgress']=null;const _0x171b80=_0x4335ea['getAttribute']('src');this['_imageCache']['set'](_0x171b80,{'id':_0x1fd1a9['uuid'],'url':_0x1fd1a9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x549c6e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x549c6e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5f1a6e,_0x428a52){_0x5f1a6e['on']('apply',(_0x40ebd,_0x17e08)=>{this['_replaceImage'](_0x428a52,_0x17e08['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5f1a6e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5f1a6e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2323e4,_0x4d5998,_0xf7d6dc){const _0x3e9485=this['_editor'],{width:_0x2a2561,height:_0x30b194}=V(_0x4d5998,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x41abf,imageSources:_0x31ccf8}=C(_0x4d5998,_0x2a2561);_0x3e9485['model']['change'](_0x544b5e=>{if('$graveyard'===_0x2323e4['root']['rootName']){_0x3e9485['execute']('insertImage',{'imageType':_0x2323e4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2323e4['getAttributes']()),'uploadcareImageId':_0xf7d6dc,'src':_0x41abf,'sources':_0x31ccf8,'width':_0x2a2561,'height':_0x30b194}});const _0x57ad28=_0x2323e4['getChildren']();_0x2323e4=_0x3e9485['model']['document']['selection']['getSelectedElement']();for(const _0x24cf6e of _0x57ad28)_0x544b5e['append'](_0x544b5e['cloneElement'](_0x24cf6e),_0x2323e4);}else _0x544b5e['setSelection'](_0x2323e4,'on'),_0x3e9485['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2323e4['getAttributes']()),'uploadcareImageId':_0xf7d6dc,'src':_0x41abf,'sources':_0x31ccf8,'width':_0x2a2561,'height':_0x30b194},_0x2323e4);_0x544b5e['setSelection'](_0x2323e4,'on');});}async['_getImageAsFile'](_0x32299d){const _0x30cb12=_0x2ec278['window'],_0x62f36f=_0x2ec278['document']['location']['href'],_0x66b7ce=new _0x30cb12['URL'](_0x32299d['getAttribute']('src'),_0x62f36f);if('data:'===_0x66b7ce['protocol']){const _0x216b51=_0x66b7ce['href']['split'](','),_0x484d30=_0x216b51[0x0]['match'](/:(.*?);/)[0x1],_0x56b235=_0x484d30['split']('/')[0x1],_0x51eba5=_0x30cb12['atob'](_0x216b51[_0x216b51['length']-0x1]);let _0x11c8a3=_0x51eba5['length'];const _0x4cd123=new _0x30cb12['Uint8Array'](_0x11c8a3);for(;_0x11c8a3--;)_0x4cd123[_0x11c8a3]=_0x51eba5['charCodeAt'](_0x11c8a3);return new _0x30cb12['File']([_0x4cd123],'image.'+_0x56b235,{'type':_0x484d30});}const _0x30ba0f=_0x66b7ce['href']['split']('/'),_0x389ce5=_0x30ba0f[_0x30ba0f['length']-0x1],_0x4fe371=_0x389ce5['split']('.')[0x1];return _0x30cb12['fetch'](_0x66b7ce['href'])['then'](_0xdce604=>_0xdce604['clone']()['blob']())['then'](_0x4bc52e=>new _0x30cb12['File']([_0x4bc52e],_0x389ce5,{'type':'image/'+_0x4fe371}));}}class N extends _0x3c77fd{['imageEditController'];static get['requires'](){return[_0x376964];}['_isEditable'];constructor(_0x10b0f4){super(_0x10b0f4),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3b9b05){const _0x2db499=z(_0x3b9b05);return _0x4ef893=>!(!_0x4ef893||!_0x4ef893['is']('element','imageBlock')&&!_0x4ef893['is']('element','imageInline'))&&(!!_0x4ef893['hasAttribute']('uploadcareImageId')||!!_0x4ef893['hasAttribute']('src')&&_0x2db499(_0x4ef893['getAttribute']('src')));}(_0x10b0f4['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3e7cca=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3e7cca);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2043f1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2043f1&&(_0x2043f1['is']('element','imageBlock')||_0x2043f1['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x376964),_0x2043f1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3c77fd{['refresh'](){const _0x2782ef=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2782ef&&(_0x2782ef['is']('element','imageBlock')||_0x2782ef['is']('element','imageInline')));}['execute'](_0x12d821){const _0xcf6281=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1506e5=>{_0x1506e5['setAttributes'](_0x12d821,_0xcf6281),_0x1506e5['removeAttribute']('srcset',_0xcf6281),_0x1506e5['removeAttribute']('sizes',_0xcf6281);});}}class m extends _0x18110a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3e7bce,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x107074}=this;_0x107074['commands']['add']('uploadcareImageEdit',new N(_0x107074)),_0x107074['commands']['add']('uploadcareImageReplace',new O(_0x107074));}}class g extends _0x18110a{['_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 _0x1229c8=this['editor'];_0x1229c8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x151e12=>{const _0x3be2c5=_0x1229c8['commands']['get']('uploadcareImageEdit'),_0x57833e=new _0x19cf23(_0x151e12),t=_0x151e12['t'];return _0x57833e['set']({'icon':_0x5abb25,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x57833e['bind']('isEnabled')['to'](_0x3be2c5),_0x57833e['bind']('isOn')['to'](_0x3be2c5,'isActive'),this['listenTo'](_0x57833e,'execute',()=>{_0x1229c8['execute']('uploadcareImageEdit'),_0x1229c8['editing']['view']['focus']();}),_0x57833e;}),this['_initConfig']();}['_initConfig'](){const _0x431155=_0x33465e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x431155),this['listenTo'](this['editor'],'destroy',()=>{_0x431155['remove']();});}}class et extends _0x18110a{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,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x17cd1e,Command as _0xdd9173}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1ba22e,IconGooglePhotos as _0x3ee3c8,IconGoogleDrive as _0x5b03f6,IconFacebook as _0x552d59,IconDropbox as _0x11eff6,IconUploadcareLink as _0x40726e,IconUploadcareImageUpload as _0xd2cf37,IconError as _0x394e39,IconUploadcareImageEdit as _0x2fca44}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x7a9863,MenuBarMenuListItemButtonView as _0x16ae6c,View as _0x425952,FocusCycler as _0x52cb88,Dialog as _0x2e3fff,DialogViewPosition as _0x1676f1,SpinnerView as _0x3db628,IconView as _0x3a706b,Notification as _0x2a969a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4a0bca,DomEmitterMixin as _0x388ecf,global as _0x1f4901,getAncestors as _0x2694dd,ObservableMixin as _0x18bc34,uid as _0x2b7e98,createElement as _0x4db309}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x239bc2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x6b88c4,info as _0x321ffa}from'@uploadcare/upload-client';import*as _0x3ae175 from'@uploadcare/file-uploader';var i=function(_0x9f9aff){return _0x9f9aff['Local']='local',_0x9f9aff['URL']='url',_0x9f9aff['Dropbox']='dropbox',_0x9f9aff['GDrive']='gdrive',_0x9f9aff['Facebook']='facebook',_0x9f9aff['GPhotos']='gphotos',_0x9f9aff['OneDrive']='onedrive',_0x9f9aff;}({});function _(_0x2d4d20,_0x287496,_0x590a48){const t=_0x2d4d20['t'],_0x1b3db0=_0x2d4d20['t'];switch(_0x287496){case i['Local']:return{'text':_0x1b3db0('Insert'===_0x590a48?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1b3db0('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x590a48?_0x1b3db0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1b3db0('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x287496;}}class e extends _0x17cd1e{['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 _0x545bdf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x548df0;for(const _0x4e84af in _0x545bdf){const _0xcf319=_0x4e84af,_0x37b823=_0x545bdf[_0xcf319];if('uploadcareLicenseKeyValid'==_0x37b823||'uploadcareLicenseKeyInvalid'==_0x37b823||'uploadcareLicenseKeyExpired'==_0x37b823||'uploadcareLicenseKeyDomainLimit'==_0x37b823||'uploadcareLicenseKeyNotAllowed'==_0x37b823||'uploadcareLicenseKeyEvaluationLimit'==_0x37b823||'uploadcareLicenseKeyTrialLimit'==_0x37b823||'uploadcareLicenseKeyUsageLimit'==_0x37b823){delete _0x545bdf[_0xcf319],_0x548df0=_0x37b823,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x548df0&&_0x545bdf['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x548df0&&_0x545bdf['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x548df0&&_0x545bdf['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x548df0&&_0x545bdf['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x548df0&&_0x545bdf['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x548df0&&_0x545bdf['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x548df0&&_0x545bdf['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x571665}=this,_0x25a051=_0x571665['commands']['get']('uploadcare');if(!_0x25a051)return;const _0x5943f9=this['_normalizeConfigSourceList'](_0x571665['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x543094,_0x2e053a)=>{const _0x1fed2b=this['_getIntegrationKey'](_0x2e053a['type']);return _0x543094[_0x1fed2b]||(_0x543094[_0x1fed2b]=[]),_0x543094[_0x1fed2b]['push'](_0x2e053a),_0x543094;},{});_0x571665['plugins']['has']('ImageInsertUI')&&_0x571665['commands']['get']('uploadcare')&&Object['entries'](_0x5943f9)['forEach'](([_0x3fd333,_0x1ffe62])=>{_0x571665['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3fd333,'observable':()=>_0x25a051,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1ffe62),'formViewCreator':()=>this['_createDropdownButtons'](_0x1ffe62),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1ffe62),'override':'assetManager'!==_0x3fd333});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x42a560){const {locale:_0x2ff903}=this['editor'];return _0x42a560['map'](_0x371c63=>{const _0x456e25=_(_0x2ff903,_0x371c63,'Insert');switch(_0x371c63){case i['Local']:return{'icon':_0xd2cf37,'type':i['Local'],..._0x456e25};case i['URL']:return{'icon':_0x40726e,'type':i['URL'],..._0x456e25};case i['Dropbox']:return{'icon':_0x11eff6,'type':i['Dropbox'],..._0x456e25};case i['Facebook']:return{'icon':_0x552d59,'type':i['Facebook'],..._0x456e25};case i['GDrive']:return{'icon':_0x5b03f6,'type':i['GDrive'],..._0x456e25};case i['GPhotos']:return{'icon':_0x3ee3c8,'type':i['GPhotos'],..._0x456e25};case i['OneDrive']:return{'icon':_0x1ba22e,'type':i['OneDrive'],..._0x456e25};}});}['_getIntegrationKey'](_0x50db15){switch(_0x50db15){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x440912,_0x28cc85){const _0x2e194c=this['editor'],_0x38d870=new _0x440912(_0x2e194c['locale']),_0xea3cea=_0x2e194c['commands']['get']('uploadcare');return _0x38d870['bind']('isEnabled')['to'](_0xea3cea),_0x38d870['on']('execute',()=>{_0xea3cea['execute'](_0x28cc85);}),_0x38d870;}['_createToolbarButton'](_0x668f42){const {locale:_0x310a69}=this['editor'],_0x11900e=this['editor']['plugins']['get']('ImageInsertUI'),_0x16786d=_0x668f42[0x0],_0x30754c=this['_createButton'](_0x7a9863,_0x16786d['type']);return _0x30754c['icon']=_0x16786d['icon'],_0x30754c['bind']('label')['to'](_0x11900e,'isImageSelected',_0x8b099=>_(_0x310a69,_0x16786d['type'],_0x8b099?'Replace':'Insert')['text']),_0x30754c['tooltip']=!0x0,_0x30754c;}['_createDropdownButtons'](_0x48afdd){const {locale:_0x437b3c}=this['editor'],_0x150c9a=this['editor']['plugins']['get']('ImageInsertUI');return _0x48afdd['map'](_0x5ad342=>{const _0x92d4ee=this['_createButton'](_0x7a9863,_0x5ad342['type']);return _0x92d4ee['withText']=!0x0,_0x92d4ee['icon']=_0x5ad342['icon'],_0x92d4ee['bind']('label')['to'](_0x150c9a,'isImageSelected',_0x3916a9=>_(_0x437b3c,_0x5ad342['type'],_0x3916a9?'Replace':'Insert')['text']),_0x92d4ee;});}['_createMenuBarButtons'](_0x7ffbc2){return _0x7ffbc2['map'](_0x55edc3=>{const _0x3c18b8=this['_createButton'](_0x16ae6c,_0x55edc3['type']);return _0x3c18b8['icon']=_0x55edc3['icon'],_0x3c18b8['label']=_0x55edc3['shortText'],_0x3c18b8;});}}class W extends _0x425952{['focusTracker'];['focusCycler'];constructor(_0x22540b){super(_0x22540b),this['focusTracker']=new _0x4a0bca(),this['focusCycler']=new _0x52cb88({'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 R extends W{constructor(_0x1dd404,_0x1c5881){super(_0x1dd404),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-'+_0x1c5881}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1565f6,_0x56a0d0){const _0x2f30bd=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xb347d9=>_0xb347d9<=_0x56a0d0)['map'](_0xf62524=>_0x1565f6['replace'](/\/$/,'')+'/-/resize/'+_0xf62524+'x/\x20'+_0xf62524+'w');return{'imageFallbackUrl':_0x1565f6,'imageSources':[{'srcset':_0x2f30bd['join'](',\x20'),'sizes':'(max-width:\x20'+_0x56a0d0+'px)\x20100vw,\x20'+_0x56a0d0+'px','type':'image/webp'}]};}function V(_0x40bcb1,_0x4cc3d8,_0x543855){const _0x56e471=_0x40bcb1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x56e471?parseInt(_0x56e471[0x1],0xa):_0x4cc3d8,'height':_0x56e471?parseInt(_0x56e471[0x2],0xa):_0x543855};}function p(_0x5dfc7b,_0x229242){const _0x50c136=new(_0x388ecf())(),_0x2a9b32=_0x5dfc7b['plugins']['get']('ImageUtils'),_0x2d5aeb=_0x5dfc7b['editing']['mapper']['toViewElement'](_0x229242),_0x59b199=_0x2a9b32['findViewImgElement'](_0x2d5aeb),_0x129697=_0x5dfc7b['editing']['view']['domConverter']['viewToDom'](_0x59b199),_0x1612c3=_0x229242['getAttribute']('width'),_0x5313e7=_0x229242['getAttribute']('height'),_0x2e6bb9='image-processing';_0x5dfc7b['editing']['view']['change'](_0x3dfd3f=>{_0x3dfd3f['addClass'](_0x2e6bb9,_0x2d5aeb),_0x3dfd3f['setStyle']('aspect-ratio',_0x1612c3+'/'+_0x5313e7,_0x59b199);}),_0x50c136['listenTo'](_0x129697,'load',()=>{_0x50c136['stopListening'](_0x129697,'load'),_0x5dfc7b['editing']['view']['change'](_0x14499c=>{_0x14499c['removeClass'](_0x2e6bb9,_0x2d5aeb),_0x14499c['removeStyle']('aspect-ratio',_0x59b199);});});}function z(_0x56df3b){if(Array['isArray'](_0x56df3b)){const _0x3a0923=_0x56df3b['map'](z);return _0x54793f=>_0x3a0923['some'](_0x61371=>_0x61371(_0x54793f));}if('origin'==_0x56df3b){const _0x5ecc7e=_0x1f4901['window']['location']['origin'];return _0x510c31=>new URL(_0x510c31,_0x1f4901['document']['baseURI'])['origin']==_0x5ecc7e;}return'function'==typeof _0x56df3b?_0x56df3b:_0x56df3b instanceof RegExp?_0x5e0398=>!(!_0x5e0398['match'](_0x56df3b)&&!_0x5e0398['replace'](/^https?:\/\//,'')['match'](_0x56df3b)):()=>!0x1;}function Q(_0x153fbf,_0x31798f){return _0x2694dd(_0x153fbf['target'])['includes'](_0x31798f);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x18bc34(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4f8057,_0x4a82b9,_0x1acf38){super(),this['_editor']=_0x4f8057,this['_editing']=_0x4a82b9,this['_dialog']=_0x4f8057['plugins']['get'](_0x2e3fff),this['_api']=_0x4a82b9['ctxElement']['getAPI'](),this['_type']=_0x1acf38,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:_0xc8a365,model:_0x4c67d0}=this['_editor'],_0x5525cb=_0x4c67d0['document']['selection']['getSelectedElement'](),_0x28e536=_0x5525cb&&(_0x5525cb['is']('element','imageBlock')||_0x5525cb['is']('element','imageInline'));this['_formView']=new R(_0xc8a365,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xd2cf37,'title':_(_0xc8a365,this['_type'],_0x28e536?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1676f1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51d0f4=>!Q(_0x51d0f4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5e09b3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x24d602=>{const _0x441ae6=_0x5e09b3['length'];for(const _0x5bce4a of _0x5e09b3){const _0x7d4881=_0x5bce4a===_0x5e09b3[_0x441ae6-0x1],{cdnUrl:_0x1e5bfc,fileInfo:_0x304b5d}=_0x5bce4a;if(!_0x1e5bfc||!_0x304b5d)continue;const {width:_0x5640cd,height:_0x3faf9a}=_0x304b5d['imageInfo'],_0x24bb64=V(_0x1e5bfc,_0x5640cd,_0x3faf9a),_0x22c29d=C(_0x1e5bfc,_0x24bb64['width']),_0x41b1db={'id':_0x304b5d['uuid'],'type':'image','attributes':{'imageDimension':_0x24bb64,..._0x22c29d}};this['_insertAsset'](_0x41b1db,_0x7d4881,_0x24d602);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x28713f=>{'idle'===_0x28713f['detail']['status']&&!_0x28713f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x850a0f,_0x5d0764,_0x8416bc){const _0x52a536=this['_editor']['model']['document']['selection'],_0x138354=_0x52a536['getSelectedElement'](),_0xea0f63=!(!_0x138354||!_0x138354['is']('element','imageInline'));_0x8416bc['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x850a0f,_0xea0f63),_0x5d0764||_0x8416bc['setSelection'](_0x52a536['getLastPosition']());}['_insertImage'](_0x32b35a,_0x186e38){const _0xdf3a9b=this['_editor'],{imageDimension:_0x2a94f8,imageFallbackUrl:_0x2465cc,imageSources:_0x5b4171}=_0x32b35a['attributes'];_0xdf3a9b['execute']('insertImage',{'imageType':_0x186e38?'imageInline':null,'source':{'uploadcareImageId':_0x32b35a['id'],'src':_0x2465cc,'sources':_0x5b4171,..._0x2a94f8}});}}class w extends _0xdd9173{['_editing'];['_controller']=null;static get['requires'](){return[_0x2e3fff,o];}constructor(_0x1a5a96){super(_0x1a5a96),this['_editing']=_0x1a5a96['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5a9504){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5a9504);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xbece0c,..._0x2e3c4e}){return _0x6b88c4(_0xbece0c,_0x2e3c4e);}static['getInfo'](_0x159e89,_0x48d029){return _0x321ffa(_0x159e89,_0x48d029);}}class f extends _0x17cd1e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x239bc2,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x328c21=this['editor'];if(!!!_0x328c21['config']['get']('uploadcare'))return;_0x328c21['plugins']['get'](_0x239bc2)['createUploadAdapter']=_0x2c6b7e=>new k(_0x2c6b7e,_0x328c21),_0x328c21['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x55d8fb,{imageElement:_0x46882f,data:_0x1d36d8})=>{_0x328c21['model']['change'](_0xd09ad7=>{_0xd09ad7['setAttribute']('uploadcareImageId',_0x1d36d8['uploadcareImageId'],_0x46882f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1b5213,_0x386502){this['loader']=_0x1b5213,this['editor']=_0x386502,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5c9926=await this['loader']['file'];return j['upload']({'file':_0x5c9926,'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':_0x3c79ab=>{_0x3c79ab&&_0x3c79ab['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3c79ab['value']);}})['then'](async _0x4489d4=>{const {imageFallbackUrl:_0x46384e,imageSources:_0x483560}=C(_0x4489d4['cdnUrl'],_0x4489d4['imageInfo']['width']);return{'uploadcareImageId':_0x4489d4['uuid'],'default':_0x46384e,'sources':_0x483560};})['catch'](()=>{const _0x282127=t('Cannot\x20upload\x20file:')+('\x20'+_0x5c9926['name']+'.');return Promise['reject'](_0x282127);});}['abort'](){this['controller']['abort']();}}class o extends _0x17cd1e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2e3fff];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3ef7ff){super(_0x3ef7ff),this['ucContextId']=_0x2b7e98();}['init'](){const _0x82b46e=this['editor'];_0x82b46e['commands']['add']('uploadcare',new w(_0x82b46e));}['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 _0xfbf656=_0x1f4901['document']['querySelector']('input[uploadcare-file-input]');_0xfbf656&&_0xfbf656['remove']();}),async function(_0x25cf8a){const _0x10d2c4=_0x5f49e8([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]),_0x12ed3c=0x535f8c3a,_0x16a5f1=0x5358f6fa^_0x12ed3c,_0x12eca4=window[_0x5f49e8([0x44,0x61,0x74,0x65])][_0x5f49e8([0x6e,0x6f,0x77])](),_0x251dec=_0x25cf8a[_0x5f49e8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x302e95=new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xadc4bf=>{_0x251dec[_0x5f49e8([0x6f,0x6e,0x63,0x65])](_0x5f49e8([0x72,0x65,0x61,0x64,0x79]),_0xadc4bf);}),_0x4ffcbb={[_0x5f49e8([0x6b,0x74,0x79])]:_0x5f49e8([0x45,0x43]),[_0x5f49e8([0x75,0x73,0x65])]:_0x5f49e8([0x73,0x69,0x67]),[_0x5f49e8([0x63,0x72,0x76])]:_0x5f49e8([0x50,0x2d,0x32,0x35,0x36]),[_0x5f49e8([0x78])]:_0x5f49e8([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]),[_0x5f49e8([0x79])]:_0x5f49e8([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]),[_0x5f49e8([0x61,0x6c,0x67])]:_0x5f49e8([0x45,0x53,0x32,0x35,0x36])},_0x4a856b=_0x251dec[_0x5f49e8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f49e8([0x67,0x65,0x74])](_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x553337(){let _0x4edddf,_0x547cba=null,_0x43533c=null;try{if(_0x4a856b==_0x5f49e8([0x47,0x50,0x4c]))return _0x5f49e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4edddf=_0x5a92ac(),!_0x4edddf)return _0x5f49e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4edddf[_0x5f49e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43533c=_0x42afe9(_0x4edddf[_0x5f49e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4edddf[_0x5f49e8([0x6a,0x74,0x69])])),await _0x1cdc34()?_0x2ee114()?_0xc80482()?_0x5f49e8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45ad5b()?(_0x4edddf[_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f49e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x547cba=_0xb3c32f(_0x5f49e8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4edddf[_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f49e8([0x74,0x72,0x69,0x61,0x6c])&&(_0x547cba=_0xb3c32f(_0x5f49e8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x327ab5()):_0x5f49e8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f49e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f49e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5f49e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xc80482(){const _0x35feea=[_0x5f49e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f49e8([0x74,0x72,0x69,0x61,0x6c])][_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4edddf[_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12eca4/0x3e8:0xe10*_0x16a5f1;return _0x4edddf[_0x5f49e8([0x65,0x78,0x70])]<_0x35feea;}function _0x2ee114(){const _0x46ddb2=_0x4edddf[_0x5f49e8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x46ddb2&&(!!_0x46ddb2[_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49e8([0x2a]))||!!_0x46ddb2[_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49e8([0x55,0x50,0x4c,0x43])));}function _0x45ad5b(){const _0x194bad=_0x4edddf[_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x194bad||0x0==_0x194bad[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xafaa93}=new URL(window[_0x5f49e8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x194bad[_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xafaa93))return!0x0;const _0xd31ae0=_0xafaa93[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])](_0x5f49e8([0x2e]));return _0x194bad[_0x5f49e8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a129b=>_0x3a129b[_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49e8([0x2a])))[_0x5f49e8([0x6d,0x61,0x70])](_0x7904fa=>_0x7904fa[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])](_0x5f49e8([0x2e])))[_0x5f49e8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x520c6f=>_0x520c6f[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd31ae0[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5f49e8([0x6d,0x61,0x70])](_0x10fb1d=>Array(_0xd31ae0[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x10fb1d[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5f49e8([0x66,0x69,0x6c,0x6c])](_0x10fb1d[0x0]===_0x5f49e8([0x2a])?_0x5f49e8([0x2a]):'')[_0x5f49e8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x10fb1d))[_0x5f49e8([0x73,0x6f,0x6d,0x65])](_0x45b2d0=>_0xd31ae0[_0x5f49e8([0x65,0x76,0x65,0x72,0x79])]((_0x22d9e6,_0x4127ad)=>_0x45b2d0[_0x4127ad]===_0x22d9e6||_0x45b2d0[_0x4127ad]===_0x5f49e8([0x2a])));}function _0x327ab5(){return _0x547cba&&_0x43533c?new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x539c7f,_0x35399b)=>{_0x547cba[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x539c7f,_0x35399b),_0x43533c[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x2369bd=>{_0x2369bd!=_0x5f49e8([0x56,0x61,0x6c,0x69,0x64])&&_0x539c7f(_0x2369bd);},_0x35399b);}):_0x547cba||_0x43533c||_0x5f49e8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42afe9(_0xc54325,_0x3c2c48){return new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bb29c=>{if(_0x538707())return _0x4bb29c(_0x5f49e8([0x56,0x61,0x6c,0x69,0x64]));_0x13a4c6(),_0x251dec[_0x5f49e8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f49e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x806de9=!0x1;const _0x58fd54=_0x2b7e98();function _0x304926(_0x183ed4){return!!_0x183ed4&&(typeof _0x183ed4===_0x5f49e8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x183ed4===_0x5f49e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x183ed4[_0x5f49e8([0x74,0x68,0x65,0x6e])]===_0x5f49e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x183ed4[_0x5f49e8([0x63,0x61,0x74,0x63,0x68])]===_0x5f49e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c3f18(_0x47a769){_0x1f8c60(_0x47a769)[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x3fe56d=>{if(!_0x3fe56d||_0x3fe56d[_0x5f49e8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f49e8([0x6f,0x6b]))return _0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x370022(_0x4bbf80(_0x58fd54+_0x3c2c48))!=_0x3fe56d[_0x5f49e8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f49e8([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x56cda1=>(_0xd8aecc(),_0x56cda1),()=>{const _0x3407e0=_0x3f7f47();return null==_0x3407e0?(_0xd8aecc(),_0x5f49e8([0x56,0x61,0x6c,0x69,0x64])):_0x5f49e8(_0x12eca4-_0x3407e0>(0x7753083a^_0x12ed3c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x4bb29c)[_0x5f49e8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4bb29c(_0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ed4df=0x536962ba^_0x12ed3c;function _0xd8aecc(){const _0x2ee4a2=_0x5f49e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x370022(_0x4bbf80(_0xc54325)),_0x416360=_0x14a78f(_0x370022(window[_0x5f49e8([0x4d,0x61,0x74,0x68])][_0x5f49e8([0x63,0x65,0x69,0x6c])](_0x12eca4/_0x4ed4df)));window[_0x5f49e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f49e8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ee4a2,_0x416360);}function _0x3f7f47(){const _0x31a9e4=_0x5f49e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x370022(_0x4bbf80(_0xc54325)),_0x2e535d=window[_0x5f49e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f49e8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31a9e4);return _0x2e535d?window[_0x5f49e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14a78f(_0x2e535d),0x10)*_0x4ed4df:null;}function _0x1f8c60(_0x4e65e3){return new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44de70,_0x1bea86)=>{_0x4e65e3[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x44de70,_0x1bea86),window[_0x5f49e8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1bea86,0x535e58fa^_0x12ed3c);});}}_0x251dec[_0x5f49e8([0x6f,0x6e])](_0x5f49e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51e27c,_0x5dd0cb)=>{if(_0x5dd0cb[0x0]!=_0xc54325)return _0x4bb29c(_0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5dd0cb[0x1]={..._0x5dd0cb[0x1],[_0x5f49e8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58fd54};},{[_0x5f49e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f49e8([0x68,0x69,0x67,0x68])}),_0x251dec[_0x5f49e8([0x6f,0x6e])](_0x5f49e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb9e921=>{_0x304926(_0xb9e921[_0x5f49e8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x806de9=!0x0,_0x2c3f18(_0xb9e921[_0x5f49e8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f49e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f49e8([0x6c,0x6f,0x77])}),_0x302e95[_0x5f49e8([0x74,0x68,0x65,0x6e])](()=>{_0x806de9||_0x4bb29c(_0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x538707(){return _0x251dec[_0x5f49e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f49e8([0x76,0x69,0x65,0x77])][_0x5f49e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f49e8([0x61,0x75,0x74,0x6f]);}function _0x13a4c6(){_0x251dec[_0x5f49e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f49e8([0x76,0x69,0x65,0x77])][_0x5f49e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f49e8([0x61,0x75,0x74,0x6f]);}}function _0xb3c32f(_0x221ac2){const _0x3206f6=[new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x432724=>setTimeout(_0x432724,0x5356b2f6^_0x12ed3c)),_0x302e95[_0x5f49e8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ac5af=>{let _0xf41177=0x0;_0x251dec[_0x5f49e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49e8([0x6f,0x6e])](_0x5f49e8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1736e8,_0x27606e)=>{_0x27606e[0x0][_0x5f49e8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf41177++,_0xf41177==(0x535f8dc2^_0x12ed3c)&&(_0x5ac5af(),_0x1736e8[_0x5f49e8([0x6f,0x66,0x66])]());});}))];return window[_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f49e8([0x72,0x61,0x63,0x65])](_0x3206f6)[_0x5f49e8([0x74,0x68,0x65,0x6e])](()=>_0x221ac2);}async function _0xe40a24(){await _0x302e95,_0x251dec[_0x5f49e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49e8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4009a2,_0x251dec[_0x5f49e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49e8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4009a2,_0x251dec[_0x5f49e8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f49e8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16190d(_0x1a79af){const _0x1413a2=_0x1ea24f();_0x251dec[_0x1413a2]=_0x5f49e8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a79af,_0x1a79af!=_0x5f49e8([0x56,0x61,0x6c,0x69,0x64])&&_0xe40a24();}function _0x1ea24f(){const _0x4d5b7a=window[_0x5f49e8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f49e8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f49e8([0x6e,0x6f,0x77])]())[_0x5f49e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f49e8([0x2e]),'');let _0x119903=_0x5f49e8([0x68]);for(let _0x178a40=0x0;_0x178a40<_0x4d5b7a[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x178a40+=0x2){let _0x51dae4=window[_0x5f49e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d5b7a[_0x5f49e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x178a40,_0x178a40+0x2));_0x51dae4>=_0x10d2c4[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51dae4-=_0x10d2c4[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x119903+=_0x10d2c4[_0x51dae4];}return _0x119903;}function _0x5a92ac(){const _0x3b96be=_0x4a856b[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])](_0x5f49e8([0x2e]));if(0x3!=_0x3b96be[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4115a6(_0x3b96be[0x1]);function _0x4115a6(_0x578aad){const _0x3ad95c=_0x425683(_0x578aad);return _0x3ad95c&&_0x245382()?_0x3ad95c:null;function _0x245382(){const _0xa55071=_0x3ad95c[_0x5f49e8([0x6a,0x74,0x69])],_0x2dcb1c=window[_0x5f49e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa55071[_0x5f49e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa55071[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3bae83={..._0x3ad95c,[_0x5f49e8([0x6a,0x74,0x69])]:_0xa55071[_0x5f49e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa55071[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3bae83[_0x5f49e8([0x76,0x63])],_0x4bbf80(_0x3bae83)==_0x2dcb1c;}}}async function _0x1cdc34(){let _0x4e8ec4=!0x0;try{const _0xf5d10e=_0x4a856b[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])](_0x5f49e8([0x2e])),[_0x10c0d2,_0x4ac3a8,_0x941013]=_0xf5d10e;return _0x325519(_0x10c0d2),await _0x237b85(_0x10c0d2,_0x4ac3a8,_0x941013),_0x4e8ec4;}catch{return!0x1;}function _0x325519(_0x4835ea){const _0x234601=_0x425683(_0x4835ea);_0x234601&&_0x234601[_0x5f49e8([0x61,0x6c,0x67])]==_0x5f49e8([0x45,0x53,0x32,0x35,0x36])||(_0x4e8ec4=!0x1);}async function _0x237b85(_0x39da03,_0x2793cc,_0x33f66f){const _0x4455b6=window[_0x5f49e8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f49e8([0x66,0x72,0x6f,0x6d])](_0x240ec0(_0x33f66f),_0x571aa2=>_0x571aa2[_0x5f49e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x51c608=new window[(_0x5f49e8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f49e8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39da03+_0x5f49e8([0x2e])+_0x2793cc),_0x143e02=window[_0x5f49e8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f49e8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x143e02)return;const _0x40da0c=await _0x143e02[_0x5f49e8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f49e8([0x6a,0x77,0x6b]),_0x4ffcbb,{[_0x5f49e8([0x6e,0x61,0x6d,0x65])]:_0x5f49e8([0x45,0x43,0x44,0x53,0x41]),[_0x5f49e8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f49e8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f49e8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x143e02[_0x5f49e8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f49e8([0x6e,0x61,0x6d,0x65])]:_0x5f49e8([0x45,0x43,0x44,0x53,0x41]),[_0x5f49e8([0x68,0x61,0x73,0x68])]:{[_0x5f49e8([0x6e,0x61,0x6d,0x65])]:_0x5f49e8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40da0c,_0x4455b6,_0x51c608)||(_0x4e8ec4=!0x1);}}function _0x425683(_0x6ab02a){return _0x6ab02a[_0x5f49e8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f49e8([0x65,0x79]))?JSON[_0x5f49e8([0x70,0x61,0x72,0x73,0x65])](_0x240ec0(_0x6ab02a)):null;}function _0x240ec0(_0xeb3496){return window[_0x5f49e8([0x61,0x74,0x6f,0x62])](_0xeb3496[_0x5f49e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f49e8([0x2b]))[_0x5f49e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f49e8([0x2f])));}function _0x4bbf80(_0x238158){let _0x4f425b=0x1505;function _0x2853d2(_0x725dc2){for(let _0x5c0351=0x0;_0x5c0351<_0x725dc2[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c0351++){const _0x388671=_0x725dc2[_0x5f49e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c0351);_0x4f425b=(_0x4f425b<<0x5)+_0x4f425b+_0x388671,_0x4f425b&=_0x4f425b;}}function _0x5a26e7(_0x1f814c){Array[_0x5f49e8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f814c)?_0x1f814c[_0x5f49e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a26e7):_0x1f814c&&typeof _0x1f814c==_0x5f49e8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f49e8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f814c)[_0x5f49e8([0x73,0x6f,0x72,0x74])]()[_0x5f49e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ad473,_0x55b493])=>{_0x2853d2(_0x1ad473),_0x5a26e7(_0x55b493);}):_0x2853d2(window[_0x5f49e8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f814c));}return _0x5a26e7(_0x238158),_0x4f425b>>>0x0;}function _0x370022(_0x3d7bbf){return _0x3d7bbf[_0x5f49e8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f49e8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f49e8([0x30]));}function _0x14a78f(_0x56ab41){return _0x56ab41[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f49e8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f49e8([0x6a,0x6f,0x69,0x6e])]('');}function _0x4009a2(){}function _0x5f49e8(_0x5a8a35){return _0x5a8a35['map'](_0x5cb202=>String['fromCharCode'](_0x5cb202))['join']('');}_0x16190d(await _0x553337());}(this);}['_initSchema'](){const _0x552feb=this['editor']['model']['schema'];_0x552feb['isRegistered']('imageBlock')&&_0x552feb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x552feb['isRegistered']('imageInline')&&_0x552feb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5cd44f=this['editor'];_0x5cd44f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5cd44f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2b01d9=>_0x2b01d9['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x441a20=_0x5cd44f['commands']['get']('replaceImageSource');_0x441a20&&this['listenTo'](_0x441a20,'cleanupImage',(_0x42fcb9,[_0x564db4,_0x261ae4])=>{_0x564db4['removeAttribute']('uploadcareImageId',_0x261ae4);});}['_initConfig'](){const _0x47abf1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x276d42=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4db309(_0x1f4901['document'],'uc-config',{..._0x47abf1,'pubkey':_0x276d42,'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']=_0x5317e4=>{if('closeMax'==_0x5317e4)return'#uc-icon-arrow-down';},_0x1f4901['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4db309(_0x1f4901['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1f4901['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x398d03=this['editor']['commands']['get']('insertImage');_0x398d03&&this['listenTo'](_0x398d03,'execute',()=>{const _0x13a06d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x13a06d&&_0x13a06d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x13a06d);});});const _0x5752d9=this['editor']['commands']['get']('uploadcareImageReplace');_0x5752d9&&this['listenTo'](_0x5752d9,'execute',()=>{const _0x5ee02c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5ee02c&&_0x5ee02c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5ee02c);});});}}class tt extends _0x17cd1e{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1875a6){super(_0x1875a6),_0x1875a6['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3ae175['defineComponents'](_0x3ae175),this['_defineLocale']();}['_defineLocale'](){const _0x4b4823=this['editor']['config']['get']('uploadcare.locale'),_0x59fd8d=this['editor']['locale']['contentLanguage'];_0x4b4823&&_0x3ae175['defineLocale'](_0x59fd8d,_0x4b4823);}}class ii extends _0x425952{constructor(_0x5ba07c){super(_0x5ba07c);const t=_0x5ba07c['t'],_0x3055bd=this['bindTemplate'],_0x249481=new _0x3db628();_0x249481['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':[_0x249481,{'text':_0x3055bd['to']('imageUploadProgress',_0x48899d=>t('Loading\x20image...')+'\x20('+(_0x48899d||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 _0x425952{constructor(_0x590d1a){super(_0x590d1a);const t=_0x590d1a['t'];this['set']('errorType',null);const _0x3ad669=new _0x7a9863(_0x590d1a);_0x3ad669['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3ad669['withText']=!0x0,_0x3ad669['class']='ck-button-action',_0x3ad669['on']('execute',()=>{this['fire']('retry');}),_0x3ad669['bind']('isVisible')['to'](this,'errorType',_0x5064f3=>'NotFound'!==_0x5064f3);const _0x22dc14=new _0x3a706b();_0x22dc14['content']=_0x394e39,_0x22dc14['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x16ea45=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':[_0x22dc14,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x16ea45['to']('errorType',_0x5cc6ed=>t('NotFound'!==_0x5cc6ed?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3ad669]},{'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 _0x425952{constructor(_0x162a91,_0x5610d7){super(_0x162a91);const _0x227f9d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5610d7,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x227f9d['to']('imageSrc')}});}}class X extends W{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x398370,_0x2fca02,_0x53921a){super(_0x398370),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x398370),this['_errorView']=new ti(_0x398370),this['_editingView']=new ei(_0x398370,_0x53921a),this['_focusableView']=new _0x425952(_0x398370),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2fca02),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'],_0x108195=>{this['_addUploadcareImageEditorListeners'](_0x108195);});}),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'](_0x47718f,_0x47f156){const _0x43e5d4='uc-cloud-image-editor',_0x34573e=_0x47718f['querySelector'](_0x43e5d4);if(_0x34573e)return _0x47f156(_0x34573e);const _0x282ab8=new MutationObserver(_0x3e0930=>{const _0x2079eb=_0x3e0930['filter'](_0x509e73=>_0x509e73['target']===_0x47718f&&_0x509e73['addedNodes']['length']>0x0&&_0x509e73['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43e5d4);_0x2079eb['length']&&(_0x282ab8['disconnect'](),_0x47f156(_0x2079eb[0x0]['addedNodes'][0x0]));});_0x282ab8['observe'](_0x47718f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x13ffd1){_0x13ffd1['addEventListener']('apply',_0x49c44f=>{this['fire']('apply',{'imageSrc':_0x49c44f['detail']['cdnUrl']});}),_0x13ffd1['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x18bc34(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x58096c,_0x59898a,_0x12470d){super(),this['_editor']=_0x58096c,this['_dialog']=_0x59898a,this['_imageElement']=_0x12470d,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 _0x2a77ed=this['_imageElement'],_0x5efdda=_0x2a77ed['getAttribute']('uploadcareImageId'),_0x141e09=_0x2a77ed['getAttribute']('src');if(_0x5efdda)await this['_loadImageInfo'](_0x5efdda,_0x141e09);else{if(this['_imageCache']['has'](_0x141e09)){const _0x1b3e4e=this['_imageCache']['get'](_0x141e09);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b3e4e['url'],this['imageDimension']=_0x1b3e4e['dimension'],this['imageId']=_0x1b3e4e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x346c58}=this['_editor'],t=_0x346c58['t'],_0x435634=new X(_0x346c58,this['imageStatus'],this['_attributes']);_0x435634['bind']('status')['to'](this,'imageStatus'),_0x435634['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x435634['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x435634['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x435634,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2fca44,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x435634,'position':_0x1676f1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x435634['focus']();},'onHide':()=>{_0x435634['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x233ce0=>!Q(_0x233ce0,_0x435634['element'])}});}['_loadImageInfo'](_0x2c4bce,_0x129d04){return j['getInfo'](_0x2c4bce,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x551a8e=>{const {width:_0x100985,height:_0x27bccc}=_0x551a8e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x129d04,this['imageDimension']={'width':_0x100985,'height':_0x27bccc},this['imageId']=_0x2c4bce;})['catch'](_0x502d45=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x502d45['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xa1eb34,_0x93a1c1){return this['_getImageAsFile'](_0xa1eb34)['then'](_0x17ee7d=>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':_0x93a1c1['signal'],'file':_0x17ee7d,'onProgress':_0x34ce63=>{_0x34ce63&&_0x34ce63['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x34ce63['value']));}}))['then'](_0x56ea02=>{const {width:_0xccd9e8,height:_0x502fb6}=_0x56ea02['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56ea02['cdnUrl'],this['imageDimension']={'width':_0xccd9e8,'height':_0x502fb6},this['imageId']=_0x56ea02['uuid'],this['imageUploadProgress']=null;const _0x1877f2=_0xa1eb34['getAttribute']('src');this['_imageCache']['set'](_0x1877f2,{'id':_0x56ea02['uuid'],'url':_0x56ea02['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3e12cd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e12cd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x76a11e,_0x1f8e54){_0x76a11e['on']('apply',(_0x40fa32,_0x503c60)=>{this['_replaceImage'](_0x1f8e54,_0x503c60['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x76a11e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x76a11e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x49e13b,_0x1d622b,_0x30f00e){const _0x46c2c6=this['_editor'],{width:_0x29ff1e,height:_0x34d685}=V(_0x1d622b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x489a19,imageSources:_0x2e5962}=C(_0x1d622b,_0x29ff1e);_0x46c2c6['model']['change'](_0x77ebcd=>{if('$graveyard'===_0x49e13b['root']['rootName']){_0x46c2c6['execute']('insertImage',{'imageType':_0x49e13b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x49e13b['getAttributes']()),'uploadcareImageId':_0x30f00e,'src':_0x489a19,'sources':_0x2e5962,'width':_0x29ff1e,'height':_0x34d685}});const _0x286f92=_0x49e13b['getChildren']();_0x49e13b=_0x46c2c6['model']['document']['selection']['getSelectedElement']();for(const _0x50ece7 of _0x286f92)_0x77ebcd['append'](_0x77ebcd['cloneElement'](_0x50ece7),_0x49e13b);}else _0x77ebcd['setSelection'](_0x49e13b,'on'),_0x46c2c6['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x49e13b['getAttributes']()),'uploadcareImageId':_0x30f00e,'src':_0x489a19,'sources':_0x2e5962,'width':_0x29ff1e,'height':_0x34d685},_0x49e13b);_0x77ebcd['setSelection'](_0x49e13b,'on');});}async['_getImageAsFile'](_0x30c046){const _0x9c3f82=_0x1f4901['window'],_0x4b0505=_0x1f4901['document']['location']['href'],_0x1b5e46=new _0x9c3f82['URL'](_0x30c046['getAttribute']('src'),_0x4b0505);if('data:'===_0x1b5e46['protocol']){const _0x217af8=_0x1b5e46['href']['split'](','),_0x22a4ae=_0x217af8[0x0]['match'](/:(.*?);/)[0x1],_0x3d6a8b=_0x22a4ae['split']('/')[0x1],_0x4000a5=_0x9c3f82['atob'](_0x217af8[_0x217af8['length']-0x1]);let _0x3f3974=_0x4000a5['length'];const _0x226f2e=new _0x9c3f82['Uint8Array'](_0x3f3974);for(;_0x3f3974--;)_0x226f2e[_0x3f3974]=_0x4000a5['charCodeAt'](_0x3f3974);return new _0x9c3f82['File']([_0x226f2e],'image.'+_0x3d6a8b,{'type':_0x22a4ae});}const _0x3d198a=_0x1b5e46['href']['split']('/'),_0x2b4b5e=_0x3d198a[_0x3d198a['length']-0x1],_0x5ed919=_0x2b4b5e['split']('.')[0x1];return _0x9c3f82['fetch'](_0x1b5e46['href'])['then'](_0x27a1be=>_0x27a1be['clone']()['blob']())['then'](_0x16b812=>new _0x9c3f82['File']([_0x16b812],_0x2b4b5e,{'type':'image/'+_0x5ed919}));}}class N extends _0xdd9173{['imageEditController'];static get['requires'](){return[_0x2e3fff];}['_isEditable'];constructor(_0x5841bc){super(_0x5841bc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x19ccc0){const _0x220ceb=z(_0x19ccc0);return _0x4cc761=>!(!_0x4cc761||!_0x4cc761['is']('element','imageBlock')&&!_0x4cc761['is']('element','imageInline'))&&(!!_0x4cc761['hasAttribute']('uploadcareImageId')||!!_0x4cc761['hasAttribute']('src')&&_0x220ceb(_0x4cc761['getAttribute']('src')));}(_0x5841bc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1115b8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1115b8);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3ea1c9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ea1c9&&(_0x3ea1c9['is']('element','imageBlock')||_0x3ea1c9['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2e3fff),_0x3ea1c9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xdd9173{['refresh'](){const _0x6c4e6e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x6c4e6e&&(_0x6c4e6e['is']('element','imageBlock')||_0x6c4e6e['is']('element','imageInline')));}['execute'](_0x1a76af){const _0x44e44e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x724f08=>{_0x724f08['setAttributes'](_0x1a76af,_0x44e44e),_0x724f08['removeAttribute']('srcset',_0x44e44e),_0x724f08['removeAttribute']('sizes',_0x44e44e);});}}class m extends _0x17cd1e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2a969a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x22b098}=this;_0x22b098['commands']['add']('uploadcareImageEdit',new N(_0x22b098)),_0x22b098['commands']['add']('uploadcareImageReplace',new O(_0x22b098));}}class g extends _0x17cd1e{['_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 _0x5df493=this['editor'];_0x5df493['ui']['componentFactory']['add']('uploadcareImageEdit',_0x221d56=>{const _0x19d827=_0x5df493['commands']['get']('uploadcareImageEdit'),_0x53858f=new _0x7a9863(_0x221d56),t=_0x221d56['t'];return _0x53858f['set']({'icon':_0x2fca44,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x53858f['bind']('isEnabled')['to'](_0x19d827),_0x53858f['bind']('isOn')['to'](_0x19d827,'isActive'),this['listenTo'](_0x53858f,'execute',()=>{_0x5df493['execute']('uploadcareImageEdit'),_0x5df493['editing']['view']['focus']();}),_0x53858f;}),this['_initConfig']();}['_initConfig'](){const _0x5264bf=_0x4db309(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5264bf),this['listenTo'](this['editor'],'destroy',()=>{_0x5264bf['remove']();});}}class et extends _0x17cd1e{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,N 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':_0x5efe09=>0x1!=_0x5efe09}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x35372e=>{const {af:{dictionary:_0x3667cb,getPluralForm:_0x8338e6}}={'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':_0x46dd2c=>0x1!=_0x46dd2c}};_0x35372e['af']||={'dictionary':{},'getPluralForm':null},_0x35372e['af']['dictionary']=Object['assign'](_0x35372e['af']['dictionary'],_0x3667cb),_0x35372e['af']['getPluralForm']=_0x8338e6;})(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':_0x47435d=>0x0==_0x47435d?0x0:0x1==_0x47435d?0x1:0x2==_0x47435d?0x2:_0x47435d%0x64>=0x3&&_0x47435d%0x64<=0xa?0x3:_0x47435d%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x12a35b=>{const {ar:{dictionary:_0x50872c,getPluralForm:_0x205799}}={'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':_0x4a9d04=>0x0==_0x4a9d04?0x0:0x1==_0x4a9d04?0x1:0x2==_0x4a9d04?0x2:_0x4a9d04%0x64>=0x3&&_0x4a9d04%0x64<=0xa?0x3:_0x4a9d04%0x64>=0xb?0x4:0x5}};_0x12a35b['ar']||={'dictionary':{},'getPluralForm':null},_0x12a35b['ar']['dictionary']=Object['assign'](_0x12a35b['ar']['dictionary'],_0x50872c),_0x12a35b['ar']['getPluralForm']=_0x205799;})(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':_0x1ceddd=>0x1!=_0x1ceddd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x20bf68=>{const {ast:{dictionary:_0x50fa3d,getPluralForm:_0x4d015c}}={'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':_0xb2ec5c=>0x1!=_0xb2ec5c}};_0x20bf68['ast']||={'dictionary':{},'getPluralForm':null},_0x20bf68['ast']['dictionary']=Object['assign'](_0x20bf68['ast']['dictionary'],_0x50fa3d),_0x20bf68['ast']['getPluralForm']=_0x4d015c;})(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':_0x5b5f05=>0x1!=_0x5b5f05}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2450e4=>{const {az:{dictionary:_0x4e74dc,getPluralForm:_0x1d5a4f}}={'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':_0x469e56=>0x1!=_0x469e56}};_0x2450e4['az']||={'dictionary':{},'getPluralForm':null},_0x2450e4['az']['dictionary']=Object['assign'](_0x2450e4['az']['dictionary'],_0x4e74dc),_0x2450e4['az']['getPluralForm']=_0x1d5a4f;})(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':_0x48e918=>_0x48e918%0xa==0x1&&_0x48e918%0x64!=0xb?0x0:_0x48e918%0xa>=0x2&&_0x48e918%0xa<=0x4&&(_0x48e918%0x64<0xa||_0x48e918%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x30d719=>{const {be:{dictionary:_0x494577,getPluralForm:_0x16c7c4}}={'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':_0x26548c=>_0x26548c%0xa==0x1&&_0x26548c%0x64!=0xb?0x0:_0x26548c%0xa>=0x2&&_0x26548c%0xa<=0x4&&(_0x26548c%0x64<0xa||_0x26548c%0x64>=0x14)?0x1:0x2}};_0x30d719['be']||={'dictionary':{},'getPluralForm':null},_0x30d719['be']['dictionary']=Object['assign'](_0x30d719['be']['dictionary'],_0x494577),_0x30d719['be']['getPluralForm']=_0x16c7c4;})(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':_0x3f5de1=>0x1!=_0x3f5de1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x333571=>{const {bg:{dictionary:_0x34645b,getPluralForm:_0xeb1a67}}={'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':_0x38fc33=>0x1!=_0x38fc33}};_0x333571['bg']||={'dictionary':{},'getPluralForm':null},_0x333571['bg']['dictionary']=Object['assign'](_0x333571['bg']['dictionary'],_0x34645b),_0x333571['bg']['getPluralForm']=_0xeb1a67;})(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':_0x29af48=>0x1!=_0x29af48}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3b9abe=>{const {bn:{dictionary:_0x1c1be6,getPluralForm:_0x347d1e}}={'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':_0x1cfecf=>0x1!=_0x1cfecf}};_0x3b9abe['bn']||={'dictionary':{},'getPluralForm':null},_0x3b9abe['bn']['dictionary']=Object['assign'](_0x3b9abe['bn']['dictionary'],_0x1c1be6),_0x3b9abe['bn']['getPluralForm']=_0x347d1e;})(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':_0x7c492c=>_0x7c492c%0xa==0x1&&_0x7c492c%0x64!=0xb?0x0:_0x7c492c%0xa>=0x2&&_0x7c492c%0xa<=0x4&&(_0x7c492c%0x64<0xa||_0x7c492c%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3ffb1d=>{const {bs:{dictionary:_0x20c7b6,getPluralForm:_0x256f0b}}={'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':_0xf40109=>_0xf40109%0xa==0x1&&_0xf40109%0x64!=0xb?0x0:_0xf40109%0xa>=0x2&&_0xf40109%0xa<=0x4&&(_0xf40109%0x64<0xa||_0xf40109%0x64>=0x14)?0x1:0x2}};_0x3ffb1d['bs']||={'dictionary':{},'getPluralForm':null},_0x3ffb1d['bs']['dictionary']=Object['assign'](_0x3ffb1d['bs']['dictionary'],_0x20c7b6),_0x3ffb1d['bs']['getPluralForm']=_0x256f0b;})(window['CKEDITOR_TRANSLATIONS']||={});
|