@ckeditor/ckeditor5-uploadcare 47.4.0-alpha.4 → 47.4.0-alpha.5
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 _0x5e5b75,Command as _0x5b5250}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x7a380c,IconGooglePhotos as _0x577ced,IconGoogleDrive as _0x493a4c,IconFacebook as _0x50f466,IconDropbox as _0x251fa4,IconUploadcareLink as _0x58efce,IconUploadcareImageUpload as _0x21d571,IconError as _0x29e476,IconUploadcareImageEdit as _0x3a6507}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2fdd6d,MenuBarMenuListItemButtonView as _0x41414e,View as _0x4e29b2,FocusCycler as _0xb089db,Dialog as _0x4f93e4,DialogViewPosition as _0x5965e9,SpinnerView as _0x3f513c,IconView as _0x270023,Notification as _0x51acdf}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x485e34,DomEmitterMixin as _0x6d4950,global as _0x3b421d,getAncestors as _0xf3e525,ObservableMixin as _0x3d34e2,uid as _0x72b675,createElement as _0x51e8e3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x22e926}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3a01d7,info as _0x30fa2b}from'@uploadcare/upload-client';import*as _0x4bf5a8 from'@uploadcare/file-uploader';var i=function(_0x5d54d5){return _0x5d54d5['Local']='local',_0x5d54d5['URL']='url',_0x5d54d5['Dropbox']='dropbox',_0x5d54d5['GDrive']='gdrive',_0x5d54d5['Facebook']='facebook',_0x5d54d5['GPhotos']='gphotos',_0x5d54d5['OneDrive']='onedrive',_0x5d54d5;}({});function _(_0x2a061a,_0x2f0d52,_0x2536b8){const t=_0x2a061a['t'],_0x137af6=_0x2a061a['t'];switch(_0x2f0d52){case i['Local']:return{'text':_0x137af6('Insert'===_0x2536b8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x137af6('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2536b8?_0x137af6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x137af6('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2536b8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2536b8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2536b8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2536b8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2536b8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2f0d52;}}class e extends _0x5e5b75{['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 _0x43950b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1bcd4a;for(const _0x166987 in _0x43950b){const _0x32f04d=_0x166987,_0x219025=_0x43950b[_0x32f04d];if('uploadcareLicenseKeyValid'==_0x219025||'uploadcareLicenseKeyInvalid'==_0x219025||'uploadcareLicenseKeyExpired'==_0x219025||'uploadcareLicenseKeyDomainLimit'==_0x219025||'uploadcareLicenseKeyNotAllowed'==_0x219025||'uploadcareLicenseKeyEvaluationLimit'==_0x219025||'uploadcareLicenseKeyUsageLimit'==_0x219025){delete _0x43950b[_0x32f04d],_0x1bcd4a=_0x219025,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1bcd4a&&_0x43950b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1bcd4a&&_0x43950b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1bcd4a&&_0x43950b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1bcd4a&&_0x43950b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1bcd4a&&_0x43950b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1bcd4a&&_0x43950b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x28ffce}=this,_0x5a7f38=_0x28ffce['commands']['get']('uploadcare');if(!_0x5a7f38)return;const _0x2f9a20=this['_normalizeConfigSourceList'](_0x28ffce['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2fe5a2,_0x16e471)=>{const _0x3fdfa1=this['_getIntegrationKey'](_0x16e471['type']);return _0x2fe5a2[_0x3fdfa1]||(_0x2fe5a2[_0x3fdfa1]=[]),_0x2fe5a2[_0x3fdfa1]['push'](_0x16e471),_0x2fe5a2;},{});_0x28ffce['plugins']['has']('ImageInsertUI')&&_0x28ffce['commands']['get']('uploadcare')&&Object['entries'](_0x2f9a20)['forEach'](([_0x57a9f5,_0x31ea82])=>{_0x28ffce['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x57a9f5,'observable':()=>_0x5a7f38,'buttonViewCreator':()=>this['_createToolbarButton'](_0x31ea82),'formViewCreator':()=>this['_createDropdownButtons'](_0x31ea82),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x31ea82),'override':'assetManager'!==_0x57a9f5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x372d3f){const {locale:_0x17f4a9}=this['editor'];return _0x372d3f['map'](_0x562926=>{const _0x406393=_(_0x17f4a9,_0x562926,'Insert');switch(_0x562926){case i['Local']:return{'icon':_0x21d571,'type':i['Local'],..._0x406393};case i['URL']:return{'icon':_0x58efce,'type':i['URL'],..._0x406393};case i['Dropbox']:return{'icon':_0x251fa4,'type':i['Dropbox'],..._0x406393};case i['Facebook']:return{'icon':_0x50f466,'type':i['Facebook'],..._0x406393};case i['GDrive']:return{'icon':_0x493a4c,'type':i['GDrive'],..._0x406393};case i['GPhotos']:return{'icon':_0x577ced,'type':i['GPhotos'],..._0x406393};case i['OneDrive']:return{'icon':_0x7a380c,'type':i['OneDrive'],..._0x406393};}});}['_getIntegrationKey'](_0x2ef5d7){switch(_0x2ef5d7){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x316e6e,_0x27ac6e){const _0x1c186b=this['editor'],_0x5603d5=new _0x316e6e(_0x1c186b['locale']),_0x143a4d=_0x1c186b['commands']['get']('uploadcare');return _0x5603d5['bind']('isEnabled')['to'](_0x143a4d),_0x5603d5['on']('execute',()=>{_0x143a4d['execute'](_0x27ac6e);}),_0x5603d5;}['_createToolbarButton'](_0x2890d2){const {locale:_0x31d9cc}=this['editor'],_0x122846=this['editor']['plugins']['get']('ImageInsertUI'),_0x3fded0=_0x2890d2[0x0],_0x2f747c=this['_createButton'](_0x2fdd6d,_0x3fded0['type']);return _0x2f747c['icon']=_0x3fded0['icon'],_0x2f747c['bind']('label')['to'](_0x122846,'isImageSelected',_0x1206a7=>_(_0x31d9cc,_0x3fded0['type'],_0x1206a7?'Replace':'Insert')['text']),_0x2f747c['tooltip']=!0x0,_0x2f747c;}['_createDropdownButtons'](_0xdfc87b){const {locale:_0x1066f5}=this['editor'],_0x13d500=this['editor']['plugins']['get']('ImageInsertUI');return _0xdfc87b['map'](_0x29b594=>{const _0x41acf7=this['_createButton'](_0x2fdd6d,_0x29b594['type']);return _0x41acf7['withText']=!0x0,_0x41acf7['icon']=_0x29b594['icon'],_0x41acf7['bind']('label')['to'](_0x13d500,'isImageSelected',_0x1063c8=>_(_0x1066f5,_0x29b594['type'],_0x1063c8?'Replace':'Insert')['text']),_0x41acf7;});}['_createMenuBarButtons'](_0x4f4417){return _0x4f4417['map'](_0x221ba9=>{const _0x754614=this['_createButton'](_0x41414e,_0x221ba9['type']);return _0x754614['icon']=_0x221ba9['icon'],_0x754614['label']=_0x221ba9['shortText'],_0x754614;});}}class F extends _0x4e29b2{['focusTracker'];['focusCycler'];constructor(_0x26d5a3){super(_0x26d5a3),this['focusTracker']=new _0x485e34(),this['focusCycler']=new _0xb089db({'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(_0x50b5b3,_0x2526c1){super(_0x50b5b3),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-'+_0x2526c1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x39335a,_0x185ca7){const _0x4cb508=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x22749c=>_0x22749c<=_0x185ca7)['map'](_0x123ed2=>_0x39335a['replace'](/\/$/,'')+'/-/resize/'+_0x123ed2+'x/\x20'+_0x123ed2+'w');return{'imageFallbackUrl':_0x39335a,'imageSources':[{'srcset':_0x4cb508['join'](',\x20'),'sizes':'(max-width:\x20'+_0x185ca7+'px)\x20100vw,\x20'+_0x185ca7+'px','type':'image/webp'}]};}function S(_0x148502,_0x5c0159,_0x11b9c6){const _0x573f9b=_0x148502['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x573f9b?parseInt(_0x573f9b[0x1],0xa):_0x5c0159,'height':_0x573f9b?parseInt(_0x573f9b[0x2],0xa):_0x11b9c6};}function p(_0x3b4b26,_0x62a5f6){const _0x451ca8=new(_0x6d4950())(),_0x5e58a2=_0x3b4b26['plugins']['get']('ImageUtils'),_0x3309a5=_0x3b4b26['editing']['mapper']['toViewElement'](_0x62a5f6),_0x17ae09=_0x5e58a2['findViewImgElement'](_0x3309a5),_0x3c5670=_0x3b4b26['editing']['view']['domConverter']['viewToDom'](_0x17ae09),_0x2500a3=_0x62a5f6['getAttribute']('width'),_0x166b18=_0x62a5f6['getAttribute']('height'),_0x4e79c4='image-processing';_0x3b4b26['editing']['view']['change'](_0x284f09=>{_0x284f09['addClass'](_0x4e79c4,_0x3309a5),_0x284f09['setStyle']('aspect-ratio',_0x2500a3+'/'+_0x166b18,_0x17ae09);}),_0x451ca8['listenTo'](_0x3c5670,'load',()=>{_0x451ca8['stopListening'](_0x3c5670,'load'),_0x3b4b26['editing']['view']['change'](_0x3ba8ac=>{_0x3ba8ac['removeClass'](_0x4e79c4,_0x3309a5),_0x3ba8ac['removeStyle']('aspect-ratio',_0x17ae09);});});}function z(_0x5b8297){if(Array['isArray'](_0x5b8297)){const _0x780def=_0x5b8297['map'](z);return _0x4ca7ae=>_0x780def['some'](_0x474079=>_0x474079(_0x4ca7ae));}if('origin'==_0x5b8297){const _0x4ce223=_0x3b421d['window']['location']['origin'];return _0x3f462e=>new URL(_0x3f462e,_0x3b421d['document']['baseURI'])['origin']==_0x4ce223;}return'function'==typeof _0x5b8297?_0x5b8297:_0x5b8297 instanceof RegExp?_0x28a53b=>!(!_0x28a53b['match'](_0x5b8297)&&!_0x28a53b['replace'](/^https?:\/\//,'')['match'](_0x5b8297)):()=>!0x1;}function A(_0x18ccc4,_0x2e5169){return _0xf3e525(_0x18ccc4['target'])['includes'](_0x2e5169);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3d34e2(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x18c44c,_0x227004,_0xf1bd5d){super(),this['_editor']=_0x18c44c,this['_editing']=_0x227004,this['_dialog']=_0x18c44c['plugins']['get'](_0x4f93e4),this['_api']=_0x227004['ctxElement']['getAPI'](),this['_type']=_0xf1bd5d,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:_0x4a231a,model:_0x2c87c1}=this['_editor'],_0x57cbc3=_0x2c87c1['document']['selection']['getSelectedElement'](),_0x1e9429=_0x57cbc3&&(_0x57cbc3['is']('element','imageBlock')||_0x57cbc3['is']('element','imageInline'));this['_formView']=new x(_0x4a231a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x21d571,'title':_(_0x4a231a,this['_type'],_0x1e9429?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5965e9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x46bdcf=>!A(_0x46bdcf,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x33aacf}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3c2486=>{const _0x322ec3=_0x33aacf['length'];for(const _0x3b1938 of _0x33aacf){const _0x3af473=_0x3b1938===_0x33aacf[_0x322ec3-0x1],{cdnUrl:_0x188920,fileInfo:_0xb4e6c2}=_0x3b1938;if(!_0x188920||!_0xb4e6c2)continue;const {width:_0x59d41f,height:_0x5ef177}=_0xb4e6c2['imageInfo'],_0x2ba84c=S(_0x188920,_0x59d41f,_0x5ef177),_0x61467=C(_0x188920,_0x2ba84c['width']),_0x374c2d={'id':_0xb4e6c2['uuid'],'type':'image','attributes':{'imageDimension':_0x2ba84c,..._0x61467}};this['_insertAsset'](_0x374c2d,_0x3af473,_0x3c2486);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x467069=>{'idle'===_0x467069['detail']['status']&&!_0x467069['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2ec3e1,_0x553158,_0xbd3aba){const _0x4a750d=this['_editor']['model']['document']['selection'],_0x1aa77b=_0x4a750d['getSelectedElement'](),_0x4b2546=!(!_0x1aa77b||!_0x1aa77b['is']('element','imageInline'));_0xbd3aba['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2ec3e1,_0x4b2546),_0x553158||_0xbd3aba['setSelection'](_0x4a750d['getLastPosition']());}['_insertImage'](_0xd80b2a,_0x41909d){const _0x5efabb=this['_editor'],{imageDimension:_0xa2a215,imageFallbackUrl:_0x43ef1c,imageSources:_0x776539}=_0xd80b2a['attributes'];_0x5efabb['execute']('insertImage',{'imageType':_0x41909d?'imageInline':null,'source':{'uploadcareImageId':_0xd80b2a['id'],'src':_0x43ef1c,'sources':_0x776539,..._0xa2a215}});}}class w extends _0x5b5250{['_editing'];['_controller']=null;static get['requires'](){return[_0x4f93e4,o];}constructor(_0x1fb7fb){super(_0x1fb7fb),this['_editing']=_0x1fb7fb['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x156e7f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x156e7f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x46012e,..._0x11a0b5}){return _0x3a01d7(_0x46012e,_0x11a0b5);}static['getInfo'](_0x1ad1a3,_0x2d105d){return _0x30fa2b(_0x1ad1a3,_0x2d105d);}}class f extends _0x5e5b75{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x22e926,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x50377b=this['editor'];if(!!!_0x50377b['config']['get']('uploadcare'))return;_0x50377b['plugins']['get'](_0x22e926)['createUploadAdapter']=_0x3642cf=>new k(_0x3642cf,_0x50377b),_0x50377b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x15b510,{imageElement:_0x5adc06,data:_0x452f1f})=>{_0x50377b['model']['change'](_0x16c387=>{_0x16c387['setAttribute']('uploadcareImageId',_0x452f1f['uploadcareImageId'],_0x5adc06);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x9edb9c,_0x4d2b1c){this['loader']=_0x9edb9c,this['editor']=_0x4d2b1c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x593344=await this['loader']['file'];return j['upload']({'file':_0x593344,'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':_0x1458fa=>{_0x1458fa&&_0x1458fa['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1458fa['value']);}})['then'](async _0x4cb910=>{const {imageFallbackUrl:_0x125c22,imageSources:_0x232acd}=C(_0x4cb910['cdnUrl'],_0x4cb910['imageInfo']['width']);return{'uploadcareImageId':_0x4cb910['uuid'],'default':_0x125c22,'sources':_0x232acd};})['catch'](()=>{const _0x33cb5a=t('Cannot\x20upload\x20file:')+('\x20'+_0x593344['name']+'.');return Promise['reject'](_0x33cb5a);});}['abort'](){this['controller']['abort']();}}class o extends _0x5e5b75{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4f93e4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xd512db){super(_0xd512db),this['ucContextId']=_0x72b675();}['init'](){const _0x23303f=this['editor'];_0x23303f['commands']['add']('uploadcare',new w(_0x23303f));}['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 _0x2bf034=_0x3b421d['document']['querySelector']('input[uploadcare-file-input]');_0x2bf034&&_0x2bf034['remove']();}),async function(_0x513e7d){const _0x49c745=_0x2dbdeb([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]),_0x27ecb6=0x535f8c3a,_0x45a180=0x5358f2a2^_0x27ecb6,_0x1bff4e=window[_0x2dbdeb([0x44,0x61,0x74,0x65])][_0x2dbdeb([0x6e,0x6f,0x77])](),_0x48a3c0=_0x513e7d[_0x2dbdeb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ff0ef=new window[(_0x2dbdeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15b0db=>{_0x48a3c0[_0x2dbdeb([0x6f,0x6e,0x63,0x65])](_0x2dbdeb([0x72,0x65,0x61,0x64,0x79]),_0x15b0db);}),_0x351da4={[_0x2dbdeb([0x6b,0x74,0x79])]:_0x2dbdeb([0x45,0x43]),[_0x2dbdeb([0x75,0x73,0x65])]:_0x2dbdeb([0x73,0x69,0x67]),[_0x2dbdeb([0x63,0x72,0x76])]:_0x2dbdeb([0x50,0x2d,0x32,0x35,0x36]),[_0x2dbdeb([0x78])]:_0x2dbdeb([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]),[_0x2dbdeb([0x79])]:_0x2dbdeb([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]),[_0x2dbdeb([0x61,0x6c,0x67])]:_0x2dbdeb([0x45,0x53,0x32,0x35,0x36])},_0x2b744e=_0x48a3c0[_0x2dbdeb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2dbdeb([0x67,0x65,0x74])](_0x2dbdeb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54c182(){let _0x9a42f1,_0x57eb47=null,_0x2418a0=null;try{if(_0x2b744e==_0x2dbdeb([0x47,0x50,0x4c]))return _0x2dbdeb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9a42f1=_0x5494d7(),!_0x9a42f1)return _0x2dbdeb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9a42f1[_0x2dbdeb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2418a0=_0x102717(_0x9a42f1[_0x2dbdeb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9a42f1[_0x2dbdeb([0x6a,0x74,0x69])])),await _0x269fe1()?_0x2e4db0()?_0x3e1025()?_0x2dbdeb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5800ef()?(_0x9a42f1[_0x2dbdeb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dbdeb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57eb47=_0x24d6a1(_0x2dbdeb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59850f()):_0x2dbdeb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2dbdeb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2dbdeb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2dbdeb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3e1025(){const _0x330f68=[_0x2dbdeb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2dbdeb([0x74,0x72,0x69,0x61,0x6c])][_0x2dbdeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a42f1[_0x2dbdeb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1bff4e/0x3e8:0xe10*_0x45a180;return _0x9a42f1[_0x2dbdeb([0x65,0x78,0x70])]<_0x330f68;}function _0x2e4db0(){const _0x56d53c=_0x9a42f1[_0x2dbdeb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x56d53c&&(!!_0x56d53c[_0x2dbdeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dbdeb([0x2a]))||!!_0x56d53c[_0x2dbdeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dbdeb([0x55,0x50,0x4c,0x43])));}function _0x5800ef(){const _0x20c4a3=_0x9a42f1[_0x2dbdeb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20c4a3||0x0==_0x20c4a3[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xfbf3bf}=new URL(window[_0x2dbdeb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20c4a3[_0x2dbdeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfbf3bf))return!0x0;const _0x4564f7=_0xfbf3bf[_0x2dbdeb([0x73,0x70,0x6c,0x69,0x74])](_0x2dbdeb([0x2e]));return _0x20c4a3[_0x2dbdeb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x251d7f=>_0x251d7f[_0x2dbdeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dbdeb([0x2a])))[_0x2dbdeb([0x6d,0x61,0x70])](_0x4a0034=>_0x4a0034[_0x2dbdeb([0x73,0x70,0x6c,0x69,0x74])](_0x2dbdeb([0x2e])))[_0x2dbdeb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x452ae6=>_0x452ae6[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4564f7[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dbdeb([0x6d,0x61,0x70])](_0x2c87dc=>Array(_0x4564f7[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c87dc[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dbdeb([0x66,0x69,0x6c,0x6c])](_0x2c87dc[0x0]===_0x2dbdeb([0x2a])?_0x2dbdeb([0x2a]):'')[_0x2dbdeb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c87dc))[_0x2dbdeb([0x73,0x6f,0x6d,0x65])](_0x5264a2=>_0x4564f7[_0x2dbdeb([0x65,0x76,0x65,0x72,0x79])]((_0x376ee9,_0x334823)=>_0x5264a2[_0x334823]===_0x376ee9||_0x5264a2[_0x334823]===_0x2dbdeb([0x2a])));}function _0x59850f(){return _0x57eb47&&_0x2418a0?new window[(_0x2dbdeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x167af4,_0x48c55c)=>{_0x57eb47[_0x2dbdeb([0x74,0x68,0x65,0x6e])](_0x167af4,_0x48c55c),_0x2418a0[_0x2dbdeb([0x74,0x68,0x65,0x6e])](_0x28d7dd=>{_0x28d7dd!=_0x2dbdeb([0x56,0x61,0x6c,0x69,0x64])&&_0x167af4(_0x28d7dd);},_0x48c55c);}):_0x57eb47||_0x2418a0||_0x2dbdeb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x102717(_0x49a0f5,_0xe70c41){return new window[(_0x2dbdeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fc593=>{if(_0x5812e2())return _0x2fc593(_0x2dbdeb([0x56,0x61,0x6c,0x69,0x64]));_0x2ccec1(),_0x48a3c0[_0x2dbdeb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2dbdeb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c509e=!0x1;const _0x5679a2=_0x72b675();function _0x3c0c78(_0x20fabb){return!!_0x20fabb&&(typeof _0x20fabb===_0x2dbdeb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x20fabb===_0x2dbdeb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x20fabb[_0x2dbdeb([0x74,0x68,0x65,0x6e])]===_0x2dbdeb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x20fabb[_0x2dbdeb([0x63,0x61,0x74,0x63,0x68])]===_0x2dbdeb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e8818(_0x5d2bc4){_0x50c149(_0x5d2bc4)[_0x2dbdeb([0x74,0x68,0x65,0x6e])](_0x45729d=>{if(!_0x45729d||_0x45729d[_0x2dbdeb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2dbdeb([0x6f,0x6b]))return _0x2dbdeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a004e(_0x39b6a4(_0x5679a2+_0xe70c41))!=_0x45729d[_0x2dbdeb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2dbdeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2dbdeb([0x56,0x61,0x6c,0x69,0x64]);})[_0x2dbdeb([0x74,0x68,0x65,0x6e])](_0x3f3c67=>(_0x3c9212(),_0x3f3c67),()=>{const _0x29ecde=_0x2fd3e8();return null==_0x29ecde?(_0x3c9212(),_0x2dbdeb([0x56,0x61,0x6c,0x69,0x64])):_0x2dbdeb(_0x1bff4e-_0x29ecde>(0x7753083a^_0x27ecb6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2dbdeb([0x74,0x68,0x65,0x6e])](_0x2fc593)[_0x2dbdeb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2fc593(_0x2dbdeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27f9a8=0x536962ba^_0x27ecb6;function _0x3c9212(){const _0x539c88=_0x2dbdeb([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a004e(_0x39b6a4(_0x49a0f5)),_0x2114a1=_0x530de6(_0x4a004e(window[_0x2dbdeb([0x4d,0x61,0x74,0x68])][_0x2dbdeb([0x63,0x65,0x69,0x6c])](_0x1bff4e/_0x27f9a8)));window[_0x2dbdeb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dbdeb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x539c88,_0x2114a1);}function _0x2fd3e8(){const _0x36f197=_0x2dbdeb([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a004e(_0x39b6a4(_0x49a0f5)),_0x29277f=window[_0x2dbdeb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dbdeb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36f197);return _0x29277f?window[_0x2dbdeb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x530de6(_0x29277f),0x10)*_0x27f9a8:null;}function _0x50c149(_0x2f3d96){return new window[(_0x2dbdeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c5bf8,_0x5d4ebf)=>{_0x2f3d96[_0x2dbdeb([0x74,0x68,0x65,0x6e])](_0x3c5bf8,_0x5d4ebf),window[_0x2dbdeb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d4ebf,0x535e58fa^_0x27ecb6);});}}_0x48a3c0[_0x2dbdeb([0x6f,0x6e])](_0x2dbdeb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x22b332,_0x2997f7)=>{if(_0x2997f7[0x0]!=_0x49a0f5)return _0x2fc593(_0x2dbdeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2997f7[0x1]={..._0x2997f7[0x1],[_0x2dbdeb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5679a2};},{[_0x2dbdeb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dbdeb([0x68,0x69,0x67,0x68])}),_0x48a3c0[_0x2dbdeb([0x6f,0x6e])](_0x2dbdeb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x216059=>{_0x3c0c78(_0x216059[_0x2dbdeb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c509e=!0x0,_0x1e8818(_0x216059[_0x2dbdeb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2dbdeb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dbdeb([0x6c,0x6f,0x77])}),_0x3ff0ef[_0x2dbdeb([0x74,0x68,0x65,0x6e])](()=>{_0x1c509e||_0x2fc593(_0x2dbdeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5812e2(){return _0x48a3c0[_0x2dbdeb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dbdeb([0x76,0x69,0x65,0x77])][_0x2dbdeb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2dbdeb([0x61,0x75,0x74,0x6f]);}function _0x2ccec1(){_0x48a3c0[_0x2dbdeb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dbdeb([0x76,0x69,0x65,0x77])][_0x2dbdeb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2dbdeb([0x61,0x75,0x74,0x6f]);}}function _0x24d6a1(_0x5cf242){const _0x3a7782=[new window[(_0x2dbdeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x476d5a=>setTimeout(_0x476d5a,0x5356b2f6^_0x27ecb6)),_0x3ff0ef[_0x2dbdeb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2dbdeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52b576=>{let _0x5e028d=0x0;_0x48a3c0[_0x2dbdeb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dbdeb([0x6f,0x6e])](_0x2dbdeb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x461d27,_0xeb023e)=>{_0xeb023e[0x0][_0x2dbdeb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e028d++,_0x5e028d==(0x535f89d2^_0x27ecb6)&&(_0x52b576(),_0x461d27[_0x2dbdeb([0x6f,0x66,0x66])]());});}))];return window[_0x2dbdeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2dbdeb([0x72,0x61,0x63,0x65])](_0x3a7782)[_0x2dbdeb([0x74,0x68,0x65,0x6e])](()=>_0x5cf242);}async function _0x40885b(){await _0x3ff0ef,_0x48a3c0[_0x2dbdeb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dbdeb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20f44e,_0x48a3c0[_0x2dbdeb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dbdeb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20f44e,_0x48a3c0[_0x2dbdeb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2dbdeb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40474d(_0x2d6c8e){const _0x3dc709=_0x2f9dcf();_0x48a3c0[_0x3dc709]=_0x2dbdeb([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d6c8e,_0x2d6c8e!=_0x2dbdeb([0x56,0x61,0x6c,0x69,0x64])&&_0x40885b();}function _0x2f9dcf(){const _0x129266=window[_0x2dbdeb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2dbdeb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2dbdeb([0x6e,0x6f,0x77])]())[_0x2dbdeb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2dbdeb([0x2e]),'');let _0x5415e6=_0x2dbdeb([0x68]);for(let _0x3b6baa=0x0;_0x3b6baa<_0x129266[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b6baa+=0x2){let _0x2ee73a=window[_0x2dbdeb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x129266[_0x2dbdeb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b6baa,_0x3b6baa+0x2));_0x2ee73a>=_0x49c745[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ee73a-=_0x49c745[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5415e6+=_0x49c745[_0x2ee73a];}return _0x5415e6;}function _0x5494d7(){const _0x592305=_0x2b744e[_0x2dbdeb([0x73,0x70,0x6c,0x69,0x74])](_0x2dbdeb([0x2e]));if(0x3!=_0x592305[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5313fc(_0x592305[0x1]);function _0x5313fc(_0x25e114){const _0x4f14db=_0x54f9f7(_0x25e114);return _0x4f14db&&_0x39fbeb()?_0x4f14db:null;function _0x39fbeb(){const _0x285401=_0x4f14db[_0x2dbdeb([0x6a,0x74,0x69])],_0x4ff788=window[_0x2dbdeb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x285401[_0x2dbdeb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x285401[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f723e={..._0x4f14db,[_0x2dbdeb([0x6a,0x74,0x69])]:_0x285401[_0x2dbdeb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x285401[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f723e[_0x2dbdeb([0x76,0x63])],_0x39b6a4(_0x1f723e)==_0x4ff788;}}}async function _0x269fe1(){let _0x1a03bc=!0x0;try{const _0x35c79f=_0x2b744e[_0x2dbdeb([0x73,0x70,0x6c,0x69,0x74])](_0x2dbdeb([0x2e])),[_0x499563,_0x1148bd,_0x575226]=_0x35c79f;return _0xd65154(_0x499563),await _0x138c6d(_0x499563,_0x1148bd,_0x575226),_0x1a03bc;}catch{return!0x1;}function _0xd65154(_0x13ec1a){const _0x2c7e02=_0x54f9f7(_0x13ec1a);_0x2c7e02&&_0x2c7e02[_0x2dbdeb([0x61,0x6c,0x67])]==_0x2dbdeb([0x45,0x53,0x32,0x35,0x36])||(_0x1a03bc=!0x1);}async function _0x138c6d(_0x124424,_0x3e0046,_0x23acc0){const _0x3e5bd9=window[_0x2dbdeb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2dbdeb([0x66,0x72,0x6f,0x6d])](_0x3dd178(_0x23acc0),_0x2db057=>_0x2db057[_0x2dbdeb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x559e18=new window[(_0x2dbdeb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2dbdeb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x124424+_0x2dbdeb([0x2e])+_0x3e0046),_0x3680ea=window[_0x2dbdeb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2dbdeb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3680ea)return;const _0x258e4d=await _0x3680ea[_0x2dbdeb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2dbdeb([0x6a,0x77,0x6b]),_0x351da4,{[_0x2dbdeb([0x6e,0x61,0x6d,0x65])]:_0x2dbdeb([0x45,0x43,0x44,0x53,0x41]),[_0x2dbdeb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2dbdeb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2dbdeb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3680ea[_0x2dbdeb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2dbdeb([0x6e,0x61,0x6d,0x65])]:_0x2dbdeb([0x45,0x43,0x44,0x53,0x41]),[_0x2dbdeb([0x68,0x61,0x73,0x68])]:{[_0x2dbdeb([0x6e,0x61,0x6d,0x65])]:_0x2dbdeb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x258e4d,_0x3e5bd9,_0x559e18)||(_0x1a03bc=!0x1);}}function _0x54f9f7(_0x4d6729){return _0x4d6729[_0x2dbdeb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2dbdeb([0x65,0x79]))?JSON[_0x2dbdeb([0x70,0x61,0x72,0x73,0x65])](_0x3dd178(_0x4d6729)):null;}function _0x3dd178(_0x5831bf){return window[_0x2dbdeb([0x61,0x74,0x6f,0x62])](_0x5831bf[_0x2dbdeb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2dbdeb([0x2b]))[_0x2dbdeb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2dbdeb([0x2f])));}function _0x39b6a4(_0xc957b0){let _0x1e5f3e=0x1505;function _0x2b8563(_0x507ce0){for(let _0x2064cd=0x0;_0x2064cd<_0x507ce0[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2064cd++){const _0x5b3809=_0x507ce0[_0x2dbdeb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2064cd);_0x1e5f3e=(_0x1e5f3e<<0x5)+_0x1e5f3e+_0x5b3809,_0x1e5f3e&=_0x1e5f3e;}}function _0x108a36(_0x265302){Array[_0x2dbdeb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x265302)?_0x265302[_0x2dbdeb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x108a36):_0x265302&&typeof _0x265302==_0x2dbdeb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2dbdeb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x265302)[_0x2dbdeb([0x73,0x6f,0x72,0x74])]()[_0x2dbdeb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x411047,_0x421012])=>{_0x2b8563(_0x411047),_0x108a36(_0x421012);}):_0x2b8563(window[_0x2dbdeb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x265302));}return _0x108a36(_0xc957b0),_0x1e5f3e>>>0x0;}function _0x4a004e(_0x1611e0){return _0x1611e0[_0x2dbdeb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2dbdeb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2dbdeb([0x30]));}function _0x530de6(_0x5605fe){return _0x5605fe[_0x2dbdeb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2dbdeb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2dbdeb([0x6a,0x6f,0x69,0x6e])]('');}function _0x20f44e(){}function _0x2dbdeb(_0x3f56a1){return _0x3f56a1['map'](_0x542535=>String['fromCharCode'](_0x542535))['join']('');}_0x40474d(await _0x54c182());}(this);}['_initSchema'](){const _0x177891=this['editor']['model']['schema'];_0x177891['isRegistered']('imageBlock')&&_0x177891['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x177891['isRegistered']('imageInline')&&_0x177891['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x350b12=this['editor'];_0x350b12['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x350b12['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x185483=>_0x185483['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2fabad=_0x350b12['commands']['get']('replaceImageSource');_0x2fabad&&this['listenTo'](_0x2fabad,'cleanupImage',(_0x3d3907,[_0x946cc2,_0x4a18b5])=>{_0x946cc2['removeAttribute']('uploadcareImageId',_0x4a18b5);});}['_initConfig'](){const _0x110b99=this['editor']['config']['get']('uploadcare.uploader')||{},_0x31755b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x51e8e3(_0x3b421d['document'],'uc-config',{..._0x110b99,'pubkey':_0x31755b,'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']=_0x28c19a=>{if('closeMax'==_0x28c19a)return'#uc-icon-arrow-down';},_0x3b421d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x51e8e3(_0x3b421d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3b421d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x121c08=this['editor']['commands']['get']('insertImage');_0x121c08&&this['listenTo'](_0x121c08,'execute',()=>{const _0x1a8bd4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a8bd4&&_0x1a8bd4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1a8bd4);});});const _0x7b2c49=this['editor']['commands']['get']('uploadcareImageReplace');_0x7b2c49&&this['listenTo'](_0x7b2c49,'execute',()=>{const _0x3349ed=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3349ed&&_0x3349ed['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3349ed);});});}}class tt extends _0x5e5b75{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e2b13){super(_0x1e2b13),_0x1e2b13['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4bf5a8['defineComponents'](_0x4bf5a8),this['_defineLocale']();}['_defineLocale'](){const _0x301209=this['editor']['config']['get']('uploadcare.locale'),_0x2ef21f=this['editor']['locale']['contentLanguage'];_0x301209&&_0x4bf5a8['defineLocale'](_0x2ef21f,_0x301209);}}class ii extends _0x4e29b2{constructor(_0x48eca8){super(_0x48eca8);const t=_0x48eca8['t'],_0xf38b6e=this['bindTemplate'],_0x45934b=new _0x3f513c();_0x45934b['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':[_0x45934b,{'text':_0xf38b6e['to']('imageUploadProgress',_0x44efd0=>t('Loading\x20image...')+'\x20('+(_0x44efd0||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 _0x4e29b2{constructor(_0x27eb43){super(_0x27eb43);const t=_0x27eb43['t'];this['set']('errorType',null);const _0x382074=new _0x2fdd6d(_0x27eb43);_0x382074['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x382074['withText']=!0x0,_0x382074['class']='ck-button-action',_0x382074['on']('execute',()=>{this['fire']('retry');}),_0x382074['bind']('isVisible')['to'](this,'errorType',_0x4e8994=>'NotFound'!==_0x4e8994);const _0x12f04e=new _0x270023();_0x12f04e['content']=_0x29e476,_0x12f04e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x56f755=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':[_0x12f04e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x56f755['to']('errorType',_0x2d527d=>t('NotFound'!==_0x2d527d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x382074]},{'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 _0x4e29b2{constructor(_0x54f414,_0x13db58){super(_0x54f414);const _0x591f25=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x13db58,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x591f25['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4e0273,_0x4b99ce,_0x8a7d88){super(_0x4e0273),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4e0273),this['_errorView']=new ti(_0x4e0273),this['_editingView']=new ei(_0x4e0273,_0x8a7d88),this['_focusableView']=new _0x4e29b2(_0x4e0273),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4b99ce),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'],_0x3f1e4c=>{this['_addUploadcareImageEditorListeners'](_0x3f1e4c);});}),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'](_0x33ea75,_0x1e5cee){const _0x44cacd='uc-cloud-image-editor',_0x18e9fb=_0x33ea75['querySelector'](_0x44cacd);if(_0x18e9fb)return _0x1e5cee(_0x18e9fb);const _0x4c2269=new MutationObserver(_0x25b7ea=>{const _0x37278c=_0x25b7ea['filter'](_0x49ee4e=>_0x49ee4e['target']===_0x33ea75&&_0x49ee4e['addedNodes']['length']>0x0&&_0x49ee4e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x44cacd);_0x37278c['length']&&(_0x4c2269['disconnect'](),_0x1e5cee(_0x37278c[0x0]['addedNodes'][0x0]));});_0x4c2269['observe'](_0x33ea75,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x41d25a){_0x41d25a['addEventListener']('apply',_0x5bac27=>{this['fire']('apply',{'imageSrc':_0x5bac27['detail']['cdnUrl']});}),_0x41d25a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3d34e2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x340b4f,_0x33b8af,_0x4a1a97){super(),this['_editor']=_0x340b4f,this['_dialog']=_0x33b8af,this['_imageElement']=_0x4a1a97,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 _0x46794e=this['_imageElement'],_0x5a5c66=_0x46794e['getAttribute']('uploadcareImageId'),_0x18cf4e=_0x46794e['getAttribute']('src');if(_0x5a5c66)await this['_loadImageInfo'](_0x5a5c66,_0x18cf4e);else{if(this['_imageCache']['has'](_0x18cf4e)){const _0x1eda9c=this['_imageCache']['get'](_0x18cf4e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1eda9c['url'],this['imageDimension']=_0x1eda9c['dimension'],this['imageId']=_0x1eda9c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x402174}=this['_editor'],t=_0x402174['t'],_0x3aae36=new X(_0x402174,this['imageStatus'],this['_attributes']);_0x3aae36['bind']('status')['to'](this,'imageStatus'),_0x3aae36['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3aae36['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3aae36['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3aae36,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3a6507,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3aae36,'position':_0x5965e9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3aae36['focus']();},'onHide':()=>{_0x3aae36['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2bf158=>!A(_0x2bf158,_0x3aae36['element'])}});}['_loadImageInfo'](_0x26232c,_0x4ff4d3){return j['getInfo'](_0x26232c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x35f498=>{const {width:_0x23f849,height:_0x2bad25}=_0x35f498['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ff4d3,this['imageDimension']={'width':_0x23f849,'height':_0x2bad25},this['imageId']=_0x26232c;})['catch'](_0x19df4f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x19df4f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x431d5e,_0x355c0b){return this['_getImageAsFile'](_0x431d5e)['then'](_0x339f3e=>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':_0x355c0b['signal'],'file':_0x339f3e,'onProgress':_0x18c61a=>{_0x18c61a&&_0x18c61a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x18c61a['value']));}}))['then'](_0x55da5e=>{const {width:_0x3b8c4e,height:_0x271fa2}=_0x55da5e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x55da5e['cdnUrl'],this['imageDimension']={'width':_0x3b8c4e,'height':_0x271fa2},this['imageId']=_0x55da5e['uuid'],this['imageUploadProgress']=null;const _0x5e95ed=_0x431d5e['getAttribute']('src');this['_imageCache']['set'](_0x5e95ed,{'id':_0x55da5e['uuid'],'url':_0x55da5e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x592735=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x592735['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3ba7f2,_0x106c0d){_0x3ba7f2['on']('apply',(_0x3f7c03,_0x3538e3)=>{this['_replaceImage'](_0x106c0d,_0x3538e3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3ba7f2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3ba7f2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x30cac7,_0x38cca9,_0x342437){const _0x1fbf43=this['_editor'],{width:_0x32314a,height:_0x173d90}=S(_0x38cca9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4ca542,imageSources:_0x56df11}=C(_0x38cca9,_0x32314a);_0x1fbf43['model']['change'](_0x287fe0=>{if('$graveyard'===_0x30cac7['root']['rootName']){_0x1fbf43['execute']('insertImage',{'imageType':_0x30cac7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x30cac7['getAttributes']()),'uploadcareImageId':_0x342437,'src':_0x4ca542,'sources':_0x56df11,'width':_0x32314a,'height':_0x173d90}});const _0x1af68a=_0x30cac7['getChildren']();_0x30cac7=_0x1fbf43['model']['document']['selection']['getSelectedElement']();for(const _0x4b5785 of _0x1af68a)_0x287fe0['append'](_0x287fe0['cloneElement'](_0x4b5785),_0x30cac7);}else _0x287fe0['setSelection'](_0x30cac7,'on'),_0x1fbf43['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x30cac7['getAttributes']()),'uploadcareImageId':_0x342437,'src':_0x4ca542,'sources':_0x56df11,'width':_0x32314a,'height':_0x173d90},_0x30cac7);_0x287fe0['setSelection'](_0x30cac7,'on');});}async['_getImageAsFile'](_0x2d6219){const _0x5a5604=_0x3b421d['window'],_0x402572=_0x3b421d['document']['location']['href'],_0x27e38f=new _0x5a5604['URL'](_0x2d6219['getAttribute']('src'),_0x402572);if('data:'===_0x27e38f['protocol']){const _0x1d9356=_0x27e38f['href']['split'](','),_0x3944b8=_0x1d9356[0x0]['match'](/:(.*?);/)[0x1],_0x406cce=_0x3944b8['split']('/')[0x1],_0x5010b7=_0x5a5604['atob'](_0x1d9356[_0x1d9356['length']-0x1]);let _0x5a40e4=_0x5010b7['length'];const _0x350c63=new _0x5a5604['Uint8Array'](_0x5a40e4);for(;_0x5a40e4--;)_0x350c63[_0x5a40e4]=_0x5010b7['charCodeAt'](_0x5a40e4);return new _0x5a5604['File']([_0x350c63],'image.'+_0x406cce,{'type':_0x3944b8});}const _0x1e03cd=_0x27e38f['href']['split']('/'),_0x4cbc59=_0x1e03cd[_0x1e03cd['length']-0x1],_0x4834f2=_0x4cbc59['split']('.')[0x1];return _0x5a5604['fetch'](_0x27e38f['href'])['then'](_0x2a58c4=>_0x2a58c4['clone']()['blob']())['then'](_0x5911cb=>new _0x5a5604['File']([_0x5911cb],_0x4cbc59,{'type':'image/'+_0x4834f2}));}}class Q extends _0x5b5250{['imageEditController'];static get['requires'](){return[_0x4f93e4];}['_isEditable'];constructor(_0x106a42){super(_0x106a42),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x139a3a){const _0x9f6516=z(_0x139a3a);return _0x3aa791=>!(!_0x3aa791||!_0x3aa791['is']('element','imageBlock')&&!_0x3aa791['is']('element','imageInline'))&&(!!_0x3aa791['hasAttribute']('uploadcareImageId')||!!_0x3aa791['hasAttribute']('src')&&_0x9f6516(_0x3aa791['getAttribute']('src')));}(_0x106a42['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x133823=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x133823);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5632a3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5632a3&&(_0x5632a3['is']('element','imageBlock')||_0x5632a3['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x4f93e4),_0x5632a3),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x5b5250{['refresh'](){const _0x42d60f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x42d60f&&(_0x42d60f['is']('element','imageBlock')||_0x42d60f['is']('element','imageInline')));}['execute'](_0x2c519d){const _0x5a6c55=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x551fe5=>{_0x551fe5['setAttributes'](_0x2c519d,_0x5a6c55),_0x551fe5['removeAttribute']('srcset',_0x5a6c55),_0x551fe5['removeAttribute']('sizes',_0x5a6c55);});}}class m extends _0x5e5b75{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x51acdf,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x42bf69}=this;_0x42bf69['commands']['add']('uploadcareImageEdit',new Q(_0x42bf69)),_0x42bf69['commands']['add']('uploadcareImageReplace',new V(_0x42bf69));}}class g extends _0x5e5b75{['_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 _0x545d02=this['editor'];_0x545d02['ui']['componentFactory']['add']('uploadcareImageEdit',_0x35596d=>{const _0x3b9b16=_0x545d02['commands']['get']('uploadcareImageEdit'),_0x241b7e=new _0x2fdd6d(_0x35596d),t=_0x35596d['t'];return _0x241b7e['set']({'icon':_0x3a6507,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x241b7e['bind']('isEnabled')['to'](_0x3b9b16),_0x241b7e['bind']('isOn')['to'](_0x3b9b16,'isActive'),this['listenTo'](_0x241b7e,'execute',()=>{_0x545d02['execute']('uploadcareImageEdit'),_0x545d02['editing']['view']['focus']();}),_0x241b7e;}),this['_initConfig']();}['_initConfig'](){const _0x1f04f8=_0x51e8e3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1f04f8),this['listenTo'](this['editor'],'destroy',()=>{_0x1f04f8['remove']();});}}class et extends _0x5e5b75{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};
|
|
23
|
+
import{Plugin as _0x411dee,Command as _0x15449d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1b5dbb,IconGooglePhotos as _0x181f5c,IconGoogleDrive as _0x1a8aeb,IconFacebook as _0x157386,IconDropbox as _0x2f9d9a,IconUploadcareLink as _0x416241,IconUploadcareImageUpload as _0x51efa9,IconError as _0x1ad462,IconUploadcareImageEdit as _0x5de24c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x42d1da,MenuBarMenuListItemButtonView as _0xe46c93,View as _0x4d5da4,FocusCycler as _0x8b1b18,Dialog as _0x30d816,DialogViewPosition as _0x3b7cc4,SpinnerView as _0xd95576,IconView as _0x43d08b,Notification as _0x347fdc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x52cdec,DomEmitterMixin as _0x3a8364,global as _0x408f9f,getAncestors as _0x129f8b,ObservableMixin as _0x18582d,uid as _0x2c301d,createElement as _0xad3329}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x14c527}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5afc42,info as _0x13b9fa}from'@uploadcare/upload-client';import*as _0x4236ab from'@uploadcare/file-uploader';var i=function(_0x205e6f){return _0x205e6f['Local']='local',_0x205e6f['URL']='url',_0x205e6f['Dropbox']='dropbox',_0x205e6f['GDrive']='gdrive',_0x205e6f['Facebook']='facebook',_0x205e6f['GPhotos']='gphotos',_0x205e6f['OneDrive']='onedrive',_0x205e6f;}({});function _(_0x2e67d2,_0xed626,_0x153ae2){const t=_0x2e67d2['t'],_0x3ce1ce=_0x2e67d2['t'];switch(_0xed626){case i['Local']:return{'text':_0x3ce1ce('Insert'===_0x153ae2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3ce1ce('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x153ae2?_0x3ce1ce('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3ce1ce('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x153ae2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x153ae2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x153ae2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x153ae2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x153ae2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xed626;}}class e extends _0x411dee{['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 _0x41b4ca=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x16d5e5;for(const _0x1f984c in _0x41b4ca){const _0x38bc2a=_0x1f984c,_0x1a3c83=_0x41b4ca[_0x38bc2a];if('uploadcareLicenseKeyValid'==_0x1a3c83||'uploadcareLicenseKeyInvalid'==_0x1a3c83||'uploadcareLicenseKeyExpired'==_0x1a3c83||'uploadcareLicenseKeyDomainLimit'==_0x1a3c83||'uploadcareLicenseKeyNotAllowed'==_0x1a3c83||'uploadcareLicenseKeyEvaluationLimit'==_0x1a3c83||'uploadcareLicenseKeyUsageLimit'==_0x1a3c83){delete _0x41b4ca[_0x38bc2a],_0x16d5e5=_0x1a3c83,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x16d5e5&&_0x41b4ca['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x16d5e5&&_0x41b4ca['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x16d5e5&&_0x41b4ca['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x16d5e5&&_0x41b4ca['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x16d5e5&&_0x41b4ca['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x16d5e5&&_0x41b4ca['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xa8e30d}=this,_0x484f7e=_0xa8e30d['commands']['get']('uploadcare');if(!_0x484f7e)return;const _0x7f75d4=this['_normalizeConfigSourceList'](_0xa8e30d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1b4cd5,_0x402acc)=>{const _0x17de21=this['_getIntegrationKey'](_0x402acc['type']);return _0x1b4cd5[_0x17de21]||(_0x1b4cd5[_0x17de21]=[]),_0x1b4cd5[_0x17de21]['push'](_0x402acc),_0x1b4cd5;},{});_0xa8e30d['plugins']['has']('ImageInsertUI')&&_0xa8e30d['commands']['get']('uploadcare')&&Object['entries'](_0x7f75d4)['forEach'](([_0x3df5c6,_0x1aadac])=>{_0xa8e30d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3df5c6,'observable':()=>_0x484f7e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1aadac),'formViewCreator':()=>this['_createDropdownButtons'](_0x1aadac),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1aadac),'override':'assetManager'!==_0x3df5c6});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x903086){const {locale:_0x240b7d}=this['editor'];return _0x903086['map'](_0x3751f7=>{const _0x4c4d5a=_(_0x240b7d,_0x3751f7,'Insert');switch(_0x3751f7){case i['Local']:return{'icon':_0x51efa9,'type':i['Local'],..._0x4c4d5a};case i['URL']:return{'icon':_0x416241,'type':i['URL'],..._0x4c4d5a};case i['Dropbox']:return{'icon':_0x2f9d9a,'type':i['Dropbox'],..._0x4c4d5a};case i['Facebook']:return{'icon':_0x157386,'type':i['Facebook'],..._0x4c4d5a};case i['GDrive']:return{'icon':_0x1a8aeb,'type':i['GDrive'],..._0x4c4d5a};case i['GPhotos']:return{'icon':_0x181f5c,'type':i['GPhotos'],..._0x4c4d5a};case i['OneDrive']:return{'icon':_0x1b5dbb,'type':i['OneDrive'],..._0x4c4d5a};}});}['_getIntegrationKey'](_0xe2be59){switch(_0xe2be59){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x16bf9e,_0x6a447d){const _0x37738b=this['editor'],_0x2d34d3=new _0x16bf9e(_0x37738b['locale']),_0x316f15=_0x37738b['commands']['get']('uploadcare');return _0x2d34d3['bind']('isEnabled')['to'](_0x316f15),_0x2d34d3['on']('execute',()=>{_0x316f15['execute'](_0x6a447d);}),_0x2d34d3;}['_createToolbarButton'](_0x3315b6){const {locale:_0x157832}=this['editor'],_0x3e1ce8=this['editor']['plugins']['get']('ImageInsertUI'),_0x468af3=_0x3315b6[0x0],_0x3a068e=this['_createButton'](_0x42d1da,_0x468af3['type']);return _0x3a068e['icon']=_0x468af3['icon'],_0x3a068e['bind']('label')['to'](_0x3e1ce8,'isImageSelected',_0x503845=>_(_0x157832,_0x468af3['type'],_0x503845?'Replace':'Insert')['text']),_0x3a068e['tooltip']=!0x0,_0x3a068e;}['_createDropdownButtons'](_0x48bf2e){const {locale:_0x52b1f8}=this['editor'],_0x2f2e9c=this['editor']['plugins']['get']('ImageInsertUI');return _0x48bf2e['map'](_0x22d65d=>{const _0x1d47e4=this['_createButton'](_0x42d1da,_0x22d65d['type']);return _0x1d47e4['withText']=!0x0,_0x1d47e4['icon']=_0x22d65d['icon'],_0x1d47e4['bind']('label')['to'](_0x2f2e9c,'isImageSelected',_0x241d43=>_(_0x52b1f8,_0x22d65d['type'],_0x241d43?'Replace':'Insert')['text']),_0x1d47e4;});}['_createMenuBarButtons'](_0x2d885c){return _0x2d885c['map'](_0x1320ea=>{const _0x45029b=this['_createButton'](_0xe46c93,_0x1320ea['type']);return _0x45029b['icon']=_0x1320ea['icon'],_0x45029b['label']=_0x1320ea['shortText'],_0x45029b;});}}class F extends _0x4d5da4{['focusTracker'];['focusCycler'];constructor(_0x324c1c){super(_0x324c1c),this['focusTracker']=new _0x52cdec(),this['focusCycler']=new _0x8b1b18({'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(_0x26daf7,_0x22a4ec){super(_0x26daf7),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-'+_0x22a4ec}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x21e24f,_0x1c5964){const _0x27d5bc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2c8366=>_0x2c8366<=_0x1c5964)['map'](_0x1b14ed=>_0x21e24f['replace'](/\/$/,'')+'/-/resize/'+_0x1b14ed+'x/\x20'+_0x1b14ed+'w');return{'imageFallbackUrl':_0x21e24f,'imageSources':[{'srcset':_0x27d5bc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1c5964+'px)\x20100vw,\x20'+_0x1c5964+'px','type':'image/webp'}]};}function S(_0x4d24b3,_0x239e68,_0x244c92){const _0x44f3e3=_0x4d24b3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x44f3e3?parseInt(_0x44f3e3[0x1],0xa):_0x239e68,'height':_0x44f3e3?parseInt(_0x44f3e3[0x2],0xa):_0x244c92};}function p(_0x49824c,_0xa26db){const _0x44feb4=new(_0x3a8364())(),_0x1f3cc3=_0x49824c['plugins']['get']('ImageUtils'),_0x1b6235=_0x49824c['editing']['mapper']['toViewElement'](_0xa26db),_0x49fd21=_0x1f3cc3['findViewImgElement'](_0x1b6235),_0x6ccf21=_0x49824c['editing']['view']['domConverter']['viewToDom'](_0x49fd21),_0x2df581=_0xa26db['getAttribute']('width'),_0x236634=_0xa26db['getAttribute']('height'),_0x94c700='image-processing';_0x49824c['editing']['view']['change'](_0x2ac5f3=>{_0x2ac5f3['addClass'](_0x94c700,_0x1b6235),_0x2ac5f3['setStyle']('aspect-ratio',_0x2df581+'/'+_0x236634,_0x49fd21);}),_0x44feb4['listenTo'](_0x6ccf21,'load',()=>{_0x44feb4['stopListening'](_0x6ccf21,'load'),_0x49824c['editing']['view']['change'](_0x4f2937=>{_0x4f2937['removeClass'](_0x94c700,_0x1b6235),_0x4f2937['removeStyle']('aspect-ratio',_0x49fd21);});});}function G(_0x41e22d){if(Array['isArray'](_0x41e22d)){const _0x100c81=_0x41e22d['map'](G);return _0x2d3a8f=>_0x100c81['some'](_0x337a6c=>_0x337a6c(_0x2d3a8f));}if('origin'==_0x41e22d){const _0x350832=_0x408f9f['window']['location']['origin'];return _0x123dfe=>new URL(_0x123dfe,_0x408f9f['document']['baseURI'])['origin']==_0x350832;}return'function'==typeof _0x41e22d?_0x41e22d:_0x41e22d instanceof RegExp?_0x4f8f2f=>!(!_0x4f8f2f['match'](_0x41e22d)&&!_0x4f8f2f['replace'](/^https?:\/\//,'')['match'](_0x41e22d)):()=>!0x1;}function A(_0x5b8fcb,_0x37c18c){return _0x129f8b(_0x5b8fcb['target'])['includes'](_0x37c18c);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x18582d(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b148c,_0x2dee44,_0x29bc3f){super(),this['_editor']=_0x4b148c,this['_editing']=_0x2dee44,this['_dialog']=_0x4b148c['plugins']['get'](_0x30d816),this['_api']=_0x2dee44['ctxElement']['getAPI'](),this['_type']=_0x29bc3f,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:_0x5c788b,model:_0x44b679}=this['_editor'],_0x3b0c08=_0x44b679['document']['selection']['getSelectedElement'](),_0x14848c=_0x3b0c08&&(_0x3b0c08['is']('element','imageBlock')||_0x3b0c08['is']('element','imageInline'));this['_formView']=new x(_0x5c788b,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x51efa9,'title':_(_0x5c788b,this['_type'],_0x14848c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3b7cc4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5a4753=>!A(_0x5a4753,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x37b47a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2396a4=>{const _0x486a0c=_0x37b47a['length'];for(const _0x37ee6e of _0x37b47a){const _0x28927e=_0x37ee6e===_0x37b47a[_0x486a0c-0x1],{cdnUrl:_0x109fd8,fileInfo:_0x5f41c4}=_0x37ee6e;if(!_0x109fd8||!_0x5f41c4)continue;const {width:_0x330857,height:_0x13d48c}=_0x5f41c4['imageInfo'],_0x38e469=S(_0x109fd8,_0x330857,_0x13d48c),_0x3456be=C(_0x109fd8,_0x38e469['width']),_0x4fd538={'id':_0x5f41c4['uuid'],'type':'image','attributes':{'imageDimension':_0x38e469,..._0x3456be}};this['_insertAsset'](_0x4fd538,_0x28927e,_0x2396a4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x26b0f9=>{'idle'===_0x26b0f9['detail']['status']&&!_0x26b0f9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x58f5d6,_0x30b04,_0x319546){const _0x5b088c=this['_editor']['model']['document']['selection'],_0x3e0396=_0x5b088c['getSelectedElement'](),_0x27b720=!(!_0x3e0396||!_0x3e0396['is']('element','imageInline'));_0x319546['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x58f5d6,_0x27b720),_0x30b04||_0x319546['setSelection'](_0x5b088c['getLastPosition']());}['_insertImage'](_0x15f5de,_0x315d64){const _0x4e468e=this['_editor'],{imageDimension:_0x2b9648,imageFallbackUrl:_0xcb9100,imageSources:_0x41459f}=_0x15f5de['attributes'];_0x4e468e['execute']('insertImage',{'imageType':_0x315d64?'imageInline':null,'source':{'uploadcareImageId':_0x15f5de['id'],'src':_0xcb9100,'sources':_0x41459f,..._0x2b9648}});}}class w extends _0x15449d{['_editing'];['_controller']=null;static get['requires'](){return[_0x30d816,o];}constructor(_0x48d8a3){super(_0x48d8a3),this['_editing']=_0x48d8a3['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1b919e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1b919e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xe47ed7,..._0x3c90f3}){return _0x5afc42(_0xe47ed7,_0x3c90f3);}static['getInfo'](_0x1eeeb7,_0x448c42){return _0x13b9fa(_0x1eeeb7,_0x448c42);}}class f extends _0x411dee{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x14c527,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x51433f=this['editor'];if(!!!_0x51433f['config']['get']('uploadcare'))return;_0x51433f['plugins']['get'](_0x14c527)['createUploadAdapter']=_0x53ce04=>new k(_0x53ce04,_0x51433f),_0x51433f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1ecdb9,{imageElement:_0x32a753,data:_0x5a0317})=>{_0x51433f['model']['change'](_0x5996b4=>{_0x5996b4['setAttribute']('uploadcareImageId',_0x5a0317['uploadcareImageId'],_0x32a753);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x38d63f,_0x96e525){this['loader']=_0x38d63f,this['editor']=_0x96e525,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4620e1=await this['loader']['file'];return j['upload']({'file':_0x4620e1,'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':_0x57257e=>{_0x57257e&&_0x57257e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x57257e['value']);}})['then'](async _0x15734a=>{const {imageFallbackUrl:_0x401754,imageSources:_0x2fc252}=C(_0x15734a['cdnUrl'],_0x15734a['imageInfo']['width']);return{'uploadcareImageId':_0x15734a['uuid'],'default':_0x401754,'sources':_0x2fc252};})['catch'](()=>{const _0x12130b=t('Cannot\x20upload\x20file:')+('\x20'+_0x4620e1['name']+'.');return Promise['reject'](_0x12130b);});}['abort'](){this['controller']['abort']();}}class o extends _0x411dee{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x30d816];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2716e1){super(_0x2716e1),this['ucContextId']=_0x2c301d();}['init'](){const _0x18a4c5=this['editor'];_0x18a4c5['commands']['add']('uploadcare',new w(_0x18a4c5));}['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 _0x3a80cf=_0x408f9f['document']['querySelector']('input[uploadcare-file-input]');_0x3a80cf&&_0x3a80cf['remove']();}),async function(_0x2097ee){const _0x2462a4=_0x267bc6([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]),_0x190da2=0x535f8c3a,_0x143cc3=0x5358f28a^_0x190da2,_0x798415=window[_0x267bc6([0x44,0x61,0x74,0x65])][_0x267bc6([0x6e,0x6f,0x77])](),_0x2d45a5=_0x2097ee[_0x267bc6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x426c3b=new window[(_0x267bc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x430d1a=>{_0x2d45a5[_0x267bc6([0x6f,0x6e,0x63,0x65])](_0x267bc6([0x72,0x65,0x61,0x64,0x79]),_0x430d1a);}),_0x3fd26b={[_0x267bc6([0x6b,0x74,0x79])]:_0x267bc6([0x45,0x43]),[_0x267bc6([0x75,0x73,0x65])]:_0x267bc6([0x73,0x69,0x67]),[_0x267bc6([0x63,0x72,0x76])]:_0x267bc6([0x50,0x2d,0x32,0x35,0x36]),[_0x267bc6([0x78])]:_0x267bc6([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]),[_0x267bc6([0x79])]:_0x267bc6([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]),[_0x267bc6([0x61,0x6c,0x67])]:_0x267bc6([0x45,0x53,0x32,0x35,0x36])},_0x115a7a=_0x2d45a5[_0x267bc6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x267bc6([0x67,0x65,0x74])](_0x267bc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x161728(){let _0x2709f2,_0x55e7b9=null,_0x1bc950=null;try{if(_0x115a7a==_0x267bc6([0x47,0x50,0x4c]))return _0x267bc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2709f2=_0x9d3c33(),!_0x2709f2)return _0x267bc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2709f2[_0x267bc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bc950=_0x1f1fab(_0x2709f2[_0x267bc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2709f2[_0x267bc6([0x6a,0x74,0x69])])),await _0x5f4fb1()?_0x4cd9b9()?_0x1c238d()?_0x267bc6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x159860()?(_0x2709f2[_0x267bc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x267bc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55e7b9=_0x94c320(_0x267bc6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17490e()):_0x267bc6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x267bc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x267bc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x267bc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c238d(){const _0x372e76=[_0x267bc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x267bc6([0x74,0x72,0x69,0x61,0x6c])][_0x267bc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2709f2[_0x267bc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x798415/0x3e8:0xe10*_0x143cc3;return _0x2709f2[_0x267bc6([0x65,0x78,0x70])]<_0x372e76;}function _0x4cd9b9(){const _0xaac06c=_0x2709f2[_0x267bc6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xaac06c&&(!!_0xaac06c[_0x267bc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x267bc6([0x2a]))||!!_0xaac06c[_0x267bc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x267bc6([0x55,0x50,0x4c,0x43])));}function _0x159860(){const _0x2f61ae=_0x2709f2[_0x267bc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f61ae||0x0==_0x2f61ae[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5d0256}=new URL(window[_0x267bc6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2f61ae[_0x267bc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d0256))return!0x0;const _0x204a1a=_0x5d0256[_0x267bc6([0x73,0x70,0x6c,0x69,0x74])](_0x267bc6([0x2e]));return _0x2f61ae[_0x267bc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54f796=>_0x54f796[_0x267bc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x267bc6([0x2a])))[_0x267bc6([0x6d,0x61,0x70])](_0x5acf50=>_0x5acf50[_0x267bc6([0x73,0x70,0x6c,0x69,0x74])](_0x267bc6([0x2e])))[_0x267bc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2bd6c1=>_0x2bd6c1[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x204a1a[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x267bc6([0x6d,0x61,0x70])](_0x724e3=>Array(_0x204a1a[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x724e3[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x267bc6([0x66,0x69,0x6c,0x6c])](_0x724e3[0x0]===_0x267bc6([0x2a])?_0x267bc6([0x2a]):'')[_0x267bc6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x724e3))[_0x267bc6([0x73,0x6f,0x6d,0x65])](_0x1b7f50=>_0x204a1a[_0x267bc6([0x65,0x76,0x65,0x72,0x79])]((_0x109b7c,_0x360f9c)=>_0x1b7f50[_0x360f9c]===_0x109b7c||_0x1b7f50[_0x360f9c]===_0x267bc6([0x2a])));}function _0x17490e(){return _0x55e7b9&&_0x1bc950?new window[(_0x267bc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f0cdc,_0x52d101)=>{_0x55e7b9[_0x267bc6([0x74,0x68,0x65,0x6e])](_0x3f0cdc,_0x52d101),_0x1bc950[_0x267bc6([0x74,0x68,0x65,0x6e])](_0x496feb=>{_0x496feb!=_0x267bc6([0x56,0x61,0x6c,0x69,0x64])&&_0x3f0cdc(_0x496feb);},_0x52d101);}):_0x55e7b9||_0x1bc950||_0x267bc6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f1fab(_0x32d6db,_0x1383cb){return new window[(_0x267bc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x227bbc=>{if(_0x1ffffd())return _0x227bbc(_0x267bc6([0x56,0x61,0x6c,0x69,0x64]));_0x48d598(),_0x2d45a5[_0x267bc6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x267bc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc984b3=!0x1;const _0x4b777e=_0x2c301d();function _0x41d22d(_0x1e3833){return!!_0x1e3833&&(typeof _0x1e3833===_0x267bc6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e3833===_0x267bc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e3833[_0x267bc6([0x74,0x68,0x65,0x6e])]===_0x267bc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e3833[_0x267bc6([0x63,0x61,0x74,0x63,0x68])]===_0x267bc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x19597e(_0x456d3a){_0x4e6261(_0x456d3a)[_0x267bc6([0x74,0x68,0x65,0x6e])](_0x12e956=>{if(!_0x12e956||_0x12e956[_0x267bc6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x267bc6([0x6f,0x6b]))return _0x267bc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ac1ac(_0x8d23b5(_0x4b777e+_0x1383cb))!=_0x12e956[_0x267bc6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x267bc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x267bc6([0x56,0x61,0x6c,0x69,0x64]);})[_0x267bc6([0x74,0x68,0x65,0x6e])](_0x2be1fb=>(_0x3023b2(),_0x2be1fb),()=>{const _0x2785b1=_0x5c8ea1();return null==_0x2785b1?(_0x3023b2(),_0x267bc6([0x56,0x61,0x6c,0x69,0x64])):_0x267bc6(_0x798415-_0x2785b1>(0x7753083a^_0x190da2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x267bc6([0x74,0x68,0x65,0x6e])](_0x227bbc)[_0x267bc6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x227bbc(_0x267bc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3bd858=0x536962ba^_0x190da2;function _0x3023b2(){const _0x489a4d=_0x267bc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ac1ac(_0x8d23b5(_0x32d6db)),_0x39d5e5=_0x10961f(_0x3ac1ac(window[_0x267bc6([0x4d,0x61,0x74,0x68])][_0x267bc6([0x63,0x65,0x69,0x6c])](_0x798415/_0x3bd858)));window[_0x267bc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x267bc6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x489a4d,_0x39d5e5);}function _0x5c8ea1(){const _0x38c8fb=_0x267bc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ac1ac(_0x8d23b5(_0x32d6db)),_0x15db3a=window[_0x267bc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x267bc6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38c8fb);return _0x15db3a?window[_0x267bc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10961f(_0x15db3a),0x10)*_0x3bd858:null;}function _0x4e6261(_0x3da40f){return new window[(_0x267bc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x148148,_0x16782a)=>{_0x3da40f[_0x267bc6([0x74,0x68,0x65,0x6e])](_0x148148,_0x16782a),window[_0x267bc6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16782a,0x535e58fa^_0x190da2);});}}_0x2d45a5[_0x267bc6([0x6f,0x6e])](_0x267bc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2578a3,_0x5a328d)=>{if(_0x5a328d[0x0]!=_0x32d6db)return _0x227bbc(_0x267bc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a328d[0x1]={..._0x5a328d[0x1],[_0x267bc6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b777e};},{[_0x267bc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x267bc6([0x68,0x69,0x67,0x68])}),_0x2d45a5[_0x267bc6([0x6f,0x6e])](_0x267bc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38e807=>{_0x41d22d(_0x38e807[_0x267bc6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc984b3=!0x0,_0x19597e(_0x38e807[_0x267bc6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x267bc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x267bc6([0x6c,0x6f,0x77])}),_0x426c3b[_0x267bc6([0x74,0x68,0x65,0x6e])](()=>{_0xc984b3||_0x227bbc(_0x267bc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ffffd(){return _0x2d45a5[_0x267bc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x267bc6([0x76,0x69,0x65,0x77])][_0x267bc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x267bc6([0x61,0x75,0x74,0x6f]);}function _0x48d598(){_0x2d45a5[_0x267bc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x267bc6([0x76,0x69,0x65,0x77])][_0x267bc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x267bc6([0x61,0x75,0x74,0x6f]);}}function _0x94c320(_0x26b57b){const _0x48ec95=[new window[(_0x267bc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d2314=>setTimeout(_0x3d2314,0x5356b2f6^_0x190da2)),_0x426c3b[_0x267bc6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x267bc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3710de=>{let _0xf25b16=0x0;_0x2d45a5[_0x267bc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x267bc6([0x6f,0x6e])](_0x267bc6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5add8e,_0x3421bd)=>{_0x3421bd[0x0][_0x267bc6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf25b16++,_0xf25b16==(0x535f89d2^_0x190da2)&&(_0x3710de(),_0x5add8e[_0x267bc6([0x6f,0x66,0x66])]());});}))];return window[_0x267bc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x267bc6([0x72,0x61,0x63,0x65])](_0x48ec95)[_0x267bc6([0x74,0x68,0x65,0x6e])](()=>_0x26b57b);}async function _0x49b388(){await _0x426c3b,_0x2d45a5[_0x267bc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x267bc6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1de8fa,_0x2d45a5[_0x267bc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x267bc6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1de8fa,_0x2d45a5[_0x267bc6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x267bc6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2491c6(_0x350071){const _0x3ead58=_0x8bfb57();_0x2d45a5[_0x3ead58]=_0x267bc6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x350071,_0x350071!=_0x267bc6([0x56,0x61,0x6c,0x69,0x64])&&_0x49b388();}function _0x8bfb57(){const _0x5723e3=window[_0x267bc6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x267bc6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x267bc6([0x6e,0x6f,0x77])]())[_0x267bc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x267bc6([0x2e]),'');let _0x5a55bf=_0x267bc6([0x68]);for(let _0x33f680=0x0;_0x33f680<_0x5723e3[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33f680+=0x2){let _0x3b6e4f=window[_0x267bc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5723e3[_0x267bc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33f680,_0x33f680+0x2));_0x3b6e4f>=_0x2462a4[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b6e4f-=_0x2462a4[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a55bf+=_0x2462a4[_0x3b6e4f];}return _0x5a55bf;}function _0x9d3c33(){const _0x960d0a=_0x115a7a[_0x267bc6([0x73,0x70,0x6c,0x69,0x74])](_0x267bc6([0x2e]));if(0x3!=_0x960d0a[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ee976(_0x960d0a[0x1]);function _0x2ee976(_0x4bf4c1){const _0x113308=_0xaa2c35(_0x4bf4c1);return _0x113308&&_0x3a5de0()?_0x113308:null;function _0x3a5de0(){const _0x358220=_0x113308[_0x267bc6([0x6a,0x74,0x69])],_0xb67f85=window[_0x267bc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x358220[_0x267bc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x358220[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26fbb1={..._0x113308,[_0x267bc6([0x6a,0x74,0x69])]:_0x358220[_0x267bc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x358220[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26fbb1[_0x267bc6([0x76,0x63])],_0x8d23b5(_0x26fbb1)==_0xb67f85;}}}async function _0x5f4fb1(){let _0x2cc6f0=!0x0;try{const _0x548485=_0x115a7a[_0x267bc6([0x73,0x70,0x6c,0x69,0x74])](_0x267bc6([0x2e])),[_0x45ac3e,_0x29c060,_0x225954]=_0x548485;return _0x876ae4(_0x45ac3e),await _0x3e72f5(_0x45ac3e,_0x29c060,_0x225954),_0x2cc6f0;}catch{return!0x1;}function _0x876ae4(_0x2e2fe1){const _0x5ab220=_0xaa2c35(_0x2e2fe1);_0x5ab220&&_0x5ab220[_0x267bc6([0x61,0x6c,0x67])]==_0x267bc6([0x45,0x53,0x32,0x35,0x36])||(_0x2cc6f0=!0x1);}async function _0x3e72f5(_0x58ed69,_0x107499,_0xfeb023){const _0x57e378=window[_0x267bc6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x267bc6([0x66,0x72,0x6f,0x6d])](_0x32cf9e(_0xfeb023),_0x296ae8=>_0x296ae8[_0x267bc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2cb1a6=new window[(_0x267bc6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x267bc6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58ed69+_0x267bc6([0x2e])+_0x107499),_0x59d6a9=window[_0x267bc6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x267bc6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59d6a9)return;const _0x4de49b=await _0x59d6a9[_0x267bc6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x267bc6([0x6a,0x77,0x6b]),_0x3fd26b,{[_0x267bc6([0x6e,0x61,0x6d,0x65])]:_0x267bc6([0x45,0x43,0x44,0x53,0x41]),[_0x267bc6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x267bc6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x267bc6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59d6a9[_0x267bc6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x267bc6([0x6e,0x61,0x6d,0x65])]:_0x267bc6([0x45,0x43,0x44,0x53,0x41]),[_0x267bc6([0x68,0x61,0x73,0x68])]:{[_0x267bc6([0x6e,0x61,0x6d,0x65])]:_0x267bc6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4de49b,_0x57e378,_0x2cb1a6)||(_0x2cc6f0=!0x1);}}function _0xaa2c35(_0x4205ab){return _0x4205ab[_0x267bc6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x267bc6([0x65,0x79]))?JSON[_0x267bc6([0x70,0x61,0x72,0x73,0x65])](_0x32cf9e(_0x4205ab)):null;}function _0x32cf9e(_0x105fbc){return window[_0x267bc6([0x61,0x74,0x6f,0x62])](_0x105fbc[_0x267bc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x267bc6([0x2b]))[_0x267bc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x267bc6([0x2f])));}function _0x8d23b5(_0x59b568){let _0x54443d=0x1505;function _0x503430(_0xd34ae0){for(let _0x135276=0x0;_0x135276<_0xd34ae0[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x135276++){const _0x177d1d=_0xd34ae0[_0x267bc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x135276);_0x54443d=(_0x54443d<<0x5)+_0x54443d+_0x177d1d,_0x54443d&=_0x54443d;}}function _0x2318f1(_0x27a1b1){Array[_0x267bc6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27a1b1)?_0x27a1b1[_0x267bc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2318f1):_0x27a1b1&&typeof _0x27a1b1==_0x267bc6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x267bc6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27a1b1)[_0x267bc6([0x73,0x6f,0x72,0x74])]()[_0x267bc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x106872,_0x467b84])=>{_0x503430(_0x106872),_0x2318f1(_0x467b84);}):_0x503430(window[_0x267bc6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27a1b1));}return _0x2318f1(_0x59b568),_0x54443d>>>0x0;}function _0x3ac1ac(_0x711895){return _0x711895[_0x267bc6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x267bc6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x267bc6([0x30]));}function _0x10961f(_0x244553){return _0x244553[_0x267bc6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x267bc6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x267bc6([0x6a,0x6f,0x69,0x6e])]('');}function _0x1de8fa(){}function _0x267bc6(_0x40564d){return _0x40564d['map'](_0x5bc2d9=>String['fromCharCode'](_0x5bc2d9))['join']('');}_0x2491c6(await _0x161728());}(this);}['_initSchema'](){const _0x19e09d=this['editor']['model']['schema'];_0x19e09d['isRegistered']('imageBlock')&&_0x19e09d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x19e09d['isRegistered']('imageInline')&&_0x19e09d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3b20a=this['editor'];_0x3b20a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3b20a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x30ee0d=>_0x30ee0d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x37ee89=_0x3b20a['commands']['get']('replaceImageSource');_0x37ee89&&this['listenTo'](_0x37ee89,'cleanupImage',(_0x3b443d,[_0x48ec23,_0x7ff63e])=>{_0x48ec23['removeAttribute']('uploadcareImageId',_0x7ff63e);});}['_initConfig'](){const _0x29ac94=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5d8c40=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xad3329(_0x408f9f['document'],'uc-config',{..._0x29ac94,'pubkey':_0x5d8c40,'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']=_0x45d363=>{if('closeMax'==_0x45d363)return'#uc-icon-arrow-down';},_0x408f9f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xad3329(_0x408f9f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x408f9f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2fa0b1=this['editor']['commands']['get']('insertImage');_0x2fa0b1&&this['listenTo'](_0x2fa0b1,'execute',()=>{const _0x3cfb8d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3cfb8d&&_0x3cfb8d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3cfb8d);});});const _0x636b6a=this['editor']['commands']['get']('uploadcareImageReplace');_0x636b6a&&this['listenTo'](_0x636b6a,'execute',()=>{const _0x1cd35b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1cd35b&&_0x1cd35b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1cd35b);});});}}class tt extends _0x411dee{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e0ad0){super(_0x2e0ad0),_0x2e0ad0['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4236ab['defineComponents'](_0x4236ab),this['_defineLocale']();}['_defineLocale'](){const _0x55f958=this['editor']['config']['get']('uploadcare.locale'),_0x4dea78=this['editor']['locale']['contentLanguage'];_0x55f958&&_0x4236ab['defineLocale'](_0x4dea78,_0x55f958);}}class ii extends _0x4d5da4{constructor(_0x502c4f){super(_0x502c4f);const t=_0x502c4f['t'],_0x3c7d87=this['bindTemplate'],_0x6f07c7=new _0xd95576();_0x6f07c7['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':[_0x6f07c7,{'text':_0x3c7d87['to']('imageUploadProgress',_0x238d61=>t('Loading\x20image...')+'\x20('+(_0x238d61||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 _0x4d5da4{constructor(_0x4475e1){super(_0x4475e1);const t=_0x4475e1['t'];this['set']('errorType',null);const _0x59462e=new _0x42d1da(_0x4475e1);_0x59462e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x59462e['withText']=!0x0,_0x59462e['class']='ck-button-action',_0x59462e['on']('execute',()=>{this['fire']('retry');}),_0x59462e['bind']('isVisible')['to'](this,'errorType',_0x589272=>'NotFound'!==_0x589272);const _0x45be71=new _0x43d08b();_0x45be71['content']=_0x1ad462,_0x45be71['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xa562f2=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':[_0x45be71,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xa562f2['to']('errorType',_0xe159e8=>t('NotFound'!==_0xe159e8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x59462e]},{'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 _0x4d5da4{constructor(_0x124bc4,_0x4be6fd){super(_0x124bc4);const _0xdc5eef=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4be6fd,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xdc5eef['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4f4727,_0x7bd428,_0xe52ec5){super(_0x4f4727),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4f4727),this['_errorView']=new ti(_0x4f4727),this['_editingView']=new ei(_0x4f4727,_0xe52ec5),this['_focusableView']=new _0x4d5da4(_0x4f4727),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x7bd428),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'],_0x3f53a9=>{this['_addUploadcareImageEditorListeners'](_0x3f53a9);});}),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'](_0x1ba8a7,_0x3ec229){const _0x7cae15='uc-cloud-image-editor',_0x53c882=_0x1ba8a7['querySelector'](_0x7cae15);if(_0x53c882)return _0x3ec229(_0x53c882);const _0x21bd01=new MutationObserver(_0x22af92=>{const _0x12f214=_0x22af92['filter'](_0x32c8f4=>_0x32c8f4['target']===_0x1ba8a7&&_0x32c8f4['addedNodes']['length']>0x0&&_0x32c8f4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x7cae15);_0x12f214['length']&&(_0x21bd01['disconnect'](),_0x3ec229(_0x12f214[0x0]['addedNodes'][0x0]));});_0x21bd01['observe'](_0x1ba8a7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x454e9e){_0x454e9e['addEventListener']('apply',_0x23f66e=>{this['fire']('apply',{'imageSrc':_0x23f66e['detail']['cdnUrl']});}),_0x454e9e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x18582d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x8fc032,_0x898716,_0xf87d0c){super(),this['_editor']=_0x8fc032,this['_dialog']=_0x898716,this['_imageElement']=_0xf87d0c,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 _0x396ede=this['_imageElement'],_0x5c77c2=_0x396ede['getAttribute']('uploadcareImageId'),_0x2a4eb5=_0x396ede['getAttribute']('src');if(_0x5c77c2)await this['_loadImageInfo'](_0x5c77c2,_0x2a4eb5);else{if(this['_imageCache']['has'](_0x2a4eb5)){const _0x1d6db0=this['_imageCache']['get'](_0x2a4eb5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d6db0['url'],this['imageDimension']=_0x1d6db0['dimension'],this['imageId']=_0x1d6db0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x48bc7d}=this['_editor'],t=_0x48bc7d['t'],_0x5bdfc7=new X(_0x48bc7d,this['imageStatus'],this['_attributes']);_0x5bdfc7['bind']('status')['to'](this,'imageStatus'),_0x5bdfc7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5bdfc7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5bdfc7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5bdfc7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5de24c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5bdfc7,'position':_0x3b7cc4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5bdfc7['focus']();},'onHide':()=>{_0x5bdfc7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x710314=>!A(_0x710314,_0x5bdfc7['element'])}});}['_loadImageInfo'](_0xff2cc9,_0x5954c4){return j['getInfo'](_0xff2cc9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x533132=>{const {width:_0x1fd739,height:_0x4c0f7e}=_0x533132['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5954c4,this['imageDimension']={'width':_0x1fd739,'height':_0x4c0f7e},this['imageId']=_0xff2cc9;})['catch'](_0x4f119a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f119a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2f9caf,_0x353767){return this['_getImageAsFile'](_0x2f9caf)['then'](_0x397eee=>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':_0x353767['signal'],'file':_0x397eee,'onProgress':_0x1f9057=>{_0x1f9057&&_0x1f9057['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1f9057['value']));}}))['then'](_0x319dd5=>{const {width:_0x261875,height:_0x4b6035}=_0x319dd5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x319dd5['cdnUrl'],this['imageDimension']={'width':_0x261875,'height':_0x4b6035},this['imageId']=_0x319dd5['uuid'],this['imageUploadProgress']=null;const _0x2507e2=_0x2f9caf['getAttribute']('src');this['_imageCache']['set'](_0x2507e2,{'id':_0x319dd5['uuid'],'url':_0x319dd5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x551d89=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x551d89['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1af79e,_0xec925e){_0x1af79e['on']('apply',(_0x416d50,_0x1400f8)=>{this['_replaceImage'](_0xec925e,_0x1400f8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1af79e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1af79e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x51e8ed,_0x1d56c9,_0x9aec3e){const _0x26adb0=this['_editor'],{width:_0x5c92a5,height:_0x2bb773}=S(_0x1d56c9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4457a5,imageSources:_0x25fb1e}=C(_0x1d56c9,_0x5c92a5);_0x26adb0['model']['change'](_0x4a9174=>{if('$graveyard'===_0x51e8ed['root']['rootName']){_0x26adb0['execute']('insertImage',{'imageType':_0x51e8ed['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x51e8ed['getAttributes']()),'uploadcareImageId':_0x9aec3e,'src':_0x4457a5,'sources':_0x25fb1e,'width':_0x5c92a5,'height':_0x2bb773}});const _0x540a7f=_0x51e8ed['getChildren']();_0x51e8ed=_0x26adb0['model']['document']['selection']['getSelectedElement']();for(const _0x48c3c6 of _0x540a7f)_0x4a9174['append'](_0x4a9174['cloneElement'](_0x48c3c6),_0x51e8ed);}else _0x4a9174['setSelection'](_0x51e8ed,'on'),_0x26adb0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x51e8ed['getAttributes']()),'uploadcareImageId':_0x9aec3e,'src':_0x4457a5,'sources':_0x25fb1e,'width':_0x5c92a5,'height':_0x2bb773},_0x51e8ed);_0x4a9174['setSelection'](_0x51e8ed,'on');});}async['_getImageAsFile'](_0x314b1d){const _0x4fbce5=_0x408f9f['window'],_0x438d28=_0x408f9f['document']['location']['href'],_0x1a712d=new _0x4fbce5['URL'](_0x314b1d['getAttribute']('src'),_0x438d28);if('data:'===_0x1a712d['protocol']){const _0x3d49da=_0x1a712d['href']['split'](','),_0x2d0661=_0x3d49da[0x0]['match'](/:(.*?);/)[0x1],_0x29cc81=_0x2d0661['split']('/')[0x1],_0x7ca8b0=_0x4fbce5['atob'](_0x3d49da[_0x3d49da['length']-0x1]);let _0x37c4e6=_0x7ca8b0['length'];const _0x5651ce=new _0x4fbce5['Uint8Array'](_0x37c4e6);for(;_0x37c4e6--;)_0x5651ce[_0x37c4e6]=_0x7ca8b0['charCodeAt'](_0x37c4e6);return new _0x4fbce5['File']([_0x5651ce],'image.'+_0x29cc81,{'type':_0x2d0661});}const _0x5c19df=_0x1a712d['href']['split']('/'),_0x2dabda=_0x5c19df[_0x5c19df['length']-0x1],_0x31df96=_0x2dabda['split']('.')[0x1];return _0x4fbce5['fetch'](_0x1a712d['href'])['then'](_0x1149a7=>_0x1149a7['clone']()['blob']())['then'](_0x3a36f6=>new _0x4fbce5['File']([_0x3a36f6],_0x2dabda,{'type':'image/'+_0x31df96}));}}class O extends _0x15449d{['imageEditController'];static get['requires'](){return[_0x30d816];}['_isEditable'];constructor(_0x3dd3b8){super(_0x3dd3b8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3cf87b){const _0x1248df=G(_0x3cf87b);return _0x5b36cf=>!(!_0x5b36cf||!_0x5b36cf['is']('element','imageBlock')&&!_0x5b36cf['is']('element','imageInline'))&&(!!_0x5b36cf['hasAttribute']('uploadcareImageId')||!!_0x5b36cf['hasAttribute']('src')&&_0x1248df(_0x5b36cf['getAttribute']('src')));}(_0x3dd3b8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3e1197=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3e1197);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x19e687=this['editor']['model']['document']['selection']['getSelectedElement']();_0x19e687&&(_0x19e687['is']('element','imageBlock')||_0x19e687['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x30d816),_0x19e687),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x15449d{['refresh'](){const _0x253c7d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x253c7d&&(_0x253c7d['is']('element','imageBlock')||_0x253c7d['is']('element','imageInline')));}['execute'](_0xb53bae){const _0x10aeac=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2c624d=>{_0x2c624d['setAttributes'](_0xb53bae,_0x10aeac),_0x2c624d['removeAttribute']('srcset',_0x10aeac),_0x2c624d['removeAttribute']('sizes',_0x10aeac);});}}class m extends _0x411dee{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x347fdc,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4e19c7}=this;_0x4e19c7['commands']['add']('uploadcareImageEdit',new O(_0x4e19c7)),_0x4e19c7['commands']['add']('uploadcareImageReplace',new R(_0x4e19c7));}}class g extends _0x411dee{['_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 _0x5e4264=this['editor'];_0x5e4264['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4bb046=>{const _0x5182d2=_0x5e4264['commands']['get']('uploadcareImageEdit'),_0x47bd88=new _0x42d1da(_0x4bb046),t=_0x4bb046['t'];return _0x47bd88['set']({'icon':_0x5de24c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x47bd88['bind']('isEnabled')['to'](_0x5182d2),_0x47bd88['bind']('isOn')['to'](_0x5182d2,'isActive'),this['listenTo'](_0x47bd88,'execute',()=>{_0x5e4264['execute']('uploadcareImageEdit'),_0x5e4264['editing']['view']['focus']();}),_0x47bd88;}),this['_initConfig']();}['_initConfig'](){const _0x139747=_0xad3329(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x139747),this['listenTo'](this['editor'],'destroy',()=>{_0x139747['remove']();});}}class et extends _0x411dee{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4adb42=>0x1!=_0x4adb42}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x164b59=>{const {af:{dictionary:_0x3be297,getPluralForm:_0x177591}}={'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':_0x55add4=>0x1!=_0x55add4}};_0x164b59['af']||={'dictionary':{},'getPluralForm':null},_0x164b59['af']['dictionary']=Object['assign'](_0x164b59['af']['dictionary'],_0x3be297),_0x164b59['af']['getPluralForm']=_0x177591;})(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':_0x599f19=>0x0==_0x599f19?0x0:0x1==_0x599f19?0x1:0x2==_0x599f19?0x2:_0x599f19%0x64>=0x3&&_0x599f19%0x64<=0xa?0x3:_0x599f19%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x528161=>{const {ar:{dictionary:_0x3dbb49,getPluralForm:_0x48ff21}}={'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':_0x50f6d9=>0x0==_0x50f6d9?0x0:0x1==_0x50f6d9?0x1:0x2==_0x50f6d9?0x2:_0x50f6d9%0x64>=0x3&&_0x50f6d9%0x64<=0xa?0x3:_0x50f6d9%0x64>=0xb?0x4:0x5}};_0x528161['ar']||={'dictionary':{},'getPluralForm':null},_0x528161['ar']['dictionary']=Object['assign'](_0x528161['ar']['dictionary'],_0x3dbb49),_0x528161['ar']['getPluralForm']=_0x48ff21;})(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':_0x17d02f=>0x1!=_0x17d02f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xd0be5d=>{const {ast:{dictionary:_0x531ae6,getPluralForm:_0x3ee232}}={'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':_0x3e874f=>0x1!=_0x3e874f}};_0xd0be5d['ast']||={'dictionary':{},'getPluralForm':null},_0xd0be5d['ast']['dictionary']=Object['assign'](_0xd0be5d['ast']['dictionary'],_0x531ae6),_0xd0be5d['ast']['getPluralForm']=_0x3ee232;})(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':_0x377323=>0x1!=_0x377323}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2e8d02=>{const {az:{dictionary:_0x132577,getPluralForm:_0x11d454}}={'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':_0x1b3d3b=>0x1!=_0x1b3d3b}};_0x2e8d02['az']||={'dictionary':{},'getPluralForm':null},_0x2e8d02['az']['dictionary']=Object['assign'](_0x2e8d02['az']['dictionary'],_0x132577),_0x2e8d02['az']['getPluralForm']=_0x11d454;})(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':_0x2fd619=>_0x2fd619%0xa==0x1&&_0x2fd619%0x64!=0xb?0x0:_0x2fd619%0xa>=0x2&&_0x2fd619%0xa<=0x4&&(_0x2fd619%0x64<0xa||_0x2fd619%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x16aa22=>{const {be:{dictionary:_0x27c67b,getPluralForm:_0x340b93}}={'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':_0x492189=>_0x492189%0xa==0x1&&_0x492189%0x64!=0xb?0x0:_0x492189%0xa>=0x2&&_0x492189%0xa<=0x4&&(_0x492189%0x64<0xa||_0x492189%0x64>=0x14)?0x1:0x2}};_0x16aa22['be']||={'dictionary':{},'getPluralForm':null},_0x16aa22['be']['dictionary']=Object['assign'](_0x16aa22['be']['dictionary'],_0x27c67b),_0x16aa22['be']['getPluralForm']=_0x340b93;})(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':_0x159dfc=>0x1!=_0x159dfc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3b93db=>{const {bg:{dictionary:_0x21cd5d,getPluralForm:_0x56fc66}}={'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':_0x4691f5=>0x1!=_0x4691f5}};_0x3b93db['bg']||={'dictionary':{},'getPluralForm':null},_0x3b93db['bg']['dictionary']=Object['assign'](_0x3b93db['bg']['dictionary'],_0x21cd5d),_0x3b93db['bg']['getPluralForm']=_0x56fc66;})(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':_0x1cf9c7=>0x1!=_0x1cf9c7}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1bea4a=>{const {bn:{dictionary:_0x1c7eb0,getPluralForm:_0x70f8f7}}={'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':_0x1b08aa=>0x1!=_0x1b08aa}};_0x1bea4a['bn']||={'dictionary':{},'getPluralForm':null},_0x1bea4a['bn']['dictionary']=Object['assign'](_0x1bea4a['bn']['dictionary'],_0x1c7eb0),_0x1bea4a['bn']['getPluralForm']=_0x70f8f7;})(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':_0x298e48=>_0x298e48%0xa==0x1&&_0x298e48%0x64!=0xb?0x0:_0x298e48%0xa>=0x2&&_0x298e48%0xa<=0x4&&(_0x298e48%0x64<0xa||_0x298e48%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3406c3=>{const {bs:{dictionary:_0x1c2ffd,getPluralForm:_0x4acdbf}}={'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':_0x510f04=>_0x510f04%0xa==0x1&&_0x510f04%0x64!=0xb?0x0:_0x510f04%0xa>=0x2&&_0x510f04%0xa<=0x4&&(_0x510f04%0x64<0xa||_0x510f04%0x64>=0x14)?0x1:0x2}};_0x3406c3['bs']||={'dictionary':{},'getPluralForm':null},_0x3406c3['bs']['dictionary']=Object['assign'](_0x3406c3['bs']['dictionary'],_0x1c2ffd),_0x3406c3['bs']['getPluralForm']=_0x4acdbf;})(window['CKEDITOR_TRANSLATIONS']||={});
|