@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251226.0 → 0.0.0-nightly-20251227.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x2f79a5,Command as _0x1830ed}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5a3636,IconGooglePhotos as _0x25a960,IconGoogleDrive as _0x441b45,IconFacebook as _0x21451d,IconDropbox as _0x503848,IconUploadcareLink as _0x96e075,IconUploadcareImageUpload as _0x553ef2,IconError as _0x19ea19,IconUploadcareImageEdit as _0x5d9d5d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x484af9,MenuBarMenuListItemButtonView as _0x502fb9,View as _0x119922,FocusCycler as _0x38110b,Dialog as _0x2e6c28,DialogViewPosition as _0x297a66,SpinnerView as _0x7ad9c6,IconView as _0x1494c4,Notification as _0xc388b8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x35fa52,DomEmitterMixin as _0x185c38,global as _0x4ac7e1,getAncestors as _0x18759c,ObservableMixin as _0xb0242e,uid as _0x3c0092,createElement as _0x414e74}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x390e61}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x24cf34,info as _0x3eb9c5}from'@uploadcare/upload-client';import*as _0x49e498 from'@uploadcare/file-uploader';var i=function(_0x325a14){return _0x325a14['Local']='local',_0x325a14['URL']='url',_0x325a14['Dropbox']='dropbox',_0x325a14['GDrive']='gdrive',_0x325a14['Facebook']='facebook',_0x325a14['GPhotos']='gphotos',_0x325a14['OneDrive']='onedrive',_0x325a14;}({});function _(_0x2d6b06,_0x183019,_0x49e077){const t=_0x2d6b06['t'],_0x1a5b55=_0x2d6b06['t'];switch(_0x183019){case i['Local']:return{'text':_0x1a5b55('Insert'===_0x49e077?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1a5b55('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x49e077?_0x1a5b55('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1a5b55('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x183019;}}class e extends _0x2f79a5{['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 _0x2921dd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x636830;for(const _0x3756a6 in _0x2921dd){const _0x13fbcb=_0x3756a6,_0x1b801e=_0x2921dd[_0x13fbcb];if('uploadcareLicenseKeyValid'==_0x1b801e||'uploadcareLicenseKeyInvalid'==_0x1b801e||'uploadcareLicenseKeyExpired'==_0x1b801e||'uploadcareLicenseKeyDomainLimit'==_0x1b801e||'uploadcareLicenseKeyNotAllowed'==_0x1b801e||'uploadcareLicenseKeyEvaluationLimit'==_0x1b801e||'uploadcareLicenseKeyTrialLimit'==_0x1b801e||'uploadcareLicenseKeyUsageLimit'==_0x1b801e){delete _0x2921dd[_0x13fbcb],_0x636830=_0x1b801e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x636830&&_0x2921dd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x636830&&_0x2921dd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x636830&&_0x2921dd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x636830&&_0x2921dd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x636830&&_0x2921dd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x636830&&_0x2921dd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x636830&&_0x2921dd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3ddc7d}=this,_0x186551=_0x3ddc7d['commands']['get']('uploadcare');if(!_0x186551)return;const _0x58b055=this['_normalizeConfigSourceList'](_0x3ddc7d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5082e3,_0x3632d5)=>{const _0x51cbed=this['_getIntegrationKey'](_0x3632d5['type']);return _0x5082e3[_0x51cbed]||(_0x5082e3[_0x51cbed]=[]),_0x5082e3[_0x51cbed]['push'](_0x3632d5),_0x5082e3;},{});_0x3ddc7d['plugins']['has']('ImageInsertUI')&&_0x3ddc7d['commands']['get']('uploadcare')&&Object['entries'](_0x58b055)['forEach'](([_0xdc1109,_0x963191])=>{_0x3ddc7d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xdc1109,'observable':()=>_0x186551,'buttonViewCreator':()=>this['_createToolbarButton'](_0x963191),'formViewCreator':()=>this['_createDropdownButtons'](_0x963191),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x963191),'override':'assetManager'!==_0xdc1109});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x336b77){const {locale:_0x2f656b}=this['editor'];return _0x336b77['map'](_0x3e0c24=>{const _0x538112=_(_0x2f656b,_0x3e0c24,'Insert');switch(_0x3e0c24){case i['Local']:return{'icon':_0x553ef2,'type':i['Local'],..._0x538112};case i['URL']:return{'icon':_0x96e075,'type':i['URL'],..._0x538112};case i['Dropbox']:return{'icon':_0x503848,'type':i['Dropbox'],..._0x538112};case i['Facebook']:return{'icon':_0x21451d,'type':i['Facebook'],..._0x538112};case i['GDrive']:return{'icon':_0x441b45,'type':i['GDrive'],..._0x538112};case i['GPhotos']:return{'icon':_0x25a960,'type':i['GPhotos'],..._0x538112};case i['OneDrive']:return{'icon':_0x5a3636,'type':i['OneDrive'],..._0x538112};}});}['_getIntegrationKey'](_0x1d7d8d){switch(_0x1d7d8d){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x34ec55,_0x1a3fe1){const _0x5a35ae=this['editor'],_0x11c2d2=new _0x34ec55(_0x5a35ae['locale']),_0x4b2f3c=_0x5a35ae['commands']['get']('uploadcare');return _0x11c2d2['bind']('isEnabled')['to'](_0x4b2f3c),_0x11c2d2['on']('execute',()=>{_0x4b2f3c['execute'](_0x1a3fe1);}),_0x11c2d2;}['_createToolbarButton'](_0x2ec1c0){const {locale:_0x53378e}=this['editor'],_0x2ce9b0=this['editor']['plugins']['get']('ImageInsertUI'),_0x1d6bf9=_0x2ec1c0[0x0],_0x481616=this['_createButton'](_0x484af9,_0x1d6bf9['type']);return _0x481616['icon']=_0x1d6bf9['icon'],_0x481616['bind']('label')['to'](_0x2ce9b0,'isImageSelected',_0x4e0a99=>_(_0x53378e,_0x1d6bf9['type'],_0x4e0a99?'Replace':'Insert')['text']),_0x481616['tooltip']=!0x0,_0x481616;}['_createDropdownButtons'](_0x2cc312){const {locale:_0x519454}=this['editor'],_0x3b39cd=this['editor']['plugins']['get']('ImageInsertUI');return _0x2cc312['map'](_0x266041=>{const _0x1bb680=this['_createButton'](_0x484af9,_0x266041['type']);return _0x1bb680['withText']=!0x0,_0x1bb680['icon']=_0x266041['icon'],_0x1bb680['bind']('label')['to'](_0x3b39cd,'isImageSelected',_0x2ebdf1=>_(_0x519454,_0x266041['type'],_0x2ebdf1?'Replace':'Insert')['text']),_0x1bb680;});}['_createMenuBarButtons'](_0x1c4d27){return _0x1c4d27['map'](_0x52e912=>{const _0xe8d872=this['_createButton'](_0x502fb9,_0x52e912['type']);return _0xe8d872['icon']=_0x52e912['icon'],_0xe8d872['label']=_0x52e912['shortText'],_0xe8d872;});}}class F extends _0x119922{['focusTracker'];['focusCycler'];constructor(_0x27a6ae){super(_0x27a6ae),this['focusTracker']=new _0x35fa52(),this['focusCycler']=new _0x38110b({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x41ec54,_0x1379aa){super(_0x41ec54),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-'+_0x1379aa}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3ef60c,_0x143b90){const _0x40d2d1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4d6d22=>_0x4d6d22<=_0x143b90)['map'](_0x1115ff=>_0x3ef60c['replace'](/\/$/,'')+'/-/resize/'+_0x1115ff+'x/\x20'+_0x1115ff+'w');return{'imageFallbackUrl':_0x3ef60c,'imageSources':[{'srcset':_0x40d2d1['join'](',\x20'),'sizes':'(max-width:\x20'+_0x143b90+'px)\x20100vw,\x20'+_0x143b90+'px','type':'image/webp'}]};}function S(_0xf21d4f,_0x384449,_0x32247f){const _0x1d41b7=_0xf21d4f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1d41b7?parseInt(_0x1d41b7[0x1],0xa):_0x384449,'height':_0x1d41b7?parseInt(_0x1d41b7[0x2],0xa):_0x32247f};}function p(_0x3ebfab,_0x1bcc98){const _0x5ee908=new(_0x185c38())(),_0x363fbf=_0x3ebfab['plugins']['get']('ImageUtils'),_0x12778e=_0x3ebfab['editing']['mapper']['toViewElement'](_0x1bcc98),_0x928d5e=_0x363fbf['findViewImgElement'](_0x12778e),_0x228d63=_0x3ebfab['editing']['view']['domConverter']['viewToDom'](_0x928d5e),_0x386a32=_0x1bcc98['getAttribute']('width'),_0x1cf159=_0x1bcc98['getAttribute']('height'),_0x58ebe5='image-processing';_0x3ebfab['editing']['view']['change'](_0x3c33cb=>{_0x3c33cb['addClass'](_0x58ebe5,_0x12778e),_0x3c33cb['setStyle']('aspect-ratio',_0x386a32+'/'+_0x1cf159,_0x928d5e);}),_0x5ee908['listenTo'](_0x228d63,'load',()=>{_0x5ee908['stopListening'](_0x228d63,'load'),_0x3ebfab['editing']['view']['change'](_0x48ac56=>{_0x48ac56['removeClass'](_0x58ebe5,_0x12778e),_0x48ac56['removeStyle']('aspect-ratio',_0x928d5e);});});}function G(_0x24199b){if(Array['isArray'](_0x24199b)){const _0x281559=_0x24199b['map'](G);return _0x2d4200=>_0x281559['some'](_0x2f1bf9=>_0x2f1bf9(_0x2d4200));}if('origin'==_0x24199b){const _0x425de0=_0x4ac7e1['window']['location']['origin'];return _0x2cd5e6=>new URL(_0x2cd5e6,_0x4ac7e1['document']['baseURI'])['origin']==_0x425de0;}return'function'==typeof _0x24199b?_0x24199b:_0x24199b instanceof RegExp?_0x597412=>!(!_0x597412['match'](_0x24199b)&&!_0x597412['replace'](/^https?:\/\//,'')['match'](_0x24199b)):()=>!0x1;}function A(_0x429110,_0x1f5c54){return _0x18759c(_0x429110['target'])['includes'](_0x1f5c54);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xb0242e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b0005,_0x13e7ce,_0x547d62){super(),this['_editor']=_0x4b0005,this['_editing']=_0x13e7ce,this['_dialog']=_0x4b0005['plugins']['get'](_0x2e6c28),this['_api']=_0x13e7ce['ctxElement']['getAPI'](),this['_type']=_0x547d62,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:_0x3f03a8,model:_0x58790b}=this['_editor'],_0x368819=_0x58790b['document']['selection']['getSelectedElement'](),_0x408a03=_0x368819&&(_0x368819['is']('element','imageBlock')||_0x368819['is']('element','imageInline'));this['_formView']=new x(_0x3f03a8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x553ef2,'title':_(_0x3f03a8,this['_type'],_0x408a03?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x297a66['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x182bf0=>!A(_0x182bf0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2e19f4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x51bee9=>{const _0x40acc9=_0x2e19f4['length'];for(const _0x170752 of _0x2e19f4){const _0x283d19=_0x170752===_0x2e19f4[_0x40acc9-0x1],{cdnUrl:_0x41d02c,fileInfo:_0x5d2712}=_0x170752;if(!_0x41d02c||!_0x5d2712)continue;const {width:_0x55c05d,height:_0x39bf58}=_0x5d2712['imageInfo'],_0x2b1e95=S(_0x41d02c,_0x55c05d,_0x39bf58),_0x18305b=C(_0x41d02c,_0x2b1e95['width']),_0x4ad92b={'id':_0x5d2712['uuid'],'type':'image','attributes':{'imageDimension':_0x2b1e95,..._0x18305b}};this['_insertAsset'](_0x4ad92b,_0x283d19,_0x51bee9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5cdc1d=>{'idle'===_0x5cdc1d['detail']['status']&&!_0x5cdc1d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x221ac9,_0xdb6704,_0x482ce1){const _0x2c7ad9=this['_editor']['model']['document']['selection'],_0xd39847=_0x2c7ad9['getSelectedElement'](),_0xd0044d=!(!_0xd39847||!_0xd39847['is']('element','imageInline'));_0x482ce1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x221ac9,_0xd0044d),_0xdb6704||_0x482ce1['setSelection'](_0x2c7ad9['getLastPosition']());}['_insertImage'](_0x2f0a84,_0x38cdcc){const _0x122cfa=this['_editor'],{imageDimension:_0x4b8add,imageFallbackUrl:_0x5cdce2,imageSources:_0x33a00d}=_0x2f0a84['attributes'];_0x122cfa['execute']('insertImage',{'imageType':_0x38cdcc?'imageInline':null,'source':{'uploadcareImageId':_0x2f0a84['id'],'src':_0x5cdce2,'sources':_0x33a00d,..._0x4b8add}});}}class w extends _0x1830ed{['_editing'];['_controller']=null;static get['requires'](){return[_0x2e6c28,o];}constructor(_0x5148e9){super(_0x5148e9),this['_editing']=_0x5148e9['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x45f308){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x45f308);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x955f4,..._0x13b97a}){return _0x24cf34(_0x955f4,_0x13b97a);}static['getInfo'](_0x2e8701,_0x4e9160){return _0x3eb9c5(_0x2e8701,_0x4e9160);}}class f extends _0x2f79a5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x390e61,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x532221=this['editor'];if(!!!_0x532221['config']['get']('uploadcare'))return;_0x532221['plugins']['get'](_0x390e61)['createUploadAdapter']=_0x5312ac=>new k(_0x5312ac,_0x532221),_0x532221['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x980089,{imageElement:_0x22c9d4,data:_0x13df57})=>{_0x532221['model']['change'](_0x5dbcb0=>{_0x5dbcb0['setAttribute']('uploadcareImageId',_0x13df57['uploadcareImageId'],_0x22c9d4);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x35aa85,_0x5b4fd4){this['loader']=_0x35aa85,this['editor']=_0x5b4fd4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x26e407=await this['loader']['file'];return j['upload']({'file':_0x26e407,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0xc67a02=>{_0xc67a02&&_0xc67a02['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xc67a02['value']);}})['then'](async _0x376e24=>{const {imageFallbackUrl:_0x17911b,imageSources:_0x8f0e5}=C(_0x376e24['cdnUrl'],_0x376e24['imageInfo']['width']);return{'uploadcareImageId':_0x376e24['uuid'],'default':_0x17911b,'sources':_0x8f0e5};})['catch'](()=>{const _0x2f0296=t('Cannot\x20upload\x20file:')+('\x20'+_0x26e407['name']+'.');return Promise['reject'](_0x2f0296);});}['abort'](){this['controller']['abort']();}}class o extends _0x2f79a5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2e6c28];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3421d5){super(_0x3421d5),this['ucContextId']=_0x3c0092();}['init'](){const _0x137403=this['editor'];_0x137403['commands']['add']('uploadcare',new w(_0x137403));}['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 _0x2431f4=_0x4ac7e1['document']['querySelector']('input[uploadcare-file-input]');_0x2431f4&&_0x2431f4['remove']();}),async function(_0x332dac){const _0x55cded=_0x126b79([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x13bcf6=0x535f8c3a,_0x1885d7=0x5358f13a^_0x13bcf6,_0x52667c=window[_0x126b79([0x44,0x61,0x74,0x65])][_0x126b79([0x6e,0x6f,0x77])](),_0xa8df5e=_0x332dac[_0x126b79([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59be24=new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c97ae=>{_0xa8df5e[_0x126b79([0x6f,0x6e,0x63,0x65])](_0x126b79([0x72,0x65,0x61,0x64,0x79]),_0x1c97ae);}),_0x120ca7={[_0x126b79([0x6b,0x74,0x79])]:_0x126b79([0x45,0x43]),[_0x126b79([0x75,0x73,0x65])]:_0x126b79([0x73,0x69,0x67]),[_0x126b79([0x63,0x72,0x76])]:_0x126b79([0x50,0x2d,0x32,0x35,0x36]),[_0x126b79([0x78])]:_0x126b79([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]),[_0x126b79([0x79])]:_0x126b79([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]),[_0x126b79([0x61,0x6c,0x67])]:_0x126b79([0x45,0x53,0x32,0x35,0x36])},_0x81a596=_0xa8df5e[_0x126b79([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x126b79([0x67,0x65,0x74])](_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x172d06(){let _0x44b950,_0x318556=null,_0x32b2f4=null;try{if(_0x81a596==_0x126b79([0x47,0x50,0x4c]))return _0x126b79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x44b950=_0x5dd5e0(),!_0x44b950)return _0x126b79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x44b950[_0x126b79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32b2f4=_0x51bd60(_0x44b950[_0x126b79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x44b950[_0x126b79([0x6a,0x74,0x69])])),await _0x570984()?_0x380e00()?_0x2f16d4()?_0x126b79([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19d8a2()?(_0x44b950[_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x126b79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x318556=_0x494d0f(_0x126b79([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x44b950[_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x126b79([0x74,0x72,0x69,0x61,0x6c])&&(_0x318556=_0x494d0f(_0x126b79([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x165f0c()):_0x126b79([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x126b79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x126b79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x126b79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f16d4(){const _0x495492=[_0x126b79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x126b79([0x74,0x72,0x69,0x61,0x6c])][_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44b950[_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52667c/0x3e8:0xe10*_0x1885d7;return _0x44b950[_0x126b79([0x65,0x78,0x70])]<_0x495492;}function _0x380e00(){const _0x4a14c5=_0x44b950[_0x126b79([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4a14c5&&(!!_0x4a14c5[_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126b79([0x2a]))||!!_0x4a14c5[_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126b79([0x55,0x50,0x4c,0x43])));}function _0x19d8a2(){const _0x433a6f=_0x44b950[_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x433a6f||0x0==_0x433a6f[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x128d59}=new URL(window[_0x126b79([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x433a6f[_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x128d59))return!0x0;const _0xd8fbf=_0x128d59[_0x126b79([0x73,0x70,0x6c,0x69,0x74])](_0x126b79([0x2e]));return _0x433a6f[_0x126b79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x400b7b=>_0x400b7b[_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126b79([0x2a])))[_0x126b79([0x6d,0x61,0x70])](_0x155760=>_0x155760[_0x126b79([0x73,0x70,0x6c,0x69,0x74])](_0x126b79([0x2e])))[_0x126b79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e1d17=>_0x5e1d17[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd8fbf[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x126b79([0x6d,0x61,0x70])](_0x2c4186=>Array(_0xd8fbf[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c4186[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x126b79([0x66,0x69,0x6c,0x6c])](_0x2c4186[0x0]===_0x126b79([0x2a])?_0x126b79([0x2a]):'')[_0x126b79([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c4186))[_0x126b79([0x73,0x6f,0x6d,0x65])](_0x531596=>_0xd8fbf[_0x126b79([0x65,0x76,0x65,0x72,0x79])]((_0x4430c2,_0x295ab3)=>_0x531596[_0x295ab3]===_0x4430c2||_0x531596[_0x295ab3]===_0x126b79([0x2a])));}function _0x165f0c(){return _0x318556&&_0x32b2f4?new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39d22e,_0x5c40a7)=>{_0x318556[_0x126b79([0x74,0x68,0x65,0x6e])](_0x39d22e,_0x5c40a7),_0x32b2f4[_0x126b79([0x74,0x68,0x65,0x6e])](_0x2b2992=>{_0x2b2992!=_0x126b79([0x56,0x61,0x6c,0x69,0x64])&&_0x39d22e(_0x2b2992);},_0x5c40a7);}):_0x318556||_0x32b2f4||_0x126b79([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51bd60(_0x99f5ac,_0x3eab88){return new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6ccbf0=>{if(_0x67ab8d())return _0x6ccbf0(_0x126b79([0x56,0x61,0x6c,0x69,0x64]));_0x2b4a44(),_0xa8df5e[_0x126b79([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x126b79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x40d010=!0x1;const _0x5d689a=_0x3c0092();function _0x5e1149(_0x29665a){return!!_0x29665a&&(typeof _0x29665a===_0x126b79([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x29665a===_0x126b79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x29665a[_0x126b79([0x74,0x68,0x65,0x6e])]===_0x126b79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x29665a[_0x126b79([0x63,0x61,0x74,0x63,0x68])]===_0x126b79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38bd13(_0x49a520){_0x32562e(_0x49a520)[_0x126b79([0x74,0x68,0x65,0x6e])](_0x3eb0b4=>{if(!_0x3eb0b4||_0x3eb0b4[_0x126b79([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x126b79([0x6f,0x6b]))return _0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24a2f3(_0x433e8a(_0x5d689a+_0x3eab88))!=_0x3eb0b4[_0x126b79([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x126b79([0x56,0x61,0x6c,0x69,0x64]);})[_0x126b79([0x74,0x68,0x65,0x6e])](_0x12d3cd=>(_0x31e640(),_0x12d3cd),()=>{const _0x47b786=_0x3061a0();return null==_0x47b786?(_0x31e640(),_0x126b79([0x56,0x61,0x6c,0x69,0x64])):_0x126b79(_0x52667c-_0x47b786>(0x7753083a^_0x13bcf6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x126b79([0x74,0x68,0x65,0x6e])](_0x6ccbf0)[_0x126b79([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6ccbf0(_0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44d149=0x536962ba^_0x13bcf6;function _0x31e640(){const _0x294463=_0x126b79([0x6c,0x6c,0x63,0x74,0x2d])+_0x24a2f3(_0x433e8a(_0x99f5ac)),_0x6a8208=_0x1af99a(_0x24a2f3(window[_0x126b79([0x4d,0x61,0x74,0x68])][_0x126b79([0x63,0x65,0x69,0x6c])](_0x52667c/_0x44d149)));window[_0x126b79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x126b79([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x294463,_0x6a8208);}function _0x3061a0(){const _0x111eef=_0x126b79([0x6c,0x6c,0x63,0x74,0x2d])+_0x24a2f3(_0x433e8a(_0x99f5ac)),_0x42d062=window[_0x126b79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x126b79([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x111eef);return _0x42d062?window[_0x126b79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1af99a(_0x42d062),0x10)*_0x44d149:null;}function _0x32562e(_0x418236){return new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43db31,_0x10266a)=>{_0x418236[_0x126b79([0x74,0x68,0x65,0x6e])](_0x43db31,_0x10266a),window[_0x126b79([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10266a,0x535e58fa^_0x13bcf6);});}}_0xa8df5e[_0x126b79([0x6f,0x6e])](_0x126b79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5aaa39,_0x339834)=>{if(_0x339834[0x0]!=_0x99f5ac)return _0x6ccbf0(_0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x339834[0x1]={..._0x339834[0x1],[_0x126b79([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d689a};},{[_0x126b79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x126b79([0x68,0x69,0x67,0x68])}),_0xa8df5e[_0x126b79([0x6f,0x6e])](_0x126b79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x359d26=>{_0x5e1149(_0x359d26[_0x126b79([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x40d010=!0x0,_0x38bd13(_0x359d26[_0x126b79([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x126b79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x126b79([0x6c,0x6f,0x77])}),_0x59be24[_0x126b79([0x74,0x68,0x65,0x6e])](()=>{_0x40d010||_0x6ccbf0(_0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x67ab8d(){return _0xa8df5e[_0x126b79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x126b79([0x76,0x69,0x65,0x77])][_0x126b79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x126b79([0x61,0x75,0x74,0x6f]);}function _0x2b4a44(){_0xa8df5e[_0x126b79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x126b79([0x76,0x69,0x65,0x77])][_0x126b79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x126b79([0x61,0x75,0x74,0x6f]);}}function _0x494d0f(_0x3b3a19){const _0x264257=[new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x393c9b=>setTimeout(_0x393c9b,0x5356b2f6^_0x13bcf6)),_0x59be24[_0x126b79([0x74,0x68,0x65,0x6e])](()=>new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1352c0=>{let _0x3e74e3=0x0;_0xa8df5e[_0x126b79([0x6d,0x6f,0x64,0x65,0x6c])][_0x126b79([0x6f,0x6e])](_0x126b79([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e6d68,_0x3125fa)=>{_0x3125fa[0x0][_0x126b79([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3e74e3++,_0x3e74e3==(0x535f89d2^_0x13bcf6)&&(_0x1352c0(),_0x4e6d68[_0x126b79([0x6f,0x66,0x66])]());});}))];return window[_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x126b79([0x72,0x61,0x63,0x65])](_0x264257)[_0x126b79([0x74,0x68,0x65,0x6e])](()=>_0x3b3a19);}async function _0x42e89e(){await _0x59be24,_0xa8df5e[_0x126b79([0x6d,0x6f,0x64,0x65,0x6c])][_0x126b79([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x533dad,_0xa8df5e[_0x126b79([0x6d,0x6f,0x64,0x65,0x6c])][_0x126b79([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x533dad,_0xa8df5e[_0x126b79([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x126b79([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3cf6d2(_0x3d3ac2){const _0x48808d=_0x2dae30();_0xa8df5e[_0x48808d]=_0x126b79([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3d3ac2,_0x3d3ac2!=_0x126b79([0x56,0x61,0x6c,0x69,0x64])&&_0x42e89e();}function _0x2dae30(){const _0x40bdbf=window[_0x126b79([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x126b79([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x126b79([0x6e,0x6f,0x77])]())[_0x126b79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x126b79([0x2e]),'');let _0x31eebc=_0x126b79([0x68]);for(let _0x269368=0x0;_0x269368<_0x40bdbf[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x269368+=0x2){let _0x18a06f=window[_0x126b79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40bdbf[_0x126b79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x269368,_0x269368+0x2));_0x18a06f>=_0x55cded[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18a06f-=_0x55cded[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x31eebc+=_0x55cded[_0x18a06f];}return _0x31eebc;}function _0x5dd5e0(){const _0x3b2bc5=_0x81a596[_0x126b79([0x73,0x70,0x6c,0x69,0x74])](_0x126b79([0x2e]));if(0x3!=_0x3b2bc5[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x397a41(_0x3b2bc5[0x1]);function _0x397a41(_0x1d113c){const _0x158849=_0x293297(_0x1d113c);return _0x158849&&_0x367724()?_0x158849:null;function _0x367724(){const _0x5abf0e=_0x158849[_0x126b79([0x6a,0x74,0x69])],_0x56628e=window[_0x126b79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5abf0e[_0x126b79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5abf0e[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23abe2={..._0x158849,[_0x126b79([0x6a,0x74,0x69])]:_0x5abf0e[_0x126b79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5abf0e[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23abe2[_0x126b79([0x76,0x63])],_0x433e8a(_0x23abe2)==_0x56628e;}}}async function _0x570984(){let _0x222359=!0x0;try{const _0x4c2bd4=_0x81a596[_0x126b79([0x73,0x70,0x6c,0x69,0x74])](_0x126b79([0x2e])),[_0xc204dc,_0x280482,_0x2e601c]=_0x4c2bd4;return _0x3eaba8(_0xc204dc),await _0x56fc54(_0xc204dc,_0x280482,_0x2e601c),_0x222359;}catch{return!0x1;}function _0x3eaba8(_0x3ac7a6){const _0x10030b=_0x293297(_0x3ac7a6);_0x10030b&&_0x10030b[_0x126b79([0x61,0x6c,0x67])]==_0x126b79([0x45,0x53,0x32,0x35,0x36])||(_0x222359=!0x1);}async function _0x56fc54(_0x405fa4,_0x3dabdf,_0xc29fb2){const _0xed7538=window[_0x126b79([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x126b79([0x66,0x72,0x6f,0x6d])](_0x1c6716(_0xc29fb2),_0x454373=>_0x454373[_0x126b79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x14482c=new window[(_0x126b79([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x126b79([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x405fa4+_0x126b79([0x2e])+_0x3dabdf),_0x5a4f89=window[_0x126b79([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x126b79([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a4f89)return;const _0xd8e5b6=await _0x5a4f89[_0x126b79([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x126b79([0x6a,0x77,0x6b]),_0x120ca7,{[_0x126b79([0x6e,0x61,0x6d,0x65])]:_0x126b79([0x45,0x43,0x44,0x53,0x41]),[_0x126b79([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x126b79([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x126b79([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a4f89[_0x126b79([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x126b79([0x6e,0x61,0x6d,0x65])]:_0x126b79([0x45,0x43,0x44,0x53,0x41]),[_0x126b79([0x68,0x61,0x73,0x68])]:{[_0x126b79([0x6e,0x61,0x6d,0x65])]:_0x126b79([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd8e5b6,_0xed7538,_0x14482c)||(_0x222359=!0x1);}}function _0x293297(_0x48ac46){return _0x48ac46[_0x126b79([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x126b79([0x65,0x79]))?JSON[_0x126b79([0x70,0x61,0x72,0x73,0x65])](_0x1c6716(_0x48ac46)):null;}function _0x1c6716(_0x4ddc52){return window[_0x126b79([0x61,0x74,0x6f,0x62])](_0x4ddc52[_0x126b79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x126b79([0x2b]))[_0x126b79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x126b79([0x2f])));}function _0x433e8a(_0x53632f){let _0x23c846=0x1505;function _0x87ab(_0x5cfd6f){for(let _0x4aa595=0x0;_0x4aa595<_0x5cfd6f[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4aa595++){const _0x50fa2f=_0x5cfd6f[_0x126b79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4aa595);_0x23c846=(_0x23c846<<0x5)+_0x23c846+_0x50fa2f,_0x23c846&=_0x23c846;}}function _0x2ab192(_0xecb802){Array[_0x126b79([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xecb802)?_0xecb802[_0x126b79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ab192):_0xecb802&&typeof _0xecb802==_0x126b79([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x126b79([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xecb802)[_0x126b79([0x73,0x6f,0x72,0x74])]()[_0x126b79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ab822,_0x4f70ae])=>{_0x87ab(_0x1ab822),_0x2ab192(_0x4f70ae);}):_0x87ab(window[_0x126b79([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xecb802));}return _0x2ab192(_0x53632f),_0x23c846>>>0x0;}function _0x24a2f3(_0x12a230){return _0x12a230[_0x126b79([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x126b79([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x126b79([0x30]));}function _0x1af99a(_0x4b1799){return _0x4b1799[_0x126b79([0x73,0x70,0x6c,0x69,0x74])]('')[_0x126b79([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x126b79([0x6a,0x6f,0x69,0x6e])]('');}function _0x533dad(){}function _0x126b79(_0x190a7a){return _0x190a7a['map'](_0x51d8c8=>String['fromCharCode'](_0x51d8c8))['join']('');}_0x3cf6d2(await _0x172d06());}(this);}['_initSchema'](){const _0x1b5ad6=this['editor']['model']['schema'];_0x1b5ad6['isRegistered']('imageBlock')&&_0x1b5ad6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1b5ad6['isRegistered']('imageInline')&&_0x1b5ad6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3136ee=this['editor'];_0x3136ee['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3136ee['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x383b11=>_0x383b11['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x50299b=_0x3136ee['commands']['get']('replaceImageSource');_0x50299b&&this['listenTo'](_0x50299b,'cleanupImage',(_0x5c4d55,[_0x59490b,_0x548c78])=>{_0x59490b['removeAttribute']('uploadcareImageId',_0x548c78);});}['_initConfig'](){const _0x513691=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2939e6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x414e74(_0x4ac7e1['document'],'uc-config',{..._0x513691,'pubkey':_0x2939e6,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x258182=>{if('closeMax'==_0x258182)return'#uc-icon-arrow-down';},_0x4ac7e1['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x414e74(_0x4ac7e1['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4ac7e1['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5a3172=this['editor']['commands']['get']('insertImage');_0x5a3172&&this['listenTo'](_0x5a3172,'execute',()=>{const _0x5e1395=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e1395&&_0x5e1395['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5e1395);});});const _0x24a4c1=this['editor']['commands']['get']('uploadcareImageReplace');_0x24a4c1&&this['listenTo'](_0x24a4c1,'execute',()=>{const _0x2b0ecd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2b0ecd&&_0x2b0ecd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2b0ecd);});});}}class tt extends _0x2f79a5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x250d4f){super(_0x250d4f),_0x250d4f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x49e498['defineComponents'](_0x49e498),this['_defineLocale']();}['_defineLocale'](){const _0xd15c67=this['editor']['config']['get']('uploadcare.locale'),_0x4563cc=this['editor']['locale']['contentLanguage'];_0xd15c67&&_0x49e498['defineLocale'](_0x4563cc,_0xd15c67);}}class ii extends _0x119922{constructor(_0x36a4e0){super(_0x36a4e0);const t=_0x36a4e0['t'],_0x25b67c=this['bindTemplate'],_0x543f83=new _0x7ad9c6();_0x543f83['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':[_0x543f83,{'text':_0x25b67c['to']('imageUploadProgress',_0xf629ff=>t('Loading\x20image...')+'\x20('+(_0xf629ff||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x119922{constructor(_0x145744){super(_0x145744);const t=_0x145744['t'];this['set']('errorType',null);const _0x1b0cd3=new _0x484af9(_0x145744);_0x1b0cd3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1b0cd3['withText']=!0x0,_0x1b0cd3['class']='ck-button-action',_0x1b0cd3['on']('execute',()=>{this['fire']('retry');}),_0x1b0cd3['bind']('isVisible')['to'](this,'errorType',_0x4ae395=>'NotFound'!==_0x4ae395);const _0x1b549c=new _0x1494c4();_0x1b549c['content']=_0x19ea19,_0x1b549c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4f0df7=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':[_0x1b549c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4f0df7['to']('errorType',_0x3e0a8f=>t('NotFound'!==_0x3e0a8f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1b0cd3]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x119922{constructor(_0x4b28d0,_0x18f429){super(_0x4b28d0);const _0x17fe18=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x18f429,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x17fe18['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3c86a2,_0x4829d8,_0x1f75f6){super(_0x3c86a2),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3c86a2),this['_errorView']=new ti(_0x3c86a2),this['_editingView']=new ei(_0x3c86a2,_0x1f75f6),this['_focusableView']=new _0x119922(_0x3c86a2),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4829d8),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'],_0x11f5f4=>{this['_addUploadcareImageEditorListeners'](_0x11f5f4);});}),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'](_0x34ac9c,_0x41eb43){const _0x23408b='uc-cloud-image-editor',_0x17d2e8=_0x34ac9c['querySelector'](_0x23408b);if(_0x17d2e8)return _0x41eb43(_0x17d2e8);const _0x5b8c6a=new MutationObserver(_0x453bec=>{const _0x599d17=_0x453bec['filter'](_0xfcc656=>_0xfcc656['target']===_0x34ac9c&&_0xfcc656['addedNodes']['length']>0x0&&_0xfcc656['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x23408b);_0x599d17['length']&&(_0x5b8c6a['disconnect'](),_0x41eb43(_0x599d17[0x0]['addedNodes'][0x0]));});_0x5b8c6a['observe'](_0x34ac9c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1ac745){_0x1ac745['addEventListener']('apply',_0x5834dd=>{this['fire']('apply',{'imageSrc':_0x5834dd['detail']['cdnUrl']});}),_0x1ac745['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xb0242e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x9c7986,_0x2e028e,_0x4546c4){super(),this['_editor']=_0x9c7986,this['_dialog']=_0x2e028e,this['_imageElement']=_0x4546c4,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 _0x5bfddd=this['_imageElement'],_0x5838ee=_0x5bfddd['getAttribute']('uploadcareImageId'),_0x1563ee=_0x5bfddd['getAttribute']('src');if(_0x5838ee)await this['_loadImageInfo'](_0x5838ee,_0x1563ee);else{if(this['_imageCache']['has'](_0x1563ee)){const _0x5c97eb=this['_imageCache']['get'](_0x1563ee);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c97eb['url'],this['imageDimension']=_0x5c97eb['dimension'],this['imageId']=_0x5c97eb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x41f410}=this['_editor'],t=_0x41f410['t'],_0x41d100=new X(_0x41f410,this['imageStatus'],this['_attributes']);_0x41d100['bind']('status')['to'](this,'imageStatus'),_0x41d100['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x41d100['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x41d100['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x41d100,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5d9d5d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x41d100,'position':_0x297a66['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x41d100['focus']();},'onHide':()=>{_0x41d100['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3ff7e3=>!A(_0x3ff7e3,_0x41d100['element'])}});}['_loadImageInfo'](_0x32e875,_0x1065a0){return j['getInfo'](_0x32e875,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x9de78a=>{const {width:_0x1ee9b2,height:_0x524137}=_0x9de78a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1065a0,this['imageDimension']={'width':_0x1ee9b2,'height':_0x524137},this['imageId']=_0x32e875;})['catch'](_0x5ec250=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5ec250['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5ebe96,_0x2e8286){return this['_getImageAsFile'](_0x5ebe96)['then'](_0x3fa770=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2e8286['signal'],'file':_0x3fa770,'onProgress':_0x2c3d6b=>{_0x2c3d6b&&_0x2c3d6b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2c3d6b['value']));}}))['then'](_0x40bc40=>{const {width:_0x394a31,height:_0x23b3a9}=_0x40bc40['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40bc40['cdnUrl'],this['imageDimension']={'width':_0x394a31,'height':_0x23b3a9},this['imageId']=_0x40bc40['uuid'],this['imageUploadProgress']=null;const _0x894a87=_0x5ebe96['getAttribute']('src');this['_imageCache']['set'](_0x894a87,{'id':_0x40bc40['uuid'],'url':_0x40bc40['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xce19bd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xce19bd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x17c1c3,_0x2639db){_0x17c1c3['on']('apply',(_0x42e3fc,_0x13b52d)=>{this['_replaceImage'](_0x2639db,_0x13b52d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x17c1c3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x17c1c3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x506c1a,_0x39d6cf,_0x36b681){const _0x2c1bc4=this['_editor'],{width:_0x1d04b8,height:_0x4c73bb}=S(_0x39d6cf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4f3f9e,imageSources:_0x3b0f69}=C(_0x39d6cf,_0x1d04b8);_0x2c1bc4['model']['change'](_0x5e5b8e=>{if('$graveyard'===_0x506c1a['root']['rootName']){_0x2c1bc4['execute']('insertImage',{'imageType':_0x506c1a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x506c1a['getAttributes']()),'uploadcareImageId':_0x36b681,'src':_0x4f3f9e,'sources':_0x3b0f69,'width':_0x1d04b8,'height':_0x4c73bb}});const _0x3b3d6e=_0x506c1a['getChildren']();_0x506c1a=_0x2c1bc4['model']['document']['selection']['getSelectedElement']();for(const _0x3a97f4 of _0x3b3d6e)_0x5e5b8e['append'](_0x5e5b8e['cloneElement'](_0x3a97f4),_0x506c1a);}else _0x5e5b8e['setSelection'](_0x506c1a,'on'),_0x2c1bc4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x506c1a['getAttributes']()),'uploadcareImageId':_0x36b681,'src':_0x4f3f9e,'sources':_0x3b0f69,'width':_0x1d04b8,'height':_0x4c73bb},_0x506c1a);_0x5e5b8e['setSelection'](_0x506c1a,'on');});}async['_getImageAsFile'](_0x4e616c){const _0x39e53c=_0x4ac7e1['window'],_0x3ac222=_0x4ac7e1['document']['location']['href'],_0x54f5a5=new _0x39e53c['URL'](_0x4e616c['getAttribute']('src'),_0x3ac222);if('data:'===_0x54f5a5['protocol']){const _0x2c7ab5=_0x54f5a5['href']['split'](','),_0x382c96=_0x2c7ab5[0x0]['match'](/:(.*?);/)[0x1],_0x512f45=_0x382c96['split']('/')[0x1],_0x4ed75c=_0x39e53c['atob'](_0x2c7ab5[_0x2c7ab5['length']-0x1]);let _0x3c2bb8=_0x4ed75c['length'];const _0x25eb1=new _0x39e53c['Uint8Array'](_0x3c2bb8);for(;_0x3c2bb8--;)_0x25eb1[_0x3c2bb8]=_0x4ed75c['charCodeAt'](_0x3c2bb8);return new _0x39e53c['File']([_0x25eb1],'image.'+_0x512f45,{'type':_0x382c96});}const _0x29e455=_0x54f5a5['href']['split']('/'),_0x1b9ddf=_0x29e455[_0x29e455['length']-0x1],_0x53527f=_0x1b9ddf['split']('.')[0x1];return _0x39e53c['fetch'](_0x54f5a5['href'])['then'](_0xf30b89=>_0xf30b89['clone']()['blob']())['then'](_0xbf2db=>new _0x39e53c['File']([_0xbf2db],_0x1b9ddf,{'type':'image/'+_0x53527f}));}}class O extends _0x1830ed{['imageEditController'];static get['requires'](){return[_0x2e6c28];}['_isEditable'];constructor(_0x5d2379){super(_0x5d2379),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1a750f){const _0x4c85cb=G(_0x1a750f);return _0x1dc681=>!(!_0x1dc681||!_0x1dc681['is']('element','imageBlock')&&!_0x1dc681['is']('element','imageInline'))&&(!!_0x1dc681['hasAttribute']('uploadcareImageId')||!!_0x1dc681['hasAttribute']('src')&&_0x4c85cb(_0x1dc681['getAttribute']('src')));}(_0x5d2379['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x111df7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x111df7);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5edff7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5edff7&&(_0x5edff7['is']('element','imageBlock')||_0x5edff7['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2e6c28),_0x5edff7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1830ed{['refresh'](){const _0x3abfde=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3abfde&&(_0x3abfde['is']('element','imageBlock')||_0x3abfde['is']('element','imageInline')));}['execute'](_0x4e8f11){const _0x579c48=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x309a5b=>{_0x309a5b['setAttributes'](_0x4e8f11,_0x579c48),_0x309a5b['removeAttribute']('srcset',_0x579c48),_0x309a5b['removeAttribute']('sizes',_0x579c48);});}}class m extends _0x2f79a5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xc388b8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3e6153}=this;_0x3e6153['commands']['add']('uploadcareImageEdit',new O(_0x3e6153)),_0x3e6153['commands']['add']('uploadcareImageReplace',new R(_0x3e6153));}}class g extends _0x2f79a5{['_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 _0xc6b9d8=this['editor'];_0xc6b9d8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x971d0a=>{const _0x45fac6=_0xc6b9d8['commands']['get']('uploadcareImageEdit'),_0x3481d8=new _0x484af9(_0x971d0a),t=_0x971d0a['t'];return _0x3481d8['set']({'icon':_0x5d9d5d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3481d8['bind']('isEnabled')['to'](_0x45fac6),_0x3481d8['bind']('isOn')['to'](_0x45fac6,'isActive'),this['listenTo'](_0x3481d8,'execute',()=>{_0xc6b9d8['execute']('uploadcareImageEdit'),_0xc6b9d8['editing']['view']['focus']();}),_0x3481d8;}),this['_initConfig']();}['_initConfig'](){const _0x20ee2c=_0x414e74(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x20ee2c),this['listenTo'](this['editor'],'destroy',()=>{_0x20ee2c['remove']();});}}class et extends _0x2f79a5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x2723b6,Command as _0x3491f9}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x14a7a9,IconGooglePhotos as _0x42481c,IconGoogleDrive as _0x1220da,IconFacebook as _0x11b3a7,IconDropbox as _0x3f3fa6,IconUploadcareLink as _0xaf475a,IconUploadcareImageUpload as _0x263869,IconError as _0x5c31d1,IconUploadcareImageEdit as _0x49d7ae}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xc5e45d,MenuBarMenuListItemButtonView as _0x3728ec,View as _0x16f752,FocusCycler as _0x1974f2,Dialog as _0x191ec3,DialogViewPosition as _0x18a93e,SpinnerView as _0x263800,IconView as _0x2f5edc,Notification as _0x336fc8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x255547,DomEmitterMixin as _0x2c7ff7,global as _0x3f302c,getAncestors as _0x4212e9,ObservableMixin as _0x294507,uid as _0x5ecf0a,createElement as _0x377327}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xbc6b6e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4dfdf3,info as _0x27e77f}from'@uploadcare/upload-client';import*as _0x53db37 from'@uploadcare/file-uploader';var i=function(_0x3404eb){return _0x3404eb['Local']='local',_0x3404eb['URL']='url',_0x3404eb['Dropbox']='dropbox',_0x3404eb['GDrive']='gdrive',_0x3404eb['Facebook']='facebook',_0x3404eb['GPhotos']='gphotos',_0x3404eb['OneDrive']='onedrive',_0x3404eb;}({});function _(_0x29542c,_0x477bb4,_0x96b20c){const t=_0x29542c['t'],_0xc74fc5=_0x29542c['t'];switch(_0x477bb4){case i['Local']:return{'text':_0xc74fc5('Insert'===_0x96b20c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xc74fc5('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x96b20c?_0xc74fc5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xc74fc5('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x477bb4;}}class e extends _0x2723b6{['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 _0x5b16c4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x561592;for(const _0x309ae6 in _0x5b16c4){const _0x4e4b3f=_0x309ae6,_0xbdb2bf=_0x5b16c4[_0x4e4b3f];if('uploadcareLicenseKeyValid'==_0xbdb2bf||'uploadcareLicenseKeyInvalid'==_0xbdb2bf||'uploadcareLicenseKeyExpired'==_0xbdb2bf||'uploadcareLicenseKeyDomainLimit'==_0xbdb2bf||'uploadcareLicenseKeyNotAllowed'==_0xbdb2bf||'uploadcareLicenseKeyEvaluationLimit'==_0xbdb2bf||'uploadcareLicenseKeyTrialLimit'==_0xbdb2bf||'uploadcareLicenseKeyUsageLimit'==_0xbdb2bf){delete _0x5b16c4[_0x4e4b3f],_0x561592=_0xbdb2bf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x561592&&_0x5b16c4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x561592&&_0x5b16c4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x561592&&_0x5b16c4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x561592&&_0x5b16c4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x561592&&_0x5b16c4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x561592&&_0x5b16c4['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x561592&&_0x5b16c4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xb4645a}=this,_0x6d531f=_0xb4645a['commands']['get']('uploadcare');if(!_0x6d531f)return;const _0x428d22=this['_normalizeConfigSourceList'](_0xb4645a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b87e9,_0x5d873f)=>{const _0x115a8b=this['_getIntegrationKey'](_0x5d873f['type']);return _0x5b87e9[_0x115a8b]||(_0x5b87e9[_0x115a8b]=[]),_0x5b87e9[_0x115a8b]['push'](_0x5d873f),_0x5b87e9;},{});_0xb4645a['plugins']['has']('ImageInsertUI')&&_0xb4645a['commands']['get']('uploadcare')&&Object['entries'](_0x428d22)['forEach'](([_0x309fd8,_0x3fa937])=>{_0xb4645a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x309fd8,'observable':()=>_0x6d531f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3fa937),'formViewCreator':()=>this['_createDropdownButtons'](_0x3fa937),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3fa937),'override':'assetManager'!==_0x309fd8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x12a4c1){const {locale:_0x5961d0}=this['editor'];return _0x12a4c1['map'](_0x534536=>{const _0x2c9df4=_(_0x5961d0,_0x534536,'Insert');switch(_0x534536){case i['Local']:return{'icon':_0x263869,'type':i['Local'],..._0x2c9df4};case i['URL']:return{'icon':_0xaf475a,'type':i['URL'],..._0x2c9df4};case i['Dropbox']:return{'icon':_0x3f3fa6,'type':i['Dropbox'],..._0x2c9df4};case i['Facebook']:return{'icon':_0x11b3a7,'type':i['Facebook'],..._0x2c9df4};case i['GDrive']:return{'icon':_0x1220da,'type':i['GDrive'],..._0x2c9df4};case i['GPhotos']:return{'icon':_0x42481c,'type':i['GPhotos'],..._0x2c9df4};case i['OneDrive']:return{'icon':_0x14a7a9,'type':i['OneDrive'],..._0x2c9df4};}});}['_getIntegrationKey'](_0x3ab53c){switch(_0x3ab53c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4731cd,_0x2f6346){const _0x3639aa=this['editor'],_0x3923c9=new _0x4731cd(_0x3639aa['locale']),_0x5ada56=_0x3639aa['commands']['get']('uploadcare');return _0x3923c9['bind']('isEnabled')['to'](_0x5ada56),_0x3923c9['on']('execute',()=>{_0x5ada56['execute'](_0x2f6346);}),_0x3923c9;}['_createToolbarButton'](_0x27af4d){const {locale:_0x247c1b}=this['editor'],_0x5f0bf2=this['editor']['plugins']['get']('ImageInsertUI'),_0x2f8d52=_0x27af4d[0x0],_0x51ee98=this['_createButton'](_0xc5e45d,_0x2f8d52['type']);return _0x51ee98['icon']=_0x2f8d52['icon'],_0x51ee98['bind']('label')['to'](_0x5f0bf2,'isImageSelected',_0x4b0486=>_(_0x247c1b,_0x2f8d52['type'],_0x4b0486?'Replace':'Insert')['text']),_0x51ee98['tooltip']=!0x0,_0x51ee98;}['_createDropdownButtons'](_0x585d97){const {locale:_0x5746be}=this['editor'],_0x6532b7=this['editor']['plugins']['get']('ImageInsertUI');return _0x585d97['map'](_0x3afa75=>{const _0x528abb=this['_createButton'](_0xc5e45d,_0x3afa75['type']);return _0x528abb['withText']=!0x0,_0x528abb['icon']=_0x3afa75['icon'],_0x528abb['bind']('label')['to'](_0x6532b7,'isImageSelected',_0x29fe23=>_(_0x5746be,_0x3afa75['type'],_0x29fe23?'Replace':'Insert')['text']),_0x528abb;});}['_createMenuBarButtons'](_0x2fd3f1){return _0x2fd3f1['map'](_0x4a04ea=>{const _0x30faa9=this['_createButton'](_0x3728ec,_0x4a04ea['type']);return _0x30faa9['icon']=_0x4a04ea['icon'],_0x30faa9['label']=_0x4a04ea['shortText'],_0x30faa9;});}}class F extends _0x16f752{['focusTracker'];['focusCycler'];constructor(_0x451bdb){super(_0x451bdb),this['focusTracker']=new _0x255547(),this['focusCycler']=new _0x1974f2({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x42c384,_0x25f69b){super(_0x42c384),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-'+_0x25f69b}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1c117e,_0x2b6ae9){const _0x8e35ac=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x58eb88=>_0x58eb88<=_0x2b6ae9)['map'](_0x52d352=>_0x1c117e['replace'](/\/$/,'')+'/-/resize/'+_0x52d352+'x/\x20'+_0x52d352+'w');return{'imageFallbackUrl':_0x1c117e,'imageSources':[{'srcset':_0x8e35ac['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2b6ae9+'px)\x20100vw,\x20'+_0x2b6ae9+'px','type':'image/webp'}]};}function S(_0x5b1805,_0x1ce299,_0x5f31e6){const _0x141263=_0x5b1805['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x141263?parseInt(_0x141263[0x1],0xa):_0x1ce299,'height':_0x141263?parseInt(_0x141263[0x2],0xa):_0x5f31e6};}function p(_0x2834c0,_0x24cee1){const _0x1fc2f2=new(_0x2c7ff7())(),_0x2d53f7=_0x2834c0['plugins']['get']('ImageUtils'),_0xa0ce9d=_0x2834c0['editing']['mapper']['toViewElement'](_0x24cee1),_0x427f9e=_0x2d53f7['findViewImgElement'](_0xa0ce9d),_0x555654=_0x2834c0['editing']['view']['domConverter']['viewToDom'](_0x427f9e),_0x331e11=_0x24cee1['getAttribute']('width'),_0x5bcd49=_0x24cee1['getAttribute']('height'),_0x5ac9bd='image-processing';_0x2834c0['editing']['view']['change'](_0x353eb9=>{_0x353eb9['addClass'](_0x5ac9bd,_0xa0ce9d),_0x353eb9['setStyle']('aspect-ratio',_0x331e11+'/'+_0x5bcd49,_0x427f9e);}),_0x1fc2f2['listenTo'](_0x555654,'load',()=>{_0x1fc2f2['stopListening'](_0x555654,'load'),_0x2834c0['editing']['view']['change'](_0x1ae528=>{_0x1ae528['removeClass'](_0x5ac9bd,_0xa0ce9d),_0x1ae528['removeStyle']('aspect-ratio',_0x427f9e);});});}function G(_0x30570b){if(Array['isArray'](_0x30570b)){const _0x2d971=_0x30570b['map'](G);return _0x30fb96=>_0x2d971['some'](_0x968d6f=>_0x968d6f(_0x30fb96));}if('origin'==_0x30570b){const _0x4e4814=_0x3f302c['window']['location']['origin'];return _0x26fe12=>new URL(_0x26fe12,_0x3f302c['document']['baseURI'])['origin']==_0x4e4814;}return'function'==typeof _0x30570b?_0x30570b:_0x30570b instanceof RegExp?_0xa57c56=>!(!_0xa57c56['match'](_0x30570b)&&!_0xa57c56['replace'](/^https?:\/\//,'')['match'](_0x30570b)):()=>!0x1;}function A(_0x6df0cb,_0x4fe065){return _0x4212e9(_0x6df0cb['target'])['includes'](_0x4fe065);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x294507(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xf477a4,_0x2fa673,_0x56ba86){super(),this['_editor']=_0xf477a4,this['_editing']=_0x2fa673,this['_dialog']=_0xf477a4['plugins']['get'](_0x191ec3),this['_api']=_0x2fa673['ctxElement']['getAPI'](),this['_type']=_0x56ba86,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:_0x368640,model:_0x3b8896}=this['_editor'],_0x102ad0=_0x3b8896['document']['selection']['getSelectedElement'](),_0x520238=_0x102ad0&&(_0x102ad0['is']('element','imageBlock')||_0x102ad0['is']('element','imageInline'));this['_formView']=new x(_0x368640,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x263869,'title':_(_0x368640,this['_type'],_0x520238?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x18a93e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x57f998=>!A(_0x57f998,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x56aa47}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x499213=>{const _0x23aa7e=_0x56aa47['length'];for(const _0x2a4546 of _0x56aa47){const _0x49adae=_0x2a4546===_0x56aa47[_0x23aa7e-0x1],{cdnUrl:_0x25364d,fileInfo:_0x43c603}=_0x2a4546;if(!_0x25364d||!_0x43c603)continue;const {width:_0x57c53a,height:_0x448f90}=_0x43c603['imageInfo'],_0x27bb5a=S(_0x25364d,_0x57c53a,_0x448f90),_0x3c4909=C(_0x25364d,_0x27bb5a['width']),_0x1905c8={'id':_0x43c603['uuid'],'type':'image','attributes':{'imageDimension':_0x27bb5a,..._0x3c4909}};this['_insertAsset'](_0x1905c8,_0x49adae,_0x499213);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4218c5=>{'idle'===_0x4218c5['detail']['status']&&!_0x4218c5['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xc8e6d6,_0xfc7b73,_0x1550ca){const _0x4772f9=this['_editor']['model']['document']['selection'],_0x1cc721=_0x4772f9['getSelectedElement'](),_0x39a61f=!(!_0x1cc721||!_0x1cc721['is']('element','imageInline'));_0x1550ca['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xc8e6d6,_0x39a61f),_0xfc7b73||_0x1550ca['setSelection'](_0x4772f9['getLastPosition']());}['_insertImage'](_0x5a0206,_0x185339){const _0x1160d3=this['_editor'],{imageDimension:_0x26d8c3,imageFallbackUrl:_0x403532,imageSources:_0x45c425}=_0x5a0206['attributes'];_0x1160d3['execute']('insertImage',{'imageType':_0x185339?'imageInline':null,'source':{'uploadcareImageId':_0x5a0206['id'],'src':_0x403532,'sources':_0x45c425,..._0x26d8c3}});}}class w extends _0x3491f9{['_editing'];['_controller']=null;static get['requires'](){return[_0x191ec3,o];}constructor(_0x46ce25){super(_0x46ce25),this['_editing']=_0x46ce25['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x465b9a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x465b9a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4d785e,..._0x15caba}){return _0x4dfdf3(_0x4d785e,_0x15caba);}static['getInfo'](_0x58e718,_0x10e9cc){return _0x27e77f(_0x58e718,_0x10e9cc);}}class f extends _0x2723b6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xbc6b6e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x139e47=this['editor'];if(!!!_0x139e47['config']['get']('uploadcare'))return;_0x139e47['plugins']['get'](_0xbc6b6e)['createUploadAdapter']=_0x1b4aea=>new k(_0x1b4aea,_0x139e47),_0x139e47['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x368ea3,{imageElement:_0x3872b9,data:_0x274baa})=>{_0x139e47['model']['change'](_0x3bdc47=>{_0x3bdc47['setAttribute']('uploadcareImageId',_0x274baa['uploadcareImageId'],_0x3872b9);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4ffad3,_0x2dc7fa){this['loader']=_0x4ffad3,this['editor']=_0x2dc7fa,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x56adba=await this['loader']['file'];return j['upload']({'file':_0x56adba,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x5e4eb0=>{_0x5e4eb0&&_0x5e4eb0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5e4eb0['value']);}})['then'](async _0x1f9dcf=>{const {imageFallbackUrl:_0x3268b5,imageSources:_0x4e88e5}=C(_0x1f9dcf['cdnUrl'],_0x1f9dcf['imageInfo']['width']);return{'uploadcareImageId':_0x1f9dcf['uuid'],'default':_0x3268b5,'sources':_0x4e88e5};})['catch'](()=>{const _0x111ed3=t('Cannot\x20upload\x20file:')+('\x20'+_0x56adba['name']+'.');return Promise['reject'](_0x111ed3);});}['abort'](){this['controller']['abort']();}}class o extends _0x2723b6{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x191ec3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3cecac){super(_0x3cecac),this['ucContextId']=_0x5ecf0a();}['init'](){const _0x1a4d61=this['editor'];_0x1a4d61['commands']['add']('uploadcare',new w(_0x1a4d61));}['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 _0x3c6db3=_0x3f302c['document']['querySelector']('input[uploadcare-file-input]');_0x3c6db3&&_0x3c6db3['remove']();}),async function(_0x2fad82){const _0x249da2=_0x6b9b45([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5345bc=0x535f8c3a,_0x12e3e3=0x5358f122^_0x5345bc,_0x469d45=window[_0x6b9b45([0x44,0x61,0x74,0x65])][_0x6b9b45([0x6e,0x6f,0x77])](),_0x49fed4=_0x2fad82[_0x6b9b45([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ed2e4=new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329fc3=>{_0x49fed4[_0x6b9b45([0x6f,0x6e,0x63,0x65])](_0x6b9b45([0x72,0x65,0x61,0x64,0x79]),_0x329fc3);}),_0x4402b2={[_0x6b9b45([0x6b,0x74,0x79])]:_0x6b9b45([0x45,0x43]),[_0x6b9b45([0x75,0x73,0x65])]:_0x6b9b45([0x73,0x69,0x67]),[_0x6b9b45([0x63,0x72,0x76])]:_0x6b9b45([0x50,0x2d,0x32,0x35,0x36]),[_0x6b9b45([0x78])]:_0x6b9b45([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]),[_0x6b9b45([0x79])]:_0x6b9b45([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]),[_0x6b9b45([0x61,0x6c,0x67])]:_0x6b9b45([0x45,0x53,0x32,0x35,0x36])},_0x1c7386=_0x49fed4[_0x6b9b45([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6b9b45([0x67,0x65,0x74])](_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17bb6e(){let _0x3e7359,_0x7d81bf=null,_0x595404=null;try{if(_0x1c7386==_0x6b9b45([0x47,0x50,0x4c]))return _0x6b9b45([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e7359=_0x22d91c(),!_0x3e7359)return _0x6b9b45([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e7359[_0x6b9b45([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x595404=_0xdaa1ba(_0x3e7359[_0x6b9b45([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e7359[_0x6b9b45([0x6a,0x74,0x69])])),await _0x260911()?_0x3096f5()?_0x20492f()?_0x6b9b45([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf73318()?(_0x3e7359[_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6b9b45([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x7d81bf=_0x43af71(_0x6b9b45([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e7359[_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6b9b45([0x74,0x72,0x69,0x61,0x6c])&&(_0x7d81bf=_0x43af71(_0x6b9b45([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x578a0c()):_0x6b9b45([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6b9b45([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6b9b45([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x6b9b45([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x20492f(){const _0x43a97a=[_0x6b9b45([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6b9b45([0x74,0x72,0x69,0x61,0x6c])][_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e7359[_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x469d45/0x3e8:0xe10*_0x12e3e3;return _0x3e7359[_0x6b9b45([0x65,0x78,0x70])]<_0x43a97a;}function _0x3096f5(){const _0x24e5d5=_0x3e7359[_0x6b9b45([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24e5d5&&(!!_0x24e5d5[_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6b9b45([0x2a]))||!!_0x24e5d5[_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6b9b45([0x55,0x50,0x4c,0x43])));}function _0xf73318(){const _0x377522=_0x3e7359[_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x377522||0x0==_0x377522[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3751af}=new URL(window[_0x6b9b45([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x377522[_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3751af))return!0x0;const _0x5877f3=_0x3751af[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])](_0x6b9b45([0x2e]));return _0x377522[_0x6b9b45([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19e23a=>_0x19e23a[_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6b9b45([0x2a])))[_0x6b9b45([0x6d,0x61,0x70])](_0x51a334=>_0x51a334[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])](_0x6b9b45([0x2e])))[_0x6b9b45([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f4f39=>_0x2f4f39[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5877f3[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6b9b45([0x6d,0x61,0x70])](_0x4ec518=>Array(_0x5877f3[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ec518[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6b9b45([0x66,0x69,0x6c,0x6c])](_0x4ec518[0x0]===_0x6b9b45([0x2a])?_0x6b9b45([0x2a]):'')[_0x6b9b45([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ec518))[_0x6b9b45([0x73,0x6f,0x6d,0x65])](_0x742f82=>_0x5877f3[_0x6b9b45([0x65,0x76,0x65,0x72,0x79])]((_0x25b99f,_0x1ce637)=>_0x742f82[_0x1ce637]===_0x25b99f||_0x742f82[_0x1ce637]===_0x6b9b45([0x2a])));}function _0x578a0c(){return _0x7d81bf&&_0x595404?new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xed6eae,_0xc52516)=>{_0x7d81bf[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0xed6eae,_0xc52516),_0x595404[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x17dc47=>{_0x17dc47!=_0x6b9b45([0x56,0x61,0x6c,0x69,0x64])&&_0xed6eae(_0x17dc47);},_0xc52516);}):_0x7d81bf||_0x595404||_0x6b9b45([0x56,0x61,0x6c,0x69,0x64]);}}function _0xdaa1ba(_0x1e30de,_0x45c718){return new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x153136=>{if(_0x5e2b33())return _0x153136(_0x6b9b45([0x56,0x61,0x6c,0x69,0x64]));_0x11299e(),_0x49fed4[_0x6b9b45([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6b9b45([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e83e4=!0x1;const _0x346a1d=_0x5ecf0a();function _0x4507b0(_0x31d700){return!!_0x31d700&&(typeof _0x31d700===_0x6b9b45([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31d700===_0x6b9b45([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31d700[_0x6b9b45([0x74,0x68,0x65,0x6e])]===_0x6b9b45([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31d700[_0x6b9b45([0x63,0x61,0x74,0x63,0x68])]===_0x6b9b45([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1fdabf(_0x2da543){_0x474316(_0x2da543)[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x217a67=>{if(!_0x217a67||_0x217a67[_0x6b9b45([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6b9b45([0x6f,0x6b]))return _0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43b8e3(_0x3e3c21(_0x346a1d+_0x45c718))!=_0x217a67[_0x6b9b45([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6b9b45([0x56,0x61,0x6c,0x69,0x64]);})[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x2eada7=>(_0x20ab38(),_0x2eada7),()=>{const _0x77bf37=_0x53d3d0();return null==_0x77bf37?(_0x20ab38(),_0x6b9b45([0x56,0x61,0x6c,0x69,0x64])):_0x6b9b45(_0x469d45-_0x77bf37>(0x7753083a^_0x5345bc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x153136)[_0x6b9b45([0x63,0x61,0x74,0x63,0x68])](()=>{_0x153136(_0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4274e2=0x536962ba^_0x5345bc;function _0x20ab38(){const _0x432e4d=_0x6b9b45([0x6c,0x6c,0x63,0x74,0x2d])+_0x43b8e3(_0x3e3c21(_0x1e30de)),_0x2138ed=_0x1aeb25(_0x43b8e3(window[_0x6b9b45([0x4d,0x61,0x74,0x68])][_0x6b9b45([0x63,0x65,0x69,0x6c])](_0x469d45/_0x4274e2)));window[_0x6b9b45([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6b9b45([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x432e4d,_0x2138ed);}function _0x53d3d0(){const _0x51b60f=_0x6b9b45([0x6c,0x6c,0x63,0x74,0x2d])+_0x43b8e3(_0x3e3c21(_0x1e30de)),_0x4563ee=window[_0x6b9b45([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6b9b45([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51b60f);return _0x4563ee?window[_0x6b9b45([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1aeb25(_0x4563ee),0x10)*_0x4274e2:null;}function _0x474316(_0x228615){return new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50eb63,_0xef1e42)=>{_0x228615[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x50eb63,_0xef1e42),window[_0x6b9b45([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xef1e42,0x535e58fa^_0x5345bc);});}}_0x49fed4[_0x6b9b45([0x6f,0x6e])](_0x6b9b45([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a63d0,_0x44f7d2)=>{if(_0x44f7d2[0x0]!=_0x1e30de)return _0x153136(_0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44f7d2[0x1]={..._0x44f7d2[0x1],[_0x6b9b45([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x346a1d};},{[_0x6b9b45([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6b9b45([0x68,0x69,0x67,0x68])}),_0x49fed4[_0x6b9b45([0x6f,0x6e])](_0x6b9b45([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e5733=>{_0x4507b0(_0x3e5733[_0x6b9b45([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e83e4=!0x0,_0x1fdabf(_0x3e5733[_0x6b9b45([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6b9b45([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6b9b45([0x6c,0x6f,0x77])}),_0x1ed2e4[_0x6b9b45([0x74,0x68,0x65,0x6e])](()=>{_0x3e83e4||_0x153136(_0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e2b33(){return _0x49fed4[_0x6b9b45([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6b9b45([0x76,0x69,0x65,0x77])][_0x6b9b45([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6b9b45([0x61,0x75,0x74,0x6f]);}function _0x11299e(){_0x49fed4[_0x6b9b45([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6b9b45([0x76,0x69,0x65,0x77])][_0x6b9b45([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6b9b45([0x61,0x75,0x74,0x6f]);}}function _0x43af71(_0x5af9e4){const _0x3bfa8c=[new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e8370=>setTimeout(_0x3e8370,0x5356b2f6^_0x5345bc)),_0x1ed2e4[_0x6b9b45([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31e27d=>{let _0x3db720=0x0;_0x49fed4[_0x6b9b45([0x6d,0x6f,0x64,0x65,0x6c])][_0x6b9b45([0x6f,0x6e])](_0x6b9b45([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x15804c,_0xe72acd)=>{_0xe72acd[0x0][_0x6b9b45([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3db720++,_0x3db720==(0x535f89d2^_0x5345bc)&&(_0x31e27d(),_0x15804c[_0x6b9b45([0x6f,0x66,0x66])]());});}))];return window[_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6b9b45([0x72,0x61,0x63,0x65])](_0x3bfa8c)[_0x6b9b45([0x74,0x68,0x65,0x6e])](()=>_0x5af9e4);}async function _0x57e21a(){await _0x1ed2e4,_0x49fed4[_0x6b9b45([0x6d,0x6f,0x64,0x65,0x6c])][_0x6b9b45([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1723c5,_0x49fed4[_0x6b9b45([0x6d,0x6f,0x64,0x65,0x6c])][_0x6b9b45([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1723c5,_0x49fed4[_0x6b9b45([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6b9b45([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e07d0(_0x2a9d6e){const _0x121b2a=_0x144c29();_0x49fed4[_0x121b2a]=_0x6b9b45([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a9d6e,_0x2a9d6e!=_0x6b9b45([0x56,0x61,0x6c,0x69,0x64])&&_0x57e21a();}function _0x144c29(){const _0x410a87=window[_0x6b9b45([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6b9b45([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6b9b45([0x6e,0x6f,0x77])]())[_0x6b9b45([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6b9b45([0x2e]),'');let _0x3f4d9a=_0x6b9b45([0x68]);for(let _0x22c4ff=0x0;_0x22c4ff<_0x410a87[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22c4ff+=0x2){let _0x5527f9=window[_0x6b9b45([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x410a87[_0x6b9b45([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22c4ff,_0x22c4ff+0x2));_0x5527f9>=_0x249da2[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5527f9-=_0x249da2[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f4d9a+=_0x249da2[_0x5527f9];}return _0x3f4d9a;}function _0x22d91c(){const _0x190093=_0x1c7386[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])](_0x6b9b45([0x2e]));if(0x3!=_0x190093[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e84e0(_0x190093[0x1]);function _0x4e84e0(_0x94b19f){const _0x48521e=_0x3b1b44(_0x94b19f);return _0x48521e&&_0x37a061()?_0x48521e:null;function _0x37a061(){const _0x179858=_0x48521e[_0x6b9b45([0x6a,0x74,0x69])],_0x37ee4c=window[_0x6b9b45([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x179858[_0x6b9b45([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x179858[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22873c={..._0x48521e,[_0x6b9b45([0x6a,0x74,0x69])]:_0x179858[_0x6b9b45([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x179858[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22873c[_0x6b9b45([0x76,0x63])],_0x3e3c21(_0x22873c)==_0x37ee4c;}}}async function _0x260911(){let _0x3bea70=!0x0;try{const _0x2d8382=_0x1c7386[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])](_0x6b9b45([0x2e])),[_0x45e690,_0x3c33d0,_0x5969c3]=_0x2d8382;return _0x4e5100(_0x45e690),await _0x112424(_0x45e690,_0x3c33d0,_0x5969c3),_0x3bea70;}catch{return!0x1;}function _0x4e5100(_0x156d9e){const _0x342626=_0x3b1b44(_0x156d9e);_0x342626&&_0x342626[_0x6b9b45([0x61,0x6c,0x67])]==_0x6b9b45([0x45,0x53,0x32,0x35,0x36])||(_0x3bea70=!0x1);}async function _0x112424(_0x336102,_0x311381,_0x6402d1){const _0x4d5831=window[_0x6b9b45([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6b9b45([0x66,0x72,0x6f,0x6d])](_0xe42081(_0x6402d1),_0x4fc55b=>_0x4fc55b[_0x6b9b45([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x250830=new window[(_0x6b9b45([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6b9b45([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x336102+_0x6b9b45([0x2e])+_0x311381),_0x3b3d46=window[_0x6b9b45([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6b9b45([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b3d46)return;const _0x4b34e0=await _0x3b3d46[_0x6b9b45([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6b9b45([0x6a,0x77,0x6b]),_0x4402b2,{[_0x6b9b45([0x6e,0x61,0x6d,0x65])]:_0x6b9b45([0x45,0x43,0x44,0x53,0x41]),[_0x6b9b45([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6b9b45([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6b9b45([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b3d46[_0x6b9b45([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6b9b45([0x6e,0x61,0x6d,0x65])]:_0x6b9b45([0x45,0x43,0x44,0x53,0x41]),[_0x6b9b45([0x68,0x61,0x73,0x68])]:{[_0x6b9b45([0x6e,0x61,0x6d,0x65])]:_0x6b9b45([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b34e0,_0x4d5831,_0x250830)||(_0x3bea70=!0x1);}}function _0x3b1b44(_0x3d5cb1){return _0x3d5cb1[_0x6b9b45([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6b9b45([0x65,0x79]))?JSON[_0x6b9b45([0x70,0x61,0x72,0x73,0x65])](_0xe42081(_0x3d5cb1)):null;}function _0xe42081(_0x4f7805){return window[_0x6b9b45([0x61,0x74,0x6f,0x62])](_0x4f7805[_0x6b9b45([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6b9b45([0x2b]))[_0x6b9b45([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6b9b45([0x2f])));}function _0x3e3c21(_0x4e64cc){let _0x54dda0=0x1505;function _0x3bf396(_0x188e34){for(let _0x210450=0x0;_0x210450<_0x188e34[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x210450++){const _0x455569=_0x188e34[_0x6b9b45([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x210450);_0x54dda0=(_0x54dda0<<0x5)+_0x54dda0+_0x455569,_0x54dda0&=_0x54dda0;}}function _0x17ed96(_0x173365){Array[_0x6b9b45([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x173365)?_0x173365[_0x6b9b45([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17ed96):_0x173365&&typeof _0x173365==_0x6b9b45([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6b9b45([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x173365)[_0x6b9b45([0x73,0x6f,0x72,0x74])]()[_0x6b9b45([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ca95d,_0x32a99c])=>{_0x3bf396(_0x2ca95d),_0x17ed96(_0x32a99c);}):_0x3bf396(window[_0x6b9b45([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x173365));}return _0x17ed96(_0x4e64cc),_0x54dda0>>>0x0;}function _0x43b8e3(_0x4c13fe){return _0x4c13fe[_0x6b9b45([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6b9b45([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6b9b45([0x30]));}function _0x1aeb25(_0x3a006e){return _0x3a006e[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6b9b45([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6b9b45([0x6a,0x6f,0x69,0x6e])]('');}function _0x1723c5(){}function _0x6b9b45(_0x38812a){return _0x38812a['map'](_0x3ac8c9=>String['fromCharCode'](_0x3ac8c9))['join']('');}_0x1e07d0(await _0x17bb6e());}(this);}['_initSchema'](){const _0x381a56=this['editor']['model']['schema'];_0x381a56['isRegistered']('imageBlock')&&_0x381a56['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x381a56['isRegistered']('imageInline')&&_0x381a56['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3829d1=this['editor'];_0x3829d1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3829d1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x563db6=>_0x563db6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x7a347d=_0x3829d1['commands']['get']('replaceImageSource');_0x7a347d&&this['listenTo'](_0x7a347d,'cleanupImage',(_0x9554de,[_0x54af2c,_0x214890])=>{_0x54af2c['removeAttribute']('uploadcareImageId',_0x214890);});}['_initConfig'](){const _0x57c0e1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x55dd8a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x377327(_0x3f302c['document'],'uc-config',{..._0x57c0e1,'pubkey':_0x55dd8a,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x14699b=>{if('closeMax'==_0x14699b)return'#uc-icon-arrow-down';},_0x3f302c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x377327(_0x3f302c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3f302c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3e6ed2=this['editor']['commands']['get']('insertImage');_0x3e6ed2&&this['listenTo'](_0x3e6ed2,'execute',()=>{const _0x125f17=this['editor']['model']['document']['selection']['getSelectedElement']();_0x125f17&&_0x125f17['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x125f17);});});const _0x5e42c5=this['editor']['commands']['get']('uploadcareImageReplace');_0x5e42c5&&this['listenTo'](_0x5e42c5,'execute',()=>{const _0x5e14c4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e14c4&&_0x5e14c4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5e14c4);});});}}class tt extends _0x2723b6{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38ee21){super(_0x38ee21),_0x38ee21['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x53db37['defineComponents'](_0x53db37),this['_defineLocale']();}['_defineLocale'](){const _0x41accf=this['editor']['config']['get']('uploadcare.locale'),_0x5ef5c0=this['editor']['locale']['contentLanguage'];_0x41accf&&_0x53db37['defineLocale'](_0x5ef5c0,_0x41accf);}}class ii extends _0x16f752{constructor(_0x354d26){super(_0x354d26);const t=_0x354d26['t'],_0x481258=this['bindTemplate'],_0x49e874=new _0x263800();_0x49e874['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':[_0x49e874,{'text':_0x481258['to']('imageUploadProgress',_0xb70321=>t('Loading\x20image...')+'\x20('+(_0xb70321||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x16f752{constructor(_0x45c7a4){super(_0x45c7a4);const t=_0x45c7a4['t'];this['set']('errorType',null);const _0x4de42a=new _0xc5e45d(_0x45c7a4);_0x4de42a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4de42a['withText']=!0x0,_0x4de42a['class']='ck-button-action',_0x4de42a['on']('execute',()=>{this['fire']('retry');}),_0x4de42a['bind']('isVisible')['to'](this,'errorType',_0x43d43a=>'NotFound'!==_0x43d43a);const _0x23647d=new _0x2f5edc();_0x23647d['content']=_0x5c31d1,_0x23647d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x16f4cf=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':[_0x23647d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x16f4cf['to']('errorType',_0x489a67=>t('NotFound'!==_0x489a67?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4de42a]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x16f752{constructor(_0xaaf8ce,_0x5d0a7c){super(_0xaaf8ce);const _0x421449=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5d0a7c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x421449['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x198cde,_0x38f471,_0x2e16bc){super(_0x198cde),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x198cde),this['_errorView']=new ti(_0x198cde),this['_editingView']=new ei(_0x198cde,_0x2e16bc),this['_focusableView']=new _0x16f752(_0x198cde),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x38f471),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'],_0x1b5aac=>{this['_addUploadcareImageEditorListeners'](_0x1b5aac);});}),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'](_0x51dd8d,_0x476e6d){const _0x207ae4='uc-cloud-image-editor',_0x1d8511=_0x51dd8d['querySelector'](_0x207ae4);if(_0x1d8511)return _0x476e6d(_0x1d8511);const _0xb553ab=new MutationObserver(_0x159581=>{const _0x24d63d=_0x159581['filter'](_0x290c9e=>_0x290c9e['target']===_0x51dd8d&&_0x290c9e['addedNodes']['length']>0x0&&_0x290c9e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x207ae4);_0x24d63d['length']&&(_0xb553ab['disconnect'](),_0x476e6d(_0x24d63d[0x0]['addedNodes'][0x0]));});_0xb553ab['observe'](_0x51dd8d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2f79cf){_0x2f79cf['addEventListener']('apply',_0x50e191=>{this['fire']('apply',{'imageSrc':_0x50e191['detail']['cdnUrl']});}),_0x2f79cf['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x294507(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x348f6b,_0xfdb516,_0x43195d){super(),this['_editor']=_0x348f6b,this['_dialog']=_0xfdb516,this['_imageElement']=_0x43195d,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 _0x216659=this['_imageElement'],_0x419130=_0x216659['getAttribute']('uploadcareImageId'),_0x19d397=_0x216659['getAttribute']('src');if(_0x419130)await this['_loadImageInfo'](_0x419130,_0x19d397);else{if(this['_imageCache']['has'](_0x19d397)){const _0x49c47e=this['_imageCache']['get'](_0x19d397);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49c47e['url'],this['imageDimension']=_0x49c47e['dimension'],this['imageId']=_0x49c47e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x46d33f}=this['_editor'],t=_0x46d33f['t'],_0xf5fcb2=new X(_0x46d33f,this['imageStatus'],this['_attributes']);_0xf5fcb2['bind']('status')['to'](this,'imageStatus'),_0xf5fcb2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xf5fcb2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xf5fcb2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xf5fcb2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x49d7ae,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xf5fcb2,'position':_0x18a93e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xf5fcb2['focus']();},'onHide':()=>{_0xf5fcb2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x160316=>!A(_0x160316,_0xf5fcb2['element'])}});}['_loadImageInfo'](_0x1577a5,_0x3f368a){return j['getInfo'](_0x1577a5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5e193e=>{const {width:_0x40a6b6,height:_0x1940b2}=_0x5e193e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f368a,this['imageDimension']={'width':_0x40a6b6,'height':_0x1940b2},this['imageId']=_0x1577a5;})['catch'](_0x3f32cf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f32cf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x20bb4a,_0x4f9ab3){return this['_getImageAsFile'](_0x20bb4a)['then'](_0x4e6337=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4f9ab3['signal'],'file':_0x4e6337,'onProgress':_0x4dbfc0=>{_0x4dbfc0&&_0x4dbfc0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4dbfc0['value']));}}))['then'](_0x3d06f1=>{const {width:_0x26489f,height:_0x2bd680}=_0x3d06f1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d06f1['cdnUrl'],this['imageDimension']={'width':_0x26489f,'height':_0x2bd680},this['imageId']=_0x3d06f1['uuid'],this['imageUploadProgress']=null;const _0x44a198=_0x20bb4a['getAttribute']('src');this['_imageCache']['set'](_0x44a198,{'id':_0x3d06f1['uuid'],'url':_0x3d06f1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1e2bac=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e2bac['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x46c39e,_0x5c0fe7){_0x46c39e['on']('apply',(_0x42d5b4,_0x3d5706)=>{this['_replaceImage'](_0x5c0fe7,_0x3d5706['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x46c39e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x46c39e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5b5711,_0x1367e4,_0x45054e){const _0x519fd3=this['_editor'],{width:_0x2bb726,height:_0x61c941}=S(_0x1367e4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2d89da,imageSources:_0x5a44f1}=C(_0x1367e4,_0x2bb726);_0x519fd3['model']['change'](_0xcbd078=>{if('$graveyard'===_0x5b5711['root']['rootName']){_0x519fd3['execute']('insertImage',{'imageType':_0x5b5711['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5b5711['getAttributes']()),'uploadcareImageId':_0x45054e,'src':_0x2d89da,'sources':_0x5a44f1,'width':_0x2bb726,'height':_0x61c941}});const _0x58e15d=_0x5b5711['getChildren']();_0x5b5711=_0x519fd3['model']['document']['selection']['getSelectedElement']();for(const _0x1896e4 of _0x58e15d)_0xcbd078['append'](_0xcbd078['cloneElement'](_0x1896e4),_0x5b5711);}else _0xcbd078['setSelection'](_0x5b5711,'on'),_0x519fd3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5b5711['getAttributes']()),'uploadcareImageId':_0x45054e,'src':_0x2d89da,'sources':_0x5a44f1,'width':_0x2bb726,'height':_0x61c941},_0x5b5711);_0xcbd078['setSelection'](_0x5b5711,'on');});}async['_getImageAsFile'](_0x274ace){const _0x49d390=_0x3f302c['window'],_0x2649a6=_0x3f302c['document']['location']['href'],_0xe0f5b0=new _0x49d390['URL'](_0x274ace['getAttribute']('src'),_0x2649a6);if('data:'===_0xe0f5b0['protocol']){const _0x33fd12=_0xe0f5b0['href']['split'](','),_0x361fb0=_0x33fd12[0x0]['match'](/:(.*?);/)[0x1],_0x157492=_0x361fb0['split']('/')[0x1],_0x8bab64=_0x49d390['atob'](_0x33fd12[_0x33fd12['length']-0x1]);let _0x41c618=_0x8bab64['length'];const _0x3e74e6=new _0x49d390['Uint8Array'](_0x41c618);for(;_0x41c618--;)_0x3e74e6[_0x41c618]=_0x8bab64['charCodeAt'](_0x41c618);return new _0x49d390['File']([_0x3e74e6],'image.'+_0x157492,{'type':_0x361fb0});}const _0x1a4b13=_0xe0f5b0['href']['split']('/'),_0x20569e=_0x1a4b13[_0x1a4b13['length']-0x1],_0x48a957=_0x20569e['split']('.')[0x1];return _0x49d390['fetch'](_0xe0f5b0['href'])['then'](_0x3af2b3=>_0x3af2b3['clone']()['blob']())['then'](_0x5d9aa7=>new _0x49d390['File']([_0x5d9aa7],_0x20569e,{'type':'image/'+_0x48a957}));}}class O extends _0x3491f9{['imageEditController'];static get['requires'](){return[_0x191ec3];}['_isEditable'];constructor(_0xdf8889){super(_0xdf8889),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x489caf){const _0x19c976=G(_0x489caf);return _0xc80211=>!(!_0xc80211||!_0xc80211['is']('element','imageBlock')&&!_0xc80211['is']('element','imageInline'))&&(!!_0xc80211['hasAttribute']('uploadcareImageId')||!!_0xc80211['hasAttribute']('src')&&_0x19c976(_0xc80211['getAttribute']('src')));}(_0xdf8889['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2e71db=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2e71db);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1371b7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1371b7&&(_0x1371b7['is']('element','imageBlock')||_0x1371b7['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x191ec3),_0x1371b7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3491f9{['refresh'](){const _0x265769=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x265769&&(_0x265769['is']('element','imageBlock')||_0x265769['is']('element','imageInline')));}['execute'](_0x4fbd4d){const _0x738578=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2d0ef5=>{_0x2d0ef5['setAttributes'](_0x4fbd4d,_0x738578),_0x2d0ef5['removeAttribute']('srcset',_0x738578),_0x2d0ef5['removeAttribute']('sizes',_0x738578);});}}class m extends _0x2723b6{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x336fc8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x290efd}=this;_0x290efd['commands']['add']('uploadcareImageEdit',new O(_0x290efd)),_0x290efd['commands']['add']('uploadcareImageReplace',new R(_0x290efd));}}class g extends _0x2723b6{['_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 _0xbfea45=this['editor'];_0xbfea45['ui']['componentFactory']['add']('uploadcareImageEdit',_0x594c1a=>{const _0x3db8f1=_0xbfea45['commands']['get']('uploadcareImageEdit'),_0x2d8a48=new _0xc5e45d(_0x594c1a),t=_0x594c1a['t'];return _0x2d8a48['set']({'icon':_0x49d7ae,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2d8a48['bind']('isEnabled')['to'](_0x3db8f1),_0x2d8a48['bind']('isOn')['to'](_0x3db8f1,'isActive'),this['listenTo'](_0x2d8a48,'execute',()=>{_0xbfea45['execute']('uploadcareImageEdit'),_0xbfea45['editing']['view']['focus']();}),_0x2d8a48;}),this['_initConfig']();}['_initConfig'](){const _0xda3e32=_0x377327(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xda3e32),this['listenTo'](this['editor'],'destroy',()=>{_0xda3e32['remove']();});}}class et extends _0x2723b6{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x12a3b4=>0x1!=_0x12a3b4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x161e57=>{const {af:{dictionary:_0x258a0f,getPluralForm:_0x3c488c}}={'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':_0x1b2eb9=>0x1!=_0x1b2eb9}};_0x161e57['af']||={'dictionary':{},'getPluralForm':null},_0x161e57['af']['dictionary']=Object['assign'](_0x161e57['af']['dictionary'],_0x258a0f),_0x161e57['af']['getPluralForm']=_0x3c488c;})(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':_0x24c249=>0x0==_0x24c249?0x0:0x1==_0x24c249?0x1:0x2==_0x24c249?0x2:_0x24c249%0x64>=0x3&&_0x24c249%0x64<=0xa?0x3:_0x24c249%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x236369=>{const {ar:{dictionary:_0x126399,getPluralForm:_0x43504f}}={'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':_0x3b42c6=>0x0==_0x3b42c6?0x0:0x1==_0x3b42c6?0x1:0x2==_0x3b42c6?0x2:_0x3b42c6%0x64>=0x3&&_0x3b42c6%0x64<=0xa?0x3:_0x3b42c6%0x64>=0xb?0x4:0x5}};_0x236369['ar']||={'dictionary':{},'getPluralForm':null},_0x236369['ar']['dictionary']=Object['assign'](_0x236369['ar']['dictionary'],_0x126399),_0x236369['ar']['getPluralForm']=_0x43504f;})(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':_0x34a326=>0x1!=_0x34a326}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x366b20=>{const {ast:{dictionary:_0x19da04,getPluralForm:_0x20d2a4}}={'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':_0x3d3487=>0x1!=_0x3d3487}};_0x366b20['ast']||={'dictionary':{},'getPluralForm':null},_0x366b20['ast']['dictionary']=Object['assign'](_0x366b20['ast']['dictionary'],_0x19da04),_0x366b20['ast']['getPluralForm']=_0x20d2a4;})(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':_0x450fdb=>0x1!=_0x450fdb}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5ac392=>{const {az:{dictionary:_0x33bfe1,getPluralForm:_0x163249}}={'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':_0x4e8d0b=>0x1!=_0x4e8d0b}};_0x5ac392['az']||={'dictionary':{},'getPluralForm':null},_0x5ac392['az']['dictionary']=Object['assign'](_0x5ac392['az']['dictionary'],_0x33bfe1),_0x5ac392['az']['getPluralForm']=_0x163249;})(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':_0x4b7d4b=>_0x4b7d4b%0xa==0x1&&_0x4b7d4b%0x64!=0xb?0x0:_0x4b7d4b%0xa>=0x2&&_0x4b7d4b%0xa<=0x4&&(_0x4b7d4b%0x64<0xa||_0x4b7d4b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2edd4d=>{const {be:{dictionary:_0x10a14c,getPluralForm:_0x197d25}}={'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':_0x5ab8f5=>_0x5ab8f5%0xa==0x1&&_0x5ab8f5%0x64!=0xb?0x0:_0x5ab8f5%0xa>=0x2&&_0x5ab8f5%0xa<=0x4&&(_0x5ab8f5%0x64<0xa||_0x5ab8f5%0x64>=0x14)?0x1:0x2}};_0x2edd4d['be']||={'dictionary':{},'getPluralForm':null},_0x2edd4d['be']['dictionary']=Object['assign'](_0x2edd4d['be']['dictionary'],_0x10a14c),_0x2edd4d['be']['getPluralForm']=_0x197d25;})(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':_0x20220a=>0x1!=_0x20220a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x20f068=>{const {bg:{dictionary:_0x2637a8,getPluralForm:_0x45c5a1}}={'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':_0x53c3b3=>0x1!=_0x53c3b3}};_0x20f068['bg']||={'dictionary':{},'getPluralForm':null},_0x20f068['bg']['dictionary']=Object['assign'](_0x20f068['bg']['dictionary'],_0x2637a8),_0x20f068['bg']['getPluralForm']=_0x45c5a1;})(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':_0x55b7fc=>0x1!=_0x55b7fc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1d565d=>{const {bn:{dictionary:_0x91af8c,getPluralForm:_0x474ea0}}={'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':_0x3f9c3c=>0x1!=_0x3f9c3c}};_0x1d565d['bn']||={'dictionary':{},'getPluralForm':null},_0x1d565d['bn']['dictionary']=Object['assign'](_0x1d565d['bn']['dictionary'],_0x91af8c),_0x1d565d['bn']['getPluralForm']=_0x474ea0;})(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':_0x5dd018=>_0x5dd018%0xa==0x1&&_0x5dd018%0x64!=0xb?0x0:_0x5dd018%0xa>=0x2&&_0x5dd018%0xa<=0x4&&(_0x5dd018%0x64<0xa||_0x5dd018%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x20ef72=>{const {bs:{dictionary:_0x5ca74f,getPluralForm:_0xe320df}}={'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':_0x3f60fe=>_0x3f60fe%0xa==0x1&&_0x3f60fe%0x64!=0xb?0x0:_0x3f60fe%0xa>=0x2&&_0x3f60fe%0xa<=0x4&&(_0x3f60fe%0x64<0xa||_0x3f60fe%0x64>=0x14)?0x1:0x2}};_0x20ef72['bs']||={'dictionary':{},'getPluralForm':null},_0x20ef72['bs']['dictionary']=Object['assign'](_0x20ef72['bs']['dictionary'],_0x5ca74f),_0x20ef72['bs']['getPluralForm']=_0xe320df;})(window['CKEDITOR_TRANSLATIONS']||={});
|