@ckeditor/ckeditor5-uploadcare 47.4.0-alpha.4 → 47.4.0-alpha.6
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 _0x5f1d3a,Command as _0x512a03}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x14887e,IconGooglePhotos as _0x258bfb,IconGoogleDrive as _0x3eef38,IconFacebook as _0x1277a7,IconDropbox as _0x3f57dd,IconUploadcareLink as _0x56f26b,IconUploadcareImageUpload as _0x2c917c,IconError as _0x1587eb,IconUploadcareImageEdit as _0x20fc75}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x175c42,MenuBarMenuListItemButtonView as _0x344512,View as _0x6e9ead,FocusCycler as _0x501c8b,Dialog as _0x201559,DialogViewPosition as _0x2142c3,SpinnerView as _0x17ea9b,IconView as _0x5cbe71,Notification as _0x57d1cd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x536c2d,DomEmitterMixin as _0x2dae2a,global as _0x4a8320,getAncestors as _0x10fe1b,ObservableMixin as _0x1f9be8,uid as _0x3c884e,createElement as _0x55549f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3f5118}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x557b9d,info as _0x553f7a}from'@uploadcare/upload-client';import*as _0x2a7d39 from'@uploadcare/file-uploader';var i=function(_0xb7f314){return _0xb7f314['Local']='local',_0xb7f314['URL']='url',_0xb7f314['Dropbox']='dropbox',_0xb7f314['GDrive']='gdrive',_0xb7f314['Facebook']='facebook',_0xb7f314['GPhotos']='gphotos',_0xb7f314['OneDrive']='onedrive',_0xb7f314;}({});function _(_0x13f19e,_0x26b141,_0xaf8861){const t=_0x13f19e['t'],_0x502a86=_0x13f19e['t'];switch(_0x26b141){case i['Local']:return{'text':_0x502a86('Insert'===_0xaf8861?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x502a86('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xaf8861?_0x502a86('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x502a86('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xaf8861?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xaf8861?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xaf8861?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xaf8861?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xaf8861?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x26b141;}}class e extends _0x5f1d3a{['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 _0xac55d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x378a29;for(const _0x965c8f in _0xac55d3){const _0x112998=_0x965c8f,_0x309da3=_0xac55d3[_0x112998];if('uploadcareLicenseKeyValid'==_0x309da3||'uploadcareLicenseKeyInvalid'==_0x309da3||'uploadcareLicenseKeyExpired'==_0x309da3||'uploadcareLicenseKeyDomainLimit'==_0x309da3||'uploadcareLicenseKeyNotAllowed'==_0x309da3||'uploadcareLicenseKeyEvaluationLimit'==_0x309da3||'uploadcareLicenseKeyUsageLimit'==_0x309da3){delete _0xac55d3[_0x112998],_0x378a29=_0x309da3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x378a29&&_0xac55d3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x378a29&&_0xac55d3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x378a29&&_0xac55d3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x378a29&&_0xac55d3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x378a29&&_0xac55d3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x378a29&&_0xac55d3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xb9b8bf}=this,_0x43fe51=_0xb9b8bf['commands']['get']('uploadcare');if(!_0x43fe51)return;const _0x514bd4=this['_normalizeConfigSourceList'](_0xb9b8bf['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2e4943,_0x46b72e)=>{const _0x13976c=this['_getIntegrationKey'](_0x46b72e['type']);return _0x2e4943[_0x13976c]||(_0x2e4943[_0x13976c]=[]),_0x2e4943[_0x13976c]['push'](_0x46b72e),_0x2e4943;},{});_0xb9b8bf['plugins']['has']('ImageInsertUI')&&_0xb9b8bf['commands']['get']('uploadcare')&&Object['entries'](_0x514bd4)['forEach'](([_0x255478,_0x5bab1a])=>{_0xb9b8bf['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x255478,'observable':()=>_0x43fe51,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5bab1a),'formViewCreator':()=>this['_createDropdownButtons'](_0x5bab1a),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5bab1a),'override':'assetManager'!==_0x255478});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x25942c){const {locale:_0x59bc56}=this['editor'];return _0x25942c['map'](_0xa74095=>{const _0x10777a=_(_0x59bc56,_0xa74095,'Insert');switch(_0xa74095){case i['Local']:return{'icon':_0x2c917c,'type':i['Local'],..._0x10777a};case i['URL']:return{'icon':_0x56f26b,'type':i['URL'],..._0x10777a};case i['Dropbox']:return{'icon':_0x3f57dd,'type':i['Dropbox'],..._0x10777a};case i['Facebook']:return{'icon':_0x1277a7,'type':i['Facebook'],..._0x10777a};case i['GDrive']:return{'icon':_0x3eef38,'type':i['GDrive'],..._0x10777a};case i['GPhotos']:return{'icon':_0x258bfb,'type':i['GPhotos'],..._0x10777a};case i['OneDrive']:return{'icon':_0x14887e,'type':i['OneDrive'],..._0x10777a};}});}['_getIntegrationKey'](_0x24e024){switch(_0x24e024){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x54d80b,_0x4e7640){const _0x307663=this['editor'],_0xb2458b=new _0x54d80b(_0x307663['locale']),_0xd06fee=_0x307663['commands']['get']('uploadcare');return _0xb2458b['bind']('isEnabled')['to'](_0xd06fee),_0xb2458b['on']('execute',()=>{_0xd06fee['execute'](_0x4e7640);}),_0xb2458b;}['_createToolbarButton'](_0x400301){const {locale:_0x18f631}=this['editor'],_0x50eef7=this['editor']['plugins']['get']('ImageInsertUI'),_0x5efc22=_0x400301[0x0],_0x4aa0ae=this['_createButton'](_0x175c42,_0x5efc22['type']);return _0x4aa0ae['icon']=_0x5efc22['icon'],_0x4aa0ae['bind']('label')['to'](_0x50eef7,'isImageSelected',_0xaa714=>_(_0x18f631,_0x5efc22['type'],_0xaa714?'Replace':'Insert')['text']),_0x4aa0ae['tooltip']=!0x0,_0x4aa0ae;}['_createDropdownButtons'](_0x2fd370){const {locale:_0x8facc1}=this['editor'],_0x5af26b=this['editor']['plugins']['get']('ImageInsertUI');return _0x2fd370['map'](_0x4f0d25=>{const _0x1a6772=this['_createButton'](_0x175c42,_0x4f0d25['type']);return _0x1a6772['withText']=!0x0,_0x1a6772['icon']=_0x4f0d25['icon'],_0x1a6772['bind']('label')['to'](_0x5af26b,'isImageSelected',_0x37b3db=>_(_0x8facc1,_0x4f0d25['type'],_0x37b3db?'Replace':'Insert')['text']),_0x1a6772;});}['_createMenuBarButtons'](_0x10a773){return _0x10a773['map'](_0xc3035a=>{const _0x13621d=this['_createButton'](_0x344512,_0xc3035a['type']);return _0x13621d['icon']=_0xc3035a['icon'],_0x13621d['label']=_0xc3035a['shortText'],_0x13621d;});}}class F extends _0x6e9ead{['focusTracker'];['focusCycler'];constructor(_0x1852ba){super(_0x1852ba),this['focusTracker']=new _0x536c2d(),this['focusCycler']=new _0x501c8b({'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(_0x1fc793,_0x28f250){super(_0x1fc793),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-'+_0x28f250}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x44345b,_0x1aef10){const _0x69aac4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2ccf76=>_0x2ccf76<=_0x1aef10)['map'](_0x1edf82=>_0x44345b['replace'](/\/$/,'')+'/-/resize/'+_0x1edf82+'x/\x20'+_0x1edf82+'w');return{'imageFallbackUrl':_0x44345b,'imageSources':[{'srcset':_0x69aac4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1aef10+'px)\x20100vw,\x20'+_0x1aef10+'px','type':'image/webp'}]};}function S(_0x456d66,_0x49cf51,_0xec9399){const _0x10e0ea=_0x456d66['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x10e0ea?parseInt(_0x10e0ea[0x1],0xa):_0x49cf51,'height':_0x10e0ea?parseInt(_0x10e0ea[0x2],0xa):_0xec9399};}function p(_0x2003a3,_0x3db8e8){const _0x19a6a3=new(_0x2dae2a())(),_0x324baf=_0x2003a3['plugins']['get']('ImageUtils'),_0x36ffc9=_0x2003a3['editing']['mapper']['toViewElement'](_0x3db8e8),_0x2bc152=_0x324baf['findViewImgElement'](_0x36ffc9),_0x10682d=_0x2003a3['editing']['view']['domConverter']['viewToDom'](_0x2bc152),_0x1ad7d4=_0x3db8e8['getAttribute']('width'),_0x52cfaf=_0x3db8e8['getAttribute']('height'),_0x2c327d='image-processing';_0x2003a3['editing']['view']['change'](_0x357e3c=>{_0x357e3c['addClass'](_0x2c327d,_0x36ffc9),_0x357e3c['setStyle']('aspect-ratio',_0x1ad7d4+'/'+_0x52cfaf,_0x2bc152);}),_0x19a6a3['listenTo'](_0x10682d,'load',()=>{_0x19a6a3['stopListening'](_0x10682d,'load'),_0x2003a3['editing']['view']['change'](_0xc94b52=>{_0xc94b52['removeClass'](_0x2c327d,_0x36ffc9),_0xc94b52['removeStyle']('aspect-ratio',_0x2bc152);});});}function G(_0x35c15f){if(Array['isArray'](_0x35c15f)){const _0x300289=_0x35c15f['map'](G);return _0x5a3aa5=>_0x300289['some'](_0x4c487d=>_0x4c487d(_0x5a3aa5));}if('origin'==_0x35c15f){const _0x19711b=_0x4a8320['window']['location']['origin'];return _0x4116c1=>new URL(_0x4116c1,_0x4a8320['document']['baseURI'])['origin']==_0x19711b;}return'function'==typeof _0x35c15f?_0x35c15f:_0x35c15f instanceof RegExp?_0x5a5089=>!(!_0x5a5089['match'](_0x35c15f)&&!_0x5a5089['replace'](/^https?:\/\//,'')['match'](_0x35c15f)):()=>!0x1;}function A(_0x4c5e51,_0x142034){return _0x10fe1b(_0x4c5e51['target'])['includes'](_0x142034);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f9be8(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4e002b,_0x509084,_0x457bb6){super(),this['_editor']=_0x4e002b,this['_editing']=_0x509084,this['_dialog']=_0x4e002b['plugins']['get'](_0x201559),this['_api']=_0x509084['ctxElement']['getAPI'](),this['_type']=_0x457bb6,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:_0x524bd3,model:_0x53af28}=this['_editor'],_0x49c89b=_0x53af28['document']['selection']['getSelectedElement'](),_0x298f41=_0x49c89b&&(_0x49c89b['is']('element','imageBlock')||_0x49c89b['is']('element','imageInline'));this['_formView']=new x(_0x524bd3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2c917c,'title':_(_0x524bd3,this['_type'],_0x298f41?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2142c3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x267996=>!A(_0x267996,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3f4e98}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x17a9f7=>{const _0x45ed4f=_0x3f4e98['length'];for(const _0x54bf54 of _0x3f4e98){const _0xcec784=_0x54bf54===_0x3f4e98[_0x45ed4f-0x1],{cdnUrl:_0x27ffd1,fileInfo:_0x4d3423}=_0x54bf54;if(!_0x27ffd1||!_0x4d3423)continue;const {width:_0x3b27d3,height:_0x3c5889}=_0x4d3423['imageInfo'],_0x9f10b3=S(_0x27ffd1,_0x3b27d3,_0x3c5889),_0x13bab8=C(_0x27ffd1,_0x9f10b3['width']),_0x51b8a5={'id':_0x4d3423['uuid'],'type':'image','attributes':{'imageDimension':_0x9f10b3,..._0x13bab8}};this['_insertAsset'](_0x51b8a5,_0xcec784,_0x17a9f7);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3e00f4=>{'idle'===_0x3e00f4['detail']['status']&&!_0x3e00f4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5a550d,_0x4a0398,_0x36d6a6){const _0x3297d7=this['_editor']['model']['document']['selection'],_0x5d6a74=_0x3297d7['getSelectedElement'](),_0x339199=!(!_0x5d6a74||!_0x5d6a74['is']('element','imageInline'));_0x36d6a6['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5a550d,_0x339199),_0x4a0398||_0x36d6a6['setSelection'](_0x3297d7['getLastPosition']());}['_insertImage'](_0x2efafe,_0x302f80){const _0x8a9dae=this['_editor'],{imageDimension:_0x114c4b,imageFallbackUrl:_0x4a20cf,imageSources:_0x429710}=_0x2efafe['attributes'];_0x8a9dae['execute']('insertImage',{'imageType':_0x302f80?'imageInline':null,'source':{'uploadcareImageId':_0x2efafe['id'],'src':_0x4a20cf,'sources':_0x429710,..._0x114c4b}});}}class w extends _0x512a03{['_editing'];['_controller']=null;static get['requires'](){return[_0x201559,o];}constructor(_0x2db35f){super(_0x2db35f),this['_editing']=_0x2db35f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x130959){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x130959);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x2f7bf6,..._0x1617d7}){return _0x557b9d(_0x2f7bf6,_0x1617d7);}static['getInfo'](_0x1d2b53,_0x37259f){return _0x553f7a(_0x1d2b53,_0x37259f);}}class f extends _0x5f1d3a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3f5118,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x580115=this['editor'];if(!!!_0x580115['config']['get']('uploadcare'))return;_0x580115['plugins']['get'](_0x3f5118)['createUploadAdapter']=_0x1d685a=>new k(_0x1d685a,_0x580115),_0x580115['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1ad917,{imageElement:_0x15dca1,data:_0x39ca32})=>{_0x580115['model']['change'](_0x642c97=>{_0x642c97['setAttribute']('uploadcareImageId',_0x39ca32['uploadcareImageId'],_0x15dca1);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1e37bd,_0x3dcd61){this['loader']=_0x1e37bd,this['editor']=_0x3dcd61,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x33b040=await this['loader']['file'];return j['upload']({'file':_0x33b040,'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':_0x1115d1=>{_0x1115d1&&_0x1115d1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1115d1['value']);}})['then'](async _0x24f33b=>{const {imageFallbackUrl:_0x2b6092,imageSources:_0x2ceeaf}=C(_0x24f33b['cdnUrl'],_0x24f33b['imageInfo']['width']);return{'uploadcareImageId':_0x24f33b['uuid'],'default':_0x2b6092,'sources':_0x2ceeaf};})['catch'](()=>{const _0x304897=t('Cannot\x20upload\x20file:')+('\x20'+_0x33b040['name']+'.');return Promise['reject'](_0x304897);});}['abort'](){this['controller']['abort']();}}class o extends _0x5f1d3a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x201559];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x37b971){super(_0x37b971),this['ucContextId']=_0x3c884e();}['init'](){const _0x4269fc=this['editor'];_0x4269fc['commands']['add']('uploadcare',new w(_0x4269fc));}['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 _0x52ea35=_0x4a8320['document']['querySelector']('input[uploadcare-file-input]');_0x52ea35&&_0x52ea35['remove']();}),async function(_0xa6ed73){const _0x14379b=_0x1e8121([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]),_0x30dc3c=0x535f8c3a,_0x4f6db6=0x5358f2f2^_0x30dc3c,_0x53aa7f=window[_0x1e8121([0x44,0x61,0x74,0x65])][_0x1e8121([0x6e,0x6f,0x77])](),_0x27a199=_0xa6ed73[_0x1e8121([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x153f35=new window[(_0x1e8121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51d43c=>{_0x27a199[_0x1e8121([0x6f,0x6e,0x63,0x65])](_0x1e8121([0x72,0x65,0x61,0x64,0x79]),_0x51d43c);}),_0xd1fb58={[_0x1e8121([0x6b,0x74,0x79])]:_0x1e8121([0x45,0x43]),[_0x1e8121([0x75,0x73,0x65])]:_0x1e8121([0x73,0x69,0x67]),[_0x1e8121([0x63,0x72,0x76])]:_0x1e8121([0x50,0x2d,0x32,0x35,0x36]),[_0x1e8121([0x78])]:_0x1e8121([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]),[_0x1e8121([0x79])]:_0x1e8121([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]),[_0x1e8121([0x61,0x6c,0x67])]:_0x1e8121([0x45,0x53,0x32,0x35,0x36])},_0x50ae39=_0x27a199[_0x1e8121([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e8121([0x67,0x65,0x74])](_0x1e8121([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cffc1(){let _0x2f6ee8,_0x231466=null,_0x4849ba=null;try{if(_0x50ae39==_0x1e8121([0x47,0x50,0x4c]))return _0x1e8121([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f6ee8=_0x1bcd66(),!_0x2f6ee8)return _0x1e8121([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f6ee8[_0x1e8121([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4849ba=_0x3b8778(_0x2f6ee8[_0x1e8121([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f6ee8[_0x1e8121([0x6a,0x74,0x69])])),await _0x11f18c()?_0x40ac7e()?_0x53024b()?_0x1e8121([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1319e0()?(_0x2f6ee8[_0x1e8121([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e8121([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x231466=_0x52385d(_0x1e8121([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x50125f()):_0x1e8121([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e8121([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e8121([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e8121([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x53024b(){const _0x31f281=[_0x1e8121([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e8121([0x74,0x72,0x69,0x61,0x6c])][_0x1e8121([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6ee8[_0x1e8121([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53aa7f/0x3e8:0xe10*_0x4f6db6;return _0x2f6ee8[_0x1e8121([0x65,0x78,0x70])]<_0x31f281;}function _0x40ac7e(){const _0x4382fb=_0x2f6ee8[_0x1e8121([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4382fb&&(!!_0x4382fb[_0x1e8121([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e8121([0x2a]))||!!_0x4382fb[_0x1e8121([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e8121([0x55,0x50,0x4c,0x43])));}function _0x1319e0(){const _0x17217e=_0x2f6ee8[_0x1e8121([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x17217e||0x0==_0x17217e[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xfeac3f}=new URL(window[_0x1e8121([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x17217e[_0x1e8121([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfeac3f))return!0x0;const _0x1f4304=_0xfeac3f[_0x1e8121([0x73,0x70,0x6c,0x69,0x74])](_0x1e8121([0x2e]));return _0x17217e[_0x1e8121([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37a3e8=>_0x37a3e8[_0x1e8121([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e8121([0x2a])))[_0x1e8121([0x6d,0x61,0x70])](_0x42d8d5=>_0x42d8d5[_0x1e8121([0x73,0x70,0x6c,0x69,0x74])](_0x1e8121([0x2e])))[_0x1e8121([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51332e=>_0x51332e[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f4304[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e8121([0x6d,0x61,0x70])](_0x54b170=>Array(_0x1f4304[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x54b170[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e8121([0x66,0x69,0x6c,0x6c])](_0x54b170[0x0]===_0x1e8121([0x2a])?_0x1e8121([0x2a]):'')[_0x1e8121([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x54b170))[_0x1e8121([0x73,0x6f,0x6d,0x65])](_0x30a377=>_0x1f4304[_0x1e8121([0x65,0x76,0x65,0x72,0x79])]((_0x385316,_0x295328)=>_0x30a377[_0x295328]===_0x385316||_0x30a377[_0x295328]===_0x1e8121([0x2a])));}function _0x50125f(){return _0x231466&&_0x4849ba?new window[(_0x1e8121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51324d,_0x182a53)=>{_0x231466[_0x1e8121([0x74,0x68,0x65,0x6e])](_0x51324d,_0x182a53),_0x4849ba[_0x1e8121([0x74,0x68,0x65,0x6e])](_0x7479f9=>{_0x7479f9!=_0x1e8121([0x56,0x61,0x6c,0x69,0x64])&&_0x51324d(_0x7479f9);},_0x182a53);}):_0x231466||_0x4849ba||_0x1e8121([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b8778(_0x2254e5,_0x2071ce){return new window[(_0x1e8121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57c1ee=>{if(_0x3db89a())return _0x57c1ee(_0x1e8121([0x56,0x61,0x6c,0x69,0x64]));_0x36116d(),_0x27a199[_0x1e8121([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e8121([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x218d2b=!0x1;const _0x2d2bb0=_0x3c884e();function _0x3d867c(_0x524a5d){return!!_0x524a5d&&(typeof _0x524a5d===_0x1e8121([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x524a5d===_0x1e8121([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x524a5d[_0x1e8121([0x74,0x68,0x65,0x6e])]===_0x1e8121([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x524a5d[_0x1e8121([0x63,0x61,0x74,0x63,0x68])]===_0x1e8121([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xae84f4(_0x20f2f1){_0x45f263(_0x20f2f1)[_0x1e8121([0x74,0x68,0x65,0x6e])](_0x2306ef=>{if(!_0x2306ef||_0x2306ef[_0x1e8121([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e8121([0x6f,0x6b]))return _0x1e8121([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5dbb85(_0x287721(_0x2d2bb0+_0x2071ce))!=_0x2306ef[_0x1e8121([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e8121([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e8121([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e8121([0x74,0x68,0x65,0x6e])](_0x2a0607=>(_0x1cfb71(),_0x2a0607),()=>{const _0x595bbf=_0x307ed0();return null==_0x595bbf?(_0x1cfb71(),_0x1e8121([0x56,0x61,0x6c,0x69,0x64])):_0x1e8121(_0x53aa7f-_0x595bbf>(0x7753083a^_0x30dc3c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e8121([0x74,0x68,0x65,0x6e])](_0x57c1ee)[_0x1e8121([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57c1ee(_0x1e8121([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x378a68=0x536962ba^_0x30dc3c;function _0x1cfb71(){const _0x1c66e3=_0x1e8121([0x6c,0x6c,0x63,0x74,0x2d])+_0x5dbb85(_0x287721(_0x2254e5)),_0x42daed=_0x262dd8(_0x5dbb85(window[_0x1e8121([0x4d,0x61,0x74,0x68])][_0x1e8121([0x63,0x65,0x69,0x6c])](_0x53aa7f/_0x378a68)));window[_0x1e8121([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e8121([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c66e3,_0x42daed);}function _0x307ed0(){const _0x3f93fb=_0x1e8121([0x6c,0x6c,0x63,0x74,0x2d])+_0x5dbb85(_0x287721(_0x2254e5)),_0xeff91a=window[_0x1e8121([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e8121([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f93fb);return _0xeff91a?window[_0x1e8121([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x262dd8(_0xeff91a),0x10)*_0x378a68:null;}function _0x45f263(_0xc54310){return new window[(_0x1e8121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f59f4,_0x4fe48c)=>{_0xc54310[_0x1e8121([0x74,0x68,0x65,0x6e])](_0x2f59f4,_0x4fe48c),window[_0x1e8121([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fe48c,0x535e58fa^_0x30dc3c);});}}_0x27a199[_0x1e8121([0x6f,0x6e])](_0x1e8121([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1011ab,_0x1cd4d5)=>{if(_0x1cd4d5[0x0]!=_0x2254e5)return _0x57c1ee(_0x1e8121([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1cd4d5[0x1]={..._0x1cd4d5[0x1],[_0x1e8121([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d2bb0};},{[_0x1e8121([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e8121([0x68,0x69,0x67,0x68])}),_0x27a199[_0x1e8121([0x6f,0x6e])](_0x1e8121([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x32d8dc=>{_0x3d867c(_0x32d8dc[_0x1e8121([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x218d2b=!0x0,_0xae84f4(_0x32d8dc[_0x1e8121([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e8121([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e8121([0x6c,0x6f,0x77])}),_0x153f35[_0x1e8121([0x74,0x68,0x65,0x6e])](()=>{_0x218d2b||_0x57c1ee(_0x1e8121([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3db89a(){return _0x27a199[_0x1e8121([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e8121([0x76,0x69,0x65,0x77])][_0x1e8121([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e8121([0x61,0x75,0x74,0x6f]);}function _0x36116d(){_0x27a199[_0x1e8121([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e8121([0x76,0x69,0x65,0x77])][_0x1e8121([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e8121([0x61,0x75,0x74,0x6f]);}}function _0x52385d(_0xe3859){const _0x460590=[new window[(_0x1e8121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49f257=>setTimeout(_0x49f257,0x5356b2f6^_0x30dc3c)),_0x153f35[_0x1e8121([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e8121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x142673=>{let _0x371313=0x0;_0x27a199[_0x1e8121([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e8121([0x6f,0x6e])](_0x1e8121([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x150dfd,_0xeb5727)=>{_0xeb5727[0x0][_0x1e8121([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x371313++,_0x371313==(0x535f89d2^_0x30dc3c)&&(_0x142673(),_0x150dfd[_0x1e8121([0x6f,0x66,0x66])]());});}))];return window[_0x1e8121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e8121([0x72,0x61,0x63,0x65])](_0x460590)[_0x1e8121([0x74,0x68,0x65,0x6e])](()=>_0xe3859);}async function _0x3200fc(){await _0x153f35,_0x27a199[_0x1e8121([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e8121([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x443cc7,_0x27a199[_0x1e8121([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e8121([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x443cc7,_0x27a199[_0x1e8121([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e8121([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d0680(_0x5636cd){const _0x1d3e4c=_0x3ccf97();_0x27a199[_0x1d3e4c]=_0x1e8121([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5636cd,_0x5636cd!=_0x1e8121([0x56,0x61,0x6c,0x69,0x64])&&_0x3200fc();}function _0x3ccf97(){const _0x5fc664=window[_0x1e8121([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e8121([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e8121([0x6e,0x6f,0x77])]())[_0x1e8121([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e8121([0x2e]),'');let _0x26b255=_0x1e8121([0x68]);for(let _0x26757d=0x0;_0x26757d<_0x5fc664[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26757d+=0x2){let _0x32c914=window[_0x1e8121([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5fc664[_0x1e8121([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26757d,_0x26757d+0x2));_0x32c914>=_0x14379b[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32c914-=_0x14379b[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26b255+=_0x14379b[_0x32c914];}return _0x26b255;}function _0x1bcd66(){const _0x83a2d=_0x50ae39[_0x1e8121([0x73,0x70,0x6c,0x69,0x74])](_0x1e8121([0x2e]));if(0x3!=_0x83a2d[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1bca15(_0x83a2d[0x1]);function _0x1bca15(_0x120c6e){const _0x15ad03=_0x10855d(_0x120c6e);return _0x15ad03&&_0x2100e0()?_0x15ad03:null;function _0x2100e0(){const _0x447352=_0x15ad03[_0x1e8121([0x6a,0x74,0x69])],_0x81d92c=window[_0x1e8121([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x447352[_0x1e8121([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x447352[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f5319={..._0x15ad03,[_0x1e8121([0x6a,0x74,0x69])]:_0x447352[_0x1e8121([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x447352[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f5319[_0x1e8121([0x76,0x63])],_0x287721(_0x4f5319)==_0x81d92c;}}}async function _0x11f18c(){let _0x26961a=!0x0;try{const _0x2fb459=_0x50ae39[_0x1e8121([0x73,0x70,0x6c,0x69,0x74])](_0x1e8121([0x2e])),[_0x3e9476,_0x22119a,_0x43498f]=_0x2fb459;return _0x572ad2(_0x3e9476),await _0x77b148(_0x3e9476,_0x22119a,_0x43498f),_0x26961a;}catch{return!0x1;}function _0x572ad2(_0xa244da){const _0x4c84c3=_0x10855d(_0xa244da);_0x4c84c3&&_0x4c84c3[_0x1e8121([0x61,0x6c,0x67])]==_0x1e8121([0x45,0x53,0x32,0x35,0x36])||(_0x26961a=!0x1);}async function _0x77b148(_0x2a0c5a,_0x4d6bb4,_0x25c559){const _0x554c26=window[_0x1e8121([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e8121([0x66,0x72,0x6f,0x6d])](_0x475973(_0x25c559),_0x322e06=>_0x322e06[_0x1e8121([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x559e92=new window[(_0x1e8121([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e8121([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a0c5a+_0x1e8121([0x2e])+_0x4d6bb4),_0x3f0475=window[_0x1e8121([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e8121([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f0475)return;const _0x51f22b=await _0x3f0475[_0x1e8121([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e8121([0x6a,0x77,0x6b]),_0xd1fb58,{[_0x1e8121([0x6e,0x61,0x6d,0x65])]:_0x1e8121([0x45,0x43,0x44,0x53,0x41]),[_0x1e8121([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e8121([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e8121([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f0475[_0x1e8121([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e8121([0x6e,0x61,0x6d,0x65])]:_0x1e8121([0x45,0x43,0x44,0x53,0x41]),[_0x1e8121([0x68,0x61,0x73,0x68])]:{[_0x1e8121([0x6e,0x61,0x6d,0x65])]:_0x1e8121([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51f22b,_0x554c26,_0x559e92)||(_0x26961a=!0x1);}}function _0x10855d(_0x24048f){return _0x24048f[_0x1e8121([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e8121([0x65,0x79]))?JSON[_0x1e8121([0x70,0x61,0x72,0x73,0x65])](_0x475973(_0x24048f)):null;}function _0x475973(_0x4f3b92){return window[_0x1e8121([0x61,0x74,0x6f,0x62])](_0x4f3b92[_0x1e8121([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e8121([0x2b]))[_0x1e8121([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e8121([0x2f])));}function _0x287721(_0x3ab913){let _0x2a1d0d=0x1505;function _0x42004f(_0x277c2a){for(let _0xbe7dd5=0x0;_0xbe7dd5<_0x277c2a[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbe7dd5++){const _0x3e0137=_0x277c2a[_0x1e8121([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xbe7dd5);_0x2a1d0d=(_0x2a1d0d<<0x5)+_0x2a1d0d+_0x3e0137,_0x2a1d0d&=_0x2a1d0d;}}function _0x25795a(_0x466fa1){Array[_0x1e8121([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x466fa1)?_0x466fa1[_0x1e8121([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25795a):_0x466fa1&&typeof _0x466fa1==_0x1e8121([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e8121([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x466fa1)[_0x1e8121([0x73,0x6f,0x72,0x74])]()[_0x1e8121([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xfedb34,_0x203dd0])=>{_0x42004f(_0xfedb34),_0x25795a(_0x203dd0);}):_0x42004f(window[_0x1e8121([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x466fa1));}return _0x25795a(_0x3ab913),_0x2a1d0d>>>0x0;}function _0x5dbb85(_0xab0f5c){return _0xab0f5c[_0x1e8121([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e8121([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e8121([0x30]));}function _0x262dd8(_0xb45690){return _0xb45690[_0x1e8121([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e8121([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e8121([0x6a,0x6f,0x69,0x6e])]('');}function _0x443cc7(){}function _0x1e8121(_0x358866){return _0x358866['map'](_0x1b4391=>String['fromCharCode'](_0x1b4391))['join']('');}_0x1d0680(await _0x5cffc1());}(this);}['_initSchema'](){const _0x5c37cc=this['editor']['model']['schema'];_0x5c37cc['isRegistered']('imageBlock')&&_0x5c37cc['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5c37cc['isRegistered']('imageInline')&&_0x5c37cc['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4f39dc=this['editor'];_0x4f39dc['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4f39dc['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x322740=>_0x322740['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3785c7=_0x4f39dc['commands']['get']('replaceImageSource');_0x3785c7&&this['listenTo'](_0x3785c7,'cleanupImage',(_0x346dff,[_0x482d46,_0x20e05e])=>{_0x482d46['removeAttribute']('uploadcareImageId',_0x20e05e);});}['_initConfig'](){const _0xb9cb62=this['editor']['config']['get']('uploadcare.uploader')||{},_0x528fa9=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x55549f(_0x4a8320['document'],'uc-config',{..._0xb9cb62,'pubkey':_0x528fa9,'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']=_0x2362bb=>{if('closeMax'==_0x2362bb)return'#uc-icon-arrow-down';},_0x4a8320['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x55549f(_0x4a8320['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4a8320['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x363d90=this['editor']['commands']['get']('insertImage');_0x363d90&&this['listenTo'](_0x363d90,'execute',()=>{const _0x30441b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x30441b&&_0x30441b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x30441b);});});const _0x319b74=this['editor']['commands']['get']('uploadcareImageReplace');_0x319b74&&this['listenTo'](_0x319b74,'execute',()=>{const _0x14560f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x14560f&&_0x14560f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x14560f);});});}}class tt extends _0x5f1d3a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32e024){super(_0x32e024),_0x32e024['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2a7d39['defineComponents'](_0x2a7d39),this['_defineLocale']();}['_defineLocale'](){const _0x444a80=this['editor']['config']['get']('uploadcare.locale'),_0x3f6308=this['editor']['locale']['contentLanguage'];_0x444a80&&_0x2a7d39['defineLocale'](_0x3f6308,_0x444a80);}}class ii extends _0x6e9ead{constructor(_0x892850){super(_0x892850);const t=_0x892850['t'],_0x106348=this['bindTemplate'],_0x69863c=new _0x17ea9b();_0x69863c['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':[_0x69863c,{'text':_0x106348['to']('imageUploadProgress',_0x4ad7f2=>t('Loading\x20image...')+'\x20('+(_0x4ad7f2||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 _0x6e9ead{constructor(_0x5f1e6c){super(_0x5f1e6c);const t=_0x5f1e6c['t'];this['set']('errorType',null);const _0x3ab283=new _0x175c42(_0x5f1e6c);_0x3ab283['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3ab283['withText']=!0x0,_0x3ab283['class']='ck-button-action',_0x3ab283['on']('execute',()=>{this['fire']('retry');}),_0x3ab283['bind']('isVisible')['to'](this,'errorType',_0x508337=>'NotFound'!==_0x508337);const _0x32d911=new _0x5cbe71();_0x32d911['content']=_0x1587eb,_0x32d911['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x177945=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':[_0x32d911,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x177945['to']('errorType',_0x148aef=>t('NotFound'!==_0x148aef?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3ab283]},{'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 _0x6e9ead{constructor(_0x553185,_0x59c963){super(_0x553185);const _0x29c65c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x59c963,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x29c65c['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x437d05,_0x30a4cc,_0x123f26){super(_0x437d05),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x437d05),this['_errorView']=new ti(_0x437d05),this['_editingView']=new ei(_0x437d05,_0x123f26),this['_focusableView']=new _0x6e9ead(_0x437d05),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x30a4cc),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'],_0xa9c9fa=>{this['_addUploadcareImageEditorListeners'](_0xa9c9fa);});}),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'](_0x5e6a12,_0x4e3e28){const _0x1d7144='uc-cloud-image-editor',_0x2fe607=_0x5e6a12['querySelector'](_0x1d7144);if(_0x2fe607)return _0x4e3e28(_0x2fe607);const _0x39d972=new MutationObserver(_0x3fbf22=>{const _0x570ca4=_0x3fbf22['filter'](_0x10ab3c=>_0x10ab3c['target']===_0x5e6a12&&_0x10ab3c['addedNodes']['length']>0x0&&_0x10ab3c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1d7144);_0x570ca4['length']&&(_0x39d972['disconnect'](),_0x4e3e28(_0x570ca4[0x0]['addedNodes'][0x0]));});_0x39d972['observe'](_0x5e6a12,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x54a913){_0x54a913['addEventListener']('apply',_0x43b19b=>{this['fire']('apply',{'imageSrc':_0x43b19b['detail']['cdnUrl']});}),_0x54a913['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1f9be8(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x13831f,_0x24d45e,_0x1be246){super(),this['_editor']=_0x13831f,this['_dialog']=_0x24d45e,this['_imageElement']=_0x1be246,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 _0x2e1432=this['_imageElement'],_0x50b1c2=_0x2e1432['getAttribute']('uploadcareImageId'),_0x46d663=_0x2e1432['getAttribute']('src');if(_0x50b1c2)await this['_loadImageInfo'](_0x50b1c2,_0x46d663);else{if(this['_imageCache']['has'](_0x46d663)){const _0x9a56ca=this['_imageCache']['get'](_0x46d663);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x9a56ca['url'],this['imageDimension']=_0x9a56ca['dimension'],this['imageId']=_0x9a56ca['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x468eaa}=this['_editor'],t=_0x468eaa['t'],_0x591965=new X(_0x468eaa,this['imageStatus'],this['_attributes']);_0x591965['bind']('status')['to'](this,'imageStatus'),_0x591965['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x591965['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x591965['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x591965,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x20fc75,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x591965,'position':_0x2142c3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x591965['focus']();},'onHide':()=>{_0x591965['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f5389=>!A(_0x3f5389,_0x591965['element'])}});}['_loadImageInfo'](_0x5bbe54,_0x1a9d56){return j['getInfo'](_0x5bbe54,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x43fe99=>{const {width:_0x38af13,height:_0x1f9223}=_0x43fe99['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a9d56,this['imageDimension']={'width':_0x38af13,'height':_0x1f9223},this['imageId']=_0x5bbe54;})['catch'](_0x2d690b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2d690b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x111c71,_0x4dd884){return this['_getImageAsFile'](_0x111c71)['then'](_0x10ea96=>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':_0x4dd884['signal'],'file':_0x10ea96,'onProgress':_0x4ec768=>{_0x4ec768&&_0x4ec768['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ec768['value']));}}))['then'](_0xf867a5=>{const {width:_0x123ca5,height:_0x26a5f6}=_0xf867a5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xf867a5['cdnUrl'],this['imageDimension']={'width':_0x123ca5,'height':_0x26a5f6},this['imageId']=_0xf867a5['uuid'],this['imageUploadProgress']=null;const _0x2a09f9=_0x111c71['getAttribute']('src');this['_imageCache']['set'](_0x2a09f9,{'id':_0xf867a5['uuid'],'url':_0xf867a5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x654457=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x654457['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3a33de,_0x36496a){_0x3a33de['on']('apply',(_0x28d619,_0x59c763)=>{this['_replaceImage'](_0x36496a,_0x59c763['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3a33de['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3a33de['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5602b5,_0x15ad20,_0x590212){const _0x449ce0=this['_editor'],{width:_0x5ceac6,height:_0x5f2de1}=S(_0x15ad20,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x45c554,imageSources:_0x87d5dc}=C(_0x15ad20,_0x5ceac6);_0x449ce0['model']['change'](_0x2ef6e5=>{if('$graveyard'===_0x5602b5['root']['rootName']){_0x449ce0['execute']('insertImage',{'imageType':_0x5602b5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5602b5['getAttributes']()),'uploadcareImageId':_0x590212,'src':_0x45c554,'sources':_0x87d5dc,'width':_0x5ceac6,'height':_0x5f2de1}});const _0x2faaa5=_0x5602b5['getChildren']();_0x5602b5=_0x449ce0['model']['document']['selection']['getSelectedElement']();for(const _0x529402 of _0x2faaa5)_0x2ef6e5['append'](_0x2ef6e5['cloneElement'](_0x529402),_0x5602b5);}else _0x2ef6e5['setSelection'](_0x5602b5,'on'),_0x449ce0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5602b5['getAttributes']()),'uploadcareImageId':_0x590212,'src':_0x45c554,'sources':_0x87d5dc,'width':_0x5ceac6,'height':_0x5f2de1},_0x5602b5);_0x2ef6e5['setSelection'](_0x5602b5,'on');});}async['_getImageAsFile'](_0x9251bc){const _0x1fb933=_0x4a8320['window'],_0x2fd0c7=_0x4a8320['document']['location']['href'],_0x221c01=new _0x1fb933['URL'](_0x9251bc['getAttribute']('src'),_0x2fd0c7);if('data:'===_0x221c01['protocol']){const _0x2eb36b=_0x221c01['href']['split'](','),_0x3764da=_0x2eb36b[0x0]['match'](/:(.*?);/)[0x1],_0x3cfd4f=_0x3764da['split']('/')[0x1],_0x4e843d=_0x1fb933['atob'](_0x2eb36b[_0x2eb36b['length']-0x1]);let _0x44e5f6=_0x4e843d['length'];const _0x4a6c81=new _0x1fb933['Uint8Array'](_0x44e5f6);for(;_0x44e5f6--;)_0x4a6c81[_0x44e5f6]=_0x4e843d['charCodeAt'](_0x44e5f6);return new _0x1fb933['File']([_0x4a6c81],'image.'+_0x3cfd4f,{'type':_0x3764da});}const _0x25ceed=_0x221c01['href']['split']('/'),_0x43d27d=_0x25ceed[_0x25ceed['length']-0x1],_0x4e0564=_0x43d27d['split']('.')[0x1];return _0x1fb933['fetch'](_0x221c01['href'])['then'](_0x5552f1=>_0x5552f1['clone']()['blob']())['then'](_0xa14f0b=>new _0x1fb933['File']([_0xa14f0b],_0x43d27d,{'type':'image/'+_0x4e0564}));}}class O extends _0x512a03{['imageEditController'];static get['requires'](){return[_0x201559];}['_isEditable'];constructor(_0x477491){super(_0x477491),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5a17e1){const _0x5006fa=G(_0x5a17e1);return _0x23c309=>!(!_0x23c309||!_0x23c309['is']('element','imageBlock')&&!_0x23c309['is']('element','imageInline'))&&(!!_0x23c309['hasAttribute']('uploadcareImageId')||!!_0x23c309['hasAttribute']('src')&&_0x5006fa(_0x23c309['getAttribute']('src')));}(_0x477491['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x438923=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x438923);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xe6a5ac=this['editor']['model']['document']['selection']['getSelectedElement']();_0xe6a5ac&&(_0xe6a5ac['is']('element','imageBlock')||_0xe6a5ac['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x201559),_0xe6a5ac),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x512a03{['refresh'](){const _0x24a3cd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x24a3cd&&(_0x24a3cd['is']('element','imageBlock')||_0x24a3cd['is']('element','imageInline')));}['execute'](_0x3c00e8){const _0x515ceb=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1f726f=>{_0x1f726f['setAttributes'](_0x3c00e8,_0x515ceb),_0x1f726f['removeAttribute']('srcset',_0x515ceb),_0x1f726f['removeAttribute']('sizes',_0x515ceb);});}}class m extends _0x5f1d3a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x57d1cd,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3aa7f1}=this;_0x3aa7f1['commands']['add']('uploadcareImageEdit',new O(_0x3aa7f1)),_0x3aa7f1['commands']['add']('uploadcareImageReplace',new R(_0x3aa7f1));}}class g extends _0x5f1d3a{['_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 _0x427e94=this['editor'];_0x427e94['ui']['componentFactory']['add']('uploadcareImageEdit',_0x39dd8a=>{const _0x4adbf3=_0x427e94['commands']['get']('uploadcareImageEdit'),_0x4158d9=new _0x175c42(_0x39dd8a),t=_0x39dd8a['t'];return _0x4158d9['set']({'icon':_0x20fc75,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4158d9['bind']('isEnabled')['to'](_0x4adbf3),_0x4158d9['bind']('isOn')['to'](_0x4adbf3,'isActive'),this['listenTo'](_0x4158d9,'execute',()=>{_0x427e94['execute']('uploadcareImageEdit'),_0x427e94['editing']['view']['focus']();}),_0x4158d9;}),this['_initConfig']();}['_initConfig'](){const _0x522a45=_0x55549f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x522a45),this['listenTo'](this['editor'],'destroy',()=>{_0x522a45['remove']();});}}class et extends _0x5f1d3a{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']||={});
|