@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251223.0 → 0.0.0-nightly-next-20251223.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x438fc8,Command as _0x143b84}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4dd3f6,IconGooglePhotos as _0x20730f,IconGoogleDrive as _0x117bcf,IconFacebook as _0x5da359,IconDropbox as _0x31c1c2,IconUploadcareLink as _0x3e9574,IconUploadcareImageUpload as _0x48575e,IconError as _0x4c3615,IconUploadcareImageEdit as _0x433ede}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x47c2b3,MenuBarMenuListItemButtonView as _0xdcb108,View as _0x5c75ec,FocusCycler as _0x3c402b,Dialog as _0x20456c,DialogViewPosition as _0x44091c,SpinnerView as _0x2b4052,IconView as _0x3edb33,Notification as _0x1c67d7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4350c9,DomEmitterMixin as _0x1381dd,global as _0x25eb90,getAncestors as _0x367ba7,ObservableMixin as _0x51c13c,uid as _0x298f56,createElement as _0x5b6632}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5b20d5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2ba8ad,info as _0x44068a}from'@uploadcare/upload-client';import*as _0x254f69 from'@uploadcare/file-uploader';var i=function(_0x125054){return _0x125054['Local']='local',_0x125054['URL']='url',_0x125054['Dropbox']='dropbox',_0x125054['GDrive']='gdrive',_0x125054['Facebook']='facebook',_0x125054['GPhotos']='gphotos',_0x125054['OneDrive']='onedrive',_0x125054;}({});function _(_0x2e8fb3,_0x1abc8f,_0x5d8770){const t=_0x2e8fb3['t'],_0x5c2f4b=_0x2e8fb3['t'];switch(_0x1abc8f){case i['Local']:return{'text':_0x5c2f4b('Insert'===_0x5d8770?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5c2f4b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5d8770?_0x5c2f4b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5c2f4b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5d8770?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5d8770?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5d8770?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5d8770?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5d8770?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1abc8f;}}class e extends _0x438fc8{['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 _0x35d15b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x502f76;for(const _0x1e48ce in _0x35d15b){const _0x370156=_0x1e48ce,_0x2f2ed8=_0x35d15b[_0x370156];if('uploadcareLicenseKeyValid'==_0x2f2ed8||'uploadcareLicenseKeyInvalid'==_0x2f2ed8||'uploadcareLicenseKeyExpired'==_0x2f2ed8||'uploadcareLicenseKeyDomainLimit'==_0x2f2ed8||'uploadcareLicenseKeyNotAllowed'==_0x2f2ed8||'uploadcareLicenseKeyEvaluationLimit'==_0x2f2ed8||'uploadcareLicenseKeyTrialLimit'==_0x2f2ed8||'uploadcareLicenseKeyUsageLimit'==_0x2f2ed8){delete _0x35d15b[_0x370156],_0x502f76=_0x2f2ed8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x502f76&&_0x35d15b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x502f76&&_0x35d15b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x502f76&&_0x35d15b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x502f76&&_0x35d15b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x502f76&&_0x35d15b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x502f76&&_0x35d15b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x502f76&&_0x35d15b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x307cef}=this,_0x5742af=_0x307cef['commands']['get']('uploadcare');if(!_0x5742af)return;const _0x15c9f2=this['_normalizeConfigSourceList'](_0x307cef['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5614af,_0x163a12)=>{const _0xe2e609=this['_getIntegrationKey'](_0x163a12['type']);return _0x5614af[_0xe2e609]||(_0x5614af[_0xe2e609]=[]),_0x5614af[_0xe2e609]['push'](_0x163a12),_0x5614af;},{});_0x307cef['plugins']['has']('ImageInsertUI')&&_0x307cef['commands']['get']('uploadcare')&&Object['entries'](_0x15c9f2)['forEach'](([_0x1e57b3,_0x1b4a0b])=>{_0x307cef['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1e57b3,'observable':()=>_0x5742af,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1b4a0b),'formViewCreator':()=>this['_createDropdownButtons'](_0x1b4a0b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1b4a0b),'override':'assetManager'!==_0x1e57b3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2d9d17){const {locale:_0x2c1f4f}=this['editor'];return _0x2d9d17['map'](_0x53d9ba=>{const _0x27d649=_(_0x2c1f4f,_0x53d9ba,'Insert');switch(_0x53d9ba){case i['Local']:return{'icon':_0x48575e,'type':i['Local'],..._0x27d649};case i['URL']:return{'icon':_0x3e9574,'type':i['URL'],..._0x27d649};case i['Dropbox']:return{'icon':_0x31c1c2,'type':i['Dropbox'],..._0x27d649};case i['Facebook']:return{'icon':_0x5da359,'type':i['Facebook'],..._0x27d649};case i['GDrive']:return{'icon':_0x117bcf,'type':i['GDrive'],..._0x27d649};case i['GPhotos']:return{'icon':_0x20730f,'type':i['GPhotos'],..._0x27d649};case i['OneDrive']:return{'icon':_0x4dd3f6,'type':i['OneDrive'],..._0x27d649};}});}['_getIntegrationKey'](_0x318db0){switch(_0x318db0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5b8c3c,_0x5ef63c){const _0x14a326=this['editor'],_0x48aef5=new _0x5b8c3c(_0x14a326['locale']),_0x1f56db=_0x14a326['commands']['get']('uploadcare');return _0x48aef5['bind']('isEnabled')['to'](_0x1f56db),_0x48aef5['on']('execute',()=>{_0x1f56db['execute'](_0x5ef63c);}),_0x48aef5;}['_createToolbarButton'](_0x2c45fc){const {locale:_0x4dd4ad}=this['editor'],_0xe78e33=this['editor']['plugins']['get']('ImageInsertUI'),_0x324b94=_0x2c45fc[0x0],_0x4b52f3=this['_createButton'](_0x47c2b3,_0x324b94['type']);return _0x4b52f3['icon']=_0x324b94['icon'],_0x4b52f3['bind']('label')['to'](_0xe78e33,'isImageSelected',_0x151c92=>_(_0x4dd4ad,_0x324b94['type'],_0x151c92?'Replace':'Insert')['text']),_0x4b52f3['tooltip']=!0x0,_0x4b52f3;}['_createDropdownButtons'](_0x3d9054){const {locale:_0x50e6fc}=this['editor'],_0x347470=this['editor']['plugins']['get']('ImageInsertUI');return _0x3d9054['map'](_0x1aa98f=>{const _0x271a11=this['_createButton'](_0x47c2b3,_0x1aa98f['type']);return _0x271a11['withText']=!0x0,_0x271a11['icon']=_0x1aa98f['icon'],_0x271a11['bind']('label')['to'](_0x347470,'isImageSelected',_0x2301c8=>_(_0x50e6fc,_0x1aa98f['type'],_0x2301c8?'Replace':'Insert')['text']),_0x271a11;});}['_createMenuBarButtons'](_0x4f0e1c){return _0x4f0e1c['map'](_0x1396a0=>{const _0x29cf9c=this['_createButton'](_0xdcb108,_0x1396a0['type']);return _0x29cf9c['icon']=_0x1396a0['icon'],_0x29cf9c['label']=_0x1396a0['shortText'],_0x29cf9c;});}}class F extends _0x5c75ec{['focusTracker'];['focusCycler'];constructor(_0x528037){super(_0x528037),this['focusTracker']=new _0x4350c9(),this['focusCycler']=new _0x3c402b({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x521c73,_0x557192){super(_0x521c73),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-'+_0x557192}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x25abb1,_0x329538){const _0xf9799d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x420b30=>_0x420b30<=_0x329538)['map'](_0x2adb51=>_0x25abb1['replace'](/\/$/,'')+'/-/resize/'+_0x2adb51+'x/\x20'+_0x2adb51+'w');return{'imageFallbackUrl':_0x25abb1,'imageSources':[{'srcset':_0xf9799d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x329538+'px)\x20100vw,\x20'+_0x329538+'px','type':'image/webp'}]};}function S(_0x55b9cd,_0xde9b4,_0xa76209){const _0x406a3f=_0x55b9cd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x406a3f?parseInt(_0x406a3f[0x1],0xa):_0xde9b4,'height':_0x406a3f?parseInt(_0x406a3f[0x2],0xa):_0xa76209};}function p(_0x5911a4,_0x4393ac){const _0x54abca=new(_0x1381dd())(),_0x2a4ee1=_0x5911a4['plugins']['get']('ImageUtils'),_0x278fd5=_0x5911a4['editing']['mapper']['toViewElement'](_0x4393ac),_0x189940=_0x2a4ee1['findViewImgElement'](_0x278fd5),_0x193ed=_0x5911a4['editing']['view']['domConverter']['viewToDom'](_0x189940),_0x1b8fbc=_0x4393ac['getAttribute']('width'),_0x4ee104=_0x4393ac['getAttribute']('height'),_0x1cf885='image-processing';_0x5911a4['editing']['view']['change'](_0x29ad13=>{_0x29ad13['addClass'](_0x1cf885,_0x278fd5),_0x29ad13['setStyle']('aspect-ratio',_0x1b8fbc+'/'+_0x4ee104,_0x189940);}),_0x54abca['listenTo'](_0x193ed,'load',()=>{_0x54abca['stopListening'](_0x193ed,'load'),_0x5911a4['editing']['view']['change'](_0x3a3ef8=>{_0x3a3ef8['removeClass'](_0x1cf885,_0x278fd5),_0x3a3ef8['removeStyle']('aspect-ratio',_0x189940);});});}function G(_0x6deecf){if(Array['isArray'](_0x6deecf)){const _0x3b6455=_0x6deecf['map'](G);return _0x20c558=>_0x3b6455['some'](_0x1398b3=>_0x1398b3(_0x20c558));}if('origin'==_0x6deecf){const _0x18c332=_0x25eb90['window']['location']['origin'];return _0xe9b2f7=>new URL(_0xe9b2f7,_0x25eb90['document']['baseURI'])['origin']==_0x18c332;}return'function'==typeof _0x6deecf?_0x6deecf:_0x6deecf instanceof RegExp?_0x15632d=>!(!_0x15632d['match'](_0x6deecf)&&!_0x15632d['replace'](/^https?:\/\//,'')['match'](_0x6deecf)):()=>!0x1;}function A(_0x2eb7cf,_0x31e883){return _0x367ba7(_0x2eb7cf['target'])['includes'](_0x31e883);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x51c13c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xbabaae,_0x2cb10e,_0x3969b3){super(),this['_editor']=_0xbabaae,this['_editing']=_0x2cb10e,this['_dialog']=_0xbabaae['plugins']['get'](_0x20456c),this['_api']=_0x2cb10e['ctxElement']['getAPI'](),this['_type']=_0x3969b3,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:_0x34f245,model:_0x59e7b5}=this['_editor'],_0x4329c6=_0x59e7b5['document']['selection']['getSelectedElement'](),_0xb78c2e=_0x4329c6&&(_0x4329c6['is']('element','imageBlock')||_0x4329c6['is']('element','imageInline'));this['_formView']=new x(_0x34f245,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x48575e,'title':_(_0x34f245,this['_type'],_0xb78c2e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x44091c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1fb318=>!A(_0x1fb318,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x254d62}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5a6823=>{const _0x405573=_0x254d62['length'];for(const _0x296fa9 of _0x254d62){const _0x336db8=_0x296fa9===_0x254d62[_0x405573-0x1],{cdnUrl:_0xc86861,fileInfo:_0x38b198}=_0x296fa9;if(!_0xc86861||!_0x38b198)continue;const {width:_0x320603,height:_0x12e641}=_0x38b198['imageInfo'],_0x26d0a8=S(_0xc86861,_0x320603,_0x12e641),_0x1f676d=C(_0xc86861,_0x26d0a8['width']),_0x173373={'id':_0x38b198['uuid'],'type':'image','attributes':{'imageDimension':_0x26d0a8,..._0x1f676d}};this['_insertAsset'](_0x173373,_0x336db8,_0x5a6823);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5984f9=>{'idle'===_0x5984f9['detail']['status']&&!_0x5984f9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4db879,_0x3fcc88,_0x5ad7ea){const _0x4a116a=this['_editor']['model']['document']['selection'],_0x1b4de3=_0x4a116a['getSelectedElement'](),_0x1b4e40=!(!_0x1b4de3||!_0x1b4de3['is']('element','imageInline'));_0x5ad7ea['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4db879,_0x1b4e40),_0x3fcc88||_0x5ad7ea['setSelection'](_0x4a116a['getLastPosition']());}['_insertImage'](_0xa7869e,_0x4b71b3){const _0x16341c=this['_editor'],{imageDimension:_0x2a1456,imageFallbackUrl:_0x105a9a,imageSources:_0x470266}=_0xa7869e['attributes'];_0x16341c['execute']('insertImage',{'imageType':_0x4b71b3?'imageInline':null,'source':{'uploadcareImageId':_0xa7869e['id'],'src':_0x105a9a,'sources':_0x470266,..._0x2a1456}});}}class w extends _0x143b84{['_editing'];['_controller']=null;static get['requires'](){return[_0x20456c,o];}constructor(_0x69892f){super(_0x69892f),this['_editing']=_0x69892f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x50feb3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x50feb3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xa64a54,..._0x55fed6}){return _0x2ba8ad(_0xa64a54,_0x55fed6);}static['getInfo'](_0x261c08,_0x577b7e){return _0x44068a(_0x261c08,_0x577b7e);}}class f extends _0x438fc8{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5b20d5,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x474b06=this['editor'];if(!!!_0x474b06['config']['get']('uploadcare'))return;_0x474b06['plugins']['get'](_0x5b20d5)['createUploadAdapter']=_0x3f9c18=>new k(_0x3f9c18,_0x474b06),_0x474b06['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x47735f,{imageElement:_0xf5f6cb,data:_0x3dfa05})=>{_0x474b06['model']['change'](_0x231873=>{_0x231873['setAttribute']('uploadcareImageId',_0x3dfa05['uploadcareImageId'],_0xf5f6cb);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x112b7f,_0x26ec52){this['loader']=_0x112b7f,this['editor']=_0x26ec52,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x50a78d=await this['loader']['file'];return j['upload']({'file':_0x50a78d,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3fc928=>{_0x3fc928&&_0x3fc928['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3fc928['value']);}})['then'](async _0x172ec8=>{const {imageFallbackUrl:_0x2a69de,imageSources:_0x3da4fe}=C(_0x172ec8['cdnUrl'],_0x172ec8['imageInfo']['width']);return{'uploadcareImageId':_0x172ec8['uuid'],'default':_0x2a69de,'sources':_0x3da4fe};})['catch'](()=>{const _0x2ab877=t('Cannot\x20upload\x20file:')+('\x20'+_0x50a78d['name']+'.');return Promise['reject'](_0x2ab877);});}['abort'](){this['controller']['abort']();}}class o extends _0x438fc8{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x20456c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x211dba){super(_0x211dba),this['ucContextId']=_0x298f56();}['init'](){const _0x35bd75=this['editor'];_0x35bd75['commands']['add']('uploadcare',new w(_0x35bd75));}['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 _0x40c2f1=_0x25eb90['document']['querySelector']('input[uploadcare-file-input]');_0x40c2f1&&_0x40c2f1['remove']();}),async function(_0x23d9a3){const _0x20d813=_0x125ba2([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3e6d52=0x535f8c3a,_0x2ca1c1=0x5358f082^_0x3e6d52,_0x55aa64=window[_0x125ba2([0x44,0x61,0x74,0x65])][_0x125ba2([0x6e,0x6f,0x77])](),_0x2b7adb=_0x23d9a3[_0x125ba2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x349f1c=new window[(_0x125ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x580c4f=>{_0x2b7adb[_0x125ba2([0x6f,0x6e,0x63,0x65])](_0x125ba2([0x72,0x65,0x61,0x64,0x79]),_0x580c4f);}),_0x5c05da={[_0x125ba2([0x6b,0x74,0x79])]:_0x125ba2([0x45,0x43]),[_0x125ba2([0x75,0x73,0x65])]:_0x125ba2([0x73,0x69,0x67]),[_0x125ba2([0x63,0x72,0x76])]:_0x125ba2([0x50,0x2d,0x32,0x35,0x36]),[_0x125ba2([0x78])]:_0x125ba2([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]),[_0x125ba2([0x79])]:_0x125ba2([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]),[_0x125ba2([0x61,0x6c,0x67])]:_0x125ba2([0x45,0x53,0x32,0x35,0x36])},_0x36eb7d=_0x2b7adb[_0x125ba2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x125ba2([0x67,0x65,0x74])](_0x125ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7f5407(){let _0x111aa9,_0x183477=null,_0x2b928b=null;try{if(_0x36eb7d==_0x125ba2([0x47,0x50,0x4c]))return _0x125ba2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x111aa9=_0x28a3d5(),!_0x111aa9)return _0x125ba2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x111aa9[_0x125ba2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b928b=_0x3e1e65(_0x111aa9[_0x125ba2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x111aa9[_0x125ba2([0x6a,0x74,0x69])])),await _0x11e999()?_0x4bdb60()?_0x4e88eb()?_0x125ba2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x310c6b()?(_0x111aa9[_0x125ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x125ba2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x183477=_0x51fb0d(_0x125ba2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x111aa9[_0x125ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x125ba2([0x74,0x72,0x69,0x61,0x6c])&&(_0x183477=_0x51fb0d(_0x125ba2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x132707()):_0x125ba2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x125ba2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x125ba2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x125ba2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e88eb(){const _0x1a4484=[_0x125ba2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x125ba2([0x74,0x72,0x69,0x61,0x6c])][_0x125ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x111aa9[_0x125ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55aa64/0x3e8:0xe10*_0x2ca1c1;return _0x111aa9[_0x125ba2([0x65,0x78,0x70])]<_0x1a4484;}function _0x4bdb60(){const _0x40465e=_0x111aa9[_0x125ba2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x40465e&&(!!_0x40465e[_0x125ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x125ba2([0x2a]))||!!_0x40465e[_0x125ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x125ba2([0x55,0x50,0x4c,0x43])));}function _0x310c6b(){const _0x1a19fe=_0x111aa9[_0x125ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a19fe||0x0==_0x1a19fe[_0x125ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44d328}=new URL(window[_0x125ba2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a19fe[_0x125ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44d328))return!0x0;const _0x58fb86=_0x44d328[_0x125ba2([0x73,0x70,0x6c,0x69,0x74])](_0x125ba2([0x2e]));return _0x1a19fe[_0x125ba2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5db2fe=>_0x5db2fe[_0x125ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x125ba2([0x2a])))[_0x125ba2([0x6d,0x61,0x70])](_0x1c10a5=>_0x1c10a5[_0x125ba2([0x73,0x70,0x6c,0x69,0x74])](_0x125ba2([0x2e])))[_0x125ba2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x148e1a=>_0x148e1a[_0x125ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x58fb86[_0x125ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x125ba2([0x6d,0x61,0x70])](_0x5e7925=>Array(_0x58fb86[_0x125ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e7925[_0x125ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x125ba2([0x66,0x69,0x6c,0x6c])](_0x5e7925[0x0]===_0x125ba2([0x2a])?_0x125ba2([0x2a]):'')[_0x125ba2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e7925))[_0x125ba2([0x73,0x6f,0x6d,0x65])](_0x44f387=>_0x58fb86[_0x125ba2([0x65,0x76,0x65,0x72,0x79])]((_0x3c25da,_0x4b0824)=>_0x44f387[_0x4b0824]===_0x3c25da||_0x44f387[_0x4b0824]===_0x125ba2([0x2a])));}function _0x132707(){return _0x183477&&_0x2b928b?new window[(_0x125ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x166334,_0x27cd7d)=>{_0x183477[_0x125ba2([0x74,0x68,0x65,0x6e])](_0x166334,_0x27cd7d),_0x2b928b[_0x125ba2([0x74,0x68,0x65,0x6e])](_0x52ee41=>{_0x52ee41!=_0x125ba2([0x56,0x61,0x6c,0x69,0x64])&&_0x166334(_0x52ee41);},_0x27cd7d);}):_0x183477||_0x2b928b||_0x125ba2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e1e65(_0x5cb109,_0x452c0e){return new window[(_0x125ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d7193=>{if(_0x24be2c())return _0x3d7193(_0x125ba2([0x56,0x61,0x6c,0x69,0x64]));_0x54f8e7(),_0x2b7adb[_0x125ba2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x125ba2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20a203=!0x1;const _0x507db5=_0x298f56();function _0x422c9b(_0x4734ff){return!!_0x4734ff&&(typeof _0x4734ff===_0x125ba2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4734ff===_0x125ba2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4734ff[_0x125ba2([0x74,0x68,0x65,0x6e])]===_0x125ba2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4734ff[_0x125ba2([0x63,0x61,0x74,0x63,0x68])]===_0x125ba2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59e762(_0x3983ac){_0x553438(_0x3983ac)[_0x125ba2([0x74,0x68,0x65,0x6e])](_0x4b705e=>{if(!_0x4b705e||_0x4b705e[_0x125ba2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x125ba2([0x6f,0x6b]))return _0x125ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b923f(_0x1b3ca3(_0x507db5+_0x452c0e))!=_0x4b705e[_0x125ba2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x125ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x125ba2([0x56,0x61,0x6c,0x69,0x64]);})[_0x125ba2([0x74,0x68,0x65,0x6e])](_0x2de8fd=>(_0x41fb9f(),_0x2de8fd),()=>{const _0x2d01f8=_0x315a5a();return null==_0x2d01f8?(_0x41fb9f(),_0x125ba2([0x56,0x61,0x6c,0x69,0x64])):_0x125ba2(_0x55aa64-_0x2d01f8>(0x7753083a^_0x3e6d52)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x125ba2([0x74,0x68,0x65,0x6e])](_0x3d7193)[_0x125ba2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d7193(_0x125ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x14a9a6=0x536962ba^_0x3e6d52;function _0x41fb9f(){const _0x160826=_0x125ba2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b923f(_0x1b3ca3(_0x5cb109)),_0x1ba5f9=_0x24d35d(_0x2b923f(window[_0x125ba2([0x4d,0x61,0x74,0x68])][_0x125ba2([0x63,0x65,0x69,0x6c])](_0x55aa64/_0x14a9a6)));window[_0x125ba2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x125ba2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x160826,_0x1ba5f9);}function _0x315a5a(){const _0x93c72a=_0x125ba2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b923f(_0x1b3ca3(_0x5cb109)),_0x2602a8=window[_0x125ba2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x125ba2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x93c72a);return _0x2602a8?window[_0x125ba2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24d35d(_0x2602a8),0x10)*_0x14a9a6:null;}function _0x553438(_0x56c649){return new window[(_0x125ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9a3f87,_0x2dee78)=>{_0x56c649[_0x125ba2([0x74,0x68,0x65,0x6e])](_0x9a3f87,_0x2dee78),window[_0x125ba2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2dee78,0x535e58fa^_0x3e6d52);});}}_0x2b7adb[_0x125ba2([0x6f,0x6e])](_0x125ba2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x71306b,_0x4239bd)=>{if(_0x4239bd[0x0]!=_0x5cb109)return _0x3d7193(_0x125ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4239bd[0x1]={..._0x4239bd[0x1],[_0x125ba2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x507db5};},{[_0x125ba2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x125ba2([0x68,0x69,0x67,0x68])}),_0x2b7adb[_0x125ba2([0x6f,0x6e])](_0x125ba2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x23bfce=>{_0x422c9b(_0x23bfce[_0x125ba2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20a203=!0x0,_0x59e762(_0x23bfce[_0x125ba2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x125ba2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x125ba2([0x6c,0x6f,0x77])}),_0x349f1c[_0x125ba2([0x74,0x68,0x65,0x6e])](()=>{_0x20a203||_0x3d7193(_0x125ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24be2c(){return _0x2b7adb[_0x125ba2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x125ba2([0x76,0x69,0x65,0x77])][_0x125ba2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x125ba2([0x61,0x75,0x74,0x6f]);}function _0x54f8e7(){_0x2b7adb[_0x125ba2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x125ba2([0x76,0x69,0x65,0x77])][_0x125ba2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x125ba2([0x61,0x75,0x74,0x6f]);}}function _0x51fb0d(_0x36fecf){const _0x4e20c1=[new window[(_0x125ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f465b=>setTimeout(_0x2f465b,0x5356b2f6^_0x3e6d52)),_0x349f1c[_0x125ba2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x125ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x718c4d=>{let _0x54a1a6=0x0;_0x2b7adb[_0x125ba2([0x6d,0x6f,0x64,0x65,0x6c])][_0x125ba2([0x6f,0x6e])](_0x125ba2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40f7a1,_0x1704fa)=>{_0x1704fa[0x0][_0x125ba2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x54a1a6++,_0x54a1a6==(0x535f89d2^_0x3e6d52)&&(_0x718c4d(),_0x40f7a1[_0x125ba2([0x6f,0x66,0x66])]());});}))];return window[_0x125ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x125ba2([0x72,0x61,0x63,0x65])](_0x4e20c1)[_0x125ba2([0x74,0x68,0x65,0x6e])](()=>_0x36fecf);}async function _0x1fcbab(){await _0x349f1c,_0x2b7adb[_0x125ba2([0x6d,0x6f,0x64,0x65,0x6c])][_0x125ba2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1cae6e,_0x2b7adb[_0x125ba2([0x6d,0x6f,0x64,0x65,0x6c])][_0x125ba2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1cae6e,_0x2b7adb[_0x125ba2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x125ba2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2b55d0(_0x437c6c){const _0x13a0a4=_0x4c992f();_0x2b7adb[_0x13a0a4]=_0x125ba2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x437c6c,_0x437c6c!=_0x125ba2([0x56,0x61,0x6c,0x69,0x64])&&_0x1fcbab();}function _0x4c992f(){const _0x54aabf=window[_0x125ba2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x125ba2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x125ba2([0x6e,0x6f,0x77])]())[_0x125ba2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x125ba2([0x2e]),'');let _0x422126=_0x125ba2([0x68]);for(let _0x332d59=0x0;_0x332d59<_0x54aabf[_0x125ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x332d59+=0x2){let _0x2fe8cb=window[_0x125ba2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54aabf[_0x125ba2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x332d59,_0x332d59+0x2));_0x2fe8cb>=_0x20d813[_0x125ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2fe8cb-=_0x20d813[_0x125ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x422126+=_0x20d813[_0x2fe8cb];}return _0x422126;}function _0x28a3d5(){const _0x50fab1=_0x36eb7d[_0x125ba2([0x73,0x70,0x6c,0x69,0x74])](_0x125ba2([0x2e]));if(0x3!=_0x50fab1[_0x125ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12c985(_0x50fab1[0x1]);function _0x12c985(_0x508788){const _0x1717c8=_0x56168e(_0x508788);return _0x1717c8&&_0x25b99f()?_0x1717c8:null;function _0x25b99f(){const _0x48327d=_0x1717c8[_0x125ba2([0x6a,0x74,0x69])],_0x3e4cbb=window[_0x125ba2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48327d[_0x125ba2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48327d[_0x125ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39e172={..._0x1717c8,[_0x125ba2([0x6a,0x74,0x69])]:_0x48327d[_0x125ba2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48327d[_0x125ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39e172[_0x125ba2([0x76,0x63])],_0x1b3ca3(_0x39e172)==_0x3e4cbb;}}}async function _0x11e999(){let _0x115575=!0x0;try{const _0x46a34d=_0x36eb7d[_0x125ba2([0x73,0x70,0x6c,0x69,0x74])](_0x125ba2([0x2e])),[_0x5e7366,_0x461ae0,_0x5e2f44]=_0x46a34d;return _0x58a4eb(_0x5e7366),await _0x2565f4(_0x5e7366,_0x461ae0,_0x5e2f44),_0x115575;}catch{return!0x1;}function _0x58a4eb(_0x561703){const _0x196241=_0x56168e(_0x561703);_0x196241&&_0x196241[_0x125ba2([0x61,0x6c,0x67])]==_0x125ba2([0x45,0x53,0x32,0x35,0x36])||(_0x115575=!0x1);}async function _0x2565f4(_0x10e34b,_0x53cb7d,_0x51290e){const _0x8632af=window[_0x125ba2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x125ba2([0x66,0x72,0x6f,0x6d])](_0x562876(_0x51290e),_0x99e8f=>_0x99e8f[_0x125ba2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x506190=new window[(_0x125ba2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x125ba2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10e34b+_0x125ba2([0x2e])+_0x53cb7d),_0x4601a5=window[_0x125ba2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x125ba2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4601a5)return;const _0x4491a5=await _0x4601a5[_0x125ba2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x125ba2([0x6a,0x77,0x6b]),_0x5c05da,{[_0x125ba2([0x6e,0x61,0x6d,0x65])]:_0x125ba2([0x45,0x43,0x44,0x53,0x41]),[_0x125ba2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x125ba2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x125ba2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4601a5[_0x125ba2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x125ba2([0x6e,0x61,0x6d,0x65])]:_0x125ba2([0x45,0x43,0x44,0x53,0x41]),[_0x125ba2([0x68,0x61,0x73,0x68])]:{[_0x125ba2([0x6e,0x61,0x6d,0x65])]:_0x125ba2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4491a5,_0x8632af,_0x506190)||(_0x115575=!0x1);}}function _0x56168e(_0x43acad){return _0x43acad[_0x125ba2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x125ba2([0x65,0x79]))?JSON[_0x125ba2([0x70,0x61,0x72,0x73,0x65])](_0x562876(_0x43acad)):null;}function _0x562876(_0x1c5417){return window[_0x125ba2([0x61,0x74,0x6f,0x62])](_0x1c5417[_0x125ba2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x125ba2([0x2b]))[_0x125ba2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x125ba2([0x2f])));}function _0x1b3ca3(_0x38ff7e){let _0x14c29f=0x1505;function _0x5c1e43(_0x5856fd){for(let _0x220af9=0x0;_0x220af9<_0x5856fd[_0x125ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x220af9++){const _0x458f22=_0x5856fd[_0x125ba2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x220af9);_0x14c29f=(_0x14c29f<<0x5)+_0x14c29f+_0x458f22,_0x14c29f&=_0x14c29f;}}function _0x2829d0(_0x3de229){Array[_0x125ba2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3de229)?_0x3de229[_0x125ba2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2829d0):_0x3de229&&typeof _0x3de229==_0x125ba2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x125ba2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3de229)[_0x125ba2([0x73,0x6f,0x72,0x74])]()[_0x125ba2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xff4199,_0x446b0d])=>{_0x5c1e43(_0xff4199),_0x2829d0(_0x446b0d);}):_0x5c1e43(window[_0x125ba2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3de229));}return _0x2829d0(_0x38ff7e),_0x14c29f>>>0x0;}function _0x2b923f(_0x4ad353){return _0x4ad353[_0x125ba2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x125ba2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x125ba2([0x30]));}function _0x24d35d(_0x4b7560){return _0x4b7560[_0x125ba2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x125ba2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x125ba2([0x6a,0x6f,0x69,0x6e])]('');}function _0x1cae6e(){}function _0x125ba2(_0x2967cf){return _0x2967cf['map'](_0x41ad70=>String['fromCharCode'](_0x41ad70))['join']('');}_0x2b55d0(await _0x7f5407());}(this);}['_initSchema'](){const _0x387d3d=this['editor']['model']['schema'];_0x387d3d['isRegistered']('imageBlock')&&_0x387d3d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x387d3d['isRegistered']('imageInline')&&_0x387d3d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1d507b=this['editor'];_0x1d507b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1d507b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2bb74d=>_0x2bb74d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x47b8ae=_0x1d507b['commands']['get']('replaceImageSource');_0x47b8ae&&this['listenTo'](_0x47b8ae,'cleanupImage',(_0x1826f1,[_0x5953eb,_0x26ca9c])=>{_0x5953eb['removeAttribute']('uploadcareImageId',_0x26ca9c);});}['_initConfig'](){const _0x35bd95=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1e31f1=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5b6632(_0x25eb90['document'],'uc-config',{..._0x35bd95,'pubkey':_0x1e31f1,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4d6d79=>{if('closeMax'==_0x4d6d79)return'#uc-icon-arrow-down';},_0x25eb90['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5b6632(_0x25eb90['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x25eb90['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x480147=this['editor']['commands']['get']('insertImage');_0x480147&&this['listenTo'](_0x480147,'execute',()=>{const _0x6f6490=this['editor']['model']['document']['selection']['getSelectedElement']();_0x6f6490&&_0x6f6490['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x6f6490);});});const _0xc41269=this['editor']['commands']['get']('uploadcareImageReplace');_0xc41269&&this['listenTo'](_0xc41269,'execute',()=>{const _0x5e4e9d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e4e9d&&_0x5e4e9d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5e4e9d);});});}}class tt extends _0x438fc8{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2fbb65){super(_0x2fbb65),_0x2fbb65['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x254f69['defineComponents'](_0x254f69),this['_defineLocale']();}['_defineLocale'](){const _0x256aaa=this['editor']['config']['get']('uploadcare.locale'),_0x513f83=this['editor']['locale']['contentLanguage'];_0x256aaa&&_0x254f69['defineLocale'](_0x513f83,_0x256aaa);}}class ii extends _0x5c75ec{constructor(_0x17b5da){super(_0x17b5da);const t=_0x17b5da['t'],_0x3c220a=this['bindTemplate'],_0x417eb0=new _0x2b4052();_0x417eb0['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':[_0x417eb0,{'text':_0x3c220a['to']('imageUploadProgress',_0x3eaee7=>t('Loading\x20image...')+'\x20('+(_0x3eaee7||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x5c75ec{constructor(_0x46d7e9){super(_0x46d7e9);const t=_0x46d7e9['t'];this['set']('errorType',null);const _0x2e4dfc=new _0x47c2b3(_0x46d7e9);_0x2e4dfc['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2e4dfc['withText']=!0x0,_0x2e4dfc['class']='ck-button-action',_0x2e4dfc['on']('execute',()=>{this['fire']('retry');}),_0x2e4dfc['bind']('isVisible')['to'](this,'errorType',_0x11c6e8=>'NotFound'!==_0x11c6e8);const _0x570ada=new _0x3edb33();_0x570ada['content']=_0x4c3615,_0x570ada['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1f3ee4=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':[_0x570ada,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1f3ee4['to']('errorType',_0xfbedcb=>t('NotFound'!==_0xfbedcb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2e4dfc]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x5c75ec{constructor(_0x500fd3,_0x412dad){super(_0x500fd3);const _0x58b815=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x412dad,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x58b815['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x8b82c9,_0x5c0671,_0x171901){super(_0x8b82c9),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x8b82c9),this['_errorView']=new ti(_0x8b82c9),this['_editingView']=new ei(_0x8b82c9,_0x171901),this['_focusableView']=new _0x5c75ec(_0x8b82c9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5c0671),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'],_0x44a780=>{this['_addUploadcareImageEditorListeners'](_0x44a780);});}),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'](_0x420cd2,_0x11d972){const _0x664747='uc-cloud-image-editor',_0x56ee67=_0x420cd2['querySelector'](_0x664747);if(_0x56ee67)return _0x11d972(_0x56ee67);const _0x566779=new MutationObserver(_0x30be60=>{const _0x1cdf32=_0x30be60['filter'](_0x7d58d2=>_0x7d58d2['target']===_0x420cd2&&_0x7d58d2['addedNodes']['length']>0x0&&_0x7d58d2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x664747);_0x1cdf32['length']&&(_0x566779['disconnect'](),_0x11d972(_0x1cdf32[0x0]['addedNodes'][0x0]));});_0x566779['observe'](_0x420cd2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x46cec5){_0x46cec5['addEventListener']('apply',_0x1b4dc2=>{this['fire']('apply',{'imageSrc':_0x1b4dc2['detail']['cdnUrl']});}),_0x46cec5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x51c13c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x242d7e,_0x5d194b,_0xff8e5c){super(),this['_editor']=_0x242d7e,this['_dialog']=_0x5d194b,this['_imageElement']=_0xff8e5c,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 _0x2ca469=this['_imageElement'],_0xd52309=_0x2ca469['getAttribute']('uploadcareImageId'),_0x347305=_0x2ca469['getAttribute']('src');if(_0xd52309)await this['_loadImageInfo'](_0xd52309,_0x347305);else{if(this['_imageCache']['has'](_0x347305)){const _0x4a65f3=this['_imageCache']['get'](_0x347305);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a65f3['url'],this['imageDimension']=_0x4a65f3['dimension'],this['imageId']=_0x4a65f3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x55a8e}=this['_editor'],t=_0x55a8e['t'],_0x28191e=new X(_0x55a8e,this['imageStatus'],this['_attributes']);_0x28191e['bind']('status')['to'](this,'imageStatus'),_0x28191e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x28191e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x28191e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x28191e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x433ede,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x28191e,'position':_0x44091c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x28191e['focus']();},'onHide':()=>{_0x28191e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xe5190c=>!A(_0xe5190c,_0x28191e['element'])}});}['_loadImageInfo'](_0x5408f3,_0x472d7c){return j['getInfo'](_0x5408f3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x51f11e=>{const {width:_0x3749ce,height:_0x4e05ae}=_0x51f11e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x472d7c,this['imageDimension']={'width':_0x3749ce,'height':_0x4e05ae},this['imageId']=_0x5408f3;})['catch'](_0x549d75=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x549d75['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x249573,_0x3b9e5e){return this['_getImageAsFile'](_0x249573)['then'](_0x7cede8=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3b9e5e['signal'],'file':_0x7cede8,'onProgress':_0x4ab14a=>{_0x4ab14a&&_0x4ab14a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ab14a['value']));}}))['then'](_0x3c65d5=>{const {width:_0x47ee58,height:_0x1be1a7}=_0x3c65d5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c65d5['cdnUrl'],this['imageDimension']={'width':_0x47ee58,'height':_0x1be1a7},this['imageId']=_0x3c65d5['uuid'],this['imageUploadProgress']=null;const _0x4335c5=_0x249573['getAttribute']('src');this['_imageCache']['set'](_0x4335c5,{'id':_0x3c65d5['uuid'],'url':_0x3c65d5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xea4835=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xea4835['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x138e48,_0x102e1d){_0x138e48['on']('apply',(_0x14f940,_0xe42668)=>{this['_replaceImage'](_0x102e1d,_0xe42668['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x138e48['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x138e48['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x14e2d5,_0x259845,_0x25f445){const _0x2dd1b8=this['_editor'],{width:_0x2d90c5,height:_0x28739c}=S(_0x259845,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x43e040,imageSources:_0xbc874f}=C(_0x259845,_0x2d90c5);_0x2dd1b8['model']['change'](_0x34c8e0=>{if('$graveyard'===_0x14e2d5['root']['rootName']){_0x2dd1b8['execute']('insertImage',{'imageType':_0x14e2d5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x14e2d5['getAttributes']()),'uploadcareImageId':_0x25f445,'src':_0x43e040,'sources':_0xbc874f,'width':_0x2d90c5,'height':_0x28739c}});const _0x277b00=_0x14e2d5['getChildren']();_0x14e2d5=_0x2dd1b8['model']['document']['selection']['getSelectedElement']();for(const _0x5c48de of _0x277b00)_0x34c8e0['append'](_0x34c8e0['cloneElement'](_0x5c48de),_0x14e2d5);}else _0x34c8e0['setSelection'](_0x14e2d5,'on'),_0x2dd1b8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x14e2d5['getAttributes']()),'uploadcareImageId':_0x25f445,'src':_0x43e040,'sources':_0xbc874f,'width':_0x2d90c5,'height':_0x28739c},_0x14e2d5);_0x34c8e0['setSelection'](_0x14e2d5,'on');});}async['_getImageAsFile'](_0x35598f){const _0x2cd1ba=_0x25eb90['window'],_0x3dd6e3=_0x25eb90['document']['location']['href'],_0x28f25c=new _0x2cd1ba['URL'](_0x35598f['getAttribute']('src'),_0x3dd6e3);if('data:'===_0x28f25c['protocol']){const _0x5b6ea9=_0x28f25c['href']['split'](','),_0x552a4a=_0x5b6ea9[0x0]['match'](/:(.*?);/)[0x1],_0x27513e=_0x552a4a['split']('/')[0x1],_0x3f7b55=_0x2cd1ba['atob'](_0x5b6ea9[_0x5b6ea9['length']-0x1]);let _0x4bd1e8=_0x3f7b55['length'];const _0x326eed=new _0x2cd1ba['Uint8Array'](_0x4bd1e8);for(;_0x4bd1e8--;)_0x326eed[_0x4bd1e8]=_0x3f7b55['charCodeAt'](_0x4bd1e8);return new _0x2cd1ba['File']([_0x326eed],'image.'+_0x27513e,{'type':_0x552a4a});}const _0x269d48=_0x28f25c['href']['split']('/'),_0x496821=_0x269d48[_0x269d48['length']-0x1],_0x395d00=_0x496821['split']('.')[0x1];return _0x2cd1ba['fetch'](_0x28f25c['href'])['then'](_0x1f00c3=>_0x1f00c3['clone']()['blob']())['then'](_0x511903=>new _0x2cd1ba['File']([_0x511903],_0x496821,{'type':'image/'+_0x395d00}));}}class O extends _0x143b84{['imageEditController'];static get['requires'](){return[_0x20456c];}['_isEditable'];constructor(_0x544cd5){super(_0x544cd5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x27fac3){const _0x1a8a58=G(_0x27fac3);return _0x5b7386=>!(!_0x5b7386||!_0x5b7386['is']('element','imageBlock')&&!_0x5b7386['is']('element','imageInline'))&&(!!_0x5b7386['hasAttribute']('uploadcareImageId')||!!_0x5b7386['hasAttribute']('src')&&_0x1a8a58(_0x5b7386['getAttribute']('src')));}(_0x544cd5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2e5dfc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2e5dfc);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xa04d8=this['editor']['model']['document']['selection']['getSelectedElement']();_0xa04d8&&(_0xa04d8['is']('element','imageBlock')||_0xa04d8['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x20456c),_0xa04d8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x143b84{['refresh'](){const _0x798d03=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x798d03&&(_0x798d03['is']('element','imageBlock')||_0x798d03['is']('element','imageInline')));}['execute'](_0x159c14){const _0x12b2ae=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x54d8d0=>{_0x54d8d0['setAttributes'](_0x159c14,_0x12b2ae),_0x54d8d0['removeAttribute']('srcset',_0x12b2ae),_0x54d8d0['removeAttribute']('sizes',_0x12b2ae);});}}class m extends _0x438fc8{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1c67d7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8bfbfc}=this;_0x8bfbfc['commands']['add']('uploadcareImageEdit',new O(_0x8bfbfc)),_0x8bfbfc['commands']['add']('uploadcareImageReplace',new R(_0x8bfbfc));}}class g extends _0x438fc8{['_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 _0x4c3eed=this['editor'];_0x4c3eed['ui']['componentFactory']['add']('uploadcareImageEdit',_0x42c764=>{const _0x5dafa2=_0x4c3eed['commands']['get']('uploadcareImageEdit'),_0x1a8eb5=new _0x47c2b3(_0x42c764),t=_0x42c764['t'];return _0x1a8eb5['set']({'icon':_0x433ede,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1a8eb5['bind']('isEnabled')['to'](_0x5dafa2),_0x1a8eb5['bind']('isOn')['to'](_0x5dafa2,'isActive'),this['listenTo'](_0x1a8eb5,'execute',()=>{_0x4c3eed['execute']('uploadcareImageEdit'),_0x4c3eed['editing']['view']['focus']();}),_0x1a8eb5;}),this['_initConfig']();}['_initConfig'](){const _0x176c1a=_0x5b6632(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x176c1a),this['listenTo'](this['editor'],'destroy',()=>{_0x176c1a['remove']();});}}class et extends _0x438fc8{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x29bee5,Command as _0xcb363d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4940e8,IconGooglePhotos as _0x11a941,IconGoogleDrive as _0x3b176d,IconFacebook as _0x2440d9,IconDropbox as _0x308f74,IconUploadcareLink as _0xc5879a,IconUploadcareImageUpload as _0x27d051,IconError as _0x57e963,IconUploadcareImageEdit as _0x51f9bc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x47a0cc,MenuBarMenuListItemButtonView as _0x51580d,View as _0xd9dba9,FocusCycler as _0x837d4f,Dialog as _0x2f2649,DialogViewPosition as _0x1ac603,SpinnerView as _0x1ca3c8,IconView as _0x461190,Notification as _0x4269a4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4a74d2,DomEmitterMixin as _0x1e85aa,global as _0x5d46ac,getAncestors as _0x37c64f,ObservableMixin as _0x19e745,uid as _0xbfd07e,createElement as _0x4febfc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x62863f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x93a6e6,info as _0x486236}from'@uploadcare/upload-client';import*as _0x545350 from'@uploadcare/file-uploader';var i=function(_0x2fcfc5){return _0x2fcfc5['Local']='local',_0x2fcfc5['URL']='url',_0x2fcfc5['Dropbox']='dropbox',_0x2fcfc5['GDrive']='gdrive',_0x2fcfc5['Facebook']='facebook',_0x2fcfc5['GPhotos']='gphotos',_0x2fcfc5['OneDrive']='onedrive',_0x2fcfc5;}({});function _(_0x5395fc,_0xc2043e,_0x563902){const t=_0x5395fc['t'],_0x59f6b3=_0x5395fc['t'];switch(_0xc2043e){case i['Local']:return{'text':_0x59f6b3('Insert'===_0x563902?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x59f6b3('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x563902?_0x59f6b3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x59f6b3('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x563902?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x563902?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x563902?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x563902?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x563902?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xc2043e;}}class e extends _0x29bee5{['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 _0x362be7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x372d1b;for(const _0xa54cfd in _0x362be7){const _0x821619=_0xa54cfd,_0x3a7e83=_0x362be7[_0x821619];if('uploadcareLicenseKeyValid'==_0x3a7e83||'uploadcareLicenseKeyInvalid'==_0x3a7e83||'uploadcareLicenseKeyExpired'==_0x3a7e83||'uploadcareLicenseKeyDomainLimit'==_0x3a7e83||'uploadcareLicenseKeyNotAllowed'==_0x3a7e83||'uploadcareLicenseKeyEvaluationLimit'==_0x3a7e83||'uploadcareLicenseKeyTrialLimit'==_0x3a7e83||'uploadcareLicenseKeyUsageLimit'==_0x3a7e83){delete _0x362be7[_0x821619],_0x372d1b=_0x3a7e83,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x372d1b&&_0x362be7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x372d1b&&_0x362be7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x372d1b&&_0x362be7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x372d1b&&_0x362be7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x372d1b&&_0x362be7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x372d1b&&_0x362be7['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x372d1b&&_0x362be7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x397895}=this,_0x4119a0=_0x397895['commands']['get']('uploadcare');if(!_0x4119a0)return;const _0x47707a=this['_normalizeConfigSourceList'](_0x397895['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xd9f0b2,_0x2f8148)=>{const _0xf89a52=this['_getIntegrationKey'](_0x2f8148['type']);return _0xd9f0b2[_0xf89a52]||(_0xd9f0b2[_0xf89a52]=[]),_0xd9f0b2[_0xf89a52]['push'](_0x2f8148),_0xd9f0b2;},{});_0x397895['plugins']['has']('ImageInsertUI')&&_0x397895['commands']['get']('uploadcare')&&Object['entries'](_0x47707a)['forEach'](([_0x5dd27d,_0x1a93e0])=>{_0x397895['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5dd27d,'observable':()=>_0x4119a0,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1a93e0),'formViewCreator':()=>this['_createDropdownButtons'](_0x1a93e0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1a93e0),'override':'assetManager'!==_0x5dd27d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5ac770){const {locale:_0x310004}=this['editor'];return _0x5ac770['map'](_0x57f061=>{const _0x14c534=_(_0x310004,_0x57f061,'Insert');switch(_0x57f061){case i['Local']:return{'icon':_0x27d051,'type':i['Local'],..._0x14c534};case i['URL']:return{'icon':_0xc5879a,'type':i['URL'],..._0x14c534};case i['Dropbox']:return{'icon':_0x308f74,'type':i['Dropbox'],..._0x14c534};case i['Facebook']:return{'icon':_0x2440d9,'type':i['Facebook'],..._0x14c534};case i['GDrive']:return{'icon':_0x3b176d,'type':i['GDrive'],..._0x14c534};case i['GPhotos']:return{'icon':_0x11a941,'type':i['GPhotos'],..._0x14c534};case i['OneDrive']:return{'icon':_0x4940e8,'type':i['OneDrive'],..._0x14c534};}});}['_getIntegrationKey'](_0x40cfb7){switch(_0x40cfb7){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4e293b,_0x4b6a88){const _0x370ae8=this['editor'],_0x25cf77=new _0x4e293b(_0x370ae8['locale']),_0x555d12=_0x370ae8['commands']['get']('uploadcare');return _0x25cf77['bind']('isEnabled')['to'](_0x555d12),_0x25cf77['on']('execute',()=>{_0x555d12['execute'](_0x4b6a88);}),_0x25cf77;}['_createToolbarButton'](_0x59fcfc){const {locale:_0x2868d6}=this['editor'],_0x117d42=this['editor']['plugins']['get']('ImageInsertUI'),_0x9e1975=_0x59fcfc[0x0],_0xbe859b=this['_createButton'](_0x47a0cc,_0x9e1975['type']);return _0xbe859b['icon']=_0x9e1975['icon'],_0xbe859b['bind']('label')['to'](_0x117d42,'isImageSelected',_0x14c9fc=>_(_0x2868d6,_0x9e1975['type'],_0x14c9fc?'Replace':'Insert')['text']),_0xbe859b['tooltip']=!0x0,_0xbe859b;}['_createDropdownButtons'](_0x4d7cc6){const {locale:_0x57f6ab}=this['editor'],_0x388dbe=this['editor']['plugins']['get']('ImageInsertUI');return _0x4d7cc6['map'](_0x567e88=>{const _0x1a826e=this['_createButton'](_0x47a0cc,_0x567e88['type']);return _0x1a826e['withText']=!0x0,_0x1a826e['icon']=_0x567e88['icon'],_0x1a826e['bind']('label')['to'](_0x388dbe,'isImageSelected',_0x56b49e=>_(_0x57f6ab,_0x567e88['type'],_0x56b49e?'Replace':'Insert')['text']),_0x1a826e;});}['_createMenuBarButtons'](_0x1550bd){return _0x1550bd['map'](_0x407e67=>{const _0x589af6=this['_createButton'](_0x51580d,_0x407e67['type']);return _0x589af6['icon']=_0x407e67['icon'],_0x589af6['label']=_0x407e67['shortText'],_0x589af6;});}}class F extends _0xd9dba9{['focusTracker'];['focusCycler'];constructor(_0x330cca){super(_0x330cca),this['focusTracker']=new _0x4a74d2(),this['focusCycler']=new _0x837d4f({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x44f850,_0x4dd3b1){super(_0x44f850),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-'+_0x4dd3b1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x46625b,_0x4ec5d5){const _0x256ee1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x46f8ed=>_0x46f8ed<=_0x4ec5d5)['map'](_0x22bd6b=>_0x46625b['replace'](/\/$/,'')+'/-/resize/'+_0x22bd6b+'x/\x20'+_0x22bd6b+'w');return{'imageFallbackUrl':_0x46625b,'imageSources':[{'srcset':_0x256ee1['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4ec5d5+'px)\x20100vw,\x20'+_0x4ec5d5+'px','type':'image/webp'}]};}function S(_0x454072,_0x5d12ad,_0x3dcc5e){const _0x269f8e=_0x454072['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x269f8e?parseInt(_0x269f8e[0x1],0xa):_0x5d12ad,'height':_0x269f8e?parseInt(_0x269f8e[0x2],0xa):_0x3dcc5e};}function p(_0xfff4af,_0xd6cb8b){const _0x2e7419=new(_0x1e85aa())(),_0x9e05f8=_0xfff4af['plugins']['get']('ImageUtils'),_0x2ef20c=_0xfff4af['editing']['mapper']['toViewElement'](_0xd6cb8b),_0x174636=_0x9e05f8['findViewImgElement'](_0x2ef20c),_0x1dac10=_0xfff4af['editing']['view']['domConverter']['viewToDom'](_0x174636),_0x9e44ae=_0xd6cb8b['getAttribute']('width'),_0x5c6454=_0xd6cb8b['getAttribute']('height'),_0x57c6e4='image-processing';_0xfff4af['editing']['view']['change'](_0x339c59=>{_0x339c59['addClass'](_0x57c6e4,_0x2ef20c),_0x339c59['setStyle']('aspect-ratio',_0x9e44ae+'/'+_0x5c6454,_0x174636);}),_0x2e7419['listenTo'](_0x1dac10,'load',()=>{_0x2e7419['stopListening'](_0x1dac10,'load'),_0xfff4af['editing']['view']['change'](_0x18c695=>{_0x18c695['removeClass'](_0x57c6e4,_0x2ef20c),_0x18c695['removeStyle']('aspect-ratio',_0x174636);});});}function G(_0x28ad29){if(Array['isArray'](_0x28ad29)){const _0x35d331=_0x28ad29['map'](G);return _0x490486=>_0x35d331['some'](_0x1499c1=>_0x1499c1(_0x490486));}if('origin'==_0x28ad29){const _0x3b63a5=_0x5d46ac['window']['location']['origin'];return _0x62359c=>new URL(_0x62359c,_0x5d46ac['document']['baseURI'])['origin']==_0x3b63a5;}return'function'==typeof _0x28ad29?_0x28ad29:_0x28ad29 instanceof RegExp?_0x46547b=>!(!_0x46547b['match'](_0x28ad29)&&!_0x46547b['replace'](/^https?:\/\//,'')['match'](_0x28ad29)):()=>!0x1;}function A(_0x38b762,_0x8d2be0){return _0x37c64f(_0x38b762['target'])['includes'](_0x8d2be0);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x19e745(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3cc0ae,_0x248ad9,_0x2f577d){super(),this['_editor']=_0x3cc0ae,this['_editing']=_0x248ad9,this['_dialog']=_0x3cc0ae['plugins']['get'](_0x2f2649),this['_api']=_0x248ad9['ctxElement']['getAPI'](),this['_type']=_0x2f577d,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:_0x1c15d4,model:_0x16245d}=this['_editor'],_0x1098b7=_0x16245d['document']['selection']['getSelectedElement'](),_0x5137de=_0x1098b7&&(_0x1098b7['is']('element','imageBlock')||_0x1098b7['is']('element','imageInline'));this['_formView']=new x(_0x1c15d4,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x27d051,'title':_(_0x1c15d4,this['_type'],_0x5137de?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1ac603['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1d78f4=>!A(_0x1d78f4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5bb751}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x29204f=>{const _0x405151=_0x5bb751['length'];for(const _0x52dbb4 of _0x5bb751){const _0x3798fa=_0x52dbb4===_0x5bb751[_0x405151-0x1],{cdnUrl:_0x1f28c2,fileInfo:_0xa4af3a}=_0x52dbb4;if(!_0x1f28c2||!_0xa4af3a)continue;const {width:_0xd31afc,height:_0x299779}=_0xa4af3a['imageInfo'],_0x30e027=S(_0x1f28c2,_0xd31afc,_0x299779),_0x124a88=C(_0x1f28c2,_0x30e027['width']),_0x1169c4={'id':_0xa4af3a['uuid'],'type':'image','attributes':{'imageDimension':_0x30e027,..._0x124a88}};this['_insertAsset'](_0x1169c4,_0x3798fa,_0x29204f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5d3185=>{'idle'===_0x5d3185['detail']['status']&&!_0x5d3185['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x489f59,_0x5b3e4c,_0x2c5225){const _0x54e8d3=this['_editor']['model']['document']['selection'],_0x3cb999=_0x54e8d3['getSelectedElement'](),_0x508084=!(!_0x3cb999||!_0x3cb999['is']('element','imageInline'));_0x2c5225['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x489f59,_0x508084),_0x5b3e4c||_0x2c5225['setSelection'](_0x54e8d3['getLastPosition']());}['_insertImage'](_0x317d4a,_0x218bec){const _0x358b99=this['_editor'],{imageDimension:_0x6c1fe9,imageFallbackUrl:_0x15de60,imageSources:_0x56655c}=_0x317d4a['attributes'];_0x358b99['execute']('insertImage',{'imageType':_0x218bec?'imageInline':null,'source':{'uploadcareImageId':_0x317d4a['id'],'src':_0x15de60,'sources':_0x56655c,..._0x6c1fe9}});}}class w extends _0xcb363d{['_editing'];['_controller']=null;static get['requires'](){return[_0x2f2649,o];}constructor(_0x2fe114){super(_0x2fe114),this['_editing']=_0x2fe114['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x625555){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x625555);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x52daa4,..._0x16de33}){return _0x93a6e6(_0x52daa4,_0x16de33);}static['getInfo'](_0x3b008c,_0x41fab6){return _0x486236(_0x3b008c,_0x41fab6);}}class f extends _0x29bee5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x62863f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2ce123=this['editor'];if(!!!_0x2ce123['config']['get']('uploadcare'))return;_0x2ce123['plugins']['get'](_0x62863f)['createUploadAdapter']=_0x29a017=>new k(_0x29a017,_0x2ce123),_0x2ce123['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5ca96b,{imageElement:_0x483aa4,data:_0x50030e})=>{_0x2ce123['model']['change'](_0xbaced1=>{_0xbaced1['setAttribute']('uploadcareImageId',_0x50030e['uploadcareImageId'],_0x483aa4);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x33219d,_0x1c681f){this['loader']=_0x33219d,this['editor']=_0x1c681f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5162ae=await this['loader']['file'];return j['upload']({'file':_0x5162ae,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x36f7c0=>{_0x36f7c0&&_0x36f7c0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x36f7c0['value']);}})['then'](async _0x4f2dd8=>{const {imageFallbackUrl:_0x4905b4,imageSources:_0x446d25}=C(_0x4f2dd8['cdnUrl'],_0x4f2dd8['imageInfo']['width']);return{'uploadcareImageId':_0x4f2dd8['uuid'],'default':_0x4905b4,'sources':_0x446d25};})['catch'](()=>{const _0x17152e=t('Cannot\x20upload\x20file:')+('\x20'+_0x5162ae['name']+'.');return Promise['reject'](_0x17152e);});}['abort'](){this['controller']['abort']();}}class o extends _0x29bee5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2f2649];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x8ae34d){super(_0x8ae34d),this['ucContextId']=_0xbfd07e();}['init'](){const _0x244a91=this['editor'];_0x244a91['commands']['add']('uploadcare',new w(_0x244a91));}['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 _0x1a9a6c=_0x5d46ac['document']['querySelector']('input[uploadcare-file-input]');_0x1a9a6c&&_0x1a9a6c['remove']();}),async function(_0x5a7779){const _0x5909a8=_0x31538f([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x11cc51=0x535f8c3a,_0x12ce26=0x5358f082^_0x11cc51,_0xf2dd1f=window[_0x31538f([0x44,0x61,0x74,0x65])][_0x31538f([0x6e,0x6f,0x77])](),_0x21a9ef=_0x5a7779[_0x31538f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59cc19=new window[(_0x31538f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x477a4d=>{_0x21a9ef[_0x31538f([0x6f,0x6e,0x63,0x65])](_0x31538f([0x72,0x65,0x61,0x64,0x79]),_0x477a4d);}),_0x3d96ba={[_0x31538f([0x6b,0x74,0x79])]:_0x31538f([0x45,0x43]),[_0x31538f([0x75,0x73,0x65])]:_0x31538f([0x73,0x69,0x67]),[_0x31538f([0x63,0x72,0x76])]:_0x31538f([0x50,0x2d,0x32,0x35,0x36]),[_0x31538f([0x78])]:_0x31538f([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]),[_0x31538f([0x79])]:_0x31538f([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]),[_0x31538f([0x61,0x6c,0x67])]:_0x31538f([0x45,0x53,0x32,0x35,0x36])},_0x5cf136=_0x21a9ef[_0x31538f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31538f([0x67,0x65,0x74])](_0x31538f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d7ae8(){let _0x52e8fa,_0x3e95cf=null,_0x482a96=null;try{if(_0x5cf136==_0x31538f([0x47,0x50,0x4c]))return _0x31538f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52e8fa=_0x4d3c02(),!_0x52e8fa)return _0x31538f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52e8fa[_0x31538f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x482a96=_0x14c6a4(_0x52e8fa[_0x31538f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52e8fa[_0x31538f([0x6a,0x74,0x69])])),await _0x2fc8d0()?_0x3da2f6()?_0x3563fc()?_0x31538f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5ac471()?(_0x52e8fa[_0x31538f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31538f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e95cf=_0x56f82b(_0x31538f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x52e8fa[_0x31538f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31538f([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e95cf=_0x56f82b(_0x31538f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5d221b()):_0x31538f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31538f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31538f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x31538f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3563fc(){const _0x211d04=[_0x31538f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31538f([0x74,0x72,0x69,0x61,0x6c])][_0x31538f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52e8fa[_0x31538f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf2dd1f/0x3e8:0xe10*_0x12ce26;return _0x52e8fa[_0x31538f([0x65,0x78,0x70])]<_0x211d04;}function _0x3da2f6(){const _0x27a0f2=_0x52e8fa[_0x31538f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x27a0f2&&(!!_0x27a0f2[_0x31538f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31538f([0x2a]))||!!_0x27a0f2[_0x31538f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31538f([0x55,0x50,0x4c,0x43])));}function _0x5ac471(){const _0xc64664=_0x52e8fa[_0x31538f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc64664||0x0==_0xc64664[_0x31538f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3469a6}=new URL(window[_0x31538f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc64664[_0x31538f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3469a6))return!0x0;const _0x5679f8=_0x3469a6[_0x31538f([0x73,0x70,0x6c,0x69,0x74])](_0x31538f([0x2e]));return _0xc64664[_0x31538f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x359b10=>_0x359b10[_0x31538f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31538f([0x2a])))[_0x31538f([0x6d,0x61,0x70])](_0x376def=>_0x376def[_0x31538f([0x73,0x70,0x6c,0x69,0x74])](_0x31538f([0x2e])))[_0x31538f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f8ceb=>_0x3f8ceb[_0x31538f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5679f8[_0x31538f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31538f([0x6d,0x61,0x70])](_0x2b4230=>Array(_0x5679f8[_0x31538f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2b4230[_0x31538f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31538f([0x66,0x69,0x6c,0x6c])](_0x2b4230[0x0]===_0x31538f([0x2a])?_0x31538f([0x2a]):'')[_0x31538f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2b4230))[_0x31538f([0x73,0x6f,0x6d,0x65])](_0x3d75ca=>_0x5679f8[_0x31538f([0x65,0x76,0x65,0x72,0x79])]((_0x8f5fbe,_0x23c016)=>_0x3d75ca[_0x23c016]===_0x8f5fbe||_0x3d75ca[_0x23c016]===_0x31538f([0x2a])));}function _0x5d221b(){return _0x3e95cf&&_0x482a96?new window[(_0x31538f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d5bec,_0x396f8a)=>{_0x3e95cf[_0x31538f([0x74,0x68,0x65,0x6e])](_0x3d5bec,_0x396f8a),_0x482a96[_0x31538f([0x74,0x68,0x65,0x6e])](_0x2d7ba2=>{_0x2d7ba2!=_0x31538f([0x56,0x61,0x6c,0x69,0x64])&&_0x3d5bec(_0x2d7ba2);},_0x396f8a);}):_0x3e95cf||_0x482a96||_0x31538f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x14c6a4(_0x18d27b,_0x390fa5){return new window[(_0x31538f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48aabd=>{if(_0x4f25b2())return _0x48aabd(_0x31538f([0x56,0x61,0x6c,0x69,0x64]));_0x36ca93(),_0x21a9ef[_0x31538f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31538f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x44a9dc=!0x1;const _0xd681b4=_0xbfd07e();function _0x494ceb(_0x250e74){return!!_0x250e74&&(typeof _0x250e74===_0x31538f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x250e74===_0x31538f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x250e74[_0x31538f([0x74,0x68,0x65,0x6e])]===_0x31538f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x250e74[_0x31538f([0x63,0x61,0x74,0x63,0x68])]===_0x31538f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d44ca(_0x3abee4){_0x5dacb9(_0x3abee4)[_0x31538f([0x74,0x68,0x65,0x6e])](_0x228e04=>{if(!_0x228e04||_0x228e04[_0x31538f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31538f([0x6f,0x6b]))return _0x31538f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x563915(_0x22be4f(_0xd681b4+_0x390fa5))!=_0x228e04[_0x31538f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31538f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31538f([0x56,0x61,0x6c,0x69,0x64]);})[_0x31538f([0x74,0x68,0x65,0x6e])](_0x462873=>(_0x35c5ab(),_0x462873),()=>{const _0x4432ae=_0x2e655d();return null==_0x4432ae?(_0x35c5ab(),_0x31538f([0x56,0x61,0x6c,0x69,0x64])):_0x31538f(_0xf2dd1f-_0x4432ae>(0x7753083a^_0x11cc51)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31538f([0x74,0x68,0x65,0x6e])](_0x48aabd)[_0x31538f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48aabd(_0x31538f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1f252c=0x536962ba^_0x11cc51;function _0x35c5ab(){const _0x7d5c22=_0x31538f([0x6c,0x6c,0x63,0x74,0x2d])+_0x563915(_0x22be4f(_0x18d27b)),_0x3c9d92=_0x1a92c4(_0x563915(window[_0x31538f([0x4d,0x61,0x74,0x68])][_0x31538f([0x63,0x65,0x69,0x6c])](_0xf2dd1f/_0x1f252c)));window[_0x31538f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31538f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7d5c22,_0x3c9d92);}function _0x2e655d(){const _0x2e2a2d=_0x31538f([0x6c,0x6c,0x63,0x74,0x2d])+_0x563915(_0x22be4f(_0x18d27b)),_0x4ae779=window[_0x31538f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31538f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e2a2d);return _0x4ae779?window[_0x31538f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a92c4(_0x4ae779),0x10)*_0x1f252c:null;}function _0x5dacb9(_0x87bdb3){return new window[(_0x31538f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4aa759,_0x37e1be)=>{_0x87bdb3[_0x31538f([0x74,0x68,0x65,0x6e])](_0x4aa759,_0x37e1be),window[_0x31538f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37e1be,0x535e58fa^_0x11cc51);});}}_0x21a9ef[_0x31538f([0x6f,0x6e])](_0x31538f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52ee7d,_0x413e55)=>{if(_0x413e55[0x0]!=_0x18d27b)return _0x48aabd(_0x31538f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x413e55[0x1]={..._0x413e55[0x1],[_0x31538f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd681b4};},{[_0x31538f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31538f([0x68,0x69,0x67,0x68])}),_0x21a9ef[_0x31538f([0x6f,0x6e])](_0x31538f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3661e2=>{_0x494ceb(_0x3661e2[_0x31538f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x44a9dc=!0x0,_0x1d44ca(_0x3661e2[_0x31538f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31538f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31538f([0x6c,0x6f,0x77])}),_0x59cc19[_0x31538f([0x74,0x68,0x65,0x6e])](()=>{_0x44a9dc||_0x48aabd(_0x31538f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f25b2(){return _0x21a9ef[_0x31538f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31538f([0x76,0x69,0x65,0x77])][_0x31538f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31538f([0x61,0x75,0x74,0x6f]);}function _0x36ca93(){_0x21a9ef[_0x31538f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31538f([0x76,0x69,0x65,0x77])][_0x31538f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31538f([0x61,0x75,0x74,0x6f]);}}function _0x56f82b(_0x57df11){const _0xdf08cd=[new window[(_0x31538f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x295c83=>setTimeout(_0x295c83,0x5356b2f6^_0x11cc51)),_0x59cc19[_0x31538f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31538f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbb6924=>{let _0x2544e0=0x0;_0x21a9ef[_0x31538f([0x6d,0x6f,0x64,0x65,0x6c])][_0x31538f([0x6f,0x6e])](_0x31538f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x300258,_0x3ce606)=>{_0x3ce606[0x0][_0x31538f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2544e0++,_0x2544e0==(0x535f89d2^_0x11cc51)&&(_0xbb6924(),_0x300258[_0x31538f([0x6f,0x66,0x66])]());});}))];return window[_0x31538f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31538f([0x72,0x61,0x63,0x65])](_0xdf08cd)[_0x31538f([0x74,0x68,0x65,0x6e])](()=>_0x57df11);}async function _0x59f382(){await _0x59cc19,_0x21a9ef[_0x31538f([0x6d,0x6f,0x64,0x65,0x6c])][_0x31538f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x111de2,_0x21a9ef[_0x31538f([0x6d,0x6f,0x64,0x65,0x6c])][_0x31538f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x111de2,_0x21a9ef[_0x31538f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31538f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40d060(_0x1adf01){const _0x2ece19=_0x25864e();_0x21a9ef[_0x2ece19]=_0x31538f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1adf01,_0x1adf01!=_0x31538f([0x56,0x61,0x6c,0x69,0x64])&&_0x59f382();}function _0x25864e(){const _0x237988=window[_0x31538f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31538f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31538f([0x6e,0x6f,0x77])]())[_0x31538f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31538f([0x2e]),'');let _0x3fed11=_0x31538f([0x68]);for(let _0x913436=0x0;_0x913436<_0x237988[_0x31538f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x913436+=0x2){let _0x404ef4=window[_0x31538f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x237988[_0x31538f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x913436,_0x913436+0x2));_0x404ef4>=_0x5909a8[_0x31538f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x404ef4-=_0x5909a8[_0x31538f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3fed11+=_0x5909a8[_0x404ef4];}return _0x3fed11;}function _0x4d3c02(){const _0x4811f0=_0x5cf136[_0x31538f([0x73,0x70,0x6c,0x69,0x74])](_0x31538f([0x2e]));if(0x3!=_0x4811f0[_0x31538f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x55e66e(_0x4811f0[0x1]);function _0x55e66e(_0x3914b1){const _0xa14875=_0xc27f9a(_0x3914b1);return _0xa14875&&_0x53cac8()?_0xa14875:null;function _0x53cac8(){const _0x318de7=_0xa14875[_0x31538f([0x6a,0x74,0x69])],_0x216cf8=window[_0x31538f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x318de7[_0x31538f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x318de7[_0x31538f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f80bc={..._0xa14875,[_0x31538f([0x6a,0x74,0x69])]:_0x318de7[_0x31538f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x318de7[_0x31538f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f80bc[_0x31538f([0x76,0x63])],_0x22be4f(_0x1f80bc)==_0x216cf8;}}}async function _0x2fc8d0(){let _0x2c6554=!0x0;try{const _0x19a59a=_0x5cf136[_0x31538f([0x73,0x70,0x6c,0x69,0x74])](_0x31538f([0x2e])),[_0x5b3da4,_0x448881,_0x3fd2e8]=_0x19a59a;return _0x2c76ea(_0x5b3da4),await _0x3a15d5(_0x5b3da4,_0x448881,_0x3fd2e8),_0x2c6554;}catch{return!0x1;}function _0x2c76ea(_0xf1b48f){const _0x53c957=_0xc27f9a(_0xf1b48f);_0x53c957&&_0x53c957[_0x31538f([0x61,0x6c,0x67])]==_0x31538f([0x45,0x53,0x32,0x35,0x36])||(_0x2c6554=!0x1);}async function _0x3a15d5(_0x569652,_0x703d08,_0x4e41b7){const _0x1d3572=window[_0x31538f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31538f([0x66,0x72,0x6f,0x6d])](_0x2d110a(_0x4e41b7),_0x193d55=>_0x193d55[_0x31538f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c9709=new window[(_0x31538f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31538f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x569652+_0x31538f([0x2e])+_0x703d08),_0x340077=window[_0x31538f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31538f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x340077)return;const _0x3b1f0c=await _0x340077[_0x31538f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31538f([0x6a,0x77,0x6b]),_0x3d96ba,{[_0x31538f([0x6e,0x61,0x6d,0x65])]:_0x31538f([0x45,0x43,0x44,0x53,0x41]),[_0x31538f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31538f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31538f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x340077[_0x31538f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31538f([0x6e,0x61,0x6d,0x65])]:_0x31538f([0x45,0x43,0x44,0x53,0x41]),[_0x31538f([0x68,0x61,0x73,0x68])]:{[_0x31538f([0x6e,0x61,0x6d,0x65])]:_0x31538f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b1f0c,_0x1d3572,_0x2c9709)||(_0x2c6554=!0x1);}}function _0xc27f9a(_0x4f5401){return _0x4f5401[_0x31538f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31538f([0x65,0x79]))?JSON[_0x31538f([0x70,0x61,0x72,0x73,0x65])](_0x2d110a(_0x4f5401)):null;}function _0x2d110a(_0x2a22a8){return window[_0x31538f([0x61,0x74,0x6f,0x62])](_0x2a22a8[_0x31538f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31538f([0x2b]))[_0x31538f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31538f([0x2f])));}function _0x22be4f(_0x799aab){let _0x23c33c=0x1505;function _0x4ad1bc(_0x22e339){for(let _0x5c210c=0x0;_0x5c210c<_0x22e339[_0x31538f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c210c++){const _0x3a6860=_0x22e339[_0x31538f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c210c);_0x23c33c=(_0x23c33c<<0x5)+_0x23c33c+_0x3a6860,_0x23c33c&=_0x23c33c;}}function _0x3c48d1(_0x4bab38){Array[_0x31538f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4bab38)?_0x4bab38[_0x31538f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c48d1):_0x4bab38&&typeof _0x4bab38==_0x31538f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31538f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4bab38)[_0x31538f([0x73,0x6f,0x72,0x74])]()[_0x31538f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43f5cd,_0xd2d1ef])=>{_0x4ad1bc(_0x43f5cd),_0x3c48d1(_0xd2d1ef);}):_0x4ad1bc(window[_0x31538f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4bab38));}return _0x3c48d1(_0x799aab),_0x23c33c>>>0x0;}function _0x563915(_0x3b00c0){return _0x3b00c0[_0x31538f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31538f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31538f([0x30]));}function _0x1a92c4(_0x21cdb6){return _0x21cdb6[_0x31538f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31538f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31538f([0x6a,0x6f,0x69,0x6e])]('');}function _0x111de2(){}function _0x31538f(_0x29d335){return _0x29d335['map'](_0x56a842=>String['fromCharCode'](_0x56a842))['join']('');}_0x40d060(await _0x1d7ae8());}(this);}['_initSchema'](){const _0x29a6b5=this['editor']['model']['schema'];_0x29a6b5['isRegistered']('imageBlock')&&_0x29a6b5['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x29a6b5['isRegistered']('imageInline')&&_0x29a6b5['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x743d5=this['editor'];_0x743d5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x743d5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x27bd29=>_0x27bd29['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x579f54=_0x743d5['commands']['get']('replaceImageSource');_0x579f54&&this['listenTo'](_0x579f54,'cleanupImage',(_0x405a27,[_0x2ed644,_0x4738a0])=>{_0x2ed644['removeAttribute']('uploadcareImageId',_0x4738a0);});}['_initConfig'](){const _0x228fb5=this['editor']['config']['get']('uploadcare.uploader')||{},_0xd67a69=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4febfc(_0x5d46ac['document'],'uc-config',{..._0x228fb5,'pubkey':_0xd67a69,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x11399d=>{if('closeMax'==_0x11399d)return'#uc-icon-arrow-down';},_0x5d46ac['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4febfc(_0x5d46ac['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5d46ac['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x20a4d1=this['editor']['commands']['get']('insertImage');_0x20a4d1&&this['listenTo'](_0x20a4d1,'execute',()=>{const _0x54973a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x54973a&&_0x54973a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x54973a);});});const _0x14bf92=this['editor']['commands']['get']('uploadcareImageReplace');_0x14bf92&&this['listenTo'](_0x14bf92,'execute',()=>{const _0x12fa3d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x12fa3d&&_0x12fa3d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x12fa3d);});});}}class tt extends _0x29bee5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24f44d){super(_0x24f44d),_0x24f44d['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x545350['defineComponents'](_0x545350),this['_defineLocale']();}['_defineLocale'](){const _0x1fe1da=this['editor']['config']['get']('uploadcare.locale'),_0x3262fa=this['editor']['locale']['contentLanguage'];_0x1fe1da&&_0x545350['defineLocale'](_0x3262fa,_0x1fe1da);}}class ii extends _0xd9dba9{constructor(_0x1bcb64){super(_0x1bcb64);const t=_0x1bcb64['t'],_0x4d5ea2=this['bindTemplate'],_0x5691d0=new _0x1ca3c8();_0x5691d0['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':[_0x5691d0,{'text':_0x4d5ea2['to']('imageUploadProgress',_0x71e18a=>t('Loading\x20image...')+'\x20('+(_0x71e18a||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0xd9dba9{constructor(_0x1975b8){super(_0x1975b8);const t=_0x1975b8['t'];this['set']('errorType',null);const _0x33cd49=new _0x47a0cc(_0x1975b8);_0x33cd49['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x33cd49['withText']=!0x0,_0x33cd49['class']='ck-button-action',_0x33cd49['on']('execute',()=>{this['fire']('retry');}),_0x33cd49['bind']('isVisible')['to'](this,'errorType',_0x4066b8=>'NotFound'!==_0x4066b8);const _0x2a8d6c=new _0x461190();_0x2a8d6c['content']=_0x57e963,_0x2a8d6c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x51846f=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':[_0x2a8d6c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x51846f['to']('errorType',_0x5c44b7=>t('NotFound'!==_0x5c44b7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x33cd49]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0xd9dba9{constructor(_0x53c5db,_0x4aa8f5){super(_0x53c5db);const _0x6fdbdd=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4aa8f5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x6fdbdd['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2f116f,_0x4aa993,_0x49aecd){super(_0x2f116f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2f116f),this['_errorView']=new ti(_0x2f116f),this['_editingView']=new ei(_0x2f116f,_0x49aecd),this['_focusableView']=new _0xd9dba9(_0x2f116f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4aa993),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'],_0x25220f=>{this['_addUploadcareImageEditorListeners'](_0x25220f);});}),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'](_0x243c63,_0x39f3e9){const _0x2bb477='uc-cloud-image-editor',_0x1a4187=_0x243c63['querySelector'](_0x2bb477);if(_0x1a4187)return _0x39f3e9(_0x1a4187);const _0x276cd=new MutationObserver(_0x223b3d=>{const _0x27d3ff=_0x223b3d['filter'](_0x4e3009=>_0x4e3009['target']===_0x243c63&&_0x4e3009['addedNodes']['length']>0x0&&_0x4e3009['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2bb477);_0x27d3ff['length']&&(_0x276cd['disconnect'](),_0x39f3e9(_0x27d3ff[0x0]['addedNodes'][0x0]));});_0x276cd['observe'](_0x243c63,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5b74ca){_0x5b74ca['addEventListener']('apply',_0x303260=>{this['fire']('apply',{'imageSrc':_0x303260['detail']['cdnUrl']});}),_0x5b74ca['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x19e745(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4863ab,_0x43da90,_0x54d68b){super(),this['_editor']=_0x4863ab,this['_dialog']=_0x43da90,this['_imageElement']=_0x54d68b,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 _0x432176=this['_imageElement'],_0x482f9e=_0x432176['getAttribute']('uploadcareImageId'),_0x544ed6=_0x432176['getAttribute']('src');if(_0x482f9e)await this['_loadImageInfo'](_0x482f9e,_0x544ed6);else{if(this['_imageCache']['has'](_0x544ed6)){const _0x3f95af=this['_imageCache']['get'](_0x544ed6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f95af['url'],this['imageDimension']=_0x3f95af['dimension'],this['imageId']=_0x3f95af['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x17507a}=this['_editor'],t=_0x17507a['t'],_0x280265=new X(_0x17507a,this['imageStatus'],this['_attributes']);_0x280265['bind']('status')['to'](this,'imageStatus'),_0x280265['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x280265['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x280265['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x280265,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x51f9bc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x280265,'position':_0x1ac603['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x280265['focus']();},'onHide':()=>{_0x280265['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x48fcb5=>!A(_0x48fcb5,_0x280265['element'])}});}['_loadImageInfo'](_0x5cbc76,_0x2fbd6b){return j['getInfo'](_0x5cbc76,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x59e3bc=>{const {width:_0x381b6f,height:_0xbda1d8}=_0x59e3bc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2fbd6b,this['imageDimension']={'width':_0x381b6f,'height':_0xbda1d8},this['imageId']=_0x5cbc76;})['catch'](_0x41f8d0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x41f8d0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x195d98,_0x407859){return this['_getImageAsFile'](_0x195d98)['then'](_0x2c82a8=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x407859['signal'],'file':_0x2c82a8,'onProgress':_0x50ade7=>{_0x50ade7&&_0x50ade7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x50ade7['value']));}}))['then'](_0x2832ec=>{const {width:_0x5b288a,height:_0x55b48f}=_0x2832ec['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2832ec['cdnUrl'],this['imageDimension']={'width':_0x5b288a,'height':_0x55b48f},this['imageId']=_0x2832ec['uuid'],this['imageUploadProgress']=null;const _0x1ab55a=_0x195d98['getAttribute']('src');this['_imageCache']['set'](_0x1ab55a,{'id':_0x2832ec['uuid'],'url':_0x2832ec['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3320d2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3320d2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2301b2,_0x3beb56){_0x2301b2['on']('apply',(_0x161380,_0x38f09a)=>{this['_replaceImage'](_0x3beb56,_0x38f09a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2301b2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2301b2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x579e49,_0x40d0da,_0x4d061a){const _0x3e5f69=this['_editor'],{width:_0x5edfda,height:_0x2d2e4e}=S(_0x40d0da,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2ad88c,imageSources:_0x26d02f}=C(_0x40d0da,_0x5edfda);_0x3e5f69['model']['change'](_0x500641=>{if('$graveyard'===_0x579e49['root']['rootName']){_0x3e5f69['execute']('insertImage',{'imageType':_0x579e49['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x579e49['getAttributes']()),'uploadcareImageId':_0x4d061a,'src':_0x2ad88c,'sources':_0x26d02f,'width':_0x5edfda,'height':_0x2d2e4e}});const _0x4703b9=_0x579e49['getChildren']();_0x579e49=_0x3e5f69['model']['document']['selection']['getSelectedElement']();for(const _0x22db40 of _0x4703b9)_0x500641['append'](_0x500641['cloneElement'](_0x22db40),_0x579e49);}else _0x500641['setSelection'](_0x579e49,'on'),_0x3e5f69['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x579e49['getAttributes']()),'uploadcareImageId':_0x4d061a,'src':_0x2ad88c,'sources':_0x26d02f,'width':_0x5edfda,'height':_0x2d2e4e},_0x579e49);_0x500641['setSelection'](_0x579e49,'on');});}async['_getImageAsFile'](_0x19fd81){const _0x390755=_0x5d46ac['window'],_0x318a7c=_0x5d46ac['document']['location']['href'],_0x17091d=new _0x390755['URL'](_0x19fd81['getAttribute']('src'),_0x318a7c);if('data:'===_0x17091d['protocol']){const _0x4516e3=_0x17091d['href']['split'](','),_0x14317e=_0x4516e3[0x0]['match'](/:(.*?);/)[0x1],_0xb22d60=_0x14317e['split']('/')[0x1],_0x5cf64d=_0x390755['atob'](_0x4516e3[_0x4516e3['length']-0x1]);let _0x5292ab=_0x5cf64d['length'];const _0x59d4d2=new _0x390755['Uint8Array'](_0x5292ab);for(;_0x5292ab--;)_0x59d4d2[_0x5292ab]=_0x5cf64d['charCodeAt'](_0x5292ab);return new _0x390755['File']([_0x59d4d2],'image.'+_0xb22d60,{'type':_0x14317e});}const _0x5157ff=_0x17091d['href']['split']('/'),_0x2d2f19=_0x5157ff[_0x5157ff['length']-0x1],_0x306621=_0x2d2f19['split']('.')[0x1];return _0x390755['fetch'](_0x17091d['href'])['then'](_0x11d4e5=>_0x11d4e5['clone']()['blob']())['then'](_0x375c79=>new _0x390755['File']([_0x375c79],_0x2d2f19,{'type':'image/'+_0x306621}));}}class O extends _0xcb363d{['imageEditController'];static get['requires'](){return[_0x2f2649];}['_isEditable'];constructor(_0x1bf933){super(_0x1bf933),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1569d7){const _0x2b03c9=G(_0x1569d7);return _0x341f7f=>!(!_0x341f7f||!_0x341f7f['is']('element','imageBlock')&&!_0x341f7f['is']('element','imageInline'))&&(!!_0x341f7f['hasAttribute']('uploadcareImageId')||!!_0x341f7f['hasAttribute']('src')&&_0x2b03c9(_0x341f7f['getAttribute']('src')));}(_0x1bf933['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4885ba=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4885ba);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4b0838=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b0838&&(_0x4b0838['is']('element','imageBlock')||_0x4b0838['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2f2649),_0x4b0838),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0xcb363d{['refresh'](){const _0x11a4d4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x11a4d4&&(_0x11a4d4['is']('element','imageBlock')||_0x11a4d4['is']('element','imageInline')));}['execute'](_0x353bb4){const _0x382f16=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1347e7=>{_0x1347e7['setAttributes'](_0x353bb4,_0x382f16),_0x1347e7['removeAttribute']('srcset',_0x382f16),_0x1347e7['removeAttribute']('sizes',_0x382f16);});}}class m extends _0x29bee5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4269a4,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xab5ad3}=this;_0xab5ad3['commands']['add']('uploadcareImageEdit',new O(_0xab5ad3)),_0xab5ad3['commands']['add']('uploadcareImageReplace',new R(_0xab5ad3));}}class g extends _0x29bee5{['_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 _0x4191af=this['editor'];_0x4191af['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1a730f=>{const _0xb6ca5b=_0x4191af['commands']['get']('uploadcareImageEdit'),_0x2289dd=new _0x47a0cc(_0x1a730f),t=_0x1a730f['t'];return _0x2289dd['set']({'icon':_0x51f9bc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2289dd['bind']('isEnabled')['to'](_0xb6ca5b),_0x2289dd['bind']('isOn')['to'](_0xb6ca5b,'isActive'),this['listenTo'](_0x2289dd,'execute',()=>{_0x4191af['execute']('uploadcareImageEdit'),_0x4191af['editing']['view']['focus']();}),_0x2289dd;}),this['_initConfig']();}['_initConfig'](){const _0x4a6ba9=_0x4febfc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4a6ba9),this['listenTo'](this['editor'],'destroy',()=>{_0x4a6ba9['remove']();});}}class et extends _0x29bee5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x57d7da=>0x1!=_0x57d7da}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x472c57=>{const {af:{dictionary:_0x37a88e,getPluralForm:_0x307957}}={'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':_0x546291=>0x1!=_0x546291}};_0x472c57['af']||={'dictionary':{},'getPluralForm':null},_0x472c57['af']['dictionary']=Object['assign'](_0x472c57['af']['dictionary'],_0x37a88e),_0x472c57['af']['getPluralForm']=_0x307957;})(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':_0x18985d=>0x0==_0x18985d?0x0:0x1==_0x18985d?0x1:0x2==_0x18985d?0x2:_0x18985d%0x64>=0x3&&_0x18985d%0x64<=0xa?0x3:_0x18985d%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5595cf=>{const {ar:{dictionary:_0x268063,getPluralForm:_0x43de18}}={'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':_0xd5e1d7=>0x0==_0xd5e1d7?0x0:0x1==_0xd5e1d7?0x1:0x2==_0xd5e1d7?0x2:_0xd5e1d7%0x64>=0x3&&_0xd5e1d7%0x64<=0xa?0x3:_0xd5e1d7%0x64>=0xb?0x4:0x5}};_0x5595cf['ar']||={'dictionary':{},'getPluralForm':null},_0x5595cf['ar']['dictionary']=Object['assign'](_0x5595cf['ar']['dictionary'],_0x268063),_0x5595cf['ar']['getPluralForm']=_0x43de18;})(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':_0x10e1c0=>0x1!=_0x10e1c0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2dc4cb=>{const {ast:{dictionary:_0x594fb8,getPluralForm:_0x10dd9b}}={'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':_0x404b50=>0x1!=_0x404b50}};_0x2dc4cb['ast']||={'dictionary':{},'getPluralForm':null},_0x2dc4cb['ast']['dictionary']=Object['assign'](_0x2dc4cb['ast']['dictionary'],_0x594fb8),_0x2dc4cb['ast']['getPluralForm']=_0x10dd9b;})(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':_0x368216=>0x1!=_0x368216}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5e0e32=>{const {az:{dictionary:_0x2ed29b,getPluralForm:_0x3f3ece}}={'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':_0x58ccd9=>0x1!=_0x58ccd9}};_0x5e0e32['az']||={'dictionary':{},'getPluralForm':null},_0x5e0e32['az']['dictionary']=Object['assign'](_0x5e0e32['az']['dictionary'],_0x2ed29b),_0x5e0e32['az']['getPluralForm']=_0x3f3ece;})(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':_0x274024=>_0x274024%0xa==0x1&&_0x274024%0x64!=0xb?0x0:_0x274024%0xa>=0x2&&_0x274024%0xa<=0x4&&(_0x274024%0x64<0xa||_0x274024%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x398829=>{const {be:{dictionary:_0x1a84d3,getPluralForm:_0x4891c1}}={'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':_0xa2e9fc=>_0xa2e9fc%0xa==0x1&&_0xa2e9fc%0x64!=0xb?0x0:_0xa2e9fc%0xa>=0x2&&_0xa2e9fc%0xa<=0x4&&(_0xa2e9fc%0x64<0xa||_0xa2e9fc%0x64>=0x14)?0x1:0x2}};_0x398829['be']||={'dictionary':{},'getPluralForm':null},_0x398829['be']['dictionary']=Object['assign'](_0x398829['be']['dictionary'],_0x1a84d3),_0x398829['be']['getPluralForm']=_0x4891c1;})(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':_0x5e99af=>0x1!=_0x5e99af}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4ab010=>{const {bg:{dictionary:_0x2a8ccc,getPluralForm:_0x4ccbd1}}={'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':_0x4f2f8d=>0x1!=_0x4f2f8d}};_0x4ab010['bg']||={'dictionary':{},'getPluralForm':null},_0x4ab010['bg']['dictionary']=Object['assign'](_0x4ab010['bg']['dictionary'],_0x2a8ccc),_0x4ab010['bg']['getPluralForm']=_0x4ccbd1;})(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':_0x5c9996=>0x1!=_0x5c9996}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4221a0=>{const {bn:{dictionary:_0x5311ea,getPluralForm:_0x45ac5b}}={'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':_0x45bf10=>0x1!=_0x45bf10}};_0x4221a0['bn']||={'dictionary':{},'getPluralForm':null},_0x4221a0['bn']['dictionary']=Object['assign'](_0x4221a0['bn']['dictionary'],_0x5311ea),_0x4221a0['bn']['getPluralForm']=_0x45ac5b;})(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':_0x32cd21=>_0x32cd21%0xa==0x1&&_0x32cd21%0x64!=0xb?0x0:_0x32cd21%0xa>=0x2&&_0x32cd21%0xa<=0x4&&(_0x32cd21%0x64<0xa||_0x32cd21%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x6708c9=>{const {bs:{dictionary:_0x22d72c,getPluralForm:_0x3c7260}}={'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':_0x3ca750=>_0x3ca750%0xa==0x1&&_0x3ca750%0x64!=0xb?0x0:_0x3ca750%0xa>=0x2&&_0x3ca750%0xa<=0x4&&(_0x3ca750%0x64<0xa||_0x3ca750%0x64>=0x14)?0x1:0x2}};_0x6708c9['bs']||={'dictionary':{},'getPluralForm':null},_0x6708c9['bs']['dictionary']=Object['assign'](_0x6708c9['bs']['dictionary'],_0x22d72c),_0x6708c9['bs']['getPluralForm']=_0x3c7260;})(window['CKEDITOR_TRANSLATIONS']||={});
|