@ckeditor/ckeditor5-uploadcare 47.6.2 → 47.7.0-alpha.1
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 _0x53c0be,Command as _0x2af24d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1a5e75,IconGooglePhotos as _0x1417fa,IconGoogleDrive as _0x326a73,IconFacebook as _0xabf311,IconDropbox as _0xfc34a4,IconUploadcareLink as _0x3602a7,IconUploadcareImageUpload as _0x4810bc,IconError as _0x1f2473,IconUploadcareImageEdit as _0x5bbecd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3efac0,MenuBarMenuListItemButtonView as _0x276866,View as _0x1165d9,FocusCycler as _0x348f0a,Dialog as _0x40de19,DialogViewPosition as _0x45c5da,SpinnerView as _0xd55652,IconView as _0x1f1870,Notification as _0x476b8a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x767656,DomEmitterMixin as _0x2e286e,global as _0x566bb4,getAncestors as _0x4510fe,ObservableMixin as _0x3b3467,uid as _0x232907,createElement as _0x41b016}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4a2148}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xf8f91e,info as _0x186bb3}from'@uploadcare/upload-client';import*as _0x13394d from'@uploadcare/file-uploader';var i=function(_0x3754a0){return _0x3754a0['Local']='local',_0x3754a0['URL']='url',_0x3754a0['Dropbox']='dropbox',_0x3754a0['GDrive']='gdrive',_0x3754a0['Facebook']='facebook',_0x3754a0['GPhotos']='gphotos',_0x3754a0['OneDrive']='onedrive',_0x3754a0;}({});function _(_0x42005e,_0xd367df,_0x51aa06){const t=_0x42005e['t'],_0x555294=_0x42005e['t'];switch(_0xd367df){case i['Local']:return{'text':_0x555294('Insert'===_0x51aa06?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x555294('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x51aa06?_0x555294('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x555294('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x51aa06?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x51aa06?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x51aa06?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x51aa06?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x51aa06?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xd367df;}}class e extends _0x53c0be{['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 _0x4b3260=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2744c9;for(const _0x51621d in _0x4b3260){const _0x40bcb3=_0x51621d,_0xb37de0=_0x4b3260[_0x40bcb3];if('uploadcareLicenseKeyValid'==_0xb37de0||'uploadcareLicenseKeyInvalid'==_0xb37de0||'uploadcareLicenseKeyExpired'==_0xb37de0||'uploadcareLicenseKeyDomainLimit'==_0xb37de0||'uploadcareLicenseKeyNotAllowed'==_0xb37de0||'uploadcareLicenseKeyEvaluationLimit'==_0xb37de0||'uploadcareLicenseKeyUsageLimit'==_0xb37de0){delete _0x4b3260[_0x40bcb3],_0x2744c9=_0xb37de0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2744c9&&_0x4b3260['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2744c9&&_0x4b3260['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2744c9&&_0x4b3260['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2744c9&&_0x4b3260['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2744c9&&_0x4b3260['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2744c9&&_0x4b3260['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4c9f7a}=this,_0x5cf523=_0x4c9f7a['commands']['get']('uploadcare');if(!_0x5cf523)return;const _0x11003b=this['_normalizeConfigSourceList'](_0x4c9f7a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5f25bf,_0x9e400d)=>{const _0x1ae7d0=this['_getIntegrationKey'](_0x9e400d['type']);return _0x5f25bf[_0x1ae7d0]||(_0x5f25bf[_0x1ae7d0]=[]),_0x5f25bf[_0x1ae7d0]['push'](_0x9e400d),_0x5f25bf;},{});_0x4c9f7a['plugins']['has']('ImageInsertUI')&&_0x4c9f7a['commands']['get']('uploadcare')&&Object['entries'](_0x11003b)['forEach'](([_0x4274b3,_0x493948])=>{_0x4c9f7a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4274b3,'observable':()=>_0x5cf523,'buttonViewCreator':()=>this['_createToolbarButton'](_0x493948),'formViewCreator':()=>this['_createDropdownButtons'](_0x493948),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x493948),'override':'assetManager'!==_0x4274b3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x48da36){const {locale:_0x233011}=this['editor'];return _0x48da36['map'](_0x115ab6=>{const _0x24c2ea=_(_0x233011,_0x115ab6,'Insert');switch(_0x115ab6){case i['Local']:return{'icon':_0x4810bc,'type':i['Local'],..._0x24c2ea};case i['URL']:return{'icon':_0x3602a7,'type':i['URL'],..._0x24c2ea};case i['Dropbox']:return{'icon':_0xfc34a4,'type':i['Dropbox'],..._0x24c2ea};case i['Facebook']:return{'icon':_0xabf311,'type':i['Facebook'],..._0x24c2ea};case i['GDrive']:return{'icon':_0x326a73,'type':i['GDrive'],..._0x24c2ea};case i['GPhotos']:return{'icon':_0x1417fa,'type':i['GPhotos'],..._0x24c2ea};case i['OneDrive']:return{'icon':_0x1a5e75,'type':i['OneDrive'],..._0x24c2ea};}});}['_getIntegrationKey'](_0x45c522){switch(_0x45c522){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x571d9e,_0x196522){const _0x786c34=this['editor'],_0x16a4f6=new _0x571d9e(_0x786c34['locale']),_0x5c341a=_0x786c34['commands']['get']('uploadcare');return _0x16a4f6['bind']('isEnabled')['to'](_0x5c341a),_0x16a4f6['on']('execute',()=>{_0x5c341a['execute'](_0x196522);}),_0x16a4f6;}['_createToolbarButton'](_0xf111e4){const {locale:_0x30f0e3}=this['editor'],_0xd18eed=this['editor']['plugins']['get']('ImageInsertUI'),_0x5a5fdb=_0xf111e4[0x0],_0x12e834=this['_createButton'](_0x3efac0,_0x5a5fdb['type']);return _0x12e834['icon']=_0x5a5fdb['icon'],_0x12e834['bind']('label')['to'](_0xd18eed,'isImageSelected',_0x5285b2=>_(_0x30f0e3,_0x5a5fdb['type'],_0x5285b2?'Replace':'Insert')['text']),_0x12e834['tooltip']=!0x0,_0x12e834;}['_createDropdownButtons'](_0x4f7732){const {locale:_0x35a9ae}=this['editor'],_0x403bcd=this['editor']['plugins']['get']('ImageInsertUI');return _0x4f7732['map'](_0x13612a=>{const _0x367eb2=this['_createButton'](_0x3efac0,_0x13612a['type']);return _0x367eb2['withText']=!0x0,_0x367eb2['icon']=_0x13612a['icon'],_0x367eb2['bind']('label')['to'](_0x403bcd,'isImageSelected',_0x33b94f=>_(_0x35a9ae,_0x13612a['type'],_0x33b94f?'Replace':'Insert')['text']),_0x367eb2;});}['_createMenuBarButtons'](_0x34c923){return _0x34c923['map'](_0x451eb0=>{const _0x28c23f=this['_createButton'](_0x276866,_0x451eb0['type']);return _0x28c23f['icon']=_0x451eb0['icon'],_0x28c23f['label']=_0x451eb0['shortText'],_0x28c23f;});}}class F extends _0x1165d9{['focusTracker'];['focusCycler'];constructor(_0x1de965){super(_0x1de965),this['focusTracker']=new _0x767656(),this['focusCycler']=new _0x348f0a({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x49e0fe,_0x2d37e3){super(_0x49e0fe),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-'+_0x2d37e3}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4d30b3,_0x63b5bd){const _0x8ab9d9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x326f18=>_0x326f18<=_0x63b5bd)['map'](_0x435b3b=>_0x4d30b3['replace'](/\/$/,'')+'/-/resize/'+_0x435b3b+'x/\x20'+_0x435b3b+'w');return{'imageFallbackUrl':_0x4d30b3,'imageSources':[{'srcset':_0x8ab9d9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x63b5bd+'px)\x20100vw,\x20'+_0x63b5bd+'px','type':'image/webp'}]};}function S(_0x11e0b3,_0x5bad84,_0x1bcd41){const _0x4b38cb=_0x11e0b3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4b38cb?parseInt(_0x4b38cb[0x1],0xa):_0x5bad84,'height':_0x4b38cb?parseInt(_0x4b38cb[0x2],0xa):_0x1bcd41};}function p(_0x11acb8,_0x55a1e7){const _0x351512=new(_0x2e286e())(),_0x1f2141=_0x11acb8['plugins']['get']('ImageUtils'),_0x91b7e=_0x11acb8['editing']['mapper']['toViewElement'](_0x55a1e7),_0xba1f66=_0x1f2141['findViewImgElement'](_0x91b7e),_0x575980=_0x11acb8['editing']['view']['domConverter']['viewToDom'](_0xba1f66),_0x47c19e=_0x55a1e7['getAttribute']('width'),_0x1599fc=_0x55a1e7['getAttribute']('height'),_0x28c979='image-processing';_0x11acb8['editing']['view']['change'](_0x3d01bb=>{_0x3d01bb['addClass'](_0x28c979,_0x91b7e),_0x3d01bb['setStyle']('aspect-ratio',_0x47c19e+'/'+_0x1599fc,_0xba1f66);}),_0x351512['listenTo'](_0x575980,'load',()=>{_0x351512['stopListening'](_0x575980,'load'),_0x11acb8['editing']['view']['change'](_0x4b7beb=>{_0x4b7beb['removeClass'](_0x28c979,_0x91b7e),_0x4b7beb['removeStyle']('aspect-ratio',_0xba1f66);});});}function G(_0x413448){if(Array['isArray'](_0x413448)){const _0x211c62=_0x413448['map'](G);return _0x3993b4=>_0x211c62['some'](_0x40e615=>_0x40e615(_0x3993b4));}if('origin'==_0x413448){const _0x211ede=_0x566bb4['window']['location']['origin'];return _0x5525fe=>new URL(_0x5525fe,_0x566bb4['document']['baseURI'])['origin']==_0x211ede;}return'function'==typeof _0x413448?_0x413448:_0x413448 instanceof RegExp?_0x7f71b2=>!(!_0x7f71b2['match'](_0x413448)&&!_0x7f71b2['replace'](/^https?:\/\//,'')['match'](_0x413448)):()=>!0x1;}function A(_0x13da4b,_0x397011){return _0x4510fe(_0x13da4b['target'])['includes'](_0x397011);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3b3467(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b2e62,_0x215c5c,_0x5108fa){super(),this['_editor']=_0x4b2e62,this['_editing']=_0x215c5c,this['_dialog']=_0x4b2e62['plugins']['get'](_0x40de19),this['_api']=_0x215c5c['ctxElement']['getAPI'](),this['_type']=_0x5108fa,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:_0x5d7d6a,model:_0x1808a3}=this['_editor'],_0x59111f=_0x1808a3['document']['selection']['getSelectedElement'](),_0x57d247=_0x59111f&&(_0x59111f['is']('element','imageBlock')||_0x59111f['is']('element','imageInline'));this['_formView']=new x(_0x5d7d6a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4810bc,'title':_(_0x5d7d6a,this['_type'],_0x57d247?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x45c5da['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x38ca91=>!A(_0x38ca91,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x379002}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x22cc2e=>{const _0x2d8e1e=_0x379002['length'];for(const _0x53531e of _0x379002){const _0x5b928a=_0x53531e===_0x379002[_0x2d8e1e-0x1],{cdnUrl:_0x378d7a,fileInfo:_0x402f4}=_0x53531e;if(!_0x378d7a||!_0x402f4)continue;const {width:_0x37f56d,height:_0x14c9f8}=_0x402f4['imageInfo'],_0x44dc84=S(_0x378d7a,_0x37f56d,_0x14c9f8),_0x5efac0=C(_0x378d7a,_0x44dc84['width']),_0x246243={'id':_0x402f4['uuid'],'type':'image','attributes':{'imageDimension':_0x44dc84,..._0x5efac0}};this['_insertAsset'](_0x246243,_0x5b928a,_0x22cc2e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1e38b5=>{'idle'===_0x1e38b5['detail']['status']&&!_0x1e38b5['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x50e71d,_0x51735a,_0x491db1){const _0x50a79e=this['_editor']['model']['document']['selection'],_0x339ca1=_0x50a79e['getSelectedElement'](),_0x12e927=!(!_0x339ca1||!_0x339ca1['is']('element','imageInline'));_0x491db1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x50e71d,_0x12e927),_0x51735a||_0x491db1['setSelection'](_0x50a79e['getLastPosition']());}['_insertImage'](_0x45de48,_0x4432d1){const _0x2d8495=this['_editor'],{imageDimension:_0x3ada75,imageFallbackUrl:_0x59f5ca,imageSources:_0x1407cf}=_0x45de48['attributes'];_0x2d8495['execute']('insertImage',{'imageType':_0x4432d1?'imageInline':null,'source':{'uploadcareImageId':_0x45de48['id'],'src':_0x59f5ca,'sources':_0x1407cf,..._0x3ada75}});}}class w extends _0x2af24d{['_editing'];['_controller']=null;static get['requires'](){return[_0x40de19,o];}constructor(_0x2ec411){super(_0x2ec411),this['_editing']=_0x2ec411['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3d799a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3d799a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x135441,..._0x5476bc}){return _0xf8f91e(_0x135441,_0x5476bc);}static['getInfo'](_0x557338,_0x4077ae){return _0x186bb3(_0x557338,_0x4077ae);}}class f extends _0x53c0be{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4a2148,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3d07ed=this['editor'];if(!!!_0x3d07ed['config']['get']('uploadcare'))return;_0x3d07ed['plugins']['get'](_0x4a2148)['createUploadAdapter']=_0x3c324e=>new k(_0x3c324e,_0x3d07ed),_0x3d07ed['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x343cb8,{imageElement:_0x37921c,data:_0x1a02de})=>{_0x3d07ed['model']['change'](_0x34c7e6=>{_0x34c7e6['setAttribute']('uploadcareImageId',_0x1a02de['uploadcareImageId'],_0x37921c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x487ccc,_0x4ec09f){this['loader']=_0x487ccc,this['editor']=_0x4ec09f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x53b05b=await this['loader']['file'];return j['upload']({'file':_0x53b05b,'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':_0x210cdd=>{_0x210cdd&&_0x210cdd['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x210cdd['value']);}})['then'](async _0x1d5378=>{const {imageFallbackUrl:_0x41c321,imageSources:_0x215d0d}=C(_0x1d5378['cdnUrl'],_0x1d5378['imageInfo']['width']);return{'uploadcareImageId':_0x1d5378['uuid'],'default':_0x41c321,'sources':_0x215d0d};})['catch'](()=>{const _0x29adf2=t('Cannot\x20upload\x20file:')+('\x20'+_0x53b05b['name']+'.');return Promise['reject'](_0x29adf2);});}['abort'](){this['controller']['abort']();}}class o extends _0x53c0be{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x40de19];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xc89388){super(_0xc89388),this['ucContextId']=_0x232907();}['init'](){const _0x3ad67f=this['editor'];_0x3ad67f['commands']['add']('uploadcare',new w(_0x3ad67f));}['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 _0x34a9bd=_0x566bb4['document']['querySelector']('input[uploadcare-file-input]');_0x34a9bd&&_0x34a9bd['remove']();}),async function(_0x2d54ab){const _0xf8ea4e=_0x2c3ed0([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]),_0x2040b=0x535f8c3a,_0x1a7c25=0x53580a92^_0x2040b,_0x108cd4=window[_0x2c3ed0([0x44,0x61,0x74,0x65])][_0x2c3ed0([0x6e,0x6f,0x77])](),_0x46591c=_0x2d54ab[_0x2c3ed0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x33f103=new window[(_0x2c3ed0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bfdf2=>{_0x46591c[_0x2c3ed0([0x6f,0x6e,0x63,0x65])](_0x2c3ed0([0x72,0x65,0x61,0x64,0x79]),_0x3bfdf2);}),_0x3a4958={[_0x2c3ed0([0x6b,0x74,0x79])]:_0x2c3ed0([0x45,0x43]),[_0x2c3ed0([0x75,0x73,0x65])]:_0x2c3ed0([0x73,0x69,0x67]),[_0x2c3ed0([0x63,0x72,0x76])]:_0x2c3ed0([0x50,0x2d,0x32,0x35,0x36]),[_0x2c3ed0([0x78])]:_0x2c3ed0([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]),[_0x2c3ed0([0x79])]:_0x2c3ed0([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]),[_0x2c3ed0([0x61,0x6c,0x67])]:_0x2c3ed0([0x45,0x53,0x32,0x35,0x36])},_0x51fe40=_0x46591c[_0x2c3ed0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c3ed0([0x67,0x65,0x74])](_0x2c3ed0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5f03ed(){let _0x40908c,_0x4331cd=null,_0x147824=null;try{if(_0x51fe40==_0x2c3ed0([0x47,0x50,0x4c]))return _0x2c3ed0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40908c=_0x27091c(),!_0x40908c)return _0x2c3ed0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40908c[_0x2c3ed0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x147824=_0x3d273e(_0x40908c[_0x2c3ed0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40908c[_0x2c3ed0([0x6a,0x74,0x69])])),await _0x29dbac()?_0x573d76()?_0x3d4a5e()?_0x2c3ed0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x367b9f()?(_0x40908c[_0x2c3ed0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c3ed0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4331cd=_0x21b50a(_0x2c3ed0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ad8f6()):_0x2c3ed0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c3ed0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c3ed0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2c3ed0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d4a5e(){const _0x29ee59=[_0x2c3ed0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c3ed0([0x74,0x72,0x69,0x61,0x6c])][_0x2c3ed0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40908c[_0x2c3ed0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x108cd4/0x3e8:0xe10*_0x1a7c25;return _0x40908c[_0x2c3ed0([0x65,0x78,0x70])]<_0x29ee59;}function _0x573d76(){const _0x15a157=_0x40908c[_0x2c3ed0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15a157&&(!!_0x15a157[_0x2c3ed0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c3ed0([0x2a]))||!!_0x15a157[_0x2c3ed0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c3ed0([0x55,0x50,0x4c,0x43])));}function _0x367b9f(){const _0x64e41=_0x40908c[_0x2c3ed0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x64e41||0x0==_0x64e41[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36f2c3}=new URL(window[_0x2c3ed0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x64e41[_0x2c3ed0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36f2c3))return!0x0;const _0x3f10e3=_0x36f2c3[_0x2c3ed0([0x73,0x70,0x6c,0x69,0x74])](_0x2c3ed0([0x2e]));return _0x64e41[_0x2c3ed0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a15b7=>_0x5a15b7[_0x2c3ed0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c3ed0([0x2a])))[_0x2c3ed0([0x6d,0x61,0x70])](_0x5b604d=>_0x5b604d[_0x2c3ed0([0x73,0x70,0x6c,0x69,0x74])](_0x2c3ed0([0x2e])))[_0x2c3ed0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x347fa2=>_0x347fa2[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f10e3[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c3ed0([0x6d,0x61,0x70])](_0x3acced=>Array(_0x3f10e3[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3acced[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c3ed0([0x66,0x69,0x6c,0x6c])](_0x3acced[0x0]===_0x2c3ed0([0x2a])?_0x2c3ed0([0x2a]):'')[_0x2c3ed0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3acced))[_0x2c3ed0([0x73,0x6f,0x6d,0x65])](_0x28170a=>_0x3f10e3[_0x2c3ed0([0x65,0x76,0x65,0x72,0x79])]((_0x102bea,_0x243e7f)=>_0x28170a[_0x243e7f]===_0x102bea||_0x28170a[_0x243e7f]===_0x2c3ed0([0x2a])));}function _0x1ad8f6(){return _0x4331cd&&_0x147824?new window[(_0x2c3ed0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8cbd87,_0x32ca62)=>{_0x4331cd[_0x2c3ed0([0x74,0x68,0x65,0x6e])](_0x8cbd87,_0x32ca62),_0x147824[_0x2c3ed0([0x74,0x68,0x65,0x6e])](_0x3c9acd=>{_0x3c9acd!=_0x2c3ed0([0x56,0x61,0x6c,0x69,0x64])&&_0x8cbd87(_0x3c9acd);},_0x32ca62);}):_0x4331cd||_0x147824||_0x2c3ed0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d273e(_0x4a7e9e,_0xda56dc){return new window[(_0x2c3ed0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfe35f5=>{if(_0x4e8a6b())return _0xfe35f5(_0x2c3ed0([0x56,0x61,0x6c,0x69,0x64]));_0x1acb3c(),_0x46591c[_0x2c3ed0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c3ed0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42a032=!0x1;const _0x7b7528=_0x232907();function _0x2a5ee7(_0x596cc2){return!!_0x596cc2&&(typeof _0x596cc2===_0x2c3ed0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x596cc2===_0x2c3ed0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x596cc2[_0x2c3ed0([0x74,0x68,0x65,0x6e])]===_0x2c3ed0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x596cc2[_0x2c3ed0([0x63,0x61,0x74,0x63,0x68])]===_0x2c3ed0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6a058b(_0x1dc065){_0x530492(_0x1dc065)[_0x2c3ed0([0x74,0x68,0x65,0x6e])](_0x595cc7=>{if(!_0x595cc7||_0x595cc7[_0x2c3ed0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c3ed0([0x6f,0x6b]))return _0x2c3ed0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cf1a6(_0x27891(_0x7b7528+_0xda56dc))!=_0x595cc7[_0x2c3ed0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c3ed0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c3ed0([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c3ed0([0x74,0x68,0x65,0x6e])](_0x3babc4=>(_0x1a2536(),_0x3babc4),()=>{const _0x466d1d=_0x19f441();return null==_0x466d1d?(_0x1a2536(),_0x2c3ed0([0x56,0x61,0x6c,0x69,0x64])):_0x2c3ed0(_0x108cd4-_0x466d1d>(0x7753083a^_0x2040b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c3ed0([0x74,0x68,0x65,0x6e])](_0xfe35f5)[_0x2c3ed0([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfe35f5(_0x2c3ed0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2266f0=0x536962ba^_0x2040b;function _0x1a2536(){const _0x23fbcb=_0x2c3ed0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cf1a6(_0x27891(_0x4a7e9e)),_0xbe0c1e=_0xb9c9f2(_0x3cf1a6(window[_0x2c3ed0([0x4d,0x61,0x74,0x68])][_0x2c3ed0([0x63,0x65,0x69,0x6c])](_0x108cd4/_0x2266f0)));window[_0x2c3ed0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c3ed0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23fbcb,_0xbe0c1e);}function _0x19f441(){const _0x2b6add=_0x2c3ed0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cf1a6(_0x27891(_0x4a7e9e)),_0x16bd76=window[_0x2c3ed0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c3ed0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b6add);return _0x16bd76?window[_0x2c3ed0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb9c9f2(_0x16bd76),0x10)*_0x2266f0:null;}function _0x530492(_0x576aa6){return new window[(_0x2c3ed0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b7271,_0x5bcee4)=>{_0x576aa6[_0x2c3ed0([0x74,0x68,0x65,0x6e])](_0x3b7271,_0x5bcee4),window[_0x2c3ed0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5bcee4,0x535e58fa^_0x2040b);});}}_0x46591c[_0x2c3ed0([0x6f,0x6e])](_0x2c3ed0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x111b1b,_0x3caf8b)=>{if(_0x3caf8b[0x0]!=_0x4a7e9e)return _0xfe35f5(_0x2c3ed0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3caf8b[0x1]={..._0x3caf8b[0x1],[_0x2c3ed0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7b7528};},{[_0x2c3ed0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c3ed0([0x68,0x69,0x67,0x68])}),_0x46591c[_0x2c3ed0([0x6f,0x6e])](_0x2c3ed0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16e1dc=>{_0x2a5ee7(_0x16e1dc[_0x2c3ed0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42a032=!0x0,_0x6a058b(_0x16e1dc[_0x2c3ed0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c3ed0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c3ed0([0x6c,0x6f,0x77])}),_0x33f103[_0x2c3ed0([0x74,0x68,0x65,0x6e])](()=>{_0x42a032||_0xfe35f5(_0x2c3ed0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e8a6b(){return _0x46591c[_0x2c3ed0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c3ed0([0x76,0x69,0x65,0x77])][_0x2c3ed0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c3ed0([0x61,0x75,0x74,0x6f]);}function _0x1acb3c(){_0x46591c[_0x2c3ed0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c3ed0([0x76,0x69,0x65,0x77])][_0x2c3ed0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c3ed0([0x61,0x75,0x74,0x6f]);}}function _0x21b50a(_0x3beb94){const _0x45b3f4=[new window[(_0x2c3ed0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30f734=>setTimeout(_0x30f734,0x5356b2f6^_0x2040b)),_0x33f103[_0x2c3ed0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c3ed0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11c36c=>{let _0x408b10=0x0;_0x46591c[_0x2c3ed0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c3ed0([0x6f,0x6e])](_0x2c3ed0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f7061,_0x1db22e)=>{_0x1db22e[0x0][_0x2c3ed0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x408b10++,_0x408b10==(0x535f89d2^_0x2040b)&&(_0x11c36c(),_0x1f7061[_0x2c3ed0([0x6f,0x66,0x66])]());});}))];return window[_0x2c3ed0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c3ed0([0x72,0x61,0x63,0x65])](_0x45b3f4)[_0x2c3ed0([0x74,0x68,0x65,0x6e])](()=>_0x3beb94);}async function _0x44feb5(){await _0x33f103,_0x46591c[_0x2c3ed0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c3ed0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x599c9e,_0x46591c[_0x2c3ed0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c3ed0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x599c9e,_0x46591c[_0x2c3ed0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c3ed0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1cd064(_0x4e1d0f){const _0x202902=_0x5df365();_0x46591c[_0x202902]=_0x2c3ed0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e1d0f,_0x4e1d0f!=_0x2c3ed0([0x56,0x61,0x6c,0x69,0x64])&&_0x44feb5();}function _0x5df365(){const _0x12d552=window[_0x2c3ed0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c3ed0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c3ed0([0x6e,0x6f,0x77])]())[_0x2c3ed0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c3ed0([0x2e]),'');let _0x24f169=_0x2c3ed0([0x68]);for(let _0x1d0a9b=0x0;_0x1d0a9b<_0x12d552[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d0a9b+=0x2){let _0x568a14=window[_0x2c3ed0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12d552[_0x2c3ed0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d0a9b,_0x1d0a9b+0x2));_0x568a14>=_0xf8ea4e[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x568a14-=_0xf8ea4e[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24f169+=_0xf8ea4e[_0x568a14];}return _0x24f169;}function _0x27091c(){const _0x15b6d3=_0x51fe40[_0x2c3ed0([0x73,0x70,0x6c,0x69,0x74])](_0x2c3ed0([0x2e]));if(0x3!=_0x15b6d3[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20d927(_0x15b6d3[0x1]);function _0x20d927(_0xf36140){const _0x53e332=_0x3f1c09(_0xf36140);return _0x53e332&&_0x307547()?_0x53e332:null;function _0x307547(){const _0x2dae10=_0x53e332[_0x2c3ed0([0x6a,0x74,0x69])],_0x434bea=window[_0x2c3ed0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dae10[_0x2c3ed0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2dae10[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x585cb={..._0x53e332,[_0x2c3ed0([0x6a,0x74,0x69])]:_0x2dae10[_0x2c3ed0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2dae10[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x585cb[_0x2c3ed0([0x76,0x63])],_0x27891(_0x585cb)==_0x434bea;}}}async function _0x29dbac(){let _0x2b40b2=!0x0;try{const _0x43c9cc=_0x51fe40[_0x2c3ed0([0x73,0x70,0x6c,0x69,0x74])](_0x2c3ed0([0x2e])),[_0x1b782a,_0x2aadc5,_0x3d0e04]=_0x43c9cc;return _0x3b0db3(_0x1b782a),await _0x26dece(_0x1b782a,_0x2aadc5,_0x3d0e04),_0x2b40b2;}catch{return!0x1;}function _0x3b0db3(_0x3e323b){const _0x2c3c34=_0x3f1c09(_0x3e323b);_0x2c3c34&&_0x2c3c34[_0x2c3ed0([0x61,0x6c,0x67])]==_0x2c3ed0([0x45,0x53,0x32,0x35,0x36])||(_0x2b40b2=!0x1);}async function _0x26dece(_0x436f77,_0x1677de,_0x4d21b4){const _0xa2ce01=window[_0x2c3ed0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c3ed0([0x66,0x72,0x6f,0x6d])](_0x2ea9d9(_0x4d21b4),_0x399451=>_0x399451[_0x2c3ed0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a1af8=new window[(_0x2c3ed0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c3ed0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x436f77+_0x2c3ed0([0x2e])+_0x1677de),_0x55506c=window[_0x2c3ed0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c3ed0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55506c)return;const _0x30f34f=await _0x55506c[_0x2c3ed0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c3ed0([0x6a,0x77,0x6b]),_0x3a4958,{[_0x2c3ed0([0x6e,0x61,0x6d,0x65])]:_0x2c3ed0([0x45,0x43,0x44,0x53,0x41]),[_0x2c3ed0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c3ed0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c3ed0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55506c[_0x2c3ed0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c3ed0([0x6e,0x61,0x6d,0x65])]:_0x2c3ed0([0x45,0x43,0x44,0x53,0x41]),[_0x2c3ed0([0x68,0x61,0x73,0x68])]:{[_0x2c3ed0([0x6e,0x61,0x6d,0x65])]:_0x2c3ed0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30f34f,_0xa2ce01,_0x2a1af8)||(_0x2b40b2=!0x1);}}function _0x3f1c09(_0x4d8004){return _0x4d8004[_0x2c3ed0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c3ed0([0x65,0x79]))?JSON[_0x2c3ed0([0x70,0x61,0x72,0x73,0x65])](_0x2ea9d9(_0x4d8004)):null;}function _0x2ea9d9(_0xfe6b2c){return window[_0x2c3ed0([0x61,0x74,0x6f,0x62])](_0xfe6b2c[_0x2c3ed0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c3ed0([0x2b]))[_0x2c3ed0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c3ed0([0x2f])));}function _0x27891(_0x5df5cc){let _0x43a18a=0x1505;function _0x3a3436(_0x4f2ab8){for(let _0x56fab0=0x0;_0x56fab0<_0x4f2ab8[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56fab0++){const _0x41b7de=_0x4f2ab8[_0x2c3ed0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56fab0);_0x43a18a=(_0x43a18a<<0x5)+_0x43a18a+_0x41b7de,_0x43a18a&=_0x43a18a;}}function _0x46fd53(_0x3ae7be){Array[_0x2c3ed0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ae7be)?_0x3ae7be[_0x2c3ed0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x46fd53):_0x3ae7be&&typeof _0x3ae7be==_0x2c3ed0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c3ed0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ae7be)[_0x2c3ed0([0x73,0x6f,0x72,0x74])]()[_0x2c3ed0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29307f,_0x1922e4])=>{_0x3a3436(_0x29307f),_0x46fd53(_0x1922e4);}):_0x3a3436(window[_0x2c3ed0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ae7be));}return _0x46fd53(_0x5df5cc),_0x43a18a>>>0x0;}function _0x3cf1a6(_0x7cb202){return _0x7cb202[_0x2c3ed0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c3ed0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c3ed0([0x30]));}function _0xb9c9f2(_0x3f82a5){return _0x3f82a5[_0x2c3ed0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c3ed0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c3ed0([0x6a,0x6f,0x69,0x6e])]('');}function _0x599c9e(){}function _0x2c3ed0(_0xe8e385){return _0xe8e385['map'](_0x95d9f0=>String['fromCharCode'](_0x95d9f0))['join']('');}_0x1cd064(await _0x5f03ed());}(this);}['_initSchema'](){const _0x129905=this['editor']['model']['schema'];_0x129905['isRegistered']('imageBlock')&&_0x129905['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x129905['isRegistered']('imageInline')&&_0x129905['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xbfd15e=this['editor'];_0xbfd15e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xbfd15e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x474bae=>_0x474bae['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x510cdd=_0xbfd15e['commands']['get']('replaceImageSource');_0x510cdd&&this['listenTo'](_0x510cdd,'cleanupImage',(_0x4cd3f0,[_0x5e92e2,_0xdd036e])=>{_0x5e92e2['removeAttribute']('uploadcareImageId',_0xdd036e);});}['_initConfig'](){const _0x5480d7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x10d64e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x41b016(_0x566bb4['document'],'uc-config',{..._0x5480d7,'pubkey':_0x10d64e,'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']=_0x44e888=>{if('closeMax'==_0x44e888)return'#uc-icon-arrow-down';},_0x566bb4['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x41b016(_0x566bb4['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x566bb4['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x32addd=this['editor']['commands']['get']('insertImage');_0x32addd&&this['listenTo'](_0x32addd,'execute',()=>{const _0x440488=this['editor']['model']['document']['selection']['getSelectedElement']();_0x440488&&_0x440488['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x440488);});});const _0x19ae9c=this['editor']['commands']['get']('uploadcareImageReplace');_0x19ae9c&&this['listenTo'](_0x19ae9c,'execute',()=>{const _0x544fb5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x544fb5&&_0x544fb5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x544fb5);});});}}class tt extends _0x53c0be{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11453a){super(_0x11453a),_0x11453a['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x13394d['defineComponents'](_0x13394d),this['_defineLocale']();}['_defineLocale'](){const _0x4634fe=this['editor']['config']['get']('uploadcare.locale'),_0x33c183=this['editor']['locale']['contentLanguage'];_0x4634fe&&_0x13394d['defineLocale'](_0x33c183,_0x4634fe);}}class ii extends _0x1165d9{constructor(_0x38cb87){super(_0x38cb87);const t=_0x38cb87['t'],_0x12fe24=this['bindTemplate'],_0x1ff038=new _0xd55652();_0x1ff038['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':[_0x1ff038,{'text':_0x12fe24['to']('imageUploadProgress',_0x48cb42=>t('Loading\x20image...')+'\x20('+(_0x48cb42||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 _0x1165d9{constructor(_0x5dc0d5){super(_0x5dc0d5);const t=_0x5dc0d5['t'];this['set']('errorType',null);const _0x41ad95=new _0x3efac0(_0x5dc0d5);_0x41ad95['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x41ad95['withText']=!0x0,_0x41ad95['class']='ck-button-action',_0x41ad95['on']('execute',()=>{this['fire']('retry');}),_0x41ad95['bind']('isVisible')['to'](this,'errorType',_0x3929a1=>'NotFound'!==_0x3929a1);const _0x2d0060=new _0x1f1870();_0x2d0060['content']=_0x1f2473,_0x2d0060['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x377935=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':[_0x2d0060,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x377935['to']('errorType',_0x503262=>t('NotFound'!==_0x503262?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x41ad95]},{'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 _0x1165d9{constructor(_0x3863cc,_0x474dc4){super(_0x3863cc);const _0x323d2d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x474dc4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x323d2d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x59e302,_0x459041,_0x4778f0){super(_0x59e302),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x59e302),this['_errorView']=new ti(_0x59e302),this['_editingView']=new ei(_0x59e302,_0x4778f0),this['_focusableView']=new _0x1165d9(_0x59e302),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x459041),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'],_0x3225e1=>{this['_addUploadcareImageEditorListeners'](_0x3225e1);});}),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'](_0x3dabe8,_0xdf36b3){const _0x30fca8='uc-cloud-image-editor',_0x4ae63d=_0x3dabe8['querySelector'](_0x30fca8);if(_0x4ae63d)return _0xdf36b3(_0x4ae63d);const _0x559963=new MutationObserver(_0x24d56c=>{const _0x7266dc=_0x24d56c['filter'](_0x4c6212=>_0x4c6212['target']===_0x3dabe8&&_0x4c6212['addedNodes']['length']>0x0&&_0x4c6212['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x30fca8);_0x7266dc['length']&&(_0x559963['disconnect'](),_0xdf36b3(_0x7266dc[0x0]['addedNodes'][0x0]));});_0x559963['observe'](_0x3dabe8,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4851e0){_0x4851e0['addEventListener']('apply',_0x120b1b=>{this['fire']('apply',{'imageSrc':_0x120b1b['detail']['cdnUrl']});}),_0x4851e0['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3b3467(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x496cf4,_0x497f19,_0x123c5b){super(),this['_editor']=_0x496cf4,this['_dialog']=_0x497f19,this['_imageElement']=_0x123c5b,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 _0x5bb223=this['_imageElement'],_0x48efb3=_0x5bb223['getAttribute']('uploadcareImageId'),_0x40bd0b=_0x5bb223['getAttribute']('src');if(_0x48efb3)await this['_loadImageInfo'](_0x48efb3,_0x40bd0b);else{if(this['_imageCache']['has'](_0x40bd0b)){const _0x4022df=this['_imageCache']['get'](_0x40bd0b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4022df['url'],this['imageDimension']=_0x4022df['dimension'],this['imageId']=_0x4022df['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4c1ff9}=this['_editor'],t=_0x4c1ff9['t'],_0x18a791=new X(_0x4c1ff9,this['imageStatus'],this['_attributes']);_0x18a791['bind']('status')['to'](this,'imageStatus'),_0x18a791['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x18a791['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x18a791['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x18a791,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5bbecd,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x18a791,'position':_0x45c5da['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x18a791['focus']();},'onHide':()=>{_0x18a791['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x57baf7=>!A(_0x57baf7,_0x18a791['element'])}});}['_loadImageInfo'](_0x37e3b9,_0x3b2492){return j['getInfo'](_0x37e3b9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x65e9b0=>{const {width:_0x4535d2,height:_0x311d04}=_0x65e9b0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b2492,this['imageDimension']={'width':_0x4535d2,'height':_0x311d04},this['imageId']=_0x37e3b9;})['catch'](_0x7dd561=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x7dd561['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3837c8,_0xf24408){return this['_getImageAsFile'](_0x3837c8)['then'](_0x401f77=>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':_0xf24408['signal'],'file':_0x401f77,'onProgress':_0x37d1df=>{_0x37d1df&&_0x37d1df['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x37d1df['value']));}}))['then'](_0x24648c=>{const {width:_0x441332,height:_0x459bc1}=_0x24648c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24648c['cdnUrl'],this['imageDimension']={'width':_0x441332,'height':_0x459bc1},this['imageId']=_0x24648c['uuid'],this['imageUploadProgress']=null;const _0x4d34af=_0x3837c8['getAttribute']('src');this['_imageCache']['set'](_0x4d34af,{'id':_0x24648c['uuid'],'url':_0x24648c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x9277b8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x9277b8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x467be6,_0x22f197){_0x467be6['on']('apply',(_0x3aa870,_0x2ab5e3)=>{this['_replaceImage'](_0x22f197,_0x2ab5e3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x467be6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x467be6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4870f4,_0xda158e,_0x25da2b){const _0x495aff=this['_editor'],{width:_0x59517c,height:_0x14bb15}=S(_0xda158e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5c6974,imageSources:_0x4442ad}=C(_0xda158e,_0x59517c);_0x495aff['model']['change'](_0x5bf48c=>{if('$graveyard'===_0x4870f4['root']['rootName']){_0x495aff['execute']('insertImage',{'imageType':_0x4870f4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4870f4['getAttributes']()),'uploadcareImageId':_0x25da2b,'src':_0x5c6974,'sources':_0x4442ad,'width':_0x59517c,'height':_0x14bb15}});const _0xd0af09=_0x4870f4['getChildren']();_0x4870f4=_0x495aff['model']['document']['selection']['getSelectedElement']();for(const _0x1c2544 of _0xd0af09)_0x5bf48c['append'](_0x5bf48c['cloneElement'](_0x1c2544),_0x4870f4);}else _0x5bf48c['setSelection'](_0x4870f4,'on'),_0x495aff['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4870f4['getAttributes']()),'uploadcareImageId':_0x25da2b,'src':_0x5c6974,'sources':_0x4442ad,'width':_0x59517c,'height':_0x14bb15},_0x4870f4);_0x5bf48c['setSelection'](_0x4870f4,'on');});}async['_getImageAsFile'](_0x13d959){const _0x526bd1=_0x566bb4['window'],_0x24cfc2=_0x566bb4['document']['location']['href'],_0x1ef6cc=new _0x526bd1['URL'](_0x13d959['getAttribute']('src'),_0x24cfc2);if('data:'===_0x1ef6cc['protocol']){const _0x211a21=_0x1ef6cc['href']['split'](','),_0x40f3c1=_0x211a21[0x0]['match'](/:(.*?);/)[0x1],_0x4dc904=_0x40f3c1['split']('/')[0x1],_0x1810ed=_0x526bd1['atob'](_0x211a21[_0x211a21['length']-0x1]);let _0x1992bf=_0x1810ed['length'];const _0x190d1c=new _0x526bd1['Uint8Array'](_0x1992bf);for(;_0x1992bf--;)_0x190d1c[_0x1992bf]=_0x1810ed['charCodeAt'](_0x1992bf);return new _0x526bd1['File']([_0x190d1c],'image.'+_0x4dc904,{'type':_0x40f3c1});}const _0x34717b=_0x1ef6cc['href']['split']('/'),_0x148dfc=_0x34717b[_0x34717b['length']-0x1],_0x3a6395=_0x148dfc['split']('.')[0x1];return _0x526bd1['fetch'](_0x1ef6cc['href'])['then'](_0x2fe756=>_0x2fe756['clone']()['blob']())['then'](_0x1221a7=>new _0x526bd1['File']([_0x1221a7],_0x148dfc,{'type':'image/'+_0x3a6395}));}}class O extends _0x2af24d{['imageEditController'];static get['requires'](){return[_0x40de19];}['_isEditable'];constructor(_0x4a7db9){super(_0x4a7db9),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3dd1ab){const _0x4870f9=G(_0x3dd1ab);return _0x58ec85=>!(!_0x58ec85||!_0x58ec85['is']('element','imageBlock')&&!_0x58ec85['is']('element','imageInline'))&&(!!_0x58ec85['hasAttribute']('uploadcareImageId')||!!_0x58ec85['hasAttribute']('src')&&_0x4870f9(_0x58ec85['getAttribute']('src')));}(_0x4a7db9['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x24887a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x24887a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4c5fe5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c5fe5&&(_0x4c5fe5['is']('element','imageBlock')||_0x4c5fe5['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x40de19),_0x4c5fe5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x2af24d{['refresh'](){const _0x202eed=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x202eed&&(_0x202eed['is']('element','imageBlock')||_0x202eed['is']('element','imageInline')));}['execute'](_0x361b57){const _0x4ea4c3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xe29c96=>{_0xe29c96['setAttributes'](_0x361b57,_0x4ea4c3),_0xe29c96['removeAttribute']('srcset',_0x4ea4c3),_0xe29c96['removeAttribute']('sizes',_0x4ea4c3);});}}class m extends _0x53c0be{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x476b8a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x49909a}=this;_0x49909a['commands']['add']('uploadcareImageEdit',new O(_0x49909a)),_0x49909a['commands']['add']('uploadcareImageReplace',new R(_0x49909a));}}class g extends _0x53c0be{['_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 _0x4c3465=this['editor'];_0x4c3465['ui']['componentFactory']['add']('uploadcareImageEdit',_0x379d99=>{const _0x99886b=_0x4c3465['commands']['get']('uploadcareImageEdit'),_0x1ac631=new _0x3efac0(_0x379d99),t=_0x379d99['t'];return _0x1ac631['set']({'icon':_0x5bbecd,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1ac631['bind']('isEnabled')['to'](_0x99886b),_0x1ac631['bind']('isOn')['to'](_0x99886b,'isActive'),this['listenTo'](_0x1ac631,'execute',()=>{_0x4c3465['execute']('uploadcareImageEdit'),_0x4c3465['editing']['view']['focus']();}),_0x1ac631;}),this['_initConfig']();}['_initConfig'](){const _0x59bf5e=_0x41b016(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x59bf5e),this['listenTo'](this['editor'],'destroy',()=>{_0x59bf5e['remove']();});}}class et extends _0x53c0be{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x8c403d,Command as _0x57418f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4f58bf,IconGooglePhotos as _0x2afac9,IconGoogleDrive as _0x1b5855,IconFacebook as _0x1cd8fe,IconDropbox as _0x22e28f,IconUploadcareLink as _0x5e272e,IconUploadcareImageUpload as _0x3efb66,IconError as _0x35a541,IconUploadcareImageEdit as _0x4de20a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1d688e,MenuBarMenuListItemButtonView as _0x3d5108,View as _0x3b5139,FocusCycler as _0x11f4af,Dialog as _0x52bb78,DialogViewPosition as _0x405a74,SpinnerView as _0x171940,IconView as _0x36203b,Notification as _0x12c1b2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x157a83,DomEmitterMixin as _0x57b37c,global as _0x3e2609,getAncestors as _0x2c36ea,ObservableMixin as _0x497f60,uid as _0x46b189,createElement as _0x36f3c0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x10dfe3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x557d3c,info as _0x3f2235}from'@uploadcare/upload-client';import*as _0x13888f from'@uploadcare/file-uploader';var i=function(_0x1ee345){return _0x1ee345['Local']='local',_0x1ee345['URL']='url',_0x1ee345['Dropbox']='dropbox',_0x1ee345['GDrive']='gdrive',_0x1ee345['Facebook']='facebook',_0x1ee345['GPhotos']='gphotos',_0x1ee345['OneDrive']='onedrive',_0x1ee345;}({});function _(_0x53024c,_0x5d14ad,_0x5a3870){const t=_0x53024c['t'],_0x5703e1=_0x53024c['t'];switch(_0x5d14ad){case i['Local']:return{'text':_0x5703e1('Insert'===_0x5a3870?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5703e1('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5a3870?_0x5703e1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5703e1('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5a3870?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5a3870?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5a3870?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5a3870?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5a3870?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5d14ad;}}class e extends _0x8c403d{['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 _0x1a1f49=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57d966;for(const _0x149df0 in _0x1a1f49){const _0xeca766=_0x149df0,_0xfce3ad=_0x1a1f49[_0xeca766];if('uploadcareLicenseKeyValid'==_0xfce3ad||'uploadcareLicenseKeyInvalid'==_0xfce3ad||'uploadcareLicenseKeyExpired'==_0xfce3ad||'uploadcareLicenseKeyDomainLimit'==_0xfce3ad||'uploadcareLicenseKeyNotAllowed'==_0xfce3ad||'uploadcareLicenseKeyEvaluationLimit'==_0xfce3ad||'uploadcareLicenseKeyUsageLimit'==_0xfce3ad){delete _0x1a1f49[_0xeca766],_0x57d966=_0xfce3ad,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x57d966&&_0x1a1f49['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x57d966&&_0x1a1f49['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x57d966&&_0x1a1f49['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x57d966&&_0x1a1f49['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x57d966&&_0x1a1f49['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x57d966&&_0x1a1f49['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5e2754}=this,_0x230e67=_0x5e2754['commands']['get']('uploadcare');if(!_0x230e67)return;const _0x66c84d=this['_normalizeConfigSourceList'](_0x5e2754['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x17af32,_0x3976bf)=>{const _0x480f03=this['_getIntegrationKey'](_0x3976bf['type']);return _0x17af32[_0x480f03]||(_0x17af32[_0x480f03]=[]),_0x17af32[_0x480f03]['push'](_0x3976bf),_0x17af32;},{});_0x5e2754['plugins']['has']('ImageInsertUI')&&_0x5e2754['commands']['get']('uploadcare')&&Object['entries'](_0x66c84d)['forEach'](([_0x1c3d80,_0x2ebfe8])=>{_0x5e2754['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1c3d80,'observable':()=>_0x230e67,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2ebfe8),'formViewCreator':()=>this['_createDropdownButtons'](_0x2ebfe8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2ebfe8),'override':'assetManager'!==_0x1c3d80});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x571b0e){const {locale:_0x27f8a7}=this['editor'];return _0x571b0e['map'](_0x192f50=>{const _0x37f547=_(_0x27f8a7,_0x192f50,'Insert');switch(_0x192f50){case i['Local']:return{'icon':_0x3efb66,'type':i['Local'],..._0x37f547};case i['URL']:return{'icon':_0x5e272e,'type':i['URL'],..._0x37f547};case i['Dropbox']:return{'icon':_0x22e28f,'type':i['Dropbox'],..._0x37f547};case i['Facebook']:return{'icon':_0x1cd8fe,'type':i['Facebook'],..._0x37f547};case i['GDrive']:return{'icon':_0x1b5855,'type':i['GDrive'],..._0x37f547};case i['GPhotos']:return{'icon':_0x2afac9,'type':i['GPhotos'],..._0x37f547};case i['OneDrive']:return{'icon':_0x4f58bf,'type':i['OneDrive'],..._0x37f547};}});}['_getIntegrationKey'](_0x43ea15){switch(_0x43ea15){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x25ece8,_0x389fbb){const _0x410133=this['editor'],_0x391642=new _0x25ece8(_0x410133['locale']),_0x4487d9=_0x410133['commands']['get']('uploadcare');return _0x391642['bind']('isEnabled')['to'](_0x4487d9),_0x391642['on']('execute',()=>{_0x4487d9['execute'](_0x389fbb);}),_0x391642;}['_createToolbarButton'](_0x33108a){const {locale:_0x3fda22}=this['editor'],_0x33406c=this['editor']['plugins']['get']('ImageInsertUI'),_0x30c8fb=_0x33108a[0x0],_0x1c8966=this['_createButton'](_0x1d688e,_0x30c8fb['type']);return _0x1c8966['icon']=_0x30c8fb['icon'],_0x1c8966['bind']('label')['to'](_0x33406c,'isImageSelected',_0x58a2f3=>_(_0x3fda22,_0x30c8fb['type'],_0x58a2f3?'Replace':'Insert')['text']),_0x1c8966['tooltip']=!0x0,_0x1c8966;}['_createDropdownButtons'](_0x27a817){const {locale:_0x57b393}=this['editor'],_0x44f3c4=this['editor']['plugins']['get']('ImageInsertUI');return _0x27a817['map'](_0x35ab1b=>{const _0x4951a2=this['_createButton'](_0x1d688e,_0x35ab1b['type']);return _0x4951a2['withText']=!0x0,_0x4951a2['icon']=_0x35ab1b['icon'],_0x4951a2['bind']('label')['to'](_0x44f3c4,'isImageSelected',_0x2341d8=>_(_0x57b393,_0x35ab1b['type'],_0x2341d8?'Replace':'Insert')['text']),_0x4951a2;});}['_createMenuBarButtons'](_0x4e9b2e){return _0x4e9b2e['map'](_0x16a6ce=>{const _0x3a01c2=this['_createButton'](_0x3d5108,_0x16a6ce['type']);return _0x3a01c2['icon']=_0x16a6ce['icon'],_0x3a01c2['label']=_0x16a6ce['shortText'],_0x3a01c2;});}}class F extends _0x3b5139{['focusTracker'];['focusCycler'];constructor(_0x42460e){super(_0x42460e),this['focusTracker']=new _0x157a83(),this['focusCycler']=new _0x11f4af({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x313d5d,_0x14266b){super(_0x313d5d),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-'+_0x14266b}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x362206,_0x420efe){const _0x32bb1b=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xb6a816=>_0xb6a816<=_0x420efe)['map'](_0x423ac5=>_0x362206['replace'](/\/$/,'')+'/-/resize/'+_0x423ac5+'x/\x20'+_0x423ac5+'w');return{'imageFallbackUrl':_0x362206,'imageSources':[{'srcset':_0x32bb1b['join'](',\x20'),'sizes':'(max-width:\x20'+_0x420efe+'px)\x20100vw,\x20'+_0x420efe+'px','type':'image/webp'}]};}function S(_0x4ee028,_0x3942ec,_0x3de755){const _0x5edec7=_0x4ee028['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5edec7?parseInt(_0x5edec7[0x1],0xa):_0x3942ec,'height':_0x5edec7?parseInt(_0x5edec7[0x2],0xa):_0x3de755};}function p(_0x45b836,_0x5344e5){const _0x268982=new(_0x57b37c())(),_0x8ec7ad=_0x45b836['plugins']['get']('ImageUtils'),_0x4da210=_0x45b836['editing']['mapper']['toViewElement'](_0x5344e5),_0x37045c=_0x8ec7ad['findViewImgElement'](_0x4da210),_0x383423=_0x45b836['editing']['view']['domConverter']['viewToDom'](_0x37045c),_0x4a0fb2=_0x5344e5['getAttribute']('width'),_0x5d9804=_0x5344e5['getAttribute']('height'),_0x44055e='image-processing';_0x45b836['editing']['view']['change'](_0x138092=>{_0x138092['addClass'](_0x44055e,_0x4da210),_0x138092['setStyle']('aspect-ratio',_0x4a0fb2+'/'+_0x5d9804,_0x37045c);}),_0x268982['listenTo'](_0x383423,'load',()=>{_0x268982['stopListening'](_0x383423,'load'),_0x45b836['editing']['view']['change'](_0x4ef0e5=>{_0x4ef0e5['removeClass'](_0x44055e,_0x4da210),_0x4ef0e5['removeStyle']('aspect-ratio',_0x37045c);});});}function z(_0x15847e){if(Array['isArray'](_0x15847e)){const _0x5830f2=_0x15847e['map'](z);return _0x5ee3b2=>_0x5830f2['some'](_0x3ff368=>_0x3ff368(_0x5ee3b2));}if('origin'==_0x15847e){const _0x1a3d64=_0x3e2609['window']['location']['origin'];return _0x2a79a5=>new URL(_0x2a79a5,_0x3e2609['document']['baseURI'])['origin']==_0x1a3d64;}return'function'==typeof _0x15847e?_0x15847e:_0x15847e instanceof RegExp?_0x1476b4=>!(!_0x1476b4['match'](_0x15847e)&&!_0x1476b4['replace'](/^https?:\/\//,'')['match'](_0x15847e)):()=>!0x1;}function A(_0x3394c5,_0x2c7fa2){return _0x2c36ea(_0x3394c5['target'])['includes'](_0x2c7fa2);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x497f60(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x356136,_0x107e43,_0x44c186){super(),this['_editor']=_0x356136,this['_editing']=_0x107e43,this['_dialog']=_0x356136['plugins']['get'](_0x52bb78),this['_api']=_0x107e43['ctxElement']['getAPI'](),this['_type']=_0x44c186,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:_0xb6479a,model:_0x38d59c}=this['_editor'],_0x39c824=_0x38d59c['document']['selection']['getSelectedElement'](),_0x44c842=_0x39c824&&(_0x39c824['is']('element','imageBlock')||_0x39c824['is']('element','imageInline'));this['_formView']=new x(_0xb6479a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3efb66,'title':_(_0xb6479a,this['_type'],_0x44c842?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x405a74['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x241f50=>!A(_0x241f50,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x19ad60}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3d29e5=>{const _0x5b29dd=_0x19ad60['length'];for(const _0x4abadd of _0x19ad60){const _0x1194c5=_0x4abadd===_0x19ad60[_0x5b29dd-0x1],{cdnUrl:_0x568a79,fileInfo:_0x4abc5a}=_0x4abadd;if(!_0x568a79||!_0x4abc5a)continue;const {width:_0x2a6d8d,height:_0x265e8e}=_0x4abc5a['imageInfo'],_0x45360b=S(_0x568a79,_0x2a6d8d,_0x265e8e),_0x1726ed=C(_0x568a79,_0x45360b['width']),_0x498ed6={'id':_0x4abc5a['uuid'],'type':'image','attributes':{'imageDimension':_0x45360b,..._0x1726ed}};this['_insertAsset'](_0x498ed6,_0x1194c5,_0x3d29e5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3a15c3=>{'idle'===_0x3a15c3['detail']['status']&&!_0x3a15c3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2b9860,_0x51452d,_0x52fb25){const _0x1e94b4=this['_editor']['model']['document']['selection'],_0x1c9267=_0x1e94b4['getSelectedElement'](),_0x221de0=!(!_0x1c9267||!_0x1c9267['is']('element','imageInline'));_0x52fb25['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2b9860,_0x221de0),_0x51452d||_0x52fb25['setSelection'](_0x1e94b4['getLastPosition']());}['_insertImage'](_0x156b38,_0x3090e4){const _0x194057=this['_editor'],{imageDimension:_0x1404ac,imageFallbackUrl:_0x860ebd,imageSources:_0x387f32}=_0x156b38['attributes'];_0x194057['execute']('insertImage',{'imageType':_0x3090e4?'imageInline':null,'source':{'uploadcareImageId':_0x156b38['id'],'src':_0x860ebd,'sources':_0x387f32,..._0x1404ac}});}}class w extends _0x57418f{['_editing'];['_controller']=null;static get['requires'](){return[_0x52bb78,o];}constructor(_0x3d0b68){super(_0x3d0b68),this['_editing']=_0x3d0b68['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x54f43e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x54f43e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4575eb,..._0x18890b}){return _0x557d3c(_0x4575eb,_0x18890b);}static['getInfo'](_0x3b3a05,_0x2f63d1){return _0x3f2235(_0x3b3a05,_0x2f63d1);}}class f extends _0x8c403d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x10dfe3,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x196435=this['editor'];if(!!!_0x196435['config']['get']('uploadcare'))return;_0x196435['plugins']['get'](_0x10dfe3)['createUploadAdapter']=_0x2d9c3a=>new k(_0x2d9c3a,_0x196435),_0x196435['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2ef64c,{imageElement:_0x32afa6,data:_0x1f04b7})=>{_0x196435['model']['change'](_0x40c84c=>{_0x40c84c['setAttribute']('uploadcareImageId',_0x1f04b7['uploadcareImageId'],_0x32afa6);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x417e95,_0x451bce){this['loader']=_0x417e95,this['editor']=_0x451bce,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x48da46=await this['loader']['file'];return j['upload']({'file':_0x48da46,'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':_0x5a0b9f=>{_0x5a0b9f&&_0x5a0b9f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5a0b9f['value']);}})['then'](async _0x378769=>{const {imageFallbackUrl:_0x2d5972,imageSources:_0x12c9fa}=C(_0x378769['cdnUrl'],_0x378769['imageInfo']['width']);return{'uploadcareImageId':_0x378769['uuid'],'default':_0x2d5972,'sources':_0x12c9fa};})['catch'](()=>{const _0x20fe9f=t('Cannot\x20upload\x20file:')+('\x20'+_0x48da46['name']+'.');return Promise['reject'](_0x20fe9f);});}['abort'](){this['controller']['abort']();}}class o extends _0x8c403d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x52bb78];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5f3b6a){super(_0x5f3b6a),this['ucContextId']=_0x46b189();}['init'](){const _0x18f118=this['editor'];_0x18f118['commands']['add']('uploadcare',new w(_0x18f118));}['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 _0x30f07c=_0x3e2609['document']['querySelector']('input[uploadcare-file-input]');_0x30f07c&&_0x30f07c['remove']();}),async function(_0x2a47bc){const _0x17fc82=_0x4af8b1([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]),_0x4bc784=0x535f8c3a,_0x3a17cd=0x53580b1a^_0x4bc784,_0x3c5253=window[_0x4af8b1([0x44,0x61,0x74,0x65])][_0x4af8b1([0x6e,0x6f,0x77])](),_0x1fe787=_0x2a47bc[_0x4af8b1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54d8ce=new window[(_0x4af8b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x178d16=>{_0x1fe787[_0x4af8b1([0x6f,0x6e,0x63,0x65])](_0x4af8b1([0x72,0x65,0x61,0x64,0x79]),_0x178d16);}),_0x2b3c93={[_0x4af8b1([0x6b,0x74,0x79])]:_0x4af8b1([0x45,0x43]),[_0x4af8b1([0x75,0x73,0x65])]:_0x4af8b1([0x73,0x69,0x67]),[_0x4af8b1([0x63,0x72,0x76])]:_0x4af8b1([0x50,0x2d,0x32,0x35,0x36]),[_0x4af8b1([0x78])]:_0x4af8b1([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]),[_0x4af8b1([0x79])]:_0x4af8b1([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]),[_0x4af8b1([0x61,0x6c,0x67])]:_0x4af8b1([0x45,0x53,0x32,0x35,0x36])},_0x20e199=_0x1fe787[_0x4af8b1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4af8b1([0x67,0x65,0x74])](_0x4af8b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5f2f21(){let _0x3b2835,_0x1d3269=null,_0x568bf1=null;try{if(_0x20e199==_0x4af8b1([0x47,0x50,0x4c]))return _0x4af8b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b2835=_0x1ec30b(),!_0x3b2835)return _0x4af8b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b2835[_0x4af8b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x568bf1=_0x1b6e9e(_0x3b2835[_0x4af8b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b2835[_0x4af8b1([0x6a,0x74,0x69])])),await _0x576893()?_0x34ab1e()?_0x486081()?_0x4af8b1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x146b81()?(_0x3b2835[_0x4af8b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4af8b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d3269=_0x1f46ba(_0x4af8b1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x38f502()):_0x4af8b1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4af8b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4af8b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4af8b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x486081(){const _0x22a58c=[_0x4af8b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4af8b1([0x74,0x72,0x69,0x61,0x6c])][_0x4af8b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b2835[_0x4af8b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c5253/0x3e8:0xe10*_0x3a17cd;return _0x3b2835[_0x4af8b1([0x65,0x78,0x70])]<_0x22a58c;}function _0x34ab1e(){const _0x114f0a=_0x3b2835[_0x4af8b1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x114f0a&&(!!_0x114f0a[_0x4af8b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af8b1([0x2a]))||!!_0x114f0a[_0x4af8b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af8b1([0x55,0x50,0x4c,0x43])));}function _0x146b81(){const _0x9362fa=_0x3b2835[_0x4af8b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9362fa||0x0==_0x9362fa[_0x4af8b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x54cc63}=new URL(window[_0x4af8b1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9362fa[_0x4af8b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54cc63))return!0x0;const _0x3b9c8d=_0x54cc63[_0x4af8b1([0x73,0x70,0x6c,0x69,0x74])](_0x4af8b1([0x2e]));return _0x9362fa[_0x4af8b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2594d5=>_0x2594d5[_0x4af8b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af8b1([0x2a])))[_0x4af8b1([0x6d,0x61,0x70])](_0x40c93c=>_0x40c93c[_0x4af8b1([0x73,0x70,0x6c,0x69,0x74])](_0x4af8b1([0x2e])))[_0x4af8b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dbc32=>_0x1dbc32[_0x4af8b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3b9c8d[_0x4af8b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4af8b1([0x6d,0x61,0x70])](_0x4d5317=>Array(_0x3b9c8d[_0x4af8b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4d5317[_0x4af8b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4af8b1([0x66,0x69,0x6c,0x6c])](_0x4d5317[0x0]===_0x4af8b1([0x2a])?_0x4af8b1([0x2a]):'')[_0x4af8b1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4d5317))[_0x4af8b1([0x73,0x6f,0x6d,0x65])](_0x21486c=>_0x3b9c8d[_0x4af8b1([0x65,0x76,0x65,0x72,0x79])]((_0x357d4e,_0x501d74)=>_0x21486c[_0x501d74]===_0x357d4e||_0x21486c[_0x501d74]===_0x4af8b1([0x2a])));}function _0x38f502(){return _0x1d3269&&_0x568bf1?new window[(_0x4af8b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7e1e3e,_0xe70ef3)=>{_0x1d3269[_0x4af8b1([0x74,0x68,0x65,0x6e])](_0x7e1e3e,_0xe70ef3),_0x568bf1[_0x4af8b1([0x74,0x68,0x65,0x6e])](_0x2e4ac7=>{_0x2e4ac7!=_0x4af8b1([0x56,0x61,0x6c,0x69,0x64])&&_0x7e1e3e(_0x2e4ac7);},_0xe70ef3);}):_0x1d3269||_0x568bf1||_0x4af8b1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b6e9e(_0xce1503,_0x91c733){return new window[(_0x4af8b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f078e=>{if(_0x563624())return _0x3f078e(_0x4af8b1([0x56,0x61,0x6c,0x69,0x64]));_0x3296db(),_0x1fe787[_0x4af8b1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4af8b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x457652=!0x1;const _0x407cd4=_0x46b189();function _0x12c3fe(_0x796742){return!!_0x796742&&(typeof _0x796742===_0x4af8b1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x796742===_0x4af8b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x796742[_0x4af8b1([0x74,0x68,0x65,0x6e])]===_0x4af8b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x796742[_0x4af8b1([0x63,0x61,0x74,0x63,0x68])]===_0x4af8b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d6009(_0xc6e2e9){_0x3a0041(_0xc6e2e9)[_0x4af8b1([0x74,0x68,0x65,0x6e])](_0x1bc462=>{if(!_0x1bc462||_0x1bc462[_0x4af8b1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4af8b1([0x6f,0x6b]))return _0x4af8b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c4e94(_0x4c03d2(_0x407cd4+_0x91c733))!=_0x1bc462[_0x4af8b1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4af8b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4af8b1([0x56,0x61,0x6c,0x69,0x64]);})[_0x4af8b1([0x74,0x68,0x65,0x6e])](_0x4779b9=>(_0x102a92(),_0x4779b9),()=>{const _0x57ef06=_0x238e10();return null==_0x57ef06?(_0x102a92(),_0x4af8b1([0x56,0x61,0x6c,0x69,0x64])):_0x4af8b1(_0x3c5253-_0x57ef06>(0x7753083a^_0x4bc784)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4af8b1([0x74,0x68,0x65,0x6e])](_0x3f078e)[_0x4af8b1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f078e(_0x4af8b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x424302=0x536962ba^_0x4bc784;function _0x102a92(){const _0x1bb06f=_0x4af8b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c4e94(_0x4c03d2(_0xce1503)),_0xa937ce=_0x5bb83a(_0x4c4e94(window[_0x4af8b1([0x4d,0x61,0x74,0x68])][_0x4af8b1([0x63,0x65,0x69,0x6c])](_0x3c5253/_0x424302)));window[_0x4af8b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4af8b1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bb06f,_0xa937ce);}function _0x238e10(){const _0x191bc5=_0x4af8b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c4e94(_0x4c03d2(_0xce1503)),_0x440e41=window[_0x4af8b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4af8b1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x191bc5);return _0x440e41?window[_0x4af8b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bb83a(_0x440e41),0x10)*_0x424302:null;}function _0x3a0041(_0x44716f){return new window[(_0x4af8b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d2b9b,_0xc953e1)=>{_0x44716f[_0x4af8b1([0x74,0x68,0x65,0x6e])](_0x4d2b9b,_0xc953e1),window[_0x4af8b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc953e1,0x535e58fa^_0x4bc784);});}}_0x1fe787[_0x4af8b1([0x6f,0x6e])](_0x4af8b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcf9ecf,_0x109752)=>{if(_0x109752[0x0]!=_0xce1503)return _0x3f078e(_0x4af8b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x109752[0x1]={..._0x109752[0x1],[_0x4af8b1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x407cd4};},{[_0x4af8b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4af8b1([0x68,0x69,0x67,0x68])}),_0x1fe787[_0x4af8b1([0x6f,0x6e])](_0x4af8b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x47722e=>{_0x12c3fe(_0x47722e[_0x4af8b1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x457652=!0x0,_0x4d6009(_0x47722e[_0x4af8b1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4af8b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4af8b1([0x6c,0x6f,0x77])}),_0x54d8ce[_0x4af8b1([0x74,0x68,0x65,0x6e])](()=>{_0x457652||_0x3f078e(_0x4af8b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x563624(){return _0x1fe787[_0x4af8b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4af8b1([0x76,0x69,0x65,0x77])][_0x4af8b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4af8b1([0x61,0x75,0x74,0x6f]);}function _0x3296db(){_0x1fe787[_0x4af8b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4af8b1([0x76,0x69,0x65,0x77])][_0x4af8b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4af8b1([0x61,0x75,0x74,0x6f]);}}function _0x1f46ba(_0xf6534b){const _0x38b89c=[new window[(_0x4af8b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39119=>setTimeout(_0x39119,0x5356b2f6^_0x4bc784)),_0x54d8ce[_0x4af8b1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4af8b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c988a=>{let _0x5c421b=0x0;_0x1fe787[_0x4af8b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4af8b1([0x6f,0x6e])](_0x4af8b1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b1dcf,_0x5ad2f5)=>{_0x5ad2f5[0x0][_0x4af8b1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c421b++,_0x5c421b==(0x535f89d2^_0x4bc784)&&(_0x4c988a(),_0x2b1dcf[_0x4af8b1([0x6f,0x66,0x66])]());});}))];return window[_0x4af8b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4af8b1([0x72,0x61,0x63,0x65])](_0x38b89c)[_0x4af8b1([0x74,0x68,0x65,0x6e])](()=>_0xf6534b);}async function _0x3c8524(){await _0x54d8ce,_0x1fe787[_0x4af8b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4af8b1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xcc2c20,_0x1fe787[_0x4af8b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4af8b1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xcc2c20,_0x1fe787[_0x4af8b1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4af8b1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x122252(_0x36ce9b){const _0x3d9f55=_0x4c231f();_0x1fe787[_0x3d9f55]=_0x4af8b1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36ce9b,_0x36ce9b!=_0x4af8b1([0x56,0x61,0x6c,0x69,0x64])&&_0x3c8524();}function _0x4c231f(){const _0x3b6e98=window[_0x4af8b1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4af8b1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4af8b1([0x6e,0x6f,0x77])]())[_0x4af8b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4af8b1([0x2e]),'');let _0x1c0d5e=_0x4af8b1([0x68]);for(let _0x109c6f=0x0;_0x109c6f<_0x3b6e98[_0x4af8b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x109c6f+=0x2){let _0x1fd605=window[_0x4af8b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b6e98[_0x4af8b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x109c6f,_0x109c6f+0x2));_0x1fd605>=_0x17fc82[_0x4af8b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1fd605-=_0x17fc82[_0x4af8b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c0d5e+=_0x17fc82[_0x1fd605];}return _0x1c0d5e;}function _0x1ec30b(){const _0x355737=_0x20e199[_0x4af8b1([0x73,0x70,0x6c,0x69,0x74])](_0x4af8b1([0x2e]));if(0x3!=_0x355737[_0x4af8b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34e53d(_0x355737[0x1]);function _0x34e53d(_0x8d728){const _0x20ad5c=_0x301c59(_0x8d728);return _0x20ad5c&&_0xb72e23()?_0x20ad5c:null;function _0xb72e23(){const _0x3ae9ee=_0x20ad5c[_0x4af8b1([0x6a,0x74,0x69])],_0x1f49e8=window[_0x4af8b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ae9ee[_0x4af8b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ae9ee[_0x4af8b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31406a={..._0x20ad5c,[_0x4af8b1([0x6a,0x74,0x69])]:_0x3ae9ee[_0x4af8b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ae9ee[_0x4af8b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31406a[_0x4af8b1([0x76,0x63])],_0x4c03d2(_0x31406a)==_0x1f49e8;}}}async function _0x576893(){let _0x41b82c=!0x0;try{const _0x3d679e=_0x20e199[_0x4af8b1([0x73,0x70,0x6c,0x69,0x74])](_0x4af8b1([0x2e])),[_0xd4a34,_0x421e9c,_0x77828e]=_0x3d679e;return _0x264648(_0xd4a34),await _0x3dc57c(_0xd4a34,_0x421e9c,_0x77828e),_0x41b82c;}catch{return!0x1;}function _0x264648(_0x1b5378){const _0x510fe0=_0x301c59(_0x1b5378);_0x510fe0&&_0x510fe0[_0x4af8b1([0x61,0x6c,0x67])]==_0x4af8b1([0x45,0x53,0x32,0x35,0x36])||(_0x41b82c=!0x1);}async function _0x3dc57c(_0x411ccc,_0x504454,_0x412497){const _0x4d796b=window[_0x4af8b1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4af8b1([0x66,0x72,0x6f,0x6d])](_0x501131(_0x412497),_0x1dfcc5=>_0x1dfcc5[_0x4af8b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b02b4=new window[(_0x4af8b1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4af8b1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x411ccc+_0x4af8b1([0x2e])+_0x504454),_0x3f9c7c=window[_0x4af8b1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4af8b1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f9c7c)return;const _0x59f1bc=await _0x3f9c7c[_0x4af8b1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4af8b1([0x6a,0x77,0x6b]),_0x2b3c93,{[_0x4af8b1([0x6e,0x61,0x6d,0x65])]:_0x4af8b1([0x45,0x43,0x44,0x53,0x41]),[_0x4af8b1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4af8b1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4af8b1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f9c7c[_0x4af8b1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4af8b1([0x6e,0x61,0x6d,0x65])]:_0x4af8b1([0x45,0x43,0x44,0x53,0x41]),[_0x4af8b1([0x68,0x61,0x73,0x68])]:{[_0x4af8b1([0x6e,0x61,0x6d,0x65])]:_0x4af8b1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x59f1bc,_0x4d796b,_0x3b02b4)||(_0x41b82c=!0x1);}}function _0x301c59(_0x23faa6){return _0x23faa6[_0x4af8b1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4af8b1([0x65,0x79]))?JSON[_0x4af8b1([0x70,0x61,0x72,0x73,0x65])](_0x501131(_0x23faa6)):null;}function _0x501131(_0x2aef56){return window[_0x4af8b1([0x61,0x74,0x6f,0x62])](_0x2aef56[_0x4af8b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4af8b1([0x2b]))[_0x4af8b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4af8b1([0x2f])));}function _0x4c03d2(_0x2bc58f){let _0x22b7ec=0x1505;function _0x38c7a0(_0x4c117f){for(let _0x521d2a=0x0;_0x521d2a<_0x4c117f[_0x4af8b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x521d2a++){const _0x3b3274=_0x4c117f[_0x4af8b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x521d2a);_0x22b7ec=(_0x22b7ec<<0x5)+_0x22b7ec+_0x3b3274,_0x22b7ec&=_0x22b7ec;}}function _0x62ebcc(_0x1a6b1d){Array[_0x4af8b1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1a6b1d)?_0x1a6b1d[_0x4af8b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x62ebcc):_0x1a6b1d&&typeof _0x1a6b1d==_0x4af8b1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4af8b1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1a6b1d)[_0x4af8b1([0x73,0x6f,0x72,0x74])]()[_0x4af8b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52a771,_0x41f6bd])=>{_0x38c7a0(_0x52a771),_0x62ebcc(_0x41f6bd);}):_0x38c7a0(window[_0x4af8b1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1a6b1d));}return _0x62ebcc(_0x2bc58f),_0x22b7ec>>>0x0;}function _0x4c4e94(_0x293a3a){return _0x293a3a[_0x4af8b1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4af8b1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4af8b1([0x30]));}function _0x5bb83a(_0x157989){return _0x157989[_0x4af8b1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4af8b1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4af8b1([0x6a,0x6f,0x69,0x6e])]('');}function _0xcc2c20(){}function _0x4af8b1(_0x2f9417){return _0x2f9417['map'](_0x280e2c=>String['fromCharCode'](_0x280e2c))['join']('');}_0x122252(await _0x5f2f21());}(this);}['_initSchema'](){const _0x21f23f=this['editor']['model']['schema'];_0x21f23f['isRegistered']('imageBlock')&&_0x21f23f['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x21f23f['isRegistered']('imageInline')&&_0x21f23f['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4838f2=this['editor'];_0x4838f2['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4838f2['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x157e6c=>_0x157e6c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2754c3=_0x4838f2['commands']['get']('replaceImageSource');_0x2754c3&&this['listenTo'](_0x2754c3,'cleanupImage',(_0x23d70a,[_0x182bcb,_0x12a14e])=>{_0x182bcb['removeAttribute']('uploadcareImageId',_0x12a14e);});}['_initConfig'](){const _0x5a010c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5d763b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x36f3c0(_0x3e2609['document'],'uc-config',{..._0x5a010c,'pubkey':_0x5d763b,'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']=_0x269a0a=>{if('closeMax'==_0x269a0a)return'#uc-icon-arrow-down';},_0x3e2609['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x36f3c0(_0x3e2609['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3e2609['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x262912=this['editor']['commands']['get']('insertImage');_0x262912&&this['listenTo'](_0x262912,'execute',()=>{const _0x220369=this['editor']['model']['document']['selection']['getSelectedElement']();_0x220369&&_0x220369['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x220369);});});const _0x2e23c5=this['editor']['commands']['get']('uploadcareImageReplace');_0x2e23c5&&this['listenTo'](_0x2e23c5,'execute',()=>{const _0x3f9660=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3f9660&&_0x3f9660['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3f9660);});});}}class tt extends _0x8c403d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41a92b){super(_0x41a92b),_0x41a92b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x13888f['defineComponents'](_0x13888f),this['_defineLocale']();}['_defineLocale'](){const _0x188e40=this['editor']['config']['get']('uploadcare.locale'),_0xa1eeca=this['editor']['locale']['contentLanguage'];_0x188e40&&_0x13888f['defineLocale'](_0xa1eeca,_0x188e40);}}class ii extends _0x3b5139{constructor(_0x53dfd3){super(_0x53dfd3);const t=_0x53dfd3['t'],_0x13841f=this['bindTemplate'],_0x2bd43f=new _0x171940();_0x2bd43f['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':[_0x2bd43f,{'text':_0x13841f['to']('imageUploadProgress',_0x894e06=>t('Loading\x20image...')+'\x20('+(_0x894e06||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 _0x3b5139{constructor(_0x6e4a28){super(_0x6e4a28);const t=_0x6e4a28['t'];this['set']('errorType',null);const _0x17b060=new _0x1d688e(_0x6e4a28);_0x17b060['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x17b060['withText']=!0x0,_0x17b060['class']='ck-button-action',_0x17b060['on']('execute',()=>{this['fire']('retry');}),_0x17b060['bind']('isVisible')['to'](this,'errorType',_0x103bdc=>'NotFound'!==_0x103bdc);const _0x18c5a7=new _0x36203b();_0x18c5a7['content']=_0x35a541,_0x18c5a7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5512a0=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':[_0x18c5a7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5512a0['to']('errorType',_0x253b1a=>t('NotFound'!==_0x253b1a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x17b060]},{'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 _0x3b5139{constructor(_0x74d05a,_0x3c4698){super(_0x74d05a);const _0x5318c6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3c4698,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5318c6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2ac281,_0x573f44,_0x337761){super(_0x2ac281),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2ac281),this['_errorView']=new ti(_0x2ac281),this['_editingView']=new ei(_0x2ac281,_0x337761),this['_focusableView']=new _0x3b5139(_0x2ac281),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x573f44),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'],_0x23744f=>{this['_addUploadcareImageEditorListeners'](_0x23744f);});}),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'](_0x34d7ad,_0x247eab){const _0x5babfc='uc-cloud-image-editor',_0x269764=_0x34d7ad['querySelector'](_0x5babfc);if(_0x269764)return _0x247eab(_0x269764);const _0x226b7d=new MutationObserver(_0x2effaa=>{const _0x992ccd=_0x2effaa['filter'](_0x1f4140=>_0x1f4140['target']===_0x34d7ad&&_0x1f4140['addedNodes']['length']>0x0&&_0x1f4140['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5babfc);_0x992ccd['length']&&(_0x226b7d['disconnect'](),_0x247eab(_0x992ccd[0x0]['addedNodes'][0x0]));});_0x226b7d['observe'](_0x34d7ad,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x52f0b6){_0x52f0b6['addEventListener']('apply',_0x1590de=>{this['fire']('apply',{'imageSrc':_0x1590de['detail']['cdnUrl']});}),_0x52f0b6['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x497f60(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x565959,_0x18e907,_0x586cd7){super(),this['_editor']=_0x565959,this['_dialog']=_0x18e907,this['_imageElement']=_0x586cd7,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 _0x5aa82d=this['_imageElement'],_0x314233=_0x5aa82d['getAttribute']('uploadcareImageId'),_0x661f5d=_0x5aa82d['getAttribute']('src');if(_0x314233)await this['_loadImageInfo'](_0x314233,_0x661f5d);else{if(this['_imageCache']['has'](_0x661f5d)){const _0x5511f5=this['_imageCache']['get'](_0x661f5d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5511f5['url'],this['imageDimension']=_0x5511f5['dimension'],this['imageId']=_0x5511f5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1ec295}=this['_editor'],t=_0x1ec295['t'],_0x3eba5a=new X(_0x1ec295,this['imageStatus'],this['_attributes']);_0x3eba5a['bind']('status')['to'](this,'imageStatus'),_0x3eba5a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3eba5a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3eba5a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3eba5a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4de20a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3eba5a,'position':_0x405a74['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3eba5a['focus']();},'onHide':()=>{_0x3eba5a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x6e9af6=>!A(_0x6e9af6,_0x3eba5a['element'])}});}['_loadImageInfo'](_0x2fed19,_0x46308d){return j['getInfo'](_0x2fed19,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xf41cb9=>{const {width:_0x335fc1,height:_0x12b474}=_0xf41cb9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x46308d,this['imageDimension']={'width':_0x335fc1,'height':_0x12b474},this['imageId']=_0x2fed19;})['catch'](_0x4781ed=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4781ed['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x599e80,_0x4deae6){return this['_getImageAsFile'](_0x599e80)['then'](_0x54d435=>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':_0x4deae6['signal'],'file':_0x54d435,'onProgress':_0x1d202a=>{_0x1d202a&&_0x1d202a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1d202a['value']));}}))['then'](_0x15f3f9=>{const {width:_0x151e92,height:_0x5c4f00}=_0x15f3f9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15f3f9['cdnUrl'],this['imageDimension']={'width':_0x151e92,'height':_0x5c4f00},this['imageId']=_0x15f3f9['uuid'],this['imageUploadProgress']=null;const _0x15d88e=_0x599e80['getAttribute']('src');this['_imageCache']['set'](_0x15d88e,{'id':_0x15f3f9['uuid'],'url':_0x15f3f9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5557a5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5557a5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x45614c,_0x4a35e5){_0x45614c['on']('apply',(_0x17b92d,_0x32b5ec)=>{this['_replaceImage'](_0x4a35e5,_0x32b5ec['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x45614c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x45614c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xafcd2c,_0x55c2bf,_0x5bb67a){const _0x2ed2fa=this['_editor'],{width:_0x19f37e,height:_0x2505da}=S(_0x55c2bf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x43fd70,imageSources:_0x57afe5}=C(_0x55c2bf,_0x19f37e);_0x2ed2fa['model']['change'](_0x429239=>{if('$graveyard'===_0xafcd2c['root']['rootName']){_0x2ed2fa['execute']('insertImage',{'imageType':_0xafcd2c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xafcd2c['getAttributes']()),'uploadcareImageId':_0x5bb67a,'src':_0x43fd70,'sources':_0x57afe5,'width':_0x19f37e,'height':_0x2505da}});const _0x14afbb=_0xafcd2c['getChildren']();_0xafcd2c=_0x2ed2fa['model']['document']['selection']['getSelectedElement']();for(const _0x5324de of _0x14afbb)_0x429239['append'](_0x429239['cloneElement'](_0x5324de),_0xafcd2c);}else _0x429239['setSelection'](_0xafcd2c,'on'),_0x2ed2fa['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xafcd2c['getAttributes']()),'uploadcareImageId':_0x5bb67a,'src':_0x43fd70,'sources':_0x57afe5,'width':_0x19f37e,'height':_0x2505da},_0xafcd2c);_0x429239['setSelection'](_0xafcd2c,'on');});}async['_getImageAsFile'](_0x131833){const _0xb60648=_0x3e2609['window'],_0x294c61=_0x3e2609['document']['location']['href'],_0x2d5e08=new _0xb60648['URL'](_0x131833['getAttribute']('src'),_0x294c61);if('data:'===_0x2d5e08['protocol']){const _0x101ccc=_0x2d5e08['href']['split'](','),_0x316b85=_0x101ccc[0x0]['match'](/:(.*?);/)[0x1],_0x357bfe=_0x316b85['split']('/')[0x1],_0x572df2=_0xb60648['atob'](_0x101ccc[_0x101ccc['length']-0x1]);let _0x446460=_0x572df2['length'];const _0x5e2516=new _0xb60648['Uint8Array'](_0x446460);for(;_0x446460--;)_0x5e2516[_0x446460]=_0x572df2['charCodeAt'](_0x446460);return new _0xb60648['File']([_0x5e2516],'image.'+_0x357bfe,{'type':_0x316b85});}const _0x61d806=_0x2d5e08['href']['split']('/'),_0x259acc=_0x61d806[_0x61d806['length']-0x1],_0x1e9753=_0x259acc['split']('.')[0x1];return _0xb60648['fetch'](_0x2d5e08['href'])['then'](_0x2cd4ee=>_0x2cd4ee['clone']()['blob']())['then'](_0x4c1888=>new _0xb60648['File']([_0x4c1888],_0x259acc,{'type':'image/'+_0x1e9753}));}}class Q extends _0x57418f{['imageEditController'];static get['requires'](){return[_0x52bb78];}['_isEditable'];constructor(_0x4bbe69){super(_0x4bbe69),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5efdbc){const _0x5c2a02=z(_0x5efdbc);return _0xdaf083=>!(!_0xdaf083||!_0xdaf083['is']('element','imageBlock')&&!_0xdaf083['is']('element','imageInline'))&&(!!_0xdaf083['hasAttribute']('uploadcareImageId')||!!_0xdaf083['hasAttribute']('src')&&_0x5c2a02(_0xdaf083['getAttribute']('src')));}(_0x4bbe69['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3a6a2f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3a6a2f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x548bf8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x548bf8&&(_0x548bf8['is']('element','imageBlock')||_0x548bf8['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x52bb78),_0x548bf8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x57418f{['refresh'](){const _0x39856b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x39856b&&(_0x39856b['is']('element','imageBlock')||_0x39856b['is']('element','imageInline')));}['execute'](_0x46f0d5){const _0x51d584=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x32a8c5=>{_0x32a8c5['setAttributes'](_0x46f0d5,_0x51d584),_0x32a8c5['removeAttribute']('srcset',_0x51d584),_0x32a8c5['removeAttribute']('sizes',_0x51d584);});}}class m extends _0x8c403d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x12c1b2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x38c1b6}=this;_0x38c1b6['commands']['add']('uploadcareImageEdit',new Q(_0x38c1b6)),_0x38c1b6['commands']['add']('uploadcareImageReplace',new V(_0x38c1b6));}}class g extends _0x8c403d{['_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 _0x5a89e4=this['editor'];_0x5a89e4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x59ccb5=>{const _0x479f88=_0x5a89e4['commands']['get']('uploadcareImageEdit'),_0x23532f=new _0x1d688e(_0x59ccb5),t=_0x59ccb5['t'];return _0x23532f['set']({'icon':_0x4de20a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x23532f['bind']('isEnabled')['to'](_0x479f88),_0x23532f['bind']('isOn')['to'](_0x479f88,'isActive'),this['listenTo'](_0x23532f,'execute',()=>{_0x5a89e4['execute']('uploadcareImageEdit'),_0x5a89e4['editing']['view']['focus']();}),_0x23532f;}),this['_initConfig']();}['_initConfig'](){const _0x2d176a=_0x36f3c0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2d176a),this['listenTo'](this['editor'],'destroy',()=>{_0x2d176a['remove']();});}}class et extends _0x8c403d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0xf9aa35=>0x1!=_0xf9aa35}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2f49aa=>{const {af:{dictionary:_0x13d586,getPluralForm:_0x106de1}}={'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':_0x2792b0=>0x1!=_0x2792b0}};_0x2f49aa['af']||={'dictionary':{},'getPluralForm':null},_0x2f49aa['af']['dictionary']=Object['assign'](_0x2f49aa['af']['dictionary'],_0x13d586),_0x2f49aa['af']['getPluralForm']=_0x106de1;})(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':_0xdcd83e=>0x0==_0xdcd83e?0x0:0x1==_0xdcd83e?0x1:0x2==_0xdcd83e?0x2:_0xdcd83e%0x64>=0x3&&_0xdcd83e%0x64<=0xa?0x3:_0xdcd83e%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x474cb8=>{const {ar:{dictionary:_0x36f00f,getPluralForm:_0x503e7d}}={'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':_0xe2aa34=>0x0==_0xe2aa34?0x0:0x1==_0xe2aa34?0x1:0x2==_0xe2aa34?0x2:_0xe2aa34%0x64>=0x3&&_0xe2aa34%0x64<=0xa?0x3:_0xe2aa34%0x64>=0xb?0x4:0x5}};_0x474cb8['ar']||={'dictionary':{},'getPluralForm':null},_0x474cb8['ar']['dictionary']=Object['assign'](_0x474cb8['ar']['dictionary'],_0x36f00f),_0x474cb8['ar']['getPluralForm']=_0x503e7d;})(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':_0x1844d6=>0x1!=_0x1844d6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1957bc=>{const {ast:{dictionary:_0x4eab40,getPluralForm:_0x2852c3}}={'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':_0xa5bf59=>0x1!=_0xa5bf59}};_0x1957bc['ast']||={'dictionary':{},'getPluralForm':null},_0x1957bc['ast']['dictionary']=Object['assign'](_0x1957bc['ast']['dictionary'],_0x4eab40),_0x1957bc['ast']['getPluralForm']=_0x2852c3;})(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':_0x5db49f=>0x1!=_0x5db49f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a309d=>{const {az:{dictionary:_0x1e65a1,getPluralForm:_0x578178}}={'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':_0x11bc61=>0x1!=_0x11bc61}};_0x4a309d['az']||={'dictionary':{},'getPluralForm':null},_0x4a309d['az']['dictionary']=Object['assign'](_0x4a309d['az']['dictionary'],_0x1e65a1),_0x4a309d['az']['getPluralForm']=_0x578178;})(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':_0xa7685f=>_0xa7685f%0xa==0x1&&_0xa7685f%0x64!=0xb?0x0:_0xa7685f%0xa>=0x2&&_0xa7685f%0xa<=0x4&&(_0xa7685f%0x64<0xa||_0xa7685f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xf8ab0e=>{const {be:{dictionary:_0x3594e6,getPluralForm:_0x482291}}={'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':_0x3cae02=>_0x3cae02%0xa==0x1&&_0x3cae02%0x64!=0xb?0x0:_0x3cae02%0xa>=0x2&&_0x3cae02%0xa<=0x4&&(_0x3cae02%0x64<0xa||_0x3cae02%0x64>=0x14)?0x1:0x2}};_0xf8ab0e['be']||={'dictionary':{},'getPluralForm':null},_0xf8ab0e['be']['dictionary']=Object['assign'](_0xf8ab0e['be']['dictionary'],_0x3594e6),_0xf8ab0e['be']['getPluralForm']=_0x482291;})(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':_0x1b19de=>0x1!=_0x1b19de}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5ecda0=>{const {bg:{dictionary:_0x200f49,getPluralForm:_0x55e7a5}}={'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':_0x4e55b0=>0x1!=_0x4e55b0}};_0x5ecda0['bg']||={'dictionary':{},'getPluralForm':null},_0x5ecda0['bg']['dictionary']=Object['assign'](_0x5ecda0['bg']['dictionary'],_0x200f49),_0x5ecda0['bg']['getPluralForm']=_0x55e7a5;})(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':_0x45efcf=>0x1!=_0x45efcf}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x559578=>{const {bn:{dictionary:_0x4bed1c,getPluralForm:_0x1ff0bf}}={'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':_0x1f7cf1=>0x1!=_0x1f7cf1}};_0x559578['bn']||={'dictionary':{},'getPluralForm':null},_0x559578['bn']['dictionary']=Object['assign'](_0x559578['bn']['dictionary'],_0x4bed1c),_0x559578['bn']['getPluralForm']=_0x1ff0bf;})(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':_0x59fa55=>_0x59fa55%0xa==0x1&&_0x59fa55%0x64!=0xb?0x0:_0x59fa55%0xa>=0x2&&_0x59fa55%0xa<=0x4&&(_0x59fa55%0x64<0xa||_0x59fa55%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x392baf=>{const {bs:{dictionary:_0x3d3d32,getPluralForm:_0x3ceeeb}}={'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':_0x1cb848=>_0x1cb848%0xa==0x1&&_0x1cb848%0x64!=0xb?0x0:_0x1cb848%0xa>=0x2&&_0x1cb848%0xa<=0x4&&(_0x1cb848%0x64<0xa||_0x1cb848%0x64>=0x14)?0x1:0x2}};_0x392baf['bs']||={'dictionary':{},'getPluralForm':null},_0x392baf['bs']['dictionary']=Object['assign'](_0x392baf['bs']['dictionary'],_0x3d3d32),_0x392baf['bs']['getPluralForm']=_0x3ceeeb;})(window['CKEDITOR_TRANSLATIONS']||={});
|