@ckeditor/ckeditor5-uploadcare 47.7.0-alpha.3 → 47.7.0-alpha.4
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 _0x5e9db5,Command as _0x1ec3c8}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2e4afd,IconGooglePhotos as _0x4d9161,IconGoogleDrive as _0x34b3f1,IconFacebook as _0x26d73f,IconDropbox as _0x40e2d3,IconUploadcareLink as _0x49f18e,IconUploadcareImageUpload as _0x567c24,IconError as _0x1429ca,IconUploadcareImageEdit as _0x44f628}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x27297c,MenuBarMenuListItemButtonView as _0x10a452,View as _0x5acd6e,FocusCycler as _0x81f639,Dialog as _0x517d8d,DialogViewPosition as _0x4b4b66,SpinnerView as _0x5e8920,IconView as _0x347bf8,Notification as _0x2fe6ce}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2f1893,DomEmitterMixin as _0x1819b5,global as _0x28d71c,getAncestors as _0x3bea48,ObservableMixin as _0x588ef9,uid as _0x1ab349,createElement as _0x416c18}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xde05e4}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x22c3ef,info as _0x6d4bd6}from'@uploadcare/upload-client';import*as _0xac3b09 from'@uploadcare/file-uploader';var i=function(_0x5f391d){return _0x5f391d['Local']='local',_0x5f391d['URL']='url',_0x5f391d['Dropbox']='dropbox',_0x5f391d['GDrive']='gdrive',_0x5f391d['Facebook']='facebook',_0x5f391d['GPhotos']='gphotos',_0x5f391d['OneDrive']='onedrive',_0x5f391d;}({});function _(_0x13b2f8,_0x42d2e8,_0x582374){const t=_0x13b2f8['t'],_0x34c135=_0x13b2f8['t'];switch(_0x42d2e8){case i['Local']:return{'text':_0x34c135('Insert'===_0x582374?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x34c135('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x582374?_0x34c135('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x34c135('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x582374?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x582374?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x582374?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x582374?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x582374?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x42d2e8;}}class e extends _0x5e9db5{['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 _0x5bbbf8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3ea89e;for(const _0x267465 in _0x5bbbf8){const _0x24b8d8=_0x267465,_0x2fbba0=_0x5bbbf8[_0x24b8d8];if('uploadcareLicenseKeyValid'==_0x2fbba0||'uploadcareLicenseKeyInvalid'==_0x2fbba0||'uploadcareLicenseKeyExpired'==_0x2fbba0||'uploadcareLicenseKeyDomainLimit'==_0x2fbba0||'uploadcareLicenseKeyNotAllowed'==_0x2fbba0||'uploadcareLicenseKeyEvaluationLimit'==_0x2fbba0||'uploadcareLicenseKeyUsageLimit'==_0x2fbba0){delete _0x5bbbf8[_0x24b8d8],_0x3ea89e=_0x2fbba0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3ea89e&&_0x5bbbf8['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3ea89e&&_0x5bbbf8['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3ea89e&&_0x5bbbf8['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3ea89e&&_0x5bbbf8['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3ea89e&&_0x5bbbf8['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3ea89e&&_0x5bbbf8['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3c166e}=this,_0x569e1d=_0x3c166e['commands']['get']('uploadcare');if(!_0x569e1d)return;const _0x27c6dc=this['_normalizeConfigSourceList'](_0x3c166e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3c8931,_0x5428c4)=>{const _0x49d035=this['_getIntegrationKey'](_0x5428c4['type']);return _0x3c8931[_0x49d035]||(_0x3c8931[_0x49d035]=[]),_0x3c8931[_0x49d035]['push'](_0x5428c4),_0x3c8931;},{});_0x3c166e['plugins']['has']('ImageInsertUI')&&_0x3c166e['commands']['get']('uploadcare')&&Object['entries'](_0x27c6dc)['forEach'](([_0x9fb5da,_0x2f930c])=>{_0x3c166e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x9fb5da,'observable':()=>_0x569e1d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2f930c),'formViewCreator':()=>this['_createDropdownButtons'](_0x2f930c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2f930c),'override':'assetManager'!==_0x9fb5da});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x16a703){const {locale:_0xda4220}=this['editor'];return _0x16a703['map'](_0x2ab646=>{const _0x5eaaba=_(_0xda4220,_0x2ab646,'Insert');switch(_0x2ab646){case i['Local']:return{'icon':_0x567c24,'type':i['Local'],..._0x5eaaba};case i['URL']:return{'icon':_0x49f18e,'type':i['URL'],..._0x5eaaba};case i['Dropbox']:return{'icon':_0x40e2d3,'type':i['Dropbox'],..._0x5eaaba};case i['Facebook']:return{'icon':_0x26d73f,'type':i['Facebook'],..._0x5eaaba};case i['GDrive']:return{'icon':_0x34b3f1,'type':i['GDrive'],..._0x5eaaba};case i['GPhotos']:return{'icon':_0x4d9161,'type':i['GPhotos'],..._0x5eaaba};case i['OneDrive']:return{'icon':_0x2e4afd,'type':i['OneDrive'],..._0x5eaaba};}});}['_getIntegrationKey'](_0x561217){switch(_0x561217){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x37b680,_0x1213e4){const _0x4e8d85=this['editor'],_0x4cc1d0=new _0x37b680(_0x4e8d85['locale']),_0x5bac80=_0x4e8d85['commands']['get']('uploadcare');return _0x4cc1d0['bind']('isEnabled')['to'](_0x5bac80),_0x4cc1d0['on']('execute',()=>{_0x5bac80['execute'](_0x1213e4);}),_0x4cc1d0;}['_createToolbarButton'](_0x208061){const {locale:_0x2cdb88}=this['editor'],_0x386e67=this['editor']['plugins']['get']('ImageInsertUI'),_0x37e5e0=_0x208061[0x0],_0x51a56d=this['_createButton'](_0x27297c,_0x37e5e0['type']);return _0x51a56d['icon']=_0x37e5e0['icon'],_0x51a56d['bind']('label')['to'](_0x386e67,'isImageSelected',_0x1c77db=>_(_0x2cdb88,_0x37e5e0['type'],_0x1c77db?'Replace':'Insert')['text']),_0x51a56d['tooltip']=!0x0,_0x51a56d;}['_createDropdownButtons'](_0x36e237){const {locale:_0x5336ac}=this['editor'],_0x44b68b=this['editor']['plugins']['get']('ImageInsertUI');return _0x36e237['map'](_0x52b59d=>{const _0x4ca869=this['_createButton'](_0x27297c,_0x52b59d['type']);return _0x4ca869['withText']=!0x0,_0x4ca869['icon']=_0x52b59d['icon'],_0x4ca869['bind']('label')['to'](_0x44b68b,'isImageSelected',_0x2f5459=>_(_0x5336ac,_0x52b59d['type'],_0x2f5459?'Replace':'Insert')['text']),_0x4ca869;});}['_createMenuBarButtons'](_0x2dd991){return _0x2dd991['map'](_0x5722cd=>{const _0x2fe825=this['_createButton'](_0x10a452,_0x5722cd['type']);return _0x2fe825['icon']=_0x5722cd['icon'],_0x2fe825['label']=_0x5722cd['shortText'],_0x2fe825;});}}class F extends _0x5acd6e{['focusTracker'];['focusCycler'];constructor(_0x497a9a){super(_0x497a9a),this['focusTracker']=new _0x2f1893(),this['focusCycler']=new _0x81f639({'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(_0x4e3370,_0x20a93){super(_0x4e3370),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-'+_0x20a93}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1f7a5c,_0x47e60c){const _0x4c237d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4bc8ab=>_0x4bc8ab<=_0x47e60c)['map'](_0x43f36d=>_0x1f7a5c['replace'](/\/$/,'')+'/-/resize/'+_0x43f36d+'x/\x20'+_0x43f36d+'w');return{'imageFallbackUrl':_0x1f7a5c,'imageSources':[{'srcset':_0x4c237d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x47e60c+'px)\x20100vw,\x20'+_0x47e60c+'px','type':'image/webp'}]};}function S(_0x4d8d63,_0x6f2561,_0x19a992){const _0x1bb5c4=_0x4d8d63['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1bb5c4?parseInt(_0x1bb5c4[0x1],0xa):_0x6f2561,'height':_0x1bb5c4?parseInt(_0x1bb5c4[0x2],0xa):_0x19a992};}function p(_0x267934,_0x3e19ba){const _0x26fe7a=new(_0x1819b5())(),_0x507bbf=_0x267934['plugins']['get']('ImageUtils'),_0x32f23e=_0x267934['editing']['mapper']['toViewElement'](_0x3e19ba),_0x5490af=_0x507bbf['findViewImgElement'](_0x32f23e),_0xe16972=_0x267934['editing']['view']['domConverter']['viewToDom'](_0x5490af),_0xa800bb=_0x3e19ba['getAttribute']('width'),_0x27c6a2=_0x3e19ba['getAttribute']('height'),_0x5e373e='image-processing';_0x267934['editing']['view']['change'](_0x5581c8=>{_0x5581c8['addClass'](_0x5e373e,_0x32f23e),_0x5581c8['setStyle']('aspect-ratio',_0xa800bb+'/'+_0x27c6a2,_0x5490af);}),_0x26fe7a['listenTo'](_0xe16972,'load',()=>{_0x26fe7a['stopListening'](_0xe16972,'load'),_0x267934['editing']['view']['change'](_0x253d63=>{_0x253d63['removeClass'](_0x5e373e,_0x32f23e),_0x253d63['removeStyle']('aspect-ratio',_0x5490af);});});}function G(_0x2a06d8){if(Array['isArray'](_0x2a06d8)){const _0x52020a=_0x2a06d8['map'](G);return _0x301894=>_0x52020a['some'](_0xde3802=>_0xde3802(_0x301894));}if('origin'==_0x2a06d8){const _0xfd8ee9=_0x28d71c['window']['location']['origin'];return _0x252575=>new URL(_0x252575,_0x28d71c['document']['baseURI'])['origin']==_0xfd8ee9;}return'function'==typeof _0x2a06d8?_0x2a06d8:_0x2a06d8 instanceof RegExp?_0x58e39a=>!(!_0x58e39a['match'](_0x2a06d8)&&!_0x58e39a['replace'](/^https?:\/\//,'')['match'](_0x2a06d8)):()=>!0x1;}function A(_0x3c8904,_0x2a7622){return _0x3bea48(_0x3c8904['target'])['includes'](_0x2a7622);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x588ef9(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x37c8b8,_0x2fec0d,_0x59f3b0){super(),this['_editor']=_0x37c8b8,this['_editing']=_0x2fec0d,this['_dialog']=_0x37c8b8['plugins']['get'](_0x517d8d),this['_api']=_0x2fec0d['ctxElement']['getAPI'](),this['_type']=_0x59f3b0,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:_0x218264,model:_0x16bed1}=this['_editor'],_0xdf900b=_0x16bed1['document']['selection']['getSelectedElement'](),_0x532dc6=_0xdf900b&&(_0xdf900b['is']('element','imageBlock')||_0xdf900b['is']('element','imageInline'));this['_formView']=new x(_0x218264,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x567c24,'title':_(_0x218264,this['_type'],_0x532dc6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4b4b66['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4610f3=>!A(_0x4610f3,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2c517f}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4670ce=>{const _0x1b0126=_0x2c517f['length'];for(const _0x2402a3 of _0x2c517f){const _0x51be8f=_0x2402a3===_0x2c517f[_0x1b0126-0x1],{cdnUrl:_0x5e9d51,fileInfo:_0x73d3f7}=_0x2402a3;if(!_0x5e9d51||!_0x73d3f7)continue;const {width:_0x3b9704,height:_0xf0312f}=_0x73d3f7['imageInfo'],_0x47b2a0=S(_0x5e9d51,_0x3b9704,_0xf0312f),_0x4d944c=C(_0x5e9d51,_0x47b2a0['width']),_0x842357={'id':_0x73d3f7['uuid'],'type':'image','attributes':{'imageDimension':_0x47b2a0,..._0x4d944c}};this['_insertAsset'](_0x842357,_0x51be8f,_0x4670ce);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x210521=>{'idle'===_0x210521['detail']['status']&&!_0x210521['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4293f4,_0x37c29e,_0xb7b54a){const _0x593b27=this['_editor']['model']['document']['selection'],_0x2ff933=_0x593b27['getSelectedElement'](),_0x51142=!(!_0x2ff933||!_0x2ff933['is']('element','imageInline'));_0xb7b54a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4293f4,_0x51142),_0x37c29e||_0xb7b54a['setSelection'](_0x593b27['getLastPosition']());}['_insertImage'](_0x1f4bb6,_0x53ea3f){const _0x5f4b01=this['_editor'],{imageDimension:_0x463a9e,imageFallbackUrl:_0x76336d,imageSources:_0x2286ef}=_0x1f4bb6['attributes'];_0x5f4b01['execute']('insertImage',{'imageType':_0x53ea3f?'imageInline':null,'source':{'uploadcareImageId':_0x1f4bb6['id'],'src':_0x76336d,'sources':_0x2286ef,..._0x463a9e}});}}class w extends _0x1ec3c8{['_editing'];['_controller']=null;static get['requires'](){return[_0x517d8d,o];}constructor(_0x4816f9){super(_0x4816f9),this['_editing']=_0x4816f9['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x50e8f8){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x50e8f8);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xbb605,..._0x3bf546}){return _0x22c3ef(_0xbb605,_0x3bf546);}static['getInfo'](_0x2f4f64,_0x266c08){return _0x6d4bd6(_0x2f4f64,_0x266c08);}}class f extends _0x5e9db5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xde05e4,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2389ac=this['editor'];if(!!!_0x2389ac['config']['get']('uploadcare'))return;_0x2389ac['plugins']['get'](_0xde05e4)['createUploadAdapter']=_0x5df860=>new k(_0x5df860,_0x2389ac),_0x2389ac['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x536d13,{imageElement:_0x9b6d7c,data:_0x525cf6})=>{_0x2389ac['model']['change'](_0x73d635=>{_0x73d635['setAttribute']('uploadcareImageId',_0x525cf6['uploadcareImageId'],_0x9b6d7c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2258ad,_0x167272){this['loader']=_0x2258ad,this['editor']=_0x167272,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3db68c=await this['loader']['file'];return j['upload']({'file':_0x3db68c,'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':_0x53ce44=>{_0x53ce44&&_0x53ce44['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x53ce44['value']);}})['then'](async _0x184725=>{const {imageFallbackUrl:_0xf43535,imageSources:_0xe26c7c}=C(_0x184725['cdnUrl'],_0x184725['imageInfo']['width']);return{'uploadcareImageId':_0x184725['uuid'],'default':_0xf43535,'sources':_0xe26c7c};})['catch'](()=>{const _0x3b5cf8=t('Cannot\x20upload\x20file:')+('\x20'+_0x3db68c['name']+'.');return Promise['reject'](_0x3b5cf8);});}['abort'](){this['controller']['abort']();}}class o extends _0x5e9db5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x517d8d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x9048b3){super(_0x9048b3),this['ucContextId']=_0x1ab349();}['init'](){const _0x2254bb=this['editor'];_0x2254bb['commands']['add']('uploadcare',new w(_0x2254bb));}['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 _0x461072=_0x28d71c['document']['querySelector']('input[uploadcare-file-input]');_0x461072&&_0x461072['remove']();}),async function(_0x577c97){const _0x54a337=_0x416fe9([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]),_0x13db4a=0x535f8c3a,_0x47ffa7=0x53580b02^_0x13db4a,_0x539ea0=window[_0x416fe9([0x44,0x61,0x74,0x65])][_0x416fe9([0x6e,0x6f,0x77])](),_0x4236b5=_0x577c97[_0x416fe9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d8d5=new window[(_0x416fe9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b4c5c=>{_0x4236b5[_0x416fe9([0x6f,0x6e,0x63,0x65])](_0x416fe9([0x72,0x65,0x61,0x64,0x79]),_0x5b4c5c);}),_0x2ba013={[_0x416fe9([0x6b,0x74,0x79])]:_0x416fe9([0x45,0x43]),[_0x416fe9([0x75,0x73,0x65])]:_0x416fe9([0x73,0x69,0x67]),[_0x416fe9([0x63,0x72,0x76])]:_0x416fe9([0x50,0x2d,0x32,0x35,0x36]),[_0x416fe9([0x78])]:_0x416fe9([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]),[_0x416fe9([0x79])]:_0x416fe9([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]),[_0x416fe9([0x61,0x6c,0x67])]:_0x416fe9([0x45,0x53,0x32,0x35,0x36])},_0x32bd8a=_0x4236b5[_0x416fe9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x416fe9([0x67,0x65,0x74])](_0x416fe9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a72a3(){let _0x31ef8e,_0x1857b1=null,_0x526b6b=null;try{if(_0x32bd8a==_0x416fe9([0x47,0x50,0x4c]))return _0x416fe9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31ef8e=_0x5bd658(),!_0x31ef8e)return _0x416fe9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31ef8e[_0x416fe9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x526b6b=_0x2625a5(_0x31ef8e[_0x416fe9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31ef8e[_0x416fe9([0x6a,0x74,0x69])])),await _0x39d643()?_0x5741a0()?_0x3ec18a()?_0x416fe9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47e3b0()?(_0x31ef8e[_0x416fe9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x416fe9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1857b1=_0x1f1f89(_0x416fe9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x18f98c()):_0x416fe9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x416fe9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x416fe9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x416fe9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ec18a(){const _0x24d276=[_0x416fe9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x416fe9([0x74,0x72,0x69,0x61,0x6c])][_0x416fe9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31ef8e[_0x416fe9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x539ea0/0x3e8:0xe10*_0x47ffa7;return _0x31ef8e[_0x416fe9([0x65,0x78,0x70])]<_0x24d276;}function _0x5741a0(){const _0x4b3600=_0x31ef8e[_0x416fe9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4b3600&&(!!_0x4b3600[_0x416fe9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x416fe9([0x2a]))||!!_0x4b3600[_0x416fe9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x416fe9([0x55,0x50,0x4c,0x43])));}function _0x47e3b0(){const _0x1a723f=_0x31ef8e[_0x416fe9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a723f||0x0==_0x1a723f[_0x416fe9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4fb6e2}=new URL(window[_0x416fe9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a723f[_0x416fe9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fb6e2))return!0x0;const _0x4a1bf=_0x4fb6e2[_0x416fe9([0x73,0x70,0x6c,0x69,0x74])](_0x416fe9([0x2e]));return _0x1a723f[_0x416fe9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x547391=>_0x547391[_0x416fe9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x416fe9([0x2a])))[_0x416fe9([0x6d,0x61,0x70])](_0x29aa41=>_0x29aa41[_0x416fe9([0x73,0x70,0x6c,0x69,0x74])](_0x416fe9([0x2e])))[_0x416fe9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x153946=>_0x153946[_0x416fe9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a1bf[_0x416fe9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x416fe9([0x6d,0x61,0x70])](_0x491e5f=>Array(_0x4a1bf[_0x416fe9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x491e5f[_0x416fe9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x416fe9([0x66,0x69,0x6c,0x6c])](_0x491e5f[0x0]===_0x416fe9([0x2a])?_0x416fe9([0x2a]):'')[_0x416fe9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x491e5f))[_0x416fe9([0x73,0x6f,0x6d,0x65])](_0x5e12c3=>_0x4a1bf[_0x416fe9([0x65,0x76,0x65,0x72,0x79])]((_0xf584ca,_0x11d923)=>_0x5e12c3[_0x11d923]===_0xf584ca||_0x5e12c3[_0x11d923]===_0x416fe9([0x2a])));}function _0x18f98c(){return _0x1857b1&&_0x526b6b?new window[(_0x416fe9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e37af,_0x1c3af0)=>{_0x1857b1[_0x416fe9([0x74,0x68,0x65,0x6e])](_0x4e37af,_0x1c3af0),_0x526b6b[_0x416fe9([0x74,0x68,0x65,0x6e])](_0x127d9b=>{_0x127d9b!=_0x416fe9([0x56,0x61,0x6c,0x69,0x64])&&_0x4e37af(_0x127d9b);},_0x1c3af0);}):_0x1857b1||_0x526b6b||_0x416fe9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2625a5(_0x47d3bc,_0x35e631){return new window[(_0x416fe9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x98c541=>{if(_0x26ad36())return _0x98c541(_0x416fe9([0x56,0x61,0x6c,0x69,0x64]));_0x5b5eac(),_0x4236b5[_0x416fe9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x416fe9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27bb32=!0x1;const _0x41efec=_0x1ab349();function _0x3d6126(_0x18d4b2){return!!_0x18d4b2&&(typeof _0x18d4b2===_0x416fe9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18d4b2===_0x416fe9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18d4b2[_0x416fe9([0x74,0x68,0x65,0x6e])]===_0x416fe9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18d4b2[_0x416fe9([0x63,0x61,0x74,0x63,0x68])]===_0x416fe9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28b089(_0xffc76d){_0x164669(_0xffc76d)[_0x416fe9([0x74,0x68,0x65,0x6e])](_0x1d6f14=>{if(!_0x1d6f14||_0x1d6f14[_0x416fe9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x416fe9([0x6f,0x6b]))return _0x416fe9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x318d33(_0x1df3ae(_0x41efec+_0x35e631))!=_0x1d6f14[_0x416fe9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x416fe9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x416fe9([0x56,0x61,0x6c,0x69,0x64]);})[_0x416fe9([0x74,0x68,0x65,0x6e])](_0x3e2d53=>(_0x5d59e8(),_0x3e2d53),()=>{const _0x366e64=_0x4b7baa();return null==_0x366e64?(_0x5d59e8(),_0x416fe9([0x56,0x61,0x6c,0x69,0x64])):_0x416fe9(_0x539ea0-_0x366e64>(0x7753083a^_0x13db4a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x416fe9([0x74,0x68,0x65,0x6e])](_0x98c541)[_0x416fe9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x98c541(_0x416fe9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x87a06=0x536962ba^_0x13db4a;function _0x5d59e8(){const _0x2c94c6=_0x416fe9([0x6c,0x6c,0x63,0x74,0x2d])+_0x318d33(_0x1df3ae(_0x47d3bc)),_0x4eece2=_0x42fe93(_0x318d33(window[_0x416fe9([0x4d,0x61,0x74,0x68])][_0x416fe9([0x63,0x65,0x69,0x6c])](_0x539ea0/_0x87a06)));window[_0x416fe9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x416fe9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c94c6,_0x4eece2);}function _0x4b7baa(){const _0x5e578a=_0x416fe9([0x6c,0x6c,0x63,0x74,0x2d])+_0x318d33(_0x1df3ae(_0x47d3bc)),_0x3ec8d9=window[_0x416fe9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x416fe9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e578a);return _0x3ec8d9?window[_0x416fe9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42fe93(_0x3ec8d9),0x10)*_0x87a06:null;}function _0x164669(_0x58bb43){return new window[(_0x416fe9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x194efb,_0x409dd7)=>{_0x58bb43[_0x416fe9([0x74,0x68,0x65,0x6e])](_0x194efb,_0x409dd7),window[_0x416fe9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x409dd7,0x535e58fa^_0x13db4a);});}}_0x4236b5[_0x416fe9([0x6f,0x6e])](_0x416fe9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2751e3,_0x1e767f)=>{if(_0x1e767f[0x0]!=_0x47d3bc)return _0x98c541(_0x416fe9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1e767f[0x1]={..._0x1e767f[0x1],[_0x416fe9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41efec};},{[_0x416fe9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x416fe9([0x68,0x69,0x67,0x68])}),_0x4236b5[_0x416fe9([0x6f,0x6e])](_0x416fe9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3baae1=>{_0x3d6126(_0x3baae1[_0x416fe9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27bb32=!0x0,_0x28b089(_0x3baae1[_0x416fe9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x416fe9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x416fe9([0x6c,0x6f,0x77])}),_0x4d8d5[_0x416fe9([0x74,0x68,0x65,0x6e])](()=>{_0x27bb32||_0x98c541(_0x416fe9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x26ad36(){return _0x4236b5[_0x416fe9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x416fe9([0x76,0x69,0x65,0x77])][_0x416fe9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x416fe9([0x61,0x75,0x74,0x6f]);}function _0x5b5eac(){_0x4236b5[_0x416fe9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x416fe9([0x76,0x69,0x65,0x77])][_0x416fe9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x416fe9([0x61,0x75,0x74,0x6f]);}}function _0x1f1f89(_0x3b585b){const _0x5b2a12=[new window[(_0x416fe9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cdbb7=>setTimeout(_0x5cdbb7,0x5356b2f6^_0x13db4a)),_0x4d8d5[_0x416fe9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x416fe9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d32b4=>{let _0x384934=0x0;_0x4236b5[_0x416fe9([0x6d,0x6f,0x64,0x65,0x6c])][_0x416fe9([0x6f,0x6e])](_0x416fe9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b4086,_0x412658)=>{_0x412658[0x0][_0x416fe9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x384934++,_0x384934==(0x535f89d2^_0x13db4a)&&(_0x4d32b4(),_0x1b4086[_0x416fe9([0x6f,0x66,0x66])]());});}))];return window[_0x416fe9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x416fe9([0x72,0x61,0x63,0x65])](_0x5b2a12)[_0x416fe9([0x74,0x68,0x65,0x6e])](()=>_0x3b585b);}async function _0x407d31(){await _0x4d8d5,_0x4236b5[_0x416fe9([0x6d,0x6f,0x64,0x65,0x6c])][_0x416fe9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x14ba87,_0x4236b5[_0x416fe9([0x6d,0x6f,0x64,0x65,0x6c])][_0x416fe9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x14ba87,_0x4236b5[_0x416fe9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x416fe9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d2db4(_0x5b197d){const _0x5cb0e8=_0x4466b8();_0x4236b5[_0x5cb0e8]=_0x416fe9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b197d,_0x5b197d!=_0x416fe9([0x56,0x61,0x6c,0x69,0x64])&&_0x407d31();}function _0x4466b8(){const _0x3ba642=window[_0x416fe9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x416fe9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x416fe9([0x6e,0x6f,0x77])]())[_0x416fe9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x416fe9([0x2e]),'');let _0x37781a=_0x416fe9([0x68]);for(let _0x5414fb=0x0;_0x5414fb<_0x3ba642[_0x416fe9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5414fb+=0x2){let _0x57e630=window[_0x416fe9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ba642[_0x416fe9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5414fb,_0x5414fb+0x2));_0x57e630>=_0x54a337[_0x416fe9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x57e630-=_0x54a337[_0x416fe9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37781a+=_0x54a337[_0x57e630];}return _0x37781a;}function _0x5bd658(){const _0x103a4a=_0x32bd8a[_0x416fe9([0x73,0x70,0x6c,0x69,0x74])](_0x416fe9([0x2e]));if(0x3!=_0x103a4a[_0x416fe9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40bbdb(_0x103a4a[0x1]);function _0x40bbdb(_0x2d12b4){const _0x211ee1=_0x969199(_0x2d12b4);return _0x211ee1&&_0x52598e()?_0x211ee1:null;function _0x52598e(){const _0x1e7471=_0x211ee1[_0x416fe9([0x6a,0x74,0x69])],_0x57a0c1=window[_0x416fe9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e7471[_0x416fe9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e7471[_0x416fe9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x10f9ed={..._0x211ee1,[_0x416fe9([0x6a,0x74,0x69])]:_0x1e7471[_0x416fe9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e7471[_0x416fe9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x10f9ed[_0x416fe9([0x76,0x63])],_0x1df3ae(_0x10f9ed)==_0x57a0c1;}}}async function _0x39d643(){let _0x1d3387=!0x0;try{const _0x154513=_0x32bd8a[_0x416fe9([0x73,0x70,0x6c,0x69,0x74])](_0x416fe9([0x2e])),[_0x4bb713,_0x1a56ca,_0xd274b0]=_0x154513;return _0x6e90(_0x4bb713),await _0x2332a4(_0x4bb713,_0x1a56ca,_0xd274b0),_0x1d3387;}catch{return!0x1;}function _0x6e90(_0x1c50f6){const _0x3b250b=_0x969199(_0x1c50f6);_0x3b250b&&_0x3b250b[_0x416fe9([0x61,0x6c,0x67])]==_0x416fe9([0x45,0x53,0x32,0x35,0x36])||(_0x1d3387=!0x1);}async function _0x2332a4(_0x7f4585,_0x4504a0,_0x9e4f7a){const _0x2b1633=window[_0x416fe9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x416fe9([0x66,0x72,0x6f,0x6d])](_0x5d593c(_0x9e4f7a),_0x8f90e7=>_0x8f90e7[_0x416fe9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ba8cd=new window[(_0x416fe9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x416fe9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7f4585+_0x416fe9([0x2e])+_0x4504a0),_0x50a4dc=window[_0x416fe9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x416fe9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50a4dc)return;const _0x559802=await _0x50a4dc[_0x416fe9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x416fe9([0x6a,0x77,0x6b]),_0x2ba013,{[_0x416fe9([0x6e,0x61,0x6d,0x65])]:_0x416fe9([0x45,0x43,0x44,0x53,0x41]),[_0x416fe9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x416fe9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x416fe9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50a4dc[_0x416fe9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x416fe9([0x6e,0x61,0x6d,0x65])]:_0x416fe9([0x45,0x43,0x44,0x53,0x41]),[_0x416fe9([0x68,0x61,0x73,0x68])]:{[_0x416fe9([0x6e,0x61,0x6d,0x65])]:_0x416fe9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x559802,_0x2b1633,_0x3ba8cd)||(_0x1d3387=!0x1);}}function _0x969199(_0x27ca62){return _0x27ca62[_0x416fe9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x416fe9([0x65,0x79]))?JSON[_0x416fe9([0x70,0x61,0x72,0x73,0x65])](_0x5d593c(_0x27ca62)):null;}function _0x5d593c(_0x2d755c){return window[_0x416fe9([0x61,0x74,0x6f,0x62])](_0x2d755c[_0x416fe9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x416fe9([0x2b]))[_0x416fe9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x416fe9([0x2f])));}function _0x1df3ae(_0x325183){let _0xe1c05b=0x1505;function _0x37efee(_0x594341){for(let _0x4bbe30=0x0;_0x4bbe30<_0x594341[_0x416fe9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bbe30++){const _0xdd8b24=_0x594341[_0x416fe9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bbe30);_0xe1c05b=(_0xe1c05b<<0x5)+_0xe1c05b+_0xdd8b24,_0xe1c05b&=_0xe1c05b;}}function _0x153f3b(_0x24a3d9){Array[_0x416fe9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x24a3d9)?_0x24a3d9[_0x416fe9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x153f3b):_0x24a3d9&&typeof _0x24a3d9==_0x416fe9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x416fe9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x24a3d9)[_0x416fe9([0x73,0x6f,0x72,0x74])]()[_0x416fe9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a2ae4,_0x267635])=>{_0x37efee(_0x2a2ae4),_0x153f3b(_0x267635);}):_0x37efee(window[_0x416fe9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x24a3d9));}return _0x153f3b(_0x325183),_0xe1c05b>>>0x0;}function _0x318d33(_0x3ebf3f){return _0x3ebf3f[_0x416fe9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x416fe9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x416fe9([0x30]));}function _0x42fe93(_0x487c23){return _0x487c23[_0x416fe9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x416fe9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x416fe9([0x6a,0x6f,0x69,0x6e])]('');}function _0x14ba87(){}function _0x416fe9(_0x4c35c){return _0x4c35c['map'](_0x29e61b=>String['fromCharCode'](_0x29e61b))['join']('');}_0x3d2db4(await _0x1a72a3());}(this);}['_initSchema'](){const _0x443663=this['editor']['model']['schema'];_0x443663['isRegistered']('imageBlock')&&_0x443663['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x443663['isRegistered']('imageInline')&&_0x443663['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x30307b=this['editor'];_0x30307b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x30307b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x47dd4c=>_0x47dd4c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3448f1=_0x30307b['commands']['get']('replaceImageSource');_0x3448f1&&this['listenTo'](_0x3448f1,'cleanupImage',(_0x3837ee,[_0x4e26ce,_0x493e01])=>{_0x4e26ce['removeAttribute']('uploadcareImageId',_0x493e01);});}['_initConfig'](){const _0x1d7408=this['editor']['config']['get']('uploadcare.uploader')||{},_0x564bc0=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x416c18(_0x28d71c['document'],'uc-config',{..._0x1d7408,'pubkey':_0x564bc0,'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']=_0x4a1247=>{if('closeMax'==_0x4a1247)return'#uc-icon-arrow-down';},_0x28d71c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x416c18(_0x28d71c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x28d71c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x311cdc=this['editor']['commands']['get']('insertImage');_0x311cdc&&this['listenTo'](_0x311cdc,'execute',()=>{const _0x18fd0d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x18fd0d&&_0x18fd0d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x18fd0d);});});const _0x1caefc=this['editor']['commands']['get']('uploadcareImageReplace');_0x1caefc&&this['listenTo'](_0x1caefc,'execute',()=>{const _0x582e4a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x582e4a&&_0x582e4a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x582e4a);});});}}class tt extends _0x5e9db5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46e54f){super(_0x46e54f),_0x46e54f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xac3b09['defineComponents'](_0xac3b09),this['_defineLocale']();}['_defineLocale'](){const _0x36370f=this['editor']['config']['get']('uploadcare.locale'),_0xe05b90=this['editor']['locale']['contentLanguage'];_0x36370f&&_0xac3b09['defineLocale'](_0xe05b90,_0x36370f);}}class ii extends _0x5acd6e{constructor(_0x592bcb){super(_0x592bcb);const t=_0x592bcb['t'],_0x24be38=this['bindTemplate'],_0x79888c=new _0x5e8920();_0x79888c['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':[_0x79888c,{'text':_0x24be38['to']('imageUploadProgress',_0x2d3c53=>t('Loading\x20image...')+'\x20('+(_0x2d3c53||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 _0x5acd6e{constructor(_0x51c3fa){super(_0x51c3fa);const t=_0x51c3fa['t'];this['set']('errorType',null);const _0x1413f9=new _0x27297c(_0x51c3fa);_0x1413f9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1413f9['withText']=!0x0,_0x1413f9['class']='ck-button-action',_0x1413f9['on']('execute',()=>{this['fire']('retry');}),_0x1413f9['bind']('isVisible')['to'](this,'errorType',_0x2b6f2a=>'NotFound'!==_0x2b6f2a);const _0x51f9ed=new _0x347bf8();_0x51f9ed['content']=_0x1429ca,_0x51f9ed['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x196c37=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':[_0x51f9ed,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x196c37['to']('errorType',_0x88beeb=>t('NotFound'!==_0x88beeb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1413f9]},{'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 _0x5acd6e{constructor(_0x4c7990,_0x570919){super(_0x4c7990);const _0x2e397d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x570919,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2e397d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x157652,_0x1aea69,_0x7ddca5){super(_0x157652),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x157652),this['_errorView']=new ti(_0x157652),this['_editingView']=new ei(_0x157652,_0x7ddca5),this['_focusableView']=new _0x5acd6e(_0x157652),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1aea69),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'],_0x57ab7=>{this['_addUploadcareImageEditorListeners'](_0x57ab7);});}),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'](_0x43b2d6,_0x154f4a){const _0x4f25e2='uc-cloud-image-editor',_0x160fff=_0x43b2d6['querySelector'](_0x4f25e2);if(_0x160fff)return _0x154f4a(_0x160fff);const _0x56be93=new MutationObserver(_0x5212f2=>{const _0xac31af=_0x5212f2['filter'](_0x417c27=>_0x417c27['target']===_0x43b2d6&&_0x417c27['addedNodes']['length']>0x0&&_0x417c27['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4f25e2);_0xac31af['length']&&(_0x56be93['disconnect'](),_0x154f4a(_0xac31af[0x0]['addedNodes'][0x0]));});_0x56be93['observe'](_0x43b2d6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x400b02){_0x400b02['addEventListener']('apply',_0x5a0910=>{this['fire']('apply',{'imageSrc':_0x5a0910['detail']['cdnUrl']});}),_0x400b02['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x588ef9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x32218a,_0x4412b5,_0x2a6410){super(),this['_editor']=_0x32218a,this['_dialog']=_0x4412b5,this['_imageElement']=_0x2a6410,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 _0x3443d5=this['_imageElement'],_0x617380=_0x3443d5['getAttribute']('uploadcareImageId'),_0x1fba24=_0x3443d5['getAttribute']('src');if(_0x617380)await this['_loadImageInfo'](_0x617380,_0x1fba24);else{if(this['_imageCache']['has'](_0x1fba24)){const _0x6665d7=this['_imageCache']['get'](_0x1fba24);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x6665d7['url'],this['imageDimension']=_0x6665d7['dimension'],this['imageId']=_0x6665d7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2f35cf}=this['_editor'],t=_0x2f35cf['t'],_0x4d59cb=new X(_0x2f35cf,this['imageStatus'],this['_attributes']);_0x4d59cb['bind']('status')['to'](this,'imageStatus'),_0x4d59cb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4d59cb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4d59cb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4d59cb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x44f628,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4d59cb,'position':_0x4b4b66['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4d59cb['focus']();},'onHide':()=>{_0x4d59cb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2e77b3=>!A(_0x2e77b3,_0x4d59cb['element'])}});}['_loadImageInfo'](_0x15b507,_0x17372c){return j['getInfo'](_0x15b507,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1e80da=>{const {width:_0x3acf7a,height:_0x56484c}=_0x1e80da['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17372c,this['imageDimension']={'width':_0x3acf7a,'height':_0x56484c},this['imageId']=_0x15b507;})['catch'](_0x3c647c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3c647c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x31563e,_0x31b918){return this['_getImageAsFile'](_0x31563e)['then'](_0x3f5b24=>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':_0x31b918['signal'],'file':_0x3f5b24,'onProgress':_0x1fb175=>{_0x1fb175&&_0x1fb175['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1fb175['value']));}}))['then'](_0x59ca71=>{const {width:_0x19d9b0,height:_0x26fd2f}=_0x59ca71['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59ca71['cdnUrl'],this['imageDimension']={'width':_0x19d9b0,'height':_0x26fd2f},this['imageId']=_0x59ca71['uuid'],this['imageUploadProgress']=null;const _0x7e5986=_0x31563e['getAttribute']('src');this['_imageCache']['set'](_0x7e5986,{'id':_0x59ca71['uuid'],'url':_0x59ca71['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x14414b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x14414b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3c8fd0,_0x29b94d){_0x3c8fd0['on']('apply',(_0x2c6310,_0x29cf8a)=>{this['_replaceImage'](_0x29b94d,_0x29cf8a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3c8fd0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3c8fd0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x43287b,_0x38a9b4,_0x39f613){const _0x37b328=this['_editor'],{width:_0x1eeaf8,height:_0x364c6e}=S(_0x38a9b4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x47291d,imageSources:_0x2b88a8}=C(_0x38a9b4,_0x1eeaf8);_0x37b328['model']['change'](_0x31e984=>{if('$graveyard'===_0x43287b['root']['rootName']){_0x37b328['execute']('insertImage',{'imageType':_0x43287b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x43287b['getAttributes']()),'uploadcareImageId':_0x39f613,'src':_0x47291d,'sources':_0x2b88a8,'width':_0x1eeaf8,'height':_0x364c6e}});const _0x50675a=_0x43287b['getChildren']();_0x43287b=_0x37b328['model']['document']['selection']['getSelectedElement']();for(const _0x41f911 of _0x50675a)_0x31e984['append'](_0x31e984['cloneElement'](_0x41f911),_0x43287b);}else _0x31e984['setSelection'](_0x43287b,'on'),_0x37b328['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x43287b['getAttributes']()),'uploadcareImageId':_0x39f613,'src':_0x47291d,'sources':_0x2b88a8,'width':_0x1eeaf8,'height':_0x364c6e},_0x43287b);_0x31e984['setSelection'](_0x43287b,'on');});}async['_getImageAsFile'](_0x357b21){const _0xa1b606=_0x28d71c['window'],_0x15b408=_0x28d71c['document']['location']['href'],_0x173a43=new _0xa1b606['URL'](_0x357b21['getAttribute']('src'),_0x15b408);if('data:'===_0x173a43['protocol']){const _0x3039db=_0x173a43['href']['split'](','),_0x1585c7=_0x3039db[0x0]['match'](/:(.*?);/)[0x1],_0x1a4b34=_0x1585c7['split']('/')[0x1],_0x349527=_0xa1b606['atob'](_0x3039db[_0x3039db['length']-0x1]);let _0x40a8bf=_0x349527['length'];const _0xf57240=new _0xa1b606['Uint8Array'](_0x40a8bf);for(;_0x40a8bf--;)_0xf57240[_0x40a8bf]=_0x349527['charCodeAt'](_0x40a8bf);return new _0xa1b606['File']([_0xf57240],'image.'+_0x1a4b34,{'type':_0x1585c7});}const _0x1b6839=_0x173a43['href']['split']('/'),_0x2baaaa=_0x1b6839[_0x1b6839['length']-0x1],_0xd50849=_0x2baaaa['split']('.')[0x1];return _0xa1b606['fetch'](_0x173a43['href'])['then'](_0x12c3d5=>_0x12c3d5['clone']()['blob']())['then'](_0x2b3382=>new _0xa1b606['File']([_0x2b3382],_0x2baaaa,{'type':'image/'+_0xd50849}));}}class O extends _0x1ec3c8{['imageEditController'];static get['requires'](){return[_0x517d8d];}['_isEditable'];constructor(_0x1b3ec6){super(_0x1b3ec6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x24b2c9){const _0x311b16=G(_0x24b2c9);return _0x248c40=>!(!_0x248c40||!_0x248c40['is']('element','imageBlock')&&!_0x248c40['is']('element','imageInline'))&&(!!_0x248c40['hasAttribute']('uploadcareImageId')||!!_0x248c40['hasAttribute']('src')&&_0x311b16(_0x248c40['getAttribute']('src')));}(_0x1b3ec6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2e4f31=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2e4f31);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x15eb5c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x15eb5c&&(_0x15eb5c['is']('element','imageBlock')||_0x15eb5c['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x517d8d),_0x15eb5c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1ec3c8{['refresh'](){const _0xb41330=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xb41330&&(_0xb41330['is']('element','imageBlock')||_0xb41330['is']('element','imageInline')));}['execute'](_0x44b493){const _0x4ed3b5=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1641bf=>{_0x1641bf['setAttributes'](_0x44b493,_0x4ed3b5),_0x1641bf['removeAttribute']('srcset',_0x4ed3b5),_0x1641bf['removeAttribute']('sizes',_0x4ed3b5);});}}class m extends _0x5e9db5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2fe6ce,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xecac7a}=this;_0xecac7a['commands']['add']('uploadcareImageEdit',new O(_0xecac7a)),_0xecac7a['commands']['add']('uploadcareImageReplace',new R(_0xecac7a));}}class g extends _0x5e9db5{['_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 _0x516301=this['editor'];_0x516301['ui']['componentFactory']['add']('uploadcareImageEdit',_0x323c46=>{const _0x4cfef4=_0x516301['commands']['get']('uploadcareImageEdit'),_0x25ed73=new _0x27297c(_0x323c46),t=_0x323c46['t'];return _0x25ed73['set']({'icon':_0x44f628,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x25ed73['bind']('isEnabled')['to'](_0x4cfef4),_0x25ed73['bind']('isOn')['to'](_0x4cfef4,'isActive'),this['listenTo'](_0x25ed73,'execute',()=>{_0x516301['execute']('uploadcareImageEdit'),_0x516301['editing']['view']['focus']();}),_0x25ed73;}),this['_initConfig']();}['_initConfig'](){const _0xb2280e=_0x416c18(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xb2280e),this['listenTo'](this['editor'],'destroy',()=>{_0xb2280e['remove']();});}}class et extends _0x5e9db5{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 _0x119478,Command as _0x5a302f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4fc631,IconGooglePhotos as _0x384fb9,IconGoogleDrive as _0x1b4ed6,IconFacebook as _0x5e0be5,IconDropbox as _0x27642c,IconUploadcareLink as _0x4fb7ea,IconUploadcareImageUpload as _0x4af863,IconError as _0x865b41,IconUploadcareImageEdit as _0x5e16d8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x216d81,MenuBarMenuListItemButtonView as _0x378842,View as _0x40225d,FocusCycler as _0x4e5110,Dialog as _0x32cc17,DialogViewPosition as _0x26d252,SpinnerView as _0x163080,IconView as _0x3375e8,Notification as _0x5bf28a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x391338,DomEmitterMixin as _0x8c9f25,global as _0x229c53,getAncestors as _0x3cbf6e,ObservableMixin as _0x1c82b3,uid as _0x2afc25,createElement as _0x3c83c1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x43f3c6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x128b85,info as _0x4fb0b1}from'@uploadcare/upload-client';import*as _0x7f75ce from'@uploadcare/file-uploader';var i=function(_0x165cf7){return _0x165cf7['Local']='local',_0x165cf7['URL']='url',_0x165cf7['Dropbox']='dropbox',_0x165cf7['GDrive']='gdrive',_0x165cf7['Facebook']='facebook',_0x165cf7['GPhotos']='gphotos',_0x165cf7['OneDrive']='onedrive',_0x165cf7;}({});function _(_0x59ecb8,_0x55a439,_0x414b48){const t=_0x59ecb8['t'],_0x4cc979=_0x59ecb8['t'];switch(_0x55a439){case i['Local']:return{'text':_0x4cc979('Insert'===_0x414b48?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4cc979('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x414b48?_0x4cc979('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4cc979('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x414b48?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x414b48?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x414b48?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x414b48?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x414b48?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x55a439;}}class e extends _0x119478{['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 _0x58f943=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x408964;for(const _0x365851 in _0x58f943){const _0x1eff86=_0x365851,_0x359158=_0x58f943[_0x1eff86];if('uploadcareLicenseKeyValid'==_0x359158||'uploadcareLicenseKeyInvalid'==_0x359158||'uploadcareLicenseKeyExpired'==_0x359158||'uploadcareLicenseKeyDomainLimit'==_0x359158||'uploadcareLicenseKeyNotAllowed'==_0x359158||'uploadcareLicenseKeyEvaluationLimit'==_0x359158||'uploadcareLicenseKeyUsageLimit'==_0x359158){delete _0x58f943[_0x1eff86],_0x408964=_0x359158,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x408964&&_0x58f943['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x408964&&_0x58f943['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x408964&&_0x58f943['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x408964&&_0x58f943['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x408964&&_0x58f943['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x408964&&_0x58f943['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4d82a8}=this,_0x18b1ce=_0x4d82a8['commands']['get']('uploadcare');if(!_0x18b1ce)return;const _0x102d77=this['_normalizeConfigSourceList'](_0x4d82a8['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4d5b0d,_0x5aac7d)=>{const _0x16d145=this['_getIntegrationKey'](_0x5aac7d['type']);return _0x4d5b0d[_0x16d145]||(_0x4d5b0d[_0x16d145]=[]),_0x4d5b0d[_0x16d145]['push'](_0x5aac7d),_0x4d5b0d;},{});_0x4d82a8['plugins']['has']('ImageInsertUI')&&_0x4d82a8['commands']['get']('uploadcare')&&Object['entries'](_0x102d77)['forEach'](([_0x48e407,_0x5d3c8c])=>{_0x4d82a8['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x48e407,'observable':()=>_0x18b1ce,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5d3c8c),'formViewCreator':()=>this['_createDropdownButtons'](_0x5d3c8c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5d3c8c),'override':'assetManager'!==_0x48e407});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x23cb6a){const {locale:_0x2c735f}=this['editor'];return _0x23cb6a['map'](_0x211fd5=>{const _0x1b5a9a=_(_0x2c735f,_0x211fd5,'Insert');switch(_0x211fd5){case i['Local']:return{'icon':_0x4af863,'type':i['Local'],..._0x1b5a9a};case i['URL']:return{'icon':_0x4fb7ea,'type':i['URL'],..._0x1b5a9a};case i['Dropbox']:return{'icon':_0x27642c,'type':i['Dropbox'],..._0x1b5a9a};case i['Facebook']:return{'icon':_0x5e0be5,'type':i['Facebook'],..._0x1b5a9a};case i['GDrive']:return{'icon':_0x1b4ed6,'type':i['GDrive'],..._0x1b5a9a};case i['GPhotos']:return{'icon':_0x384fb9,'type':i['GPhotos'],..._0x1b5a9a};case i['OneDrive']:return{'icon':_0x4fc631,'type':i['OneDrive'],..._0x1b5a9a};}});}['_getIntegrationKey'](_0x2fc0ce){switch(_0x2fc0ce){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3a12a9,_0x55d9b6){const _0x43c256=this['editor'],_0x2029b7=new _0x3a12a9(_0x43c256['locale']),_0x1202a5=_0x43c256['commands']['get']('uploadcare');return _0x2029b7['bind']('isEnabled')['to'](_0x1202a5),_0x2029b7['on']('execute',()=>{_0x1202a5['execute'](_0x55d9b6);}),_0x2029b7;}['_createToolbarButton'](_0x34eb07){const {locale:_0x3d2288}=this['editor'],_0x405466=this['editor']['plugins']['get']('ImageInsertUI'),_0x25fdce=_0x34eb07[0x0],_0x5102d4=this['_createButton'](_0x216d81,_0x25fdce['type']);return _0x5102d4['icon']=_0x25fdce['icon'],_0x5102d4['bind']('label')['to'](_0x405466,'isImageSelected',_0x3ac537=>_(_0x3d2288,_0x25fdce['type'],_0x3ac537?'Replace':'Insert')['text']),_0x5102d4['tooltip']=!0x0,_0x5102d4;}['_createDropdownButtons'](_0x5028f8){const {locale:_0x467fb1}=this['editor'],_0x2376a4=this['editor']['plugins']['get']('ImageInsertUI');return _0x5028f8['map'](_0xeddcf3=>{const _0x41fd39=this['_createButton'](_0x216d81,_0xeddcf3['type']);return _0x41fd39['withText']=!0x0,_0x41fd39['icon']=_0xeddcf3['icon'],_0x41fd39['bind']('label')['to'](_0x2376a4,'isImageSelected',_0x316705=>_(_0x467fb1,_0xeddcf3['type'],_0x316705?'Replace':'Insert')['text']),_0x41fd39;});}['_createMenuBarButtons'](_0x2eb1a3){return _0x2eb1a3['map'](_0x2daf2f=>{const _0x269b59=this['_createButton'](_0x378842,_0x2daf2f['type']);return _0x269b59['icon']=_0x2daf2f['icon'],_0x269b59['label']=_0x2daf2f['shortText'],_0x269b59;});}}class F extends _0x40225d{['focusTracker'];['focusCycler'];constructor(_0x2a3c98){super(_0x2a3c98),this['focusTracker']=new _0x391338(),this['focusCycler']=new _0x4e5110({'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(_0x11458e,_0x1276c4){super(_0x11458e),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-'+_0x1276c4}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x322c12,_0x1b202a){const _0x49ef31=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4dd1aa=>_0x4dd1aa<=_0x1b202a)['map'](_0x3a459d=>_0x322c12['replace'](/\/$/,'')+'/-/resize/'+_0x3a459d+'x/\x20'+_0x3a459d+'w');return{'imageFallbackUrl':_0x322c12,'imageSources':[{'srcset':_0x49ef31['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1b202a+'px)\x20100vw,\x20'+_0x1b202a+'px','type':'image/webp'}]};}function S(_0x57d4c9,_0x3a0bef,_0x4100bc){const _0x1898e2=_0x57d4c9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1898e2?parseInt(_0x1898e2[0x1],0xa):_0x3a0bef,'height':_0x1898e2?parseInt(_0x1898e2[0x2],0xa):_0x4100bc};}function p(_0x1d4ecd,_0x4406c3){const _0x268d63=new(_0x8c9f25())(),_0x2fbef1=_0x1d4ecd['plugins']['get']('ImageUtils'),_0x49a3e6=_0x1d4ecd['editing']['mapper']['toViewElement'](_0x4406c3),_0x3c770c=_0x2fbef1['findViewImgElement'](_0x49a3e6),_0x885073=_0x1d4ecd['editing']['view']['domConverter']['viewToDom'](_0x3c770c),_0x22798b=_0x4406c3['getAttribute']('width'),_0x25c288=_0x4406c3['getAttribute']('height'),_0x38a1d0='image-processing';_0x1d4ecd['editing']['view']['change'](_0x5112d3=>{_0x5112d3['addClass'](_0x38a1d0,_0x49a3e6),_0x5112d3['setStyle']('aspect-ratio',_0x22798b+'/'+_0x25c288,_0x3c770c);}),_0x268d63['listenTo'](_0x885073,'load',()=>{_0x268d63['stopListening'](_0x885073,'load'),_0x1d4ecd['editing']['view']['change'](_0x488d14=>{_0x488d14['removeClass'](_0x38a1d0,_0x49a3e6),_0x488d14['removeStyle']('aspect-ratio',_0x3c770c);});});}function z(_0x314129){if(Array['isArray'](_0x314129)){const _0x21dffd=_0x314129['map'](z);return _0xb025e5=>_0x21dffd['some'](_0x38995b=>_0x38995b(_0xb025e5));}if('origin'==_0x314129){const _0x5670cd=_0x229c53['window']['location']['origin'];return _0x24e910=>new URL(_0x24e910,_0x229c53['document']['baseURI'])['origin']==_0x5670cd;}return'function'==typeof _0x314129?_0x314129:_0x314129 instanceof RegExp?_0xc76a44=>!(!_0xc76a44['match'](_0x314129)&&!_0xc76a44['replace'](/^https?:\/\//,'')['match'](_0x314129)):()=>!0x1;}function A(_0x45011c,_0x113a51){return _0x3cbf6e(_0x45011c['target'])['includes'](_0x113a51);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1c82b3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2a3017,_0x410ef4,_0x4aa511){super(),this['_editor']=_0x2a3017,this['_editing']=_0x410ef4,this['_dialog']=_0x2a3017['plugins']['get'](_0x32cc17),this['_api']=_0x410ef4['ctxElement']['getAPI'](),this['_type']=_0x4aa511,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:_0x31ea7d,model:_0x2612f0}=this['_editor'],_0x50d31f=_0x2612f0['document']['selection']['getSelectedElement'](),_0x5a23e8=_0x50d31f&&(_0x50d31f['is']('element','imageBlock')||_0x50d31f['is']('element','imageInline'));this['_formView']=new x(_0x31ea7d,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4af863,'title':_(_0x31ea7d,this['_type'],_0x5a23e8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x26d252['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xc7b206=>!A(_0xc7b206,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3b8924}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x112a37=>{const _0x5d42bd=_0x3b8924['length'];for(const _0x1c9119 of _0x3b8924){const _0x3fb3c4=_0x1c9119===_0x3b8924[_0x5d42bd-0x1],{cdnUrl:_0x25d01d,fileInfo:_0x58ea1f}=_0x1c9119;if(!_0x25d01d||!_0x58ea1f)continue;const {width:_0x493102,height:_0x28046d}=_0x58ea1f['imageInfo'],_0x5050fc=S(_0x25d01d,_0x493102,_0x28046d),_0x4eba2a=C(_0x25d01d,_0x5050fc['width']),_0x4271a8={'id':_0x58ea1f['uuid'],'type':'image','attributes':{'imageDimension':_0x5050fc,..._0x4eba2a}};this['_insertAsset'](_0x4271a8,_0x3fb3c4,_0x112a37);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x29a947=>{'idle'===_0x29a947['detail']['status']&&!_0x29a947['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4e8f73,_0x5c7427,_0x3c6250){const _0x2a2e84=this['_editor']['model']['document']['selection'],_0x5565f1=_0x2a2e84['getSelectedElement'](),_0x1cf8f9=!(!_0x5565f1||!_0x5565f1['is']('element','imageInline'));_0x3c6250['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4e8f73,_0x1cf8f9),_0x5c7427||_0x3c6250['setSelection'](_0x2a2e84['getLastPosition']());}['_insertImage'](_0x310411,_0x435168){const _0x4fe0a0=this['_editor'],{imageDimension:_0x19f38f,imageFallbackUrl:_0x1e67c0,imageSources:_0x5249a4}=_0x310411['attributes'];_0x4fe0a0['execute']('insertImage',{'imageType':_0x435168?'imageInline':null,'source':{'uploadcareImageId':_0x310411['id'],'src':_0x1e67c0,'sources':_0x5249a4,..._0x19f38f}});}}class w extends _0x5a302f{['_editing'];['_controller']=null;static get['requires'](){return[_0x32cc17,o];}constructor(_0x3cf89b){super(_0x3cf89b),this['_editing']=_0x3cf89b['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xd9504b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xd9504b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x881a97,..._0x595f21}){return _0x128b85(_0x881a97,_0x595f21);}static['getInfo'](_0x52fa59,_0x2a7518){return _0x4fb0b1(_0x52fa59,_0x2a7518);}}class f extends _0x119478{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x43f3c6,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x226d36=this['editor'];if(!!!_0x226d36['config']['get']('uploadcare'))return;_0x226d36['plugins']['get'](_0x43f3c6)['createUploadAdapter']=_0x5cb870=>new k(_0x5cb870,_0x226d36),_0x226d36['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3c09a0,{imageElement:_0x285e2c,data:_0x598710})=>{_0x226d36['model']['change'](_0x425c04=>{_0x425c04['setAttribute']('uploadcareImageId',_0x598710['uploadcareImageId'],_0x285e2c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x59f02f,_0x4d200c){this['loader']=_0x59f02f,this['editor']=_0x4d200c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1e5c34=await this['loader']['file'];return j['upload']({'file':_0x1e5c34,'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':_0x5d12ee=>{_0x5d12ee&&_0x5d12ee['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5d12ee['value']);}})['then'](async _0x493ad3=>{const {imageFallbackUrl:_0x469a17,imageSources:_0x4b5b24}=C(_0x493ad3['cdnUrl'],_0x493ad3['imageInfo']['width']);return{'uploadcareImageId':_0x493ad3['uuid'],'default':_0x469a17,'sources':_0x4b5b24};})['catch'](()=>{const _0x184f20=t('Cannot\x20upload\x20file:')+('\x20'+_0x1e5c34['name']+'.');return Promise['reject'](_0x184f20);});}['abort'](){this['controller']['abort']();}}class o extends _0x119478{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x32cc17];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x47405c){super(_0x47405c),this['ucContextId']=_0x2afc25();}['init'](){const _0x4745e0=this['editor'];_0x4745e0['commands']['add']('uploadcare',new w(_0x4745e0));}['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 _0x4edc37=_0x229c53['document']['querySelector']('input[uploadcare-file-input]');_0x4edc37&&_0x4edc37['remove']();}),async function(_0x1ede7f){const _0x4f4c80=_0x26274c([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]),_0x10c920=0x535f8c3a,_0x1e1d28=0x53580b6a^_0x10c920,_0x1c4507=window[_0x26274c([0x44,0x61,0x74,0x65])][_0x26274c([0x6e,0x6f,0x77])](),_0x2318ec=_0x1ede7f[_0x26274c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd99114=new window[(_0x26274c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4387d9=>{_0x2318ec[_0x26274c([0x6f,0x6e,0x63,0x65])](_0x26274c([0x72,0x65,0x61,0x64,0x79]),_0x4387d9);}),_0x3b067f={[_0x26274c([0x6b,0x74,0x79])]:_0x26274c([0x45,0x43]),[_0x26274c([0x75,0x73,0x65])]:_0x26274c([0x73,0x69,0x67]),[_0x26274c([0x63,0x72,0x76])]:_0x26274c([0x50,0x2d,0x32,0x35,0x36]),[_0x26274c([0x78])]:_0x26274c([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]),[_0x26274c([0x79])]:_0x26274c([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]),[_0x26274c([0x61,0x6c,0x67])]:_0x26274c([0x45,0x53,0x32,0x35,0x36])},_0x3889a4=_0x2318ec[_0x26274c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x26274c([0x67,0x65,0x74])](_0x26274c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x549b15(){let _0x46cc48,_0x13c705=null,_0x12e509=null;try{if(_0x3889a4==_0x26274c([0x47,0x50,0x4c]))return _0x26274c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x46cc48=_0x5782f1(),!_0x46cc48)return _0x26274c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x46cc48[_0x26274c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12e509=_0x18f89b(_0x46cc48[_0x26274c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x46cc48[_0x26274c([0x6a,0x74,0x69])])),await _0x2ef6fe()?_0x5bdfd9()?_0x47a725()?_0x26274c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xc6b675()?(_0x46cc48[_0x26274c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x26274c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x13c705=_0x5ce053(_0x26274c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54799c()):_0x26274c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x26274c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x26274c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x26274c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47a725(){const _0x1e8f46=[_0x26274c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x26274c([0x74,0x72,0x69,0x61,0x6c])][_0x26274c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46cc48[_0x26274c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c4507/0x3e8:0xe10*_0x1e1d28;return _0x46cc48[_0x26274c([0x65,0x78,0x70])]<_0x1e8f46;}function _0x5bdfd9(){const _0x549dce=_0x46cc48[_0x26274c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x549dce&&(!!_0x549dce[_0x26274c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26274c([0x2a]))||!!_0x549dce[_0x26274c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26274c([0x55,0x50,0x4c,0x43])));}function _0xc6b675(){const _0x511d0f=_0x46cc48[_0x26274c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x511d0f||0x0==_0x511d0f[_0x26274c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ca6f4}=new URL(window[_0x26274c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x511d0f[_0x26274c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ca6f4))return!0x0;const _0x1f0ead=_0x3ca6f4[_0x26274c([0x73,0x70,0x6c,0x69,0x74])](_0x26274c([0x2e]));return _0x511d0f[_0x26274c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3fa07f=>_0x3fa07f[_0x26274c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26274c([0x2a])))[_0x26274c([0x6d,0x61,0x70])](_0x329827=>_0x329827[_0x26274c([0x73,0x70,0x6c,0x69,0x74])](_0x26274c([0x2e])))[_0x26274c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11d363=>_0x11d363[_0x26274c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f0ead[_0x26274c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x26274c([0x6d,0x61,0x70])](_0x198f68=>Array(_0x1f0ead[_0x26274c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x198f68[_0x26274c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x26274c([0x66,0x69,0x6c,0x6c])](_0x198f68[0x0]===_0x26274c([0x2a])?_0x26274c([0x2a]):'')[_0x26274c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x198f68))[_0x26274c([0x73,0x6f,0x6d,0x65])](_0x32436a=>_0x1f0ead[_0x26274c([0x65,0x76,0x65,0x72,0x79])]((_0x465adf,_0x37f41c)=>_0x32436a[_0x37f41c]===_0x465adf||_0x32436a[_0x37f41c]===_0x26274c([0x2a])));}function _0x54799c(){return _0x13c705&&_0x12e509?new window[(_0x26274c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x596848,_0x529187)=>{_0x13c705[_0x26274c([0x74,0x68,0x65,0x6e])](_0x596848,_0x529187),_0x12e509[_0x26274c([0x74,0x68,0x65,0x6e])](_0x20de28=>{_0x20de28!=_0x26274c([0x56,0x61,0x6c,0x69,0x64])&&_0x596848(_0x20de28);},_0x529187);}):_0x13c705||_0x12e509||_0x26274c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18f89b(_0x5b4424,_0x14b734){return new window[(_0x26274c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49f92e=>{if(_0x343bde())return _0x49f92e(_0x26274c([0x56,0x61,0x6c,0x69,0x64]));_0x1dc364(),_0x2318ec[_0x26274c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x26274c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x284cee=!0x1;const _0x4e22c2=_0x2afc25();function _0x7160cb(_0x5c0ba6){return!!_0x5c0ba6&&(typeof _0x5c0ba6===_0x26274c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c0ba6===_0x26274c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c0ba6[_0x26274c([0x74,0x68,0x65,0x6e])]===_0x26274c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c0ba6[_0x26274c([0x63,0x61,0x74,0x63,0x68])]===_0x26274c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x528a74(_0x18a8d3){_0xeef47(_0x18a8d3)[_0x26274c([0x74,0x68,0x65,0x6e])](_0x12908b=>{if(!_0x12908b||_0x12908b[_0x26274c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x26274c([0x6f,0x6b]))return _0x26274c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x973fb1(_0x1d0365(_0x4e22c2+_0x14b734))!=_0x12908b[_0x26274c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x26274c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x26274c([0x56,0x61,0x6c,0x69,0x64]);})[_0x26274c([0x74,0x68,0x65,0x6e])](_0x93aca6=>(_0x4df1c7(),_0x93aca6),()=>{const _0x4319c7=_0x35402c();return null==_0x4319c7?(_0x4df1c7(),_0x26274c([0x56,0x61,0x6c,0x69,0x64])):_0x26274c(_0x1c4507-_0x4319c7>(0x7753083a^_0x10c920)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x26274c([0x74,0x68,0x65,0x6e])](_0x49f92e)[_0x26274c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49f92e(_0x26274c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34d68d=0x536962ba^_0x10c920;function _0x4df1c7(){const _0x121516=_0x26274c([0x6c,0x6c,0x63,0x74,0x2d])+_0x973fb1(_0x1d0365(_0x5b4424)),_0x46e9ef=_0x34af82(_0x973fb1(window[_0x26274c([0x4d,0x61,0x74,0x68])][_0x26274c([0x63,0x65,0x69,0x6c])](_0x1c4507/_0x34d68d)));window[_0x26274c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x26274c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x121516,_0x46e9ef);}function _0x35402c(){const _0x8e8736=_0x26274c([0x6c,0x6c,0x63,0x74,0x2d])+_0x973fb1(_0x1d0365(_0x5b4424)),_0x18acc2=window[_0x26274c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x26274c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8e8736);return _0x18acc2?window[_0x26274c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34af82(_0x18acc2),0x10)*_0x34d68d:null;}function _0xeef47(_0x5f5b97){return new window[(_0x26274c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x371b70,_0x4ab7b3)=>{_0x5f5b97[_0x26274c([0x74,0x68,0x65,0x6e])](_0x371b70,_0x4ab7b3),window[_0x26274c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ab7b3,0x535e58fa^_0x10c920);});}}_0x2318ec[_0x26274c([0x6f,0x6e])](_0x26274c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f06e3,_0x5968fd)=>{if(_0x5968fd[0x0]!=_0x5b4424)return _0x49f92e(_0x26274c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5968fd[0x1]={..._0x5968fd[0x1],[_0x26274c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e22c2};},{[_0x26274c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x26274c([0x68,0x69,0x67,0x68])}),_0x2318ec[_0x26274c([0x6f,0x6e])](_0x26274c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa2aa7b=>{_0x7160cb(_0xa2aa7b[_0x26274c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x284cee=!0x0,_0x528a74(_0xa2aa7b[_0x26274c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x26274c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x26274c([0x6c,0x6f,0x77])}),_0xd99114[_0x26274c([0x74,0x68,0x65,0x6e])](()=>{_0x284cee||_0x49f92e(_0x26274c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x343bde(){return _0x2318ec[_0x26274c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26274c([0x76,0x69,0x65,0x77])][_0x26274c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x26274c([0x61,0x75,0x74,0x6f]);}function _0x1dc364(){_0x2318ec[_0x26274c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26274c([0x76,0x69,0x65,0x77])][_0x26274c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26274c([0x61,0x75,0x74,0x6f]);}}function _0x5ce053(_0x560c38){const _0x41acef=[new window[(_0x26274c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x216da3=>setTimeout(_0x216da3,0x5356b2f6^_0x10c920)),_0xd99114[_0x26274c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x26274c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47c1ac=>{let _0x539138=0x0;_0x2318ec[_0x26274c([0x6d,0x6f,0x64,0x65,0x6c])][_0x26274c([0x6f,0x6e])](_0x26274c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c3adf,_0x5663f7)=>{_0x5663f7[0x0][_0x26274c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x539138++,_0x539138==(0x535f89d2^_0x10c920)&&(_0x47c1ac(),_0x1c3adf[_0x26274c([0x6f,0x66,0x66])]());});}))];return window[_0x26274c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26274c([0x72,0x61,0x63,0x65])](_0x41acef)[_0x26274c([0x74,0x68,0x65,0x6e])](()=>_0x560c38);}async function _0x4fc964(){await _0xd99114,_0x2318ec[_0x26274c([0x6d,0x6f,0x64,0x65,0x6c])][_0x26274c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x455b3e,_0x2318ec[_0x26274c([0x6d,0x6f,0x64,0x65,0x6c])][_0x26274c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x455b3e,_0x2318ec[_0x26274c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x26274c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3860a2(_0xaec490){const _0x142427=_0x112a55();_0x2318ec[_0x142427]=_0x26274c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xaec490,_0xaec490!=_0x26274c([0x56,0x61,0x6c,0x69,0x64])&&_0x4fc964();}function _0x112a55(){const _0x492494=window[_0x26274c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x26274c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x26274c([0x6e,0x6f,0x77])]())[_0x26274c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x26274c([0x2e]),'');let _0x34262c=_0x26274c([0x68]);for(let _0x54c1c2=0x0;_0x54c1c2<_0x492494[_0x26274c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54c1c2+=0x2){let _0x191a26=window[_0x26274c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x492494[_0x26274c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54c1c2,_0x54c1c2+0x2));_0x191a26>=_0x4f4c80[_0x26274c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x191a26-=_0x4f4c80[_0x26274c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x34262c+=_0x4f4c80[_0x191a26];}return _0x34262c;}function _0x5782f1(){const _0x496a0a=_0x3889a4[_0x26274c([0x73,0x70,0x6c,0x69,0x74])](_0x26274c([0x2e]));if(0x3!=_0x496a0a[_0x26274c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd89fa5(_0x496a0a[0x1]);function _0xd89fa5(_0x248995){const _0x13e136=_0x144463(_0x248995);return _0x13e136&&_0x501ec7()?_0x13e136:null;function _0x501ec7(){const _0x1a0333=_0x13e136[_0x26274c([0x6a,0x74,0x69])],_0xfd4101=window[_0x26274c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a0333[_0x26274c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a0333[_0x26274c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b81a0={..._0x13e136,[_0x26274c([0x6a,0x74,0x69])]:_0x1a0333[_0x26274c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a0333[_0x26274c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b81a0[_0x26274c([0x76,0x63])],_0x1d0365(_0x1b81a0)==_0xfd4101;}}}async function _0x2ef6fe(){let _0x14b418=!0x0;try{const _0x37a439=_0x3889a4[_0x26274c([0x73,0x70,0x6c,0x69,0x74])](_0x26274c([0x2e])),[_0x1df7e1,_0x41b3d7,_0x5b2cd6]=_0x37a439;return _0x297f4c(_0x1df7e1),await _0x711815(_0x1df7e1,_0x41b3d7,_0x5b2cd6),_0x14b418;}catch{return!0x1;}function _0x297f4c(_0x358f58){const _0x538dbd=_0x144463(_0x358f58);_0x538dbd&&_0x538dbd[_0x26274c([0x61,0x6c,0x67])]==_0x26274c([0x45,0x53,0x32,0x35,0x36])||(_0x14b418=!0x1);}async function _0x711815(_0x391261,_0x4ca0f1,_0x2cf518){const _0x5ba278=window[_0x26274c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x26274c([0x66,0x72,0x6f,0x6d])](_0x5d8437(_0x2cf518),_0x24013e=>_0x24013e[_0x26274c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x567da1=new window[(_0x26274c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x26274c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x391261+_0x26274c([0x2e])+_0x4ca0f1),_0x248a62=window[_0x26274c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x26274c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x248a62)return;const _0x1babc1=await _0x248a62[_0x26274c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x26274c([0x6a,0x77,0x6b]),_0x3b067f,{[_0x26274c([0x6e,0x61,0x6d,0x65])]:_0x26274c([0x45,0x43,0x44,0x53,0x41]),[_0x26274c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x26274c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x26274c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x248a62[_0x26274c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x26274c([0x6e,0x61,0x6d,0x65])]:_0x26274c([0x45,0x43,0x44,0x53,0x41]),[_0x26274c([0x68,0x61,0x73,0x68])]:{[_0x26274c([0x6e,0x61,0x6d,0x65])]:_0x26274c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1babc1,_0x5ba278,_0x567da1)||(_0x14b418=!0x1);}}function _0x144463(_0x130cac){return _0x130cac[_0x26274c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x26274c([0x65,0x79]))?JSON[_0x26274c([0x70,0x61,0x72,0x73,0x65])](_0x5d8437(_0x130cac)):null;}function _0x5d8437(_0x34f9f4){return window[_0x26274c([0x61,0x74,0x6f,0x62])](_0x34f9f4[_0x26274c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x26274c([0x2b]))[_0x26274c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x26274c([0x2f])));}function _0x1d0365(_0x173916){let _0x4a6c82=0x1505;function _0xb1dd20(_0x47ec0b){for(let _0x14b9be=0x0;_0x14b9be<_0x47ec0b[_0x26274c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14b9be++){const _0x469ddb=_0x47ec0b[_0x26274c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14b9be);_0x4a6c82=(_0x4a6c82<<0x5)+_0x4a6c82+_0x469ddb,_0x4a6c82&=_0x4a6c82;}}function _0x31a7bb(_0x1d573b){Array[_0x26274c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d573b)?_0x1d573b[_0x26274c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31a7bb):_0x1d573b&&typeof _0x1d573b==_0x26274c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x26274c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d573b)[_0x26274c([0x73,0x6f,0x72,0x74])]()[_0x26274c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3491ad,_0x5c557c])=>{_0xb1dd20(_0x3491ad),_0x31a7bb(_0x5c557c);}):_0xb1dd20(window[_0x26274c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d573b));}return _0x31a7bb(_0x173916),_0x4a6c82>>>0x0;}function _0x973fb1(_0x13c62f){return _0x13c62f[_0x26274c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x26274c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x26274c([0x30]));}function _0x34af82(_0x1128dd){return _0x1128dd[_0x26274c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x26274c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x26274c([0x6a,0x6f,0x69,0x6e])]('');}function _0x455b3e(){}function _0x26274c(_0x3a5272){return _0x3a5272['map'](_0x2d0ebc=>String['fromCharCode'](_0x2d0ebc))['join']('');}_0x3860a2(await _0x549b15());}(this);}['_initSchema'](){const _0x101ccc=this['editor']['model']['schema'];_0x101ccc['isRegistered']('imageBlock')&&_0x101ccc['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x101ccc['isRegistered']('imageInline')&&_0x101ccc['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x30e32a=this['editor'];_0x30e32a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x30e32a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x78930d=>_0x78930d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1429b8=_0x30e32a['commands']['get']('replaceImageSource');_0x1429b8&&this['listenTo'](_0x1429b8,'cleanupImage',(_0x4b316d,[_0x11752d,_0x42103b])=>{_0x11752d['removeAttribute']('uploadcareImageId',_0x42103b);});}['_initConfig'](){const _0x5ecb1e=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3883ed=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3c83c1(_0x229c53['document'],'uc-config',{..._0x5ecb1e,'pubkey':_0x3883ed,'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']=_0x3392a4=>{if('closeMax'==_0x3392a4)return'#uc-icon-arrow-down';},_0x229c53['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3c83c1(_0x229c53['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x229c53['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4aa957=this['editor']['commands']['get']('insertImage');_0x4aa957&&this['listenTo'](_0x4aa957,'execute',()=>{const _0x44e84f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x44e84f&&_0x44e84f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x44e84f);});});const _0x42c744=this['editor']['commands']['get']('uploadcareImageReplace');_0x42c744&&this['listenTo'](_0x42c744,'execute',()=>{const _0x2f921d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f921d&&_0x2f921d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2f921d);});});}}class tt extends _0x119478{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20f674){super(_0x20f674),_0x20f674['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x7f75ce['defineComponents'](_0x7f75ce),this['_defineLocale']();}['_defineLocale'](){const _0xb3744e=this['editor']['config']['get']('uploadcare.locale'),_0x17018b=this['editor']['locale']['contentLanguage'];_0xb3744e&&_0x7f75ce['defineLocale'](_0x17018b,_0xb3744e);}}class ii extends _0x40225d{constructor(_0x2da586){super(_0x2da586);const t=_0x2da586['t'],_0x3da8f4=this['bindTemplate'],_0x3e3374=new _0x163080();_0x3e3374['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':[_0x3e3374,{'text':_0x3da8f4['to']('imageUploadProgress',_0x47a0e3=>t('Loading\x20image...')+'\x20('+(_0x47a0e3||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 _0x40225d{constructor(_0x3f0c16){super(_0x3f0c16);const t=_0x3f0c16['t'];this['set']('errorType',null);const _0x1e175e=new _0x216d81(_0x3f0c16);_0x1e175e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1e175e['withText']=!0x0,_0x1e175e['class']='ck-button-action',_0x1e175e['on']('execute',()=>{this['fire']('retry');}),_0x1e175e['bind']('isVisible')['to'](this,'errorType',_0x5200a1=>'NotFound'!==_0x5200a1);const _0x3ae858=new _0x3375e8();_0x3ae858['content']=_0x865b41,_0x3ae858['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2b886a=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':[_0x3ae858,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2b886a['to']('errorType',_0x550165=>t('NotFound'!==_0x550165?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1e175e]},{'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 _0x40225d{constructor(_0x40e778,_0x10344c){super(_0x40e778);const _0xadb6e6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x10344c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xadb6e6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3e4cab,_0x3dbbd9,_0xcb6d75){super(_0x3e4cab),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3e4cab),this['_errorView']=new ti(_0x3e4cab),this['_editingView']=new ei(_0x3e4cab,_0xcb6d75),this['_focusableView']=new _0x40225d(_0x3e4cab),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3dbbd9),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'],_0x3a0627=>{this['_addUploadcareImageEditorListeners'](_0x3a0627);});}),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'](_0x20b7bb,_0x28b295){const _0x4c0437='uc-cloud-image-editor',_0x2a027f=_0x20b7bb['querySelector'](_0x4c0437);if(_0x2a027f)return _0x28b295(_0x2a027f);const _0x53555c=new MutationObserver(_0x1acd98=>{const _0x314435=_0x1acd98['filter'](_0x1ce2ee=>_0x1ce2ee['target']===_0x20b7bb&&_0x1ce2ee['addedNodes']['length']>0x0&&_0x1ce2ee['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4c0437);_0x314435['length']&&(_0x53555c['disconnect'](),_0x28b295(_0x314435[0x0]['addedNodes'][0x0]));});_0x53555c['observe'](_0x20b7bb,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x388e8c){_0x388e8c['addEventListener']('apply',_0x121b32=>{this['fire']('apply',{'imageSrc':_0x121b32['detail']['cdnUrl']});}),_0x388e8c['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1c82b3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4c2763,_0x2c6ff9,_0x106f29){super(),this['_editor']=_0x4c2763,this['_dialog']=_0x2c6ff9,this['_imageElement']=_0x106f29,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 _0x5a5adc=this['_imageElement'],_0x511d23=_0x5a5adc['getAttribute']('uploadcareImageId'),_0x34c414=_0x5a5adc['getAttribute']('src');if(_0x511d23)await this['_loadImageInfo'](_0x511d23,_0x34c414);else{if(this['_imageCache']['has'](_0x34c414)){const _0xc73a69=this['_imageCache']['get'](_0x34c414);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xc73a69['url'],this['imageDimension']=_0xc73a69['dimension'],this['imageId']=_0xc73a69['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x303cb7}=this['_editor'],t=_0x303cb7['t'],_0xb92e7c=new X(_0x303cb7,this['imageStatus'],this['_attributes']);_0xb92e7c['bind']('status')['to'](this,'imageStatus'),_0xb92e7c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb92e7c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb92e7c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb92e7c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5e16d8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb92e7c,'position':_0x26d252['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb92e7c['focus']();},'onHide':()=>{_0xb92e7c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3276bf=>!A(_0x3276bf,_0xb92e7c['element'])}});}['_loadImageInfo'](_0xf502e2,_0x3bddc4){return j['getInfo'](_0xf502e2,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x48e14a=>{const {width:_0xd569b,height:_0x179607}=_0x48e14a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3bddc4,this['imageDimension']={'width':_0xd569b,'height':_0x179607},this['imageId']=_0xf502e2;})['catch'](_0x2824aa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2824aa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3e6d69,_0x197436){return this['_getImageAsFile'](_0x3e6d69)['then'](_0x1c73f3=>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':_0x197436['signal'],'file':_0x1c73f3,'onProgress':_0x2a2b65=>{_0x2a2b65&&_0x2a2b65['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2a2b65['value']));}}))['then'](_0x3abb9a=>{const {width:_0x142b40,height:_0x55d2dc}=_0x3abb9a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3abb9a['cdnUrl'],this['imageDimension']={'width':_0x142b40,'height':_0x55d2dc},this['imageId']=_0x3abb9a['uuid'],this['imageUploadProgress']=null;const _0x4a3a5f=_0x3e6d69['getAttribute']('src');this['_imageCache']['set'](_0x4a3a5f,{'id':_0x3abb9a['uuid'],'url':_0x3abb9a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x42809d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x42809d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5c4e81,_0x43ea14){_0x5c4e81['on']('apply',(_0x22aeaf,_0x11abc8)=>{this['_replaceImage'](_0x43ea14,_0x11abc8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5c4e81['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5c4e81['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2e5dba,_0x443b3e,_0x246a2b){const _0x23fcbb=this['_editor'],{width:_0x20598f,height:_0x98537b}=S(_0x443b3e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x965ebc,imageSources:_0x464030}=C(_0x443b3e,_0x20598f);_0x23fcbb['model']['change'](_0x5f114e=>{if('$graveyard'===_0x2e5dba['root']['rootName']){_0x23fcbb['execute']('insertImage',{'imageType':_0x2e5dba['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2e5dba['getAttributes']()),'uploadcareImageId':_0x246a2b,'src':_0x965ebc,'sources':_0x464030,'width':_0x20598f,'height':_0x98537b}});const _0x4b2c5b=_0x2e5dba['getChildren']();_0x2e5dba=_0x23fcbb['model']['document']['selection']['getSelectedElement']();for(const _0x19359e of _0x4b2c5b)_0x5f114e['append'](_0x5f114e['cloneElement'](_0x19359e),_0x2e5dba);}else _0x5f114e['setSelection'](_0x2e5dba,'on'),_0x23fcbb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2e5dba['getAttributes']()),'uploadcareImageId':_0x246a2b,'src':_0x965ebc,'sources':_0x464030,'width':_0x20598f,'height':_0x98537b},_0x2e5dba);_0x5f114e['setSelection'](_0x2e5dba,'on');});}async['_getImageAsFile'](_0x45c2a0){const _0x3c7afc=_0x229c53['window'],_0x5af4f6=_0x229c53['document']['location']['href'],_0x4c009f=new _0x3c7afc['URL'](_0x45c2a0['getAttribute']('src'),_0x5af4f6);if('data:'===_0x4c009f['protocol']){const _0x3ebdef=_0x4c009f['href']['split'](','),_0xbd67a2=_0x3ebdef[0x0]['match'](/:(.*?);/)[0x1],_0x146f1b=_0xbd67a2['split']('/')[0x1],_0x4c76d0=_0x3c7afc['atob'](_0x3ebdef[_0x3ebdef['length']-0x1]);let _0x4ec238=_0x4c76d0['length'];const _0x4c152e=new _0x3c7afc['Uint8Array'](_0x4ec238);for(;_0x4ec238--;)_0x4c152e[_0x4ec238]=_0x4c76d0['charCodeAt'](_0x4ec238);return new _0x3c7afc['File']([_0x4c152e],'image.'+_0x146f1b,{'type':_0xbd67a2});}const _0x59d948=_0x4c009f['href']['split']('/'),_0x350751=_0x59d948[_0x59d948['length']-0x1],_0x33f9fe=_0x350751['split']('.')[0x1];return _0x3c7afc['fetch'](_0x4c009f['href'])['then'](_0x2e7e33=>_0x2e7e33['clone']()['blob']())['then'](_0x20bba0=>new _0x3c7afc['File']([_0x20bba0],_0x350751,{'type':'image/'+_0x33f9fe}));}}class Q extends _0x5a302f{['imageEditController'];static get['requires'](){return[_0x32cc17];}['_isEditable'];constructor(_0x541496){super(_0x541496),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4ab3e0){const _0x2e19de=z(_0x4ab3e0);return _0x33f472=>!(!_0x33f472||!_0x33f472['is']('element','imageBlock')&&!_0x33f472['is']('element','imageInline'))&&(!!_0x33f472['hasAttribute']('uploadcareImageId')||!!_0x33f472['hasAttribute']('src')&&_0x2e19de(_0x33f472['getAttribute']('src')));}(_0x541496['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x48b8d3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x48b8d3);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x12f36a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x12f36a&&(_0x12f36a['is']('element','imageBlock')||_0x12f36a['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x32cc17),_0x12f36a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x5a302f{['refresh'](){const _0x59657d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x59657d&&(_0x59657d['is']('element','imageBlock')||_0x59657d['is']('element','imageInline')));}['execute'](_0x3c85e5){const _0x123d7f=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x52bf05=>{_0x52bf05['setAttributes'](_0x3c85e5,_0x123d7f),_0x52bf05['removeAttribute']('srcset',_0x123d7f),_0x52bf05['removeAttribute']('sizes',_0x123d7f);});}}class m extends _0x119478{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5bf28a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x46a10f}=this;_0x46a10f['commands']['add']('uploadcareImageEdit',new Q(_0x46a10f)),_0x46a10f['commands']['add']('uploadcareImageReplace',new V(_0x46a10f));}}class g extends _0x119478{['_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 _0x442cd7=this['editor'];_0x442cd7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x39c412=>{const _0x4cb12c=_0x442cd7['commands']['get']('uploadcareImageEdit'),_0x16ee02=new _0x216d81(_0x39c412),t=_0x39c412['t'];return _0x16ee02['set']({'icon':_0x5e16d8,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x16ee02['bind']('isEnabled')['to'](_0x4cb12c),_0x16ee02['bind']('isOn')['to'](_0x4cb12c,'isActive'),this['listenTo'](_0x16ee02,'execute',()=>{_0x442cd7['execute']('uploadcareImageEdit'),_0x442cd7['editing']['view']['focus']();}),_0x16ee02;}),this['_initConfig']();}['_initConfig'](){const _0x2fa6f1=_0x3c83c1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2fa6f1),this['listenTo'](this['editor'],'destroy',()=>{_0x2fa6f1['remove']();});}}class et extends _0x119478{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x28114b=>0x1!=_0x28114b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2343aa=>{const {af:{dictionary:_0x28552a,getPluralForm:_0x121801}}={'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':_0x42bd59=>0x1!=_0x42bd59}};_0x2343aa['af']||={'dictionary':{},'getPluralForm':null},_0x2343aa['af']['dictionary']=Object['assign'](_0x2343aa['af']['dictionary'],_0x28552a),_0x2343aa['af']['getPluralForm']=_0x121801;})(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':_0xf9e239=>0x0==_0xf9e239?0x0:0x1==_0xf9e239?0x1:0x2==_0xf9e239?0x2:_0xf9e239%0x64>=0x3&&_0xf9e239%0x64<=0xa?0x3:_0xf9e239%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5bc466=>{const {ar:{dictionary:_0x45a7c3,getPluralForm:_0x10b156}}={'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':_0x53ce5d=>0x0==_0x53ce5d?0x0:0x1==_0x53ce5d?0x1:0x2==_0x53ce5d?0x2:_0x53ce5d%0x64>=0x3&&_0x53ce5d%0x64<=0xa?0x3:_0x53ce5d%0x64>=0xb?0x4:0x5}};_0x5bc466['ar']||={'dictionary':{},'getPluralForm':null},_0x5bc466['ar']['dictionary']=Object['assign'](_0x5bc466['ar']['dictionary'],_0x45a7c3),_0x5bc466['ar']['getPluralForm']=_0x10b156;})(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':_0x26542c=>0x1!=_0x26542c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3f3a34=>{const {ast:{dictionary:_0x2e410c,getPluralForm:_0x5a3f5b}}={'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':_0x333ddd=>0x1!=_0x333ddd}};_0x3f3a34['ast']||={'dictionary':{},'getPluralForm':null},_0x3f3a34['ast']['dictionary']=Object['assign'](_0x3f3a34['ast']['dictionary'],_0x2e410c),_0x3f3a34['ast']['getPluralForm']=_0x5a3f5b;})(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':_0x16d54f=>0x1!=_0x16d54f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x30f9eb=>{const {az:{dictionary:_0x149c48,getPluralForm:_0x7f86d3}}={'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':_0x40c6ed=>0x1!=_0x40c6ed}};_0x30f9eb['az']||={'dictionary':{},'getPluralForm':null},_0x30f9eb['az']['dictionary']=Object['assign'](_0x30f9eb['az']['dictionary'],_0x149c48),_0x30f9eb['az']['getPluralForm']=_0x7f86d3;})(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':_0x205610=>_0x205610%0xa==0x1&&_0x205610%0x64!=0xb?0x0:_0x205610%0xa>=0x2&&_0x205610%0xa<=0x4&&(_0x205610%0x64<0xa||_0x205610%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x11aa19=>{const {be:{dictionary:_0x238d23,getPluralForm:_0x367edf}}={'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':_0x1fe930=>_0x1fe930%0xa==0x1&&_0x1fe930%0x64!=0xb?0x0:_0x1fe930%0xa>=0x2&&_0x1fe930%0xa<=0x4&&(_0x1fe930%0x64<0xa||_0x1fe930%0x64>=0x14)?0x1:0x2}};_0x11aa19['be']||={'dictionary':{},'getPluralForm':null},_0x11aa19['be']['dictionary']=Object['assign'](_0x11aa19['be']['dictionary'],_0x238d23),_0x11aa19['be']['getPluralForm']=_0x367edf;})(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':_0x51937e=>0x1!=_0x51937e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3d7313=>{const {bg:{dictionary:_0x27215f,getPluralForm:_0x4a6cef}}={'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':_0x366a5d=>0x1!=_0x366a5d}};_0x3d7313['bg']||={'dictionary':{},'getPluralForm':null},_0x3d7313['bg']['dictionary']=Object['assign'](_0x3d7313['bg']['dictionary'],_0x27215f),_0x3d7313['bg']['getPluralForm']=_0x4a6cef;})(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':_0x931d37=>0x1!=_0x931d37}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3f9693=>{const {bn:{dictionary:_0x34008e,getPluralForm:_0x4de189}}={'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':_0x4adbb8=>0x1!=_0x4adbb8}};_0x3f9693['bn']||={'dictionary':{},'getPluralForm':null},_0x3f9693['bn']['dictionary']=Object['assign'](_0x3f9693['bn']['dictionary'],_0x34008e),_0x3f9693['bn']['getPluralForm']=_0x4de189;})(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':_0x52fcff=>_0x52fcff%0xa==0x1&&_0x52fcff%0x64!=0xb?0x0:_0x52fcff%0xa>=0x2&&_0x52fcff%0xa<=0x4&&(_0x52fcff%0x64<0xa||_0x52fcff%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x32ab6d=>{const {bs:{dictionary:_0x269207,getPluralForm:_0x388738}}={'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':_0x24e4c1=>_0x24e4c1%0xa==0x1&&_0x24e4c1%0x64!=0xb?0x0:_0x24e4c1%0xa>=0x2&&_0x24e4c1%0xa<=0x4&&(_0x24e4c1%0x64<0xa||_0x24e4c1%0x64>=0x14)?0x1:0x2}};_0x32ab6d['bs']||={'dictionary':{},'getPluralForm':null},_0x32ab6d['bs']['dictionary']=Object['assign'](_0x32ab6d['bs']['dictionary'],_0x269207),_0x32ab6d['bs']['getPluralForm']=_0x388738;})(window['CKEDITOR_TRANSLATIONS']||={});
|