@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250505.0 → 0.0.0-nightly-20250506.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x5b1d13,Command as _0x4ee250}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3a8e56,IconGooglePhotos as _0x4d21ec,IconGoogleDrive as _0xe73923,IconFacebook as _0x3735f7,IconDropbox as _0x235787,IconUploadcareLink as _0x2bce79,IconUploadcareImageUpload as _0xf6b6d,IconError as et,IconUploadcareImageEdit as _0x2e0263}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2a6200,MenuBarMenuListItemButtonView as _0xc787fe,View as _0x20262d,FocusCycler as _0x244f7f,Dialog as _0x3c66ac,DialogViewPosition as _0x32eb1d,SpinnerView as _0x1036e3,IconView as at,Notification as _0x5a7518}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x46b4f1,DomEmitterMixin as _0x544213,global as _0x4bf13c,getAncestors as _0x39e9f0,ObservableMixin as _0x1e28d0,createElement as _0x5e28ed,uid as _0xb05f71}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x432143}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x148ff9,info as _0x413d24}from'@uploadcare/upload-client';import*as _0x126372 from'@uploadcare/file-uploader';var o=function(_0x358df2){return _0x358df2['Local']='local',_0x358df2['URL']='url',_0x358df2['Dropbox']='dropbox',_0x358df2['GDrive']='gdrive',_0x358df2['Facebook']='facebook',_0x358df2['GPhotos']='gphotos',_0x358df2['OneDrive']='onedrive',_0x358df2;}({});function _(_0x324247,_0x1a81ee,_0x6b5525){const t=_0x324247['t'],_0x5cb585=_0x324247['t'];switch(_0x1a81ee){case o['Local']:return{'text':_0x5cb585('Insert'===_0x6b5525?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5cb585('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x6b5525?_0x5cb585('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5cb585('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x6b5525?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x6b5525?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x6b5525?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x6b5525?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x6b5525?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1a81ee;}}class e extends _0x5b1d13{['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 _0x8523ec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1a1265;for(const _0x170bf4 in _0x8523ec){const _0xeffefc=_0x170bf4,_0x1b47ce=_0x8523ec[_0xeffefc];if('uploadcareLicenseKeyValid'==_0x1b47ce||'uploadcareLicenseKeyInvalid'==_0x1b47ce||'uploadcareLicenseKeyExpired'==_0x1b47ce||'uploadcareLicenseKeyDomainLimit'==_0x1b47ce||'uploadcareLicenseKeyNotAllowed'==_0x1b47ce||'uploadcareLicenseKeyEvaluationLimit'==_0x1b47ce||'uploadcareLicenseKeyTrialLimit'==_0x1b47ce||'uploadcareLicenseKeyUsageLimit'==_0x1b47ce){delete _0x8523ec[_0xeffefc],_0x1a1265=_0x1b47ce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1a1265&&_0x8523ec['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1a1265&&_0x8523ec['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1a1265&&_0x8523ec['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1a1265&&_0x8523ec['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1a1265&&_0x8523ec['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1a1265&&_0x8523ec['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1a1265&&_0x8523ec['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5e6771}=this,_0x162ecb=_0x5e6771['commands']['get']('uploadcare');if(!_0x162ecb)return;const _0xef54cb=this['_normalizeConfigSourceList'](_0x5e6771['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x26b2ba,_0xced996)=>{const _0x369505=this['_getIntegrationKey'](_0xced996['type']);return _0x26b2ba[_0x369505]||(_0x26b2ba[_0x369505]=[]),_0x26b2ba[_0x369505]['push'](_0xced996),_0x26b2ba;},{});_0x5e6771['plugins']['has']('ImageInsertUI')&&_0x5e6771['commands']['get']('uploadcare')&&Object['entries'](_0xef54cb)['forEach'](([_0x4a1268,_0x3d1be7])=>{_0x5e6771['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4a1268,'observable':()=>_0x162ecb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3d1be7),'formViewCreator':()=>this['_createDropdownButtons'](_0x3d1be7),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3d1be7),'override':'assetManager'!==_0x4a1268});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x31a38b){const {locale:_0x3e4af7}=this['editor'];return _0x31a38b['map'](_0x4a5277=>{const _0xd20693=_(_0x3e4af7,_0x4a5277,'Insert');switch(_0x4a5277){case o['Local']:return{'icon':_0xf6b6d,'type':o['Local'],..._0xd20693};case o['URL']:return{'icon':_0x2bce79,'type':o['URL'],..._0xd20693};case o['Dropbox']:return{'icon':_0x235787,'type':o['Dropbox'],..._0xd20693};case o['Facebook']:return{'icon':_0x3735f7,'type':o['Facebook'],..._0xd20693};case o['GDrive']:return{'icon':_0xe73923,'type':o['GDrive'],..._0xd20693};case o['GPhotos']:return{'icon':_0x4d21ec,'type':o['GPhotos'],..._0xd20693};case o['OneDrive']:return{'icon':_0x3a8e56,'type':o['OneDrive'],..._0xd20693};}});}['_getIntegrationKey'](_0x3b6964){switch(_0x3b6964){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xaf9668,_0x559de1){const _0x532a13=this['editor'],_0x215074=new _0xaf9668(_0x532a13['locale']),_0x2a763a=_0x532a13['commands']['get']('uploadcare');return _0x215074['bind']('isEnabled')['to'](_0x2a763a),_0x215074['on']('execute',()=>{_0x2a763a['execute'](_0x559de1);}),_0x215074;}['_createToolbarButton'](_0x239fb3){const {locale:_0x4256f3}=this['editor'],_0x3e33ec=this['editor']['plugins']['get']('ImageInsertUI'),_0x56c231=_0x239fb3[0x0],_0xb399b9=this['_createButton'](_0x2a6200,_0x56c231['type']);return _0xb399b9['icon']=_0x56c231['icon'],_0xb399b9['bind']('label')['to'](_0x3e33ec,'isImageSelected',_0x477983=>_(_0x4256f3,_0x56c231['type'],_0x477983?'Replace':'Insert')['text']),_0xb399b9['tooltip']=!0x0,_0xb399b9;}['_createDropdownButtons'](_0x909196){const {locale:_0x463c18}=this['editor'],_0x2d78b3=this['editor']['plugins']['get']('ImageInsertUI');return _0x909196['map'](_0x86d87c=>{const _0x41c2b6=this['_createButton'](_0x2a6200,_0x86d87c['type']);return _0x41c2b6['withText']=!0x0,_0x41c2b6['icon']=_0x86d87c['icon'],_0x41c2b6['bind']('label')['to'](_0x2d78b3,'isImageSelected',_0x3fcd81=>_(_0x463c18,_0x86d87c['type'],_0x3fcd81?'Replace':'Insert')['text']),_0x41c2b6;});}['_createMenuBarButtons'](_0x315675){return _0x315675['map'](_0x126806=>{const _0x1ca3b9=this['_createButton'](_0xc787fe,_0x126806['type']);return _0x1ca3b9['icon']=_0x126806['icon'],_0x1ca3b9['label']=_0x126806['shortText'],_0x1ca3b9;});}}class q extends _0x20262d{['focusTracker'];['focusCycler'];constructor(_0x398050){super(_0x398050),this['focusTracker']=new _0x46b4f1(),this['focusCycler']=new _0x244f7f({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x4ee8e4){super(_0x4ee8e4),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x1f044a,_0x1fcb8e){const _0x46637e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x17435b=>_0x17435b<=_0x1fcb8e)['map'](_0x29514e=>_0x1f044a['replace'](/\/$/,'')+'/-/resize/'+_0x29514e+'x/\x20'+_0x29514e+'w');return{'imageFallbackUrl':_0x1f044a,'imageSources':[{'srcset':_0x46637e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1fcb8e+'px)\x20100vw,\x20'+_0x1fcb8e+'px','type':'image/webp'}]};}function A(_0x5748d9,_0x39da59,_0x44627f){const _0x2b5090=_0x5748d9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2b5090?parseInt(_0x2b5090[0x1],0xa):_0x39da59,'height':_0x2b5090?parseInt(_0x2b5090[0x2],0xa):_0x44627f};}function m(_0x1ca3ec,_0x279f29){const _0xf4d679=Object['create'](_0x544213),_0x3aace4=_0x1ca3ec['plugins']['get']('ImageUtils'),_0x5e6443=_0x1ca3ec['editing']['mapper']['toViewElement'](_0x279f29),_0x10662e=_0x3aace4['findViewImgElement'](_0x5e6443),_0x5cd78f=_0x1ca3ec['editing']['view']['domConverter']['viewToDom'](_0x10662e),_0x5a5699=_0x279f29['getAttribute']('width'),_0x3d6c1b=_0x279f29['getAttribute']('height'),_0x2ac02d='image-processing';_0x1ca3ec['editing']['view']['change'](_0x4b6ac2=>{_0x4b6ac2['addClass'](_0x2ac02d,_0x5e6443),_0x4b6ac2['setStyle']('aspect-ratio',_0x5a5699+'/'+_0x3d6c1b,_0x10662e);}),_0xf4d679['listenTo'](_0x5cd78f,'load',()=>{_0xf4d679['stopListening'](_0x5cd78f,'load'),_0x1ca3ec['editing']['view']['change'](_0x5e8eef=>{_0x5e8eef['removeClass'](_0x2ac02d,_0x5e6443),_0x5e8eef['removeStyle']('aspect-ratio',_0x10662e);});});}function V(_0x5a2331){if(Array['isArray'](_0x5a2331)){const _0x1a2b0d=_0x5a2331['map'](V);return _0xb8b368=>_0x1a2b0d['some'](_0xe60f8b=>_0xe60f8b(_0xb8b368));}if('origin'==_0x5a2331){const _0x14216a=_0x4bf13c['window']['location']['origin'];return _0x581b34=>new URL(_0x581b34,_0x4bf13c['document']['baseURI'])['origin']==_0x14216a;}return'function'==typeof _0x5a2331?_0x5a2331:_0x5a2331 instanceof RegExp?_0xd2b09d=>!(!_0xd2b09d['match'](_0x5a2331)&&!_0xd2b09d['replace'](/^https?:\/\//,'')['match'](_0x5a2331)):()=>!0x1;}function F(_0x25c387,_0x251ad6){return _0x39e9f0(_0x25c387['target'])['includes'](_0x251ad6);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1e28d0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x189aac,_0xaf8610,_0x2d66e3){super(),this['_editor']=_0x189aac,this['_editing']=_0xaf8610,this['_dialog']=_0x189aac['plugins']['get'](_0x3c66ac),this['_api']=_0xaf8610['ctxElement']['getAPI'](),this['_type']=_0x2d66e3,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:_0x38a5d3,model:_0x2ff9ae}=this['_editor'],_0x12d19d=_0x2ff9ae['document']['selection']['getSelectedElement'](),_0x28ab93=_0x12d19d&&(_0x12d19d['is']('element','imageBlock')||_0x12d19d['is']('element','imageInline'));this['_formView']=new S(_0x38a5d3),this['_dialog']['show']({'id':'uploadCare','icon':_0xf6b6d,'title':_(_0x38a5d3,this['_type'],_0x28ab93?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x32eb1d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x325b53=>!F(_0x325b53,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x147de3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2255b1=>{const _0x2e6266=_0x147de3['length'];for(const _0x20bad4 of _0x147de3){const _0xf3d066=_0x20bad4===_0x147de3[_0x2e6266-0x1],{cdnUrl:_0x6eae82,fileInfo:_0x4f38b}=_0x20bad4;if(!_0x6eae82||!_0x4f38b)continue;const {width:_0x4a9bbf,height:_0x3eec44}=_0x4f38b['imageInfo'],_0x4f4b8a=A(_0x6eae82,_0x4a9bbf,_0x3eec44),_0x81d444=E(_0x6eae82,_0x4f4b8a['width']),_0x1a4e78={'id':_0x4f38b['uuid'],'type':'image','attributes':{'imageDimension':_0x4f4b8a,..._0x81d444}};this['_insertAsset'](_0x1a4e78,_0xf3d066,_0x2255b1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5b4c18=>{'idle'===_0x5b4c18['detail']['status']&&!_0x5b4c18['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2cfbab,_0x193ae7,_0x688bd9){const _0x332a97=this['_editor']['model']['document']['selection'],_0x5e3325=_0x332a97['getSelectedElement'](),_0x1a74f0=!(!_0x5e3325||!_0x5e3325['is']('element','imageInline'));_0x688bd9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2cfbab,_0x1a74f0),_0x193ae7||_0x688bd9['setSelection'](_0x332a97['getLastPosition']());}['_insertImage'](_0x112036,_0x5de56c){const _0x4db1a7=this['_editor'],{imageDimension:_0x5491c0,imageFallbackUrl:_0x590ef4,imageSources:_0x24d4b8}=_0x112036['attributes'];_0x4db1a7['execute']('insertImage',{'imageType':_0x5de56c?'imageInline':null,'source':{'uploadcareImageId':_0x112036['id'],'src':_0x590ef4,'sources':_0x24d4b8,..._0x5491c0}});}}class n extends _0x4ee250{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c66ac,i];}constructor(_0x198617){super(_0x198617),this['_editing']=_0x198617['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xc9f555){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xc9f555);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x366bf4,publicKey:_0x499a8a,signal:_0x35137a,onProgress:_0x2cd2ce}){return _0x148ff9(_0x366bf4,{'publicKey':_0x499a8a,'store':'auto','signal':_0x35137a,'onProgress':_0x2cd2ce});}static['getInfo'](_0x3875e4,_0x51a549){return _0x413d24(_0x3875e4,_0x51a549);}}class p extends _0x5b1d13{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x432143,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1d4089=this['editor'];if(!!!_0x1d4089['config']['get']('uploadcare'))return;_0x1d4089['plugins']['get'](_0x432143)['createUploadAdapter']=_0x483f3c=>new x(_0x483f3c,_0x1d4089),_0x1d4089['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3d6603,{imageElement:_0x2634d8,data:_0x30edaa})=>{_0x1d4089['model']['change'](_0x474c1f=>{_0x474c1f['setAttribute']('uploadcareImageId',_0x30edaa['uploadcareImageId'],_0x2634d8);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x13352c,_0x242c01){this['loader']=_0x13352c,this['editor']=_0x242c01,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3c9277=this['editor']['config']['get']('uploadcare.pubkey'),_0x2c7533=await this['loader']['file'];return C['upload']({'file':_0x2c7533,'publicKey':_0x3c9277,'signal':this['controller']['signal'],'onProgress':_0x163dc1=>{_0x163dc1&&_0x163dc1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x163dc1['value']);}})['then'](async _0x1f58dc=>{const {imageFallbackUrl:_0x49368e,imageSources:_0x3b8124}=E(_0x1f58dc['cdnUrl'],_0x1f58dc['imageInfo']['width']);return{'uploadcareImageId':_0x1f58dc['uuid'],'default':_0x49368e,'sources':_0x3b8124};})['catch'](()=>{const _0x3b6de5=t('Cannot\x20upload\x20file:')+('\x20'+_0x2c7533['name']+'.');return Promise['reject'](_0x3b6de5);});}['abort'](){this['controller']['abort']();}}class i extends _0x5b1d13{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3c66ac];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2518b4=this['editor'];_0x2518b4['commands']['add']('uploadcare',new n(_0x2518b4));}['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 _0x4c661a=_0x4bf13c['document']['querySelector']('input[uploadcare-file-input]');_0x4c661a&&_0x4c661a['remove']();}),async function(_0x465d9a){const _0x4dcc20=_0x4d49a2([0x72,0x41,0x46,0x50,0x65,0x32,0x6e,0x61,0x54,0x43,0x69,0x70,0x44,0x6b,0x64,0x5a,0x52,0x38,0x42,0x7a,0x79,0x39,0x30,0x31,0x77,0x6a,0x6c,0x78,0x4c,0x4b,0x47,0x51,0x71,0x55,0x36,0x74,0x4a,0x58,0x59,0x53,0x33,0x56,0x34,0x37,0x4f,0x76,0x66,0x6f,0x75,0x4e,0x62,0x48,0x63,0x35,0x68,0x73,0x67,0x4d,0x45,0x6d,0x57,0x49]),_0x1b749a=0x7e4e0e51,_0x9a0475=0x7e4968a9^_0x1b749a,_0x32ae55=window[_0x4d49a2([0x44,0x61,0x74,0x65])][_0x4d49a2([0x6e,0x6f,0x77])](),_0x260945=_0x465d9a[_0x4d49a2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a118d=new window[(_0x4d49a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21b929=>{_0x260945[_0x4d49a2([0x6f,0x6e,0x63,0x65])](_0x4d49a2([0x72,0x65,0x61,0x64,0x79]),_0x21b929);}),_0xacfb15={[_0x4d49a2([0x6b,0x74,0x79])]:_0x4d49a2([0x45,0x43]),[_0x4d49a2([0x75,0x73,0x65])]:_0x4d49a2([0x73,0x69,0x67]),[_0x4d49a2([0x63,0x72,0x76])]:_0x4d49a2([0x50,0x2d,0x32,0x35,0x36]),[_0x4d49a2([0x78])]:_0x4d49a2([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]),[_0x4d49a2([0x79])]:_0x4d49a2([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]),[_0x4d49a2([0x61,0x6c,0x67])]:_0x4d49a2([0x45,0x53,0x32,0x35,0x36])},_0x313e45=_0x260945[_0x4d49a2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d49a2([0x67,0x65,0x74])](_0x4d49a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x43422f(){let _0x369ce5,_0x1bda55=null,_0x48a329=null;try{if(_0x313e45==_0x4d49a2([0x47,0x50,0x4c]))return _0x4d49a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x369ce5=_0x11a001(),!_0x369ce5)return _0x4d49a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x369ce5[_0x4d49a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48a329=_0x1a9c74(_0x369ce5[_0x4d49a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x369ce5[_0x4d49a2([0x6a,0x74,0x69])])),await _0x4186fa()?_0x3dad4f()?_0x16a7a9()?_0x4d49a2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x424ec1()?(_0x369ce5[_0x4d49a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d49a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1bda55=_0x5b13e9(_0x4d49a2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x369ce5[_0x4d49a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d49a2([0x74,0x72,0x69,0x61,0x6c])&&(_0x1bda55=_0x5b13e9(_0x4d49a2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54c86e()):_0x4d49a2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d49a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d49a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5304ee){return _0x4d49a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x16a7a9(){const _0x136111=[_0x4d49a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d49a2([0x74,0x72,0x69,0x61,0x6c])][_0x4d49a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x369ce5[_0x4d49a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32ae55/0x3e8:0xe10*_0x9a0475;return _0x369ce5[_0x4d49a2([0x65,0x78,0x70])]<_0x136111;}function _0x3dad4f(){const _0x1ab193=_0x369ce5[_0x4d49a2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1ab193&&(!!_0x1ab193[_0x4d49a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d49a2([0x2a]))||!!_0x1ab193[_0x4d49a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d49a2([0x55,0x50,0x4c,0x43])));}function _0x424ec1(){const _0x4a08b6=_0x369ce5[_0x4d49a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a08b6||0x0==_0x4a08b6[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x503601}=new URL(window[_0x4d49a2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a08b6[_0x4d49a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x503601))return!0x0;const _0x369b99=_0x503601[_0x4d49a2([0x73,0x70,0x6c,0x69,0x74])](_0x4d49a2([0x2e]));return _0x4a08b6[_0x4d49a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d13b1=>_0x5d13b1[_0x4d49a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d49a2([0x2a])))[_0x4d49a2([0x6d,0x61,0x70])](_0x575c7a=>_0x575c7a[_0x4d49a2([0x73,0x70,0x6c,0x69,0x74])](_0x4d49a2([0x2e])))[_0x4d49a2([0x73,0x6f,0x6d,0x65])](_0x82ed8d=>_0x369b99[_0x4d49a2([0x65,0x76,0x65,0x72,0x79])]((_0x410c5b,_0x3c3e8a)=>_0x82ed8d[_0x3c3e8a]===_0x410c5b||_0x82ed8d[_0x3c3e8a]===_0x4d49a2([0x2a])));}function _0x54c86e(){return _0x1bda55&&_0x48a329?new window[(_0x4d49a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa90921,_0x5aebee)=>{_0x1bda55[_0x4d49a2([0x74,0x68,0x65,0x6e])](_0xa90921,_0x5aebee),_0x48a329[_0x4d49a2([0x74,0x68,0x65,0x6e])](_0x15f4aa=>{_0x15f4aa!=_0x4d49a2([0x56,0x61,0x6c,0x69,0x64])&&_0xa90921(_0x15f4aa);},_0x5aebee);}):_0x1bda55||_0x48a329||_0x4d49a2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a9c74(_0x2c08e1,_0x2b9426){return new window[(_0x4d49a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47bc55=>{if(_0x4b2fc2())return _0x47bc55(_0x4d49a2([0x56,0x61,0x6c,0x69,0x64]));_0xc6d5a7(),_0x260945[_0x4d49a2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d49a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ab1af=!0x1;const _0x120ac2=_0xb05f71();function _0x463e5e(_0x1a4fa8){return!!_0x1a4fa8&&(typeof _0x1a4fa8===_0x4d49a2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a4fa8===_0x4d49a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a4fa8[_0x4d49a2([0x74,0x68,0x65,0x6e])]===_0x4d49a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a4fa8[_0x4d49a2([0x63,0x61,0x74,0x63,0x68])]===_0x4d49a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3221b(_0x57a494){_0x575bf1(_0x57a494)[_0x4d49a2([0x74,0x68,0x65,0x6e])](_0x161ad2=>{if(!_0x161ad2||_0x161ad2[_0x4d49a2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d49a2([0x6f,0x6b]))return _0x4d49a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x410f2a(_0x44cb8e(_0x120ac2+_0x2b9426))!=_0x161ad2[_0x4d49a2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d49a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d49a2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d49a2([0x74,0x68,0x65,0x6e])](_0x3b4be2=>(_0x4abe64(),_0x3b4be2),()=>{const _0x48389d=_0x49f984();return null==_0x48389d?(_0x4abe64(),_0x4d49a2([0x56,0x61,0x6c,0x69,0x64])):_0x4d49a2(_0x32ae55-_0x48389d>(0x5a428a51^_0x1b749a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d49a2([0x74,0x68,0x65,0x6e])](_0x47bc55)[_0x4d49a2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x47bc55(_0x4d49a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35bf40=0x7e78e0d1^_0x1b749a;function _0x4abe64(){const _0x197550=_0x4d49a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x410f2a(_0x44cb8e(_0x2c08e1)),_0x1de96f=_0x38a972(_0x410f2a(window[_0x4d49a2([0x4d,0x61,0x74,0x68])][_0x4d49a2([0x63,0x65,0x69,0x6c])](_0x32ae55/_0x35bf40)));window[_0x4d49a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d49a2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x197550,_0x1de96f);}function _0x49f984(){const _0x5ec7f4=_0x4d49a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x410f2a(_0x44cb8e(_0x2c08e1)),_0x152abc=window[_0x4d49a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d49a2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ec7f4);return _0x152abc?window[_0x4d49a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38a972(_0x152abc),0x10)*_0x35bf40:null;}function _0x575bf1(_0xa02573){return new window[(_0x4d49a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x439301,_0x747ba5)=>{_0xa02573[_0x4d49a2([0x74,0x68,0x65,0x6e])](_0x439301,_0x747ba5),window[_0x4d49a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x747ba5,0x7e4fda91^_0x1b749a);});}}_0x260945[_0x4d49a2([0x6f,0x6e])](_0x4d49a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40c4d7,_0x541df8)=>{if(_0x541df8[0x0]!=_0x2c08e1)return _0x47bc55(_0x4d49a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x541df8[0x1]={..._0x541df8[0x1],[_0x4d49a2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x120ac2};},{[_0x4d49a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d49a2([0x68,0x69,0x67,0x68])}),_0x260945[_0x4d49a2([0x6f,0x6e])](_0x4d49a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc91e03=>{_0x463e5e(_0xc91e03[_0x4d49a2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ab1af=!0x0,_0x3221b(_0xc91e03[_0x4d49a2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d49a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d49a2([0x6c,0x6f,0x77])}),_0x2a118d[_0x4d49a2([0x74,0x68,0x65,0x6e])](()=>{_0x2ab1af||_0x47bc55(_0x4d49a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b2fc2(){return _0x260945[_0x4d49a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d49a2([0x76,0x69,0x65,0x77])][_0x4d49a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d49a2([0x61,0x75,0x74,0x6f]);}function _0xc6d5a7(){_0x260945[_0x4d49a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d49a2([0x76,0x69,0x65,0x77])][_0x4d49a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d49a2([0x61,0x75,0x74,0x6f]);}}function _0x5b13e9(_0x783dfe){const _0x2b6efb=[new window[(_0x4d49a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x189de5=>setTimeout(_0x189de5,0x7e47309d^_0x1b749a)),_0x2a118d[_0x4d49a2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d49a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ae7e0=>{let _0x22ac2b=0x0;_0x260945[_0x4d49a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d49a2([0x6f,0x6e])](_0x4d49a2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x45c53d,_0x20ad74)=>{_0x20ad74[0x0][_0x4d49a2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x22ac2b++,_0x22ac2b==(0x7e4e0fa9^_0x1b749a)&&(_0x2ae7e0(),_0x45c53d[_0x4d49a2([0x6f,0x66,0x66])]());});}))];return window[_0x4d49a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d49a2([0x72,0x61,0x63,0x65])](_0x2b6efb)[_0x4d49a2([0x74,0x68,0x65,0x6e])](()=>_0x783dfe);}async function _0x2840e4(){await _0x2a118d,_0x260945[_0x4d49a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d49a2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x32c9d9,_0x260945[_0x4d49a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d49a2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x32c9d9,_0x260945[_0x4d49a2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d49a2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54b387(_0x298be0){const _0x48761f=_0x2c949e();_0x260945[_0x48761f]=_0x4d49a2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x298be0,_0x298be0!=_0x4d49a2([0x56,0x61,0x6c,0x69,0x64])&&_0x2840e4();}function _0x2c949e(){const _0x788a61=window[_0x4d49a2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d49a2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d49a2([0x6e,0x6f,0x77])]())[_0x4d49a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d49a2([0x2e]),'');let _0x1174d0=_0x4d49a2([0x72]);for(let _0x6db533=0x0;_0x6db533<_0x788a61[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6db533+=0x2){let _0x3542ee=window[_0x4d49a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x788a61[_0x4d49a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6db533,_0x6db533+0x2));_0x3542ee>=_0x4dcc20[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3542ee-=_0x4dcc20[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1174d0+=_0x4dcc20[_0x3542ee];}return _0x1174d0;}function _0x11a001(){const _0xb416ae=_0x313e45[_0x4d49a2([0x73,0x70,0x6c,0x69,0x74])](_0x4d49a2([0x2e]));if(0x3!=_0xb416ae[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4a983c(_0xb416ae[0x1]);function _0x4a983c(_0x48787c){const _0x33e678=_0x5c2a97(_0x48787c);return _0x33e678&&_0x482835()?_0x33e678:null;function _0x482835(){const _0x89ad2a=_0x33e678[_0x4d49a2([0x6a,0x74,0x69])],_0x4be99e=window[_0x4d49a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x89ad2a[_0x4d49a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x89ad2a[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e24e4={..._0x33e678,[_0x4d49a2([0x6a,0x74,0x69])]:_0x89ad2a[_0x4d49a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x89ad2a[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e24e4[_0x4d49a2([0x76,0x63])],_0x44cb8e(_0x1e24e4)==_0x4be99e;}}}async function _0x4186fa(){let _0x35e0c6=!0x0;try{const _0x24d3a4=_0x313e45[_0x4d49a2([0x73,0x70,0x6c,0x69,0x74])](_0x4d49a2([0x2e])),[_0x468bdf,_0x11aa86,_0x5b3507]=_0x24d3a4;return _0x5141ec(_0x468bdf),await _0x58dbe0(_0x468bdf,_0x11aa86,_0x5b3507),_0x35e0c6;}catch(_0x58f480){return!0x1;}function _0x5141ec(_0x2cf7f2){const _0x3b7945=_0x5c2a97(_0x2cf7f2);_0x3b7945&&_0x3b7945[_0x4d49a2([0x61,0x6c,0x67])]==_0x4d49a2([0x45,0x53,0x32,0x35,0x36])||(_0x35e0c6=!0x1);}async function _0x58dbe0(_0x381b29,_0x807158,_0x4a4786){const _0x1d3b83=window[_0x4d49a2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d49a2([0x66,0x72,0x6f,0x6d])](_0x25836d(_0x4a4786),_0x3bf4f1=>_0x3bf4f1[_0x4d49a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b8b36=new window[(_0x4d49a2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d49a2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x381b29+_0x4d49a2([0x2e])+_0x807158),_0x529192=window[_0x4d49a2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d49a2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x529192)return;const _0x1e0e9a=await _0x529192[_0x4d49a2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d49a2([0x6a,0x77,0x6b]),_0xacfb15,{[_0x4d49a2([0x6e,0x61,0x6d,0x65])]:_0x4d49a2([0x45,0x43,0x44,0x53,0x41]),[_0x4d49a2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d49a2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d49a2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x529192[_0x4d49a2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d49a2([0x6e,0x61,0x6d,0x65])]:_0x4d49a2([0x45,0x43,0x44,0x53,0x41]),[_0x4d49a2([0x68,0x61,0x73,0x68])]:{[_0x4d49a2([0x6e,0x61,0x6d,0x65])]:_0x4d49a2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e0e9a,_0x1d3b83,_0x3b8b36)||(_0x35e0c6=!0x1);}}function _0x5c2a97(_0x18bae5){return _0x18bae5[_0x4d49a2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d49a2([0x65,0x79]))?JSON[_0x4d49a2([0x70,0x61,0x72,0x73,0x65])](_0x25836d(_0x18bae5)):null;}function _0x25836d(_0x34272d){return window[_0x4d49a2([0x61,0x74,0x6f,0x62])](_0x34272d[_0x4d49a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d49a2([0x2b]))[_0x4d49a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d49a2([0x2f])));}function _0x44cb8e(_0x48ad94){let _0x1f919c=0x1505;function _0x275b89(_0x1c90c0){for(let _0x3fce44=0x0;_0x3fce44<_0x1c90c0[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fce44++){const _0x5083de=_0x1c90c0[_0x4d49a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3fce44);_0x1f919c=(_0x1f919c<<0x5)+_0x1f919c+_0x5083de,_0x1f919c&=_0x1f919c;}}function _0x13bfde(_0x35e685){Array[_0x4d49a2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35e685)?_0x35e685[_0x4d49a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x13bfde):_0x35e685&&typeof _0x35e685==_0x4d49a2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d49a2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35e685)[_0x4d49a2([0x73,0x6f,0x72,0x74])]()[_0x4d49a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x282946,_0x2a54fd])=>{_0x275b89(_0x282946),_0x13bfde(_0x2a54fd);}):_0x275b89(window[_0x4d49a2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35e685));}return _0x13bfde(_0x48ad94),_0x1f919c>>>0x0;}function _0x410f2a(_0x3705f0){return _0x3705f0[_0x4d49a2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d49a2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d49a2([0x30]));}function _0x38a972(_0xac63ea){return _0xac63ea[_0x4d49a2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d49a2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d49a2([0x6a,0x6f,0x69,0x6e])]('');}function _0x32c9d9(){}function _0x4d49a2(_0x4fdd0a){return _0x4fdd0a['map'](_0x4a9df2=>String['fromCharCode'](_0x4a9df2))['join']('');}_0x54b387(await _0x43422f());}(this);}['_initSchema'](){const _0x4388ee=this['editor']['model']['schema'];_0x4388ee['isRegistered']('imageBlock')&&_0x4388ee['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4388ee['isRegistered']('imageInline')&&_0x4388ee['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5663ab=this['editor'];_0x5663ab['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5663ab['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x422826=>_0x422826['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x422462=_0x5663ab['commands']['get']('replaceImageSource');_0x422462&&this['listenTo'](_0x422462,'cleanupImage',(_0x2b99ba,[_0x14a82e,_0x24a5a9])=>{_0x14a82e['removeAttribute']('uploadcareImageId',_0x24a5a9);});}['_initConfig'](){const _0x253045=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1abf12=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5e28ed(_0x4bf13c['document'],'uc-config',{..._0x253045,'pubkey':_0x1abf12,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x349964=>{if('closeMax'==_0x349964)return'#uc-icon-arrow-down';},_0x4bf13c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5e28ed(_0x4bf13c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4bf13c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1162d6=this['editor']['commands']['get']('insertImage');_0x1162d6&&this['listenTo'](_0x1162d6,'execute',()=>{const _0x1b0733=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1b0733&&_0x1b0733['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1b0733);});});const _0x2e2e3b=this['editor']['commands']['get']('uploadcareImageReplace');_0x2e2e3b&&this['listenTo'](_0x2e2e3b,'execute',()=>{const _0x3ebc4b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ebc4b&&_0x3ebc4b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3ebc4b);});});}}class u extends _0x5b1d13{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x107a00){super(_0x107a00),_0x107a00['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x126372['defineComponents'](_0x126372);}}class ta extends _0x20262d{constructor(_0x41b2d8){super(_0x41b2d8);const t=_0x41b2d8['t'],_0x1cb776=this['bindTemplate'],_0x545a13=new _0x1036e3();_0x545a13['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':[_0x545a13,{'text':_0x1cb776['to']('imageUploadProgress',_0x51ce31=>t('Loading\x20image...')+'\x20('+(_0x51ce31||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x20262d{constructor(_0x1d2b14){super(_0x1d2b14);const t=_0x1d2b14['t'];this['set']('errorType',null);const _0x1069d1=new _0x2a6200(_0x1d2b14);_0x1069d1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1069d1['withText']=!0x0,_0x1069d1['class']='ck-button-action',_0x1069d1['on']('execute',()=>{this['fire']('retry');}),_0x1069d1['bind']('isVisible')['to'](this,'errorType',_0x475659=>'NotFound'!==_0x475659);const _0x44d6fa=new at();_0x44d6fa['content']=et,_0x44d6fa['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f0a0b=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':[_0x44d6fa,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f0a0b['to']('errorType',_0x1afa6a=>t('NotFound'!==_0x1afa6a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1069d1]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x20262d{constructor(_0x5445d9,_0x4d2799){super(_0x5445d9);const _0x4e2157=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4d2799,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4e2157['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4bfc7a,_0x3f3fea,_0xa94dcf){super(_0x4bfc7a),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4bfc7a),this['_errorView']=new rt(_0x4bfc7a),this['_editingView']=new tt(_0x4bfc7a,_0xa94dcf),this['_focusableView']=new _0x20262d(_0x4bfc7a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f3fea),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'],_0x3f5d82=>{this['_addUploadcareImageEditorListeners'](_0x3f5d82);});}),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'](_0x4fd6e9,_0x1e645c){const _0x1d1484='uc-cloud-image-editor',_0x4246cd=_0x4fd6e9['querySelector'](_0x1d1484);if(_0x4246cd)return _0x1e645c(_0x4246cd);const _0x2e0ee3=new MutationObserver(_0x154b54=>{const _0x1f2fb9=_0x154b54['filter'](_0x2522cd=>_0x2522cd['target']===_0x4fd6e9&&_0x2522cd['addedNodes']['length']>0x0&&_0x2522cd['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1d1484);_0x1f2fb9['length']&&(_0x2e0ee3['disconnect'](),_0x1e645c(_0x1f2fb9[0x0]['addedNodes'][0x0]));});_0x2e0ee3['observe'](_0x4fd6e9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x476747){_0x476747['addEventListener']('apply',_0x2e7327=>{this['fire']('apply',{'imageSrc':_0x2e7327['detail']['cdnUrl']});}),_0x476747['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1e28d0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x35811c,_0x63082f,_0x3941c4){super(),this['_editor']=_0x35811c,this['_dialog']=_0x63082f,this['_imageElement']=_0x3941c4,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 _0x460aac=this['_imageElement'],_0x5935b8=_0x460aac['getAttribute']('uploadcareImageId'),_0x286b70=_0x460aac['getAttribute']('src');if(_0x5935b8)await this['_loadImageInfo'](_0x5935b8,_0x286b70);else{if(this['_imageCache']['has'](_0x286b70)){const _0x25ece1=this['_imageCache']['get'](_0x286b70);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25ece1['url'],this['imageDimension']=_0x25ece1['dimension'],this['imageId']=_0x25ece1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3dddd2}=this['_editor'],t=_0x3dddd2['t'],_0x1ff1e0=new Z(_0x3dddd2,this['imageStatus'],this['_attributes']);_0x1ff1e0['bind']('status')['to'](this,'imageStatus'),_0x1ff1e0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1ff1e0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1ff1e0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1ff1e0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2e0263,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1ff1e0,'position':_0x32eb1d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1ff1e0['focus']();},'onHide':()=>{_0x1ff1e0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3fb08e=>!F(_0x3fb08e,_0x1ff1e0['element'])}});}['_loadImageInfo'](_0xbdff9c,_0x24de2f){return C['getInfo'](_0xbdff9c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1770ed=>{const {width:_0x61522b,height:_0x209c99}=_0x1770ed['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24de2f,this['imageDimension']={'width':_0x61522b,'height':_0x209c99},this['imageId']=_0xbdff9c;})['catch'](_0x4f7dd1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f7dd1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5a52c1,_0x19c00b){return this['_getImageAsFile'](_0x5a52c1)['then'](_0x3c1ec6=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x19c00b['signal'],'file':_0x3c1ec6,'onProgress':_0x4417cd=>{_0x4417cd&&_0x4417cd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4417cd['value']));}}))['then'](_0x4a64d1=>{const {width:_0xee0d41,height:_0x59609b}=_0x4a64d1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a64d1['cdnUrl'],this['imageDimension']={'width':_0xee0d41,'height':_0x59609b},this['imageId']=_0x4a64d1['uuid'],this['imageUploadProgress']=null;const _0x61ca23=_0x5a52c1['getAttribute']('src');this['_imageCache']['set'](_0x61ca23,{'id':_0x4a64d1['uuid'],'url':_0x4a64d1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x57f8d7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x57f8d7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x419e5c,_0x29b47b){_0x419e5c['on']('apply',(_0x32ab42,_0xbe1210)=>{this['_replaceImage'](_0x29b47b,_0xbe1210['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x419e5c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x419e5c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x319019,_0x1b979c,_0x31a471){const _0x11dff5=this['_editor'],{width:_0x37c243,height:_0x523ca2}=A(_0x1b979c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xad48d6,imageSources:_0x5f4631}=E(_0x1b979c,_0x37c243);_0x11dff5['model']['change'](_0x16af6d=>{if('$graveyard'===_0x319019['root']['rootName']){_0x11dff5['execute']('insertImage',{'imageType':_0x319019['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x319019['getAttributes']()),'uploadcareImageId':_0x31a471,'src':_0xad48d6,'sources':_0x5f4631,'width':_0x37c243,'height':_0x523ca2}});const _0x5acd7a=_0x319019['getChildren']();_0x319019=_0x11dff5['model']['document']['selection']['getSelectedElement']();for(const _0x366b74 of _0x5acd7a)_0x16af6d['append'](_0x16af6d['cloneElement'](_0x366b74),_0x319019);}else _0x16af6d['setSelection'](_0x319019,'on'),_0x11dff5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x319019['getAttributes']()),'uploadcareImageId':_0x31a471,'src':_0xad48d6,'sources':_0x5f4631,'width':_0x37c243,'height':_0x523ca2},_0x319019);_0x16af6d['setSelection'](_0x319019,'on');});}async['_getImageAsFile'](_0x36f571){const _0x2572e8=_0x4bf13c['window'],_0x1932dc=_0x4bf13c['document']['location']['href'],_0x4b29d0=new _0x2572e8['URL'](_0x36f571['getAttribute']('src'),_0x1932dc);if('data:'===_0x4b29d0['protocol']){const _0x2cb3b3=_0x4b29d0['href']['split'](','),_0x52aaf4=_0x2cb3b3[0x0]['match'](/:(.*?);/)[0x1],_0x30ed76=_0x52aaf4['split']('/')[0x1],_0x4abfbf=_0x2572e8['atob'](_0x2cb3b3[_0x2cb3b3['length']-0x1]);let _0x3dfc08=_0x4abfbf['length'];const _0x42ff25=new _0x2572e8['Uint8Array'](_0x3dfc08);for(;_0x3dfc08--;)_0x42ff25[_0x3dfc08]=_0x4abfbf['charCodeAt'](_0x3dfc08);return new _0x2572e8['File']([_0x42ff25],'image.'+_0x30ed76,{'type':_0x52aaf4});}const _0x26fc81=_0x4b29d0['href']['split']('/'),_0x4db863=_0x26fc81[_0x26fc81['length']-0x1],_0x143bc7=_0x4db863['split']('.')[0x1];return _0x2572e8['fetch'](_0x4b29d0['href'])['then'](_0x320386=>_0x320386['clone']()['blob']())['then'](_0x4a5fdb=>new _0x2572e8['File']([_0x4a5fdb],_0x4db863,{'type':'image/'+_0x143bc7}));}}class J extends _0x4ee250{['imageEditController'];static get['requires'](){return[_0x3c66ac];}['_isEditable'];constructor(_0x51bb8d){super(_0x51bb8d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x7b5efe){const _0x300c08=V(_0x7b5efe);return _0x2f4d3b=>!(!_0x2f4d3b||!_0x2f4d3b['is']('element','imageBlock')&&!_0x2f4d3b['is']('element','imageInline'))&&(!!_0x2f4d3b['hasAttribute']('uploadcareImageId')||!!_0x2f4d3b['hasAttribute']('src')&&_0x300c08(_0x2f4d3b['getAttribute']('src')));}(_0x51bb8d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x7c967c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x7c967c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x179fb0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x179fb0&&(_0x179fb0['is']('element','imageBlock')||_0x179fb0['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3c66ac),_0x179fb0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x4ee250{['refresh'](){const _0x765b46=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x765b46&&(_0x765b46['is']('element','imageBlock')||_0x765b46['is']('element','imageInline')));}['execute'](_0x1aee86){const _0x545d75=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x47535b=>{_0x47535b['setAttributes'](_0x1aee86,_0x545d75),_0x47535b['removeAttribute']('srcset',_0x545d75),_0x47535b['removeAttribute']('sizes',_0x545d75);});}}class g extends _0x5b1d13{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5a7518,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x245c3a}=this;_0x245c3a['commands']['add']('uploadcareImageEdit',new J(_0x245c3a)),_0x245c3a['commands']['add']('uploadcareImageReplace',new O(_0x245c3a));}}class j extends _0x5b1d13{['_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 _0x4f2e5c=this['editor'];_0x4f2e5c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a76fe=>{const _0x5af3e2=_0x4f2e5c['commands']['get']('uploadcareImageEdit'),_0x287168=new _0x2a6200(_0x3a76fe),t=_0x3a76fe['t'];return _0x287168['set']({'icon':_0x2e0263,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x287168['bind']('isEnabled')['to'](_0x5af3e2),_0x287168['bind']('isOn')['to'](_0x5af3e2,'isActive'),this['listenTo'](_0x287168,'execute',()=>{_0x4f2e5c['execute']('uploadcareImageEdit'),_0x4f2e5c['editing']['view']['focus']();}),_0x287168;}),this['_initConfig']();}['_initConfig'](){const _0x29df1e=_0x5e28ed(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x29df1e),this['listenTo'](this['editor'],'destroy',()=>{_0x29df1e['remove']();});}}class P extends _0x5b1d13{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x79a8c5,Command as _0x5e7094}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x448248,IconGooglePhotos as _0x482beb,IconGoogleDrive as _0x502eb7,IconFacebook as _0x3489c7,IconDropbox as _0x4f385e,IconUploadcareLink as _0x5c1b0b,IconUploadcareImageUpload as _0x584594,IconError as et,IconUploadcareImageEdit as _0x162254}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x476c2a,MenuBarMenuListItemButtonView as _0x28c7ac,View as _0x149404,FocusCycler as _0x347a40,Dialog as _0x536fd3,DialogViewPosition as _0x4da90c,SpinnerView as _0x37a556,IconView as at,Notification as _0x717c84}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x404c06,DomEmitterMixin as _0x547cf7,global as _0x130db3,getAncestors as _0x202227,ObservableMixin as _0xc9969b,createElement as _0x54f883,uid as _0x36b187}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4eefcf}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4c80cd,info as _0x5875d5}from'@uploadcare/upload-client';import*as _0x4818de from'@uploadcare/file-uploader';var o=function(_0x5f5424){return _0x5f5424['Local']='local',_0x5f5424['URL']='url',_0x5f5424['Dropbox']='dropbox',_0x5f5424['GDrive']='gdrive',_0x5f5424['Facebook']='facebook',_0x5f5424['GPhotos']='gphotos',_0x5f5424['OneDrive']='onedrive',_0x5f5424;}({});function _(_0x559659,_0x5369f3,_0x303db0){const t=_0x559659['t'],_0x22ed1e=_0x559659['t'];switch(_0x5369f3){case o['Local']:return{'text':_0x22ed1e('Insert'===_0x303db0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x22ed1e('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x303db0?_0x22ed1e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x22ed1e('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x303db0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x303db0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x303db0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x303db0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x303db0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5369f3;}}class e extends _0x79a8c5{['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 _0x558f7a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x56568e;for(const _0x164974 in _0x558f7a){const _0x1ad230=_0x164974,_0x445b19=_0x558f7a[_0x1ad230];if('uploadcareLicenseKeyValid'==_0x445b19||'uploadcareLicenseKeyInvalid'==_0x445b19||'uploadcareLicenseKeyExpired'==_0x445b19||'uploadcareLicenseKeyDomainLimit'==_0x445b19||'uploadcareLicenseKeyNotAllowed'==_0x445b19||'uploadcareLicenseKeyEvaluationLimit'==_0x445b19||'uploadcareLicenseKeyTrialLimit'==_0x445b19||'uploadcareLicenseKeyUsageLimit'==_0x445b19){delete _0x558f7a[_0x1ad230],_0x56568e=_0x445b19,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x56568e&&_0x558f7a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x56568e&&_0x558f7a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x56568e&&_0x558f7a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x56568e&&_0x558f7a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x56568e&&_0x558f7a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x56568e&&_0x558f7a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x56568e&&_0x558f7a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xf8869a}=this,_0x3a39e3=_0xf8869a['commands']['get']('uploadcare');if(!_0x3a39e3)return;const _0x276cf5=this['_normalizeConfigSourceList'](_0xf8869a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5c13bb,_0x6bfedb)=>{const _0x850e61=this['_getIntegrationKey'](_0x6bfedb['type']);return _0x5c13bb[_0x850e61]||(_0x5c13bb[_0x850e61]=[]),_0x5c13bb[_0x850e61]['push'](_0x6bfedb),_0x5c13bb;},{});_0xf8869a['plugins']['has']('ImageInsertUI')&&_0xf8869a['commands']['get']('uploadcare')&&Object['entries'](_0x276cf5)['forEach'](([_0x796e73,_0x6894e9])=>{_0xf8869a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x796e73,'observable':()=>_0x3a39e3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x6894e9),'formViewCreator':()=>this['_createDropdownButtons'](_0x6894e9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x6894e9),'override':'assetManager'!==_0x796e73});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x14e1f9){const {locale:_0x3c7be7}=this['editor'];return _0x14e1f9['map'](_0x471604=>{const _0x2b0c04=_(_0x3c7be7,_0x471604,'Insert');switch(_0x471604){case o['Local']:return{'icon':_0x584594,'type':o['Local'],..._0x2b0c04};case o['URL']:return{'icon':_0x5c1b0b,'type':o['URL'],..._0x2b0c04};case o['Dropbox']:return{'icon':_0x4f385e,'type':o['Dropbox'],..._0x2b0c04};case o['Facebook']:return{'icon':_0x3489c7,'type':o['Facebook'],..._0x2b0c04};case o['GDrive']:return{'icon':_0x502eb7,'type':o['GDrive'],..._0x2b0c04};case o['GPhotos']:return{'icon':_0x482beb,'type':o['GPhotos'],..._0x2b0c04};case o['OneDrive']:return{'icon':_0x448248,'type':o['OneDrive'],..._0x2b0c04};}});}['_getIntegrationKey'](_0x2576bb){switch(_0x2576bb){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x59e10b,_0x25b1f7){const _0x141fda=this['editor'],_0x4505d5=new _0x59e10b(_0x141fda['locale']),_0x5db78c=_0x141fda['commands']['get']('uploadcare');return _0x4505d5['bind']('isEnabled')['to'](_0x5db78c),_0x4505d5['on']('execute',()=>{_0x5db78c['execute'](_0x25b1f7);}),_0x4505d5;}['_createToolbarButton'](_0xf0b776){const {locale:_0x5d2a93}=this['editor'],_0x1ed6e8=this['editor']['plugins']['get']('ImageInsertUI'),_0x3d6892=_0xf0b776[0x0],_0x45f20a=this['_createButton'](_0x476c2a,_0x3d6892['type']);return _0x45f20a['icon']=_0x3d6892['icon'],_0x45f20a['bind']('label')['to'](_0x1ed6e8,'isImageSelected',_0x3f255d=>_(_0x5d2a93,_0x3d6892['type'],_0x3f255d?'Replace':'Insert')['text']),_0x45f20a['tooltip']=!0x0,_0x45f20a;}['_createDropdownButtons'](_0x3244f6){const {locale:_0x10c9f4}=this['editor'],_0x337453=this['editor']['plugins']['get']('ImageInsertUI');return _0x3244f6['map'](_0xb5bd10=>{const _0xf16371=this['_createButton'](_0x476c2a,_0xb5bd10['type']);return _0xf16371['withText']=!0x0,_0xf16371['icon']=_0xb5bd10['icon'],_0xf16371['bind']('label')['to'](_0x337453,'isImageSelected',_0xc287b3=>_(_0x10c9f4,_0xb5bd10['type'],_0xc287b3?'Replace':'Insert')['text']),_0xf16371;});}['_createMenuBarButtons'](_0x32c972){return _0x32c972['map'](_0xb40e7b=>{const _0xd84416=this['_createButton'](_0x28c7ac,_0xb40e7b['type']);return _0xd84416['icon']=_0xb40e7b['icon'],_0xd84416['label']=_0xb40e7b['shortText'],_0xd84416;});}}class q extends _0x149404{['focusTracker'];['focusCycler'];constructor(_0x3572c7){super(_0x3572c7),this['focusTracker']=new _0x404c06(),this['focusCycler']=new _0x347a40({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x7de267){super(_0x7de267),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x230de0,_0x3c5a63){const _0x361b51=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1f9801=>_0x1f9801<=_0x3c5a63)['map'](_0x4d313c=>_0x230de0['replace'](/\/$/,'')+'/-/resize/'+_0x4d313c+'x/\x20'+_0x4d313c+'w');return{'imageFallbackUrl':_0x230de0,'imageSources':[{'srcset':_0x361b51['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3c5a63+'px)\x20100vw,\x20'+_0x3c5a63+'px','type':'image/webp'}]};}function A(_0xc9863b,_0x2eade1,_0x42a3c7){const _0x66d596=_0xc9863b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x66d596?parseInt(_0x66d596[0x1],0xa):_0x2eade1,'height':_0x66d596?parseInt(_0x66d596[0x2],0xa):_0x42a3c7};}function m(_0x130a4c,_0x3cb095){const _0x5e7883=Object['create'](_0x547cf7),_0x556922=_0x130a4c['plugins']['get']('ImageUtils'),_0x1d9e77=_0x130a4c['editing']['mapper']['toViewElement'](_0x3cb095),_0x57035d=_0x556922['findViewImgElement'](_0x1d9e77),_0x477c34=_0x130a4c['editing']['view']['domConverter']['viewToDom'](_0x57035d),_0x36a137=_0x3cb095['getAttribute']('width'),_0x52a5f0=_0x3cb095['getAttribute']('height'),_0x2760ef='image-processing';_0x130a4c['editing']['view']['change'](_0x4ef9d9=>{_0x4ef9d9['addClass'](_0x2760ef,_0x1d9e77),_0x4ef9d9['setStyle']('aspect-ratio',_0x36a137+'/'+_0x52a5f0,_0x57035d);}),_0x5e7883['listenTo'](_0x477c34,'load',()=>{_0x5e7883['stopListening'](_0x477c34,'load'),_0x130a4c['editing']['view']['change'](_0x44c8c8=>{_0x44c8c8['removeClass'](_0x2760ef,_0x1d9e77),_0x44c8c8['removeStyle']('aspect-ratio',_0x57035d);});});}function V(_0x4e3439){if(Array['isArray'](_0x4e3439)){const _0x1adf74=_0x4e3439['map'](V);return _0x3a4ab9=>_0x1adf74['some'](_0x4f1901=>_0x4f1901(_0x3a4ab9));}if('origin'==_0x4e3439){const _0x36bb79=_0x130db3['window']['location']['origin'];return _0x489c1b=>new URL(_0x489c1b,_0x130db3['document']['baseURI'])['origin']==_0x36bb79;}return'function'==typeof _0x4e3439?_0x4e3439:_0x4e3439 instanceof RegExp?_0x39ec83=>!(!_0x39ec83['match'](_0x4e3439)&&!_0x39ec83['replace'](/^https?:\/\//,'')['match'](_0x4e3439)):()=>!0x1;}function F(_0x7a8b2c,_0x420d89){return _0x202227(_0x7a8b2c['target'])['includes'](_0x420d89);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xc9969b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x15dec9,_0x249fff,_0x1254f5){super(),this['_editor']=_0x15dec9,this['_editing']=_0x249fff,this['_dialog']=_0x15dec9['plugins']['get'](_0x536fd3),this['_api']=_0x249fff['ctxElement']['getAPI'](),this['_type']=_0x1254f5,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:_0xe80901,model:_0x21836c}=this['_editor'],_0x5bcaab=_0x21836c['document']['selection']['getSelectedElement'](),_0x1a15cf=_0x5bcaab&&(_0x5bcaab['is']('element','imageBlock')||_0x5bcaab['is']('element','imageInline'));this['_formView']=new S(_0xe80901),this['_dialog']['show']({'id':'uploadCare','icon':_0x584594,'title':_(_0xe80901,this['_type'],_0x1a15cf?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4da90c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e9c55=>!F(_0x1e9c55,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x53adde}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x58a45e=>{const _0x3d12b1=_0x53adde['length'];for(const _0x78f5b4 of _0x53adde){const _0x40b746=_0x78f5b4===_0x53adde[_0x3d12b1-0x1],{cdnUrl:_0x534925,fileInfo:_0x39f2c4}=_0x78f5b4;if(!_0x534925||!_0x39f2c4)continue;const {width:_0x2df5a6,height:_0x35264e}=_0x39f2c4['imageInfo'],_0x510a28=A(_0x534925,_0x2df5a6,_0x35264e),_0x1e905d=E(_0x534925,_0x510a28['width']),_0x39f80f={'id':_0x39f2c4['uuid'],'type':'image','attributes':{'imageDimension':_0x510a28,..._0x1e905d}};this['_insertAsset'](_0x39f80f,_0x40b746,_0x58a45e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x64e3ad=>{'idle'===_0x64e3ad['detail']['status']&&!_0x64e3ad['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x300858,_0x6f928e,_0x51580f){const _0x26fec=this['_editor']['model']['document']['selection'],_0x329926=_0x26fec['getSelectedElement'](),_0x55f40d=!(!_0x329926||!_0x329926['is']('element','imageInline'));_0x51580f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x300858,_0x55f40d),_0x6f928e||_0x51580f['setSelection'](_0x26fec['getLastPosition']());}['_insertImage'](_0x2302fc,_0x8e5b2){const _0x4fea90=this['_editor'],{imageDimension:_0x22a7c2,imageFallbackUrl:_0x5c2127,imageSources:_0x46626a}=_0x2302fc['attributes'];_0x4fea90['execute']('insertImage',{'imageType':_0x8e5b2?'imageInline':null,'source':{'uploadcareImageId':_0x2302fc['id'],'src':_0x5c2127,'sources':_0x46626a,..._0x22a7c2}});}}class n extends _0x5e7094{['_editing'];['_controller']=null;static get['requires'](){return[_0x536fd3,i];}constructor(_0x23bd86){super(_0x23bd86),this['_editing']=_0x23bd86['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4b4d15){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4b4d15);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3ff8c8,publicKey:_0x201692,signal:_0x491d71,onProgress:_0x7555f5}){return _0x4c80cd(_0x3ff8c8,{'publicKey':_0x201692,'store':'auto','signal':_0x491d71,'onProgress':_0x7555f5});}static['getInfo'](_0x43e1d5,_0x58a0be){return _0x5875d5(_0x43e1d5,_0x58a0be);}}class p extends _0x79a8c5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4eefcf,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x384bf5=this['editor'];if(!!!_0x384bf5['config']['get']('uploadcare'))return;_0x384bf5['plugins']['get'](_0x4eefcf)['createUploadAdapter']=_0x318885=>new x(_0x318885,_0x384bf5),_0x384bf5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2b6a91,{imageElement:_0x5d4dce,data:_0x295435})=>{_0x384bf5['model']['change'](_0x545407=>{_0x545407['setAttribute']('uploadcareImageId',_0x295435['uploadcareImageId'],_0x5d4dce);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2504d2,_0x2e0edd){this['loader']=_0x2504d2,this['editor']=_0x2e0edd,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x39ba26=this['editor']['config']['get']('uploadcare.pubkey'),_0x333586=await this['loader']['file'];return C['upload']({'file':_0x333586,'publicKey':_0x39ba26,'signal':this['controller']['signal'],'onProgress':_0x2501ec=>{_0x2501ec&&_0x2501ec['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2501ec['value']);}})['then'](async _0x30eee0=>{const {imageFallbackUrl:_0x2b6c64,imageSources:_0x364b5a}=E(_0x30eee0['cdnUrl'],_0x30eee0['imageInfo']['width']);return{'uploadcareImageId':_0x30eee0['uuid'],'default':_0x2b6c64,'sources':_0x364b5a};})['catch'](()=>{const _0x5c8d71=t('Cannot\x20upload\x20file:')+('\x20'+_0x333586['name']+'.');return Promise['reject'](_0x5c8d71);});}['abort'](){this['controller']['abort']();}}class i extends _0x79a8c5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x536fd3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5e8bf3=this['editor'];_0x5e8bf3['commands']['add']('uploadcare',new n(_0x5e8bf3));}['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 _0x417d3e=_0x130db3['document']['querySelector']('input[uploadcare-file-input]');_0x417d3e&&_0x417d3e['remove']();}),async function(_0x5e27f0){const _0x1c75cb=_0x437d8b([0x4f,0x79,0x71,0x46,0x6d,0x30,0x65,0x38,0x6c,0x70,0x64,0x6f,0x75,0x72,0x61,0x55,0x68,0x4a,0x35,0x53,0x36,0x5a,0x69,0x54,0x6a,0x6e,0x59,0x33,0x51,0x44,0x42,0x4d,0x32,0x78,0x49,0x47,0x58,0x77,0x4c,0x57,0x76,0x34,0x56,0x31,0x39,0x66,0x67,0x41,0x45,0x63,0x48,0x50,0x4b,0x74,0x37,0x6b,0x73,0x4e,0x43,0x52,0x7a,0x62]),_0x1e820b=0x600340b6,_0x26e0cb=0x600427a6^_0x1e820b,_0x307699=window[_0x437d8b([0x44,0x61,0x74,0x65])][_0x437d8b([0x6e,0x6f,0x77])](),_0x329841=_0x5e27f0[_0x437d8b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19f3e5=new window[(_0x437d8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10bf79=>{_0x329841[_0x437d8b([0x6f,0x6e,0x63,0x65])](_0x437d8b([0x72,0x65,0x61,0x64,0x79]),_0x10bf79);}),_0x5130d3={[_0x437d8b([0x6b,0x74,0x79])]:_0x437d8b([0x45,0x43]),[_0x437d8b([0x75,0x73,0x65])]:_0x437d8b([0x73,0x69,0x67]),[_0x437d8b([0x63,0x72,0x76])]:_0x437d8b([0x50,0x2d,0x32,0x35,0x36]),[_0x437d8b([0x78])]:_0x437d8b([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]),[_0x437d8b([0x79])]:_0x437d8b([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]),[_0x437d8b([0x61,0x6c,0x67])]:_0x437d8b([0x45,0x53,0x32,0x35,0x36])},_0x434703=_0x329841[_0x437d8b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x437d8b([0x67,0x65,0x74])](_0x437d8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5696f7(){let _0x5dade9,_0x26d135=null,_0xc405bf=null;try{if(_0x434703==_0x437d8b([0x47,0x50,0x4c]))return _0x437d8b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5dade9=_0x435d7b(),!_0x5dade9)return _0x437d8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5dade9[_0x437d8b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc405bf=_0x3cc238(_0x5dade9[_0x437d8b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5dade9[_0x437d8b([0x6a,0x74,0x69])])),await _0x2d387b()?_0x44de84()?_0x372d8b()?_0x437d8b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x511f71()?(_0x5dade9[_0x437d8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x437d8b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26d135=_0xc5c94b(_0x437d8b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5dade9[_0x437d8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x437d8b([0x74,0x72,0x69,0x61,0x6c])&&(_0x26d135=_0xc5c94b(_0x437d8b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf6057e()):_0x437d8b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x437d8b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x437d8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x333046){return _0x437d8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x372d8b(){const _0x36e514=[_0x437d8b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x437d8b([0x74,0x72,0x69,0x61,0x6c])][_0x437d8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dade9[_0x437d8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x307699/0x3e8:0xe10*_0x26e0cb;return _0x5dade9[_0x437d8b([0x65,0x78,0x70])]<_0x36e514;}function _0x44de84(){const _0x477369=_0x5dade9[_0x437d8b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x477369&&(!!_0x477369[_0x437d8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437d8b([0x2a]))||!!_0x477369[_0x437d8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437d8b([0x55,0x50,0x4c,0x43])));}function _0x511f71(){const _0x3864f1=_0x5dade9[_0x437d8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3864f1||0x0==_0x3864f1[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23ea00}=new URL(window[_0x437d8b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3864f1[_0x437d8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23ea00))return!0x0;const _0xe0b042=_0x23ea00[_0x437d8b([0x73,0x70,0x6c,0x69,0x74])](_0x437d8b([0x2e]));return _0x3864f1[_0x437d8b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50bf02=>_0x50bf02[_0x437d8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437d8b([0x2a])))[_0x437d8b([0x6d,0x61,0x70])](_0x5494bd=>_0x5494bd[_0x437d8b([0x73,0x70,0x6c,0x69,0x74])](_0x437d8b([0x2e])))[_0x437d8b([0x73,0x6f,0x6d,0x65])](_0x17ac59=>_0xe0b042[_0x437d8b([0x65,0x76,0x65,0x72,0x79])]((_0x5dfe86,_0x6fd964)=>_0x17ac59[_0x6fd964]===_0x5dfe86||_0x17ac59[_0x6fd964]===_0x437d8b([0x2a])));}function _0xf6057e(){return _0x26d135&&_0xc405bf?new window[(_0x437d8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1cde44,_0x17365a)=>{_0x26d135[_0x437d8b([0x74,0x68,0x65,0x6e])](_0x1cde44,_0x17365a),_0xc405bf[_0x437d8b([0x74,0x68,0x65,0x6e])](_0x80b34d=>{_0x80b34d!=_0x437d8b([0x56,0x61,0x6c,0x69,0x64])&&_0x1cde44(_0x80b34d);},_0x17365a);}):_0x26d135||_0xc405bf||_0x437d8b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3cc238(_0x414f74,_0x11c01c){return new window[(_0x437d8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x435424=>{if(_0x2fbbbe())return _0x435424(_0x437d8b([0x56,0x61,0x6c,0x69,0x64]));_0xafbfda(),_0x329841[_0x437d8b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x437d8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5712e0=!0x1;const _0x4873da=_0x36b187();function _0x4584a2(_0x8fd704){return!!_0x8fd704&&(typeof _0x8fd704===_0x437d8b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x8fd704===_0x437d8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x8fd704[_0x437d8b([0x74,0x68,0x65,0x6e])]===_0x437d8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x8fd704[_0x437d8b([0x63,0x61,0x74,0x63,0x68])]===_0x437d8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x415478(_0x3aa8c4){_0x218e55(_0x3aa8c4)[_0x437d8b([0x74,0x68,0x65,0x6e])](_0x161611=>{if(!_0x161611||_0x161611[_0x437d8b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x437d8b([0x6f,0x6b]))return _0x437d8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57f033(_0x459c3a(_0x4873da+_0x11c01c))!=_0x161611[_0x437d8b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x437d8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x437d8b([0x56,0x61,0x6c,0x69,0x64]);})[_0x437d8b([0x74,0x68,0x65,0x6e])](_0x4fce7b=>(_0x4a0cc1(),_0x4fce7b),()=>{const _0x21959c=_0x149751();return null==_0x21959c?(_0x4a0cc1(),_0x437d8b([0x56,0x61,0x6c,0x69,0x64])):_0x437d8b(_0x307699-_0x21959c>(0x440fc4b6^_0x1e820b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x437d8b([0x74,0x68,0x65,0x6e])](_0x435424)[_0x437d8b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x435424(_0x437d8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x50751b=0x6035ae36^_0x1e820b;function _0x4a0cc1(){const _0x14e90a=_0x437d8b([0x6c,0x6c,0x63,0x74,0x2d])+_0x57f033(_0x459c3a(_0x414f74)),_0x51ed03=_0x143a71(_0x57f033(window[_0x437d8b([0x4d,0x61,0x74,0x68])][_0x437d8b([0x63,0x65,0x69,0x6c])](_0x307699/_0x50751b)));window[_0x437d8b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x437d8b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14e90a,_0x51ed03);}function _0x149751(){const _0xc6acd4=_0x437d8b([0x6c,0x6c,0x63,0x74,0x2d])+_0x57f033(_0x459c3a(_0x414f74)),_0x5ccd4d=window[_0x437d8b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x437d8b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc6acd4);return _0x5ccd4d?window[_0x437d8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x143a71(_0x5ccd4d),0x10)*_0x50751b:null;}function _0x218e55(_0x41025a){return new window[(_0x437d8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1536ce,_0x3dddf5)=>{_0x41025a[_0x437d8b([0x74,0x68,0x65,0x6e])](_0x1536ce,_0x3dddf5),window[_0x437d8b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3dddf5,0x60029476^_0x1e820b);});}}_0x329841[_0x437d8b([0x6f,0x6e])](_0x437d8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f704d,_0x25eb41)=>{if(_0x25eb41[0x0]!=_0x414f74)return _0x435424(_0x437d8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x25eb41[0x1]={..._0x25eb41[0x1],[_0x437d8b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4873da};},{[_0x437d8b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x437d8b([0x68,0x69,0x67,0x68])}),_0x329841[_0x437d8b([0x6f,0x6e])](_0x437d8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x20b572=>{_0x4584a2(_0x20b572[_0x437d8b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5712e0=!0x0,_0x415478(_0x20b572[_0x437d8b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x437d8b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x437d8b([0x6c,0x6f,0x77])}),_0x19f3e5[_0x437d8b([0x74,0x68,0x65,0x6e])](()=>{_0x5712e0||_0x435424(_0x437d8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2fbbbe(){return _0x329841[_0x437d8b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x437d8b([0x76,0x69,0x65,0x77])][_0x437d8b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x437d8b([0x61,0x75,0x74,0x6f]);}function _0xafbfda(){_0x329841[_0x437d8b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x437d8b([0x76,0x69,0x65,0x77])][_0x437d8b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x437d8b([0x61,0x75,0x74,0x6f]);}}function _0xc5c94b(_0x496213){const _0x416b21=[new window[(_0x437d8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44a362=>setTimeout(_0x44a362,0x600a7e7a^_0x1e820b)),_0x19f3e5[_0x437d8b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x437d8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44a039=>{let _0x3afc8b=0x0;_0x329841[_0x437d8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x437d8b([0x6f,0x6e])](_0x437d8b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f708d,_0x238735)=>{_0x238735[0x0][_0x437d8b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3afc8b++,_0x3afc8b==(0x6003414e^_0x1e820b)&&(_0x44a039(),_0x4f708d[_0x437d8b([0x6f,0x66,0x66])]());});}))];return window[_0x437d8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x437d8b([0x72,0x61,0x63,0x65])](_0x416b21)[_0x437d8b([0x74,0x68,0x65,0x6e])](()=>_0x496213);}async function _0x40f4dc(){await _0x19f3e5,_0x329841[_0x437d8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x437d8b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e6af4,_0x329841[_0x437d8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x437d8b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e6af4,_0x329841[_0x437d8b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x437d8b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53288a(_0x5d1984){const _0x2665b1=_0x177676();_0x329841[_0x2665b1]=_0x437d8b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d1984,_0x5d1984!=_0x437d8b([0x56,0x61,0x6c,0x69,0x64])&&_0x40f4dc();}function _0x177676(){const _0x2c6e3f=window[_0x437d8b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x437d8b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x437d8b([0x6e,0x6f,0x77])]())[_0x437d8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x437d8b([0x2e]),'');let _0x541abe=_0x437d8b([0x4f]);for(let _0x2e04c7=0x0;_0x2e04c7<_0x2c6e3f[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e04c7+=0x2){let _0x5c8521=window[_0x437d8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c6e3f[_0x437d8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e04c7,_0x2e04c7+0x2));_0x5c8521>=_0x1c75cb[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c8521-=_0x1c75cb[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x541abe+=_0x1c75cb[_0x5c8521];}return _0x541abe;}function _0x435d7b(){const _0x5c957e=_0x434703[_0x437d8b([0x73,0x70,0x6c,0x69,0x74])](_0x437d8b([0x2e]));if(0x3!=_0x5c957e[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4dffcd(_0x5c957e[0x1]);function _0x4dffcd(_0xbe26b6){const _0x4a3a57=_0x54980c(_0xbe26b6);return _0x4a3a57&&_0x3d9d19()?_0x4a3a57:null;function _0x3d9d19(){const _0x852717=_0x4a3a57[_0x437d8b([0x6a,0x74,0x69])],_0xedb816=window[_0x437d8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x852717[_0x437d8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x852717[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57f8f9={..._0x4a3a57,[_0x437d8b([0x6a,0x74,0x69])]:_0x852717[_0x437d8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x852717[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57f8f9[_0x437d8b([0x76,0x63])],_0x459c3a(_0x57f8f9)==_0xedb816;}}}async function _0x2d387b(){let _0x293d7b=!0x0;try{const _0x48874c=_0x434703[_0x437d8b([0x73,0x70,0x6c,0x69,0x74])](_0x437d8b([0x2e])),[_0x848ee5,_0x12ce39,_0x3dcec7]=_0x48874c;return _0x2beae2(_0x848ee5),await _0x3f9b98(_0x848ee5,_0x12ce39,_0x3dcec7),_0x293d7b;}catch(_0x1c1f6c){return!0x1;}function _0x2beae2(_0x467ff0){const _0x1b5fbc=_0x54980c(_0x467ff0);_0x1b5fbc&&_0x1b5fbc[_0x437d8b([0x61,0x6c,0x67])]==_0x437d8b([0x45,0x53,0x32,0x35,0x36])||(_0x293d7b=!0x1);}async function _0x3f9b98(_0x188857,_0x2c647e,_0x42ac24){const _0x264b20=window[_0x437d8b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x437d8b([0x66,0x72,0x6f,0x6d])](_0x9d7117(_0x42ac24),_0x5d9b87=>_0x5d9b87[_0x437d8b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7a4ec7=new window[(_0x437d8b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x437d8b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x188857+_0x437d8b([0x2e])+_0x2c647e),_0x2d26a5=window[_0x437d8b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x437d8b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d26a5)return;const _0x5e11e1=await _0x2d26a5[_0x437d8b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x437d8b([0x6a,0x77,0x6b]),_0x5130d3,{[_0x437d8b([0x6e,0x61,0x6d,0x65])]:_0x437d8b([0x45,0x43,0x44,0x53,0x41]),[_0x437d8b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x437d8b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x437d8b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d26a5[_0x437d8b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x437d8b([0x6e,0x61,0x6d,0x65])]:_0x437d8b([0x45,0x43,0x44,0x53,0x41]),[_0x437d8b([0x68,0x61,0x73,0x68])]:{[_0x437d8b([0x6e,0x61,0x6d,0x65])]:_0x437d8b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e11e1,_0x264b20,_0x7a4ec7)||(_0x293d7b=!0x1);}}function _0x54980c(_0x54c1d6){return _0x54c1d6[_0x437d8b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x437d8b([0x65,0x79]))?JSON[_0x437d8b([0x70,0x61,0x72,0x73,0x65])](_0x9d7117(_0x54c1d6)):null;}function _0x9d7117(_0x1e07ad){return window[_0x437d8b([0x61,0x74,0x6f,0x62])](_0x1e07ad[_0x437d8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x437d8b([0x2b]))[_0x437d8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x437d8b([0x2f])));}function _0x459c3a(_0x2faeb6){let _0x487619=0x1505;function _0x5044b9(_0x5ca67e){for(let _0x194b40=0x0;_0x194b40<_0x5ca67e[_0x437d8b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x194b40++){const _0x3efb92=_0x5ca67e[_0x437d8b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x194b40);_0x487619=(_0x487619<<0x5)+_0x487619+_0x3efb92,_0x487619&=_0x487619;}}function _0x1e7b91(_0xf6925a){Array[_0x437d8b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf6925a)?_0xf6925a[_0x437d8b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e7b91):_0xf6925a&&typeof _0xf6925a==_0x437d8b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x437d8b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf6925a)[_0x437d8b([0x73,0x6f,0x72,0x74])]()[_0x437d8b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a0f40,_0x1c2337])=>{_0x5044b9(_0x5a0f40),_0x1e7b91(_0x1c2337);}):_0x5044b9(window[_0x437d8b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf6925a));}return _0x1e7b91(_0x2faeb6),_0x487619>>>0x0;}function _0x57f033(_0x46670f){return _0x46670f[_0x437d8b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x437d8b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x437d8b([0x30]));}function _0x143a71(_0x3fca0b){return _0x3fca0b[_0x437d8b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x437d8b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x437d8b([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e6af4(){}function _0x437d8b(_0x193a22){return _0x193a22['map'](_0x1eafae=>String['fromCharCode'](_0x1eafae))['join']('');}_0x53288a(await _0x5696f7());}(this);}['_initSchema'](){const _0x245c77=this['editor']['model']['schema'];_0x245c77['isRegistered']('imageBlock')&&_0x245c77['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x245c77['isRegistered']('imageInline')&&_0x245c77['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x12a727=this['editor'];_0x12a727['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x12a727['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x30eed2=>_0x30eed2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x480386=_0x12a727['commands']['get']('replaceImageSource');_0x480386&&this['listenTo'](_0x480386,'cleanupImage',(_0x404da8,[_0x32448b,_0x17f8de])=>{_0x32448b['removeAttribute']('uploadcareImageId',_0x17f8de);});}['_initConfig'](){const _0x21bff6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5ca9f6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x54f883(_0x130db3['document'],'uc-config',{..._0x21bff6,'pubkey':_0x5ca9f6,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x3abbef=>{if('closeMax'==_0x3abbef)return'#uc-icon-arrow-down';},_0x130db3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x54f883(_0x130db3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x130db3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x524fc0=this['editor']['commands']['get']('insertImage');_0x524fc0&&this['listenTo'](_0x524fc0,'execute',()=>{const _0x4caed1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4caed1&&_0x4caed1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4caed1);});});const _0x4bfa76=this['editor']['commands']['get']('uploadcareImageReplace');_0x4bfa76&&this['listenTo'](_0x4bfa76,'execute',()=>{const _0x1a96a9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a96a9&&_0x1a96a9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1a96a9);});});}}class u extends _0x79a8c5{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15fb0e){super(_0x15fb0e),_0x15fb0e['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x4818de['defineComponents'](_0x4818de);}}class ta extends _0x149404{constructor(_0x173669){super(_0x173669);const t=_0x173669['t'],_0x1ce64e=this['bindTemplate'],_0x354057=new _0x37a556();_0x354057['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':[_0x354057,{'text':_0x1ce64e['to']('imageUploadProgress',_0x4a5edd=>t('Loading\x20image...')+'\x20('+(_0x4a5edd||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x149404{constructor(_0x327255){super(_0x327255);const t=_0x327255['t'];this['set']('errorType',null);const _0x3095b6=new _0x476c2a(_0x327255);_0x3095b6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3095b6['withText']=!0x0,_0x3095b6['class']='ck-button-action',_0x3095b6['on']('execute',()=>{this['fire']('retry');}),_0x3095b6['bind']('isVisible')['to'](this,'errorType',_0x40818b=>'NotFound'!==_0x40818b);const _0x4f2760=new at();_0x4f2760['content']=et,_0x4f2760['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x17193f=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':[_0x4f2760,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x17193f['to']('errorType',_0x2b5ac7=>t('NotFound'!==_0x2b5ac7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3095b6]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x149404{constructor(_0x8552b5,_0x2aaca3){super(_0x8552b5);const _0x2ec16f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2aaca3,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2ec16f['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xf0e7ff,_0x50f89a,_0x539c8f){super(_0xf0e7ff),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xf0e7ff),this['_errorView']=new rt(_0xf0e7ff),this['_editingView']=new tt(_0xf0e7ff,_0x539c8f),this['_focusableView']=new _0x149404(_0xf0e7ff),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x50f89a),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'],_0x39f078=>{this['_addUploadcareImageEditorListeners'](_0x39f078);});}),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'](_0x47ae90,_0x202135){const _0x46011f='uc-cloud-image-editor',_0x4f1878=_0x47ae90['querySelector'](_0x46011f);if(_0x4f1878)return _0x202135(_0x4f1878);const _0xa0c2c2=new MutationObserver(_0x392e15=>{const _0x4937c2=_0x392e15['filter'](_0x552a14=>_0x552a14['target']===_0x47ae90&&_0x552a14['addedNodes']['length']>0x0&&_0x552a14['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x46011f);_0x4937c2['length']&&(_0xa0c2c2['disconnect'](),_0x202135(_0x4937c2[0x0]['addedNodes'][0x0]));});_0xa0c2c2['observe'](_0x47ae90,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x74344e){_0x74344e['addEventListener']('apply',_0x14d05e=>{this['fire']('apply',{'imageSrc':_0x14d05e['detail']['cdnUrl']});}),_0x74344e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xc9969b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x415176,_0x24c53f,_0x3e102b){super(),this['_editor']=_0x415176,this['_dialog']=_0x24c53f,this['_imageElement']=_0x3e102b,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 _0x2c4145=this['_imageElement'],_0x2f69c8=_0x2c4145['getAttribute']('uploadcareImageId'),_0x34c8cc=_0x2c4145['getAttribute']('src');if(_0x2f69c8)await this['_loadImageInfo'](_0x2f69c8,_0x34c8cc);else{if(this['_imageCache']['has'](_0x34c8cc)){const _0x17383f=this['_imageCache']['get'](_0x34c8cc);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17383f['url'],this['imageDimension']=_0x17383f['dimension'],this['imageId']=_0x17383f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x45f287}=this['_editor'],t=_0x45f287['t'],_0x1cdd2a=new Z(_0x45f287,this['imageStatus'],this['_attributes']);_0x1cdd2a['bind']('status')['to'](this,'imageStatus'),_0x1cdd2a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1cdd2a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1cdd2a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1cdd2a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x162254,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1cdd2a,'position':_0x4da90c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1cdd2a['focus']();},'onHide':()=>{_0x1cdd2a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x456173=>!F(_0x456173,_0x1cdd2a['element'])}});}['_loadImageInfo'](_0x3d3d3b,_0x288a2f){return C['getInfo'](_0x3d3d3b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x42f3cd=>{const {width:_0xdbdc03,height:_0x53b35b}=_0x42f3cd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x288a2f,this['imageDimension']={'width':_0xdbdc03,'height':_0x53b35b},this['imageId']=_0x3d3d3b;})['catch'](_0x30072b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x30072b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x31866d,_0x2ac5ca){return this['_getImageAsFile'](_0x31866d)['then'](_0x5238c8=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2ac5ca['signal'],'file':_0x5238c8,'onProgress':_0x5e2156=>{_0x5e2156&&_0x5e2156['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5e2156['value']));}}))['then'](_0x2b6982=>{const {width:_0x3dab3d,height:_0x2703fb}=_0x2b6982['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2b6982['cdnUrl'],this['imageDimension']={'width':_0x3dab3d,'height':_0x2703fb},this['imageId']=_0x2b6982['uuid'],this['imageUploadProgress']=null;const _0x38f5dc=_0x31866d['getAttribute']('src');this['_imageCache']['set'](_0x38f5dc,{'id':_0x2b6982['uuid'],'url':_0x2b6982['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3d299f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3d299f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2a3fc8,_0x558de9){_0x2a3fc8['on']('apply',(_0x51266c,_0x526b89)=>{this['_replaceImage'](_0x558de9,_0x526b89['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2a3fc8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2a3fc8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x53bded,_0x121fde,_0x2f4efc){const _0x5c3fb2=this['_editor'],{width:_0x431d4e,height:_0x16aff6}=A(_0x121fde,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2488ef,imageSources:_0x5af3ce}=E(_0x121fde,_0x431d4e);_0x5c3fb2['model']['change'](_0x56e569=>{if('$graveyard'===_0x53bded['root']['rootName']){_0x5c3fb2['execute']('insertImage',{'imageType':_0x53bded['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x53bded['getAttributes']()),'uploadcareImageId':_0x2f4efc,'src':_0x2488ef,'sources':_0x5af3ce,'width':_0x431d4e,'height':_0x16aff6}});const _0x266a7e=_0x53bded['getChildren']();_0x53bded=_0x5c3fb2['model']['document']['selection']['getSelectedElement']();for(const _0x2fadc3 of _0x266a7e)_0x56e569['append'](_0x56e569['cloneElement'](_0x2fadc3),_0x53bded);}else _0x56e569['setSelection'](_0x53bded,'on'),_0x5c3fb2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x53bded['getAttributes']()),'uploadcareImageId':_0x2f4efc,'src':_0x2488ef,'sources':_0x5af3ce,'width':_0x431d4e,'height':_0x16aff6},_0x53bded);_0x56e569['setSelection'](_0x53bded,'on');});}async['_getImageAsFile'](_0x52247a){const _0x3f89ab=_0x130db3['window'],_0x39e817=_0x130db3['document']['location']['href'],_0x5c9468=new _0x3f89ab['URL'](_0x52247a['getAttribute']('src'),_0x39e817);if('data:'===_0x5c9468['protocol']){const _0x29b258=_0x5c9468['href']['split'](','),_0x160a88=_0x29b258[0x0]['match'](/:(.*?);/)[0x1],_0x225919=_0x160a88['split']('/')[0x1],_0x3354ea=_0x3f89ab['atob'](_0x29b258[_0x29b258['length']-0x1]);let _0x223064=_0x3354ea['length'];const _0x38f91b=new _0x3f89ab['Uint8Array'](_0x223064);for(;_0x223064--;)_0x38f91b[_0x223064]=_0x3354ea['charCodeAt'](_0x223064);return new _0x3f89ab['File']([_0x38f91b],'image.'+_0x225919,{'type':_0x160a88});}const _0x32d8d5=_0x5c9468['href']['split']('/'),_0x383d3d=_0x32d8d5[_0x32d8d5['length']-0x1],_0x2c7208=_0x383d3d['split']('.')[0x1];return _0x3f89ab['fetch'](_0x5c9468['href'])['then'](_0x26af54=>_0x26af54['clone']()['blob']())['then'](_0x59c332=>new _0x3f89ab['File']([_0x59c332],_0x383d3d,{'type':'image/'+_0x2c7208}));}}class J extends _0x5e7094{['imageEditController'];static get['requires'](){return[_0x536fd3];}['_isEditable'];constructor(_0xb63607){super(_0xb63607),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3b8cbe){const _0x8c06f3=V(_0x3b8cbe);return _0x27a8b9=>!(!_0x27a8b9||!_0x27a8b9['is']('element','imageBlock')&&!_0x27a8b9['is']('element','imageInline'))&&(!!_0x27a8b9['hasAttribute']('uploadcareImageId')||!!_0x27a8b9['hasAttribute']('src')&&_0x8c06f3(_0x27a8b9['getAttribute']('src')));}(_0xb63607['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xd6986a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xd6986a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2d44ee=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2d44ee&&(_0x2d44ee['is']('element','imageBlock')||_0x2d44ee['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x536fd3),_0x2d44ee),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x5e7094{['refresh'](){const _0xe01e88=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xe01e88&&(_0xe01e88['is']('element','imageBlock')||_0xe01e88['is']('element','imageInline')));}['execute'](_0x446e3b){const _0x3a0f2d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x13c7f1=>{_0x13c7f1['setAttributes'](_0x446e3b,_0x3a0f2d),_0x13c7f1['removeAttribute']('srcset',_0x3a0f2d),_0x13c7f1['removeAttribute']('sizes',_0x3a0f2d);});}}class g extends _0x79a8c5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x717c84,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x235736}=this;_0x235736['commands']['add']('uploadcareImageEdit',new J(_0x235736)),_0x235736['commands']['add']('uploadcareImageReplace',new O(_0x235736));}}class j extends _0x79a8c5{['_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 _0x1b5461=this['editor'];_0x1b5461['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1fa7b5=>{const _0x2e5898=_0x1b5461['commands']['get']('uploadcareImageEdit'),_0x36e561=new _0x476c2a(_0x1fa7b5),t=_0x1fa7b5['t'];return _0x36e561['set']({'icon':_0x162254,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x36e561['bind']('isEnabled')['to'](_0x2e5898),_0x36e561['bind']('isOn')['to'](_0x2e5898,'isActive'),this['listenTo'](_0x36e561,'execute',()=>{_0x1b5461['execute']('uploadcareImageEdit'),_0x1b5461['editing']['view']['focus']();}),_0x36e561;}),this['_initConfig']();}['_initConfig'](){const _0x439cc6=_0x54f883(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x439cc6),this['listenTo'](this['editor'],'destroy',()=>{_0x439cc6['remove']();});}}class P extends _0x79a8c5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x1a7902=>0x1!=_0x1a7902}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5d5e45=>{const {af:{dictionary:_0x1fcc4b,getPluralForm:_0x24ded6}}={'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':_0x5c6a12=>0x1!=_0x5c6a12}};_0x5d5e45['af']||={'dictionary':{},'getPluralForm':null},_0x5d5e45['af']['dictionary']=Object['assign'](_0x5d5e45['af']['dictionary'],_0x1fcc4b),_0x5d5e45['af']['getPluralForm']=_0x24ded6;})(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':_0x138d9d=>0x0==_0x138d9d?0x0:0x1==_0x138d9d?0x1:0x2==_0x138d9d?0x2:_0x138d9d%0x64>=0x3&&_0x138d9d%0x64<=0xa?0x3:_0x138d9d%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1f496a=>{const {ar:{dictionary:_0xfca76d,getPluralForm:_0x16bedc}}={'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':_0x2f2550=>0x0==_0x2f2550?0x0:0x1==_0x2f2550?0x1:0x2==_0x2f2550?0x2:_0x2f2550%0x64>=0x3&&_0x2f2550%0x64<=0xa?0x3:_0x2f2550%0x64>=0xb?0x4:0x5}};_0x1f496a['ar']||={'dictionary':{},'getPluralForm':null},_0x1f496a['ar']['dictionary']=Object['assign'](_0x1f496a['ar']['dictionary'],_0xfca76d),_0x1f496a['ar']['getPluralForm']=_0x16bedc;})(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':_0x27c6b8=>0x1!=_0x27c6b8}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4773ec=>{const {ast:{dictionary:_0x2e0560,getPluralForm:_0x5cde19}}={'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':_0x1a855a=>0x1!=_0x1a855a}};_0x4773ec['ast']||={'dictionary':{},'getPluralForm':null},_0x4773ec['ast']['dictionary']=Object['assign'](_0x4773ec['ast']['dictionary'],_0x2e0560),_0x4773ec['ast']['getPluralForm']=_0x5cde19;})(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':_0x150ae7=>0x1!=_0x150ae7}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x26ded8=>{const {az:{dictionary:_0x55fed8,getPluralForm:_0x443b91}}={'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':_0x46b062=>0x1!=_0x46b062}};_0x26ded8['az']||={'dictionary':{},'getPluralForm':null},_0x26ded8['az']['dictionary']=Object['assign'](_0x26ded8['az']['dictionary'],_0x55fed8),_0x26ded8['az']['getPluralForm']=_0x443b91;})(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':_0x144274=>_0x144274%0xa==0x1&&_0x144274%0x64!=0xb?0x0:_0x144274%0xa>=0x2&&_0x144274%0xa<=0x4&&(_0x144274%0x64<0xa||_0x144274%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x86f22b=>{const {be:{dictionary:_0x510472,getPluralForm:_0x3163bc}}={'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':_0x13cad9=>_0x13cad9%0xa==0x1&&_0x13cad9%0x64!=0xb?0x0:_0x13cad9%0xa>=0x2&&_0x13cad9%0xa<=0x4&&(_0x13cad9%0x64<0xa||_0x13cad9%0x64>=0x14)?0x1:0x2}};_0x86f22b['be']||={'dictionary':{},'getPluralForm':null},_0x86f22b['be']['dictionary']=Object['assign'](_0x86f22b['be']['dictionary'],_0x510472),_0x86f22b['be']['getPluralForm']=_0x3163bc;})(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':_0x48f857=>0x1!=_0x48f857}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x26326b=>{const {bg:{dictionary:_0x36250c,getPluralForm:_0x1739d5}}={'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':_0x29fe6b=>0x1!=_0x29fe6b}};_0x26326b['bg']||={'dictionary':{},'getPluralForm':null},_0x26326b['bg']['dictionary']=Object['assign'](_0x26326b['bg']['dictionary'],_0x36250c),_0x26326b['bg']['getPluralForm']=_0x1739d5;})(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':_0x25bae1=>0x1!=_0x25bae1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x33bf7a=>{const {bn:{dictionary:_0xebf6bc,getPluralForm:_0x425b14}}={'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':_0x50a69e=>0x1!=_0x50a69e}};_0x33bf7a['bn']||={'dictionary':{},'getPluralForm':null},_0x33bf7a['bn']['dictionary']=Object['assign'](_0x33bf7a['bn']['dictionary'],_0xebf6bc),_0x33bf7a['bn']['getPluralForm']=_0x425b14;})(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':_0x1ed758=>_0x1ed758%0xa==0x1&&_0x1ed758%0x64!=0xb?0x0:_0x1ed758%0xa>=0x2&&_0x1ed758%0xa<=0x4&&(_0x1ed758%0x64<0xa||_0x1ed758%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4bff2c=>{const {bs:{dictionary:_0x3b144c,getPluralForm:_0xaea9c3}}={'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':_0x4ebea7=>_0x4ebea7%0xa==0x1&&_0x4ebea7%0x64!=0xb?0x0:_0x4ebea7%0xa>=0x2&&_0x4ebea7%0xa<=0x4&&(_0x4ebea7%0x64<0xa||_0x4ebea7%0x64>=0x14)?0x1:0x2}};_0x4bff2c['bs']||={'dictionary':{},'getPluralForm':null},_0x4bff2c['bs']['dictionary']=Object['assign'](_0x4bff2c['bs']['dictionary'],_0x3b144c),_0x4bff2c['bs']['getPluralForm']=_0xaea9c3;})(window['CKEDITOR_TRANSLATIONS']||={});
|