@ckeditor/ckeditor5-uploadcare 47.7.4 → 47.7.5-alpha.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 _0x384b05,Command as _0x5163d4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x10dcd1,IconGooglePhotos as _0x233023,IconGoogleDrive as _0x4b4509,IconFacebook as _0x438a28,IconDropbox as _0x574277,IconUploadcareLink as _0x32594f,IconUploadcareImageUpload as _0x475b9f,IconError as _0x5a9918,IconUploadcareImageEdit as _0x3194c0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x586a1a,MenuBarMenuListItemButtonView as _0x316074,View as _0x50309c,FocusCycler as _0x415612,Dialog as _0x4af5cd,DialogViewPosition as _0x3caf1c,SpinnerView as _0x1b9c2e,IconView as _0xc7ecbe,Notification as _0x56a37f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xa2702b,DomEmitterMixin as _0x106bbc,global as _0x338233,getAncestors as _0x55687f,ObservableMixin as _0x288475,uid as _0x195b79,createElement as _0x1f8550}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1d11e6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5e8699,info as _0x7d58b1}from'@uploadcare/upload-client';import*as _0xa30f48 from'@uploadcare/file-uploader';var i=function(_0x39751d){return _0x39751d['Local']='local',_0x39751d['URL']='url',_0x39751d['Dropbox']='dropbox',_0x39751d['GDrive']='gdrive',_0x39751d['Facebook']='facebook',_0x39751d['GPhotos']='gphotos',_0x39751d['OneDrive']='onedrive',_0x39751d;}({});function _(_0x239b53,_0x5d8a18,_0x112edf){const t=_0x239b53['t'],_0x202fe9=_0x239b53['t'];switch(_0x5d8a18){case i['Local']:return{'text':_0x202fe9('Insert'===_0x112edf?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x202fe9('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x112edf?_0x202fe9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x202fe9('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x112edf?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x112edf?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x112edf?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x112edf?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x112edf?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5d8a18;}}class e extends _0x384b05{['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 _0x428d53=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c53a2;for(const _0x26ef01 in _0x428d53){const _0x1c1f08=_0x26ef01,_0x564163=_0x428d53[_0x1c1f08];if('uploadcareLicenseKeyValid'==_0x564163||'uploadcareLicenseKeyInvalid'==_0x564163||'uploadcareLicenseKeyExpired'==_0x564163||'uploadcareLicenseKeyDomainLimit'==_0x564163||'uploadcareLicenseKeyNotAllowed'==_0x564163||'uploadcareLicenseKeyEvaluationLimit'==_0x564163||'uploadcareLicenseKeyUsageLimit'==_0x564163){delete _0x428d53[_0x1c1f08],_0x1c53a2=_0x564163,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1c53a2&&_0x428d53['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1c53a2&&_0x428d53['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1c53a2&&_0x428d53['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1c53a2&&_0x428d53['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1c53a2&&_0x428d53['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1c53a2&&_0x428d53['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5b99cb}=this,_0x101ece=_0x5b99cb['commands']['get']('uploadcare');if(!_0x101ece)return;const _0x4aa1bf=this['_normalizeConfigSourceList'](_0x5b99cb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3c8fa4,_0x4a6843)=>{const _0x34cf3a=this['_getIntegrationKey'](_0x4a6843['type']);return _0x3c8fa4[_0x34cf3a]||(_0x3c8fa4[_0x34cf3a]=[]),_0x3c8fa4[_0x34cf3a]['push'](_0x4a6843),_0x3c8fa4;},{});_0x5b99cb['plugins']['has']('ImageInsertUI')&&_0x5b99cb['commands']['get']('uploadcare')&&Object['entries'](_0x4aa1bf)['forEach'](([_0x5b0747,_0x553741])=>{_0x5b99cb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5b0747,'observable':()=>_0x101ece,'buttonViewCreator':()=>this['_createToolbarButton'](_0x553741),'formViewCreator':()=>this['_createDropdownButtons'](_0x553741),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x553741),'override':'assetManager'!==_0x5b0747});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1c9503){const {locale:_0x59ee07}=this['editor'];return _0x1c9503['map'](_0x4f3522=>{const _0x3659a7=_(_0x59ee07,_0x4f3522,'Insert');switch(_0x4f3522){case i['Local']:return{'icon':_0x475b9f,'type':i['Local'],..._0x3659a7};case i['URL']:return{'icon':_0x32594f,'type':i['URL'],..._0x3659a7};case i['Dropbox']:return{'icon':_0x574277,'type':i['Dropbox'],..._0x3659a7};case i['Facebook']:return{'icon':_0x438a28,'type':i['Facebook'],..._0x3659a7};case i['GDrive']:return{'icon':_0x4b4509,'type':i['GDrive'],..._0x3659a7};case i['GPhotos']:return{'icon':_0x233023,'type':i['GPhotos'],..._0x3659a7};case i['OneDrive']:return{'icon':_0x10dcd1,'type':i['OneDrive'],..._0x3659a7};}});}['_getIntegrationKey'](_0x442ad6){switch(_0x442ad6){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3df638,_0x1ca8b1){const _0x2d1225=this['editor'],_0x32b5c8=new _0x3df638(_0x2d1225['locale']),_0x304b0c=_0x2d1225['commands']['get']('uploadcare');return _0x32b5c8['bind']('isEnabled')['to'](_0x304b0c),_0x32b5c8['on']('execute',()=>{_0x304b0c['execute'](_0x1ca8b1);}),_0x32b5c8;}['_createToolbarButton'](_0x30bae2){const {locale:_0x5c52c4}=this['editor'],_0x5517ad=this['editor']['plugins']['get']('ImageInsertUI'),_0xe3f2f3=_0x30bae2[0x0],_0xf51606=this['_createButton'](_0x586a1a,_0xe3f2f3['type']);return _0xf51606['icon']=_0xe3f2f3['icon'],_0xf51606['bind']('label')['to'](_0x5517ad,'isImageSelected',_0x937d56=>_(_0x5c52c4,_0xe3f2f3['type'],_0x937d56?'Replace':'Insert')['text']),_0xf51606['tooltip']=!0x0,_0xf51606;}['_createDropdownButtons'](_0x2fd422){const {locale:_0x1058cd}=this['editor'],_0x92c9e8=this['editor']['plugins']['get']('ImageInsertUI');return _0x2fd422['map'](_0x26d7dd=>{const _0x52f3b1=this['_createButton'](_0x586a1a,_0x26d7dd['type']);return _0x52f3b1['withText']=!0x0,_0x52f3b1['icon']=_0x26d7dd['icon'],_0x52f3b1['bind']('label')['to'](_0x92c9e8,'isImageSelected',_0x12f772=>_(_0x1058cd,_0x26d7dd['type'],_0x12f772?'Replace':'Insert')['text']),_0x52f3b1;});}['_createMenuBarButtons'](_0x3f29c5){return _0x3f29c5['map'](_0x577319=>{const _0x9f0f8c=this['_createButton'](_0x316074,_0x577319['type']);return _0x9f0f8c['icon']=_0x577319['icon'],_0x9f0f8c['label']=_0x577319['shortText'],_0x9f0f8c;});}}class F extends _0x50309c{['focusTracker'];['focusCycler'];constructor(_0x53bbf8){super(_0x53bbf8),this['focusTracker']=new _0xa2702b(),this['focusCycler']=new _0x415612({'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 H extends F{constructor(_0x411758,_0x24e9dd){super(_0x411758),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-'+_0x24e9dd}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function A(_0x5dd990,_0x4fe51f){const _0x3251f7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xea67fa=>_0xea67fa<=_0x4fe51f)['map'](_0x45c7d7=>_0x5dd990['replace'](/\/$/,'')+'/-/resize/'+_0x45c7d7+'x/\x20'+_0x45c7d7+'w');return{'imageFallbackUrl':_0x5dd990,'imageSources':[{'srcset':_0x3251f7['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4fe51f+'px)\x20100vw,\x20'+_0x4fe51f+'px','type':'image/webp'}]};}function x(_0x3a9d56,_0xb54f03,_0x509256){const _0x146638=_0x3a9d56['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x146638?parseInt(_0x146638[0x1],0xa):_0xb54f03,'height':_0x146638?parseInt(_0x146638[0x2],0xa):_0x509256};}function p(_0x245aa1,_0x32e389){const _0x1629d9=new(_0x106bbc())(),_0x2b9e0d=_0x245aa1['plugins']['get']('ImageUtils'),_0x4316b7=_0x245aa1['editing']['mapper']['toViewElement'](_0x32e389),_0x31e33b=_0x2b9e0d['findViewImgElement'](_0x4316b7),_0x2658f2=_0x245aa1['editing']['view']['domConverter']['viewToDom'](_0x31e33b),_0x5ba3c2=_0x32e389['getAttribute']('width'),_0xe997a9=_0x32e389['getAttribute']('height'),_0x54ebaa='image-processing';_0x245aa1['editing']['view']['change'](_0x12d5a0=>{_0x12d5a0['addClass'](_0x54ebaa,_0x4316b7),_0x12d5a0['setStyle']('aspect-ratio',_0x5ba3c2+'/'+_0xe997a9,_0x31e33b);}),_0x1629d9['listenTo'](_0x2658f2,'load',()=>{_0x1629d9['stopListening'](_0x2658f2,'load'),_0x245aa1['editing']['view']['change'](_0x44925e=>{_0x44925e['removeClass'](_0x54ebaa,_0x4316b7),_0x44925e['removeStyle']('aspect-ratio',_0x31e33b);});});}function S(_0x23d8b8){if(Array['isArray'](_0x23d8b8)){const _0x79374=_0x23d8b8['map'](S);return _0x3942e0=>_0x79374['some'](_0x3c476b=>_0x3c476b(_0x3942e0));}if('origin'==_0x23d8b8){const _0x464a82=_0x338233['window']['location']['origin'];return _0x18b3bc=>new URL(_0x18b3bc,_0x338233['document']['baseURI'])['origin']==_0x464a82;}return'function'==typeof _0x23d8b8?_0x23d8b8:_0x23d8b8 instanceof RegExp?_0x3e3c1c=>!(!_0x3e3c1c['match'](_0x23d8b8)&&!_0x3e3c1c['replace'](/^https?:\/\//,'')['match'](_0x23d8b8)):()=>!0x1;}function C(_0x5a189e,_0x14b6bf){return _0x55687f(_0x5a189e['target'])['includes'](_0x14b6bf);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x288475(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4a5a57,_0x1db378,_0x5f1d73){super(),this['_editor']=_0x4a5a57,this['_editing']=_0x1db378,this['_dialog']=_0x4a5a57['plugins']['get'](_0x4af5cd),this['_api']=_0x1db378['ctxElement']['getAPI'](),this['_type']=_0x5f1d73,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:_0x5a19eb,model:_0x56414b}=this['_editor'],_0x37eb56=_0x56414b['document']['selection']['getSelectedElement'](),_0x3d1340=_0x37eb56&&(_0x37eb56['is']('element','imageBlock')||_0x37eb56['is']('element','imageInline'));this['_formView']=new H(_0x5a19eb,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x475b9f,'title':_(_0x5a19eb,this['_type'],_0x3d1340?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3caf1c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x37cba0=>!C(_0x37cba0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x444e02}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x194892=>{const _0x4e1095=_0x444e02['length'];for(const _0x56075c of _0x444e02){const _0x40d917=_0x56075c===_0x444e02[_0x4e1095-0x1],{cdnUrl:_0x1a6d52,fileInfo:_0x13ecfd}=_0x56075c;if(!_0x1a6d52||!_0x13ecfd)continue;const {width:_0x279cd0,height:_0x7c1013}=_0x13ecfd['imageInfo'],_0x119618=x(_0x1a6d52,_0x279cd0,_0x7c1013),_0x9ec3da=A(_0x1a6d52,_0x119618['width']),_0x12ac10={'id':_0x13ecfd['uuid'],'type':'image','attributes':{'imageDimension':_0x119618,..._0x9ec3da}};this['_insertAsset'](_0x12ac10,_0x40d917,_0x194892);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x347466=>{'idle'===_0x347466['detail']['status']&&!_0x347466['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1b7dce,_0x326a6c,_0x7bc858){const _0x30e626=this['_editor']['model']['document']['selection'],_0x32fc28=_0x30e626['getSelectedElement'](),_0x2bf4d8=!(!_0x32fc28||!_0x32fc28['is']('element','imageInline'));_0x7bc858['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1b7dce,_0x2bf4d8),_0x326a6c||_0x7bc858['setSelection'](_0x30e626['getLastPosition']());}['_insertImage'](_0x14e827,_0x2eb465){const _0x5ed8f4=this['_editor'],{imageDimension:_0x382c13,imageFallbackUrl:_0x297c10,imageSources:_0x45a952}=_0x14e827['attributes'];_0x5ed8f4['execute']('insertImage',{'imageType':_0x2eb465?'imageInline':null,'source':{'uploadcareImageId':_0x14e827['id'],'src':_0x297c10,'sources':_0x45a952,..._0x382c13}});}}class w extends _0x5163d4{['_editing'];['_controller']=null;static get['requires'](){return[_0x4af5cd,o];}constructor(_0x542366){super(_0x542366),this['_editing']=_0x542366['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x58ce06){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x58ce06);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5dc2b0,..._0x4ac71e}){return _0x5e8699(_0x5dc2b0,_0x4ac71e);}static['getInfo'](_0x52b487,_0x24bcb4){return _0x7d58b1(_0x52b487,_0x24bcb4);}}class f extends _0x384b05{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1d11e6,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x42af55=this['editor'];if(!!!_0x42af55['config']['get']('uploadcare'))return;_0x42af55['plugins']['get'](_0x1d11e6)['createUploadAdapter']=_0x10fc3a=>new Adapter(_0x10fc3a,_0x42af55),_0x42af55['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x114fe7,{imageElement:_0x45f4b8,data:_0x44c513})=>{_0x42af55['model']['change'](_0x58c441=>{_0x58c441['setAttribute']('uploadcareImageId',_0x44c513['uploadcareImageId'],_0x45f4b8);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x1e396c,_0x5b4706){this['loader']=_0x1e396c,this['editor']=_0x5b4706,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2a19bb=await this['loader']['file'];return j['upload']({'file':_0x2a19bb,'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':_0xf496a8=>{_0xf496a8&&_0xf496a8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xf496a8['value']);}})['then'](async _0x5c84e4=>{const {imageFallbackUrl:_0x37e5fb,imageSources:_0x3d0086}=A(_0x5c84e4['cdnUrl'],_0x5c84e4['imageInfo']['width']);return{'uploadcareImageId':_0x5c84e4['uuid'],'default':_0x37e5fb,'sources':_0x3d0086};})['catch'](()=>{const _0x1d525a=t('Cannot\x20upload\x20file:')+('\x20'+_0x2a19bb['name']+'.');return Promise['reject'](_0x1d525a);});}['abort'](){this['controller']['abort']();}}class o extends _0x384b05{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4af5cd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5d9f11){super(_0x5d9f11),this['ucContextId']=_0x195b79();}['init'](){const _0x4198b5=this['editor'];_0x4198b5['commands']['add']('uploadcare',new w(_0x4198b5));}['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 _0x40f44b=_0x338233['document']['querySelector']('input[uploadcare-file-input]');_0x40f44b&&_0x40f44b['remove']();}),async function(_0xfbec30){const _0x43825f=_0x42b4d6([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]),_0x274b86=0x535f8c3a,_0x2d97df=0x535819fa^_0x274b86,_0x421156=window[_0x42b4d6([0x44,0x61,0x74,0x65])][_0x42b4d6([0x6e,0x6f,0x77])](),_0x26dc7e=_0xfbec30[_0x42b4d6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x345698=new window[(_0x42b4d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ca277=>{_0x26dc7e[_0x42b4d6([0x6f,0x6e,0x63,0x65])](_0x42b4d6([0x72,0x65,0x61,0x64,0x79]),_0x5ca277);}),_0x51e58c={[_0x42b4d6([0x6b,0x74,0x79])]:_0x42b4d6([0x45,0x43]),[_0x42b4d6([0x75,0x73,0x65])]:_0x42b4d6([0x73,0x69,0x67]),[_0x42b4d6([0x63,0x72,0x76])]:_0x42b4d6([0x50,0x2d,0x32,0x35,0x36]),[_0x42b4d6([0x78])]:_0x42b4d6([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]),[_0x42b4d6([0x79])]:_0x42b4d6([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]),[_0x42b4d6([0x61,0x6c,0x67])]:_0x42b4d6([0x45,0x53,0x32,0x35,0x36])},_0x105d55=_0x26dc7e[_0x42b4d6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42b4d6([0x67,0x65,0x74])](_0x42b4d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c054a(){let _0x36d00,_0x3a66b3=null,_0x2297a4=null;try{if(_0x105d55==_0x42b4d6([0x47,0x50,0x4c]))return _0x42b4d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36d00=_0x3e5125(),!_0x36d00)return _0x42b4d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36d00[_0x42b4d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2297a4=_0x3cbf14(_0x36d00[_0x42b4d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36d00[_0x42b4d6([0x6a,0x74,0x69])])),await _0x42d22a()?_0x2294da()?_0x521068()?_0x42b4d6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x233912()?(_0x36d00[_0x42b4d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42b4d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a66b3=_0x20d920(_0x42b4d6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28181e()):_0x42b4d6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42b4d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42b4d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42b4d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x521068(){const _0x38c758=[_0x42b4d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42b4d6([0x74,0x72,0x69,0x61,0x6c])][_0x42b4d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36d00[_0x42b4d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x421156/0x3e8:0xe10*_0x2d97df;return _0x36d00[_0x42b4d6([0x65,0x78,0x70])]<_0x38c758;}function _0x2294da(){const _0x29d34c=_0x36d00[_0x42b4d6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x29d34c&&(!!_0x29d34c[_0x42b4d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b4d6([0x2a]))||!!_0x29d34c[_0x42b4d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b4d6([0x55,0x50,0x4c,0x43])));}function _0x233912(){const _0x5629ac=_0x36d00[_0x42b4d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5629ac||0x0==_0x5629ac[_0x42b4d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x388d61}=new URL(window[_0x42b4d6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5629ac[_0x42b4d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x388d61))return!0x0;const _0x40366d=_0x388d61[_0x42b4d6([0x73,0x70,0x6c,0x69,0x74])](_0x42b4d6([0x2e]));return _0x5629ac[_0x42b4d6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x563f99=>_0x563f99[_0x42b4d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b4d6([0x2a])))[_0x42b4d6([0x6d,0x61,0x70])](_0x458e63=>_0x458e63[_0x42b4d6([0x73,0x70,0x6c,0x69,0x74])](_0x42b4d6([0x2e])))[_0x42b4d6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x221561=>_0x221561[_0x42b4d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40366d[_0x42b4d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42b4d6([0x6d,0x61,0x70])](_0x5d3a8c=>Array(_0x40366d[_0x42b4d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d3a8c[_0x42b4d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42b4d6([0x66,0x69,0x6c,0x6c])](_0x5d3a8c[0x0]===_0x42b4d6([0x2a])?_0x42b4d6([0x2a]):'')[_0x42b4d6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d3a8c))[_0x42b4d6([0x73,0x6f,0x6d,0x65])](_0xeefcae=>_0x40366d[_0x42b4d6([0x65,0x76,0x65,0x72,0x79])]((_0x1b5233,_0x1ec128)=>_0xeefcae[_0x1ec128]===_0x1b5233||_0xeefcae[_0x1ec128]===_0x42b4d6([0x2a])));}function _0x28181e(){return _0x3a66b3&&_0x2297a4?new window[(_0x42b4d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4299dd,_0x3ec2eb)=>{_0x3a66b3[_0x42b4d6([0x74,0x68,0x65,0x6e])](_0x4299dd,_0x3ec2eb),_0x2297a4[_0x42b4d6([0x74,0x68,0x65,0x6e])](_0x3ff74f=>{_0x3ff74f!=_0x42b4d6([0x56,0x61,0x6c,0x69,0x64])&&_0x4299dd(_0x3ff74f);},_0x3ec2eb);}):_0x3a66b3||_0x2297a4||_0x42b4d6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3cbf14(_0x1ec520,_0x626a2a){return new window[(_0x42b4d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3452aa=>{if(_0x28ad0c())return _0x3452aa(_0x42b4d6([0x56,0x61,0x6c,0x69,0x64]));_0x39852b(),_0x26dc7e[_0x42b4d6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42b4d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9a0e47=!0x1;const _0x3a7c1f=_0x195b79();function _0x12604a(_0x349e0b){return!!_0x349e0b&&(typeof _0x349e0b===_0x42b4d6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x349e0b===_0x42b4d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x349e0b[_0x42b4d6([0x74,0x68,0x65,0x6e])]===_0x42b4d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x349e0b[_0x42b4d6([0x63,0x61,0x74,0x63,0x68])]===_0x42b4d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x279ee0(_0x338442){_0x2c1114(_0x338442)[_0x42b4d6([0x74,0x68,0x65,0x6e])](_0x55c1b6=>{if(!_0x55c1b6||_0x55c1b6[_0x42b4d6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42b4d6([0x6f,0x6b]))return _0x42b4d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1556ef(_0x34ec95(_0x3a7c1f+_0x626a2a))!=_0x55c1b6[_0x42b4d6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42b4d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42b4d6([0x56,0x61,0x6c,0x69,0x64]);})[_0x42b4d6([0x74,0x68,0x65,0x6e])](_0x1d146d=>(_0x583604(),_0x1d146d),()=>{const _0x2fadd0=_0x2c162c();return null==_0x2fadd0?(_0x583604(),_0x42b4d6([0x56,0x61,0x6c,0x69,0x64])):_0x42b4d6(_0x421156-_0x2fadd0>(0x7753083a^_0x274b86)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42b4d6([0x74,0x68,0x65,0x6e])](_0x3452aa)[_0x42b4d6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3452aa(_0x42b4d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2beae6=0x536962ba^_0x274b86;function _0x583604(){const _0x5d4087=_0x42b4d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x1556ef(_0x34ec95(_0x1ec520)),_0x453c7d=_0xbd054b(_0x1556ef(window[_0x42b4d6([0x4d,0x61,0x74,0x68])][_0x42b4d6([0x63,0x65,0x69,0x6c])](_0x421156/_0x2beae6)));window[_0x42b4d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42b4d6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d4087,_0x453c7d);}function _0x2c162c(){const _0x18a707=_0x42b4d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x1556ef(_0x34ec95(_0x1ec520)),_0x27d906=window[_0x42b4d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42b4d6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18a707);return _0x27d906?window[_0x42b4d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbd054b(_0x27d906),0x10)*_0x2beae6:null;}function _0x2c1114(_0x11006a){return new window[(_0x42b4d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b0684,_0x48b8a1)=>{_0x11006a[_0x42b4d6([0x74,0x68,0x65,0x6e])](_0x3b0684,_0x48b8a1),window[_0x42b4d6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48b8a1,0x535e58fa^_0x274b86);});}}_0x26dc7e[_0x42b4d6([0x6f,0x6e])](_0x42b4d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4d2398,_0x56a748)=>{if(_0x56a748[0x0]!=_0x1ec520)return _0x3452aa(_0x42b4d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x56a748[0x1]={..._0x56a748[0x1],[_0x42b4d6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a7c1f};},{[_0x42b4d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42b4d6([0x68,0x69,0x67,0x68])}),_0x26dc7e[_0x42b4d6([0x6f,0x6e])](_0x42b4d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e4e97=>{_0x12604a(_0x3e4e97[_0x42b4d6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9a0e47=!0x0,_0x279ee0(_0x3e4e97[_0x42b4d6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42b4d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42b4d6([0x6c,0x6f,0x77])}),_0x345698[_0x42b4d6([0x74,0x68,0x65,0x6e])](()=>{_0x9a0e47||_0x3452aa(_0x42b4d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x28ad0c(){return _0x26dc7e[_0x42b4d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42b4d6([0x76,0x69,0x65,0x77])][_0x42b4d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42b4d6([0x61,0x75,0x74,0x6f]);}function _0x39852b(){_0x26dc7e[_0x42b4d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42b4d6([0x76,0x69,0x65,0x77])][_0x42b4d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42b4d6([0x61,0x75,0x74,0x6f]);}}function _0x20d920(_0xb8fd9b){const _0x13469f=[new window[(_0x42b4d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x503b2e=>setTimeout(_0x503b2e,0x5356b2f6^_0x274b86)),_0x345698[_0x42b4d6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42b4d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x182cf2=>{let _0x56bcff=0x0;_0x26dc7e[_0x42b4d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x42b4d6([0x6f,0x6e])](_0x42b4d6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x225a03,_0x98a618)=>{_0x98a618[0x0][_0x42b4d6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x56bcff++,_0x56bcff==(0x535f89d2^_0x274b86)&&(_0x182cf2(),_0x225a03[_0x42b4d6([0x6f,0x66,0x66])]());});}))];return window[_0x42b4d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42b4d6([0x72,0x61,0x63,0x65])](_0x13469f)[_0x42b4d6([0x74,0x68,0x65,0x6e])](()=>_0xb8fd9b);}async function _0x1e8298(){await _0x345698,_0x26dc7e[_0x42b4d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x42b4d6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4dbd4f,_0x26dc7e[_0x42b4d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x42b4d6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4dbd4f,_0x26dc7e[_0x42b4d6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42b4d6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x148e0e(_0x4612c6){const _0x2d7bd3=_0x1b5e32();_0x26dc7e[_0x2d7bd3]=_0x42b4d6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4612c6,_0x4612c6!=_0x42b4d6([0x56,0x61,0x6c,0x69,0x64])&&_0x1e8298();}function _0x1b5e32(){const _0x109531=window[_0x42b4d6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42b4d6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42b4d6([0x6e,0x6f,0x77])]())[_0x42b4d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42b4d6([0x2e]),'');let _0x445455=_0x42b4d6([0x68]);for(let _0xdd6810=0x0;_0xdd6810<_0x109531[_0x42b4d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdd6810+=0x2){let _0x2ab80a=window[_0x42b4d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x109531[_0x42b4d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdd6810,_0xdd6810+0x2));_0x2ab80a>=_0x43825f[_0x42b4d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ab80a-=_0x43825f[_0x42b4d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x445455+=_0x43825f[_0x2ab80a];}return _0x445455;}function _0x3e5125(){const _0x435b9f=_0x105d55[_0x42b4d6([0x73,0x70,0x6c,0x69,0x74])](_0x42b4d6([0x2e]));if(0x3!=_0x435b9f[_0x42b4d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x233809(_0x435b9f[0x1]);function _0x233809(_0x4e8715){const _0xf6db00=_0x678a11(_0x4e8715);return _0xf6db00&&_0x150b8b()?_0xf6db00:null;function _0x150b8b(){const _0x584330=_0xf6db00[_0x42b4d6([0x6a,0x74,0x69])],_0x2ea649=window[_0x42b4d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x584330[_0x42b4d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x584330[_0x42b4d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x8f7102={..._0xf6db00,[_0x42b4d6([0x6a,0x74,0x69])]:_0x584330[_0x42b4d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x584330[_0x42b4d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x8f7102[_0x42b4d6([0x76,0x63])],_0x34ec95(_0x8f7102)==_0x2ea649;}}}async function _0x42d22a(){let _0x25e7fe=!0x0;try{const _0x11ffa6=_0x105d55[_0x42b4d6([0x73,0x70,0x6c,0x69,0x74])](_0x42b4d6([0x2e])),[_0x2849e2,_0x788cf4,_0x30e848]=_0x11ffa6;return _0x5f485d(_0x2849e2),await _0x4665b8(_0x2849e2,_0x788cf4,_0x30e848),_0x25e7fe;}catch{return!0x1;}function _0x5f485d(_0x3412c5){const _0x9aa15a=_0x678a11(_0x3412c5);_0x9aa15a&&_0x9aa15a[_0x42b4d6([0x61,0x6c,0x67])]==_0x42b4d6([0x45,0x53,0x32,0x35,0x36])||(_0x25e7fe=!0x1);}async function _0x4665b8(_0x429af0,_0x58a879,_0x15d060){const _0x8a52f2=window[_0x42b4d6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42b4d6([0x66,0x72,0x6f,0x6d])](_0xc0e53(_0x15d060),_0x40aebc=>_0x40aebc[_0x42b4d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d21a6=new window[(_0x42b4d6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42b4d6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x429af0+_0x42b4d6([0x2e])+_0x58a879),_0x32cca4=window[_0x42b4d6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42b4d6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x32cca4)return;const _0x1cc3da=await _0x32cca4[_0x42b4d6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42b4d6([0x6a,0x77,0x6b]),_0x51e58c,{[_0x42b4d6([0x6e,0x61,0x6d,0x65])]:_0x42b4d6([0x45,0x43,0x44,0x53,0x41]),[_0x42b4d6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42b4d6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42b4d6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x32cca4[_0x42b4d6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42b4d6([0x6e,0x61,0x6d,0x65])]:_0x42b4d6([0x45,0x43,0x44,0x53,0x41]),[_0x42b4d6([0x68,0x61,0x73,0x68])]:{[_0x42b4d6([0x6e,0x61,0x6d,0x65])]:_0x42b4d6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1cc3da,_0x8a52f2,_0x5d21a6)||(_0x25e7fe=!0x1);}}function _0x678a11(_0x272bbc){return _0x272bbc[_0x42b4d6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42b4d6([0x65,0x79]))?JSON[_0x42b4d6([0x70,0x61,0x72,0x73,0x65])](_0xc0e53(_0x272bbc)):null;}function _0xc0e53(_0x49e943){return window[_0x42b4d6([0x61,0x74,0x6f,0x62])](_0x49e943[_0x42b4d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42b4d6([0x2b]))[_0x42b4d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42b4d6([0x2f])));}function _0x34ec95(_0x29b354){let _0x30cd5e=0x1505;function _0x161bf0(_0x227a15){for(let _0x1ebe78=0x0;_0x1ebe78<_0x227a15[_0x42b4d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ebe78++){const _0x5c1441=_0x227a15[_0x42b4d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ebe78);_0x30cd5e=(_0x30cd5e<<0x5)+_0x30cd5e+_0x5c1441,_0x30cd5e&=_0x30cd5e;}}function _0x5b401e(_0x4c83af){Array[_0x42b4d6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4c83af)?_0x4c83af[_0x42b4d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b401e):_0x4c83af&&typeof _0x4c83af==_0x42b4d6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42b4d6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4c83af)[_0x42b4d6([0x73,0x6f,0x72,0x74])]()[_0x42b4d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x15a84f,_0x50235c])=>{_0x161bf0(_0x15a84f),_0x5b401e(_0x50235c);}):_0x161bf0(window[_0x42b4d6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4c83af));}return _0x5b401e(_0x29b354),_0x30cd5e>>>0x0;}function _0x1556ef(_0x3648e6){return _0x3648e6[_0x42b4d6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42b4d6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42b4d6([0x30]));}function _0xbd054b(_0x55b24c){return _0x55b24c[_0x42b4d6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42b4d6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42b4d6([0x6a,0x6f,0x69,0x6e])]('');}function _0x4dbd4f(){}function _0x42b4d6(_0x7b6404){return _0x7b6404['map'](_0x2b830a=>String['fromCharCode'](_0x2b830a))['join']('');}_0x148e0e(await _0x2c054a());}(this);}['_initSchema'](){const _0x40c704=this['editor']['model']['schema'];_0x40c704['isRegistered']('imageBlock')&&_0x40c704['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x40c704['isRegistered']('imageInline')&&_0x40c704['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1c2605=this['editor'];_0x1c2605['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1c2605['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1d48b0=>_0x1d48b0['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5aa1bb=_0x1c2605['commands']['get']('replaceImageSource');_0x5aa1bb&&this['listenTo'](_0x5aa1bb,'cleanupImage',(_0x46e032,[_0x1d8d65,_0x1a2e47])=>{_0x1d8d65['removeAttribute']('uploadcareImageId',_0x1a2e47);});}['_initConfig'](){const _0x1efdac=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2c8775=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1f8550(_0x338233['document'],'uc-config',{..._0x1efdac,'pubkey':_0x2c8775,'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']=_0xaf8499=>{if('closeMax'==_0xaf8499)return'#uc-icon-arrow-down';},_0x338233['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1f8550(_0x338233['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x338233['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4faf3b=this['editor']['commands']['get']('insertImage');_0x4faf3b&&this['listenTo'](_0x4faf3b,'execute',()=>{const _0x4b9da6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b9da6&&_0x4b9da6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4b9da6);});});const _0x48a42f=this['editor']['commands']['get']('uploadcareImageReplace');_0x48a42f&&this['listenTo'](_0x48a42f,'execute',()=>{const _0x3b5b3e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3b5b3e&&_0x3b5b3e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3b5b3e);});});}}class Uploadcare extends _0x384b05{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24c706){super(_0x24c706),_0x24c706['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xa30f48['defineComponents'](_0xa30f48),this['_defineLocale']();}['_defineLocale'](){const _0x1d68c2=this['editor']['config']['get']('uploadcare.locale'),_0x3b6a6c=this['editor']['locale']['contentLanguage'];_0x1d68c2&&_0xa30f48['defineLocale'](_0x3b6a6c,_0x1d68c2);}}class ii extends _0x50309c{constructor(_0x3ee113){super(_0x3ee113);const t=_0x3ee113['t'],_0x35ed1f=this['bindTemplate'],_0xfc097b=new _0x1b9c2e();_0xfc097b['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':[_0xfc097b,{'text':_0x35ed1f['to']('imageUploadProgress',_0x4eefc1=>t('Loading\x20image...')+'\x20('+(_0x4eefc1||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 _0x50309c{constructor(_0x13f8fa){super(_0x13f8fa);const t=_0x13f8fa['t'];this['set']('errorType',null);const _0x5a7aa5=new _0x586a1a(_0x13f8fa);_0x5a7aa5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5a7aa5['withText']=!0x0,_0x5a7aa5['class']='ck-button-action',_0x5a7aa5['on']('execute',()=>{this['fire']('retry');}),_0x5a7aa5['bind']('isVisible')['to'](this,'errorType',_0xbd4002=>'NotFound'!==_0xbd4002);const _0x2824fb=new _0xc7ecbe();_0x2824fb['content']=_0x5a9918,_0x2824fb['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5f28e6=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':[_0x2824fb,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5f28e6['to']('errorType',_0x3056e4=>t('NotFound'!==_0x3056e4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5a7aa5]},{'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 _0x50309c{constructor(_0x5f186b,_0x31d18d){super(_0x5f186b);const _0xc49faa=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x31d18d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xc49faa['to']('imageSrc')}});}}class W extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x171d38,_0x179bf4,_0x4798b8){super(_0x171d38),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x171d38),this['_errorView']=new ti(_0x171d38),this['_editingView']=new ei(_0x171d38,_0x4798b8),this['_focusableView']=new _0x50309c(_0x171d38),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x179bf4),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'],_0xf35384=>{this['_addUploadcareImageEditorListeners'](_0xf35384);});}),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'](_0x52541e,_0x3e345d){const _0x590b68='uc-cloud-image-editor',_0x41a9d7=_0x52541e['querySelector'](_0x590b68);if(_0x41a9d7)return _0x3e345d(_0x41a9d7);const _0xfca188=new MutationObserver(_0xfb1ee4=>{const _0x38150f=_0xfb1ee4['filter'](_0x28f896=>_0x28f896['target']===_0x52541e&&_0x28f896['addedNodes']['length']>0x0&&_0x28f896['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x590b68);_0x38150f['length']&&(_0xfca188['disconnect'](),_0x3e345d(_0x38150f[0x0]['addedNodes'][0x0]));});_0xfca188['observe'](_0x52541e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x373873){_0x373873['addEventListener']('apply',_0x33c1dd=>{this['fire']('apply',{'imageSrc':_0x33c1dd['detail']['cdnUrl']});}),_0x373873['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x288475(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2fe790,_0x1e48c4,_0x5c5eb0){super(),this['_editor']=_0x2fe790,this['_dialog']=_0x1e48c4,this['_imageElement']=_0x5c5eb0,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 _0x4866c5=this['_imageElement'],_0x26480f=_0x4866c5['getAttribute']('uploadcareImageId'),_0x59b1a9=_0x4866c5['getAttribute']('src');if(_0x26480f)await this['_loadImageInfo'](_0x26480f,_0x59b1a9);else{if(this['_imageCache']['has'](_0x59b1a9)){const _0xe7414c=this['_imageCache']['get'](_0x59b1a9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe7414c['url'],this['imageDimension']=_0xe7414c['dimension'],this['imageId']=_0xe7414c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5ceadf}=this['_editor'],t=_0x5ceadf['t'],_0x5587bf=new W(_0x5ceadf,this['imageStatus'],this['_attributes']);_0x5587bf['bind']('status')['to'](this,'imageStatus'),_0x5587bf['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5587bf['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5587bf['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5587bf,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3194c0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5587bf,'position':_0x3caf1c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5587bf['focus']();},'onHide':()=>{_0x5587bf['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x27fc72=>!C(_0x27fc72,_0x5587bf['element'])}});}['_loadImageInfo'](_0x26fc7a,_0x4d596a){return j['getInfo'](_0x26fc7a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xd35e1a=>{const {width:_0xc9f44a,height:_0x2e2215}=_0xd35e1a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d596a,this['imageDimension']={'width':_0xc9f44a,'height':_0x2e2215},this['imageId']=_0x26fc7a;})['catch'](_0x33e40f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x33e40f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x42f515,_0x5c558d){return this['_getImageAsFile'](_0x42f515)['then'](_0x48b96f=>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':_0x5c558d['signal'],'file':_0x48b96f,'onProgress':_0x4f4c73=>{_0x4f4c73&&_0x4f4c73['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4f4c73['value']));}}))['then'](_0x2f0466=>{const {width:_0x588813,height:_0xf9c1c2}=_0x2f0466['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2f0466['cdnUrl'],this['imageDimension']={'width':_0x588813,'height':_0xf9c1c2},this['imageId']=_0x2f0466['uuid'],this['imageUploadProgress']=null;const _0x3264f8=_0x42f515['getAttribute']('src');this['_imageCache']['set'](_0x3264f8,{'id':_0x2f0466['uuid'],'url':_0x2f0466['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x14df9c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x14df9c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1e61ac,_0x376c27){_0x1e61ac['on']('apply',(_0xcc46bb,_0x124471)=>{this['_replaceImage'](_0x376c27,_0x124471['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1e61ac['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1e61ac['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5ec343,_0x243931,_0x3f55a1){const _0x1ec8cf=this['_editor'],{width:_0x28d7f7,height:_0x3f0e08}=x(_0x243931,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x216871,imageSources:_0x2bc859}=A(_0x243931,_0x28d7f7);_0x1ec8cf['model']['change'](_0x5e98e5=>{if('$graveyard'===_0x5ec343['root']['rootName']){_0x1ec8cf['execute']('insertImage',{'imageType':_0x5ec343['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5ec343['getAttributes']()),'uploadcareImageId':_0x3f55a1,'src':_0x216871,'sources':_0x2bc859,'width':_0x28d7f7,'height':_0x3f0e08}});const _0x1cf65b=_0x5ec343['getChildren']();_0x5ec343=_0x1ec8cf['model']['document']['selection']['getSelectedElement']();for(const _0x559334 of _0x1cf65b)_0x5e98e5['append'](_0x5e98e5['cloneElement'](_0x559334),_0x5ec343);}else _0x5e98e5['setSelection'](_0x5ec343,'on'),_0x1ec8cf['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5ec343['getAttributes']()),'uploadcareImageId':_0x3f55a1,'src':_0x216871,'sources':_0x2bc859,'width':_0x28d7f7,'height':_0x3f0e08},_0x5ec343);_0x5e98e5['setSelection'](_0x5ec343,'on');});}async['_getImageAsFile'](_0x52805d){const _0x3edbaa=_0x338233['window'],_0x4e39f2=_0x338233['document']['location']['href'],_0x6d3f9b=new _0x3edbaa['URL'](_0x52805d['getAttribute']('src'),_0x4e39f2);if('data:'===_0x6d3f9b['protocol']){const _0x3ed339=_0x6d3f9b['href']['split'](','),_0x2304a3=_0x3ed339[0x0]['match'](/:(.*?);/)[0x1],_0x447573=_0x2304a3['split']('/')[0x1],_0x175734=_0x3edbaa['atob'](_0x3ed339[_0x3ed339['length']-0x1]);let _0x1dcff6=_0x175734['length'];const _0x1b3f43=new _0x3edbaa['Uint8Array'](_0x1dcff6);for(;_0x1dcff6--;)_0x1b3f43[_0x1dcff6]=_0x175734['charCodeAt'](_0x1dcff6);return new _0x3edbaa['File']([_0x1b3f43],'image.'+_0x447573,{'type':_0x2304a3});}const _0x6b66ae=_0x6d3f9b['href']['split']('/'),_0x15eb75=_0x6b66ae[_0x6b66ae['length']-0x1],_0x2a53a2=_0x15eb75['split']('.')[0x1];return _0x3edbaa['fetch'](_0x6d3f9b['href'])['then'](_0x473123=>_0x473123['clone']()['blob']())['then'](_0x22ed5b=>new _0x3edbaa['File']([_0x22ed5b],_0x15eb75,{'type':'image/'+_0x2a53a2}));}}class O extends _0x5163d4{['imageEditController'];static get['requires'](){return[_0x4af5cd];}['_isEditable'];constructor(_0x5404e0){super(_0x5404e0),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x14c9f1){const _0x371cb5=S(_0x14c9f1);return _0x21286c=>!(!_0x21286c||!_0x21286c['is']('element','imageBlock')&&!_0x21286c['is']('element','imageInline'))&&(!!_0x21286c['hasAttribute']('uploadcareImageId')||!!_0x21286c['hasAttribute']('src')&&_0x371cb5(_0x21286c['getAttribute']('src')));}(_0x5404e0['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x38e5ea=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x38e5ea);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2830c1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2830c1&&(_0x2830c1['is']('element','imageBlock')||_0x2830c1['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4af5cd),_0x2830c1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x5163d4{['refresh'](){const _0xc5df39=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xc5df39&&(_0xc5df39['is']('element','imageBlock')||_0xc5df39['is']('element','imageInline')));}['execute'](_0x194ca9){const _0x42fb06=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x941249=>{_0x941249['setAttributes'](_0x194ca9,_0x42fb06),_0x941249['removeAttribute']('srcset',_0x42fb06),_0x941249['removeAttribute']('sizes',_0x42fb06);});}}class m extends _0x384b05{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x56a37f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5534cd}=this;_0x5534cd['commands']['add']('uploadcareImageEdit',new O(_0x5534cd)),_0x5534cd['commands']['add']('uploadcareImageReplace',new R(_0x5534cd));}}class g extends _0x384b05{['_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 _0x3fac4b=this['editor'];_0x3fac4b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5ed331=>{const _0x3972bb=_0x3fac4b['commands']['get']('uploadcareImageEdit'),_0xfecd36=new _0x586a1a(_0x5ed331),t=_0x5ed331['t'];return _0xfecd36['set']({'icon':_0x3194c0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xfecd36['bind']('isEnabled')['to'](_0x3972bb),_0xfecd36['bind']('isOn')['to'](_0x3972bb,'isActive'),this['listenTo'](_0xfecd36,'execute',()=>{_0x3fac4b['execute']('uploadcareImageEdit'),_0x3fac4b['editing']['view']['focus']();}),_0xfecd36;}),this['_initConfig']();}['_initConfig'](){const _0x331773=_0x1f8550(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x331773),this['listenTo'](this['editor'],'destroy',()=>{_0x331773['remove']();});}}class UploadcareImageEdit extends _0x384b05{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Uploadcare,w as UploadcareCommand,o as UploadcareEditing,UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x581a5d,Command as _0x14f725}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3faa2c,IconGooglePhotos as _0x18085e,IconGoogleDrive as _0x3d780b,IconFacebook as _0x593b9a,IconDropbox as _0x3f94bb,IconUploadcareLink as _0x702413,IconUploadcareImageUpload as _0x292296,IconError as _0x465b78,IconUploadcareImageEdit as _0x427a15}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x30272f,MenuBarMenuListItemButtonView as _0x429c8d,View as _0x32a9de,FocusCycler as _0xbd692a,Dialog as _0x2ca110,DialogViewPosition as _0x4e8eb3,SpinnerView as _0x2c9bff,IconView as _0x1dc329,Notification as _0x39d957}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5a6c83,DomEmitterMixin as _0x2acafd,global as _0x40a4a3,getAncestors as _0x2e4de4,ObservableMixin as _0x47cc5f,uid as _0x28c615,createElement as _0x11375e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x19bd6d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5992d3,info as _0x12cb07}from'@uploadcare/upload-client';import*as _0x240842 from'@uploadcare/file-uploader';var i=function(_0x52f1bd){return _0x52f1bd['Local']='local',_0x52f1bd['URL']='url',_0x52f1bd['Dropbox']='dropbox',_0x52f1bd['GDrive']='gdrive',_0x52f1bd['Facebook']='facebook',_0x52f1bd['GPhotos']='gphotos',_0x52f1bd['OneDrive']='onedrive',_0x52f1bd;}({});function _(_0x33bbcb,_0x5f2c98,_0xfb70b7){const t=_0x33bbcb['t'],_0x1dce96=_0x33bbcb['t'];switch(_0x5f2c98){case i['Local']:return{'text':_0x1dce96('Insert'===_0xfb70b7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1dce96('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xfb70b7?_0x1dce96('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1dce96('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xfb70b7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xfb70b7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xfb70b7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xfb70b7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xfb70b7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5f2c98;}}class e extends _0x581a5d{['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 _0x13db5b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x33485a;for(const _0x1f29a9 in _0x13db5b){const _0x2aae36=_0x1f29a9,_0x1117a3=_0x13db5b[_0x2aae36];if('uploadcareLicenseKeyValid'==_0x1117a3||'uploadcareLicenseKeyInvalid'==_0x1117a3||'uploadcareLicenseKeyExpired'==_0x1117a3||'uploadcareLicenseKeyDomainLimit'==_0x1117a3||'uploadcareLicenseKeyNotAllowed'==_0x1117a3||'uploadcareLicenseKeyEvaluationLimit'==_0x1117a3||'uploadcareLicenseKeyUsageLimit'==_0x1117a3){delete _0x13db5b[_0x2aae36],_0x33485a=_0x1117a3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x33485a&&_0x13db5b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x33485a&&_0x13db5b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x33485a&&_0x13db5b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x33485a&&_0x13db5b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x33485a&&_0x13db5b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x33485a&&_0x13db5b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x11b6a6}=this,_0x5f0d14=_0x11b6a6['commands']['get']('uploadcare');if(!_0x5f0d14)return;const _0x3d6d5f=this['_normalizeConfigSourceList'](_0x11b6a6['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4dc367,_0x4170a9)=>{const _0x397d09=this['_getIntegrationKey'](_0x4170a9['type']);return _0x4dc367[_0x397d09]||(_0x4dc367[_0x397d09]=[]),_0x4dc367[_0x397d09]['push'](_0x4170a9),_0x4dc367;},{});_0x11b6a6['plugins']['has']('ImageInsertUI')&&_0x11b6a6['commands']['get']('uploadcare')&&Object['entries'](_0x3d6d5f)['forEach'](([_0x32439f,_0x3d3278])=>{_0x11b6a6['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x32439f,'observable':()=>_0x5f0d14,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3d3278),'formViewCreator':()=>this['_createDropdownButtons'](_0x3d3278),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3d3278),'override':'assetManager'!==_0x32439f});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2c8822){const {locale:_0x1db3d8}=this['editor'];return _0x2c8822['map'](_0x17120b=>{const _0x4260fc=_(_0x1db3d8,_0x17120b,'Insert');switch(_0x17120b){case i['Local']:return{'icon':_0x292296,'type':i['Local'],..._0x4260fc};case i['URL']:return{'icon':_0x702413,'type':i['URL'],..._0x4260fc};case i['Dropbox']:return{'icon':_0x3f94bb,'type':i['Dropbox'],..._0x4260fc};case i['Facebook']:return{'icon':_0x593b9a,'type':i['Facebook'],..._0x4260fc};case i['GDrive']:return{'icon':_0x3d780b,'type':i['GDrive'],..._0x4260fc};case i['GPhotos']:return{'icon':_0x18085e,'type':i['GPhotos'],..._0x4260fc};case i['OneDrive']:return{'icon':_0x3faa2c,'type':i['OneDrive'],..._0x4260fc};}});}['_getIntegrationKey'](_0xda77a0){switch(_0xda77a0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4b7e3c,_0x3fcb12){const _0x49bbbc=this['editor'],_0x5c0c45=new _0x4b7e3c(_0x49bbbc['locale']),_0x487e8a=_0x49bbbc['commands']['get']('uploadcare');return _0x5c0c45['bind']('isEnabled')['to'](_0x487e8a),_0x5c0c45['on']('execute',()=>{_0x487e8a['execute'](_0x3fcb12);}),_0x5c0c45;}['_createToolbarButton'](_0x132da1){const {locale:_0x33bded}=this['editor'],_0x4dafb5=this['editor']['plugins']['get']('ImageInsertUI'),_0x36c186=_0x132da1[0x0],_0x5bc992=this['_createButton'](_0x30272f,_0x36c186['type']);return _0x5bc992['icon']=_0x36c186['icon'],_0x5bc992['bind']('label')['to'](_0x4dafb5,'isImageSelected',_0x30a064=>_(_0x33bded,_0x36c186['type'],_0x30a064?'Replace':'Insert')['text']),_0x5bc992['tooltip']=!0x0,_0x5bc992;}['_createDropdownButtons'](_0x3461af){const {locale:_0x3f8c53}=this['editor'],_0x47dab3=this['editor']['plugins']['get']('ImageInsertUI');return _0x3461af['map'](_0x62873a=>{const _0x2e192e=this['_createButton'](_0x30272f,_0x62873a['type']);return _0x2e192e['withText']=!0x0,_0x2e192e['icon']=_0x62873a['icon'],_0x2e192e['bind']('label')['to'](_0x47dab3,'isImageSelected',_0x4ae95e=>_(_0x3f8c53,_0x62873a['type'],_0x4ae95e?'Replace':'Insert')['text']),_0x2e192e;});}['_createMenuBarButtons'](_0x341391){return _0x341391['map'](_0x40ce0c=>{const _0x706be=this['_createButton'](_0x429c8d,_0x40ce0c['type']);return _0x706be['icon']=_0x40ce0c['icon'],_0x706be['label']=_0x40ce0c['shortText'],_0x706be;});}}class F extends _0x32a9de{['focusTracker'];['focusCycler'];constructor(_0x3e58c3){super(_0x3e58c3),this['focusTracker']=new _0x5a6c83(),this['focusCycler']=new _0xbd692a({'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 H extends F{constructor(_0x20e882,_0x2a6fb1){super(_0x20e882),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-'+_0x2a6fb1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function A(_0x5b2f72,_0x2417d9){const _0x37d1e0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x87da43=>_0x87da43<=_0x2417d9)['map'](_0x4291c5=>_0x5b2f72['replace'](/\/$/,'')+'/-/resize/'+_0x4291c5+'x/\x20'+_0x4291c5+'w');return{'imageFallbackUrl':_0x5b2f72,'imageSources':[{'srcset':_0x37d1e0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2417d9+'px)\x20100vw,\x20'+_0x2417d9+'px','type':'image/webp'}]};}function x(_0x8ab531,_0x5140df,_0x189377){const _0x5480fa=_0x8ab531['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5480fa?parseInt(_0x5480fa[0x1],0xa):_0x5140df,'height':_0x5480fa?parseInt(_0x5480fa[0x2],0xa):_0x189377};}function p(_0x2fd12b,_0x366b95){const _0x151a97=new(_0x2acafd())(),_0x354cc7=_0x2fd12b['plugins']['get']('ImageUtils'),_0x465f2c=_0x2fd12b['editing']['mapper']['toViewElement'](_0x366b95),_0x248ad0=_0x354cc7['findViewImgElement'](_0x465f2c),_0x12942c=_0x2fd12b['editing']['view']['domConverter']['viewToDom'](_0x248ad0),_0x4455ca=_0x366b95['getAttribute']('width'),_0x3c868d=_0x366b95['getAttribute']('height'),_0x35d6e8='image-processing';_0x2fd12b['editing']['view']['change'](_0x4acd22=>{_0x4acd22['addClass'](_0x35d6e8,_0x465f2c),_0x4acd22['setStyle']('aspect-ratio',_0x4455ca+'/'+_0x3c868d,_0x248ad0);}),_0x151a97['listenTo'](_0x12942c,'load',()=>{_0x151a97['stopListening'](_0x12942c,'load'),_0x2fd12b['editing']['view']['change'](_0x2de3b3=>{_0x2de3b3['removeClass'](_0x35d6e8,_0x465f2c),_0x2de3b3['removeStyle']('aspect-ratio',_0x248ad0);});});}function S(_0x550849){if(Array['isArray'](_0x550849)){const _0x24e846=_0x550849['map'](S);return _0x13eab5=>_0x24e846['some'](_0x303ba1=>_0x303ba1(_0x13eab5));}if('origin'==_0x550849){const _0x1de9ad=_0x40a4a3['window']['location']['origin'];return _0x484b6e=>new URL(_0x484b6e,_0x40a4a3['document']['baseURI'])['origin']==_0x1de9ad;}return'function'==typeof _0x550849?_0x550849:_0x550849 instanceof RegExp?_0x41c297=>!(!_0x41c297['match'](_0x550849)&&!_0x41c297['replace'](/^https?:\/\//,'')['match'](_0x550849)):()=>!0x1;}function C(_0x3cdc87,_0x7a551c){return _0x2e4de4(_0x3cdc87['target'])['includes'](_0x7a551c);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x47cc5f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x12e9d7,_0x46b445,_0x26496a){super(),this['_editor']=_0x12e9d7,this['_editing']=_0x46b445,this['_dialog']=_0x12e9d7['plugins']['get'](_0x2ca110),this['_api']=_0x46b445['ctxElement']['getAPI'](),this['_type']=_0x26496a,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:_0x455e8e,model:_0x4554d8}=this['_editor'],_0x1233cf=_0x4554d8['document']['selection']['getSelectedElement'](),_0x44406d=_0x1233cf&&(_0x1233cf['is']('element','imageBlock')||_0x1233cf['is']('element','imageInline'));this['_formView']=new H(_0x455e8e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x292296,'title':_(_0x455e8e,this['_type'],_0x44406d?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4e8eb3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e694a=>!C(_0x1e694a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x17cec6}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x39d38a=>{const _0x442072=_0x17cec6['length'];for(const _0x454607 of _0x17cec6){const _0x1dc685=_0x454607===_0x17cec6[_0x442072-0x1],{cdnUrl:_0x5ac94e,fileInfo:_0x401a3b}=_0x454607;if(!_0x5ac94e||!_0x401a3b)continue;const {width:_0x403611,height:_0x3421ad}=_0x401a3b['imageInfo'],_0x31ebac=x(_0x5ac94e,_0x403611,_0x3421ad),_0x417e3d=A(_0x5ac94e,_0x31ebac['width']),_0x3186c0={'id':_0x401a3b['uuid'],'type':'image','attributes':{'imageDimension':_0x31ebac,..._0x417e3d}};this['_insertAsset'](_0x3186c0,_0x1dc685,_0x39d38a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4c90d8=>{'idle'===_0x4c90d8['detail']['status']&&!_0x4c90d8['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3b2a40,_0x57987b,_0x51b650){const _0x552549=this['_editor']['model']['document']['selection'],_0x287796=_0x552549['getSelectedElement'](),_0x3a075c=!(!_0x287796||!_0x287796['is']('element','imageInline'));_0x51b650['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3b2a40,_0x3a075c),_0x57987b||_0x51b650['setSelection'](_0x552549['getLastPosition']());}['_insertImage'](_0x2cb0f3,_0x1de333){const _0x44563d=this['_editor'],{imageDimension:_0x4dc1a2,imageFallbackUrl:_0x421e8f,imageSources:_0x98ae86}=_0x2cb0f3['attributes'];_0x44563d['execute']('insertImage',{'imageType':_0x1de333?'imageInline':null,'source':{'uploadcareImageId':_0x2cb0f3['id'],'src':_0x421e8f,'sources':_0x98ae86,..._0x4dc1a2}});}}class w extends _0x14f725{['_editing'];['_controller']=null;static get['requires'](){return[_0x2ca110,o];}constructor(_0x134fad){super(_0x134fad),this['_editing']=_0x134fad['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x593cc5){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x593cc5);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1958f6,..._0x34ff48}){return _0x5992d3(_0x1958f6,_0x34ff48);}static['getInfo'](_0x3ea039,_0x123ae6){return _0x12cb07(_0x3ea039,_0x123ae6);}}class f extends _0x581a5d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x19bd6d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x859cd9=this['editor'];if(!!!_0x859cd9['config']['get']('uploadcare'))return;_0x859cd9['plugins']['get'](_0x19bd6d)['createUploadAdapter']=_0x2351e9=>new Adapter(_0x2351e9,_0x859cd9),_0x859cd9['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x499f84,{imageElement:_0xb73671,data:_0x495e6f})=>{_0x859cd9['model']['change'](_0x21c3c6=>{_0x21c3c6['setAttribute']('uploadcareImageId',_0x495e6f['uploadcareImageId'],_0xb73671);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x1b64e6,_0x46a9d2){this['loader']=_0x1b64e6,this['editor']=_0x46a9d2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x47e560=await this['loader']['file'];return j['upload']({'file':_0x47e560,'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':_0x57d3b5=>{_0x57d3b5&&_0x57d3b5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x57d3b5['value']);}})['then'](async _0x54a00c=>{const {imageFallbackUrl:_0x3f7b2d,imageSources:_0xbe02e3}=A(_0x54a00c['cdnUrl'],_0x54a00c['imageInfo']['width']);return{'uploadcareImageId':_0x54a00c['uuid'],'default':_0x3f7b2d,'sources':_0xbe02e3};})['catch'](()=>{const _0x593093=t('Cannot\x20upload\x20file:')+('\x20'+_0x47e560['name']+'.');return Promise['reject'](_0x593093);});}['abort'](){this['controller']['abort']();}}class o extends _0x581a5d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2ca110];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x347d6d){super(_0x347d6d),this['ucContextId']=_0x28c615();}['init'](){const _0x54865b=this['editor'];_0x54865b['commands']['add']('uploadcare',new w(_0x54865b));}['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 _0x570b11=_0x40a4a3['document']['querySelector']('input[uploadcare-file-input]');_0x570b11&&_0x570b11['remove']();}),async function(_0x19cc22){const _0x3e31f7=_0x2ec5e8([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]),_0x463afb=0x535f8c3a,_0x3b5f70=0x535819ca^_0x463afb,_0x4f2229=window[_0x2ec5e8([0x44,0x61,0x74,0x65])][_0x2ec5e8([0x6e,0x6f,0x77])](),_0x1aee7c=_0x19cc22[_0x2ec5e8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc68edb=new window[(_0x2ec5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47e264=>{_0x1aee7c[_0x2ec5e8([0x6f,0x6e,0x63,0x65])](_0x2ec5e8([0x72,0x65,0x61,0x64,0x79]),_0x47e264);}),_0x4e054d={[_0x2ec5e8([0x6b,0x74,0x79])]:_0x2ec5e8([0x45,0x43]),[_0x2ec5e8([0x75,0x73,0x65])]:_0x2ec5e8([0x73,0x69,0x67]),[_0x2ec5e8([0x63,0x72,0x76])]:_0x2ec5e8([0x50,0x2d,0x32,0x35,0x36]),[_0x2ec5e8([0x78])]:_0x2ec5e8([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]),[_0x2ec5e8([0x79])]:_0x2ec5e8([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]),[_0x2ec5e8([0x61,0x6c,0x67])]:_0x2ec5e8([0x45,0x53,0x32,0x35,0x36])},_0x42f018=_0x1aee7c[_0x2ec5e8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ec5e8([0x67,0x65,0x74])](_0x2ec5e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7cc552(){let _0x29c558,_0x490ec3=null,_0x81d056=null;try{if(_0x42f018==_0x2ec5e8([0x47,0x50,0x4c]))return _0x2ec5e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29c558=_0x217f0b(),!_0x29c558)return _0x2ec5e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x29c558[_0x2ec5e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x81d056=_0x19484c(_0x29c558[_0x2ec5e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29c558[_0x2ec5e8([0x6a,0x74,0x69])])),await _0x318fc5()?_0x596810()?_0x2a9326()?_0x2ec5e8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55a609()?(_0x29c558[_0x2ec5e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ec5e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x490ec3=_0x119508(_0x2ec5e8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2fbe16()):_0x2ec5e8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ec5e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ec5e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2ec5e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a9326(){const _0x2fc7c6=[_0x2ec5e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ec5e8([0x74,0x72,0x69,0x61,0x6c])][_0x2ec5e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29c558[_0x2ec5e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4f2229/0x3e8:0xe10*_0x3b5f70;return _0x29c558[_0x2ec5e8([0x65,0x78,0x70])]<_0x2fc7c6;}function _0x596810(){const _0x5f5b77=_0x29c558[_0x2ec5e8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5f5b77&&(!!_0x5f5b77[_0x2ec5e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ec5e8([0x2a]))||!!_0x5f5b77[_0x2ec5e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ec5e8([0x55,0x50,0x4c,0x43])));}function _0x55a609(){const _0x32693a=_0x29c558[_0x2ec5e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32693a||0x0==_0x32693a[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59ec5d}=new URL(window[_0x2ec5e8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32693a[_0x2ec5e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59ec5d))return!0x0;const _0x534f79=_0x59ec5d[_0x2ec5e8([0x73,0x70,0x6c,0x69,0x74])](_0x2ec5e8([0x2e]));return _0x32693a[_0x2ec5e8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5936fa=>_0x5936fa[_0x2ec5e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ec5e8([0x2a])))[_0x2ec5e8([0x6d,0x61,0x70])](_0x147071=>_0x147071[_0x2ec5e8([0x73,0x70,0x6c,0x69,0x74])](_0x2ec5e8([0x2e])))[_0x2ec5e8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x508397=>_0x508397[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x534f79[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ec5e8([0x6d,0x61,0x70])](_0x11b983=>Array(_0x534f79[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11b983[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ec5e8([0x66,0x69,0x6c,0x6c])](_0x11b983[0x0]===_0x2ec5e8([0x2a])?_0x2ec5e8([0x2a]):'')[_0x2ec5e8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11b983))[_0x2ec5e8([0x73,0x6f,0x6d,0x65])](_0x1b264c=>_0x534f79[_0x2ec5e8([0x65,0x76,0x65,0x72,0x79])]((_0x4c65c2,_0xe4642e)=>_0x1b264c[_0xe4642e]===_0x4c65c2||_0x1b264c[_0xe4642e]===_0x2ec5e8([0x2a])));}function _0x2fbe16(){return _0x490ec3&&_0x81d056?new window[(_0x2ec5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a6399,_0x3e96ab)=>{_0x490ec3[_0x2ec5e8([0x74,0x68,0x65,0x6e])](_0x2a6399,_0x3e96ab),_0x81d056[_0x2ec5e8([0x74,0x68,0x65,0x6e])](_0x4030bc=>{_0x4030bc!=_0x2ec5e8([0x56,0x61,0x6c,0x69,0x64])&&_0x2a6399(_0x4030bc);},_0x3e96ab);}):_0x490ec3||_0x81d056||_0x2ec5e8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19484c(_0x22e385,_0x548ba0){return new window[(_0x2ec5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x260abd=>{if(_0x2260b5())return _0x260abd(_0x2ec5e8([0x56,0x61,0x6c,0x69,0x64]));_0x18e775(),_0x1aee7c[_0x2ec5e8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ec5e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4e37ff=!0x1;const _0x35a190=_0x28c615();function _0x373eaf(_0x45f3cc){return!!_0x45f3cc&&(typeof _0x45f3cc===_0x2ec5e8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45f3cc===_0x2ec5e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45f3cc[_0x2ec5e8([0x74,0x68,0x65,0x6e])]===_0x2ec5e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45f3cc[_0x2ec5e8([0x63,0x61,0x74,0x63,0x68])]===_0x2ec5e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f418b(_0x1ebdee){_0x2b65a8(_0x1ebdee)[_0x2ec5e8([0x74,0x68,0x65,0x6e])](_0xfbbbc5=>{if(!_0xfbbbc5||_0xfbbbc5[_0x2ec5e8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ec5e8([0x6f,0x6b]))return _0x2ec5e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x168a0c(_0x75e246(_0x35a190+_0x548ba0))!=_0xfbbbc5[_0x2ec5e8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ec5e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ec5e8([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ec5e8([0x74,0x68,0x65,0x6e])](_0xd81f85=>(_0x3370fb(),_0xd81f85),()=>{const _0x301b49=_0x237a85();return null==_0x301b49?(_0x3370fb(),_0x2ec5e8([0x56,0x61,0x6c,0x69,0x64])):_0x2ec5e8(_0x4f2229-_0x301b49>(0x7753083a^_0x463afb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ec5e8([0x74,0x68,0x65,0x6e])](_0x260abd)[_0x2ec5e8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x260abd(_0x2ec5e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5291c2=0x536962ba^_0x463afb;function _0x3370fb(){const _0x48ebef=_0x2ec5e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x168a0c(_0x75e246(_0x22e385)),_0x278236=_0x1623e8(_0x168a0c(window[_0x2ec5e8([0x4d,0x61,0x74,0x68])][_0x2ec5e8([0x63,0x65,0x69,0x6c])](_0x4f2229/_0x5291c2)));window[_0x2ec5e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ec5e8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48ebef,_0x278236);}function _0x237a85(){const _0x1c17a5=_0x2ec5e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x168a0c(_0x75e246(_0x22e385)),_0x201bb1=window[_0x2ec5e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ec5e8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c17a5);return _0x201bb1?window[_0x2ec5e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1623e8(_0x201bb1),0x10)*_0x5291c2:null;}function _0x2b65a8(_0x473a60){return new window[(_0x2ec5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33fa6b,_0x33d73c)=>{_0x473a60[_0x2ec5e8([0x74,0x68,0x65,0x6e])](_0x33fa6b,_0x33d73c),window[_0x2ec5e8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33d73c,0x535e58fa^_0x463afb);});}}_0x1aee7c[_0x2ec5e8([0x6f,0x6e])](_0x2ec5e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x551294,_0x4dbb9a)=>{if(_0x4dbb9a[0x0]!=_0x22e385)return _0x260abd(_0x2ec5e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4dbb9a[0x1]={..._0x4dbb9a[0x1],[_0x2ec5e8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35a190};},{[_0x2ec5e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ec5e8([0x68,0x69,0x67,0x68])}),_0x1aee7c[_0x2ec5e8([0x6f,0x6e])](_0x2ec5e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27ad71=>{_0x373eaf(_0x27ad71[_0x2ec5e8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4e37ff=!0x0,_0x2f418b(_0x27ad71[_0x2ec5e8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ec5e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ec5e8([0x6c,0x6f,0x77])}),_0xc68edb[_0x2ec5e8([0x74,0x68,0x65,0x6e])](()=>{_0x4e37ff||_0x260abd(_0x2ec5e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2260b5(){return _0x1aee7c[_0x2ec5e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ec5e8([0x76,0x69,0x65,0x77])][_0x2ec5e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ec5e8([0x61,0x75,0x74,0x6f]);}function _0x18e775(){_0x1aee7c[_0x2ec5e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ec5e8([0x76,0x69,0x65,0x77])][_0x2ec5e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ec5e8([0x61,0x75,0x74,0x6f]);}}function _0x119508(_0x116ae7){const _0x47d611=[new window[(_0x2ec5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bd45f=>setTimeout(_0x2bd45f,0x5356b2f6^_0x463afb)),_0xc68edb[_0x2ec5e8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ec5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x579c2f=>{let _0x170623=0x0;_0x1aee7c[_0x2ec5e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ec5e8([0x6f,0x6e])](_0x2ec5e8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1cbddd,_0x39a5e3)=>{_0x39a5e3[0x0][_0x2ec5e8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x170623++,_0x170623==(0x535f89d2^_0x463afb)&&(_0x579c2f(),_0x1cbddd[_0x2ec5e8([0x6f,0x66,0x66])]());});}))];return window[_0x2ec5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ec5e8([0x72,0x61,0x63,0x65])](_0x47d611)[_0x2ec5e8([0x74,0x68,0x65,0x6e])](()=>_0x116ae7);}async function _0x554d6d(){await _0xc68edb,_0x1aee7c[_0x2ec5e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ec5e8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b17d6,_0x1aee7c[_0x2ec5e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ec5e8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b17d6,_0x1aee7c[_0x2ec5e8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ec5e8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e13ba(_0x112656){const _0x3dc8f2=_0x5ebcc0();_0x1aee7c[_0x3dc8f2]=_0x2ec5e8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x112656,_0x112656!=_0x2ec5e8([0x56,0x61,0x6c,0x69,0x64])&&_0x554d6d();}function _0x5ebcc0(){const _0x12c5ca=window[_0x2ec5e8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ec5e8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ec5e8([0x6e,0x6f,0x77])]())[_0x2ec5e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ec5e8([0x2e]),'');let _0x18ceeb=_0x2ec5e8([0x68]);for(let _0x1a692f=0x0;_0x1a692f<_0x12c5ca[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a692f+=0x2){let _0x413f3e=window[_0x2ec5e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12c5ca[_0x2ec5e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a692f,_0x1a692f+0x2));_0x413f3e>=_0x3e31f7[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x413f3e-=_0x3e31f7[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18ceeb+=_0x3e31f7[_0x413f3e];}return _0x18ceeb;}function _0x217f0b(){const _0x100782=_0x42f018[_0x2ec5e8([0x73,0x70,0x6c,0x69,0x74])](_0x2ec5e8([0x2e]));if(0x3!=_0x100782[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56d077(_0x100782[0x1]);function _0x56d077(_0x88112c){const _0xb71aac=_0x591679(_0x88112c);return _0xb71aac&&_0x3c5e6c()?_0xb71aac:null;function _0x3c5e6c(){const _0xe64ddc=_0xb71aac[_0x2ec5e8([0x6a,0x74,0x69])],_0x481511=window[_0x2ec5e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe64ddc[_0x2ec5e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe64ddc[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ed765={..._0xb71aac,[_0x2ec5e8([0x6a,0x74,0x69])]:_0xe64ddc[_0x2ec5e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe64ddc[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ed765[_0x2ec5e8([0x76,0x63])],_0x75e246(_0x5ed765)==_0x481511;}}}async function _0x318fc5(){let _0xec58ff=!0x0;try{const _0x42989c=_0x42f018[_0x2ec5e8([0x73,0x70,0x6c,0x69,0x74])](_0x2ec5e8([0x2e])),[_0x2279b0,_0x180d59,_0xc0c4f7]=_0x42989c;return _0x4e5483(_0x2279b0),await _0x2f7c1c(_0x2279b0,_0x180d59,_0xc0c4f7),_0xec58ff;}catch{return!0x1;}function _0x4e5483(_0x494632){const _0x396b56=_0x591679(_0x494632);_0x396b56&&_0x396b56[_0x2ec5e8([0x61,0x6c,0x67])]==_0x2ec5e8([0x45,0x53,0x32,0x35,0x36])||(_0xec58ff=!0x1);}async function _0x2f7c1c(_0x353095,_0xbba353,_0x45d65e){const _0x41a4fd=window[_0x2ec5e8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ec5e8([0x66,0x72,0x6f,0x6d])](_0x454e7d(_0x45d65e),_0x5922e3=>_0x5922e3[_0x2ec5e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x530cc0=new window[(_0x2ec5e8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ec5e8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x353095+_0x2ec5e8([0x2e])+_0xbba353),_0x4c30d5=window[_0x2ec5e8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ec5e8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c30d5)return;const _0x44ebf0=await _0x4c30d5[_0x2ec5e8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ec5e8([0x6a,0x77,0x6b]),_0x4e054d,{[_0x2ec5e8([0x6e,0x61,0x6d,0x65])]:_0x2ec5e8([0x45,0x43,0x44,0x53,0x41]),[_0x2ec5e8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ec5e8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ec5e8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c30d5[_0x2ec5e8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ec5e8([0x6e,0x61,0x6d,0x65])]:_0x2ec5e8([0x45,0x43,0x44,0x53,0x41]),[_0x2ec5e8([0x68,0x61,0x73,0x68])]:{[_0x2ec5e8([0x6e,0x61,0x6d,0x65])]:_0x2ec5e8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44ebf0,_0x41a4fd,_0x530cc0)||(_0xec58ff=!0x1);}}function _0x591679(_0x47a8b5){return _0x47a8b5[_0x2ec5e8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ec5e8([0x65,0x79]))?JSON[_0x2ec5e8([0x70,0x61,0x72,0x73,0x65])](_0x454e7d(_0x47a8b5)):null;}function _0x454e7d(_0x5451a3){return window[_0x2ec5e8([0x61,0x74,0x6f,0x62])](_0x5451a3[_0x2ec5e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ec5e8([0x2b]))[_0x2ec5e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ec5e8([0x2f])));}function _0x75e246(_0x1bb273){let _0xa8eb9b=0x1505;function _0x44d06d(_0xca509b){for(let _0x210c35=0x0;_0x210c35<_0xca509b[_0x2ec5e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x210c35++){const _0x369836=_0xca509b[_0x2ec5e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x210c35);_0xa8eb9b=(_0xa8eb9b<<0x5)+_0xa8eb9b+_0x369836,_0xa8eb9b&=_0xa8eb9b;}}function _0x224ec1(_0x1cb70a){Array[_0x2ec5e8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1cb70a)?_0x1cb70a[_0x2ec5e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x224ec1):_0x1cb70a&&typeof _0x1cb70a==_0x2ec5e8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ec5e8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1cb70a)[_0x2ec5e8([0x73,0x6f,0x72,0x74])]()[_0x2ec5e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1855ed,_0x350c9c])=>{_0x44d06d(_0x1855ed),_0x224ec1(_0x350c9c);}):_0x44d06d(window[_0x2ec5e8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1cb70a));}return _0x224ec1(_0x1bb273),_0xa8eb9b>>>0x0;}function _0x168a0c(_0x43a999){return _0x43a999[_0x2ec5e8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ec5e8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ec5e8([0x30]));}function _0x1623e8(_0x4f3292){return _0x4f3292[_0x2ec5e8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ec5e8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ec5e8([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b17d6(){}function _0x2ec5e8(_0x52dca2){return _0x52dca2['map'](_0x1cb388=>String['fromCharCode'](_0x1cb388))['join']('');}_0x1e13ba(await _0x7cc552());}(this);}['_initSchema'](){const _0x5d3067=this['editor']['model']['schema'];_0x5d3067['isRegistered']('imageBlock')&&_0x5d3067['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5d3067['isRegistered']('imageInline')&&_0x5d3067['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3b7dd9=this['editor'];_0x3b7dd9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3b7dd9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x41c19c=>_0x41c19c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3f0df8=_0x3b7dd9['commands']['get']('replaceImageSource');_0x3f0df8&&this['listenTo'](_0x3f0df8,'cleanupImage',(_0x2eec74,[_0x44da49,_0x249e02])=>{_0x44da49['removeAttribute']('uploadcareImageId',_0x249e02);});}['_initConfig'](){const _0x30fe49=this['editor']['config']['get']('uploadcare.uploader')||{},_0x24aba8=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x11375e(_0x40a4a3['document'],'uc-config',{..._0x30fe49,'pubkey':_0x24aba8,'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']=_0x6a6d61=>{if('closeMax'==_0x6a6d61)return'#uc-icon-arrow-down';},_0x40a4a3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x11375e(_0x40a4a3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x40a4a3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4aa00b=this['editor']['commands']['get']('insertImage');_0x4aa00b&&this['listenTo'](_0x4aa00b,'execute',()=>{const _0x517b7e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x517b7e&&_0x517b7e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x517b7e);});});const _0xe5428d=this['editor']['commands']['get']('uploadcareImageReplace');_0xe5428d&&this['listenTo'](_0xe5428d,'execute',()=>{const _0x110dbc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x110dbc&&_0x110dbc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x110dbc);});});}}class Uploadcare extends _0x581a5d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43df20){super(_0x43df20),_0x43df20['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x240842['defineComponents'](_0x240842),this['_defineLocale']();}['_defineLocale'](){const _0x38049f=this['editor']['config']['get']('uploadcare.locale'),_0xe8e7f7=this['editor']['locale']['contentLanguage'];_0x38049f&&_0x240842['defineLocale'](_0xe8e7f7,_0x38049f);}}class ii extends _0x32a9de{constructor(_0x2c9128){super(_0x2c9128);const t=_0x2c9128['t'],_0x49015d=this['bindTemplate'],_0x46227f=new _0x2c9bff();_0x46227f['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':[_0x46227f,{'text':_0x49015d['to']('imageUploadProgress',_0x419bdf=>t('Loading\x20image...')+'\x20('+(_0x419bdf||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 _0x32a9de{constructor(_0x40d446){super(_0x40d446);const t=_0x40d446['t'];this['set']('errorType',null);const _0x288220=new _0x30272f(_0x40d446);_0x288220['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x288220['withText']=!0x0,_0x288220['class']='ck-button-action',_0x288220['on']('execute',()=>{this['fire']('retry');}),_0x288220['bind']('isVisible')['to'](this,'errorType',_0x34ac11=>'NotFound'!==_0x34ac11);const _0x5a102c=new _0x1dc329();_0x5a102c['content']=_0x465b78,_0x5a102c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xc20337=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':[_0x5a102c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xc20337['to']('errorType',_0x5dc80b=>t('NotFound'!==_0x5dc80b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x288220]},{'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 _0x32a9de{constructor(_0x1707e4,_0x22b777){super(_0x1707e4);const _0x46e528=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x22b777,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x46e528['to']('imageSrc')}});}}class W extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xe4efa4,_0x7b9d9,_0x45e265){super(_0xe4efa4),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xe4efa4),this['_errorView']=new ti(_0xe4efa4),this['_editingView']=new ei(_0xe4efa4,_0x45e265),this['_focusableView']=new _0x32a9de(_0xe4efa4),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x7b9d9),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'],_0x4de76f=>{this['_addUploadcareImageEditorListeners'](_0x4de76f);});}),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'](_0x3346b6,_0x2fd22c){const _0x47f9dd='uc-cloud-image-editor',_0x154579=_0x3346b6['querySelector'](_0x47f9dd);if(_0x154579)return _0x2fd22c(_0x154579);const _0x16bd25=new MutationObserver(_0x4c5b7d=>{const _0x42cddf=_0x4c5b7d['filter'](_0x25b11d=>_0x25b11d['target']===_0x3346b6&&_0x25b11d['addedNodes']['length']>0x0&&_0x25b11d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x47f9dd);_0x42cddf['length']&&(_0x16bd25['disconnect'](),_0x2fd22c(_0x42cddf[0x0]['addedNodes'][0x0]));});_0x16bd25['observe'](_0x3346b6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2e449f){_0x2e449f['addEventListener']('apply',_0x55ae74=>{this['fire']('apply',{'imageSrc':_0x55ae74['detail']['cdnUrl']});}),_0x2e449f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x47cc5f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x223f0a,_0x34ac1f,_0x355e36){super(),this['_editor']=_0x223f0a,this['_dialog']=_0x34ac1f,this['_imageElement']=_0x355e36,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 _0x4cbd3c=this['_imageElement'],_0x4bb19f=_0x4cbd3c['getAttribute']('uploadcareImageId'),_0x87456e=_0x4cbd3c['getAttribute']('src');if(_0x4bb19f)await this['_loadImageInfo'](_0x4bb19f,_0x87456e);else{if(this['_imageCache']['has'](_0x87456e)){const _0x194002=this['_imageCache']['get'](_0x87456e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x194002['url'],this['imageDimension']=_0x194002['dimension'],this['imageId']=_0x194002['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x477a3d}=this['_editor'],t=_0x477a3d['t'],_0x3c3872=new W(_0x477a3d,this['imageStatus'],this['_attributes']);_0x3c3872['bind']('status')['to'](this,'imageStatus'),_0x3c3872['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3c3872['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3c3872['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3c3872,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x427a15,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3c3872,'position':_0x4e8eb3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3c3872['focus']();},'onHide':()=>{_0x3c3872['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5355a5=>!C(_0x5355a5,_0x3c3872['element'])}});}['_loadImageInfo'](_0xb308f8,_0x382c43){return j['getInfo'](_0xb308f8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x33afa8=>{const {width:_0x88b4e4,height:_0x5b6bf3}=_0x33afa8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x382c43,this['imageDimension']={'width':_0x88b4e4,'height':_0x5b6bf3},this['imageId']=_0xb308f8;})['catch'](_0x401353=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x401353['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2f6104,_0xd73c8c){return this['_getImageAsFile'](_0x2f6104)['then'](_0x5789cc=>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':_0xd73c8c['signal'],'file':_0x5789cc,'onProgress':_0x5ed1a0=>{_0x5ed1a0&&_0x5ed1a0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5ed1a0['value']));}}))['then'](_0x1d722c=>{const {width:_0x359711,height:_0x1ab9bd}=_0x1d722c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d722c['cdnUrl'],this['imageDimension']={'width':_0x359711,'height':_0x1ab9bd},this['imageId']=_0x1d722c['uuid'],this['imageUploadProgress']=null;const _0x5a12bc=_0x2f6104['getAttribute']('src');this['_imageCache']['set'](_0x5a12bc,{'id':_0x1d722c['uuid'],'url':_0x1d722c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x421032=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x421032['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4405dc,_0x4e3bfb){_0x4405dc['on']('apply',(_0x20193c,_0x40d5af)=>{this['_replaceImage'](_0x4e3bfb,_0x40d5af['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4405dc['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4405dc['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x10018b,_0x4641a5,_0x26725f){const _0x1da0cb=this['_editor'],{width:_0x4b1992,height:_0x2849b1}=x(_0x4641a5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3b736a,imageSources:_0x19de38}=A(_0x4641a5,_0x4b1992);_0x1da0cb['model']['change'](_0x16cf08=>{if('$graveyard'===_0x10018b['root']['rootName']){_0x1da0cb['execute']('insertImage',{'imageType':_0x10018b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x10018b['getAttributes']()),'uploadcareImageId':_0x26725f,'src':_0x3b736a,'sources':_0x19de38,'width':_0x4b1992,'height':_0x2849b1}});const _0x26238d=_0x10018b['getChildren']();_0x10018b=_0x1da0cb['model']['document']['selection']['getSelectedElement']();for(const _0xa141ac of _0x26238d)_0x16cf08['append'](_0x16cf08['cloneElement'](_0xa141ac),_0x10018b);}else _0x16cf08['setSelection'](_0x10018b,'on'),_0x1da0cb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x10018b['getAttributes']()),'uploadcareImageId':_0x26725f,'src':_0x3b736a,'sources':_0x19de38,'width':_0x4b1992,'height':_0x2849b1},_0x10018b);_0x16cf08['setSelection'](_0x10018b,'on');});}async['_getImageAsFile'](_0xed26fc){const _0x5a2765=_0x40a4a3['window'],_0xdf1d6=_0x40a4a3['document']['location']['href'],_0xd486d8=new _0x5a2765['URL'](_0xed26fc['getAttribute']('src'),_0xdf1d6);if('data:'===_0xd486d8['protocol']){const _0x4e0554=_0xd486d8['href']['split'](','),_0x3e99cb=_0x4e0554[0x0]['match'](/:(.*?);/)[0x1],_0x36cd49=_0x3e99cb['split']('/')[0x1],_0x3b9dcf=_0x5a2765['atob'](_0x4e0554[_0x4e0554['length']-0x1]);let _0x342ad2=_0x3b9dcf['length'];const _0x2ec296=new _0x5a2765['Uint8Array'](_0x342ad2);for(;_0x342ad2--;)_0x2ec296[_0x342ad2]=_0x3b9dcf['charCodeAt'](_0x342ad2);return new _0x5a2765['File']([_0x2ec296],'image.'+_0x36cd49,{'type':_0x3e99cb});}const _0x564f1a=_0xd486d8['href']['split']('/'),_0x17a015=_0x564f1a[_0x564f1a['length']-0x1],_0x59334a=_0x17a015['split']('.')[0x1];return _0x5a2765['fetch'](_0xd486d8['href'])['then'](_0x1cbf75=>_0x1cbf75['clone']()['blob']())['then'](_0x47d2d0=>new _0x5a2765['File']([_0x47d2d0],_0x17a015,{'type':'image/'+_0x59334a}));}}class O extends _0x14f725{['imageEditController'];static get['requires'](){return[_0x2ca110];}['_isEditable'];constructor(_0x383833){super(_0x383833),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x50aaeb){const _0x438107=S(_0x50aaeb);return _0x495f4e=>!(!_0x495f4e||!_0x495f4e['is']('element','imageBlock')&&!_0x495f4e['is']('element','imageInline'))&&(!!_0x495f4e['hasAttribute']('uploadcareImageId')||!!_0x495f4e['hasAttribute']('src')&&_0x438107(_0x495f4e['getAttribute']('src')));}(_0x383833['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x352d5a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x352d5a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x53cb40=this['editor']['model']['document']['selection']['getSelectedElement']();_0x53cb40&&(_0x53cb40['is']('element','imageBlock')||_0x53cb40['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2ca110),_0x53cb40),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x14f725{['refresh'](){const _0x2ecc32=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2ecc32&&(_0x2ecc32['is']('element','imageBlock')||_0x2ecc32['is']('element','imageInline')));}['execute'](_0x1e87af){const _0x152c36=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2de5fa=>{_0x2de5fa['setAttributes'](_0x1e87af,_0x152c36),_0x2de5fa['removeAttribute']('srcset',_0x152c36),_0x2de5fa['removeAttribute']('sizes',_0x152c36);});}}class m extends _0x581a5d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x39d957,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xfb141c}=this;_0xfb141c['commands']['add']('uploadcareImageEdit',new O(_0xfb141c)),_0xfb141c['commands']['add']('uploadcareImageReplace',new R(_0xfb141c));}}class g extends _0x581a5d{['_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 _0x3024c7=this['editor'];_0x3024c7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3bd4e7=>{const _0x2f98f6=_0x3024c7['commands']['get']('uploadcareImageEdit'),_0x1a52ba=new _0x30272f(_0x3bd4e7),t=_0x3bd4e7['t'];return _0x1a52ba['set']({'icon':_0x427a15,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1a52ba['bind']('isEnabled')['to'](_0x2f98f6),_0x1a52ba['bind']('isOn')['to'](_0x2f98f6,'isActive'),this['listenTo'](_0x1a52ba,'execute',()=>{_0x3024c7['execute']('uploadcareImageEdit'),_0x3024c7['editing']['view']['focus']();}),_0x1a52ba;}),this['_initConfig']();}['_initConfig'](){const _0x2a46be=_0x11375e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2a46be),this['listenTo'](this['editor'],'destroy',()=>{_0x2a46be['remove']();});}}class UploadcareImageEdit extends _0x581a5d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Uploadcare,w as UploadcareCommand,o as UploadcareEditing,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':_0x42751e=>0x1!=_0x42751e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x54ad86=>{const {af:{dictionary:_0xa5ab52,getPluralForm:_0x3a8f6b}}={'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':_0x1a3ad2=>0x1!=_0x1a3ad2}};_0x54ad86['af']||={'dictionary':{},'getPluralForm':null},_0x54ad86['af']['dictionary']=Object['assign'](_0x54ad86['af']['dictionary'],_0xa5ab52),_0x54ad86['af']['getPluralForm']=_0x3a8f6b;})(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':_0x517a38=>0x0==_0x517a38?0x0:0x1==_0x517a38?0x1:0x2==_0x517a38?0x2:_0x517a38%0x64>=0x3&&_0x517a38%0x64<=0xa?0x3:_0x517a38%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2dffc3=>{const {ar:{dictionary:_0x130508,getPluralForm:_0x239d3d}}={'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':_0x496ceb=>0x0==_0x496ceb?0x0:0x1==_0x496ceb?0x1:0x2==_0x496ceb?0x2:_0x496ceb%0x64>=0x3&&_0x496ceb%0x64<=0xa?0x3:_0x496ceb%0x64>=0xb?0x4:0x5}};_0x2dffc3['ar']||={'dictionary':{},'getPluralForm':null},_0x2dffc3['ar']['dictionary']=Object['assign'](_0x2dffc3['ar']['dictionary'],_0x130508),_0x2dffc3['ar']['getPluralForm']=_0x239d3d;})(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':_0x412dd3=>0x1!=_0x412dd3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x15b30b=>{const {ast:{dictionary:_0x5c34b4,getPluralForm:_0x481ba1}}={'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':_0x1adbe1=>0x1!=_0x1adbe1}};_0x15b30b['ast']||={'dictionary':{},'getPluralForm':null},_0x15b30b['ast']['dictionary']=Object['assign'](_0x15b30b['ast']['dictionary'],_0x5c34b4),_0x15b30b['ast']['getPluralForm']=_0x481ba1;})(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':_0x27ddbf=>0x1!=_0x27ddbf}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x268819=>{const {az:{dictionary:_0x1326ec,getPluralForm:_0xe751bb}}={'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':_0x11e782=>0x1!=_0x11e782}};_0x268819['az']||={'dictionary':{},'getPluralForm':null},_0x268819['az']['dictionary']=Object['assign'](_0x268819['az']['dictionary'],_0x1326ec),_0x268819['az']['getPluralForm']=_0xe751bb;})(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':_0x2a3572=>_0x2a3572%0xa==0x1&&_0x2a3572%0x64!=0xb?0x0:_0x2a3572%0xa>=0x2&&_0x2a3572%0xa<=0x4&&(_0x2a3572%0x64<0xa||_0x2a3572%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x36e2c4=>{const {be:{dictionary:_0x280893,getPluralForm:_0x5b56c2}}={'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':_0x2877d1=>_0x2877d1%0xa==0x1&&_0x2877d1%0x64!=0xb?0x0:_0x2877d1%0xa>=0x2&&_0x2877d1%0xa<=0x4&&(_0x2877d1%0x64<0xa||_0x2877d1%0x64>=0x14)?0x1:0x2}};_0x36e2c4['be']||={'dictionary':{},'getPluralForm':null},_0x36e2c4['be']['dictionary']=Object['assign'](_0x36e2c4['be']['dictionary'],_0x280893),_0x36e2c4['be']['getPluralForm']=_0x5b56c2;})(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':_0x1ecf3b=>0x1!=_0x1ecf3b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2c6fd2=>{const {bg:{dictionary:_0x41ece7,getPluralForm:_0x3ed755}}={'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':_0x42fb47=>0x1!=_0x42fb47}};_0x2c6fd2['bg']||={'dictionary':{},'getPluralForm':null},_0x2c6fd2['bg']['dictionary']=Object['assign'](_0x2c6fd2['bg']['dictionary'],_0x41ece7),_0x2c6fd2['bg']['getPluralForm']=_0x3ed755;})(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':_0x19ca61=>0x1!=_0x19ca61}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x255bc7=>{const {bn:{dictionary:_0x22fd4b,getPluralForm:_0x4fc92b}}={'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':_0x1c74fc=>0x1!=_0x1c74fc}};_0x255bc7['bn']||={'dictionary':{},'getPluralForm':null},_0x255bc7['bn']['dictionary']=Object['assign'](_0x255bc7['bn']['dictionary'],_0x22fd4b),_0x255bc7['bn']['getPluralForm']=_0x4fc92b;})(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':_0x59b931=>_0x59b931%0xa==0x1&&_0x59b931%0x64!=0xb?0x0:_0x59b931%0xa>=0x2&&_0x59b931%0xa<=0x4&&(_0x59b931%0x64<0xa||_0x59b931%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x37fd76=>{const {bs:{dictionary:_0x3a2f08,getPluralForm:_0x2327b6}}={'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':_0x10cb3a=>_0x10cb3a%0xa==0x1&&_0x10cb3a%0x64!=0xb?0x0:_0x10cb3a%0xa>=0x2&&_0x10cb3a%0xa<=0x4&&(_0x10cb3a%0x64<0xa||_0x10cb3a%0x64>=0x14)?0x1:0x2}};_0x37fd76['bs']||={'dictionary':{},'getPluralForm':null},_0x37fd76['bs']['dictionary']=Object['assign'](_0x37fd76['bs']['dictionary'],_0x3a2f08),_0x37fd76['bs']['getPluralForm']=_0x2327b6;})(window['CKEDITOR_TRANSLATIONS']||={});
|