@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.9 → 45.2.2
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 _0x235cec,Command as _0x3e6fbf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x146b8a,IconGooglePhotos as _0x295fb9,IconGoogleDrive as _0x40bd1d,IconFacebook as _0x4ef90f,IconDropbox as _0x1d6618,IconUploadcareLink as _0x18f5c4,IconUploadcareImageUpload as _0x4fce07,IconError as et,IconUploadcareImageEdit as _0x51fdd7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1b8a4c,MenuBarMenuListItemButtonView as _0x24f818,View as _0x3d2ea6,FocusCycler as _0x5af8cd,Dialog as _0x1c972a,DialogViewPosition as _0x3818a0,SpinnerView as _0x2619a0,IconView as at,Notification as _0x3dcad6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x13d675,DomEmitterMixin as _0x1c8e8b,global as _0x58c00a,getAncestors as _0x2db418,ObservableMixin as _0x4155d8,createElement as _0x2f0913,uid as _0x243f71}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x7b6070}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x7ce2a9,info as _0xc9e5e8}from'@uploadcare/upload-client';import*as _0x34f4b0 from'@uploadcare/file-uploader';var o=function(_0x417222){return _0x417222['Local']='local',_0x417222['URL']='url',_0x417222['Dropbox']='dropbox',_0x417222['GDrive']='gdrive',_0x417222['Facebook']='facebook',_0x417222['GPhotos']='gphotos',_0x417222['OneDrive']='onedrive',_0x417222;}({});function _(_0x109e51,_0x2f077e,_0x4c4434){const t=_0x109e51['t'],_0x236189=_0x109e51['t'];switch(_0x2f077e){case o['Local']:return{'text':_0x236189('Insert'===_0x4c4434?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x236189('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x4c4434?_0x236189('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x236189('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x4c4434?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x4c4434?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x4c4434?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x4c4434?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x4c4434?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2f077e;}}class e extends _0x235cec{['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 _0x405145=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x473276;for(const _0x3f4766 in _0x405145){const _0x319947=_0x3f4766,_0x2242d6=_0x405145[_0x319947];if('uploadcareLicenseKeyValid'==_0x2242d6||'uploadcareLicenseKeyInvalid'==_0x2242d6||'uploadcareLicenseKeyExpired'==_0x2242d6||'uploadcareLicenseKeyDomainLimit'==_0x2242d6||'uploadcareLicenseKeyNotAllowed'==_0x2242d6||'uploadcareLicenseKeyEvaluationLimit'==_0x2242d6||'uploadcareLicenseKeyTrialLimit'==_0x2242d6||'uploadcareLicenseKeyUsageLimit'==_0x2242d6){delete _0x405145[_0x319947],_0x473276=_0x2242d6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x473276&&_0x405145['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x473276&&_0x405145['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x473276&&_0x405145['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x473276&&_0x405145['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x473276&&_0x405145['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x473276&&_0x405145['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x473276&&_0x405145['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xf0d7a5}=this,_0x58ee3d=_0xf0d7a5['commands']['get']('uploadcare');if(!_0x58ee3d)return;const _0x5493e1=this['_normalizeConfigSourceList'](_0xf0d7a5['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x402b02,_0xbd5290)=>{const _0x4c31d8=this['_getIntegrationKey'](_0xbd5290['type']);return _0x402b02[_0x4c31d8]||(_0x402b02[_0x4c31d8]=[]),_0x402b02[_0x4c31d8]['push'](_0xbd5290),_0x402b02;},{});_0xf0d7a5['plugins']['has']('ImageInsertUI')&&_0xf0d7a5['commands']['get']('uploadcare')&&Object['entries'](_0x5493e1)['forEach'](([_0x57b317,_0x4dd23f])=>{_0xf0d7a5['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x57b317,'observable':()=>_0x58ee3d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4dd23f),'formViewCreator':()=>this['_createDropdownButtons'](_0x4dd23f),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4dd23f),'override':'assetManager'!==_0x57b317});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3b1187){const {locale:_0x1b0443}=this['editor'];return _0x3b1187['map'](_0x367f7f=>{const _0x49ecbd=_(_0x1b0443,_0x367f7f,'Insert');switch(_0x367f7f){case o['Local']:return{'icon':_0x4fce07,'type':o['Local'],..._0x49ecbd};case o['URL']:return{'icon':_0x18f5c4,'type':o['URL'],..._0x49ecbd};case o['Dropbox']:return{'icon':_0x1d6618,'type':o['Dropbox'],..._0x49ecbd};case o['Facebook']:return{'icon':_0x4ef90f,'type':o['Facebook'],..._0x49ecbd};case o['GDrive']:return{'icon':_0x40bd1d,'type':o['GDrive'],..._0x49ecbd};case o['GPhotos']:return{'icon':_0x295fb9,'type':o['GPhotos'],..._0x49ecbd};case o['OneDrive']:return{'icon':_0x146b8a,'type':o['OneDrive'],..._0x49ecbd};}});}['_getIntegrationKey'](_0x29ba9f){switch(_0x29ba9f){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x440099,_0x1685f0){const _0xd81475=this['editor'],_0x7ab231=new _0x440099(_0xd81475['locale']),_0x394821=_0xd81475['commands']['get']('uploadcare');return _0x7ab231['bind']('isEnabled')['to'](_0x394821),_0x7ab231['on']('execute',()=>{_0x394821['execute'](_0x1685f0);}),_0x7ab231;}['_createToolbarButton'](_0x25c116){const {locale:_0x50ca8d}=this['editor'],_0x19da89=this['editor']['plugins']['get']('ImageInsertUI'),_0x133332=_0x25c116[0x0],_0x2653f1=this['_createButton'](_0x1b8a4c,_0x133332['type']);return _0x2653f1['icon']=_0x133332['icon'],_0x2653f1['bind']('label')['to'](_0x19da89,'isImageSelected',_0x59f9e3=>_(_0x50ca8d,_0x133332['type'],_0x59f9e3?'Replace':'Insert')['text']),_0x2653f1['tooltip']=!0x0,_0x2653f1;}['_createDropdownButtons'](_0x344239){const {locale:_0x2957e8}=this['editor'],_0x1f3076=this['editor']['plugins']['get']('ImageInsertUI');return _0x344239['map'](_0x57ba91=>{const _0x1d4528=this['_createButton'](_0x1b8a4c,_0x57ba91['type']);return _0x1d4528['withText']=!0x0,_0x1d4528['icon']=_0x57ba91['icon'],_0x1d4528['bind']('label')['to'](_0x1f3076,'isImageSelected',_0x471762=>_(_0x2957e8,_0x57ba91['type'],_0x471762?'Replace':'Insert')['text']),_0x1d4528;});}['_createMenuBarButtons'](_0x5e58a9){return _0x5e58a9['map'](_0x138422=>{const _0x52b6b0=this['_createButton'](_0x24f818,_0x138422['type']);return _0x52b6b0['icon']=_0x138422['icon'],_0x52b6b0['label']=_0x138422['shortText'],_0x52b6b0;});}}class q extends _0x3d2ea6{['focusTracker'];['focusCycler'];constructor(_0x532304){super(_0x532304),this['focusTracker']=new _0x13d675(),this['focusCycler']=new _0x5af8cd({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x1c34d3){super(_0x1c34d3),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x39b272,_0x528a09){const _0x54a681=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x35feaa=>_0x35feaa<=_0x528a09)['map'](_0x4fce49=>_0x39b272['replace'](/\/$/,'')+'/-/resize/'+_0x4fce49+'x/\x20'+_0x4fce49+'w');return{'imageFallbackUrl':_0x39b272,'imageSources':[{'srcset':_0x54a681['join'](',\x20'),'sizes':'(max-width:\x20'+_0x528a09+'px)\x20100vw,\x20'+_0x528a09+'px','type':'image/webp'}]};}function A(_0xab6809,_0x3bd011,_0x2b9879){const _0x13b096=_0xab6809['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x13b096?parseInt(_0x13b096[0x1],0xa):_0x3bd011,'height':_0x13b096?parseInt(_0x13b096[0x2],0xa):_0x2b9879};}function m(_0x14c0a6,_0xa6c6cb){const _0x56aa11=Object['create'](_0x1c8e8b),_0x3ff381=_0x14c0a6['plugins']['get']('ImageUtils'),_0x26d6fe=_0x14c0a6['editing']['mapper']['toViewElement'](_0xa6c6cb),_0x2d676b=_0x3ff381['findViewImgElement'](_0x26d6fe),_0x5f262a=_0x14c0a6['editing']['view']['domConverter']['viewToDom'](_0x2d676b),_0x48c4d4=_0xa6c6cb['getAttribute']('width'),_0x57ef71=_0xa6c6cb['getAttribute']('height'),_0x240b09='image-processing';_0x14c0a6['editing']['view']['change'](_0x4d1d88=>{_0x4d1d88['addClass'](_0x240b09,_0x26d6fe),_0x4d1d88['setStyle']('aspect-ratio',_0x48c4d4+'/'+_0x57ef71,_0x2d676b);}),_0x56aa11['listenTo'](_0x5f262a,'load',()=>{_0x56aa11['stopListening'](_0x5f262a,'load'),_0x14c0a6['editing']['view']['change'](_0x500e6d=>{_0x500e6d['removeClass'](_0x240b09,_0x26d6fe),_0x500e6d['removeStyle']('aspect-ratio',_0x2d676b);});});}function V(_0x3f173f){if(Array['isArray'](_0x3f173f)){const _0x45d242=_0x3f173f['map'](V);return _0x442653=>_0x45d242['some'](_0xd32ba5=>_0xd32ba5(_0x442653));}if('origin'==_0x3f173f){const _0x38e3bb=_0x58c00a['window']['location']['origin'];return _0x442aba=>new URL(_0x442aba,_0x58c00a['document']['baseURI'])['origin']==_0x38e3bb;}return'function'==typeof _0x3f173f?_0x3f173f:_0x3f173f instanceof RegExp?_0x3a553c=>!(!_0x3a553c['match'](_0x3f173f)&&!_0x3a553c['replace'](/^https?:\/\//,'')['match'](_0x3f173f)):()=>!0x1;}function F(_0x458403,_0x4f0728){return _0x2db418(_0x458403['target'])['includes'](_0x4f0728);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4155d8(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5572b0,_0x169e41,_0x2b308c){super(),this['_editor']=_0x5572b0,this['_editing']=_0x169e41,this['_dialog']=_0x5572b0['plugins']['get'](_0x1c972a),this['_api']=_0x169e41['ctxElement']['getAPI'](),this['_type']=_0x2b308c,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:_0x454b5b,model:_0x3a75df}=this['_editor'],_0x464536=_0x3a75df['document']['selection']['getSelectedElement'](),_0x11d354=_0x464536&&(_0x464536['is']('element','imageBlock')||_0x464536['is']('element','imageInline'));this['_formView']=new S(_0x454b5b),this['_dialog']['show']({'id':'uploadCare','icon':_0x4fce07,'title':_(_0x454b5b,this['_type'],_0x11d354?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3818a0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x413c8d=>!F(_0x413c8d,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x534f54}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5ec7c0=>{const _0x5c7d92=_0x534f54['length'];for(const _0x17ce92 of _0x534f54){const _0x582a85=_0x17ce92===_0x534f54[_0x5c7d92-0x1],{cdnUrl:_0x317ae1,fileInfo:_0x4c7006}=_0x17ce92;if(!_0x317ae1||!_0x4c7006)continue;const {width:_0x4f93d6,height:_0x2e7a73}=_0x4c7006['imageInfo'],_0x566733=A(_0x317ae1,_0x4f93d6,_0x2e7a73),_0x3e0bd3=E(_0x317ae1,_0x566733['width']),_0x441b2e={'id':_0x4c7006['uuid'],'type':'image','attributes':{'imageDimension':_0x566733,..._0x3e0bd3}};this['_insertAsset'](_0x441b2e,_0x582a85,_0x5ec7c0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2a4289=>{'idle'===_0x2a4289['detail']['status']&&!_0x2a4289['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x28c719,_0xd8f427,_0x4fcdf3){const _0x3592e0=this['_editor']['model']['document']['selection'],_0x400ec2=_0x3592e0['getSelectedElement'](),_0x45d808=!(!_0x400ec2||!_0x400ec2['is']('element','imageInline'));_0x4fcdf3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x28c719,_0x45d808),_0xd8f427||_0x4fcdf3['setSelection'](_0x3592e0['getLastPosition']());}['_insertImage'](_0x1334be,_0x570318){const _0x45f3c0=this['_editor'],{imageDimension:_0x201f9d,imageFallbackUrl:_0x442ea0,imageSources:_0x2b81da}=_0x1334be['attributes'];_0x45f3c0['execute']('insertImage',{'imageType':_0x570318?'imageInline':null,'source':{'uploadcareImageId':_0x1334be['id'],'src':_0x442ea0,'sources':_0x2b81da,..._0x201f9d}});}}class n extends _0x3e6fbf{['_editing'];['_controller']=null;static get['requires'](){return[_0x1c972a,i];}constructor(_0x7be9a5){super(_0x7be9a5),this['_editing']=_0x7be9a5['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x19d6a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x19d6a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x2c42d6,publicKey:_0x10d69e,signal:_0x3c6e8c,onProgress:_0x1f021c}){return _0x7ce2a9(_0x2c42d6,{'publicKey':_0x10d69e,'store':'auto','signal':_0x3c6e8c,'onProgress':_0x1f021c});}static['getInfo'](_0x56ce42,_0x18b727){return _0xc9e5e8(_0x56ce42,_0x18b727);}}class p extends _0x235cec{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x7b6070,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x28afb6=this['editor'];if(!!!_0x28afb6['config']['get']('uploadcare'))return;_0x28afb6['plugins']['get'](_0x7b6070)['createUploadAdapter']=_0x47ee4e=>new x(_0x47ee4e,_0x28afb6),_0x28afb6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x346193,{imageElement:_0x5e0602,data:_0x3d6272})=>{_0x28afb6['model']['change'](_0xa528fd=>{_0xa528fd['setAttribute']('uploadcareImageId',_0x3d6272['uploadcareImageId'],_0x5e0602);});});}}class x{['loader'];['editor'];['controller'];constructor(_0xe41557,_0x3645a2){this['loader']=_0xe41557,this['editor']=_0x3645a2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x352469=this['editor']['config']['get']('uploadcare.pubkey'),_0x5d649a=await this['loader']['file'];return C['upload']({'file':_0x5d649a,'publicKey':_0x352469,'signal':this['controller']['signal'],'onProgress':_0x4d739b=>{_0x4d739b&&_0x4d739b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4d739b['value']);}})['then'](async _0x2e7712=>{const {imageFallbackUrl:_0x3d66c5,imageSources:_0xd10ba9}=E(_0x2e7712['cdnUrl'],_0x2e7712['imageInfo']['width']);return{'uploadcareImageId':_0x2e7712['uuid'],'default':_0x3d66c5,'sources':_0xd10ba9};})['catch'](()=>{const _0x49fb13=t('Cannot\x20upload\x20file:')+('\x20'+_0x5d649a['name']+'.');return Promise['reject'](_0x49fb13);});}['abort'](){this['controller']['abort']();}}class i extends _0x235cec{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1c972a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x517a92=this['editor'];_0x517a92['commands']['add']('uploadcare',new n(_0x517a92));}['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 _0x30d408=_0x58c00a['document']['querySelector']('input[uploadcare-file-input]');_0x30d408&&_0x30d408['remove']();}),async function(_0x1de610){const _0x190e45=_0x39dc00([0x53,0x65,0x38,0x43,0x4e,0x75,0x42,0x58,0x71,0x4a,0x31,0x77,0x66,0x70,0x78,0x72,0x6c,0x6e,0x52,0x45,0x48,0x35,0x6a,0x68,0x73,0x64,0x74,0x39,0x5a,0x69,0x59,0x61,0x4c,0x76,0x30,0x55,0x57,0x6b,0x4f,0x41,0x79,0x47,0x56,0x51,0x36,0x62,0x6d,0x4d,0x67,0x50,0x7a,0x32,0x54,0x44,0x37,0x49,0x46,0x6f,0x33,0x63,0x4b,0x34]),_0xda6464=0x59d118f7,_0x264690=0x59d67367^_0xda6464,_0x1e2b5a=window[_0x39dc00([0x44,0x61,0x74,0x65])][_0x39dc00([0x6e,0x6f,0x77])](),_0x468cd9=_0x1de610[_0x39dc00([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3556ee=new window[(_0x39dc00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x401028=>{_0x468cd9[_0x39dc00([0x6f,0x6e,0x63,0x65])](_0x39dc00([0x72,0x65,0x61,0x64,0x79]),_0x401028);}),_0x1c08ce={[_0x39dc00([0x6b,0x74,0x79])]:_0x39dc00([0x45,0x43]),[_0x39dc00([0x75,0x73,0x65])]:_0x39dc00([0x73,0x69,0x67]),[_0x39dc00([0x63,0x72,0x76])]:_0x39dc00([0x50,0x2d,0x32,0x35,0x36]),[_0x39dc00([0x78])]:_0x39dc00([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]),[_0x39dc00([0x79])]:_0x39dc00([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]),[_0x39dc00([0x61,0x6c,0x67])]:_0x39dc00([0x45,0x53,0x32,0x35,0x36])},_0x559091=_0x468cd9[_0x39dc00([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x39dc00([0x67,0x65,0x74])](_0x39dc00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x53ae98(){let _0xba6236,_0x5d64ec=null,_0x443f68=null;try{if(_0x559091==_0x39dc00([0x47,0x50,0x4c]))return _0x39dc00([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xba6236=_0x3783a7(),!_0xba6236)return _0x39dc00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xba6236[_0x39dc00([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x443f68=_0x526e53(_0xba6236[_0x39dc00([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xba6236[_0x39dc00([0x6a,0x74,0x69])])),await _0x4ce722()?_0x1a7cac()?_0xd8962b()?_0x39dc00([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c005a()?(_0xba6236[_0x39dc00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39dc00([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d64ec=_0x352c59(_0x39dc00([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xba6236[_0x39dc00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39dc00([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d64ec=_0x352c59(_0x39dc00([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x254b87()):_0x39dc00([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x39dc00([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x39dc00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x39dc00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd8962b(){const _0x109ce3=[_0x39dc00([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x39dc00([0x74,0x72,0x69,0x61,0x6c])][_0x39dc00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba6236[_0x39dc00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e2b5a/0x3e8:0xe10*_0x264690;return _0xba6236[_0x39dc00([0x65,0x78,0x70])]<_0x109ce3;}function _0x1a7cac(){const _0x3d06f5=_0xba6236[_0x39dc00([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3d06f5&&(!!_0x3d06f5[_0x39dc00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39dc00([0x2a]))||!!_0x3d06f5[_0x39dc00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39dc00([0x55,0x50,0x4c,0x43])));}function _0x3c005a(){const _0x25bd60=_0xba6236[_0x39dc00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x25bd60||0x0==_0x25bd60[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4faf45}=new URL(window[_0x39dc00([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x25bd60[_0x39dc00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4faf45))return!0x0;const _0xe2bba=_0x4faf45[_0x39dc00([0x73,0x70,0x6c,0x69,0x74])](_0x39dc00([0x2e]));return _0x25bd60[_0x39dc00([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13a86b=>_0x13a86b[_0x39dc00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39dc00([0x2a])))[_0x39dc00([0x6d,0x61,0x70])](_0x57181e=>_0x57181e[_0x39dc00([0x73,0x70,0x6c,0x69,0x74])](_0x39dc00([0x2e])))[_0x39dc00([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x531f95=>_0x531f95[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe2bba[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39dc00([0x6d,0x61,0x70])](_0x29af38=>Array(_0xe2bba[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29af38[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39dc00([0x66,0x69,0x6c,0x6c])](_0x29af38[0x0]===_0x39dc00([0x2a])?_0x39dc00([0x2a]):'')[_0x39dc00([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29af38))[_0x39dc00([0x73,0x6f,0x6d,0x65])](_0x220433=>_0xe2bba[_0x39dc00([0x65,0x76,0x65,0x72,0x79])]((_0x48ab29,_0x53334b)=>_0x220433[_0x53334b]===_0x48ab29||_0x220433[_0x53334b]===_0x39dc00([0x2a])));}function _0x254b87(){return _0x5d64ec&&_0x443f68?new window[(_0x39dc00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe266ea,_0x3d7d7e)=>{_0x5d64ec[_0x39dc00([0x74,0x68,0x65,0x6e])](_0xe266ea,_0x3d7d7e),_0x443f68[_0x39dc00([0x74,0x68,0x65,0x6e])](_0x2f4700=>{_0x2f4700!=_0x39dc00([0x56,0x61,0x6c,0x69,0x64])&&_0xe266ea(_0x2f4700);},_0x3d7d7e);}):_0x5d64ec||_0x443f68||_0x39dc00([0x56,0x61,0x6c,0x69,0x64]);}}function _0x526e53(_0x106467,_0x48aac0){return new window[(_0x39dc00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x264e75=>{if(_0x459fc6())return _0x264e75(_0x39dc00([0x56,0x61,0x6c,0x69,0x64]));_0x431d23(),_0x468cd9[_0x39dc00([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x39dc00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x582ac4=!0x1;const _0x201f44=_0x243f71();function _0x321a2a(_0xce897a){return!!_0xce897a&&(typeof _0xce897a===_0x39dc00([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xce897a===_0x39dc00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xce897a[_0x39dc00([0x74,0x68,0x65,0x6e])]===_0x39dc00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xce897a[_0x39dc00([0x63,0x61,0x74,0x63,0x68])]===_0x39dc00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a7010(_0x29bbeb){_0x102c78(_0x29bbeb)[_0x39dc00([0x74,0x68,0x65,0x6e])](_0x4afdfa=>{if(!_0x4afdfa||_0x4afdfa[_0x39dc00([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x39dc00([0x6f,0x6b]))return _0x39dc00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x47c469(_0xed7402(_0x201f44+_0x48aac0))!=_0x4afdfa[_0x39dc00([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x39dc00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x39dc00([0x56,0x61,0x6c,0x69,0x64]);})[_0x39dc00([0x74,0x68,0x65,0x6e])](_0x27f2b5=>(_0x10b540(),_0x27f2b5),()=>{const _0x334303=_0x48e7c9();return null==_0x334303?(_0x10b540(),_0x39dc00([0x56,0x61,0x6c,0x69,0x64])):_0x39dc00(_0x1e2b5a-_0x334303>(0x7ddd9cf7^_0xda6464)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x39dc00([0x74,0x68,0x65,0x6e])](_0x264e75)[_0x39dc00([0x63,0x61,0x74,0x63,0x68])](()=>{_0x264e75(_0x39dc00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10b617=0x59e7f677^_0xda6464;function _0x10b540(){const _0x26f587=_0x39dc00([0x6c,0x6c,0x63,0x74,0x2d])+_0x47c469(_0xed7402(_0x106467)),_0x333dc7=_0x4e6f86(_0x47c469(window[_0x39dc00([0x4d,0x61,0x74,0x68])][_0x39dc00([0x63,0x65,0x69,0x6c])](_0x1e2b5a/_0x10b617)));window[_0x39dc00([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39dc00([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26f587,_0x333dc7);}function _0x48e7c9(){const _0x614050=_0x39dc00([0x6c,0x6c,0x63,0x74,0x2d])+_0x47c469(_0xed7402(_0x106467)),_0x1b54e3=window[_0x39dc00([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39dc00([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x614050);return _0x1b54e3?window[_0x39dc00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e6f86(_0x1b54e3),0x10)*_0x10b617:null;}function _0x102c78(_0x179f2b){return new window[(_0x39dc00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36402b,_0x4d1c0c)=>{_0x179f2b[_0x39dc00([0x74,0x68,0x65,0x6e])](_0x36402b,_0x4d1c0c),window[_0x39dc00([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d1c0c,0x59d0cc37^_0xda6464);});}}_0x468cd9[_0x39dc00([0x6f,0x6e])](_0x39dc00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44cbcc,_0x18410b)=>{if(_0x18410b[0x0]!=_0x106467)return _0x264e75(_0x39dc00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18410b[0x1]={..._0x18410b[0x1],[_0x39dc00([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x201f44};},{[_0x39dc00([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39dc00([0x68,0x69,0x67,0x68])}),_0x468cd9[_0x39dc00([0x6f,0x6e])](_0x39dc00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x47af0d=>{_0x321a2a(_0x47af0d[_0x39dc00([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x582ac4=!0x0,_0x2a7010(_0x47af0d[_0x39dc00([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x39dc00([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39dc00([0x6c,0x6f,0x77])}),_0x3556ee[_0x39dc00([0x74,0x68,0x65,0x6e])](()=>{_0x582ac4||_0x264e75(_0x39dc00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x459fc6(){return _0x468cd9[_0x39dc00([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39dc00([0x76,0x69,0x65,0x77])][_0x39dc00([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x39dc00([0x61,0x75,0x74,0x6f]);}function _0x431d23(){_0x468cd9[_0x39dc00([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39dc00([0x76,0x69,0x65,0x77])][_0x39dc00([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39dc00([0x61,0x75,0x74,0x6f]);}}function _0x352c59(_0x160089){const _0x3a2a75=[new window[(_0x39dc00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a26ff=>setTimeout(_0x3a26ff,0x59d8263b^_0xda6464)),_0x3556ee[_0x39dc00([0x74,0x68,0x65,0x6e])](()=>new window[(_0x39dc00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb94340=>{let _0x28c571=0x0;_0x468cd9[_0x39dc00([0x6d,0x6f,0x64,0x65,0x6c])][_0x39dc00([0x6f,0x6e])](_0x39dc00([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x14ecb6,_0x3f248e)=>{_0x3f248e[0x0][_0x39dc00([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x28c571++,_0x28c571==(0x59d1190f^_0xda6464)&&(_0xb94340(),_0x14ecb6[_0x39dc00([0x6f,0x66,0x66])]());});}))];return window[_0x39dc00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39dc00([0x72,0x61,0x63,0x65])](_0x3a2a75)[_0x39dc00([0x74,0x68,0x65,0x6e])](()=>_0x160089);}async function _0xf8054e(){await _0x3556ee,_0x468cd9[_0x39dc00([0x6d,0x6f,0x64,0x65,0x6c])][_0x39dc00([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c9798,_0x468cd9[_0x39dc00([0x6d,0x6f,0x64,0x65,0x6c])][_0x39dc00([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c9798,_0x468cd9[_0x39dc00([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x39dc00([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c495d(_0x3dc436){const _0x5be09b=_0x3d95c9();_0x468cd9[_0x5be09b]=_0x39dc00([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3dc436,_0x3dc436!=_0x39dc00([0x56,0x61,0x6c,0x69,0x64])&&_0xf8054e();}function _0x3d95c9(){const _0x2135ef=window[_0x39dc00([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x39dc00([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x39dc00([0x6e,0x6f,0x77])]())[_0x39dc00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x39dc00([0x2e]),'');let _0x36e247=_0x39dc00([0x53]);for(let _0x282766=0x0;_0x282766<_0x2135ef[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x282766+=0x2){let _0xdbaf5=window[_0x39dc00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2135ef[_0x39dc00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x282766,_0x282766+0x2));_0xdbaf5>=_0x190e45[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xdbaf5-=_0x190e45[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x36e247+=_0x190e45[_0xdbaf5];}return _0x36e247;}function _0x3783a7(){const _0x575f44=_0x559091[_0x39dc00([0x73,0x70,0x6c,0x69,0x74])](_0x39dc00([0x2e]));if(0x3!=_0x575f44[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47cd32(_0x575f44[0x1]);function _0x47cd32(_0x52f55c){const _0x52c390=_0x23619d(_0x52f55c);return _0x52c390&&_0x18a834()?_0x52c390:null;function _0x18a834(){const _0x4c3eca=_0x52c390[_0x39dc00([0x6a,0x74,0x69])],_0x4e553b=window[_0x39dc00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c3eca[_0x39dc00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c3eca[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4906a3={..._0x52c390,[_0x39dc00([0x6a,0x74,0x69])]:_0x4c3eca[_0x39dc00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c3eca[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4906a3[_0x39dc00([0x76,0x63])],_0xed7402(_0x4906a3)==_0x4e553b;}}}async function _0x4ce722(){let _0x2385ad=!0x0;try{const _0x3fecdb=_0x559091[_0x39dc00([0x73,0x70,0x6c,0x69,0x74])](_0x39dc00([0x2e])),[_0x9627df,_0x5f82e6,_0x3840fa]=_0x3fecdb;return _0x54e082(_0x9627df),await _0x2fe6fa(_0x9627df,_0x5f82e6,_0x3840fa),_0x2385ad;}catch{return!0x1;}function _0x54e082(_0x5589e9){const _0x163053=_0x23619d(_0x5589e9);_0x163053&&_0x163053[_0x39dc00([0x61,0x6c,0x67])]==_0x39dc00([0x45,0x53,0x32,0x35,0x36])||(_0x2385ad=!0x1);}async function _0x2fe6fa(_0x57c08a,_0x147898,_0x487d25){const _0x1dd27b=window[_0x39dc00([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x39dc00([0x66,0x72,0x6f,0x6d])](_0x5bd49b(_0x487d25),_0x593978=>_0x593978[_0x39dc00([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x138459=new window[(_0x39dc00([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x39dc00([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x57c08a+_0x39dc00([0x2e])+_0x147898),_0x12fb59=window[_0x39dc00([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x39dc00([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12fb59)return;const _0x529a38=await _0x12fb59[_0x39dc00([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x39dc00([0x6a,0x77,0x6b]),_0x1c08ce,{[_0x39dc00([0x6e,0x61,0x6d,0x65])]:_0x39dc00([0x45,0x43,0x44,0x53,0x41]),[_0x39dc00([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x39dc00([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x39dc00([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12fb59[_0x39dc00([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x39dc00([0x6e,0x61,0x6d,0x65])]:_0x39dc00([0x45,0x43,0x44,0x53,0x41]),[_0x39dc00([0x68,0x61,0x73,0x68])]:{[_0x39dc00([0x6e,0x61,0x6d,0x65])]:_0x39dc00([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x529a38,_0x1dd27b,_0x138459)||(_0x2385ad=!0x1);}}function _0x23619d(_0x344e48){return _0x344e48[_0x39dc00([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x39dc00([0x65,0x79]))?JSON[_0x39dc00([0x70,0x61,0x72,0x73,0x65])](_0x5bd49b(_0x344e48)):null;}function _0x5bd49b(_0x385184){return window[_0x39dc00([0x61,0x74,0x6f,0x62])](_0x385184[_0x39dc00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x39dc00([0x2b]))[_0x39dc00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x39dc00([0x2f])));}function _0xed7402(_0x341e9b){let _0x31ccd8=0x1505;function _0x7962(_0x4d7af3){for(let _0x2bf8ac=0x0;_0x2bf8ac<_0x4d7af3[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bf8ac++){const _0x54146b=_0x4d7af3[_0x39dc00([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2bf8ac);_0x31ccd8=(_0x31ccd8<<0x5)+_0x31ccd8+_0x54146b,_0x31ccd8&=_0x31ccd8;}}function _0x3a3134(_0x3d5c93){Array[_0x39dc00([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d5c93)?_0x3d5c93[_0x39dc00([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a3134):_0x3d5c93&&typeof _0x3d5c93==_0x39dc00([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x39dc00([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d5c93)[_0x39dc00([0x73,0x6f,0x72,0x74])]()[_0x39dc00([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29b4b0,_0xfdbe1])=>{_0x7962(_0x29b4b0),_0x3a3134(_0xfdbe1);}):_0x7962(window[_0x39dc00([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d5c93));}return _0x3a3134(_0x341e9b),_0x31ccd8>>>0x0;}function _0x47c469(_0x564046){return _0x564046[_0x39dc00([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x39dc00([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x39dc00([0x30]));}function _0x4e6f86(_0x4c63f6){return _0x4c63f6[_0x39dc00([0x73,0x70,0x6c,0x69,0x74])]('')[_0x39dc00([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x39dc00([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c9798(){}function _0x39dc00(_0xbc3d93){return _0xbc3d93['map'](_0x12ca67=>String['fromCharCode'](_0x12ca67))['join']('');}_0x5c495d(await _0x53ae98());}(this);}['_initSchema'](){const _0x1ec70a=this['editor']['model']['schema'];_0x1ec70a['isRegistered']('imageBlock')&&_0x1ec70a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1ec70a['isRegistered']('imageInline')&&_0x1ec70a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x50213b=this['editor'];_0x50213b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x50213b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3c769d=>_0x3c769d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a8e08=_0x50213b['commands']['get']('replaceImageSource');_0x1a8e08&&this['listenTo'](_0x1a8e08,'cleanupImage',(_0x203015,[_0x1f4674,_0x2155a7])=>{_0x1f4674['removeAttribute']('uploadcareImageId',_0x2155a7);});}['_initConfig'](){const _0x1ef124=this['editor']['config']['get']('uploadcare.uploader')||{},_0x131d72=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2f0913(_0x58c00a['document'],'uc-config',{..._0x1ef124,'pubkey':_0x131d72,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x422ae0=>{if('closeMax'==_0x422ae0)return'#uc-icon-arrow-down';},_0x58c00a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2f0913(_0x58c00a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x58c00a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x476425=this['editor']['commands']['get']('insertImage');_0x476425&&this['listenTo'](_0x476425,'execute',()=>{const _0x30e074=this['editor']['model']['document']['selection']['getSelectedElement']();_0x30e074&&_0x30e074['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x30e074);});});const _0x3607af=this['editor']['commands']['get']('uploadcareImageReplace');_0x3607af&&this['listenTo'](_0x3607af,'execute',()=>{const _0x3907fd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3907fd&&_0x3907fd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3907fd);});});}}class u extends _0x235cec{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x226b4b){super(_0x226b4b),_0x226b4b['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x34f4b0['defineComponents'](_0x34f4b0);}}class ta extends _0x3d2ea6{constructor(_0x3bd477){super(_0x3bd477);const t=_0x3bd477['t'],_0xbc9a11=this['bindTemplate'],_0x45f9e5=new _0x2619a0();_0x45f9e5['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':[_0x45f9e5,{'text':_0xbc9a11['to']('imageUploadProgress',_0xdc29f9=>t('Loading\x20image...')+'\x20('+(_0xdc29f9||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x3d2ea6{constructor(_0x4ae59){super(_0x4ae59);const t=_0x4ae59['t'];this['set']('errorType',null);const _0x3385ea=new _0x1b8a4c(_0x4ae59);_0x3385ea['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3385ea['withText']=!0x0,_0x3385ea['class']='ck-button-action',_0x3385ea['on']('execute',()=>{this['fire']('retry');}),_0x3385ea['bind']('isVisible')['to'](this,'errorType',_0x187f6f=>'NotFound'!==_0x187f6f);const _0x4f7bc9=new at();_0x4f7bc9['content']=et,_0x4f7bc9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1241e7=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':[_0x4f7bc9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1241e7['to']('errorType',_0x3145ec=>t('NotFound'!==_0x3145ec?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3385ea]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x3d2ea6{constructor(_0x10ebb9,_0x3a4e08){super(_0x10ebb9);const _0x34162d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3a4e08,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x34162d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4e245d,_0x3c0eb3,_0x407bd8){super(_0x4e245d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4e245d),this['_errorView']=new rt(_0x4e245d),this['_editingView']=new tt(_0x4e245d,_0x407bd8),this['_focusableView']=new _0x3d2ea6(_0x4e245d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3c0eb3),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'],_0x26b0a7=>{this['_addUploadcareImageEditorListeners'](_0x26b0a7);});}),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'](_0x375c98,_0x580926){const _0x330c4c='uc-cloud-image-editor',_0x5eaa33=_0x375c98['querySelector'](_0x330c4c);if(_0x5eaa33)return _0x580926(_0x5eaa33);const _0x52ec51=new MutationObserver(_0x2b2bae=>{const _0x52904b=_0x2b2bae['filter'](_0x15a926=>_0x15a926['target']===_0x375c98&&_0x15a926['addedNodes']['length']>0x0&&_0x15a926['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x330c4c);_0x52904b['length']&&(_0x52ec51['disconnect'](),_0x580926(_0x52904b[0x0]['addedNodes'][0x0]));});_0x52ec51['observe'](_0x375c98,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x6e3d4a){_0x6e3d4a['addEventListener']('apply',_0x8c883f=>{this['fire']('apply',{'imageSrc':_0x8c883f['detail']['cdnUrl']});}),_0x6e3d4a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4155d8(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xa0d2b6,_0x2b8d00,_0xcd6588){super(),this['_editor']=_0xa0d2b6,this['_dialog']=_0x2b8d00,this['_imageElement']=_0xcd6588,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 _0x229f62=this['_imageElement'],_0x3b1742=_0x229f62['getAttribute']('uploadcareImageId'),_0x533ffc=_0x229f62['getAttribute']('src');if(_0x3b1742)await this['_loadImageInfo'](_0x3b1742,_0x533ffc);else{if(this['_imageCache']['has'](_0x533ffc)){const _0x107efb=this['_imageCache']['get'](_0x533ffc);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x107efb['url'],this['imageDimension']=_0x107efb['dimension'],this['imageId']=_0x107efb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x261a8a}=this['_editor'],t=_0x261a8a['t'],_0x342f98=new Z(_0x261a8a,this['imageStatus'],this['_attributes']);_0x342f98['bind']('status')['to'](this,'imageStatus'),_0x342f98['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x342f98['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x342f98['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x342f98,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x51fdd7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x342f98,'position':_0x3818a0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x342f98['focus']();},'onHide':()=>{_0x342f98['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x703ade=>!F(_0x703ade,_0x342f98['element'])}});}['_loadImageInfo'](_0xe6641a,_0x339ff3){return C['getInfo'](_0xe6641a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1c618e=>{const {width:_0x2abae2,height:_0x281f8e}=_0x1c618e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x339ff3,this['imageDimension']={'width':_0x2abae2,'height':_0x281f8e},this['imageId']=_0xe6641a;})['catch'](_0x49d784=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x49d784['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x795ff2,_0x3a05a5){return this['_getImageAsFile'](_0x795ff2)['then'](_0x369b45=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3a05a5['signal'],'file':_0x369b45,'onProgress':_0x406db0=>{_0x406db0&&_0x406db0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x406db0['value']));}}))['then'](_0x392446=>{const {width:_0x1c6962,height:_0x438bf1}=_0x392446['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x392446['cdnUrl'],this['imageDimension']={'width':_0x1c6962,'height':_0x438bf1},this['imageId']=_0x392446['uuid'],this['imageUploadProgress']=null;const _0x77e1b0=_0x795ff2['getAttribute']('src');this['_imageCache']['set'](_0x77e1b0,{'id':_0x392446['uuid'],'url':_0x392446['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x576ba1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x576ba1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x24eb08,_0x3b750d){_0x24eb08['on']('apply',(_0x51255c,_0x33d49c)=>{this['_replaceImage'](_0x3b750d,_0x33d49c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x24eb08['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x24eb08['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x28bfd7,_0x3ba839,_0x6439f9){const _0x4301e5=this['_editor'],{width:_0x345502,height:_0x2a9e24}=A(_0x3ba839,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x44574c,imageSources:_0x289f94}=E(_0x3ba839,_0x345502);_0x4301e5['model']['change'](_0x252c0c=>{if('$graveyard'===_0x28bfd7['root']['rootName']){_0x4301e5['execute']('insertImage',{'imageType':_0x28bfd7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x28bfd7['getAttributes']()),'uploadcareImageId':_0x6439f9,'src':_0x44574c,'sources':_0x289f94,'width':_0x345502,'height':_0x2a9e24}});const _0x19d3eb=_0x28bfd7['getChildren']();_0x28bfd7=_0x4301e5['model']['document']['selection']['getSelectedElement']();for(const _0x12a3d2 of _0x19d3eb)_0x252c0c['append'](_0x252c0c['cloneElement'](_0x12a3d2),_0x28bfd7);}else _0x252c0c['setSelection'](_0x28bfd7,'on'),_0x4301e5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x28bfd7['getAttributes']()),'uploadcareImageId':_0x6439f9,'src':_0x44574c,'sources':_0x289f94,'width':_0x345502,'height':_0x2a9e24},_0x28bfd7);_0x252c0c['setSelection'](_0x28bfd7,'on');});}async['_getImageAsFile'](_0x314778){const _0x140a21=_0x58c00a['window'],_0x3e3677=_0x58c00a['document']['location']['href'],_0x4ded68=new _0x140a21['URL'](_0x314778['getAttribute']('src'),_0x3e3677);if('data:'===_0x4ded68['protocol']){const _0x434b19=_0x4ded68['href']['split'](','),_0x2448fb=_0x434b19[0x0]['match'](/:(.*?);/)[0x1],_0x2ae3f9=_0x2448fb['split']('/')[0x1],_0x3bd4da=_0x140a21['atob'](_0x434b19[_0x434b19['length']-0x1]);let _0x2e8da9=_0x3bd4da['length'];const _0x3c30a0=new _0x140a21['Uint8Array'](_0x2e8da9);for(;_0x2e8da9--;)_0x3c30a0[_0x2e8da9]=_0x3bd4da['charCodeAt'](_0x2e8da9);return new _0x140a21['File']([_0x3c30a0],'image.'+_0x2ae3f9,{'type':_0x2448fb});}const _0x26e70e=_0x4ded68['href']['split']('/'),_0x40b7bc=_0x26e70e[_0x26e70e['length']-0x1],_0xd01544=_0x40b7bc['split']('.')[0x1];return _0x140a21['fetch'](_0x4ded68['href'])['then'](_0xc57aba=>_0xc57aba['clone']()['blob']())['then'](_0x76d89=>new _0x140a21['File']([_0x76d89],_0x40b7bc,{'type':'image/'+_0xd01544}));}}class J extends _0x3e6fbf{['imageEditController'];static get['requires'](){return[_0x1c972a];}['_isEditable'];constructor(_0x43e832){super(_0x43e832),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4f2ffa){const _0x575181=V(_0x4f2ffa);return _0x2276c6=>!(!_0x2276c6||!_0x2276c6['is']('element','imageBlock')&&!_0x2276c6['is']('element','imageInline'))&&(!!_0x2276c6['hasAttribute']('uploadcareImageId')||!!_0x2276c6['hasAttribute']('src')&&_0x575181(_0x2276c6['getAttribute']('src')));}(_0x43e832['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5e71cf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5e71cf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x204c41=this['editor']['model']['document']['selection']['getSelectedElement']();_0x204c41&&(_0x204c41['is']('element','imageBlock')||_0x204c41['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1c972a),_0x204c41),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3e6fbf{['refresh'](){const _0x2d646=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2d646&&(_0x2d646['is']('element','imageBlock')||_0x2d646['is']('element','imageInline')));}['execute'](_0x23e8ad){const _0x275265=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x99e31f=>{_0x99e31f['setAttributes'](_0x23e8ad,_0x275265),_0x99e31f['removeAttribute']('srcset',_0x275265),_0x99e31f['removeAttribute']('sizes',_0x275265);});}}class g extends _0x235cec{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3dcad6,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x147190}=this;_0x147190['commands']['add']('uploadcareImageEdit',new J(_0x147190)),_0x147190['commands']['add']('uploadcareImageReplace',new O(_0x147190));}}class j extends _0x235cec{['_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 _0x1422c0=this['editor'];_0x1422c0['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4c5dc7=>{const _0x1f6ae4=_0x1422c0['commands']['get']('uploadcareImageEdit'),_0x18ccf9=new _0x1b8a4c(_0x4c5dc7),t=_0x4c5dc7['t'];return _0x18ccf9['set']({'icon':_0x51fdd7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x18ccf9['bind']('isEnabled')['to'](_0x1f6ae4),_0x18ccf9['bind']('isOn')['to'](_0x1f6ae4,'isActive'),this['listenTo'](_0x18ccf9,'execute',()=>{_0x1422c0['execute']('uploadcareImageEdit'),_0x1422c0['editing']['view']['focus']();}),_0x18ccf9;}),this['_initConfig']();}['_initConfig'](){const _0x57d1bd=_0x2f0913(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x57d1bd),this['listenTo'](this['editor'],'destroy',()=>{_0x57d1bd['remove']();});}}class P extends _0x235cec{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x355139,Command as _0x5a745e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5661a0,IconGooglePhotos as _0x47504b,IconGoogleDrive as _0x480c73,IconFacebook as _0x245f73,IconDropbox as _0x35c3c0,IconUploadcareLink as _0x2aae32,IconUploadcareImageUpload as _0x4db027,IconError as et,IconUploadcareImageEdit as _0x299e8d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x47e0fd,MenuBarMenuListItemButtonView as _0x2debac,View as _0x4427bb,FocusCycler as _0x436425,Dialog as _0x3e537e,DialogViewPosition as _0x390416,SpinnerView as _0x540f19,IconView as at,Notification as _0x7a44f1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x183317,DomEmitterMixin as _0x1f94e7,global as _0x499bb9,getAncestors as _0x5bf003,ObservableMixin as _0x103a98,createElement as _0x32a3a9,uid as _0x4d5ac9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2c7571}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x365b2e,info as _0x5f006a}from'@uploadcare/upload-client';import*as _0x1fa0ce from'@uploadcare/file-uploader';var o=function(_0x2d8f5c){return _0x2d8f5c['Local']='local',_0x2d8f5c['URL']='url',_0x2d8f5c['Dropbox']='dropbox',_0x2d8f5c['GDrive']='gdrive',_0x2d8f5c['Facebook']='facebook',_0x2d8f5c['GPhotos']='gphotos',_0x2d8f5c['OneDrive']='onedrive',_0x2d8f5c;}({});function _(_0xe464c8,_0x221853,_0x5e6d44){const t=_0xe464c8['t'],_0x56ee59=_0xe464c8['t'];switch(_0x221853){case o['Local']:return{'text':_0x56ee59('Insert'===_0x5e6d44?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x56ee59('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5e6d44?_0x56ee59('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x56ee59('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5e6d44?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5e6d44?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5e6d44?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5e6d44?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5e6d44?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x221853;}}class e extends _0x355139{['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 _0x6b91=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ff9c2;for(const _0x57a098 in _0x6b91){const _0x1b2eb7=_0x57a098,_0xc90cd2=_0x6b91[_0x1b2eb7];if('uploadcareLicenseKeyValid'==_0xc90cd2||'uploadcareLicenseKeyInvalid'==_0xc90cd2||'uploadcareLicenseKeyExpired'==_0xc90cd2||'uploadcareLicenseKeyDomainLimit'==_0xc90cd2||'uploadcareLicenseKeyNotAllowed'==_0xc90cd2||'uploadcareLicenseKeyEvaluationLimit'==_0xc90cd2||'uploadcareLicenseKeyTrialLimit'==_0xc90cd2||'uploadcareLicenseKeyUsageLimit'==_0xc90cd2){delete _0x6b91[_0x1b2eb7],_0x1ff9c2=_0xc90cd2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1ff9c2&&_0x6b91['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1ff9c2&&_0x6b91['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1ff9c2&&_0x6b91['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1ff9c2&&_0x6b91['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1ff9c2&&_0x6b91['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1ff9c2&&_0x6b91['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1ff9c2&&_0x6b91['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1f6a4f}=this,_0x25b9d5=_0x1f6a4f['commands']['get']('uploadcare');if(!_0x25b9d5)return;const _0x3b4227=this['_normalizeConfigSourceList'](_0x1f6a4f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b99b7,_0x31d55f)=>{const _0x2f49d0=this['_getIntegrationKey'](_0x31d55f['type']);return _0x5b99b7[_0x2f49d0]||(_0x5b99b7[_0x2f49d0]=[]),_0x5b99b7[_0x2f49d0]['push'](_0x31d55f),_0x5b99b7;},{});_0x1f6a4f['plugins']['has']('ImageInsertUI')&&_0x1f6a4f['commands']['get']('uploadcare')&&Object['entries'](_0x3b4227)['forEach'](([_0xb7c1fe,_0x2c2a33])=>{_0x1f6a4f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xb7c1fe,'observable':()=>_0x25b9d5,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2c2a33),'formViewCreator':()=>this['_createDropdownButtons'](_0x2c2a33),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2c2a33),'override':'assetManager'!==_0xb7c1fe});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x415593){const {locale:_0x48cd26}=this['editor'];return _0x415593['map'](_0x9585f3=>{const _0x5cfb21=_(_0x48cd26,_0x9585f3,'Insert');switch(_0x9585f3){case o['Local']:return{'icon':_0x4db027,'type':o['Local'],..._0x5cfb21};case o['URL']:return{'icon':_0x2aae32,'type':o['URL'],..._0x5cfb21};case o['Dropbox']:return{'icon':_0x35c3c0,'type':o['Dropbox'],..._0x5cfb21};case o['Facebook']:return{'icon':_0x245f73,'type':o['Facebook'],..._0x5cfb21};case o['GDrive']:return{'icon':_0x480c73,'type':o['GDrive'],..._0x5cfb21};case o['GPhotos']:return{'icon':_0x47504b,'type':o['GPhotos'],..._0x5cfb21};case o['OneDrive']:return{'icon':_0x5661a0,'type':o['OneDrive'],..._0x5cfb21};}});}['_getIntegrationKey'](_0x3375e2){switch(_0x3375e2){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x55a9dc,_0x48f11a){const _0x2da2bd=this['editor'],_0x40a224=new _0x55a9dc(_0x2da2bd['locale']),_0x13a31e=_0x2da2bd['commands']['get']('uploadcare');return _0x40a224['bind']('isEnabled')['to'](_0x13a31e),_0x40a224['on']('execute',()=>{_0x13a31e['execute'](_0x48f11a);}),_0x40a224;}['_createToolbarButton'](_0xe221d){const {locale:_0x472e15}=this['editor'],_0x38965d=this['editor']['plugins']['get']('ImageInsertUI'),_0x4e6b4b=_0xe221d[0x0],_0x44d0c2=this['_createButton'](_0x47e0fd,_0x4e6b4b['type']);return _0x44d0c2['icon']=_0x4e6b4b['icon'],_0x44d0c2['bind']('label')['to'](_0x38965d,'isImageSelected',_0x2bf234=>_(_0x472e15,_0x4e6b4b['type'],_0x2bf234?'Replace':'Insert')['text']),_0x44d0c2['tooltip']=!0x0,_0x44d0c2;}['_createDropdownButtons'](_0x7232e4){const {locale:_0x313395}=this['editor'],_0x1c3b1f=this['editor']['plugins']['get']('ImageInsertUI');return _0x7232e4['map'](_0x553080=>{const _0x2079f6=this['_createButton'](_0x47e0fd,_0x553080['type']);return _0x2079f6['withText']=!0x0,_0x2079f6['icon']=_0x553080['icon'],_0x2079f6['bind']('label')['to'](_0x1c3b1f,'isImageSelected',_0x317db2=>_(_0x313395,_0x553080['type'],_0x317db2?'Replace':'Insert')['text']),_0x2079f6;});}['_createMenuBarButtons'](_0x297b78){return _0x297b78['map'](_0x4c4a6f=>{const _0xed0e13=this['_createButton'](_0x2debac,_0x4c4a6f['type']);return _0xed0e13['icon']=_0x4c4a6f['icon'],_0xed0e13['label']=_0x4c4a6f['shortText'],_0xed0e13;});}}class q extends _0x4427bb{['focusTracker'];['focusCycler'];constructor(_0x81f547){super(_0x81f547),this['focusTracker']=new _0x183317(),this['focusCycler']=new _0x436425({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x174f3c){super(_0x174f3c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0xa1b086,_0x910b57){const _0x5f0933=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x59efd9=>_0x59efd9<=_0x910b57)['map'](_0x53c35e=>_0xa1b086['replace'](/\/$/,'')+'/-/resize/'+_0x53c35e+'x/\x20'+_0x53c35e+'w');return{'imageFallbackUrl':_0xa1b086,'imageSources':[{'srcset':_0x5f0933['join'](',\x20'),'sizes':'(max-width:\x20'+_0x910b57+'px)\x20100vw,\x20'+_0x910b57+'px','type':'image/webp'}]};}function A(_0x466b71,_0x125e47,_0x3e4998){const _0x1483ec=_0x466b71['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1483ec?parseInt(_0x1483ec[0x1],0xa):_0x125e47,'height':_0x1483ec?parseInt(_0x1483ec[0x2],0xa):_0x3e4998};}function m(_0x25b31d,_0x751682){const _0xea85f4=Object['create'](_0x1f94e7),_0x1e9b16=_0x25b31d['plugins']['get']('ImageUtils'),_0x1028cd=_0x25b31d['editing']['mapper']['toViewElement'](_0x751682),_0x6005eb=_0x1e9b16['findViewImgElement'](_0x1028cd),_0x5bc1ac=_0x25b31d['editing']['view']['domConverter']['viewToDom'](_0x6005eb),_0x46fde4=_0x751682['getAttribute']('width'),_0x229e15=_0x751682['getAttribute']('height'),_0x8b174d='image-processing';_0x25b31d['editing']['view']['change'](_0x3a3bd9=>{_0x3a3bd9['addClass'](_0x8b174d,_0x1028cd),_0x3a3bd9['setStyle']('aspect-ratio',_0x46fde4+'/'+_0x229e15,_0x6005eb);}),_0xea85f4['listenTo'](_0x5bc1ac,'load',()=>{_0xea85f4['stopListening'](_0x5bc1ac,'load'),_0x25b31d['editing']['view']['change'](_0x534b01=>{_0x534b01['removeClass'](_0x8b174d,_0x1028cd),_0x534b01['removeStyle']('aspect-ratio',_0x6005eb);});});}function V(_0x40cfc6){if(Array['isArray'](_0x40cfc6)){const _0x33f84f=_0x40cfc6['map'](V);return _0x3760f4=>_0x33f84f['some'](_0x177654=>_0x177654(_0x3760f4));}if('origin'==_0x40cfc6){const _0x5df7fe=_0x499bb9['window']['location']['origin'];return _0x2a67dc=>new URL(_0x2a67dc,_0x499bb9['document']['baseURI'])['origin']==_0x5df7fe;}return'function'==typeof _0x40cfc6?_0x40cfc6:_0x40cfc6 instanceof RegExp?_0x3e6603=>!(!_0x3e6603['match'](_0x40cfc6)&&!_0x3e6603['replace'](/^https?:\/\//,'')['match'](_0x40cfc6)):()=>!0x1;}function F(_0x53b142,_0x50e915){return _0x5bf003(_0x53b142['target'])['includes'](_0x50e915);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x103a98(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x37dc89,_0x2d19af,_0x501fab){super(),this['_editor']=_0x37dc89,this['_editing']=_0x2d19af,this['_dialog']=_0x37dc89['plugins']['get'](_0x3e537e),this['_api']=_0x2d19af['ctxElement']['getAPI'](),this['_type']=_0x501fab,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:_0x2851bf,model:_0x11ebd1}=this['_editor'],_0x14e118=_0x11ebd1['document']['selection']['getSelectedElement'](),_0x5bd438=_0x14e118&&(_0x14e118['is']('element','imageBlock')||_0x14e118['is']('element','imageInline'));this['_formView']=new S(_0x2851bf),this['_dialog']['show']({'id':'uploadCare','icon':_0x4db027,'title':_(_0x2851bf,this['_type'],_0x5bd438?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x390416['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5ed5d6=>!F(_0x5ed5d6,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x44dbf6}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1bc130=>{const _0x53ffba=_0x44dbf6['length'];for(const _0x2e44c3 of _0x44dbf6){const _0x158456=_0x2e44c3===_0x44dbf6[_0x53ffba-0x1],{cdnUrl:_0x5df3f0,fileInfo:_0x12692c}=_0x2e44c3;if(!_0x5df3f0||!_0x12692c)continue;const {width:_0x3a31a1,height:_0x5bcc9e}=_0x12692c['imageInfo'],_0x492ee3=A(_0x5df3f0,_0x3a31a1,_0x5bcc9e),_0x5782e5=E(_0x5df3f0,_0x492ee3['width']),_0x4532db={'id':_0x12692c['uuid'],'type':'image','attributes':{'imageDimension':_0x492ee3,..._0x5782e5}};this['_insertAsset'](_0x4532db,_0x158456,_0x1bc130);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x326d26=>{'idle'===_0x326d26['detail']['status']&&!_0x326d26['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x14b3f1,_0x149889,_0x28d648){const _0x185ab9=this['_editor']['model']['document']['selection'],_0xb37f56=_0x185ab9['getSelectedElement'](),_0x124f88=!(!_0xb37f56||!_0xb37f56['is']('element','imageInline'));_0x28d648['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x14b3f1,_0x124f88),_0x149889||_0x28d648['setSelection'](_0x185ab9['getLastPosition']());}['_insertImage'](_0x9097eb,_0x305fe5){const _0x11b734=this['_editor'],{imageDimension:_0x47d0c8,imageFallbackUrl:_0x5638ae,imageSources:_0x218e20}=_0x9097eb['attributes'];_0x11b734['execute']('insertImage',{'imageType':_0x305fe5?'imageInline':null,'source':{'uploadcareImageId':_0x9097eb['id'],'src':_0x5638ae,'sources':_0x218e20,..._0x47d0c8}});}}class n extends _0x5a745e{['_editing'];['_controller']=null;static get['requires'](){return[_0x3e537e,i];}constructor(_0x164fe4){super(_0x164fe4),this['_editing']=_0x164fe4['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x549bff){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x549bff);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1baac1,publicKey:_0xac4421,signal:_0x1895ac,onProgress:_0x426737}){return _0x365b2e(_0x1baac1,{'publicKey':_0xac4421,'store':'auto','signal':_0x1895ac,'onProgress':_0x426737});}static['getInfo'](_0x10120e,_0x3f0b8f){return _0x5f006a(_0x10120e,_0x3f0b8f);}}class p extends _0x355139{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2c7571,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2ac435=this['editor'];if(!!!_0x2ac435['config']['get']('uploadcare'))return;_0x2ac435['plugins']['get'](_0x2c7571)['createUploadAdapter']=_0x3c7e2c=>new x(_0x3c7e2c,_0x2ac435),_0x2ac435['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1b8c31,{imageElement:_0x4af5ba,data:_0x2963ac})=>{_0x2ac435['model']['change'](_0x263a02=>{_0x263a02['setAttribute']('uploadcareImageId',_0x2963ac['uploadcareImageId'],_0x4af5ba);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x22a52a,_0x219d5d){this['loader']=_0x22a52a,this['editor']=_0x219d5d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2e342f=this['editor']['config']['get']('uploadcare.pubkey'),_0x3e2c59=await this['loader']['file'];return C['upload']({'file':_0x3e2c59,'publicKey':_0x2e342f,'signal':this['controller']['signal'],'onProgress':_0x2edf86=>{_0x2edf86&&_0x2edf86['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2edf86['value']);}})['then'](async _0x42e693=>{const {imageFallbackUrl:_0x1414b5,imageSources:_0xf8473b}=E(_0x42e693['cdnUrl'],_0x42e693['imageInfo']['width']);return{'uploadcareImageId':_0x42e693['uuid'],'default':_0x1414b5,'sources':_0xf8473b};})['catch'](()=>{const _0x44919d=t('Cannot\x20upload\x20file:')+('\x20'+_0x3e2c59['name']+'.');return Promise['reject'](_0x44919d);});}['abort'](){this['controller']['abort']();}}class i extends _0x355139{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3e537e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x615dc=this['editor'];_0x615dc['commands']['add']('uploadcare',new n(_0x615dc));}['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 _0x22db96=_0x499bb9['document']['querySelector']('input[uploadcare-file-input]');_0x22db96&&_0x22db96['remove']();}),async function(_0x14ff1d){const _0x1f4b38=_0x585b1b([0x49,0x6f,0x79,0x6b,0x41,0x4b,0x72,0x53,0x30,0x46,0x5a,0x39,0x38,0x35,0x6a,0x4a,0x66,0x78,0x44,0x7a,0x62,0x43,0x33,0x6c,0x65,0x64,0x57,0x32,0x77,0x50,0x4d,0x63,0x74,0x37,0x55,0x69,0x4c,0x59,0x51,0x4f,0x70,0x31,0x48,0x73,0x54,0x34,0x71,0x61,0x68,0x47,0x42,0x45,0x6d,0x75,0x6e,0x56,0x36,0x4e,0x76,0x67,0x58,0x52]),_0x5ac18a=0x5d5422a1,_0x424b92=0x5d5350f1^_0x5ac18a,_0x407be6=window[_0x585b1b([0x44,0x61,0x74,0x65])][_0x585b1b([0x6e,0x6f,0x77])](),_0x4f6d0b=_0x14ff1d[_0x585b1b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a3b1d=new window[(_0x585b1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50b3d3=>{_0x4f6d0b[_0x585b1b([0x6f,0x6e,0x63,0x65])](_0x585b1b([0x72,0x65,0x61,0x64,0x79]),_0x50b3d3);}),_0x402d5c={[_0x585b1b([0x6b,0x74,0x79])]:_0x585b1b([0x45,0x43]),[_0x585b1b([0x75,0x73,0x65])]:_0x585b1b([0x73,0x69,0x67]),[_0x585b1b([0x63,0x72,0x76])]:_0x585b1b([0x50,0x2d,0x32,0x35,0x36]),[_0x585b1b([0x78])]:_0x585b1b([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]),[_0x585b1b([0x79])]:_0x585b1b([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]),[_0x585b1b([0x61,0x6c,0x67])]:_0x585b1b([0x45,0x53,0x32,0x35,0x36])},_0x1276ea=_0x4f6d0b[_0x585b1b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x585b1b([0x67,0x65,0x74])](_0x585b1b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4dd8dd(){let _0x4105eb,_0x42521a=null,_0x2f350b=null;try{if(_0x1276ea==_0x585b1b([0x47,0x50,0x4c]))return _0x585b1b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4105eb=_0x5088fd(),!_0x4105eb)return _0x585b1b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4105eb[_0x585b1b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f350b=_0x1334b4(_0x4105eb[_0x585b1b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4105eb[_0x585b1b([0x6a,0x74,0x69])])),await _0xaddc5c()?_0x1b7e3f()?_0x34a842()?_0x585b1b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13a6bd()?(_0x4105eb[_0x585b1b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x585b1b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42521a=_0x34f08b(_0x585b1b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4105eb[_0x585b1b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x585b1b([0x74,0x72,0x69,0x61,0x6c])&&(_0x42521a=_0x34f08b(_0x585b1b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f8d04()):_0x585b1b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x585b1b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x585b1b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x585b1b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x34a842(){const _0x36101a=[_0x585b1b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x585b1b([0x74,0x72,0x69,0x61,0x6c])][_0x585b1b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4105eb[_0x585b1b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x407be6/0x3e8:0xe10*_0x424b92;return _0x4105eb[_0x585b1b([0x65,0x78,0x70])]<_0x36101a;}function _0x1b7e3f(){const _0x4f17d7=_0x4105eb[_0x585b1b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4f17d7&&(!!_0x4f17d7[_0x585b1b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585b1b([0x2a]))||!!_0x4f17d7[_0x585b1b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585b1b([0x55,0x50,0x4c,0x43])));}function _0x13a6bd(){const _0x35e261=_0x4105eb[_0x585b1b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35e261||0x0==_0x35e261[_0x585b1b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb44f10}=new URL(window[_0x585b1b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35e261[_0x585b1b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb44f10))return!0x0;const _0x4b919c=_0xb44f10[_0x585b1b([0x73,0x70,0x6c,0x69,0x74])](_0x585b1b([0x2e]));return _0x35e261[_0x585b1b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x8938f=>_0x8938f[_0x585b1b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585b1b([0x2a])))[_0x585b1b([0x6d,0x61,0x70])](_0x5b663c=>_0x5b663c[_0x585b1b([0x73,0x70,0x6c,0x69,0x74])](_0x585b1b([0x2e])))[_0x585b1b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2db453=>_0x2db453[_0x585b1b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4b919c[_0x585b1b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x585b1b([0x6d,0x61,0x70])](_0x557043=>Array(_0x4b919c[_0x585b1b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x557043[_0x585b1b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x585b1b([0x66,0x69,0x6c,0x6c])](_0x557043[0x0]===_0x585b1b([0x2a])?_0x585b1b([0x2a]):'')[_0x585b1b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x557043))[_0x585b1b([0x73,0x6f,0x6d,0x65])](_0x8cbd20=>_0x4b919c[_0x585b1b([0x65,0x76,0x65,0x72,0x79])]((_0x4c30db,_0xce66ce)=>_0x8cbd20[_0xce66ce]===_0x4c30db||_0x8cbd20[_0xce66ce]===_0x585b1b([0x2a])));}function _0x4f8d04(){return _0x42521a&&_0x2f350b?new window[(_0x585b1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c0df1,_0x247e48)=>{_0x42521a[_0x585b1b([0x74,0x68,0x65,0x6e])](_0x4c0df1,_0x247e48),_0x2f350b[_0x585b1b([0x74,0x68,0x65,0x6e])](_0x550a87=>{_0x550a87!=_0x585b1b([0x56,0x61,0x6c,0x69,0x64])&&_0x4c0df1(_0x550a87);},_0x247e48);}):_0x42521a||_0x2f350b||_0x585b1b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1334b4(_0x11e52f,_0x30b5eb){return new window[(_0x585b1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x559f3d=>{if(_0x44f35f())return _0x559f3d(_0x585b1b([0x56,0x61,0x6c,0x69,0x64]));_0x3851b9(),_0x4f6d0b[_0x585b1b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x585b1b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50a88f=!0x1;const _0x4f735e=_0x4d5ac9();function _0x3efac8(_0x3d41af){return!!_0x3d41af&&(typeof _0x3d41af===_0x585b1b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d41af===_0x585b1b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d41af[_0x585b1b([0x74,0x68,0x65,0x6e])]===_0x585b1b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d41af[_0x585b1b([0x63,0x61,0x74,0x63,0x68])]===_0x585b1b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4db8e6(_0x233439){_0x298c5b(_0x233439)[_0x585b1b([0x74,0x68,0x65,0x6e])](_0x4bbadc=>{if(!_0x4bbadc||_0x4bbadc[_0x585b1b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x585b1b([0x6f,0x6b]))return _0x585b1b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x36e1f0(_0x2a44b7(_0x4f735e+_0x30b5eb))!=_0x4bbadc[_0x585b1b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x585b1b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x585b1b([0x56,0x61,0x6c,0x69,0x64]);})[_0x585b1b([0x74,0x68,0x65,0x6e])](_0xbddcc6=>(_0x382326(),_0xbddcc6),()=>{const _0x332270=_0x4fa813();return null==_0x332270?(_0x382326(),_0x585b1b([0x56,0x61,0x6c,0x69,0x64])):_0x585b1b(_0x407be6-_0x332270>(0x7958a6a1^_0x5ac18a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x585b1b([0x74,0x68,0x65,0x6e])](_0x559f3d)[_0x585b1b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x559f3d(_0x585b1b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ca81f=0x5d62cc21^_0x5ac18a;function _0x382326(){const _0x2872ec=_0x585b1b([0x6c,0x6c,0x63,0x74,0x2d])+_0x36e1f0(_0x2a44b7(_0x11e52f)),_0x1f8f12=_0x4db403(_0x36e1f0(window[_0x585b1b([0x4d,0x61,0x74,0x68])][_0x585b1b([0x63,0x65,0x69,0x6c])](_0x407be6/_0x5ca81f)));window[_0x585b1b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x585b1b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2872ec,_0x1f8f12);}function _0x4fa813(){const _0x2b6ad2=_0x585b1b([0x6c,0x6c,0x63,0x74,0x2d])+_0x36e1f0(_0x2a44b7(_0x11e52f)),_0x4276ae=window[_0x585b1b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x585b1b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b6ad2);return _0x4276ae?window[_0x585b1b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4db403(_0x4276ae),0x10)*_0x5ca81f:null;}function _0x298c5b(_0x200966){return new window[(_0x585b1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e8333,_0x1c035a)=>{_0x200966[_0x585b1b([0x74,0x68,0x65,0x6e])](_0x2e8333,_0x1c035a),window[_0x585b1b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c035a,0x5d55f661^_0x5ac18a);});}}_0x4f6d0b[_0x585b1b([0x6f,0x6e])](_0x585b1b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc39b45,_0x2a57d4)=>{if(_0x2a57d4[0x0]!=_0x11e52f)return _0x559f3d(_0x585b1b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a57d4[0x1]={..._0x2a57d4[0x1],[_0x585b1b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f735e};},{[_0x585b1b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x585b1b([0x68,0x69,0x67,0x68])}),_0x4f6d0b[_0x585b1b([0x6f,0x6e])](_0x585b1b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3897f4=>{_0x3efac8(_0x3897f4[_0x585b1b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50a88f=!0x0,_0x4db8e6(_0x3897f4[_0x585b1b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x585b1b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x585b1b([0x6c,0x6f,0x77])}),_0x5a3b1d[_0x585b1b([0x74,0x68,0x65,0x6e])](()=>{_0x50a88f||_0x559f3d(_0x585b1b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44f35f(){return _0x4f6d0b[_0x585b1b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x585b1b([0x76,0x69,0x65,0x77])][_0x585b1b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x585b1b([0x61,0x75,0x74,0x6f]);}function _0x3851b9(){_0x4f6d0b[_0x585b1b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x585b1b([0x76,0x69,0x65,0x77])][_0x585b1b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x585b1b([0x61,0x75,0x74,0x6f]);}}function _0x34f08b(_0x215b85){const _0x1d92c6=[new window[(_0x585b1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27d576=>setTimeout(_0x27d576,0x5d5d1c6d^_0x5ac18a)),_0x5a3b1d[_0x585b1b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x585b1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43ba70=>{let _0x538080=0x0;_0x4f6d0b[_0x585b1b([0x6d,0x6f,0x64,0x65,0x6c])][_0x585b1b([0x6f,0x6e])](_0x585b1b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd81198,_0x22e6a3)=>{_0x22e6a3[0x0][_0x585b1b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x538080++,_0x538080==(0x5d542359^_0x5ac18a)&&(_0x43ba70(),_0xd81198[_0x585b1b([0x6f,0x66,0x66])]());});}))];return window[_0x585b1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x585b1b([0x72,0x61,0x63,0x65])](_0x1d92c6)[_0x585b1b([0x74,0x68,0x65,0x6e])](()=>_0x215b85);}async function _0x31a0d0(){await _0x5a3b1d,_0x4f6d0b[_0x585b1b([0x6d,0x6f,0x64,0x65,0x6c])][_0x585b1b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x243dcb,_0x4f6d0b[_0x585b1b([0x6d,0x6f,0x64,0x65,0x6c])][_0x585b1b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x243dcb,_0x4f6d0b[_0x585b1b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x585b1b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f154b(_0xbdfe40){const _0xbf0323=_0x311b74();_0x4f6d0b[_0xbf0323]=_0x585b1b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xbdfe40,_0xbdfe40!=_0x585b1b([0x56,0x61,0x6c,0x69,0x64])&&_0x31a0d0();}function _0x311b74(){const _0x448e02=window[_0x585b1b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x585b1b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x585b1b([0x6e,0x6f,0x77])]())[_0x585b1b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x585b1b([0x2e]),'');let _0x399dbe=_0x585b1b([0x49]);for(let _0x3c8039=0x0;_0x3c8039<_0x448e02[_0x585b1b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c8039+=0x2){let _0x27e6f0=window[_0x585b1b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x448e02[_0x585b1b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c8039,_0x3c8039+0x2));_0x27e6f0>=_0x1f4b38[_0x585b1b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27e6f0-=_0x1f4b38[_0x585b1b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x399dbe+=_0x1f4b38[_0x27e6f0];}return _0x399dbe;}function _0x5088fd(){const _0x40e185=_0x1276ea[_0x585b1b([0x73,0x70,0x6c,0x69,0x74])](_0x585b1b([0x2e]));if(0x3!=_0x40e185[_0x585b1b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e94ef(_0x40e185[0x1]);function _0x1e94ef(_0x277ff7){const _0x35c8cc=_0x2073a9(_0x277ff7);return _0x35c8cc&&_0x1f9504()?_0x35c8cc:null;function _0x1f9504(){const _0x95cdbe=_0x35c8cc[_0x585b1b([0x6a,0x74,0x69])],_0x478567=window[_0x585b1b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x95cdbe[_0x585b1b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x95cdbe[_0x585b1b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xbab1a1={..._0x35c8cc,[_0x585b1b([0x6a,0x74,0x69])]:_0x95cdbe[_0x585b1b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x95cdbe[_0x585b1b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xbab1a1[_0x585b1b([0x76,0x63])],_0x2a44b7(_0xbab1a1)==_0x478567;}}}async function _0xaddc5c(){let _0x5a214c=!0x0;try{const _0x42b114=_0x1276ea[_0x585b1b([0x73,0x70,0x6c,0x69,0x74])](_0x585b1b([0x2e])),[_0x1cc6f6,_0x37441d,_0x1c1cdd]=_0x42b114;return _0x13c3f9(_0x1cc6f6),await _0x5e782e(_0x1cc6f6,_0x37441d,_0x1c1cdd),_0x5a214c;}catch{return!0x1;}function _0x13c3f9(_0x444e4e){const _0x2ee5e0=_0x2073a9(_0x444e4e);_0x2ee5e0&&_0x2ee5e0[_0x585b1b([0x61,0x6c,0x67])]==_0x585b1b([0x45,0x53,0x32,0x35,0x36])||(_0x5a214c=!0x1);}async function _0x5e782e(_0x1f0110,_0x3be9fa,_0xfb955c){const _0x30cc4d=window[_0x585b1b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x585b1b([0x66,0x72,0x6f,0x6d])](_0x27e6ea(_0xfb955c),_0x407379=>_0x407379[_0x585b1b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x236c9f=new window[(_0x585b1b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x585b1b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f0110+_0x585b1b([0x2e])+_0x3be9fa),_0x4d1393=window[_0x585b1b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x585b1b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d1393)return;const _0xb6d280=await _0x4d1393[_0x585b1b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x585b1b([0x6a,0x77,0x6b]),_0x402d5c,{[_0x585b1b([0x6e,0x61,0x6d,0x65])]:_0x585b1b([0x45,0x43,0x44,0x53,0x41]),[_0x585b1b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x585b1b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x585b1b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d1393[_0x585b1b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x585b1b([0x6e,0x61,0x6d,0x65])]:_0x585b1b([0x45,0x43,0x44,0x53,0x41]),[_0x585b1b([0x68,0x61,0x73,0x68])]:{[_0x585b1b([0x6e,0x61,0x6d,0x65])]:_0x585b1b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb6d280,_0x30cc4d,_0x236c9f)||(_0x5a214c=!0x1);}}function _0x2073a9(_0x10544c){return _0x10544c[_0x585b1b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x585b1b([0x65,0x79]))?JSON[_0x585b1b([0x70,0x61,0x72,0x73,0x65])](_0x27e6ea(_0x10544c)):null;}function _0x27e6ea(_0x6feeec){return window[_0x585b1b([0x61,0x74,0x6f,0x62])](_0x6feeec[_0x585b1b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x585b1b([0x2b]))[_0x585b1b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x585b1b([0x2f])));}function _0x2a44b7(_0x13840b){let _0x49432a=0x1505;function _0x5b58d5(_0x3ce1d4){for(let _0x16fdee=0x0;_0x16fdee<_0x3ce1d4[_0x585b1b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16fdee++){const _0xb40be7=_0x3ce1d4[_0x585b1b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x16fdee);_0x49432a=(_0x49432a<<0x5)+_0x49432a+_0xb40be7,_0x49432a&=_0x49432a;}}function _0x9b5944(_0xf4a851){Array[_0x585b1b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf4a851)?_0xf4a851[_0x585b1b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9b5944):_0xf4a851&&typeof _0xf4a851==_0x585b1b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x585b1b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf4a851)[_0x585b1b([0x73,0x6f,0x72,0x74])]()[_0x585b1b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x18aeb4,_0x2bd10a])=>{_0x5b58d5(_0x18aeb4),_0x9b5944(_0x2bd10a);}):_0x5b58d5(window[_0x585b1b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf4a851));}return _0x9b5944(_0x13840b),_0x49432a>>>0x0;}function _0x36e1f0(_0xbabff4){return _0xbabff4[_0x585b1b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x585b1b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x585b1b([0x30]));}function _0x4db403(_0x8749e0){return _0x8749e0[_0x585b1b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x585b1b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x585b1b([0x6a,0x6f,0x69,0x6e])]('');}function _0x243dcb(){}function _0x585b1b(_0x24edfc){return _0x24edfc['map'](_0x327099=>String['fromCharCode'](_0x327099))['join']('');}_0x2f154b(await _0x4dd8dd());}(this);}['_initSchema'](){const _0x157da6=this['editor']['model']['schema'];_0x157da6['isRegistered']('imageBlock')&&_0x157da6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x157da6['isRegistered']('imageInline')&&_0x157da6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x558228=this['editor'];_0x558228['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x558228['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4e2f3c=>_0x4e2f3c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2e9bfa=_0x558228['commands']['get']('replaceImageSource');_0x2e9bfa&&this['listenTo'](_0x2e9bfa,'cleanupImage',(_0x3d4957,[_0x5bc61f,_0x2a64e9])=>{_0x5bc61f['removeAttribute']('uploadcareImageId',_0x2a64e9);});}['_initConfig'](){const _0x4f2b00=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3d69c6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x32a3a9(_0x499bb9['document'],'uc-config',{..._0x4f2b00,'pubkey':_0x3d69c6,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2c9aae=>{if('closeMax'==_0x2c9aae)return'#uc-icon-arrow-down';},_0x499bb9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x32a3a9(_0x499bb9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x499bb9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x22e7e6=this['editor']['commands']['get']('insertImage');_0x22e7e6&&this['listenTo'](_0x22e7e6,'execute',()=>{const _0x306280=this['editor']['model']['document']['selection']['getSelectedElement']();_0x306280&&_0x306280['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x306280);});});const _0x585d28=this['editor']['commands']['get']('uploadcareImageReplace');_0x585d28&&this['listenTo'](_0x585d28,'execute',()=>{const _0x2bd582=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2bd582&&_0x2bd582['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2bd582);});});}}class u extends _0x355139{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1507a2){super(_0x1507a2),_0x1507a2['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1fa0ce['defineComponents'](_0x1fa0ce);}}class ta extends _0x4427bb{constructor(_0x4e044c){super(_0x4e044c);const t=_0x4e044c['t'],_0x1430e9=this['bindTemplate'],_0x23730f=new _0x540f19();_0x23730f['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':[_0x23730f,{'text':_0x1430e9['to']('imageUploadProgress',_0x354c81=>t('Loading\x20image...')+'\x20('+(_0x354c81||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x4427bb{constructor(_0x2f6479){super(_0x2f6479);const t=_0x2f6479['t'];this['set']('errorType',null);const _0x425906=new _0x47e0fd(_0x2f6479);_0x425906['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x425906['withText']=!0x0,_0x425906['class']='ck-button-action',_0x425906['on']('execute',()=>{this['fire']('retry');}),_0x425906['bind']('isVisible')['to'](this,'errorType',_0x4631ca=>'NotFound'!==_0x4631ca);const _0x2f1d10=new at();_0x2f1d10['content']=et,_0x2f1d10['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xd174bb=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':[_0x2f1d10,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xd174bb['to']('errorType',_0x273d52=>t('NotFound'!==_0x273d52?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x425906]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x4427bb{constructor(_0x31cad6,_0x9dd22c){super(_0x31cad6);const _0x42a11c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x9dd22c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x42a11c['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x55f0c8,_0x444d59,_0x4dad7a){super(_0x55f0c8),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x55f0c8),this['_errorView']=new rt(_0x55f0c8),this['_editingView']=new tt(_0x55f0c8,_0x4dad7a),this['_focusableView']=new _0x4427bb(_0x55f0c8),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x444d59),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'],_0x3af270=>{this['_addUploadcareImageEditorListeners'](_0x3af270);});}),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'](_0x4f6cc4,_0x1bdcdd){const _0x2b0b8b='uc-cloud-image-editor',_0x5a63ea=_0x4f6cc4['querySelector'](_0x2b0b8b);if(_0x5a63ea)return _0x1bdcdd(_0x5a63ea);const _0x409cad=new MutationObserver(_0x544d17=>{const _0x3ac62d=_0x544d17['filter'](_0x18f08c=>_0x18f08c['target']===_0x4f6cc4&&_0x18f08c['addedNodes']['length']>0x0&&_0x18f08c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2b0b8b);_0x3ac62d['length']&&(_0x409cad['disconnect'](),_0x1bdcdd(_0x3ac62d[0x0]['addedNodes'][0x0]));});_0x409cad['observe'](_0x4f6cc4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5d334c){_0x5d334c['addEventListener']('apply',_0x3d1375=>{this['fire']('apply',{'imageSrc':_0x3d1375['detail']['cdnUrl']});}),_0x5d334c['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x103a98(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x55b589,_0x20a053,_0x4c41c2){super(),this['_editor']=_0x55b589,this['_dialog']=_0x20a053,this['_imageElement']=_0x4c41c2,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 _0x15d568=this['_imageElement'],_0x561548=_0x15d568['getAttribute']('uploadcareImageId'),_0xc33af=_0x15d568['getAttribute']('src');if(_0x561548)await this['_loadImageInfo'](_0x561548,_0xc33af);else{if(this['_imageCache']['has'](_0xc33af)){const _0x43fbf9=this['_imageCache']['get'](_0xc33af);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43fbf9['url'],this['imageDimension']=_0x43fbf9['dimension'],this['imageId']=_0x43fbf9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x429bb6}=this['_editor'],t=_0x429bb6['t'],_0x22b6a6=new Z(_0x429bb6,this['imageStatus'],this['_attributes']);_0x22b6a6['bind']('status')['to'](this,'imageStatus'),_0x22b6a6['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x22b6a6['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x22b6a6['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x22b6a6,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x299e8d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x22b6a6,'position':_0x390416['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x22b6a6['focus']();},'onHide':()=>{_0x22b6a6['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3603c8=>!F(_0x3603c8,_0x22b6a6['element'])}});}['_loadImageInfo'](_0x26d971,_0x5aee1d){return C['getInfo'](_0x26d971,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x30550c=>{const {width:_0x49f4e4,height:_0x471809}=_0x30550c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5aee1d,this['imageDimension']={'width':_0x49f4e4,'height':_0x471809},this['imageId']=_0x26d971;})['catch'](_0xc88f44=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xc88f44['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x22fcd9,_0x37156b){return this['_getImageAsFile'](_0x22fcd9)['then'](_0xbba51d=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x37156b['signal'],'file':_0xbba51d,'onProgress':_0x47b1f4=>{_0x47b1f4&&_0x47b1f4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x47b1f4['value']));}}))['then'](_0x201e7f=>{const {width:_0x329c58,height:_0x43ec7d}=_0x201e7f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x201e7f['cdnUrl'],this['imageDimension']={'width':_0x329c58,'height':_0x43ec7d},this['imageId']=_0x201e7f['uuid'],this['imageUploadProgress']=null;const _0x298fd9=_0x22fcd9['getAttribute']('src');this['_imageCache']['set'](_0x298fd9,{'id':_0x201e7f['uuid'],'url':_0x201e7f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2310b4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2310b4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2e5359,_0x271ab5){_0x2e5359['on']('apply',(_0x3e6cae,_0x22208d)=>{this['_replaceImage'](_0x271ab5,_0x22208d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2e5359['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2e5359['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x311bac,_0xe8874e,_0xb02e98){const _0x1998e2=this['_editor'],{width:_0x17be0b,height:_0x568a5d}=A(_0xe8874e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1e422d,imageSources:_0x1dc5bc}=E(_0xe8874e,_0x17be0b);_0x1998e2['model']['change'](_0xba73d3=>{if('$graveyard'===_0x311bac['root']['rootName']){_0x1998e2['execute']('insertImage',{'imageType':_0x311bac['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x311bac['getAttributes']()),'uploadcareImageId':_0xb02e98,'src':_0x1e422d,'sources':_0x1dc5bc,'width':_0x17be0b,'height':_0x568a5d}});const _0x4c04d5=_0x311bac['getChildren']();_0x311bac=_0x1998e2['model']['document']['selection']['getSelectedElement']();for(const _0x31bfe3 of _0x4c04d5)_0xba73d3['append'](_0xba73d3['cloneElement'](_0x31bfe3),_0x311bac);}else _0xba73d3['setSelection'](_0x311bac,'on'),_0x1998e2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x311bac['getAttributes']()),'uploadcareImageId':_0xb02e98,'src':_0x1e422d,'sources':_0x1dc5bc,'width':_0x17be0b,'height':_0x568a5d},_0x311bac);_0xba73d3['setSelection'](_0x311bac,'on');});}async['_getImageAsFile'](_0x23c430){const _0x470991=_0x499bb9['window'],_0x9608e9=_0x499bb9['document']['location']['href'],_0x5bd388=new _0x470991['URL'](_0x23c430['getAttribute']('src'),_0x9608e9);if('data:'===_0x5bd388['protocol']){const _0x37dafa=_0x5bd388['href']['split'](','),_0x336d9e=_0x37dafa[0x0]['match'](/:(.*?);/)[0x1],_0x43517d=_0x336d9e['split']('/')[0x1],_0x3d015a=_0x470991['atob'](_0x37dafa[_0x37dafa['length']-0x1]);let _0x150f80=_0x3d015a['length'];const _0x389227=new _0x470991['Uint8Array'](_0x150f80);for(;_0x150f80--;)_0x389227[_0x150f80]=_0x3d015a['charCodeAt'](_0x150f80);return new _0x470991['File']([_0x389227],'image.'+_0x43517d,{'type':_0x336d9e});}const _0x476f9d=_0x5bd388['href']['split']('/'),_0x220268=_0x476f9d[_0x476f9d['length']-0x1],_0x1edc8f=_0x220268['split']('.')[0x1];return _0x470991['fetch'](_0x5bd388['href'])['then'](_0x2ff0c2=>_0x2ff0c2['clone']()['blob']())['then'](_0x3b6e66=>new _0x470991['File']([_0x3b6e66],_0x220268,{'type':'image/'+_0x1edc8f}));}}class J extends _0x5a745e{['imageEditController'];static get['requires'](){return[_0x3e537e];}['_isEditable'];constructor(_0x46aaad){super(_0x46aaad),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1976ac){const _0x3c574d=V(_0x1976ac);return _0x1d9a3d=>!(!_0x1d9a3d||!_0x1d9a3d['is']('element','imageBlock')&&!_0x1d9a3d['is']('element','imageInline'))&&(!!_0x1d9a3d['hasAttribute']('uploadcareImageId')||!!_0x1d9a3d['hasAttribute']('src')&&_0x3c574d(_0x1d9a3d['getAttribute']('src')));}(_0x46aaad['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5af4b0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5af4b0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x908b7d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x908b7d&&(_0x908b7d['is']('element','imageBlock')||_0x908b7d['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3e537e),_0x908b7d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x5a745e{['refresh'](){const _0x5b91d2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5b91d2&&(_0x5b91d2['is']('element','imageBlock')||_0x5b91d2['is']('element','imageInline')));}['execute'](_0x123ce8){const _0x3c5c29=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x31e356=>{_0x31e356['setAttributes'](_0x123ce8,_0x3c5c29),_0x31e356['removeAttribute']('srcset',_0x3c5c29),_0x31e356['removeAttribute']('sizes',_0x3c5c29);});}}class g extends _0x355139{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x7a44f1,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x227145}=this;_0x227145['commands']['add']('uploadcareImageEdit',new J(_0x227145)),_0x227145['commands']['add']('uploadcareImageReplace',new O(_0x227145));}}class j extends _0x355139{['_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 _0x3762fb=this['editor'];_0x3762fb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1a405f=>{const _0x5a63d7=_0x3762fb['commands']['get']('uploadcareImageEdit'),_0x3a0cf8=new _0x47e0fd(_0x1a405f),t=_0x1a405f['t'];return _0x3a0cf8['set']({'icon':_0x299e8d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3a0cf8['bind']('isEnabled')['to'](_0x5a63d7),_0x3a0cf8['bind']('isOn')['to'](_0x5a63d7,'isActive'),this['listenTo'](_0x3a0cf8,'execute',()=>{_0x3762fb['execute']('uploadcareImageEdit'),_0x3762fb['editing']['view']['focus']();}),_0x3a0cf8;}),this['_initConfig']();}['_initConfig'](){const _0x5d4551=_0x32a3a9(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5d4551),this['listenTo'](this['editor'],'destroy',()=>{_0x5d4551['remove']();});}}class P extends _0x355139{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0xa8bc7a=>0x1!=_0xa8bc7a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xd8b761=>{const {af:{dictionary:_0x1185bd,getPluralForm:_0x1f6063}}={'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':_0x3059d7=>0x1!=_0x3059d7}};_0xd8b761['af']||={'dictionary':{},'getPluralForm':null},_0xd8b761['af']['dictionary']=Object['assign'](_0xd8b761['af']['dictionary'],_0x1185bd),_0xd8b761['af']['getPluralForm']=_0x1f6063;})(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':_0x3fb53b=>0x0==_0x3fb53b?0x0:0x1==_0x3fb53b?0x1:0x2==_0x3fb53b?0x2:_0x3fb53b%0x64>=0x3&&_0x3fb53b%0x64<=0xa?0x3:_0x3fb53b%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x30a6f1=>{const {ar:{dictionary:_0xc1b6f5,getPluralForm:_0x559af5}}={'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':_0xadcfa9=>0x0==_0xadcfa9?0x0:0x1==_0xadcfa9?0x1:0x2==_0xadcfa9?0x2:_0xadcfa9%0x64>=0x3&&_0xadcfa9%0x64<=0xa?0x3:_0xadcfa9%0x64>=0xb?0x4:0x5}};_0x30a6f1['ar']||={'dictionary':{},'getPluralForm':null},_0x30a6f1['ar']['dictionary']=Object['assign'](_0x30a6f1['ar']['dictionary'],_0xc1b6f5),_0x30a6f1['ar']['getPluralForm']=_0x559af5;})(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':_0x210e2b=>0x1!=_0x210e2b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x522981=>{const {ast:{dictionary:_0x4fd10b,getPluralForm:_0x5fc2f}}={'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':_0x369d1c=>0x1!=_0x369d1c}};_0x522981['ast']||={'dictionary':{},'getPluralForm':null},_0x522981['ast']['dictionary']=Object['assign'](_0x522981['ast']['dictionary'],_0x4fd10b),_0x522981['ast']['getPluralForm']=_0x5fc2f;})(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':_0x2e003e=>0x1!=_0x2e003e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a4083=>{const {az:{dictionary:_0x40071f,getPluralForm:_0x1e6b6c}}={'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':_0x187d45=>0x1!=_0x187d45}};_0x4a4083['az']||={'dictionary':{},'getPluralForm':null},_0x4a4083['az']['dictionary']=Object['assign'](_0x4a4083['az']['dictionary'],_0x40071f),_0x4a4083['az']['getPluralForm']=_0x1e6b6c;})(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':_0x170887=>_0x170887%0xa==0x1&&_0x170887%0x64!=0xb?0x0:_0x170887%0xa>=0x2&&_0x170887%0xa<=0x4&&(_0x170887%0x64<0xa||_0x170887%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2ab3bd=>{const {be:{dictionary:_0x151941,getPluralForm:_0x13eff0}}={'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':_0x4dd729=>_0x4dd729%0xa==0x1&&_0x4dd729%0x64!=0xb?0x0:_0x4dd729%0xa>=0x2&&_0x4dd729%0xa<=0x4&&(_0x4dd729%0x64<0xa||_0x4dd729%0x64>=0x14)?0x1:0x2}};_0x2ab3bd['be']||={'dictionary':{},'getPluralForm':null},_0x2ab3bd['be']['dictionary']=Object['assign'](_0x2ab3bd['be']['dictionary'],_0x151941),_0x2ab3bd['be']['getPluralForm']=_0x13eff0;})(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':_0x4d41c8=>0x1!=_0x4d41c8}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x47cf5e=>{const {bg:{dictionary:_0x113dd5,getPluralForm:_0x5aafac}}={'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':_0x5187ce=>0x1!=_0x5187ce}};_0x47cf5e['bg']||={'dictionary':{},'getPluralForm':null},_0x47cf5e['bg']['dictionary']=Object['assign'](_0x47cf5e['bg']['dictionary'],_0x113dd5),_0x47cf5e['bg']['getPluralForm']=_0x5aafac;})(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':_0x37b9d4=>0x1!=_0x37b9d4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x47d624=>{const {bn:{dictionary:_0x1e499a,getPluralForm:_0x3af7dd}}={'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':_0x51b075=>0x1!=_0x51b075}};_0x47d624['bn']||={'dictionary':{},'getPluralForm':null},_0x47d624['bn']['dictionary']=Object['assign'](_0x47d624['bn']['dictionary'],_0x1e499a),_0x47d624['bn']['getPluralForm']=_0x3af7dd;})(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':_0x3edef0=>_0x3edef0%0xa==0x1&&_0x3edef0%0x64!=0xb?0x0:_0x3edef0%0xa>=0x2&&_0x3edef0%0xa<=0x4&&(_0x3edef0%0x64<0xa||_0x3edef0%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4b9c10=>{const {bs:{dictionary:_0x2b6c4d,getPluralForm:_0x2252ec}}={'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':_0x5d33d7=>_0x5d33d7%0xa==0x1&&_0x5d33d7%0x64!=0xb?0x0:_0x5d33d7%0xa>=0x2&&_0x5d33d7%0xa<=0x4&&(_0x5d33d7%0x64<0xa||_0x5d33d7%0x64>=0x14)?0x1:0x2}};_0x4b9c10['bs']||={'dictionary':{},'getPluralForm':null},_0x4b9c10['bs']['dictionary']=Object['assign'](_0x4b9c10['bs']['dictionary'],_0x2b6c4d),_0x4b9c10['bs']['getPluralForm']=_0x2252ec;})(window['CKEDITOR_TRANSLATIONS']||={});
|