@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250505.0 → 0.0.0-nightly-20250507.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 _0xde9ca1,Command as _0x51a136}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x47a297,IconGooglePhotos as _0x413cfc,IconGoogleDrive as _0x56c7aa,IconFacebook as _0x54a0e1,IconDropbox as _0x2a80c5,IconUploadcareLink as _0x22cf59,IconUploadcareImageUpload as _0x51a48e,IconError as et,IconUploadcareImageEdit as _0x57bbde}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x104a57,MenuBarMenuListItemButtonView as _0x45cc99,View as _0x222a06,FocusCycler as _0x9e6521,Dialog as _0xc84dd5,DialogViewPosition as _0x3984c3,SpinnerView as _0x472768,IconView as at,Notification as _0x3d6426}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x60265b,DomEmitterMixin as _0x2be775,global as _0x49cf59,getAncestors as _0x1c4bee,ObservableMixin as _0x311277,createElement as _0x5a023c,uid as _0xb52d55}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x12ab17}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x47540f,info as _0x5219da}from'@uploadcare/upload-client';import*as _0x102597 from'@uploadcare/file-uploader';var o=function(_0x3441fb){return _0x3441fb['Local']='local',_0x3441fb['URL']='url',_0x3441fb['Dropbox']='dropbox',_0x3441fb['GDrive']='gdrive',_0x3441fb['Facebook']='facebook',_0x3441fb['GPhotos']='gphotos',_0x3441fb['OneDrive']='onedrive',_0x3441fb;}({});function _(_0x1be44b,_0xeecba1,_0x173f62){const t=_0x1be44b['t'],_0x292a87=_0x1be44b['t'];switch(_0xeecba1){case o['Local']:return{'text':_0x292a87('Insert'===_0x173f62?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x292a87('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x173f62?_0x292a87('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x292a87('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xeecba1;}}class e extends _0xde9ca1{['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 _0x69745d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37d777;for(const _0x43828a in _0x69745d){const _0x1682d8=_0x43828a,_0x24d29e=_0x69745d[_0x1682d8];if('uploadcareLicenseKeyValid'==_0x24d29e||'uploadcareLicenseKeyInvalid'==_0x24d29e||'uploadcareLicenseKeyExpired'==_0x24d29e||'uploadcareLicenseKeyDomainLimit'==_0x24d29e||'uploadcareLicenseKeyNotAllowed'==_0x24d29e||'uploadcareLicenseKeyEvaluationLimit'==_0x24d29e||'uploadcareLicenseKeyTrialLimit'==_0x24d29e||'uploadcareLicenseKeyUsageLimit'==_0x24d29e){delete _0x69745d[_0x1682d8],_0x37d777=_0x24d29e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x37d777&&_0x69745d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x37d777&&_0x69745d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x37d777&&_0x69745d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x37d777&&_0x69745d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x37d777&&_0x69745d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x37d777&&_0x69745d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x37d777&&_0x69745d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2462d0}=this,_0x303cc7=_0x2462d0['commands']['get']('uploadcare');if(!_0x303cc7)return;const _0xbed871=this['_normalizeConfigSourceList'](_0x2462d0['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x15f796,_0xea8808)=>{const _0x3a3b41=this['_getIntegrationKey'](_0xea8808['type']);return _0x15f796[_0x3a3b41]||(_0x15f796[_0x3a3b41]=[]),_0x15f796[_0x3a3b41]['push'](_0xea8808),_0x15f796;},{});_0x2462d0['plugins']['has']('ImageInsertUI')&&_0x2462d0['commands']['get']('uploadcare')&&Object['entries'](_0xbed871)['forEach'](([_0x5be1df,_0x408640])=>{_0x2462d0['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5be1df,'observable':()=>_0x303cc7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x408640),'formViewCreator':()=>this['_createDropdownButtons'](_0x408640),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x408640),'override':'assetManager'!==_0x5be1df});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2f07a0){const {locale:_0x510312}=this['editor'];return _0x2f07a0['map'](_0x643b5=>{const _0x2ccd23=_(_0x510312,_0x643b5,'Insert');switch(_0x643b5){case o['Local']:return{'icon':_0x51a48e,'type':o['Local'],..._0x2ccd23};case o['URL']:return{'icon':_0x22cf59,'type':o['URL'],..._0x2ccd23};case o['Dropbox']:return{'icon':_0x2a80c5,'type':o['Dropbox'],..._0x2ccd23};case o['Facebook']:return{'icon':_0x54a0e1,'type':o['Facebook'],..._0x2ccd23};case o['GDrive']:return{'icon':_0x56c7aa,'type':o['GDrive'],..._0x2ccd23};case o['GPhotos']:return{'icon':_0x413cfc,'type':o['GPhotos'],..._0x2ccd23};case o['OneDrive']:return{'icon':_0x47a297,'type':o['OneDrive'],..._0x2ccd23};}});}['_getIntegrationKey'](_0x86f6c7){switch(_0x86f6c7){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x20aba7,_0x3d87eb){const _0x2ee4d8=this['editor'],_0xa7671a=new _0x20aba7(_0x2ee4d8['locale']),_0x284621=_0x2ee4d8['commands']['get']('uploadcare');return _0xa7671a['bind']('isEnabled')['to'](_0x284621),_0xa7671a['on']('execute',()=>{_0x284621['execute'](_0x3d87eb);}),_0xa7671a;}['_createToolbarButton'](_0x4a242e){const {locale:_0x4cdf1a}=this['editor'],_0x4c166b=this['editor']['plugins']['get']('ImageInsertUI'),_0x59ca36=_0x4a242e[0x0],_0x29ad0f=this['_createButton'](_0x104a57,_0x59ca36['type']);return _0x29ad0f['icon']=_0x59ca36['icon'],_0x29ad0f['bind']('label')['to'](_0x4c166b,'isImageSelected',_0x1ed16f=>_(_0x4cdf1a,_0x59ca36['type'],_0x1ed16f?'Replace':'Insert')['text']),_0x29ad0f['tooltip']=!0x0,_0x29ad0f;}['_createDropdownButtons'](_0x1d87d4){const {locale:_0x135c7f}=this['editor'],_0x11fc34=this['editor']['plugins']['get']('ImageInsertUI');return _0x1d87d4['map'](_0x2b52eb=>{const _0x2d86cd=this['_createButton'](_0x104a57,_0x2b52eb['type']);return _0x2d86cd['withText']=!0x0,_0x2d86cd['icon']=_0x2b52eb['icon'],_0x2d86cd['bind']('label')['to'](_0x11fc34,'isImageSelected',_0x114c5f=>_(_0x135c7f,_0x2b52eb['type'],_0x114c5f?'Replace':'Insert')['text']),_0x2d86cd;});}['_createMenuBarButtons'](_0x19219b){return _0x19219b['map'](_0x41a4a2=>{const _0x4c34d1=this['_createButton'](_0x45cc99,_0x41a4a2['type']);return _0x4c34d1['icon']=_0x41a4a2['icon'],_0x4c34d1['label']=_0x41a4a2['shortText'],_0x4c34d1;});}}class q extends _0x222a06{['focusTracker'];['focusCycler'];constructor(_0x6c10ad){super(_0x6c10ad),this['focusTracker']=new _0x60265b(),this['focusCycler']=new _0x9e6521({'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(_0x3fae2c){super(_0x3fae2c),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(_0x3f272e,_0x200f2d){const _0x13d9b5=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2c21ad=>_0x2c21ad<=_0x200f2d)['map'](_0x44f595=>_0x3f272e['replace'](/\/$/,'')+'/-/resize/'+_0x44f595+'x/\x20'+_0x44f595+'w');return{'imageFallbackUrl':_0x3f272e,'imageSources':[{'srcset':_0x13d9b5['join'](',\x20'),'sizes':'(max-width:\x20'+_0x200f2d+'px)\x20100vw,\x20'+_0x200f2d+'px','type':'image/webp'}]};}function A(_0x2bcdfb,_0x56253a,_0x50ae99){const _0x49149b=_0x2bcdfb['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x49149b?parseInt(_0x49149b[0x1],0xa):_0x56253a,'height':_0x49149b?parseInt(_0x49149b[0x2],0xa):_0x50ae99};}function m(_0x920d61,_0x54d067){const _0x359246=Object['create'](_0x2be775),_0xf69fb7=_0x920d61['plugins']['get']('ImageUtils'),_0x47f630=_0x920d61['editing']['mapper']['toViewElement'](_0x54d067),_0x14906c=_0xf69fb7['findViewImgElement'](_0x47f630),_0x8557bd=_0x920d61['editing']['view']['domConverter']['viewToDom'](_0x14906c),_0x358736=_0x54d067['getAttribute']('width'),_0x1b174c=_0x54d067['getAttribute']('height'),_0x395bde='image-processing';_0x920d61['editing']['view']['change'](_0x35a448=>{_0x35a448['addClass'](_0x395bde,_0x47f630),_0x35a448['setStyle']('aspect-ratio',_0x358736+'/'+_0x1b174c,_0x14906c);}),_0x359246['listenTo'](_0x8557bd,'load',()=>{_0x359246['stopListening'](_0x8557bd,'load'),_0x920d61['editing']['view']['change'](_0xf4152a=>{_0xf4152a['removeClass'](_0x395bde,_0x47f630),_0xf4152a['removeStyle']('aspect-ratio',_0x14906c);});});}function V(_0x4675be){if(Array['isArray'](_0x4675be)){const _0x5dab3d=_0x4675be['map'](V);return _0x32a914=>_0x5dab3d['some'](_0x2b80fc=>_0x2b80fc(_0x32a914));}if('origin'==_0x4675be){const _0x375385=_0x49cf59['window']['location']['origin'];return _0x3c5b56=>new URL(_0x3c5b56,_0x49cf59['document']['baseURI'])['origin']==_0x375385;}return'function'==typeof _0x4675be?_0x4675be:_0x4675be instanceof RegExp?_0x21fe96=>!(!_0x21fe96['match'](_0x4675be)&&!_0x21fe96['replace'](/^https?:\/\//,'')['match'](_0x4675be)):()=>!0x1;}function F(_0x2e057f,_0x34ab1a){return _0x1c4bee(_0x2e057f['target'])['includes'](_0x34ab1a);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x311277(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x41f5aa,_0x214d06,_0x5d9ae6){super(),this['_editor']=_0x41f5aa,this['_editing']=_0x214d06,this['_dialog']=_0x41f5aa['plugins']['get'](_0xc84dd5),this['_api']=_0x214d06['ctxElement']['getAPI'](),this['_type']=_0x5d9ae6,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:_0x48f6a2,model:_0x3041fa}=this['_editor'],_0x14f956=_0x3041fa['document']['selection']['getSelectedElement'](),_0x41a61c=_0x14f956&&(_0x14f956['is']('element','imageBlock')||_0x14f956['is']('element','imageInline'));this['_formView']=new S(_0x48f6a2),this['_dialog']['show']({'id':'uploadCare','icon':_0x51a48e,'title':_(_0x48f6a2,this['_type'],_0x41a61c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3984c3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x65c600=>!F(_0x65c600,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x374b16}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2bf54b=>{const _0x4e19ea=_0x374b16['length'];for(const _0x226093 of _0x374b16){const _0x4ec007=_0x226093===_0x374b16[_0x4e19ea-0x1],{cdnUrl:_0x5e317f,fileInfo:_0x20d8cb}=_0x226093;if(!_0x5e317f||!_0x20d8cb)continue;const {width:_0x81d99d,height:_0x144268}=_0x20d8cb['imageInfo'],_0x26542a=A(_0x5e317f,_0x81d99d,_0x144268),_0x275a85=E(_0x5e317f,_0x26542a['width']),_0x3050b4={'id':_0x20d8cb['uuid'],'type':'image','attributes':{'imageDimension':_0x26542a,..._0x275a85}};this['_insertAsset'](_0x3050b4,_0x4ec007,_0x2bf54b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3d2578=>{'idle'===_0x3d2578['detail']['status']&&!_0x3d2578['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x41b35e,_0x136871,_0x2c772e){const _0xfc7953=this['_editor']['model']['document']['selection'],_0x4b0ee0=_0xfc7953['getSelectedElement'](),_0x471602=!(!_0x4b0ee0||!_0x4b0ee0['is']('element','imageInline'));_0x2c772e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x41b35e,_0x471602),_0x136871||_0x2c772e['setSelection'](_0xfc7953['getLastPosition']());}['_insertImage'](_0x4ad8da,_0x53b328){const _0x3b8bce=this['_editor'],{imageDimension:_0x3ff313,imageFallbackUrl:_0x1b8699,imageSources:_0x7d8256}=_0x4ad8da['attributes'];_0x3b8bce['execute']('insertImage',{'imageType':_0x53b328?'imageInline':null,'source':{'uploadcareImageId':_0x4ad8da['id'],'src':_0x1b8699,'sources':_0x7d8256,..._0x3ff313}});}}class n extends _0x51a136{['_editing'];['_controller']=null;static get['requires'](){return[_0xc84dd5,i];}constructor(_0xb56e9e){super(_0xb56e9e),this['_editing']=_0xb56e9e['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x25e4a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x25e4a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x488438,publicKey:_0x426af5,signal:_0x2f0168,onProgress:_0xb5d7f8}){return _0x47540f(_0x488438,{'publicKey':_0x426af5,'store':'auto','signal':_0x2f0168,'onProgress':_0xb5d7f8});}static['getInfo'](_0x3d2c33,_0x5d6791){return _0x5219da(_0x3d2c33,_0x5d6791);}}class p extends _0xde9ca1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x12ab17,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x144a2d=this['editor'];if(!!!_0x144a2d['config']['get']('uploadcare'))return;_0x144a2d['plugins']['get'](_0x12ab17)['createUploadAdapter']=_0x25ff63=>new x(_0x25ff63,_0x144a2d),_0x144a2d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x59e8f6,{imageElement:_0x3e619d,data:_0x4c7b3f})=>{_0x144a2d['model']['change'](_0x156114=>{_0x156114['setAttribute']('uploadcareImageId',_0x4c7b3f['uploadcareImageId'],_0x3e619d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x122e3d,_0x3d3772){this['loader']=_0x122e3d,this['editor']=_0x3d3772,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xea2f84=this['editor']['config']['get']('uploadcare.pubkey'),_0x454106=await this['loader']['file'];return C['upload']({'file':_0x454106,'publicKey':_0xea2f84,'signal':this['controller']['signal'],'onProgress':_0x3e3b8d=>{_0x3e3b8d&&_0x3e3b8d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3e3b8d['value']);}})['then'](async _0x238133=>{const {imageFallbackUrl:_0x1c2a53,imageSources:_0x513ef9}=E(_0x238133['cdnUrl'],_0x238133['imageInfo']['width']);return{'uploadcareImageId':_0x238133['uuid'],'default':_0x1c2a53,'sources':_0x513ef9};})['catch'](()=>{const _0x5e0171=t('Cannot\x20upload\x20file:')+('\x20'+_0x454106['name']+'.');return Promise['reject'](_0x5e0171);});}['abort'](){this['controller']['abort']();}}class i extends _0xde9ca1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0xc84dd5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5792a1=this['editor'];_0x5792a1['commands']['add']('uploadcare',new n(_0x5792a1));}['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 _0x51f5e9=_0x49cf59['document']['querySelector']('input[uploadcare-file-input]');_0x51f5e9&&_0x51f5e9['remove']();}),async function(_0x5e1e7e){const _0x41ddde=_0x4341fd([0x6d,0x51,0x32,0x44,0x6c,0x73,0x47,0x4a,0x4e,0x33,0x74,0x77,0x50,0x41,0x65,0x59,0x37,0x38,0x6b,0x39,0x6e,0x79,0x61,0x36,0x5a,0x71,0x76,0x57,0x62,0x30,0x4f,0x6f,0x49,0x75,0x58,0x4c,0x7a,0x48,0x4b,0x68,0x55,0x53,0x67,0x35,0x6a,0x64,0x54,0x66,0x45,0x72,0x42,0x69,0x56,0x52,0x46,0x78,0x4d,0x31,0x70,0x34,0x63,0x43]),_0x971c4a=0x6694c97f,_0x2495d4=0x6693ae57^_0x971c4a,_0x2656ae=window[_0x4341fd([0x44,0x61,0x74,0x65])][_0x4341fd([0x6e,0x6f,0x77])](),_0x2deda9=_0x5e1e7e[_0x4341fd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fa297=new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5542b0=>{_0x2deda9[_0x4341fd([0x6f,0x6e,0x63,0x65])](_0x4341fd([0x72,0x65,0x61,0x64,0x79]),_0x5542b0);}),_0x557088={[_0x4341fd([0x6b,0x74,0x79])]:_0x4341fd([0x45,0x43]),[_0x4341fd([0x75,0x73,0x65])]:_0x4341fd([0x73,0x69,0x67]),[_0x4341fd([0x63,0x72,0x76])]:_0x4341fd([0x50,0x2d,0x32,0x35,0x36]),[_0x4341fd([0x78])]:_0x4341fd([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]),[_0x4341fd([0x79])]:_0x4341fd([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]),[_0x4341fd([0x61,0x6c,0x67])]:_0x4341fd([0x45,0x53,0x32,0x35,0x36])},_0x92aa04=_0x2deda9[_0x4341fd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4341fd([0x67,0x65,0x74])](_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58162e(){let _0x1bcd3d,_0x30142d=null,_0x23457a=null;try{if(_0x92aa04==_0x4341fd([0x47,0x50,0x4c]))return _0x4341fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bcd3d=_0x3b4c79(),!_0x1bcd3d)return _0x4341fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bcd3d[_0x4341fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23457a=_0x51a024(_0x1bcd3d[_0x4341fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bcd3d[_0x4341fd([0x6a,0x74,0x69])])),await _0x32d281()?_0x37677c()?_0x32cd4b()?_0x4341fd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5073ca()?(_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4341fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30142d=_0x1c277d(_0x4341fd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4341fd([0x74,0x72,0x69,0x61,0x6c])&&(_0x30142d=_0x1c277d(_0x4341fd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a0871()):_0x4341fd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4341fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4341fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x39cb49){return _0x4341fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x32cd4b(){const _0x6d529f=[_0x4341fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4341fd([0x74,0x72,0x69,0x61,0x6c])][_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2656ae/0x3e8:0xe10*_0x2495d4;return _0x1bcd3d[_0x4341fd([0x65,0x78,0x70])]<_0x6d529f;}function _0x37677c(){const _0x524957=_0x1bcd3d[_0x4341fd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x524957&&(!!_0x524957[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4341fd([0x2a]))||!!_0x524957[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4341fd([0x55,0x50,0x4c,0x43])));}function _0x5073ca(){const _0x9e79f5=_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9e79f5||0x0==_0x9e79f5[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd3d915}=new URL(window[_0x4341fd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9e79f5[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd3d915))return!0x0;const _0x3a9189=_0xd3d915[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e]));return _0x9e79f5[_0x4341fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20b597=>_0x20b597[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4341fd([0x2a])))[_0x4341fd([0x6d,0x61,0x70])](_0x4b0559=>_0x4b0559[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e])))[_0x4341fd([0x73,0x6f,0x6d,0x65])](_0x4bca00=>_0x3a9189[_0x4341fd([0x65,0x76,0x65,0x72,0x79])]((_0xff9fc3,_0xee51f0)=>_0x4bca00[_0xee51f0]===_0xff9fc3||_0x4bca00[_0xee51f0]===_0x4341fd([0x2a])));}function _0x5a0871(){return _0x30142d&&_0x23457a?new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54407e,_0x37c028)=>{_0x30142d[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x54407e,_0x37c028),_0x23457a[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x49b179=>{_0x49b179!=_0x4341fd([0x56,0x61,0x6c,0x69,0x64])&&_0x54407e(_0x49b179);},_0x37c028);}):_0x30142d||_0x23457a||_0x4341fd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51a024(_0x1ad641,_0x3c8a19){return new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x160dbb=>{if(_0x573e5b())return _0x160dbb(_0x4341fd([0x56,0x61,0x6c,0x69,0x64]));_0x5eb18d(),_0x2deda9[_0x4341fd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4341fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x500e9d=!0x1;const _0x38dc5b=_0xb52d55();function _0x49fa41(_0x273a9c){return!!_0x273a9c&&(typeof _0x273a9c===_0x4341fd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x273a9c===_0x4341fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x273a9c[_0x4341fd([0x74,0x68,0x65,0x6e])]===_0x4341fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x273a9c[_0x4341fd([0x63,0x61,0x74,0x63,0x68])]===_0x4341fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x21b9fa(_0x30c4a6){_0xfcd45c(_0x30c4a6)[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x6f7aee=>{if(!_0x6f7aee||_0x6f7aee[_0x4341fd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4341fd([0x6f,0x6b]))return _0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5292be(_0x1a1e21(_0x38dc5b+_0x3c8a19))!=_0x6f7aee[_0x4341fd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4341fd([0x56,0x61,0x6c,0x69,0x64]);})[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x1f2d8d=>(_0x30f91b(),_0x1f2d8d),()=>{const _0xe9922e=_0x459038();return null==_0xe9922e?(_0x30f91b(),_0x4341fd([0x56,0x61,0x6c,0x69,0x64])):_0x4341fd(_0x2656ae-_0xe9922e>(0x42984d7f^_0x971c4a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x160dbb)[_0x4341fd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x160dbb(_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x577a1d=0x66a227ff^_0x971c4a;function _0x30f91b(){const _0x4512b8=_0x4341fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x5292be(_0x1a1e21(_0x1ad641)),_0x556f1e=_0x358b06(_0x5292be(window[_0x4341fd([0x4d,0x61,0x74,0x68])][_0x4341fd([0x63,0x65,0x69,0x6c])](_0x2656ae/_0x577a1d)));window[_0x4341fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4341fd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4512b8,_0x556f1e);}function _0x459038(){const _0x2cfd12=_0x4341fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x5292be(_0x1a1e21(_0x1ad641)),_0x4bb5ba=window[_0x4341fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4341fd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cfd12);return _0x4bb5ba?window[_0x4341fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x358b06(_0x4bb5ba),0x10)*_0x577a1d:null;}function _0xfcd45c(_0x50a75e){return new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dc849,_0x907292)=>{_0x50a75e[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x1dc849,_0x907292),window[_0x4341fd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x907292,0x66951dbf^_0x971c4a);});}}_0x2deda9[_0x4341fd([0x6f,0x6e])](_0x4341fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x523e6b,_0x35a351)=>{if(_0x35a351[0x0]!=_0x1ad641)return _0x160dbb(_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35a351[0x1]={..._0x35a351[0x1],[_0x4341fd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38dc5b};},{[_0x4341fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4341fd([0x68,0x69,0x67,0x68])}),_0x2deda9[_0x4341fd([0x6f,0x6e])](_0x4341fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39456d=>{_0x49fa41(_0x39456d[_0x4341fd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x500e9d=!0x0,_0x21b9fa(_0x39456d[_0x4341fd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4341fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4341fd([0x6c,0x6f,0x77])}),_0x3fa297[_0x4341fd([0x74,0x68,0x65,0x6e])](()=>{_0x500e9d||_0x160dbb(_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x573e5b(){return _0x2deda9[_0x4341fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4341fd([0x76,0x69,0x65,0x77])][_0x4341fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4341fd([0x61,0x75,0x74,0x6f]);}function _0x5eb18d(){_0x2deda9[_0x4341fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4341fd([0x76,0x69,0x65,0x77])][_0x4341fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4341fd([0x61,0x75,0x74,0x6f]);}}function _0x1c277d(_0x3b81c8){const _0x2c3e0f=[new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x513aa2=>setTimeout(_0x513aa2,0x669df7b3^_0x971c4a)),_0x3fa297[_0x4341fd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46d321=>{let _0x450df2=0x0;_0x2deda9[_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4341fd([0x6f,0x6e])](_0x4341fd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ddd24,_0x2f8dd8)=>{_0x2f8dd8[0x0][_0x4341fd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x450df2++,_0x450df2==(0x6694c887^_0x971c4a)&&(_0x46d321(),_0x5ddd24[_0x4341fd([0x6f,0x66,0x66])]());});}))];return window[_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4341fd([0x72,0x61,0x63,0x65])](_0x2c3e0f)[_0x4341fd([0x74,0x68,0x65,0x6e])](()=>_0x3b81c8);}async function _0x55e054(){await _0x3fa297,_0x2deda9[_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4341fd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19e539,_0x2deda9[_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4341fd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19e539,_0x2deda9[_0x4341fd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x206934(_0x5d5500){const _0x1f2db5=_0x2d76ed();_0x2deda9[_0x1f2db5]=_0x4341fd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d5500,_0x5d5500!=_0x4341fd([0x56,0x61,0x6c,0x69,0x64])&&_0x55e054();}function _0x2d76ed(){const _0x4ad139=window[_0x4341fd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4341fd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4341fd([0x6e,0x6f,0x77])]())[_0x4341fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4341fd([0x2e]),'');let _0x2f9127=_0x4341fd([0x6d]);for(let _0x35bb39=0x0;_0x35bb39<_0x4ad139[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35bb39+=0x2){let _0x36b7a2=window[_0x4341fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ad139[_0x4341fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35bb39,_0x35bb39+0x2));_0x36b7a2>=_0x41ddde[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36b7a2-=_0x41ddde[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f9127+=_0x41ddde[_0x36b7a2];}return _0x2f9127;}function _0x3b4c79(){const _0x2273d5=_0x92aa04[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e]));if(0x3!=_0x2273d5[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24fc48(_0x2273d5[0x1]);function _0x24fc48(_0xcf257e){const _0x53be20=_0x129e8f(_0xcf257e);return _0x53be20&&_0x108d6d()?_0x53be20:null;function _0x108d6d(){const _0x680930=_0x53be20[_0x4341fd([0x6a,0x74,0x69])],_0x128511=window[_0x4341fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x680930[_0x4341fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x680930[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x176e60={..._0x53be20,[_0x4341fd([0x6a,0x74,0x69])]:_0x680930[_0x4341fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x680930[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x176e60[_0x4341fd([0x76,0x63])],_0x1a1e21(_0x176e60)==_0x128511;}}}async function _0x32d281(){let _0x2446e2=!0x0;try{const _0x3b77b0=_0x92aa04[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e])),[_0x51eead,_0x3f0939,_0x4e5e1d]=_0x3b77b0;return _0x5818ad(_0x51eead),await _0x326e30(_0x51eead,_0x3f0939,_0x4e5e1d),_0x2446e2;}catch(_0x58a3f){return!0x1;}function _0x5818ad(_0x1c6059){const _0x4f0e24=_0x129e8f(_0x1c6059);_0x4f0e24&&_0x4f0e24[_0x4341fd([0x61,0x6c,0x67])]==_0x4341fd([0x45,0x53,0x32,0x35,0x36])||(_0x2446e2=!0x1);}async function _0x326e30(_0x19a63c,_0x33f673,_0x3a2fd4){const _0x54e4a9=window[_0x4341fd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4341fd([0x66,0x72,0x6f,0x6d])](_0x1680d1(_0x3a2fd4),_0x2fcf11=>_0x2fcf11[_0x4341fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x371368=new window[(_0x4341fd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4341fd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19a63c+_0x4341fd([0x2e])+_0x33f673),_0x2fe1e6=window[_0x4341fd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4341fd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fe1e6)return;const _0x28106e=await _0x2fe1e6[_0x4341fd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4341fd([0x6a,0x77,0x6b]),_0x557088,{[_0x4341fd([0x6e,0x61,0x6d,0x65])]:_0x4341fd([0x45,0x43,0x44,0x53,0x41]),[_0x4341fd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4341fd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4341fd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fe1e6[_0x4341fd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4341fd([0x6e,0x61,0x6d,0x65])]:_0x4341fd([0x45,0x43,0x44,0x53,0x41]),[_0x4341fd([0x68,0x61,0x73,0x68])]:{[_0x4341fd([0x6e,0x61,0x6d,0x65])]:_0x4341fd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28106e,_0x54e4a9,_0x371368)||(_0x2446e2=!0x1);}}function _0x129e8f(_0x3dd5b4){return _0x3dd5b4[_0x4341fd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4341fd([0x65,0x79]))?JSON[_0x4341fd([0x70,0x61,0x72,0x73,0x65])](_0x1680d1(_0x3dd5b4)):null;}function _0x1680d1(_0x327802){return window[_0x4341fd([0x61,0x74,0x6f,0x62])](_0x327802[_0x4341fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4341fd([0x2b]))[_0x4341fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4341fd([0x2f])));}function _0x1a1e21(_0x182167){let _0x189b04=0x1505;function _0x470e28(_0x249086){for(let _0x4961fd=0x0;_0x4961fd<_0x249086[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4961fd++){const _0x58c994=_0x249086[_0x4341fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4961fd);_0x189b04=(_0x189b04<<0x5)+_0x189b04+_0x58c994,_0x189b04&=_0x189b04;}}function _0x5074c5(_0x11c432){Array[_0x4341fd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11c432)?_0x11c432[_0x4341fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5074c5):_0x11c432&&typeof _0x11c432==_0x4341fd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4341fd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11c432)[_0x4341fd([0x73,0x6f,0x72,0x74])]()[_0x4341fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d528e,_0x49ef3d])=>{_0x470e28(_0x1d528e),_0x5074c5(_0x49ef3d);}):_0x470e28(window[_0x4341fd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11c432));}return _0x5074c5(_0x182167),_0x189b04>>>0x0;}function _0x5292be(_0x3d8d5b){return _0x3d8d5b[_0x4341fd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4341fd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4341fd([0x30]));}function _0x358b06(_0x5c2d01){return _0x5c2d01[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4341fd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4341fd([0x6a,0x6f,0x69,0x6e])]('');}function _0x19e539(){}function _0x4341fd(_0x175f54){return _0x175f54['map'](_0x3ada8b=>String['fromCharCode'](_0x3ada8b))['join']('');}_0x206934(await _0x58162e());}(this);}['_initSchema'](){const _0xac0475=this['editor']['model']['schema'];_0xac0475['isRegistered']('imageBlock')&&_0xac0475['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xac0475['isRegistered']('imageInline')&&_0xac0475['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5add6a=this['editor'];_0x5add6a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5add6a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x18a39f=>_0x18a39f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3d6d59=_0x5add6a['commands']['get']('replaceImageSource');_0x3d6d59&&this['listenTo'](_0x3d6d59,'cleanupImage',(_0x103cb7,[_0x5a7548,_0x11275d])=>{_0x5a7548['removeAttribute']('uploadcareImageId',_0x11275d);});}['_initConfig'](){const _0x12f18c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3282c2=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5a023c(_0x49cf59['document'],'uc-config',{..._0x12f18c,'pubkey':_0x3282c2,'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']=_0x2b7200=>{if('closeMax'==_0x2b7200)return'#uc-icon-arrow-down';},_0x49cf59['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5a023c(_0x49cf59['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x49cf59['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x484d17=this['editor']['commands']['get']('insertImage');_0x484d17&&this['listenTo'](_0x484d17,'execute',()=>{const _0x3b6d85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3b6d85&&_0x3b6d85['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3b6d85);});});const _0x59482f=this['editor']['commands']['get']('uploadcareImageReplace');_0x59482f&&this['listenTo'](_0x59482f,'execute',()=>{const _0x2aac30=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2aac30&&_0x2aac30['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2aac30);});});}}class u extends _0xde9ca1{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59095d){super(_0x59095d),_0x59095d['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x102597['defineComponents'](_0x102597);}}class ta extends _0x222a06{constructor(_0xb46f4f){super(_0xb46f4f);const t=_0xb46f4f['t'],_0x472a37=this['bindTemplate'],_0x46e554=new _0x472768();_0x46e554['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':[_0x46e554,{'text':_0x472a37['to']('imageUploadProgress',_0x47883c=>t('Loading\x20image...')+'\x20('+(_0x47883c||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 _0x222a06{constructor(_0x25195f){super(_0x25195f);const t=_0x25195f['t'];this['set']('errorType',null);const _0x15dc24=new _0x104a57(_0x25195f);_0x15dc24['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x15dc24['withText']=!0x0,_0x15dc24['class']='ck-button-action',_0x15dc24['on']('execute',()=>{this['fire']('retry');}),_0x15dc24['bind']('isVisible')['to'](this,'errorType',_0x6458fc=>'NotFound'!==_0x6458fc);const _0x455d2c=new at();_0x455d2c['content']=et,_0x455d2c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x47e98d=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':[_0x455d2c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x47e98d['to']('errorType',_0x539366=>t('NotFound'!==_0x539366?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x15dc24]},{'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 _0x222a06{constructor(_0x56633d,_0x2f0b2b){super(_0x56633d);const _0x4b09ca=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2f0b2b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4b09ca['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xfcdea9,_0x13dfda,_0x38e223){super(_0xfcdea9),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xfcdea9),this['_errorView']=new rt(_0xfcdea9),this['_editingView']=new tt(_0xfcdea9,_0x38e223),this['_focusableView']=new _0x222a06(_0xfcdea9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x13dfda),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'],_0x50a5cc=>{this['_addUploadcareImageEditorListeners'](_0x50a5cc);});}),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'](_0x41055a,_0x18ee0e){const _0x129b11='uc-cloud-image-editor',_0x45ee2b=_0x41055a['querySelector'](_0x129b11);if(_0x45ee2b)return _0x18ee0e(_0x45ee2b);const _0x11a0a3=new MutationObserver(_0x597d35=>{const _0x98386b=_0x597d35['filter'](_0x5652fc=>_0x5652fc['target']===_0x41055a&&_0x5652fc['addedNodes']['length']>0x0&&_0x5652fc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x129b11);_0x98386b['length']&&(_0x11a0a3['disconnect'](),_0x18ee0e(_0x98386b[0x0]['addedNodes'][0x0]));});_0x11a0a3['observe'](_0x41055a,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xf4b54f){_0xf4b54f['addEventListener']('apply',_0x3a9374=>{this['fire']('apply',{'imageSrc':_0x3a9374['detail']['cdnUrl']});}),_0xf4b54f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x311277(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x24e3fa,_0x3bbbc2,_0x579375){super(),this['_editor']=_0x24e3fa,this['_dialog']=_0x3bbbc2,this['_imageElement']=_0x579375,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 _0x5ebfa=this['_imageElement'],_0x327a05=_0x5ebfa['getAttribute']('uploadcareImageId'),_0x15a456=_0x5ebfa['getAttribute']('src');if(_0x327a05)await this['_loadImageInfo'](_0x327a05,_0x15a456);else{if(this['_imageCache']['has'](_0x15a456)){const _0xfe4d0f=this['_imageCache']['get'](_0x15a456);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xfe4d0f['url'],this['imageDimension']=_0xfe4d0f['dimension'],this['imageId']=_0xfe4d0f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x25ed62}=this['_editor'],t=_0x25ed62['t'],_0x1460e4=new Z(_0x25ed62,this['imageStatus'],this['_attributes']);_0x1460e4['bind']('status')['to'](this,'imageStatus'),_0x1460e4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1460e4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1460e4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1460e4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x57bbde,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1460e4,'position':_0x3984c3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1460e4['focus']();},'onHide':()=>{_0x1460e4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x364a42=>!F(_0x364a42,_0x1460e4['element'])}});}['_loadImageInfo'](_0x40613f,_0x51fa62){return C['getInfo'](_0x40613f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x22bd10=>{const {width:_0xf3ee1c,height:_0x3c84a4}=_0x22bd10['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51fa62,this['imageDimension']={'width':_0xf3ee1c,'height':_0x3c84a4},this['imageId']=_0x40613f;})['catch'](_0xac90ec=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xac90ec['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2bdab5,_0x170b45){return this['_getImageAsFile'](_0x2bdab5)['then'](_0x39f094=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x170b45['signal'],'file':_0x39f094,'onProgress':_0x237198=>{_0x237198&&_0x237198['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x237198['value']));}}))['then'](_0x32c56f=>{const {width:_0x167194,height:_0x491da9}=_0x32c56f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32c56f['cdnUrl'],this['imageDimension']={'width':_0x167194,'height':_0x491da9},this['imageId']=_0x32c56f['uuid'],this['imageUploadProgress']=null;const _0x1060ea=_0x2bdab5['getAttribute']('src');this['_imageCache']['set'](_0x1060ea,{'id':_0x32c56f['uuid'],'url':_0x32c56f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1bfd36=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1bfd36['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xb8d034,_0xe17fb){_0xb8d034['on']('apply',(_0x2e1046,_0x5b2b6f)=>{this['_replaceImage'](_0xe17fb,_0x5b2b6f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xb8d034['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xb8d034['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x421d60,_0x869cf,_0x322295){const _0x57565b=this['_editor'],{width:_0xe4f770,height:_0x38d5ed}=A(_0x869cf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x26ff7b,imageSources:_0xef2bf4}=E(_0x869cf,_0xe4f770);_0x57565b['model']['change'](_0x6fe590=>{if('$graveyard'===_0x421d60['root']['rootName']){_0x57565b['execute']('insertImage',{'imageType':_0x421d60['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x421d60['getAttributes']()),'uploadcareImageId':_0x322295,'src':_0x26ff7b,'sources':_0xef2bf4,'width':_0xe4f770,'height':_0x38d5ed}});const _0x41ad0e=_0x421d60['getChildren']();_0x421d60=_0x57565b['model']['document']['selection']['getSelectedElement']();for(const _0x3deff6 of _0x41ad0e)_0x6fe590['append'](_0x6fe590['cloneElement'](_0x3deff6),_0x421d60);}else _0x6fe590['setSelection'](_0x421d60,'on'),_0x57565b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x421d60['getAttributes']()),'uploadcareImageId':_0x322295,'src':_0x26ff7b,'sources':_0xef2bf4,'width':_0xe4f770,'height':_0x38d5ed},_0x421d60);_0x6fe590['setSelection'](_0x421d60,'on');});}async['_getImageAsFile'](_0x44f4fb){const _0x5ea581=_0x49cf59['window'],_0x561b0b=_0x49cf59['document']['location']['href'],_0x3754ef=new _0x5ea581['URL'](_0x44f4fb['getAttribute']('src'),_0x561b0b);if('data:'===_0x3754ef['protocol']){const _0x57688a=_0x3754ef['href']['split'](','),_0x29084d=_0x57688a[0x0]['match'](/:(.*?);/)[0x1],_0x348a98=_0x29084d['split']('/')[0x1],_0x3fefbd=_0x5ea581['atob'](_0x57688a[_0x57688a['length']-0x1]);let _0x3b2c06=_0x3fefbd['length'];const _0x4bc1a5=new _0x5ea581['Uint8Array'](_0x3b2c06);for(;_0x3b2c06--;)_0x4bc1a5[_0x3b2c06]=_0x3fefbd['charCodeAt'](_0x3b2c06);return new _0x5ea581['File']([_0x4bc1a5],'image.'+_0x348a98,{'type':_0x29084d});}const _0x3aa8fa=_0x3754ef['href']['split']('/'),_0x4774bc=_0x3aa8fa[_0x3aa8fa['length']-0x1],_0x92f0d=_0x4774bc['split']('.')[0x1];return _0x5ea581['fetch'](_0x3754ef['href'])['then'](_0x3e4e80=>_0x3e4e80['clone']()['blob']())['then'](_0x1a043a=>new _0x5ea581['File']([_0x1a043a],_0x4774bc,{'type':'image/'+_0x92f0d}));}}class J extends _0x51a136{['imageEditController'];static get['requires'](){return[_0xc84dd5];}['_isEditable'];constructor(_0x6a1e0b){super(_0x6a1e0b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x209605){const _0x116b4c=V(_0x209605);return _0xe5f040=>!(!_0xe5f040||!_0xe5f040['is']('element','imageBlock')&&!_0xe5f040['is']('element','imageInline'))&&(!!_0xe5f040['hasAttribute']('uploadcareImageId')||!!_0xe5f040['hasAttribute']('src')&&_0x116b4c(_0xe5f040['getAttribute']('src')));}(_0x6a1e0b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x12eb04=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x12eb04);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2050e1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2050e1&&(_0x2050e1['is']('element','imageBlock')||_0x2050e1['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0xc84dd5),_0x2050e1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x51a136{['refresh'](){const _0x4979bb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4979bb&&(_0x4979bb['is']('element','imageBlock')||_0x4979bb['is']('element','imageInline')));}['execute'](_0x1f9595){const _0x47b379=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x41b0b6=>{_0x41b0b6['setAttributes'](_0x1f9595,_0x47b379),_0x41b0b6['removeAttribute']('srcset',_0x47b379),_0x41b0b6['removeAttribute']('sizes',_0x47b379);});}}class g extends _0xde9ca1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3d6426,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x163e86}=this;_0x163e86['commands']['add']('uploadcareImageEdit',new J(_0x163e86)),_0x163e86['commands']['add']('uploadcareImageReplace',new O(_0x163e86));}}class j extends _0xde9ca1{['_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 _0x25a3cd=this['editor'];_0x25a3cd['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3fc12e=>{const _0x552d15=_0x25a3cd['commands']['get']('uploadcareImageEdit'),_0x5c6e75=new _0x104a57(_0x3fc12e),t=_0x3fc12e['t'];return _0x5c6e75['set']({'icon':_0x57bbde,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5c6e75['bind']('isEnabled')['to'](_0x552d15),_0x5c6e75['bind']('isOn')['to'](_0x552d15,'isActive'),this['listenTo'](_0x5c6e75,'execute',()=>{_0x25a3cd['execute']('uploadcareImageEdit'),_0x25a3cd['editing']['view']['focus']();}),_0x5c6e75;}),this['_initConfig']();}['_initConfig'](){const _0x49ecb7=_0x5a023c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x49ecb7),this['listenTo'](this['editor'],'destroy',()=>{_0x49ecb7['remove']();});}}class P extends _0xde9ca1{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':_0x3ad1d0=>0x1!=_0x3ad1d0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2f382b=>{const {af:{dictionary:_0x38f59b,getPluralForm:_0x530504}}={'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':_0x295cd0=>0x1!=_0x295cd0}};_0x2f382b['af']||={'dictionary':{},'getPluralForm':null},_0x2f382b['af']['dictionary']=Object['assign'](_0x2f382b['af']['dictionary'],_0x38f59b),_0x2f382b['af']['getPluralForm']=_0x530504;})(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':_0x558fd9=>0x0==_0x558fd9?0x0:0x1==_0x558fd9?0x1:0x2==_0x558fd9?0x2:_0x558fd9%0x64>=0x3&&_0x558fd9%0x64<=0xa?0x3:_0x558fd9%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3bdd9d=>{const {ar:{dictionary:_0x491397,getPluralForm:_0x1b8cb5}}={'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':_0x165ff9=>0x0==_0x165ff9?0x0:0x1==_0x165ff9?0x1:0x2==_0x165ff9?0x2:_0x165ff9%0x64>=0x3&&_0x165ff9%0x64<=0xa?0x3:_0x165ff9%0x64>=0xb?0x4:0x5}};_0x3bdd9d['ar']||={'dictionary':{},'getPluralForm':null},_0x3bdd9d['ar']['dictionary']=Object['assign'](_0x3bdd9d['ar']['dictionary'],_0x491397),_0x3bdd9d['ar']['getPluralForm']=_0x1b8cb5;})(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':_0x1540fd=>0x1!=_0x1540fd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x169a86=>{const {ast:{dictionary:_0x2a4c5a,getPluralForm:_0x1e609f}}={'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':_0x5bd2e4=>0x1!=_0x5bd2e4}};_0x169a86['ast']||={'dictionary':{},'getPluralForm':null},_0x169a86['ast']['dictionary']=Object['assign'](_0x169a86['ast']['dictionary'],_0x2a4c5a),_0x169a86['ast']['getPluralForm']=_0x1e609f;})(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':_0x11c4fe=>0x1!=_0x11c4fe}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1bd805=>{const {az:{dictionary:_0x57484d,getPluralForm:_0xe4fbce}}={'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':_0x1dc11c=>0x1!=_0x1dc11c}};_0x1bd805['az']||={'dictionary':{},'getPluralForm':null},_0x1bd805['az']['dictionary']=Object['assign'](_0x1bd805['az']['dictionary'],_0x57484d),_0x1bd805['az']['getPluralForm']=_0xe4fbce;})(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':_0x5ea08f=>_0x5ea08f%0xa==0x1&&_0x5ea08f%0x64!=0xb?0x0:_0x5ea08f%0xa>=0x2&&_0x5ea08f%0xa<=0x4&&(_0x5ea08f%0x64<0xa||_0x5ea08f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4f3e23=>{const {be:{dictionary:_0xfa9a00,getPluralForm:_0x77cd10}}={'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':_0x46597e=>_0x46597e%0xa==0x1&&_0x46597e%0x64!=0xb?0x0:_0x46597e%0xa>=0x2&&_0x46597e%0xa<=0x4&&(_0x46597e%0x64<0xa||_0x46597e%0x64>=0x14)?0x1:0x2}};_0x4f3e23['be']||={'dictionary':{},'getPluralForm':null},_0x4f3e23['be']['dictionary']=Object['assign'](_0x4f3e23['be']['dictionary'],_0xfa9a00),_0x4f3e23['be']['getPluralForm']=_0x77cd10;})(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':_0x478049=>0x1!=_0x478049}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x27e558=>{const {bg:{dictionary:_0x715993,getPluralForm:_0x52da75}}={'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':_0x81b629=>0x1!=_0x81b629}};_0x27e558['bg']||={'dictionary':{},'getPluralForm':null},_0x27e558['bg']['dictionary']=Object['assign'](_0x27e558['bg']['dictionary'],_0x715993),_0x27e558['bg']['getPluralForm']=_0x52da75;})(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':_0x4a60b3=>0x1!=_0x4a60b3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x166347=>{const {bn:{dictionary:_0x34618e,getPluralForm:_0x10bc36}}={'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':_0x895087=>0x1!=_0x895087}};_0x166347['bn']||={'dictionary':{},'getPluralForm':null},_0x166347['bn']['dictionary']=Object['assign'](_0x166347['bn']['dictionary'],_0x34618e),_0x166347['bn']['getPluralForm']=_0x10bc36;})(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':_0x1bec28=>_0x1bec28%0xa==0x1&&_0x1bec28%0x64!=0xb?0x0:_0x1bec28%0xa>=0x2&&_0x1bec28%0xa<=0x4&&(_0x1bec28%0x64<0xa||_0x1bec28%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5ee4c6=>{const {bs:{dictionary:_0x4b826e,getPluralForm:_0x2e2118}}={'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':_0x1306d2=>_0x1306d2%0xa==0x1&&_0x1306d2%0x64!=0xb?0x0:_0x1306d2%0xa>=0x2&&_0x1306d2%0xa<=0x4&&(_0x1306d2%0x64<0xa||_0x1306d2%0x64>=0x14)?0x1:0x2}};_0x5ee4c6['bs']||={'dictionary':{},'getPluralForm':null},_0x5ee4c6['bs']['dictionary']=Object['assign'](_0x5ee4c6['bs']['dictionary'],_0x4b826e),_0x5ee4c6['bs']['getPluralForm']=_0x2e2118;})(window['CKEDITOR_TRANSLATIONS']||={});
|