@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.8 → 45.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x4f6993,Command as _0x37bbf6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4c3592,IconGooglePhotos as _0x9b1d9c,IconGoogleDrive as _0x3e1601,IconFacebook as _0x16ed0c,IconDropbox as _0x20639f,IconUploadcareLink as _0x1420fe,IconUploadcareImageUpload as _0x10951f,IconError as et,IconUploadcareImageEdit as _0x45765f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x508ac2,MenuBarMenuListItemButtonView as _0x31a188,View as _0x5989b2,FocusCycler as _0xa692c5,Dialog as _0x10ece7,DialogViewPosition as _0x2bcdf7,SpinnerView as _0x2546aa,IconView as at,Notification as _0x216ef8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2acb0f,DomEmitterMixin as _0x4a19e6,global as _0x4b0700,getAncestors as _0x5e9fad,ObservableMixin as _0x3ec337,createElement as _0x29643c,uid as _0x16e34d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2f81f9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3a4a03,info as _0x2d9e4c}from'@uploadcare/upload-client';import*as _0x7c3878 from'@uploadcare/file-uploader';var o=function(_0x5de9f9){return _0x5de9f9['Local']='local',_0x5de9f9['URL']='url',_0x5de9f9['Dropbox']='dropbox',_0x5de9f9['GDrive']='gdrive',_0x5de9f9['Facebook']='facebook',_0x5de9f9['GPhotos']='gphotos',_0x5de9f9['OneDrive']='onedrive',_0x5de9f9;}({});function _(_0x45c1b5,_0x34867d,_0xb42b2b){const t=_0x45c1b5['t'],_0x60ed18=_0x45c1b5['t'];switch(_0x34867d){case o['Local']:return{'text':_0x60ed18('Insert'===_0xb42b2b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x60ed18('From\x20computer')};case o['URL']:return{'text':'Insert'===_0xb42b2b?_0x60ed18('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x60ed18('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0xb42b2b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0xb42b2b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0xb42b2b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0xb42b2b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0xb42b2b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x34867d;}}class e extends _0x4f6993{['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 _0x530975=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4e651f;for(const _0x2f449d in _0x530975){const _0x5d58c1=_0x2f449d,_0x580fc6=_0x530975[_0x5d58c1];if('uploadcareLicenseKeyValid'==_0x580fc6||'uploadcareLicenseKeyInvalid'==_0x580fc6||'uploadcareLicenseKeyExpired'==_0x580fc6||'uploadcareLicenseKeyDomainLimit'==_0x580fc6||'uploadcareLicenseKeyNotAllowed'==_0x580fc6||'uploadcareLicenseKeyEvaluationLimit'==_0x580fc6||'uploadcareLicenseKeyTrialLimit'==_0x580fc6||'uploadcareLicenseKeyUsageLimit'==_0x580fc6){delete _0x530975[_0x5d58c1],_0x4e651f=_0x580fc6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4e651f&&_0x530975['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4e651f&&_0x530975['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4e651f&&_0x530975['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4e651f&&_0x530975['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4e651f&&_0x530975['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4e651f&&_0x530975['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4e651f&&_0x530975['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x50732f}=this,_0x513f58=_0x50732f['commands']['get']('uploadcare');if(!_0x513f58)return;const _0x2f4f4f=this['_normalizeConfigSourceList'](_0x50732f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1cc8e8,_0x16d6c8)=>{const _0x478d09=this['_getIntegrationKey'](_0x16d6c8['type']);return _0x1cc8e8[_0x478d09]||(_0x1cc8e8[_0x478d09]=[]),_0x1cc8e8[_0x478d09]['push'](_0x16d6c8),_0x1cc8e8;},{});_0x50732f['plugins']['has']('ImageInsertUI')&&_0x50732f['commands']['get']('uploadcare')&&Object['entries'](_0x2f4f4f)['forEach'](([_0x11f8fd,_0x367e52])=>{_0x50732f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x11f8fd,'observable':()=>_0x513f58,'buttonViewCreator':()=>this['_createToolbarButton'](_0x367e52),'formViewCreator':()=>this['_createDropdownButtons'](_0x367e52),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x367e52),'override':'assetManager'!==_0x11f8fd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x365274){const {locale:_0x11822d}=this['editor'];return _0x365274['map'](_0x3e21fd=>{const _0x4a5ea8=_(_0x11822d,_0x3e21fd,'Insert');switch(_0x3e21fd){case o['Local']:return{'icon':_0x10951f,'type':o['Local'],..._0x4a5ea8};case o['URL']:return{'icon':_0x1420fe,'type':o['URL'],..._0x4a5ea8};case o['Dropbox']:return{'icon':_0x20639f,'type':o['Dropbox'],..._0x4a5ea8};case o['Facebook']:return{'icon':_0x16ed0c,'type':o['Facebook'],..._0x4a5ea8};case o['GDrive']:return{'icon':_0x3e1601,'type':o['GDrive'],..._0x4a5ea8};case o['GPhotos']:return{'icon':_0x9b1d9c,'type':o['GPhotos'],..._0x4a5ea8};case o['OneDrive']:return{'icon':_0x4c3592,'type':o['OneDrive'],..._0x4a5ea8};}});}['_getIntegrationKey'](_0x57c02b){switch(_0x57c02b){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x195dc3,_0x21c794){const _0x3a0e6a=this['editor'],_0x1f206d=new _0x195dc3(_0x3a0e6a['locale']),_0x43500a=_0x3a0e6a['commands']['get']('uploadcare');return _0x1f206d['bind']('isEnabled')['to'](_0x43500a),_0x1f206d['on']('execute',()=>{_0x43500a['execute'](_0x21c794);}),_0x1f206d;}['_createToolbarButton'](_0x599d78){const {locale:_0x2ab4ac}=this['editor'],_0x1843d1=this['editor']['plugins']['get']('ImageInsertUI'),_0x55e953=_0x599d78[0x0],_0x5fccb2=this['_createButton'](_0x508ac2,_0x55e953['type']);return _0x5fccb2['icon']=_0x55e953['icon'],_0x5fccb2['bind']('label')['to'](_0x1843d1,'isImageSelected',_0x52672d=>_(_0x2ab4ac,_0x55e953['type'],_0x52672d?'Replace':'Insert')['text']),_0x5fccb2['tooltip']=!0x0,_0x5fccb2;}['_createDropdownButtons'](_0x12bc8a){const {locale:_0x583265}=this['editor'],_0x282a9e=this['editor']['plugins']['get']('ImageInsertUI');return _0x12bc8a['map'](_0x19e01d=>{const _0x4b6ba4=this['_createButton'](_0x508ac2,_0x19e01d['type']);return _0x4b6ba4['withText']=!0x0,_0x4b6ba4['icon']=_0x19e01d['icon'],_0x4b6ba4['bind']('label')['to'](_0x282a9e,'isImageSelected',_0x54e23c=>_(_0x583265,_0x19e01d['type'],_0x54e23c?'Replace':'Insert')['text']),_0x4b6ba4;});}['_createMenuBarButtons'](_0x12166d){return _0x12166d['map'](_0x5b0958=>{const _0x4fec69=this['_createButton'](_0x31a188,_0x5b0958['type']);return _0x4fec69['icon']=_0x5b0958['icon'],_0x4fec69['label']=_0x5b0958['shortText'],_0x4fec69;});}}class q extends _0x5989b2{['focusTracker'];['focusCycler'];constructor(_0x1f33c9){super(_0x1f33c9),this['focusTracker']=new _0x2acb0f(),this['focusCycler']=new _0xa692c5({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x5e479f){super(_0x5e479f),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x44ed19,_0x11ce55){const _0x336803=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x35ea04=>_0x35ea04<=_0x11ce55)['map'](_0x5a7ec6=>_0x44ed19['replace'](/\/$/,'')+'/-/resize/'+_0x5a7ec6+'x/\x20'+_0x5a7ec6+'w');return{'imageFallbackUrl':_0x44ed19,'imageSources':[{'srcset':_0x336803['join'](',\x20'),'sizes':'(max-width:\x20'+_0x11ce55+'px)\x20100vw,\x20'+_0x11ce55+'px','type':'image/webp'}]};}function A(_0x566f06,_0x28c874,_0x36c5bf){const _0x2e0b39=_0x566f06['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2e0b39?parseInt(_0x2e0b39[0x1],0xa):_0x28c874,'height':_0x2e0b39?parseInt(_0x2e0b39[0x2],0xa):_0x36c5bf};}function m(_0x240c16,_0x23d314){const _0x8a0171=Object['create'](_0x4a19e6),_0x35529c=_0x240c16['plugins']['get']('ImageUtils'),_0x4644a7=_0x240c16['editing']['mapper']['toViewElement'](_0x23d314),_0xba3ee9=_0x35529c['findViewImgElement'](_0x4644a7),_0x22d3e1=_0x240c16['editing']['view']['domConverter']['viewToDom'](_0xba3ee9),_0x1a30bd=_0x23d314['getAttribute']('width'),_0x5c7dc5=_0x23d314['getAttribute']('height'),_0x444c5e='image-processing';_0x240c16['editing']['view']['change'](_0xdd4f18=>{_0xdd4f18['addClass'](_0x444c5e,_0x4644a7),_0xdd4f18['setStyle']('aspect-ratio',_0x1a30bd+'/'+_0x5c7dc5,_0xba3ee9);}),_0x8a0171['listenTo'](_0x22d3e1,'load',()=>{_0x8a0171['stopListening'](_0x22d3e1,'load'),_0x240c16['editing']['view']['change'](_0xdce53f=>{_0xdce53f['removeClass'](_0x444c5e,_0x4644a7),_0xdce53f['removeStyle']('aspect-ratio',_0xba3ee9);});});}function V(_0x12ec78){if(Array['isArray'](_0x12ec78)){const _0x23feb9=_0x12ec78['map'](V);return _0x5e3121=>_0x23feb9['some'](_0x1d2bb4=>_0x1d2bb4(_0x5e3121));}if('origin'==_0x12ec78){const _0x41c9f9=_0x4b0700['window']['location']['origin'];return _0x5d1ec3=>new URL(_0x5d1ec3,_0x4b0700['document']['baseURI'])['origin']==_0x41c9f9;}return'function'==typeof _0x12ec78?_0x12ec78:_0x12ec78 instanceof RegExp?_0xa40cf=>!(!_0xa40cf['match'](_0x12ec78)&&!_0xa40cf['replace'](/^https?:\/\//,'')['match'](_0x12ec78)):()=>!0x1;}function F(_0x2cc6cd,_0x1d09e9){return _0x5e9fad(_0x2cc6cd['target'])['includes'](_0x1d09e9);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3ec337(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2daeaa,_0x809970,_0x194999){super(),this['_editor']=_0x2daeaa,this['_editing']=_0x809970,this['_dialog']=_0x2daeaa['plugins']['get'](_0x10ece7),this['_api']=_0x809970['ctxElement']['getAPI'](),this['_type']=_0x194999,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:_0x21fdb5,model:_0x55e3d0}=this['_editor'],_0x88ffe7=_0x55e3d0['document']['selection']['getSelectedElement'](),_0x375c34=_0x88ffe7&&(_0x88ffe7['is']('element','imageBlock')||_0x88ffe7['is']('element','imageInline'));this['_formView']=new S(_0x21fdb5),this['_dialog']['show']({'id':'uploadCare','icon':_0x10951f,'title':_(_0x21fdb5,this['_type'],_0x375c34?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2bcdf7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x31fd06=>!F(_0x31fd06,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1885c1}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x423729=>{const _0xb24a8b=_0x1885c1['length'];for(const _0x15d63a of _0x1885c1){const _0x27e313=_0x15d63a===_0x1885c1[_0xb24a8b-0x1],{cdnUrl:_0x38bab5,fileInfo:_0x367555}=_0x15d63a;if(!_0x38bab5||!_0x367555)continue;const {width:_0x5afe09,height:_0x5ba4af}=_0x367555['imageInfo'],_0x23b145=A(_0x38bab5,_0x5afe09,_0x5ba4af),_0x2dbfaf=E(_0x38bab5,_0x23b145['width']),_0x11ef02={'id':_0x367555['uuid'],'type':'image','attributes':{'imageDimension':_0x23b145,..._0x2dbfaf}};this['_insertAsset'](_0x11ef02,_0x27e313,_0x423729);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xa78bdd=>{'idle'===_0xa78bdd['detail']['status']&&!_0xa78bdd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x47fb79,_0x3171cc,_0x3b46f2){const _0x5a275a=this['_editor']['model']['document']['selection'],_0x440148=_0x5a275a['getSelectedElement'](),_0x55ed55=!(!_0x440148||!_0x440148['is']('element','imageInline'));_0x3b46f2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x47fb79,_0x55ed55),_0x3171cc||_0x3b46f2['setSelection'](_0x5a275a['getLastPosition']());}['_insertImage'](_0x31e7d8,_0x403e29){const _0x24ffe5=this['_editor'],{imageDimension:_0x502f38,imageFallbackUrl:_0x552e88,imageSources:_0x4d3295}=_0x31e7d8['attributes'];_0x24ffe5['execute']('insertImage',{'imageType':_0x403e29?'imageInline':null,'source':{'uploadcareImageId':_0x31e7d8['id'],'src':_0x552e88,'sources':_0x4d3295,..._0x502f38}});}}class n extends _0x37bbf6{['_editing'];['_controller']=null;static get['requires'](){return[_0x10ece7,i];}constructor(_0x59f7c3){super(_0x59f7c3),this['_editing']=_0x59f7c3['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x406a54){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x406a54);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x4516b2,publicKey:_0x20d59c,signal:_0x445238,onProgress:_0x2b6500}){return _0x3a4a03(_0x4516b2,{'publicKey':_0x20d59c,'store':'auto','signal':_0x445238,'onProgress':_0x2b6500});}static['getInfo'](_0x4d3cfe,_0x4e7979){return _0x2d9e4c(_0x4d3cfe,_0x4e7979);}}class p extends _0x4f6993{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2f81f9,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x54b97d=this['editor'];if(!!!_0x54b97d['config']['get']('uploadcare'))return;_0x54b97d['plugins']['get'](_0x2f81f9)['createUploadAdapter']=_0x10a020=>new x(_0x10a020,_0x54b97d),_0x54b97d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xa3609f,{imageElement:_0x30b4a3,data:_0x20a8de})=>{_0x54b97d['model']['change'](_0x2e47ad=>{_0x2e47ad['setAttribute']('uploadcareImageId',_0x20a8de['uploadcareImageId'],_0x30b4a3);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x1e8f0c,_0x284a10){this['loader']=_0x1e8f0c,this['editor']=_0x284a10,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3b1688=this['editor']['config']['get']('uploadcare.pubkey'),_0x447af1=await this['loader']['file'];return C['upload']({'file':_0x447af1,'publicKey':_0x3b1688,'signal':this['controller']['signal'],'onProgress':_0x226fa7=>{_0x226fa7&&_0x226fa7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x226fa7['value']);}})['then'](async _0x373d4f=>{const {imageFallbackUrl:_0x4ca86f,imageSources:_0x2d1d68}=E(_0x373d4f['cdnUrl'],_0x373d4f['imageInfo']['width']);return{'uploadcareImageId':_0x373d4f['uuid'],'default':_0x4ca86f,'sources':_0x2d1d68};})['catch'](()=>{const _0x21b68c=t('Cannot\x20upload\x20file:')+('\x20'+_0x447af1['name']+'.');return Promise['reject'](_0x21b68c);});}['abort'](){this['controller']['abort']();}}class i extends _0x4f6993{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x10ece7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x301926=this['editor'];_0x301926['commands']['add']('uploadcare',new n(_0x301926));}['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 _0x395118=_0x4b0700['document']['querySelector']('input[uploadcare-file-input]');_0x395118&&_0x395118['remove']();}),async function(_0x58fb6c){const _0x571283=_0x2e5f4f([0x73,0x79,0x31,0x75,0x74,0x76,0x30,0x6f,0x47,0x54,0x34,0x4e,0x51,0x4d,0x7a,0x37,0x69,0x67,0x70,0x53,0x42,0x6c,0x6a,0x50,0x77,0x43,0x6b,0x46,0x72,0x6e,0x5a,0x66,0x71,0x45,0x48,0x4b,0x56,0x62,0x44,0x41,0x4c,0x32,0x61,0x78,0x33,0x57,0x58,0x65,0x68,0x6d,0x4a,0x4f,0x38,0x55,0x35,0x36,0x49,0x63,0x59,0x39,0x52,0x64]),_0x4e7dac=0x4925373c,_0x2daa34=0x49225c44^_0x4e7dac,_0x4f5161=window[_0x2e5f4f([0x44,0x61,0x74,0x65])][_0x2e5f4f([0x6e,0x6f,0x77])](),_0x143905=_0x58fb6c[_0x2e5f4f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39f534=new window[(_0x2e5f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4789d5=>{_0x143905[_0x2e5f4f([0x6f,0x6e,0x63,0x65])](_0x2e5f4f([0x72,0x65,0x61,0x64,0x79]),_0x4789d5);}),_0x36c5af={[_0x2e5f4f([0x6b,0x74,0x79])]:_0x2e5f4f([0x45,0x43]),[_0x2e5f4f([0x75,0x73,0x65])]:_0x2e5f4f([0x73,0x69,0x67]),[_0x2e5f4f([0x63,0x72,0x76])]:_0x2e5f4f([0x50,0x2d,0x32,0x35,0x36]),[_0x2e5f4f([0x78])]:_0x2e5f4f([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]),[_0x2e5f4f([0x79])]:_0x2e5f4f([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]),[_0x2e5f4f([0x61,0x6c,0x67])]:_0x2e5f4f([0x45,0x53,0x32,0x35,0x36])},_0x5e95a8=_0x143905[_0x2e5f4f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e5f4f([0x67,0x65,0x74])](_0x2e5f4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x84eace(){let _0x27e1fc,_0x39d914=null,_0x650ff6=null;try{if(_0x5e95a8==_0x2e5f4f([0x47,0x50,0x4c]))return _0x2e5f4f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27e1fc=_0x353486(),!_0x27e1fc)return _0x2e5f4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27e1fc[_0x2e5f4f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x650ff6=_0x4c0467(_0x27e1fc[_0x2e5f4f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27e1fc[_0x2e5f4f([0x6a,0x74,0x69])])),await _0x387b25()?_0x307ec()?_0x2d6f0c()?_0x2e5f4f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2f5fa9()?(_0x27e1fc[_0x2e5f4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e5f4f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39d914=_0x1bc043(_0x2e5f4f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27e1fc[_0x2e5f4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e5f4f([0x74,0x72,0x69,0x61,0x6c])&&(_0x39d914=_0x1bc043(_0x2e5f4f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d89fa()):_0x2e5f4f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e5f4f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e5f4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2e5f4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d6f0c(){const _0x5e058e=[_0x2e5f4f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e5f4f([0x74,0x72,0x69,0x61,0x6c])][_0x2e5f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27e1fc[_0x2e5f4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4f5161/0x3e8:0xe10*_0x2daa34;return _0x27e1fc[_0x2e5f4f([0x65,0x78,0x70])]<_0x5e058e;}function _0x307ec(){const _0x4f8888=_0x27e1fc[_0x2e5f4f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4f8888&&(!!_0x4f8888[_0x2e5f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e5f4f([0x2a]))||!!_0x4f8888[_0x2e5f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e5f4f([0x55,0x50,0x4c,0x43])));}function _0x2f5fa9(){const _0x1c3a7f=_0x27e1fc[_0x2e5f4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c3a7f||0x0==_0x1c3a7f[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xda8462}=new URL(window[_0x2e5f4f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c3a7f[_0x2e5f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xda8462))return!0x0;const _0x4c0dee=_0xda8462[_0x2e5f4f([0x73,0x70,0x6c,0x69,0x74])](_0x2e5f4f([0x2e]));return _0x1c3a7f[_0x2e5f4f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bb144=>_0x3bb144[_0x2e5f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e5f4f([0x2a])))[_0x2e5f4f([0x6d,0x61,0x70])](_0x63af3a=>_0x63af3a[_0x2e5f4f([0x73,0x70,0x6c,0x69,0x74])](_0x2e5f4f([0x2e])))[_0x2e5f4f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x112b6d=>_0x112b6d[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c0dee[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e5f4f([0x6d,0x61,0x70])](_0x2725ee=>Array(_0x4c0dee[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2725ee[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e5f4f([0x66,0x69,0x6c,0x6c])](_0x2725ee[0x0]===_0x2e5f4f([0x2a])?_0x2e5f4f([0x2a]):'')[_0x2e5f4f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2725ee))[_0x2e5f4f([0x73,0x6f,0x6d,0x65])](_0x3cdfe2=>_0x4c0dee[_0x2e5f4f([0x65,0x76,0x65,0x72,0x79])]((_0x182bad,_0x47a1e9)=>_0x3cdfe2[_0x47a1e9]===_0x182bad||_0x3cdfe2[_0x47a1e9]===_0x2e5f4f([0x2a])));}function _0x2d89fa(){return _0x39d914&&_0x650ff6?new window[(_0x2e5f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x292af1,_0x457154)=>{_0x39d914[_0x2e5f4f([0x74,0x68,0x65,0x6e])](_0x292af1,_0x457154),_0x650ff6[_0x2e5f4f([0x74,0x68,0x65,0x6e])](_0x26053d=>{_0x26053d!=_0x2e5f4f([0x56,0x61,0x6c,0x69,0x64])&&_0x292af1(_0x26053d);},_0x457154);}):_0x39d914||_0x650ff6||_0x2e5f4f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c0467(_0x36e670,_0x5888e8){return new window[(_0x2e5f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3531f0=>{if(_0x705828())return _0x3531f0(_0x2e5f4f([0x56,0x61,0x6c,0x69,0x64]));_0x2fb50a(),_0x143905[_0x2e5f4f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e5f4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1aadae=!0x1;const _0x52154f=_0x16e34d();function _0x2dc620(_0x3c16e5){return!!_0x3c16e5&&(typeof _0x3c16e5===_0x2e5f4f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c16e5===_0x2e5f4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c16e5[_0x2e5f4f([0x74,0x68,0x65,0x6e])]===_0x2e5f4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c16e5[_0x2e5f4f([0x63,0x61,0x74,0x63,0x68])]===_0x2e5f4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2215f2(_0x39481b){_0x55ff2a(_0x39481b)[_0x2e5f4f([0x74,0x68,0x65,0x6e])](_0xb9422a=>{if(!_0xb9422a||_0xb9422a[_0x2e5f4f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e5f4f([0x6f,0x6b]))return _0x2e5f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x32d8c8(_0x2341db(_0x52154f+_0x5888e8))!=_0xb9422a[_0x2e5f4f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e5f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e5f4f([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e5f4f([0x74,0x68,0x65,0x6e])](_0x4c73e4=>(_0x1c665d(),_0x4c73e4),()=>{const _0x36d0b5=_0x5c5e24();return null==_0x36d0b5?(_0x1c665d(),_0x2e5f4f([0x56,0x61,0x6c,0x69,0x64])):_0x2e5f4f(_0x4f5161-_0x36d0b5>(0x6d29b33c^_0x4e7dac)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e5f4f([0x74,0x68,0x65,0x6e])](_0x3531f0)[_0x2e5f4f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3531f0(_0x2e5f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3bb032=0x4913d9bc^_0x4e7dac;function _0x1c665d(){const _0x3d982e=_0x2e5f4f([0x6c,0x6c,0x63,0x74,0x2d])+_0x32d8c8(_0x2341db(_0x36e670)),_0x4fe29a=_0x1a8db0(_0x32d8c8(window[_0x2e5f4f([0x4d,0x61,0x74,0x68])][_0x2e5f4f([0x63,0x65,0x69,0x6c])](_0x4f5161/_0x3bb032)));window[_0x2e5f4f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e5f4f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d982e,_0x4fe29a);}function _0x5c5e24(){const _0x1257f1=_0x2e5f4f([0x6c,0x6c,0x63,0x74,0x2d])+_0x32d8c8(_0x2341db(_0x36e670)),_0x147091=window[_0x2e5f4f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e5f4f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1257f1);return _0x147091?window[_0x2e5f4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a8db0(_0x147091),0x10)*_0x3bb032:null;}function _0x55ff2a(_0x20e508){return new window[(_0x2e5f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd49fbf,_0x5b4ed9)=>{_0x20e508[_0x2e5f4f([0x74,0x68,0x65,0x6e])](_0xd49fbf,_0x5b4ed9),window[_0x2e5f4f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b4ed9,0x4924e3fc^_0x4e7dac);});}}_0x143905[_0x2e5f4f([0x6f,0x6e])](_0x2e5f4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x127a7b,_0x4e8bbe)=>{if(_0x4e8bbe[0x0]!=_0x36e670)return _0x3531f0(_0x2e5f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e8bbe[0x1]={..._0x4e8bbe[0x1],[_0x2e5f4f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x52154f};},{[_0x2e5f4f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e5f4f([0x68,0x69,0x67,0x68])}),_0x143905[_0x2e5f4f([0x6f,0x6e])](_0x2e5f4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x411d2b=>{_0x2dc620(_0x411d2b[_0x2e5f4f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1aadae=!0x0,_0x2215f2(_0x411d2b[_0x2e5f4f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e5f4f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e5f4f([0x6c,0x6f,0x77])}),_0x39f534[_0x2e5f4f([0x74,0x68,0x65,0x6e])](()=>{_0x1aadae||_0x3531f0(_0x2e5f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x705828(){return _0x143905[_0x2e5f4f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e5f4f([0x76,0x69,0x65,0x77])][_0x2e5f4f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e5f4f([0x61,0x75,0x74,0x6f]);}function _0x2fb50a(){_0x143905[_0x2e5f4f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e5f4f([0x76,0x69,0x65,0x77])][_0x2e5f4f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e5f4f([0x61,0x75,0x74,0x6f]);}}function _0x1bc043(_0x19d406){const _0x489765=[new window[(_0x2e5f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ce850=>setTimeout(_0x1ce850,0x492c09f0^_0x4e7dac)),_0x39f534[_0x2e5f4f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e5f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5968db=>{let _0x3cfa12=0x0;_0x143905[_0x2e5f4f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e5f4f([0x6f,0x6e])](_0x2e5f4f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4795ea,_0xc175f0)=>{_0xc175f0[0x0][_0x2e5f4f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3cfa12++,_0x3cfa12==(0x492536c4^_0x4e7dac)&&(_0x5968db(),_0x4795ea[_0x2e5f4f([0x6f,0x66,0x66])]());});}))];return window[_0x2e5f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e5f4f([0x72,0x61,0x63,0x65])](_0x489765)[_0x2e5f4f([0x74,0x68,0x65,0x6e])](()=>_0x19d406);}async function _0x42f6dc(){await _0x39f534,_0x143905[_0x2e5f4f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e5f4f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48a63f,_0x143905[_0x2e5f4f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e5f4f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48a63f,_0x143905[_0x2e5f4f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e5f4f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f41d9(_0x2d5477){const _0x4b640f=_0x1daf3f();_0x143905[_0x4b640f]=_0x2e5f4f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d5477,_0x2d5477!=_0x2e5f4f([0x56,0x61,0x6c,0x69,0x64])&&_0x42f6dc();}function _0x1daf3f(){const _0x2c3466=window[_0x2e5f4f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e5f4f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e5f4f([0x6e,0x6f,0x77])]())[_0x2e5f4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e5f4f([0x2e]),'');let _0x22b558=_0x2e5f4f([0x73]);for(let _0x50d943=0x0;_0x50d943<_0x2c3466[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50d943+=0x2){let _0x360946=window[_0x2e5f4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c3466[_0x2e5f4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50d943,_0x50d943+0x2));_0x360946>=_0x571283[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x360946-=_0x571283[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22b558+=_0x571283[_0x360946];}return _0x22b558;}function _0x353486(){const _0x378e28=_0x5e95a8[_0x2e5f4f([0x73,0x70,0x6c,0x69,0x74])](_0x2e5f4f([0x2e]));if(0x3!=_0x378e28[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x487cb3(_0x378e28[0x1]);function _0x487cb3(_0x21898d){const _0x4843fd=_0x485ec5(_0x21898d);return _0x4843fd&&_0x5a58ba()?_0x4843fd:null;function _0x5a58ba(){const _0x493205=_0x4843fd[_0x2e5f4f([0x6a,0x74,0x69])],_0x4bbba6=window[_0x2e5f4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x493205[_0x2e5f4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x493205[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ce6d7={..._0x4843fd,[_0x2e5f4f([0x6a,0x74,0x69])]:_0x493205[_0x2e5f4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x493205[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ce6d7[_0x2e5f4f([0x76,0x63])],_0x2341db(_0x5ce6d7)==_0x4bbba6;}}}async function _0x387b25(){let _0xf8f36d=!0x0;try{const _0x9cf1cf=_0x5e95a8[_0x2e5f4f([0x73,0x70,0x6c,0x69,0x74])](_0x2e5f4f([0x2e])),[_0x1cf14f,_0x49bd23,_0x297acf]=_0x9cf1cf;return _0x1ec12a(_0x1cf14f),await _0x3bfa64(_0x1cf14f,_0x49bd23,_0x297acf),_0xf8f36d;}catch{return!0x1;}function _0x1ec12a(_0x5233fe){const _0xb25852=_0x485ec5(_0x5233fe);_0xb25852&&_0xb25852[_0x2e5f4f([0x61,0x6c,0x67])]==_0x2e5f4f([0x45,0x53,0x32,0x35,0x36])||(_0xf8f36d=!0x1);}async function _0x3bfa64(_0x2033b6,_0x2484d4,_0x9305d1){const _0x3f8f18=window[_0x2e5f4f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e5f4f([0x66,0x72,0x6f,0x6d])](_0x23fb3c(_0x9305d1),_0x56dcf5=>_0x56dcf5[_0x2e5f4f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x407065=new window[(_0x2e5f4f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e5f4f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2033b6+_0x2e5f4f([0x2e])+_0x2484d4),_0x35a5f4=window[_0x2e5f4f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e5f4f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35a5f4)return;const _0x5d6fc1=await _0x35a5f4[_0x2e5f4f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e5f4f([0x6a,0x77,0x6b]),_0x36c5af,{[_0x2e5f4f([0x6e,0x61,0x6d,0x65])]:_0x2e5f4f([0x45,0x43,0x44,0x53,0x41]),[_0x2e5f4f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e5f4f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e5f4f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35a5f4[_0x2e5f4f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e5f4f([0x6e,0x61,0x6d,0x65])]:_0x2e5f4f([0x45,0x43,0x44,0x53,0x41]),[_0x2e5f4f([0x68,0x61,0x73,0x68])]:{[_0x2e5f4f([0x6e,0x61,0x6d,0x65])]:_0x2e5f4f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d6fc1,_0x3f8f18,_0x407065)||(_0xf8f36d=!0x1);}}function _0x485ec5(_0x5b639f){return _0x5b639f[_0x2e5f4f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e5f4f([0x65,0x79]))?JSON[_0x2e5f4f([0x70,0x61,0x72,0x73,0x65])](_0x23fb3c(_0x5b639f)):null;}function _0x23fb3c(_0x291d8c){return window[_0x2e5f4f([0x61,0x74,0x6f,0x62])](_0x291d8c[_0x2e5f4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e5f4f([0x2b]))[_0x2e5f4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e5f4f([0x2f])));}function _0x2341db(_0x17af85){let _0x29cdc2=0x1505;function _0x50b625(_0x52e505){for(let _0x1a067a=0x0;_0x1a067a<_0x52e505[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a067a++){const _0x1e3797=_0x52e505[_0x2e5f4f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a067a);_0x29cdc2=(_0x29cdc2<<0x5)+_0x29cdc2+_0x1e3797,_0x29cdc2&=_0x29cdc2;}}function _0x2eef75(_0x4a722c){Array[_0x2e5f4f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a722c)?_0x4a722c[_0x2e5f4f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2eef75):_0x4a722c&&typeof _0x4a722c==_0x2e5f4f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e5f4f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a722c)[_0x2e5f4f([0x73,0x6f,0x72,0x74])]()[_0x2e5f4f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x480a5b,_0xa277eb])=>{_0x50b625(_0x480a5b),_0x2eef75(_0xa277eb);}):_0x50b625(window[_0x2e5f4f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a722c));}return _0x2eef75(_0x17af85),_0x29cdc2>>>0x0;}function _0x32d8c8(_0x526dc9){return _0x526dc9[_0x2e5f4f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e5f4f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e5f4f([0x30]));}function _0x1a8db0(_0x35fc2b){return _0x35fc2b[_0x2e5f4f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e5f4f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e5f4f([0x6a,0x6f,0x69,0x6e])]('');}function _0x48a63f(){}function _0x2e5f4f(_0x2f5c61){return _0x2f5c61['map'](_0x47d31f=>String['fromCharCode'](_0x47d31f))['join']('');}_0x4f41d9(await _0x84eace());}(this);}['_initSchema'](){const _0x4392eb=this['editor']['model']['schema'];_0x4392eb['isRegistered']('imageBlock')&&_0x4392eb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4392eb['isRegistered']('imageInline')&&_0x4392eb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2ff7b2=this['editor'];_0x2ff7b2['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2ff7b2['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x21325b=>_0x21325b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xb80186=_0x2ff7b2['commands']['get']('replaceImageSource');_0xb80186&&this['listenTo'](_0xb80186,'cleanupImage',(_0x486b47,[_0x493a89,_0x579e58])=>{_0x493a89['removeAttribute']('uploadcareImageId',_0x579e58);});}['_initConfig'](){const _0x3bf6ec=this['editor']['config']['get']('uploadcare.uploader')||{},_0x34fbb8=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x29643c(_0x4b0700['document'],'uc-config',{..._0x3bf6ec,'pubkey':_0x34fbb8,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x1fd7d8=>{if('closeMax'==_0x1fd7d8)return'#uc-icon-arrow-down';},_0x4b0700['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x29643c(_0x4b0700['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4b0700['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3b9827=this['editor']['commands']['get']('insertImage');_0x3b9827&&this['listenTo'](_0x3b9827,'execute',()=>{const _0x273d50=this['editor']['model']['document']['selection']['getSelectedElement']();_0x273d50&&_0x273d50['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x273d50);});});const _0x4588ae=this['editor']['commands']['get']('uploadcareImageReplace');_0x4588ae&&this['listenTo'](_0x4588ae,'execute',()=>{const _0x240eaf=this['editor']['model']['document']['selection']['getSelectedElement']();_0x240eaf&&_0x240eaf['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x240eaf);});});}}class u extends _0x4f6993{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x488d6d){super(_0x488d6d),_0x488d6d['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x7c3878['defineComponents'](_0x7c3878);}}class ta extends _0x5989b2{constructor(_0x5be0c2){super(_0x5be0c2);const t=_0x5be0c2['t'],_0x59f844=this['bindTemplate'],_0xd9c165=new _0x2546aa();_0xd9c165['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':[_0xd9c165,{'text':_0x59f844['to']('imageUploadProgress',_0x4b2997=>t('Loading\x20image...')+'\x20('+(_0x4b2997||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x5989b2{constructor(_0x33342b){super(_0x33342b);const t=_0x33342b['t'];this['set']('errorType',null);const _0x46997b=new _0x508ac2(_0x33342b);_0x46997b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x46997b['withText']=!0x0,_0x46997b['class']='ck-button-action',_0x46997b['on']('execute',()=>{this['fire']('retry');}),_0x46997b['bind']('isVisible')['to'](this,'errorType',_0x1878ae=>'NotFound'!==_0x1878ae);const _0x2a98f4=new at();_0x2a98f4['content']=et,_0x2a98f4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x56d061=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':[_0x2a98f4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x56d061['to']('errorType',_0x22fd04=>t('NotFound'!==_0x22fd04?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x46997b]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x5989b2{constructor(_0x36f9d2,_0x440481){super(_0x36f9d2);const _0x316832=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x440481,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x316832['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x40896c,_0x5108e4,_0x394e65){super(_0x40896c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x40896c),this['_errorView']=new rt(_0x40896c),this['_editingView']=new tt(_0x40896c,_0x394e65),this['_focusableView']=new _0x5989b2(_0x40896c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5108e4),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'],_0x64fd83=>{this['_addUploadcareImageEditorListeners'](_0x64fd83);});}),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'](_0x1938b1,_0x53b93d){const _0xdfb224='uc-cloud-image-editor',_0x2c0df1=_0x1938b1['querySelector'](_0xdfb224);if(_0x2c0df1)return _0x53b93d(_0x2c0df1);const _0x535de5=new MutationObserver(_0x2be550=>{const _0x39ac8b=_0x2be550['filter'](_0x3f2a2d=>_0x3f2a2d['target']===_0x1938b1&&_0x3f2a2d['addedNodes']['length']>0x0&&_0x3f2a2d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xdfb224);_0x39ac8b['length']&&(_0x535de5['disconnect'](),_0x53b93d(_0x39ac8b[0x0]['addedNodes'][0x0]));});_0x535de5['observe'](_0x1938b1,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2cea4c){_0x2cea4c['addEventListener']('apply',_0x389382=>{this['fire']('apply',{'imageSrc':_0x389382['detail']['cdnUrl']});}),_0x2cea4c['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3ec337(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x485188,_0x13bc9c,_0x38e35e){super(),this['_editor']=_0x485188,this['_dialog']=_0x13bc9c,this['_imageElement']=_0x38e35e,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 _0x485e6f=this['_imageElement'],_0x1f3ad8=_0x485e6f['getAttribute']('uploadcareImageId'),_0xc6ed30=_0x485e6f['getAttribute']('src');if(_0x1f3ad8)await this['_loadImageInfo'](_0x1f3ad8,_0xc6ed30);else{if(this['_imageCache']['has'](_0xc6ed30)){const _0x4f3673=this['_imageCache']['get'](_0xc6ed30);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f3673['url'],this['imageDimension']=_0x4f3673['dimension'],this['imageId']=_0x4f3673['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4cd50e}=this['_editor'],t=_0x4cd50e['t'],_0x4a944f=new Z(_0x4cd50e,this['imageStatus'],this['_attributes']);_0x4a944f['bind']('status')['to'](this,'imageStatus'),_0x4a944f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4a944f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4a944f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4a944f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x45765f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4a944f,'position':_0x2bcdf7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4a944f['focus']();},'onHide':()=>{_0x4a944f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x232da1=>!F(_0x232da1,_0x4a944f['element'])}});}['_loadImageInfo'](_0x4752fa,_0x659ca6){return C['getInfo'](_0x4752fa,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x11c7bf=>{const {width:_0x48df72,height:_0xf864a5}=_0x11c7bf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x659ca6,this['imageDimension']={'width':_0x48df72,'height':_0xf864a5},this['imageId']=_0x4752fa;})['catch'](_0x21e9ae=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x21e9ae['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x570122,_0x26821f){return this['_getImageAsFile'](_0x570122)['then'](_0x56829a=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x26821f['signal'],'file':_0x56829a,'onProgress':_0x3c6736=>{_0x3c6736&&_0x3c6736['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3c6736['value']));}}))['then'](_0xe94883=>{const {width:_0x1a7b42,height:_0x378dae}=_0xe94883['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe94883['cdnUrl'],this['imageDimension']={'width':_0x1a7b42,'height':_0x378dae},this['imageId']=_0xe94883['uuid'],this['imageUploadProgress']=null;const _0x5934a1=_0x570122['getAttribute']('src');this['_imageCache']['set'](_0x5934a1,{'id':_0xe94883['uuid'],'url':_0xe94883['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x449ece=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x449ece['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xe52ed2,_0x48b5e0){_0xe52ed2['on']('apply',(_0x1d6854,_0x27fc42)=>{this['_replaceImage'](_0x48b5e0,_0x27fc42['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xe52ed2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xe52ed2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x10f22e,_0x436bb0,_0xc73e1a){const _0x4203ca=this['_editor'],{width:_0x18ec4f,height:_0x3900a7}=A(_0x436bb0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5a56ff,imageSources:_0x3948b9}=E(_0x436bb0,_0x18ec4f);_0x4203ca['model']['change'](_0x481395=>{if('$graveyard'===_0x10f22e['root']['rootName']){_0x4203ca['execute']('insertImage',{'imageType':_0x10f22e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x10f22e['getAttributes']()),'uploadcareImageId':_0xc73e1a,'src':_0x5a56ff,'sources':_0x3948b9,'width':_0x18ec4f,'height':_0x3900a7}});const _0x426a62=_0x10f22e['getChildren']();_0x10f22e=_0x4203ca['model']['document']['selection']['getSelectedElement']();for(const _0x4d64b2 of _0x426a62)_0x481395['append'](_0x481395['cloneElement'](_0x4d64b2),_0x10f22e);}else _0x481395['setSelection'](_0x10f22e,'on'),_0x4203ca['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x10f22e['getAttributes']()),'uploadcareImageId':_0xc73e1a,'src':_0x5a56ff,'sources':_0x3948b9,'width':_0x18ec4f,'height':_0x3900a7},_0x10f22e);_0x481395['setSelection'](_0x10f22e,'on');});}async['_getImageAsFile'](_0x1b635c){const _0x1c6ced=_0x4b0700['window'],_0x3295a9=_0x4b0700['document']['location']['href'],_0x45de61=new _0x1c6ced['URL'](_0x1b635c['getAttribute']('src'),_0x3295a9);if('data:'===_0x45de61['protocol']){const _0x1f881b=_0x45de61['href']['split'](','),_0x4e62bc=_0x1f881b[0x0]['match'](/:(.*?);/)[0x1],_0x361e3f=_0x4e62bc['split']('/')[0x1],_0x129f1b=_0x1c6ced['atob'](_0x1f881b[_0x1f881b['length']-0x1]);let _0x7eeb1c=_0x129f1b['length'];const _0x181f4=new _0x1c6ced['Uint8Array'](_0x7eeb1c);for(;_0x7eeb1c--;)_0x181f4[_0x7eeb1c]=_0x129f1b['charCodeAt'](_0x7eeb1c);return new _0x1c6ced['File']([_0x181f4],'image.'+_0x361e3f,{'type':_0x4e62bc});}const _0x7c7b04=_0x45de61['href']['split']('/'),_0x1dbcde=_0x7c7b04[_0x7c7b04['length']-0x1],_0x49cbdb=_0x1dbcde['split']('.')[0x1];return _0x1c6ced['fetch'](_0x45de61['href'])['then'](_0x1753b3=>_0x1753b3['clone']()['blob']())['then'](_0x422893=>new _0x1c6ced['File']([_0x422893],_0x1dbcde,{'type':'image/'+_0x49cbdb}));}}class J extends _0x37bbf6{['imageEditController'];static get['requires'](){return[_0x10ece7];}['_isEditable'];constructor(_0x766ea8){super(_0x766ea8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1ebc3c){const _0x31b89f=V(_0x1ebc3c);return _0x3b5ff1=>!(!_0x3b5ff1||!_0x3b5ff1['is']('element','imageBlock')&&!_0x3b5ff1['is']('element','imageInline'))&&(!!_0x3b5ff1['hasAttribute']('uploadcareImageId')||!!_0x3b5ff1['hasAttribute']('src')&&_0x31b89f(_0x3b5ff1['getAttribute']('src')));}(_0x766ea8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3add08=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3add08);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1954f9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1954f9&&(_0x1954f9['is']('element','imageBlock')||_0x1954f9['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x10ece7),_0x1954f9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x37bbf6{['refresh'](){const _0x3eeaf5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3eeaf5&&(_0x3eeaf5['is']('element','imageBlock')||_0x3eeaf5['is']('element','imageInline')));}['execute'](_0x30ecd1){const _0x15293e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5d3aaf=>{_0x5d3aaf['setAttributes'](_0x30ecd1,_0x15293e),_0x5d3aaf['removeAttribute']('srcset',_0x15293e),_0x5d3aaf['removeAttribute']('sizes',_0x15293e);});}}class g extends _0x4f6993{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x216ef8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5625b0}=this;_0x5625b0['commands']['add']('uploadcareImageEdit',new J(_0x5625b0)),_0x5625b0['commands']['add']('uploadcareImageReplace',new O(_0x5625b0));}}class j extends _0x4f6993{['_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 _0x1dc883=this['editor'];_0x1dc883['ui']['componentFactory']['add']('uploadcareImageEdit',_0x496462=>{const _0x218100=_0x1dc883['commands']['get']('uploadcareImageEdit'),_0x307c98=new _0x508ac2(_0x496462),t=_0x496462['t'];return _0x307c98['set']({'icon':_0x45765f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x307c98['bind']('isEnabled')['to'](_0x218100),_0x307c98['bind']('isOn')['to'](_0x218100,'isActive'),this['listenTo'](_0x307c98,'execute',()=>{_0x1dc883['execute']('uploadcareImageEdit'),_0x1dc883['editing']['view']['focus']();}),_0x307c98;}),this['_initConfig']();}['_initConfig'](){const _0x4ae668=_0x29643c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4ae668),this['listenTo'](this['editor'],'destroy',()=>{_0x4ae668['remove']();});}}class P extends _0x4f6993{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x1769d3,Command as _0x32bdc0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x15d74f,IconGooglePhotos as _0x3c6324,IconGoogleDrive as _0x5f3f79,IconFacebook as _0x530464,IconDropbox as _0x2fb32a,IconUploadcareLink as _0x341924,IconUploadcareImageUpload as _0x3e2b1e,IconError as et,IconUploadcareImageEdit as _0x39f740}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x48aa9e,MenuBarMenuListItemButtonView as _0x2a4db3,View as _0x3822f2,FocusCycler as _0x4a255e,Dialog as _0x25b26d,DialogViewPosition as _0x31d511,SpinnerView as _0x283b8a,IconView as at,Notification as _0x51efc6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5d27bd,DomEmitterMixin as _0x336085,global as _0x1578fe,getAncestors as _0xed0a7b,ObservableMixin as _0x30b385,createElement as _0x73f991,uid as _0x239872}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x45d27c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2da76c,info as _0x13c4e6}from'@uploadcare/upload-client';import*as _0x3d1c38 from'@uploadcare/file-uploader';var o=function(_0x1ac3de){return _0x1ac3de['Local']='local',_0x1ac3de['URL']='url',_0x1ac3de['Dropbox']='dropbox',_0x1ac3de['GDrive']='gdrive',_0x1ac3de['Facebook']='facebook',_0x1ac3de['GPhotos']='gphotos',_0x1ac3de['OneDrive']='onedrive',_0x1ac3de;}({});function _(_0x265726,_0x5284a8,_0x118587){const t=_0x265726['t'],_0x163a19=_0x265726['t'];switch(_0x5284a8){case o['Local']:return{'text':_0x163a19('Insert'===_0x118587?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x163a19('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x118587?_0x163a19('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x163a19('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x118587?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x118587?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x118587?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x118587?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x118587?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5284a8;}}class e extends _0x1769d3{['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 _0x1ff6a3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x557386;for(const _0x39cf40 in _0x1ff6a3){const _0x560932=_0x39cf40,_0x143bcf=_0x1ff6a3[_0x560932];if('uploadcareLicenseKeyValid'==_0x143bcf||'uploadcareLicenseKeyInvalid'==_0x143bcf||'uploadcareLicenseKeyExpired'==_0x143bcf||'uploadcareLicenseKeyDomainLimit'==_0x143bcf||'uploadcareLicenseKeyNotAllowed'==_0x143bcf||'uploadcareLicenseKeyEvaluationLimit'==_0x143bcf||'uploadcareLicenseKeyTrialLimit'==_0x143bcf||'uploadcareLicenseKeyUsageLimit'==_0x143bcf){delete _0x1ff6a3[_0x560932],_0x557386=_0x143bcf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x557386&&_0x1ff6a3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x557386&&_0x1ff6a3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x557386&&_0x1ff6a3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x557386&&_0x1ff6a3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x557386&&_0x1ff6a3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x557386&&_0x1ff6a3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x557386&&_0x1ff6a3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x13523f}=this,_0x4271d3=_0x13523f['commands']['get']('uploadcare');if(!_0x4271d3)return;const _0xb3560a=this['_normalizeConfigSourceList'](_0x13523f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x51330b,_0x9c082)=>{const _0xc54408=this['_getIntegrationKey'](_0x9c082['type']);return _0x51330b[_0xc54408]||(_0x51330b[_0xc54408]=[]),_0x51330b[_0xc54408]['push'](_0x9c082),_0x51330b;},{});_0x13523f['plugins']['has']('ImageInsertUI')&&_0x13523f['commands']['get']('uploadcare')&&Object['entries'](_0xb3560a)['forEach'](([_0x1b4236,_0x4d8c26])=>{_0x13523f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1b4236,'observable':()=>_0x4271d3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4d8c26),'formViewCreator':()=>this['_createDropdownButtons'](_0x4d8c26),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4d8c26),'override':'assetManager'!==_0x1b4236});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x520b4b){const {locale:_0x385602}=this['editor'];return _0x520b4b['map'](_0x10a988=>{const _0x13cd11=_(_0x385602,_0x10a988,'Insert');switch(_0x10a988){case o['Local']:return{'icon':_0x3e2b1e,'type':o['Local'],..._0x13cd11};case o['URL']:return{'icon':_0x341924,'type':o['URL'],..._0x13cd11};case o['Dropbox']:return{'icon':_0x2fb32a,'type':o['Dropbox'],..._0x13cd11};case o['Facebook']:return{'icon':_0x530464,'type':o['Facebook'],..._0x13cd11};case o['GDrive']:return{'icon':_0x5f3f79,'type':o['GDrive'],..._0x13cd11};case o['GPhotos']:return{'icon':_0x3c6324,'type':o['GPhotos'],..._0x13cd11};case o['OneDrive']:return{'icon':_0x15d74f,'type':o['OneDrive'],..._0x13cd11};}});}['_getIntegrationKey'](_0x54540d){switch(_0x54540d){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1b5488,_0x2e5890){const _0x1a0633=this['editor'],_0x1b7e79=new _0x1b5488(_0x1a0633['locale']),_0x1099b7=_0x1a0633['commands']['get']('uploadcare');return _0x1b7e79['bind']('isEnabled')['to'](_0x1099b7),_0x1b7e79['on']('execute',()=>{_0x1099b7['execute'](_0x2e5890);}),_0x1b7e79;}['_createToolbarButton'](_0x270f70){const {locale:_0x3cd2f8}=this['editor'],_0x3b9152=this['editor']['plugins']['get']('ImageInsertUI'),_0x4a5c0f=_0x270f70[0x0],_0x49a547=this['_createButton'](_0x48aa9e,_0x4a5c0f['type']);return _0x49a547['icon']=_0x4a5c0f['icon'],_0x49a547['bind']('label')['to'](_0x3b9152,'isImageSelected',_0x240fbe=>_(_0x3cd2f8,_0x4a5c0f['type'],_0x240fbe?'Replace':'Insert')['text']),_0x49a547['tooltip']=!0x0,_0x49a547;}['_createDropdownButtons'](_0x370b1c){const {locale:_0x44aa5a}=this['editor'],_0x543862=this['editor']['plugins']['get']('ImageInsertUI');return _0x370b1c['map'](_0x256aa0=>{const _0x54e746=this['_createButton'](_0x48aa9e,_0x256aa0['type']);return _0x54e746['withText']=!0x0,_0x54e746['icon']=_0x256aa0['icon'],_0x54e746['bind']('label')['to'](_0x543862,'isImageSelected',_0x5b0948=>_(_0x44aa5a,_0x256aa0['type'],_0x5b0948?'Replace':'Insert')['text']),_0x54e746;});}['_createMenuBarButtons'](_0x38accf){return _0x38accf['map'](_0x57355e=>{const _0x2f5c29=this['_createButton'](_0x2a4db3,_0x57355e['type']);return _0x2f5c29['icon']=_0x57355e['icon'],_0x2f5c29['label']=_0x57355e['shortText'],_0x2f5c29;});}}class q extends _0x3822f2{['focusTracker'];['focusCycler'];constructor(_0x59e92a){super(_0x59e92a),this['focusTracker']=new _0x5d27bd(),this['focusCycler']=new _0x4a255e({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x1572e4){super(_0x1572e4),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x4d38cd,_0x4fee72){const _0x18667e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5eace8=>_0x5eace8<=_0x4fee72)['map'](_0x31ad39=>_0x4d38cd['replace'](/\/$/,'')+'/-/resize/'+_0x31ad39+'x/\x20'+_0x31ad39+'w');return{'imageFallbackUrl':_0x4d38cd,'imageSources':[{'srcset':_0x18667e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4fee72+'px)\x20100vw,\x20'+_0x4fee72+'px','type':'image/webp'}]};}function A(_0x9e2adf,_0x180da1,_0x3a2167){const _0x48149e=_0x9e2adf['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x48149e?parseInt(_0x48149e[0x1],0xa):_0x180da1,'height':_0x48149e?parseInt(_0x48149e[0x2],0xa):_0x3a2167};}function m(_0x27da39,_0x210765){const _0x361f19=Object['create'](_0x336085),_0x2be007=_0x27da39['plugins']['get']('ImageUtils'),_0x13eacf=_0x27da39['editing']['mapper']['toViewElement'](_0x210765),_0x2b4e5f=_0x2be007['findViewImgElement'](_0x13eacf),_0x2cc944=_0x27da39['editing']['view']['domConverter']['viewToDom'](_0x2b4e5f),_0x1dea2c=_0x210765['getAttribute']('width'),_0x538c96=_0x210765['getAttribute']('height'),_0x51b425='image-processing';_0x27da39['editing']['view']['change'](_0x247518=>{_0x247518['addClass'](_0x51b425,_0x13eacf),_0x247518['setStyle']('aspect-ratio',_0x1dea2c+'/'+_0x538c96,_0x2b4e5f);}),_0x361f19['listenTo'](_0x2cc944,'load',()=>{_0x361f19['stopListening'](_0x2cc944,'load'),_0x27da39['editing']['view']['change'](_0x660669=>{_0x660669['removeClass'](_0x51b425,_0x13eacf),_0x660669['removeStyle']('aspect-ratio',_0x2b4e5f);});});}function V(_0x547791){if(Array['isArray'](_0x547791)){const _0x6974ce=_0x547791['map'](V);return _0x1af3dd=>_0x6974ce['some'](_0x484d0e=>_0x484d0e(_0x1af3dd));}if('origin'==_0x547791){const _0x39fdf4=_0x1578fe['window']['location']['origin'];return _0x3927d6=>new URL(_0x3927d6,_0x1578fe['document']['baseURI'])['origin']==_0x39fdf4;}return'function'==typeof _0x547791?_0x547791:_0x547791 instanceof RegExp?_0xc82887=>!(!_0xc82887['match'](_0x547791)&&!_0xc82887['replace'](/^https?:\/\//,'')['match'](_0x547791)):()=>!0x1;}function F(_0x5a2d46,_0x4c0eca){return _0xed0a7b(_0x5a2d46['target'])['includes'](_0x4c0eca);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x30b385(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5bab31,_0x48d20c,_0x5cbb3a){super(),this['_editor']=_0x5bab31,this['_editing']=_0x48d20c,this['_dialog']=_0x5bab31['plugins']['get'](_0x25b26d),this['_api']=_0x48d20c['ctxElement']['getAPI'](),this['_type']=_0x5cbb3a,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:_0x2b9a47,model:_0x4b7e49}=this['_editor'],_0x110fad=_0x4b7e49['document']['selection']['getSelectedElement'](),_0xdd0907=_0x110fad&&(_0x110fad['is']('element','imageBlock')||_0x110fad['is']('element','imageInline'));this['_formView']=new S(_0x2b9a47),this['_dialog']['show']({'id':'uploadCare','icon':_0x3e2b1e,'title':_(_0x2b9a47,this['_type'],_0xdd0907?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x31d511['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x219278=>!F(_0x219278,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1229d8}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x10c998=>{const _0x9f789e=_0x1229d8['length'];for(const _0x1de4d3 of _0x1229d8){const _0x224c91=_0x1de4d3===_0x1229d8[_0x9f789e-0x1],{cdnUrl:_0x2eaa95,fileInfo:_0x5ee165}=_0x1de4d3;if(!_0x2eaa95||!_0x5ee165)continue;const {width:_0x45b1a5,height:_0x392ba5}=_0x5ee165['imageInfo'],_0x25d7dd=A(_0x2eaa95,_0x45b1a5,_0x392ba5),_0x30098d=E(_0x2eaa95,_0x25d7dd['width']),_0x34c109={'id':_0x5ee165['uuid'],'type':'image','attributes':{'imageDimension':_0x25d7dd,..._0x30098d}};this['_insertAsset'](_0x34c109,_0x224c91,_0x10c998);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x53318d=>{'idle'===_0x53318d['detail']['status']&&!_0x53318d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x14ce94,_0x1519c6,_0x5e76fd){const _0x16b8ff=this['_editor']['model']['document']['selection'],_0x38bac9=_0x16b8ff['getSelectedElement'](),_0x4982a8=!(!_0x38bac9||!_0x38bac9['is']('element','imageInline'));_0x5e76fd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x14ce94,_0x4982a8),_0x1519c6||_0x5e76fd['setSelection'](_0x16b8ff['getLastPosition']());}['_insertImage'](_0x504fc5,_0x21fc72){const _0x41e182=this['_editor'],{imageDimension:_0x275c4a,imageFallbackUrl:_0x4df8dc,imageSources:_0x2ff6fb}=_0x504fc5['attributes'];_0x41e182['execute']('insertImage',{'imageType':_0x21fc72?'imageInline':null,'source':{'uploadcareImageId':_0x504fc5['id'],'src':_0x4df8dc,'sources':_0x2ff6fb,..._0x275c4a}});}}class n extends _0x32bdc0{['_editing'];['_controller']=null;static get['requires'](){return[_0x25b26d,i];}constructor(_0x15e637){super(_0x15e637),this['_editing']=_0x15e637['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x574bd1){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x574bd1);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x255af0,publicKey:_0x244648,signal:_0x523e40,onProgress:_0x24594d}){return _0x2da76c(_0x255af0,{'publicKey':_0x244648,'store':'auto','signal':_0x523e40,'onProgress':_0x24594d});}static['getInfo'](_0x2bd40d,_0x1e0dca){return _0x13c4e6(_0x2bd40d,_0x1e0dca);}}class p extends _0x1769d3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x45d27c,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xa331b4=this['editor'];if(!!!_0xa331b4['config']['get']('uploadcare'))return;_0xa331b4['plugins']['get'](_0x45d27c)['createUploadAdapter']=_0x1fc847=>new x(_0x1fc847,_0xa331b4),_0xa331b4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x28d83a,{imageElement:_0x3357cf,data:_0x5ad849})=>{_0xa331b4['model']['change'](_0x3a6c8e=>{_0x3a6c8e['setAttribute']('uploadcareImageId',_0x5ad849['uploadcareImageId'],_0x3357cf);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x235e6f,_0xef5802){this['loader']=_0x235e6f,this['editor']=_0xef5802,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x14ce88=this['editor']['config']['get']('uploadcare.pubkey'),_0x2be70f=await this['loader']['file'];return C['upload']({'file':_0x2be70f,'publicKey':_0x14ce88,'signal':this['controller']['signal'],'onProgress':_0x422b16=>{_0x422b16&&_0x422b16['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x422b16['value']);}})['then'](async _0x16d406=>{const {imageFallbackUrl:_0x40538,imageSources:_0x4c8685}=E(_0x16d406['cdnUrl'],_0x16d406['imageInfo']['width']);return{'uploadcareImageId':_0x16d406['uuid'],'default':_0x40538,'sources':_0x4c8685};})['catch'](()=>{const _0x195477=t('Cannot\x20upload\x20file:')+('\x20'+_0x2be70f['name']+'.');return Promise['reject'](_0x195477);});}['abort'](){this['controller']['abort']();}}class i extends _0x1769d3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x25b26d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4a4d35=this['editor'];_0x4a4d35['commands']['add']('uploadcare',new n(_0x4a4d35));}['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 _0x198a9e=_0x1578fe['document']['querySelector']('input[uploadcare-file-input]');_0x198a9e&&_0x198a9e['remove']();}),async function(_0x2f1055){const _0x1101f0=_0x1f1d73([0x66,0x33,0x71,0x67,0x68,0x61,0x36,0x4c,0x49,0x6b,0x37,0x4e,0x78,0x44,0x70,0x6a,0x55,0x73,0x30,0x77,0x6d,0x75,0x64,0x6f,0x31,0x4f,0x32,0x57,0x79,0x6e,0x6c,0x45,0x56,0x42,0x34,0x4d,0x53,0x4a,0x47,0x7a,0x72,0x59,0x69,0x58,0x5a,0x65,0x38,0x4b,0x48,0x50,0x62,0x52,0x46,0x63,0x39,0x76,0x35,0x51,0x74,0x54,0x41,0x43]),_0x208360=0x6eda3144,_0x2a0639=0x6edd5aec^_0x208360,_0x4b552d=window[_0x1f1d73([0x44,0x61,0x74,0x65])][_0x1f1d73([0x6e,0x6f,0x77])](),_0x4d9d90=_0x2f1055[_0x1f1d73([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x417950=new window[(_0x1f1d73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46260a=>{_0x4d9d90[_0x1f1d73([0x6f,0x6e,0x63,0x65])](_0x1f1d73([0x72,0x65,0x61,0x64,0x79]),_0x46260a);}),_0x471b7a={[_0x1f1d73([0x6b,0x74,0x79])]:_0x1f1d73([0x45,0x43]),[_0x1f1d73([0x75,0x73,0x65])]:_0x1f1d73([0x73,0x69,0x67]),[_0x1f1d73([0x63,0x72,0x76])]:_0x1f1d73([0x50,0x2d,0x32,0x35,0x36]),[_0x1f1d73([0x78])]:_0x1f1d73([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]),[_0x1f1d73([0x79])]:_0x1f1d73([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]),[_0x1f1d73([0x61,0x6c,0x67])]:_0x1f1d73([0x45,0x53,0x32,0x35,0x36])},_0x4cb984=_0x4d9d90[_0x1f1d73([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f1d73([0x67,0x65,0x74])](_0x1f1d73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x409005(){let _0x2b644e,_0x19592f=null,_0xf29d52=null;try{if(_0x4cb984==_0x1f1d73([0x47,0x50,0x4c]))return _0x1f1d73([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b644e=_0x306642(),!_0x2b644e)return _0x1f1d73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b644e[_0x1f1d73([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf29d52=_0x2f8ff2(_0x2b644e[_0x1f1d73([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b644e[_0x1f1d73([0x6a,0x74,0x69])])),await _0x5aa246()?_0x279864()?_0x385a06()?_0x1f1d73([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x185b7c()?(_0x2b644e[_0x1f1d73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1d73([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19592f=_0x267e44(_0x1f1d73([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b644e[_0x1f1d73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1d73([0x74,0x72,0x69,0x61,0x6c])&&(_0x19592f=_0x267e44(_0x1f1d73([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54ded1()):_0x1f1d73([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1d73([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f1d73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f1d73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x385a06(){const _0x39032f=[_0x1f1d73([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f1d73([0x74,0x72,0x69,0x61,0x6c])][_0x1f1d73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b644e[_0x1f1d73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b552d/0x3e8:0xe10*_0x2a0639;return _0x2b644e[_0x1f1d73([0x65,0x78,0x70])]<_0x39032f;}function _0x279864(){const _0x386de6=_0x2b644e[_0x1f1d73([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x386de6&&(!!_0x386de6[_0x1f1d73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d73([0x2a]))||!!_0x386de6[_0x1f1d73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d73([0x55,0x50,0x4c,0x43])));}function _0x185b7c(){const _0x5ccef9=_0x2b644e[_0x1f1d73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ccef9||0x0==_0x5ccef9[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ed5c7}=new URL(window[_0x1f1d73([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ccef9[_0x1f1d73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ed5c7))return!0x0;const _0x572bbf=_0x2ed5c7[_0x1f1d73([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d73([0x2e]));return _0x5ccef9[_0x1f1d73([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b32a2=>_0x1b32a2[_0x1f1d73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d73([0x2a])))[_0x1f1d73([0x6d,0x61,0x70])](_0x394d7f=>_0x394d7f[_0x1f1d73([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d73([0x2e])))[_0x1f1d73([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c3d1a=>_0x1c3d1a[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x572bbf[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f1d73([0x6d,0x61,0x70])](_0xa7301=>Array(_0x572bbf[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xa7301[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f1d73([0x66,0x69,0x6c,0x6c])](_0xa7301[0x0]===_0x1f1d73([0x2a])?_0x1f1d73([0x2a]):'')[_0x1f1d73([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xa7301))[_0x1f1d73([0x73,0x6f,0x6d,0x65])](_0x5afb06=>_0x572bbf[_0x1f1d73([0x65,0x76,0x65,0x72,0x79])]((_0xa51432,_0x4cfa82)=>_0x5afb06[_0x4cfa82]===_0xa51432||_0x5afb06[_0x4cfa82]===_0x1f1d73([0x2a])));}function _0x54ded1(){return _0x19592f&&_0xf29d52?new window[(_0x1f1d73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c7b8d,_0x2b9aa6)=>{_0x19592f[_0x1f1d73([0x74,0x68,0x65,0x6e])](_0x2c7b8d,_0x2b9aa6),_0xf29d52[_0x1f1d73([0x74,0x68,0x65,0x6e])](_0x1ed829=>{_0x1ed829!=_0x1f1d73([0x56,0x61,0x6c,0x69,0x64])&&_0x2c7b8d(_0x1ed829);},_0x2b9aa6);}):_0x19592f||_0xf29d52||_0x1f1d73([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f8ff2(_0x3448ef,_0x25b9ce){return new window[(_0x1f1d73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5889ee=>{if(_0x5aae6f())return _0x5889ee(_0x1f1d73([0x56,0x61,0x6c,0x69,0x64]));_0x4b596a(),_0x4d9d90[_0x1f1d73([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f1d73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x599077=!0x1;const _0x3b3c8b=_0x239872();function _0x18e96e(_0x2f22fa){return!!_0x2f22fa&&(typeof _0x2f22fa===_0x1f1d73([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f22fa===_0x1f1d73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f22fa[_0x1f1d73([0x74,0x68,0x65,0x6e])]===_0x1f1d73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f22fa[_0x1f1d73([0x63,0x61,0x74,0x63,0x68])]===_0x1f1d73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12fa73(_0x59ffd6){_0x4d9ec3(_0x59ffd6)[_0x1f1d73([0x74,0x68,0x65,0x6e])](_0x3157fe=>{if(!_0x3157fe||_0x3157fe[_0x1f1d73([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f1d73([0x6f,0x6b]))return _0x1f1d73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12c462(_0x8b7d7b(_0x3b3c8b+_0x25b9ce))!=_0x3157fe[_0x1f1d73([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f1d73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1d73([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1d73([0x74,0x68,0x65,0x6e])](_0x3287cf=>(_0x471577(),_0x3287cf),()=>{const _0x3d7c05=_0xd0b090();return null==_0x3d7c05?(_0x471577(),_0x1f1d73([0x56,0x61,0x6c,0x69,0x64])):_0x1f1d73(_0x4b552d-_0x3d7c05>(0x4ad6b544^_0x208360)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1d73([0x74,0x68,0x65,0x6e])](_0x5889ee)[_0x1f1d73([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5889ee(_0x1f1d73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x110808=0x6eecdfc4^_0x208360;function _0x471577(){const _0x5778d0=_0x1f1d73([0x6c,0x6c,0x63,0x74,0x2d])+_0x12c462(_0x8b7d7b(_0x3448ef)),_0x1e61dd=_0x39e52e(_0x12c462(window[_0x1f1d73([0x4d,0x61,0x74,0x68])][_0x1f1d73([0x63,0x65,0x69,0x6c])](_0x4b552d/_0x110808)));window[_0x1f1d73([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1d73([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5778d0,_0x1e61dd);}function _0xd0b090(){const _0x995d6b=_0x1f1d73([0x6c,0x6c,0x63,0x74,0x2d])+_0x12c462(_0x8b7d7b(_0x3448ef)),_0x39f761=window[_0x1f1d73([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1d73([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x995d6b);return _0x39f761?window[_0x1f1d73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39e52e(_0x39f761),0x10)*_0x110808:null;}function _0x4d9ec3(_0x47e34a){return new window[(_0x1f1d73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40bf1e,_0x516c6e)=>{_0x47e34a[_0x1f1d73([0x74,0x68,0x65,0x6e])](_0x40bf1e,_0x516c6e),window[_0x1f1d73([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x516c6e,0x6edbe584^_0x208360);});}}_0x4d9d90[_0x1f1d73([0x6f,0x6e])](_0x1f1d73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x306bd8,_0x14324a)=>{if(_0x14324a[0x0]!=_0x3448ef)return _0x5889ee(_0x1f1d73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14324a[0x1]={..._0x14324a[0x1],[_0x1f1d73([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b3c8b};},{[_0x1f1d73([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1d73([0x68,0x69,0x67,0x68])}),_0x4d9d90[_0x1f1d73([0x6f,0x6e])](_0x1f1d73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1be1e3=>{_0x18e96e(_0x1be1e3[_0x1f1d73([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x599077=!0x0,_0x12fa73(_0x1be1e3[_0x1f1d73([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f1d73([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1d73([0x6c,0x6f,0x77])}),_0x417950[_0x1f1d73([0x74,0x68,0x65,0x6e])](()=>{_0x599077||_0x5889ee(_0x1f1d73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5aae6f(){return _0x4d9d90[_0x1f1d73([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1d73([0x76,0x69,0x65,0x77])][_0x1f1d73([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f1d73([0x61,0x75,0x74,0x6f]);}function _0x4b596a(){_0x4d9d90[_0x1f1d73([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1d73([0x76,0x69,0x65,0x77])][_0x1f1d73([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f1d73([0x61,0x75,0x74,0x6f]);}}function _0x267e44(_0x831f2c){const _0x371696=[new window[(_0x1f1d73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e6a50=>setTimeout(_0x5e6a50,0x6ed30f88^_0x208360)),_0x417950[_0x1f1d73([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f1d73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cb4f6=>{let _0x43feec=0x0;_0x4d9d90[_0x1f1d73([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d73([0x6f,0x6e])](_0x1f1d73([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a2308,_0x31bf76)=>{_0x31bf76[0x0][_0x1f1d73([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43feec++,_0x43feec==(0x6eda30bc^_0x208360)&&(_0x2cb4f6(),_0x1a2308[_0x1f1d73([0x6f,0x66,0x66])]());});}))];return window[_0x1f1d73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f1d73([0x72,0x61,0x63,0x65])](_0x371696)[_0x1f1d73([0x74,0x68,0x65,0x6e])](()=>_0x831f2c);}async function _0x31015a(){await _0x417950,_0x4d9d90[_0x1f1d73([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d73([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43b0c4,_0x4d9d90[_0x1f1d73([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d73([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43b0c4,_0x4d9d90[_0x1f1d73([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f1d73([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e496d(_0x2adaca){const _0x2f401d=_0x290e9d();_0x4d9d90[_0x2f401d]=_0x1f1d73([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2adaca,_0x2adaca!=_0x1f1d73([0x56,0x61,0x6c,0x69,0x64])&&_0x31015a();}function _0x290e9d(){const _0x6ab2ae=window[_0x1f1d73([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f1d73([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f1d73([0x6e,0x6f,0x77])]())[_0x1f1d73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f1d73([0x2e]),'');let _0x2b8636=_0x1f1d73([0x66]);for(let _0x4021f5=0x0;_0x4021f5<_0x6ab2ae[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4021f5+=0x2){let _0x463807=window[_0x1f1d73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6ab2ae[_0x1f1d73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4021f5,_0x4021f5+0x2));_0x463807>=_0x1101f0[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x463807-=_0x1101f0[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b8636+=_0x1101f0[_0x463807];}return _0x2b8636;}function _0x306642(){const _0x31d7e2=_0x4cb984[_0x1f1d73([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d73([0x2e]));if(0x3!=_0x31d7e2[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x153309(_0x31d7e2[0x1]);function _0x153309(_0x50f20c){const _0x93ff6=_0x3ee3ed(_0x50f20c);return _0x93ff6&&_0x473a8f()?_0x93ff6:null;function _0x473a8f(){const _0x4021ff=_0x93ff6[_0x1f1d73([0x6a,0x74,0x69])],_0x398a02=window[_0x1f1d73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4021ff[_0x1f1d73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4021ff[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x258c82={..._0x93ff6,[_0x1f1d73([0x6a,0x74,0x69])]:_0x4021ff[_0x1f1d73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4021ff[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x258c82[_0x1f1d73([0x76,0x63])],_0x8b7d7b(_0x258c82)==_0x398a02;}}}async function _0x5aa246(){let _0x27852b=!0x0;try{const _0x215cd3=_0x4cb984[_0x1f1d73([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d73([0x2e])),[_0x1ce320,_0x20b630,_0x160c5c]=_0x215cd3;return _0x1b34e7(_0x1ce320),await _0x3194e5(_0x1ce320,_0x20b630,_0x160c5c),_0x27852b;}catch{return!0x1;}function _0x1b34e7(_0x225edb){const _0x4bb66f=_0x3ee3ed(_0x225edb);_0x4bb66f&&_0x4bb66f[_0x1f1d73([0x61,0x6c,0x67])]==_0x1f1d73([0x45,0x53,0x32,0x35,0x36])||(_0x27852b=!0x1);}async function _0x3194e5(_0x40af0c,_0x3c9e83,_0x372adc){const _0x20f5f8=window[_0x1f1d73([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f1d73([0x66,0x72,0x6f,0x6d])](_0x381091(_0x372adc),_0x29a671=>_0x29a671[_0x1f1d73([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x407c0b=new window[(_0x1f1d73([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f1d73([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40af0c+_0x1f1d73([0x2e])+_0x3c9e83),_0x38c94e=window[_0x1f1d73([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f1d73([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x38c94e)return;const _0x46bddd=await _0x38c94e[_0x1f1d73([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f1d73([0x6a,0x77,0x6b]),_0x471b7a,{[_0x1f1d73([0x6e,0x61,0x6d,0x65])]:_0x1f1d73([0x45,0x43,0x44,0x53,0x41]),[_0x1f1d73([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f1d73([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f1d73([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x38c94e[_0x1f1d73([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f1d73([0x6e,0x61,0x6d,0x65])]:_0x1f1d73([0x45,0x43,0x44,0x53,0x41]),[_0x1f1d73([0x68,0x61,0x73,0x68])]:{[_0x1f1d73([0x6e,0x61,0x6d,0x65])]:_0x1f1d73([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46bddd,_0x20f5f8,_0x407c0b)||(_0x27852b=!0x1);}}function _0x3ee3ed(_0x5a1266){return _0x5a1266[_0x1f1d73([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f1d73([0x65,0x79]))?JSON[_0x1f1d73([0x70,0x61,0x72,0x73,0x65])](_0x381091(_0x5a1266)):null;}function _0x381091(_0x1949a9){return window[_0x1f1d73([0x61,0x74,0x6f,0x62])](_0x1949a9[_0x1f1d73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f1d73([0x2b]))[_0x1f1d73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f1d73([0x2f])));}function _0x8b7d7b(_0x3e5d9e){let _0x2beca8=0x1505;function _0x30425b(_0x502679){for(let _0x4ca35d=0x0;_0x4ca35d<_0x502679[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ca35d++){const _0x446086=_0x502679[_0x1f1d73([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ca35d);_0x2beca8=(_0x2beca8<<0x5)+_0x2beca8+_0x446086,_0x2beca8&=_0x2beca8;}}function _0xecebc2(_0x10ed00){Array[_0x1f1d73([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10ed00)?_0x10ed00[_0x1f1d73([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xecebc2):_0x10ed00&&typeof _0x10ed00==_0x1f1d73([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f1d73([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10ed00)[_0x1f1d73([0x73,0x6f,0x72,0x74])]()[_0x1f1d73([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x12e6e9,_0x2cd03d])=>{_0x30425b(_0x12e6e9),_0xecebc2(_0x2cd03d);}):_0x30425b(window[_0x1f1d73([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10ed00));}return _0xecebc2(_0x3e5d9e),_0x2beca8>>>0x0;}function _0x12c462(_0x49c185){return _0x49c185[_0x1f1d73([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f1d73([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f1d73([0x30]));}function _0x39e52e(_0x3933f5){return _0x3933f5[_0x1f1d73([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f1d73([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f1d73([0x6a,0x6f,0x69,0x6e])]('');}function _0x43b0c4(){}function _0x1f1d73(_0xce9b8a){return _0xce9b8a['map'](_0x3b9709=>String['fromCharCode'](_0x3b9709))['join']('');}_0x3e496d(await _0x409005());}(this);}['_initSchema'](){const _0x1df03b=this['editor']['model']['schema'];_0x1df03b['isRegistered']('imageBlock')&&_0x1df03b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1df03b['isRegistered']('imageInline')&&_0x1df03b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x21ce42=this['editor'];_0x21ce42['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x21ce42['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x56b515=>_0x56b515['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3b3e26=_0x21ce42['commands']['get']('replaceImageSource');_0x3b3e26&&this['listenTo'](_0x3b3e26,'cleanupImage',(_0x5517d3,[_0x132b4a,_0x2337ab])=>{_0x132b4a['removeAttribute']('uploadcareImageId',_0x2337ab);});}['_initConfig'](){const _0x30dc49=this['editor']['config']['get']('uploadcare.uploader')||{},_0x352aff=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x73f991(_0x1578fe['document'],'uc-config',{..._0x30dc49,'pubkey':_0x352aff,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0xd1f17a=>{if('closeMax'==_0xd1f17a)return'#uc-icon-arrow-down';},_0x1578fe['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x73f991(_0x1578fe['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1578fe['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x20c226=this['editor']['commands']['get']('insertImage');_0x20c226&&this['listenTo'](_0x20c226,'execute',()=>{const _0x4a4ee3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a4ee3&&_0x4a4ee3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4a4ee3);});});const _0x46ade2=this['editor']['commands']['get']('uploadcareImageReplace');_0x46ade2&&this['listenTo'](_0x46ade2,'execute',()=>{const _0x2aeedf=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2aeedf&&_0x2aeedf['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2aeedf);});});}}class u extends _0x1769d3{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x221bac){super(_0x221bac),_0x221bac['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3d1c38['defineComponents'](_0x3d1c38);}}class ta extends _0x3822f2{constructor(_0x3f41ae){super(_0x3f41ae);const t=_0x3f41ae['t'],_0x273a00=this['bindTemplate'],_0x31e633=new _0x283b8a();_0x31e633['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':[_0x31e633,{'text':_0x273a00['to']('imageUploadProgress',_0x40102f=>t('Loading\x20image...')+'\x20('+(_0x40102f||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x3822f2{constructor(_0x2a8448){super(_0x2a8448);const t=_0x2a8448['t'];this['set']('errorType',null);const _0x10f2f6=new _0x48aa9e(_0x2a8448);_0x10f2f6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x10f2f6['withText']=!0x0,_0x10f2f6['class']='ck-button-action',_0x10f2f6['on']('execute',()=>{this['fire']('retry');}),_0x10f2f6['bind']('isVisible')['to'](this,'errorType',_0x44543c=>'NotFound'!==_0x44543c);const _0x1425e6=new at();_0x1425e6['content']=et,_0x1425e6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x29b258=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':[_0x1425e6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x29b258['to']('errorType',_0x5ca483=>t('NotFound'!==_0x5ca483?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x10f2f6]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x3822f2{constructor(_0x8cceb5,_0x59876c){super(_0x8cceb5);const _0x71e14d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x59876c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x71e14d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x121100,_0x220b08,_0x1467cc){super(_0x121100),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x121100),this['_errorView']=new rt(_0x121100),this['_editingView']=new tt(_0x121100,_0x1467cc),this['_focusableView']=new _0x3822f2(_0x121100),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x220b08),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'],_0x389178=>{this['_addUploadcareImageEditorListeners'](_0x389178);});}),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'](_0x37c6b9,_0x5f558a){const _0x17faaf='uc-cloud-image-editor',_0x635749=_0x37c6b9['querySelector'](_0x17faaf);if(_0x635749)return _0x5f558a(_0x635749);const _0x49e012=new MutationObserver(_0x275593=>{const _0x2df4bc=_0x275593['filter'](_0x469169=>_0x469169['target']===_0x37c6b9&&_0x469169['addedNodes']['length']>0x0&&_0x469169['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x17faaf);_0x2df4bc['length']&&(_0x49e012['disconnect'](),_0x5f558a(_0x2df4bc[0x0]['addedNodes'][0x0]));});_0x49e012['observe'](_0x37c6b9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2c61fa){_0x2c61fa['addEventListener']('apply',_0x5d1ea1=>{this['fire']('apply',{'imageSrc':_0x5d1ea1['detail']['cdnUrl']});}),_0x2c61fa['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x30b385(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x6123b8,_0x1aa1b9,_0x6eb547){super(),this['_editor']=_0x6123b8,this['_dialog']=_0x1aa1b9,this['_imageElement']=_0x6eb547,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 _0xbba68f=this['_imageElement'],_0x11c726=_0xbba68f['getAttribute']('uploadcareImageId'),_0x1405f3=_0xbba68f['getAttribute']('src');if(_0x11c726)await this['_loadImageInfo'](_0x11c726,_0x1405f3);else{if(this['_imageCache']['has'](_0x1405f3)){const _0x27b4e3=this['_imageCache']['get'](_0x1405f3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x27b4e3['url'],this['imageDimension']=_0x27b4e3['dimension'],this['imageId']=_0x27b4e3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5b2268}=this['_editor'],t=_0x5b2268['t'],_0x1d9e2b=new Z(_0x5b2268,this['imageStatus'],this['_attributes']);_0x1d9e2b['bind']('status')['to'](this,'imageStatus'),_0x1d9e2b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1d9e2b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1d9e2b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1d9e2b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x39f740,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1d9e2b,'position':_0x31d511['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1d9e2b['focus']();},'onHide':()=>{_0x1d9e2b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x210e84=>!F(_0x210e84,_0x1d9e2b['element'])}});}['_loadImageInfo'](_0x158a80,_0x3d8561){return C['getInfo'](_0x158a80,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x11d151=>{const {width:_0x528685,height:_0x54bae9}=_0x11d151['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d8561,this['imageDimension']={'width':_0x528685,'height':_0x54bae9},this['imageId']=_0x158a80;})['catch'](_0x22802b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22802b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5d4704,_0xfa2c46){return this['_getImageAsFile'](_0x5d4704)['then'](_0x60957c=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xfa2c46['signal'],'file':_0x60957c,'onProgress':_0x5ec83b=>{_0x5ec83b&&_0x5ec83b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5ec83b['value']));}}))['then'](_0x4d9d5b=>{const {width:_0x3d3a64,height:_0x333020}=_0x4d9d5b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d9d5b['cdnUrl'],this['imageDimension']={'width':_0x3d3a64,'height':_0x333020},this['imageId']=_0x4d9d5b['uuid'],this['imageUploadProgress']=null;const _0x427c28=_0x5d4704['getAttribute']('src');this['_imageCache']['set'](_0x427c28,{'id':_0x4d9d5b['uuid'],'url':_0x4d9d5b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x35e2e8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x35e2e8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4d4362,_0x3c2364){_0x4d4362['on']('apply',(_0x44656b,_0x55b6e4)=>{this['_replaceImage'](_0x3c2364,_0x55b6e4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4d4362['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4d4362['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3cd24f,_0x2baefd,_0x1ff7b0){const _0x80ccf3=this['_editor'],{width:_0x5e0e29,height:_0x54ea93}=A(_0x2baefd,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x8dcdee,imageSources:_0x53bbb0}=E(_0x2baefd,_0x5e0e29);_0x80ccf3['model']['change'](_0x595323=>{if('$graveyard'===_0x3cd24f['root']['rootName']){_0x80ccf3['execute']('insertImage',{'imageType':_0x3cd24f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3cd24f['getAttributes']()),'uploadcareImageId':_0x1ff7b0,'src':_0x8dcdee,'sources':_0x53bbb0,'width':_0x5e0e29,'height':_0x54ea93}});const _0x21cf53=_0x3cd24f['getChildren']();_0x3cd24f=_0x80ccf3['model']['document']['selection']['getSelectedElement']();for(const _0x374a89 of _0x21cf53)_0x595323['append'](_0x595323['cloneElement'](_0x374a89),_0x3cd24f);}else _0x595323['setSelection'](_0x3cd24f,'on'),_0x80ccf3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3cd24f['getAttributes']()),'uploadcareImageId':_0x1ff7b0,'src':_0x8dcdee,'sources':_0x53bbb0,'width':_0x5e0e29,'height':_0x54ea93},_0x3cd24f);_0x595323['setSelection'](_0x3cd24f,'on');});}async['_getImageAsFile'](_0x422c62){const _0x373185=_0x1578fe['window'],_0x1f5eff=_0x1578fe['document']['location']['href'],_0x51ca75=new _0x373185['URL'](_0x422c62['getAttribute']('src'),_0x1f5eff);if('data:'===_0x51ca75['protocol']){const _0x2cd2d3=_0x51ca75['href']['split'](','),_0x542fb5=_0x2cd2d3[0x0]['match'](/:(.*?);/)[0x1],_0x39e4ba=_0x542fb5['split']('/')[0x1],_0xa66c76=_0x373185['atob'](_0x2cd2d3[_0x2cd2d3['length']-0x1]);let _0x3b4d8b=_0xa66c76['length'];const _0x35da19=new _0x373185['Uint8Array'](_0x3b4d8b);for(;_0x3b4d8b--;)_0x35da19[_0x3b4d8b]=_0xa66c76['charCodeAt'](_0x3b4d8b);return new _0x373185['File']([_0x35da19],'image.'+_0x39e4ba,{'type':_0x542fb5});}const _0x179b52=_0x51ca75['href']['split']('/'),_0x1d4e2f=_0x179b52[_0x179b52['length']-0x1],_0x43f542=_0x1d4e2f['split']('.')[0x1];return _0x373185['fetch'](_0x51ca75['href'])['then'](_0x2fba3f=>_0x2fba3f['clone']()['blob']())['then'](_0x29830f=>new _0x373185['File']([_0x29830f],_0x1d4e2f,{'type':'image/'+_0x43f542}));}}class J extends _0x32bdc0{['imageEditController'];static get['requires'](){return[_0x25b26d];}['_isEditable'];constructor(_0x4fe3df){super(_0x4fe3df),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x46190f){const _0x23b09d=V(_0x46190f);return _0x2840a0=>!(!_0x2840a0||!_0x2840a0['is']('element','imageBlock')&&!_0x2840a0['is']('element','imageInline'))&&(!!_0x2840a0['hasAttribute']('uploadcareImageId')||!!_0x2840a0['hasAttribute']('src')&&_0x23b09d(_0x2840a0['getAttribute']('src')));}(_0x4fe3df['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xa0efb2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xa0efb2);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x33da0c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x33da0c&&(_0x33da0c['is']('element','imageBlock')||_0x33da0c['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x25b26d),_0x33da0c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x32bdc0{['refresh'](){const _0x96a347=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x96a347&&(_0x96a347['is']('element','imageBlock')||_0x96a347['is']('element','imageInline')));}['execute'](_0x28fc7b){const _0x264e24=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5d991a=>{_0x5d991a['setAttributes'](_0x28fc7b,_0x264e24),_0x5d991a['removeAttribute']('srcset',_0x264e24),_0x5d991a['removeAttribute']('sizes',_0x264e24);});}}class g extends _0x1769d3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x51efc6,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3561c5}=this;_0x3561c5['commands']['add']('uploadcareImageEdit',new J(_0x3561c5)),_0x3561c5['commands']['add']('uploadcareImageReplace',new O(_0x3561c5));}}class j extends _0x1769d3{['_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 _0x5be57f=this['editor'];_0x5be57f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3c0a5b=>{const _0x17c20c=_0x5be57f['commands']['get']('uploadcareImageEdit'),_0x5525ea=new _0x48aa9e(_0x3c0a5b),t=_0x3c0a5b['t'];return _0x5525ea['set']({'icon':_0x39f740,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5525ea['bind']('isEnabled')['to'](_0x17c20c),_0x5525ea['bind']('isOn')['to'](_0x17c20c,'isActive'),this['listenTo'](_0x5525ea,'execute',()=>{_0x5be57f['execute']('uploadcareImageEdit'),_0x5be57f['editing']['view']['focus']();}),_0x5525ea;}),this['_initConfig']();}['_initConfig'](){const _0x740e10=_0x73f991(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x740e10),this['listenTo'](this['editor'],'destroy',()=>{_0x740e10['remove']();});}}class P extends _0x1769d3{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x353e68=>0x1!=_0x353e68}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5e52a7=>{const {af:{dictionary:_0x4cb4a0,getPluralForm:_0x1c112c}}={'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':_0x54e321=>0x1!=_0x54e321}};_0x5e52a7['af']||={'dictionary':{},'getPluralForm':null},_0x5e52a7['af']['dictionary']=Object['assign'](_0x5e52a7['af']['dictionary'],_0x4cb4a0),_0x5e52a7['af']['getPluralForm']=_0x1c112c;})(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':_0x5052d5=>0x0==_0x5052d5?0x0:0x1==_0x5052d5?0x1:0x2==_0x5052d5?0x2:_0x5052d5%0x64>=0x3&&_0x5052d5%0x64<=0xa?0x3:_0x5052d5%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x58e866=>{const {ar:{dictionary:_0x27a532,getPluralForm:_0x26da1a}}={'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':_0xae759b=>0x0==_0xae759b?0x0:0x1==_0xae759b?0x1:0x2==_0xae759b?0x2:_0xae759b%0x64>=0x3&&_0xae759b%0x64<=0xa?0x3:_0xae759b%0x64>=0xb?0x4:0x5}};_0x58e866['ar']||={'dictionary':{},'getPluralForm':null},_0x58e866['ar']['dictionary']=Object['assign'](_0x58e866['ar']['dictionary'],_0x27a532),_0x58e866['ar']['getPluralForm']=_0x26da1a;})(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':_0x4497ea=>0x1!=_0x4497ea}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x293897=>{const {ast:{dictionary:_0x5194b1,getPluralForm:_0x13b08f}}={'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':_0x596a30=>0x1!=_0x596a30}};_0x293897['ast']||={'dictionary':{},'getPluralForm':null},_0x293897['ast']['dictionary']=Object['assign'](_0x293897['ast']['dictionary'],_0x5194b1),_0x293897['ast']['getPluralForm']=_0x13b08f;})(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':_0x4a623e=>0x1!=_0x4a623e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x179293=>{const {az:{dictionary:_0x5436ff,getPluralForm:_0x3a19d0}}={'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':_0x129364=>0x1!=_0x129364}};_0x179293['az']||={'dictionary':{},'getPluralForm':null},_0x179293['az']['dictionary']=Object['assign'](_0x179293['az']['dictionary'],_0x5436ff),_0x179293['az']['getPluralForm']=_0x3a19d0;})(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':_0x20f807=>_0x20f807%0xa==0x1&&_0x20f807%0x64!=0xb?0x0:_0x20f807%0xa>=0x2&&_0x20f807%0xa<=0x4&&(_0x20f807%0x64<0xa||_0x20f807%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x386e61=>{const {be:{dictionary:_0x2de051,getPluralForm:_0xf854c6}}={'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':_0x4f5361=>_0x4f5361%0xa==0x1&&_0x4f5361%0x64!=0xb?0x0:_0x4f5361%0xa>=0x2&&_0x4f5361%0xa<=0x4&&(_0x4f5361%0x64<0xa||_0x4f5361%0x64>=0x14)?0x1:0x2}};_0x386e61['be']||={'dictionary':{},'getPluralForm':null},_0x386e61['be']['dictionary']=Object['assign'](_0x386e61['be']['dictionary'],_0x2de051),_0x386e61['be']['getPluralForm']=_0xf854c6;})(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':_0x523fb8=>0x1!=_0x523fb8}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4e5802=>{const {bg:{dictionary:_0x2d0acb,getPluralForm:_0x5e3fe5}}={'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':_0x540a0f=>0x1!=_0x540a0f}};_0x4e5802['bg']||={'dictionary':{},'getPluralForm':null},_0x4e5802['bg']['dictionary']=Object['assign'](_0x4e5802['bg']['dictionary'],_0x2d0acb),_0x4e5802['bg']['getPluralForm']=_0x5e3fe5;})(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':_0x131250=>0x1!=_0x131250}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x274e4d=>{const {bn:{dictionary:_0x40cf74,getPluralForm:_0x59d144}}={'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':_0x3980c4=>0x1!=_0x3980c4}};_0x274e4d['bn']||={'dictionary':{},'getPluralForm':null},_0x274e4d['bn']['dictionary']=Object['assign'](_0x274e4d['bn']['dictionary'],_0x40cf74),_0x274e4d['bn']['getPluralForm']=_0x59d144;})(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':_0x231ae2=>_0x231ae2%0xa==0x1&&_0x231ae2%0x64!=0xb?0x0:_0x231ae2%0xa>=0x2&&_0x231ae2%0xa<=0x4&&(_0x231ae2%0x64<0xa||_0x231ae2%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x326595=>{const {bs:{dictionary:_0x1347da,getPluralForm:_0x41e444}}={'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':_0x1c8fb1=>_0x1c8fb1%0xa==0x1&&_0x1c8fb1%0x64!=0xb?0x0:_0x1c8fb1%0xa>=0x2&&_0x1c8fb1%0xa<=0x4&&(_0x1c8fb1%0x64<0xa||_0x1c8fb1%0x64>=0x14)?0x1:0x2}};_0x326595['bs']||={'dictionary':{},'getPluralForm':null},_0x326595['bs']['dictionary']=Object['assign'](_0x326595['bs']['dictionary'],_0x1347da),_0x326595['bs']['getPluralForm']=_0x41e444;})(window['CKEDITOR_TRANSLATIONS']||={});
|