@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251020.0 → 0.0.0-nightly-20251022.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 _0x159463,Command as _0x2fd80b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4cf387,IconGooglePhotos as _0x18729b,IconGoogleDrive as _0x2e07e9,IconFacebook as _0x11670e,IconDropbox as _0x32de3f,IconUploadcareLink as _0x27186a,IconUploadcareImageUpload as _0x4aecb6,IconError as _0x5349d9,IconUploadcareImageEdit as _0x45f58d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xd996ec,MenuBarMenuListItemButtonView as _0x1d6cdd,View as _0x4ab4cf,FocusCycler as _0x1357ec,Dialog as _0x4d5e13,DialogViewPosition as _0x276675,SpinnerView as _0x72792d,IconView as _0x348336,Notification as _0x3d897b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5c9522,DomEmitterMixin as _0x4dc9d0,global as _0x8c5385,getAncestors as _0x3b8d11,ObservableMixin as _0x4f966e,uid as _0x2f8a51,createElement as _0x1386b0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2b3678}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2b1e13,info as _0x3bd0ac}from'@uploadcare/upload-client';import*as _0x34addb from'@uploadcare/file-uploader';var i=function(_0x5e5793){return _0x5e5793['Local']='local',_0x5e5793['URL']='url',_0x5e5793['Dropbox']='dropbox',_0x5e5793['GDrive']='gdrive',_0x5e5793['Facebook']='facebook',_0x5e5793['GPhotos']='gphotos',_0x5e5793['OneDrive']='onedrive',_0x5e5793;}({});function _(_0x47855d,_0x1b6ea5,_0x279f60){const t=_0x47855d['t'],_0xcddbe4=_0x47855d['t'];switch(_0x1b6ea5){case i['Local']:return{'text':_0xcddbe4('Insert'===_0x279f60?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xcddbe4('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x279f60?_0xcddbe4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xcddbe4('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x279f60?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x279f60?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x279f60?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x279f60?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x279f60?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1b6ea5;}}class e extends _0x159463{['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 _0x1b2bac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x230150;for(const _0x5d2267 in _0x1b2bac){const _0x4322ba=_0x5d2267,_0x260147=_0x1b2bac[_0x4322ba];if('uploadcareLicenseKeyValid'==_0x260147||'uploadcareLicenseKeyInvalid'==_0x260147||'uploadcareLicenseKeyExpired'==_0x260147||'uploadcareLicenseKeyDomainLimit'==_0x260147||'uploadcareLicenseKeyNotAllowed'==_0x260147||'uploadcareLicenseKeyEvaluationLimit'==_0x260147||'uploadcareLicenseKeyTrialLimit'==_0x260147||'uploadcareLicenseKeyUsageLimit'==_0x260147){delete _0x1b2bac[_0x4322ba],_0x230150=_0x260147,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x230150&&_0x1b2bac['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x230150&&_0x1b2bac['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x230150&&_0x1b2bac['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x230150&&_0x1b2bac['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x230150&&_0x1b2bac['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x230150&&_0x1b2bac['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x230150&&_0x1b2bac['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1cbf18}=this,_0x36e2a8=_0x1cbf18['commands']['get']('uploadcare');if(!_0x36e2a8)return;const _0x3ed878=this['_normalizeConfigSourceList'](_0x1cbf18['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5bc074,_0x53c1b2)=>{const _0x1177f5=this['_getIntegrationKey'](_0x53c1b2['type']);return _0x5bc074[_0x1177f5]||(_0x5bc074[_0x1177f5]=[]),_0x5bc074[_0x1177f5]['push'](_0x53c1b2),_0x5bc074;},{});_0x1cbf18['plugins']['has']('ImageInsertUI')&&_0x1cbf18['commands']['get']('uploadcare')&&Object['entries'](_0x3ed878)['forEach'](([_0x2682f9,_0x5d5652])=>{_0x1cbf18['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2682f9,'observable':()=>_0x36e2a8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5d5652),'formViewCreator':()=>this['_createDropdownButtons'](_0x5d5652),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5d5652),'override':'assetManager'!==_0x2682f9});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x485710){const {locale:_0x35fe36}=this['editor'];return _0x485710['map'](_0x5644ca=>{const _0x59465c=_(_0x35fe36,_0x5644ca,'Insert');switch(_0x5644ca){case i['Local']:return{'icon':_0x4aecb6,'type':i['Local'],..._0x59465c};case i['URL']:return{'icon':_0x27186a,'type':i['URL'],..._0x59465c};case i['Dropbox']:return{'icon':_0x32de3f,'type':i['Dropbox'],..._0x59465c};case i['Facebook']:return{'icon':_0x11670e,'type':i['Facebook'],..._0x59465c};case i['GDrive']:return{'icon':_0x2e07e9,'type':i['GDrive'],..._0x59465c};case i['GPhotos']:return{'icon':_0x18729b,'type':i['GPhotos'],..._0x59465c};case i['OneDrive']:return{'icon':_0x4cf387,'type':i['OneDrive'],..._0x59465c};}});}['_getIntegrationKey'](_0x45959b){switch(_0x45959b){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x30d125,_0x1a96e8){const _0xdc0d96=this['editor'],_0x164b4c=new _0x30d125(_0xdc0d96['locale']),_0x469bfa=_0xdc0d96['commands']['get']('uploadcare');return _0x164b4c['bind']('isEnabled')['to'](_0x469bfa),_0x164b4c['on']('execute',()=>{_0x469bfa['execute'](_0x1a96e8);}),_0x164b4c;}['_createToolbarButton'](_0x3220f1){const {locale:_0x289c1f}=this['editor'],_0x8dcfe0=this['editor']['plugins']['get']('ImageInsertUI'),_0x11f449=_0x3220f1[0x0],_0x3eb177=this['_createButton'](_0xd996ec,_0x11f449['type']);return _0x3eb177['icon']=_0x11f449['icon'],_0x3eb177['bind']('label')['to'](_0x8dcfe0,'isImageSelected',_0x45fbfa=>_(_0x289c1f,_0x11f449['type'],_0x45fbfa?'Replace':'Insert')['text']),_0x3eb177['tooltip']=!0x0,_0x3eb177;}['_createDropdownButtons'](_0x42745c){const {locale:_0xddc6cc}=this['editor'],_0x478fdd=this['editor']['plugins']['get']('ImageInsertUI');return _0x42745c['map'](_0x2d80f9=>{const _0x51473d=this['_createButton'](_0xd996ec,_0x2d80f9['type']);return _0x51473d['withText']=!0x0,_0x51473d['icon']=_0x2d80f9['icon'],_0x51473d['bind']('label')['to'](_0x478fdd,'isImageSelected',_0x27f581=>_(_0xddc6cc,_0x2d80f9['type'],_0x27f581?'Replace':'Insert')['text']),_0x51473d;});}['_createMenuBarButtons'](_0x32b416){return _0x32b416['map'](_0x5c7fd3=>{const _0x25b3a0=this['_createButton'](_0x1d6cdd,_0x5c7fd3['type']);return _0x25b3a0['icon']=_0x5c7fd3['icon'],_0x25b3a0['label']=_0x5c7fd3['shortText'],_0x25b3a0;});}}class F extends _0x4ab4cf{['focusTracker'];['focusCycler'];constructor(_0x3140df){super(_0x3140df),this['focusTracker']=new _0x5c9522(),this['focusCycler']=new _0x1357ec({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x27a563,_0x3f398a){super(_0x27a563),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-'+_0x3f398a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x35edf7,_0x5ab29c){const _0x256b9e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x399eee=>_0x399eee<=_0x5ab29c)['map'](_0xeff32b=>_0x35edf7['replace'](/\/$/,'')+'/-/resize/'+_0xeff32b+'x/\x20'+_0xeff32b+'w');return{'imageFallbackUrl':_0x35edf7,'imageSources':[{'srcset':_0x256b9e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5ab29c+'px)\x20100vw,\x20'+_0x5ab29c+'px','type':'image/webp'}]};}function S(_0x31f9b6,_0x33cae8,_0x34955a){const _0x1a5df9=_0x31f9b6['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1a5df9?parseInt(_0x1a5df9[0x1],0xa):_0x33cae8,'height':_0x1a5df9?parseInt(_0x1a5df9[0x2],0xa):_0x34955a};}function p(_0x1f7757,_0x341eb7){const _0xf85604=new(_0x4dc9d0())(),_0x57ad77=_0x1f7757['plugins']['get']('ImageUtils'),_0x284dcc=_0x1f7757['editing']['mapper']['toViewElement'](_0x341eb7),_0x17c8ac=_0x57ad77['findViewImgElement'](_0x284dcc),_0x311bd6=_0x1f7757['editing']['view']['domConverter']['viewToDom'](_0x17c8ac),_0x2e9f54=_0x341eb7['getAttribute']('width'),_0x42045f=_0x341eb7['getAttribute']('height'),_0x438294='image-processing';_0x1f7757['editing']['view']['change'](_0x193d64=>{_0x193d64['addClass'](_0x438294,_0x284dcc),_0x193d64['setStyle']('aspect-ratio',_0x2e9f54+'/'+_0x42045f,_0x17c8ac);}),_0xf85604['listenTo'](_0x311bd6,'load',()=>{_0xf85604['stopListening'](_0x311bd6,'load'),_0x1f7757['editing']['view']['change'](_0x560c0b=>{_0x560c0b['removeClass'](_0x438294,_0x284dcc),_0x560c0b['removeStyle']('aspect-ratio',_0x17c8ac);});});}function z(_0x17cc28){if(Array['isArray'](_0x17cc28)){const _0x2d4b31=_0x17cc28['map'](z);return _0x1c362e=>_0x2d4b31['some'](_0x25857e=>_0x25857e(_0x1c362e));}if('origin'==_0x17cc28){const _0x4ff972=_0x8c5385['window']['location']['origin'];return _0x5736a7=>new URL(_0x5736a7,_0x8c5385['document']['baseURI'])['origin']==_0x4ff972;}return'function'==typeof _0x17cc28?_0x17cc28:_0x17cc28 instanceof RegExp?_0x33d391=>!(!_0x33d391['match'](_0x17cc28)&&!_0x33d391['replace'](/^https?:\/\//,'')['match'](_0x17cc28)):()=>!0x1;}function A(_0xd0db0d,_0x583f5e){return _0x3b8d11(_0xd0db0d['target'])['includes'](_0x583f5e);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4f966e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x559f45,_0x4f5fce,_0x5c62ab){super(),this['_editor']=_0x559f45,this['_editing']=_0x4f5fce,this['_dialog']=_0x559f45['plugins']['get'](_0x4d5e13),this['_api']=_0x4f5fce['ctxElement']['getAPI'](),this['_type']=_0x5c62ab,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:_0xfb7aa2,model:_0x11b96a}=this['_editor'],_0x4d39f8=_0x11b96a['document']['selection']['getSelectedElement'](),_0x4a8812=_0x4d39f8&&(_0x4d39f8['is']('element','imageBlock')||_0x4d39f8['is']('element','imageInline'));this['_formView']=new x(_0xfb7aa2,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4aecb6,'title':_(_0xfb7aa2,this['_type'],_0x4a8812?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x276675['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x31af3c=>!A(_0x31af3c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x17e140}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x58bcf4=>{const _0x2aaceb=_0x17e140['length'];for(const _0x2546d0 of _0x17e140){const _0x4d38ef=_0x2546d0===_0x17e140[_0x2aaceb-0x1],{cdnUrl:_0x36b447,fileInfo:_0x287988}=_0x2546d0;if(!_0x36b447||!_0x287988)continue;const {width:_0xa3e912,height:_0x1e8059}=_0x287988['imageInfo'],_0xdd1289=S(_0x36b447,_0xa3e912,_0x1e8059),_0x57f323=C(_0x36b447,_0xdd1289['width']),_0x93a79d={'id':_0x287988['uuid'],'type':'image','attributes':{'imageDimension':_0xdd1289,..._0x57f323}};this['_insertAsset'](_0x93a79d,_0x4d38ef,_0x58bcf4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x512205=>{'idle'===_0x512205['detail']['status']&&!_0x512205['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xf85c93,_0x446058,_0x5dc5e5){const _0x2cacd8=this['_editor']['model']['document']['selection'],_0x24a6ac=_0x2cacd8['getSelectedElement'](),_0x2d499c=!(!_0x24a6ac||!_0x24a6ac['is']('element','imageInline'));_0x5dc5e5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xf85c93,_0x2d499c),_0x446058||_0x5dc5e5['setSelection'](_0x2cacd8['getLastPosition']());}['_insertImage'](_0x357fda,_0x546b66){const _0x4e2a8f=this['_editor'],{imageDimension:_0x53f0eb,imageFallbackUrl:_0x104454,imageSources:_0x18670f}=_0x357fda['attributes'];_0x4e2a8f['execute']('insertImage',{'imageType':_0x546b66?'imageInline':null,'source':{'uploadcareImageId':_0x357fda['id'],'src':_0x104454,'sources':_0x18670f,..._0x53f0eb}});}}class w extends _0x2fd80b{['_editing'];['_controller']=null;static get['requires'](){return[_0x4d5e13,o];}constructor(_0x38ebe9){super(_0x38ebe9),this['_editing']=_0x38ebe9['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3f039e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3f039e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3d5558,..._0x5170b1}){return _0x2b1e13(_0x3d5558,_0x5170b1);}static['getInfo'](_0x4cc571,_0x19d69a){return _0x3bd0ac(_0x4cc571,_0x19d69a);}}class f extends _0x159463{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2b3678,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x407b6d=this['editor'];if(!!!_0x407b6d['config']['get']('uploadcare'))return;_0x407b6d['plugins']['get'](_0x2b3678)['createUploadAdapter']=_0xfd6f79=>new k(_0xfd6f79,_0x407b6d),_0x407b6d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2d40c0,{imageElement:_0x1d0e1f,data:_0x1073ce})=>{_0x407b6d['model']['change'](_0x3de6df=>{_0x3de6df['setAttribute']('uploadcareImageId',_0x1073ce['uploadcareImageId'],_0x1d0e1f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4eda2d,_0x3f4394){this['loader']=_0x4eda2d,this['editor']=_0x3f4394,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3723d5=await this['loader']['file'];return j['upload']({'file':_0x3723d5,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x2c6421=>{_0x2c6421&&_0x2c6421['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2c6421['value']);}})['then'](async _0x4a70bb=>{const {imageFallbackUrl:_0x37fcc5,imageSources:_0x9615f}=C(_0x4a70bb['cdnUrl'],_0x4a70bb['imageInfo']['width']);return{'uploadcareImageId':_0x4a70bb['uuid'],'default':_0x37fcc5,'sources':_0x9615f};})['catch'](()=>{const _0x440e2c=t('Cannot\x20upload\x20file:')+('\x20'+_0x3723d5['name']+'.');return Promise['reject'](_0x440e2c);});}['abort'](){this['controller']['abort']();}}class o extends _0x159463{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4d5e13];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2211d7){super(_0x2211d7),this['ucContextId']=_0x2f8a51();}['init'](){const _0x4dfc42=this['editor'];_0x4dfc42['commands']['add']('uploadcare',new w(_0x4dfc42));}['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 _0x34cc6a=_0x8c5385['document']['querySelector']('input[uploadcare-file-input]');_0x34cc6a&&_0x34cc6a['remove']();}),async function(_0x7b7ade){const _0x1c5d9e=_0x175bda([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4ed95e=0x535f8c3a,_0x4fd495=0x5358fa82^_0x4ed95e,_0x5e3fcd=window[_0x175bda([0x44,0x61,0x74,0x65])][_0x175bda([0x6e,0x6f,0x77])](),_0x1ec7d5=_0x7b7ade[_0x175bda([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cb4ba=new window[(_0x175bda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x422c66=>{_0x1ec7d5[_0x175bda([0x6f,0x6e,0x63,0x65])](_0x175bda([0x72,0x65,0x61,0x64,0x79]),_0x422c66);}),_0x24a252={[_0x175bda([0x6b,0x74,0x79])]:_0x175bda([0x45,0x43]),[_0x175bda([0x75,0x73,0x65])]:_0x175bda([0x73,0x69,0x67]),[_0x175bda([0x63,0x72,0x76])]:_0x175bda([0x50,0x2d,0x32,0x35,0x36]),[_0x175bda([0x78])]:_0x175bda([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]),[_0x175bda([0x79])]:_0x175bda([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]),[_0x175bda([0x61,0x6c,0x67])]:_0x175bda([0x45,0x53,0x32,0x35,0x36])},_0x32839f=_0x1ec7d5[_0x175bda([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x175bda([0x67,0x65,0x74])](_0x175bda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f8b63(){let _0x22a84b,_0x2e9653=null,_0xd74c3d=null;try{if(_0x32839f==_0x175bda([0x47,0x50,0x4c]))return _0x175bda([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x22a84b=_0x54cce2(),!_0x22a84b)return _0x175bda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x22a84b[_0x175bda([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd74c3d=_0x47d9d8(_0x22a84b[_0x175bda([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x22a84b[_0x175bda([0x6a,0x74,0x69])])),await _0x3c2417()?_0x90b400()?_0x49ce87()?_0x175bda([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x30cffb()?(_0x22a84b[_0x175bda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x175bda([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e9653=_0x2b24ad(_0x175bda([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x22a84b[_0x175bda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x175bda([0x74,0x72,0x69,0x61,0x6c])&&(_0x2e9653=_0x2b24ad(_0x175bda([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d7452()):_0x175bda([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x175bda([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x175bda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x175bda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49ce87(){const _0x51402f=[_0x175bda([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x175bda([0x74,0x72,0x69,0x61,0x6c])][_0x175bda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22a84b[_0x175bda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5e3fcd/0x3e8:0xe10*_0x4fd495;return _0x22a84b[_0x175bda([0x65,0x78,0x70])]<_0x51402f;}function _0x90b400(){const _0x920629=_0x22a84b[_0x175bda([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x920629&&(!!_0x920629[_0x175bda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x175bda([0x2a]))||!!_0x920629[_0x175bda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x175bda([0x55,0x50,0x4c,0x43])));}function _0x30cffb(){const _0x5eace7=_0x22a84b[_0x175bda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5eace7||0x0==_0x5eace7[_0x175bda([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4882d1}=new URL(window[_0x175bda([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5eace7[_0x175bda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4882d1))return!0x0;const _0x47e785=_0x4882d1[_0x175bda([0x73,0x70,0x6c,0x69,0x74])](_0x175bda([0x2e]));return _0x5eace7[_0x175bda([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58ec87=>_0x58ec87[_0x175bda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x175bda([0x2a])))[_0x175bda([0x6d,0x61,0x70])](_0x4d0541=>_0x4d0541[_0x175bda([0x73,0x70,0x6c,0x69,0x74])](_0x175bda([0x2e])))[_0x175bda([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a2e7b=>_0x1a2e7b[_0x175bda([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47e785[_0x175bda([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x175bda([0x6d,0x61,0x70])](_0x182277=>Array(_0x47e785[_0x175bda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x182277[_0x175bda([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x175bda([0x66,0x69,0x6c,0x6c])](_0x182277[0x0]===_0x175bda([0x2a])?_0x175bda([0x2a]):'')[_0x175bda([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x182277))[_0x175bda([0x73,0x6f,0x6d,0x65])](_0x311f5a=>_0x47e785[_0x175bda([0x65,0x76,0x65,0x72,0x79])]((_0x3823d7,_0x7d16de)=>_0x311f5a[_0x7d16de]===_0x3823d7||_0x311f5a[_0x7d16de]===_0x175bda([0x2a])));}function _0x2d7452(){return _0x2e9653&&_0xd74c3d?new window[(_0x175bda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x245b12,_0x4ee64a)=>{_0x2e9653[_0x175bda([0x74,0x68,0x65,0x6e])](_0x245b12,_0x4ee64a),_0xd74c3d[_0x175bda([0x74,0x68,0x65,0x6e])](_0xec2f9e=>{_0xec2f9e!=_0x175bda([0x56,0x61,0x6c,0x69,0x64])&&_0x245b12(_0xec2f9e);},_0x4ee64a);}):_0x2e9653||_0xd74c3d||_0x175bda([0x56,0x61,0x6c,0x69,0x64]);}}function _0x47d9d8(_0x302e21,_0x29afdf){return new window[(_0x175bda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9b145f=>{if(_0x193455())return _0x9b145f(_0x175bda([0x56,0x61,0x6c,0x69,0x64]));_0x35c95f(),_0x1ec7d5[_0x175bda([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x175bda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x26bece=!0x1;const _0x28f621=_0x2f8a51();function _0x44d18f(_0x3bfc03){return!!_0x3bfc03&&(typeof _0x3bfc03===_0x175bda([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3bfc03===_0x175bda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3bfc03[_0x175bda([0x74,0x68,0x65,0x6e])]===_0x175bda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3bfc03[_0x175bda([0x63,0x61,0x74,0x63,0x68])]===_0x175bda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x14648a(_0x4c950e){_0x5b5c6a(_0x4c950e)[_0x175bda([0x74,0x68,0x65,0x6e])](_0x1ad421=>{if(!_0x1ad421||_0x1ad421[_0x175bda([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x175bda([0x6f,0x6b]))return _0x175bda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5718b4(_0x266ebb(_0x28f621+_0x29afdf))!=_0x1ad421[_0x175bda([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x175bda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x175bda([0x56,0x61,0x6c,0x69,0x64]);})[_0x175bda([0x74,0x68,0x65,0x6e])](_0x49f424=>(_0x238e32(),_0x49f424),()=>{const _0x5811af=_0x1f8552();return null==_0x5811af?(_0x238e32(),_0x175bda([0x56,0x61,0x6c,0x69,0x64])):_0x175bda(_0x5e3fcd-_0x5811af>(0x7753083a^_0x4ed95e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x175bda([0x74,0x68,0x65,0x6e])](_0x9b145f)[_0x175bda([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9b145f(_0x175bda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x51375f=0x536962ba^_0x4ed95e;function _0x238e32(){const _0x39f6bc=_0x175bda([0x6c,0x6c,0x63,0x74,0x2d])+_0x5718b4(_0x266ebb(_0x302e21)),_0x34b0fa=_0x247945(_0x5718b4(window[_0x175bda([0x4d,0x61,0x74,0x68])][_0x175bda([0x63,0x65,0x69,0x6c])](_0x5e3fcd/_0x51375f)));window[_0x175bda([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x175bda([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39f6bc,_0x34b0fa);}function _0x1f8552(){const _0x3f9b97=_0x175bda([0x6c,0x6c,0x63,0x74,0x2d])+_0x5718b4(_0x266ebb(_0x302e21)),_0x2d1ba0=window[_0x175bda([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x175bda([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f9b97);return _0x2d1ba0?window[_0x175bda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x247945(_0x2d1ba0),0x10)*_0x51375f:null;}function _0x5b5c6a(_0x40e487){return new window[(_0x175bda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41b0e7,_0x37cad4)=>{_0x40e487[_0x175bda([0x74,0x68,0x65,0x6e])](_0x41b0e7,_0x37cad4),window[_0x175bda([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37cad4,0x535e58fa^_0x4ed95e);});}}_0x1ec7d5[_0x175bda([0x6f,0x6e])](_0x175bda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x143662,_0x47506a)=>{if(_0x47506a[0x0]!=_0x302e21)return _0x9b145f(_0x175bda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47506a[0x1]={..._0x47506a[0x1],[_0x175bda([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28f621};},{[_0x175bda([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x175bda([0x68,0x69,0x67,0x68])}),_0x1ec7d5[_0x175bda([0x6f,0x6e])](_0x175bda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x343ff8=>{_0x44d18f(_0x343ff8[_0x175bda([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x26bece=!0x0,_0x14648a(_0x343ff8[_0x175bda([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x175bda([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x175bda([0x6c,0x6f,0x77])}),_0x1cb4ba[_0x175bda([0x74,0x68,0x65,0x6e])](()=>{_0x26bece||_0x9b145f(_0x175bda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x193455(){return _0x1ec7d5[_0x175bda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x175bda([0x76,0x69,0x65,0x77])][_0x175bda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x175bda([0x61,0x75,0x74,0x6f]);}function _0x35c95f(){_0x1ec7d5[_0x175bda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x175bda([0x76,0x69,0x65,0x77])][_0x175bda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x175bda([0x61,0x75,0x74,0x6f]);}}function _0x2b24ad(_0x4e11c7){const _0x2354e2=[new window[(_0x175bda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c418c=>setTimeout(_0x1c418c,0x5356b2f6^_0x4ed95e)),_0x1cb4ba[_0x175bda([0x74,0x68,0x65,0x6e])](()=>new window[(_0x175bda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33b753=>{let _0x4f9c81=0x0;_0x1ec7d5[_0x175bda([0x6d,0x6f,0x64,0x65,0x6c])][_0x175bda([0x6f,0x6e])](_0x175bda([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a240e,_0xd9ca1b)=>{_0xd9ca1b[0x0][_0x175bda([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f9c81++,_0x4f9c81==(0x535f8dc2^_0x4ed95e)&&(_0x33b753(),_0x1a240e[_0x175bda([0x6f,0x66,0x66])]());});}))];return window[_0x175bda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x175bda([0x72,0x61,0x63,0x65])](_0x2354e2)[_0x175bda([0x74,0x68,0x65,0x6e])](()=>_0x4e11c7);}async function _0x3bc4cb(){await _0x1cb4ba,_0x1ec7d5[_0x175bda([0x6d,0x6f,0x64,0x65,0x6c])][_0x175bda([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4cbd80,_0x1ec7d5[_0x175bda([0x6d,0x6f,0x64,0x65,0x6c])][_0x175bda([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4cbd80,_0x1ec7d5[_0x175bda([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x175bda([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xcd45db(_0x48dbb1){const _0x285be0=_0x36f779();_0x1ec7d5[_0x285be0]=_0x175bda([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x48dbb1,_0x48dbb1!=_0x175bda([0x56,0x61,0x6c,0x69,0x64])&&_0x3bc4cb();}function _0x36f779(){const _0x36af1b=window[_0x175bda([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x175bda([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x175bda([0x6e,0x6f,0x77])]())[_0x175bda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x175bda([0x2e]),'');let _0x1e26a4=_0x175bda([0x68]);for(let _0x2194cd=0x0;_0x2194cd<_0x36af1b[_0x175bda([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2194cd+=0x2){let _0xf46709=window[_0x175bda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36af1b[_0x175bda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2194cd,_0x2194cd+0x2));_0xf46709>=_0x1c5d9e[_0x175bda([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf46709-=_0x1c5d9e[_0x175bda([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e26a4+=_0x1c5d9e[_0xf46709];}return _0x1e26a4;}function _0x54cce2(){const _0x4f31d8=_0x32839f[_0x175bda([0x73,0x70,0x6c,0x69,0x74])](_0x175bda([0x2e]));if(0x3!=_0x4f31d8[_0x175bda([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3eeb29(_0x4f31d8[0x1]);function _0x3eeb29(_0x5e01b0){const _0x2ce749=_0x394d0c(_0x5e01b0);return _0x2ce749&&_0x4e58d6()?_0x2ce749:null;function _0x4e58d6(){const _0x271722=_0x2ce749[_0x175bda([0x6a,0x74,0x69])],_0x9d8614=window[_0x175bda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271722[_0x175bda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x271722[_0x175bda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x29b6e8={..._0x2ce749,[_0x175bda([0x6a,0x74,0x69])]:_0x271722[_0x175bda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x271722[_0x175bda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x29b6e8[_0x175bda([0x76,0x63])],_0x266ebb(_0x29b6e8)==_0x9d8614;}}}async function _0x3c2417(){let _0x17c733=!0x0;try{const _0x298491=_0x32839f[_0x175bda([0x73,0x70,0x6c,0x69,0x74])](_0x175bda([0x2e])),[_0x5cf828,_0x1892bf,_0x162e58]=_0x298491;return _0x385e0a(_0x5cf828),await _0x2b1228(_0x5cf828,_0x1892bf,_0x162e58),_0x17c733;}catch{return!0x1;}function _0x385e0a(_0x282188){const _0x2a4eba=_0x394d0c(_0x282188);_0x2a4eba&&_0x2a4eba[_0x175bda([0x61,0x6c,0x67])]==_0x175bda([0x45,0x53,0x32,0x35,0x36])||(_0x17c733=!0x1);}async function _0x2b1228(_0x3fa26b,_0x399ac6,_0x3b0564){const _0x1c921c=window[_0x175bda([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x175bda([0x66,0x72,0x6f,0x6d])](_0x24ee62(_0x3b0564),_0x1a7c43=>_0x1a7c43[_0x175bda([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc7e824=new window[(_0x175bda([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x175bda([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3fa26b+_0x175bda([0x2e])+_0x399ac6),_0x37e84a=window[_0x175bda([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x175bda([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37e84a)return;const _0x506cd2=await _0x37e84a[_0x175bda([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x175bda([0x6a,0x77,0x6b]),_0x24a252,{[_0x175bda([0x6e,0x61,0x6d,0x65])]:_0x175bda([0x45,0x43,0x44,0x53,0x41]),[_0x175bda([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x175bda([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x175bda([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37e84a[_0x175bda([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x175bda([0x6e,0x61,0x6d,0x65])]:_0x175bda([0x45,0x43,0x44,0x53,0x41]),[_0x175bda([0x68,0x61,0x73,0x68])]:{[_0x175bda([0x6e,0x61,0x6d,0x65])]:_0x175bda([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x506cd2,_0x1c921c,_0xc7e824)||(_0x17c733=!0x1);}}function _0x394d0c(_0x4ea6af){return _0x4ea6af[_0x175bda([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x175bda([0x65,0x79]))?JSON[_0x175bda([0x70,0x61,0x72,0x73,0x65])](_0x24ee62(_0x4ea6af)):null;}function _0x24ee62(_0x1fe9a1){return window[_0x175bda([0x61,0x74,0x6f,0x62])](_0x1fe9a1[_0x175bda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x175bda([0x2b]))[_0x175bda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x175bda([0x2f])));}function _0x266ebb(_0x40c763){let _0x4a47d1=0x1505;function _0x58028b(_0x5835a4){for(let _0x3d371f=0x0;_0x3d371f<_0x5835a4[_0x175bda([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d371f++){const _0x1d808b=_0x5835a4[_0x175bda([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d371f);_0x4a47d1=(_0x4a47d1<<0x5)+_0x4a47d1+_0x1d808b,_0x4a47d1&=_0x4a47d1;}}function _0x14b0e5(_0x59529f){Array[_0x175bda([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x59529f)?_0x59529f[_0x175bda([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14b0e5):_0x59529f&&typeof _0x59529f==_0x175bda([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x175bda([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x59529f)[_0x175bda([0x73,0x6f,0x72,0x74])]()[_0x175bda([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1eec1f,_0x44a1ba])=>{_0x58028b(_0x1eec1f),_0x14b0e5(_0x44a1ba);}):_0x58028b(window[_0x175bda([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x59529f));}return _0x14b0e5(_0x40c763),_0x4a47d1>>>0x0;}function _0x5718b4(_0x15ee6c){return _0x15ee6c[_0x175bda([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x175bda([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x175bda([0x30]));}function _0x247945(_0x190783){return _0x190783[_0x175bda([0x73,0x70,0x6c,0x69,0x74])]('')[_0x175bda([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x175bda([0x6a,0x6f,0x69,0x6e])]('');}function _0x4cbd80(){}function _0x175bda(_0x60142c){return _0x60142c['map'](_0x1bc42f=>String['fromCharCode'](_0x1bc42f))['join']('');}_0xcd45db(await _0x1f8b63());}(this);}['_initSchema'](){const _0x33869e=this['editor']['model']['schema'];_0x33869e['isRegistered']('imageBlock')&&_0x33869e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x33869e['isRegistered']('imageInline')&&_0x33869e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x602fec=this['editor'];_0x602fec['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x602fec['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x418dc1=>_0x418dc1['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x22bb9e=_0x602fec['commands']['get']('replaceImageSource');_0x22bb9e&&this['listenTo'](_0x22bb9e,'cleanupImage',(_0x3699b4,[_0x181e43,_0x3a24db])=>{_0x181e43['removeAttribute']('uploadcareImageId',_0x3a24db);});}['_initConfig'](){const _0x51878f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x30eed4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1386b0(_0x8c5385['document'],'uc-config',{..._0x51878f,'pubkey':_0x30eed4,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x5db57a=>{if('closeMax'==_0x5db57a)return'#uc-icon-arrow-down';},_0x8c5385['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1386b0(_0x8c5385['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x8c5385['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x335a66=this['editor']['commands']['get']('insertImage');_0x335a66&&this['listenTo'](_0x335a66,'execute',()=>{const _0x99d5ed=this['editor']['model']['document']['selection']['getSelectedElement']();_0x99d5ed&&_0x99d5ed['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x99d5ed);});});const _0x2cfde0=this['editor']['commands']['get']('uploadcareImageReplace');_0x2cfde0&&this['listenTo'](_0x2cfde0,'execute',()=>{const _0x391479=this['editor']['model']['document']['selection']['getSelectedElement']();_0x391479&&_0x391479['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x391479);});});}}class tt extends _0x159463{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x590364){super(_0x590364),_0x590364['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x34addb['defineComponents'](_0x34addb);}}class ii extends _0x4ab4cf{constructor(_0x20104a){super(_0x20104a);const t=_0x20104a['t'],_0x3bc1e5=this['bindTemplate'],_0x113312=new _0x72792d();_0x113312['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':[_0x113312,{'text':_0x3bc1e5['to']('imageUploadProgress',_0x1cadbc=>t('Loading\x20image...')+'\x20('+(_0x1cadbc||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x4ab4cf{constructor(_0x19231b){super(_0x19231b);const t=_0x19231b['t'];this['set']('errorType',null);const _0x24b9c5=new _0xd996ec(_0x19231b);_0x24b9c5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x24b9c5['withText']=!0x0,_0x24b9c5['class']='ck-button-action',_0x24b9c5['on']('execute',()=>{this['fire']('retry');}),_0x24b9c5['bind']('isVisible')['to'](this,'errorType',_0x74ee49=>'NotFound'!==_0x74ee49);const _0x11394b=new _0x348336();_0x11394b['content']=_0x5349d9,_0x11394b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4ed855=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':[_0x11394b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4ed855['to']('errorType',_0x39e567=>t('NotFound'!==_0x39e567?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x24b9c5]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x4ab4cf{constructor(_0x51b04c,_0x190ab9){super(_0x51b04c);const _0x11c9de=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x190ab9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x11c9de['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4b535e,_0x5ebd66,_0x203617){super(_0x4b535e),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4b535e),this['_errorView']=new ti(_0x4b535e),this['_editingView']=new ei(_0x4b535e,_0x203617),this['_focusableView']=new _0x4ab4cf(_0x4b535e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5ebd66),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'],_0x24d743=>{this['_addUploadcareImageEditorListeners'](_0x24d743);});}),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'](_0x2fc251,_0x731285){const _0x307401='uc-cloud-image-editor',_0x26ee78=_0x2fc251['querySelector'](_0x307401);if(_0x26ee78)return _0x731285(_0x26ee78);const _0x2492e1=new MutationObserver(_0x389093=>{const _0x1c9b0c=_0x389093['filter'](_0x3a2585=>_0x3a2585['target']===_0x2fc251&&_0x3a2585['addedNodes']['length']>0x0&&_0x3a2585['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x307401);_0x1c9b0c['length']&&(_0x2492e1['disconnect'](),_0x731285(_0x1c9b0c[0x0]['addedNodes'][0x0]));});_0x2492e1['observe'](_0x2fc251,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x41f9d8){_0x41f9d8['addEventListener']('apply',_0xa63f83=>{this['fire']('apply',{'imageSrc':_0xa63f83['detail']['cdnUrl']});}),_0x41f9d8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4f966e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x545008,_0x18b4b8,_0x210e77){super(),this['_editor']=_0x545008,this['_dialog']=_0x18b4b8,this['_imageElement']=_0x210e77,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 _0x43d4dc=this['_imageElement'],_0x36f29b=_0x43d4dc['getAttribute']('uploadcareImageId'),_0x8b1f30=_0x43d4dc['getAttribute']('src');if(_0x36f29b)await this['_loadImageInfo'](_0x36f29b,_0x8b1f30);else{if(this['_imageCache']['has'](_0x8b1f30)){const _0x27229c=this['_imageCache']['get'](_0x8b1f30);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x27229c['url'],this['imageDimension']=_0x27229c['dimension'],this['imageId']=_0x27229c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1a5996}=this['_editor'],t=_0x1a5996['t'],_0xd033e5=new X(_0x1a5996,this['imageStatus'],this['_attributes']);_0xd033e5['bind']('status')['to'](this,'imageStatus'),_0xd033e5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xd033e5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xd033e5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xd033e5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x45f58d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xd033e5,'position':_0x276675['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xd033e5['focus']();},'onHide':()=>{_0xd033e5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1905b9=>!A(_0x1905b9,_0xd033e5['element'])}});}['_loadImageInfo'](_0x12c127,_0x878468){return j['getInfo'](_0x12c127,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x23b57f=>{const {width:_0x36a0a1,height:_0x4ed42b}=_0x23b57f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x878468,this['imageDimension']={'width':_0x36a0a1,'height':_0x4ed42b},this['imageId']=_0x12c127;})['catch'](_0x309bdf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x309bdf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x52f6a3,_0x2434a4){return this['_getImageAsFile'](_0x52f6a3)['then'](_0x321588=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2434a4['signal'],'file':_0x321588,'onProgress':_0x3b47f2=>{_0x3b47f2&&_0x3b47f2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3b47f2['value']));}}))['then'](_0xfb516f=>{const {width:_0x58dcce,height:_0xb178ed}=_0xfb516f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xfb516f['cdnUrl'],this['imageDimension']={'width':_0x58dcce,'height':_0xb178ed},this['imageId']=_0xfb516f['uuid'],this['imageUploadProgress']=null;const _0x57b30b=_0x52f6a3['getAttribute']('src');this['_imageCache']['set'](_0x57b30b,{'id':_0xfb516f['uuid'],'url':_0xfb516f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1746fa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1746fa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x33250e,_0x2414e6){_0x33250e['on']('apply',(_0x3ab9c1,_0x4b0e13)=>{this['_replaceImage'](_0x2414e6,_0x4b0e13['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x33250e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x33250e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x924d8f,_0x59d95f,_0x1ca7ac){const _0x44a86c=this['_editor'],{width:_0x2cc402,height:_0xe8a8a8}=S(_0x59d95f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x53829f,imageSources:_0x42032e}=C(_0x59d95f,_0x2cc402);_0x44a86c['model']['change'](_0x4bd516=>{if('$graveyard'===_0x924d8f['root']['rootName']){_0x44a86c['execute']('insertImage',{'imageType':_0x924d8f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x924d8f['getAttributes']()),'uploadcareImageId':_0x1ca7ac,'src':_0x53829f,'sources':_0x42032e,'width':_0x2cc402,'height':_0xe8a8a8}});const _0x3fa7fd=_0x924d8f['getChildren']();_0x924d8f=_0x44a86c['model']['document']['selection']['getSelectedElement']();for(const _0x550ead of _0x3fa7fd)_0x4bd516['append'](_0x4bd516['cloneElement'](_0x550ead),_0x924d8f);}else _0x4bd516['setSelection'](_0x924d8f,'on'),_0x44a86c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x924d8f['getAttributes']()),'uploadcareImageId':_0x1ca7ac,'src':_0x53829f,'sources':_0x42032e,'width':_0x2cc402,'height':_0xe8a8a8},_0x924d8f);_0x4bd516['setSelection'](_0x924d8f,'on');});}async['_getImageAsFile'](_0x4c3c21){const _0x27fa33=_0x8c5385['window'],_0x456f0e=_0x8c5385['document']['location']['href'],_0x5732ac=new _0x27fa33['URL'](_0x4c3c21['getAttribute']('src'),_0x456f0e);if('data:'===_0x5732ac['protocol']){const _0x5e89db=_0x5732ac['href']['split'](','),_0x1738a0=_0x5e89db[0x0]['match'](/:(.*?);/)[0x1],_0x17f085=_0x1738a0['split']('/')[0x1],_0x32e638=_0x27fa33['atob'](_0x5e89db[_0x5e89db['length']-0x1]);let _0x516eb4=_0x32e638['length'];const _0x141e2c=new _0x27fa33['Uint8Array'](_0x516eb4);for(;_0x516eb4--;)_0x141e2c[_0x516eb4]=_0x32e638['charCodeAt'](_0x516eb4);return new _0x27fa33['File']([_0x141e2c],'image.'+_0x17f085,{'type':_0x1738a0});}const _0x461a7c=_0x5732ac['href']['split']('/'),_0x2a03c2=_0x461a7c[_0x461a7c['length']-0x1],_0x10cf8a=_0x2a03c2['split']('.')[0x1];return _0x27fa33['fetch'](_0x5732ac['href'])['then'](_0x194910=>_0x194910['clone']()['blob']())['then'](_0x50eb54=>new _0x27fa33['File']([_0x50eb54],_0x2a03c2,{'type':'image/'+_0x10cf8a}));}}class Q extends _0x2fd80b{['imageEditController'];static get['requires'](){return[_0x4d5e13];}['_isEditable'];constructor(_0xc33dc5){super(_0xc33dc5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x299321){const _0x5baa52=z(_0x299321);return _0x4fe73e=>!(!_0x4fe73e||!_0x4fe73e['is']('element','imageBlock')&&!_0x4fe73e['is']('element','imageInline'))&&(!!_0x4fe73e['hasAttribute']('uploadcareImageId')||!!_0x4fe73e['hasAttribute']('src')&&_0x5baa52(_0x4fe73e['getAttribute']('src')));}(_0xc33dc5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x19e3f0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x19e3f0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5744f8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5744f8&&(_0x5744f8['is']('element','imageBlock')||_0x5744f8['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x4d5e13),_0x5744f8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x2fd80b{['refresh'](){const _0x3d3e0d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3d3e0d&&(_0x3d3e0d['is']('element','imageBlock')||_0x3d3e0d['is']('element','imageInline')));}['execute'](_0xe22a3e){const _0x1b7705=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3b5f73=>{_0x3b5f73['setAttributes'](_0xe22a3e,_0x1b7705),_0x3b5f73['removeAttribute']('srcset',_0x1b7705),_0x3b5f73['removeAttribute']('sizes',_0x1b7705);});}}class m extends _0x159463{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3d897b,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x330d7b}=this;_0x330d7b['commands']['add']('uploadcareImageEdit',new Q(_0x330d7b)),_0x330d7b['commands']['add']('uploadcareImageReplace',new V(_0x330d7b));}}class g extends _0x159463{['_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 _0x1318aa=this['editor'];_0x1318aa['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3539c5=>{const _0x1f2d08=_0x1318aa['commands']['get']('uploadcareImageEdit'),_0x2b6e74=new _0xd996ec(_0x3539c5),t=_0x3539c5['t'];return _0x2b6e74['set']({'icon':_0x45f58d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2b6e74['bind']('isEnabled')['to'](_0x1f2d08),_0x2b6e74['bind']('isOn')['to'](_0x1f2d08,'isActive'),this['listenTo'](_0x2b6e74,'execute',()=>{_0x1318aa['execute']('uploadcareImageEdit'),_0x1318aa['editing']['view']['focus']();}),_0x2b6e74;}),this['_initConfig']();}['_initConfig'](){const _0x1e255e=_0x1386b0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1e255e),this['listenTo'](this['editor'],'destroy',()=>{_0x1e255e['remove']();});}}class et extends _0x159463{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x16e015,Command as _0x46c5ef}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5c1ac2,IconGooglePhotos as _0x46030a,IconGoogleDrive as _0x454847,IconFacebook as _0x1ea1ce,IconDropbox as _0x40b253,IconUploadcareLink as _0x5acd49,IconUploadcareImageUpload as _0x1e1049,IconError as _0x32b41b,IconUploadcareImageEdit as _0xb64e27}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x388ee3,MenuBarMenuListItemButtonView as _0x26f983,View as _0x520cfa,FocusCycler as _0x4b65d3,Dialog as _0x12d541,DialogViewPosition as _0x27a767,SpinnerView as _0x4f0235,IconView as _0x41c681,Notification as _0x44802e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4b421c,DomEmitterMixin as _0x49350e,global as _0x5deda8,getAncestors as _0x12f98b,ObservableMixin as _0x53f452,uid as _0x526bf0,createElement as _0x24a751}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x315979}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2acc99,info as _0x5c8103}from'@uploadcare/upload-client';import*as _0x406e24 from'@uploadcare/file-uploader';var i=function(_0x17c342){return _0x17c342['Local']='local',_0x17c342['URL']='url',_0x17c342['Dropbox']='dropbox',_0x17c342['GDrive']='gdrive',_0x17c342['Facebook']='facebook',_0x17c342['GPhotos']='gphotos',_0x17c342['OneDrive']='onedrive',_0x17c342;}({});function _(_0x17b7ac,_0x208c8c,_0x4acc50){const t=_0x17b7ac['t'],_0x4d2147=_0x17b7ac['t'];switch(_0x208c8c){case i['Local']:return{'text':_0x4d2147('Insert'===_0x4acc50?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d2147('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4acc50?_0x4d2147('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d2147('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4acc50?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4acc50?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4acc50?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4acc50?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4acc50?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x208c8c;}}class e extends _0x16e015{['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 _0x313149=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x378298;for(const _0x38eba3 in _0x313149){const _0x271751=_0x38eba3,_0x32bbee=_0x313149[_0x271751];if('uploadcareLicenseKeyValid'==_0x32bbee||'uploadcareLicenseKeyInvalid'==_0x32bbee||'uploadcareLicenseKeyExpired'==_0x32bbee||'uploadcareLicenseKeyDomainLimit'==_0x32bbee||'uploadcareLicenseKeyNotAllowed'==_0x32bbee||'uploadcareLicenseKeyEvaluationLimit'==_0x32bbee||'uploadcareLicenseKeyTrialLimit'==_0x32bbee||'uploadcareLicenseKeyUsageLimit'==_0x32bbee){delete _0x313149[_0x271751],_0x378298=_0x32bbee,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x378298&&_0x313149['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x378298&&_0x313149['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x378298&&_0x313149['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x378298&&_0x313149['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x378298&&_0x313149['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x378298&&_0x313149['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x378298&&_0x313149['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x53a4ad}=this,_0x1e6cd7=_0x53a4ad['commands']['get']('uploadcare');if(!_0x1e6cd7)return;const _0x975020=this['_normalizeConfigSourceList'](_0x53a4ad['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x12f456,_0x3c4813)=>{const _0x5c471a=this['_getIntegrationKey'](_0x3c4813['type']);return _0x12f456[_0x5c471a]||(_0x12f456[_0x5c471a]=[]),_0x12f456[_0x5c471a]['push'](_0x3c4813),_0x12f456;},{});_0x53a4ad['plugins']['has']('ImageInsertUI')&&_0x53a4ad['commands']['get']('uploadcare')&&Object['entries'](_0x975020)['forEach'](([_0x31f17e,_0x4e67f4])=>{_0x53a4ad['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x31f17e,'observable':()=>_0x1e6cd7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4e67f4),'formViewCreator':()=>this['_createDropdownButtons'](_0x4e67f4),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4e67f4),'override':'assetManager'!==_0x31f17e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5da36b){const {locale:_0x1bfdf4}=this['editor'];return _0x5da36b['map'](_0x38ca01=>{const _0x2af449=_(_0x1bfdf4,_0x38ca01,'Insert');switch(_0x38ca01){case i['Local']:return{'icon':_0x1e1049,'type':i['Local'],..._0x2af449};case i['URL']:return{'icon':_0x5acd49,'type':i['URL'],..._0x2af449};case i['Dropbox']:return{'icon':_0x40b253,'type':i['Dropbox'],..._0x2af449};case i['Facebook']:return{'icon':_0x1ea1ce,'type':i['Facebook'],..._0x2af449};case i['GDrive']:return{'icon':_0x454847,'type':i['GDrive'],..._0x2af449};case i['GPhotos']:return{'icon':_0x46030a,'type':i['GPhotos'],..._0x2af449};case i['OneDrive']:return{'icon':_0x5c1ac2,'type':i['OneDrive'],..._0x2af449};}});}['_getIntegrationKey'](_0x217ca0){switch(_0x217ca0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3e14ed,_0x368f71){const _0x4f501b=this['editor'],_0x5b6feb=new _0x3e14ed(_0x4f501b['locale']),_0x2df5b8=_0x4f501b['commands']['get']('uploadcare');return _0x5b6feb['bind']('isEnabled')['to'](_0x2df5b8),_0x5b6feb['on']('execute',()=>{_0x2df5b8['execute'](_0x368f71);}),_0x5b6feb;}['_createToolbarButton'](_0x2431f4){const {locale:_0x258195}=this['editor'],_0x4664da=this['editor']['plugins']['get']('ImageInsertUI'),_0x3d7a8b=_0x2431f4[0x0],_0x4a85e5=this['_createButton'](_0x388ee3,_0x3d7a8b['type']);return _0x4a85e5['icon']=_0x3d7a8b['icon'],_0x4a85e5['bind']('label')['to'](_0x4664da,'isImageSelected',_0x1de2e0=>_(_0x258195,_0x3d7a8b['type'],_0x1de2e0?'Replace':'Insert')['text']),_0x4a85e5['tooltip']=!0x0,_0x4a85e5;}['_createDropdownButtons'](_0xf2c31c){const {locale:_0x12f6e4}=this['editor'],_0x240ccb=this['editor']['plugins']['get']('ImageInsertUI');return _0xf2c31c['map'](_0x2b3bab=>{const _0x43e242=this['_createButton'](_0x388ee3,_0x2b3bab['type']);return _0x43e242['withText']=!0x0,_0x43e242['icon']=_0x2b3bab['icon'],_0x43e242['bind']('label')['to'](_0x240ccb,'isImageSelected',_0x12d90d=>_(_0x12f6e4,_0x2b3bab['type'],_0x12d90d?'Replace':'Insert')['text']),_0x43e242;});}['_createMenuBarButtons'](_0x26daaa){return _0x26daaa['map'](_0x2f4ffa=>{const _0x5a6207=this['_createButton'](_0x26f983,_0x2f4ffa['type']);return _0x5a6207['icon']=_0x2f4ffa['icon'],_0x5a6207['label']=_0x2f4ffa['shortText'],_0x5a6207;});}}class F extends _0x520cfa{['focusTracker'];['focusCycler'];constructor(_0x5a278e){super(_0x5a278e),this['focusTracker']=new _0x4b421c(),this['focusCycler']=new _0x4b65d3({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x25181f,_0x59830f){super(_0x25181f),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-'+_0x59830f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1897f2,_0x45c322){const _0x4e8156=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3b4903=>_0x3b4903<=_0x45c322)['map'](_0x5a86f2=>_0x1897f2['replace'](/\/$/,'')+'/-/resize/'+_0x5a86f2+'x/\x20'+_0x5a86f2+'w');return{'imageFallbackUrl':_0x1897f2,'imageSources':[{'srcset':_0x4e8156['join'](',\x20'),'sizes':'(max-width:\x20'+_0x45c322+'px)\x20100vw,\x20'+_0x45c322+'px','type':'image/webp'}]};}function S(_0x2c7b56,_0x4b60e1,_0x301817){const _0x1df635=_0x2c7b56['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1df635?parseInt(_0x1df635[0x1],0xa):_0x4b60e1,'height':_0x1df635?parseInt(_0x1df635[0x2],0xa):_0x301817};}function p(_0x65979c,_0x5a560f){const _0x4892df=new(_0x49350e())(),_0x3f6e32=_0x65979c['plugins']['get']('ImageUtils'),_0x4ad415=_0x65979c['editing']['mapper']['toViewElement'](_0x5a560f),_0x99fc8f=_0x3f6e32['findViewImgElement'](_0x4ad415),_0x14b597=_0x65979c['editing']['view']['domConverter']['viewToDom'](_0x99fc8f),_0x5de940=_0x5a560f['getAttribute']('width'),_0xd0cf3f=_0x5a560f['getAttribute']('height'),_0xed245c='image-processing';_0x65979c['editing']['view']['change'](_0x43afa1=>{_0x43afa1['addClass'](_0xed245c,_0x4ad415),_0x43afa1['setStyle']('aspect-ratio',_0x5de940+'/'+_0xd0cf3f,_0x99fc8f);}),_0x4892df['listenTo'](_0x14b597,'load',()=>{_0x4892df['stopListening'](_0x14b597,'load'),_0x65979c['editing']['view']['change'](_0x3fe3d5=>{_0x3fe3d5['removeClass'](_0xed245c,_0x4ad415),_0x3fe3d5['removeStyle']('aspect-ratio',_0x99fc8f);});});}function z(_0x36c475){if(Array['isArray'](_0x36c475)){const _0x1e7573=_0x36c475['map'](z);return _0x1de764=>_0x1e7573['some'](_0x53d0ca=>_0x53d0ca(_0x1de764));}if('origin'==_0x36c475){const _0x1757ec=_0x5deda8['window']['location']['origin'];return _0x454280=>new URL(_0x454280,_0x5deda8['document']['baseURI'])['origin']==_0x1757ec;}return'function'==typeof _0x36c475?_0x36c475:_0x36c475 instanceof RegExp?_0x923d47=>!(!_0x923d47['match'](_0x36c475)&&!_0x923d47['replace'](/^https?:\/\//,'')['match'](_0x36c475)):()=>!0x1;}function A(_0x2c7aaa,_0x522cb2){return _0x12f98b(_0x2c7aaa['target'])['includes'](_0x522cb2);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x53f452(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x10aad7,_0x153d4f,_0x120e7e){super(),this['_editor']=_0x10aad7,this['_editing']=_0x153d4f,this['_dialog']=_0x10aad7['plugins']['get'](_0x12d541),this['_api']=_0x153d4f['ctxElement']['getAPI'](),this['_type']=_0x120e7e,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:_0x5f2a0b,model:_0xeb75}=this['_editor'],_0x16cc46=_0xeb75['document']['selection']['getSelectedElement'](),_0x5c43e8=_0x16cc46&&(_0x16cc46['is']('element','imageBlock')||_0x16cc46['is']('element','imageInline'));this['_formView']=new x(_0x5f2a0b,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1e1049,'title':_(_0x5f2a0b,this['_type'],_0x5c43e8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x27a767['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x104129=>!A(_0x104129,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x284be2}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x7223d7=>{const _0x454b74=_0x284be2['length'];for(const _0x19ee89 of _0x284be2){const _0xfaebe=_0x19ee89===_0x284be2[_0x454b74-0x1],{cdnUrl:_0x21a6db,fileInfo:_0x34d933}=_0x19ee89;if(!_0x21a6db||!_0x34d933)continue;const {width:_0x41ea68,height:_0x10c9b8}=_0x34d933['imageInfo'],_0x503e27=S(_0x21a6db,_0x41ea68,_0x10c9b8),_0x199010=C(_0x21a6db,_0x503e27['width']),_0x4d6910={'id':_0x34d933['uuid'],'type':'image','attributes':{'imageDimension':_0x503e27,..._0x199010}};this['_insertAsset'](_0x4d6910,_0xfaebe,_0x7223d7);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2dee3e=>{'idle'===_0x2dee3e['detail']['status']&&!_0x2dee3e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2b0fce,_0x37dcfe,_0x47b678){const _0x2a4b9d=this['_editor']['model']['document']['selection'],_0x30711a=_0x2a4b9d['getSelectedElement'](),_0x4dc3d4=!(!_0x30711a||!_0x30711a['is']('element','imageInline'));_0x47b678['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2b0fce,_0x4dc3d4),_0x37dcfe||_0x47b678['setSelection'](_0x2a4b9d['getLastPosition']());}['_insertImage'](_0x40f150,_0x47c052){const _0x2dd0e1=this['_editor'],{imageDimension:_0x246e8b,imageFallbackUrl:_0x2175e5,imageSources:_0x251d5b}=_0x40f150['attributes'];_0x2dd0e1['execute']('insertImage',{'imageType':_0x47c052?'imageInline':null,'source':{'uploadcareImageId':_0x40f150['id'],'src':_0x2175e5,'sources':_0x251d5b,..._0x246e8b}});}}class w extends _0x46c5ef{['_editing'];['_controller']=null;static get['requires'](){return[_0x12d541,o];}constructor(_0x516556){super(_0x516556),this['_editing']=_0x516556['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4f7f1e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4f7f1e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1f8adb,..._0x11e240}){return _0x2acc99(_0x1f8adb,_0x11e240);}static['getInfo'](_0x4dac96,_0x2852e8){return _0x5c8103(_0x4dac96,_0x2852e8);}}class f extends _0x16e015{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x315979,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3c57d2=this['editor'];if(!!!_0x3c57d2['config']['get']('uploadcare'))return;_0x3c57d2['plugins']['get'](_0x315979)['createUploadAdapter']=_0x4d6ed3=>new k(_0x4d6ed3,_0x3c57d2),_0x3c57d2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5d9c74,{imageElement:_0x5e75b9,data:_0x5738b1})=>{_0x3c57d2['model']['change'](_0x26ab0a=>{_0x26ab0a['setAttribute']('uploadcareImageId',_0x5738b1['uploadcareImageId'],_0x5e75b9);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4e3ebc,_0x2084b9){this['loader']=_0x4e3ebc,this['editor']=_0x2084b9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x200ed0=await this['loader']['file'];return j['upload']({'file':_0x200ed0,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4f8e65=>{_0x4f8e65&&_0x4f8e65['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4f8e65['value']);}})['then'](async _0x3cb521=>{const {imageFallbackUrl:_0x551157,imageSources:_0x52ca78}=C(_0x3cb521['cdnUrl'],_0x3cb521['imageInfo']['width']);return{'uploadcareImageId':_0x3cb521['uuid'],'default':_0x551157,'sources':_0x52ca78};})['catch'](()=>{const _0x3a2776=t('Cannot\x20upload\x20file:')+('\x20'+_0x200ed0['name']+'.');return Promise['reject'](_0x3a2776);});}['abort'](){this['controller']['abort']();}}class o extends _0x16e015{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x12d541];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x404c51){super(_0x404c51),this['ucContextId']=_0x526bf0();}['init'](){const _0x1a41b1=this['editor'];_0x1a41b1['commands']['add']('uploadcare',new w(_0x1a41b1));}['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 _0x10474b=_0x5deda8['document']['querySelector']('input[uploadcare-file-input]');_0x10474b&&_0x10474b['remove']();}),async function(_0x1a600a){const _0x35ee5e=_0x28bf34([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x92aa30=0x535f8c3a,_0x40079b=0x5358fad2^_0x92aa30,_0x4873cb=window[_0x28bf34([0x44,0x61,0x74,0x65])][_0x28bf34([0x6e,0x6f,0x77])](),_0x1fc2ea=_0x1a600a[_0x28bf34([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2669f0=new window[(_0x28bf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7a007d=>{_0x1fc2ea[_0x28bf34([0x6f,0x6e,0x63,0x65])](_0x28bf34([0x72,0x65,0x61,0x64,0x79]),_0x7a007d);}),_0x4cd62c={[_0x28bf34([0x6b,0x74,0x79])]:_0x28bf34([0x45,0x43]),[_0x28bf34([0x75,0x73,0x65])]:_0x28bf34([0x73,0x69,0x67]),[_0x28bf34([0x63,0x72,0x76])]:_0x28bf34([0x50,0x2d,0x32,0x35,0x36]),[_0x28bf34([0x78])]:_0x28bf34([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]),[_0x28bf34([0x79])]:_0x28bf34([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]),[_0x28bf34([0x61,0x6c,0x67])]:_0x28bf34([0x45,0x53,0x32,0x35,0x36])},_0x22e9f9=_0x1fc2ea[_0x28bf34([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x28bf34([0x67,0x65,0x74])](_0x28bf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9c1b8b(){let _0x511104,_0x3d7fe5=null,_0x3e2756=null;try{if(_0x22e9f9==_0x28bf34([0x47,0x50,0x4c]))return _0x28bf34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x511104=_0x45a126(),!_0x511104)return _0x28bf34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x511104[_0x28bf34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e2756=_0x66dbc6(_0x511104[_0x28bf34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x511104[_0x28bf34([0x6a,0x74,0x69])])),await _0x583127()?_0x50c250()?_0xd6cc0c()?_0x28bf34([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b42a9()?(_0x511104[_0x28bf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28bf34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d7fe5=_0x1a43bc(_0x28bf34([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x511104[_0x28bf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28bf34([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d7fe5=_0x1a43bc(_0x28bf34([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x533261()):_0x28bf34([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x28bf34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x28bf34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x28bf34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd6cc0c(){const _0x3bff49=[_0x28bf34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x28bf34([0x74,0x72,0x69,0x61,0x6c])][_0x28bf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x511104[_0x28bf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4873cb/0x3e8:0xe10*_0x40079b;return _0x511104[_0x28bf34([0x65,0x78,0x70])]<_0x3bff49;}function _0x50c250(){const _0x88bce3=_0x511104[_0x28bf34([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x88bce3&&(!!_0x88bce3[_0x28bf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28bf34([0x2a]))||!!_0x88bce3[_0x28bf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28bf34([0x55,0x50,0x4c,0x43])));}function _0x3b42a9(){const _0x3af92c=_0x511104[_0x28bf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3af92c||0x0==_0x3af92c[_0x28bf34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d7200}=new URL(window[_0x28bf34([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3af92c[_0x28bf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d7200))return!0x0;const _0x5c9be5=_0x1d7200[_0x28bf34([0x73,0x70,0x6c,0x69,0x74])](_0x28bf34([0x2e]));return _0x3af92c[_0x28bf34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b632a=>_0x4b632a[_0x28bf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28bf34([0x2a])))[_0x28bf34([0x6d,0x61,0x70])](_0x3976a2=>_0x3976a2[_0x28bf34([0x73,0x70,0x6c,0x69,0x74])](_0x28bf34([0x2e])))[_0x28bf34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a2e3e=>_0x4a2e3e[_0x28bf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5c9be5[_0x28bf34([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28bf34([0x6d,0x61,0x70])](_0xab632b=>Array(_0x5c9be5[_0x28bf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xab632b[_0x28bf34([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28bf34([0x66,0x69,0x6c,0x6c])](_0xab632b[0x0]===_0x28bf34([0x2a])?_0x28bf34([0x2a]):'')[_0x28bf34([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xab632b))[_0x28bf34([0x73,0x6f,0x6d,0x65])](_0x992baa=>_0x5c9be5[_0x28bf34([0x65,0x76,0x65,0x72,0x79])]((_0x4d0c0e,_0x141cad)=>_0x992baa[_0x141cad]===_0x4d0c0e||_0x992baa[_0x141cad]===_0x28bf34([0x2a])));}function _0x533261(){return _0x3d7fe5&&_0x3e2756?new window[(_0x28bf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38bbe3,_0x38aab3)=>{_0x3d7fe5[_0x28bf34([0x74,0x68,0x65,0x6e])](_0x38bbe3,_0x38aab3),_0x3e2756[_0x28bf34([0x74,0x68,0x65,0x6e])](_0x5cc9be=>{_0x5cc9be!=_0x28bf34([0x56,0x61,0x6c,0x69,0x64])&&_0x38bbe3(_0x5cc9be);},_0x38aab3);}):_0x3d7fe5||_0x3e2756||_0x28bf34([0x56,0x61,0x6c,0x69,0x64]);}}function _0x66dbc6(_0x5b2505,_0x25b4ec){return new window[(_0x28bf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49001f=>{if(_0x14d6c5())return _0x49001f(_0x28bf34([0x56,0x61,0x6c,0x69,0x64]));_0x172435(),_0x1fc2ea[_0x28bf34([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x28bf34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5f13fe=!0x1;const _0x40c2a1=_0x526bf0();function _0x2cff00(_0x171c94){return!!_0x171c94&&(typeof _0x171c94===_0x28bf34([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x171c94===_0x28bf34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x171c94[_0x28bf34([0x74,0x68,0x65,0x6e])]===_0x28bf34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x171c94[_0x28bf34([0x63,0x61,0x74,0x63,0x68])]===_0x28bf34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4443fe(_0x58424b){_0x20224e(_0x58424b)[_0x28bf34([0x74,0x68,0x65,0x6e])](_0x35e366=>{if(!_0x35e366||_0x35e366[_0x28bf34([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x28bf34([0x6f,0x6b]))return _0x28bf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1cff72(_0x1aba30(_0x40c2a1+_0x25b4ec))!=_0x35e366[_0x28bf34([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x28bf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x28bf34([0x56,0x61,0x6c,0x69,0x64]);})[_0x28bf34([0x74,0x68,0x65,0x6e])](_0x9fa126=>(_0x3dc1b9(),_0x9fa126),()=>{const _0x3eb13d=_0x2d8ba0();return null==_0x3eb13d?(_0x3dc1b9(),_0x28bf34([0x56,0x61,0x6c,0x69,0x64])):_0x28bf34(_0x4873cb-_0x3eb13d>(0x7753083a^_0x92aa30)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x28bf34([0x74,0x68,0x65,0x6e])](_0x49001f)[_0x28bf34([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49001f(_0x28bf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x336bcd=0x536962ba^_0x92aa30;function _0x3dc1b9(){const _0x7de3ee=_0x28bf34([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cff72(_0x1aba30(_0x5b2505)),_0x4b17e9=_0x4ad9f2(_0x1cff72(window[_0x28bf34([0x4d,0x61,0x74,0x68])][_0x28bf34([0x63,0x65,0x69,0x6c])](_0x4873cb/_0x336bcd)));window[_0x28bf34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28bf34([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7de3ee,_0x4b17e9);}function _0x2d8ba0(){const _0x30abc1=_0x28bf34([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cff72(_0x1aba30(_0x5b2505)),_0x2556b4=window[_0x28bf34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28bf34([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30abc1);return _0x2556b4?window[_0x28bf34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ad9f2(_0x2556b4),0x10)*_0x336bcd:null;}function _0x20224e(_0xa6f304){return new window[(_0x28bf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b5059,_0x32659b)=>{_0xa6f304[_0x28bf34([0x74,0x68,0x65,0x6e])](_0x2b5059,_0x32659b),window[_0x28bf34([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32659b,0x535e58fa^_0x92aa30);});}}_0x1fc2ea[_0x28bf34([0x6f,0x6e])](_0x28bf34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x486af8,_0x4055b0)=>{if(_0x4055b0[0x0]!=_0x5b2505)return _0x49001f(_0x28bf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4055b0[0x1]={..._0x4055b0[0x1],[_0x28bf34([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40c2a1};},{[_0x28bf34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28bf34([0x68,0x69,0x67,0x68])}),_0x1fc2ea[_0x28bf34([0x6f,0x6e])](_0x28bf34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e13a3=>{_0x2cff00(_0x5e13a3[_0x28bf34([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5f13fe=!0x0,_0x4443fe(_0x5e13a3[_0x28bf34([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x28bf34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28bf34([0x6c,0x6f,0x77])}),_0x2669f0[_0x28bf34([0x74,0x68,0x65,0x6e])](()=>{_0x5f13fe||_0x49001f(_0x28bf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14d6c5(){return _0x1fc2ea[_0x28bf34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28bf34([0x76,0x69,0x65,0x77])][_0x28bf34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x28bf34([0x61,0x75,0x74,0x6f]);}function _0x172435(){_0x1fc2ea[_0x28bf34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28bf34([0x76,0x69,0x65,0x77])][_0x28bf34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28bf34([0x61,0x75,0x74,0x6f]);}}function _0x1a43bc(_0xdcf20c){const _0x50a31b=[new window[(_0x28bf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36f9fb=>setTimeout(_0x36f9fb,0x5356b2f6^_0x92aa30)),_0x2669f0[_0x28bf34([0x74,0x68,0x65,0x6e])](()=>new window[(_0x28bf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28ad3b=>{let _0x29480d=0x0;_0x1fc2ea[_0x28bf34([0x6d,0x6f,0x64,0x65,0x6c])][_0x28bf34([0x6f,0x6e])](_0x28bf34([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d7b5d,_0x3ff414)=>{_0x3ff414[0x0][_0x28bf34([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29480d++,_0x29480d==(0x535f8dc2^_0x92aa30)&&(_0x28ad3b(),_0x1d7b5d[_0x28bf34([0x6f,0x66,0x66])]());});}))];return window[_0x28bf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28bf34([0x72,0x61,0x63,0x65])](_0x50a31b)[_0x28bf34([0x74,0x68,0x65,0x6e])](()=>_0xdcf20c);}async function _0x490e32(){await _0x2669f0,_0x1fc2ea[_0x28bf34([0x6d,0x6f,0x64,0x65,0x6c])][_0x28bf34([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3033dc,_0x1fc2ea[_0x28bf34([0x6d,0x6f,0x64,0x65,0x6c])][_0x28bf34([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3033dc,_0x1fc2ea[_0x28bf34([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x28bf34([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x555a6f(_0x2bc62e){const _0x333293=_0x7ca5f8();_0x1fc2ea[_0x333293]=_0x28bf34([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2bc62e,_0x2bc62e!=_0x28bf34([0x56,0x61,0x6c,0x69,0x64])&&_0x490e32();}function _0x7ca5f8(){const _0x345331=window[_0x28bf34([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x28bf34([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28bf34([0x6e,0x6f,0x77])]())[_0x28bf34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x28bf34([0x2e]),'');let _0x38d91b=_0x28bf34([0x68]);for(let _0x128d3e=0x0;_0x128d3e<_0x345331[_0x28bf34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x128d3e+=0x2){let _0xb5541e=window[_0x28bf34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x345331[_0x28bf34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x128d3e,_0x128d3e+0x2));_0xb5541e>=_0x35ee5e[_0x28bf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb5541e-=_0x35ee5e[_0x28bf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x38d91b+=_0x35ee5e[_0xb5541e];}return _0x38d91b;}function _0x45a126(){const _0x3e2488=_0x22e9f9[_0x28bf34([0x73,0x70,0x6c,0x69,0x74])](_0x28bf34([0x2e]));if(0x3!=_0x3e2488[_0x28bf34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41fbf4(_0x3e2488[0x1]);function _0x41fbf4(_0x55beec){const _0x33a8a4=_0x40c9ac(_0x55beec);return _0x33a8a4&&_0x8d3cca()?_0x33a8a4:null;function _0x8d3cca(){const _0xf3e77=_0x33a8a4[_0x28bf34([0x6a,0x74,0x69])],_0x171484=window[_0x28bf34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf3e77[_0x28bf34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf3e77[_0x28bf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5814be={..._0x33a8a4,[_0x28bf34([0x6a,0x74,0x69])]:_0xf3e77[_0x28bf34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf3e77[_0x28bf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5814be[_0x28bf34([0x76,0x63])],_0x1aba30(_0x5814be)==_0x171484;}}}async function _0x583127(){let _0x396d86=!0x0;try{const _0x282fc5=_0x22e9f9[_0x28bf34([0x73,0x70,0x6c,0x69,0x74])](_0x28bf34([0x2e])),[_0x2d0db9,_0x489fbf,_0x51ff60]=_0x282fc5;return _0x4da33c(_0x2d0db9),await _0x2a56ee(_0x2d0db9,_0x489fbf,_0x51ff60),_0x396d86;}catch{return!0x1;}function _0x4da33c(_0x5f33fd){const _0x5bb42b=_0x40c9ac(_0x5f33fd);_0x5bb42b&&_0x5bb42b[_0x28bf34([0x61,0x6c,0x67])]==_0x28bf34([0x45,0x53,0x32,0x35,0x36])||(_0x396d86=!0x1);}async function _0x2a56ee(_0x388ab4,_0x803b27,_0x20b796){const _0x22c5c1=window[_0x28bf34([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x28bf34([0x66,0x72,0x6f,0x6d])](_0xba731b(_0x20b796),_0x1b63c8=>_0x1b63c8[_0x28bf34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43b6a9=new window[(_0x28bf34([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x28bf34([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x388ab4+_0x28bf34([0x2e])+_0x803b27),_0x8f698=window[_0x28bf34([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x28bf34([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8f698)return;const _0x2a6ffd=await _0x8f698[_0x28bf34([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x28bf34([0x6a,0x77,0x6b]),_0x4cd62c,{[_0x28bf34([0x6e,0x61,0x6d,0x65])]:_0x28bf34([0x45,0x43,0x44,0x53,0x41]),[_0x28bf34([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x28bf34([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x28bf34([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8f698[_0x28bf34([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x28bf34([0x6e,0x61,0x6d,0x65])]:_0x28bf34([0x45,0x43,0x44,0x53,0x41]),[_0x28bf34([0x68,0x61,0x73,0x68])]:{[_0x28bf34([0x6e,0x61,0x6d,0x65])]:_0x28bf34([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a6ffd,_0x22c5c1,_0x43b6a9)||(_0x396d86=!0x1);}}function _0x40c9ac(_0x2bedab){return _0x2bedab[_0x28bf34([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x28bf34([0x65,0x79]))?JSON[_0x28bf34([0x70,0x61,0x72,0x73,0x65])](_0xba731b(_0x2bedab)):null;}function _0xba731b(_0x15cf73){return window[_0x28bf34([0x61,0x74,0x6f,0x62])](_0x15cf73[_0x28bf34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x28bf34([0x2b]))[_0x28bf34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x28bf34([0x2f])));}function _0x1aba30(_0x5560c2){let _0x20166f=0x1505;function _0x16a723(_0xdc243){for(let _0x1c81b0=0x0;_0x1c81b0<_0xdc243[_0x28bf34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c81b0++){const _0x1734c7=_0xdc243[_0x28bf34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1c81b0);_0x20166f=(_0x20166f<<0x5)+_0x20166f+_0x1734c7,_0x20166f&=_0x20166f;}}function _0x3ee8a6(_0x2e1465){Array[_0x28bf34([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e1465)?_0x2e1465[_0x28bf34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3ee8a6):_0x2e1465&&typeof _0x2e1465==_0x28bf34([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x28bf34([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e1465)[_0x28bf34([0x73,0x6f,0x72,0x74])]()[_0x28bf34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x406e29,_0x1811a6])=>{_0x16a723(_0x406e29),_0x3ee8a6(_0x1811a6);}):_0x16a723(window[_0x28bf34([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e1465));}return _0x3ee8a6(_0x5560c2),_0x20166f>>>0x0;}function _0x1cff72(_0x214f4e){return _0x214f4e[_0x28bf34([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x28bf34([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x28bf34([0x30]));}function _0x4ad9f2(_0xc62baa){return _0xc62baa[_0x28bf34([0x73,0x70,0x6c,0x69,0x74])]('')[_0x28bf34([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x28bf34([0x6a,0x6f,0x69,0x6e])]('');}function _0x3033dc(){}function _0x28bf34(_0x2db181){return _0x2db181['map'](_0x1b36ed=>String['fromCharCode'](_0x1b36ed))['join']('');}_0x555a6f(await _0x9c1b8b());}(this);}['_initSchema'](){const _0x24ad88=this['editor']['model']['schema'];_0x24ad88['isRegistered']('imageBlock')&&_0x24ad88['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x24ad88['isRegistered']('imageInline')&&_0x24ad88['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x29cdb3=this['editor'];_0x29cdb3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x29cdb3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3017ca=>_0x3017ca['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3c0415=_0x29cdb3['commands']['get']('replaceImageSource');_0x3c0415&&this['listenTo'](_0x3c0415,'cleanupImage',(_0x2b62b4,[_0x5ca35b,_0x42bc35])=>{_0x5ca35b['removeAttribute']('uploadcareImageId',_0x42bc35);});}['_initConfig'](){const _0x43218c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4f92ca=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x24a751(_0x5deda8['document'],'uc-config',{..._0x43218c,'pubkey':_0x4f92ca,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2cac0b=>{if('closeMax'==_0x2cac0b)return'#uc-icon-arrow-down';},_0x5deda8['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x24a751(_0x5deda8['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5deda8['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1acd4f=this['editor']['commands']['get']('insertImage');_0x1acd4f&&this['listenTo'](_0x1acd4f,'execute',()=>{const _0x1a6089=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a6089&&_0x1a6089['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1a6089);});});const _0xe7c955=this['editor']['commands']['get']('uploadcareImageReplace');_0xe7c955&&this['listenTo'](_0xe7c955,'execute',()=>{const _0x473c17=this['editor']['model']['document']['selection']['getSelectedElement']();_0x473c17&&_0x473c17['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x473c17);});});}}class tt extends _0x16e015{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x343ff8){super(_0x343ff8),_0x343ff8['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x406e24['defineComponents'](_0x406e24);}}class ii extends _0x520cfa{constructor(_0x28c66d){super(_0x28c66d);const t=_0x28c66d['t'],_0x1966ab=this['bindTemplate'],_0x1669ea=new _0x4f0235();_0x1669ea['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':[_0x1669ea,{'text':_0x1966ab['to']('imageUploadProgress',_0xd0fe23=>t('Loading\x20image...')+'\x20('+(_0xd0fe23||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x520cfa{constructor(_0x1003da){super(_0x1003da);const t=_0x1003da['t'];this['set']('errorType',null);const _0x142965=new _0x388ee3(_0x1003da);_0x142965['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x142965['withText']=!0x0,_0x142965['class']='ck-button-action',_0x142965['on']('execute',()=>{this['fire']('retry');}),_0x142965['bind']('isVisible')['to'](this,'errorType',_0x57738b=>'NotFound'!==_0x57738b);const _0x2cd9a8=new _0x41c681();_0x2cd9a8['content']=_0x32b41b,_0x2cd9a8['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5cd7de=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':[_0x2cd9a8,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5cd7de['to']('errorType',_0x2f216b=>t('NotFound'!==_0x2f216b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x142965]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x520cfa{constructor(_0x52fc7e,_0x5bd18e){super(_0x52fc7e);const _0x170b64=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5bd18e,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x170b64['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5cef51,_0x4f8a5d,_0x274bf5){super(_0x5cef51),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5cef51),this['_errorView']=new ti(_0x5cef51),this['_editingView']=new ei(_0x5cef51,_0x274bf5),this['_focusableView']=new _0x520cfa(_0x5cef51),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4f8a5d),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'],_0x28c2e9=>{this['_addUploadcareImageEditorListeners'](_0x28c2e9);});}),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'](_0x23e2b0,_0x58b4d0){const _0x40ea74='uc-cloud-image-editor',_0x18d071=_0x23e2b0['querySelector'](_0x40ea74);if(_0x18d071)return _0x58b4d0(_0x18d071);const _0x1da336=new MutationObserver(_0x97be66=>{const _0x5a9e4c=_0x97be66['filter'](_0x555ecf=>_0x555ecf['target']===_0x23e2b0&&_0x555ecf['addedNodes']['length']>0x0&&_0x555ecf['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x40ea74);_0x5a9e4c['length']&&(_0x1da336['disconnect'](),_0x58b4d0(_0x5a9e4c[0x0]['addedNodes'][0x0]));});_0x1da336['observe'](_0x23e2b0,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xbacc1d){_0xbacc1d['addEventListener']('apply',_0x4a9c42=>{this['fire']('apply',{'imageSrc':_0x4a9c42['detail']['cdnUrl']});}),_0xbacc1d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x53f452(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x54844f,_0x5438c8,_0x4084a9){super(),this['_editor']=_0x54844f,this['_dialog']=_0x5438c8,this['_imageElement']=_0x4084a9,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 _0x516898=this['_imageElement'],_0x15c1cf=_0x516898['getAttribute']('uploadcareImageId'),_0x58b034=_0x516898['getAttribute']('src');if(_0x15c1cf)await this['_loadImageInfo'](_0x15c1cf,_0x58b034);else{if(this['_imageCache']['has'](_0x58b034)){const _0x371c3f=this['_imageCache']['get'](_0x58b034);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x371c3f['url'],this['imageDimension']=_0x371c3f['dimension'],this['imageId']=_0x371c3f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4f8023}=this['_editor'],t=_0x4f8023['t'],_0x4f6f9f=new X(_0x4f8023,this['imageStatus'],this['_attributes']);_0x4f6f9f['bind']('status')['to'](this,'imageStatus'),_0x4f6f9f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4f6f9f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4f6f9f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4f6f9f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xb64e27,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4f6f9f,'position':_0x27a767['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4f6f9f['focus']();},'onHide':()=>{_0x4f6f9f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x8d3305=>!A(_0x8d3305,_0x4f6f9f['element'])}});}['_loadImageInfo'](_0x5650b4,_0x1353d2){return j['getInfo'](_0x5650b4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x44e883=>{const {width:_0x2ccd83,height:_0x12544d}=_0x44e883['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1353d2,this['imageDimension']={'width':_0x2ccd83,'height':_0x12544d},this['imageId']=_0x5650b4;})['catch'](_0x53b6f4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x53b6f4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x139173,_0x3463be){return this['_getImageAsFile'](_0x139173)['then'](_0x2c165f=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3463be['signal'],'file':_0x2c165f,'onProgress':_0x12aa68=>{_0x12aa68&&_0x12aa68['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x12aa68['value']));}}))['then'](_0x223768=>{const {width:_0x5a2c8c,height:_0x4cbd6d}=_0x223768['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x223768['cdnUrl'],this['imageDimension']={'width':_0x5a2c8c,'height':_0x4cbd6d},this['imageId']=_0x223768['uuid'],this['imageUploadProgress']=null;const _0x227682=_0x139173['getAttribute']('src');this['_imageCache']['set'](_0x227682,{'id':_0x223768['uuid'],'url':_0x223768['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x7e3279=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x7e3279['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x115ec1,_0x6a3461){_0x115ec1['on']('apply',(_0x1867a8,_0x28b298)=>{this['_replaceImage'](_0x6a3461,_0x28b298['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x115ec1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x115ec1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x55c9e5,_0x8cf6ed,_0x356c7a){const _0x710da5=this['_editor'],{width:_0x2eb371,height:_0x3ab4e6}=S(_0x8cf6ed,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4f2c52,imageSources:_0x5c0428}=C(_0x8cf6ed,_0x2eb371);_0x710da5['model']['change'](_0x2ac76f=>{if('$graveyard'===_0x55c9e5['root']['rootName']){_0x710da5['execute']('insertImage',{'imageType':_0x55c9e5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x55c9e5['getAttributes']()),'uploadcareImageId':_0x356c7a,'src':_0x4f2c52,'sources':_0x5c0428,'width':_0x2eb371,'height':_0x3ab4e6}});const _0x47e402=_0x55c9e5['getChildren']();_0x55c9e5=_0x710da5['model']['document']['selection']['getSelectedElement']();for(const _0xdee6fd of _0x47e402)_0x2ac76f['append'](_0x2ac76f['cloneElement'](_0xdee6fd),_0x55c9e5);}else _0x2ac76f['setSelection'](_0x55c9e5,'on'),_0x710da5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x55c9e5['getAttributes']()),'uploadcareImageId':_0x356c7a,'src':_0x4f2c52,'sources':_0x5c0428,'width':_0x2eb371,'height':_0x3ab4e6},_0x55c9e5);_0x2ac76f['setSelection'](_0x55c9e5,'on');});}async['_getImageAsFile'](_0x45ef19){const _0x3d5c58=_0x5deda8['window'],_0x134efc=_0x5deda8['document']['location']['href'],_0x106f42=new _0x3d5c58['URL'](_0x45ef19['getAttribute']('src'),_0x134efc);if('data:'===_0x106f42['protocol']){const _0x4afada=_0x106f42['href']['split'](','),_0x3d96a1=_0x4afada[0x0]['match'](/:(.*?);/)[0x1],_0x4508c8=_0x3d96a1['split']('/')[0x1],_0x182bb2=_0x3d5c58['atob'](_0x4afada[_0x4afada['length']-0x1]);let _0x1530b3=_0x182bb2['length'];const _0x54ef19=new _0x3d5c58['Uint8Array'](_0x1530b3);for(;_0x1530b3--;)_0x54ef19[_0x1530b3]=_0x182bb2['charCodeAt'](_0x1530b3);return new _0x3d5c58['File']([_0x54ef19],'image.'+_0x4508c8,{'type':_0x3d96a1});}const _0x1c0b02=_0x106f42['href']['split']('/'),_0x3f7840=_0x1c0b02[_0x1c0b02['length']-0x1],_0x4ae7b6=_0x3f7840['split']('.')[0x1];return _0x3d5c58['fetch'](_0x106f42['href'])['then'](_0x59e882=>_0x59e882['clone']()['blob']())['then'](_0x9cdd74=>new _0x3d5c58['File']([_0x9cdd74],_0x3f7840,{'type':'image/'+_0x4ae7b6}));}}class Q extends _0x46c5ef{['imageEditController'];static get['requires'](){return[_0x12d541];}['_isEditable'];constructor(_0x57a30f){super(_0x57a30f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xee2a1a){const _0x34d0aa=z(_0xee2a1a);return _0x1456a=>!(!_0x1456a||!_0x1456a['is']('element','imageBlock')&&!_0x1456a['is']('element','imageInline'))&&(!!_0x1456a['hasAttribute']('uploadcareImageId')||!!_0x1456a['hasAttribute']('src')&&_0x34d0aa(_0x1456a['getAttribute']('src')));}(_0x57a30f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x421439=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x421439);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xf5ed22=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf5ed22&&(_0xf5ed22['is']('element','imageBlock')||_0xf5ed22['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x12d541),_0xf5ed22),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x46c5ef{['refresh'](){const _0xd8f919=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xd8f919&&(_0xd8f919['is']('element','imageBlock')||_0xd8f919['is']('element','imageInline')));}['execute'](_0x2ad3ea){const _0x44f11e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4b25f4=>{_0x4b25f4['setAttributes'](_0x2ad3ea,_0x44f11e),_0x4b25f4['removeAttribute']('srcset',_0x44f11e),_0x4b25f4['removeAttribute']('sizes',_0x44f11e);});}}class m extends _0x16e015{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x44802e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x58840f}=this;_0x58840f['commands']['add']('uploadcareImageEdit',new Q(_0x58840f)),_0x58840f['commands']['add']('uploadcareImageReplace',new V(_0x58840f));}}class g extends _0x16e015{['_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 _0x115f0f=this['editor'];_0x115f0f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x384296=>{const _0x36d543=_0x115f0f['commands']['get']('uploadcareImageEdit'),_0x1fefa6=new _0x388ee3(_0x384296),t=_0x384296['t'];return _0x1fefa6['set']({'icon':_0xb64e27,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1fefa6['bind']('isEnabled')['to'](_0x36d543),_0x1fefa6['bind']('isOn')['to'](_0x36d543,'isActive'),this['listenTo'](_0x1fefa6,'execute',()=>{_0x115f0f['execute']('uploadcareImageEdit'),_0x115f0f['editing']['view']['focus']();}),_0x1fefa6;}),this['_initConfig']();}['_initConfig'](){const _0x53857c=_0x24a751(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x53857c),this['listenTo'](this['editor'],'destroy',()=>{_0x53857c['remove']();});}}class et extends _0x16e015{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
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':_0x5ad8dd=>0x1!=_0x5ad8dd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4b15b9=>{const {af:{dictionary:_0x367899,getPluralForm:_0x9fa5c7}}={'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':_0x3b502f=>0x1!=_0x3b502f}};_0x4b15b9['af']||={'dictionary':{},'getPluralForm':null},_0x4b15b9['af']['dictionary']=Object['assign'](_0x4b15b9['af']['dictionary'],_0x367899),_0x4b15b9['af']['getPluralForm']=_0x9fa5c7;})(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':_0x558ccb=>0x0==_0x558ccb?0x0:0x1==_0x558ccb?0x1:0x2==_0x558ccb?0x2:_0x558ccb%0x64>=0x3&&_0x558ccb%0x64<=0xa?0x3:_0x558ccb%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3d4061=>{const {ar:{dictionary:_0x4d8831,getPluralForm:_0x1cc924}}={'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':_0xc6463e=>0x0==_0xc6463e?0x0:0x1==_0xc6463e?0x1:0x2==_0xc6463e?0x2:_0xc6463e%0x64>=0x3&&_0xc6463e%0x64<=0xa?0x3:_0xc6463e%0x64>=0xb?0x4:0x5}};_0x3d4061['ar']||={'dictionary':{},'getPluralForm':null},_0x3d4061['ar']['dictionary']=Object['assign'](_0x3d4061['ar']['dictionary'],_0x4d8831),_0x3d4061['ar']['getPluralForm']=_0x1cc924;})(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':_0x4cc333=>0x1!=_0x4cc333}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4f63ca=>{const {ast:{dictionary:_0x2cd75e,getPluralForm:_0x334c02}}={'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':_0x2c31e1=>0x1!=_0x2c31e1}};_0x4f63ca['ast']||={'dictionary':{},'getPluralForm':null},_0x4f63ca['ast']['dictionary']=Object['assign'](_0x4f63ca['ast']['dictionary'],_0x2cd75e),_0x4f63ca['ast']['getPluralForm']=_0x334c02;})(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':_0x564a49=>0x1!=_0x564a49}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5c94ea=>{const {az:{dictionary:_0x2da248,getPluralForm:_0x23c211}}={'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':_0x58b17f=>0x1!=_0x58b17f}};_0x5c94ea['az']||={'dictionary':{},'getPluralForm':null},_0x5c94ea['az']['dictionary']=Object['assign'](_0x5c94ea['az']['dictionary'],_0x2da248),_0x5c94ea['az']['getPluralForm']=_0x23c211;})(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':_0x37a12a=>_0x37a12a%0xa==0x1&&_0x37a12a%0x64!=0xb?0x0:_0x37a12a%0xa>=0x2&&_0x37a12a%0xa<=0x4&&(_0x37a12a%0x64<0xa||_0x37a12a%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x419ee4=>{const {be:{dictionary:_0x165799,getPluralForm:_0x3ee2d3}}={'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':_0x2b3bc1=>_0x2b3bc1%0xa==0x1&&_0x2b3bc1%0x64!=0xb?0x0:_0x2b3bc1%0xa>=0x2&&_0x2b3bc1%0xa<=0x4&&(_0x2b3bc1%0x64<0xa||_0x2b3bc1%0x64>=0x14)?0x1:0x2}};_0x419ee4['be']||={'dictionary':{},'getPluralForm':null},_0x419ee4['be']['dictionary']=Object['assign'](_0x419ee4['be']['dictionary'],_0x165799),_0x419ee4['be']['getPluralForm']=_0x3ee2d3;})(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':_0x5d4ee9=>0x1!=_0x5d4ee9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xf03ab7=>{const {bg:{dictionary:_0x22a080,getPluralForm:_0xab6355}}={'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':_0x38c7a3=>0x1!=_0x38c7a3}};_0xf03ab7['bg']||={'dictionary':{},'getPluralForm':null},_0xf03ab7['bg']['dictionary']=Object['assign'](_0xf03ab7['bg']['dictionary'],_0x22a080),_0xf03ab7['bg']['getPluralForm']=_0xab6355;})(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':_0x124e7b=>0x1!=_0x124e7b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x187043=>{const {bn:{dictionary:_0x2cf952,getPluralForm:_0xf51fc6}}={'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':_0x2922f6=>0x1!=_0x2922f6}};_0x187043['bn']||={'dictionary':{},'getPluralForm':null},_0x187043['bn']['dictionary']=Object['assign'](_0x187043['bn']['dictionary'],_0x2cf952),_0x187043['bn']['getPluralForm']=_0xf51fc6;})(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':_0x1f502f=>_0x1f502f%0xa==0x1&&_0x1f502f%0x64!=0xb?0x0:_0x1f502f%0xa>=0x2&&_0x1f502f%0xa<=0x4&&(_0x1f502f%0x64<0xa||_0x1f502f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x18d1ab=>{const {bs:{dictionary:_0x402ce4,getPluralForm:_0x3f0d3d}}={'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':_0x244163=>_0x244163%0xa==0x1&&_0x244163%0x64!=0xb?0x0:_0x244163%0xa>=0x2&&_0x244163%0xa<=0x4&&(_0x244163%0x64<0xa||_0x244163%0x64>=0x14)?0x1:0x2}};_0x18d1ab['bs']||={'dictionary':{},'getPluralForm':null},_0x18d1ab['bs']['dictionary']=Object['assign'](_0x18d1ab['bs']['dictionary'],_0x402ce4),_0x18d1ab['bs']['getPluralForm']=_0x3f0d3d;})(window['CKEDITOR_TRANSLATIONS']||={});
|