@ckeditor/ckeditor5-uploadcare 47.5.0-alpha.1 → 47.5.0-alpha.3
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.d.ts +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 _0x5a8815,Command as _0x469b81}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2a4ad6,IconGooglePhotos as _0x13a7f3,IconGoogleDrive as _0x4e3e82,IconFacebook as _0x5e9906,IconDropbox as _0x1081f1,IconUploadcareLink as _0x114ace,IconUploadcareImageUpload as _0x4ca41f,IconError as _0x319005,IconUploadcareImageEdit as _0x11de94}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3477a2,MenuBarMenuListItemButtonView as _0x31be37,View as _0x427a63,FocusCycler as _0x3fb149,Dialog as _0x4ec9d2,DialogViewPosition as _0x1ebf92,SpinnerView as _0x1bddd5,IconView as _0x31f3fc,Notification as _0xc94730}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x12cbb2,DomEmitterMixin as _0x10a8c4,global as _0x3a4f7b,getAncestors as _0x349729,ObservableMixin as _0xa9ba1a,uid as _0x461b04,createElement as _0x3855cc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x31b648}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x566409,info as _0x56a570}from'@uploadcare/upload-client';import*as _0x3906b0 from'@uploadcare/file-uploader';var i=function(_0x432d4e){return _0x432d4e['Local']='local',_0x432d4e['URL']='url',_0x432d4e['Dropbox']='dropbox',_0x432d4e['GDrive']='gdrive',_0x432d4e['Facebook']='facebook',_0x432d4e['GPhotos']='gphotos',_0x432d4e['OneDrive']='onedrive',_0x432d4e;}({});function _(_0x147de4,_0x51e40c,_0x43abc6){const t=_0x147de4['t'],_0x27a8b6=_0x147de4['t'];switch(_0x51e40c){case i['Local']:return{'text':_0x27a8b6('Insert'===_0x43abc6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x27a8b6('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x43abc6?_0x27a8b6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x27a8b6('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x43abc6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x43abc6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x43abc6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x43abc6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x43abc6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x51e40c;}}class e extends _0x5a8815{['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 _0x1bcadf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x46a777;for(const _0x5ed89a in _0x1bcadf){const _0x19c7b5=_0x5ed89a,_0xfafb82=_0x1bcadf[_0x19c7b5];if('uploadcareLicenseKeyValid'==_0xfafb82||'uploadcareLicenseKeyInvalid'==_0xfafb82||'uploadcareLicenseKeyExpired'==_0xfafb82||'uploadcareLicenseKeyDomainLimit'==_0xfafb82||'uploadcareLicenseKeyNotAllowed'==_0xfafb82||'uploadcareLicenseKeyEvaluationLimit'==_0xfafb82||'uploadcareLicenseKeyUsageLimit'==_0xfafb82){delete _0x1bcadf[_0x19c7b5],_0x46a777=_0xfafb82,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x46a777&&_0x1bcadf['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x46a777&&_0x1bcadf['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x46a777&&_0x1bcadf['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x46a777&&_0x1bcadf['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x46a777&&_0x1bcadf['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x46a777&&_0x1bcadf['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x38d428}=this,_0x10fb28=_0x38d428['commands']['get']('uploadcare');if(!_0x10fb28)return;const _0x5639b2=this['_normalizeConfigSourceList'](_0x38d428['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4b7dc1,_0x7c0459)=>{const _0x15516a=this['_getIntegrationKey'](_0x7c0459['type']);return _0x4b7dc1[_0x15516a]||(_0x4b7dc1[_0x15516a]=[]),_0x4b7dc1[_0x15516a]['push'](_0x7c0459),_0x4b7dc1;},{});_0x38d428['plugins']['has']('ImageInsertUI')&&_0x38d428['commands']['get']('uploadcare')&&Object['entries'](_0x5639b2)['forEach'](([_0x20f112,_0x38f3b5])=>{_0x38d428['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x20f112,'observable':()=>_0x10fb28,'buttonViewCreator':()=>this['_createToolbarButton'](_0x38f3b5),'formViewCreator':()=>this['_createDropdownButtons'](_0x38f3b5),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x38f3b5),'override':'assetManager'!==_0x20f112});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4bae56){const {locale:_0x46c675}=this['editor'];return _0x4bae56['map'](_0x2f381b=>{const _0x3d2df3=_(_0x46c675,_0x2f381b,'Insert');switch(_0x2f381b){case i['Local']:return{'icon':_0x4ca41f,'type':i['Local'],..._0x3d2df3};case i['URL']:return{'icon':_0x114ace,'type':i['URL'],..._0x3d2df3};case i['Dropbox']:return{'icon':_0x1081f1,'type':i['Dropbox'],..._0x3d2df3};case i['Facebook']:return{'icon':_0x5e9906,'type':i['Facebook'],..._0x3d2df3};case i['GDrive']:return{'icon':_0x4e3e82,'type':i['GDrive'],..._0x3d2df3};case i['GPhotos']:return{'icon':_0x13a7f3,'type':i['GPhotos'],..._0x3d2df3};case i['OneDrive']:return{'icon':_0x2a4ad6,'type':i['OneDrive'],..._0x3d2df3};}});}['_getIntegrationKey'](_0x22708a){switch(_0x22708a){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3dc66c,_0x3f4148){const _0xecdb61=this['editor'],_0xdcc2b4=new _0x3dc66c(_0xecdb61['locale']),_0x1adb54=_0xecdb61['commands']['get']('uploadcare');return _0xdcc2b4['bind']('isEnabled')['to'](_0x1adb54),_0xdcc2b4['on']('execute',()=>{_0x1adb54['execute'](_0x3f4148);}),_0xdcc2b4;}['_createToolbarButton'](_0x1899cd){const {locale:_0xfa9b12}=this['editor'],_0x13201b=this['editor']['plugins']['get']('ImageInsertUI'),_0x4cdd8c=_0x1899cd[0x0],_0x2d789c=this['_createButton'](_0x3477a2,_0x4cdd8c['type']);return _0x2d789c['icon']=_0x4cdd8c['icon'],_0x2d789c['bind']('label')['to'](_0x13201b,'isImageSelected',_0x46ac9b=>_(_0xfa9b12,_0x4cdd8c['type'],_0x46ac9b?'Replace':'Insert')['text']),_0x2d789c['tooltip']=!0x0,_0x2d789c;}['_createDropdownButtons'](_0x274edd){const {locale:_0x5455ae}=this['editor'],_0x408377=this['editor']['plugins']['get']('ImageInsertUI');return _0x274edd['map'](_0x4f5a84=>{const _0x4f3379=this['_createButton'](_0x3477a2,_0x4f5a84['type']);return _0x4f3379['withText']=!0x0,_0x4f3379['icon']=_0x4f5a84['icon'],_0x4f3379['bind']('label')['to'](_0x408377,'isImageSelected',_0xf75d53=>_(_0x5455ae,_0x4f5a84['type'],_0xf75d53?'Replace':'Insert')['text']),_0x4f3379;});}['_createMenuBarButtons'](_0x15ee97){return _0x15ee97['map'](_0x922065=>{const _0x1e055b=this['_createButton'](_0x31be37,_0x922065['type']);return _0x1e055b['icon']=_0x922065['icon'],_0x1e055b['label']=_0x922065['shortText'],_0x1e055b;});}}class F extends _0x427a63{['focusTracker'];['focusCycler'];constructor(_0x3c5716){super(_0x3c5716),this['focusTracker']=new _0x12cbb2(),this['focusCycler']=new _0x3fb149({'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(_0x596b68,_0x3ce0bb){super(_0x596b68),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-'+_0x3ce0bb}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x569f68,_0x474261){const _0x1617ff=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3dbe4d=>_0x3dbe4d<=_0x474261)['map'](_0x5704bf=>_0x569f68['replace'](/\/$/,'')+'/-/resize/'+_0x5704bf+'x/\x20'+_0x5704bf+'w');return{'imageFallbackUrl':_0x569f68,'imageSources':[{'srcset':_0x1617ff['join'](',\x20'),'sizes':'(max-width:\x20'+_0x474261+'px)\x20100vw,\x20'+_0x474261+'px','type':'image/webp'}]};}function S(_0x55b804,_0x37ba27,_0x3d187c){const _0x475373=_0x55b804['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x475373?parseInt(_0x475373[0x1],0xa):_0x37ba27,'height':_0x475373?parseInt(_0x475373[0x2],0xa):_0x3d187c};}function p(_0x208844,_0x4c88a3){const _0x4583ec=new(_0x10a8c4())(),_0x1c7d86=_0x208844['plugins']['get']('ImageUtils'),_0xf42d83=_0x208844['editing']['mapper']['toViewElement'](_0x4c88a3),_0x1e9883=_0x1c7d86['findViewImgElement'](_0xf42d83),_0x5d186a=_0x208844['editing']['view']['domConverter']['viewToDom'](_0x1e9883),_0x3b8f2a=_0x4c88a3['getAttribute']('width'),_0x42b98f=_0x4c88a3['getAttribute']('height'),_0x315072='image-processing';_0x208844['editing']['view']['change'](_0x10ea72=>{_0x10ea72['addClass'](_0x315072,_0xf42d83),_0x10ea72['setStyle']('aspect-ratio',_0x3b8f2a+'/'+_0x42b98f,_0x1e9883);}),_0x4583ec['listenTo'](_0x5d186a,'load',()=>{_0x4583ec['stopListening'](_0x5d186a,'load'),_0x208844['editing']['view']['change'](_0x568993=>{_0x568993['removeClass'](_0x315072,_0xf42d83),_0x568993['removeStyle']('aspect-ratio',_0x1e9883);});});}function G(_0x2580d9){if(Array['isArray'](_0x2580d9)){const _0x232f25=_0x2580d9['map'](G);return _0x488dce=>_0x232f25['some'](_0x474070=>_0x474070(_0x488dce));}if('origin'==_0x2580d9){const _0x4a9f20=_0x3a4f7b['window']['location']['origin'];return _0x102bef=>new URL(_0x102bef,_0x3a4f7b['document']['baseURI'])['origin']==_0x4a9f20;}return'function'==typeof _0x2580d9?_0x2580d9:_0x2580d9 instanceof RegExp?_0x636c01=>!(!_0x636c01['match'](_0x2580d9)&&!_0x636c01['replace'](/^https?:\/\//,'')['match'](_0x2580d9)):()=>!0x1;}function A(_0x542fb4,_0x201c3f){return _0x349729(_0x542fb4['target'])['includes'](_0x201c3f);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xa9ba1a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x58fe40,_0x13d4d0,_0x2910e6){super(),this['_editor']=_0x58fe40,this['_editing']=_0x13d4d0,this['_dialog']=_0x58fe40['plugins']['get'](_0x4ec9d2),this['_api']=_0x13d4d0['ctxElement']['getAPI'](),this['_type']=_0x2910e6,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:_0x58cfb7,model:_0x418197}=this['_editor'],_0x51ad4a=_0x418197['document']['selection']['getSelectedElement'](),_0x47532f=_0x51ad4a&&(_0x51ad4a['is']('element','imageBlock')||_0x51ad4a['is']('element','imageInline'));this['_formView']=new x(_0x58cfb7,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4ca41f,'title':_(_0x58cfb7,this['_type'],_0x47532f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1ebf92['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x8e0f25=>!A(_0x8e0f25,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x56a717}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x586f69=>{const _0xe27f99=_0x56a717['length'];for(const _0x3ec13f of _0x56a717){const _0x454db6=_0x3ec13f===_0x56a717[_0xe27f99-0x1],{cdnUrl:_0x2de462,fileInfo:_0x51e5a1}=_0x3ec13f;if(!_0x2de462||!_0x51e5a1)continue;const {width:_0x28589a,height:_0x1efe71}=_0x51e5a1['imageInfo'],_0x2be93e=S(_0x2de462,_0x28589a,_0x1efe71),_0x2a5fe0=C(_0x2de462,_0x2be93e['width']),_0x504436={'id':_0x51e5a1['uuid'],'type':'image','attributes':{'imageDimension':_0x2be93e,..._0x2a5fe0}};this['_insertAsset'](_0x504436,_0x454db6,_0x586f69);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3ea632=>{'idle'===_0x3ea632['detail']['status']&&!_0x3ea632['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xf6d0fa,_0x195d02,_0x2acc07){const _0x170f21=this['_editor']['model']['document']['selection'],_0x365a5c=_0x170f21['getSelectedElement'](),_0x2c3830=!(!_0x365a5c||!_0x365a5c['is']('element','imageInline'));_0x2acc07['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xf6d0fa,_0x2c3830),_0x195d02||_0x2acc07['setSelection'](_0x170f21['getLastPosition']());}['_insertImage'](_0xb660ae,_0x111ada){const _0x41f023=this['_editor'],{imageDimension:_0xf86b35,imageFallbackUrl:_0x31c586,imageSources:_0x1f8afd}=_0xb660ae['attributes'];_0x41f023['execute']('insertImage',{'imageType':_0x111ada?'imageInline':null,'source':{'uploadcareImageId':_0xb660ae['id'],'src':_0x31c586,'sources':_0x1f8afd,..._0xf86b35}});}}class w extends _0x469b81{['_editing'];['_controller']=null;static get['requires'](){return[_0x4ec9d2,o];}constructor(_0x5023cb){super(_0x5023cb),this['_editing']=_0x5023cb['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x21a3de){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x21a3de);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x527d38,..._0x37b492}){return _0x566409(_0x527d38,_0x37b492);}static['getInfo'](_0x21ef9f,_0x5fb7ba){return _0x56a570(_0x21ef9f,_0x5fb7ba);}}class f extends _0x5a8815{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x31b648,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1a68d5=this['editor'];if(!!!_0x1a68d5['config']['get']('uploadcare'))return;_0x1a68d5['plugins']['get'](_0x31b648)['createUploadAdapter']=_0x3d5e33=>new k(_0x3d5e33,_0x1a68d5),_0x1a68d5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xefa5e5,{imageElement:_0x75f5e7,data:_0x55116a})=>{_0x1a68d5['model']['change'](_0x40302a=>{_0x40302a['setAttribute']('uploadcareImageId',_0x55116a['uploadcareImageId'],_0x75f5e7);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2c7ec3,_0x2cfc39){this['loader']=_0x2c7ec3,this['editor']=_0x2cfc39,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xc29e14=await this['loader']['file'];return j['upload']({'file':_0xc29e14,'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':_0x52b395=>{_0x52b395&&_0x52b395['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x52b395['value']);}})['then'](async _0x8b47d3=>{const {imageFallbackUrl:_0x576b44,imageSources:_0x5144dc}=C(_0x8b47d3['cdnUrl'],_0x8b47d3['imageInfo']['width']);return{'uploadcareImageId':_0x8b47d3['uuid'],'default':_0x576b44,'sources':_0x5144dc};})['catch'](()=>{const _0x367ea8=t('Cannot\x20upload\x20file:')+('\x20'+_0xc29e14['name']+'.');return Promise['reject'](_0x367ea8);});}['abort'](){this['controller']['abort']();}}class o extends _0x5a8815{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4ec9d2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x260ac6){super(_0x260ac6),this['ucContextId']=_0x461b04();}['init'](){const _0x2e9e09=this['editor'];_0x2e9e09['commands']['add']('uploadcare',new w(_0x2e9e09));}['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 _0x4690a1=_0x3a4f7b['document']['querySelector']('input[uploadcare-file-input]');_0x4690a1&&_0x4690a1['remove']();}),async function(_0x1783d6){const _0x3680be=_0x29b892([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]),_0x4782f8=0x535f8c3a,_0x4332c2=0x53580ce2^_0x4782f8,_0x2fdbfa=window[_0x29b892([0x44,0x61,0x74,0x65])][_0x29b892([0x6e,0x6f,0x77])](),_0x135608=_0x1783d6[_0x29b892([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4217d4=new window[(_0x29b892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x106806=>{_0x135608[_0x29b892([0x6f,0x6e,0x63,0x65])](_0x29b892([0x72,0x65,0x61,0x64,0x79]),_0x106806);}),_0x1a1829={[_0x29b892([0x6b,0x74,0x79])]:_0x29b892([0x45,0x43]),[_0x29b892([0x75,0x73,0x65])]:_0x29b892([0x73,0x69,0x67]),[_0x29b892([0x63,0x72,0x76])]:_0x29b892([0x50,0x2d,0x32,0x35,0x36]),[_0x29b892([0x78])]:_0x29b892([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]),[_0x29b892([0x79])]:_0x29b892([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]),[_0x29b892([0x61,0x6c,0x67])]:_0x29b892([0x45,0x53,0x32,0x35,0x36])},_0x53b63a=_0x135608[_0x29b892([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29b892([0x67,0x65,0x74])](_0x29b892([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x28a1dd(){let _0x31eac6,_0x57cda1=null,_0x2ebee2=null;try{if(_0x53b63a==_0x29b892([0x47,0x50,0x4c]))return _0x29b892([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31eac6=_0x2fea30(),!_0x31eac6)return _0x29b892([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31eac6[_0x29b892([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ebee2=_0x5661ba(_0x31eac6[_0x29b892([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31eac6[_0x29b892([0x6a,0x74,0x69])])),await _0x39f383()?_0x23d9e3()?_0x1b3403()?_0x29b892([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d0b9c()?(_0x31eac6[_0x29b892([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29b892([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57cda1=_0x417c72(_0x29b892([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x48866d()):_0x29b892([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29b892([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29b892([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x29b892([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b3403(){const _0x31ad0f=[_0x29b892([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29b892([0x74,0x72,0x69,0x61,0x6c])][_0x29b892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31eac6[_0x29b892([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fdbfa/0x3e8:0xe10*_0x4332c2;return _0x31eac6[_0x29b892([0x65,0x78,0x70])]<_0x31ad0f;}function _0x23d9e3(){const _0x3495ba=_0x31eac6[_0x29b892([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3495ba&&(!!_0x3495ba[_0x29b892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b892([0x2a]))||!!_0x3495ba[_0x29b892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b892([0x55,0x50,0x4c,0x43])));}function _0x2d0b9c(){const _0x34daa1=_0x31eac6[_0x29b892([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34daa1||0x0==_0x34daa1[_0x29b892([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x297109}=new URL(window[_0x29b892([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x34daa1[_0x29b892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x297109))return!0x0;const _0x35a1c3=_0x297109[_0x29b892([0x73,0x70,0x6c,0x69,0x74])](_0x29b892([0x2e]));return _0x34daa1[_0x29b892([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x513bc8=>_0x513bc8[_0x29b892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b892([0x2a])))[_0x29b892([0x6d,0x61,0x70])](_0x5a2eb5=>_0x5a2eb5[_0x29b892([0x73,0x70,0x6c,0x69,0x74])](_0x29b892([0x2e])))[_0x29b892([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x336d58=>_0x336d58[_0x29b892([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x35a1c3[_0x29b892([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29b892([0x6d,0x61,0x70])](_0x191e24=>Array(_0x35a1c3[_0x29b892([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x191e24[_0x29b892([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29b892([0x66,0x69,0x6c,0x6c])](_0x191e24[0x0]===_0x29b892([0x2a])?_0x29b892([0x2a]):'')[_0x29b892([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x191e24))[_0x29b892([0x73,0x6f,0x6d,0x65])](_0x411c05=>_0x35a1c3[_0x29b892([0x65,0x76,0x65,0x72,0x79])]((_0x29d9f1,_0x162137)=>_0x411c05[_0x162137]===_0x29d9f1||_0x411c05[_0x162137]===_0x29b892([0x2a])));}function _0x48866d(){return _0x57cda1&&_0x2ebee2?new window[(_0x29b892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x504f26,_0x39bcc9)=>{_0x57cda1[_0x29b892([0x74,0x68,0x65,0x6e])](_0x504f26,_0x39bcc9),_0x2ebee2[_0x29b892([0x74,0x68,0x65,0x6e])](_0x5f52cf=>{_0x5f52cf!=_0x29b892([0x56,0x61,0x6c,0x69,0x64])&&_0x504f26(_0x5f52cf);},_0x39bcc9);}):_0x57cda1||_0x2ebee2||_0x29b892([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5661ba(_0x5b78ca,_0x2a943e){return new window[(_0x29b892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c3599=>{if(_0x301387())return _0x1c3599(_0x29b892([0x56,0x61,0x6c,0x69,0x64]));_0x5b74da(),_0x135608[_0x29b892([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29b892([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bc525=!0x1;const _0x34d74c=_0x461b04();function _0x2c697e(_0x342ae2){return!!_0x342ae2&&(typeof _0x342ae2===_0x29b892([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x342ae2===_0x29b892([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x342ae2[_0x29b892([0x74,0x68,0x65,0x6e])]===_0x29b892([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x342ae2[_0x29b892([0x63,0x61,0x74,0x63,0x68])]===_0x29b892([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xebef6(_0x3bd9e7){_0x30d606(_0x3bd9e7)[_0x29b892([0x74,0x68,0x65,0x6e])](_0x4bd75c=>{if(!_0x4bd75c||_0x4bd75c[_0x29b892([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29b892([0x6f,0x6b]))return _0x29b892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x11ecb7(_0x31e00a(_0x34d74c+_0x2a943e))!=_0x4bd75c[_0x29b892([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29b892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29b892([0x56,0x61,0x6c,0x69,0x64]);})[_0x29b892([0x74,0x68,0x65,0x6e])](_0x31113a=>(_0x214056(),_0x31113a),()=>{const _0x33714b=_0x44edb6();return null==_0x33714b?(_0x214056(),_0x29b892([0x56,0x61,0x6c,0x69,0x64])):_0x29b892(_0x2fdbfa-_0x33714b>(0x7753083a^_0x4782f8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29b892([0x74,0x68,0x65,0x6e])](_0x1c3599)[_0x29b892([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c3599(_0x29b892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e8a7d=0x536962ba^_0x4782f8;function _0x214056(){const _0x54c2c5=_0x29b892([0x6c,0x6c,0x63,0x74,0x2d])+_0x11ecb7(_0x31e00a(_0x5b78ca)),_0x57310e=_0x5d105f(_0x11ecb7(window[_0x29b892([0x4d,0x61,0x74,0x68])][_0x29b892([0x63,0x65,0x69,0x6c])](_0x2fdbfa/_0x5e8a7d)));window[_0x29b892([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29b892([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54c2c5,_0x57310e);}function _0x44edb6(){const _0x163b58=_0x29b892([0x6c,0x6c,0x63,0x74,0x2d])+_0x11ecb7(_0x31e00a(_0x5b78ca)),_0x4f237a=window[_0x29b892([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29b892([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x163b58);return _0x4f237a?window[_0x29b892([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d105f(_0x4f237a),0x10)*_0x5e8a7d:null;}function _0x30d606(_0x496825){return new window[(_0x29b892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x577823,_0x25a278)=>{_0x496825[_0x29b892([0x74,0x68,0x65,0x6e])](_0x577823,_0x25a278),window[_0x29b892([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x25a278,0x535e58fa^_0x4782f8);});}}_0x135608[_0x29b892([0x6f,0x6e])](_0x29b892([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3bb012,_0x1ad111)=>{if(_0x1ad111[0x0]!=_0x5b78ca)return _0x1c3599(_0x29b892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ad111[0x1]={..._0x1ad111[0x1],[_0x29b892([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x34d74c};},{[_0x29b892([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29b892([0x68,0x69,0x67,0x68])}),_0x135608[_0x29b892([0x6f,0x6e])](_0x29b892([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x295e50=>{_0x2c697e(_0x295e50[_0x29b892([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bc525=!0x0,_0xebef6(_0x295e50[_0x29b892([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29b892([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29b892([0x6c,0x6f,0x77])}),_0x4217d4[_0x29b892([0x74,0x68,0x65,0x6e])](()=>{_0x2bc525||_0x1c3599(_0x29b892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x301387(){return _0x135608[_0x29b892([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29b892([0x76,0x69,0x65,0x77])][_0x29b892([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29b892([0x61,0x75,0x74,0x6f]);}function _0x5b74da(){_0x135608[_0x29b892([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29b892([0x76,0x69,0x65,0x77])][_0x29b892([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29b892([0x61,0x75,0x74,0x6f]);}}function _0x417c72(_0x451ac9){const _0x6bf937=[new window[(_0x29b892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f5c21=>setTimeout(_0x5f5c21,0x5356b2f6^_0x4782f8)),_0x4217d4[_0x29b892([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29b892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48c848=>{let _0x3de9e5=0x0;_0x135608[_0x29b892([0x6d,0x6f,0x64,0x65,0x6c])][_0x29b892([0x6f,0x6e])](_0x29b892([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26f6aa,_0x25accf)=>{_0x25accf[0x0][_0x29b892([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3de9e5++,_0x3de9e5==(0x535f89d2^_0x4782f8)&&(_0x48c848(),_0x26f6aa[_0x29b892([0x6f,0x66,0x66])]());});}))];return window[_0x29b892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29b892([0x72,0x61,0x63,0x65])](_0x6bf937)[_0x29b892([0x74,0x68,0x65,0x6e])](()=>_0x451ac9);}async function _0x4544c8(){await _0x4217d4,_0x135608[_0x29b892([0x6d,0x6f,0x64,0x65,0x6c])][_0x29b892([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20f07c,_0x135608[_0x29b892([0x6d,0x6f,0x64,0x65,0x6c])][_0x29b892([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20f07c,_0x135608[_0x29b892([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29b892([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x186ff8(_0x1e07cb){const _0x73bc10=_0xb3a370();_0x135608[_0x73bc10]=_0x29b892([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e07cb,_0x1e07cb!=_0x29b892([0x56,0x61,0x6c,0x69,0x64])&&_0x4544c8();}function _0xb3a370(){const _0x10ac14=window[_0x29b892([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29b892([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29b892([0x6e,0x6f,0x77])]())[_0x29b892([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29b892([0x2e]),'');let _0x4e1efd=_0x29b892([0x68]);for(let _0x4a56b9=0x0;_0x4a56b9<_0x10ac14[_0x29b892([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a56b9+=0x2){let _0x5dc0f1=window[_0x29b892([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10ac14[_0x29b892([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a56b9,_0x4a56b9+0x2));_0x5dc0f1>=_0x3680be[_0x29b892([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5dc0f1-=_0x3680be[_0x29b892([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4e1efd+=_0x3680be[_0x5dc0f1];}return _0x4e1efd;}function _0x2fea30(){const _0x422846=_0x53b63a[_0x29b892([0x73,0x70,0x6c,0x69,0x74])](_0x29b892([0x2e]));if(0x3!=_0x422846[_0x29b892([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31dbac(_0x422846[0x1]);function _0x31dbac(_0x23374d){const _0x5ee3ce=_0x2ff250(_0x23374d);return _0x5ee3ce&&_0x105ade()?_0x5ee3ce:null;function _0x105ade(){const _0x23265f=_0x5ee3ce[_0x29b892([0x6a,0x74,0x69])],_0x17c49b=window[_0x29b892([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23265f[_0x29b892([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23265f[_0x29b892([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44662d={..._0x5ee3ce,[_0x29b892([0x6a,0x74,0x69])]:_0x23265f[_0x29b892([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23265f[_0x29b892([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44662d[_0x29b892([0x76,0x63])],_0x31e00a(_0x44662d)==_0x17c49b;}}}async function _0x39f383(){let _0x2af6dd=!0x0;try{const _0x501597=_0x53b63a[_0x29b892([0x73,0x70,0x6c,0x69,0x74])](_0x29b892([0x2e])),[_0x4d5e66,_0x4ef275,_0x329358]=_0x501597;return _0x229361(_0x4d5e66),await _0x3aac68(_0x4d5e66,_0x4ef275,_0x329358),_0x2af6dd;}catch{return!0x1;}function _0x229361(_0x70bc0a){const _0x25682f=_0x2ff250(_0x70bc0a);_0x25682f&&_0x25682f[_0x29b892([0x61,0x6c,0x67])]==_0x29b892([0x45,0x53,0x32,0x35,0x36])||(_0x2af6dd=!0x1);}async function _0x3aac68(_0x4fcb69,_0x4195d3,_0x4352a8){const _0x3c8bc0=window[_0x29b892([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29b892([0x66,0x72,0x6f,0x6d])](_0x584eea(_0x4352a8),_0x45c57d=>_0x45c57d[_0x29b892([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x194b60=new window[(_0x29b892([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29b892([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4fcb69+_0x29b892([0x2e])+_0x4195d3),_0xceb4=window[_0x29b892([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29b892([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xceb4)return;const _0x22a865=await _0xceb4[_0x29b892([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29b892([0x6a,0x77,0x6b]),_0x1a1829,{[_0x29b892([0x6e,0x61,0x6d,0x65])]:_0x29b892([0x45,0x43,0x44,0x53,0x41]),[_0x29b892([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29b892([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29b892([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xceb4[_0x29b892([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29b892([0x6e,0x61,0x6d,0x65])]:_0x29b892([0x45,0x43,0x44,0x53,0x41]),[_0x29b892([0x68,0x61,0x73,0x68])]:{[_0x29b892([0x6e,0x61,0x6d,0x65])]:_0x29b892([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22a865,_0x3c8bc0,_0x194b60)||(_0x2af6dd=!0x1);}}function _0x2ff250(_0x29685a){return _0x29685a[_0x29b892([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29b892([0x65,0x79]))?JSON[_0x29b892([0x70,0x61,0x72,0x73,0x65])](_0x584eea(_0x29685a)):null;}function _0x584eea(_0x3bca4a){return window[_0x29b892([0x61,0x74,0x6f,0x62])](_0x3bca4a[_0x29b892([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29b892([0x2b]))[_0x29b892([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29b892([0x2f])));}function _0x31e00a(_0x5511c2){let _0xddd459=0x1505;function _0x2bc7a3(_0x1acaef){for(let _0x309ad0=0x0;_0x309ad0<_0x1acaef[_0x29b892([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x309ad0++){const _0x43c483=_0x1acaef[_0x29b892([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x309ad0);_0xddd459=(_0xddd459<<0x5)+_0xddd459+_0x43c483,_0xddd459&=_0xddd459;}}function _0x4edbcc(_0x2e10fa){Array[_0x29b892([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e10fa)?_0x2e10fa[_0x29b892([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4edbcc):_0x2e10fa&&typeof _0x2e10fa==_0x29b892([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29b892([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e10fa)[_0x29b892([0x73,0x6f,0x72,0x74])]()[_0x29b892([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x562722,_0x1723c1])=>{_0x2bc7a3(_0x562722),_0x4edbcc(_0x1723c1);}):_0x2bc7a3(window[_0x29b892([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e10fa));}return _0x4edbcc(_0x5511c2),_0xddd459>>>0x0;}function _0x11ecb7(_0x44366f){return _0x44366f[_0x29b892([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29b892([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29b892([0x30]));}function _0x5d105f(_0x238096){return _0x238096[_0x29b892([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29b892([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29b892([0x6a,0x6f,0x69,0x6e])]('');}function _0x20f07c(){}function _0x29b892(_0x2f78e1){return _0x2f78e1['map'](_0x56ff73=>String['fromCharCode'](_0x56ff73))['join']('');}_0x186ff8(await _0x28a1dd());}(this);}['_initSchema'](){const _0x1ff027=this['editor']['model']['schema'];_0x1ff027['isRegistered']('imageBlock')&&_0x1ff027['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1ff027['isRegistered']('imageInline')&&_0x1ff027['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1a6ecb=this['editor'];_0x1a6ecb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1a6ecb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x49877f=>_0x49877f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x54886a=_0x1a6ecb['commands']['get']('replaceImageSource');_0x54886a&&this['listenTo'](_0x54886a,'cleanupImage',(_0x4ca8d9,[_0x37d43e,_0x50633])=>{_0x37d43e['removeAttribute']('uploadcareImageId',_0x50633);});}['_initConfig'](){const _0x4ebe41=this['editor']['config']['get']('uploadcare.uploader')||{},_0x42be7f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3855cc(_0x3a4f7b['document'],'uc-config',{..._0x4ebe41,'pubkey':_0x42be7f,'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']=_0x131e11=>{if('closeMax'==_0x131e11)return'#uc-icon-arrow-down';},_0x3a4f7b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3855cc(_0x3a4f7b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3a4f7b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x426d3d=this['editor']['commands']['get']('insertImage');_0x426d3d&&this['listenTo'](_0x426d3d,'execute',()=>{const _0x504368=this['editor']['model']['document']['selection']['getSelectedElement']();_0x504368&&_0x504368['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x504368);});});const _0x232d3e=this['editor']['commands']['get']('uploadcareImageReplace');_0x232d3e&&this['listenTo'](_0x232d3e,'execute',()=>{const _0x28c34b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28c34b&&_0x28c34b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x28c34b);});});}}class tt extends _0x5a8815{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22e65d){super(_0x22e65d),_0x22e65d['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3906b0['defineComponents'](_0x3906b0),this['_defineLocale']();}['_defineLocale'](){const _0x3e5da6=this['editor']['config']['get']('uploadcare.locale'),_0x5e3361=this['editor']['locale']['contentLanguage'];_0x3e5da6&&_0x3906b0['defineLocale'](_0x5e3361,_0x3e5da6);}}class ii extends _0x427a63{constructor(_0x1a2628){super(_0x1a2628);const t=_0x1a2628['t'],_0x2f1ce9=this['bindTemplate'],_0x23e589=new _0x1bddd5();_0x23e589['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':[_0x23e589,{'text':_0x2f1ce9['to']('imageUploadProgress',_0x56713c=>t('Loading\x20image...')+'\x20('+(_0x56713c||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 _0x427a63{constructor(_0x60022c){super(_0x60022c);const t=_0x60022c['t'];this['set']('errorType',null);const _0x2655f0=new _0x3477a2(_0x60022c);_0x2655f0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2655f0['withText']=!0x0,_0x2655f0['class']='ck-button-action',_0x2655f0['on']('execute',()=>{this['fire']('retry');}),_0x2655f0['bind']('isVisible')['to'](this,'errorType',_0x5e1342=>'NotFound'!==_0x5e1342);const _0x538bac=new _0x31f3fc();_0x538bac['content']=_0x319005,_0x538bac['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x15d266=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':[_0x538bac,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x15d266['to']('errorType',_0x202a27=>t('NotFound'!==_0x202a27?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2655f0]},{'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 _0x427a63{constructor(_0x4b56a6,_0x5cf772){super(_0x4b56a6);const _0x306a24=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5cf772,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x306a24['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5b524a,_0x58cb4a,_0x5d6638){super(_0x5b524a),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5b524a),this['_errorView']=new ti(_0x5b524a),this['_editingView']=new ei(_0x5b524a,_0x5d6638),this['_focusableView']=new _0x427a63(_0x5b524a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x58cb4a),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'],_0x1ae8f3=>{this['_addUploadcareImageEditorListeners'](_0x1ae8f3);});}),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'](_0x199f4c,_0x2049b0){const _0x508d97='uc-cloud-image-editor',_0x510cb1=_0x199f4c['querySelector'](_0x508d97);if(_0x510cb1)return _0x2049b0(_0x510cb1);const _0x550d68=new MutationObserver(_0x322512=>{const _0xc6338=_0x322512['filter'](_0x4fef06=>_0x4fef06['target']===_0x199f4c&&_0x4fef06['addedNodes']['length']>0x0&&_0x4fef06['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x508d97);_0xc6338['length']&&(_0x550d68['disconnect'](),_0x2049b0(_0xc6338[0x0]['addedNodes'][0x0]));});_0x550d68['observe'](_0x199f4c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x235d75){_0x235d75['addEventListener']('apply',_0x4dd13b=>{this['fire']('apply',{'imageSrc':_0x4dd13b['detail']['cdnUrl']});}),_0x235d75['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xa9ba1a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x37ef41,_0x1b537e,_0x3cc592){super(),this['_editor']=_0x37ef41,this['_dialog']=_0x1b537e,this['_imageElement']=_0x3cc592,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 _0x4c9fdb=this['_imageElement'],_0x1fb358=_0x4c9fdb['getAttribute']('uploadcareImageId'),_0x51954d=_0x4c9fdb['getAttribute']('src');if(_0x1fb358)await this['_loadImageInfo'](_0x1fb358,_0x51954d);else{if(this['_imageCache']['has'](_0x51954d)){const _0x5cd51c=this['_imageCache']['get'](_0x51954d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5cd51c['url'],this['imageDimension']=_0x5cd51c['dimension'],this['imageId']=_0x5cd51c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3de175}=this['_editor'],t=_0x3de175['t'],_0x4118ec=new X(_0x3de175,this['imageStatus'],this['_attributes']);_0x4118ec['bind']('status')['to'](this,'imageStatus'),_0x4118ec['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4118ec['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4118ec['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4118ec,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x11de94,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4118ec,'position':_0x1ebf92['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4118ec['focus']();},'onHide':()=>{_0x4118ec['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2dead7=>!A(_0x2dead7,_0x4118ec['element'])}});}['_loadImageInfo'](_0x63ecf3,_0x303134){return j['getInfo'](_0x63ecf3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x27990e=>{const {width:_0x347acd,height:_0x2f11db}=_0x27990e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x303134,this['imageDimension']={'width':_0x347acd,'height':_0x2f11db},this['imageId']=_0x63ecf3;})['catch'](_0xcb1789=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xcb1789['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3ae051,_0x5591a1){return this['_getImageAsFile'](_0x3ae051)['then'](_0x260817=>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':_0x5591a1['signal'],'file':_0x260817,'onProgress':_0x329063=>{_0x329063&&_0x329063['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x329063['value']));}}))['then'](_0x1215eb=>{const {width:_0x23fd88,height:_0x14c86f}=_0x1215eb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1215eb['cdnUrl'],this['imageDimension']={'width':_0x23fd88,'height':_0x14c86f},this['imageId']=_0x1215eb['uuid'],this['imageUploadProgress']=null;const _0x466fdb=_0x3ae051['getAttribute']('src');this['_imageCache']['set'](_0x466fdb,{'id':_0x1215eb['uuid'],'url':_0x1215eb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1533e7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1533e7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x16cc97,_0x525f70){_0x16cc97['on']('apply',(_0x22b74c,_0x389a9e)=>{this['_replaceImage'](_0x525f70,_0x389a9e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x16cc97['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x16cc97['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x33ebba,_0x22c590,_0x547043){const _0x59a7c7=this['_editor'],{width:_0x14b353,height:_0x32fd4e}=S(_0x22c590,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x55bbc2,imageSources:_0x4cbfde}=C(_0x22c590,_0x14b353);_0x59a7c7['model']['change'](_0x5ee408=>{if('$graveyard'===_0x33ebba['root']['rootName']){_0x59a7c7['execute']('insertImage',{'imageType':_0x33ebba['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x33ebba['getAttributes']()),'uploadcareImageId':_0x547043,'src':_0x55bbc2,'sources':_0x4cbfde,'width':_0x14b353,'height':_0x32fd4e}});const _0xf7c728=_0x33ebba['getChildren']();_0x33ebba=_0x59a7c7['model']['document']['selection']['getSelectedElement']();for(const _0x1aca84 of _0xf7c728)_0x5ee408['append'](_0x5ee408['cloneElement'](_0x1aca84),_0x33ebba);}else _0x5ee408['setSelection'](_0x33ebba,'on'),_0x59a7c7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x33ebba['getAttributes']()),'uploadcareImageId':_0x547043,'src':_0x55bbc2,'sources':_0x4cbfde,'width':_0x14b353,'height':_0x32fd4e},_0x33ebba);_0x5ee408['setSelection'](_0x33ebba,'on');});}async['_getImageAsFile'](_0x96c7a4){const _0x3368fe=_0x3a4f7b['window'],_0x4b8531=_0x3a4f7b['document']['location']['href'],_0x290e12=new _0x3368fe['URL'](_0x96c7a4['getAttribute']('src'),_0x4b8531);if('data:'===_0x290e12['protocol']){const _0x36ab3e=_0x290e12['href']['split'](','),_0x19a77c=_0x36ab3e[0x0]['match'](/:(.*?);/)[0x1],_0x5ec130=_0x19a77c['split']('/')[0x1],_0x18aec5=_0x3368fe['atob'](_0x36ab3e[_0x36ab3e['length']-0x1]);let _0x1e44f6=_0x18aec5['length'];const _0x4aed61=new _0x3368fe['Uint8Array'](_0x1e44f6);for(;_0x1e44f6--;)_0x4aed61[_0x1e44f6]=_0x18aec5['charCodeAt'](_0x1e44f6);return new _0x3368fe['File']([_0x4aed61],'image.'+_0x5ec130,{'type':_0x19a77c});}const _0xd3b68f=_0x290e12['href']['split']('/'),_0x5bf70d=_0xd3b68f[_0xd3b68f['length']-0x1],_0x7ff061=_0x5bf70d['split']('.')[0x1];return _0x3368fe['fetch'](_0x290e12['href'])['then'](_0x385221=>_0x385221['clone']()['blob']())['then'](_0x5b4218=>new _0x3368fe['File']([_0x5b4218],_0x5bf70d,{'type':'image/'+_0x7ff061}));}}class O extends _0x469b81{['imageEditController'];static get['requires'](){return[_0x4ec9d2];}['_isEditable'];constructor(_0x38bbb1){super(_0x38bbb1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2ca26c){const _0x2e5002=G(_0x2ca26c);return _0x3134f9=>!(!_0x3134f9||!_0x3134f9['is']('element','imageBlock')&&!_0x3134f9['is']('element','imageInline'))&&(!!_0x3134f9['hasAttribute']('uploadcareImageId')||!!_0x3134f9['hasAttribute']('src')&&_0x2e5002(_0x3134f9['getAttribute']('src')));}(_0x38bbb1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2497a8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2497a8);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xaefb8b=this['editor']['model']['document']['selection']['getSelectedElement']();_0xaefb8b&&(_0xaefb8b['is']('element','imageBlock')||_0xaefb8b['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4ec9d2),_0xaefb8b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x469b81{['refresh'](){const _0x6186a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x6186a&&(_0x6186a['is']('element','imageBlock')||_0x6186a['is']('element','imageInline')));}['execute'](_0x4b0d4e){const _0x5705b1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x8cbf11=>{_0x8cbf11['setAttributes'](_0x4b0d4e,_0x5705b1),_0x8cbf11['removeAttribute']('srcset',_0x5705b1),_0x8cbf11['removeAttribute']('sizes',_0x5705b1);});}}class m extends _0x5a8815{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xc94730,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd7d99e}=this;_0xd7d99e['commands']['add']('uploadcareImageEdit',new O(_0xd7d99e)),_0xd7d99e['commands']['add']('uploadcareImageReplace',new R(_0xd7d99e));}}class g extends _0x5a8815{['_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 _0xfa91d8=this['editor'];_0xfa91d8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4662f1=>{const _0x2a615a=_0xfa91d8['commands']['get']('uploadcareImageEdit'),_0x5113d0=new _0x3477a2(_0x4662f1),t=_0x4662f1['t'];return _0x5113d0['set']({'icon':_0x11de94,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5113d0['bind']('isEnabled')['to'](_0x2a615a),_0x5113d0['bind']('isOn')['to'](_0x2a615a,'isActive'),this['listenTo'](_0x5113d0,'execute',()=>{_0xfa91d8['execute']('uploadcareImageEdit'),_0xfa91d8['editing']['view']['focus']();}),_0x5113d0;}),this['_initConfig']();}['_initConfig'](){const _0x3bdaa8=_0x3855cc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3bdaa8),this['listenTo'](this['editor'],'destroy',()=>{_0x3bdaa8['remove']();});}}class et extends _0x5a8815{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 _0x525820,Command as _0x40d5c6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3d7958,IconGooglePhotos as _0xf9490f,IconGoogleDrive as _0x3cce3b,IconFacebook as _0x3fccde,IconDropbox as _0x50c2b5,IconUploadcareLink as _0x4f9784,IconUploadcareImageUpload as _0x4dda0b,IconError as _0x194a31,IconUploadcareImageEdit as _0x4f7593}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x51c95e,MenuBarMenuListItemButtonView as _0x1b57ac,View as _0x5d94f1,FocusCycler as _0x3012da,Dialog as _0x1c3d2b,DialogViewPosition as _0x46e2ab,SpinnerView as _0x3ca657,IconView as _0x3e8389,Notification as _0x22f623}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x162da7,DomEmitterMixin as _0x1a6004,global as _0x4b85b2,getAncestors as _0x407c63,ObservableMixin as _0x5c1c66,uid as _0x519e29,createElement as _0x211579}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3d1975}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x671f68,info as _0x3c9d0a}from'@uploadcare/upload-client';import*as _0x502144 from'@uploadcare/file-uploader';var i=function(_0x3d2ac8){return _0x3d2ac8['Local']='local',_0x3d2ac8['URL']='url',_0x3d2ac8['Dropbox']='dropbox',_0x3d2ac8['GDrive']='gdrive',_0x3d2ac8['Facebook']='facebook',_0x3d2ac8['GPhotos']='gphotos',_0x3d2ac8['OneDrive']='onedrive',_0x3d2ac8;}({});function _(_0x310570,_0xb016be,_0x1b2f85){const t=_0x310570['t'],_0x5b4d16=_0x310570['t'];switch(_0xb016be){case i['Local']:return{'text':_0x5b4d16('Insert'===_0x1b2f85?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5b4d16('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1b2f85?_0x5b4d16('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5b4d16('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1b2f85?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1b2f85?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1b2f85?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1b2f85?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1b2f85?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xb016be;}}class e extends _0x525820{['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 _0x22f078=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2660ae;for(const _0x31cbf3 in _0x22f078){const _0x2d9792=_0x31cbf3,_0x2841de=_0x22f078[_0x2d9792];if('uploadcareLicenseKeyValid'==_0x2841de||'uploadcareLicenseKeyInvalid'==_0x2841de||'uploadcareLicenseKeyExpired'==_0x2841de||'uploadcareLicenseKeyDomainLimit'==_0x2841de||'uploadcareLicenseKeyNotAllowed'==_0x2841de||'uploadcareLicenseKeyEvaluationLimit'==_0x2841de||'uploadcareLicenseKeyUsageLimit'==_0x2841de){delete _0x22f078[_0x2d9792],_0x2660ae=_0x2841de,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2660ae&&_0x22f078['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2660ae&&_0x22f078['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2660ae&&_0x22f078['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2660ae&&_0x22f078['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2660ae&&_0x22f078['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2660ae&&_0x22f078['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x370527}=this,_0x5e2c88=_0x370527['commands']['get']('uploadcare');if(!_0x5e2c88)return;const _0x5d8fb3=this['_normalizeConfigSourceList'](_0x370527['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x394dfd,_0x382c93)=>{const _0x4ef666=this['_getIntegrationKey'](_0x382c93['type']);return _0x394dfd[_0x4ef666]||(_0x394dfd[_0x4ef666]=[]),_0x394dfd[_0x4ef666]['push'](_0x382c93),_0x394dfd;},{});_0x370527['plugins']['has']('ImageInsertUI')&&_0x370527['commands']['get']('uploadcare')&&Object['entries'](_0x5d8fb3)['forEach'](([_0x3f4367,_0x3822d2])=>{_0x370527['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3f4367,'observable':()=>_0x5e2c88,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3822d2),'formViewCreator':()=>this['_createDropdownButtons'](_0x3822d2),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3822d2),'override':'assetManager'!==_0x3f4367});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x353b9e){const {locale:_0x5936ee}=this['editor'];return _0x353b9e['map'](_0x388d8e=>{const _0x2813e8=_(_0x5936ee,_0x388d8e,'Insert');switch(_0x388d8e){case i['Local']:return{'icon':_0x4dda0b,'type':i['Local'],..._0x2813e8};case i['URL']:return{'icon':_0x4f9784,'type':i['URL'],..._0x2813e8};case i['Dropbox']:return{'icon':_0x50c2b5,'type':i['Dropbox'],..._0x2813e8};case i['Facebook']:return{'icon':_0x3fccde,'type':i['Facebook'],..._0x2813e8};case i['GDrive']:return{'icon':_0x3cce3b,'type':i['GDrive'],..._0x2813e8};case i['GPhotos']:return{'icon':_0xf9490f,'type':i['GPhotos'],..._0x2813e8};case i['OneDrive']:return{'icon':_0x3d7958,'type':i['OneDrive'],..._0x2813e8};}});}['_getIntegrationKey'](_0x35778e){switch(_0x35778e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5dbdc7,_0x4ebec3){const _0x21b0a6=this['editor'],_0x2ae572=new _0x5dbdc7(_0x21b0a6['locale']),_0x3b6c3f=_0x21b0a6['commands']['get']('uploadcare');return _0x2ae572['bind']('isEnabled')['to'](_0x3b6c3f),_0x2ae572['on']('execute',()=>{_0x3b6c3f['execute'](_0x4ebec3);}),_0x2ae572;}['_createToolbarButton'](_0x221019){const {locale:_0x4ccdaf}=this['editor'],_0x4a4569=this['editor']['plugins']['get']('ImageInsertUI'),_0x424f2f=_0x221019[0x0],_0x571ace=this['_createButton'](_0x51c95e,_0x424f2f['type']);return _0x571ace['icon']=_0x424f2f['icon'],_0x571ace['bind']('label')['to'](_0x4a4569,'isImageSelected',_0x45de81=>_(_0x4ccdaf,_0x424f2f['type'],_0x45de81?'Replace':'Insert')['text']),_0x571ace['tooltip']=!0x0,_0x571ace;}['_createDropdownButtons'](_0x3a1b41){const {locale:_0x3dff17}=this['editor'],_0xb66c35=this['editor']['plugins']['get']('ImageInsertUI');return _0x3a1b41['map'](_0x2ea1f7=>{const _0x228f5d=this['_createButton'](_0x51c95e,_0x2ea1f7['type']);return _0x228f5d['withText']=!0x0,_0x228f5d['icon']=_0x2ea1f7['icon'],_0x228f5d['bind']('label')['to'](_0xb66c35,'isImageSelected',_0x5ea07a=>_(_0x3dff17,_0x2ea1f7['type'],_0x5ea07a?'Replace':'Insert')['text']),_0x228f5d;});}['_createMenuBarButtons'](_0x54a9c0){return _0x54a9c0['map'](_0x4e0dfb=>{const _0x2402b9=this['_createButton'](_0x1b57ac,_0x4e0dfb['type']);return _0x2402b9['icon']=_0x4e0dfb['icon'],_0x2402b9['label']=_0x4e0dfb['shortText'],_0x2402b9;});}}class V extends _0x5d94f1{['focusTracker'];['focusCycler'];constructor(_0x2237bd){super(_0x2237bd),this['focusTracker']=new _0x162da7(),this['focusCycler']=new _0x3012da({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x69c72d,_0x5676fc){super(_0x69c72d),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-'+_0x5676fc}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x55cb67,_0x56ed62){const _0x36e164=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3fd507=>_0x3fd507<=_0x56ed62)['map'](_0x28eeaa=>_0x55cb67['replace'](/\/$/,'')+'/-/resize/'+_0x28eeaa+'x/\x20'+_0x28eeaa+'w');return{'imageFallbackUrl':_0x55cb67,'imageSources':[{'srcset':_0x36e164['join'](',\x20'),'sizes':'(max-width:\x20'+_0x56ed62+'px)\x20100vw,\x20'+_0x56ed62+'px','type':'image/webp'}]};}function F(_0x1747c0,_0x5ba99c,_0x133777){const _0x573e2d=_0x1747c0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x573e2d?parseInt(_0x573e2d[0x1],0xa):_0x5ba99c,'height':_0x573e2d?parseInt(_0x573e2d[0x2],0xa):_0x133777};}function p(_0x163c3a,_0x2743be){const _0x258ab4=new(_0x1a6004())(),_0xe8da8b=_0x163c3a['plugins']['get']('ImageUtils'),_0x3f95e1=_0x163c3a['editing']['mapper']['toViewElement'](_0x2743be),_0xce8087=_0xe8da8b['findViewImgElement'](_0x3f95e1),_0x285f78=_0x163c3a['editing']['view']['domConverter']['viewToDom'](_0xce8087),_0x274798=_0x2743be['getAttribute']('width'),_0x3baf03=_0x2743be['getAttribute']('height'),_0x479c81='image-processing';_0x163c3a['editing']['view']['change'](_0x42197b=>{_0x42197b['addClass'](_0x479c81,_0x3f95e1),_0x42197b['setStyle']('aspect-ratio',_0x274798+'/'+_0x3baf03,_0xce8087);}),_0x258ab4['listenTo'](_0x285f78,'load',()=>{_0x258ab4['stopListening'](_0x285f78,'load'),_0x163c3a['editing']['view']['change'](_0x17ce6d=>{_0x17ce6d['removeClass'](_0x479c81,_0x3f95e1),_0x17ce6d['removeStyle']('aspect-ratio',_0xce8087);});});}function R(_0x4e48a6){if(Array['isArray'](_0x4e48a6)){const _0x1e4568=_0x4e48a6['map'](R);return _0x592c28=>_0x1e4568['some'](_0x59ccaa=>_0x59ccaa(_0x592c28));}if('origin'==_0x4e48a6){const _0x28c813=_0x4b85b2['window']['location']['origin'];return _0xf79ac5=>new URL(_0xf79ac5,_0x4b85b2['document']['baseURI'])['origin']==_0x28c813;}return'function'==typeof _0x4e48a6?_0x4e48a6:_0x4e48a6 instanceof RegExp?_0x5bebae=>!(!_0x5bebae['match'](_0x4e48a6)&&!_0x5bebae['replace'](/^https?:\/\//,'')['match'](_0x4e48a6)):()=>!0x1;}function M(_0x11ad41,_0x39d814){return _0x407c63(_0x11ad41['target'])['includes'](_0x39d814);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5c1c66(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x320dc8,_0x28895e,_0x48b230){super(),this['_editor']=_0x320dc8,this['_editing']=_0x28895e,this['_dialog']=_0x320dc8['plugins']['get'](_0x1c3d2b),this['_api']=_0x28895e['ctxElement']['getAPI'](),this['_type']=_0x48b230,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:_0x909d03,model:_0x1d4b47}=this['_editor'],_0x3e3e5e=_0x1d4b47['document']['selection']['getSelectedElement'](),_0x3acb23=_0x3e3e5e&&(_0x3e3e5e['is']('element','imageBlock')||_0x3e3e5e['is']('element','imageInline'));this['_formView']=new S(_0x909d03,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4dda0b,'title':_(_0x909d03,this['_type'],_0x3acb23?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x46e2ab['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x30d904=>!M(_0x30d904,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x52de0e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5dec01=>{const _0x1e1c12=_0x52de0e['length'];for(const _0x4875a6 of _0x52de0e){const _0x21e9d9=_0x4875a6===_0x52de0e[_0x1e1c12-0x1],{cdnUrl:_0x497405,fileInfo:_0x202227}=_0x4875a6;if(!_0x497405||!_0x202227)continue;const {width:_0x31e290,height:_0x4773a8}=_0x202227['imageInfo'],_0x226b7e=F(_0x497405,_0x31e290,_0x4773a8),_0x272f1c=C(_0x497405,_0x226b7e['width']),_0x3ad0bf={'id':_0x202227['uuid'],'type':'image','attributes':{'imageDimension':_0x226b7e,..._0x272f1c}};this['_insertAsset'](_0x3ad0bf,_0x21e9d9,_0x5dec01);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x20b0ef=>{'idle'===_0x20b0ef['detail']['status']&&!_0x20b0ef['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5679b4,_0x1db661,_0x14b0b3){const _0x47967e=this['_editor']['model']['document']['selection'],_0x69b77a=_0x47967e['getSelectedElement'](),_0x4cd1c2=!(!_0x69b77a||!_0x69b77a['is']('element','imageInline'));_0x14b0b3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5679b4,_0x4cd1c2),_0x1db661||_0x14b0b3['setSelection'](_0x47967e['getLastPosition']());}['_insertImage'](_0x3e88ba,_0x357b2c){const _0x178f24=this['_editor'],{imageDimension:_0x4baaea,imageFallbackUrl:_0x3fc1b2,imageSources:_0x2064c7}=_0x3e88ba['attributes'];_0x178f24['execute']('insertImage',{'imageType':_0x357b2c?'imageInline':null,'source':{'uploadcareImageId':_0x3e88ba['id'],'src':_0x3fc1b2,'sources':_0x2064c7,..._0x4baaea}});}}class w extends _0x40d5c6{['_editing'];['_controller']=null;static get['requires'](){return[_0x1c3d2b,o];}constructor(_0x37c17b){super(_0x37c17b),this['_editing']=_0x37c17b['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x540cfc){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x540cfc);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x50b2de,..._0x518d17}){return _0x671f68(_0x50b2de,_0x518d17);}static['getInfo'](_0x459531,_0x276e4f){return _0x3c9d0a(_0x459531,_0x276e4f);}}class f extends _0x525820{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3d1975,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1d34b8=this['editor'];if(!!!_0x1d34b8['config']['get']('uploadcare'))return;_0x1d34b8['plugins']['get'](_0x3d1975)['createUploadAdapter']=_0x3d8b81=>new k(_0x3d8b81,_0x1d34b8),_0x1d34b8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x317285,{imageElement:_0x40a348,data:_0x202993})=>{_0x1d34b8['model']['change'](_0x507f87=>{_0x507f87['setAttribute']('uploadcareImageId',_0x202993['uploadcareImageId'],_0x40a348);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x7875c9,_0xfbb1d5){this['loader']=_0x7875c9,this['editor']=_0xfbb1d5,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x36114f=await this['loader']['file'];return j['upload']({'file':_0x36114f,'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':_0x1d12a3=>{_0x1d12a3&&_0x1d12a3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1d12a3['value']);}})['then'](async _0x203e1f=>{const {imageFallbackUrl:_0x4bcd5a,imageSources:_0x4cfbb1}=C(_0x203e1f['cdnUrl'],_0x203e1f['imageInfo']['width']);return{'uploadcareImageId':_0x203e1f['uuid'],'default':_0x4bcd5a,'sources':_0x4cfbb1};})['catch'](()=>{const _0xe92191=t('Cannot\x20upload\x20file:')+('\x20'+_0x36114f['name']+'.');return Promise['reject'](_0xe92191);});}['abort'](){this['controller']['abort']();}}class o extends _0x525820{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1c3d2b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xa0855f){super(_0xa0855f),this['ucContextId']=_0x519e29();}['init'](){const _0x1ffac5=this['editor'];_0x1ffac5['commands']['add']('uploadcare',new w(_0x1ffac5));}['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 _0x48d320=_0x4b85b2['document']['querySelector']('input[uploadcare-file-input]');_0x48d320&&_0x48d320['remove']();}),async function(_0x4aedb4){const _0x5ad3b3=_0x35a041([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]),_0x4b8649=0x535f8c3a,_0x29147e=0x53580d32^_0x4b8649,_0x3ed272=window[_0x35a041([0x44,0x61,0x74,0x65])][_0x35a041([0x6e,0x6f,0x77])](),_0x403329=_0x4aedb4[_0x35a041([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x292b9d=new window[(_0x35a041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe6a9a5=>{_0x403329[_0x35a041([0x6f,0x6e,0x63,0x65])](_0x35a041([0x72,0x65,0x61,0x64,0x79]),_0xe6a9a5);}),_0x481ac3={[_0x35a041([0x6b,0x74,0x79])]:_0x35a041([0x45,0x43]),[_0x35a041([0x75,0x73,0x65])]:_0x35a041([0x73,0x69,0x67]),[_0x35a041([0x63,0x72,0x76])]:_0x35a041([0x50,0x2d,0x32,0x35,0x36]),[_0x35a041([0x78])]:_0x35a041([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]),[_0x35a041([0x79])]:_0x35a041([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]),[_0x35a041([0x61,0x6c,0x67])]:_0x35a041([0x45,0x53,0x32,0x35,0x36])},_0x1f5943=_0x403329[_0x35a041([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x35a041([0x67,0x65,0x74])](_0x35a041([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40a9fb(){let _0xfd7eaa,_0x2abb1a=null,_0x38f050=null;try{if(_0x1f5943==_0x35a041([0x47,0x50,0x4c]))return _0x35a041([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xfd7eaa=_0xc30be3(),!_0xfd7eaa)return _0x35a041([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xfd7eaa[_0x35a041([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38f050=_0x599a8f(_0xfd7eaa[_0x35a041([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xfd7eaa[_0x35a041([0x6a,0x74,0x69])])),await _0x2aeb96()?_0x3e990()?_0x2ca8de()?_0x35a041([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d1e25()?(_0xfd7eaa[_0x35a041([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35a041([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2abb1a=_0x573e25(_0x35a041([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x41f339()):_0x35a041([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x35a041([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x35a041([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x35a041([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ca8de(){const _0x50a019=[_0x35a041([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x35a041([0x74,0x72,0x69,0x61,0x6c])][_0x35a041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfd7eaa[_0x35a041([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ed272/0x3e8:0xe10*_0x29147e;return _0xfd7eaa[_0x35a041([0x65,0x78,0x70])]<_0x50a019;}function _0x3e990(){const _0x27779e=_0xfd7eaa[_0x35a041([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x27779e&&(!!_0x27779e[_0x35a041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35a041([0x2a]))||!!_0x27779e[_0x35a041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35a041([0x55,0x50,0x4c,0x43])));}function _0x1d1e25(){const _0xe5dbd8=_0xfd7eaa[_0x35a041([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe5dbd8||0x0==_0xe5dbd8[_0x35a041([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4adf70}=new URL(window[_0x35a041([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe5dbd8[_0x35a041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4adf70))return!0x0;const _0x49ec8c=_0x4adf70[_0x35a041([0x73,0x70,0x6c,0x69,0x74])](_0x35a041([0x2e]));return _0xe5dbd8[_0x35a041([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58cfcc=>_0x58cfcc[_0x35a041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35a041([0x2a])))[_0x35a041([0x6d,0x61,0x70])](_0x2e3c78=>_0x2e3c78[_0x35a041([0x73,0x70,0x6c,0x69,0x74])](_0x35a041([0x2e])))[_0x35a041([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x740f7d=>_0x740f7d[_0x35a041([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x49ec8c[_0x35a041([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35a041([0x6d,0x61,0x70])](_0x198856=>Array(_0x49ec8c[_0x35a041([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x198856[_0x35a041([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35a041([0x66,0x69,0x6c,0x6c])](_0x198856[0x0]===_0x35a041([0x2a])?_0x35a041([0x2a]):'')[_0x35a041([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x198856))[_0x35a041([0x73,0x6f,0x6d,0x65])](_0x5412f3=>_0x49ec8c[_0x35a041([0x65,0x76,0x65,0x72,0x79])]((_0x358454,_0x473c65)=>_0x5412f3[_0x473c65]===_0x358454||_0x5412f3[_0x473c65]===_0x35a041([0x2a])));}function _0x41f339(){return _0x2abb1a&&_0x38f050?new window[(_0x35a041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39f4dd,_0x4bf2b9)=>{_0x2abb1a[_0x35a041([0x74,0x68,0x65,0x6e])](_0x39f4dd,_0x4bf2b9),_0x38f050[_0x35a041([0x74,0x68,0x65,0x6e])](_0x1f742c=>{_0x1f742c!=_0x35a041([0x56,0x61,0x6c,0x69,0x64])&&_0x39f4dd(_0x1f742c);},_0x4bf2b9);}):_0x2abb1a||_0x38f050||_0x35a041([0x56,0x61,0x6c,0x69,0x64]);}}function _0x599a8f(_0x30fcca,_0x2103df){return new window[(_0x35a041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2793dc=>{if(_0x4e89df())return _0x2793dc(_0x35a041([0x56,0x61,0x6c,0x69,0x64]));_0x354d8e(),_0x403329[_0x35a041([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x35a041([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x44cf30=!0x1;const _0x1f5b49=_0x519e29();function _0x2e194a(_0x1f2e0b){return!!_0x1f2e0b&&(typeof _0x1f2e0b===_0x35a041([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f2e0b===_0x35a041([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f2e0b[_0x35a041([0x74,0x68,0x65,0x6e])]===_0x35a041([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f2e0b[_0x35a041([0x63,0x61,0x74,0x63,0x68])]===_0x35a041([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x206a75(_0x2b992e){_0xc9f860(_0x2b992e)[_0x35a041([0x74,0x68,0x65,0x6e])](_0x211324=>{if(!_0x211324||_0x211324[_0x35a041([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x35a041([0x6f,0x6b]))return _0x35a041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a7794(_0x1269d5(_0x1f5b49+_0x2103df))!=_0x211324[_0x35a041([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x35a041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x35a041([0x56,0x61,0x6c,0x69,0x64]);})[_0x35a041([0x74,0x68,0x65,0x6e])](_0x4d6112=>(_0x15f6dc(),_0x4d6112),()=>{const _0x295dca=_0x5c2c47();return null==_0x295dca?(_0x15f6dc(),_0x35a041([0x56,0x61,0x6c,0x69,0x64])):_0x35a041(_0x3ed272-_0x295dca>(0x7753083a^_0x4b8649)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x35a041([0x74,0x68,0x65,0x6e])](_0x2793dc)[_0x35a041([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2793dc(_0x35a041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x108be8=0x536962ba^_0x4b8649;function _0x15f6dc(){const _0x260eba=_0x35a041([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a7794(_0x1269d5(_0x30fcca)),_0x297d26=_0x2ee4de(_0x3a7794(window[_0x35a041([0x4d,0x61,0x74,0x68])][_0x35a041([0x63,0x65,0x69,0x6c])](_0x3ed272/_0x108be8)));window[_0x35a041([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35a041([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x260eba,_0x297d26);}function _0x5c2c47(){const _0x166018=_0x35a041([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a7794(_0x1269d5(_0x30fcca)),_0x556950=window[_0x35a041([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35a041([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x166018);return _0x556950?window[_0x35a041([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ee4de(_0x556950),0x10)*_0x108be8:null;}function _0xc9f860(_0xfc1068){return new window[(_0x35a041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5df95f,_0x48ec62)=>{_0xfc1068[_0x35a041([0x74,0x68,0x65,0x6e])](_0x5df95f,_0x48ec62),window[_0x35a041([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48ec62,0x535e58fa^_0x4b8649);});}}_0x403329[_0x35a041([0x6f,0x6e])](_0x35a041([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c1134,_0x227102)=>{if(_0x227102[0x0]!=_0x30fcca)return _0x2793dc(_0x35a041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x227102[0x1]={..._0x227102[0x1],[_0x35a041([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f5b49};},{[_0x35a041([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35a041([0x68,0x69,0x67,0x68])}),_0x403329[_0x35a041([0x6f,0x6e])](_0x35a041([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57d5f6=>{_0x2e194a(_0x57d5f6[_0x35a041([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x44cf30=!0x0,_0x206a75(_0x57d5f6[_0x35a041([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x35a041([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35a041([0x6c,0x6f,0x77])}),_0x292b9d[_0x35a041([0x74,0x68,0x65,0x6e])](()=>{_0x44cf30||_0x2793dc(_0x35a041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e89df(){return _0x403329[_0x35a041([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35a041([0x76,0x69,0x65,0x77])][_0x35a041([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x35a041([0x61,0x75,0x74,0x6f]);}function _0x354d8e(){_0x403329[_0x35a041([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35a041([0x76,0x69,0x65,0x77])][_0x35a041([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35a041([0x61,0x75,0x74,0x6f]);}}function _0x573e25(_0x1eea59){const _0x29a81a=[new window[(_0x35a041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cb68f=>setTimeout(_0x4cb68f,0x5356b2f6^_0x4b8649)),_0x292b9d[_0x35a041([0x74,0x68,0x65,0x6e])](()=>new window[(_0x35a041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ddc4e=>{let _0x41a6c5=0x0;_0x403329[_0x35a041([0x6d,0x6f,0x64,0x65,0x6c])][_0x35a041([0x6f,0x6e])](_0x35a041([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b809f,_0x3f2f2a)=>{_0x3f2f2a[0x0][_0x35a041([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x41a6c5++,_0x41a6c5==(0x535f89d2^_0x4b8649)&&(_0x1ddc4e(),_0x5b809f[_0x35a041([0x6f,0x66,0x66])]());});}))];return window[_0x35a041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35a041([0x72,0x61,0x63,0x65])](_0x29a81a)[_0x35a041([0x74,0x68,0x65,0x6e])](()=>_0x1eea59);}async function _0x2c10c0(){await _0x292b9d,_0x403329[_0x35a041([0x6d,0x6f,0x64,0x65,0x6c])][_0x35a041([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x117277,_0x403329[_0x35a041([0x6d,0x6f,0x64,0x65,0x6c])][_0x35a041([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x117277,_0x403329[_0x35a041([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x35a041([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26ec41(_0x596f2d){const _0x2b1bff=_0x3a17a9();_0x403329[_0x2b1bff]=_0x35a041([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x596f2d,_0x596f2d!=_0x35a041([0x56,0x61,0x6c,0x69,0x64])&&_0x2c10c0();}function _0x3a17a9(){const _0x4643ff=window[_0x35a041([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x35a041([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x35a041([0x6e,0x6f,0x77])]())[_0x35a041([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x35a041([0x2e]),'');let _0x4f4c26=_0x35a041([0x68]);for(let _0x1be315=0x0;_0x1be315<_0x4643ff[_0x35a041([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1be315+=0x2){let _0x16d3c4=window[_0x35a041([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4643ff[_0x35a041([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1be315,_0x1be315+0x2));_0x16d3c4>=_0x5ad3b3[_0x35a041([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16d3c4-=_0x5ad3b3[_0x35a041([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f4c26+=_0x5ad3b3[_0x16d3c4];}return _0x4f4c26;}function _0xc30be3(){const _0x22c8da=_0x1f5943[_0x35a041([0x73,0x70,0x6c,0x69,0x74])](_0x35a041([0x2e]));if(0x3!=_0x22c8da[_0x35a041([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x527896(_0x22c8da[0x1]);function _0x527896(_0x535858){const _0x3f0ac0=_0x542ba9(_0x535858);return _0x3f0ac0&&_0x1c1480()?_0x3f0ac0:null;function _0x1c1480(){const _0x53065d=_0x3f0ac0[_0x35a041([0x6a,0x74,0x69])],_0x54b494=window[_0x35a041([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53065d[_0x35a041([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53065d[_0x35a041([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d9a5a={..._0x3f0ac0,[_0x35a041([0x6a,0x74,0x69])]:_0x53065d[_0x35a041([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53065d[_0x35a041([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d9a5a[_0x35a041([0x76,0x63])],_0x1269d5(_0x3d9a5a)==_0x54b494;}}}async function _0x2aeb96(){let _0xcbe66b=!0x0;try{const _0x2e3770=_0x1f5943[_0x35a041([0x73,0x70,0x6c,0x69,0x74])](_0x35a041([0x2e])),[_0x53ec12,_0x4822bf,_0x5d99ba]=_0x2e3770;return _0x1d3a1e(_0x53ec12),await _0x4b5539(_0x53ec12,_0x4822bf,_0x5d99ba),_0xcbe66b;}catch{return!0x1;}function _0x1d3a1e(_0x40b5e){const _0x33fa05=_0x542ba9(_0x40b5e);_0x33fa05&&_0x33fa05[_0x35a041([0x61,0x6c,0x67])]==_0x35a041([0x45,0x53,0x32,0x35,0x36])||(_0xcbe66b=!0x1);}async function _0x4b5539(_0x11c7a1,_0x4bbba1,_0x96a145){const _0x25b676=window[_0x35a041([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x35a041([0x66,0x72,0x6f,0x6d])](_0x2ce8b4(_0x96a145),_0x6d7286=>_0x6d7286[_0x35a041([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2af1de=new window[(_0x35a041([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x35a041([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11c7a1+_0x35a041([0x2e])+_0x4bbba1),_0x5c8078=window[_0x35a041([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x35a041([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5c8078)return;const _0x4c113c=await _0x5c8078[_0x35a041([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x35a041([0x6a,0x77,0x6b]),_0x481ac3,{[_0x35a041([0x6e,0x61,0x6d,0x65])]:_0x35a041([0x45,0x43,0x44,0x53,0x41]),[_0x35a041([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x35a041([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x35a041([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5c8078[_0x35a041([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x35a041([0x6e,0x61,0x6d,0x65])]:_0x35a041([0x45,0x43,0x44,0x53,0x41]),[_0x35a041([0x68,0x61,0x73,0x68])]:{[_0x35a041([0x6e,0x61,0x6d,0x65])]:_0x35a041([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c113c,_0x25b676,_0x2af1de)||(_0xcbe66b=!0x1);}}function _0x542ba9(_0x16d5a1){return _0x16d5a1[_0x35a041([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x35a041([0x65,0x79]))?JSON[_0x35a041([0x70,0x61,0x72,0x73,0x65])](_0x2ce8b4(_0x16d5a1)):null;}function _0x2ce8b4(_0x3d57bc){return window[_0x35a041([0x61,0x74,0x6f,0x62])](_0x3d57bc[_0x35a041([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x35a041([0x2b]))[_0x35a041([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x35a041([0x2f])));}function _0x1269d5(_0x48970b){let _0x46098e=0x1505;function _0x279183(_0x3047b5){for(let _0x110876=0x0;_0x110876<_0x3047b5[_0x35a041([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x110876++){const _0x137189=_0x3047b5[_0x35a041([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x110876);_0x46098e=(_0x46098e<<0x5)+_0x46098e+_0x137189,_0x46098e&=_0x46098e;}}function _0x45ee38(_0x25ef11){Array[_0x35a041([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x25ef11)?_0x25ef11[_0x35a041([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45ee38):_0x25ef11&&typeof _0x25ef11==_0x35a041([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x35a041([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x25ef11)[_0x35a041([0x73,0x6f,0x72,0x74])]()[_0x35a041([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ba84d,_0x3cc7a0])=>{_0x279183(_0x4ba84d),_0x45ee38(_0x3cc7a0);}):_0x279183(window[_0x35a041([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x25ef11));}return _0x45ee38(_0x48970b),_0x46098e>>>0x0;}function _0x3a7794(_0x4977fb){return _0x4977fb[_0x35a041([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x35a041([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x35a041([0x30]));}function _0x2ee4de(_0x579821){return _0x579821[_0x35a041([0x73,0x70,0x6c,0x69,0x74])]('')[_0x35a041([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x35a041([0x6a,0x6f,0x69,0x6e])]('');}function _0x117277(){}function _0x35a041(_0x3c4ffd){return _0x3c4ffd['map'](_0x3b4bea=>String['fromCharCode'](_0x3b4bea))['join']('');}_0x26ec41(await _0x40a9fb());}(this);}['_initSchema'](){const _0x1a3a30=this['editor']['model']['schema'];_0x1a3a30['isRegistered']('imageBlock')&&_0x1a3a30['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1a3a30['isRegistered']('imageInline')&&_0x1a3a30['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x54a8fe=this['editor'];_0x54a8fe['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x54a8fe['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5d062d=>_0x5d062d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x37b5c9=_0x54a8fe['commands']['get']('replaceImageSource');_0x37b5c9&&this['listenTo'](_0x37b5c9,'cleanupImage',(_0x571c23,[_0x37201c,_0x15c58b])=>{_0x37201c['removeAttribute']('uploadcareImageId',_0x15c58b);});}['_initConfig'](){const _0x5a222d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x52fbdd=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x211579(_0x4b85b2['document'],'uc-config',{..._0x5a222d,'pubkey':_0x52fbdd,'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']=_0x415813=>{if('closeMax'==_0x415813)return'#uc-icon-arrow-down';},_0x4b85b2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x211579(_0x4b85b2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4b85b2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xdba3c3=this['editor']['commands']['get']('insertImage');_0xdba3c3&&this['listenTo'](_0xdba3c3,'execute',()=>{const _0x431bbe=this['editor']['model']['document']['selection']['getSelectedElement']();_0x431bbe&&_0x431bbe['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x431bbe);});});const _0xfd35bb=this['editor']['commands']['get']('uploadcareImageReplace');_0xfd35bb&&this['listenTo'](_0xfd35bb,'execute',()=>{const _0x84a79b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x84a79b&&_0x84a79b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x84a79b);});});}}class tt extends _0x525820{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6c61b9){super(_0x6c61b9),_0x6c61b9['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x502144['defineComponents'](_0x502144),this['_defineLocale']();}['_defineLocale'](){const _0x319459=this['editor']['config']['get']('uploadcare.locale'),_0x4d2348=this['editor']['locale']['contentLanguage'];_0x319459&&_0x502144['defineLocale'](_0x4d2348,_0x319459);}}class ii extends _0x5d94f1{constructor(_0x521193){super(_0x521193);const t=_0x521193['t'],_0x52b826=this['bindTemplate'],_0x52b335=new _0x3ca657();_0x52b335['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':[_0x52b335,{'text':_0x52b826['to']('imageUploadProgress',_0x4f2f01=>t('Loading\x20image...')+'\x20('+(_0x4f2f01||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 _0x5d94f1{constructor(_0x5f2292){super(_0x5f2292);const t=_0x5f2292['t'];this['set']('errorType',null);const _0x2df97b=new _0x51c95e(_0x5f2292);_0x2df97b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2df97b['withText']=!0x0,_0x2df97b['class']='ck-button-action',_0x2df97b['on']('execute',()=>{this['fire']('retry');}),_0x2df97b['bind']('isVisible')['to'](this,'errorType',_0x6903ff=>'NotFound'!==_0x6903ff);const _0x242f23=new _0x3e8389();_0x242f23['content']=_0x194a31,_0x242f23['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4541bb=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':[_0x242f23,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4541bb['to']('errorType',_0xa9c536=>t('NotFound'!==_0xa9c536?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2df97b]},{'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 _0x5d94f1{constructor(_0x5c0cb4,_0x1b4762){super(_0x5c0cb4);const _0x3b575a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1b4762,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3b575a['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x178703,_0x3aca7c,_0x522669){super(_0x178703),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x178703),this['_errorView']=new ti(_0x178703),this['_editingView']=new ei(_0x178703,_0x522669),this['_focusableView']=new _0x5d94f1(_0x178703),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3aca7c),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'],_0x47cf0c=>{this['_addUploadcareImageEditorListeners'](_0x47cf0c);});}),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'](_0x1e4704,_0x386e44){const _0x442573='uc-cloud-image-editor',_0x59918f=_0x1e4704['querySelector'](_0x442573);if(_0x59918f)return _0x386e44(_0x59918f);const _0x4d7fe9=new MutationObserver(_0x194c1c=>{const _0x2ab891=_0x194c1c['filter'](_0x304f68=>_0x304f68['target']===_0x1e4704&&_0x304f68['addedNodes']['length']>0x0&&_0x304f68['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x442573);_0x2ab891['length']&&(_0x4d7fe9['disconnect'](),_0x386e44(_0x2ab891[0x0]['addedNodes'][0x0]));});_0x4d7fe9['observe'](_0x1e4704,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5c08e3){_0x5c08e3['addEventListener']('apply',_0x561d78=>{this['fire']('apply',{'imageSrc':_0x561d78['detail']['cdnUrl']});}),_0x5c08e3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5c1c66(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2a572e,_0x56797d,_0x3d34c9){super(),this['_editor']=_0x2a572e,this['_dialog']=_0x56797d,this['_imageElement']=_0x3d34c9,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 _0x2ad7e8=this['_imageElement'],_0x3325e6=_0x2ad7e8['getAttribute']('uploadcareImageId'),_0x3c7ac7=_0x2ad7e8['getAttribute']('src');if(_0x3325e6)await this['_loadImageInfo'](_0x3325e6,_0x3c7ac7);else{if(this['_imageCache']['has'](_0x3c7ac7)){const _0x16cd0e=this['_imageCache']['get'](_0x3c7ac7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16cd0e['url'],this['imageDimension']=_0x16cd0e['dimension'],this['imageId']=_0x16cd0e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x11aa31}=this['_editor'],t=_0x11aa31['t'],_0x2b52a1=new X(_0x11aa31,this['imageStatus'],this['_attributes']);_0x2b52a1['bind']('status')['to'](this,'imageStatus'),_0x2b52a1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2b52a1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2b52a1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2b52a1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4f7593,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2b52a1,'position':_0x46e2ab['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2b52a1['focus']();},'onHide':()=>{_0x2b52a1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x243071=>!M(_0x243071,_0x2b52a1['element'])}});}['_loadImageInfo'](_0xe7fd5c,_0x149df7){return j['getInfo'](_0xe7fd5c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x128100=>{const {width:_0x3716ad,height:_0x77c61b}=_0x128100['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x149df7,this['imageDimension']={'width':_0x3716ad,'height':_0x77c61b},this['imageId']=_0xe7fd5c;})['catch'](_0x4fc336=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4fc336['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x506ab7,_0x3d9684){return this['_getImageAsFile'](_0x506ab7)['then'](_0x2a0722=>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':_0x3d9684['signal'],'file':_0x2a0722,'onProgress':_0x2c7dd5=>{_0x2c7dd5&&_0x2c7dd5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2c7dd5['value']));}}))['then'](_0x588c37=>{const {width:_0xb14218,height:_0x37d11d}=_0x588c37['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x588c37['cdnUrl'],this['imageDimension']={'width':_0xb14218,'height':_0x37d11d},this['imageId']=_0x588c37['uuid'],this['imageUploadProgress']=null;const _0x4b43df=_0x506ab7['getAttribute']('src');this['_imageCache']['set'](_0x4b43df,{'id':_0x588c37['uuid'],'url':_0x588c37['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5bd1ff=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5bd1ff['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x536093,_0x5a2efb){_0x536093['on']('apply',(_0x473352,_0x19053c)=>{this['_replaceImage'](_0x5a2efb,_0x19053c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x536093['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x536093['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1f9a99,_0x1792fb,_0x8cd3bc){const _0x313f19=this['_editor'],{width:_0x51cf66,height:_0x4cdfa1}=F(_0x1792fb,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3008ed,imageSources:_0x4b3801}=C(_0x1792fb,_0x51cf66);_0x313f19['model']['change'](_0x2b4fb8=>{if('$graveyard'===_0x1f9a99['root']['rootName']){_0x313f19['execute']('insertImage',{'imageType':_0x1f9a99['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1f9a99['getAttributes']()),'uploadcareImageId':_0x8cd3bc,'src':_0x3008ed,'sources':_0x4b3801,'width':_0x51cf66,'height':_0x4cdfa1}});const _0x23890e=_0x1f9a99['getChildren']();_0x1f9a99=_0x313f19['model']['document']['selection']['getSelectedElement']();for(const _0x4d675f of _0x23890e)_0x2b4fb8['append'](_0x2b4fb8['cloneElement'](_0x4d675f),_0x1f9a99);}else _0x2b4fb8['setSelection'](_0x1f9a99,'on'),_0x313f19['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1f9a99['getAttributes']()),'uploadcareImageId':_0x8cd3bc,'src':_0x3008ed,'sources':_0x4b3801,'width':_0x51cf66,'height':_0x4cdfa1},_0x1f9a99);_0x2b4fb8['setSelection'](_0x1f9a99,'on');});}async['_getImageAsFile'](_0x5805fe){const _0xfb528b=_0x4b85b2['window'],_0x36bfe4=_0x4b85b2['document']['location']['href'],_0x3e85f6=new _0xfb528b['URL'](_0x5805fe['getAttribute']('src'),_0x36bfe4);if('data:'===_0x3e85f6['protocol']){const _0x3bebe4=_0x3e85f6['href']['split'](','),_0x59ef6c=_0x3bebe4[0x0]['match'](/:(.*?);/)[0x1],_0x452415=_0x59ef6c['split']('/')[0x1],_0x1a631e=_0xfb528b['atob'](_0x3bebe4[_0x3bebe4['length']-0x1]);let _0x30e1dd=_0x1a631e['length'];const _0x273958=new _0xfb528b['Uint8Array'](_0x30e1dd);for(;_0x30e1dd--;)_0x273958[_0x30e1dd]=_0x1a631e['charCodeAt'](_0x30e1dd);return new _0xfb528b['File']([_0x273958],'image.'+_0x452415,{'type':_0x59ef6c});}const _0x345304=_0x3e85f6['href']['split']('/'),_0x512eb9=_0x345304[_0x345304['length']-0x1],_0x581101=_0x512eb9['split']('.')[0x1];return _0xfb528b['fetch'](_0x3e85f6['href'])['then'](_0x3bd40f=>_0x3bd40f['clone']()['blob']())['then'](_0x5a634d=>new _0xfb528b['File']([_0x5a634d],_0x512eb9,{'type':'image/'+_0x581101}));}}class N extends _0x40d5c6{['imageEditController'];static get['requires'](){return[_0x1c3d2b];}['_isEditable'];constructor(_0x33c4b3){super(_0x33c4b3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1e5228){const _0x3cf70b=R(_0x1e5228);return _0x47df27=>!(!_0x47df27||!_0x47df27['is']('element','imageBlock')&&!_0x47df27['is']('element','imageInline'))&&(!!_0x47df27['hasAttribute']('uploadcareImageId')||!!_0x47df27['hasAttribute']('src')&&_0x3cf70b(_0x47df27['getAttribute']('src')));}(_0x33c4b3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x29bf1e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x29bf1e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x15fd6c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x15fd6c&&(_0x15fd6c['is']('element','imageBlock')||_0x15fd6c['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1c3d2b),_0x15fd6c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x40d5c6{['refresh'](){const _0x1d7c7d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1d7c7d&&(_0x1d7c7d['is']('element','imageBlock')||_0x1d7c7d['is']('element','imageInline')));}['execute'](_0x343cfc){const _0x339093=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x60b509=>{_0x60b509['setAttributes'](_0x343cfc,_0x339093),_0x60b509['removeAttribute']('srcset',_0x339093),_0x60b509['removeAttribute']('sizes',_0x339093);});}}class m extends _0x525820{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x22f623,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2910ce}=this;_0x2910ce['commands']['add']('uploadcareImageEdit',new N(_0x2910ce)),_0x2910ce['commands']['add']('uploadcareImageReplace',new O(_0x2910ce));}}class g extends _0x525820{['_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 _0x4d322d=this['editor'];_0x4d322d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2caf1d=>{const _0xf7b5e3=_0x4d322d['commands']['get']('uploadcareImageEdit'),_0x366fd5=new _0x51c95e(_0x2caf1d),t=_0x2caf1d['t'];return _0x366fd5['set']({'icon':_0x4f7593,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x366fd5['bind']('isEnabled')['to'](_0xf7b5e3),_0x366fd5['bind']('isOn')['to'](_0xf7b5e3,'isActive'),this['listenTo'](_0x366fd5,'execute',()=>{_0x4d322d['execute']('uploadcareImageEdit'),_0x4d322d['editing']['view']['focus']();}),_0x366fd5;}),this['_initConfig']();}['_initConfig'](){const _0x58b864=_0x211579(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x58b864),this['listenTo'](this['editor'],'destroy',()=>{_0x58b864['remove']();});}}class et extends _0x525820{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,N 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':_0x1205e0=>0x1!=_0x1205e0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x9e5bdc=>{const {af:{dictionary:_0x2612cc,getPluralForm:_0x5e632d}}={'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':_0x3361c8=>0x1!=_0x3361c8}};_0x9e5bdc['af']||={'dictionary':{},'getPluralForm':null},_0x9e5bdc['af']['dictionary']=Object['assign'](_0x9e5bdc['af']['dictionary'],_0x2612cc),_0x9e5bdc['af']['getPluralForm']=_0x5e632d;})(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':_0x10868f=>0x0==_0x10868f?0x0:0x1==_0x10868f?0x1:0x2==_0x10868f?0x2:_0x10868f%0x64>=0x3&&_0x10868f%0x64<=0xa?0x3:_0x10868f%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x57381c=>{const {ar:{dictionary:_0x2d9548,getPluralForm:_0x5018e1}}={'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':_0xb802f=>0x0==_0xb802f?0x0:0x1==_0xb802f?0x1:0x2==_0xb802f?0x2:_0xb802f%0x64>=0x3&&_0xb802f%0x64<=0xa?0x3:_0xb802f%0x64>=0xb?0x4:0x5}};_0x57381c['ar']||={'dictionary':{},'getPluralForm':null},_0x57381c['ar']['dictionary']=Object['assign'](_0x57381c['ar']['dictionary'],_0x2d9548),_0x57381c['ar']['getPluralForm']=_0x5018e1;})(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':_0x1488fb=>0x1!=_0x1488fb}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xd44cc8=>{const {ast:{dictionary:_0x18a825,getPluralForm:_0x8e9976}}={'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':_0x5e92a8=>0x1!=_0x5e92a8}};_0xd44cc8['ast']||={'dictionary':{},'getPluralForm':null},_0xd44cc8['ast']['dictionary']=Object['assign'](_0xd44cc8['ast']['dictionary'],_0x18a825),_0xd44cc8['ast']['getPluralForm']=_0x8e9976;})(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':_0x1a019=>0x1!=_0x1a019}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xadb40a=>{const {az:{dictionary:_0x407855,getPluralForm:_0x56aa83}}={'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':_0x31abbf=>0x1!=_0x31abbf}};_0xadb40a['az']||={'dictionary':{},'getPluralForm':null},_0xadb40a['az']['dictionary']=Object['assign'](_0xadb40a['az']['dictionary'],_0x407855),_0xadb40a['az']['getPluralForm']=_0x56aa83;})(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':_0x1fede5=>_0x1fede5%0xa==0x1&&_0x1fede5%0x64!=0xb?0x0:_0x1fede5%0xa>=0x2&&_0x1fede5%0xa<=0x4&&(_0x1fede5%0x64<0xa||_0x1fede5%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x162e85=>{const {be:{dictionary:_0x10cfdb,getPluralForm:_0x1e3448}}={'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':_0x515b89=>_0x515b89%0xa==0x1&&_0x515b89%0x64!=0xb?0x0:_0x515b89%0xa>=0x2&&_0x515b89%0xa<=0x4&&(_0x515b89%0x64<0xa||_0x515b89%0x64>=0x14)?0x1:0x2}};_0x162e85['be']||={'dictionary':{},'getPluralForm':null},_0x162e85['be']['dictionary']=Object['assign'](_0x162e85['be']['dictionary'],_0x10cfdb),_0x162e85['be']['getPluralForm']=_0x1e3448;})(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':_0x65b40f=>0x1!=_0x65b40f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x442331=>{const {bg:{dictionary:_0x233981,getPluralForm:_0x53f3ed}}={'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':_0x1de18b=>0x1!=_0x1de18b}};_0x442331['bg']||={'dictionary':{},'getPluralForm':null},_0x442331['bg']['dictionary']=Object['assign'](_0x442331['bg']['dictionary'],_0x233981),_0x442331['bg']['getPluralForm']=_0x53f3ed;})(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':_0x4dcc6b=>0x1!=_0x4dcc6b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x31b783=>{const {bn:{dictionary:_0x39f7a6,getPluralForm:_0x307dfd}}={'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':_0x189cf8=>0x1!=_0x189cf8}};_0x31b783['bn']||={'dictionary':{},'getPluralForm':null},_0x31b783['bn']['dictionary']=Object['assign'](_0x31b783['bn']['dictionary'],_0x39f7a6),_0x31b783['bn']['getPluralForm']=_0x307dfd;})(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':_0x39e14e=>_0x39e14e%0xa==0x1&&_0x39e14e%0x64!=0xb?0x0:_0x39e14e%0xa>=0x2&&_0x39e14e%0xa<=0x4&&(_0x39e14e%0x64<0xa||_0x39e14e%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x18bef4=>{const {bs:{dictionary:_0xbd9964,getPluralForm:_0x2a3c3b}}={'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':_0x342e08=>_0x342e08%0xa==0x1&&_0x342e08%0x64!=0xb?0x0:_0x342e08%0xa>=0x2&&_0x342e08%0xa<=0x4&&(_0x342e08%0x64<0xa||_0x342e08%0x64>=0x14)?0x1:0x2}};_0x18bef4['bs']||={'dictionary':{},'getPluralForm':null},_0x18bef4['bs']['dictionary']=Object['assign'](_0x18bef4['bs']['dictionary'],_0xbd9964),_0x18bef4['bs']['getPluralForm']=_0x2a3c3b;})(window['CKEDITOR_TRANSLATIONS']||={});
|